@aeria-ui/ui 0.0.59 → 0.0.60

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 U, ref as Y, resolveDirective as ne, openBlock as o, createElementBlock as s, normalizeClass as Q, Fragment as K, renderList as q, withDirectives as N, toDisplayString as b, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as I, inject as ve, computed as H, createElementVNode as g, mergeProps as E, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as Vt, Teleport as Ge, onMounted as mt, watch as ue, createVNode as z, vModelDynamic as Ct, onBeforeMount as ft, normalizeStyle as $e, withModifiers as ze, pushScopeId as Fe, popScopeId as Ue, provide as ye, normalizeProps as ce, guardReactiveProps as Ve, isRef as vt, createSlots as de, vModelCheckbox as It, onUnmounted as At, resolveComponent as Ot, Suspense as wt, useSlots as St, h as Bt } from "vue";
2
- import { t as F, useI18n as jt } from "@aeria-ui/i18n";
3
- import { useScrollObserver as We, useBreakpoints as je, useMask as Tt, PAGINATION_PER_PAGE_DEFAULTS as Lt, API_URL as yt, request as Rt, useDebounce as ht, isDocumentComplete as zt, convertToSearchQuery as Mt, useAction as Ft, convertFromSearchQuery as Ut, usePasswordPolicy as qt } from "@aeria-ui/core";
4
- import { arraysIntersect as $t, getReferenceProperty as pe, convertConditionToQuery as Et, deepClone as Be, freshItem as Ht, isRequired as Dt, evaluateCondition as Qe } from "@aeriajs/common";
1
+ import { defineComponent as q, ref as X, resolveDirective as ne, openBlock as o, createElementBlock as s, normalizeClass as G, Fragment as J, renderList as E, withDirectives as N, toDisplayString as b, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as C, inject as ve, computed as D, createElementVNode as g, mergeProps as H, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as Vt, Teleport as Ge, onMounted as mt, watch as ue, createVNode as z, vModelDynamic as Ct, onBeforeMount as ft, normalizeStyle as $e, withModifiers as ze, pushScopeId as Fe, popScopeId as Ue, provide as ye, normalizeProps as ce, guardReactiveProps as Ve, isRef as vt, createSlots as de, vModelCheckbox as It, onUnmounted as At, resolveComponent as Ot, Suspense as wt, useSlots as St, h as Bt } from "vue";
2
+ import { t as U, useI18n as jt } from "@aeria-ui/i18n";
3
+ import { useScrollObserver as We, useBreakpoints as je, useMask as Tt, PAGINATION_PER_PAGE_DEFAULTS as Lt, API_URL as yt, request as Rt, useDebounce as ht, isDocumentComplete as zt, getObjectKey as Mt, convertToSearchQuery as Ft, useAction as Ut, convertFromSearchQuery as qt, usePasswordPolicy as Et } from "@aeria-ui/core";
4
+ import { arraysIntersect as $t, getReferenceProperty as pe, convertConditionToQuery as Ht, deepClone as Be, freshItem as Dt, isRequired as Qt, evaluateCondition as Qe } from "@aeriajs/common";
5
5
  import { useStore as re, getStoreId as Te, useParentStore as ge, STORE_ID as qe, getGlobalStateManager as bt } from "@aeria-ui/state-management";
6
6
  import { useRouter as Le } from "vue-router";
7
- const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
7
+ const Gt = ["onClick"], Wt = { key: 0 }, Kt = {
8
8
  key: 0,
9
9
  class: "accordion__content"
10
- }, Xt = /* @__PURE__ */ U({
10
+ }, Xt = /* @__PURE__ */ q({
11
11
  __name: "aeria-accordion",
12
12
  props: {
13
13
  enumerate: { type: Boolean },
@@ -15,16 +15,16 @@ const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
15
15
  headers: {}
16
16
  },
17
17
  setup(c) {
18
- const i = Y(null), t = (a) => typeof a == "string" ? a : a.title;
18
+ const i = X(null), t = (a) => typeof a == "string" ? a : a.title;
19
19
  return (a, l) => {
20
20
  const r = ne("clickable");
21
21
  return o(), s("div", {
22
- class: Q({
22
+ class: G({
23
23
  accordion: !0,
24
24
  "accordion--padded": !a.noPadding
25
25
  })
26
26
  }, [
27
- (o(!0), s(K, null, q(Object.keys(a.$slots).filter((u) => u !== "default"), (u, p) => (o(), s("div", {
27
+ (o(!0), s(J, null, E(Object.keys(a.$slots).filter((u) => u !== "default"), (u, p) => (o(), s("div", {
28
28
  key: u,
29
29
  class: "accordion__slot"
30
30
  }, [
@@ -32,25 +32,25 @@ const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
32
32
  class: "accordion__header",
33
33
  onClick: (d) => i.value === u ? i.value = null : i.value = u
34
34
  }, [
35
- a.enumerate ? (o(), s("span", Gt, b(p + 1) + ". ", 1)) : y("", !0),
36
- D(" " + b(a.headers[u] ? t(a.headers[u]) : e(F)(u)), 1)
37
- ], 8, Qt)), [
35
+ a.enumerate ? (o(), s("span", Wt, b(p + 1) + ". ", 1)) : y("", !0),
36
+ Q(" " + b(a.headers[u] ? t(a.headers[u]) : e(U)(u)), 1)
37
+ ], 8, Gt)), [
38
38
  [r]
39
39
  ]),
40
- i.value === u ? (o(), s("div", Wt, [
41
- I(a.$slots, u, {}, void 0, !0)
40
+ i.value === u ? (o(), s("div", Kt, [
41
+ C(a.$slots, u, {}, void 0, !0)
42
42
  ])) : y("", !0)
43
43
  ]))), 128))
44
44
  ], 2);
45
45
  };
46
46
  }
47
47
  });
48
- const G = (c, i) => {
48
+ const W = (c, i) => {
49
49
  const t = c.__vccOpts || c;
50
50
  for (const [a, l] of i)
51
51
  t[a] = l;
52
52
  return t;
53
- }, jl = /* @__PURE__ */ G(Xt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ U({
53
+ }, Ll = /* @__PURE__ */ W(Xt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ q({
54
54
  __name: "aeria-badge",
55
55
  props: {
56
56
  large: { type: Boolean },
@@ -58,17 +58,17 @@ const G = (c, i) => {
58
58
  },
59
59
  setup(c) {
60
60
  return (i, t) => (o(), s("div", {
61
- class: Q(`
61
+ class: G(`
62
62
  badge
63
63
  ${i.large && "badge--large"}
64
64
  ${i.alt && "badge--alt"}
65
65
  `)
66
66
  }, [
67
- I(i.$slots, "default", {}, void 0, !0)
67
+ C(i.$slots, "default", {}, void 0, !0)
68
68
  ], 2));
69
69
  }
70
70
  });
71
- const be = /* @__PURE__ */ G(Yt, [["__scopeId", "data-v-47f92648"]]), Jt = /* @__PURE__ */ U({
71
+ const be = /* @__PURE__ */ W(Yt, [["__scopeId", "data-v-47f92648"]]), Jt = /* @__PURE__ */ q({
72
72
  __name: "aeria-bare-button",
73
73
  props: {
74
74
  disabled: { type: Boolean }
@@ -79,20 +79,20 @@ const be = /* @__PURE__ */ G(Yt, [["__scopeId", "data-v-47f92648"]]), Jt = /* @_
79
79
  t.disabled || a("click", r);
80
80
  };
81
81
  return (r, u) => (o(), s("button", {
82
- class: Q(`
82
+ class: G(`
83
83
  barebutton
84
84
  barebutton--${r.disabled ? "disabled" : "enabled"}
85
85
  `),
86
86
  onClick: l
87
87
  }, [
88
- I(r.$slots, "default", {}, void 0, !0)
88
+ C(r.$slots, "default", {}, void 0, !0)
89
89
  ], 2));
90
90
  }
91
91
  });
92
- const fe = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["href"], Zt = {
92
+ const fe = /* @__PURE__ */ W(Jt, [["__scopeId", "data-v-35bc81ae"]]), Zt = ["href"], Pt = {
93
93
  key: 0,
94
94
  "data-component": "icon-label"
95
- }, Pt = /* @__PURE__ */ U({
95
+ }, Nt = /* @__PURE__ */ q({
96
96
  __name: "aeria-icon",
97
97
  props: {
98
98
  icon: {},
@@ -103,25 +103,25 @@ const fe = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["hre
103
103
  fill: {}
104
104
  },
105
105
  setup(c) {
106
- const i = c, t = typeof i.reactive == "boolean" ? i.reactive : ve("iconReactive", !1), a = H(() => {
106
+ const i = c, t = typeof i.reactive == "boolean" ? i.reactive : ve("iconReactive", !1), a = D(() => {
107
107
  var l;
108
108
  return (l = i.icon) != null && l.includes(":") ? i.icon : `regular:${i.icon}`;
109
109
  });
110
110
  return (l, r) => (o(), s("a", {
111
- class: Q(`
111
+ class: G(`
112
112
  icon
113
113
  ${e(t) && "icon--reactive"}
114
114
  ${l.$slots.default ? "icon--centered" : "icon--standalone"}
115
115
  `)
116
116
  }, [
117
117
  g("div", {
118
- class: Q(`
118
+ class: G(`
119
119
  icon__icon
120
120
  ${l.size && `icon__icon--${l.size}`}
121
121
  ${l.iconRight && "icon__icon--right"}
122
122
  `)
123
123
  }, [
124
- (o(), s("svg", E({
124
+ (o(), s("svg", H({
125
125
  width: "24",
126
126
  height: "24",
127
127
  viewBox: "0 0 256 256",
@@ -131,19 +131,19 @@ const fe = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["hre
131
131
  }), [
132
132
  g("use", {
133
133
  href: `/assets/icons.svg#${a.value}`
134
- }, null, 8, Kt)
134
+ }, null, 8, Zt)
135
135
  ], 16))
136
136
  ], 2),
137
- l.$slots.default ? (o(), s("div", Zt, [
138
- I(l.$slots, "default", {}, void 0, !0)
137
+ l.$slots.default ? (o(), s("div", Pt, [
138
+ C(l.$slots, "default", {}, void 0, !0)
139
139
  ])) : y("", !0)
140
140
  ], 2));
141
141
  }
142
142
  });
143
- const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { class: "panel__header-left" }, xt = { key: 1 }, en = {
143
+ const P = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { class: "panel__header-left" }, en = { key: 1 }, tn = {
144
144
  key: 2,
145
145
  style: { "margin-left": "auto" }
146
- }, tn = /* @__PURE__ */ U({
146
+ }, nn = /* @__PURE__ */ q({
147
147
  __name: "aeria-panel",
148
148
  props: {
149
149
  closeHint: { type: Boolean, default: !1 },
@@ -167,7 +167,7 @@ const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
167
167
  },
168
168
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
169
169
  setup(c, { emit: i }) {
170
- const t = c, a = i, l = H(() => t.floating || t.float), r = Y(t.collapsed), u = Y(null), { reachedEnd: p } = We(u), d = () => {
170
+ const t = c, a = i, l = D(() => t.floating || t.float), r = X(t.collapsed), u = X(null), { reachedEnd: p } = We(u), d = () => {
171
171
  a("update:modelValue", !1), a("close");
172
172
  }, h = () => {
173
173
  a("overlayClick");
@@ -175,10 +175,10 @@ const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
175
175
  a("update:collapsed", n), r.value = n;
176
176
  };
177
177
  return (n, f) => {
178
- const k = ne("clickable"), S = ne("loading"), R = ne("overlay");
178
+ const T = ne("clickable"), A = ne("loading"), R = ne("overlay");
179
179
  return n.modelValue ? N((o(), s("div", {
180
180
  key: 0,
181
- class: Q(`
181
+ class: G(`
182
182
  panel
183
183
  ${n.fixedRight && "panel--fixed"}
184
184
  `)
@@ -187,7 +187,7 @@ const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
187
187
  l.value ? "dialog" : "div"
188
188
  ), {
189
189
  "data-component": "panel",
190
- class: Q(`
190
+ class: G(`
191
191
  aeria-surface
192
192
  panel__content
193
193
  ${!(l.value || n.fixedRight) && "panel__content--rounded"}
@@ -198,61 +198,61 @@ const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
198
198
  ${n.transparentMobile && "panel__content--transparent-mobile"}
199
199
  ${n.outerHeader && "panel__content--outer-header"}
200
200
  `),
201
- onClick: f[1] || (f[1] = (W) => W.stopPropagation())
201
+ onClick: f[1] || (f[1] = (F) => F.stopPropagation())
202
202
  }, {
203
203
  default: v(() => [
204
204
  n.$slots.header || n.title ? (o(), s("div", {
205
205
  key: 0,
206
- class: Q(`
206
+ class: G(`
207
207
  panel__header
208
208
  ${r.value && "panel__header--collapsed"}
209
209
  ${n.outerHeader && "panel__header--outer"}
210
210
  `)
211
211
  }, [
212
- g("div", Nt, [
213
- n.$slots.header ? I(n.$slots, "header", { key: 0 }, void 0, !0) : n.title ? (o(), s("div", xt, b(n.title), 1)) : y("", !0),
214
- n.$slots.extra ? (o(), s("div", en, [
215
- I(n.$slots, "extra", {}, void 0, !0)
212
+ g("div", xt, [
213
+ n.$slots.header ? C(n.$slots, "header", { key: 0 }, void 0, !0) : n.title ? (o(), s("div", en, b(n.title), 1)) : y("", !0),
214
+ n.$slots.extra ? (o(), s("div", tn, [
215
+ C(n.$slots, "extra", {}, void 0, !0)
216
216
  ])) : y("", !0)
217
217
  ]),
218
218
  n.collapsible ? N((o(), $(P, {
219
219
  key: 0,
220
220
  reactive: "",
221
221
  icon: r.value ? "plus" : "minus",
222
- onClick: f[0] || (f[0] = (W) => _(!r.value))
222
+ onClick: f[0] || (f[0] = (F) => _(!r.value))
223
223
  }, null, 8, ["icon"])), [
224
- [k]
224
+ [T]
225
225
  ]) : n.closeHint ? N((o(), $(P, {
226
226
  key: 1,
227
227
  reactive: "",
228
228
  icon: "x",
229
229
  onClick: d
230
230
  }, null, 512)), [
231
- [k]
231
+ [T]
232
232
  ]) : y("", !0)
233
233
  ], 2)) : y("", !0),
234
234
  r.value ? y("", !0) : N((o(), s("div", {
235
235
  key: 1,
236
236
  ref_key: "body",
237
237
  ref: u,
238
- class: Q(`
238
+ class: G(`
239
239
  panel__body
240
240
  ${n.fill || "panel__body--padded"}
241
241
  `)
242
242
  }, [
243
- I(n.$slots, "default", {}, void 0, !0)
243
+ C(n.$slots, "default", {}, void 0, !0)
244
244
  ], 2)), [
245
- [S, n.loading]
245
+ [A, n.loading]
246
246
  ]),
247
247
  n.$slots.footer ? (o(), s("div", {
248
248
  key: 2,
249
- class: Q(`
249
+ class: G(`
250
250
  panel__footer
251
251
  ${n.fillFooter || "panel__footer--padded"}
252
252
  ${e(p) || "panel__footer--shadowed"}
253
253
  `)
254
254
  }, [
255
- I(n.$slots, "footer", {}, void 0, !0)
255
+ C(n.$slots, "footer", {}, void 0, !0)
256
256
  ], 2)) : y("", !0)
257
257
  ]),
258
258
  _: 3
@@ -268,10 +268,10 @@ const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
268
268
  };
269
269
  }
270
270
  });
271
- const Ae = /* @__PURE__ */ G(tn, [["__scopeId", "data-v-6fdc75a0"]]), nn = { class: "button__content" }, on = {
271
+ const Ae = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-6fdc75a0"]]), on = { class: "button__content" }, an = {
272
272
  key: 1,
273
273
  class: "button__content"
274
- }, an = /* @__PURE__ */ U({
274
+ }, ln = /* @__PURE__ */ q({
275
275
  __name: "aeria-button",
276
276
  props: {
277
277
  size: {},
@@ -293,7 +293,7 @@ const Ae = /* @__PURE__ */ G(tn, [["__scopeId", "data-v-6fdc75a0"]]), nn = { cla
293
293
  return ve("buttonSize", i.size) || "medium";
294
294
  })();
295
295
  return (l, r) => (o(), $(fe, {
296
- class: Q(`
296
+ class: G(`
297
297
  button
298
298
  button--${e(t)}
299
299
  button--${e(a)}
@@ -307,20 +307,20 @@ const Ae = /* @__PURE__ */ G(tn, [["__scopeId", "data-v-6fdc75a0"]]), nn = { cla
307
307
  icon: l.icon
308
308
  }, {
309
309
  default: v(() => [
310
- g("div", nn, [
311
- I(l.$slots, "default", {}, void 0, !0)
310
+ g("div", on, [
311
+ C(l.$slots, "default", {}, void 0, !0)
312
312
  ])
313
313
  ]),
314
314
  _: 3
315
- }, 8, ["icon"])) : (o(), s("div", on, [
316
- I(l.$slots, "default", {}, void 0, !0)
315
+ }, 8, ["icon"])) : (o(), s("div", an, [
316
+ C(l.$slots, "default", {}, void 0, !0)
317
317
  ]))
318
318
  ]),
319
319
  _: 3
320
320
  }, 8, ["class", "disabled"]));
321
321
  }
322
322
  });
323
- const ie = /* @__PURE__ */ G(an, [["__scopeId", "data-v-c328251b"]]), ln = { class: "card__picture" }, sn = { class: "card__footer" }, rn = { class: "card__footer-upper" }, un = { class: "card__badge" }, cn = /* @__PURE__ */ U({
323
+ 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__ */ q({
324
324
  __name: "aeria-card",
325
325
  props: {
326
326
  inactive: { type: Boolean },
@@ -328,33 +328,33 @@ const ie = /* @__PURE__ */ G(an, [["__scopeId", "data-v-c328251b"]]), ln = { cla
328
328
  },
329
329
  setup(c) {
330
330
  return (i, t) => (o(), s("div", {
331
- class: Q(`
331
+ class: G(`
332
332
  card
333
333
  ${i.inactive && "card--inactive"}
334
334
  ${i.horizontal && "card--horizontal"}
335
335
  `)
336
336
  }, [
337
- g("div", ln, [
338
- I(i.$slots, "default", {}, void 0, !0)
339
- ]),
340
337
  g("div", sn, [
341
- g("div", rn, [
338
+ C(i.$slots, "default", {}, void 0, !0)
339
+ ]),
340
+ g("div", rn, [
341
+ g("div", un, [
342
342
  g("div", null, [
343
- I(i.$slots, "footer", {}, void 0, !0)
343
+ C(i.$slots, "footer", {}, void 0, !0)
344
344
  ]),
345
- i.$slots.actions ? I(i.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
345
+ i.$slots.actions ? C(i.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
346
346
  ]),
347
- g("div", un, [
348
- I(i.$slots, "badge", {}, void 0, !0)
347
+ g("div", cn, [
348
+ C(i.$slots, "badge", {}, void 0, !0)
349
349
  ])
350
350
  ])
351
351
  ], 2));
352
352
  }
353
353
  });
354
- const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { class: "content__body" }, _n = {
354
+ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { class: "content__body" }, mn = {
355
355
  key: 0,
356
356
  class: "content__section"
357
- }, mn = { class: "content__item" }, fn = /* @__PURE__ */ U({
357
+ }, fn = { class: "content__item" }, vn = /* @__PURE__ */ q({
358
358
  __name: "aeria-context-menu",
359
359
  props: {
360
360
  actions: {},
@@ -367,7 +367,7 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
367
367
  "3566df6d": p.value.x,
368
368
  "3566df6e": p.value.y
369
369
  }));
370
- const t = i, a = Y(null), l = Y(!1), r = (d) => d == null ? void 0 : d.filter((h) => {
370
+ const t = i, a = X(null), l = X(!1), r = (d) => d == null ? void 0 : d.filter((h) => {
371
371
  if (h.roles) {
372
372
  const _ = re("user");
373
373
  return $t(h.roles, _.currentUser.roles);
@@ -378,7 +378,7 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
378
378
  action: d,
379
379
  subject: h
380
380
  }), l.value = !1;
381
- }, p = H(() => {
381
+ }, p = D(() => {
382
382
  if (!a.value)
383
383
  return {
384
384
  x: 0,
@@ -393,7 +393,7 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
393
393
  });
394
394
  return (d, h) => {
395
395
  const _ = ne("overlay");
396
- return o(), s(K, null, [
396
+ return o(), s(J, null, [
397
397
  Object.keys(d.$slots).some((n) => n !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (o(), s("div", {
398
398
  key: 0,
399
399
  ref_key: "contextmenu",
@@ -404,7 +404,7 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
404
404
  class: "contextmenu__trigger",
405
405
  onClick: h[0] || (h[0] = (n) => l.value = !0)
406
406
  }, [
407
- I(d.$slots, "default", {}, void 0, !0)
407
+ C(d.$slots, "default", {}, void 0, !0)
408
408
  ])
409
409
  ], 512)) : y("", !0),
410
410
  l.value ? (o(), $(Ge, {
@@ -418,21 +418,21 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
418
418
  class: "content"
419
419
  }, {
420
420
  default: v(() => [
421
- g("div", pn, [
422
- d.$slots.header ? (o(), s("div", _n, [
423
- I(d.$slots, "header", {}, void 0, !0)
421
+ g("div", _n, [
422
+ d.$slots.header ? (o(), s("div", mn, [
423
+ C(d.$slots, "header", {}, void 0, !0)
424
424
  ])) : y("", !0),
425
425
  Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)).length > 0 ? (o(), s("div", {
426
426
  key: 1,
427
427
  class: "content__section",
428
428
  onClick: h[1] || (h[1] = (n) => l.value = !1)
429
429
  }, [
430
- (o(!0), s(K, null, q(Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)), (n, f) => (o(), $(fe, {
430
+ (o(!0), s(J, null, E(Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)), (n, f) => (o(), $(fe, {
431
431
  key: `slot-${f}`,
432
432
  class: "content__item content__item--reactive"
433
433
  }, {
434
434
  default: v(() => [
435
- I(d.$slots, n, {}, void 0, !0)
435
+ C(d.$slots, n, {}, void 0, !0)
436
436
  ]),
437
437
  _: 2
438
438
  }, 1024))), 128))
@@ -442,10 +442,10 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
442
442
  class: "content__section",
443
443
  onClick: h[2] || (h[2] = (n) => l.value = !1)
444
444
  }, [
445
- (o(!0), s(K, null, q(r(d.actions), (n, f) => (o(), $(fe, {
445
+ (o(!0), s(J, null, E(r(d.actions), (n, f) => (o(), $(fe, {
446
446
  key: `action-${f}`,
447
447
  class: "content__item content__item--reactive",
448
- onClick: (k) => u(n, d.subject)
448
+ onClick: (T) => u(n, d.subject)
449
449
  }, {
450
450
  default: v(() => [
451
451
  n.icon ? (o(), $(P, {
@@ -453,7 +453,7 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
453
453
  icon: n.icon
454
454
  }, {
455
455
  default: v(() => [
456
- D(b(n.translate ? e(F)(n.label, { capitalize: !0 }) : n.label), 1)
456
+ Q(b(n.translate ? e(U)(n.label, { capitalize: !0 }) : n.label), 1)
457
457
  ]),
458
458
  _: 2
459
459
  }, 1032, ["icon"])) : y("", !0)
@@ -466,8 +466,8 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
466
466
  class: "content__section",
467
467
  onClick: h[3] || (h[3] = (n) => l.value = !1)
468
468
  }, [
469
- g("div", mn, [
470
- d.$slots.extra ? I(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
469
+ g("div", fn, [
470
+ d.$slots.extra ? C(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
471
471
  ])
472
472
  ])) : y("", !0)
473
473
  ])
@@ -491,13 +491,13 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
491
491
  };
492
492
  }
493
493
  });
494
- const Ce = /* @__PURE__ */ G(fn, [["__scopeId", "data-v-9e08ccd4"]]), vn = { class: "info__content" }, yn = /* @__PURE__ */ U({
494
+ const Ce = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-9e08ccd4"]]), yn = { class: "info__content" }, hn = /* @__PURE__ */ q({
495
495
  __name: "aeria-info",
496
496
  props: {
497
497
  where: {}
498
498
  },
499
499
  setup(c) {
500
- const i = c, t = je(), a = Y(!1), l = i.where || "top";
500
+ const i = c, t = je(), a = X(!1), l = i.where || "top";
501
501
  return (r, u) => e(t).md ? (o(), s("div", {
502
502
  key: 0,
503
503
  class: "info",
@@ -505,33 +505,33 @@ const Ce = /* @__PURE__ */ G(fn, [["__scopeId", "data-v-9e08ccd4"]]), vn = { cla
505
505
  }, [
506
506
  a.value ? (o(), s("div", {
507
507
  key: 0,
508
- class: Q(`
508
+ class: G(`
509
509
  info__bubble
510
510
  info__bubble--${e(l)}
511
511
  `)
512
512
  }, [
513
- g("div", vn, [
514
- I(r.$slots, "text", {}, void 0, !0)
513
+ g("div", yn, [
514
+ C(r.$slots, "text", {}, void 0, !0)
515
515
  ])
516
516
  ], 2)) : y("", !0),
517
517
  g("div", {
518
518
  onMouseover: u[0] || (u[0] = (p) => a.value = !0)
519
519
  }, [
520
- I(r.$slots, "default", {}, void 0, !0)
520
+ C(r.$slots, "default", {}, void 0, !0)
521
521
  ], 32)
522
- ], 32)) : I(r.$slots, "default", { key: 1 }, void 0, !0);
522
+ ], 32)) : C(r.$slots, "default", { key: 1 }, void 0, !0);
523
523
  }
524
524
  });
525
- const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { class: "input" }, bn = {
525
+ const $n = /* @__PURE__ */ W(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { class: "input" }, gn = {
526
526
  key: 0,
527
527
  class: "input__label"
528
- }, gn = {
528
+ }, kn = {
529
529
  key: 1,
530
530
  class: "input__hint"
531
- }, kn = ["placeholder", "readonly", "value"], Vn = ["value"], Cn = {
531
+ }, Vn = ["placeholder", "readonly", "value"], Cn = ["value"], In = {
532
532
  key: 1,
533
533
  class: "input__clipboard"
534
- }, In = /* @__PURE__ */ U({
534
+ }, An = /* @__PURE__ */ q({
535
535
  __name: "aeria-input",
536
536
  props: {
537
537
  modelValue: {},
@@ -568,7 +568,7 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
568
568
  placeholder: u ? a.description || t.propertyName : a.placeholder
569
569
  };
570
570
  "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (n.min = a.minimum), a.exclusiveMinimum && (n.min = a.exclusiveMinimum + 1), a.maximum && (n.max = a.maximum), a.exclusiveMaximum && (n.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (n.type = !r && a.format === "date-time" ? "datetime-local" : "date"), n.minlength = a.minLength, n.maxlength = a.maxLength)), n.type === "text" && r && (n.type = "search"), mt(() => {
571
- t.modelValue !== null && W(t.modelValue);
571
+ t.modelValue !== null && F(t.modelValue);
572
572
  });
573
573
  const f = () => {
574
574
  try {
@@ -576,16 +576,16 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
576
576
  } catch {
577
577
  return "";
578
578
  }
579
- }, k = Y([
579
+ }, T = X([
580
580
  "date",
581
581
  "date-time"
582
- ].includes(n.type) ? f() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue), S = ((O = t.property) == null ? void 0 : O.type) === "string" && t.property.mask ? Tt(t.property.mask) : null, R = (M) => {
583
- var X;
584
- return typeof k.value == "string" && ((X = t.property) == null ? void 0 : X.type) === "string" && S !== null ? (k.value = S.enmask(k.value, void 0, {
582
+ ].includes(n.type) ? f() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue), A = ((O = t.property) == null ? void 0 : O.type) === "string" && t.property.mask ? Tt(t.property.mask) : null, R = (M) => {
583
+ var K;
584
+ return typeof T.value == "string" && ((K = t.property) == null ? void 0 : K.type) === "string" && A !== null ? (T.value = A.enmask(T.value, void 0, {
585
585
  defaultValue: !0
586
- }), t.property.maskedValue === !0 ? k.value : S.unmask(k.value)) : M;
587
- }, W = (M) => {
588
- const X = (() => {
586
+ }), t.property.maskedValue === !0 ? T.value : A.unmask(T.value)) : M;
587
+ }, F = (M) => {
588
+ const K = (() => {
589
589
  if (!M || typeof M != "string")
590
590
  return M;
591
591
  if (n.type === "number" || n.type === "integer")
@@ -600,27 +600,27 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
600
600
  return R(M);
601
601
  }
602
602
  })();
603
- h("input", X), h("update:modelValue", X);
604
- }, J = (M) => {
605
- const X = M.target.value;
606
- k.value = X, W(X);
603
+ h("input", K), h("update:modelValue", K);
604
+ }, Y = (M) => {
605
+ const K = M.target.value;
606
+ T.value = K, F(K);
607
607
  };
608
- return ue(() => t.modelValue, (M, X) => {
609
- M instanceof Date || (X && !M ? k.value = void 0 : k.value = S ? S.enmask(String(M), void 0, {
608
+ return ue(() => t.modelValue, (M, K) => {
609
+ M instanceof Date || (K && !M ? T.value = void 0 : T.value = A ? A.enmask(String(M), void 0, {
610
610
  defaultValue: !0
611
611
  }) : String(M));
612
- }), (M, X) => {
613
- const B = ne("focus"), ee = ne("clickable");
614
- return o(), s("label", $n, [
615
- e(u) ? y("", !0) : (o(), s("div", bn, [
616
- M.$slots.default ? I(M.$slots, "default", { key: 0 }, void 0, !0) : I(M.$slots, "description", { key: 1 }, void 0, !0)
612
+ }), (M, K) => {
613
+ const w = ne("focus"), x = ne("clickable");
614
+ return o(), s("label", bn, [
615
+ e(u) ? y("", !0) : (o(), s("div", gn, [
616
+ M.$slots.default ? C(M.$slots, "default", { key: 0 }, void 0, !0) : C(M.$slots, "description", { key: 1 }, void 0, !0)
617
617
  ])),
618
- M.$slots.hint ? (o(), s("div", gn, [
619
- I(M.$slots, "hint", {}, void 0, !0)
618
+ M.$slots.hint ? (o(), s("div", kn, [
619
+ C(M.$slots, "hint", {}, void 0, !0)
620
620
  ])) : y("", !0),
621
621
  "element" in e(a) && e(a).element === "textarea" ? (o(), s("div", {
622
622
  key: 2,
623
- class: Q(`
623
+ class: G(`
624
624
  input__container
625
625
  input__container--${e(_)}
626
626
  `)
@@ -629,23 +629,23 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
629
629
  placeholder: n.placeholder,
630
630
  readonly: n.readonly,
631
631
  value: M.modelValue,
632
- class: Q(`
632
+ class: G(`
633
633
  input__textarea
634
634
  input__input--${e(_)}
635
635
  `),
636
- onInput: J
637
- }, null, 42, kn), [
638
- [B, e(a).focus]
636
+ onInput: Y
637
+ }, null, 42, Vn), [
638
+ [w, e(a).focus]
639
639
  ])
640
640
  ], 2)) : (o(), s("div", {
641
641
  key: 3,
642
- class: Q(`
642
+ class: G(`
643
643
  input__container
644
644
  input__container--${e(_)}
645
645
  `)
646
646
  }, [
647
- N(g("input", E(n, {
648
- value: k.value,
647
+ N(g("input", H(n, {
648
+ value: T.value,
649
649
  "data-component": "input",
650
650
  class: `
651
651
  input__input
@@ -653,30 +653,30 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
653
653
  ${e(l) && "input__input--icon"}
654
654
  ${e(p) && "input__input--readOnly"}
655
655
  `,
656
- onInput: J,
657
- onChange: X[0] || (X[0] = (V) => h("change", V))
658
- }), null, 16, Vn), [
659
- [B, e(a).focus]
656
+ onInput: Y,
657
+ onChange: K[0] || (K[0] = (k) => h("change", k))
658
+ }), null, 16, Cn), [
659
+ [w, e(a).focus]
660
660
  ]),
661
661
  e(l) ? (o(), $(P, {
662
662
  key: 0,
663
663
  icon: e(a).icon || "magnifying-glass",
664
- class: Q(`
664
+ class: G(`
665
665
  input__icon
666
666
  input__icon--${e(_)}
667
667
  `)
668
668
  }, null, 8, ["icon", "class"])) : y("", !0),
669
- e(p) ? (o(), s("div", Cn, [
670
- z(hn, null, {
669
+ e(p) ? (o(), s("div", In, [
670
+ z($n, null, {
671
671
  text: v(() => [
672
- D("Copiar")
672
+ Q("Copiar")
673
673
  ]),
674
674
  default: v(() => [
675
675
  N(z(P, {
676
676
  icon: "clipboard",
677
- onClick: X[1] || (X[1] = (V) => d(String(M.modelValue || "")))
677
+ onClick: K[1] || (K[1] = (k) => d(String(M.modelValue || "")))
678
678
  }, null, 512), [
679
- [ee]
679
+ [x]
680
680
  ])
681
681
  ]),
682
682
  _: 1
@@ -687,10 +687,10 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
687
687
  };
688
688
  }
689
689
  });
690
- const Ie = /* @__PURE__ */ G(In, [["__scopeId", "data-v-7fdfb21c"]]), An = ["value"], On = {
690
+ const Ie = /* @__PURE__ */ W(An, [["__scopeId", "data-v-7fdfb21c"]]), On = ["value"], wn = {
691
691
  key: 1,
692
692
  value: ""
693
- }, wn = ["value", "data-selected"], Sn = /* @__PURE__ */ U({
693
+ }, Sn = ["value", "data-selected"], Bn = /* @__PURE__ */ q({
694
694
  __name: "aeria-select",
695
695
  props: {
696
696
  modelValue: {},
@@ -704,20 +704,20 @@ const Ie = /* @__PURE__ */ G(In, [["__scopeId", "data-v-7fdfb21c"]]), An = ["val
704
704
  },
705
705
  emits: ["update:modelValue", "change"],
706
706
  setup(c, { emit: i }) {
707
- const t = c, a = i, l = Y(null), r = t.property || {}, u = (_) => {
707
+ const t = c, a = i, l = X(null), r = t.property || {}, u = (_) => {
708
708
  t.booleanRef && (p.value = _), a("update:modelValue", (_ == null ? void 0 : _._id) || _), a("change", (_ == null ? void 0 : _._id) || _);
709
709
  }, p = t.booleanRef ? (() => {
710
- const _ = Y(t.modelValue);
711
- return H({
710
+ const _ = X(t.modelValue);
711
+ return D({
712
712
  get: () => _.value === "true" ? !0 : _.value === "false" ? !1 : null,
713
713
  set: (f) => {
714
714
  _.value = f;
715
715
  }
716
716
  });
717
- })() : H({
717
+ })() : D({
718
718
  get: () => t.modelValue,
719
719
  set: u
720
- }), d = (_) => Array.isArray(t.modelValue) ? t.modelValue.includes(_) : t.modelValue === _, h = H(() => t.multiple ? typeof t.multiple == "number" ? t.multiple : 5 : 1);
720
+ }), d = (_) => Array.isArray(t.modelValue) ? t.modelValue.includes(_) : t.modelValue === _, h = D(() => t.multiple ? typeof t.multiple == "number" ? t.multiple : 5 : 1);
721
721
  return t.multiple && ue(() => t.modelValue, (_) => {
722
722
  var f;
723
723
  if (!l.value)
@@ -725,12 +725,12 @@ const Ie = /* @__PURE__ */ G(In, [["__scopeId", "data-v-7fdfb21c"]]), An = ["val
725
725
  const n = l.value.querySelector('option[data-selected="true"]');
726
726
  n && n.removeAttribute("data-selected"), (f = l.value.querySelector(`option[value="${_}"]`)) == null || f.setAttribute("data-selected", "true");
727
727
  }), (_, n) => (o(), s("div", {
728
- class: Q({
728
+ class: G({
729
729
  select: !0,
730
730
  "select--outline": !_.noOutline
731
731
  })
732
732
  }, [
733
- g("select", E({
733
+ g("select", H({
734
734
  ref_key: "select",
735
735
  ref: l,
736
736
  value: e(p)
@@ -747,35 +747,35 @@ const Ie = /* @__PURE__ */ G(In, [["__scopeId", "data-v-7fdfb21c"]]), An = ["val
747
747
  key: 0,
748
748
  icon: e(r).icon
749
749
  }, null, 8, ["icon"])) : y("", !0),
750
- t.multiple ? y("", !0) : (o(), s("option", On, b(e(F)("none")), 1)),
751
- (o(!0), s(K, null, q("enum" in e(r) ? e(r).enum : [], (f) => (o(), s("option", {
750
+ t.multiple ? y("", !0) : (o(), s("option", wn, b(e(U)("none")), 1)),
751
+ (o(!0), s(J, null, E("enum" in e(r) ? e(r).enum : [], (f) => (o(), s("option", {
752
752
  key: f,
753
753
  value: f,
754
754
  "data-selected": d(f)
755
- }, b(e(r).translate ? e(F)(f) : f), 9, wn))), 128)),
756
- I(_.$slots, "default", {}, void 0, !0)
757
- ], 16, An)
755
+ }, b(e(r).translate ? e(U)(f) : f), 9, Sn))), 128)),
756
+ C(_.$slots, "default", {}, void 0, !0)
757
+ ], 16, On)
758
758
  ], 2));
759
759
  }
760
760
  });
761
- const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), Bn = { class: "pagination" }, jn = ["value"], Tn = { class: "pagination__control" }, Ln = { class: "pagination__page-input" }, Rn = /* @__PURE__ */ U({
761
+ const Ee = /* @__PURE__ */ W(Bn, [["__scopeId", "data-v-7a33443b"]]), jn = { class: "pagination" }, Tn = ["value"], Ln = { class: "pagination__control" }, Rn = { class: "pagination__page-input" }, zn = /* @__PURE__ */ q({
762
762
  __name: "aeria-pagination",
763
763
  props: {
764
764
  pagination: {}
765
765
  },
766
766
  emits: ["paginate"],
767
767
  setup(c, { emit: i }) {
768
- const t = c, a = i, l = H({
768
+ const t = c, a = i, l = D({
769
769
  get: () => Math.floor(t.pagination.offset / t.pagination.limit),
770
770
  set: (h) => {
771
771
  t.pagination.offset = h * t.pagination.limit;
772
772
  }
773
- }), r = H({
773
+ }), r = D({
774
774
  get: () => t.pagination.limit,
775
775
  set: (h) => {
776
776
  t.pagination.limit = Number(h);
777
777
  }
778
- }), u = Y(l.value ? l.value + 1 : 1), p = H(() => Math.ceil(t.pagination.recordsTotal / t.pagination.limit)), d = (h) => {
778
+ }), u = X(l.value ? l.value + 1 : 1), p = D(() => Math.ceil(t.pagination.recordsTotal / t.pagination.limit)), d = (h) => {
779
779
  l.value = h === "previous" ? l.value - 1 : l.value + 1;
780
780
  };
781
781
  return ue([
@@ -786,7 +786,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
786
786
  offset: l.value * r.value,
787
787
  limit: r.value
788
788
  });
789
- }), (h, _) => (o(), s("div", Bn, [
789
+ }), (h, _) => (o(), s("div", jn, [
790
790
  z(Ee, {
791
791
  modelValue: r.value,
792
792
  "onUpdate:modelValue": _[0] || (_[0] = (n) => r.value = n),
@@ -797,14 +797,14 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
797
797
  class: "pagination__control"
798
798
  }, {
799
799
  default: v(() => [
800
- (o(!0), s(K, null, q(e(Lt), (n) => (o(), s("option", {
800
+ (o(!0), s(J, null, E(e(Lt), (n) => (o(), s("option", {
801
801
  key: `limit-${n}`,
802
802
  value: n
803
- }, b(n), 9, jn))), 128))
803
+ }, b(n), 9, Tn))), 128))
804
804
  ]),
805
805
  _: 1
806
806
  }, 8, ["modelValue"]),
807
- g("div", Tn, [
807
+ g("div", Ln, [
808
808
  z(fe, {
809
809
  onClick: _[1] || (_[1] = (n) => l.value = 0)
810
810
  }, {
@@ -828,7 +828,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
828
828
  ]),
829
829
  _: 1
830
830
  }, 8, ["disabled"]),
831
- g("div", Ln, [
831
+ g("div", Rn, [
832
832
  (o(), $(Ie, {
833
833
  key: l.value,
834
834
  modelValue: u.value,
@@ -841,7 +841,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
841
841
  l.value = u.value === 0 ? 0 : u.value - 1;
842
842
  })
843
843
  }, null, 8, ["modelValue"])),
844
- g("span", null, b(e(F)("of")) + " " + b(p.value), 1)
844
+ g("span", null, b(e(U)("of")) + " " + b(p.value), 1)
845
845
  ]),
846
846
  z(fe, {
847
847
  disabled: l.value === p.value - 1,
@@ -870,10 +870,10 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
870
870
  ]));
871
871
  }
872
872
  });
873
- const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { class: "checkbox__text" }, Fn = ["innerHTML"], Un = { class: "checkbox__hint" }, qn = ["innerHTML"], En = {
873
+ const Mn = /* @__PURE__ */ W(zn, [["__scopeId", "data-v-41aa1ffc"]]), Fn = { class: "checkbox__text" }, Un = ["innerHTML"], qn = { class: "checkbox__hint" }, En = ["innerHTML"], Hn = {
874
874
  inheritAttrs: !1
875
- }, Hn = /* @__PURE__ */ U({
876
- ...En,
875
+ }, Dn = /* @__PURE__ */ q({
876
+ ...Hn,
877
877
  __name: "aeria-checkbox",
878
878
  props: {
879
879
  modelValue: {},
@@ -889,7 +889,7 @@ const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { cla
889
889
  const t = c, a = t.property || {}, l = !("enum" in a) && [
890
890
  "array",
891
891
  "boolean"
892
- ].includes(a.type) ? "checkbox" : "radio", r = i, u = t.value || !1, p = H({
892
+ ].includes(a.type) ? "checkbox" : "radio", r = i, u = t.value || !1, p = D({
893
893
  get: () => {
894
894
  var d;
895
895
  return "type" in a && a.type === "boolean" ? !!t.value : "items" in a ? (d = t.modelValue) == null ? void 0 : d.includes(t.value) : t.modelValue === t.value;
@@ -915,12 +915,12 @@ const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { cla
915
915
  return (d, h) => {
916
916
  const _ = ne("clickable");
917
917
  return N((o(), s("label", {
918
- class: Q(`
918
+ class: G(`
919
919
  checkbox
920
920
  ${e(a).readOnly && "checkbox--readOnly"}
921
921
  `)
922
922
  }, [
923
- N(g("input", E({
923
+ N(g("input", H({
924
924
  "onUpdate:modelValue": h[0] || (h[0] = (n) => p.value = n)
925
925
  }, {
926
926
  type: e(l),
@@ -929,18 +929,18 @@ const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { cla
929
929
  }, { class: "checkbox__input" }), null, 16), [
930
930
  [Ct, p.value]
931
931
  ]),
932
- g("div", Mn, [
932
+ g("div", Fn, [
933
933
  g("div", null, [
934
- d.$slots.description ? I(d.$slots, "description", { key: 0 }, void 0, !0) : e(u) ? (o(), s("div", {
934
+ d.$slots.description ? C(d.$slots, "description", { key: 0 }, void 0, !0) : e(u) ? (o(), s("div", {
935
935
  key: 1,
936
- innerHTML: e(a).translate ? e(F)(e(u)) : e(u)
937
- }, null, 8, Fn)) : I(d.$slots, "default", { key: 2 }, void 0, !0)
936
+ innerHTML: e(a).translate ? e(U)(e(u)) : e(u)
937
+ }, null, 8, Un)) : C(d.$slots, "default", { key: 2 }, void 0, !0)
938
938
  ]),
939
- g("div", Un, [
940
- d.$slots.hint ? I(d.$slots, "hint", { key: 0 }, void 0, !0) : e(a).hint ? (o(), s("div", {
939
+ g("div", qn, [
940
+ d.$slots.hint ? C(d.$slots, "hint", { key: 0 }, void 0, !0) : e(a).hint ? (o(), s("div", {
941
941
  key: 1,
942
942
  innerHTML: e(a).hint
943
- }, null, 8, qn)) : y("", !0)
943
+ }, null, 8, En)) : y("", !0)
944
944
  ])
945
945
  ])
946
946
  ], 2)), [
@@ -949,10 +949,10 @@ const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { cla
949
949
  };
950
950
  }
951
951
  });
952
- const Dn = /* @__PURE__ */ G(Hn, [["__scopeId", "data-v-256eb557"]]), Qn = {
952
+ const Qn = /* @__PURE__ */ W(Dn, [["__scopeId", "data-v-256eb557"]]), Gn = {
953
953
  inheritAttrs: !1
954
- }, Gn = /* @__PURE__ */ U({
955
- ...Qn,
954
+ }, Wn = /* @__PURE__ */ q({
955
+ ...Gn,
956
956
  __name: "aeria-options",
957
957
  props: {
958
958
  modelValue: {},
@@ -979,11 +979,11 @@ const Dn = /* @__PURE__ */ G(Hn, [["__scopeId", "data-v-256eb557"]]), Qn = {
979
979
  grid-template-columns: repeat(var(--columns), 1fr);
980
980
  `)
981
981
  }, [
982
- (o(!0), s(K, null, q(e(l), (d) => (o(), s("div", {
982
+ (o(!0), s(J, null, E(e(l), (d) => (o(), s("div", {
983
983
  key: `option-${d}`,
984
984
  class: "options__checkbox"
985
985
  }, [
986
- z(Dn, E({ ref_for: !0 }, {
986
+ z(Qn, H({ ref_for: !0 }, {
987
987
  value: d,
988
988
  property: u.property
989
989
  }, {
@@ -994,10 +994,10 @@ const Dn = /* @__PURE__ */ G(Hn, [["__scopeId", "data-v-256eb557"]]), Qn = {
994
994
  ], 4));
995
995
  }
996
996
  });
997
- const Wn = /* @__PURE__ */ G(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) => (Fe("data-v-30f5a5ca"), c = c(), Ue(), c), Yn = { class: "switch-wrapper" }, Jn = /* @__PURE__ */ Xn(() => /* @__PURE__ */ g("div", { class: "switch__slider" }, null, -1)), Kn = { key: 1 }, Zn = {
997
+ const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) => (Fe("data-v-30f5a5ca"), c = c(), Ue(), c), Yn = { class: "switch-wrapper" }, Jn = /* @__PURE__ */ Xn(() => /* @__PURE__ */ g("div", { class: "switch__slider" }, null, -1)), Zn = { key: 1 }, Pn = {
998
998
  inheritAttrs: !1
999
- }, Pn = /* @__PURE__ */ U({
1000
- ...Zn,
999
+ }, Nn = /* @__PURE__ */ q({
1000
+ ...Pn,
1001
1001
  __name: "aeria-switch",
1002
1002
  props: {
1003
1003
  modelValue: {},
@@ -1015,7 +1015,7 @@ const Wn = /* @__PURE__ */ G(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) =
1015
1015
  const d = ne("clickable");
1016
1016
  return o(), s("div", Yn, [
1017
1017
  N((o(), s("a", {
1018
- class: Q(`
1018
+ class: G(`
1019
1019
  switch
1020
1020
  ${u.modelValue && "switch--active"}
1021
1021
  ${e(l).readOnly && "switch--readOnly"}
@@ -1024,7 +1024,7 @@ const Wn = /* @__PURE__ */ G(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) =
1024
1024
  }, [
1025
1025
  Jn,
1026
1026
  g("div", {
1027
- class: Q(`
1027
+ class: G(`
1028
1028
  switch__dummy
1029
1029
  ${!u.modelValue && "switch__dummy--flex"}
1030
1030
  `)
@@ -1034,35 +1034,35 @@ const Wn = /* @__PURE__ */ G(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) =
1034
1034
  blocked: e(l).readOnly
1035
1035
  }]
1036
1036
  ]),
1037
- u.$slots.default ? I(u.$slots, "default", { key: 0 }, void 0, !0) : (o(), s("div", Kn, b(e(l).description || u.propertyName), 1))
1037
+ u.$slots.default ? C(u.$slots, "default", { key: 0 }, void 0, !0) : (o(), s("div", Zn, b(e(l).description || u.propertyName), 1))
1038
1038
  ]);
1039
1039
  };
1040
1040
  }
1041
1041
  });
1042
- const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) => (Fe("data-v-153a2e0f"), c = c(), Ue(), c), xn = { class: "picture" }, eo = {
1042
+ const xn = /* @__PURE__ */ W(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) => (Fe("data-v-153a2e0f"), c = c(), Ue(), c), eo = { class: "picture" }, to = {
1043
1043
  key: 0,
1044
1044
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1045
- }, to = ["src", "alt"], no = {
1045
+ }, no = ["src", "alt"], oo = {
1046
1046
  key: 0,
1047
1047
  class: "picture__meta"
1048
- }, oo = ["src"], ao = /* @__PURE__ */ gt(() => /* @__PURE__ */ g("line", {
1048
+ }, ao = ["src"], lo = /* @__PURE__ */ gt(() => /* @__PURE__ */ g("line", {
1049
1049
  x1: "0",
1050
1050
  y1: "0",
1051
1051
  x2: "200",
1052
1052
  y2: "200",
1053
1053
  stroke: "#000",
1054
1054
  "vector-effect": "non-scaling-stroke"
1055
- }, null, -1)), lo = /* @__PURE__ */ gt(() => /* @__PURE__ */ g("line", {
1055
+ }, null, -1)), so = /* @__PURE__ */ gt(() => /* @__PURE__ */ g("line", {
1056
1056
  x1: "200",
1057
1057
  y1: "0",
1058
1058
  x2: "0",
1059
1059
  y2: "200",
1060
1060
  stroke: "#000",
1061
1061
  "vector-effect": "non-scaling-stroke"
1062
- }, null, -1)), so = [
1063
- ao,
1064
- lo
1065
- ], io = { key: 5 }, ro = /* @__PURE__ */ U({
1062
+ }, null, -1)), io = [
1063
+ lo,
1064
+ so
1065
+ ], ro = { key: 5 }, uo = /* @__PURE__ */ q({
1066
1066
  __name: "aeria-picture",
1067
1067
  props: {
1068
1068
  url: {},
@@ -1077,16 +1077,16 @@ const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
1077
1077
  meta: {}
1078
1078
  },
1079
1079
  setup(c) {
1080
- const i = c, t = H(() => i.fileId ? `${yt}/file/${i.fileId}/picture` : i.url || i.modelValue), a = Y(!1);
1080
+ const i = c, t = D(() => i.fileId ? `${yt}/file/${i.fileId}/picture` : i.url || i.modelValue), a = X(!1);
1081
1081
  return (l, r) => {
1082
1082
  var p;
1083
1083
  const u = ne("overlay");
1084
- return o(), s("figure", xn, [
1084
+ return o(), s("figure", eo, [
1085
1085
  t.value ? (o(), $(Ge, {
1086
1086
  key: 0,
1087
1087
  to: "main"
1088
1088
  }, [
1089
- a.value ? N((o(), s("div", eo, [
1089
+ a.value ? N((o(), s("div", to, [
1090
1090
  g("img", {
1091
1091
  src: t.value,
1092
1092
  alt: l.alt,
@@ -1095,8 +1095,8 @@ const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
1095
1095
  object-fit: contain;
1096
1096
  `,
1097
1097
  onClick: r[0] || (r[0] = (d) => a.value = !0)
1098
- }, null, 8, to),
1099
- (p = l.meta) != null && p.owner ? (o(), s("div", no, " Criado por " + b(l.meta.owner.name) + " em " + b(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1098
+ }, null, 8, no),
1099
+ (p = l.meta) != null && p.owner ? (o(), s("div", oo, " Criado por " + b(l.meta.owner.name) + " em " + b(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1100
1100
  ])), [
1101
1101
  [u, {
1102
1102
  click: () => {
@@ -1108,7 +1108,7 @@ const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
1108
1108
  t.value ? (o(), s("img", {
1109
1109
  key: 1,
1110
1110
  src: t.value,
1111
- class: Q(`
1111
+ class: G(`
1112
1112
  picture__image
1113
1113
  ${l.bordered && "picture__image--bordered"}
1114
1114
  ${l.expandable && "picture__image--expandable"}
@@ -1121,9 +1121,9 @@ const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
1121
1121
  onClick: r[1] || (r[1] = () => {
1122
1122
  l.expandable && (a.value = !0);
1123
1123
  })
1124
- }, null, 14, oo)) : l.$slots.fallback ? I(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? I(l.$slots, "default", { key: 3 }, void 0, !0) : (o(), s("svg", {
1124
+ }, null, 14, ao)) : l.$slots.fallback ? C(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? C(l.$slots, "default", { key: 3 }, void 0, !0) : (o(), s("svg", {
1125
1125
  key: 4,
1126
- class: Q(["picture__background", `
1126
+ class: G(["picture__background", `
1127
1127
  ${l.bordered && "picture__image--bordered"}
1128
1128
  `]),
1129
1129
  xmlns: "http://www.w3.org/2000/svg",
@@ -1134,21 +1134,21 @@ const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
1134
1134
  width: ${l.width || "100%"};
1135
1135
  height: ${l.height || "100%"};
1136
1136
  `)
1137
- }, so, 6)),
1138
- l.$slots.caption ? (o(), s("figcaption", io, [
1139
- I(l.$slots, "caption", {}, void 0, !0)
1137
+ }, io, 6)),
1138
+ l.$slots.caption ? (o(), s("figcaption", ro, [
1139
+ C(l.$slots, "caption", {}, void 0, !0)
1140
1140
  ])) : y("", !0)
1141
1141
  ]);
1142
1142
  };
1143
1143
  }
1144
1144
  });
1145
- const Me = /* @__PURE__ */ G(ro, [["__scopeId", "data-v-153a2e0f"]]), uo = { class: "file" }, co = { key: 0 }, po = ["href"], _o = { class: "file__actions" }, mo = ["accept"], fo = {
1145
+ const Me = /* @__PURE__ */ W(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { class: "file" }, po = { key: 0 }, _o = ["href"], mo = { class: "file__actions" }, fo = ["accept"], vo = {
1146
1146
  key: 0,
1147
1147
  class: "file__buttons"
1148
- }, vo = {
1148
+ }, yo = {
1149
1149
  key: 1,
1150
1150
  class: "file__buttons"
1151
- }, yo = /* @__PURE__ */ U({
1151
+ }, ho = /* @__PURE__ */ q({
1152
1152
  __name: "aeria-file",
1153
1153
  props: {
1154
1154
  modelValue: {},
@@ -1161,82 +1161,86 @@ const Me = /* @__PURE__ */ G(ro, [["__scopeId", "data-v-153a2e0f"]]), uo = { cla
1161
1161
  },
1162
1162
  emits: ["update:content", "change", "update:modelValue"],
1163
1163
  setup(c, { emit: i }) {
1164
- const t = c, a = i, r = Te() ? ge() : null, u = Y(null), p = H(() => {
1165
- var k;
1166
- return u.value ? URL.createObjectURL(u.value) : (k = t.modelValue) == null ? void 0 : k.link;
1167
- }), d = H(() => {
1168
- var k, S, R;
1169
- return /^image\//.test((k = t.modelValue) == null ? void 0 : k.type) && !((S = u.value) != null && S.type) || /^image\//.test((R = u.value) == null ? void 0 : R.type);
1170
- }), h = (k) => new Promise((S) => {
1171
- const R = new FileReader();
1172
- R.onload = () => S(R.result), R.readAsArrayBuffer(k);
1164
+ var T;
1165
+ const t = c, a = i, r = Te() ? ge() : null, u = X(((T = t.modelValue) == null ? void 0 : T.file) || null), p = D(() => {
1166
+ var A;
1167
+ return u.value ? URL.createObjectURL(u.value) : (A = t.modelValue) == null ? void 0 : A.link;
1168
+ }), d = D(() => {
1169
+ var A, R, F;
1170
+ return /^image\//.test((A = t.modelValue) == null ? void 0 : A.type) && !((R = u.value) != null && R.type) || /^image\//.test((F = u.value) == null ? void 0 : F.type);
1171
+ }), h = (A) => new Promise((R) => {
1172
+ const F = new FileReader();
1173
+ F.onload = () => R(F.result), F.readAsArrayBuffer(A);
1173
1174
  }), _ = () => {
1174
- u.value = null;
1175
- }, n = async (k) => {
1176
- u.value = k.target.files[0];
1177
- const S = u.value, R = await h(S);
1175
+ t.modelValue.tempId && a("update:modelValue", null), u.value = null;
1176
+ }, n = async (A) => {
1177
+ u.value = A.target.files[0];
1178
+ const R = u.value, F = await h(R);
1178
1179
  if (r) {
1179
- const { data: { error: W, result: J } } = await Rt(`${yt}/${r.$id}/upload?name=${S.name}`, R, {
1180
+ const { data: { error: Y, result: O } } = await Rt(`${yt}/${r.$id}/upload?name=${R.name}`, F, {
1180
1181
  params: {
1181
1182
  method: "POST",
1182
1183
  headers: {
1183
- "content-type": S.type || "application/octet-stream",
1184
+ "content-type": R.type || "application/octet-stream",
1184
1185
  "x-stream-request": "1"
1185
1186
  }
1186
1187
  }
1187
1188
  });
1188
- if (W)
1189
+ if (Y)
1189
1190
  return;
1190
- a("update:modelValue", J);
1191
+ a("update:modelValue", {
1192
+ tempId: O.tempId,
1193
+ file: R
1194
+ });
1191
1195
  } else
1192
- a("update:modelValue", S);
1193
- a("update:content", R), a("change", R);
1196
+ a("update:modelValue", R);
1197
+ a("update:content", F), a("change", F);
1194
1198
  }, f = async () => {
1195
1199
  a("update:modelValue", null);
1196
1200
  };
1197
- return (k, S) => {
1198
- var R, W, J, O, M, X;
1199
- return o(), s("div", uo, [
1200
- u.value || (R = k.modelValue) != null && R._id ? (o(), s("div", co, [
1201
+ return (A, R) => {
1202
+ var F, Y, O, M, K, w;
1203
+ return o(), s("div", co, [
1204
+ u.value || (F = A.modelValue) != null && F._id ? (o(), s("div", po, [
1201
1205
  d.value ? (o(), $(Me, {
1202
1206
  key: 0,
1203
1207
  modelValue: p.value,
1204
- "onUpdate:modelValue": S[0] || (S[0] = (B) => p.value = B),
1208
+ "onUpdate:modelValue": R[0] || (R[0] = (x) => p.value = x),
1205
1209
  alt: "Image preview",
1206
- class: Q(`
1210
+ class: G(`
1207
1211
  file__image
1208
- ${!e(r) || ((W = k.modelValue) == null ? void 0 : W._id) || "file__image--unsent"}
1212
+ ${!e(r) || ((Y = A.modelValue) == null ? void 0 : Y._id) || "file__image--unsent"}
1209
1213
  `)
1210
1214
  }, null, 8, ["modelValue", "class"])) : y("", !0),
1211
- (J = k.modelValue) != null && J._id ? (o(), s("a", {
1215
+ (O = A.modelValue) != null && O._id ? (o(), s("a", {
1212
1216
  key: 1,
1213
- href: k.modelValue.download_link
1214
- }, b(k.modelValue.filename), 9, po)) : y("", !0)
1217
+ href: A.modelValue.download_link
1218
+ }, b(A.modelValue.filename), 9, _o)) : y("", !0)
1215
1219
  ])) : y("", !0),
1216
- g("div", _o, [
1220
+ g("div", mo, [
1217
1221
  g("input", {
1218
1222
  ref: "file",
1219
1223
  type: "file",
1220
- accept: (M = (O = k.property) == null ? void 0 : O.accept) == null ? void 0 : M.join(","),
1224
+ accept: (K = (M = A.property) == null ? void 0 : M.accept) == null ? void 0 : K.join(","),
1221
1225
  onChange: n
1222
- }, null, 40, mo),
1223
- u.value ? (o(), s("div", fo, [
1226
+ }, null, 40, fo),
1227
+ u.value ? (o(), s("div", vo, [
1224
1228
  z(ie, {
1225
1229
  small: "",
1226
1230
  onClick: ze(_, ["prevent"])
1227
1231
  }, {
1228
1232
  default: v(() => [
1229
- D(b(e(F)("action.clear", { capitalize: !0 })), 1)
1233
+ Q(b(e(U)("action.clear", { capitalize: !0 })), 1)
1230
1234
  ]),
1231
1235
  _: 1
1232
1236
  })
1233
- ])) : (X = k.modelValue) != null && X._id ? (o(), s("div", vo, [
1237
+ ])) : (w = A.modelValue) != null && w._id ? (o(), s("div", yo, [
1234
1238
  z(ie, {
1235
1239
  small: "",
1236
1240
  onClick: ze(f, ["prevent"])
1237
1241
  }, {
1238
1242
  default: v(() => [
1239
- D(b(e(F)("action.remove", { capitalize: !0 })), 1)
1243
+ Q(b(e(U)("action.remove", { capitalize: !0 })), 1)
1240
1244
  ]),
1241
1245
  _: 1
1242
1246
  })
@@ -1246,37 +1250,37 @@ const Me = /* @__PURE__ */ G(ro, [["__scopeId", "data-v-153a2e0f"]]), uo = { cla
1246
1250
  };
1247
1251
  }
1248
1252
  });
1249
- const ho = /* @__PURE__ */ G(yo, [["__scopeId", "data-v-01776346"]]), $o = { class: "container" }, bo = {
1253
+ const $o = /* @__PURE__ */ W(ho, [["__scopeId", "data-v-0e66cd51"]]), bo = { class: "container" }, go = {
1250
1254
  key: 1,
1251
1255
  class: "container__footer"
1252
- }, go = /* @__PURE__ */ U({
1256
+ }, ko = /* @__PURE__ */ q({
1253
1257
  __name: "aeria-search-container",
1254
1258
  props: {
1255
1259
  observeScroll: { type: Boolean }
1256
1260
  },
1257
1261
  emits: ["endReached"],
1258
1262
  setup(c, { emit: i }) {
1259
- const t = c, a = i, l = Y(null), r = t.observeScroll ? We(l, {
1263
+ const t = c, a = i, l = X(null), r = t.observeScroll ? We(l, {
1260
1264
  antecipate: 100
1261
1265
  }).reachedEnd : null;
1262
1266
  return r !== null && ue(r, (u) => {
1263
1267
  u && a("endReached", u);
1264
- }), (u, p) => (o(), s("div", $o, [
1268
+ }), (u, p) => (o(), s("div", bo, [
1265
1269
  u.$slots.default ? (o(), s("div", {
1266
1270
  key: 0,
1267
1271
  ref_key: "containerEl",
1268
1272
  ref: l,
1269
1273
  class: "container__content"
1270
1274
  }, [
1271
- I(u.$slots, "default", {}, void 0, !0)
1275
+ C(u.$slots, "default", {}, void 0, !0)
1272
1276
  ], 512)) : y("", !0),
1273
- u.$slots.footer ? (o(), s("div", bo, [
1274
- I(u.$slots, "footer", {}, void 0, !0)
1277
+ u.$slots.footer ? (o(), s("div", go, [
1278
+ C(u.$slots, "footer", {}, void 0, !0)
1275
1279
  ])) : y("", !0)
1276
1280
  ]));
1277
1281
  }
1278
1282
  });
1279
- const it = /* @__PURE__ */ G(go, [["__scopeId", "data-v-c86e2d2a"]]), ko = { class: "item__values" }, Vo = /* @__PURE__ */ U({
1283
+ const it = /* @__PURE__ */ W(ko, [["__scopeId", "data-v-c86e2d2a"]]), Vo = { class: "item__values" }, Co = /* @__PURE__ */ q({
1280
1284
  __name: "aeria-search-item",
1281
1285
  props: {
1282
1286
  item: {},
@@ -1286,10 +1290,10 @@ const it = /* @__PURE__ */ G(go, [["__scopeId", "data-v-c86e2d2a"]]), ko = { cla
1286
1290
  },
1287
1291
  emits: ["update:modelValue", "change"],
1288
1292
  setup(c, { emit: i }) {
1289
- const t = c, a = i, l = t.property, r = pe(l), u = ge(), p = H(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: _ }) => t.item._id === _) : t.modelValue && t.modelValue._id === t.item._id), d = () => {
1293
+ const t = c, a = i, l = t.property, r = pe(l), u = ge(), p = D(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: _ }) => t.item._id === _) : t.modelValue && t.modelValue._id === t.item._id), d = () => {
1290
1294
  if (p.value)
1291
1295
  return;
1292
- const _ = (f) => f.filter((k) => !!(k != null && k._id)), n = "items" in l ? _(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1296
+ const _ = (f) => f.filter((T) => !!(T != null && T._id)), n = "items" in l ? _(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1293
1297
  a("update:modelValue", Array.isArray(n) ? [
1294
1298
  ...n,
1295
1299
  t.item
@@ -1304,26 +1308,26 @@ const it = /* @__PURE__ */ G(go, [["__scopeId", "data-v-c86e2d2a"]]), ko = { cla
1304
1308
  });
1305
1309
  }
1306
1310
  const n = () => {
1307
- const f = [...t.modelValue], k = f.findIndex((S) => S._id === t.item._id);
1308
- return f.splice(k, 1), f;
1311
+ const f = [...t.modelValue], T = f.findIndex((A) => A._id === t.item._id);
1312
+ return f.splice(T, 1), f;
1309
1313
  };
1310
1314
  a("update:modelValue", "items" in l ? n() : null);
1311
1315
  };
1312
1316
  return (_, n) => {
1313
1317
  const f = ne("clickable");
1314
1318
  return N((o(), s("div", {
1315
- class: Q({
1319
+ class: G({
1316
1320
  item: !0,
1317
1321
  "item--selected": p.value
1318
1322
  }),
1319
- onClick: n[0] || (n[0] = (k) => p.value ? h() : d())
1323
+ onClick: n[0] || (n[0] = (T) => p.value ? h() : d())
1320
1324
  }, [
1321
- I(_.$slots, "default", {}, void 0, !0),
1322
- g("div", ko, [
1323
- (o(!0), s(K, null, q(_.indexes, (k, S) => (o(), s("div", {
1324
- key: `index-${_.item._id}-${S}`,
1325
+ C(_.$slots, "default", {}, void 0, !0),
1326
+ g("div", Vo, [
1327
+ (o(!0), s(J, null, E(_.indexes, (T, A) => (o(), s("div", {
1328
+ key: `index-${_.item._id}-${A}`,
1325
1329
  class: "item__value"
1326
- }, b(_.item[k]), 1))), 128))
1330
+ }, b(_.item[T]), 1))), 128))
1327
1331
  ])
1328
1332
  ], 2)), [
1329
1333
  [f]
@@ -1331,10 +1335,10 @@ const it = /* @__PURE__ */ G(go, [["__scopeId", "data-v-c86e2d2a"]]), ko = { cla
1331
1335
  };
1332
1336
  }
1333
1337
  });
1334
- const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { class: "search__panel" }, Io = { class: "search__input" }, Ao = ["value"], Oo = { style: { flex: "1" } }, wo = { key: 1 }, So = { key: 0 }, Bo = { key: 1 }, jo = { class: "search__summary" }, To = {
1338
+ const De = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { class: "search__panel" }, Ao = { class: "search__input" }, Oo = ["value"], wo = { style: { flex: "1" } }, So = { key: 1 }, Bo = { key: 0 }, jo = { key: 1 }, To = { class: "search__summary" }, Lo = {
1335
1339
  key: 1,
1336
1340
  class: "search"
1337
- }, Lo = { key: 0 }, Re = 10, Ro = /* @__PURE__ */ U({
1341
+ }, Ro = { key: 0 }, Re = 10, zo = /* @__PURE__ */ q({
1338
1342
  __name: "aeria-search",
1339
1343
  props: {
1340
1344
  modelValue: {},
@@ -1347,73 +1351,73 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1347
1351
  },
1348
1352
  emits: ["update:modelValue", "change", "update:panel"],
1349
1353
  setup(c, { emit: i }) {
1350
- const t = c, a = pe(t.property), l = t.panel !== void 0 ? H(() => t.panel) : Y(!1), r = i, u = re(pe(t.property).$ref), p = Te(), d = p ? ge() : null, h = a.indexes;
1354
+ const t = c, a = pe(t.property), l = t.panel !== void 0 ? D(() => t.panel) : X(!1), r = i, u = re(pe(t.property).$ref), p = Te(), d = p ? ge() : null, h = a.indexes;
1351
1355
  ye(qe, pe(t.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1352
- const _ = Y(t.modelValue), n = Y({
1356
+ const _ = X(t.modelValue), n = X({
1353
1357
  data: [],
1354
1358
  pagination: {}
1355
- }), f = H(() => n.value.data), k = H(() => n.value.pagination), S = Y(0), R = Y(h[0]), W = Y(!1), J = Y({}), O = () => {
1356
- const A = {};
1359
+ }), f = D(() => n.value.data), T = D(() => n.value.pagination), A = X(0), R = X(h[0]), F = X(!1), Y = X({}), O = () => {
1360
+ const I = {};
1357
1361
  if (p) {
1358
- const w = e(p);
1359
- A[w] = d;
1362
+ const S = e(p);
1363
+ I[S] = d;
1360
1364
  }
1361
- return a.constraints ? Et(a.constraints, A) : {};
1365
+ return a.constraints ? Ht(a.constraints, I) : {};
1362
1366
  }, M = () => {
1363
- f.value.length < k.value.recordsTotal && (S.value += 1, B());
1364
- }, X = async () => {
1365
- if (Object.values(J.value).every((w) => !(String(w).length > 0)))
1367
+ f.value.length < T.value.recordsTotal && (A.value += 1, w());
1368
+ }, K = async () => {
1369
+ if (Object.values(Y.value).every((S) => !(String(S).length > 0)))
1366
1370
  return u.$actions.custom("getAll", {
1367
1371
  limit: Re,
1368
- offset: S.value * Re,
1372
+ offset: A.value * Re,
1369
1373
  filters: O()
1370
1374
  });
1371
- const A = h.filter((w) => {
1375
+ const I = h.filter((S) => {
1372
1376
  var Z;
1373
- return ((Z = J.value[w]) == null ? void 0 : Z.length) > 0;
1374
- }).map((w) => ({
1375
- [w]: {
1376
- $regex: J.value[w].trim().replace("(", "\\(").replace(")", "\\)"),
1377
+ return ((Z = Y.value[S]) == null ? void 0 : Z.length) > 0;
1378
+ }).map((S) => ({
1379
+ [S]: {
1380
+ $regex: Y.value[S].trim().replace("(", "\\(").replace(")", "\\)"),
1377
1381
  $options: "i"
1378
1382
  }
1379
1383
  }));
1380
1384
  return u.$actions.custom("getAll", {
1381
1385
  limit: Re,
1382
- offset: S.value * Re,
1386
+ offset: A.value * Re,
1383
1387
  filters: {
1384
1388
  ...O(),
1385
- ...A.length > 0 && {
1386
- $or: A
1389
+ ...I.length > 0 && {
1390
+ $or: I
1387
1391
  }
1388
1392
  }
1389
1393
  });
1390
- }, B = async () => {
1394
+ }, w = async () => {
1391
1395
  if (u.loading.getAll)
1392
1396
  return;
1393
- const A = await X();
1394
- n.value.pagination = A.pagination, S.value === 0 && n.value.data.splice(0), n.value.data.push(...A.data);
1395
- }, [ee] = ht({
1397
+ const I = await K();
1398
+ n.value.pagination = I.pagination, A.value === 0 && n.value.data.splice(0), n.value.data.push(...I.data);
1399
+ }, [x] = ht({
1396
1400
  delay: 800
1397
1401
  })(() => {
1398
- S.value = 0, B(), W.value = !1;
1399
- }), V = () => {
1400
- W.value = !0, ee();
1402
+ A.value = 0, w(), F.value = !1;
1403
+ }), k = () => {
1404
+ F.value = !0, x();
1401
1405
  }, L = () => {
1402
- "effect" in l ? r("update:panel", !0) : l.value = !0, B();
1406
+ "effect" in l ? r("update:panel", !0) : l.value = !0, w();
1403
1407
  }, te = () => {
1404
- S.value = 0, n.value.data.splice(0), "effect" in l ? r("update:panel", !1) : l.value = !1;
1405
- }, oe = H(() => !Object.values(J.value).some((A) => !!A));
1406
- ue(oe, (A, w) => {
1407
- A && !w && B();
1408
+ A.value = 0, n.value.data.splice(0), "effect" in l ? r("update:panel", !1) : l.value = !1;
1409
+ }, oe = D(() => !Object.values(Y.value).some((I) => !!I));
1410
+ ue(oe, (I, S) => {
1411
+ I && !S && w();
1408
1412
  }), mt(() => {
1409
- t.selectOnly && B();
1413
+ t.selectOnly && w();
1410
1414
  });
1411
- const le = (A) => {
1412
- _.value = A, t.selectOnly || r("update:modelValue", A);
1415
+ const le = (I) => {
1416
+ _.value = I, t.selectOnly || r("update:modelValue", I);
1413
1417
  }, m = () => {
1414
1418
  te(), r("update:modelValue", _.value);
1415
1419
  };
1416
- return (A, w) => {
1420
+ return (I, S) => {
1417
1421
  const Z = ne("clickable");
1418
1422
  return o(), s("div", null, [
1419
1423
  e(l) ? (o(), $(Ge, {
@@ -1423,7 +1427,7 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1423
1427
  z(Ae, {
1424
1428
  float: "",
1425
1429
  "close-hint": "",
1426
- title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(A.propertyName)}`,
1430
+ title: `${e(U)("action.select", { capitalize: !0 })} ${e(U)(I.propertyName)}`,
1427
1431
  "overlay-layer": 65,
1428
1432
  "model-value": e(l),
1429
1433
  style: { "--panel-max-width": "36rem" },
@@ -1436,40 +1440,40 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1436
1440
  onClick: m
1437
1441
  }, {
1438
1442
  default: v(() => [
1439
- D(b(e(F)("action.save", { capitalize: !0 })), 1)
1443
+ Q(b(e(U)("action.save", { capitalize: !0 })), 1)
1440
1444
  ]),
1441
1445
  _: 1
1442
1446
  })
1443
1447
  ]),
1444
1448
  default: v(() => {
1445
- var C, T;
1449
+ var V, j;
1446
1450
  return [
1447
- g("div", Co, [
1448
- g("div", Io, [
1451
+ g("div", Io, [
1452
+ g("div", Ao, [
1449
1453
  e(h).length > 1 ? (o(), $(Ee, {
1450
1454
  key: 0,
1451
1455
  modelValue: R.value,
1452
- "onUpdate:modelValue": w[0] || (w[0] = (j) => R.value = j),
1453
- onChange: w[1] || (w[1] = (j) => J.value = {})
1456
+ "onUpdate:modelValue": S[0] || (S[0] = (B) => R.value = B),
1457
+ onChange: S[1] || (S[1] = (B) => Y.value = {})
1454
1458
  }, {
1455
1459
  default: v(() => [
1456
- (o(!0), s(K, null, q(e(h), (j) => (o(), s("option", {
1457
- key: `searchfield-${j}`,
1458
- value: j
1459
- }, b(e(F)(j)), 9, Ao))), 128))
1460
+ (o(!0), s(J, null, E(e(h), (B) => (o(), s("option", {
1461
+ key: `searchfield-${B}`,
1462
+ value: B
1463
+ }, b(e(U)(B)), 9, Oo))), 128))
1460
1464
  ]),
1461
1465
  _: 1
1462
1466
  }, 8, ["modelValue"])) : y("", !0),
1463
- g("div", Oo, [
1467
+ g("div", wo, [
1464
1468
  (o(), $(Ie, {
1465
1469
  key: `field-${R.value}`,
1466
- modelValue: J.value[R.value],
1467
- "onUpdate:modelValue": w[2] || (w[2] = (j) => J.value[R.value] = j),
1470
+ modelValue: Y.value[R.value],
1471
+ "onUpdate:modelValue": S[2] || (S[2] = (B) => Y.value[R.value] = B),
1468
1472
  property: {
1469
1473
  ...e(u).properties[R.value],
1470
1474
  inputType: "search"
1471
1475
  },
1472
- onInput: V
1476
+ onInput: k
1473
1477
  }, null, 8, ["modelValue", "property"]))
1474
1478
  ])
1475
1479
  ]),
@@ -1479,28 +1483,28 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1479
1483
  onEndReached: M
1480
1484
  }, {
1481
1485
  default: v(() => [
1482
- (o(!0), s(K, null, q(f.value, (j) => (o(), $(De, E({ ref_for: !0 }, {
1483
- item: j,
1486
+ (o(!0), s(J, null, E(f.value, (B) => (o(), $(De, H({ ref_for: !0 }, {
1487
+ item: B,
1484
1488
  indexes: e(h),
1485
- property: A.property
1489
+ property: I.property
1486
1490
  }, {
1487
- key: `matching-${j._id}`,
1491
+ key: `matching-${B._id}`,
1488
1492
  modelValue: _.value,
1489
- "onUpdate:modelValue": w[3] || (w[3] = (ae) => _.value = ae)
1493
+ "onUpdate:modelValue": S[3] || (S[3] = (ae) => _.value = ae)
1490
1494
  }), null, 16, ["modelValue"]))), 128))
1491
1495
  ]),
1492
1496
  _: 1
1493
- })) : (o(), s("div", wo, [
1494
- W.value ? (o(), s("div", So, b(e(F)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(J.value).filter((j) => !!j).length > 0 && !("items" in A.property && ((C = A.modelValue) != null && C.length) || !Array.isArray(A.modelValue) && ((T = A.modelValue) != null && T._id)) ? (o(), s("div", Bo, b(e(F)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1497
+ })) : (o(), s("div", So, [
1498
+ F.value ? (o(), s("div", Bo, b(e(U)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(Y.value).filter((B) => !!B).length > 0 && !("items" in I.property && ((V = I.modelValue) != null && V.length) || !Array.isArray(I.modelValue) && ((j = I.modelValue) != null && j._id)) ? (o(), s("div", jo, b(e(U)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1495
1499
  ]))
1496
1500
  ]),
1497
- g("div", jo, b(e(F)("showing", { capitalize: !0 })) + " " + b(f.value.length) + " " + b(e(F)("of")) + " " + b(k.value.recordsTotal), 1)
1501
+ g("div", To, b(e(U)("showing", { capitalize: !0 })) + " " + b(f.value.length) + " " + b(e(U)("of")) + " " + b(T.value.recordsTotal), 1)
1498
1502
  ];
1499
1503
  }),
1500
1504
  _: 1
1501
1505
  }, 8, ["title", "model-value"])
1502
1506
  ])) : y("", !0),
1503
- A.selectOnly ? y("", !0) : (o(), s("div", To, [
1507
+ I.selectOnly ? y("", !0) : (o(), s("div", Lo, [
1504
1508
  z(it, null, {
1505
1509
  footer: v(() => [
1506
1510
  N((o(), $(P, {
@@ -1508,7 +1512,7 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1508
1512
  onClick: L
1509
1513
  }, {
1510
1514
  default: v(() => [
1511
- D(b(e(F)("action.select", { capitalize: !0 })), 1)
1515
+ Q(b(e(U)("action.select", { capitalize: !0 })), 1)
1512
1516
  ]),
1513
1517
  _: 1
1514
1518
  })), [
@@ -1516,23 +1520,23 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1516
1520
  ])
1517
1521
  ]),
1518
1522
  default: v(() => {
1519
- var C;
1523
+ var V;
1520
1524
  return [
1521
- "items" in A.property ? (o(), s("div", Lo, [
1522
- (o(!0), s(K, null, q(A.modelValue, (T) => (o(), $(De, E({ ref_for: !0 }, {
1523
- item: T,
1525
+ "items" in I.property ? (o(), s("div", Ro, [
1526
+ (o(!0), s(J, null, E(I.modelValue, (j) => (o(), $(De, H({ ref_for: !0 }, {
1527
+ item: j,
1524
1528
  indexes: e(h),
1525
- property: A.property,
1526
- modelValue: A.modelValue
1529
+ property: I.property,
1530
+ modelValue: I.modelValue
1527
1531
  }, {
1528
- key: `selected-${T._id}`,
1532
+ key: `selected-${j._id}`,
1529
1533
  "onUpdate:modelValue": le
1530
1534
  }), null, 16))), 128))
1531
- ])) : (C = A.modelValue) != null && C._id ? (o(), $(De, E({ key: 1 }, {
1532
- item: A.modelValue,
1535
+ ])) : (V = I.modelValue) != null && V._id ? (o(), $(De, H({ key: 1 }, {
1536
+ item: I.modelValue,
1533
1537
  indexes: e(h),
1534
1538
  property: e(a),
1535
- modelValue: A.modelValue
1539
+ modelValue: I.modelValue
1536
1540
  }, { "onUpdate:modelValue": le }), null, 16)) : y("", !0)
1537
1541
  ];
1538
1542
  }),
@@ -1543,13 +1547,13 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1543
1547
  };
1544
1548
  }
1545
1549
  });
1546
- const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i) => {
1550
+ const Mo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i) => {
1547
1551
  const t = "items" in c ? c.items : c, a = {
1548
- options: Wn,
1552
+ options: Kn,
1549
1553
  select: Ee,
1550
- switch: Nn,
1551
- file: ho,
1552
- search: zo,
1554
+ switch: xn,
1555
+ file: $o,
1556
+ search: Mo,
1553
1557
  input: Ie,
1554
1558
  form: He
1555
1559
  }, l = (() => {
@@ -1569,32 +1573,32 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1569
1573
  return r ? r.inline ? "form" : r.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in t ? "select" : "input";
1570
1574
  })();
1571
1575
  return i[l] ? i[l] : a[l];
1572
- }, Mo = (c, i, t) => {
1576
+ }, Fo = (c, i, t) => {
1573
1577
  c ?? (c = []);
1574
1578
  const a = "items" in i ? i.items : i;
1575
1579
  if ("$ref" in a) {
1576
1580
  const l = re(a.$ref, t), r = Be(l.$freshItem);
1577
- return c.unshift(r);
1581
+ return c.push(r);
1578
1582
  }
1579
- return "properties" in a ? c.unshift(Ht(a)) : "type" in a && a.type === "boolean" ? c.unshift({}) : c.unshift(null);
1580
- }, Fo = (c, i) => {
1583
+ return "properties" in a ? c.push(Dt(a)) : "type" in a && a.type === "boolean" ? c.push({}) : c.push(null);
1584
+ }, Uo = (c, i) => {
1581
1585
  c.splice(i, 1);
1582
- }, Uo = {
1586
+ }, qo = {
1583
1587
  key: 0,
1584
1588
  class: "form__header"
1585
- }, qo = {
1589
+ }, Eo = {
1586
1590
  key: 1,
1587
1591
  class: "form__fieldset"
1588
- }, Eo = { key: 0 }, Ho = ["innerHTML"], Do = ["onInput"], Qo = { key: 4 }, Go = { value: "true" }, Wo = { value: "false" }, Xo = {
1592
+ }, Ho = { key: 0 }, Do = ["innerHTML"], Qo = ["onInput"], Go = { key: 4 }, Wo = { value: "true" }, Ko = { value: "false" }, Xo = {
1589
1593
  key: 5,
1590
1594
  style: { display: "grid", "row-gap": ".4rem" }
1591
- }, Yo = { style: { "flex-grow": "1" } }, Jo = {
1595
+ }, Yo = { class: "form__array" }, Jo = { style: { "flex-grow": "1" } }, Zo = {
1592
1596
  key: 7,
1593
1597
  class: "form__validation-error"
1594
- }, Ko = { key: 0 }, Zo = { key: 1 }, Po = {
1598
+ }, Po = { key: 0 }, No = { key: 1 }, xo = {
1595
1599
  key: 3,
1596
1600
  class: "form__footer"
1597
- }, No = /* @__PURE__ */ U({
1601
+ }, ea = /* @__PURE__ */ q({
1598
1602
  __name: "aeria-form",
1599
1603
  props: {
1600
1604
  modelValue: {},
@@ -1627,226 +1631,228 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1627
1631
  const r = a.property && pe(a.property), u = r ? r.$ref : a.collection || Te(), p = u ? re(e(u)) : null;
1628
1632
  !u && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1629
1633
  collection prop, some features may not work as intended`);
1630
- const d = Y(!1), h = H(() => !a.form && a.property ? "properties" in a.property ? a.property.properties : p == null ? void 0 : p.properties : a.form), _ = H(() => a.layout || (p == null ? void 0 : p.description.formLayout)), n = (m) => {
1631
- const A = ve(m, a[m]);
1632
- return a[m] && ye(m, a[m]), A;
1633
- }, f = H(() => a.validationErrors !== null ? a.validationErrors : p == null ? void 0 : p.validationErrors), k = n("formComponents") || {}, S = n("propertyComponents") || {}, R = n("omitFormHeader"), W = n("omitInputLabels"), J = n("innerInputLabel");
1634
+ const d = X(!1), h = D(() => !a.form && a.property ? "properties" in a.property ? a.property.properties : p == null ? void 0 : p.properties : a.form), _ = D(() => a.layout || (p == null ? void 0 : p.description.formLayout)), n = (m) => {
1635
+ const I = ve(m, a[m]);
1636
+ return a[m] && ye(m, a[m]), I;
1637
+ }, f = D(() => a.validationErrors !== null ? a.validationErrors : p == null ? void 0 : p.validationErrors), T = n("formComponents") || {}, A = n("propertyComponents") || {}, R = n("omitFormHeader"), F = n("omitInputLabels"), Y = n("innerInputLabel");
1634
1638
  u && ye(qe, u), ye("searchOnly", a.searchOnly);
1635
- const O = (m) => h.value ? Object.entries(h.value).filter(([A, w]) => !w.noForm && m([
1636
- A,
1637
- w
1639
+ const O = (m) => h.value ? Object.entries(h.value).filter(([I, S]) => !S.noForm && m([
1640
+ I,
1641
+ S
1638
1642
  ])) : null, M = (m) => {
1639
- var w;
1643
+ var S;
1640
1644
  if (a.searchOnly || !u)
1641
1645
  return !0;
1642
- const A = a.property && "properties" in a.property ? a.property.form : (w = p == null ? void 0 : p.description) == null ? void 0 : w.form;
1643
- return !A || A.includes(m);
1644
- }, X = O(([m]) => M(m)), B = je(), ee = {}, V = (m, A) => {
1645
- var T, j, ae, _e;
1646
- const w = [], Z = ((j = (T = _.value) == null ? void 0 : T.fields) == null ? void 0 : j[m]) || ((_e = (ae = _.value) == null ? void 0 : ae.fields) == null ? void 0 : _e.$default);
1647
- if (!A)
1646
+ const I = a.property && "properties" in a.property ? a.property.form : (S = p == null ? void 0 : p.description) == null ? void 0 : S.form;
1647
+ return !I || I.includes(m);
1648
+ }, K = O(([m]) => M(m)), w = je(), x = {}, k = (m, I) => {
1649
+ var j, B, ae, _e;
1650
+ const S = [], Z = ((B = (j = _.value) == null ? void 0 : j.fields) == null ? void 0 : B[m]) || ((_e = (ae = _.value) == null ? void 0 : ae.fields) == null ? void 0 : _e.$default);
1651
+ if (!I)
1648
1652
  return;
1649
1653
  if (Z != null && Z.if && !a.searchOnly) {
1650
1654
  const me = Qe(
1651
1655
  a.modelValue,
1652
1656
  Z.if
1653
1657
  );
1654
- me.satisfied || (ee[m] && (p ? a.modelValue[m] = typeof p.$freshItem[m] == "object" ? Be(p.$freshItem[m]) : p.$freshItem[m] : a.modelValue[m] = [
1658
+ me.satisfied || (x[m] && (p ? a.modelValue[m] = typeof p.$freshItem[m] == "object" ? Be(p.$freshItem[m]) : p.$freshItem[m] : a.modelValue[m] = [
1655
1659
  void 0,
1656
1660
  null
1657
- ].includes(a.modelValue[m]) ? null : a.modelValue[m].constructor()), w.push("display: none;")), ee[m] = me.satisfied;
1661
+ ].includes(a.modelValue[m]) ? null : a.modelValue[m].constructor()), S.push("display: none;")), x[m] = me.satisfied;
1658
1662
  }
1659
- const C = B.value.md && (Z == null ? void 0 : Z.span) || 6;
1660
- return w.push(`
1661
- --field-span: ${C};
1663
+ const V = w.value.md && (Z == null ? void 0 : Z.span) || 6;
1664
+ return S.push(`
1665
+ --field-span: ${V};
1662
1666
  grid-column: span var(--field-span) / span var(--field-span);
1663
- `), Z && (Z.verticalSpacing && w.push(`
1667
+ `), Z && (Z.verticalSpacing && S.push(`
1664
1668
  --vertical-spacing: ${Z.verticalSpacing};
1665
1669
  padding: var(--vertical-spacing) 0;
1666
- `), Z.separator && w.push(`
1670
+ `), Z.separator && S.push(`
1667
1671
  border-top: 1px solid var(--theme-border-color);
1668
1672
  border-width: 1px 0 1px 0;
1669
1673
  padding: 1rem 0;
1670
1674
  margin: 1rem 0;
1671
- `)), w.join("");
1672
- }, L = (m) => m === null || m instanceof Object && !Object.keys(m).length, te = H(() => a.required ? a.required : a.property && "required" in a.property ? a.property.required : p == null ? void 0 : p.description.required), oe = H(() => a.form ? zt(
1675
+ `)), S.join("");
1676
+ }, L = (m) => m === null || m instanceof Object && !Object.keys(m).length, te = D(() => a.required ? a.required : a.property && "required" in a.property ? a.property.required : p == null ? void 0 : p.description.required), oe = D(() => a.form ? zt(
1673
1677
  a.modelValue,
1674
1678
  a.form,
1675
1679
  te.value,
1676
1680
  p == null ? void 0 : p.description
1677
- ) : !0), le = (m, A) => {
1678
- var w;
1679
- return (w = f.value) != null && w[m] && (typeof f.value[m].index != "number" || f.value[m].index === A) ? f.value[m].errors : null;
1681
+ ) : !0), le = (m, I) => {
1682
+ var S;
1683
+ return (S = f.value) != null && S[m] && (typeof f.value[m].index != "number" || f.value[m].index === I) ? f.value[m].errors : null;
1680
1684
  };
1681
- return (m, A) => {
1682
- const w = ne("clickable"), Z = ne("focus");
1685
+ return (m, I) => {
1686
+ const S = ne("clickable"), Z = ne("focus");
1683
1687
  return o(), s("form", {
1684
1688
  class: "form",
1685
1689
  style: $e(`row-gap: ${e(R) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1686
1690
  }, [
1687
- m.$slots.header && !e(R) ? (o(), s("header", Uo, [
1688
- I(m.$slots, "header", {}, void 0, !0)
1691
+ m.$slots.header && !e(R) ? (o(), s("header", qo, [
1692
+ C(m.$slots, "header", {}, void 0, !0)
1689
1693
  ])) : y("", !0),
1690
- I(m.$slots, "default", {}, void 0, !0),
1691
- m.isReadOnly ? y("", !0) : (o(), s("fieldset", qo, [
1692
- (o(!0), s(K, null, q(e(X), ([C, T]) => {
1693
- var j, ae, _e, me, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
1694
+ C(m.$slots, "default", {}, void 0, !0),
1695
+ m.isReadOnly ? y("", !0) : (o(), s("fieldset", Eo, [
1696
+ (o(!0), s(J, null, E(e(K), ([V, j]) => {
1697
+ var B, ae, _e, me, Ke, Xe, Ye, Je, Ze, Pe, Ne, xe, et;
1694
1698
  return o(), s("div", {
1695
- key: `field-${C}`,
1696
- style: $e(V(C, T)),
1699
+ key: `field-${V}`,
1700
+ style: $e(k(V, j)),
1697
1701
  class: "form__field"
1698
1702
  }, [
1699
- (!("type" in T) || T.type !== "boolean" || m.searchOnly) && !T.noLabel && !e(W) && !e(J) ? (o(), s("label", Eo, [
1703
+ (!("type" in j) || j.type !== "boolean" || m.searchOnly) && !j.noLabel && !e(F) && !e(Y) ? (o(), s("label", Ho, [
1700
1704
  g("div", {
1701
- class: Q({
1705
+ class: G({
1702
1706
  "form__field-label": !0,
1703
- "form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
1704
- "form__field-required-hint": m.highlightRequired && !m.searchOnly && (!te.value || e(Dt)(C, te.value, m.modelValue))
1707
+ "form__field-label--section": "items" in j ? "properties" in j.items : "properties" in j,
1708
+ "form__field-required-hint": m.highlightRequired && !m.searchOnly && (!te.value || e(Qt)(V, te.value, m.modelValue))
1705
1709
  })
1706
- }, b(T.description || e(F)(C)), 3),
1707
- T.hint ? (o(), s("div", {
1710
+ }, b(j.description || e(U)(V)), 3),
1711
+ j.hint ? (o(), s("div", {
1708
1712
  key: 0,
1709
- innerHTML: T.hint
1710
- }, null, 8, Ho)) : y("", !0)
1713
+ innerHTML: j.hint
1714
+ }, null, 8, Do)) : y("", !0)
1711
1715
  ])) : y("", !0),
1712
- m.$slots[`field-${C}`] ? I(m.$slots, `field-${C}`, E({
1716
+ m.$slots[`field-${V}`] ? C(m.$slots, `field-${V}`, H({
1713
1717
  key: 1,
1714
1718
  ref_for: !0
1715
1719
  }, {
1716
- propery: T,
1717
- properyName: C,
1720
+ propery: j,
1721
+ properyName: V,
1718
1722
  modelValue: m.modelValue
1719
- }), void 0, !0) : (_e = (ae = (j = m.layout) == null ? void 0 : j.fields) == null ? void 0 : ae[C]) != null && _e.component && e(S)[m.layout.fields[C].component.name] ? (o(), $(he(e(S)[m.layout.fields[C].component.name]), E({
1723
+ }), void 0, !0) : (_e = (ae = (B = m.layout) == null ? void 0 : B.fields) == null ? void 0 : ae[V]) != null && _e.component && e(A)[m.layout.fields[V].component.name] ? (o(), $(he(e(A)[m.layout.fields[V].component.name]), H({
1720
1724
  key: 2,
1721
- modelValue: m.modelValue[C],
1722
- "onUpdate:modelValue": (x) => m.modelValue[C] = x,
1725
+ modelValue: m.modelValue[V],
1726
+ "onUpdate:modelValue": (ee) => m.modelValue[V] = ee,
1723
1727
  ref_for: !0
1724
1728
  }, {
1725
- property: T,
1726
- propertyName: C,
1727
- ...m.layout.fields[C].component.props || {}
1729
+ property: j,
1730
+ propertyName: V,
1731
+ ...m.layout.fields[V].component.props || {}
1728
1732
  }, {
1729
- onInput: (x) => l("input", C),
1730
- onChange: A[0] || (A[0] = (x) => l("change", x))
1731
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && m.searchOnly ? (o(), s("div", {
1733
+ onInput: (ee) => l("input", V),
1734
+ onChange: I[0] || (I[0] = (ee) => l("change", ee))
1735
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in j && ["date", "date-time"].includes(j.format) && m.searchOnly ? (o(), s("div", {
1732
1736
  key: 3,
1733
1737
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1734
- onInput: (x) => l("input", C),
1735
- onChange: A[1] || (A[1] = (x) => l("change", x))
1738
+ onInput: (ee) => l("input", V),
1739
+ onChange: I[1] || (I[1] = (ee) => l("change", ee))
1736
1740
  }, [
1737
- z(Ie, E({
1738
- modelValue: m.modelValue[C].$gte,
1739
- "onUpdate:modelValue": (x) => m.modelValue[C].$gte = x,
1741
+ z(Ie, H({
1742
+ modelValue: m.modelValue[V].$gte,
1743
+ "onUpdate:modelValue": (ee) => m.modelValue[V].$gte = ee,
1740
1744
  ref_for: !0
1741
1745
  }, {
1742
- property: T,
1743
- propertyName: C
1746
+ property: j,
1747
+ propertyName: V
1744
1748
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1745
- z(Ie, E({
1746
- modelValue: m.modelValue[C].$lte,
1747
- "onUpdate:modelValue": (x) => m.modelValue[C].$lte = x,
1749
+ z(Ie, H({
1750
+ modelValue: m.modelValue[V].$lte,
1751
+ "onUpdate:modelValue": (ee) => m.modelValue[V].$lte = ee,
1748
1752
  ref_for: !0
1749
1753
  }, {
1750
- property: T,
1751
- propertyName: C
1754
+ property: j,
1755
+ propertyName: V
1752
1756
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1753
- ], 40, Do)) : "type" in T && T.type === "boolean" && m.searchOnly ? (o(), s("div", Qo, [
1754
- z(Ee, E({ ref_for: !0 }, {
1755
- property: T,
1756
- propertyName: C
1757
+ ], 40, Qo)) : "type" in j && j.type === "boolean" && m.searchOnly ? (o(), s("div", Go, [
1758
+ z(Ee, H({ ref_for: !0 }, {
1759
+ property: j,
1760
+ propertyName: V
1757
1761
  }, {
1758
1762
  "boolean-ref": "",
1759
- "model-value": m.modelValue[C],
1760
- onChange: A[2] || (A[2] = (x) => l("change", x)),
1761
- "onUpdate:modelValue": (x) => {
1762
- m.modelValue[C] = x == "true" ? !0 : x == "false" ? !1 : null;
1763
+ "model-value": m.modelValue[V],
1764
+ onChange: I[2] || (I[2] = (ee) => l("change", ee)),
1765
+ "onUpdate:modelValue": (ee) => {
1766
+ m.modelValue[V] = ee == "true" ? !0 : ee == "false" ? !1 : null;
1763
1767
  }
1764
1768
  }), {
1765
1769
  default: v(() => [
1766
- g("option", Go, b(e(F)("yes")), 1),
1767
- g("option", Wo, b(e(F)("no")), 1)
1770
+ g("option", Wo, b(e(U)("yes")), 1),
1771
+ g("option", Ko, b(e(U)("no")), 1)
1768
1772
  ]),
1769
1773
  _: 2
1770
1774
  }, 1040, ["model-value", "onUpdate:modelValue"])
1771
- ])) : m.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (o(), s("div", Xo, [
1775
+ ])) : m.modelValue && "items" in j && !j.uniqueItems && (!("$ref" in j.items) || j.items.inline || j.items.$ref === "file") ? (o(), s("div", Xo, [
1772
1776
  g("div", null, [
1773
1777
  z(ie, {
1774
1778
  small: "",
1775
1779
  variant: "alt",
1776
1780
  icon: "plus",
1777
- disabled: !("inline" in T.items && T.items.inline) && (((me = m.modelValue[C]) == null ? void 0 : me.length) >= T.maxItems || L((Ye = m.modelValue[C]) == null ? void 0 : Ye[((Xe = m.modelValue[C]) == null ? void 0 : Xe.length) - 1])),
1778
- onClick: ze((x) => {
1779
- m.modelValue[C] || (m.modelValue[C] = []), e(Mo)(m.modelValue[C], T, e(t));
1781
+ disabled: !("inline" in j.items && j.items.inline) && (((me = m.modelValue[V]) == null ? void 0 : me.length) >= j.maxItems || L((Xe = m.modelValue[V]) == null ? void 0 : Xe[((Ke = m.modelValue[V]) == null ? void 0 : Ke.length) - 1])),
1782
+ onClick: ze((ee) => {
1783
+ m.modelValue[V] || (m.modelValue[V] = []), e(Fo)(m.modelValue[V], j, e(t));
1780
1784
  }, ["prevent"])
1781
1785
  }, {
1782
1786
  default: v(() => [
1783
- D(b(e(F)("action.add", { capitalize: !0 })), 1)
1787
+ Q(b(e(U)("action.add", { capitalize: !0 })), 1)
1784
1788
  ]),
1785
1789
  _: 2
1786
1790
  }, 1032, ["disabled", "onClick"])
1787
1791
  ]),
1788
- (o(!0), s(K, null, q(m.modelValue[C], (x, Oe) => {
1789
- var tt, nt, ot, at, lt, st;
1790
- return o(), s("div", {
1791
- key: `rep-${C}-${Oe}`,
1792
- style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
1793
- }, [
1794
- g("div", Yo, [
1795
- (o(), $(he(e(rt)(T, e(k))), E({
1796
- modelValue: m.modelValue[C][Oe],
1797
- "onUpdate:modelValue": (we) => m.modelValue[C][Oe] = we,
1798
- ref_for: !0
1799
- }, {
1800
- property: T.items,
1801
- propertyName: C,
1802
- parentCollection: e(u),
1803
- parentPropertyName: m.parentPropertyName,
1804
- columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[C]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
1805
- validationErrors: le(C, Oe),
1806
- ...T.componentProps || {}
1807
- }, {
1808
- onInput: (we) => l("input", C),
1809
- onChange: A[3] || (A[3] = (we) => l("change", we))
1810
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
1811
- ]),
1812
- N(z(P, {
1813
- reactive: "",
1814
- icon: "trash",
1815
- onClick: (we) => e(Fo)(m.modelValue[C], Oe)
1816
- }, null, 8, ["onClick"]), [
1817
- [w]
1818
- ])
1819
- ]);
1820
- }), 128))
1821
- ])) : m.modelValue ? N((o(), $(he(e(rt)(T, e(k))), E({
1792
+ g("div", Yo, [
1793
+ (o(!0), s(J, null, E(m.modelValue[V], (ee, Oe) => {
1794
+ var tt, nt, ot, at, lt, st;
1795
+ return o(), s("div", {
1796
+ key: `rep-${V}-${e(Mt)(ee, Oe)}`,
1797
+ class: "form__array-item"
1798
+ }, [
1799
+ g("div", Jo, [
1800
+ (o(), $(he(e(rt)(j, e(T))), H({
1801
+ modelValue: m.modelValue[V][Oe],
1802
+ "onUpdate:modelValue": (we) => m.modelValue[V][Oe] = we,
1803
+ ref_for: !0
1804
+ }, {
1805
+ property: j.items,
1806
+ propertyName: V,
1807
+ parentCollection: e(u),
1808
+ parentPropertyName: m.parentPropertyName,
1809
+ columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[V]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
1810
+ validationErrors: le(V, Oe),
1811
+ ...j.componentProps || {}
1812
+ }, {
1813
+ onInput: (we) => l("input", V),
1814
+ onChange: I[3] || (I[3] = (we) => l("change", we))
1815
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
1816
+ ]),
1817
+ N(z(P, {
1818
+ reactive: "",
1819
+ icon: "trash",
1820
+ onClick: (we) => e(Uo)(m.modelValue[V], Oe)
1821
+ }, null, 8, ["onClick"]), [
1822
+ [S]
1823
+ ])
1824
+ ]);
1825
+ }), 128))
1826
+ ])
1827
+ ])) : m.modelValue ? N((o(), $(he(e(rt)(j, e(T))), H({
1822
1828
  key: 6,
1823
- modelValue: m.modelValue[C],
1824
- "onUpdate:modelValue": (x) => m.modelValue[C] = x,
1829
+ modelValue: m.modelValue[V],
1830
+ "onUpdate:modelValue": (ee) => m.modelValue[V] = ee,
1825
1831
  ref_for: !0
1826
1832
  }, {
1827
- property: T,
1828
- propertyName: C,
1833
+ property: j,
1834
+ propertyName: V,
1829
1835
  parentPropertyName: m.parentPropertyName,
1830
1836
  parentCollection: e(u),
1831
- columns: ((Ze = (Ke = (Je = m.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[C]) == null ? void 0 : Ze.optionsColumns) || ((xe = (Ne = (Pe = m.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne.$default) == null ? void 0 : xe.optionsColumns),
1832
- ...T.componentProps || {},
1833
- validationErrors: le(C)
1837
+ columns: ((Ze = (Je = (Ye = m.layout) == null ? void 0 : Ye.fields) == null ? void 0 : Je[V]) == null ? void 0 : Ze.optionsColumns) || ((xe = (Ne = (Pe = m.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne.$default) == null ? void 0 : xe.optionsColumns),
1838
+ ...j.componentProps || {},
1839
+ validationErrors: le(V)
1834
1840
  }, {
1835
- onInput: (x) => l("input", C),
1836
- onChange: A[4] || (A[4] = (x) => l("change", x))
1841
+ onInput: (ee) => l("input", V),
1842
+ onChange: I[4] || (I[4] = (ee) => l("change", ee))
1837
1843
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1838
1844
  [Z, !d.value && (d.value = !!m.focus)]
1839
1845
  ]) : y("", !0),
1840
- (et = f.value) != null && et[C] ? (o(), s("div", Jo, [
1841
- f.value[C].type ? (o(), s("span", Ko, b(e(F)(`validation_error.${f.value[C].type}`)), 1)) : y("", !0),
1842
- f.value[C].detail ? (o(), s("span", Zo, b(e(F)(f.value[C].detail)), 1)) : y("", !0)
1846
+ (et = f.value) != null && et[V] ? (o(), s("div", Zo, [
1847
+ f.value[V].type ? (o(), s("span", Po, b(e(U)(`validation_error.${f.value[V].type}`)), 1)) : y("", !0),
1848
+ f.value[V].detail ? (o(), s("span", No, b(e(U)(f.value[V].detail)), 1)) : y("", !0)
1843
1849
  ])) : y("", !0)
1844
1850
  ], 4);
1845
1851
  }), 128))
1846
1852
  ])),
1847
- m.$slots.after ? I(m.$slots, "after", { key: 2 }, void 0, !0) : y("", !0),
1848
- m.$slots.footer ? (o(), s("div", Po, [
1849
- I(m.$slots, "footer", ce(Ve({
1853
+ m.$slots.after ? C(m.$slots, "after", { key: 2 }, void 0, !0) : y("", !0),
1854
+ m.$slots.footer ? (o(), s("div", xo, [
1855
+ C(m.$slots, "footer", ce(Ve({
1850
1856
  isInsertReady: oe.value
1851
1857
  })), void 0, !0)
1852
1858
  ])) : y("", !0)
@@ -1854,13 +1860,13 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1854
1860
  };
1855
1861
  }
1856
1862
  });
1857
- const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @__PURE__ */ U({
1863
+ const He = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-d0149f78"]]), ta = /* @__PURE__ */ q({
1858
1864
  __name: "aeria-filter-panel",
1859
1865
  emits: ["update:modelValue"],
1860
1866
  setup(c, { emit: i }) {
1861
1867
  const t = i, a = ge(), l = Le(), r = () => {
1862
1868
  a.pagination.offset = 0, a.$actions.filter(), t("update:modelValue", !1), l.push({
1863
- query: Mt(a)
1869
+ query: Ft(a)
1864
1870
  });
1865
1871
  };
1866
1872
  return (u, p) => (o(), $(Ae, {
@@ -1879,10 +1885,10 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
1879
1885
  })
1880
1886
  }, {
1881
1887
  default: v(() => [
1882
- D(b(u.t("action.clear", { capitalize: !0 })) + " ", 1),
1888
+ Q(b(u.t("action.clear", { capitalize: !0 })) + " ", 1),
1883
1889
  z(be, null, {
1884
1890
  default: v(() => [
1885
- D(b(e(a).filtersCount), 1)
1891
+ Q(b(e(a).filtersCount), 1)
1886
1892
  ]),
1887
1893
  _: 1
1888
1894
  })
@@ -1896,13 +1902,13 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
1896
1902
  onClick: r
1897
1903
  }, {
1898
1904
  default: v(() => [
1899
- D(b(u.t("action.filter", { capitalize: !0 })), 1)
1905
+ Q(b(u.t("action.filter", { capitalize: !0 })), 1)
1900
1906
  ]),
1901
1907
  _: 1
1902
1908
  }, 8, ["disabled"])
1903
1909
  ]),
1904
1910
  default: v(() => [
1905
- z(He, E({
1911
+ z(He, H({
1906
1912
  modelValue: e(a).filters,
1907
1913
  "onUpdate:modelValue": p[0] || (p[0] = (d) => e(a).filters = d)
1908
1914
  }, {
@@ -1914,7 +1920,7 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
1914
1920
  _: 1
1915
1921
  }, 8, ["title"]));
1916
1922
  }
1917
- }), se = Y(!1), ut = Y(!1), ke = Y(!1), Se = Y((...c) => null), ct = Y(), dt = !1, ea = /* @__PURE__ */ U({
1923
+ }), se = X(!1), ut = X(!1), ke = X(!1), Se = X((...c) => null), ct = X(), dt = !1, na = /* @__PURE__ */ q({
1918
1924
  __name: "aeria-insert-panel",
1919
1925
  setup(c) {
1920
1926
  const i = re("meta"), t = re(i.view.collection), a = ve("individualActions", []), l = async () => {
@@ -1954,7 +1960,7 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
1954
1960
  g("span", null, " " + b(e(r)(e(i).view.collection)), 1)
1955
1961
  ]),
1956
1962
  extra: v(() => [
1957
- z(Ce, E({
1963
+ z(Ce, H({
1958
1964
  subject: e(t).item,
1959
1965
  actions: e(a).filter(({ action: _ }) => _ !== "ui/spawnEdit")
1960
1966
  }, {
@@ -1978,7 +1984,7 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
1978
1984
  onClick: u
1979
1985
  }, {
1980
1986
  default: v(() => [
1981
- D(b(e(r)("action.cancel", { capitalize: !0 })), 1)
1987
+ Q(b(e(r)("action.cancel", { capitalize: !0 })), 1)
1982
1988
  ]),
1983
1989
  _: 1
1984
1990
  }),
@@ -1989,13 +1995,13 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
1989
1995
  onClick: l
1990
1996
  }, {
1991
1997
  default: v(() => [
1992
- D(b(e(r)("action.insert", { capitalize: !0 })), 1)
1998
+ Q(b(e(r)("action.insert", { capitalize: !0 })), 1)
1993
1999
  ]),
1994
2000
  _: 1
1995
2001
  }, 8, ["disabled", "loading"])
1996
2002
  ]),
1997
2003
  default: v(() => [
1998
- z(He, E({
2004
+ z(He, H({
1999
2005
  modelValue: e(t).item,
2000
2006
  "onUpdate:modelValue": d[0] || (d[0] = (_) => e(t).item = _)
2001
2007
  }, {
@@ -2007,10 +2013,10 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2007
2013
  focus: "",
2008
2014
  onAdd: d[1] || (d[1] = (_) => _.preventDefault())
2009
2015
  }), de({ _: 2 }, [
2010
- q(Object.keys(p.$slots).filter((_) => _.startsWith("field-")), (_) => ({
2016
+ E(Object.keys(p.$slots).filter((_) => _.startsWith("field-")), (_) => ({
2011
2017
  name: _,
2012
2018
  fn: v((n) => [
2013
- I(p.$slots, _, ce(Ve(n)))
2019
+ C(p.$slots, _, ce(Ve(n)))
2014
2020
  ])
2015
2021
  }))
2016
2022
  ]), 1040, ["modelValue"])
@@ -2027,7 +2033,7 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2027
2033
  }
2028
2034
  i.filtersPreset = c.filters || {}, i.preferredTableProperties = c.table ? Array.from(c.table) : [], i.pagination.offset = 0;
2029
2035
  }
2030
- }, ta = (c, i = {
2036
+ }, oa = (c, i = {
2031
2037
  persistInQuery: !0
2032
2038
  }) => {
2033
2039
  const a = Le().currentRoute;
@@ -2048,29 +2054,29 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2048
2054
  }, {
2049
2055
  immediate: !0
2050
2056
  });
2051
- }, na = (c) => (Fe("data-v-7f75c4c2"), c = c(), Ue(), c), oa = {
2057
+ }, aa = (c) => (Fe("data-v-7f75c4c2"), c = c(), Ue(), c), la = {
2052
2058
  key: 0,
2053
2059
  class: "table aeria-surface"
2054
- }, aa = { key: 0 }, la = { key: 1 }, sa = { key: 0 }, ia = ["checked"], ra = {
2060
+ }, sa = { key: 0 }, ia = { key: 1 }, ra = { key: 0 }, ua = ["checked"], ca = {
2055
2061
  key: 1,
2056
2062
  style: { "text-align": "right" }
2057
- }, ua = { key: 2 }, ca = { key: 3 }, da = ["onClick"], pa = { key: 0 }, _a = ["value"], ma = { class: "table__cell-mobile-label" }, fa = {
2063
+ }, da = { key: 2 }, pa = { key: 3 }, _a = ["onClick"], ma = { key: 0 }, fa = ["value"], va = { class: "table__cell-mobile-label" }, ya = {
2058
2064
  key: 0,
2059
2065
  class: "table__cell-container"
2060
- }, va = {
2066
+ }, ha = {
2061
2067
  key: 1,
2062
2068
  class: "table__cell-container"
2063
- }, ya = { class: "table__cell-grid" }, ha = { key: 0 }, $a = { key: 1 }, ba = ["href"], ga = { key: 3 }, ka = { key: 2 }, Va = { key: 0 }, Ca = { key: 1 }, Ia = { key: 2 }, Aa = {
2069
+ }, $a = { class: "table__cell-grid" }, ba = { key: 0 }, ga = { key: 1 }, ka = ["href"], Va = { key: 3 }, Ca = { key: 2 }, Ia = { key: 0 }, Aa = { key: 1 }, Oa = { key: 2 }, wa = {
2064
2070
  key: 1,
2065
2071
  class: "no-print"
2066
- }, Oa = { class: "table__cell-actions" }, wa = {
2072
+ }, Sa = { class: "table__cell-actions" }, Ba = {
2067
2073
  key: 2,
2068
2074
  class: "no-print table__mobile-actions"
2069
- }, Sa = ["id"], Ba = { key: 1 }, ja = /* @__PURE__ */ na(() => /* @__PURE__ */ g("td", { colspan: 10 }, [
2075
+ }, ja = ["id"], Ta = { key: 1 }, La = /* @__PURE__ */ aa(() => /* @__PURE__ */ g("td", { colspan: 10 }, [
2070
2076
  /* @__PURE__ */ g("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
2071
- ], -1)), Ta = [
2072
- ja
2073
- ], La = /* @__PURE__ */ U({
2077
+ ], -1)), Ra = [
2078
+ La
2079
+ ], za = /* @__PURE__ */ q({
2074
2080
  __name: "aeria-table",
2075
2081
  props: {
2076
2082
  columns: {},
@@ -2082,97 +2088,97 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2082
2088
  },
2083
2089
  emits: ["itemClick"],
2084
2090
  setup(c, { emit: i }) {
2085
- const t = c, a = i, l = je(), r = t.collection || Te(), u = r ? re(typeof r == "string" ? r : r.value) : null, p = H({
2091
+ const t = c, a = i, l = je(), r = t.collection || Te(), u = r ? re(typeof r == "string" ? r : r.value) : null, p = D({
2086
2092
  get: () => u == null ? void 0 : u.selected,
2087
2093
  set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
2088
- }), d = (f, k) => f != null && f.button ? typeof f.button == "object" ? Qe(k, f.button).satisfied : f.button : !1, h = (f) => {
2089
- var k;
2090
- return !l.value.xl || !((k = t.layout) != null && k.actions) || !t.actions ? [] : t.actions.filter((S) => {
2091
- const R = t.layout.actions[S.action];
2094
+ }), d = (f, T) => f != null && f.button ? typeof f.button == "object" ? Qe(T, f.button).satisfied : f.button : !1, h = (f) => {
2095
+ var T;
2096
+ return !l.value.xl || !((T = t.layout) != null && T.actions) || !t.actions ? [] : t.actions.filter((A) => {
2097
+ const R = t.layout.actions[A.action];
2092
2098
  return d(R, f);
2093
2099
  });
2094
2100
  }, _ = (f) => {
2095
- var k;
2096
- return t.actions ? !l.value.xl || !((k = t.layout) != null && k.actions) ? t.actions : t.actions.filter((S) => {
2097
- const R = t.layout.actions[S.action];
2098
- if (S.roles) {
2099
- const W = re("user");
2100
- if (!$t(S.roles, W.currentUser.roles))
2101
+ var T;
2102
+ return t.actions ? !l.value.xl || !((T = t.layout) != null && T.actions) ? t.actions : t.actions.filter((A) => {
2103
+ const R = t.layout.actions[A.action];
2104
+ if (A.roles) {
2105
+ const F = re("user");
2106
+ if (!$t(A.roles, F.currentUser.roles))
2101
2107
  return !1;
2102
2108
  }
2103
2109
  return !d(R, f);
2104
2110
  }) : [];
2105
- }, n = (f, k) => {
2106
- var W, J;
2107
- const S = [], R = (J = (W = t.layout) == null ? void 0 : W.actions) == null ? void 0 : J[k.action];
2111
+ }, n = (f, T) => {
2112
+ var F, Y;
2113
+ const A = [], R = (Y = (F = t.layout) == null ? void 0 : F.actions) == null ? void 0 : Y[T.action];
2108
2114
  return R != null && R.if && (Qe(
2109
2115
  f,
2110
2116
  R.if
2111
- ).satisfied || S.push("display: none;")), S.join("");
2117
+ ).satisfied || A.push("display: none;")), A.join("");
2112
2118
  };
2113
- return (f, k) => {
2114
- var R, W, J;
2115
- const S = ne("clickable");
2116
- return f.columns && Object.keys(f.columns).length > 0 || f.$slots.thead ? (o(), s("table", oa, [
2117
- f.$slots.thead ? (o(), s("thead", aa, [
2118
- I(f.$slots, "thead", {}, void 0, !0)
2119
- ])) : (o(), s("thead", la, [
2119
+ return (f, T) => {
2120
+ var R, F, Y;
2121
+ const A = ne("clickable");
2122
+ return f.columns && Object.keys(f.columns).length > 0 || f.$slots.thead ? (o(), s("table", la, [
2123
+ f.$slots.thead ? (o(), s("thead", sa, [
2124
+ C(f.$slots, "thead", {}, void 0, !0)
2125
+ ])) : (o(), s("thead", ia, [
2120
2126
  g("tr", null, [
2121
- f.checkbox && e(u) && e(l).md ? (o(), s("th", sa, [
2127
+ f.checkbox && e(u) && e(l).md ? (o(), s("th", ra, [
2122
2128
  g("input", {
2123
2129
  type: "checkbox",
2124
2130
  checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
2125
- onChange: k[0] || (k[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
2126
- }, null, 40, ia)
2131
+ onChange: T[0] || (T[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
2132
+ }, null, 40, ua)
2127
2133
  ])) : y("", !0),
2128
- (o(!0), s(K, null, q(Object.entries(f.columns), ([O, M], X) => (o(), s("th", {
2129
- key: `header-${X}`,
2134
+ (o(!0), s(J, null, E(Object.entries(f.columns), ([O, M], K) => (o(), s("th", {
2135
+ key: `header-${K}`,
2130
2136
  class: "table__header"
2131
- }, b(M.description || e(F)(O)), 1))), 128)),
2132
- (R = f.actions) != null && R.length ? (o(), s("th", ra)) : y("", !0)
2137
+ }, b(M.description || e(U)(O)), 1))), 128)),
2138
+ (R = f.actions) != null && R.length ? (o(), s("th", ca)) : y("", !0)
2133
2139
  ])
2134
2140
  ])),
2135
- f.$slots.tbody ? (o(), s("tbody", ua, [
2136
- I(f.$slots, "tbody", {}, void 0, !0)
2137
- ])) : (o(), s("tbody", ca, [
2138
- (o(!0), s(K, null, q(f.rows, (O) => {
2139
- var M, X;
2141
+ f.$slots.tbody ? (o(), s("tbody", da, [
2142
+ C(f.$slots, "tbody", {}, void 0, !0)
2143
+ ])) : (o(), s("tbody", pa, [
2144
+ (o(!0), s(J, null, E(f.rows, (O) => {
2145
+ var M, K;
2140
2146
  return o(), s("tr", {
2141
2147
  key: O._id,
2142
- onClick: (B) => a("itemClick", O)
2148
+ onClick: (w) => a("itemClick", O)
2143
2149
  }, [
2144
- e(u) && f.checkbox && e(l).md ? (o(), s("td", pa, [
2150
+ e(u) && f.checkbox && e(l).md ? (o(), s("td", ma, [
2145
2151
  N(g("input", {
2146
- "onUpdate:modelValue": k[1] || (k[1] = (B) => p.value = B),
2152
+ "onUpdate:modelValue": T[1] || (T[1] = (w) => p.value = w),
2147
2153
  type: "checkbox",
2148
2154
  value: O._id
2149
- }, null, 8, _a), [
2155
+ }, null, 8, fa), [
2150
2156
  [It, p.value]
2151
2157
  ])
2152
2158
  ])) : y("", !0),
2153
- (o(!0), s(K, null, q(Object.entries(f.columns), ([B, ee], V) => {
2154
- var L, te, oe, le, m, A;
2159
+ (o(!0), s(J, null, E(Object.entries(f.columns), ([w, x], k) => {
2160
+ var L, te, oe, le, m, I;
2155
2161
  return o(), s("td", {
2156
- key: `column-${O._id}-${V}`
2162
+ key: `column-${O._id}-${k}`
2157
2163
  }, [
2158
- g("div", ma, b(ee.description || e(F)(B)), 1),
2159
- `row-${B}` in f.$slots ? (o(), s("div", fa, [
2160
- I(f.$slots, `row-${B}`, E({ ref_for: !0 }, {
2164
+ g("div", va, b(x.description || e(U)(w)), 1),
2165
+ `row-${w}` in f.$slots ? (o(), s("div", ya, [
2166
+ C(f.$slots, `row-${w}`, H({ ref_for: !0 }, {
2161
2167
  store: e(u),
2162
- column: B,
2163
- property: ee,
2168
+ column: w,
2169
+ property: x,
2164
2170
  row: O
2165
2171
  }), void 0, !0)
2166
- ])) : (o(), s("div", va, [
2167
- g("div", ya, [
2168
- "type" in ee && ee.type === "boolean" ? (o(), s("div", ha, [
2169
- O[B] ? (o(), $(P, {
2172
+ ])) : (o(), s("div", ha, [
2173
+ g("div", $a, [
2174
+ "type" in x && x.type === "boolean" ? (o(), s("div", ba, [
2175
+ O[w] ? (o(), $(P, {
2170
2176
  key: 0,
2171
2177
  icon: "check",
2172
2178
  "icon-classes": "aeria-blueish"
2173
2179
  }, {
2174
2180
  default: v(() => [
2175
- D(b(e(F)("yes")), 1)
2181
+ Q(b(e(U)("yes")), 1)
2176
2182
  ]),
2177
2183
  _: 1
2178
2184
  })) : (o(), $(P, {
@@ -2181,47 +2187,47 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2181
2187
  "icon-classes": "aeria-redish"
2182
2188
  }, {
2183
2189
  default: v(() => [
2184
- D(b(e(F)("no")), 1)
2190
+ Q(b(e(U)("no")), 1)
2185
2191
  ]),
2186
2192
  _: 1
2187
2193
  }))
2188
- ])) : ((L = e(pe)(ee)) == null ? void 0 : L.$ref) === "file" ? (o(), s("div", $a, [
2189
- /^image/.test((te = O[B][0]) == null ? void 0 : te.type) && "items" in ee ? (o(), $(Me, {
2194
+ ])) : ((L = e(pe)(x)) == null ? void 0 : L.$ref) === "file" ? (o(), s("div", ga, [
2195
+ /^image/.test((te = O[w][0]) == null ? void 0 : te.type) && "items" in x ? (o(), $(Me, {
2190
2196
  key: 0,
2191
- modelValue: O[B][0].link,
2192
- "onUpdate:modelValue": (w) => O[B][0].link = w,
2197
+ modelValue: O[w][0].link,
2198
+ "onUpdate:modelValue": (S) => O[w][0].link = S,
2193
2199
  expandable: "",
2194
- meta: O[B][0],
2200
+ meta: O[w][0],
2195
2201
  alt: "Row image",
2196
2202
  class: "table__picture"
2197
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[B]) == null ? void 0 : oe.type) ? (o(), $(Me, {
2203
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[w]) == null ? void 0 : oe.type) ? (o(), $(Me, {
2198
2204
  key: 1,
2199
- modelValue: O[B].link,
2200
- "onUpdate:modelValue": (w) => O[B].link = w,
2205
+ modelValue: O[w].link,
2206
+ "onUpdate:modelValue": (S) => O[w].link = S,
2201
2207
  expandable: "",
2202
- meta: O[B],
2208
+ meta: O[w],
2203
2209
  alt: "Row image",
2204
2210
  class: "table__picture"
2205
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (le = O[B]) != null && le.link ? (o(), s("a", {
2211
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (le = O[w]) != null && le.link ? (o(), s("a", {
2206
2212
  key: 2,
2207
- href: O[B].link,
2213
+ href: O[w].link,
2208
2214
  style: { "font-size": "10pt" }
2209
- }, b(O[B].filename), 9, ba)) : (o(), s("div", ga, " - "))
2210
- ])) : (o(), s("div", ka, [
2211
- e(u) ? (o(), s("span", Va, b(e(u).$actions.formatValue({
2212
- value: O[B],
2213
- key: B,
2214
- property: ee
2215
- })), 1)) : (o(), s("span", Ca, b(Array.isArray(O[B]) ? O[B].filter((w) => !!w).join(", ") : [void 0, null].includes(O[B]) ? "-" : O[B]), 1)),
2216
- ((A = (m = e(pe)(ee)) == null ? void 0 : m.indexes) == null ? void 0 : A.length) > 1 ? (o(), s("div", Ia, [
2217
- (o(!0), s(K, null, q(e(pe)(ee).indexes.slice(1, 2), (w, Z) => (o(), s("div", {
2215
+ }, b(O[w].filename), 9, ka)) : (o(), s("div", Va, " - "))
2216
+ ])) : (o(), s("div", Ca, [
2217
+ e(u) ? (o(), s("span", Ia, b(e(u).$actions.formatValue({
2218
+ value: O[w],
2219
+ key: w,
2220
+ property: x
2221
+ })), 1)) : (o(), s("span", Aa, b(Array.isArray(O[w]) ? O[w].filter((S) => !!S).join(", ") : [void 0, null].includes(O[w]) ? "-" : O[w]), 1)),
2222
+ ((I = (m = e(pe)(x)) == null ? void 0 : m.indexes) == null ? void 0 : I.length) > 1 ? (o(), s("div", Oa, [
2223
+ (o(!0), s(J, null, E(e(pe)(x).indexes.slice(1, 2), (S, Z) => (o(), s("div", {
2218
2224
  key: `subvalue-${Z}`,
2219
2225
  class: "table__cell-subvalue"
2220
2226
  }, b(e(u).$actions.formatValue({
2221
- value: O[B],
2222
- key: B,
2223
- property: ee,
2224
- index: w
2227
+ value: O[w],
2228
+ key: w,
2229
+ property: x,
2230
+ index: S
2225
2231
  })), 1))), 128))
2226
2232
  ])) : y("", !0)
2227
2233
  ]))
@@ -2229,22 +2235,22 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2229
2235
  ]))
2230
2236
  ]);
2231
2237
  }), 128)),
2232
- (M = f.actions) != null && M.length && e(l).md ? (o(), s("td", Aa, [
2233
- g("div", Oa, [
2234
- (o(!0), s(K, null, q(h(O), (B) => (o(), $(ie, {
2235
- key: `action-${B.action}`,
2238
+ (M = f.actions) != null && M.length && e(l).md ? (o(), s("td", wa, [
2239
+ g("div", Sa, [
2240
+ (o(!0), s(J, null, E(h(O), (w) => (o(), $(ie, {
2241
+ key: `action-${w.action}`,
2236
2242
  small: "",
2237
2243
  variant: "transparent",
2238
- icon: B.icon,
2239
- style: $e(n(O, B)),
2240
- onClick: (ee) => B.click(O)
2244
+ icon: w.icon,
2245
+ style: $e(n(O, w)),
2246
+ onClick: (x) => w.click(O)
2241
2247
  }, {
2242
2248
  default: v(() => [
2243
- D(b(e(F)(B.label)), 1)
2249
+ Q(b(e(U)(w.label)), 1)
2244
2250
  ]),
2245
2251
  _: 2
2246
2252
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2247
- _(O).length > 0 ? (o(), $(Ce, E({
2253
+ _(O).length > 0 ? (o(), $(Ce, H({
2248
2254
  key: 0,
2249
2255
  ref_for: !0
2250
2256
  }, {
@@ -2256,35 +2262,35 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2256
2262
  reactive: "",
2257
2263
  icon: "dots-three"
2258
2264
  }, null, 512), [
2259
- [S]
2265
+ [A]
2260
2266
  ])
2261
2267
  ]),
2262
2268
  _: 2
2263
2269
  }, 1040)) : y("", !0)
2264
2270
  ])
2265
- ])) : (X = f.actions) != null && X.length ? (o(), s("td", wa, [
2271
+ ])) : (K = f.actions) != null && K.length ? (o(), s("td", Ba, [
2266
2272
  g("div", {
2267
2273
  class: "table__mobile-actions-grid",
2268
2274
  style: $e(`grid-template-columns: repeat(${h(O).length + (_(O).length ? 1 : 0)}, 1fr);`)
2269
2275
  }, [
2270
- (o(!0), s(K, null, q(h(O), (B) => (o(), $(fe, {
2271
- key: `action-${B.action}`,
2276
+ (o(!0), s(J, null, E(h(O), (w) => (o(), $(fe, {
2277
+ key: `action-${w.action}`,
2272
2278
  class: "table__mobile-actions-button",
2273
- onClick: (ee) => B.click(O)
2279
+ onClick: (x) => w.click(O)
2274
2280
  }, {
2275
2281
  default: v(() => [
2276
2282
  z(P, {
2277
- icon: B.icon || "gear"
2283
+ icon: w.icon || "gear"
2278
2284
  }, {
2279
2285
  default: v(() => [
2280
- D(b(e(F)(B.label)), 1)
2286
+ Q(b(e(U)(w.label)), 1)
2281
2287
  ]),
2282
2288
  _: 2
2283
2289
  }, 1032, ["icon"])
2284
2290
  ]),
2285
2291
  _: 2
2286
2292
  }, 1032, ["onClick"]))), 128)),
2287
- _(O).length > 0 ? (o(), $(Ce, E({
2293
+ _(O).length > 0 ? (o(), $(Ce, H({
2288
2294
  key: 0,
2289
2295
  ref_for: !0
2290
2296
  }, {
@@ -2303,18 +2309,18 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2303
2309
  ])) : y("", !0),
2304
2310
  g("div", {
2305
2311
  id: `dropdown-${O._id}`
2306
- }, null, 8, Sa)
2307
- ], 8, da);
2312
+ }, null, 8, ja)
2313
+ ], 8, _a);
2308
2314
  }), 128))
2309
2315
  ])),
2310
2316
  g("tfoot", null, [
2311
- f.$slots.tfoot ? I(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((W = f.rows) != null && W.length) && !((J = e(u)) != null && J.loading.getAll) ? (o(), s("tr", Ba, Ta)) : y("", !0)
2317
+ f.$slots.tfoot ? C(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((F = f.rows) != null && F.length) && !((Y = e(u)) != null && Y.loading.getAll) ? (o(), s("tr", Ta, Ra)) : y("", !0)
2312
2318
  ])
2313
2319
  ])) : y("", !0);
2314
2320
  };
2315
2321
  }
2316
2322
  });
2317
- const Ra = /* @__PURE__ */ G(La, [["__scopeId", "data-v-7f75c4c2"]]), za = /* @__PURE__ */ U({
2323
+ const Ma = /* @__PURE__ */ W(za, [["__scopeId", "data-v-7f75c4c2"]]), Fa = /* @__PURE__ */ q({
2318
2324
  __name: "aeria-tabular",
2319
2325
  props: {
2320
2326
  individualActions: {},
@@ -2322,7 +2328,7 @@ const Ra = /* @__PURE__ */ G(La, [["__scopeId", "data-v-7f75c4c2"]]), za = /* @_
2322
2328
  componentProps: {}
2323
2329
  },
2324
2330
  setup(c) {
2325
- const i = c, t = ge(), a = Te(), l = H(() => {
2331
+ const i = c, t = ge(), a = Te(), l = D(() => {
2326
2332
  const r = {
2327
2333
  collection: a,
2328
2334
  checkbox: t.hasSelectionActions,
@@ -2334,39 +2340,39 @@ const Ra = /* @__PURE__ */ G(La, [["__scopeId", "data-v-7f75c4c2"]]), za = /* @_
2334
2340
  return Object.assign(r, i.componentProps);
2335
2341
  });
2336
2342
  return (r, u) => (o(), s("div", null, [
2337
- r.$slots.inner ? I(r.$slots, "inner", { key: 0 }) : y("", !0),
2338
- e(t).properties ? (o(), $(Ra, E({ key: 1 }, l.value, {
2343
+ r.$slots.inner ? C(r.$slots, "inner", { key: 0 }) : y("", !0),
2344
+ e(t).properties ? (o(), $(Ma, H({ key: 1 }, l.value, {
2339
2345
  key: e(t).$id
2340
2346
  }), de({ _: 2 }, [
2341
- q(Object.keys(r.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
2347
+ E(Object.keys(r.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
2342
2348
  name: p,
2343
2349
  fn: v((d) => [
2344
- I(r.$slots, p, ce(Ve(d)))
2350
+ C(r.$slots, p, ce(Ve(d)))
2345
2351
  ])
2346
2352
  }))
2347
2353
  ]), 1040)) : y("", !0)
2348
2354
  ]));
2349
2355
  }
2350
- }), Ma = /* @__PURE__ */ U({
2356
+ }), Ua = /* @__PURE__ */ q({
2351
2357
  __name: "aeria-grid",
2352
2358
  props: {
2353
2359
  list: { type: Boolean }
2354
2360
  },
2355
2361
  setup(c) {
2356
2362
  return (i, t) => (o(), s("div", {
2357
- class: Q(`
2363
+ class: G(`
2358
2364
  grid
2359
2365
  ${i.list && "grid--list"}
2360
2366
  `)
2361
2367
  }, [
2362
- I(i.$slots, "default", {}, void 0, !0)
2368
+ C(i.$slots, "default", {}, void 0, !0)
2363
2369
  ], 2));
2364
2370
  }
2365
2371
  });
2366
- const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), Ua = { key: 0 }, qa = {
2372
+ const qa = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ea = { key: 0 }, Ha = {
2367
2373
  key: 1,
2368
2374
  class: "card__information"
2369
- }, Ea = /* @__PURE__ */ U({
2375
+ }, Da = /* @__PURE__ */ q({
2370
2376
  __name: "aeria-grid",
2371
2377
  props: {
2372
2378
  individualActions: {},
@@ -2378,21 +2384,21 @@ const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
2378
2384
  const t = c.layoutOptions, a = ge(), l = (r) => Array.isArray(r) ? r[0] : r;
2379
2385
  return (r, u) => {
2380
2386
  const p = ne("clickable");
2381
- return o(), $(Fa, {
2387
+ return o(), $(qa, {
2382
2388
  list: r.componentName === "list"
2383
2389
  }, {
2384
2390
  default: v(() => [
2385
- (o(!0), s(K, null, q(e(a).items, (d) => (o(), $(dn, {
2391
+ (o(!0), s(J, null, E(e(a).items, (d) => (o(), $(pn, {
2386
2392
  key: d,
2387
2393
  inactive: !!(e(t).active && !d[e(t).active]),
2388
2394
  horizontal: r.componentName === "list"
2389
2395
  }, de({
2390
2396
  footer: v(() => [
2391
- e(t).title ? (o(), s("div", Ua, b(d[e(t).title]), 1)) : y("", !0),
2392
- e(t).information ? (o(), s("div", qa, b(d[e(t).information]), 1)) : y("", !0)
2397
+ e(t).title ? (o(), s("div", Ea, b(d[e(t).title]), 1)) : y("", !0),
2398
+ e(t).information ? (o(), s("div", Ha, b(d[e(t).information]), 1)) : y("", !0)
2393
2399
  ]),
2394
2400
  actions: v(() => [
2395
- r.individualActions.length > 0 ? (o(), $(Ce, E({
2401
+ r.individualActions.length > 0 ? (o(), $(Ce, H({
2396
2402
  key: 0,
2397
2403
  ref_for: !0
2398
2404
  }, {
@@ -2426,12 +2432,12 @@ const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
2426
2432
  e(t).badge && Array.isArray(d[e(t).badge]) ? {
2427
2433
  name: "badge",
2428
2434
  fn: v(() => [
2429
- (o(!0), s(K, null, q(d[e(t).badge], (h) => (o(), $(be, {
2435
+ (o(!0), s(J, null, E(d[e(t).badge], (h) => (o(), $(be, {
2430
2436
  key: `${d._id}-${h}`,
2431
2437
  large: ""
2432
2438
  }, {
2433
2439
  default: v(() => [
2434
- D(b(e(t).translateBadge ? e(F)(h) : h), 1)
2440
+ Q(b(e(t).translateBadge ? e(U)(h) : h), 1)
2435
2441
  ]),
2436
2442
  _: 2
2437
2443
  }, 1024))), 128))
@@ -2442,7 +2448,7 @@ const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
2442
2448
  fn: v(() => [
2443
2449
  z(be, null, {
2444
2450
  default: v(() => [
2445
- D(b(e(t).translateBadge ? e(F)(d[e(t).badge]) : d[e(t).badge]), 1)
2451
+ Q(b(e(t).translateBadge ? e(U)(d[e(t).badge]) : d[e(t).badge]), 1)
2446
2452
  ]),
2447
2453
  _: 2
2448
2454
  }, 1024)
@@ -2456,20 +2462,20 @@ const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
2456
2462
  };
2457
2463
  }
2458
2464
  });
2459
- const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) => ({
2460
- tabular: za,
2465
+ const pt = /* @__PURE__ */ W(Da, [["__scopeId", "data-v-113dd7db"]]), Qa = (c) => ({
2466
+ tabular: Fa,
2461
2467
  grid: pt,
2462
2468
  list: pt
2463
- })[c], Da = (c) => (Fe("data-v-2cbb3e9f"), c = c(), Ue(), c), Qa = {
2469
+ })[c], Ga = (c) => (Fe("data-v-2cbb3e9f"), c = c(), Ue(), c), Wa = {
2464
2470
  key: 2,
2465
2471
  class: "crud__controls"
2466
- }, Ga = {
2472
+ }, Ka = {
2467
2473
  key: 0,
2468
2474
  class: "crud__search"
2469
- }, Wa = { class: "crud__actions" }, Xa = { class: "crud__context-badge" }, Ya = /* @__PURE__ */ Da(() => /* @__PURE__ */ g("div", null, "Filtros", -1)), Ja = { key: 0 }, Ka = {
2475
+ }, Xa = { class: "crud__actions" }, Ya = { class: "crud__context-badge" }, Ja = /* @__PURE__ */ Ga(() => /* @__PURE__ */ g("div", null, "Filtros", -1)), Za = { key: 0 }, Pa = {
2470
2476
  key: 3,
2471
2477
  class: "crud__pagination"
2472
- }, _t = 30, Za = /* @__PURE__ */ U({
2478
+ }, _t = 30, Na = /* @__PURE__ */ q({
2473
2479
  __name: "aeria-crud",
2474
2480
  props: {
2475
2481
  collection: {},
@@ -2490,73 +2496,73 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) =
2490
2496
  }), u = re("meta"), p = je(), { reachedEnd: d, detach: h } = We(null, {
2491
2497
  antecipate: 600
2492
2498
  }), _ = !p.value.md || t.scrollPagination;
2493
- _ && ue(d, (V) => {
2494
- V && n.pagination.recordsTotal > n.items.length && S.value < _t && (S.value += 1, W());
2499
+ _ && ue(d, (k) => {
2500
+ k && n.pagination.recordsTotal > n.items.length && A.value < _t && (A.value += 1, F());
2495
2501
  });
2496
2502
  const n = re(t.collection);
2497
- ta(n, {
2503
+ oa(n, {
2498
2504
  persistInQuery: !t.noQueryPersistence
2499
2505
  });
2500
- const f = bt(), k = t.action ? e(t.action) : Ft(n, l, f);
2501
- Se.value = k[0], ct.value = k[1];
2502
- const S = Y(0), R = Y(!1), W = async (V) => {
2503
- n.activeFilters = Object.assign({}, (V == null ? void 0 : V.filters) || n.$filters), Object.assign(n.activeFilters, n.filtersPreset);
2506
+ const f = bt(), T = t.action ? e(t.action) : Ut(n, l, f);
2507
+ Se.value = T[0], ct.value = T[1];
2508
+ const A = X(0), R = X(!1), F = async (k) => {
2509
+ n.activeFilters = Object.assign({}, (k == null ? void 0 : k.filters) || n.$filters), Object.assign(n.activeFilters, n.filtersPreset);
2504
2510
  const L = {
2505
2511
  filters: n.activeFilters,
2506
2512
  limit: n.pagination.limit,
2507
2513
  offset: n.pagination.offset,
2508
2514
  project: n.preferredTableProperties.length > 0 ? n.preferredTableProperties : n.description.table || Object.keys(n.properties)
2509
2515
  };
2510
- S.value > 0 && (L.limit = 15, L.offset = S.value * L.limit), n.description.tableMeta && (L.project = L.project.concat(n.description.tableMeta)), V && Object.assign(L, V), n.loading.getAll = !0;
2516
+ A.value > 0 && (L.limit = 15, L.offset = A.value * L.limit), n.description.tableMeta && (L.project = L.project.concat(n.description.tableMeta)), k && Object.assign(L, k), n.loading.getAll = !0;
2511
2517
  const { data: te, pagination: oe } = await n.$actions.retrieveItems(L);
2512
- n.pagination.recordsCount = oe.recordsCount, n.pagination.recordsTotal = oe.recordsTotal, S.value === 0 && n.items.splice(0), n.items.push(...te), n.loading.getAll = !1, R.value = !0;
2513
- }, J = async (V) => {
2518
+ n.pagination.recordsCount = oe.recordsCount, n.pagination.recordsTotal = oe.recordsTotal, A.value === 0 && n.items.splice(0), n.items.push(...te), n.loading.getAll = !1, R.value = !0;
2519
+ }, Y = async (k) => {
2514
2520
  l.push({
2515
2521
  query: {
2516
2522
  ...l.currentRoute.value.query,
2517
- offset: V.offset,
2518
- limit: V.limit
2523
+ offset: k.offset,
2524
+ limit: k.limit
2519
2525
  }
2520
- }), n.pagination.offset = V.offset, n.pagination.limit = V.limit, W();
2526
+ }), n.pagination.offset = k.offset, n.pagination.limit = k.limit, F();
2521
2527
  }, O = ve("noResultsComponent", null);
2522
2528
  ue(() => [
2523
2529
  l.currentRoute.value.path,
2524
2530
  l.currentRoute.value.query.section
2525
- ], async (V, L) => {
2526
- if (L && L[0] === V[0] && L[1] === V[1])
2531
+ ], async (k, L) => {
2532
+ if (L && L[0] === k[0] && L[1] === k[1])
2527
2533
  return;
2528
2534
  const te = l.currentRoute.value;
2529
2535
  if (u.view.title = t.collection, u.view.collection = t.collection, ut.value = !1, !t.noFetch && !te.query._popstate) {
2530
- const oe = Ut(n, te);
2531
- Object.keys(oe).length > 0 && Object.assign(n.filters, oe), await W();
2536
+ const oe = qt(n, te);
2537
+ Object.keys(oe).length > 0 && Object.assign(n.filters, oe), await F();
2532
2538
  }
2533
2539
  }, {
2534
2540
  immediate: !0,
2535
2541
  flush: "post"
2536
2542
  });
2537
- const [M] = r((V) => (l.push({
2543
+ const [M] = r((k) => (l.push({
2538
2544
  query: {
2539
- search: V || void 0
2545
+ search: k || void 0
2540
2546
  }
2541
- }), V ? (n.filters = Object.assign(Be(n.freshFilters), {
2547
+ }), k ? (n.filters = Object.assign(Be(n.freshFilters), {
2542
2548
  $text: {
2543
- $search: `"${V}"`,
2549
+ $search: `"${k}"`,
2544
2550
  $caseSensitive: !1
2545
2551
  }
2546
- }), W({
2552
+ }), F({
2547
2553
  offset: 0
2548
- })) : (n.filters = Be(n.freshFilters), S.value = 0, W())));
2549
- ue(() => n.textQuery, (V) => {
2550
- M(V);
2554
+ })) : (n.filters = Be(n.freshFilters), A.value = 0, F())));
2555
+ ue(() => n.textQuery, (k) => {
2556
+ M(k);
2551
2557
  });
2552
- const X = (V) => {
2553
- V.currentLayout = V.currentLayout === "tabular" ? V.description.layout.name : "tabular";
2558
+ const K = (k) => {
2559
+ k.currentLayout = k.currentLayout === "tabular" ? k.description.layout.name : "tabular";
2554
2560
  };
2555
2561
  At(() => {
2556
2562
  n.$actions.clearFilters(), n.textQuery = "", h();
2557
- }), ue(() => ct.value, async (V) => {
2563
+ }), ue(() => ct.value, async (k) => {
2558
2564
  var oe;
2559
- const L = Be(V);
2565
+ const L = Be(k);
2560
2566
  let te;
2561
2567
  if (L)
2562
2568
  if ([
@@ -2577,30 +2583,30 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) =
2577
2583
  ut.value = !0, se.value = "view";
2578
2584
  else if (L.name === "duplicate") {
2579
2585
  await te;
2580
- const le = Object.entries(n.item).reduce((m, [A, w]) => {
2581
- if (!(A in n.properties))
2586
+ const le = Object.entries(n.item).reduce((m, [I, S]) => {
2587
+ if (!(I in n.properties))
2582
2588
  return {
2583
2589
  ...m,
2584
- [A]: w
2590
+ [I]: S
2585
2591
  };
2586
- const Z = n.properties[A];
2592
+ const Z = n.properties[I];
2587
2593
  if (Z.readOnly)
2588
2594
  return m;
2589
- const C = (T) => {
2590
- const j = pe(Z);
2591
- if (!j)
2592
- return T;
2593
- if (j.$ref === "file")
2595
+ const V = (j) => {
2596
+ const B = pe(Z);
2597
+ if (!B)
2598
+ return j;
2599
+ if (B.$ref === "file")
2594
2600
  return {};
2595
- if (j.inline && T) {
2596
- const { _id: ae, ..._e } = T;
2601
+ if (B.inline && j) {
2602
+ const { _id: ae, ..._e } = j;
2597
2603
  return _e;
2598
2604
  }
2599
- return T;
2605
+ return j;
2600
2606
  };
2601
- return w = Array.isArray(w) ? w.map(C) : C(w), {
2607
+ return S = Array.isArray(S) ? S.map(V) : V(S), {
2602
2608
  ...m,
2603
- [A]: w
2609
+ [I]: S
2604
2610
  };
2605
2611
  }, {});
2606
2612
  n.$actions.setItem(le), delete n.item._id, n.referenceItem = {}, se.value = "duplicate";
@@ -2608,35 +2614,35 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) =
2608
2614
  a("uiEvent", L);
2609
2615
  }, {
2610
2616
  deep: !0
2611
- }), ue(() => se, (V) => {
2612
- V.value === !1 && (u.view.collection = t.collection, n.$actions.clearItem());
2617
+ }), ue(() => se, (k) => {
2618
+ k.value === !1 && (u.view.collection = t.collection, n.$actions.clearItem());
2613
2619
  });
2614
- const B = H(() => n.individualActions.map((V) => ({
2615
- click: Se.value(V),
2616
- ...V
2617
- }))), ee = H(() => n.actions.filter((V) => !V.button));
2618
- return ye(qe, H(() => t.collection)), ye("individualActions", B), (V, L) => {
2619
- var le, m, A, w, Z, C, T;
2620
+ const w = D(() => n.individualActions.map((k) => ({
2621
+ click: Se.value(k),
2622
+ ...k
2623
+ }))), x = D(() => n.actions.filter((k) => !k.button));
2624
+ return ye(qe, D(() => t.collection)), ye("individualActions", w), (k, L) => {
2625
+ var le, m, I, S, Z, V, j;
2620
2626
  const te = ne("clickable"), oe = ne("loading");
2621
- return o(), s(K, null, [
2622
- e(ke) ? (o(), $(xo, {
2627
+ return o(), s(J, null, [
2628
+ e(ke) ? (o(), $(ta, {
2623
2629
  key: e(n).$id,
2624
2630
  modelValue: e(ke),
2625
- "onUpdate:modelValue": L[0] || (L[0] = (j) => vt(ke) ? ke.value = j : null)
2631
+ "onUpdate:modelValue": L[0] || (L[0] = (B) => vt(ke) ? ke.value = B : null)
2626
2632
  }, null, 8, ["modelValue"])) : y("", !0),
2627
- e(se) ? (o(), $(ea, { key: 1 }, de({ _: 2 }, [
2628
- q(Object.keys(V.$slots).filter((j) => j.startsWith("field-")), (j) => ({
2629
- name: j,
2633
+ e(se) ? (o(), $(na, { key: 1 }, de({ _: 2 }, [
2634
+ E(Object.keys(k.$slots).filter((B) => B.startsWith("field-")), (B) => ({
2635
+ name: B,
2630
2636
  fn: v((ae) => [
2631
- I(V.$slots, j, ce(Ve(ae)), void 0, !0)
2637
+ C(k.$slots, B, ce(Ve(ae)), void 0, !0)
2632
2638
  ])
2633
2639
  }))
2634
2640
  ]), 1024)) : y("", !0),
2635
- !V.noActions && (e(n).description.search || Object.keys(e(n).availableFilters).length > 0 || ((le = e(n)) == null ? void 0 : le.actions.length) > 0 || V.$slots.actions || !V.noLayoutToggle && e(n).description.layout && ((m = e(n).description.layout) == null ? void 0 : m.name) !== "tabular") ? (o(), s("div", Qa, [
2636
- e(n).description.search ? (o(), s("div", Ga, [
2637
- z(Ie, E({
2641
+ !k.noActions && (e(n).description.search || Object.keys(e(n).availableFilters).length > 0 || ((le = e(n)) == null ? void 0 : le.actions.length) > 0 || k.$slots.actions || !k.noLayoutToggle && e(n).description.layout && ((m = e(n).description.layout) == null ? void 0 : m.name) !== "tabular") ? (o(), s("div", Wa, [
2642
+ e(n).description.search ? (o(), s("div", Ka, [
2643
+ z(Ie, H({
2638
2644
  modelValue: e(n).textQuery,
2639
- "onUpdate:modelValue": L[1] || (L[1] = (j) => e(n).textQuery = j)
2645
+ "onUpdate:modelValue": L[1] || (L[1] = (B) => e(n).textQuery = B)
2640
2646
  }, {
2641
2647
  property: {
2642
2648
  type: "string",
@@ -2645,8 +2651,8 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) =
2645
2651
  }
2646
2652
  }), null, 16, ["modelValue"])
2647
2653
  ])) : y("", !0),
2648
- g("div", Wa, [
2649
- ee.value.length > 0 || !V.noLayoutToggle && e(n).description.layout && ((A = e(n).description.layout) == null ? void 0 : A.name) !== "tabular" ? (o(), $(Ce, { key: 0 }, de({
2654
+ g("div", Xa, [
2655
+ x.value.length > 0 || !k.noLayoutToggle && e(n).description.layout && ((I = e(n).description.layout) == null ? void 0 : I.name) !== "tabular" ? (o(), $(Ce, { key: 0 }, de({
2650
2656
  default: v(() => [
2651
2657
  z(ie, {
2652
2658
  variant: "alt",
@@ -2655,7 +2661,7 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) =
2655
2661
  default: v(() => [
2656
2662
  e(n).filtersCount ? (o(), $(be, { key: 0 }, {
2657
2663
  default: v(() => [
2658
- D(b(e(n).filtersCount), 1)
2664
+ Q(b(e(n).filtersCount), 1)
2659
2665
  ]),
2660
2666
  _: 1
2661
2667
  })) : y("", !0)
@@ -2670,19 +2676,19 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) =
2670
2676
  fn: v(() => [
2671
2677
  N((o(), $(P, {
2672
2678
  icon: "funnel",
2673
- onClick: L[2] || (L[2] = (j) => ke.value = !0)
2679
+ onClick: L[2] || (L[2] = (B) => ke.value = !0)
2674
2680
  }, {
2675
2681
  default: v(() => [
2676
- D(b(e(F)("filters", { capitalize: !0 })), 1)
2682
+ Q(b(e(U)("filters", { capitalize: !0 })), 1)
2677
2683
  ]),
2678
2684
  _: 1
2679
2685
  })), [
2680
2686
  [te]
2681
2687
  ]),
2682
- g("div", Xa, [
2688
+ g("div", Ya, [
2683
2689
  e(n).filtersCount ? (o(), $(be, { key: 0 }, {
2684
2690
  default: v(() => [
2685
- D(b(e(n).filtersCount), 1)
2691
+ Q(b(e(n).filtersCount), 1)
2686
2692
  ]),
2687
2693
  _: 1
2688
2694
  })) : y("", !0)
@@ -2690,15 +2696,15 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) =
2690
2696
  ]),
2691
2697
  key: "0"
2692
2698
  } : void 0,
2693
- !V.noLayoutToggle && e(n).description.layout && ((w = e(n).description.layout) == null ? void 0 : w.name) !== "tabular" ? {
2699
+ !k.noLayoutToggle && e(n).description.layout && ((S = e(n).description.layout) == null ? void 0 : S.name) !== "tabular" ? {
2694
2700
  name: "layout-toggle",
2695
2701
  fn: v(() => [
2696
2702
  N((o(), $(P, {
2697
2703
  icon: "table",
2698
- onClick: L[3] || (L[3] = (j) => X(e(n)))
2704
+ onClick: L[3] || (L[3] = (B) => K(e(n)))
2699
2705
  }, {
2700
2706
  default: v(() => [
2701
- D(b(e(F)("change_layout", { capitalize: !0 })), 1)
2707
+ Q(b(e(U)("change_layout", { capitalize: !0 })), 1)
2702
2708
  ]),
2703
2709
  _: 1
2704
2710
  })), [
@@ -2707,17 +2713,17 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) =
2707
2713
  ]),
2708
2714
  key: "1"
2709
2715
  } : void 0,
2710
- q(ee.value, (j, ae) => ({
2716
+ E(x.value, (B, ae) => ({
2711
2717
  name: `action-${ae}`,
2712
2718
  fn: v(() => [
2713
- j ? (o(), $(P, {
2719
+ B ? (o(), $(P, {
2714
2720
  key: 0,
2715
- icon: j.icon || "gear",
2716
- disabled: e(n).selected.length === 0 && j.selection,
2717
- onClick: (_e) => e(Se)(j)({ _id: e(n).selected.map((me) => me._id) })
2721
+ icon: B.icon || "gear",
2722
+ disabled: e(n).selected.length === 0 && B.selection,
2723
+ onClick: (_e) => e(Se)(B)({ _id: e(n).selected.map((me) => me._id) })
2718
2724
  }, {
2719
2725
  default: v(() => [
2720
- D(b(e(F)(j.label, { capitalize: !0 })), 1)
2726
+ Q(b(e(U)(B.label, { capitalize: !0 })), 1)
2721
2727
  ]),
2722
2728
  _: 2
2723
2729
  }, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
@@ -2727,93 +2733,93 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) =
2727
2733
  key: 1,
2728
2734
  variant: "alt",
2729
2735
  icon: "funnel",
2730
- onClick: L[4] || (L[4] = (j) => ke.value = !0)
2736
+ onClick: L[4] || (L[4] = (B) => ke.value = !0)
2731
2737
  }, {
2732
2738
  default: v(() => [
2733
- Ya,
2739
+ Ja,
2734
2740
  e(n).filtersCount ? (o(), $(be, { key: 0 }, {
2735
2741
  default: v(() => [
2736
- D(b(e(n).filtersCount), 1)
2742
+ Q(b(e(n).filtersCount), 1)
2737
2743
  ]),
2738
2744
  _: 1
2739
2745
  })) : y("", !0)
2740
2746
  ]),
2741
2747
  _: 1
2742
2748
  })) : y("", !0),
2743
- (o(!0), s(K, null, q(e(n).actions.filter((j) => j.button), (j, ae) => (o(), $(ie, {
2749
+ (o(!0), s(J, null, E(e(n).actions.filter((B) => B.button), (B, ae) => (o(), $(ie, {
2744
2750
  key: `action-${ae}`,
2745
- icon: j.icon,
2746
- disabled: e(n).selected.length === 0 && j.selection,
2747
- onClick: (_e) => e(Se)(j)({ _id: e(n).selected.map((me) => me._id) })
2751
+ icon: B.icon,
2752
+ disabled: e(n).selected.length === 0 && B.selection,
2753
+ onClick: (_e) => e(Se)(B)({ _id: e(n).selected.map((me) => me._id) })
2748
2754
  }, {
2749
2755
  default: v(() => [
2750
- D(b(e(F)(j.label, { capitalize: !0 })), 1)
2756
+ Q(b(e(U)(B.label, { capitalize: !0 })), 1)
2751
2757
  ]),
2752
2758
  _: 2
2753
2759
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
2754
- V.$slots.actions ? I(V.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2760
+ k.$slots.actions ? C(k.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2755
2761
  ])
2756
2762
  ])) : y("", !0),
2757
2763
  N((o(), s("div", null, [
2758
- e(n).itemsCount === 0 && !e(n).loading.getAll && R.value && (e(O) || V.$slots.empty) ? (o(), s("div", Ja, [
2759
- e(O) ? (o(), $(he(e(O)), ce(E({ key: 0 }, {
2764
+ e(n).itemsCount === 0 && !e(n).loading.getAll && R.value && (e(O) || k.$slots.empty) ? (o(), s("div", Za, [
2765
+ e(O) ? (o(), $(he(e(O)), ce(H({ key: 0 }, {
2760
2766
  collection: e(n).$id
2761
2767
  })), {
2762
2768
  default: v(() => [
2763
2769
  e(n).filtersCount === 0 && e(n).description.actions && "ui:spawnAdd" in e(n).description.actions ? (o(), $(ie, {
2764
2770
  key: 0,
2765
2771
  icon: "plus",
2766
- onClick: L[5] || (L[5] = (j) => e(Se)({
2772
+ onClick: L[5] || (L[5] = (B) => e(Se)({
2767
2773
  action: "ui:spawnAdd"
2768
2774
  })())
2769
2775
  }, {
2770
2776
  default: v(() => [
2771
- D(b(e(F)("add_first_item", { capitalize: !0 })), 1)
2777
+ Q(b(e(U)("add_first_item", { capitalize: !0 })), 1)
2772
2778
  ]),
2773
2779
  _: 1
2774
2780
  })) : y("", !0)
2775
2781
  ]),
2776
2782
  _: 1
2777
- }, 16)) : I(V.$slots, "empty", ce(E({ key: 1 }, {
2783
+ }, 16)) : C(k.$slots, "empty", ce(H({ key: 1 }, {
2778
2784
  collection: e(n).$id
2779
2785
  })), void 0, !0)
2780
- ])) : V.$slots.component ? I(V.$slots, "component", ce(E({ key: 1 }, {
2786
+ ])) : k.$slots.component ? C(k.$slots, "component", ce(H({ key: 1 }, {
2781
2787
  store: e(n)
2782
- })), void 0, !0) : (o(), $(he(e(Ha)(((Z = V.layout) == null ? void 0 : Z.name) || e(n).$currentLayout)), E({ key: 2 }, {
2783
- individualActions: B.value,
2784
- layoutOptions: ((C = V.layout) == null ? void 0 : C.options) || e(n).layout.options,
2785
- componentProps: V.componentProps
2788
+ })), void 0, !0) : (o(), $(he(e(Qa)(((Z = k.layout) == null ? void 0 : Z.name) || e(n).$currentLayout)), H({ key: 2 }, {
2789
+ individualActions: w.value,
2790
+ layoutOptions: ((V = k.layout) == null ? void 0 : V.options) || e(n).layout.options,
2791
+ componentProps: k.componentProps
2786
2792
  }, {
2787
- "component-name": ((T = V.layout) == null ? void 0 : T.name) || e(n).$currentLayout
2793
+ "component-name": ((j = k.layout) == null ? void 0 : j.name) || e(n).$currentLayout
2788
2794
  }), de({ _: 2 }, [
2789
- q(Object.keys(V.$slots).filter((j) => j.startsWith("row-")), (j) => ({
2790
- name: j,
2795
+ E(Object.keys(k.$slots).filter((B) => B.startsWith("row-")), (B) => ({
2796
+ name: B,
2791
2797
  fn: v((ae) => [
2792
- I(V.$slots, j, ce(Ve(ae)), void 0, !0)
2798
+ C(k.$slots, B, ce(Ve(ae)), void 0, !0)
2793
2799
  ])
2794
2800
  })),
2795
- V.$slots.tfoot ? {
2801
+ k.$slots.tfoot ? {
2796
2802
  name: "tfoot",
2797
2803
  fn: v(() => [
2798
- I(V.$slots, "tfoot", {}, void 0, !0)
2804
+ C(k.$slots, "tfoot", {}, void 0, !0)
2799
2805
  ]),
2800
2806
  key: "0"
2801
2807
  } : void 0
2802
2808
  ]), 1040, ["component-name"]))
2803
2809
  ])), [
2804
- [oe, (!e(_) || S.value === _t) && e(n).loading.getAll]
2810
+ [oe, (!e(_) || A.value === _t) && e(n).loading.getAll]
2805
2811
  ]),
2806
- !e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), s("div", Ka, [
2807
- z(zn, {
2812
+ !e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), s("div", Pa, [
2813
+ z(Mn, {
2808
2814
  pagination: e(n).pagination,
2809
- onPaginate: J
2815
+ onPaginate: Y
2810
2816
  }, null, 8, ["pagination"])
2811
2817
  ])) : y("", !0)
2812
2818
  ], 64);
2813
2819
  };
2814
2820
  }
2815
2821
  });
2816
- const Tl = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-2cbb3e9f"]]), Pa = { class: "prompt" }, Na = /* @__PURE__ */ U({
2822
+ const Rl = /* @__PURE__ */ W(Na, [["__scopeId", "data-v-2cbb3e9f"]]), xa = { class: "prompt" }, el = /* @__PURE__ */ q({
2817
2823
  __name: "aeria-prompt",
2818
2824
  props: {
2819
2825
  title: {},
@@ -2834,24 +2840,24 @@ const Tl = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-2cbb3e9f"]]), Pa = { cla
2834
2840
  class: "prompt__actions",
2835
2841
  style: $e(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
2836
2842
  }, [
2837
- (o(!0), s(K, null, q(a.actions, (r, u) => (o(), $(fe, {
2843
+ (o(!0), s(J, null, E(a.actions, (r, u) => (o(), $(fe, {
2838
2844
  key: `action-${u}`,
2839
- class: Q(`
2845
+ class: G(`
2840
2846
  prompt__action
2841
2847
  prompt__action--${r.variant || "primary"}
2842
2848
  `),
2843
2849
  onClick: (p) => r.click ? r.click(r) : t(r)
2844
2850
  }, {
2845
2851
  default: v(() => [
2846
- D(b(r.title || r.name), 1)
2852
+ Q(b(r.title || r.name), 1)
2847
2853
  ]),
2848
2854
  _: 2
2849
2855
  }, 1032, ["class", "onClick"]))), 128))
2850
2856
  ], 4)
2851
2857
  ]),
2852
2858
  default: v(() => [
2853
- g("div", Pa, [
2854
- I(a.$slots, "default", {}, void 0, !0)
2859
+ g("div", xa, [
2860
+ C(a.$slots, "default", {}, void 0, !0)
2855
2861
  ])
2856
2862
  ]),
2857
2863
  _: 2
@@ -2859,14 +2865,14 @@ const Tl = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-2cbb3e9f"]]), Pa = { cla
2859
2865
  a.title ? {
2860
2866
  name: "title",
2861
2867
  fn: v(() => [
2862
- D(b(a.title), 1)
2868
+ Q(b(a.title), 1)
2863
2869
  ]),
2864
2870
  key: "0"
2865
2871
  } : void 0
2866
2872
  ]), 1024));
2867
2873
  }
2868
2874
  });
2869
- const xa = /* @__PURE__ */ G(Na, [["__scopeId", "data-v-5443f297"]]), el = { class: "toast__content" }, tl = { class: "toast__time" }, nl = /* @__PURE__ */ U({
2875
+ const tl = /* @__PURE__ */ W(el, [["__scopeId", "data-v-5443f297"]]), nl = { class: "toast__content" }, ol = { class: "toast__time" }, al = /* @__PURE__ */ q({
2870
2876
  __name: "aeria-toast",
2871
2877
  props: {
2872
2878
  idx: {},
@@ -2879,20 +2885,20 @@ const xa = /* @__PURE__ */ G(Na, [["__scopeId", "data-v-5443f297"]]), el = { cla
2879
2885
  return (t, a) => {
2880
2886
  const l = ne("clickable");
2881
2887
  return N((o(), s("div", {
2882
- class: Q({
2888
+ class: G({
2883
2889
  toast: !0,
2884
2890
  "toast--animate": e(i).toasts[0].itr === t.itr
2885
2891
  }),
2886
2892
  onAnimationend: a[0] || (a[0] = (r) => e(i).$actions.popToast()),
2887
2893
  onClick: a[1] || (a[1] = (r) => e(i).$actions.popToast(t.itr))
2888
2894
  }, [
2889
- z(P, E(
2895
+ z(P, H(
2890
2896
  t.icon ? { icon: t.icon } : { icon: "warning-circle" },
2891
2897
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
2892
2898
  ), null, 16),
2893
- g("div", el, [
2894
- I(t.$slots, "default", {}, void 0, !0),
2895
- g("div", tl, b(t.formatDateTime(t.date, { hoursOnly: !0 })), 1)
2899
+ g("div", nl, [
2900
+ C(t.$slots, "default", {}, void 0, !0),
2901
+ g("div", ol, b(t.formatDateTime(t.date, { hoursOnly: !0 })), 1)
2896
2902
  ])
2897
2903
  ], 34)), [
2898
2904
  [l]
@@ -2900,15 +2906,15 @@ const xa = /* @__PURE__ */ G(Na, [["__scopeId", "data-v-5443f297"]]), el = { cla
2900
2906
  };
2901
2907
  }
2902
2908
  });
2903
- const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["innerHTML"], ll = { class: "main__toasts" }, sl = ["innerHTML"], il = /* @__PURE__ */ U({
2909
+ const ll = /* @__PURE__ */ W(al, [["__scopeId", "data-v-21bbe178"]]), sl = ["innerHTML"], il = { class: "main__toasts" }, rl = ["innerHTML"], ul = /* @__PURE__ */ q({
2904
2910
  __name: "aeria-main",
2905
2911
  setup(c) {
2906
- const i = re("meta"), t = H(() => i.themeOverride || i.theme);
2912
+ const i = re("meta"), t = D(() => i.themeOverride || i.theme);
2907
2913
  return (a, l) => {
2908
2914
  const r = Ot("router-view");
2909
2915
  return o(), s("main", {
2910
2916
  id: "main",
2911
- class: Q(`
2917
+ class: G(`
2912
2918
  main
2913
2919
  main--${t.value}
2914
2920
  ${t.value === "dark" && "tw-dark"}
@@ -2919,10 +2925,10 @@ const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["inn
2919
2925
  z(r, null, {
2920
2926
  default: v(({ Component: u }) => [
2921
2927
  (o(), $(he(u), null, de({ _: 2 }, [
2922
- q(Object.keys(a.$slots), (p) => ({
2928
+ E(Object.keys(a.$slots), (p) => ({
2923
2929
  name: p,
2924
2930
  fn: v(() => [
2925
- I(a.$slots, p, {}, void 0, !0)
2931
+ C(a.$slots, p, {}, void 0, !0)
2926
2932
  ])
2927
2933
  }))
2928
2934
  ]), 1024))
@@ -2932,8 +2938,8 @@ const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["inn
2932
2938
  ]),
2933
2939
  _: 3
2934
2940
  })),
2935
- I(a.$slots, "default", {}, void 0, !0),
2936
- z(Ae, E({
2941
+ C(a.$slots, "default", {}, void 0, !0),
2942
+ z(Ae, H({
2937
2943
  modelValue: e(i).modal.visible,
2938
2944
  "onUpdate:modelValue": l[0] || (l[0] = (u) => e(i).modal.visible = u),
2939
2945
  float: "",
@@ -2947,25 +2953,25 @@ const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["inn
2947
2953
  key: 0,
2948
2954
  style: { "white-space": "pre-wrap" },
2949
2955
  innerHTML: e(i).modal.body
2950
- }, null, 8, al)) : y("", !0),
2956
+ }, null, 8, sl)) : y("", !0),
2951
2957
  e(i).modal.component ? (o(), $(he(e(i).modal.component), { key: 1 })) : y("", !0)
2952
2958
  ]),
2953
2959
  _: 1
2954
2960
  }, 16, ["modelValue"]),
2955
- e(i).prompt.visible ? (o(), $(xa, ce(E({ key: 0 }, e(i).prompt)), {
2961
+ e(i).prompt.visible ? (o(), $(tl, ce(H({ key: 0 }, e(i).prompt)), {
2956
2962
  default: v(() => [
2957
- D(b(e(i).prompt.body), 1)
2963
+ Q(b(e(i).prompt.body), 1)
2958
2964
  ]),
2959
2965
  _: 1
2960
2966
  }, 16)) : y("", !0),
2961
- g("div", ll, [
2962
- (o(!0), s(K, null, q(e(i).toasts, (u) => (o(), $(ol, E({ ref_for: !0 }, u, {
2967
+ g("div", il, [
2968
+ (o(!0), s(J, null, E(e(i).toasts, (u) => (o(), $(ll, H({ ref_for: !0 }, u, {
2963
2969
  key: `toast-${u.itr}`
2964
2970
  }), {
2965
2971
  default: v(() => [
2966
2972
  g("div", {
2967
- innerHTML: e(F)(u.text)
2968
- }, null, 8, sl)
2973
+ innerHTML: e(U)(u.text)
2974
+ }, null, 8, rl)
2969
2975
  ]),
2970
2976
  _: 2
2971
2977
  }, 1040))), 128))
@@ -2974,28 +2980,28 @@ const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["inn
2974
2980
  };
2975
2981
  }
2976
2982
  });
2977
- const Ll = /* @__PURE__ */ G(il, [["__scopeId", "data-v-1166be3d"]]);
2978
- const rl = {}, ul = { class: "menu" };
2979
- function cl(c, i) {
2980
- return o(), s("menu", ul, [
2981
- (o(!0), s(K, null, q(Object.keys(c.$slots), (t) => (o(), s("div", {
2983
+ const zl = /* @__PURE__ */ W(ul, [["__scopeId", "data-v-1166be3d"]]);
2984
+ const cl = {}, dl = { class: "menu" };
2985
+ function pl(c, i) {
2986
+ return o(), s("menu", dl, [
2987
+ (o(!0), s(J, null, E(Object.keys(c.$slots), (t) => (o(), s("div", {
2982
2988
  key: t,
2983
2989
  class: "menu__entry"
2984
2990
  }, [
2985
- I(c.$slots, t, {}, void 0, !0)
2991
+ C(c.$slots, t, {}, void 0, !0)
2986
2992
  ]))), 128))
2987
2993
  ]);
2988
2994
  }
2989
- const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb"]]), dl = { class: "tabs" }, pl = {
2995
+ const Ml = /* @__PURE__ */ W(cl, [["render", pl], ["__scopeId", "data-v-3cfef7fb"]]), _l = { class: "tabs" }, ml = {
2990
2996
  key: 0,
2991
2997
  class: "tabs__horizontal"
2992
- }, _l = {
2998
+ }, fl = {
2993
2999
  key: 0,
2994
3000
  class: "tabs__tab tabs__tab--info"
2995
- }, ml = ["onClick"], fl = {
3001
+ }, vl = ["onClick"], yl = {
2996
3002
  key: 1,
2997
3003
  class: "tabs__context-menu"
2998
- }, vl = ["onClick"], yl = /* @__PURE__ */ U({
3004
+ }, hl = ["onClick"], $l = /* @__PURE__ */ q({
2999
3005
  __name: "aeria-tabs",
3000
3006
  props: {
3001
3007
  query: {},
@@ -3003,7 +3009,7 @@ const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb
3003
3009
  dropdown: { type: Boolean }
3004
3010
  },
3005
3011
  setup(c) {
3006
- const i = c, t = St(), a = Le(), l = je(), r = "query" in i && i.query ? "query" : "params", u = H(() => {
3012
+ const i = c, t = St(), a = Le(), l = je(), r = "query" in i && i.query ? "query" : "params", u = D(() => {
3007
3013
  const d = a.currentRoute.value[r][i.query || i.param];
3008
3014
  return d || Object.keys(t)[0];
3009
3015
  }), p = (d) => {
@@ -3024,22 +3030,22 @@ const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb
3024
3030
  };
3025
3031
  return (d, h) => {
3026
3032
  const _ = ne("clickable");
3027
- return o(), s("div", dl, [
3028
- e(l).md && !d.dropdown ? (o(), s("div", pl, [
3029
- d.$slots.default ? (o(), s("div", _l, [
3030
- I(d.$slots, "default", {}, void 0, !0)
3033
+ return o(), s("div", _l, [
3034
+ e(l).md && !d.dropdown ? (o(), s("div", ml, [
3035
+ d.$slots.default ? (o(), s("div", fl, [
3036
+ C(d.$slots, "default", {}, void 0, !0)
3031
3037
  ])) : y("", !0),
3032
- (o(!0), s(K, null, q(Object.keys(d.$slots).filter((n) => n !== "default"), (n, f) => (o(), s("div", {
3038
+ (o(!0), s(J, null, E(Object.keys(d.$slots).filter((n) => n !== "default"), (n, f) => (o(), s("div", {
3033
3039
  key: n,
3034
- class: Q({
3040
+ class: G({
3035
3041
  tabs__tab: !0,
3036
3042
  "tabs__tab--current": n === u.value || !u.value && f === 0
3037
3043
  }),
3038
- onClick: (k) => p(n)
3044
+ onClick: (T) => p(n)
3039
3045
  }, [
3040
- I(d.$slots, n, {}, void 0, !0)
3041
- ], 10, ml))), 128))
3042
- ])) : (o(), s("div", fl, [
3046
+ C(d.$slots, n, {}, void 0, !0)
3047
+ ], 10, vl))), 128))
3048
+ ])) : (o(), s("div", yl, [
3043
3049
  z(Ce, null, de({
3044
3050
  default: v(() => [
3045
3051
  N((o(), $(P, {
@@ -3049,7 +3055,7 @@ const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb
3049
3055
  class: "tabs__context-menu-icon"
3050
3056
  }, {
3051
3057
  default: v(() => [
3052
- I(d.$slots, u.value, {}, void 0, !0)
3058
+ C(d.$slots, u.value, {}, void 0, !0)
3053
3059
  ]),
3054
3060
  _: 3
3055
3061
  })), [
@@ -3058,14 +3064,14 @@ const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb
3058
3064
  ]),
3059
3065
  _: 2
3060
3066
  }, [
3061
- q(Object.keys(d.$slots).filter((n) => n !== "default"), (n) => ({
3067
+ E(Object.keys(d.$slots).filter((n) => n !== "default"), (n) => ({
3062
3068
  name: n,
3063
3069
  fn: v(() => [
3064
3070
  g("div", {
3065
3071
  onClick: (f) => p(n)
3066
3072
  }, [
3067
- I(d.$slots, n, {}, void 0, !0)
3068
- ], 8, vl)
3073
+ C(d.$slots, n, {}, void 0, !0)
3074
+ ], 8, hl)
3069
3075
  ])
3070
3076
  }))
3071
3077
  ]), 1024)
@@ -3074,24 +3080,24 @@ const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb
3074
3080
  };
3075
3081
  }
3076
3082
  });
3077
- const hl = /* @__PURE__ */ G(yl, [["__scopeId", "data-v-4dd516ec"]]), $l = U({
3083
+ const bl = /* @__PURE__ */ W($l, [["__scopeId", "data-v-4dd516ec"]]), gl = q({
3078
3084
  props: {
3079
3085
  initialValue: String,
3080
3086
  promise: Promise
3081
3087
  },
3082
3088
  setup(c) {
3083
- const i = Y(c.initialValue);
3089
+ const i = X(c.initialValue);
3084
3090
  return c.promise instanceof Promise && c.promise.then((t) => {
3085
3091
  i.value = t;
3086
3092
  }), () => Bt("div", i.value);
3087
3093
  }
3088
- }), bl = ["onClick"], gl = { key: 1 }, kl = /* @__PURE__ */ U({
3094
+ }), kl = ["onClick"], Vl = { key: 1 }, Cl = /* @__PURE__ */ q({
3089
3095
  __name: "aeria-crud-topbar",
3090
3096
  props: {
3091
3097
  collection: {}
3092
3098
  },
3093
3099
  setup(c) {
3094
- const i = c, a = Le().currentRoute, l = H(() => {
3100
+ const i = c, a = Le().currentRoute, l = D(() => {
3095
3101
  try {
3096
3102
  const r = i.collection ? i.collection : a.value.meta.collection || a.value.params.collection;
3097
3103
  return ge(r);
@@ -3099,12 +3105,12 @@ const hl = /* @__PURE__ */ G(yl, [["__scopeId", "data-v-4dd516ec"]]), $l = U({
3099
3105
  return null;
3100
3106
  }
3101
3107
  });
3102
- return (r, u) => l.value && l.value.description.filtersPresets ? (o(), $(hl, {
3108
+ return (r, u) => l.value && l.value.description.filtersPresets ? (o(), $(bl, {
3103
3109
  key: 0,
3104
3110
  dropdown: "",
3105
3111
  query: "section"
3106
3112
  }, de({ _: 2 }, [
3107
- q(Object.entries(l.value.description.filtersPresets), ([p, d]) => ({
3113
+ E(Object.entries(l.value.description.filtersPresets), ([p, d]) => ({
3108
3114
  name: p,
3109
3115
  fn: v(() => [
3110
3116
  g("div", {
@@ -3116,29 +3122,29 @@ const hl = /* @__PURE__ */ G(yl, [["__scopeId", "data-v-4dd516ec"]]), $l = U({
3116
3122
  icon: d.icon
3117
3123
  }, {
3118
3124
  default: v(() => [
3119
- D(b(d.label || e(F)(p, { plural: !0 })), 1)
3125
+ Q(b(d.label || e(U)(p, { plural: !0 })), 1)
3120
3126
  ]),
3121
3127
  _: 2
3122
- }, 1032, ["icon"])) : (o(), s("div", gl, b(d.label || e(F)(p, { plural: !0 })), 1)),
3128
+ }, 1032, ["icon"])) : (o(), s("div", Vl, b(d.label || e(U)(p, { plural: !0 })), 1)),
3123
3129
  d.badgeFunction ? (o(), $(be, { key: 2 }, {
3124
3130
  default: v(() => [
3125
- z(e($l), {
3131
+ z(e(gl), {
3126
3132
  "initial-value": "0",
3127
3133
  promise: l.value.$functions[d.badgeFunction]({ filters: d.filters })
3128
3134
  }, null, 8, ["promise"])
3129
3135
  ]),
3130
3136
  _: 2
3131
3137
  }, 1024)) : y("", !0)
3132
- ], 8, bl)
3138
+ ], 8, kl)
3133
3139
  ])
3134
3140
  }))
3135
3141
  ]), 1024)) : y("", !0);
3136
3142
  }
3137
3143
  });
3138
- const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3144
+ const Il = /* @__PURE__ */ W(Cl, [["__scopeId", "data-v-326eee9d"]]), Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3139
3145
  __proto__: null,
3140
- default: Vl
3141
- }, Symbol.toStringTag, { value: "Module" })), zl = /* @__PURE__ */ U({
3146
+ default: Il
3147
+ }, Symbol.toStringTag, { value: "Module" })), Fl = /* @__PURE__ */ q({
3142
3148
  __name: "aeria-password-form",
3143
3149
  props: {
3144
3150
  modelValue: {}
@@ -3147,7 +3153,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3147
3153
  setup(c) {
3148
3154
  const i = c;
3149
3155
  ye(qe, null);
3150
- const t = qt(), a = H(() => t(
3156
+ const t = Et(), a = D(() => t(
3151
3157
  i.modelValue.password,
3152
3158
  i.modelValue.confirmation
3153
3159
  ));
@@ -3169,12 +3175,12 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3169
3175
  }, {
3170
3176
  after: v(() => [
3171
3177
  g("div", null, b(a.value || "Senhas conferem"), 1),
3172
- I(l.$slots, "default", ce(Ve({ passwordError: a.value })))
3178
+ C(l.$slots, "default", ce(Ve({ passwordError: a.value })))
3173
3179
  ]),
3174
3180
  _: 3
3175
3181
  }, 8, ["model-value"]));
3176
3182
  }
3177
- }), Ml = (c, i = []) => ({
3183
+ }), Ul = (c, i = []) => ({
3178
3184
  path: "/user",
3179
3185
  name: "/builtin:user",
3180
3186
  component: c,
@@ -3192,7 +3198,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3192
3198
  {
3193
3199
  path: "signin",
3194
3200
  name: "/user/signin",
3195
- component: () => import("./signin-add568ef.js"),
3201
+ component: () => import("./signin-19431012.js"),
3196
3202
  meta: {
3197
3203
  title: "Autenticação"
3198
3204
  }
@@ -3200,7 +3206,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3200
3206
  {
3201
3207
  path: "signup",
3202
3208
  name: "/user/signup",
3203
- component: () => import("./signup-1160c9e8.js"),
3209
+ component: () => import("./signup-245b6e05.js"),
3204
3210
  meta: {
3205
3211
  title: "Registro"
3206
3212
  }
@@ -3208,13 +3214,13 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3208
3214
  {
3209
3215
  path: "activation",
3210
3216
  name: "/user/activation",
3211
- component: () => import("./activation-b9ae3dac.js"),
3217
+ component: () => import("./activation-d4f4f8ae.js"),
3212
3218
  meta: {
3213
3219
  title: "Ativação"
3214
3220
  }
3215
3221
  }
3216
3222
  ])
3217
- }), Fl = (c, i = []) => ({
3223
+ }), ql = (c, i = []) => ({
3218
3224
  path: "/dashboard",
3219
3225
  name: "/builtin:dashboard",
3220
3226
  component: c,
@@ -3230,8 +3236,8 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3230
3236
  name: "/dashboard/crud",
3231
3237
  props: !0,
3232
3238
  components: {
3233
- default: () => import("./crud-view-0d9bc04c.js"),
3234
- topbar: () => Promise.resolve().then(() => Cl)
3239
+ default: () => import("./crud-view-c63e332c.js"),
3240
+ topbar: () => Promise.resolve().then(() => Al)
3235
3241
  },
3236
3242
  meta: {
3237
3243
  title: "%viewTitle%"
@@ -3249,7 +3255,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3249
3255
  children: [
3250
3256
  {
3251
3257
  path: "profile",
3252
- component: () => import("./profile-bce221ea.js"),
3258
+ component: () => import("./profile-637f6183.js"),
3253
3259
  meta: {
3254
3260
  title: "Meu perfil",
3255
3261
  icon: "user-square"
@@ -3258,7 +3264,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3258
3264
  {
3259
3265
  path: "changepass",
3260
3266
  name: "/dashboard/user/changepass",
3261
- component: () => import("./password-change-9a737b99.js"),
3267
+ component: () => import("./password-change-f71d3af4.js"),
3262
3268
  meta: {
3263
3269
  title: "Mudar senha",
3264
3270
  icon: "lock"
@@ -3270,36 +3276,36 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3270
3276
  });
3271
3277
  export {
3272
3278
  He as A,
3273
- xa as B,
3274
- ol as C,
3275
- Vl as D,
3276
- Ml as E,
3277
- Fl as F,
3278
- zl as _,
3279
+ tl as B,
3280
+ ll as C,
3281
+ Il as D,
3282
+ Ul as E,
3283
+ ql as F,
3284
+ Fl as _,
3279
3285
  ie as a,
3280
3286
  P as b,
3281
- Dn as c,
3282
- Tl as d,
3287
+ Qn as c,
3288
+ Rl as d,
3283
3289
  Me as e,
3284
- Rl as f,
3290
+ Ml as f,
3285
3291
  Ae as g,
3286
- G as h,
3287
- jl as i,
3292
+ W as h,
3293
+ Ll as i,
3288
3294
  be as j,
3289
3295
  fe as k,
3290
- dn as l,
3296
+ pn as l,
3291
3297
  Ce as m,
3292
- Fa as n,
3293
- hn as o,
3294
- Ll as p,
3295
- zn as q,
3296
- Ra as r,
3297
- hl as s,
3298
- ho as t,
3298
+ qa as n,
3299
+ $n as o,
3300
+ zl as p,
3301
+ Mn as q,
3302
+ Ma as r,
3303
+ bl as s,
3304
+ $o as t,
3299
3305
  Ie as u,
3300
- Wn as v,
3301
- zo as w,
3306
+ Kn as v,
3307
+ Mo as w,
3302
3308
  Ee as x,
3303
- Nn as y,
3304
- $l as z
3309
+ xn as y,
3310
+ gl as z
3305
3311
  };