@aeria-ui/ui 0.0.82 → 0.0.84

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,6 +1,6 @@
1
- import { defineComponent as E, ref as J, resolveDirective as oe, openBlock as t, createElementBlock as s, normalizeClass as X, Fragment as N, renderList as D, withDirectives as x, toDisplayString as k, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as C, inject as _e, computed as W, createElementVNode as I, mergeProps as G, createBlock as $, resolveDynamicComponent as be, withCtx as v, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Je, onMounted as ht, watch as ue, createVNode as F, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as he, pushScopeId as De, popScopeId as Qe, provide as ye, createSlots as ce, vModelCheckbox as Bt, onUnmounted as wt, isRef as _t, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
1
+ import { defineComponent as E, ref as J, resolveDirective as oe, openBlock as t, createElementBlock as s, normalizeClass as Y, Fragment as N, renderList as H, withDirectives as x, toDisplayString as k, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as C, inject as _e, computed as W, createElementVNode as I, mergeProps as G, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Je, onMounted as bt, watch as ue, createVNode as F, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as He, popScopeId as Qe, provide as ye, createSlots as ce, vModelCheckbox as Bt, onUnmounted as wt, isRef as _t, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
2
2
  import { t as L, useI18n as Lt } from "@aeria-ui/i18n";
3
- import { useScrollObserver as Ze, useBreakpoints as qe, useMask as zt, PAGINATION_PER_PAGE_DEFAULTS as Mt, API_URL as gt, request as qt, useDebounce as kt, isDocumentComplete as Ft, getObjectKey as Ut, convertToSearchQuery as Et, useAction as Ht, convertFromSearchQuery as Dt, useParentCollectionStore as Ke, usePasswordPolicy as Qt } from "@aeria-ui/core";
3
+ import { useScrollObserver as Ze, useBreakpoints as qe, useMask as zt, PAGINATION_PER_PAGE_DEFAULTS as Mt, API_URL as gt, request as qt, useDebounce as kt, isDocumentComplete as Ft, getObjectKey as Ut, convertToSearchQuery as Et, useAction as Dt, convertFromSearchQuery as Ht, useParentCollectionStore as Ke, usePasswordPolicy as Qt } from "@aeria-ui/core";
4
4
  import { arraysIntersect as Vt, deepClone as Ce, getReferenceProperty as me, convertConditionToQuery as Gt, freshItem as Wt, isRequired as Kt, evaluateCondition as Ye, deepMerge as Me } from "@aeriajs/common";
5
5
  import { useStore as ie, getStoreId as Fe, useParentStore as Ie, STORE_ID as Ue, getGlobalStateManager as Pe } from "@aeria-ui/state-management";
6
6
  import { useRouter as Ae } from "vue-router";
@@ -14,51 +14,51 @@ const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
14
14
  noPadding: { type: Boolean },
15
15
  headers: {}
16
16
  },
17
- setup(u) {
17
+ setup(c) {
18
18
  const r = J(null), l = (n) => typeof n == "string" ? n : n.title;
19
19
  return (n, a) => {
20
20
  const i = oe("clickable");
21
21
  return t(), s("div", {
22
- class: X({
22
+ class: Y({
23
23
  accordion: !0,
24
24
  "accordion--padded": !n.noPadding
25
25
  })
26
26
  }, [
27
- (t(!0), s(N, null, D(Object.keys(n.$slots).filter((c) => c !== "default"), (c, _) => (t(), s("div", {
28
- key: c,
27
+ (t(!0), s(N, null, H(Object.keys(n.$slots).filter((u) => u !== "default"), (u, _) => (t(), s("div", {
28
+ key: u,
29
29
  class: "accordion__slot"
30
30
  }, [
31
31
  x((t(), s("div", {
32
32
  class: "accordion__header",
33
- onClick: (d) => r.value === c ? r.value = null : r.value = c
33
+ onClick: (d) => r.value === u ? r.value = null : r.value = u
34
34
  }, [
35
35
  n.enumerate ? (t(), s("span", Yt, k(_ + 1) + ". ", 1)) : y("", !0),
36
- Q(" " + k(n.headers[c] ? l(n.headers[c]) : e(L)(c)), 1)
36
+ Q(" " + k(n.headers[u] ? l(n.headers[u]) : e(L)(u)), 1)
37
37
  ], 8, Xt)), [
38
38
  [i]
39
39
  ]),
40
- r.value === c ? (t(), s("div", Jt, [
41
- C(n.$slots, c, {}, void 0, !0)
40
+ r.value === u ? (t(), s("div", Jt, [
41
+ C(n.$slots, u, {}, void 0, !0)
42
42
  ])) : y("", !0)
43
43
  ]))), 128))
44
44
  ], 2);
45
45
  };
46
46
  }
47
47
  });
48
- const K = (u, r) => {
49
- const l = u.__vccOpts || u;
48
+ const X = (c, r) => {
49
+ const l = c.__vccOpts || c;
50
50
  for (const [n, a] of r)
51
51
  l[n] = a;
52
52
  return l;
53
- }, Fl = /* @__PURE__ */ K(Zt, [["__scopeId", "data-v-3ea933d4"]]), Pt = /* @__PURE__ */ E({
53
+ }, Fl = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-3ea933d4"]]), Pt = /* @__PURE__ */ E({
54
54
  __name: "aeria-badge",
55
55
  props: {
56
56
  large: { type: Boolean },
57
57
  alt: { type: Boolean }
58
58
  },
59
- setup(u) {
59
+ setup(c) {
60
60
  return (r, l) => (t(), s("div", {
61
- class: X(`
61
+ class: Y(`
62
62
  badge
63
63
  ${r.large && "badge--large"}
64
64
  ${r.alt && "badge--alt"}
@@ -68,18 +68,18 @@ const K = (u, r) => {
68
68
  ], 2));
69
69
  }
70
70
  });
71
- const $e = /* @__PURE__ */ K(Pt, [["__scopeId", "data-v-47f92648"]]), Nt = /* @__PURE__ */ E({
71
+ const $e = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-47f92648"]]), Nt = /* @__PURE__ */ E({
72
72
  __name: "aeria-bare-button",
73
73
  props: {
74
74
  disabled: { type: Boolean }
75
75
  },
76
76
  emits: ["click"],
77
- setup(u, { emit: r }) {
78
- const l = u, n = r, a = (i) => {
77
+ setup(c, { emit: r }) {
78
+ const l = c, n = r, a = (i) => {
79
79
  l.disabled || n("click", i);
80
80
  };
81
- return (i, c) => (t(), s("button", {
82
- class: X(`
81
+ return (i, u) => (t(), s("button", {
82
+ class: Y(`
83
83
  barebutton
84
84
  barebutton--${i.disabled ? "disabled" : "enabled"}
85
85
  `),
@@ -89,7 +89,7 @@ const $e = /* @__PURE__ */ K(Pt, [["__scopeId", "data-v-47f92648"]]), Nt = /* @_
89
89
  ], 2));
90
90
  }
91
91
  });
92
- const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["href"], en = {
92
+ const ve = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["href"], en = {
93
93
  key: 0,
94
94
  "data-component": "icon-label"
95
95
  }, tn = /* @__PURE__ */ E({
@@ -103,13 +103,13 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
103
103
  iconRight: { type: Boolean },
104
104
  active: { type: Boolean }
105
105
  },
106
- setup(u) {
107
- const r = u, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), n = W(() => {
106
+ setup(c) {
107
+ const r = c, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), n = W(() => {
108
108
  var a;
109
109
  return (a = r.icon) != null && a.includes(":") ? r.icon : `regular:${r.icon}`;
110
110
  });
111
111
  return (a, i) => (t(), s("a", {
112
- class: X(`
112
+ class: Y(`
113
113
  icon
114
114
  ${e(l) && "icon--reactive"}
115
115
  ${a.active && "icon--active"}
@@ -117,7 +117,7 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
117
117
  `)
118
118
  }, [
119
119
  I("div", {
120
- class: X(`
120
+ class: Y(`
121
121
  icon__icon
122
122
  ${a.size && `icon__icon--${a.size}`}
123
123
  ${a.iconRight && "icon__icon--right"}
@@ -142,7 +142,7 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
142
142
  ], 2));
143
143
  }
144
144
  });
145
- const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { class: "panel__header-left" }, on = { key: 1 }, an = {
145
+ const Z = /* @__PURE__ */ X(tn, [["__scopeId", "data-v-6d36de33"]]), nn = { class: "panel__header-left" }, on = { key: 1 }, an = {
146
146
  key: 2,
147
147
  style: { "margin-left": "auto" }
148
148
  }, ln = /* @__PURE__ */ E({
@@ -168,28 +168,28 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { clas
168
168
  overlayLayer: {}
169
169
  },
170
170
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
171
- setup(u, { emit: r }) {
172
- const l = u, n = r, a = W(() => l.floating || l.float), i = J(l.collapsed), c = J(null), { reachedEnd: _ } = Ze(c), d = () => {
171
+ setup(c, { emit: r }) {
172
+ const l = c, n = r, a = W(() => l.floating || l.float), i = J(l.collapsed), u = J(null), { reachedEnd: _ } = Ze(u), d = () => {
173
173
  n("update:modelValue", !1), n("close");
174
- }, b = () => {
174
+ }, h = () => {
175
175
  n("overlayClick");
176
176
  }, p = (o) => {
177
177
  n("update:collapsed", o), i.value = o;
178
178
  };
179
179
  return (o, m) => {
180
- const A = oe("clickable"), h = oe("loading"), S = oe("overlay");
180
+ const A = oe("clickable"), b = oe("loading"), S = oe("overlay");
181
181
  return o.modelValue ? x((t(), s("div", {
182
182
  key: 0,
183
- class: X(`
183
+ class: Y(`
184
184
  panel
185
185
  ${o.fixedRight && "panel--fixed"}
186
186
  `)
187
187
  }, [
188
- (t(), $(be(
188
+ (t(), $(he(
189
189
  a.value ? "dialog" : "div"
190
190
  ), {
191
191
  "data-component": "panel",
192
- class: X(`
192
+ class: Y(`
193
193
  aeria-surface
194
194
  panel__content
195
195
  ${a.value && "panel__content--floating"}
@@ -199,12 +199,12 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { clas
199
199
  ${o.transparentMobile && "panel__content--transparent-mobile"}
200
200
  ${o.outerHeader && "panel__content--outer-header"}
201
201
  `),
202
- onClick: m[2] || (m[2] = (j) => j.stopPropagation())
202
+ onClick: m[2] || (m[2] = (R) => R.stopPropagation())
203
203
  }, {
204
204
  default: v(() => [
205
205
  o.$slots.header || o.title ? (t(), s("div", {
206
206
  key: 0,
207
- class: X(`
207
+ class: Y(`
208
208
  panel__header
209
209
  ${i.value && "panel__header--collapsed"}
210
210
  ${o.outerHeader && "panel__header--outer"}
@@ -220,14 +220,14 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { clas
220
220
  key: 0,
221
221
  reactive: "",
222
222
  icon: "plus",
223
- onClick: m[0] || (m[0] = (j) => p(!i.value))
223
+ onClick: m[0] || (m[0] = (R) => p(!i.value))
224
224
  }, null, 512)), [
225
225
  [A]
226
226
  ]) : o.collapsible && !i.value ? x((t(), $(Z, {
227
227
  key: 1,
228
228
  reactive: "",
229
229
  icon: "minus",
230
- onClick: m[1] || (m[1] = (j) => p(!i.value))
230
+ onClick: m[1] || (m[1] = (R) => p(!i.value))
231
231
  }, null, 512)), [
232
232
  [A]
233
233
  ]) : o.closeHint ? x((t(), $(Z, {
@@ -242,19 +242,19 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { clas
242
242
  i.value ? y("", !0) : x((t(), s("div", {
243
243
  key: 1,
244
244
  ref_key: "body",
245
- ref: c,
246
- class: X(`
245
+ ref: u,
246
+ class: Y(`
247
247
  panel__body
248
248
  ${o.fill || "panel__body--padded"}
249
249
  `)
250
250
  }, [
251
251
  C(o.$slots, "default", {}, void 0, !0)
252
252
  ], 2)), [
253
- [h, o.loading]
253
+ [b, o.loading]
254
254
  ]),
255
255
  o.$slots.footer ? (t(), s("div", {
256
256
  key: 2,
257
- class: X(`
257
+ class: Y(`
258
258
  panel__footer
259
259
  ${o.fillFooter || "panel__footer--padded"}
260
260
  ${e(_) || "panel__footer--shadowed"}
@@ -269,14 +269,14 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { clas
269
269
  [S, {
270
270
  condition: o.overlay || o.fixedRight || a.value,
271
271
  invisible: o.invisibleOverlay,
272
- click: b,
272
+ click: h,
273
273
  layer: o.overlayLayer || (a.value ? 60 : o.fixedRight ? 50 : 0)
274
274
  }]
275
275
  ]) : y("", !0);
276
276
  };
277
277
  }
278
278
  });
279
- const Be = /* @__PURE__ */ K(ln, [["__scopeId", "data-v-73b47cf0"]]), sn = { class: "button__content" }, rn = {
279
+ const Be = /* @__PURE__ */ X(ln, [["__scopeId", "data-v-73b47cf0"]]), sn = { class: "button__content" }, rn = {
280
280
  key: 1,
281
281
  class: "button__content"
282
282
  }, un = /* @__PURE__ */ E({
@@ -290,8 +290,8 @@ const Be = /* @__PURE__ */ K(ln, [["__scopeId", "data-v-73b47cf0"]]), sn = { cla
290
290
  disabled: { type: Boolean },
291
291
  loading: { type: Boolean }
292
292
  },
293
- setup(u) {
294
- const r = u, l = _e("buttonVariant", r.variant) || "primary", n = (() => {
293
+ setup(c) {
294
+ const r = c, l = _e("buttonVariant", r.variant) || "primary", n = (() => {
295
295
  switch (!0) {
296
296
  case r.small:
297
297
  return "small";
@@ -301,7 +301,7 @@ const Be = /* @__PURE__ */ K(ln, [["__scopeId", "data-v-73b47cf0"]]), sn = { cla
301
301
  return _e("buttonSize", r.size) || "medium";
302
302
  })();
303
303
  return (a, i) => (t(), $(ve, {
304
- class: X(`
304
+ class: Y(`
305
305
  button
306
306
  button--${e(l)}
307
307
  button--${e(n)}
@@ -328,15 +328,15 @@ const Be = /* @__PURE__ */ K(ln, [["__scopeId", "data-v-73b47cf0"]]), sn = { cla
328
328
  }, 8, ["class", "disabled"]));
329
329
  }
330
330
  });
331
- const re = /* @__PURE__ */ K(un, [["__scopeId", "data-v-c328251b"]]), cn = { class: "card__picture" }, dn = { class: "card__footer" }, pn = { class: "card__footer-upper" }, _n = { class: "card__badge" }, mn = /* @__PURE__ */ E({
331
+ const re = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c328251b"]]), cn = { class: "card__picture" }, dn = { class: "card__footer" }, pn = { class: "card__footer-upper" }, _n = { class: "card__badge" }, mn = /* @__PURE__ */ E({
332
332
  __name: "aeria-card",
333
333
  props: {
334
334
  inactive: { type: Boolean },
335
335
  horizontal: { type: Boolean }
336
336
  },
337
- setup(u) {
337
+ setup(c) {
338
338
  return (r, l) => (t(), s("div", {
339
- class: X(`
339
+ class: Y(`
340
340
  card
341
341
  ${r.inactive && "card--inactive"}
342
342
  ${r.horizontal && "card--horizontal"}
@@ -359,10 +359,10 @@ const re = /* @__PURE__ */ K(un, [["__scopeId", "data-v-c328251b"]]), cn = { cla
359
359
  ], 2));
360
360
  }
361
361
  });
362
- const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { class: "content__body" }, yn = {
362
+ const fn = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { class: "content__body" }, yn = {
363
363
  key: 0,
364
364
  class: "content__section"
365
- }, bn = { class: "content__item" }, hn = /* @__PURE__ */ E({
365
+ }, hn = { class: "content__item" }, bn = /* @__PURE__ */ E({
366
366
  __name: "aeria-context-menu",
367
367
  props: {
368
368
  actions: {},
@@ -370,19 +370,19 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
370
370
  overlayLayer: {}
371
371
  },
372
372
  emits: ["actionClick"],
373
- setup(u, { emit: r }) {
373
+ setup(c, { emit: r }) {
374
374
  It((d) => ({
375
375
  "036683e2": _.value.x,
376
376
  "036683e0": _.value.y
377
377
  }));
378
- const l = r, n = J(null), a = J(!1), i = (d) => d == null ? void 0 : d.filter((b) => {
379
- if (b.roles) {
378
+ const l = r, n = J(null), a = J(!1), i = (d) => d == null ? void 0 : d.filter((h) => {
379
+ if (h.roles) {
380
380
  const p = ie("user");
381
- return Vt(b.roles, p.currentUser.roles);
381
+ return Vt(h.roles, p.currentUser.roles);
382
382
  }
383
383
  return !0;
384
- }), c = (d, b) => {
385
- const p = b && Ce(b);
384
+ }), u = (d, h) => {
385
+ const p = h && Ce(h);
386
386
  d.click && d.click(p), l("actionClick", {
387
387
  action: d,
388
388
  subject: p
@@ -393,14 +393,14 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
393
393
  x: 0,
394
394
  y: 0
395
395
  };
396
- const d = n.value.getBoundingClientRect().top, b = n.value.getBoundingClientRect().left, p = n.value.offsetHeight;
396
+ const d = n.value.getBoundingClientRect().top, h = n.value.getBoundingClientRect().left, p = n.value.offsetHeight;
397
397
  return {
398
398
  _: a.value,
399
- x: Math.floor(b) + "px",
399
+ x: Math.floor(h) + "px",
400
400
  y: Math.floor(d + p) + "px"
401
401
  };
402
402
  });
403
- return (d, b) => {
403
+ return (d, h) => {
404
404
  const p = oe("overlay");
405
405
  return t(), s(N, null, [
406
406
  Object.keys(d.$slots).some((o) => o !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
@@ -411,7 +411,7 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
411
411
  }, [
412
412
  I("a", {
413
413
  class: "contextmenu__trigger",
414
- onClick: b[0] || (b[0] = (o) => a.value = !0)
414
+ onClick: h[0] || (h[0] = (o) => a.value = !0)
415
415
  }, [
416
416
  C(d.$slots, "default", de(ge({
417
417
  visible: a.value
@@ -424,7 +424,7 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
424
424
  }, [
425
425
  x((t(), $(Be, {
426
426
  modelValue: a.value,
427
- "onUpdate:modelValue": b[4] || (b[4] = (o) => a.value = o),
427
+ "onUpdate:modelValue": h[4] || (h[4] = (o) => a.value = o),
428
428
  fill: "",
429
429
  bordered: "",
430
430
  class: "content",
@@ -438,9 +438,9 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
438
438
  Object.keys(d.$slots).filter((o) => !["default", "extra", "header"].includes(o)).length > 0 ? (t(), s("div", {
439
439
  key: 1,
440
440
  class: "content__section",
441
- onClick: b[1] || (b[1] = (o) => a.value = !1)
441
+ onClick: h[1] || (h[1] = (o) => a.value = !1)
442
442
  }, [
443
- (t(!0), s(N, null, D(Object.keys(d.$slots).filter((o) => !["default", "extra", "header"].includes(o)), (o, m) => (t(), $(ve, {
443
+ (t(!0), s(N, null, H(Object.keys(d.$slots).filter((o) => !["default", "extra", "header"].includes(o)), (o, m) => (t(), $(ve, {
444
444
  key: `slot-${m}`,
445
445
  class: "content__item content__item--reactive"
446
446
  }, {
@@ -453,12 +453,12 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
453
453
  d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
454
454
  key: 2,
455
455
  class: "content__section",
456
- onClick: b[2] || (b[2] = (o) => a.value = !1)
456
+ onClick: h[2] || (h[2] = (o) => a.value = !1)
457
457
  }, [
458
- (t(!0), s(N, null, D(i(d.actions), (o, m) => (t(), $(ve, {
458
+ (t(!0), s(N, null, H(i(d.actions), (o, m) => (t(), $(ve, {
459
459
  key: `action-${m}`,
460
460
  class: "content__item content__item--reactive",
461
- onClick: (A) => c(o, d.subject)
461
+ onClick: (A) => u(o, d.subject)
462
462
  }, {
463
463
  default: v(() => [
464
464
  o.icon ? (t(), $(Z, {
@@ -477,9 +477,9 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
477
477
  d.$slots.extra ? (t(), s("div", {
478
478
  key: 3,
479
479
  class: "content__section",
480
- onClick: b[3] || (b[3] = (o) => a.value = !1)
480
+ onClick: h[3] || (h[3] = (o) => a.value = !1)
481
481
  }, [
482
- I("div", bn, [
482
+ I("div", hn, [
483
483
  d.$slots.extra ? C(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
484
484
  ])
485
485
  ])) : y("", !0)
@@ -504,12 +504,12 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
504
504
  };
505
505
  }
506
506
  });
507
- const Oe = /* @__PURE__ */ K(hn, [["__scopeId", "data-v-a03802b2"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ E({
507
+ const Oe = /* @__PURE__ */ X(bn, [["__scopeId", "data-v-a03802b2"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ E({
508
508
  __name: "aeria-info",
509
509
  props: {
510
510
  where: { default: "top" }
511
511
  },
512
- setup(u) {
512
+ setup(c) {
513
513
  const r = qe(), l = J(!1);
514
514
  return (n, a) => e(r).md ? (t(), s("div", {
515
515
  key: 0,
@@ -518,7 +518,7 @@ const Oe = /* @__PURE__ */ K(hn, [["__scopeId", "data-v-a03802b2"]]), $n = { cla
518
518
  }, [
519
519
  l.value ? (t(), s("div", {
520
520
  key: 0,
521
- class: X(`
521
+ class: Y(`
522
522
  info__bubble
523
523
  info__bubble--${n.where}
524
524
  `)
@@ -535,7 +535,7 @@ const Oe = /* @__PURE__ */ K(hn, [["__scopeId", "data-v-a03802b2"]]), $n = { cla
535
535
  ], 32)) : C(n.$slots, "default", { key: 1 }, void 0, !0);
536
536
  }
537
537
  });
538
- const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { class: "input" }, Cn = {
538
+ const kn = /* @__PURE__ */ X(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { class: "input" }, Cn = {
539
539
  key: 0,
540
540
  class: "input__label"
541
541
  }, On = {
@@ -556,9 +556,9 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
556
556
  variant: {}
557
557
  },
558
558
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
559
- setup(u, { emit: r }) {
559
+ setup(c, { emit: r }) {
560
560
  var B;
561
- const l = u, n = r, a = l.property || {}, i = "icon" in a || "inputType" in a && a.inputType === "search", c = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), d = !c && (l.readOnly || a.readOnly), b = (R) => (n("clipboardCopy", R), navigator.clipboard.writeText(R)), p = _e("inputVariant", l.variant) || "normal", o = Object.assign(Object.assign({}, l), {
561
+ const l = c, n = r, a = l.property || {}, i = "icon" in a || "inputType" in a && a.inputType === "search", u = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), d = !u && (l.readOnly || a.readOnly), h = (j) => (n("clipboardCopy", j), navigator.clipboard.writeText(j)), p = _e("inputVariant", l.variant) || "normal", o = Object.assign(Object.assign({}, l), {
562
562
  name: l.propertyName,
563
563
  readonly: d,
564
564
  type: (() => {
@@ -581,76 +581,86 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
581
581
  })(),
582
582
  placeholder: _ ? a.description || l.propertyName : a.placeholder
583
583
  });
584
- "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (o.min = a.minimum), a.exclusiveMinimum && (o.min = a.exclusiveMinimum + 1), a.maximum && (o.max = a.maximum), a.exclusiveMaximum && (o.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (o.type = !c && a.format === "date-time" ? "datetime-local" : "date"), o.minlength = a.minLength, o.maxlength = a.maxLength)), o.type === "text" && c && (o.type = "search"), ht(() => {
585
- l.modelValue !== null && j(l.modelValue);
584
+ "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (o.min = a.minimum), a.exclusiveMinimum && (o.min = a.exclusiveMinimum + 1), a.maximum && (o.max = a.maximum), a.exclusiveMaximum && (o.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (o.type = !u && a.format === "date-time" ? "datetime-local" : "date"), o.minlength = a.minLength, o.maxlength = a.maxLength)), o.type === "text" && u && (o.type = "search"), bt(() => {
585
+ l.modelValue !== null && R(l.modelValue);
586
586
  });
587
- const m = (R) => {
587
+ const m = (j) => {
588
588
  try {
589
- return typeof R == "string" ? new Date(R).toISOString().slice(0, 19) : "";
589
+ if (!j)
590
+ return "";
591
+ const K = j instanceof Date ? j : new Date(j);
592
+ switch (o.type) {
593
+ case "date":
594
+ return K.toISOString().slice(0, 10);
595
+ case "datetime-local":
596
+ return K.toISOString().slice(0, 19);
597
+ default:
598
+ throw new Error();
599
+ }
590
600
  } catch {
591
601
  return "";
592
602
  }
593
- }, A = J(""), h = ((B = l.property) == null ? void 0 : B.type) === "string" && l.property.mask ? zt(l.property.mask) : null;
594
- ue(() => l.modelValue, (R) => {
603
+ }, A = J(""), b = ((B = l.property) == null ? void 0 : B.type) === "string" && l.property.mask ? zt(l.property.mask) : null;
604
+ ue(() => l.modelValue, (j) => {
595
605
  A.value = (() => {
596
- if (h)
597
- return R ? h.enmask(String(R), void 0, {
606
+ if (b)
607
+ return j ? b.enmask(String(j), void 0, {
598
608
  defaultValue: !0
599
609
  }) : "";
600
610
  switch (o.type) {
601
611
  case "date":
602
612
  case "datetime-local":
603
- return m(R);
613
+ return m(j);
604
614
  }
605
- switch (R) {
615
+ switch (j) {
606
616
  case null:
607
617
  case void 0:
608
618
  return "";
609
619
  default:
610
- return R;
620
+ return j;
611
621
  }
612
622
  })();
613
623
  }, {
614
624
  immediate: !0
615
625
  });
616
- const S = (R) => {
617
- var Y;
618
- return typeof A.value == "string" && ((Y = l.property) == null ? void 0 : Y.type) === "string" && h !== null ? (A.value = h.enmask(A.value, void 0, {
626
+ const S = (j) => {
627
+ var K;
628
+ return typeof A.value == "string" && ((K = l.property) == null ? void 0 : K.type) === "string" && b !== null ? (A.value = b.enmask(A.value, void 0, {
619
629
  defaultValue: !0
620
- }), l.property.maskedValue === !0 ? A.value : h.unmask(A.value)) : R;
621
- }, j = (R) => {
622
- const Y = (() => {
623
- if (!R || typeof R != "string")
624
- return R;
630
+ }), l.property.maskedValue === !0 ? A.value : b.unmask(A.value)) : j;
631
+ }, R = (j) => {
632
+ const K = (() => {
633
+ if (!j || typeof j != "string")
634
+ return j;
625
635
  if (o.type === "number" || o.type === "integer")
626
- return Number(R);
636
+ return Number(j);
627
637
  if (!("type" in a && a.type === "string"))
628
- return S(R);
638
+ return S(j);
629
639
  switch (a.format) {
630
640
  case "date":
631
641
  case "date-time":
632
- return new Date(R);
642
+ return new Date(j);
633
643
  default:
634
- return S(R);
644
+ return S(j);
635
645
  }
636
646
  })();
637
- n("input", Y), n("update:modelValue", Y);
638
- }, P = (R) => {
639
- const Y = R.target.value;
640
- A.value = Y, j(Y);
647
+ n("input", K), n("update:modelValue", K);
648
+ }, P = (j) => {
649
+ const K = j.target.value;
650
+ A.value = K, R(K);
641
651
  };
642
- return (R, Y) => {
652
+ return (j, K) => {
643
653
  const w = oe("focus"), te = oe("clickable");
644
654
  return t(), s("label", Vn, [
645
655
  e(_) ? y("", !0) : (t(), s("div", Cn, [
646
- R.$slots.default ? C(R.$slots, "default", { key: 0 }, void 0, !0) : C(R.$slots, "description", { key: 1 }, void 0, !0)
656
+ j.$slots.default ? C(j.$slots, "default", { key: 0 }, void 0, !0) : C(j.$slots, "description", { key: 1 }, void 0, !0)
647
657
  ])),
648
- R.$slots.hint ? (t(), s("div", On, [
649
- C(R.$slots, "hint", {}, void 0, !0)
658
+ j.$slots.hint ? (t(), s("div", On, [
659
+ C(j.$slots, "hint", {}, void 0, !0)
650
660
  ])) : y("", !0),
651
661
  "element" in e(a) && e(a).element === "textarea" ? (t(), s("div", {
652
662
  key: 2,
653
- class: X(`
663
+ class: Y(`
654
664
  input__container
655
665
  input__container--textarea
656
666
  input__container--${e(p)}
@@ -659,8 +669,8 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
659
669
  x(I("textarea", {
660
670
  placeholder: e(o).placeholder,
661
671
  readonly: e(o).readonly,
662
- value: R.modelValue,
663
- class: X(`
672
+ value: j.modelValue,
673
+ class: Y(`
664
674
  input__textarea
665
675
  input__input--${e(p)}
666
676
  `),
@@ -670,7 +680,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
670
680
  ])
671
681
  ], 2)) : (t(), s("div", {
672
682
  key: 3,
673
- class: X(`
683
+ class: Y(`
674
684
  input__container
675
685
  input__container--${e(p)}
676
686
  `)
@@ -685,14 +695,14 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
685
695
  ${e(d) && "input__input--readOnly"}
686
696
  `,
687
697
  onInput: P,
688
- onChange: Y[0] || (Y[0] = (V) => n("change", V))
698
+ onChange: K[0] || (K[0] = (V) => n("change", V))
689
699
  }), null, 16, An), [
690
700
  [w, e(a).focus]
691
701
  ]),
692
702
  e(i) ? (t(), $(Z, {
693
703
  key: 0,
694
704
  icon: e(a).icon || "magnifying-glass",
695
- class: X(`
705
+ class: Y(`
696
706
  input__icon
697
707
  input__icon--${e(p)}
698
708
  `)
@@ -706,7 +716,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
706
716
  x(F(Z, {
707
717
  reactive: "",
708
718
  icon: "clipboard",
709
- onClick: Y[1] || (Y[1] = ze((V) => b(String(R.modelValue || "")), ["prevent"]))
719
+ onClick: K[1] || (K[1] = ze((V) => h(String(j.modelValue || "")), ["prevent"]))
710
720
  }, null, 512), [
711
721
  [te]
712
722
  ])
@@ -719,7 +729,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
719
729
  };
720
730
  }
721
731
  });
722
- const ke = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-bfceb841"]]), Sn = {
732
+ const ke = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7817bd05"]]), Sn = {
723
733
  key: 1,
724
734
  value: ""
725
735
  }, Tn = ["value", "data-selected"], jn = /* @__PURE__ */ E({
@@ -736,8 +746,8 @@ const ke = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-bfceb841"]]), Sn = {
736
746
  noOutline: { type: Boolean }
737
747
  },
738
748
  emits: ["update:modelValue", "change"],
739
- setup(u, { emit: r }) {
740
- const l = u, n = r, a = J(null), i = l.property, c = (p) => {
749
+ setup(c, { emit: r }) {
750
+ const l = c, n = r, a = J(null), i = l.property, u = (p) => {
741
751
  l.booleanRef && (_.value = p), n("update:modelValue", (p == null ? void 0 : p._id) || p), n("change", (p == null ? void 0 : p._id) || p);
742
752
  }, _ = l.booleanRef ? (() => {
743
753
  const p = J(l.modelValue);
@@ -758,8 +768,8 @@ const ke = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-bfceb841"]]), Sn = {
758
768
  });
759
769
  })() : W({
760
770
  get: () => l.modelValue,
761
- set: c
762
- }), d = (p) => Array.isArray(l.modelValue) ? l.modelValue.includes(p) : l.modelValue === p, b = W(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
771
+ set: u
772
+ }), d = (p) => Array.isArray(l.modelValue) ? l.modelValue.includes(p) : l.modelValue === p, h = W(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
763
773
  return l.multiple && ue(() => l.modelValue, (p) => {
764
774
  var m;
765
775
  if (!a.value)
@@ -771,24 +781,24 @@ const ke = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-bfceb841"]]), Sn = {
771
781
  "read-only": "",
772
782
  "model-value": e(_)
773
783
  }, null, 8, ["model-value"])) : (t(), s("select", G({ key: 0 }, {
774
- size: b.value,
784
+ size: h.value,
775
785
  value: e(_)
776
786
  }, {
777
787
  ref_key: "select",
778
788
  ref: a,
779
789
  class: {
780
790
  select: !0,
781
- "select--multiple": !!b.value,
791
+ "select--multiple": !!h.value,
782
792
  "select--outline": !p.noOutline
783
793
  },
784
- onChange: o[0] || (o[0] = (m) => c(m.target.value))
794
+ onChange: o[0] || (o[0] = (m) => u(m.target.value))
785
795
  }), [
786
796
  e(i) && e(i).icon ? (t(), $(Z, {
787
797
  key: 0,
788
798
  icon: e(i).icon
789
799
  }, null, 8, ["icon"])) : y("", !0),
790
800
  l.multiple ? y("", !0) : (t(), s("option", Sn, k(e(L)("none")), 1)),
791
- (t(!0), s(N, null, D(e(i) && "enum" in e(i) ? e(i).enum : [], (m) => {
801
+ (t(!0), s(N, null, H(e(i) && "enum" in e(i) ? e(i).enum : [], (m) => {
792
802
  var A;
793
803
  return t(), s("option", {
794
804
  key: m,
@@ -800,7 +810,7 @@ const ke = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-bfceb841"]]), Sn = {
800
810
  ], 16));
801
811
  }
802
812
  });
803
- const Ge = /* @__PURE__ */ K(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { class: "pagination" }, Ln = { class: "pagination__arrows" }, zn = ["value"], Mn = {
813
+ const Ge = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { class: "pagination" }, Ln = { class: "pagination__arrows" }, zn = ["value"], Mn = {
804
814
  key: 0,
805
815
  class: "pagination__summary"
806
816
  }, qn = /* @__PURE__ */ E({
@@ -810,29 +820,29 @@ const Ge = /* @__PURE__ */ K(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
810
820
  noSummary: { type: Boolean }
811
821
  },
812
822
  emits: ["paginate"],
813
- setup(u, { emit: r }) {
814
- const l = u, n = r, a = W({
823
+ setup(c, { emit: r }) {
824
+ const l = c, n = r, a = W({
815
825
  get: () => Math.floor(l.pagination.offset / l.pagination.limit),
816
- set: (b) => {
817
- l.pagination.offset = b * l.pagination.limit;
826
+ set: (h) => {
827
+ l.pagination.offset = h * l.pagination.limit;
818
828
  }
819
829
  }), i = W({
820
830
  get: () => l.pagination.limit,
821
- set: (b) => {
822
- l.pagination.limit = Number(b);
831
+ set: (h) => {
832
+ l.pagination.limit = Number(h);
823
833
  }
824
- }), c = J(a.value ? a.value + 1 : 1), _ = W(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), d = (b) => {
825
- a.value = b === "previous" ? a.value - 1 : a.value + 1;
834
+ }), u = J(a.value ? a.value + 1 : 1), _ = W(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), d = (h) => {
835
+ a.value = h === "previous" ? a.value - 1 : a.value + 1;
826
836
  };
827
837
  return ue([
828
838
  a,
829
839
  i
830
- ], ([b]) => {
831
- c.value = b + 1, n("paginate", {
840
+ ], ([h]) => {
841
+ u.value = h + 1, n("paginate", {
832
842
  offset: a.value * i.value,
833
843
  limit: i.value
834
844
  });
835
- }), (b, p) => (t(), s("div", Rn, [
845
+ }), (h, p) => (t(), s("div", Rn, [
836
846
  I("div", Ln, [
837
847
  F(ve, {
838
848
  disabled: a.value === 0,
@@ -880,7 +890,7 @@ const Ge = /* @__PURE__ */ K(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
880
890
  class: "pagination__control"
881
891
  }, {
882
892
  default: v(() => [
883
- (t(!0), s(N, null, D(e(Mt), (o) => (t(), s("option", {
893
+ (t(!0), s(N, null, H(e(Mt), (o) => (t(), s("option", {
884
894
  key: `limit-${o}`,
885
895
  value: o
886
896
  }, k(o), 9, zn))), 128))
@@ -888,19 +898,19 @@ const Ge = /* @__PURE__ */ K(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
888
898
  _: 1
889
899
  }, 8, ["modelValue"])
890
900
  ]),
891
- b.noSummary ? y("", !0) : (t(), s("div", Mn, [
901
+ h.noSummary ? y("", !0) : (t(), s("div", Mn, [
892
902
  Q(k(e(L)("Page")) + " ", 1),
893
903
  (t(), $(ke, {
894
904
  key: a.value,
895
- modelValue: c.value,
896
- "onUpdate:modelValue": p[5] || (p[5] = (o) => c.value = o),
905
+ modelValue: u.value,
906
+ "onUpdate:modelValue": p[5] || (p[5] = (o) => u.value = o),
897
907
  property: {
898
908
  type: "number",
899
909
  minimum: 1
900
910
  },
901
911
  style: { height: "100%" },
902
912
  onChange: p[6] || (p[6] = (o) => {
903
- a.value = c.value === 0 ? 0 : c.value - 1;
913
+ a.value = u.value === 0 ? 0 : u.value - 1;
904
914
  })
905
915
  }, null, 8, ["modelValue"])),
906
916
  I("span", null, k(e(L)("of")) + " " + k(_.value), 1)
@@ -908,7 +918,7 @@ const Ge = /* @__PURE__ */ K(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
908
918
  ]));
909
919
  }
910
920
  });
911
- const Fn = /* @__PURE__ */ K(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { class: "checkbox__text" }, En = ["innerHTML"], Hn = { class: "checkbox__hint" }, Dn = ["innerHTML"], Qn = {
921
+ const Fn = /* @__PURE__ */ X(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { class: "checkbox__text" }, En = ["innerHTML"], Dn = { class: "checkbox__hint" }, Hn = ["innerHTML"], Qn = {
912
922
  inheritAttrs: !1
913
923
  }, Gn = /* @__PURE__ */ E({
914
924
  ...Qn,
@@ -924,8 +934,8 @@ const Fn = /* @__PURE__ */ K(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
924
934
  variant: {}
925
935
  },
926
936
  emits: ["update:modelValue", "change"],
927
- setup(u, { emit: r }) {
928
- const l = u, n = l.property, a = l.readOnly || (n == null ? void 0 : n.readOnly), i = (() => {
937
+ setup(c, { emit: r }) {
938
+ const l = c, n = l.property, a = l.readOnly || (n == null ? void 0 : n.readOnly), i = (() => {
929
939
  if (n && "type" in n)
930
940
  switch (n.type) {
931
941
  case "array":
@@ -933,7 +943,7 @@ const Fn = /* @__PURE__ */ K(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
933
943
  return "checkbox";
934
944
  }
935
945
  return "radio";
936
- })(), c = r, _ = l.value || !1, d = W({
946
+ })(), u = r, _ = l.value || !1, d = W({
937
947
  get: () => {
938
948
  var p;
939
949
  if (n) {
@@ -949,29 +959,29 @@ const Fn = /* @__PURE__ */ K(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
949
959
  if (!a) {
950
960
  if (n) {
951
961
  if ("type" in n && n.type === "boolean") {
952
- c("update:modelValue", !l.modelValue);
962
+ u("update:modelValue", !l.modelValue);
953
963
  return;
954
964
  }
955
965
  if ("items" in n) {
956
966
  if ((p = l.modelValue) != null && p.includes(_)) {
957
- c("update:modelValue", l.modelValue.filter((o) => o !== _));
967
+ u("update:modelValue", l.modelValue.filter((o) => o !== _));
958
968
  return;
959
969
  }
960
- c("update:modelValue", [_].concat(l.modelValue || []));
970
+ u("update:modelValue", [_].concat(l.modelValue || []));
961
971
  return;
962
972
  }
963
973
  }
964
- c("update:modelValue", l.value);
974
+ u("update:modelValue", l.value);
965
975
  }
966
976
  }
967
- }), b = (p) => {
977
+ }), h = (p) => {
968
978
  a && p.preventDefault();
969
979
  };
970
980
  return (p, o) => {
971
- var A, h;
981
+ var A, b;
972
982
  const m = oe("clickable");
973
983
  return x((t(), s("label", {
974
- class: X(`
984
+ class: Y(`
975
985
  checkbox
976
986
  ${e(a) && "checkbox--readOnly"}
977
987
  `)
@@ -984,7 +994,7 @@ const Fn = /* @__PURE__ */ K(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
984
994
  checked: d.value
985
995
  }, {
986
996
  class: "checkbox__input",
987
- onClick: b
997
+ onClick: h
988
998
  }), null, 16), [
989
999
  [At, d.value]
990
1000
  ]),
@@ -995,11 +1005,11 @@ const Fn = /* @__PURE__ */ K(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
995
1005
  innerHTML: (A = e(n)) != null && A.translate ? e(L)(e(_)) : e(_)
996
1006
  }, null, 8, En)) : C(p.$slots, "default", { key: 2 }, void 0, !0)
997
1007
  ]),
998
- I("div", Hn, [
999
- p.$slots.hint ? C(p.$slots, "hint", { key: 0 }, void 0, !0) : (h = e(n)) != null && h.hint ? (t(), s("div", {
1008
+ I("div", Dn, [
1009
+ p.$slots.hint ? C(p.$slots, "hint", { key: 0 }, void 0, !0) : (b = e(n)) != null && b.hint ? (t(), s("div", {
1000
1010
  key: 1,
1001
1011
  innerHTML: e(n).hint
1002
- }, null, 8, Dn)) : y("", !0)
1012
+ }, null, 8, Hn)) : y("", !0)
1003
1013
  ])
1004
1014
  ])
1005
1015
  ], 2)), [
@@ -1008,7 +1018,7 @@ const Fn = /* @__PURE__ */ K(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
1008
1018
  };
1009
1019
  }
1010
1020
  });
1011
- const Wn = /* @__PURE__ */ K(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
1021
+ const Wn = /* @__PURE__ */ X(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
1012
1022
  inheritAttrs: !1
1013
1023
  }, Xn = /* @__PURE__ */ E({
1014
1024
  ...Kn,
@@ -1023,8 +1033,8 @@ const Wn = /* @__PURE__ */ K(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
1023
1033
  columns: { default: 1 }
1024
1034
  },
1025
1035
  emits: ["update:modelValue"],
1026
- setup(u, { emit: r }) {
1027
- const l = u, n = r, a = l.readOnly || l.property.readOnly, i = "items" in l.property ? l.property.items.enum : l.property.enum, c = (_) => {
1036
+ setup(c, { emit: r }) {
1037
+ const l = c, n = r, a = l.readOnly || l.property.readOnly, i = "items" in l.property ? l.property.items.enum : l.property.enum, u = (_) => {
1028
1038
  n("update:modelValue", _);
1029
1039
  };
1030
1040
  return $t(() => {
@@ -1034,28 +1044,28 @@ const Wn = /* @__PURE__ */ K(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
1034
1044
  );
1035
1045
  }), (_, d) => (t(), s("div", {
1036
1046
  class: "options",
1037
- style: he(`
1047
+ style: be(`
1038
1048
  --columns: ${_.columns};
1039
1049
  grid-template-columns: repeat(var(--columns), 1fr);
1040
1050
  `)
1041
1051
  }, [
1042
- (t(!0), s(N, null, D(e(i), (b) => (t(), s("div", {
1043
- key: `option-${b}`,
1052
+ (t(!0), s(N, null, H(e(i), (h) => (t(), s("div", {
1053
+ key: `option-${h}`,
1044
1054
  class: "options__checkbox"
1045
1055
  }, [
1046
1056
  F(Wn, G({ ref_for: !0 }, {
1047
- value: b,
1057
+ value: h,
1048
1058
  readOnly: e(a),
1049
1059
  property: _.property
1050
1060
  }, {
1051
1061
  "model-value": _.modelValue,
1052
- "onUpdate:modelValue": c
1062
+ "onUpdate:modelValue": u
1053
1063
  }), null, 16, ["model-value"])
1054
1064
  ]))), 128))
1055
1065
  ], 4));
1056
1066
  }
1057
1067
  });
1058
- const Yn = /* @__PURE__ */ K(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (u) => (De("data-v-0e3564b6"), u = u(), Qe(), u), Zn = { class: "switch-wrapper" }, Pn = /* @__PURE__ */ Jn(() => /* @__PURE__ */ I("div", { class: "switch__slider" }, null, -1)), Nn = { key: 1 }, xn = {
1068
+ const Yn = /* @__PURE__ */ X(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) => (He("data-v-0e3564b6"), c = c(), Qe(), c), Zn = { class: "switch-wrapper" }, Pn = /* @__PURE__ */ Jn(() => /* @__PURE__ */ I("div", { class: "switch__slider" }, null, -1)), Nn = { key: 1 }, xn = {
1059
1069
  inheritAttrs: !1
1060
1070
  }, eo = /* @__PURE__ */ E({
1061
1071
  ...xn,
@@ -1069,31 +1079,31 @@ const Yn = /* @__PURE__ */ K(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (u) =
1069
1079
  readOnly: { type: Boolean }
1070
1080
  },
1071
1081
  emits: ["update:modelValue", "change"],
1072
- setup(u, { emit: r }) {
1073
- const l = u, n = r, a = l.property, i = l.readOnly || (a == null ? void 0 : a.readOnly), c = () => {
1082
+ setup(c, { emit: r }) {
1083
+ const l = c, n = r, a = l.property, i = l.readOnly || (a == null ? void 0 : a.readOnly), u = () => {
1074
1084
  i || (n("change", !l.modelValue), n("update:modelValue", !l.modelValue));
1075
1085
  };
1076
1086
  return (_, d) => {
1077
1087
  var p;
1078
- const b = oe("clickable");
1088
+ const h = oe("clickable");
1079
1089
  return t(), s("div", Zn, [
1080
1090
  x((t(), s("a", {
1081
- class: X(`
1091
+ class: Y(`
1082
1092
  switch
1083
1093
  ${_.modelValue && "switch--active"}
1084
1094
  ${e(i) && "switch--readOnly"}
1085
1095
  `),
1086
- onClick: ze(c, ["stop"])
1096
+ onClick: ze(u, ["stop"])
1087
1097
  }, [
1088
1098
  Pn,
1089
1099
  I("div", {
1090
- class: X(`
1100
+ class: Y(`
1091
1101
  switch__dummy
1092
1102
  ${!_.modelValue && "switch__dummy--flex"}
1093
1103
  `)
1094
1104
  }, null, 2)
1095
1105
  ], 2)), [
1096
- [b, {
1106
+ [h, {
1097
1107
  blocked: e(i)
1098
1108
  }]
1099
1109
  ]),
@@ -1102,7 +1112,7 @@ const Yn = /* @__PURE__ */ K(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (u) =
1102
1112
  };
1103
1113
  }
1104
1114
  });
1105
- const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) => (De("data-v-153a2e0f"), u = u(), Qe(), u), no = { class: "picture" }, oo = {
1115
+ const to = /* @__PURE__ */ X(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) => (He("data-v-153a2e0f"), c = c(), Qe(), c), no = { class: "picture" }, oo = {
1106
1116
  key: 0,
1107
1117
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1108
1118
  }, ao = ["src", "alt"], lo = {
@@ -1139,11 +1149,11 @@ const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1139
1149
  expandable: { type: Boolean },
1140
1150
  meta: {}
1141
1151
  },
1142
- setup(u) {
1143
- const r = u, l = W(() => r.fileId ? `${gt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = J(!1);
1152
+ setup(c) {
1153
+ const r = c, l = W(() => r.fileId ? `${gt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = J(!1);
1144
1154
  return (a, i) => {
1145
1155
  var _;
1146
- const c = oe("overlay");
1156
+ const u = oe("overlay");
1147
1157
  return t(), s("figure", no, [
1148
1158
  l.value ? (t(), $(Je, {
1149
1159
  key: 0,
@@ -1161,7 +1171,7 @@ const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1161
1171
  }, null, 8, ao),
1162
1172
  (_ = a.meta) != null && _.owner ? (t(), s("div", lo, " Criado por " + k(a.meta.owner.name) + " em " + k(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1163
1173
  ])), [
1164
- [c, {
1174
+ [u, {
1165
1175
  click: () => {
1166
1176
  n.value = !1;
1167
1177
  }
@@ -1171,12 +1181,12 @@ const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1171
1181
  l.value ? (t(), s("img", {
1172
1182
  key: 1,
1173
1183
  src: l.value,
1174
- class: X(`
1184
+ class: Y(`
1175
1185
  picture__image
1176
1186
  ${a.bordered && "picture__image--bordered"}
1177
1187
  ${a.expandable && "picture__image--expandable"}
1178
1188
  `),
1179
- style: he(`
1189
+ style: be(`
1180
1190
  object-fit: ${a.objectFit || "cover"};
1181
1191
  width: ${a.width || "100%"};
1182
1192
  height: ${a.height || "100%"};
@@ -1186,13 +1196,13 @@ const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1186
1196
  })
1187
1197
  }, null, 14, so)) : a.$slots.fallback ? C(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? C(a.$slots, "default", { key: 3 }, void 0, !0) : (t(), s("svg", {
1188
1198
  key: 4,
1189
- class: X(["picture__background", `
1199
+ class: Y(["picture__background", `
1190
1200
  ${a.bordered && "picture__image--bordered"}
1191
1201
  `]),
1192
1202
  xmlns: "http://www.w3.org/2000/svg",
1193
1203
  viewBox: "0 0 200 200",
1194
1204
  preserveAspectRatio: "none",
1195
- style: he(`
1205
+ style: be(`
1196
1206
  object-fit: ${a.objectFit || "cover"};
1197
1207
  width: ${a.width || "100%"};
1198
1208
  height: ${a.height || "100%"};
@@ -1205,13 +1215,13 @@ const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1205
1215
  };
1206
1216
  }
1207
1217
  });
1208
- const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { class: "file" }, mo = { key: 0 }, fo = ["href"], vo = {
1218
+ const De = /* @__PURE__ */ X(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { class: "file" }, mo = { key: 0 }, fo = ["href"], vo = {
1209
1219
  key: 1,
1210
1220
  class: "file__actions"
1211
- }, yo = ["accept"], bo = {
1221
+ }, yo = ["accept"], ho = {
1212
1222
  key: 0,
1213
1223
  class: "file__buttons"
1214
- }, ho = {
1224
+ }, bo = {
1215
1225
  key: 1,
1216
1226
  class: "file__buttons"
1217
1227
  }, $o = /* @__PURE__ */ E({
@@ -1227,24 +1237,24 @@ const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1227
1237
  content: {}
1228
1238
  },
1229
1239
  emits: ["update:content", "change", "update:modelValue"],
1230
- setup(u, { emit: r }) {
1240
+ setup(c, { emit: r }) {
1231
1241
  var A;
1232
- const l = u, n = r, i = Fe() ? Ie() : null, c = J(((A = l.modelValue) == null ? void 0 : A.file) || null), _ = W(() => {
1233
- var h;
1234
- return c.value ? URL.createObjectURL(c.value) : (h = l.modelValue) == null ? void 0 : h.link;
1242
+ const l = c, n = r, i = Fe() ? Ie() : null, u = J(((A = l.modelValue) == null ? void 0 : A.file) || null), _ = W(() => {
1243
+ var b;
1244
+ return u.value ? URL.createObjectURL(u.value) : (b = l.modelValue) == null ? void 0 : b.link;
1235
1245
  }), d = W(() => {
1236
- var h, S, j;
1237
- return /^image\//.test((h = l.modelValue) == null ? void 0 : h.type) && !((S = c.value) != null && S.type) || /^image\//.test((j = c.value) == null ? void 0 : j.type);
1238
- }), b = (h) => new Promise((S) => {
1239
- const j = new FileReader();
1240
- j.onload = () => S(j.result), j.readAsArrayBuffer(h);
1246
+ var b, S, R;
1247
+ return /^image\//.test((b = l.modelValue) == null ? void 0 : b.type) && !((S = u.value) != null && S.type) || /^image\//.test((R = u.value) == null ? void 0 : R.type);
1248
+ }), h = (b) => new Promise((S) => {
1249
+ const R = new FileReader();
1250
+ R.onload = () => S(R.result), R.readAsArrayBuffer(b);
1241
1251
  }), p = () => {
1242
- l.modelValue.tempId && n("update:modelValue", null), c.value = null;
1243
- }, o = async (h) => {
1244
- c.value = h.target.files[0];
1245
- const S = c.value, j = await b(S);
1252
+ l.modelValue.tempId && n("update:modelValue", null), u.value = null;
1253
+ }, o = async (b) => {
1254
+ u.value = b.target.files[0];
1255
+ const S = u.value, R = await h(S);
1246
1256
  if (i) {
1247
- const { data: { error: P, result: B } } = await qt(`${gt}/${i.$id}/upload?name=${S.name}`, j, {
1257
+ const { data: { error: P, result: B } } = await qt(`${gt}/${i.$id}/upload?name=${S.name}`, R, {
1248
1258
  params: {
1249
1259
  method: "POST",
1250
1260
  headers: {
@@ -1261,38 +1271,38 @@ const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1261
1271
  });
1262
1272
  } else
1263
1273
  n("update:modelValue", S);
1264
- n("update:content", j), n("change", j);
1274
+ n("update:content", R), n("change", R);
1265
1275
  }, m = async () => {
1266
1276
  n("update:modelValue", null);
1267
1277
  };
1268
- return (h, S) => {
1269
- var j, P, B, R, Y, w;
1278
+ return (b, S) => {
1279
+ var R, P, B, j, K, w;
1270
1280
  return t(), s("div", _o, [
1271
- c.value || (j = h.modelValue) != null && j._id ? (t(), s("div", mo, [
1272
- d.value ? (t(), $(He, {
1281
+ u.value || (R = b.modelValue) != null && R._id ? (t(), s("div", mo, [
1282
+ d.value ? (t(), $(De, {
1273
1283
  key: 0,
1274
1284
  modelValue: _.value,
1275
1285
  "onUpdate:modelValue": S[0] || (S[0] = (te) => _.value = te),
1276
1286
  alt: "Image preview",
1277
- expandable: h.readOnly,
1278
- class: X(`
1287
+ expandable: b.readOnly,
1288
+ class: Y(`
1279
1289
  file__image
1280
- ${!e(i) || ((P = h.modelValue) == null ? void 0 : P._id) || "file__image--unsent"}
1290
+ ${!e(i) || ((P = b.modelValue) == null ? void 0 : P._id) || "file__image--unsent"}
1281
1291
  `)
1282
1292
  }, null, 8, ["modelValue", "expandable", "class"])) : y("", !0),
1283
- (B = h.modelValue) != null && B._id ? (t(), s("a", {
1293
+ (B = b.modelValue) != null && B._id ? (t(), s("a", {
1284
1294
  key: 1,
1285
- href: h.modelValue.download_link
1286
- }, k(h.modelValue.name), 9, fo)) : y("", !0)
1295
+ href: b.modelValue.download_link
1296
+ }, k(b.modelValue.name), 9, fo)) : y("", !0)
1287
1297
  ])) : y("", !0),
1288
- h.readOnly ? y("", !0) : (t(), s("div", vo, [
1298
+ b.readOnly ? y("", !0) : (t(), s("div", vo, [
1289
1299
  I("input", {
1290
1300
  ref: "file",
1291
1301
  type: "file",
1292
- accept: (Y = (R = h.property) == null ? void 0 : R.accept) == null ? void 0 : Y.join(","),
1302
+ accept: (K = (j = b.property) == null ? void 0 : j.accept) == null ? void 0 : K.join(","),
1293
1303
  onChange: o
1294
1304
  }, null, 40, yo),
1295
- c.value ? (t(), s("div", bo, [
1305
+ u.value ? (t(), s("div", ho, [
1296
1306
  F(re, {
1297
1307
  small: "",
1298
1308
  onClick: ze(p, ["prevent"])
@@ -1302,7 +1312,7 @@ const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1302
1312
  ]),
1303
1313
  _: 1
1304
1314
  })
1305
- ])) : (w = h.modelValue) != null && w._id ? (t(), s("div", ho, [
1315
+ ])) : (w = b.modelValue) != null && w._id ? (t(), s("div", bo, [
1306
1316
  F(re, {
1307
1317
  small: "",
1308
1318
  onClick: ze(m, ["prevent"])
@@ -1318,7 +1328,7 @@ const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
1318
1328
  };
1319
1329
  }
1320
1330
  });
1321
- const go = /* @__PURE__ */ K($o, [["__scopeId", "data-v-e6cdde77"]]), ko = { class: "container" }, Vo = {
1331
+ const go = /* @__PURE__ */ X($o, [["__scopeId", "data-v-e6cdde77"]]), ko = { class: "container" }, Vo = {
1322
1332
  key: 1,
1323
1333
  class: "container__footer"
1324
1334
  }, Co = /* @__PURE__ */ E({
@@ -1327,28 +1337,28 @@ const go = /* @__PURE__ */ K($o, [["__scopeId", "data-v-e6cdde77"]]), ko = { cla
1327
1337
  observeScroll: { type: Boolean }
1328
1338
  },
1329
1339
  emits: ["endReached"],
1330
- setup(u, { emit: r }) {
1331
- const l = u, n = r, a = J(null), i = l.observeScroll ? Ze(a, {
1340
+ setup(c, { emit: r }) {
1341
+ const l = c, n = r, a = J(null), i = l.observeScroll ? Ze(a, {
1332
1342
  antecipate: 100
1333
1343
  }).reachedEnd : null;
1334
- return i !== null && ue(i, (c) => {
1335
- c && n("endReached", c);
1336
- }), (c, _) => (t(), s("div", ko, [
1337
- c.$slots.default ? (t(), s("div", {
1344
+ return i !== null && ue(i, (u) => {
1345
+ u && n("endReached", u);
1346
+ }), (u, _) => (t(), s("div", ko, [
1347
+ u.$slots.default ? (t(), s("div", {
1338
1348
  key: 0,
1339
1349
  ref_key: "containerEl",
1340
1350
  ref: a,
1341
1351
  class: "container__content"
1342
1352
  }, [
1343
- C(c.$slots, "default", {}, void 0, !0)
1353
+ C(u.$slots, "default", {}, void 0, !0)
1344
1354
  ], 512)) : y("", !0),
1345
- c.$slots.footer ? (t(), s("div", Vo, [
1346
- C(c.$slots, "footer", {}, void 0, !0)
1355
+ u.$slots.footer ? (t(), s("div", Vo, [
1356
+ C(u.$slots, "footer", {}, void 0, !0)
1347
1357
  ])) : y("", !0)
1348
1358
  ]));
1349
1359
  }
1350
1360
  });
1351
- const mt = /* @__PURE__ */ K(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { class: "item__values" }, Io = /* @__PURE__ */ E({
1361
+ const mt = /* @__PURE__ */ X(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { class: "item__values" }, Io = /* @__PURE__ */ E({
1352
1362
  __name: "aeria-search-item",
1353
1363
  props: {
1354
1364
  item: {},
@@ -1358,39 +1368,39 @@ const mt = /* @__PURE__ */ K(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
1358
1368
  readOnly: { type: Boolean }
1359
1369
  },
1360
1370
  emits: ["update:modelValue", "change"],
1361
- setup(u, { emit: r }) {
1362
- const l = Ae(), n = u, a = r, i = n.property, c = me(i), _ = Ie(), d = W(() => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: m }) => n.item._id === m) : n.modelValue && n.modelValue._id === n.item._id), b = () => {
1371
+ setup(c, { emit: r }) {
1372
+ const l = Ae(), n = c, a = r, i = n.property, u = me(i), _ = Ie(), d = W(() => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: m }) => n.item._id === m) : n.modelValue && n.modelValue._id === n.item._id), h = () => {
1363
1373
  if (d.value)
1364
1374
  return;
1365
- const m = (h) => h.filter((S) => !!(S != null && S._id)), A = "items" in i ? m(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : n.modelValue;
1375
+ const m = (b) => b.filter((S) => !!(S != null && S._id)), A = "items" in i ? m(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : n.modelValue;
1366
1376
  Array.isArray(A) ? a("update:modelValue", A.concat([n.item])) : a("update:modelValue", n.item), a("change", n.item);
1367
1377
  }, p = async (m) => {
1368
- if (c.purge && (m != null && m.purge)) {
1369
- const { _id: h } = n.item;
1378
+ if (u.purge && (m != null && m.purge)) {
1379
+ const { _id: b } = n.item;
1370
1380
  await _.$actions.remove({
1371
1381
  filters: {
1372
- _id: h
1382
+ _id: b
1373
1383
  }
1374
1384
  });
1375
1385
  }
1376
1386
  const A = () => {
1377
- const h = [...n.modelValue], S = h.findIndex((j) => j._id === n.item._id);
1378
- return h.splice(S, 1), h;
1387
+ const b = [...n.modelValue], S = b.findIndex((R) => R._id === n.item._id);
1388
+ return b.splice(S, 1), b;
1379
1389
  };
1380
1390
  a("update:modelValue", "items" in i ? A() : null);
1381
1391
  }, o = () => {
1382
1392
  if (n.readOnly) {
1383
1393
  l.push({
1384
- path: `/dashboard/c/${c.$ref}/${n.item._id}`
1394
+ path: `/dashboard/c/${u.$ref}/${n.item._id}`
1385
1395
  });
1386
1396
  return;
1387
1397
  }
1388
- return d.value ? p() : b();
1398
+ return d.value ? p() : h();
1389
1399
  };
1390
1400
  return (m, A) => {
1391
- const h = oe("clickable");
1401
+ const b = oe("clickable");
1392
1402
  return x((t(), s("div", {
1393
- class: X({
1403
+ class: Y({
1394
1404
  item: !0,
1395
1405
  "item--selected": d.value
1396
1406
  }),
@@ -1398,8 +1408,8 @@ const mt = /* @__PURE__ */ K(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
1398
1408
  }, [
1399
1409
  C(m.$slots, "default", {}, void 0, !0),
1400
1410
  I("div", Oo, [
1401
- (t(!0), s(N, null, D(m.indexes, (S, j) => (t(), s("div", {
1402
- key: `index-${m.item._id}-${j}`,
1411
+ (t(!0), s(N, null, H(m.indexes, (S, R) => (t(), s("div", {
1412
+ key: `index-${m.item._id}-${R}`,
1403
1413
  class: "item__value"
1404
1414
  }, k(m.item[S]), 1))), 128))
1405
1415
  ]),
@@ -1409,12 +1419,12 @@ const mt = /* @__PURE__ */ K(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
1409
1419
  style: { "--icon-color": "var(--theme-brand-color-contrast)" }
1410
1420
  })) : y("", !0)
1411
1421
  ], 2)), [
1412
- [h]
1422
+ [b]
1413
1423
  ]);
1414
1424
  };
1415
1425
  }
1416
1426
  });
1417
- const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { class: "search__panel" }, Bo = { class: "search__input" }, wo = ["value"], So = { style: { flex: "1" } }, To = { key: 1 }, jo = { key: 0 }, Ro = { key: 1 }, Lo = { class: "search__summary" }, zo = {
1427
+ const Xe = /* @__PURE__ */ X(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { class: "search__panel" }, Bo = { class: "search__input" }, wo = ["value"], So = { style: { flex: "1" } }, To = { key: 1 }, jo = { key: 0 }, Ro = { key: 1 }, Lo = { class: "search__summary" }, zo = {
1418
1428
  key: 1,
1419
1429
  class: "search"
1420
1430
  }, Mo = { key: 0 }, Ee = 10, qo = /* @__PURE__ */ E({
@@ -1430,29 +1440,29 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1430
1440
  panel: { default: void 0 }
1431
1441
  },
1432
1442
  emits: ["update:modelValue", "change", "update:panel"],
1433
- setup(u, { emit: r }) {
1434
- const l = u, n = me(l.property), a = l.panel !== void 0 ? W(() => l.panel) : J(!1), i = r, c = ie(me(l.property).$ref), _ = Fe(), d = _ ? Ie() : null, b = n.indexes;
1443
+ setup(c, { emit: r }) {
1444
+ const l = c, n = me(l.property), a = l.panel !== void 0 ? W(() => l.panel) : J(!1), i = r, u = ie(me(l.property).$ref), _ = Fe(), d = _ ? Ie() : null, h = n.indexes;
1435
1445
  ye(Ue, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1436
1446
  const p = J(l.modelValue), o = J({
1437
1447
  data: [],
1438
1448
  pagination: {}
1439
- }), m = W(() => o.value.data), A = W(() => o.value.pagination), h = J(0), S = J(b[0]), j = J(!1), P = J({}), B = () => {
1449
+ }), m = W(() => o.value.data), A = W(() => o.value.pagination), b = J(0), S = J(h[0]), R = J(!1), P = J({}), B = () => {
1440
1450
  const z = {};
1441
1451
  if (_) {
1442
1452
  const U = e(_);
1443
1453
  z[U] = d;
1444
1454
  }
1445
1455
  return n.constraints ? Gt(n.constraints, z) : {};
1446
- }, R = () => {
1447
- m.value.length < A.value.recordsTotal && (h.value += 1, w());
1448
- }, Y = async () => {
1456
+ }, j = () => {
1457
+ m.value.length < A.value.recordsTotal && (b.value += 1, w());
1458
+ }, K = async () => {
1449
1459
  if (Object.values(P.value).every((U) => !(String(U).length > 0)))
1450
- return c.$actions.custom("getAll", {
1460
+ return u.$actions.custom("getAll", {
1451
1461
  limit: Ee,
1452
- offset: h.value * Ee,
1462
+ offset: b.value * Ee,
1453
1463
  filters: B()
1454
1464
  });
1455
- const z = b.filter((U) => {
1465
+ const z = h.filter((U) => {
1456
1466
  var f;
1457
1467
  return ((f = P.value[U]) == null ? void 0 : f.length) > 0;
1458
1468
  }).map((U) => ({
@@ -1461,9 +1471,9 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1461
1471
  $options: "i"
1462
1472
  }
1463
1473
  }));
1464
- return c.$actions.custom("getAll", {
1474
+ return u.$actions.custom("getAll", {
1465
1475
  limit: Ee,
1466
- offset: h.value * Ee,
1476
+ offset: b.value * Ee,
1467
1477
  filters: {
1468
1478
  ...B(),
1469
1479
  ...z.length > 0 && {
@@ -1472,9 +1482,9 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1472
1482
  }
1473
1483
  });
1474
1484
  }, w = async () => {
1475
- if (c.loading.getAll)
1485
+ if (u.loading.getAll)
1476
1486
  return;
1477
- const { error: z, result: U } = await Y();
1487
+ const { error: z, result: U } = await K();
1478
1488
  if (z) {
1479
1489
  ie("meta").$actions.spawnToast({
1480
1490
  text: "Request failed",
@@ -1482,21 +1492,21 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1482
1492
  });
1483
1493
  return;
1484
1494
  }
1485
- o.value.pagination = U.pagination, h.value === 0 && o.value.data.splice(0), o.value.data.push(...U.data);
1495
+ o.value.pagination = U.pagination, b.value === 0 && o.value.data.splice(0), o.value.data.push(...U.data);
1486
1496
  }, [te] = kt({
1487
1497
  delay: 800
1488
1498
  })(() => {
1489
- h.value = 0, w(), j.value = !1;
1499
+ b.value = 0, w(), R.value = !1;
1490
1500
  }), V = () => {
1491
- j.value = !0, te();
1501
+ R.value = !0, te();
1492
1502
  }, T = () => {
1493
1503
  "effect" in a ? i("update:panel", !0) : a.value = !0, w();
1494
1504
  }, ae = () => {
1495
- h.value = 0, o.value.data.splice(0), "effect" in a ? i("update:panel", !1) : a.value = !1;
1505
+ b.value = 0, o.value.data.splice(0), "effect" in a ? i("update:panel", !1) : a.value = !1;
1496
1506
  }, le = W(() => !Object.values(P.value).some((z) => !!z));
1497
1507
  ue(le, (z, U) => {
1498
1508
  z && !U && w();
1499
- }), ht(() => {
1509
+ }), bt(() => {
1500
1510
  l.selectOnly && w();
1501
1511
  });
1502
1512
  const ne = (z) => {
@@ -1533,11 +1543,11 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1533
1543
  })
1534
1544
  ]),
1535
1545
  default: v(() => {
1536
- var M, H;
1546
+ var M, D;
1537
1547
  return [
1538
1548
  I("div", Ao, [
1539
1549
  I("div", Bo, [
1540
- e(b).length > 1 ? (t(), $(Ge, {
1550
+ e(h).length > 1 ? (t(), $(Ge, {
1541
1551
  key: 0,
1542
1552
  modelValue: S.value,
1543
1553
  "onUpdate:modelValue": U[0] || (U[0] = (g) => S.value = g),
@@ -1545,7 +1555,7 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1545
1555
  onChange: U[1] || (U[1] = (g) => P.value = {})
1546
1556
  }, {
1547
1557
  default: v(() => [
1548
- (t(!0), s(N, null, D(e(b), (g) => (t(), s("option", {
1558
+ (t(!0), s(N, null, H(e(h), (g) => (t(), s("option", {
1549
1559
  key: `searchfield-${g}`,
1550
1560
  value: g
1551
1561
  }, k(e(L)(g)), 9, wo))), 128))
@@ -1558,7 +1568,7 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1558
1568
  modelValue: P.value[S.value],
1559
1569
  "onUpdate:modelValue": U[2] || (U[2] = (g) => P.value[S.value] = g),
1560
1570
  property: {
1561
- ...e(c).properties[S.value],
1571
+ ...e(u).properties[S.value],
1562
1572
  inputType: "search"
1563
1573
  },
1564
1574
  onInput: V
@@ -1568,12 +1578,12 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1568
1578
  m.value.length ? (t(), $(mt, {
1569
1579
  key: 0,
1570
1580
  "observe-scroll": "",
1571
- onEndReached: R
1581
+ onEndReached: j
1572
1582
  }, {
1573
1583
  default: v(() => [
1574
- (t(!0), s(N, null, D(m.value, (g) => (t(), $(Xe, G({ ref_for: !0 }, {
1584
+ (t(!0), s(N, null, H(m.value, (g) => (t(), $(Xe, G({ ref_for: !0 }, {
1575
1585
  item: g,
1576
- indexes: e(b),
1586
+ indexes: e(h),
1577
1587
  property: z.property
1578
1588
  }, {
1579
1589
  key: `matching-${g._id}`,
@@ -1583,7 +1593,7 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1583
1593
  ]),
1584
1594
  _: 1
1585
1595
  })) : (t(), s("div", To, [
1586
- j.value ? (t(), s("div", jo, k(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(c).loading.getAll && Object.values(P.value).filter((g) => !!g).length > 0 && !("items" in z.property && ((M = z.modelValue) != null && M.length) || !Array.isArray(z.modelValue) && ((H = z.modelValue) != null && H._id)) ? (t(), s("div", Ro, k(e(L)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1596
+ R.value ? (t(), s("div", jo, k(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(P.value).filter((g) => !!g).length > 0 && !("items" in z.property && ((M = z.modelValue) != null && M.length) || !Array.isArray(z.modelValue) && ((D = z.modelValue) != null && D._id)) ? (t(), s("div", Ro, k(e(L)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1587
1597
  ]))
1588
1598
  ]),
1589
1599
  I("div", Lo, k(e(L)("showing", { capitalize: !0 })) + " " + k(m.value.length) + " " + k(e(L)("of")) + " " + k(A.value.recordsTotal), 1)
@@ -1598,19 +1608,19 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1598
1608
  var M;
1599
1609
  return [
1600
1610
  "items" in z.property ? (t(), s("div", Mo, [
1601
- (t(!0), s(N, null, D(z.modelValue, (H) => (t(), $(Xe, G({ ref_for: !0 }, {
1602
- item: H,
1603
- indexes: e(b),
1611
+ (t(!0), s(N, null, H(z.modelValue, (D) => (t(), $(Xe, G({ ref_for: !0 }, {
1612
+ item: D,
1613
+ indexes: e(h),
1604
1614
  property: z.property,
1605
1615
  readOnly: z.readOnly,
1606
1616
  modelValue: z.modelValue
1607
1617
  }, {
1608
- key: `selected-${H._id}`,
1618
+ key: `selected-${D._id}`,
1609
1619
  "onUpdate:modelValue": ne
1610
1620
  }), null, 16))), 128))
1611
1621
  ])) : (M = z.modelValue) != null && M._id ? (t(), $(Xe, G({ key: 1 }, {
1612
1622
  item: z.modelValue,
1613
- indexes: e(b),
1623
+ indexes: e(h),
1614
1624
  property: e(n),
1615
1625
  readOnly: z.readOnly,
1616
1626
  modelValue: z.modelValue
@@ -1642,8 +1652,8 @@ const Xe = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
1642
1652
  };
1643
1653
  }
1644
1654
  });
1645
- const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r) => {
1646
- const l = "items" in u ? u.items : u, n = {
1655
+ const Fo = /* @__PURE__ */ X(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r) => {
1656
+ const l = "items" in c ? c.items : c, n = {
1647
1657
  options: Yn,
1648
1658
  select: Ge,
1649
1659
  switch: to,
@@ -1658,30 +1668,30 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1658
1668
  if (l.type === "boolean")
1659
1669
  return "switch";
1660
1670
  }
1661
- if ("element" in u) {
1662
- if (u.element === "checkbox" || u.element === "radio")
1671
+ if ("element" in c) {
1672
+ if (c.element === "checkbox" || c.element === "radio")
1663
1673
  return "options";
1664
- if (u.element === "select")
1674
+ if (c.element === "select")
1665
1675
  return "select";
1666
1676
  }
1667
- const i = me(u);
1668
- return i ? i.inline ? "form" : i.$ref === "file" ? "file" : "search" : "items" in u && u.uniqueItems ? "options" : "enum" in l ? "select" : "input";
1677
+ const i = me(c);
1678
+ return i ? i.inline ? "form" : i.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in l ? "select" : "input";
1669
1679
  })();
1670
1680
  return r[a] ? r[a] : n[a];
1671
- }, Uo = (u, r, l) => {
1672
- u ?? (u = []);
1681
+ }, Uo = (c, r, l) => {
1682
+ c ?? (c = []);
1673
1683
  const n = "items" in r ? r.items : r;
1674
1684
  if ("$ref" in n) {
1675
1685
  const a = ie(n.$ref, l), i = Ce(a.$freshItem);
1676
- return u.push(i);
1686
+ return c.push(i);
1677
1687
  }
1678
- return "properties" in n ? u.push(Wt(n)) : "type" in n && n.type === "boolean" ? u.push({}) : u.push(null);
1679
- }, Eo = (u, r) => {
1680
- u.splice(r, 1);
1681
- }, Ho = {
1688
+ return "properties" in n ? c.push(Wt(n)) : "type" in n && n.type === "boolean" ? c.push({}) : c.push(null);
1689
+ }, Eo = (c, r) => {
1690
+ c.splice(r, 1);
1691
+ }, Do = {
1682
1692
  key: 0,
1683
1693
  class: "form__header"
1684
- }, Do = { class: "form__fieldset" }, Qo = { key: 0 }, Go = ["innerHTML"], Wo = ["onInput"], Ko = { key: 4 }, Xo = { value: "true" }, Yo = { value: "false" }, Jo = {
1694
+ }, Ho = { class: "form__fieldset" }, Qo = { key: 0 }, Go = ["innerHTML"], Wo = ["onInput"], Ko = { key: 4 }, Xo = { value: "true" }, Yo = { value: "false" }, Jo = {
1685
1695
  key: 5,
1686
1696
  style: { display: "grid", "row-gap": ".4rem" }
1687
1697
  }, Zo = { key: 0 }, Po = { class: "form__array" }, No = { style: { "flex-grow": "1" } }, xo = {
@@ -1717,16 +1727,16 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1717
1727
  includeTimestamps: { type: Boolean }
1718
1728
  },
1719
1729
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
1720
- setup(u, { emit: r }) {
1730
+ setup(c, { emit: r }) {
1721
1731
  var U;
1722
- const l = Pe(), n = u, a = r;
1732
+ const l = Pe(), n = c, a = r;
1723
1733
  $t(() => {
1724
1734
  n.modelValue || a("update:modelValue", n.property && "items" in n.property ? [] : {});
1725
1735
  });
1726
- const i = n.property && me(n.property), c = i ? i.$ref : n.collection || Fe(), _ = n.readOnly || ((U = n.property) == null ? void 0 : U.readOnly), d = c ? ie(e(c)) : null;
1727
- !c && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1736
+ const i = n.property && me(n.property), u = i ? i.$ref : n.collection || Fe(), _ = n.readOnly || ((U = n.property) == null ? void 0 : U.readOnly), d = u ? ie(e(u)) : null;
1737
+ !u && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1728
1738
  collection prop, some features may not work as intended`);
1729
- const b = J(!1), p = W(() => {
1739
+ const h = J(!1), p = W(() => {
1730
1740
  const f = (() => !n.form && n.property ? "type" in n.property && n.property.type === "object" ? "properties" in n.property ? n.property.properties : void 0 : d == null ? void 0 : d.properties : n.form)();
1731
1741
  if (!f)
1732
1742
  return;
@@ -1735,32 +1745,32 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1735
1745
  type: "string",
1736
1746
  readOnly: !0
1737
1747
  }), n.includeTimestamps) {
1738
- const H = {
1748
+ const D = {
1739
1749
  type: "string",
1740
1750
  format: "date-time",
1741
1751
  readOnly: !0,
1742
1752
  isTimestamp: !0
1743
1753
  };
1744
- f.created_at || (M.created_at = H), f.created_at || (M.updated_at = H);
1754
+ f.created_at || (M.created_at = D), f.created_at || (M.updated_at = D);
1745
1755
  }
1746
1756
  return Object.assign(M, f), M;
1747
1757
  }), o = W(() => n.layout || (d == null ? void 0 : d.description.formLayout)), m = (f) => {
1748
1758
  const M = _e(f, n[f]);
1749
1759
  return n[f] && ye(f, n[f]), M;
1750
- }, A = W(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), h = m("formComponents") || {}, S = m("propertyComponents") || {}, j = m("omitFormHeader"), P = m("omitInputLabels"), B = m("innerInputLabel");
1751
- c && ye(Ue, c), ye("searchOnly", n.searchOnly);
1752
- const R = (f) => p.value ? Object.entries(p.value).filter(([M, H]) => !H.noForm && f([
1760
+ }, A = W(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), b = m("formComponents") || {}, S = m("propertyComponents") || {}, R = m("omitFormHeader"), P = m("omitInputLabels"), B = m("innerInputLabel");
1761
+ u && ye(Ue, u), ye("searchOnly", n.searchOnly);
1762
+ const j = (f) => p.value ? Object.entries(p.value).filter(([M, D]) => !D.noForm && f([
1753
1763
  M,
1754
- H
1755
- ])) : null, Y = (f, M) => {
1764
+ D
1765
+ ])) : null, K = (f, M) => {
1756
1766
  var g;
1757
- if (n.searchOnly || !c || n.includeId && f === "_id" || n.includeTimestamps && M.isTimestamp)
1767
+ if (n.searchOnly || !u || n.includeId && f === "_id" || n.includeTimestamps && M.isTimestamp)
1758
1768
  return !0;
1759
- const H = n.property && "properties" in n.property ? n.property.form : (g = d == null ? void 0 : d.description) == null ? void 0 : g.form;
1760
- return !H || H.includes(f);
1761
- }, w = R(([f, M]) => Y(f, M)), te = qe(), V = {}, T = (f, M) => {
1769
+ const D = n.property && "properties" in n.property ? n.property.form : (g = d == null ? void 0 : d.description) == null ? void 0 : g.form;
1770
+ return !D || D.includes(f);
1771
+ }, w = j(([f, M]) => K(f, M)), te = qe(), V = {}, T = (f, M) => {
1762
1772
  var q, fe, we, Se;
1763
- const H = [], g = ((fe = (q = o.value) == null ? void 0 : q.fields) == null ? void 0 : fe[f]) || ((Se = (we = o.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
1773
+ const D = [], g = ((fe = (q = o.value) == null ? void 0 : q.fields) == null ? void 0 : fe[f]) || ((Se = (we = o.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
1764
1774
  if (!M)
1765
1775
  return;
1766
1776
  if (g != null && g.if && !n.searchOnly) {
@@ -1771,54 +1781,54 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1771
1781
  Te.satisfied || (V[f] && (d ? n.modelValue[f] = typeof d.$freshItem[f] == "object" ? Ce(d.$freshItem[f]) : d.$freshItem[f] : n.modelValue[f] = [
1772
1782
  void 0,
1773
1783
  null
1774
- ].includes(n.modelValue[f]) ? null : n.modelValue[f].constructor()), H.push("display: none;")), V[f] = Te.satisfied;
1784
+ ].includes(n.modelValue[f]) ? null : n.modelValue[f].constructor()), D.push("display: none;")), V[f] = Te.satisfied;
1775
1785
  }
1776
1786
  const O = te.value.md && (g == null ? void 0 : g.span) || 6;
1777
- return H.push(`
1787
+ return D.push(`
1778
1788
  --field-span: ${O};
1779
1789
  grid-column: span var(--field-span) / span var(--field-span);
1780
- `), g && (g.verticalSpacing && H.push(`
1790
+ `), g && (g.verticalSpacing && D.push(`
1781
1791
  --vertical-spacing: ${g.verticalSpacing};
1782
1792
  padding: var(--vertical-spacing) 0;
1783
- `), g.separator && H.push(`
1793
+ `), g.separator && D.push(`
1784
1794
  border-top: 1px solid var(--theme-border-color);
1785
1795
  border-width: 1px 0 1px 0;
1786
1796
  padding: 1rem 0;
1787
1797
  margin: 1rem 0;
1788
- `)), H.join("");
1798
+ `)), D.join("");
1789
1799
  }, ae = (f) => f === null || f instanceof Object && !Object.keys(f).length, le = W(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), ne = W(() => n.form ? Ft(
1790
1800
  n.modelValue,
1791
1801
  n.form,
1792
1802
  le.value,
1793
1803
  d == null ? void 0 : d.description
1794
1804
  ) : !0), se = (f, M) => {
1795
- var H;
1796
- return (H = A.value) != null && H[f] && (typeof A.value[f].index != "number" || A.value[f].index === M) ? A.value[f].errors : null;
1805
+ var D;
1806
+ return (D = A.value) != null && D[f] && (typeof A.value[f].index != "number" || A.value[f].index === M) ? A.value[f].errors : null;
1797
1807
  }, z = (f) => {
1798
- if (!(_ || f.readOnly) && !n.parentPropertyName && !n.parentCollection && !b.value)
1799
- return b.value = !0, !0;
1808
+ if (!(_ || f.readOnly) && !n.parentPropertyName && !n.parentCollection && !h.value)
1809
+ return h.value = !0, !0;
1800
1810
  };
1801
1811
  return (f, M) => {
1802
- const H = oe("clickable"), g = oe("focus");
1812
+ const D = oe("clickable"), g = oe("focus");
1803
1813
  return t(), s("form", {
1804
1814
  class: "form",
1805
- style: he(`row-gap: ${e(j) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1815
+ style: be(`row-gap: ${e(R) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1806
1816
  }, [
1807
- f.$slots.header && !e(j) ? (t(), s("header", Ho, [
1817
+ f.$slots.header && !e(R) ? (t(), s("header", Do, [
1808
1818
  C(f.$slots, "header", {}, void 0, !0)
1809
1819
  ])) : y("", !0),
1810
1820
  C(f.$slots, "default", {}, void 0, !0),
1811
- I("fieldset", Do, [
1812
- (t(!0), s(N, null, D(e(w), ([O, q]) => {
1821
+ I("fieldset", Ho, [
1822
+ (t(!0), s(N, null, H(e(w), ([O, q]) => {
1813
1823
  var fe, we, Se, Te, Ne, xe, et, tt, nt, ot, at, lt, st;
1814
1824
  return t(), s("div", {
1815
1825
  key: `field-${O}`,
1816
- style: he(T(O, q)),
1826
+ style: be(T(O, q)),
1817
1827
  class: "form__field"
1818
1828
  }, [
1819
1829
  (!("type" in q) || q.type !== "boolean" || f.searchOnly) && !q.noLabel && !e(P) && !e(B) ? (t(), s("label", Qo, [
1820
1830
  I("div", {
1821
- class: X({
1831
+ class: Y({
1822
1832
  "form__field-label": !0,
1823
1833
  "form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
1824
1834
  "form__field-required-hint": f.highlightRequired && !e(_) && !f.searchOnly && (!le.value || e(Kt)(O, le.value, f.modelValue))
@@ -1837,7 +1847,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1837
1847
  property: q,
1838
1848
  propertyName: O,
1839
1849
  modelValue: f.modelValue
1840
- }), void 0, !0) : (Se = (we = (fe = f.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[O]) != null && Se.component && e(S)[f.layout.fields[O].component.name] ? (t(), $(be(e(S)[f.layout.fields[O].component.name]), G({
1850
+ }), void 0, !0) : (Se = (we = (fe = f.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[O]) != null && Se.component && e(S)[f.layout.fields[O].component.name] ? (t(), $(he(e(S)[f.layout.fields[O].component.name]), G({
1841
1851
  key: 2,
1842
1852
  modelValue: f.modelValue[O],
1843
1853
  "onUpdate:modelValue": (ee) => f.modelValue[O] = ee,
@@ -1908,14 +1918,14 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1908
1918
  }, 1032, ["disabled", "onClick"])
1909
1919
  ])),
1910
1920
  I("div", Po, [
1911
- (t(!0), s(N, null, D(f.modelValue[O], (ee, je) => {
1921
+ (t(!0), s(N, null, H(f.modelValue[O], (ee, je) => {
1912
1922
  var it, rt, ut, ct, dt, pt;
1913
1923
  return t(), s("div", {
1914
1924
  key: `rep-${O}-${e(Ut)(ee, je)}`,
1915
1925
  class: "form__array-item"
1916
1926
  }, [
1917
1927
  I("div", No, [
1918
- (t(), $(be(e(ft)(q, e(h))), G({
1928
+ (t(), $(he(e(ft)(q, e(b))), G({
1919
1929
  modelValue: f.modelValue[O][je],
1920
1930
  "onUpdate:modelValue": (Re) => f.modelValue[O][je] = Re,
1921
1931
  ref_for: !0
@@ -1923,7 +1933,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1923
1933
  readOnly: e(_),
1924
1934
  property: q.items,
1925
1935
  propertyName: O,
1926
- parentCollection: e(c),
1936
+ parentCollection: e(u),
1927
1937
  parentPropertyName: f.parentPropertyName,
1928
1938
  columns: ((ut = (rt = (it = f.layout) == null ? void 0 : it.fields) == null ? void 0 : rt[O]) == null ? void 0 : ut.optionsColumns) || ((pt = (dt = (ct = f.layout) == null ? void 0 : ct.fields) == null ? void 0 : dt.$default) == null ? void 0 : pt.optionsColumns),
1929
1939
  validationErrors: se(O, je),
@@ -1939,12 +1949,12 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1939
1949
  icon: "trash",
1940
1950
  onClick: (Re) => e(Eo)(f.modelValue[O], je)
1941
1951
  }, null, 8, ["onClick"])), [
1942
- [H]
1952
+ [D]
1943
1953
  ])
1944
1954
  ]);
1945
1955
  }), 128))
1946
1956
  ])
1947
- ])) : f.modelValue ? x((t(), $(be(e(ft)(q, e(h))), G({
1957
+ ])) : f.modelValue ? x((t(), $(he(e(ft)(q, e(b))), G({
1948
1958
  key: 6,
1949
1959
  modelValue: f.modelValue[O],
1950
1960
  "onUpdate:modelValue": (ee) => f.modelValue[O] = ee,
@@ -1954,7 +1964,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1954
1964
  property: q,
1955
1965
  propertyName: O,
1956
1966
  parentPropertyName: f.parentPropertyName,
1957
- parentCollection: e(c),
1967
+ parentCollection: e(u),
1958
1968
  columns: ((nt = (tt = (et = f.layout) == null ? void 0 : et.fields) == null ? void 0 : tt[O]) == null ? void 0 : nt.optionsColumns) || ((lt = (at = (ot = f.layout) == null ? void 0 : ot.fields) == null ? void 0 : at.$default) == null ? void 0 : lt.optionsColumns),
1959
1969
  ...q.componentProps || {},
1960
1970
  validationErrors: se(O)
@@ -1982,11 +1992,11 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r
1982
1992
  };
1983
1993
  }
1984
1994
  });
1985
- const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @__PURE__ */ E({
1995
+ const We = /* @__PURE__ */ X(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @__PURE__ */ E({
1986
1996
  __name: "aeria-filter-panel",
1987
1997
  emits: ["update:modelValue"],
1988
- setup(u, { emit: r }) {
1989
- const l = r, n = Ie(), a = Ae(), i = e(_e(Ue)), c = () => {
1998
+ setup(c, { emit: r }) {
1999
+ const l = r, n = Ie(), a = Ae(), i = e(_e(Ue)), u = () => {
1990
2000
  n.pagination.offset = 0, n.$actions.filter(), l("update:modelValue", !1);
1991
2001
  const _ = Object.assign({
1992
2002
  query: {}
@@ -2001,15 +2011,15 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2001
2011
  "close-hint": "",
2002
2012
  "fixed-right": "",
2003
2013
  title: _.t("filter_by", { capitalize: !0 }),
2004
- onClose: d[2] || (d[2] = (b) => l("update:modelValue", !1)),
2005
- onOverlayClick: d[3] || (d[3] = (b) => l("update:modelValue", !1))
2014
+ onClose: d[2] || (d[2] = (h) => l("update:modelValue", !1)),
2015
+ onOverlayClick: d[3] || (d[3] = (h) => l("update:modelValue", !1))
2006
2016
  }, {
2007
2017
  footer: v(() => [
2008
2018
  e(n).filtersCount > 0 ? (t(), $(re, {
2009
2019
  key: 0,
2010
2020
  variant: "transparent",
2011
- onClick: d[1] || (d[1] = (b) => {
2012
- e(n).$actions.clearFilters(), c(), l("update:modelValue", !1);
2021
+ onClick: d[1] || (d[1] = (h) => {
2022
+ e(n).$actions.clearFilters(), u(), l("update:modelValue", !1);
2013
2023
  })
2014
2024
  }, {
2015
2025
  default: v(() => [
@@ -2027,7 +2037,7 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2027
2037
  large: "",
2028
2038
  icon: "funnel",
2029
2039
  disabled: !e(n).hasActiveFilters,
2030
- onClick: c
2040
+ onClick: u
2031
2041
  }, {
2032
2042
  default: v(() => [
2033
2043
  Q(k(_.t("action.filter", { capitalize: !0 })), 1)
@@ -2038,7 +2048,7 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2038
2048
  default: v(() => [
2039
2049
  F(We, G({
2040
2050
  modelValue: e(n).filters,
2041
- "onUpdate:modelValue": d[0] || (d[0] = (b) => e(n).filters = b)
2051
+ "onUpdate:modelValue": d[0] || (d[0] = (h) => e(n).filters = h)
2042
2052
  }, {
2043
2053
  searchOnly: !0,
2044
2054
  form: e(n).availableFilters,
@@ -2058,11 +2068,11 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2058
2068
  includeTimestamps: { type: Boolean }
2059
2069
  },
2060
2070
  emits: ["update:modelValue", "cancel"],
2061
- setup(u, { emit: r }) {
2062
- const l = u, n = r, a = ie("meta"), i = ie(l.collection || a.view.collection), c = _e("individualActions", []), _ = async () => {
2071
+ setup(c, { emit: r }) {
2072
+ const l = c, n = r, a = ie("meta"), i = ie(l.collection || a.view.collection), u = _e("individualActions", []), _ = async () => {
2063
2073
  const { error: o } = await i.$actions.deepInsert();
2064
2074
  o || n("update:modelValue", !1);
2065
- }, { t: d } = Lt(), b = () => {
2075
+ }, { t: d } = Lt(), h = () => {
2066
2076
  a.$actions.ask({
2067
2077
  action: () => {
2068
2078
  i.$actions.clearItem(), i.validationErrors = {}, n("cancel");
@@ -2079,23 +2089,23 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2079
2089
  const A = oe("clickable");
2080
2090
  return t(), $(Be, {
2081
2091
  loading: e(i).loading.get,
2082
- onOverlayClick: b
2092
+ onOverlayClick: h
2083
2093
  }, ce({
2084
2094
  extra: v(() => [
2085
2095
  F(Oe, G({
2086
2096
  subject: e(i).item,
2087
- actions: e(c).filter(({ action: h }) => h !== "ui:spawnEdit"),
2097
+ actions: e(u).filter(({ action: b }) => b !== "spawnEdit"),
2088
2098
  overlayLayer: 60
2089
2099
  }, {
2090
- onActionClick: m[2] || (m[2] = (h) => n("update:modelValue", !1))
2100
+ onActionClick: m[2] || (m[2] = (b) => n("update:modelValue", !1))
2091
2101
  }), {
2092
2102
  default: v(({
2093
- visible: h
2103
+ visible: b
2094
2104
  }) => [
2095
2105
  e(i).item._id ? x((t(), $(Z, {
2096
2106
  key: 0,
2097
2107
  reactive: "",
2098
- active: h,
2108
+ active: b,
2099
2109
  icon: "dots-three"
2100
2110
  }, null, 8, ["active"])), [
2101
2111
  [A]
@@ -2107,7 +2117,7 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2107
2117
  default: v(() => [
2108
2118
  F(We, G({
2109
2119
  modelValue: e(i).item,
2110
- "onUpdate:modelValue": m[0] || (m[0] = (h) => e(i).item = h)
2120
+ "onUpdate:modelValue": m[0] || (m[0] = (b) => e(i).item = b)
2111
2121
  }, {
2112
2122
  readOnly: o.readOnly,
2113
2123
  includeId: o.includeId,
@@ -2118,12 +2128,12 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2118
2128
  }, {
2119
2129
  focus: "",
2120
2130
  onClipboardCopy: p,
2121
- onAdd: m[1] || (m[1] = (h) => h.preventDefault())
2131
+ onAdd: m[1] || (m[1] = (b) => b.preventDefault())
2122
2132
  }), ce({ _: 2 }, [
2123
- D(Object.keys(o.$slots).filter((h) => h.startsWith("field-")), (h) => ({
2124
- name: h,
2133
+ H(Object.keys(o.$slots).filter((b) => b.startsWith("field-")), (b) => ({
2134
+ name: b,
2125
2135
  fn: v((S) => [
2126
- C(o.$slots, h, de(ge(S)))
2136
+ C(o.$slots, b, de(ge(S)))
2127
2137
  ])
2128
2138
  }))
2129
2139
  ]), 1040, ["modelValue"])
@@ -2142,7 +2152,7 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2142
2152
  fn: v(() => [
2143
2153
  F(re, {
2144
2154
  variant: "transparent",
2145
- onClick: b
2155
+ onClick: h
2146
2156
  }, {
2147
2157
  default: v(() => [
2148
2158
  Q(k(e(d)("action.cancel", { capitalize: !0 })), 1)
@@ -2166,27 +2176,27 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2166
2176
  ]), 1032, ["loading"]);
2167
2177
  };
2168
2178
  }
2169
- }), Ot = (u, r) => {
2179
+ }), Ot = (c, r) => {
2170
2180
  if (r) {
2171
- if (!u) {
2181
+ if (!c) {
2172
2182
  r.filtersPreset = {}, r.preferredTableProperties = [], r.pagination.offset = 0;
2173
2183
  return;
2174
2184
  }
2175
- r.filtersPreset = u.filters || {}, r.preferredTableProperties = u.table ? Array.from(u.table) : [], r.pagination.offset = 0;
2185
+ r.filtersPreset = c.filters || {}, r.preferredTableProperties = c.table ? Array.from(c.table) : [], r.pagination.offset = 0;
2176
2186
  }
2177
- }, sa = (u, r = {
2187
+ }, sa = (c, r = {
2178
2188
  persistInQuery: !0
2179
2189
  }) => {
2180
2190
  const n = Ae().currentRoute;
2181
2191
  return ue(() => n.value.query.section, (a) => {
2182
- if (u) {
2183
- if (u.description.filtersPresets) {
2184
- const i = a || Object.keys(u.description.filtersPresets)[0];
2185
- Ot(u.description.filtersPresets[i], u);
2192
+ if (c) {
2193
+ if (c.description.filtersPresets) {
2194
+ const i = a || Object.keys(c.description.filtersPresets)[0];
2195
+ Ot(c.description.filtersPresets[i], c);
2186
2196
  }
2187
2197
  if (r.persistInQuery) {
2188
2198
  const i = n.value.query;
2189
- i.offset && (u.pagination.offset = +i.offset), i.limit && (u.pagination.limit = +i.limit), i.search && (u.textQuery = i.search, u.filters.$text = {
2199
+ i.offset && (c.pagination.offset = +i.offset), i.limit && (c.pagination.limit = +i.limit), i.search && (c.textQuery = i.search, c.filters.$text = {
2190
2200
  $search: `"${i.search}"`,
2191
2201
  $caseSensitive: !1
2192
2202
  });
@@ -2195,13 +2205,13 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2195
2205
  }, {
2196
2206
  immediate: !0
2197
2207
  });
2198
- }, ia = (u) => (De("data-v-7fdb061d"), u = u(), Qe(), u), ra = {
2208
+ }, ia = (c) => (He("data-v-7fdb061d"), c = c(), Qe(), c), ra = {
2199
2209
  key: 0,
2200
2210
  class: "table aeria-surface"
2201
2211
  }, ua = { key: 0 }, ca = { key: 1 }, da = { key: 0 }, pa = ["checked"], _a = {
2202
2212
  key: 1,
2203
2213
  style: { "text-align": "right" }
2204
- }, ma = { key: 2 }, fa = { key: 3 }, va = ["onClick"], ya = { key: 0 }, ba = ["value"], ha = { class: "table__cell-mobile-label" }, $a = {
2214
+ }, ma = { key: 2 }, fa = { key: 3 }, va = ["onClick"], ya = { key: 0 }, ha = ["value"], ba = { class: "table__cell-mobile-label" }, $a = {
2205
2215
  key: 0,
2206
2216
  class: "table__cell-container"
2207
2217
  }, ga = {
@@ -2228,84 +2238,84 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2228
2238
  layout: {}
2229
2239
  },
2230
2240
  emits: ["itemClick"],
2231
- setup(u, { emit: r }) {
2232
- const l = u, n = r, a = qe(), i = l.collection || Fe(), c = i ? ie(typeof i == "string" ? i : i.value) : null, _ = W({
2233
- get: () => c == null ? void 0 : c.selected,
2234
- set: (m) => c == null ? void 0 : c.$actions.selectManyItems(m, !0)
2235
- }), d = (m, A) => m != null && m.button ? typeof m.button == "object" ? Ye(A, m.button).satisfied : m.button : !1, b = (m) => {
2241
+ setup(c, { emit: r }) {
2242
+ const l = c, n = r, a = qe(), i = l.collection || Fe(), u = i ? ie(typeof i == "string" ? i : i.value) : null, _ = W({
2243
+ get: () => u == null ? void 0 : u.selected,
2244
+ set: (m) => u == null ? void 0 : u.$actions.selectManyItems(m, !0)
2245
+ }), d = (m, A) => m != null && m.button ? typeof m.button == "object" ? Ye(A, m.button).satisfied : m.button : !1, h = (m) => {
2236
2246
  var A;
2237
- return !a.value.xl || !((A = l.layout) != null && A.actions) || !l.actions ? [] : l.actions.filter((h) => {
2238
- const S = l.layout.actions[h.action];
2247
+ return !a.value.xl || !((A = l.layout) != null && A.actions) || !l.actions ? [] : l.actions.filter((b) => {
2248
+ const S = l.layout.actions[b.action];
2239
2249
  return d(S, m);
2240
2250
  });
2241
2251
  }, p = (m) => {
2242
2252
  var A;
2243
- return l.actions ? !a.value.xl || !((A = l.layout) != null && A.actions) ? l.actions : l.actions.filter((h) => {
2244
- const S = l.layout.actions[h.action];
2245
- if (h.roles) {
2246
- const j = ie("user");
2247
- if (!Vt(h.roles, j.currentUser.roles))
2253
+ return l.actions ? !a.value.xl || !((A = l.layout) != null && A.actions) ? l.actions : l.actions.filter((b) => {
2254
+ const S = l.layout.actions[b.action];
2255
+ if (b.roles) {
2256
+ const R = ie("user");
2257
+ if (!Vt(b.roles, R.currentUser.roles))
2248
2258
  return !1;
2249
2259
  }
2250
2260
  return !d(S, m);
2251
2261
  }) : [];
2252
2262
  }, o = (m, A) => {
2253
- var j, P;
2254
- const h = [], S = (P = (j = l.layout) == null ? void 0 : j.actions) == null ? void 0 : P[A.action];
2263
+ var R, P;
2264
+ const b = [], S = (P = (R = l.layout) == null ? void 0 : R.actions) == null ? void 0 : P[A.action];
2255
2265
  return S != null && S.if && (Ye(
2256
2266
  m,
2257
2267
  S.if
2258
- ).satisfied || h.push("display: none;")), h.join("");
2268
+ ).satisfied || b.push("display: none;")), b.join("");
2259
2269
  };
2260
2270
  return (m, A) => {
2261
- var S, j, P;
2262
- const h = oe("clickable");
2271
+ var S, R, P;
2272
+ const b = oe("clickable");
2263
2273
  return m.columns && Object.keys(m.columns).length > 0 || m.$slots.thead ? (t(), s("table", ra, [
2264
2274
  m.$slots.thead ? (t(), s("thead", ua, [
2265
2275
  C(m.$slots, "thead", {}, void 0, !0)
2266
2276
  ])) : (t(), s("thead", ca, [
2267
2277
  I("tr", null, [
2268
- m.checkbox && e(c) && e(a).md ? (t(), s("th", da, [
2278
+ m.checkbox && e(u) && e(a).md ? (t(), s("th", da, [
2269
2279
  I("input", {
2270
2280
  type: "checkbox",
2271
- checked: e(c).selected.length > 0 && e(c).selected.length === e(c).itemsCount,
2272
- onChange: A[0] || (A[0] = (B) => e(c).$actions.selectAllItems(B.target.checked))
2281
+ checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
2282
+ onChange: A[0] || (A[0] = (B) => e(u).$actions.selectAllItems(B.target.checked))
2273
2283
  }, null, 40, pa)
2274
2284
  ])) : y("", !0),
2275
- (t(!0), s(N, null, D(Object.entries(m.columns), ([B, R], Y) => (t(), s("th", {
2276
- key: `header-${Y}`,
2285
+ (t(!0), s(N, null, H(Object.entries(m.columns), ([B, j], K) => (t(), s("th", {
2286
+ key: `header-${K}`,
2277
2287
  class: "table__header"
2278
- }, k(R.description || e(L)(B)), 1))), 128)),
2288
+ }, k(j.description || e(L)(B)), 1))), 128)),
2279
2289
  (S = m.actions) != null && S.length ? (t(), s("th", _a)) : y("", !0)
2280
2290
  ])
2281
2291
  ])),
2282
2292
  m.$slots.tbody ? (t(), s("tbody", ma, [
2283
2293
  C(m.$slots, "tbody", {}, void 0, !0)
2284
2294
  ])) : (t(), s("tbody", fa, [
2285
- (t(!0), s(N, null, D(m.rows, (B) => {
2286
- var R, Y;
2295
+ (t(!0), s(N, null, H(m.rows, (B) => {
2296
+ var j, K;
2287
2297
  return t(), s("tr", {
2288
2298
  key: B._id,
2289
2299
  onClick: (w) => n("itemClick", B)
2290
2300
  }, [
2291
- e(c) && m.checkbox && e(a).md ? (t(), s("td", ya, [
2301
+ e(u) && m.checkbox && e(a).md ? (t(), s("td", ya, [
2292
2302
  x(I("input", {
2293
2303
  "onUpdate:modelValue": A[1] || (A[1] = (w) => _.value = w),
2294
2304
  type: "checkbox",
2295
2305
  value: B._id
2296
- }, null, 8, ba), [
2306
+ }, null, 8, ha), [
2297
2307
  [Bt, _.value]
2298
2308
  ])
2299
2309
  ])) : y("", !0),
2300
- (t(!0), s(N, null, D(Object.entries(m.columns), ([w, te], V) => {
2310
+ (t(!0), s(N, null, H(Object.entries(m.columns), ([w, te], V) => {
2301
2311
  var T, ae, le;
2302
2312
  return t(), s("td", {
2303
2313
  key: `column-${B._id}-${V}`
2304
2314
  }, [
2305
- I("div", ha, k(te.description || e(L)(w)), 1),
2315
+ I("div", ba, k(te.description || e(L)(w)), 1),
2306
2316
  `row-${w}` in m.$slots ? (t(), s("div", $a, [
2307
2317
  C(m.$slots, `row-${w}`, G({ ref_for: !0 }, {
2308
- store: e(c),
2318
+ store: e(u),
2309
2319
  column: w,
2310
2320
  property: te,
2311
2321
  row: B
@@ -2334,7 +2344,7 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2334
2344
  }))
2335
2345
  ])) : ((T = e(me)(te)) == null ? void 0 : T.$ref) === "file" ? (t(), s("div", Ca, [
2336
2346
  B[w] ? (t(), s("div", Oa, [
2337
- "items" in te && B[w][0] && /^image/.test(B[w][0].type) ? (t(), $(He, {
2347
+ "items" in te && B[w][0] && /^image/.test(B[w][0].type) ? (t(), $(De, {
2338
2348
  key: 0,
2339
2349
  modelValue: B[w][0].link,
2340
2350
  "onUpdate:modelValue": (ne) => B[w][0].link = ne,
@@ -2342,7 +2352,7 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2342
2352
  meta: B[w][0],
2343
2353
  alt: "Row image",
2344
2354
  class: "table__picture"
2345
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(B[w].type) ? (t(), $(He, {
2355
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(B[w].type) ? (t(), $(De, {
2346
2356
  key: 1,
2347
2357
  modelValue: B[w].link,
2348
2358
  "onUpdate:modelValue": (ne) => B[w].link = ne,
@@ -2357,16 +2367,16 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2357
2367
  }, k(B[w].filename), 9, Ia)) : (t(), s("div", Aa, " - "))
2358
2368
  ])) : (t(), s("div", Ba, " - "))
2359
2369
  ])) : (t(), s("div", wa, [
2360
- e(c) ? (t(), s("span", Sa, k(e(c).$actions.formatValue({
2370
+ e(u) ? (t(), s("span", Sa, k(e(u).$actions.formatValue({
2361
2371
  value: B[w],
2362
2372
  key: w,
2363
2373
  property: te
2364
2374
  })), 1)) : (t(), s("span", Ta, k(Array.isArray(B[w]) ? B[w].filter((ne) => !!ne).join(", ") : [void 0, null].includes(B[w]) ? "-" : B[w]), 1)),
2365
2375
  ((le = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : le.length) > 1 ? (t(), s("div", ja, [
2366
- (t(!0), s(N, null, D(e(me)(te).indexes.slice(1, 2), (ne, se) => (t(), s("div", {
2376
+ (t(!0), s(N, null, H(e(me)(te).indexes.slice(1, 2), (ne, se) => (t(), s("div", {
2367
2377
  key: `subvalue-${se}`,
2368
2378
  class: "table__cell-subvalue"
2369
- }, k(e(c).$actions.formatValue({
2379
+ }, k(e(u).$actions.formatValue({
2370
2380
  value: B[w],
2371
2381
  key: w,
2372
2382
  property: te,
@@ -2378,14 +2388,14 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2378
2388
  ]))
2379
2389
  ]);
2380
2390
  }), 128)),
2381
- (R = m.actions) != null && R.length && e(a).md ? (t(), s("td", Ra, [
2391
+ (j = m.actions) != null && j.length && e(a).md ? (t(), s("td", Ra, [
2382
2392
  I("div", La, [
2383
- (t(!0), s(N, null, D(b(B), (w) => (t(), $(re, {
2393
+ (t(!0), s(N, null, H(h(B), (w) => (t(), $(re, {
2384
2394
  key: `action-${w.action}`,
2385
2395
  small: "",
2386
2396
  variant: "transparent",
2387
2397
  icon: w.icon,
2388
- style: he(o(B, w)),
2398
+ style: be(o(B, w)),
2389
2399
  onClick: (te) => w.click(B)
2390
2400
  }, {
2391
2401
  default: v(() => [
@@ -2408,18 +2418,18 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2408
2418
  active: w,
2409
2419
  icon: "dots-three"
2410
2420
  }, null, 8, ["active"]), [
2411
- [h]
2421
+ [b]
2412
2422
  ])
2413
2423
  ]),
2414
2424
  _: 2
2415
2425
  }, 1040)) : y("", !0)
2416
2426
  ])
2417
- ])) : (Y = m.actions) != null && Y.length ? (t(), s("td", za, [
2427
+ ])) : (K = m.actions) != null && K.length ? (t(), s("td", za, [
2418
2428
  I("div", {
2419
2429
  class: "table__mobile-actions-grid",
2420
- style: he(`grid-template-columns: repeat(${b(B).length + (p(B).length ? 1 : 0)}, 1fr);`)
2430
+ style: be(`grid-template-columns: repeat(${h(B).length + (p(B).length ? 1 : 0)}, 1fr);`)
2421
2431
  }, [
2422
- (t(!0), s(N, null, D(b(B), (w) => (t(), $(ve, {
2432
+ (t(!0), s(N, null, H(h(B), (w) => (t(), $(ve, {
2423
2433
  key: `action-${w.action}`,
2424
2434
  class: "table__mobile-actions-button",
2425
2435
  onClick: (te) => w.click(B)
@@ -2460,21 +2470,21 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
2460
2470
  }), 128))
2461
2471
  ])),
2462
2472
  I("tfoot", null, [
2463
- m.$slots.tfoot ? C(m.$slots, "tfoot", { key: 0 }, void 0, !0) : m.columns && !((j = m.rows) != null && j.length) && !((P = e(c)) != null && P.loading.getAll) ? (t(), s("tr", qa, Ua)) : y("", !0)
2473
+ m.$slots.tfoot ? C(m.$slots, "tfoot", { key: 0 }, void 0, !0) : m.columns && !((R = m.rows) != null && R.length) && !((P = e(u)) != null && P.loading.getAll) ? (t(), s("tr", qa, Ua)) : y("", !0)
2464
2474
  ])
2465
2475
  ])) : y("", !0);
2466
2476
  };
2467
2477
  }
2468
2478
  });
2469
- const Ha = /* @__PURE__ */ K(Ea, [["__scopeId", "data-v-7fdb061d"]]), Da = /* @__PURE__ */ E({
2479
+ const Da = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-7fdb061d"]]), Ha = /* @__PURE__ */ E({
2470
2480
  __name: "aeria-tabular",
2471
2481
  props: {
2472
2482
  individualActions: {},
2473
2483
  layoutOptions: {},
2474
2484
  componentProps: {}
2475
2485
  },
2476
- setup(u) {
2477
- const r = u, l = Ie(), n = Fe(), a = W(() => {
2486
+ setup(c) {
2487
+ const r = c, l = Ie(), n = Fe(), a = W(() => {
2478
2488
  const i = {
2479
2489
  collection: n,
2480
2490
  checkbox: l.hasSelectionActions,
@@ -2485,12 +2495,12 @@ const Ha = /* @__PURE__ */ K(Ea, [["__scopeId", "data-v-7fdb061d"]]), Da = /* @_
2485
2495
  };
2486
2496
  return Object.assign(i, r.componentProps);
2487
2497
  });
2488
- return (i, c) => (t(), s("div", null, [
2498
+ return (i, u) => (t(), s("div", null, [
2489
2499
  i.$slots.inner ? C(i.$slots, "inner", { key: 0 }) : y("", !0),
2490
- e(l).properties ? (t(), $(Ha, G({ key: 1 }, a.value, {
2500
+ e(l).properties ? (t(), $(Da, G({ key: 1 }, a.value, {
2491
2501
  key: e(l).$id
2492
2502
  }), ce({ _: 2 }, [
2493
- D(Object.keys(i.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2503
+ H(Object.keys(i.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2494
2504
  name: _,
2495
2505
  fn: v((d) => [
2496
2506
  C(i.$slots, _, de(ge(d)))
@@ -2504,9 +2514,9 @@ const Ha = /* @__PURE__ */ K(Ea, [["__scopeId", "data-v-7fdb061d"]]), Da = /* @_
2504
2514
  props: {
2505
2515
  list: { type: Boolean }
2506
2516
  },
2507
- setup(u) {
2517
+ setup(c) {
2508
2518
  return (r, l) => (t(), s("div", {
2509
- class: X(`
2519
+ class: Y(`
2510
2520
  grid
2511
2521
  ${r.list && "grid--list"}
2512
2522
  `)
@@ -2515,7 +2525,7 @@ const Ha = /* @__PURE__ */ K(Ea, [["__scopeId", "data-v-7fdb061d"]]), Da = /* @_
2515
2525
  ], 2));
2516
2526
  }
2517
2527
  });
2518
- const Ga = /* @__PURE__ */ K(Qa, [["__scopeId", "data-v-438c4aed"]]), Wa = { key: 0 }, Ka = {
2528
+ const Ga = /* @__PURE__ */ X(Qa, [["__scopeId", "data-v-438c4aed"]]), Wa = { key: 0 }, Ka = {
2519
2529
  key: 1,
2520
2530
  class: "card__information"
2521
2531
  }, Xa = /* @__PURE__ */ E({
@@ -2526,15 +2536,15 @@ const Ga = /* @__PURE__ */ K(Qa, [["__scopeId", "data-v-438c4aed"]]), Wa = { key
2526
2536
  layoutOptions: {},
2527
2537
  componentName: {}
2528
2538
  },
2529
- setup(u) {
2530
- const l = u.layoutOptions, n = Ie(), a = (i) => Array.isArray(i) ? i[0] : i;
2531
- return (i, c) => {
2539
+ setup(c) {
2540
+ const l = c.layoutOptions, n = Ie(), a = (i) => Array.isArray(i) ? i[0] : i;
2541
+ return (i, u) => {
2532
2542
  const _ = oe("clickable");
2533
2543
  return t(), $(Ga, {
2534
2544
  list: i.componentName === "list"
2535
2545
  }, {
2536
2546
  default: v(() => [
2537
- (t(!0), s(N, null, D(e(n).items, (d) => (t(), $(fn, {
2547
+ (t(!0), s(N, null, H(e(n).items, (d) => (t(), $(fn, {
2538
2548
  key: d,
2539
2549
  inactive: !!(e(l).active && !d[e(l).active]),
2540
2550
  horizontal: i.componentName === "list"
@@ -2552,11 +2562,11 @@ const Ga = /* @__PURE__ */ K(Qa, [["__scopeId", "data-v-438c4aed"]]), Wa = { key
2552
2562
  actions: i.individualActions
2553
2563
  }), {
2554
2564
  default: v(({
2555
- visible: b
2565
+ visible: h
2556
2566
  }) => [
2557
2567
  x(F(Z, {
2558
2568
  reactive: "",
2559
- active: b,
2569
+ active: h,
2560
2570
  icon: "dots-three-vertical"
2561
2571
  }, null, 8, ["active"]), [
2562
2572
  [_]
@@ -2566,12 +2576,12 @@ const Ga = /* @__PURE__ */ K(Qa, [["__scopeId", "data-v-438c4aed"]]), Wa = { key
2566
2576
  }, 1040)) : y("", !0)
2567
2577
  ]),
2568
2578
  default: v(() => {
2569
- var b;
2579
+ var h;
2570
2580
  return [
2571
- F(He, {
2581
+ F(De, {
2572
2582
  alt: "Item picture",
2573
2583
  expandable: "",
2574
- url: (b = a(d[e(l).picture])) == null ? void 0 : b.link,
2584
+ url: (h = a(d[e(l).picture])) == null ? void 0 : h.link,
2575
2585
  meta: a(d[e(l).picture])
2576
2586
  }, null, 8, ["url", "meta"])
2577
2587
  ];
@@ -2581,12 +2591,12 @@ const Ga = /* @__PURE__ */ K(Qa, [["__scopeId", "data-v-438c4aed"]]), Wa = { key
2581
2591
  e(l).badge && Array.isArray(d[e(l).badge]) ? {
2582
2592
  name: "badge",
2583
2593
  fn: v(() => [
2584
- (t(!0), s(N, null, D(d[e(l).badge], (b) => (t(), $($e, {
2585
- key: `${d._id}-${b}`,
2594
+ (t(!0), s(N, null, H(d[e(l).badge], (h) => (t(), $($e, {
2595
+ key: `${d._id}-${h}`,
2586
2596
  large: ""
2587
2597
  }, {
2588
2598
  default: v(() => [
2589
- Q(k(e(l).translateBadge ? e(L)(b) : b), 1)
2599
+ Q(k(e(l).translateBadge ? e(L)(h) : h), 1)
2590
2600
  ]),
2591
2601
  _: 2
2592
2602
  }, 1024))), 128))
@@ -2611,13 +2621,13 @@ const Ga = /* @__PURE__ */ K(Qa, [["__scopeId", "data-v-438c4aed"]]), Wa = { key
2611
2621
  };
2612
2622
  }
2613
2623
  });
2614
- const vt = /* @__PURE__ */ K(Xa, [["__scopeId", "data-v-ccbced12"]]), Ya = (u) => ({
2615
- tabular: Da,
2624
+ const vt = /* @__PURE__ */ X(Xa, [["__scopeId", "data-v-ccbced12"]]), Ya = (c) => ({
2625
+ tabular: Ha,
2616
2626
  grid: vt,
2617
2627
  list: vt
2618
- })[u], pe = J(!1);
2628
+ })[c], pe = J(!1);
2619
2629
  J(!1);
2620
- const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21eeb8fd"), u = u(), Qe(), u), Za = {
2630
+ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ja = (c) => (He("data-v-c189a79e"), c = c(), Qe(), c), Za = {
2621
2631
  key: 2,
2622
2632
  class: "crud__controls"
2623
2633
  }, Pa = {
@@ -2626,7 +2636,7 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2626
2636
  }, Na = { class: "crud__actions" }, xa = { class: "crud__context-badge" }, el = /* @__PURE__ */ Ja(() => /* @__PURE__ */ I("div", null, "Filtros", -1)), tl = { key: 0 }, nl = {
2627
2637
  key: 3,
2628
2638
  class: "crud__pagination"
2629
- }, bt = 30, ol = /* @__PURE__ */ E({
2639
+ }, ht = 30, ol = /* @__PURE__ */ E({
2630
2640
  __name: "aeria-crud",
2631
2641
  props: {
2632
2642
  collection: {},
@@ -2641,22 +2651,22 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2641
2651
  noQueryPersistence: { type: Boolean }
2642
2652
  },
2643
2653
  emits: ["uiEvent"],
2644
- setup(u, { emit: r }) {
2645
- const l = u, n = r, a = Ae(), i = kt({
2654
+ setup(c, { emit: r }) {
2655
+ const l = c, n = r, a = Ae(), i = kt({
2646
2656
  delay: 600
2647
- }), c = ie("meta"), _ = qe(), { reachedEnd: d, detach: b } = Ze(null, {
2657
+ }), u = ie("meta"), _ = qe(), { reachedEnd: d, detach: h } = Ze(null, {
2648
2658
  antecipate: 600
2649
2659
  }), p = !_.value.md || l.scrollPagination;
2650
2660
  p && ue(d, (V) => {
2651
- V && o.pagination.recordsTotal > o.items.length && h.value < bt && (h.value += 1, j());
2661
+ V && o.pagination.recordsTotal > o.items.length && b.value < ht && (b.value += 1, R());
2652
2662
  });
2653
2663
  const o = ie(l.collection);
2654
2664
  sa(o, {
2655
2665
  persistInQuery: !l.noQueryPersistence
2656
2666
  });
2657
- const m = Pe(), A = l.action ? e(l.action) : Ht(o, a, m);
2667
+ const m = Pe(), A = l.action ? e(l.action) : Dt(o, a, m);
2658
2668
  Le.value = A[0], yt.value = A[1];
2659
- const h = J(0), S = J(!1), j = async (V) => {
2669
+ const b = J(0), S = J(!1), R = async (V) => {
2660
2670
  o.activeFilters = Object.assign({}, (V == null ? void 0 : V.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
2661
2671
  const T = {
2662
2672
  filters: o.activeFilters,
@@ -2664,19 +2674,19 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2664
2674
  offset: o.pagination.offset,
2665
2675
  project: o.preferredTableProperties.length > 0 ? o.preferredTableProperties : o.description.table || Object.keys(o.properties)
2666
2676
  };
2667
- h.value > 0 && (T.limit = 15, T.offset = h.value * T.limit), o.description.tableMeta && (T.project = T.project.concat(o.description.tableMeta)), V && Object.assign(T, V), o.loading.getAll = !0;
2677
+ b.value > 0 && (T.limit = 15, T.offset = b.value * T.limit), o.description.tableMeta && (T.project = T.project.concat(o.description.tableMeta)), V && Object.assign(T, V), o.loading.getAll = !0;
2668
2678
  const { error: ae, result: le } = await o.$actions.retrieveItems(T);
2669
2679
  if (ae)
2670
2680
  return;
2671
2681
  const { data: ne, pagination: se } = le;
2672
- o.pagination.recordsCount = se.recordsCount, o.pagination.recordsTotal = se.recordsTotal, h.value === 0 && o.items.splice(0), o.items.push(...ne), o.loading.getAll = !1, S.value = !0;
2682
+ o.pagination.recordsCount = se.recordsCount, o.pagination.recordsTotal = se.recordsTotal, b.value === 0 && o.items.splice(0), o.items.push(...ne), o.loading.getAll = !1, S.value = !0;
2673
2683
  }, P = async (V) => {
2674
2684
  a.push(Me(a.currentRoute.value, {
2675
2685
  query: {
2676
2686
  offset: V.offset,
2677
2687
  limit: V.limit
2678
2688
  }
2679
- })), o.pagination.offset = V.offset, o.pagination.limit = V.limit, j();
2689
+ })), o.pagination.offset = V.offset, o.pagination.limit = V.limit, R();
2680
2690
  }, B = _e("noResultsComponent", null);
2681
2691
  ue(() => [
2682
2692
  a.currentRoute.value.path,
@@ -2685,15 +2695,15 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2685
2695
  if (T && T[0] === V[0] && T[1] === V[1])
2686
2696
  return;
2687
2697
  const ae = a.currentRoute.value;
2688
- if (c.view.title = l.collection, c.view.collection = l.collection, !l.noFetch && !ae.query._popstate) {
2689
- const le = Dt(o, ae);
2690
- Object.keys(le).length > 0 && Object.assign(o.filters, le), await j();
2698
+ if (u.view.title = l.collection, u.view.collection = l.collection, !l.noFetch && (!ae.query._popstate || o.itemsCount === 0)) {
2699
+ const le = Ht(o, ae);
2700
+ Object.keys(le).length > 0 && Object.assign(o.filters, le), await R();
2691
2701
  }
2692
2702
  }, {
2693
2703
  immediate: !0,
2694
2704
  flush: "post"
2695
2705
  });
2696
- const [R] = i((V) => (a.push(Me(a.currentRoute.value, {
2706
+ const [j] = i((V) => (a.push(Me(a.currentRoute.value, {
2697
2707
  query: {
2698
2708
  search: V || void 0
2699
2709
  }
@@ -2702,17 +2712,17 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2702
2712
  $search: `"${V}"`,
2703
2713
  $caseSensitive: !1
2704
2714
  }
2705
- }), j({
2715
+ }), R({
2706
2716
  offset: 0
2707
- })) : (o.filters = Ce(o.freshFilters), h.value = 0, j())));
2717
+ })) : (o.filters = Ce(o.freshFilters), b.value = 0, R())));
2708
2718
  ue(() => o.textQuery, (V) => {
2709
- R(V);
2719
+ j(V);
2710
2720
  });
2711
- const Y = (V) => {
2721
+ const K = (V) => {
2712
2722
  V.currentLayout = V.currentLayout === "tabular" ? V.description.layout.name : "tabular";
2713
2723
  };
2714
2724
  wt(() => {
2715
- o.$actions.clearFilters(), o.textQuery = "", b();
2725
+ o.$actions.clearFilters(), o.textQuery = "", h();
2716
2726
  }), ue(() => yt.value, async (V) => {
2717
2727
  var le;
2718
2728
  const T = Ce(V);
@@ -2739,17 +2749,17 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2739
2749
  const f = o.properties[z];
2740
2750
  if (f.readOnly)
2741
2751
  return se;
2742
- const M = (H) => {
2752
+ const M = (D) => {
2743
2753
  const g = me(f);
2744
2754
  if (!g)
2745
- return H;
2755
+ return D;
2746
2756
  if (g.$ref === "file")
2747
2757
  return {};
2748
- if (g.inline && H) {
2749
- const { _id: O, ...q } = H;
2758
+ if (g.inline && D) {
2759
+ const { _id: O, ...q } = D;
2750
2760
  return q;
2751
2761
  }
2752
- return H;
2762
+ return D;
2753
2763
  };
2754
2764
  return U = Array.isArray(U) ? U.map(M) : M(U), {
2755
2765
  ...se,
@@ -2762,14 +2772,14 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2762
2772
  }, {
2763
2773
  deep: !0
2764
2774
  }), ue(() => pe, ({ value: V }) => {
2765
- V === !1 && (c.view.collection = l.collection, o.$actions.clearItem());
2775
+ V === !1 && (u.view.collection = l.collection, o.$actions.clearItem());
2766
2776
  });
2767
2777
  const w = W(() => o.individualActions.map((V) => ({
2768
2778
  click: Le.value(V),
2769
2779
  ...V
2770
2780
  }))), te = W(() => o.actions.filter((V) => !V.button));
2771
2781
  return ye(Ue, W(() => l.collection)), ye("individualActions", w), (V, T) => {
2772
- var ne, se, z, U, f, M, H;
2782
+ var ne, se, z, U, f, M, D;
2773
2783
  const ae = oe("clickable"), le = oe("loading");
2774
2784
  return t(), s(N, null, [
2775
2785
  e(Ve) ? (t(), $(aa, {
@@ -2796,11 +2806,11 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2796
2806
  return e(L)("action.edit", { capitalize: !0 });
2797
2807
  }
2798
2808
  })()), 1),
2799
- I("span", null, " " + k(e(L)(e(c).view.collection)), 1)
2809
+ I("span", null, " " + k(e(L)(e(u).view.collection)), 1)
2800
2810
  ]),
2801
2811
  _: 2
2802
2812
  }, [
2803
- D(Object.keys(V.$slots).filter((g) => g.startsWith("field-")), (g) => ({
2813
+ H(Object.keys(V.$slots).filter((g) => g.startsWith("field-")), (g) => ({
2804
2814
  name: g,
2805
2815
  fn: v((O) => [
2806
2816
  C(V.$slots, g, de(ge(O)), void 0, !0)
@@ -2870,7 +2880,7 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2870
2880
  fn: v(() => [
2871
2881
  x((t(), $(Z, {
2872
2882
  icon: "table",
2873
- onClick: T[5] || (T[5] = (g) => Y(e(o)))
2883
+ onClick: T[5] || (T[5] = (g) => K(e(o)))
2874
2884
  }, {
2875
2885
  default: v(() => [
2876
2886
  Q(k(e(L)("change_layout", { capitalize: !0 })), 1)
@@ -2882,13 +2892,13 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2882
2892
  ]),
2883
2893
  key: "1"
2884
2894
  } : void 0,
2885
- D(te.value, (g, O) => ({
2895
+ H(te.value, (g, O) => ({
2886
2896
  name: `action-${O}`,
2887
2897
  fn: v(() => [
2888
2898
  g ? (t(), $(Z, {
2889
2899
  key: 0,
2890
2900
  icon: g.icon || "gear",
2891
- disabled: e(o).selected.length === 0 && g.selection,
2901
+ disabled: e(o).selected.length === 0 && "selection" in g && g.selection,
2892
2902
  onClick: (q) => e(Le)(g)({ _id: e(o).selected.map((fe) => fe._id) })
2893
2903
  }, {
2894
2904
  default: v(() => [
@@ -2915,10 +2925,10 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2915
2925
  ]),
2916
2926
  _: 1
2917
2927
  })) : y("", !0),
2918
- (t(!0), s(N, null, D(e(o).actions.filter((g) => g.button), (g, O) => (t(), $(re, {
2928
+ (t(!0), s(N, null, H(e(o).actions.filter((g) => g.button), (g, O) => (t(), $(re, {
2919
2929
  key: `action-${O}`,
2920
2930
  icon: g.icon,
2921
- disabled: e(o).selected.length === 0 && g.selection,
2931
+ disabled: e(o).selected.length === 0 && "selection" in g && g.selection,
2922
2932
  onClick: (q) => e(Le)(g)({ _id: e(o).selected.map((fe) => fe._id) })
2923
2933
  }, {
2924
2934
  default: v(() => [
@@ -2931,15 +2941,15 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2931
2941
  ])) : y("", !0),
2932
2942
  x((t(), s("div", null, [
2933
2943
  e(o).itemsCount === 0 && !e(o).loading.getAll && S.value && (e(B) || V.$slots.empty) ? (t(), s("div", tl, [
2934
- e(B) ? (t(), $(be(e(B)), de(G({ key: 0 }, {
2944
+ e(B) ? (t(), $(he(e(B)), de(G({ key: 0 }, {
2935
2945
  collection: e(o).$id
2936
2946
  })), {
2937
2947
  default: v(() => [
2938
- e(o).filtersCount === 0 && e(o).description.actions && "ui:spawnAdd" in e(o).description.actions ? (t(), $(re, {
2948
+ e(o).filtersCount === 0 && e(o).description.actions && "spawnAdd" in e(o).description.actions ? (t(), $(re, {
2939
2949
  key: 0,
2940
2950
  icon: "plus",
2941
2951
  onClick: T[7] || (T[7] = (g) => e(Le)({
2942
- action: "ui:spawnAdd"
2952
+ action: "spawnAdd"
2943
2953
  })())
2944
2954
  }, {
2945
2955
  default: v(() => [
@@ -2954,14 +2964,14 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2954
2964
  })), void 0, !0)
2955
2965
  ])) : V.$slots.component ? C(V.$slots, "component", de(G({ key: 1 }, {
2956
2966
  store: e(o)
2957
- })), void 0, !0) : (t(), $(be(e(Ya)(((f = V.layout) == null ? void 0 : f.name) || e(o).$currentLayout)), G({ key: 2 }, {
2967
+ })), void 0, !0) : (t(), $(he(e(Ya)(((f = V.layout) == null ? void 0 : f.name) || e(o).$currentLayout)), G({ key: 2 }, {
2958
2968
  individualActions: w.value,
2959
2969
  layoutOptions: ((M = V.layout) == null ? void 0 : M.options) || e(o).layout.options,
2960
2970
  componentProps: V.componentProps
2961
2971
  }, {
2962
- "component-name": ((H = V.layout) == null ? void 0 : H.name) || e(o).$currentLayout
2972
+ "component-name": ((D = V.layout) == null ? void 0 : D.name) || e(o).$currentLayout
2963
2973
  }), ce({ _: 2 }, [
2964
- D(Object.keys(V.$slots).filter((g) => g.startsWith("row-")), (g) => ({
2974
+ H(Object.keys(V.$slots).filter((g) => g.startsWith("row-")), (g) => ({
2965
2975
  name: g,
2966
2976
  fn: v((O) => [
2967
2977
  C(V.$slots, g, de(ge(O)), void 0, !0)
@@ -2976,7 +2986,7 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2976
2986
  } : void 0
2977
2987
  ]), 1040, ["component-name"]))
2978
2988
  ])), [
2979
- [le, (!e(p) || h.value === bt) && e(o).loading.getAll]
2989
+ [le, (!e(p) || b.value === ht) && e(o).loading.getAll]
2980
2990
  ]),
2981
2991
  !e(o).loading.getAll && e(o).itemsCount > 0 ? (t(), s("div", nl, [
2982
2992
  F(Fn, {
@@ -2988,15 +2998,15 @@ const Ve = J(!1), Le = J((...u) => null), yt = J(), Ja = (u) => (De("data-v-21ee
2988
2998
  };
2989
2999
  }
2990
3000
  });
2991
- const Ul = /* @__PURE__ */ K(ol, [["__scopeId", "data-v-21eeb8fd"]]), al = { class: "prompt" }, ll = /* @__PURE__ */ E({
3001
+ const Ul = /* @__PURE__ */ X(ol, [["__scopeId", "data-v-c189a79e"]]), al = { class: "prompt" }, ll = /* @__PURE__ */ E({
2992
3002
  __name: "aeria-prompt",
2993
3003
  props: {
2994
3004
  title: {},
2995
3005
  actions: {}
2996
3006
  },
2997
- setup(u) {
2998
- const r = ie("meta"), l = (n) => {
2999
- r.$actions.fulfillPrompt(n);
3007
+ setup(c) {
3008
+ const r = ie("meta"), l = (n, a) => {
3009
+ r.$actions.fulfillPrompt(n, a);
3000
3010
  };
3001
3011
  return (n, a) => (t(), $(Be, {
3002
3012
  float: "",
@@ -3007,18 +3017,18 @@ const Ul = /* @__PURE__ */ K(ol, [["__scopeId", "data-v-21eeb8fd"]]), al = { cla
3007
3017
  footer: v(() => [
3008
3018
  I("div", {
3009
3019
  class: "prompt__actions",
3010
- style: he(`grid-template-columns: repeat(${n.actions.length}, 1fr)`)
3020
+ style: be(`grid-template-columns: repeat(${Object.keys(n.actions).length}, 1fr)`)
3011
3021
  }, [
3012
- (t(!0), s(N, null, D(n.actions, (i, c) => (t(), $(ve, {
3013
- key: `action-${c}`,
3014
- class: X(`
3022
+ (t(!0), s(N, null, H(Object.entries(n.actions), ([i, u], _) => (t(), $(ve, {
3023
+ key: `action-${_}`,
3024
+ class: Y(`
3015
3025
  prompt__action
3016
- prompt__action--${i.variant || "primary"}
3026
+ prompt__action--${u.variant || "primary"}
3017
3027
  `),
3018
- onClick: (_) => i.click ? i.click(i) : l(i)
3028
+ onClick: (d) => u.click ? u.click(i, u) : l(i, u)
3019
3029
  }, {
3020
3030
  default: v(() => [
3021
- Q(k(i.title || i.name), 1)
3031
+ Q(k(u.title), 1)
3022
3032
  ]),
3023
3033
  _: 2
3024
3034
  }, 1032, ["class", "onClick"]))), 128))
@@ -3041,7 +3051,7 @@ const Ul = /* @__PURE__ */ K(ol, [["__scopeId", "data-v-21eeb8fd"]]), al = { cla
3041
3051
  ]), 1024));
3042
3052
  }
3043
3053
  });
3044
- const sl = /* @__PURE__ */ K(ll, [["__scopeId", "data-v-5443f297"]]), il = { class: "toast__content" }, rl = { class: "toast__time" }, ul = /* @__PURE__ */ E({
3054
+ const sl = /* @__PURE__ */ X(ll, [["__scopeId", "data-v-32d9d465"]]), il = { class: "toast__content" }, rl = { class: "toast__time" }, ul = /* @__PURE__ */ E({
3045
3055
  __name: "aeria-toast",
3046
3056
  props: {
3047
3057
  idx: {},
@@ -3049,12 +3059,12 @@ const sl = /* @__PURE__ */ K(ll, [["__scopeId", "data-v-5443f297"]]), il = { cla
3049
3059
  date: {},
3050
3060
  icon: {}
3051
3061
  },
3052
- setup(u) {
3062
+ setup(c) {
3053
3063
  const r = ie("meta");
3054
3064
  return (l, n) => {
3055
3065
  const a = oe("clickable");
3056
3066
  return x((t(), s("div", {
3057
- class: X({
3067
+ class: Y({
3058
3068
  toast: !0,
3059
3069
  "toast--animate": e(r).toasts[0].itr === l.itr
3060
3070
  }),
@@ -3075,15 +3085,15 @@ const sl = /* @__PURE__ */ K(ll, [["__scopeId", "data-v-5443f297"]]), il = { cla
3075
3085
  };
3076
3086
  }
3077
3087
  });
3078
- const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["innerHTML"], pl = { class: "main__toasts" }, _l = ["innerHTML"], ml = /* @__PURE__ */ E({
3088
+ const cl = /* @__PURE__ */ X(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["innerHTML"], pl = { class: "main__toasts" }, _l = ["innerHTML"], ml = /* @__PURE__ */ E({
3079
3089
  __name: "aeria-main",
3080
- setup(u) {
3090
+ setup(c) {
3081
3091
  const r = ie("meta"), l = W(() => r.themeOverride || r.theme);
3082
3092
  return (n, a) => {
3083
3093
  const i = St("router-view");
3084
3094
  return t(), s("main", {
3085
3095
  id: "main",
3086
- class: X(`
3096
+ class: Y(`
3087
3097
  main
3088
3098
  main--${l.value}
3089
3099
  ${l.value === "dark" && "tw-dark"}
@@ -3092,9 +3102,9 @@ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["inn
3092
3102
  (t(), $(Tt, null, {
3093
3103
  default: v(() => [
3094
3104
  F(i, null, {
3095
- default: v(({ Component: c }) => [
3096
- (t(), $(be(c), null, ce({ _: 2 }, [
3097
- D(Object.keys(n.$slots), (_) => ({
3105
+ default: v(({ Component: u }) => [
3106
+ (t(), $(he(u), null, ce({ _: 2 }, [
3107
+ H(Object.keys(n.$slots), (_) => ({
3098
3108
  name: _,
3099
3109
  fn: v(() => [
3100
3110
  C(n.$slots, _, {}, void 0, !0)
@@ -3110,12 +3120,12 @@ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["inn
3110
3120
  C(n.$slots, "default", {}, void 0, !0),
3111
3121
  F(Be, G({
3112
3122
  modelValue: e(r).modal.visible,
3113
- "onUpdate:modelValue": a[0] || (a[0] = (c) => e(r).modal.visible = c),
3123
+ "onUpdate:modelValue": a[0] || (a[0] = (u) => e(r).modal.visible = u),
3114
3124
  float: "",
3115
3125
  "close-hint": ""
3116
3126
  }, e(r).modal, {
3117
3127
  "overlay-layer": 70,
3118
- onOverlayClick: a[1] || (a[1] = (c) => e(r).modal.visible = !1)
3128
+ onOverlayClick: a[1] || (a[1] = (u) => e(r).modal.visible = !1)
3119
3129
  }), {
3120
3130
  default: v(() => [
3121
3131
  e(r).modal.body ? (t(), s("div", {
@@ -3123,7 +3133,7 @@ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["inn
3123
3133
  style: { "white-space": "pre-wrap" },
3124
3134
  innerHTML: e(r).modal.body
3125
3135
  }, null, 8, dl)) : y("", !0),
3126
- e(r).modal.component ? (t(), $(be(e(r).modal.component), { key: 1 })) : y("", !0)
3136
+ e(r).modal.component ? (t(), $(he(e(r).modal.component), { key: 1 })) : y("", !0)
3127
3137
  ]),
3128
3138
  _: 1
3129
3139
  }, 16, ["modelValue"]),
@@ -3134,12 +3144,12 @@ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["inn
3134
3144
  _: 1
3135
3145
  }, 16)) : y("", !0),
3136
3146
  I("div", pl, [
3137
- (t(!0), s(N, null, D(e(r).toasts, (c) => (t(), $(cl, G({ ref_for: !0 }, c, {
3138
- key: `toast-${c.itr}`
3147
+ (t(!0), s(N, null, H(e(r).toasts, (u) => (t(), $(cl, G({ ref_for: !0 }, u, {
3148
+ key: `toast-${u.itr}`
3139
3149
  }), {
3140
3150
  default: v(() => [
3141
3151
  I("div", {
3142
- innerHTML: e(L)(c.text)
3152
+ innerHTML: e(L)(u.text)
3143
3153
  }, null, 8, _l)
3144
3154
  ]),
3145
3155
  _: 2
@@ -3149,19 +3159,19 @@ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["inn
3149
3159
  };
3150
3160
  }
3151
3161
  });
3152
- const El = /* @__PURE__ */ K(ml, [["__scopeId", "data-v-1166be3d"]]);
3162
+ const El = /* @__PURE__ */ X(ml, [["__scopeId", "data-v-1166be3d"]]);
3153
3163
  const fl = {}, vl = { class: "menu" };
3154
- function yl(u, r) {
3164
+ function yl(c, r) {
3155
3165
  return t(), s("menu", vl, [
3156
- (t(!0), s(N, null, D(Object.keys(u.$slots), (l) => (t(), s("div", {
3166
+ (t(!0), s(N, null, H(Object.keys(c.$slots), (l) => (t(), s("div", {
3157
3167
  key: l,
3158
3168
  class: "menu__entry"
3159
3169
  }, [
3160
- C(u.$slots, l, {}, void 0, !0)
3170
+ C(c.$slots, l, {}, void 0, !0)
3161
3171
  ]))), 128))
3162
3172
  ]);
3163
3173
  }
3164
- const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb"]]), bl = { class: "tabs" }, hl = {
3174
+ const Dl = /* @__PURE__ */ X(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb"]]), hl = { class: "tabs" }, bl = {
3165
3175
  key: 0,
3166
3176
  class: "tabs__horizontal"
3167
3177
  }, $l = {
@@ -3177,8 +3187,8 @@ const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb
3177
3187
  param: {},
3178
3188
  dropdown: { type: Boolean }
3179
3189
  },
3180
- setup(u) {
3181
- const r = u, l = jt(), n = Ae(), a = qe(), i = W(() => {
3190
+ setup(c) {
3191
+ const r = c, l = jt(), n = Ae(), a = qe(), i = W(() => {
3182
3192
  if (r.query) {
3183
3193
  const _ = n.currentRoute.value.query[r.query];
3184
3194
  if (_)
@@ -3189,7 +3199,7 @@ const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb
3189
3199
  return _;
3190
3200
  }
3191
3201
  return Object.keys(l)[0];
3192
- }), c = (_) => {
3202
+ }), u = (_) => {
3193
3203
  r.query && n.push(Me(n.currentRoute.value, {
3194
3204
  query: {
3195
3205
  [r.query]: _
@@ -3201,19 +3211,19 @@ const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb
3201
3211
  }));
3202
3212
  };
3203
3213
  return (_, d) => {
3204
- const b = oe("clickable");
3205
- return t(), s("div", bl, [
3206
- e(a).md && !_.dropdown ? (t(), s("div", hl, [
3214
+ const h = oe("clickable");
3215
+ return t(), s("div", hl, [
3216
+ e(a).md && !_.dropdown ? (t(), s("div", bl, [
3207
3217
  _.$slots.default ? (t(), s("div", $l, [
3208
3218
  C(_.$slots, "default", {}, void 0, !0)
3209
3219
  ])) : y("", !0),
3210
- (t(!0), s(N, null, D(Object.keys(_.$slots).filter((p) => p !== "default"), (p, o) => (t(), s("div", {
3220
+ (t(!0), s(N, null, H(Object.keys(_.$slots).filter((p) => p !== "default"), (p, o) => (t(), s("div", {
3211
3221
  key: p,
3212
- class: X({
3222
+ class: Y({
3213
3223
  tabs__tab: !0,
3214
3224
  "tabs__tab--current": p === i.value || !i.value && o === 0
3215
3225
  }),
3216
- onClick: (m) => c(p)
3226
+ onClick: (m) => u(p)
3217
3227
  }, [
3218
3228
  C(_.$slots, p, {}, void 0, !0)
3219
3229
  ], 10, gl))), 128))
@@ -3232,16 +3242,16 @@ const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb
3232
3242
  ]),
3233
3243
  _: 2
3234
3244
  }, 1032, ["active"])), [
3235
- [b]
3245
+ [h]
3236
3246
  ])
3237
3247
  ]),
3238
3248
  _: 2
3239
3249
  }, [
3240
- D(Object.keys(_.$slots).filter((p) => p !== "default"), (p) => ({
3250
+ H(Object.keys(_.$slots).filter((p) => p !== "default"), (p) => ({
3241
3251
  name: p,
3242
3252
  fn: v(() => [
3243
3253
  I("div", {
3244
- onClick: (o) => c(p)
3254
+ onClick: (o) => u(p)
3245
3255
  }, [
3246
3256
  C(_.$slots, p, {}, void 0, !0)
3247
3257
  ], 8, Vl)
@@ -3253,14 +3263,14 @@ const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb
3253
3263
  };
3254
3264
  }
3255
3265
  });
3256
- const Ol = /* @__PURE__ */ K(Cl, [["__scopeId", "data-v-a20914ab"]]), Il = E({
3266
+ const Ol = /* @__PURE__ */ X(Cl, [["__scopeId", "data-v-a20914ab"]]), Il = E({
3257
3267
  props: {
3258
3268
  initialValue: String,
3259
3269
  promise: Promise
3260
3270
  },
3261
- setup(u) {
3262
- const r = J(u.initialValue);
3263
- return u.promise instanceof Promise && u.promise.then((l) => {
3271
+ setup(c) {
3272
+ const r = J(c.initialValue);
3273
+ return c.promise instanceof Promise && c.promise.then((l) => {
3264
3274
  r.value = l;
3265
3275
  }), () => Rt("div", r.value);
3266
3276
  }
@@ -3269,20 +3279,20 @@ const Ol = /* @__PURE__ */ K(Cl, [["__scopeId", "data-v-a20914ab"]]), Il = E({
3269
3279
  props: {
3270
3280
  collection: {}
3271
3281
  },
3272
- setup(u) {
3273
- const r = u, n = Ae().currentRoute, a = Pe(), i = W(() => r.collection ? Ke(r.collection, a) : typeof n.value.meta.collection == "string" ? Ke(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? Ke(n.value.params.collection, a) : null), c = async (_, d) => {
3274
- const { error: b, result: p } = await d.$functions[_.badgeFunction]({
3282
+ setup(c) {
3283
+ const r = c, n = Ae().currentRoute, a = Pe(), i = W(() => r.collection ? Ke(r.collection, a) : typeof n.value.meta.collection == "string" ? Ke(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? Ke(n.value.params.collection, a) : null), u = async (_, d) => {
3284
+ const { error: h, result: p } = await d.$functions[_.badgeFunction]({
3275
3285
  filters: _.filters
3276
3286
  });
3277
- return b ? 0 : p;
3287
+ return h ? 0 : p;
3278
3288
  };
3279
3289
  return (_, d) => i.value && i.value.description.filtersPresets ? (t(), $(Ol, {
3280
3290
  key: 0,
3281
3291
  dropdown: "",
3282
3292
  query: "section"
3283
3293
  }, ce({ _: 2 }, [
3284
- D(Object.entries(i.value.description.filtersPresets), ([b, p]) => ({
3285
- name: b,
3294
+ H(Object.entries(i.value.description.filtersPresets), ([h, p]) => ({
3295
+ name: h,
3286
3296
  fn: v(() => [
3287
3297
  I("div", {
3288
3298
  class: "topbar__preset",
@@ -3293,15 +3303,15 @@ const Ol = /* @__PURE__ */ K(Cl, [["__scopeId", "data-v-a20914ab"]]), Il = E({
3293
3303
  icon: p.icon
3294
3304
  }, {
3295
3305
  default: v(() => [
3296
- Q(k(p.label || e(L)(b, { plural: !0 })), 1)
3306
+ Q(k(p.label || e(L)(h, { plural: !0 })), 1)
3297
3307
  ]),
3298
3308
  _: 2
3299
- }, 1032, ["icon"])) : (t(), s("div", Bl, k(p.label || e(L)(b, { plural: !0 })), 1)),
3309
+ }, 1032, ["icon"])) : (t(), s("div", Bl, k(p.label || e(L)(h, { plural: !0 })), 1)),
3300
3310
  p.badgeFunction ? (t(), $($e, { key: 2 }, {
3301
3311
  default: v(() => [
3302
3312
  F(e(Il), {
3303
3313
  "initial-value": "0",
3304
- promise: c(p, i.value)
3314
+ promise: u(p, i.value)
3305
3315
  }, null, 8, ["promise"])
3306
3316
  ]),
3307
3317
  _: 2
@@ -3312,17 +3322,17 @@ const Ol = /* @__PURE__ */ K(Cl, [["__scopeId", "data-v-a20914ab"]]), Il = E({
3312
3322
  ]), 1024)) : y("", !0);
3313
3323
  }
3314
3324
  });
3315
- const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3325
+ const Sl = /* @__PURE__ */ X(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3316
3326
  __proto__: null,
3317
3327
  default: Sl
3318
- }, Symbol.toStringTag, { value: "Module" })), Dl = /* @__PURE__ */ E({
3328
+ }, Symbol.toStringTag, { value: "Module" })), Hl = /* @__PURE__ */ E({
3319
3329
  __name: "aeria-password-form",
3320
3330
  props: {
3321
3331
  modelValue: {}
3322
3332
  },
3323
3333
  emits: ["update:modelValue"],
3324
- setup(u) {
3325
- const r = u;
3334
+ setup(c) {
3335
+ const r = c;
3326
3336
  ye(Ue, null);
3327
3337
  const l = Qt(), n = W(() => l(
3328
3338
  r.modelValue.password,
@@ -3342,7 +3352,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3342
3352
  }
3343
3353
  },
3344
3354
  "model-value": a.modelValue,
3345
- "onUpdate:modelValue": i[0] || (i[0] = (c) => a.$emit("update:modelValue", c))
3355
+ "onUpdate:modelValue": i[0] || (i[0] = (u) => a.$emit("update:modelValue", u))
3346
3356
  }, {
3347
3357
  after: v(() => [
3348
3358
  I("div", null, k(n.value || "Senhas conferem"), 1),
@@ -3351,10 +3361,10 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3351
3361
  _: 3
3352
3362
  }, 8, ["model-value"]));
3353
3363
  }
3354
- }), Ql = (u, r = []) => ({
3364
+ }), Ql = (c, r = []) => ({
3355
3365
  path: "/user",
3356
3366
  name: "/builtin:user",
3357
- component: u,
3367
+ component: c,
3358
3368
  children: r.concat([
3359
3369
  {
3360
3370
  path: "invite/:id",
@@ -3369,7 +3379,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3369
3379
  {
3370
3380
  path: "signin",
3371
3381
  name: "/user/signin",
3372
- component: () => import("./signin-9b90594c.js"),
3382
+ component: () => import("./signin-cce9e7fc.js"),
3373
3383
  meta: {
3374
3384
  title: "Autenticação"
3375
3385
  }
@@ -3377,7 +3387,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3377
3387
  {
3378
3388
  path: "signup",
3379
3389
  name: "/user/signup",
3380
- component: () => import("./signup-cb048994.js"),
3390
+ component: () => import("./signup-f754f20b.js"),
3381
3391
  meta: {
3382
3392
  title: "Registro"
3383
3393
  }
@@ -3385,16 +3395,16 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3385
3395
  {
3386
3396
  path: "activation",
3387
3397
  name: "/user/activation",
3388
- component: () => import("./activation-86bdc81b.js"),
3398
+ component: () => import("./activation-806ec8fe.js"),
3389
3399
  meta: {
3390
3400
  title: "Ativação"
3391
3401
  }
3392
3402
  }
3393
3403
  ])
3394
- }), Gl = (u, r = []) => ({
3404
+ }), Gl = (c, r = []) => ({
3395
3405
  path: "/dashboard",
3396
3406
  name: "/builtin:dashboard",
3397
- component: u,
3407
+ component: c,
3398
3408
  redirect: {
3399
3409
  name: "/dashboard/"
3400
3410
  },
@@ -3407,7 +3417,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3407
3417
  name: "/dashboard/:collection",
3408
3418
  props: !0,
3409
3419
  components: {
3410
- default: () => import("./index-9789dfa6.js"),
3420
+ default: () => import("./index-bbccf7b1.js"),
3411
3421
  topbar: () => Promise.resolve().then(() => Tl)
3412
3422
  },
3413
3423
  meta: {
@@ -3419,7 +3429,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3419
3429
  name: "/dashboard/:collection/:id",
3420
3430
  props: !0,
3421
3431
  components: {
3422
- default: () => import("./_id_-97e12766.js")
3432
+ default: () => import("./_id_-ade6b276.js")
3423
3433
  },
3424
3434
  meta: {
3425
3435
  title: "%viewTitle%"
@@ -3437,7 +3447,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3437
3447
  children: [
3438
3448
  {
3439
3449
  path: "profile",
3440
- component: () => import("./index-225a2a25.js"),
3450
+ component: () => import("./index-1875150b.js"),
3441
3451
  meta: {
3442
3452
  title: "Meu perfil",
3443
3453
  icon: "user-square"
@@ -3446,7 +3456,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3446
3456
  {
3447
3457
  path: "changepass",
3448
3458
  name: "/dashboard/user/changepass",
3449
- component: () => import("./index-136d431a.js"),
3459
+ component: () => import("./index-61f7b4b9.js"),
3450
3460
  meta: {
3451
3461
  title: "Mudar senha",
3452
3462
  icon: "lock"
@@ -3464,16 +3474,16 @@ export {
3464
3474
  Sl as E,
3465
3475
  Ql as F,
3466
3476
  Gl as G,
3467
- Dl as _,
3477
+ Hl as _,
3468
3478
  re as a,
3469
3479
  Z as b,
3470
3480
  Wn as c,
3471
3481
  Ul as d,
3472
3482
  la as e,
3473
- He as f,
3474
- Hl as g,
3483
+ De as f,
3484
+ Dl as g,
3475
3485
  Be as h,
3476
- K as i,
3486
+ X as i,
3477
3487
  Fl as j,
3478
3488
  $e as k,
3479
3489
  ve as l,
@@ -3483,7 +3493,7 @@ export {
3483
3493
  kn as p,
3484
3494
  El as q,
3485
3495
  Fn as r,
3486
- Ha as s,
3496
+ Da as s,
3487
3497
  Ol as t,
3488
3498
  go as u,
3489
3499
  ke as v,