@aeria-ui/ui 0.0.78 → 0.0.80

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