@aeria-ui/ui 0.0.48 → 0.0.50

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