@aeria-ui/ui 0.0.98 → 0.0.99

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.
Files changed (58) hide show
  1. package/dist/{_id_-28e2ff98.js → _id_-4e41f0b3.js} +6 -5
  2. package/dist/activation-ff45bf88.js +86 -0
  3. package/dist/components/aeria-accordion/aeria-accordion.vue.d.ts +1 -1
  4. package/dist/components/aeria-badge/aeria-badge.vue.d.ts +1 -1
  5. package/dist/components/aeria-bare-button/aeria-bare-button.vue.d.ts +3 -3
  6. package/dist/components/aeria-button/aeria-button.vue.d.ts +1 -1
  7. package/dist/components/aeria-card/aeria-card.vue.d.ts +1 -1
  8. package/dist/components/aeria-context-menu/aeria-context-menu.vue.d.ts +3 -3
  9. package/dist/components/aeria-crud/_internals/helpers.d.ts +1 -1
  10. package/dist/components/aeria-crud/_internals/layouts/aeria-grid/aeria-grid.vue.d.ts +1 -1
  11. package/dist/components/aeria-crud/_internals/layouts/aeria-tabular/aeria-tabular.vue.d.ts +1 -1
  12. package/dist/components/aeria-crud/_internals/layouts/index.d.ts +8 -8
  13. package/dist/components/aeria-crud/_internals/store.d.ts +8 -4
  14. package/dist/components/aeria-crud/aeria-crud.vue.d.ts +3 -3
  15. package/dist/components/aeria-filter-panel/aeria-filter-panel.vue.d.ts +2 -2
  16. package/dist/components/aeria-grid/aeria-grid.vue.d.ts +1 -1
  17. package/dist/components/aeria-icon/aeria-icon.vue.d.ts +1 -1
  18. package/dist/components/aeria-info/aeria-info.vue.d.ts +4 -4
  19. package/dist/components/aeria-insert-panel/aeria-insert-panel.vue.d.ts +6 -6
  20. package/dist/components/aeria-main/aeria-main.vue.d.ts +1 -1
  21. package/dist/components/aeria-menu/aeria-menu.vue.d.ts +1 -1
  22. package/dist/components/aeria-pagination/aeria-pagination.vue.d.ts +3 -3
  23. package/dist/components/aeria-panel/aeria-panel.vue.d.ts +6 -6
  24. package/dist/components/aeria-picture/aeria-picture.vue.d.ts +1 -1
  25. package/dist/components/aeria-table/aeria-table.vue.d.ts +3 -3
  26. package/dist/components/aeria-tabs/aeria-tabs.vue.d.ts +1 -1
  27. package/dist/components/dashboard/aeria-crud-topbar/aeria-crud-topbar.vue.d.ts +1 -1
  28. package/dist/components/dashboard/aeria-password-form/aeria-password-form.vue.d.ts +3 -3
  29. package/dist/components/dashboard/aeria-prompt/aeria-prompt.vue.d.ts +1 -1
  30. package/dist/components/dashboard/aeria-toast/aeria-toast.vue.d.ts +1 -1
  31. package/dist/components/form/aeria-checkbox/aeria-checkbox.vue.d.ts +5 -5
  32. package/dist/components/form/aeria-file/aeria-file.vue.d.ts +3 -3
  33. package/dist/components/form/aeria-form/aeria-form.vue.d.ts +6 -6
  34. package/dist/components/form/aeria-input/aeria-input.vue.d.ts +3 -3
  35. package/dist/components/form/aeria-options/aeria-options.vue.d.ts +10 -14
  36. package/dist/components/form/aeria-search/_internals/components/aeria-search-container/aeria-search-container.vue.d.ts +3 -3
  37. package/dist/components/form/aeria-search/_internals/components/aeria-search-item/aeria-search-item.vue.d.ts +3 -3
  38. package/dist/components/form/aeria-search/aeria-search.vue.d.ts +6 -6
  39. package/dist/components/form/aeria-select/aeria-select.vue.d.ts +4 -4
  40. package/dist/components/form/aeria-switch/aeria-switch.vue.d.ts +5 -5
  41. package/dist/components/utils/aeria-async.d.ts +4 -4
  42. package/dist/{index-7e4faf19.js → index-0ef9607e.js} +4 -3
  43. package/dist/{index-3e560edd.js → index-47e06fd8.js} +7 -6
  44. package/dist/{index-bdc0133c.js → index-5bc37b94.js} +8 -7
  45. package/dist/{index-62fbc6ae.js → index-7d5b03a4.js} +820 -819
  46. package/dist/{signin-131cef9c.js → signin-5b0ad694.js} +4 -3
  47. package/dist/{signup-037f2f37.js → signup-841995d1.js} +4 -3
  48. package/dist/style.css +1 -1
  49. package/dist/ui.js +35 -34
  50. package/dist/views/dashboard/[collection]/[id].vue.d.ts +1 -1
  51. package/dist/views/dashboard/[collection]/index.vue.d.ts +1 -1
  52. package/dist/views/dashboard/user/password-change/index.vue.d.ts +1 -1
  53. package/dist/views/dashboard/user/profile/index.vue.d.ts +1 -1
  54. package/dist/views/user/activation.vue.d.ts +1 -1
  55. package/dist/views/user/signin.vue.d.ts +1 -1
  56. package/dist/views/user/signup.vue.d.ts +1 -1
  57. package/package.json +4 -2
  58. package/dist/activation-01e847e4.js +0 -85
@@ -1,20 +1,21 @@
1
- import { defineComponent as U, ref as J, resolveDirective as te, openBlock as n, createElementBlock as i, normalizeClass as X, Fragment as x, renderList as Q, withDirectives as P, toDisplayString as V, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as C, inject as _e, computed as G, createElementVNode as A, mergeProps as E, createBlock as k, withCtx as f, resolveDynamicComponent as he, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as Ye, popScopeId as Je, provide as ye, createSlots as ce, vModelCheckbox as wt, onUnmounted as Bt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
2
- import { t as R, useI18n as Lt } from "@aeria-ui/i18n";
3
- import { arraysIntersect as gt, deepClone as Ce, getReferenceProperty as me, convertConditionToQuery as zt, freshItem as qt, isRequired as Mt, evaluateCondition as We, deepMerge as qe } from "@aeriajs/common";
4
- import { useStore as re, getStoreId as Me, useParentStore as De, STORE_ID as Fe, getGlobalStateManager as Ze } from "@aeria-ui/state-management";
5
- import { useScrollObserver as Pe, useBreakpoints as Ue, useMask as Ft, PAGINATION_PER_PAGE_DEFAULTS as Ut, API_URL as kt, request as Et, useDebounce as Vt, isDocumentComplete as Ht, getObjectKey as Dt, convertToSearchQuery as Qt, useParentCollectionStore as Le, useCollectionStore as Gt, useAction as Wt, convertFromSearchQuery as Kt, usePasswordPolicy as Xt } from "@aeria-ui/core";
1
+ import { defineComponent as U, ref as J, resolveDirective as te, openBlock as n, createElementBlock as i, normalizeClass as X, Fragment as x, renderList as Q, withDirectives as P, toDisplayString as V, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as C, inject as me, computed as G, createElementVNode as A, mergeProps as E, createBlock as k, withCtx as f, resolveDynamicComponent as be, useCssVars as Vt, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as Ct, onBeforeMount as bt, normalizeStyle as he, provide as ye, createSlots as ce, vModelCheckbox as Ot, onUnmounted as It, isRef as pt, resolveComponent as At, Suspense as Bt, useSlots as wt, h as St } from "vue";
2
+ import { t as R, useI18n as Tt } from "@aeria-ui/i18n";
3
+ import { arraysIntersect as ht, deepClone as Ce, getReferenceProperty as _e, freshItem as jt, isRequired as Rt, evaluateCondition as We, deepMerge as qe } from "@aeriajs/common";
4
+ import { useStore as re, getStoreId as Me, useParentStore as De, STORE_ID as Fe, getGlobalStateManager as Ye } from "@aeria-ui/state-management";
5
+ import { useScrollObserver as Je, useBreakpoints as Ue, useMask as Lt, PAGINATION_PER_PAGE_DEFAULTS as zt, API_URL as $t, request as qt, useDebounce as gt, isDocumentComplete as Mt, getObjectKey as Ft, convertToSearchQuery as Ut, useParentCollectionStore as Le, useCollectionStore as Et, useAction as Ht, convertFromSearchQuery as Dt, usePasswordPolicy as Qt } from "@aeria-ui/core";
6
6
  import { useRouter as Ie } from "vue-router";
7
- const Yt = ["onClick"], Jt = { key: 0 }, Zt = {
7
+ import { convertConditionToQuery as Gt } from "@aeria-ui/utils";
8
+ const Wt = ["onClick"], Kt = { key: 0 }, Xt = {
8
9
  key: 0,
9
10
  class: "accordion__content"
10
- }, Pt = /* @__PURE__ */ U({
11
+ }, Yt = /* @__PURE__ */ U({
11
12
  __name: "aeria-accordion",
12
13
  props: {
13
14
  enumerate: { type: Boolean },
14
15
  noPadding: { type: Boolean },
15
16
  headers: {}
16
17
  },
17
- setup(d) {
18
+ setup(p) {
18
19
  const u = J(null), a = (t) => typeof t == "string" ? t : t.title;
19
20
  return (t, o) => {
20
21
  const c = te("clickable");
@@ -24,20 +25,20 @@ const Yt = ["onClick"], Jt = { key: 0 }, Zt = {
24
25
  "accordion--padded": !t.noPadding
25
26
  })
26
27
  }, [
27
- (n(!0), i(x, null, Q(Object.keys(t.$slots).filter((r) => r !== "default"), (r, _) => (n(), i("div", {
28
+ (n(!0), i(x, null, Q(Object.keys(t.$slots).filter((r) => r !== "default"), (r, m) => (n(), i("div", {
28
29
  key: r,
29
30
  class: "accordion__slot"
30
31
  }, [
31
32
  P((n(), i("div", {
32
33
  class: "accordion__header",
33
- onClick: (p) => u.value === r ? u.value = null : u.value = r
34
+ onClick: (d) => u.value === r ? u.value = null : u.value = r
34
35
  }, [
35
- t.enumerate ? (n(), i("span", Jt, V(_ + 1) + ". ", 1)) : y("", !0),
36
+ t.enumerate ? (n(), i("span", Kt, V(m + 1) + ". ", 1)) : y("", !0),
36
37
  D(" " + V(t.headers[r] ? a(t.headers[r]) : e(R)(r)), 1)
37
- ], 8, Yt)), [
38
+ ], 8, Wt)), [
38
39
  [c]
39
40
  ]),
40
- u.value === r ? (n(), i("div", Zt, [
41
+ u.value === r ? (n(), i("div", Xt, [
41
42
  C(t.$slots, r, {}, void 0, !0)
42
43
  ])) : y("", !0)
43
44
  ]))), 128))
@@ -45,18 +46,18 @@ const Yt = ["onClick"], Jt = { key: 0 }, Zt = {
45
46
  };
46
47
  }
47
48
  });
48
- const W = (d, u) => {
49
- const a = d.__vccOpts || d;
49
+ const W = (p, u) => {
50
+ const a = p.__vccOpts || p;
50
51
  for (const [t, o] of u)
51
52
  a[t] = o;
52
53
  return a;
53
- }, zl = /* @__PURE__ */ W(Pt, [["__scopeId", "data-v-3ea933d4"]]), Nt = /* @__PURE__ */ U({
54
+ }, Il = /* @__PURE__ */ W(Yt, [["__scopeId", "data-v-3ea933d4"]]), Jt = /* @__PURE__ */ U({
54
55
  __name: "aeria-badge",
55
56
  props: {
56
57
  large: { type: Boolean },
57
58
  alt: { type: Boolean }
58
59
  },
59
- setup(d) {
60
+ setup(p) {
60
61
  return (u, a) => (n(), i("div", {
61
62
  class: X(`
62
63
  badge
@@ -68,14 +69,14 @@ const W = (d, u) => {
68
69
  ], 2));
69
70
  }
70
71
  });
71
- const $e = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-47f92648"]]), xt = /* @__PURE__ */ U({
72
+ const $e = /* @__PURE__ */ W(Jt, [["__scopeId", "data-v-47f92648"]]), Zt = /* @__PURE__ */ U({
72
73
  __name: "aeria-bare-button",
73
74
  props: {
74
75
  disabled: { type: Boolean }
75
76
  },
76
77
  emits: ["click"],
77
- setup(d, { emit: u }) {
78
- const a = d, t = u, o = (c) => {
78
+ setup(p, { emit: u }) {
79
+ const a = p, t = u, o = (c) => {
79
80
  a.disabled || t("click", c);
80
81
  };
81
82
  return (c, r) => (n(), i("button", {
@@ -89,10 +90,10 @@ const $e = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-47f92648"]]), xt = /* @_
89
90
  ], 2));
90
91
  }
91
92
  });
92
- const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["href"], tn = {
93
+ const ve = /* @__PURE__ */ W(Zt, [["__scopeId", "data-v-35bc81ae"]]), Pt = ["href"], Nt = {
93
94
  key: 0,
94
95
  "data-component": "icon-label"
95
- }, nn = /* @__PURE__ */ U({
96
+ }, xt = /* @__PURE__ */ U({
96
97
  __name: "aeria-icon",
97
98
  props: {
98
99
  icon: {},
@@ -103,8 +104,8 @@ const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["hre
103
104
  iconRight: { type: Boolean },
104
105
  active: { type: Boolean }
105
106
  },
106
- setup(d) {
107
- const u = d, a = typeof u.reactive == "boolean" ? u.reactive : _e("iconReactive", !1), t = G(() => {
107
+ setup(p) {
108
+ const u = p, a = typeof u.reactive == "boolean" ? u.reactive : me("iconReactive", !1), t = G(() => {
108
109
  var o;
109
110
  return (o = u.icon) != null && o.includes(":") ? u.icon : `regular:${u.icon}`;
110
111
  });
@@ -133,19 +134,19 @@ const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["hre
133
134
  }), [
134
135
  A("use", {
135
136
  href: `/assets/icons.svg#${t.value}`
136
- }, null, 8, en)
137
+ }, null, 8, Pt)
137
138
  ], 16))
138
139
  ], 2),
139
- o.$slots.default ? (n(), i("div", tn, [
140
+ o.$slots.default ? (n(), i("div", Nt, [
140
141
  C(o.$slots, "default", {}, void 0, !0)
141
142
  ])) : y("", !0)
142
143
  ], 2));
143
144
  }
144
145
  });
145
- const Z = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-6d36de33"]]), on = { class: "button__content" }, an = {
146
+ const Z = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-6d36de33"]]), en = { class: "button__content" }, tn = {
146
147
  key: 1,
147
148
  class: "button__content"
148
- }, ln = /* @__PURE__ */ U({
149
+ }, nn = /* @__PURE__ */ U({
149
150
  __name: "aeria-button",
150
151
  props: {
151
152
  size: {},
@@ -156,15 +157,15 @@ const Z = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-6d36de33"]]), on = { clas
156
157
  disabled: { type: Boolean },
157
158
  loading: { type: Boolean }
158
159
  },
159
- setup(d) {
160
- const u = d, a = _e("buttonVariant", u.variant) || "primary", t = (() => {
160
+ setup(p) {
161
+ const u = p, a = me("buttonVariant", u.variant) || "primary", t = (() => {
161
162
  switch (!0) {
162
163
  case u.small:
163
164
  return "small";
164
165
  case u.large:
165
166
  return "large";
166
167
  }
167
- return _e("buttonSize", u.size) || "medium";
168
+ return me("buttonSize", u.size) || "medium";
168
169
  })();
169
170
  return (o, c) => (n(), k(ve, {
170
171
  class: X(`
@@ -181,12 +182,12 @@ const Z = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-6d36de33"]]), on = { clas
181
182
  icon: o.icon
182
183
  }, {
183
184
  default: f(() => [
184
- A("div", on, [
185
+ A("div", en, [
185
186
  C(o.$slots, "default", {}, void 0, !0)
186
187
  ])
187
188
  ]),
188
189
  _: 3
189
- }, 8, ["icon"])) : (n(), i("div", an, [
190
+ }, 8, ["icon"])) : (n(), i("div", tn, [
190
191
  C(o.$slots, "default", {}, void 0, !0)
191
192
  ]))
192
193
  ]),
@@ -194,13 +195,13 @@ const Z = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-6d36de33"]]), on = { clas
194
195
  }, 8, ["class", "disabled"]));
195
196
  }
196
197
  });
197
- const ie = /* @__PURE__ */ W(ln, [["__scopeId", "data-v-c328251b"]]), sn = { class: "card__picture" }, rn = { class: "card__footer" }, un = { class: "card__footer-upper" }, cn = { class: "card__badge" }, dn = /* @__PURE__ */ U({
198
+ const ie = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-c328251b"]]), on = { class: "card__picture" }, an = { class: "card__footer" }, ln = { class: "card__footer-upper" }, sn = { class: "card__badge" }, rn = /* @__PURE__ */ U({
198
199
  __name: "aeria-card",
199
200
  props: {
200
201
  inactive: { type: Boolean },
201
202
  horizontal: { type: Boolean }
202
203
  },
203
- setup(d) {
204
+ setup(p) {
204
205
  return (u, a) => (n(), i("div", {
205
206
  class: X(`
206
207
  card
@@ -208,27 +209,27 @@ const ie = /* @__PURE__ */ W(ln, [["__scopeId", "data-v-c328251b"]]), sn = { cla
208
209
  ${u.horizontal && "card--horizontal"}
209
210
  `)
210
211
  }, [
211
- A("div", sn, [
212
+ A("div", on, [
212
213
  C(u.$slots, "default", {}, void 0, !0)
213
214
  ]),
214
- A("div", rn, [
215
- A("div", un, [
215
+ A("div", an, [
216
+ A("div", ln, [
216
217
  A("div", null, [
217
218
  C(u.$slots, "footer", {}, void 0, !0)
218
219
  ]),
219
220
  u.$slots.actions ? C(u.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
220
221
  ]),
221
- A("div", cn, [
222
+ A("div", sn, [
222
223
  C(u.$slots, "badge", {}, void 0, !0)
223
224
  ])
224
225
  ])
225
226
  ], 2));
226
227
  }
227
228
  });
228
- const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { class: "panel__header-left" }, mn = { key: 1 }, fn = {
229
+ const un = /* @__PURE__ */ W(rn, [["__scopeId", "data-v-c1a322df"]]), cn = { class: "panel__header-left" }, dn = { key: 1 }, pn = {
229
230
  key: 2,
230
231
  style: { "margin-left": "auto" }
231
- }, vn = /* @__PURE__ */ U({
232
+ }, mn = /* @__PURE__ */ U({
232
233
  __name: "aeria-panel",
233
234
  props: {
234
235
  closeHint: { type: Boolean, default: !1 },
@@ -250,16 +251,16 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
250
251
  overlayLayer: {}
251
252
  },
252
253
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
253
- setup(d, { emit: u }) {
254
- const a = d, t = u, o = J(a.collapsed), c = J(null), { reachedEnd: r } = Pe(c), _ = () => {
254
+ setup(p, { emit: u }) {
255
+ const a = p, t = u, o = J(a.collapsed), c = J(null), { reachedEnd: r } = Je(c), m = () => {
255
256
  t("update:modelValue", !1), t("close");
256
- }, p = () => {
257
+ }, d = () => {
257
258
  t("overlayClick");
258
- }, b = (s) => {
259
+ }, h = (s) => {
259
260
  t("update:collapsed", s), o.value = s;
260
261
  };
261
262
  return (s, l) => {
262
- const w = te("clickable"), v = te("loading"), $ = te("overlay");
263
+ const B = te("clickable"), v = te("loading"), $ = te("overlay");
263
264
  return s.modelValue ? P((n(), i("div", {
264
265
  key: 0,
265
266
  class: X(`
@@ -267,7 +268,7 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
267
268
  ${s.fixedRight && "panel--fixed"}
268
269
  `)
269
270
  }, [
270
- (n(), k(he(
271
+ (n(), k(be(
271
272
  s.float || s.fixedRight ? "dialog" : "div"
272
273
  ), {
273
274
  "data-component": "panel",
@@ -292,9 +293,9 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
292
293
  ${s.outerHeader && "panel__header--outer"}
293
294
  `)
294
295
  }, [
295
- A("div", _n, [
296
- s.$slots.header ? C(s.$slots, "header", { key: 0 }, void 0, !0) : s.title ? (n(), i("div", mn, V(s.title), 1)) : y("", !0),
297
- s.$slots.extra ? (n(), i("div", fn, [
296
+ A("div", cn, [
297
+ s.$slots.header ? C(s.$slots, "header", { key: 0 }, void 0, !0) : s.title ? (n(), i("div", dn, V(s.title), 1)) : y("", !0),
298
+ s.$slots.extra ? (n(), i("div", pn, [
298
299
  C(s.$slots, "extra", {}, void 0, !0)
299
300
  ])) : y("", !0)
300
301
  ]),
@@ -302,23 +303,23 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
302
303
  key: 0,
303
304
  reactive: "",
304
305
  icon: "plus",
305
- onClick: l[0] || (l[0] = (S) => b(!o.value))
306
+ onClick: l[0] || (l[0] = (S) => h(!o.value))
306
307
  }, null, 512)), [
307
- [w]
308
+ [B]
308
309
  ]) : s.collapsible && !o.value ? P((n(), k(Z, {
309
310
  key: 1,
310
311
  reactive: "",
311
312
  icon: "minus",
312
- onClick: l[1] || (l[1] = (S) => b(!o.value))
313
+ onClick: l[1] || (l[1] = (S) => h(!o.value))
313
314
  }, null, 512)), [
314
- [w]
315
+ [B]
315
316
  ]) : s.closeHint ? P((n(), k(Z, {
316
317
  key: 2,
317
318
  reactive: "",
318
319
  icon: "x",
319
- onClick: _
320
+ onClick: m
320
321
  }, null, 512)), [
321
- [w]
322
+ [B]
322
323
  ]) : y("", !0)
323
324
  ], 2)) : y("", !0),
324
325
  o.value ? y("", !0) : P((n(), i("div", {
@@ -352,17 +353,17 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
352
353
  [$, {
353
354
  condition: s.overlay || s.fixedRight || s.float,
354
355
  invisible: s.invisibleOverlay,
355
- click: p,
356
+ click: d,
356
357
  layer: s.overlayLayer || (s.float ? 60 : s.fixedRight ? 50 : 0)
357
358
  }]
358
359
  ]) : y("", !0);
359
360
  };
360
361
  }
361
362
  });
362
- const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-4271b4f1"]]), yn = { class: "content__body" }, hn = {
363
+ const Ae = /* @__PURE__ */ W(mn, [["__scopeId", "data-v-4271b4f1"]]), _n = { class: "content__body" }, fn = {
363
364
  key: 0,
364
365
  class: "content__section"
365
- }, bn = { class: "content__item" }, $n = /* @__PURE__ */ U({
366
+ }, vn = { class: "content__item" }, yn = /* @__PURE__ */ U({
366
367
  __name: "aeria-context-menu",
367
368
  props: {
368
369
  actions: {},
@@ -370,40 +371,40 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-4271b4f1"]]), yn = { cla
370
371
  overlayLayer: {}
371
372
  },
372
373
  emits: ["actionClick"],
373
- setup(d, { emit: u }) {
374
- It((p) => ({
375
- "036683e2": _.value.x,
376
- "036683e0": _.value.y
374
+ setup(p, { emit: u }) {
375
+ Vt((d) => ({
376
+ "036683e2": m.value.x,
377
+ "036683e0": m.value.y
377
378
  }));
378
- const a = u, t = J(null), o = J(!1), c = (p) => p == null ? void 0 : p.filter((b) => {
379
- if (b.roles) {
379
+ const a = u, t = J(null), o = J(!1), c = (d) => d == null ? void 0 : d.filter((h) => {
380
+ if (h.roles) {
380
381
  const s = re("user");
381
- return gt(b.roles, s.currentUser.roles);
382
+ return ht(h.roles, s.currentUser.roles);
382
383
  }
383
384
  return !0;
384
- }), r = (p, b) => {
385
- const s = b && Ce(b);
386
- p.click && p.click(s), a("actionClick", {
387
- action: p,
385
+ }), r = (d, h) => {
386
+ const s = h && Ce(h);
387
+ d.click && d.click(s), a("actionClick", {
388
+ action: d,
388
389
  subject: s
389
390
  }), o.value = !1;
390
- }, _ = G(() => {
391
+ }, m = G(() => {
391
392
  if (!t.value)
392
393
  return {
393
394
  x: 0,
394
395
  y: 0
395
396
  };
396
- const p = t.value.getBoundingClientRect().top, b = t.value.getBoundingClientRect().left, s = t.value.offsetHeight;
397
+ const d = t.value.getBoundingClientRect().top, h = t.value.getBoundingClientRect().left, s = t.value.offsetHeight;
397
398
  return {
398
399
  _: o.value,
399
- x: Math.floor(b) + "px",
400
- y: Math.floor(p + s) + "px"
400
+ x: Math.floor(h) + "px",
401
+ y: Math.floor(d + s) + "px"
401
402
  };
402
403
  });
403
- return (p, b) => {
404
+ return (d, h) => {
404
405
  const s = te("overlay");
405
406
  return n(), i(x, null, [
406
- Object.keys(p.$slots).some((l) => l !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (n(), i("div", {
407
+ Object.keys(d.$slots).some((l) => l !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (n(), i("div", {
407
408
  key: 0,
408
409
  ref_key: "contextmenu",
409
410
  ref: t,
@@ -411,9 +412,9 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-4271b4f1"]]), yn = { cla
411
412
  }, [
412
413
  A("a", {
413
414
  class: "contextmenu__trigger",
414
- onClick: b[0] || (b[0] = (l) => o.value = !0)
415
+ onClick: h[0] || (h[0] = (l) => o.value = !0)
415
416
  }, [
416
- C(p.$slots, "default", de(ge({
417
+ C(d.$slots, "default", de(ge({
417
418
  visible: o.value
418
419
  })), void 0, !0)
419
420
  ])
@@ -424,41 +425,41 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-4271b4f1"]]), yn = { cla
424
425
  }, [
425
426
  P((n(), k(Ae, {
426
427
  modelValue: o.value,
427
- "onUpdate:modelValue": b[4] || (b[4] = (l) => o.value = l),
428
+ "onUpdate:modelValue": h[4] || (h[4] = (l) => o.value = l),
428
429
  fill: "",
429
430
  bordered: "",
430
431
  class: "content",
431
432
  style: { "--panel-min-width": "0" }
432
433
  }, {
433
434
  default: f(() => [
434
- A("div", yn, [
435
- p.$slots.header ? (n(), i("div", hn, [
436
- C(p.$slots, "header", {}, void 0, !0)
435
+ A("div", _n, [
436
+ d.$slots.header ? (n(), i("div", fn, [
437
+ C(d.$slots, "header", {}, void 0, !0)
437
438
  ])) : y("", !0),
438
- Object.keys(p.$slots).filter((l) => !["default", "extra", "header"].includes(l)).length > 0 ? (n(), i("div", {
439
+ Object.keys(d.$slots).filter((l) => !["default", "extra", "header"].includes(l)).length > 0 ? (n(), i("div", {
439
440
  key: 1,
440
441
  class: "content__section",
441
- onClick: b[1] || (b[1] = (l) => o.value = !1)
442
+ onClick: h[1] || (h[1] = (l) => o.value = !1)
442
443
  }, [
443
- (n(!0), i(x, null, Q(Object.keys(p.$slots).filter((l) => !["default", "extra", "header"].includes(l)), (l, w) => (n(), k(ve, {
444
- key: `slot-${w}`,
444
+ (n(!0), i(x, null, Q(Object.keys(d.$slots).filter((l) => !["default", "extra", "header"].includes(l)), (l, B) => (n(), k(ve, {
445
+ key: `slot-${B}`,
445
446
  class: "content__item content__item--reactive"
446
447
  }, {
447
448
  default: f(() => [
448
- C(p.$slots, l, {}, void 0, !0)
449
+ C(d.$slots, l, {}, void 0, !0)
449
450
  ]),
450
451
  _: 2
451
452
  }, 1024))), 128))
452
453
  ])) : y("", !0),
453
- p.actions !== void 0 && p.actions.length > 0 ? (n(), i("div", {
454
+ d.actions !== void 0 && d.actions.length > 0 ? (n(), i("div", {
454
455
  key: 2,
455
456
  class: "content__section",
456
- onClick: b[2] || (b[2] = (l) => o.value = !1)
457
+ onClick: h[2] || (h[2] = (l) => o.value = !1)
457
458
  }, [
458
- (n(!0), i(x, null, Q(c(p.actions), (l, w) => (n(), k(ve, {
459
- key: `action-${w}`,
459
+ (n(!0), i(x, null, Q(c(d.actions), (l, B) => (n(), k(ve, {
460
+ key: `action-${B}`,
460
461
  class: "content__item content__item--reactive",
461
- onClick: (v) => r(l, p.subject)
462
+ onClick: (v) => r(l, d.subject)
462
463
  }, {
463
464
  default: f(() => [
464
465
  l.icon ? (n(), k(Z, {
@@ -474,13 +475,13 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-4271b4f1"]]), yn = { cla
474
475
  _: 2
475
476
  }, 1032, ["onClick"]))), 128))
476
477
  ])) : y("", !0),
477
- p.$slots.extra ? (n(), i("div", {
478
+ d.$slots.extra ? (n(), i("div", {
478
479
  key: 3,
479
480
  class: "content__section",
480
- onClick: b[3] || (b[3] = (l) => o.value = !1)
481
+ onClick: h[3] || (h[3] = (l) => o.value = !1)
481
482
  }, [
482
- A("div", bn, [
483
- p.$slots.extra ? C(p.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
483
+ A("div", vn, [
484
+ d.$slots.extra ? C(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
484
485
  ])
485
486
  ])) : y("", !0)
486
487
  ])
@@ -490,7 +491,7 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-4271b4f1"]]), yn = { cla
490
491
  [
491
492
  s,
492
493
  {
493
- layer: p.overlayLayer,
494
+ layer: d.overlayLayer,
494
495
  click: () => {
495
496
  o.value = !1;
496
497
  }
@@ -504,12 +505,12 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-4271b4f1"]]), yn = { cla
504
505
  };
505
506
  }
506
507
  });
507
- const Oe = /* @__PURE__ */ W($n, [["__scopeId", "data-v-a03802b2"]]), gn = { class: "info__content" }, kn = /* @__PURE__ */ U({
508
+ const Oe = /* @__PURE__ */ W(yn, [["__scopeId", "data-v-a03802b2"]]), bn = { class: "info__content" }, hn = /* @__PURE__ */ U({
508
509
  __name: "aeria-info",
509
510
  props: {
510
511
  where: { default: "top" }
511
512
  },
512
- setup(d) {
513
+ setup(p) {
513
514
  const u = Ue(), a = J(!1);
514
515
  return (t, o) => e(u).md ? (n(), i("div", {
515
516
  key: 0,
@@ -523,7 +524,7 @@ const Oe = /* @__PURE__ */ W($n, [["__scopeId", "data-v-a03802b2"]]), gn = { cla
523
524
  info__bubble--${t.where}
524
525
  `)
525
526
  }, [
526
- A("div", gn, [
527
+ A("div", bn, [
527
528
  C(t.$slots, "text", {}, void 0, !0)
528
529
  ])
529
530
  ], 2)) : y("", !0),
@@ -535,16 +536,16 @@ const Oe = /* @__PURE__ */ W($n, [["__scopeId", "data-v-a03802b2"]]), gn = { cla
535
536
  ], 32)) : C(t.$slots, "default", { key: 1 }, void 0, !0);
536
537
  }
537
538
  });
538
- const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { class: "input" }, On = {
539
+ const $n = /* @__PURE__ */ W(hn, [["__scopeId", "data-v-7e2a5440"]]), gn = { class: "input" }, kn = {
539
540
  key: 0,
540
541
  class: "input__label"
541
- }, In = {
542
+ }, Vn = {
542
543
  key: 1,
543
544
  class: "input__hint"
544
- }, An = ["placeholder", "readonly", "value"], wn = ["value"], Bn = {
545
+ }, Cn = ["placeholder", "readonly", "value"], On = ["value"], In = {
545
546
  key: 1,
546
547
  class: "input__clipboard"
547
- }, Sn = /* @__PURE__ */ U({
548
+ }, An = /* @__PURE__ */ U({
548
549
  __name: "aeria-input",
549
550
  props: {
550
551
  modelValue: {},
@@ -556,11 +557,11 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
556
557
  variant: {}
557
558
  },
558
559
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
559
- setup(d, { emit: u }) {
560
+ setup(p, { emit: u }) {
560
561
  var ee;
561
- const a = d, t = u, o = a.property || {}, c = "icon" in o || "inputType" in o && o.inputType === "search", r = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), p = !r && (a.readOnly || o.readOnly), b = (h) => (t("clipboardCopy", h), navigator.clipboard.writeText(h)), s = _e("inputVariant", a.variant) || "normal", l = Object.assign(Object.assign({}, a), {
562
+ const a = p, t = u, o = a.property || {}, c = "icon" in o || "inputType" in o && o.inputType === "search", r = me("searchOnly", !1), m = me("innerInputLabel", !1), d = !r && (a.readOnly || o.readOnly), h = (b) => (t("clipboardCopy", b), navigator.clipboard.writeText(b)), s = me("inputVariant", a.variant) || "normal", l = Object.assign(Object.assign({}, a), {
562
563
  name: a.propertyName,
563
- readonly: p,
564
+ readonly: d,
564
565
  type: (() => {
565
566
  if ("type" in o)
566
567
  switch (o.type) {
@@ -579,18 +580,18 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
579
580
  return "text";
580
581
  }
581
582
  })(),
582
- placeholder: _ ? o.description || a.propertyName : o.placeholder
583
+ placeholder: m ? o.description || a.propertyName : o.placeholder
583
584
  });
584
585
  "type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (l.min = o.minimum), o.exclusiveMinimum && (l.min = o.exclusiveMinimum + 1), o.maximum && (l.max = o.maximum), o.exclusiveMaximum && (l.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (l.type = !r && o.format === "date-time" ? "datetime-local" : "date"), l.minlength = o.minLength, l.maxlength = o.maxLength)), l.type === "text" && r && (l.type = "search"), Xe(() => {
585
586
  a.modelValue !== null && O(a.modelValue);
586
587
  });
587
- const w = (h) => {
588
+ const B = (b) => {
588
589
  try {
589
590
  let F;
590
- if (h instanceof Date)
591
- F = h;
592
- else if (typeof h == "string")
593
- F = new Date(h);
591
+ if (b instanceof Date)
592
+ F = b;
593
+ else if (typeof b == "string")
594
+ F = new Date(b);
594
595
  else
595
596
  throw new Error();
596
597
  switch (l.type) {
@@ -604,62 +605,62 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
604
605
  } catch {
605
606
  return "";
606
607
  }
607
- }, v = J(""), $ = ((ee = a.property) == null ? void 0 : ee.type) === "string" && a.property.mask ? Ft(a.property.mask) : null;
608
- ue(() => a.modelValue, (h) => {
608
+ }, v = J(""), $ = ((ee = a.property) == null ? void 0 : ee.type) === "string" && a.property.mask ? Lt(a.property.mask) : null;
609
+ ue(() => a.modelValue, (b) => {
609
610
  v.value = (() => {
610
611
  if ($)
611
- return h ? $.enmask(String(h), void 0, {
612
+ return b ? $.enmask(String(b), void 0, {
612
613
  defaultValue: !0
613
614
  }) : "";
614
615
  switch (l.type) {
615
616
  case "date":
616
617
  case "datetime-local":
617
- return w(h);
618
+ return B(b);
618
619
  }
619
- switch (h) {
620
+ switch (b) {
620
621
  case null:
621
622
  case void 0:
622
623
  return "";
623
624
  default:
624
- return h;
625
+ return b;
625
626
  }
626
627
  })();
627
628
  }, {
628
629
  immediate: !0
629
630
  });
630
- const S = (h) => {
631
+ const S = (b) => {
631
632
  var F;
632
633
  return typeof v.value == "string" && ((F = a.property) == null ? void 0 : F.type) === "string" && $ !== null ? (v.value = $.enmask(v.value, void 0, {
633
634
  defaultValue: !0
634
- }), a.property.maskedValue === !0 ? v.value : $.unmask(v.value)) : h;
635
- }, O = (h) => {
635
+ }), a.property.maskedValue === !0 ? v.value : $.unmask(v.value)) : b;
636
+ }, O = (b) => {
636
637
  const F = (() => {
637
- if (!h || typeof h != "string")
638
- return h;
638
+ if (!b || typeof b != "string")
639
+ return b;
639
640
  switch (l.type) {
640
641
  case "number":
641
642
  case "integer":
642
- return Number(h);
643
+ return Number(b);
643
644
  case "date":
644
645
  case "date-time":
645
- return new Date(h);
646
+ return new Date(b);
646
647
  default:
647
- return S(h);
648
+ return S(b);
648
649
  }
649
650
  })();
650
651
  t("input", F), t("update:modelValue", F);
651
- }, Y = (h) => {
652
- const F = h.target.value;
652
+ }, Y = (b) => {
653
+ const F = b.target.value;
653
654
  v.value = F, O(F);
654
655
  };
655
- return (h, F) => {
656
+ return (b, F) => {
656
657
  const le = te("focus"), T = te("clickable");
657
- return n(), i("label", Cn, [
658
- e(_) ? y("", !0) : (n(), i("div", On, [
659
- h.$slots.default ? C(h.$slots, "default", { key: 0 }, void 0, !0) : C(h.$slots, "description", { key: 1 }, void 0, !0)
658
+ return n(), i("label", gn, [
659
+ e(m) ? y("", !0) : (n(), i("div", kn, [
660
+ b.$slots.default ? C(b.$slots, "default", { key: 0 }, void 0, !0) : C(b.$slots, "description", { key: 1 }, void 0, !0)
660
661
  ])),
661
- h.$slots.hint ? (n(), i("div", In, [
662
- C(h.$slots, "hint", {}, void 0, !0)
662
+ b.$slots.hint ? (n(), i("div", Vn, [
663
+ C(b.$slots, "hint", {}, void 0, !0)
663
664
  ])) : y("", !0),
664
665
  "element" in e(o) && e(o).element === "textarea" ? (n(), i("div", {
665
666
  key: 2,
@@ -672,13 +673,13 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
672
673
  P(A("textarea", {
673
674
  placeholder: e(l).placeholder,
674
675
  readonly: e(l).readonly,
675
- value: h.modelValue,
676
+ value: b.modelValue,
676
677
  class: X(`
677
678
  input__textarea
678
679
  input__input--${e(s)}
679
680
  `),
680
681
  onInput: Y
681
- }, null, 42, An), [
682
+ }, null, 42, Cn), [
682
683
  [le, e(o).focus]
683
684
  ])
684
685
  ], 2)) : (n(), i("div", {
@@ -695,11 +696,11 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
695
696
  input__input
696
697
  input__input--${e(s)}
697
698
  ${e(c) && "input__input--icon"}
698
- ${e(p) && "input__input--readOnly"}
699
+ ${e(d) && "input__input--readOnly"}
699
700
  `,
700
701
  onInput: Y,
701
702
  onChange: F[0] || (F[0] = (g) => t("change", g))
702
- }), null, 16, wn), [
703
+ }), null, 16, On), [
703
704
  [le, e(o).focus]
704
705
  ]),
705
706
  e(c) ? (n(), k(Z, {
@@ -710,16 +711,16 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
710
711
  input__icon--${e(s)}
711
712
  `)
712
713
  }, null, 8, ["icon", "class"])) : y("", !0),
713
- e(p) ? (n(), i("div", Bn, [
714
- z(Vn, null, {
715
- text: f(() => [
714
+ e(d) ? (n(), i("div", In, [
715
+ z($n, null, {
716
+ text: f(() => F[2] || (F[2] = [
716
717
  D("Copiar")
717
- ]),
718
+ ])),
718
719
  default: f(() => [
719
720
  P(z(Z, {
720
721
  reactive: "",
721
722
  icon: "clipboard",
722
- onClick: F[1] || (F[1] = ze((g) => b(String(h.modelValue || "")), ["prevent"]))
723
+ onClick: F[1] || (F[1] = ze((g) => h(String(b.modelValue || "")), ["prevent"]))
723
724
  }, null, 512), [
724
725
  [T]
725
726
  ])
@@ -732,10 +733,10 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
732
733
  };
733
734
  }
734
735
  });
735
- const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
736
+ const ke = /* @__PURE__ */ W(An, [["__scopeId", "data-v-f57af0a6"]]), Bn = {
736
737
  key: 1,
737
738
  value: ""
738
- }, jn = ["value", "data-selected"], Rn = /* @__PURE__ */ U({
739
+ }, wn = ["value", "data-selected"], Sn = /* @__PURE__ */ U({
739
740
  __name: "aeria-select",
740
741
  props: {
741
742
  modelValue: {},
@@ -749,10 +750,10 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
749
750
  noOutline: { type: Boolean }
750
751
  },
751
752
  emits: ["update:modelValue", "change"],
752
- setup(d, { emit: u }) {
753
- const a = d, t = u, o = J(null), c = a.property, r = (s) => {
754
- a.booleanRef && (_.value = s), t("update:modelValue", (s == null ? void 0 : s._id) || s), t("change", (s == null ? void 0 : s._id) || s);
755
- }, _ = a.booleanRef ? (() => {
753
+ setup(p, { emit: u }) {
754
+ const a = p, t = u, o = J(null), c = a.property, r = (s) => {
755
+ a.booleanRef && (m.value = s), t("update:modelValue", (s == null ? void 0 : s._id) || s), t("change", (s == null ? void 0 : s._id) || s);
756
+ }, m = a.booleanRef ? (() => {
756
757
  const s = J(a.modelValue);
757
758
  return G({
758
759
  get: () => {
@@ -765,88 +766,88 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
765
766
  return null;
766
767
  }
767
768
  },
768
- set: (w) => {
769
- s.value = w;
769
+ set: (B) => {
770
+ s.value = B;
770
771
  }
771
772
  });
772
773
  })() : G({
773
774
  get: () => a.modelValue,
774
775
  set: r
775
- }), p = (s) => Array.isArray(a.modelValue) ? a.modelValue.includes(s) : a.modelValue === s, b = G(() => a.multiple ? typeof a.multiple == "number" ? a.multiple : 5 : 1);
776
+ }), d = (s) => Array.isArray(a.modelValue) ? a.modelValue.includes(s) : a.modelValue === s, h = G(() => a.multiple ? typeof a.multiple == "number" ? a.multiple : 5 : 1);
776
777
  return a.multiple && ue(() => a.modelValue, (s) => {
777
- var w;
778
+ var B;
778
779
  if (!o.value)
779
780
  return;
780
781
  const l = o.value.querySelector('option[data-selected="true"]');
781
- l && l.removeAttribute("data-selected"), (w = o.value.querySelector(`option[value="${s}"]`)) == null || w.setAttribute("data-selected", "true");
782
+ l && l.removeAttribute("data-selected"), (B = o.value.querySelector(`option[value="${s}"]`)) == null || B.setAttribute("data-selected", "true");
782
783
  }), (s, l) => s.readOnly ? (n(), k(ke, {
783
784
  key: 1,
784
785
  "read-only": "",
785
- "model-value": e(_)
786
+ "model-value": e(m)
786
787
  }, null, 8, ["model-value"])) : (n(), i("select", E({ key: 0 }, {
787
- size: b.value,
788
- value: e(_)
788
+ size: h.value,
789
+ value: e(m)
789
790
  }, {
790
791
  ref_key: "select",
791
792
  ref: o,
792
793
  class: {
793
794
  select: !0,
794
- "select--multiple": !!b.value,
795
+ "select--multiple": !!h.value,
795
796
  "select--outline": !s.noOutline
796
797
  },
797
- onChange: l[0] || (l[0] = (w) => r(w.target.value))
798
+ onChange: l[0] || (l[0] = (B) => r(B.target.value))
798
799
  }), [
799
800
  e(c) && e(c).icon ? (n(), k(Z, {
800
801
  key: 0,
801
802
  icon: e(c).icon
802
803
  }, null, 8, ["icon"])) : y("", !0),
803
- a.multiple ? y("", !0) : (n(), i("option", Tn, V(e(R)("none")), 1)),
804
- (n(!0), i(x, null, Q(e(c) && "enum" in e(c) ? e(c).enum : [], (w) => {
804
+ a.multiple ? y("", !0) : (n(), i("option", Bn, V(e(R)("none")), 1)),
805
+ (n(!0), i(x, null, Q(e(c) && "enum" in e(c) ? e(c).enum : [], (B) => {
805
806
  var v;
806
807
  return n(), i("option", {
807
- key: w,
808
- value: w,
809
- "data-selected": p(w)
810
- }, V((v = e(c)) != null && v.translate ? e(R)(w) : w), 9, jn);
808
+ key: B,
809
+ value: B,
810
+ "data-selected": d(B)
811
+ }, V((v = e(c)) != null && v.translate ? e(R)(B) : B), 9, wn);
811
812
  }), 128)),
812
813
  C(s.$slots, "default", {}, void 0, !0)
813
814
  ], 16));
814
815
  }
815
816
  });
816
- const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { class: "pagination" }, zn = { class: "pagination__arrows" }, qn = ["value"], Mn = {
817
+ const Ze = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-1c0432ab"]]), Tn = { class: "pagination" }, jn = { class: "pagination__arrows" }, Rn = ["value"], Ln = {
817
818
  key: 0,
818
819
  class: "pagination__summary"
819
- }, Fn = /* @__PURE__ */ U({
820
+ }, zn = /* @__PURE__ */ U({
820
821
  __name: "aeria-pagination",
821
822
  props: {
822
823
  pagination: {},
823
824
  noSummary: { type: Boolean }
824
825
  },
825
826
  emits: ["paginate"],
826
- setup(d, { emit: u }) {
827
- const a = d, t = u, o = G({
827
+ setup(p, { emit: u }) {
828
+ const a = p, t = u, o = G({
828
829
  get: () => Math.floor(a.pagination.offset / a.pagination.limit),
829
- set: (b) => {
830
- a.pagination.offset = b * a.pagination.limit;
830
+ set: (h) => {
831
+ a.pagination.offset = h * a.pagination.limit;
831
832
  }
832
833
  }), c = G({
833
834
  get: () => a.pagination.limit,
834
- set: (b) => {
835
- a.pagination.limit = Number(b);
835
+ set: (h) => {
836
+ a.pagination.limit = Number(h);
836
837
  }
837
- }), r = J(o.value ? o.value + 1 : 1), _ = G(() => Math.ceil(a.pagination.recordsTotal / a.pagination.limit)), p = (b) => {
838
- o.value = b === "previous" ? o.value - 1 : o.value + 1;
838
+ }), r = J(o.value ? o.value + 1 : 1), m = G(() => Math.ceil(a.pagination.recordsTotal / a.pagination.limit)), d = (h) => {
839
+ o.value = h === "previous" ? o.value - 1 : o.value + 1;
839
840
  };
840
841
  return ue([
841
842
  o,
842
843
  c
843
- ], ([b]) => {
844
- r.value = b + 1, t("paginate", {
844
+ ], ([h]) => {
845
+ r.value = h + 1, t("paginate", {
845
846
  offset: o.value * c.value,
846
847
  limit: c.value
847
848
  });
848
- }), (b, s) => (n(), i("div", Ln, [
849
- A("div", zn, [
849
+ }), (h, s) => (n(), i("div", Tn, [
850
+ A("div", jn, [
850
851
  z(ve, {
851
852
  disabled: o.value === 0,
852
853
  onClick: s[0] || (s[0] = (l) => o.value = 0)
@@ -858,7 +859,7 @@ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { cla
858
859
  }, 8, ["disabled"]),
859
860
  z(ve, {
860
861
  disabled: o.value === 0,
861
- onClick: s[1] || (s[1] = (l) => p("previous"))
862
+ onClick: s[1] || (s[1] = (l) => d("previous"))
862
863
  }, {
863
864
  default: f(() => [
864
865
  z(Z, { icon: "caret-left" })
@@ -866,8 +867,8 @@ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { cla
866
867
  _: 1
867
868
  }, 8, ["disabled"]),
868
869
  z(ve, {
869
- disabled: o.value === _.value - 1,
870
- onClick: s[2] || (s[2] = (l) => p("next"))
870
+ disabled: o.value === m.value - 1,
871
+ onClick: s[2] || (s[2] = (l) => d("next"))
871
872
  }, {
872
873
  default: f(() => [
873
874
  z(Z, { icon: "caret-right" })
@@ -875,15 +876,15 @@ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { cla
875
876
  _: 1
876
877
  }, 8, ["disabled"]),
877
878
  z(ve, {
878
- disabled: o.value === _.value - 1,
879
- onClick: s[3] || (s[3] = (l) => o.value = _.value - 1)
879
+ disabled: o.value === m.value - 1,
880
+ onClick: s[3] || (s[3] = (l) => o.value = m.value - 1)
880
881
  }, {
881
882
  default: f(() => [
882
883
  z(Z, { icon: "caret-double-right" })
883
884
  ]),
884
885
  _: 1
885
886
  }, 8, ["disabled"]),
886
- z(Ne, {
887
+ z(Ze, {
887
888
  modelValue: c.value,
888
889
  "onUpdate:modelValue": s[4] || (s[4] = (l) => c.value = l),
889
890
  property: {
@@ -893,15 +894,15 @@ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { cla
893
894
  class: "pagination__control"
894
895
  }, {
895
896
  default: f(() => [
896
- (n(!0), i(x, null, Q(e(Ut), (l) => (n(), i("option", {
897
+ (n(!0), i(x, null, Q(e(zt), (l) => (n(), i("option", {
897
898
  key: `limit-${l}`,
898
899
  value: l
899
- }, V(l), 9, qn))), 128))
900
+ }, V(l), 9, Rn))), 128))
900
901
  ]),
901
902
  _: 1
902
903
  }, 8, ["modelValue"])
903
904
  ]),
904
- b.noSummary ? y("", !0) : (n(), i("div", Mn, [
905
+ h.noSummary ? y("", !0) : (n(), i("div", Ln, [
905
906
  D(V(e(R)("Page")) + " ", 1),
906
907
  (n(), k(ke, {
907
908
  key: o.value,
@@ -916,15 +917,15 @@ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { cla
916
917
  o.value = r.value === 0 ? 0 : r.value - 1;
917
918
  })
918
919
  }, null, 8, ["modelValue"])),
919
- A("span", null, V(e(R)("of")) + " " + V(_.value), 1)
920
+ A("span", null, V(e(R)("of")) + " " + V(m.value), 1)
920
921
  ]))
921
922
  ]));
922
923
  }
923
924
  });
924
- const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { class: "checkbox__text" }, Hn = ["innerHTML"], Dn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
925
+ const qn = /* @__PURE__ */ W(zn, [["__scopeId", "data-v-ae7235de"]]), Mn = { class: "checkbox__text" }, Fn = ["innerHTML"], Un = { class: "checkbox__hint" }, En = ["innerHTML"], Hn = {
925
926
  inheritAttrs: !1
926
- }, Wn = /* @__PURE__ */ U({
927
- ...Gn,
927
+ }, Dn = /* @__PURE__ */ U({
928
+ ...Hn,
928
929
  __name: "aeria-checkbox",
929
930
  props: {
930
931
  modelValue: {},
@@ -937,8 +938,8 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
937
938
  variant: {}
938
939
  },
939
940
  emits: ["update:modelValue", "change"],
940
- setup(d, { emit: u }) {
941
- const a = d, t = a.property, o = a.readOnly || (t == null ? void 0 : t.readOnly), c = (() => {
941
+ setup(p, { emit: u }) {
942
+ const a = p, t = a.property, o = a.readOnly || (t == null ? void 0 : t.readOnly), c = (() => {
942
943
  if (t && "type" in t)
943
944
  switch (t.type) {
944
945
  case "array":
@@ -946,7 +947,7 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
946
947
  return "checkbox";
947
948
  }
948
949
  return "radio";
949
- })(), r = u, _ = a.value || !1, p = G({
950
+ })(), r = u, m = a.value || !1, d = G({
950
951
  get: () => {
951
952
  var s;
952
953
  if (t) {
@@ -966,23 +967,23 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
966
967
  return;
967
968
  }
968
969
  if ("items" in t) {
969
- if ((s = a.modelValue) != null && s.includes(_)) {
970
- r("update:modelValue", a.modelValue.filter((l) => l !== _));
970
+ if ((s = a.modelValue) != null && s.includes(m)) {
971
+ r("update:modelValue", a.modelValue.filter((l) => l !== m));
971
972
  return;
972
973
  }
973
- r("update:modelValue", [_].concat(a.modelValue || []));
974
+ r("update:modelValue", [m].concat(a.modelValue || []));
974
975
  return;
975
976
  }
976
977
  }
977
978
  r("update:modelValue", a.value);
978
979
  }
979
980
  }
980
- }), b = (s) => {
981
+ }), h = (s) => {
981
982
  o && s.preventDefault();
982
983
  };
983
984
  return (s, l) => {
984
985
  var v, $;
985
- const w = te("clickable");
986
+ const B = te("clickable");
986
987
  return P((n(), i("label", {
987
988
  class: X(`
988
989
  checkbox
@@ -990,41 +991,41 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
990
991
  `)
991
992
  }, [
992
993
  P(A("input", E({
993
- "onUpdate:modelValue": l[0] || (l[0] = (S) => p.value = S)
994
+ "onUpdate:modelValue": l[0] || (l[0] = (S) => d.value = S)
994
995
  }, {
995
996
  type: e(c),
996
997
  readOnly: e(o),
997
- checked: p.value
998
+ checked: d.value
998
999
  }, {
999
1000
  class: "checkbox__input",
1000
- onClick: b
1001
+ onClick: h
1001
1002
  }), null, 16), [
1002
- [At, p.value]
1003
+ [Ct, d.value]
1003
1004
  ]),
1004
- A("div", En, [
1005
+ A("div", Mn, [
1005
1006
  A("div", null, [
1006
- s.$slots.description ? C(s.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (n(), i("div", {
1007
+ s.$slots.description ? C(s.$slots, "description", { key: 0 }, void 0, !0) : e(m) ? (n(), i("div", {
1007
1008
  key: 1,
1008
- innerHTML: (v = e(t)) != null && v.translate ? e(R)(e(_)) : e(_)
1009
- }, null, 8, Hn)) : C(s.$slots, "default", { key: 2 }, void 0, !0)
1009
+ innerHTML: (v = e(t)) != null && v.translate ? e(R)(e(m)) : e(m)
1010
+ }, null, 8, Fn)) : C(s.$slots, "default", { key: 2 }, void 0, !0)
1010
1011
  ]),
1011
- A("div", Dn, [
1012
+ A("div", Un, [
1012
1013
  s.$slots.hint ? C(s.$slots, "hint", { key: 0 }, void 0, !0) : ($ = e(t)) != null && $.hint ? (n(), i("div", {
1013
1014
  key: 1,
1014
1015
  innerHTML: e(t).hint
1015
- }, null, 8, Qn)) : y("", !0)
1016
+ }, null, 8, En)) : y("", !0)
1016
1017
  ])
1017
1018
  ])
1018
1019
  ], 2)), [
1019
- [w]
1020
+ [B]
1020
1021
  ]);
1021
1022
  };
1022
1023
  }
1023
1024
  });
1024
- const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1025
+ const Qn = /* @__PURE__ */ W(Dn, [["__scopeId", "data-v-b9da4354"]]), Gn = {
1025
1026
  inheritAttrs: !1
1026
- }, Yn = /* @__PURE__ */ U({
1027
- ...Xn,
1027
+ }, Wn = /* @__PURE__ */ U({
1028
+ ...Gn,
1028
1029
  __name: "aeria-options",
1029
1030
  props: {
1030
1031
  modelValue: {},
@@ -1036,42 +1037,42 @@ const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1036
1037
  columns: { default: 1 }
1037
1038
  },
1038
1039
  emits: ["update:modelValue"],
1039
- setup(d, { emit: u }) {
1040
- const a = d, t = u, o = a.readOnly || a.property.readOnly, c = "items" in a.property ? a.property.items.enum : a.property.enum, r = (_) => {
1041
- t("update:modelValue", _);
1040
+ setup(p, { emit: u }) {
1041
+ const a = p, t = u, o = a.readOnly || a.property.readOnly, c = "items" in a.property ? a.property.items.enum : a.property.enum, r = (m) => {
1042
+ t("update:modelValue", m);
1042
1043
  };
1043
- return $t(() => {
1044
+ return bt(() => {
1044
1045
  a.modelValue || t(
1045
1046
  "update:modelValue",
1046
1047
  "items" in a.property ? [] : ""
1047
1048
  );
1048
- }), (_, p) => (n(), i("div", {
1049
+ }), (m, d) => (n(), i("div", {
1049
1050
  class: "options",
1050
- style: be(`
1051
- --columns: ${_.columns};
1051
+ style: he(`
1052
+ --columns: ${m.columns};
1052
1053
  grid-template-columns: repeat(var(--columns), 1fr);
1053
1054
  `)
1054
1055
  }, [
1055
- (n(!0), i(x, null, Q(e(c), (b) => (n(), i("div", {
1056
- key: `option-${b}`,
1056
+ (n(!0), i(x, null, Q(e(c), (h) => (n(), i("div", {
1057
+ key: `option-${h}`,
1057
1058
  class: "options__checkbox"
1058
1059
  }, [
1059
- z(Kn, E({ ref_for: !0 }, {
1060
- value: b,
1060
+ z(Qn, E({ ref_for: !0 }, {
1061
+ value: h,
1061
1062
  readOnly: e(o),
1062
- property: _.property
1063
+ property: m.property
1063
1064
  }, {
1064
- "model-value": _.modelValue,
1065
+ "model-value": m.modelValue,
1065
1066
  "onUpdate:modelValue": r
1066
1067
  }), null, 16, ["model-value"])
1067
1068
  ]))), 128))
1068
1069
  ], 4));
1069
1070
  }
1070
1071
  });
1071
- const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (d) => (Ye("data-v-0e3564b6"), d = d(), Je(), d), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ A("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
1072
+ const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-790d73bb"]]), Xn = { class: "switch-wrapper" }, Yn = { key: 1 }, Jn = {
1072
1073
  inheritAttrs: !1
1073
- }, to = /* @__PURE__ */ U({
1074
- ...eo,
1074
+ }, Zn = /* @__PURE__ */ U({
1075
+ ...Jn,
1075
1076
  __name: "aeria-switch",
1076
1077
  props: {
1077
1078
  modelValue: {},
@@ -1082,63 +1083,46 @@ const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (d) =
1082
1083
  readOnly: { type: Boolean }
1083
1084
  },
1084
1085
  emits: ["update:modelValue", "change"],
1085
- setup(d, { emit: u }) {
1086
- const a = d, t = u, o = a.property, c = a.readOnly || (o == null ? void 0 : o.readOnly), r = () => {
1086
+ setup(p, { emit: u }) {
1087
+ const a = p, t = u, o = a.property, c = a.readOnly || (o == null ? void 0 : o.readOnly), r = () => {
1087
1088
  c || (t("change", !a.modelValue), t("update:modelValue", !a.modelValue));
1088
1089
  };
1089
- return (_, p) => {
1090
+ return (m, d) => {
1090
1091
  var s;
1091
- const b = te("clickable");
1092
- return n(), i("div", Pn, [
1092
+ const h = te("clickable");
1093
+ return n(), i("div", Xn, [
1093
1094
  P((n(), i("a", {
1094
1095
  class: X(`
1095
1096
  switch
1096
- ${_.modelValue && "switch--active"}
1097
+ ${m.modelValue && "switch--active"}
1097
1098
  ${e(c) && "switch--readOnly"}
1098
1099
  `),
1099
1100
  onClick: ze(r, ["stop"])
1100
1101
  }, [
1101
- Nn,
1102
+ d[0] || (d[0] = A("div", { class: "switch__slider" }, null, -1)),
1102
1103
  A("div", {
1103
1104
  class: X(`
1104
1105
  switch__dummy
1105
- ${!_.modelValue && "switch__dummy--flex"}
1106
+ ${!m.modelValue && "switch__dummy--flex"}
1106
1107
  `)
1107
1108
  }, null, 2)
1108
1109
  ], 2)), [
1109
- [b, {
1110
+ [h, {
1110
1111
  blocked: e(c)
1111
1112
  }]
1112
1113
  ]),
1113
- _.$slots.default ? C(_.$slots, "default", { key: 0 }, void 0, !0) : (n(), i("div", xn, V(((s = e(o)) == null ? void 0 : s.description) || _.propertyName), 1))
1114
+ m.$slots.default ? C(m.$slots, "default", { key: 0 }, void 0, !0) : (n(), i("div", Yn, V(((s = e(o)) == null ? void 0 : s.description) || m.propertyName), 1))
1114
1115
  ]);
1115
1116
  };
1116
1117
  }
1117
1118
  });
1118
- const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (d) => (Ye("data-v-153a2e0f"), d = d(), Je(), d), oo = { class: "picture" }, ao = {
1119
+ const Pn = /* @__PURE__ */ W(Zn, [["__scopeId", "data-v-0e3564b6"]]), Nn = { class: "picture" }, xn = {
1119
1120
  key: 0,
1120
1121
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1121
- }, lo = ["src", "alt"], so = {
1122
+ }, eo = ["src", "alt"], to = {
1122
1123
  key: 0,
1123
1124
  class: "picture__meta"
1124
- }, io = ["src"], ro = /* @__PURE__ */ Ct(() => /* @__PURE__ */ A("line", {
1125
- x1: "0",
1126
- y1: "0",
1127
- x2: "200",
1128
- y2: "200",
1129
- stroke: "#000",
1130
- "vector-effect": "non-scaling-stroke"
1131
- }, null, -1)), uo = /* @__PURE__ */ Ct(() => /* @__PURE__ */ A("line", {
1132
- x1: "200",
1133
- y1: "0",
1134
- x2: "0",
1135
- y2: "200",
1136
- stroke: "#000",
1137
- "vector-effect": "non-scaling-stroke"
1138
- }, null, -1)), co = [
1139
- ro,
1140
- uo
1141
- ], po = { key: 5 }, _o = /* @__PURE__ */ U({
1125
+ }, no = ["src"], oo = { key: 5 }, ao = /* @__PURE__ */ U({
1142
1126
  __name: "aeria-picture",
1143
1127
  props: {
1144
1128
  url: {},
@@ -1152,17 +1136,17 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (d) =
1152
1136
  expandable: { type: Boolean },
1153
1137
  meta: {}
1154
1138
  },
1155
- setup(d) {
1156
- const u = d, a = G(() => u.fileId ? `${kt}/file/${u.fileId}/picture` : u.url || u.modelValue), t = J(!1);
1139
+ setup(p) {
1140
+ const u = p, a = G(() => u.fileId ? `${$t}/file/${u.fileId}/picture` : u.url || u.modelValue), t = J(!1);
1157
1141
  return (o, c) => {
1158
- var _;
1142
+ var m;
1159
1143
  const r = te("overlay");
1160
- return n(), i("figure", oo, [
1144
+ return n(), i("figure", Nn, [
1161
1145
  a.value ? (n(), k(Ke, {
1162
1146
  key: 0,
1163
1147
  to: "main"
1164
1148
  }, [
1165
- t.value ? P((n(), i("div", ao, [
1149
+ t.value ? P((n(), i("div", xn, [
1166
1150
  A("img", {
1167
1151
  src: a.value,
1168
1152
  alt: o.alt,
@@ -1170,9 +1154,9 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (d) =
1170
1154
  max-height: 60vh;
1171
1155
  object-fit: contain;
1172
1156
  `,
1173
- onClick: c[0] || (c[0] = (p) => t.value = !0)
1174
- }, null, 8, lo),
1175
- (_ = o.meta) != null && _.owner ? (n(), i("div", so, " Criado por " + V(o.meta.owner.name) + " em " + V(o.formatDateTime(o.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1157
+ onClick: c[0] || (c[0] = (d) => t.value = !0)
1158
+ }, null, 8, eo),
1159
+ (m = o.meta) != null && m.owner ? (n(), i("div", to, " Criado por " + V(o.meta.owner.name) + " em " + V(o.formatDateTime(o.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1176
1160
  ])), [
1177
1161
  [r, {
1178
1162
  click: () => {
@@ -1189,7 +1173,7 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (d) =
1189
1173
  ${o.bordered && "picture__image--bordered"}
1190
1174
  ${o.expandable && "picture__image--expandable"}
1191
1175
  `),
1192
- style: be(`
1176
+ style: he(`
1193
1177
  object-fit: ${o.objectFit || "cover"};
1194
1178
  width: ${o.width || "100%"};
1195
1179
  height: ${o.height || "100%"};
@@ -1197,7 +1181,7 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (d) =
1197
1181
  onClick: c[1] || (c[1] = () => {
1198
1182
  o.expandable && (t.value = !0);
1199
1183
  })
1200
- }, null, 14, io)) : o.$slots.fallback ? C(o.$slots, "fallback", { key: 2 }, void 0, !0) : o.$slots.default ? C(o.$slots, "default", { key: 3 }, void 0, !0) : (n(), i("svg", {
1184
+ }, null, 14, no)) : o.$slots.fallback ? C(o.$slots, "fallback", { key: 2 }, void 0, !0) : o.$slots.default ? C(o.$slots, "default", { key: 3 }, void 0, !0) : (n(), i("svg", {
1201
1185
  key: 4,
1202
1186
  class: X(["picture__background", `
1203
1187
  ${o.bordered && "picture__image--bordered"}
@@ -1205,29 +1189,46 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (d) =
1205
1189
  xmlns: "http://www.w3.org/2000/svg",
1206
1190
  viewBox: "0 0 200 200",
1207
1191
  preserveAspectRatio: "none",
1208
- style: be(`
1192
+ style: he(`
1209
1193
  object-fit: ${o.objectFit || "cover"};
1210
1194
  width: ${o.width || "100%"};
1211
1195
  height: ${o.height || "100%"};
1212
1196
  `)
1213
- }, co, 6)),
1214
- o.$slots.caption ? (n(), i("figcaption", po, [
1197
+ }, c[2] || (c[2] = [
1198
+ A("line", {
1199
+ x1: "0",
1200
+ y1: "0",
1201
+ x2: "200",
1202
+ y2: "200",
1203
+ stroke: "#000",
1204
+ "vector-effect": "non-scaling-stroke"
1205
+ }, null, -1),
1206
+ A("line", {
1207
+ x1: "200",
1208
+ y1: "0",
1209
+ x2: "0",
1210
+ y2: "200",
1211
+ stroke: "#000",
1212
+ "vector-effect": "non-scaling-stroke"
1213
+ }, null, -1)
1214
+ ]), 6)),
1215
+ o.$slots.caption ? (n(), i("figcaption", oo, [
1215
1216
  C(o.$slots, "caption", {}, void 0, !0)
1216
1217
  ])) : y("", !0)
1217
1218
  ]);
1218
1219
  };
1219
1220
  }
1220
1221
  });
1221
- const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
1222
+ const He = /* @__PURE__ */ W(ao, [["__scopeId", "data-v-153a2e0f"]]), lo = { class: "file" }, so = { key: 0 }, io = ["href"], ro = {
1222
1223
  key: 1,
1223
1224
  class: "file__actions"
1224
- }, ho = ["accept"], bo = {
1225
+ }, uo = ["accept"], co = {
1225
1226
  key: 0,
1226
1227
  class: "file__buttons"
1227
- }, $o = {
1228
+ }, po = {
1228
1229
  key: 1,
1229
1230
  class: "file__buttons"
1230
- }, go = /* @__PURE__ */ U({
1231
+ }, mo = /* @__PURE__ */ U({
1231
1232
  __name: "aeria-file",
1232
1233
  props: {
1233
1234
  modelValue: {},
@@ -1240,24 +1241,24 @@ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1240
1241
  content: {}
1241
1242
  },
1242
1243
  emits: ["update:content", "change", "update:modelValue"],
1243
- setup(d, { emit: u }) {
1244
+ setup(p, { emit: u }) {
1244
1245
  var v;
1245
- const a = d, t = u, c = Me() ? De() : null, r = J(((v = a.modelValue) == null ? void 0 : v.file) || null), _ = G(() => {
1246
+ const a = p, t = u, c = Me() ? De() : null, r = J(((v = a.modelValue) == null ? void 0 : v.file) || null), m = G(() => {
1246
1247
  var $;
1247
1248
  return r.value ? URL.createObjectURL(r.value) : ($ = a.modelValue) == null ? void 0 : $.link;
1248
- }), p = G(() => {
1249
+ }), d = G(() => {
1249
1250
  var $, S, O;
1250
1251
  return /^image\//.test(($ = a.modelValue) == null ? void 0 : $.type) && !((S = r.value) != null && S.type) || /^image\//.test((O = r.value) == null ? void 0 : O.type);
1251
- }), b = ($) => new Promise((S) => {
1252
+ }), h = ($) => new Promise((S) => {
1252
1253
  const O = new FileReader();
1253
1254
  O.onload = () => S(O.result), O.readAsArrayBuffer($);
1254
1255
  }), s = () => {
1255
1256
  a.modelValue.tempId && t("update:modelValue", null), r.value = null;
1256
1257
  }, l = async ($) => {
1257
1258
  r.value = $.target.files[0];
1258
- const S = r.value, O = await b(S);
1259
+ const S = r.value, O = await h(S);
1259
1260
  if (c) {
1260
- const { data: { error: Y, result: ee } } = await Et(`${kt}/${c.$id}/upload?name=${S.name}`, O, {
1261
+ const { data: { error: Y, result: ee } } = await qt(`${$t}/${c.$id}/upload?name=${S.name}`, O, {
1261
1262
  params: {
1262
1263
  method: "POST",
1263
1264
  headers: {
@@ -1275,17 +1276,17 @@ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1275
1276
  } else
1276
1277
  t("update:modelValue", S);
1277
1278
  t("update:content", O), t("change", O);
1278
- }, w = async () => {
1279
+ }, B = async () => {
1279
1280
  t("update:modelValue", null);
1280
1281
  };
1281
1282
  return ($, S) => {
1282
- var O, Y, ee, h, F, le;
1283
- return n(), i("div", mo, [
1284
- r.value || (O = $.modelValue) != null && O._id ? (n(), i("div", fo, [
1285
- p.value ? (n(), k(He, {
1283
+ var O, Y, ee, b, F, le;
1284
+ return n(), i("div", lo, [
1285
+ r.value || (O = $.modelValue) != null && O._id ? (n(), i("div", so, [
1286
+ d.value ? (n(), k(He, {
1286
1287
  key: 0,
1287
- modelValue: _.value,
1288
- "onUpdate:modelValue": S[0] || (S[0] = (T) => _.value = T),
1288
+ modelValue: m.value,
1289
+ "onUpdate:modelValue": S[0] || (S[0] = (T) => m.value = T),
1289
1290
  alt: "Image preview",
1290
1291
  expandable: $.readOnly,
1291
1292
  class: X(`
@@ -1296,16 +1297,16 @@ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1296
1297
  (ee = $.modelValue) != null && ee._id ? (n(), i("a", {
1297
1298
  key: 1,
1298
1299
  href: $.modelValue.download_link
1299
- }, V($.modelValue.name), 9, vo)) : y("", !0)
1300
+ }, V($.modelValue.name), 9, io)) : y("", !0)
1300
1301
  ])) : y("", !0),
1301
- $.readOnly ? y("", !0) : (n(), i("div", yo, [
1302
+ $.readOnly ? y("", !0) : (n(), i("div", ro, [
1302
1303
  A("input", {
1303
1304
  ref: "file",
1304
1305
  type: "file",
1305
- accept: (F = (h = $.property) == null ? void 0 : h.accept) == null ? void 0 : F.join(","),
1306
+ accept: (F = (b = $.property) == null ? void 0 : b.accept) == null ? void 0 : F.join(","),
1306
1307
  onChange: l
1307
- }, null, 40, ho),
1308
- r.value ? (n(), i("div", bo, [
1308
+ }, null, 40, uo),
1309
+ r.value ? (n(), i("div", co, [
1309
1310
  z(ie, {
1310
1311
  small: "",
1311
1312
  onClick: ze(s, ["prevent"])
@@ -1315,10 +1316,10 @@ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1315
1316
  ]),
1316
1317
  _: 1
1317
1318
  })
1318
- ])) : (le = $.modelValue) != null && le._id ? (n(), i("div", $o, [
1319
+ ])) : (le = $.modelValue) != null && le._id ? (n(), i("div", po, [
1319
1320
  z(ie, {
1320
1321
  small: "",
1321
- onClick: ze(w, ["prevent"])
1322
+ onClick: ze(B, ["prevent"])
1322
1323
  }, {
1323
1324
  default: f(() => [
1324
1325
  D(V(e(R)("action.remove", { capitalize: !0 })), 1)
@@ -1331,22 +1332,22 @@ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1331
1332
  };
1332
1333
  }
1333
1334
  });
1334
- const ko = /* @__PURE__ */ W(go, [["__scopeId", "data-v-d491b7ce"]]), Vo = { class: "container" }, Co = {
1335
+ const _o = /* @__PURE__ */ W(mo, [["__scopeId", "data-v-d491b7ce"]]), fo = { class: "container" }, vo = {
1335
1336
  key: 1,
1336
1337
  class: "container__footer"
1337
- }, Oo = /* @__PURE__ */ U({
1338
+ }, yo = /* @__PURE__ */ U({
1338
1339
  __name: "aeria-search-container",
1339
1340
  props: {
1340
1341
  observeScroll: { type: Boolean }
1341
1342
  },
1342
1343
  emits: ["endReached"],
1343
- setup(d, { emit: u }) {
1344
- const a = d, t = u, o = J(null), c = a.observeScroll ? Pe(o, {
1344
+ setup(p, { emit: u }) {
1345
+ const a = p, t = u, o = J(null), c = a.observeScroll ? Je(o, {
1345
1346
  antecipate: 100
1346
1347
  }).reachedEnd : null;
1347
1348
  return c !== null && ue(c, (r) => {
1348
1349
  r && t("endReached", r);
1349
- }), (r, _) => (n(), i("div", Vo, [
1350
+ }), (r, m) => (n(), i("div", fo, [
1350
1351
  r.$slots.default ? (n(), i("div", {
1351
1352
  key: 0,
1352
1353
  ref_key: "containerEl",
@@ -1355,13 +1356,13 @@ const ko = /* @__PURE__ */ W(go, [["__scopeId", "data-v-d491b7ce"]]), Vo = { cla
1355
1356
  }, [
1356
1357
  C(r.$slots, "default", {}, void 0, !0)
1357
1358
  ], 512)) : y("", !0),
1358
- r.$slots.footer ? (n(), i("div", Co, [
1359
+ r.$slots.footer ? (n(), i("div", vo, [
1359
1360
  C(r.$slots, "footer", {}, void 0, !0)
1360
1361
  ])) : y("", !0)
1361
1362
  ]));
1362
1363
  }
1363
1364
  });
1364
- const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { class: "item__values" }, Ao = /* @__PURE__ */ U({
1365
+ const mt = /* @__PURE__ */ W(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { class: "item__values" }, ho = /* @__PURE__ */ U({
1365
1366
  __name: "aeria-search-item",
1366
1367
  props: {
1367
1368
  item: {},
@@ -1371,16 +1372,16 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1371
1372
  readOnly: { type: Boolean }
1372
1373
  },
1373
1374
  emits: ["update:modelValue", "change"],
1374
- setup(d, { emit: u }) {
1375
- const a = Ie(), t = d, o = u, c = t.property, r = me(c), _ = De(), p = G(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: w }) => t.item._id === w) : t.modelValue && t.modelValue._id === t.item._id), b = () => {
1376
- if (p.value)
1375
+ setup(p, { emit: u }) {
1376
+ const a = Ie(), t = p, o = u, c = t.property, r = _e(c), m = De(), d = G(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: B }) => t.item._id === B) : t.modelValue && t.modelValue._id === t.item._id), h = () => {
1377
+ if (d.value)
1377
1378
  return;
1378
- const w = ($) => $.filter((S) => !!(S != null && S._id)), v = "items" in c ? w(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1379
+ const B = ($) => $.filter((S) => !!(S != null && S._id)), v = "items" in c ? B(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1379
1380
  Array.isArray(v) ? o("update:modelValue", v.concat([t.item])) : o("update:modelValue", t.item), o("change", t.item);
1380
- }, s = async (w) => {
1381
- if (r.purge && (w != null && w.purge)) {
1381
+ }, s = async (B) => {
1382
+ if (r.purge && (B != null && B.purge)) {
1382
1383
  const { _id: $ } = t.item;
1383
- await _.$actions.remove({
1384
+ await m.$actions.remove({
1384
1385
  filters: {
1385
1386
  _id: $
1386
1387
  }
@@ -1398,25 +1399,25 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1398
1399
  });
1399
1400
  return;
1400
1401
  }
1401
- return p.value ? s() : b();
1402
+ return d.value ? s() : h();
1402
1403
  };
1403
- return (w, v) => {
1404
+ return (B, v) => {
1404
1405
  const $ = te("clickable");
1405
1406
  return P((n(), i("div", {
1406
1407
  class: X({
1407
1408
  item: !0,
1408
- "item--selected": p.value
1409
+ "item--selected": d.value
1409
1410
  }),
1410
1411
  onClick: l
1411
1412
  }, [
1412
- C(w.$slots, "default", {}, void 0, !0),
1413
- A("div", Io, [
1414
- (n(!0), i(x, null, Q(w.indexes, (S, O) => (n(), i("div", {
1415
- key: `index-${w.item._id}-${O}`,
1413
+ C(B.$slots, "default", {}, void 0, !0),
1414
+ A("div", bo, [
1415
+ (n(!0), i(x, null, Q(B.indexes, (S, O) => (n(), i("div", {
1416
+ key: `index-${B.item._id}-${O}`,
1416
1417
  class: "item__value"
1417
- }, V(w.item[S]), 1))), 128))
1418
+ }, V(B.item[S]), 1))), 128))
1418
1419
  ]),
1419
- w.readOnly ? (n(), k(Z, {
1420
+ B.readOnly ? (n(), k(Z, {
1420
1421
  key: 0,
1421
1422
  icon: "arrow-square-out",
1422
1423
  style: { "--icon-color": "var(--theme-brand-color-contrast)" }
@@ -1427,10 +1428,10 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1427
1428
  };
1428
1429
  }
1429
1430
  });
1430
- const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { class: "search__panel" }, Bo = { key: 1 }, So = { key: 0 }, To = { key: 1 }, jo = { class: "search__summary" }, Ro = {
1431
+ const Ge = /* @__PURE__ */ W(ho, [["__scopeId", "data-v-3b5a7221"]]), $o = { class: "search__panel" }, go = { key: 1 }, ko = { key: 0 }, Vo = { key: 1 }, Co = { class: "search__summary" }, Oo = {
1431
1432
  key: 1,
1432
1433
  class: "search"
1433
- }, Lo = { key: 0 }, Ee = 10, zo = /* @__PURE__ */ U({
1434
+ }, Io = { key: 0 }, Ee = 10, Ao = /* @__PURE__ */ U({
1434
1435
  __name: "aeria-search",
1435
1436
  props: {
1436
1437
  modelValue: {},
@@ -1443,22 +1444,22 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1443
1444
  panel: { default: void 0 }
1444
1445
  },
1445
1446
  emits: ["update:modelValue", "change", "update:panel"],
1446
- setup(d, { emit: u }) {
1447
- const a = d, t = me(a.property), o = a.panel !== void 0 ? G(() => a.panel) : J(!1), c = u, r = re(me(a.property).$ref), _ = Me(), p = _ ? De() : null, b = t.indexes;
1448
- ye(Fe, me(a.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1447
+ setup(p, { emit: u }) {
1448
+ const a = p, t = _e(a.property), o = a.panel !== void 0 ? G(() => a.panel) : J(!1), c = u, r = re(_e(a.property).$ref), m = Me(), d = m ? De() : null, h = t.indexes;
1449
+ ye(Fe, _e(a.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1449
1450
  const s = J(a.modelValue), l = J({
1450
1451
  data: [],
1451
1452
  pagination: {}
1452
- }), w = G(() => l.value.data), v = G(() => l.value.pagination), $ = J(0), S = J(!1), O = J(""), Y = () => {
1453
+ }), B = G(() => l.value.data), v = G(() => l.value.pagination), $ = J(0), S = J(!1), O = J(""), Y = () => {
1453
1454
  const M = {};
1454
- if (_) {
1455
- const H = e(_);
1456
- M[H] = p;
1455
+ if (m) {
1456
+ const H = e(m);
1457
+ M[H] = d;
1457
1458
  }
1458
- return t.constraints ? zt(t.constraints, M) : {};
1459
+ return t.constraints ? Gt(t.constraints, M) : {};
1459
1460
  }, ee = () => {
1460
- w.value.length < v.value.recordsTotal && ($.value += 1, F());
1461
- }, h = async () => O.value.length === 0 ? r.$actions.custom("getAll", {
1461
+ B.value.length < v.value.recordsTotal && ($.value += 1, F());
1462
+ }, b = async () => O.value.length === 0 ? r.$actions.custom("getAll", {
1462
1463
  limit: Ee,
1463
1464
  offset: $.value * Ee,
1464
1465
  filters: Y()
@@ -1475,7 +1476,7 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1475
1476
  }), F = async () => {
1476
1477
  if (r.loading.getAll)
1477
1478
  return;
1478
- const { error: M, result: H } = await h();
1479
+ const { error: M, result: H } = await b();
1479
1480
  if (M) {
1480
1481
  re("meta").$actions.spawnToast({
1481
1482
  text: "Request failed",
@@ -1484,7 +1485,7 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1484
1485
  return;
1485
1486
  }
1486
1487
  l.value.pagination = H.pagination, $.value === 0 && l.value.data.splice(0), l.value.data.push(...H.data);
1487
- }, [le] = Vt({
1488
+ }, [le] = gt({
1488
1489
  delay: 800
1489
1490
  })(() => {
1490
1491
  $.value = 0, F(), S.value = !1;
@@ -1534,9 +1535,9 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1534
1535
  })
1535
1536
  ]),
1536
1537
  default: f(() => {
1537
- var ae, m;
1538
+ var ae, _;
1538
1539
  return [
1539
- A("div", wo, [
1540
+ A("div", $o, [
1540
1541
  z(ke, E({
1541
1542
  modelValue: O.value,
1542
1543
  "onUpdate:modelValue": H[0] || (H[0] = (L) => O.value = L)
@@ -1547,15 +1548,15 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1547
1548
  inputType: "search"
1548
1549
  }
1549
1550
  }, { onInput: T }), null, 16, ["modelValue"]),
1550
- w.value.length ? (n(), k(ft, {
1551
+ B.value.length ? (n(), k(mt, {
1551
1552
  key: 0,
1552
1553
  "observe-scroll": "",
1553
1554
  onEndReached: ee
1554
1555
  }, {
1555
1556
  default: f(() => [
1556
- (n(!0), i(x, null, Q(w.value, (L) => (n(), k(Ge, E({ ref_for: !0 }, {
1557
+ (n(!0), i(x, null, Q(B.value, (L) => (n(), k(Ge, E({ ref_for: !0 }, {
1557
1558
  item: L,
1558
- indexes: e(b),
1559
+ indexes: e(h),
1559
1560
  property: M.property
1560
1561
  }, {
1561
1562
  key: `matching-${L._id}`,
@@ -1564,35 +1565,35 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1564
1565
  }), null, 16, ["modelValue"]))), 128))
1565
1566
  ]),
1566
1567
  _: 1
1567
- })) : (n(), i("div", Bo, [
1568
- S.value ? (n(), i("div", So, V(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(r).loading.getAll && Object.values(O.value).filter((L) => !!L).length > 0 && !("items" in M.property && ((ae = M.modelValue) != null && ae.length) || !Array.isArray(M.modelValue) && ((m = M.modelValue) != null && m._id)) ? (n(), i("div", To, V(e(R)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1568
+ })) : (n(), i("div", go, [
1569
+ S.value ? (n(), i("div", ko, V(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(r).loading.getAll && Object.values(O.value).filter((L) => !!L).length > 0 && !("items" in M.property && ((ae = M.modelValue) != null && ae.length) || !Array.isArray(M.modelValue) && ((_ = M.modelValue) != null && _._id)) ? (n(), i("div", Vo, V(e(R)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1569
1570
  ]))
1570
1571
  ]),
1571
- A("div", jo, V(e(R)("showing", { capitalize: !0 })) + " " + V(w.value.length) + " " + V(e(R)("of")) + " " + V(v.value.recordsTotal), 1)
1572
+ A("div", Co, V(e(R)("showing", { capitalize: !0 })) + " " + V(B.value.length) + " " + V(e(R)("of")) + " " + V(v.value.recordsTotal), 1)
1572
1573
  ];
1573
1574
  }),
1574
1575
  _: 1
1575
1576
  }, 8, ["title", "model-value"])
1576
1577
  ])) : y("", !0),
1577
- M.selectOnly ? y("", !0) : (n(), i("div", Ro, [
1578
- z(ft, null, ce({
1578
+ M.selectOnly ? y("", !0) : (n(), i("div", Oo, [
1579
+ z(mt, null, ce({
1579
1580
  default: f(() => {
1580
1581
  var ae;
1581
1582
  return [
1582
- "items" in M.property ? (n(), i("div", Lo, [
1583
- (n(!0), i(x, null, Q(M.modelValue, (m) => (n(), k(Ge, E({ ref_for: !0 }, {
1584
- item: m,
1585
- indexes: e(b),
1583
+ "items" in M.property ? (n(), i("div", Io, [
1584
+ (n(!0), i(x, null, Q(M.modelValue, (_) => (n(), k(Ge, E({ ref_for: !0 }, {
1585
+ item: _,
1586
+ indexes: e(h),
1586
1587
  property: M.property,
1587
1588
  readOnly: M.readOnly,
1588
1589
  modelValue: M.modelValue
1589
1590
  }, {
1590
- key: `selected-${m._id}`,
1591
+ key: `selected-${_._id}`,
1591
1592
  "onUpdate:modelValue": ne
1592
1593
  }), null, 16))), 128))
1593
1594
  ])) : (ae = M.modelValue) != null && ae._id ? (n(), k(Ge, E({ key: 1 }, {
1594
1595
  item: M.modelValue,
1595
- indexes: e(b),
1596
+ indexes: e(h),
1596
1597
  property: e(t),
1597
1598
  readOnly: M.readOnly,
1598
1599
  modelValue: M.modelValue
@@ -1624,13 +1625,13 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1624
1625
  };
1625
1626
  }
1626
1627
  });
1627
- const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (d, u) => {
1628
- const a = "items" in d ? d.items : d, t = {
1629
- options: Jn,
1630
- select: Ne,
1631
- switch: no,
1632
- file: ko,
1633
- search: qo,
1628
+ const Bo = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u) => {
1629
+ const a = "items" in p ? p.items : p, t = {
1630
+ options: Kn,
1631
+ select: Ze,
1632
+ switch: Pn,
1633
+ file: _o,
1634
+ search: Bo,
1634
1635
  input: ke,
1635
1636
  form: Qe
1636
1637
  }, o = (() => {
@@ -1640,39 +1641,39 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (d, u
1640
1641
  if (a.type === "boolean")
1641
1642
  return "switch";
1642
1643
  }
1643
- if ("element" in d) {
1644
- if (d.element === "checkbox" || d.element === "radio")
1644
+ if ("element" in p) {
1645
+ if (p.element === "checkbox" || p.element === "radio")
1645
1646
  return "options";
1646
- if (d.element === "select")
1647
+ if (p.element === "select")
1647
1648
  return "select";
1648
1649
  }
1649
- const c = me(d);
1650
- return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in d && d.uniqueItems ? "options" : "enum" in a ? "select" : "input";
1650
+ const c = _e(p);
1651
+ return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in p && p.uniqueItems ? "options" : "enum" in a ? "select" : "input";
1651
1652
  })();
1652
1653
  return u[o] ? u[o] : t[o];
1653
- }, Mo = (d, u, a) => {
1654
- d ?? (d = []);
1654
+ }, wo = (p, u, a) => {
1655
+ p ?? (p = []);
1655
1656
  const t = "items" in u ? u.items : u;
1656
1657
  if ("$ref" in t) {
1657
1658
  const o = re(t.$ref, a), c = Ce(o.$freshItem);
1658
- return d.push(c);
1659
+ return p.push(c);
1659
1660
  }
1660
- return "properties" in t ? d.push(qt(t)) : "type" in t && t.type === "boolean" ? d.push({}) : d.push(null);
1661
- }, Fo = (d, u) => {
1662
- d.splice(u, 1);
1663
- }, Uo = {
1661
+ return "properties" in t ? p.push(jt(t)) : "type" in t && t.type === "boolean" ? p.push({}) : p.push(null);
1662
+ }, So = (p, u) => {
1663
+ p.splice(u, 1);
1664
+ }, To = {
1664
1665
  key: 0,
1665
1666
  class: "form__header"
1666
- }, Eo = { class: "form__fieldset" }, Ho = { key: 0 }, Do = ["innerHTML"], Qo = ["onInput"], Go = { key: 4 }, Wo = { value: "true" }, Ko = { value: "false" }, Xo = {
1667
+ }, jo = { class: "form__fieldset" }, Ro = { key: 0 }, Lo = ["innerHTML"], zo = ["onInput"], qo = { key: 4 }, Mo = { value: "true" }, Fo = { value: "false" }, Uo = {
1667
1668
  key: 5,
1668
1669
  style: { display: "grid", "row-gap": ".4rem" }
1669
- }, Yo = { key: 0 }, Jo = { class: "form__array" }, Zo = { style: { "flex-grow": "1" } }, Po = {
1670
+ }, Eo = { key: 0 }, Ho = { class: "form__array" }, Do = { style: { "flex-grow": "1" } }, Qo = {
1670
1671
  key: 7,
1671
1672
  class: "form__validation-error"
1672
- }, No = { key: 0 }, xo = { key: 1 }, ea = {
1673
+ }, Go = { key: 0 }, Wo = { key: 1 }, Ko = {
1673
1674
  key: 2,
1674
1675
  class: "form__footer"
1675
- }, ta = /* @__PURE__ */ U({
1676
+ }, Xo = /* @__PURE__ */ U({
1676
1677
  __name: "aeria-form",
1677
1678
  props: {
1678
1679
  modelValue: {},
@@ -1699,18 +1700,18 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (d, u
1699
1700
  includeTimestamps: { type: Boolean }
1700
1701
  },
1701
1702
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
1702
- setup(d, { emit: u }) {
1703
+ setup(p, { emit: u }) {
1703
1704
  var ae;
1704
- const a = Ze(), t = d, o = u;
1705
- $t(() => {
1705
+ const a = Ye(), t = p, o = u;
1706
+ bt(() => {
1706
1707
  t.modelValue || o("update:modelValue", t.property && "items" in t.property ? [] : {});
1707
1708
  });
1708
- const c = t.property && me(t.property), r = c ? c.$ref : t.collection || Me(), _ = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), p = r ? re(e(r)) : null;
1709
+ const c = t.property && _e(t.property), r = c ? c.$ref : t.collection || Me(), m = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), d = r ? re(e(r)) : null;
1709
1710
  !r && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1710
1711
  collection prop, some features may not work as intended`);
1711
- const b = J(!1), s = G(() => {
1712
- const m = (() => !t.form && t.property ? "type" in t.property && t.property.type === "object" ? "properties" in t.property ? t.property.properties : void 0 : p == null ? void 0 : p.properties : t.form)();
1713
- if (!m)
1712
+ const h = J(!1), s = G(() => {
1713
+ const _ = (() => !t.form && t.property ? "type" in t.property && t.property.type === "object" ? "properties" in t.property ? t.property.properties : void 0 : d == null ? void 0 : d.properties : t.form)();
1714
+ if (!_)
1714
1715
  return;
1715
1716
  const L = {};
1716
1717
  if (t.includeId && (L._id = {
@@ -1723,164 +1724,164 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (d, u
1723
1724
  readOnly: !0,
1724
1725
  isTimestamp: !0
1725
1726
  };
1726
- m.created_at || (L.created_at = K), m.created_at || (L.updated_at = K);
1727
+ _.created_at || (L.created_at = K), _.created_at || (L.updated_at = K);
1727
1728
  }
1728
- return Object.assign(L, m), L;
1729
- }), l = G(() => t.layout || (p == null ? void 0 : p.description.formLayout)), w = (m) => {
1730
- const L = _e(m, t[m]);
1731
- return t[m] && ye(m, t[m]), L;
1732
- }, v = G(() => t.validationErrors !== null ? t.validationErrors : p == null ? void 0 : p.validationErrors), $ = w("formComponents") || {}, S = w("propertyComponents") || {}, O = w("omitFormHeader"), Y = w("omitInputLabels"), ee = w("innerInputLabel");
1729
+ return Object.assign(L, _), L;
1730
+ }), l = G(() => t.layout || (d == null ? void 0 : d.description.formLayout)), B = (_) => {
1731
+ const L = me(_, t[_]);
1732
+ return t[_] && ye(_, t[_]), L;
1733
+ }, v = G(() => t.validationErrors !== null ? t.validationErrors : d == null ? void 0 : d.validationErrors), $ = B("formComponents") || {}, S = B("propertyComponents") || {}, O = B("omitFormHeader"), Y = B("omitInputLabels"), ee = B("innerInputLabel");
1733
1734
  r && ye(Fe, r), ye("searchOnly", t.searchOnly);
1734
- const h = (m) => s.value ? Object.entries(s.value).filter(([L, K]) => !K.noForm && m([
1735
+ const b = (_) => s.value ? Object.entries(s.value).filter(([L, K]) => !K.noForm && _([
1735
1736
  L,
1736
1737
  K
1737
- ])) : null, F = (m, L) => {
1738
- var B;
1739
- if (t.searchOnly || !r || t.includeId && m === "_id" || t.includeTimestamps && L.isTimestamp)
1738
+ ])) : null, F = (_, L) => {
1739
+ var w;
1740
+ if (t.searchOnly || !r || t.includeId && _ === "_id" || t.includeTimestamps && L.isTimestamp)
1740
1741
  return !0;
1741
- const K = t.property && "properties" in t.property ? t.property.form : (B = p == null ? void 0 : p.description) == null ? void 0 : B.form;
1742
- return !K || K.includes(m);
1743
- }, le = h(([m, L]) => F(m, L)), T = Ue(), g = {}, j = (m, L) => {
1744
- var q, fe, we, Be;
1745
- const K = [], B = ((fe = (q = l.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((Be = (we = l.value) == null ? void 0 : we.fields) == null ? void 0 : Be.$default);
1742
+ const K = t.property && "properties" in t.property ? t.property.form : (w = d == null ? void 0 : d.description) == null ? void 0 : w.form;
1743
+ return !K || K.includes(_);
1744
+ }, le = b(([_, L]) => F(_, L)), T = Ue(), g = {}, j = (_, L) => {
1745
+ var q, fe, Be, we;
1746
+ const K = [], w = ((fe = (q = l.value) == null ? void 0 : q.fields) == null ? void 0 : fe[_]) || ((we = (Be = l.value) == null ? void 0 : Be.fields) == null ? void 0 : we.$default);
1746
1747
  if (!L)
1747
1748
  return;
1748
- if (B != null && B.if && !t.searchOnly) {
1749
+ if (w != null && w.if && !t.searchOnly) {
1749
1750
  const Se = We(
1750
1751
  t.modelValue,
1751
- B.if
1752
+ w.if
1752
1753
  );
1753
- Se.satisfied || (g[m] && (p ? t.modelValue[m] = typeof p.$freshItem[m] == "object" ? Ce(p.$freshItem[m]) : p.$freshItem[m] : t.modelValue[m] = [
1754
+ Se.satisfied || (g[_] && (d ? t.modelValue[_] = typeof d.$freshItem[_] == "object" ? Ce(d.$freshItem[_]) : d.$freshItem[_] : t.modelValue[_] = [
1754
1755
  void 0,
1755
1756
  null
1756
- ].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), K.push("display: none;")), g[m] = Se.satisfied;
1757
+ ].includes(t.modelValue[_]) ? null : t.modelValue[_].constructor()), K.push("display: none;")), g[_] = Se.satisfied;
1757
1758
  }
1758
- const I = T.value.md && (B == null ? void 0 : B.span) || 6;
1759
+ const I = T.value.md && (w == null ? void 0 : w.span) || 6;
1759
1760
  return K.push(`
1760
1761
  --field-span: ${I};
1761
1762
  grid-column: span var(--field-span) / span var(--field-span);
1762
- `), B && (B.verticalSpacing && K.push(`
1763
- --vertical-spacing: ${B.verticalSpacing};
1763
+ `), w && (w.verticalSpacing && K.push(`
1764
+ --vertical-spacing: ${w.verticalSpacing};
1764
1765
  padding: var(--vertical-spacing) 0;
1765
- `), B.separator && K.push(`
1766
+ `), w.separator && K.push(`
1766
1767
  border-top: 1px solid var(--theme-border-color);
1767
1768
  border-width: 1px 0 1px 0;
1768
1769
  padding: 1rem 0;
1769
1770
  margin: 1rem 0;
1770
1771
  `)), K.join("");
1771
- }, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe = G(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : p == null ? void 0 : p.description.required), M = G(() => t.form ? Ht(
1772
+ }, ne = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, oe = G(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : d == null ? void 0 : d.description.required), M = G(() => t.form ? Mt(
1772
1773
  t.modelValue,
1773
1774
  t.form,
1774
1775
  oe.value,
1775
- p == null ? void 0 : p.description
1776
- ) : !0), H = (m, L) => {
1776
+ d == null ? void 0 : d.description
1777
+ ) : !0), H = (_, L) => {
1777
1778
  var K;
1778
- return (K = v.value) != null && K[m] && (typeof v.value[m].index != "number" || v.value[m].index === L) ? v.value[m].errors : null;
1779
- }, se = (m) => {
1780
- if (!(_ || m.readOnly) && !t.parentPropertyName && !t.parentCollection && !b.value)
1781
- return b.value = !0, !0;
1779
+ return (K = v.value) != null && K[_] && (typeof v.value[_].index != "number" || v.value[_].index === L) ? v.value[_].errors : null;
1780
+ }, se = (_) => {
1781
+ if (!(m || _.readOnly) && !t.parentPropertyName && !t.parentCollection && !h.value)
1782
+ return h.value = !0, !0;
1782
1783
  };
1783
- return (m, L) => {
1784
- const K = te("clickable"), B = te("focus");
1784
+ return (_, L) => {
1785
+ const K = te("clickable"), w = te("focus");
1785
1786
  return n(), i("form", {
1786
1787
  class: "form",
1787
- style: be(`row-gap: ${e(O) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1788
+ style: he(`row-gap: ${e(O) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1788
1789
  }, [
1789
- m.$slots.header && !e(O) ? (n(), i("header", Uo, [
1790
- C(m.$slots, "header", {}, void 0, !0)
1790
+ _.$slots.header && !e(O) ? (n(), i("header", To, [
1791
+ C(_.$slots, "header", {}, void 0, !0)
1791
1792
  ])) : y("", !0),
1792
- C(m.$slots, "default", {}, void 0, !0),
1793
- A("fieldset", Eo, [
1793
+ C(_.$slots, "default", {}, void 0, !0),
1794
+ A("fieldset", jo, [
1794
1795
  (n(!0), i(x, null, Q(e(le), ([I, q]) => {
1795
- var fe, we, Be, Se, xe, et, tt, nt, ot, at, lt, st, it;
1796
+ var fe, Be, we, Se, Pe, Ne, xe, et, tt, nt, ot, at, lt;
1796
1797
  return n(), i("div", {
1797
1798
  key: `field-${I}`,
1798
- style: be(j(I, q)),
1799
+ style: he(j(I, q)),
1799
1800
  class: "form__field"
1800
1801
  }, [
1801
- (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), i("label", Ho, [
1802
+ (!("type" in q) || q.type !== "boolean" || _.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), i("label", Ro, [
1802
1803
  A("div", {
1803
1804
  class: X({
1804
1805
  "form__field-label": !0,
1805
1806
  "form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
1806
- "form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!oe.value || e(Mt)(I, oe.value, m.modelValue))
1807
+ "form__field-required-hint": _.highlightRequired && !e(m) && !_.searchOnly && (!oe.value || e(Rt)(I, oe.value, _.modelValue))
1807
1808
  })
1808
1809
  }, V(q.description || e(R)(I)), 3),
1809
1810
  q.hint ? (n(), i("div", {
1810
1811
  key: 0,
1811
1812
  innerHTML: q.hint
1812
- }, null, 8, Do)) : y("", !0)
1813
+ }, null, 8, Lo)) : y("", !0)
1813
1814
  ])) : y("", !0),
1814
- m.$slots[`field-${I}`] ? C(m.$slots, `field-${I}`, E({
1815
+ _.$slots[`field-${I}`] ? C(_.$slots, `field-${I}`, E({
1815
1816
  key: 1,
1816
1817
  ref_for: !0
1817
1818
  }, {
1818
- readOnly: e(_),
1819
+ readOnly: e(m),
1819
1820
  property: q,
1820
1821
  propertyName: I,
1821
- modelValue: m.modelValue
1822
- }), void 0, !0) : (Be = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Be.component && e(S)[m.layout.fields[I].component.name] ? (n(), k(he(e(S)[m.layout.fields[I].component.name]), E({
1822
+ modelValue: _.modelValue
1823
+ }), void 0, !0) : (we = (Be = (fe = _.layout) == null ? void 0 : fe.fields) == null ? void 0 : Be[I]) != null && we.component && e(S)[_.layout.fields[I].component.name] ? (n(), k(be(e(S)[_.layout.fields[I].component.name]), E({
1823
1824
  key: 2,
1824
- modelValue: m.modelValue[I],
1825
- "onUpdate:modelValue": (N) => m.modelValue[I] = N,
1825
+ modelValue: _.modelValue[I],
1826
+ "onUpdate:modelValue": (N) => _.modelValue[I] = N,
1826
1827
  ref_for: !0
1827
1828
  }, {
1828
- readOnly: e(_),
1829
+ readOnly: e(m),
1829
1830
  property: q,
1830
1831
  propertyName: I,
1831
- ...m.layout.fields[I].component.props || {}
1832
+ ..._.layout.fields[I].component.props || {}
1832
1833
  }, {
1833
1834
  onInput: (N) => o("input", I),
1834
1835
  onChange: L[0] || (L[0] = (N) => o("change", N))
1835
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && m.searchOnly ? (n(), i("div", {
1836
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && _.searchOnly ? (n(), i("div", {
1836
1837
  key: 3,
1837
1838
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1838
1839
  onInput: (N) => o("input", I),
1839
1840
  onChange: L[1] || (L[1] = (N) => o("change", N))
1840
1841
  }, [
1841
1842
  z(ke, E({
1842
- modelValue: m.modelValue[I].$gte,
1843
- "onUpdate:modelValue": (N) => m.modelValue[I].$gte = N,
1843
+ modelValue: _.modelValue[I].$gte,
1844
+ "onUpdate:modelValue": (N) => _.modelValue[I].$gte = N,
1844
1845
  ref_for: !0
1845
1846
  }, {
1846
1847
  property: q,
1847
1848
  propertyName: I
1848
1849
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1849
1850
  z(ke, E({
1850
- modelValue: m.modelValue[I].$lte,
1851
- "onUpdate:modelValue": (N) => m.modelValue[I].$lte = N,
1851
+ modelValue: _.modelValue[I].$lte,
1852
+ "onUpdate:modelValue": (N) => _.modelValue[I].$lte = N,
1852
1853
  ref_for: !0
1853
1854
  }, {
1854
1855
  property: q,
1855
1856
  propertyName: I
1856
1857
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1857
- ], 40, Qo)) : "type" in q && q.type === "boolean" && m.searchOnly ? (n(), i("div", Go, [
1858
- z(Ne, E({ ref_for: !0 }, {
1858
+ ], 40, zo)) : "type" in q && q.type === "boolean" && _.searchOnly ? (n(), i("div", qo, [
1859
+ z(Ze, E({ ref_for: !0 }, {
1859
1860
  property: q,
1860
1861
  propertyName: I
1861
1862
  }, {
1862
1863
  "boolean-ref": "",
1863
- "model-value": m.modelValue[I],
1864
+ "model-value": _.modelValue[I],
1864
1865
  onChange: L[2] || (L[2] = (N) => o("change", N)),
1865
1866
  "onUpdate:modelValue": (N) => {
1866
- m.modelValue[I] = N == "true" ? !0 : N == "false" ? !1 : null;
1867
+ _.modelValue[I] = N == "true" ? !0 : N == "false" ? !1 : null;
1867
1868
  }
1868
1869
  }), {
1869
1870
  default: f(() => [
1870
- A("option", Wo, V(e(R)("yes")), 1),
1871
- A("option", Ko, V(e(R)("no")), 1)
1871
+ A("option", Mo, V(e(R)("yes")), 1),
1872
+ A("option", Fo, V(e(R)("no")), 1)
1872
1873
  ]),
1873
1874
  _: 2
1874
1875
  }, 1040, ["model-value", "onUpdate:modelValue"])
1875
- ])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(), i("div", Xo, [
1876
- e(_) ? y("", !0) : (n(), i("div", Yo, [
1876
+ ])) : _.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(), i("div", Uo, [
1877
+ e(m) ? y("", !0) : (n(), i("div", Eo, [
1877
1878
  z(ie, {
1878
1879
  small: "",
1879
1880
  variant: "alt",
1880
1881
  icon: "plus",
1881
- disabled: !("inline" in q.items && q.items.inline) && (((Se = m.modelValue[I]) == null ? void 0 : Se.length) >= q.maxItems || ne((et = m.modelValue[I]) == null ? void 0 : et[((xe = m.modelValue[I]) == null ? void 0 : xe.length) - 1])),
1882
+ disabled: !("inline" in q.items && q.items.inline) && (((Se = _.modelValue[I]) == null ? void 0 : Se.length) >= q.maxItems || ne((Ne = _.modelValue[I]) == null ? void 0 : Ne[((Pe = _.modelValue[I]) == null ? void 0 : Pe.length) - 1])),
1882
1883
  onClick: ze((N) => {
1883
- m.modelValue[I] || (m.modelValue[I] = []), e(Mo)(m.modelValue[I], q, e(a));
1884
+ _.modelValue[I] || (_.modelValue[I] = []), e(wo)(_.modelValue[I], q, e(a));
1884
1885
  }, ["prevent"])
1885
1886
  }, {
1886
1887
  default: f(() => [
@@ -1889,25 +1890,25 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (d, u
1889
1890
  _: 2
1890
1891
  }, 1032, ["disabled", "onClick"])
1891
1892
  ])),
1892
- A("div", Jo, [
1893
- (n(!0), i(x, null, Q(m.modelValue[I], (N, Te) => {
1894
- var rt, ut, ct, dt, pt, _t;
1893
+ A("div", Ho, [
1894
+ (n(!0), i(x, null, Q(_.modelValue[I], (N, Te) => {
1895
+ var st, it, rt, ut, ct, dt;
1895
1896
  return n(), i("div", {
1896
- key: `rep-${I}-${e(Dt)(N, Te)}`,
1897
+ key: `rep-${I}-${e(Ft)(N, Te)}`,
1897
1898
  class: "form__array-item"
1898
1899
  }, [
1899
- A("div", Zo, [
1900
- (n(), k(he(e(vt)(q, e($))), E({
1901
- modelValue: m.modelValue[I][Te],
1902
- "onUpdate:modelValue": (je) => m.modelValue[I][Te] = je,
1900
+ A("div", Do, [
1901
+ (n(), k(be(e(_t)(q, e($))), E({
1902
+ modelValue: _.modelValue[I][Te],
1903
+ "onUpdate:modelValue": (je) => _.modelValue[I][Te] = je,
1903
1904
  ref_for: !0
1904
1905
  }, {
1905
- readOnly: e(_),
1906
+ readOnly: e(m),
1906
1907
  property: q.items,
1907
1908
  propertyName: I,
1908
1909
  parentCollection: e(r),
1909
- parentPropertyName: m.parentPropertyName,
1910
- columns: ((ct = (ut = (rt = m.layout) == null ? void 0 : rt.fields) == null ? void 0 : ut[I]) == null ? void 0 : ct.optionsColumns) || ((_t = (pt = (dt = m.layout) == null ? void 0 : dt.fields) == null ? void 0 : pt.$default) == null ? void 0 : _t.optionsColumns),
1910
+ parentPropertyName: _.parentPropertyName,
1911
+ columns: ((rt = (it = (st = _.layout) == null ? void 0 : st.fields) == null ? void 0 : it[I]) == null ? void 0 : rt.optionsColumns) || ((dt = (ct = (ut = _.layout) == null ? void 0 : ut.fields) == null ? void 0 : ct.$default) == null ? void 0 : dt.optionsColumns),
1911
1912
  validationErrors: H(I, Te),
1912
1913
  ...q.componentProps || {}
1913
1914
  }, {
@@ -1915,29 +1916,29 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (d, u
1915
1916
  onChange: L[3] || (L[3] = (je) => o("change", je))
1916
1917
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
1917
1918
  ]),
1918
- e(_) ? y("", !0) : P((n(), k(Z, {
1919
+ e(m) ? y("", !0) : P((n(), k(Z, {
1919
1920
  key: 0,
1920
1921
  reactive: "",
1921
1922
  icon: "trash",
1922
- onClick: (je) => e(Fo)(m.modelValue[I], Te)
1923
+ onClick: (je) => e(So)(_.modelValue[I], Te)
1923
1924
  }, null, 8, ["onClick"])), [
1924
1925
  [K]
1925
1926
  ])
1926
1927
  ]);
1927
1928
  }), 128))
1928
1929
  ])
1929
- ])) : m.modelValue ? P((n(), k(he(e(vt)(q, e($))), E({
1930
+ ])) : _.modelValue ? P((n(), k(be(e(_t)(q, e($))), E({
1930
1931
  key: 6,
1931
- modelValue: m.modelValue[I],
1932
- "onUpdate:modelValue": (N) => m.modelValue[I] = N,
1932
+ modelValue: _.modelValue[I],
1933
+ "onUpdate:modelValue": (N) => _.modelValue[I] = N,
1933
1934
  ref_for: !0
1934
1935
  }, {
1935
- readOnly: e(_),
1936
+ readOnly: e(m),
1936
1937
  property: q,
1937
1938
  propertyName: I,
1938
- parentPropertyName: m.parentPropertyName,
1939
+ parentPropertyName: _.parentPropertyName,
1939
1940
  parentCollection: e(r),
1940
- columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[I]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
1941
+ columns: ((tt = (et = (xe = _.layout) == null ? void 0 : xe.fields) == null ? void 0 : et[I]) == null ? void 0 : tt.optionsColumns) || ((at = (ot = (nt = _.layout) == null ? void 0 : nt.fields) == null ? void 0 : ot.$default) == null ? void 0 : at.optionsColumns),
1941
1942
  ...q.componentProps || {},
1942
1943
  validationErrors: H(I)
1943
1944
  }, {
@@ -1945,18 +1946,18 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (d, u
1945
1946
  onChange: L[4] || (L[4] = (N) => o("change", N)),
1946
1947
  onClipboardCopy: L[5] || (L[5] = (N) => o("clipboardCopy", N))
1947
1948
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1948
- [B, se(q)]
1949
+ [w, se(q)]
1949
1950
  ]) : y("", !0),
1950
- (it = v.value) != null && it[I] ? (n(), i("div", Po, [
1951
- v.value[I].type ? (n(), i("span", No, V(e(R)(`validation_error.${v.value[I].type}`)), 1)) : y("", !0),
1952
- v.value[I].detail ? (n(), i("span", xo, V(e(R)(v.value[I].detail)), 1)) : y("", !0)
1951
+ (lt = v.value) != null && lt[I] ? (n(), i("div", Qo, [
1952
+ v.value[I].type ? (n(), i("span", Go, V(e(R)(`validation_error.${v.value[I].type}`)), 1)) : y("", !0),
1953
+ v.value[I].detail ? (n(), i("span", Wo, V(e(R)(v.value[I].detail)), 1)) : y("", !0)
1953
1954
  ])) : y("", !0)
1954
1955
  ], 4);
1955
1956
  }), 128))
1956
1957
  ]),
1957
- m.$slots.after ? C(m.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1958
- m.$slots.footer ? (n(), i("div", ea, [
1959
- C(m.$slots, "footer", de(ge({
1958
+ _.$slots.after ? C(_.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1959
+ _.$slots.footer ? (n(), i("div", Ko, [
1960
+ C(_.$slots, "footer", de(ge({
1960
1961
  isInsertReady: M.value
1961
1962
  })), void 0, !0)
1962
1963
  ])) : y("", !0)
@@ -1964,38 +1965,38 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (d, u
1964
1965
  };
1965
1966
  }
1966
1967
  });
1967
- const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @__PURE__ */ U({
1968
+ const Qe = /* @__PURE__ */ W(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @__PURE__ */ U({
1968
1969
  __name: "aeria-filter-panel",
1969
1970
  emits: ["update:modelValue"],
1970
- setup(d, { emit: u }) {
1971
- const a = u, t = De(), o = Ie(), c = e(_e(Fe)), r = () => {
1971
+ setup(p, { emit: u }) {
1972
+ const a = u, t = De(), o = Ie(), c = e(me(Fe)), r = () => {
1972
1973
  t.pagination.offset = 0, t.$actions.filter(), a("update:modelValue", !1);
1973
- const _ = Object.assign({
1974
+ const m = Object.assign({
1974
1975
  query: {}
1975
1976
  }, o.currentRoute.value);
1976
- for (const p of Object.keys(_.query))
1977
- p.startsWith(`${c}.`) && delete _.query[p];
1978
- o.currentRoute.value.query = {}, o.push(qe(_, {
1979
- query: Qt(t)
1977
+ for (const d of Object.keys(m.query))
1978
+ d.startsWith(`${c}.`) && delete m.query[d];
1979
+ o.currentRoute.value.query = {}, o.push(qe(m, {
1980
+ query: Ut(t)
1980
1981
  }));
1981
1982
  };
1982
- return (_, p) => (n(), k(Ae, {
1983
+ return (m, d) => (n(), k(Ae, {
1983
1984
  "close-hint": "",
1984
1985
  "fixed-right": "",
1985
- title: _.t("filter_by", { capitalize: !0 }),
1986
- onClose: p[2] || (p[2] = (b) => a("update:modelValue", !1)),
1987
- onOverlayClick: p[3] || (p[3] = (b) => a("update:modelValue", !1))
1986
+ title: m.t("filter_by", { capitalize: !0 }),
1987
+ onClose: d[2] || (d[2] = (h) => a("update:modelValue", !1)),
1988
+ onOverlayClick: d[3] || (d[3] = (h) => a("update:modelValue", !1))
1988
1989
  }, {
1989
1990
  footer: f(() => [
1990
1991
  e(t).filtersCount > 0 ? (n(), k(ie, {
1991
1992
  key: 0,
1992
1993
  variant: "transparent",
1993
- onClick: p[1] || (p[1] = (b) => {
1994
+ onClick: d[1] || (d[1] = (h) => {
1994
1995
  e(t).$actions.clearFilters(), r(), a("update:modelValue", !1);
1995
1996
  })
1996
1997
  }, {
1997
1998
  default: f(() => [
1998
- D(V(_.t("action.clear", { capitalize: !0 })) + " ", 1),
1999
+ D(V(m.t("action.clear", { capitalize: !0 })) + " ", 1),
1999
2000
  z($e, null, {
2000
2001
  default: f(() => [
2001
2002
  D(V(e(t).filtersCount), 1)
@@ -2012,7 +2013,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2012
2013
  onClick: r
2013
2014
  }, {
2014
2015
  default: f(() => [
2015
- D(V(_.t("action.filter", { capitalize: !0 })), 1)
2016
+ D(V(m.t("action.filter", { capitalize: !0 })), 1)
2016
2017
  ]),
2017
2018
  _: 1
2018
2019
  }, 8, ["disabled"])
@@ -2020,7 +2021,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2020
2021
  default: f(() => [
2021
2022
  z(Qe, E({
2022
2023
  modelValue: e(t).filters,
2023
- "onUpdate:modelValue": p[0] || (p[0] = (b) => e(t).filters = b)
2024
+ "onUpdate:modelValue": d[0] || (d[0] = (h) => e(t).filters = h)
2024
2025
  }, {
2025
2026
  searchOnly: !0,
2026
2027
  form: e(t).availableFilters,
@@ -2030,7 +2031,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2030
2031
  _: 1
2031
2032
  }, 8, ["title"]));
2032
2033
  }
2033
- }), oa = /* @__PURE__ */ U({
2034
+ }), Jo = /* @__PURE__ */ U({
2034
2035
  __name: "aeria-insert-panel",
2035
2036
  props: {
2036
2037
  collection: {},
@@ -2042,22 +2043,22 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2042
2043
  includeTimestamps: { type: Boolean }
2043
2044
  },
2044
2045
  emits: ["update:visible", "update:modelValue", "insert", "cancel"],
2045
- setup(d, { emit: u }) {
2046
- const a = d, t = u, o = re("meta"), c = a.collection || o.view.collection, r = re(c), _ = _e("individualActions", []);
2046
+ setup(p, { emit: u }) {
2047
+ const a = p, t = u, o = re("meta"), c = a.collection || o.view.collection, r = re(c), m = me("individualActions", []);
2047
2048
  Xe(() => {
2048
2049
  a.modelValue && r.$actions.setItem(a.modelValue);
2049
2050
  });
2050
- const p = G(() => a.form ? r.$actions.useProperties(a.form) : r.description.form ? r.$actions.useProperties(r.description.form) : r.properties), b = async () => {
2051
+ const d = G(() => a.form ? r.$actions.useProperties(a.form) : r.description.form ? r.$actions.useProperties(r.description.form) : r.properties), h = async () => {
2051
2052
  const { error: v, result: $ } = await r.$actions.deepInsert();
2052
2053
  v || (t("update:visible", !1), t("update:modelValue", $), t("insert", $), r.$actions.clearItem());
2053
- }, { t: s } = Lt(), l = () => {
2054
+ }, { t: s } = Tt(), l = () => {
2054
2055
  o.$actions.ask({
2055
2056
  action: () => {
2056
2057
  r.$actions.clearItem(), r.validationErrors = {}, t("cancel");
2057
2058
  },
2058
2059
  body: s("prompt.close_panel")
2059
2060
  });
2060
- }, w = () => o.$actions.spawnToast({
2061
+ }, B = () => o.$actions.spawnToast({
2061
2062
  icon: "info",
2062
2063
  text: s("copied_to_clipboard")
2063
2064
  });
@@ -2073,7 +2074,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2073
2074
  extra: f(() => [
2074
2075
  z(Oe, E({
2075
2076
  subject: e(r).item,
2076
- actions: e(_).filter(({ action: O }) => O !== "spawnEdit"),
2077
+ actions: e(m).filter(({ action: O }) => O !== "spawnEdit"),
2077
2078
  overlayLayer: 60
2078
2079
  }, {
2079
2080
  onActionClick: $[2] || ($[2] = (O) => t("update:visible", !1))
@@ -2102,11 +2103,11 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2102
2103
  readOnly: v.readOnly,
2103
2104
  includeId: v.includeId,
2104
2105
  includeTimestamps: v.includeTimestamps,
2105
- form: p.value,
2106
+ form: d.value,
2106
2107
  layout: e(r).description.formLayout || {}
2107
2108
  }, {
2108
2109
  focus: "",
2109
- onClipboardCopy: w,
2110
+ onClipboardCopy: B,
2110
2111
  onAdd: $[1] || ($[1] = (O) => O.preventDefault())
2111
2112
  }), ce({ _: 2 }, [
2112
2113
  Q(Object.keys(v.$slots).filter((O) => O.startsWith("field-")), (O) => ({
@@ -2142,7 +2143,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2142
2143
  large: "",
2143
2144
  disabled: !e(r).isInsertReady || e(r).loading.get,
2144
2145
  loading: e(r).loading.insert,
2145
- onClick: b
2146
+ onClick: h
2146
2147
  }, {
2147
2148
  default: f(() => [
2148
2149
  D(V(e(s)("action.insert", { capitalize: !0 })), 1)
@@ -2155,27 +2156,27 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2155
2156
  ]), 1032, ["model-value", "loading"]);
2156
2157
  };
2157
2158
  }
2158
- }), Ot = (d, u) => {
2159
+ }), kt = (p, u) => {
2159
2160
  if (u) {
2160
- if (!d) {
2161
+ if (!p) {
2161
2162
  u.filtersPreset = {}, u.preferredTableProperties = [], u.pagination.offset = 0;
2162
2163
  return;
2163
2164
  }
2164
- u.filtersPreset = d.filters || {}, u.preferredTableProperties = d.table ? Array.from(d.table) : [], u.pagination.offset = 0;
2165
+ u.filtersPreset = p.filters || {}, u.preferredTableProperties = p.table ? Array.from(p.table) : [], u.pagination.offset = 0;
2165
2166
  }
2166
- }, aa = (d, u = {
2167
+ }, Zo = (p, u = {
2167
2168
  persistInQuery: !0
2168
2169
  }) => {
2169
2170
  const t = Ie().currentRoute;
2170
2171
  return ue(() => t.value.query.section, (o) => {
2171
- if (d) {
2172
- if (d.description.filtersPresets) {
2173
- const c = o || Object.keys(d.description.filtersPresets)[0];
2174
- Ot(d.description.filtersPresets[c], d);
2172
+ if (p) {
2173
+ if (p.description.filtersPresets) {
2174
+ const c = o || Object.keys(p.description.filtersPresets)[0];
2175
+ kt(p.description.filtersPresets[c], p);
2175
2176
  }
2176
2177
  if (u.persistInQuery) {
2177
2178
  const c = t.value.query;
2178
- c.offset && (d.pagination.offset = +c.offset), c.limit && (d.pagination.limit = +c.limit), c.search && (d.textQuery = c.search, d.filters.$text = {
2179
+ c.offset && (p.pagination.offset = +c.offset), c.limit && (p.pagination.limit = +c.limit), c.search && (p.textQuery = c.search, p.filters.$text = {
2179
2180
  $search: `"${c.search}"`,
2180
2181
  $caseSensitive: !1
2181
2182
  });
@@ -2184,25 +2185,25 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2184
2185
  }, {
2185
2186
  immediate: !0
2186
2187
  });
2187
- }, la = {
2188
+ }, Po = {
2188
2189
  key: 0,
2189
2190
  class: "table aeria-surface"
2190
- }, sa = { key: 0 }, ia = { key: 1 }, ra = { key: 0 }, ua = ["checked"], ca = {
2191
+ }, No = { key: 0 }, xo = { key: 1 }, ea = { key: 0 }, ta = ["checked"], na = {
2191
2192
  key: 1,
2192
2193
  style: { "text-align": "right" }
2193
- }, da = { key: 2 }, pa = { key: 3 }, _a = ["onClick"], ma = { key: 0 }, fa = ["value"], va = { class: "table__cell-mobile-label" }, ya = {
2194
+ }, oa = { key: 2 }, aa = { key: 3 }, la = ["onClick"], sa = { key: 0 }, ia = ["value"], ra = { class: "table__cell-mobile-label" }, ua = {
2194
2195
  key: 0,
2195
2196
  class: "table__cell-container"
2196
- }, ha = {
2197
+ }, ca = {
2197
2198
  key: 1,
2198
2199
  class: "table__cell-container"
2199
- }, ba = { class: "table__cell-grid" }, $a = { key: 0 }, ga = { key: 1 }, ka = { key: 0 }, Va = ["href"], Ca = { key: 3 }, Oa = { key: 1 }, Ia = { key: 2 }, Aa = { key: 0 }, wa = { key: 1 }, Ba = { key: 2 }, Sa = {
2200
+ }, da = { class: "table__cell-grid" }, pa = { key: 0 }, ma = { key: 1 }, _a = { key: 0 }, fa = ["href"], va = { key: 3 }, ya = { key: 1 }, ba = { key: 2 }, ha = { key: 0 }, $a = { key: 1 }, ga = { key: 2 }, ka = {
2200
2201
  key: 1,
2201
2202
  class: "no-print"
2202
- }, Ta = { class: "table__cell-actions" }, ja = {
2203
+ }, Va = { class: "table__cell-actions" }, Ca = {
2203
2204
  key: 2,
2204
2205
  class: "no-print table__mobile-actions"
2205
- }, Ra = ["id"], La = { key: 1 }, za = ["colspan"], qa = { class: "table__empty" }, Ma = /* @__PURE__ */ U({
2206
+ }, Oa = ["id"], Ia = { key: 1 }, Aa = ["colspan"], Ba = { class: "table__empty" }, wa = /* @__PURE__ */ U({
2206
2207
  __name: "aeria-table",
2207
2208
  props: {
2208
2209
  columns: {},
@@ -2213,16 +2214,16 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2213
2214
  layout: {}
2214
2215
  },
2215
2216
  emits: ["itemClick"],
2216
- setup(d, { emit: u }) {
2217
- const a = d, t = u, o = Ue(), c = a.collection || Me(), r = c ? re(typeof c == "string" ? c : c.value) : null, _ = G({
2217
+ setup(p, { emit: u }) {
2218
+ const a = p, t = u, o = Ue(), c = a.collection || Me(), r = c ? re(typeof c == "string" ? c : c.value) : null, m = G({
2218
2219
  get: () => r == null ? void 0 : r.selected,
2219
2220
  set: (v) => r == null ? void 0 : r.$actions.selectManyItems(v, !0)
2220
- }), p = G(() => a.columns ? Object.keys(a.columns).length + Number(a.checkbox) : 0), b = (v, $) => v.button ? typeof v.button == "object" ? We($, v.button).satisfied : v.button : !1, s = (v) => {
2221
+ }), d = G(() => a.columns ? Object.keys(a.columns).length + Number(a.checkbox) : 0), h = (v, $) => v.button ? typeof v.button == "object" ? We($, v.button).satisfied : v.button : !1, s = (v) => {
2221
2222
  var S;
2222
2223
  const $ = (S = a.layout) == null ? void 0 : S.actions;
2223
2224
  return !o.value.xl || !$ || !a.actions ? [] : a.actions.filter((O) => {
2224
2225
  const Y = $[O.action];
2225
- return Y && b(Y, v);
2226
+ return Y && h(Y, v);
2226
2227
  });
2227
2228
  }, l = (v) => {
2228
2229
  var S;
@@ -2233,12 +2234,12 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2233
2234
  const Y = $[O.action];
2234
2235
  if (O.roles) {
2235
2236
  const ee = re("user");
2236
- if (!gt(O.roles, ee.currentUser.roles))
2237
+ if (!ht(O.roles, ee.currentUser.roles))
2237
2238
  return !1;
2238
2239
  }
2239
- return !Y || !b(Y, v);
2240
+ return !Y || !h(Y, v);
2240
2241
  });
2241
- }, w = (v, $) => {
2242
+ }, B = (v, $) => {
2242
2243
  var Y, ee;
2243
2244
  const S = [], O = (ee = (Y = a.layout) == null ? void 0 : Y.actions) == null ? void 0 : ee[$.action];
2244
2245
  return O != null && O.if && (We(
@@ -2249,60 +2250,60 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2249
2250
  return (v, $) => {
2250
2251
  var O, Y, ee;
2251
2252
  const S = te("clickable");
2252
- return p.value > 0 || v.$slots.thead ? (n(), i("table", la, [
2253
- v.$slots.thead ? (n(), i("thead", sa, [
2253
+ return d.value > 0 || v.$slots.thead ? (n(), i("table", Po, [
2254
+ v.$slots.thead ? (n(), i("thead", No, [
2254
2255
  C(v.$slots, "thead", {}, void 0, !0)
2255
- ])) : (n(), i("thead", ia, [
2256
+ ])) : (n(), i("thead", xo, [
2256
2257
  A("tr", null, [
2257
- v.checkbox && e(r) && e(o).md ? (n(), i("th", ra, [
2258
+ v.checkbox && e(r) && e(o).md ? (n(), i("th", ea, [
2258
2259
  A("input", {
2259
2260
  type: "checkbox",
2260
2261
  checked: e(r).selected.length > 0 && e(r).selected.length === e(r).itemsCount,
2261
- onChange: $[0] || ($[0] = (h) => e(r).$actions.selectAllItems(h.target.checked))
2262
- }, null, 40, ua)
2262
+ onChange: $[0] || ($[0] = (b) => e(r).$actions.selectAllItems(b.target.checked))
2263
+ }, null, 40, ta)
2263
2264
  ])) : y("", !0),
2264
- (n(!0), i(x, null, Q(Object.entries(v.columns), ([h, F], le) => (n(), i("th", {
2265
+ (n(!0), i(x, null, Q(Object.entries(v.columns), ([b, F], le) => (n(), i("th", {
2265
2266
  key: `header-${le}`,
2266
2267
  class: "table__header"
2267
- }, V(F.description || e(R)(h)), 1))), 128)),
2268
- (O = v.actions) != null && O.length ? (n(), i("th", ca)) : y("", !0)
2268
+ }, V(F.description || e(R)(b)), 1))), 128)),
2269
+ (O = v.actions) != null && O.length ? (n(), i("th", na)) : y("", !0)
2269
2270
  ])
2270
2271
  ])),
2271
- v.$slots.tbody ? (n(), i("tbody", da, [
2272
+ v.$slots.tbody ? (n(), i("tbody", oa, [
2272
2273
  C(v.$slots, "tbody", {}, void 0, !0)
2273
- ])) : (n(), i("tbody", pa, [
2274
- (n(!0), i(x, null, Q(v.rows, (h) => {
2274
+ ])) : (n(), i("tbody", aa, [
2275
+ (n(!0), i(x, null, Q(v.rows, (b) => {
2275
2276
  var F, le;
2276
2277
  return n(), i("tr", {
2277
- key: h._id,
2278
- onClick: (T) => t("itemClick", h)
2278
+ key: b._id,
2279
+ onClick: (T) => t("itemClick", b)
2279
2280
  }, [
2280
- e(r) && v.checkbox && e(o).md ? (n(), i("td", ma, [
2281
+ e(r) && v.checkbox && e(o).md ? (n(), i("td", sa, [
2281
2282
  P(A("input", {
2282
- "onUpdate:modelValue": $[1] || ($[1] = (T) => _.value = T),
2283
+ "onUpdate:modelValue": $[1] || ($[1] = (T) => m.value = T),
2283
2284
  type: "checkbox",
2284
- value: h._id
2285
- }, null, 8, fa), [
2286
- [wt, _.value]
2285
+ value: b._id
2286
+ }, null, 8, ia), [
2287
+ [Ot, m.value]
2287
2288
  ])
2288
2289
  ])) : y("", !0),
2289
2290
  (n(!0), i(x, null, Q(Object.entries(v.columns), ([T, g], j) => {
2290
2291
  var ne, oe, M;
2291
2292
  return n(), i("td", {
2292
- key: `column-${h._id}-${j}`
2293
+ key: `column-${b._id}-${j}`
2293
2294
  }, [
2294
- A("div", va, V(g.description || e(R)(T)), 1),
2295
- `row-${T}` in v.$slots ? (n(), i("div", ya, [
2295
+ A("div", ra, V(g.description || e(R)(T)), 1),
2296
+ `row-${T}` in v.$slots ? (n(), i("div", ua, [
2296
2297
  C(v.$slots, `row-${T}`, E({ ref_for: !0 }, {
2297
2298
  store: e(r),
2298
2299
  column: T,
2299
2300
  property: g,
2300
- row: h
2301
+ row: b
2301
2302
  }), void 0, !0)
2302
- ])) : (n(), i("div", ha, [
2303
- A("div", ba, [
2304
- "type" in g && g.type === "boolean" ? (n(), i("div", $a, [
2305
- h[T] ? (n(), k(Z, {
2303
+ ])) : (n(), i("div", ca, [
2304
+ A("div", da, [
2305
+ "type" in g && g.type === "boolean" ? (n(), i("div", pa, [
2306
+ b[T] ? (n(), k(Z, {
2306
2307
  key: 0,
2307
2308
  icon: "check",
2308
2309
  "icon-classes": "aeria-blueish"
@@ -2321,42 +2322,42 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2321
2322
  ]),
2322
2323
  _: 1
2323
2324
  }))
2324
- ])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), i("div", ga, [
2325
- h[T] ? (n(), i("div", ka, [
2326
- "items" in g && h[T][0] && /^image/.test(h[T][0].type) ? (n(), k(He, {
2325
+ ])) : ((ne = e(_e)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), i("div", ma, [
2326
+ b[T] ? (n(), i("div", _a, [
2327
+ "items" in g && b[T][0] && /^image/.test(b[T][0].type) ? (n(), k(He, {
2327
2328
  key: 0,
2328
- modelValue: h[T][0].link,
2329
- "onUpdate:modelValue": (H) => h[T][0].link = H,
2329
+ modelValue: b[T][0].link,
2330
+ "onUpdate:modelValue": (H) => b[T][0].link = H,
2330
2331
  expandable: "",
2331
- meta: h[T][0],
2332
+ meta: b[T][0],
2332
2333
  alt: "Row image",
2333
2334
  class: "table__picture"
2334
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[T].type) ? (n(), k(He, {
2335
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(b[T].type) ? (n(), k(He, {
2335
2336
  key: 1,
2336
- modelValue: h[T].link,
2337
- "onUpdate:modelValue": (H) => h[T].link = H,
2337
+ modelValue: b[T].link,
2338
+ "onUpdate:modelValue": (H) => b[T].link = H,
2338
2339
  expandable: "",
2339
- meta: h[T],
2340
+ meta: b[T],
2340
2341
  alt: "Row image",
2341
2342
  class: "table__picture"
2342
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : h[T].link ? (n(), i("a", {
2343
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : b[T].link ? (n(), i("a", {
2343
2344
  key: 2,
2344
- href: h[T].link,
2345
+ href: b[T].link,
2345
2346
  style: { "font-size": "10pt" }
2346
- }, V(h[T].filename), 9, Va)) : (n(), i("div", Ca, " - "))
2347
- ])) : (n(), i("div", Oa, " - "))
2348
- ])) : (n(), i("div", Ia, [
2349
- e(r) ? (n(), i("span", Aa, V(e(r).$actions.formatValue({
2350
- value: h[T],
2347
+ }, V(b[T].filename), 9, fa)) : (n(), i("div", va, " - "))
2348
+ ])) : (n(), i("div", ya, " - "))
2349
+ ])) : (n(), i("div", ba, [
2350
+ e(r) ? (n(), i("span", ha, V(e(r).$actions.formatValue({
2351
+ value: b[T],
2351
2352
  key: T,
2352
2353
  property: g
2353
- })), 1)) : (n(), i("span", wa, V(Array.isArray(h[T]) ? h[T].filter((H) => !!H).join(", ") : [void 0, null].includes(h[T]) ? "-" : h[T]), 1)),
2354
- ((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), i("div", Ba, [
2355
- (n(!0), i(x, null, Q(e(me)(g).indexes.slice(1, 2), (H, se) => (n(), i("div", {
2354
+ })), 1)) : (n(), i("span", $a, V(Array.isArray(b[T]) ? b[T].filter((H) => !!H).join(", ") : [void 0, null].includes(b[T]) ? "-" : b[T]), 1)),
2355
+ ((M = (oe = e(_e)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), i("div", ga, [
2356
+ (n(!0), i(x, null, Q(e(_e)(g).indexes.slice(1, 2), (H, se) => (n(), i("div", {
2356
2357
  key: `subvalue-${se}`,
2357
2358
  class: "table__cell-subvalue"
2358
2359
  }, V(e(r).$actions.formatValue({
2359
- value: h[T],
2360
+ value: b[T],
2360
2361
  key: T,
2361
2362
  property: g,
2362
2363
  index: H
@@ -2367,27 +2368,27 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2367
2368
  ]))
2368
2369
  ]);
2369
2370
  }), 128)),
2370
- (F = v.actions) != null && F.length && e(o).md ? (n(), i("td", Sa, [
2371
- A("div", Ta, [
2372
- (n(!0), i(x, null, Q(s(h), (T) => (n(), k(ie, {
2371
+ (F = v.actions) != null && F.length && e(o).md ? (n(), i("td", ka, [
2372
+ A("div", Va, [
2373
+ (n(!0), i(x, null, Q(s(b), (T) => (n(), k(ie, {
2373
2374
  key: `action-${T.action}`,
2374
2375
  small: "",
2375
2376
  variant: "alt",
2376
2377
  icon: T.icon,
2377
- style: be(w(h, T)),
2378
- onClick: (g) => T.click(h)
2378
+ style: he(B(b, T)),
2379
+ onClick: (g) => T.click(b)
2379
2380
  }, {
2380
2381
  default: f(() => [
2381
2382
  D(V(e(R)(T.label)), 1)
2382
2383
  ]),
2383
2384
  _: 2
2384
2385
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2385
- l(h).length > 0 ? (n(), k(Oe, E({
2386
+ l(b).length > 0 ? (n(), k(Oe, E({
2386
2387
  key: 0,
2387
2388
  ref_for: !0
2388
2389
  }, {
2389
- subject: h,
2390
- actions: l(h)
2390
+ subject: b,
2391
+ actions: l(b)
2391
2392
  }), {
2392
2393
  default: f(({
2393
2394
  visible: T
@@ -2403,15 +2404,15 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2403
2404
  _: 2
2404
2405
  }, 1040)) : y("", !0)
2405
2406
  ])
2406
- ])) : (le = v.actions) != null && le.length ? (n(), i("td", ja, [
2407
+ ])) : (le = v.actions) != null && le.length ? (n(), i("td", Ca, [
2407
2408
  A("div", {
2408
2409
  class: "table__mobile-actions-grid",
2409
- style: be(`grid-template-columns: repeat(${s(h).length + (l(h).length ? 1 : 0)}, 1fr);`)
2410
+ style: he(`grid-template-columns: repeat(${s(b).length + (l(b).length ? 1 : 0)}, 1fr);`)
2410
2411
  }, [
2411
- (n(!0), i(x, null, Q(s(h), (T) => (n(), k(ve, {
2412
+ (n(!0), i(x, null, Q(s(b), (T) => (n(), k(ve, {
2412
2413
  key: `action-${T.action}`,
2413
2414
  class: "table__mobile-actions-button",
2414
- onClick: (g) => T.click(h)
2415
+ onClick: (g) => T.click(b)
2415
2416
  }, {
2416
2417
  default: f(() => [
2417
2418
  z(Z, {
@@ -2425,12 +2426,12 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2425
2426
  ]),
2426
2427
  _: 2
2427
2428
  }, 1032, ["onClick"]))), 128)),
2428
- l(h).length > 0 ? (n(), k(Oe, E({
2429
+ l(b).length > 0 ? (n(), k(Oe, E({
2429
2430
  key: 0,
2430
2431
  ref_for: !0
2431
2432
  }, {
2432
- subject: h,
2433
- actions: l(h)
2433
+ subject: b,
2434
+ actions: l(b)
2434
2435
  }), {
2435
2436
  default: f(() => [
2436
2437
  z(Z, {
@@ -2443,33 +2444,33 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2443
2444
  ], 4)
2444
2445
  ])) : y("", !0),
2445
2446
  A("div", {
2446
- id: `dropdown-${h._id}`
2447
- }, null, 8, Ra)
2448
- ], 8, _a);
2447
+ id: `dropdown-${b._id}`
2448
+ }, null, 8, Oa)
2449
+ ], 8, la);
2449
2450
  }), 128))
2450
2451
  ])),
2451
2452
  A("tfoot", null, [
2452
- v.$slots.tfoot ? C(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((Y = v.rows) != null && Y.length) && !((ee = e(r)) != null && ee.loading.getAll) ? (n(), i("tr", La, [
2453
+ v.$slots.tfoot ? C(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((Y = v.rows) != null && Y.length) && !((ee = e(r)) != null && ee.loading.getAll) ? (n(), i("tr", Ia, [
2453
2454
  A("td", {
2454
- colspan: p.value + 1
2455
+ colspan: d.value + 1
2455
2456
  }, [
2456
- A("div", qa, V(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2457
- ], 8, za)
2457
+ A("div", Ba, V(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2458
+ ], 8, Aa)
2458
2459
  ])) : y("", !0)
2459
2460
  ])
2460
2461
  ])) : y("", !0);
2461
2462
  };
2462
2463
  }
2463
2464
  });
2464
- const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @__PURE__ */ U({
2465
+ const Sa = /* @__PURE__ */ W(wa, [["__scopeId", "data-v-0adf61ce"]]), Ta = /* @__PURE__ */ U({
2465
2466
  __name: "aeria-tabular",
2466
2467
  props: {
2467
2468
  individualActions: {},
2468
2469
  layoutOptions: {},
2469
2470
  componentProps: {}
2470
2471
  },
2471
- setup(d) {
2472
- const u = d, a = Le(), t = Me(), o = G(() => {
2472
+ setup(p) {
2473
+ const u = p, a = Le(), t = Me(), o = G(() => {
2473
2474
  const c = {
2474
2475
  collection: t,
2475
2476
  checkbox: a.hasSelectionActions,
@@ -2482,24 +2483,24 @@ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @_
2482
2483
  });
2483
2484
  return (c, r) => (n(), i("div", null, [
2484
2485
  c.$slots.inner ? C(c.$slots, "inner", { key: 0 }) : y("", !0),
2485
- e(a).properties ? (n(), k(Fa, E({ key: 1 }, o.value, {
2486
+ e(a).properties ? (n(), k(Sa, E({ key: 1 }, o.value, {
2486
2487
  key: e(a).$id
2487
2488
  }), ce({ _: 2 }, [
2488
- Q(Object.keys(c.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2489
- name: _,
2490
- fn: f((p) => [
2491
- C(c.$slots, _, de(ge(p)))
2489
+ Q(Object.keys(c.$slots).filter((m) => !["inner"].includes(m)), (m) => ({
2490
+ name: m,
2491
+ fn: f((d) => [
2492
+ C(c.$slots, m, de(ge(d)))
2492
2493
  ])
2493
2494
  }))
2494
2495
  ]), 1040)) : y("", !0)
2495
2496
  ]));
2496
2497
  }
2497
- }), Ea = /* @__PURE__ */ U({
2498
+ }), ja = /* @__PURE__ */ U({
2498
2499
  __name: "aeria-grid",
2499
2500
  props: {
2500
2501
  list: { type: Boolean }
2501
2502
  },
2502
- setup(d) {
2503
+ setup(p) {
2503
2504
  return (u, a) => (n(), i("div", {
2504
2505
  class: X(`
2505
2506
  grid
@@ -2510,10 +2511,10 @@ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @_
2510
2511
  ], 2));
2511
2512
  }
2512
2513
  });
2513
- const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key: 0 }, Qa = {
2514
+ const Ra = /* @__PURE__ */ W(ja, [["__scopeId", "data-v-438c4aed"]]), La = { key: 0 }, za = {
2514
2515
  key: 1,
2515
2516
  class: "card__information"
2516
- }, Ga = /* @__PURE__ */ U({
2517
+ }, qa = /* @__PURE__ */ U({
2517
2518
  __name: "aeria-grid",
2518
2519
  props: {
2519
2520
  individualActions: {},
@@ -2521,67 +2522,67 @@ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key
2521
2522
  layoutOptions: {},
2522
2523
  componentName: {}
2523
2524
  },
2524
- setup(d) {
2525
- const a = d.layoutOptions, t = Le(), o = (c) => Array.isArray(c) ? c[0] : c;
2525
+ setup(p) {
2526
+ const a = p.layoutOptions, t = Le(), o = (c) => Array.isArray(c) ? c[0] : c;
2526
2527
  return (c, r) => {
2527
- const _ = te("clickable");
2528
- return n(), k(Ha, {
2528
+ const m = te("clickable");
2529
+ return n(), k(Ra, {
2529
2530
  list: c.componentName === "list"
2530
2531
  }, {
2531
2532
  default: f(() => [
2532
- (n(!0), i(x, null, Q(e(t).items, (p) => (n(), k(pn, {
2533
- key: p,
2534
- inactive: !!(e(a).active && !p[e(a).active]),
2533
+ (n(!0), i(x, null, Q(e(t).items, (d) => (n(), k(un, {
2534
+ key: d,
2535
+ inactive: !!(e(a).active && !d[e(a).active]),
2535
2536
  horizontal: c.componentName === "list"
2536
2537
  }, ce({
2537
2538
  footer: f(() => [
2538
- e(a).title ? (n(), i("div", Da, V(p[e(a).title]), 1)) : y("", !0),
2539
- e(a).information ? (n(), i("div", Qa, V(p[e(a).information]), 1)) : y("", !0)
2539
+ e(a).title ? (n(), i("div", La, V(d[e(a).title]), 1)) : y("", !0),
2540
+ e(a).information ? (n(), i("div", za, V(d[e(a).information]), 1)) : y("", !0)
2540
2541
  ]),
2541
2542
  actions: f(() => [
2542
2543
  c.individualActions.length > 0 ? (n(), k(Oe, E({
2543
2544
  key: 0,
2544
2545
  ref_for: !0
2545
2546
  }, {
2546
- subject: p,
2547
+ subject: d,
2547
2548
  actions: c.individualActions
2548
2549
  }), {
2549
2550
  default: f(({
2550
- visible: b
2551
+ visible: h
2551
2552
  }) => [
2552
2553
  P(z(Z, {
2553
2554
  reactive: "",
2554
- active: b,
2555
+ active: h,
2555
2556
  icon: "dots-three-vertical"
2556
2557
  }, null, 8, ["active"]), [
2557
- [_]
2558
+ [m]
2558
2559
  ])
2559
2560
  ]),
2560
2561
  _: 2
2561
2562
  }, 1040)) : y("", !0)
2562
2563
  ]),
2563
2564
  default: f(() => {
2564
- var b;
2565
+ var h;
2565
2566
  return [
2566
2567
  z(He, {
2567
2568
  alt: "Item picture",
2568
2569
  expandable: "",
2569
- url: (b = o(p[e(a).picture])) == null ? void 0 : b.link,
2570
- meta: o(p[e(a).picture])
2570
+ url: (h = o(d[e(a).picture])) == null ? void 0 : h.link,
2571
+ meta: o(d[e(a).picture])
2571
2572
  }, null, 8, ["url", "meta"])
2572
2573
  ];
2573
2574
  }),
2574
2575
  _: 2
2575
2576
  }, [
2576
- e(a).badge && Array.isArray(p[e(a).badge]) ? {
2577
+ e(a).badge && Array.isArray(d[e(a).badge]) ? {
2577
2578
  name: "badge",
2578
2579
  fn: f(() => [
2579
- (n(!0), i(x, null, Q(p[e(a).badge], (b) => (n(), k($e, {
2580
- key: `${p._id}-${b}`,
2580
+ (n(!0), i(x, null, Q(d[e(a).badge], (h) => (n(), k($e, {
2581
+ key: `${d._id}-${h}`,
2581
2582
  large: ""
2582
2583
  }, {
2583
2584
  default: f(() => [
2584
- D(V(e(a).translateBadge ? e(R)(b) : b), 1)
2585
+ D(V(e(a).translateBadge ? e(R)(h) : h), 1)
2585
2586
  ]),
2586
2587
  _: 2
2587
2588
  }, 1024))), 128))
@@ -2592,7 +2593,7 @@ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key
2592
2593
  fn: f(() => [
2593
2594
  z($e, null, {
2594
2595
  default: f(() => [
2595
- D(V(e(a).translateBadge ? e(R)(p[e(a).badge]) : p[e(a).badge]), 1)
2596
+ D(V(e(a).translateBadge ? e(R)(d[e(a).badge]) : d[e(a).badge]), 1)
2596
2597
  ]),
2597
2598
  _: 2
2598
2599
  }, 1024)
@@ -2606,22 +2607,22 @@ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key
2606
2607
  };
2607
2608
  }
2608
2609
  });
2609
- const yt = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-6ea2d642"]]), Wa = (d) => ({
2610
- tabular: Ua,
2611
- grid: yt,
2612
- list: yt
2613
- })[d], pe = J(!1);
2610
+ const ft = /* @__PURE__ */ W(qa, [["__scopeId", "data-v-6ea2d642"]]), Ma = (p) => ({
2611
+ tabular: Ta,
2612
+ grid: ft,
2613
+ list: ft
2614
+ })[p], pe = J(!1);
2614
2615
  J(!1);
2615
- const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d5684d74"), d = d(), Je(), d), Xa = {
2616
+ const Ve = J(!1), Re = J((...p) => null), vt = J(), Fa = {
2616
2617
  key: 2,
2617
2618
  class: "crud__controls"
2618
- }, Ya = {
2619
+ }, Ua = {
2619
2620
  key: 0,
2620
2621
  class: "crud__search"
2621
- }, Ja = { class: "crud__actions" }, Za = { class: "crud__context-badge" }, Pa = /* @__PURE__ */ Ka(() => /* @__PURE__ */ A("div", null, "Filtros", -1)), Na = { key: 0 }, xa = {
2622
+ }, Ea = { class: "crud__actions" }, Ha = { class: "crud__context-badge" }, Da = { key: 0 }, Qa = {
2622
2623
  key: 3,
2623
2624
  class: "crud__pagination"
2624
- }, bt = 30, el = /* @__PURE__ */ U({
2625
+ }, yt = 30, Ga = /* @__PURE__ */ U({
2625
2626
  __name: "aeria-crud",
2626
2627
  props: {
2627
2628
  collection: {},
@@ -2636,21 +2637,21 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2636
2637
  noQueryPersistence: { type: Boolean }
2637
2638
  },
2638
2639
  emits: ["uiEvent"],
2639
- setup(d, { emit: u }) {
2640
- const a = d, t = u, o = Ie(), c = Vt({
2640
+ setup(p, { emit: u }) {
2641
+ const a = p, t = u, o = Ie(), c = gt({
2641
2642
  delay: 600
2642
- }), r = re("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Pe(null, {
2643
+ }), r = re("meta"), m = Ue(), { reachedEnd: d, detach: h } = Je(null, {
2643
2644
  antecipate: 600
2644
- }), s = !_.value.md || a.scrollPagination;
2645
- s && ue(p, (g) => {
2646
- g && l.pagination.recordsTotal > l.items.length && $.value < bt && ($.value += 1, O());
2645
+ }), s = !m.value.md || a.scrollPagination;
2646
+ s && ue(d, (g) => {
2647
+ g && l.pagination.recordsTotal > l.items.length && $.value < yt && ($.value += 1, O());
2647
2648
  });
2648
- const l = Gt(a.collection);
2649
- aa(l, {
2649
+ const l = Et(a.collection);
2650
+ Zo(l, {
2650
2651
  persistInQuery: !a.noQueryPersistence
2651
2652
  });
2652
- const w = Ze(), v = a.action ? e(a.action) : Wt(l, o, w);
2653
- Re.value = v[0], ht.value = v[1];
2653
+ const B = Ye(), v = a.action ? e(a.action) : Ht(l, o, B);
2654
+ Re.value = v[0], vt.value = v[1];
2654
2655
  const $ = J(0), S = J(!1), O = async (g) => {
2655
2656
  l.activeFilters = Object.assign({}, (g == null ? void 0 : g.filters) || l.$filters), Object.assign(l.activeFilters, l.filtersPreset);
2656
2657
  const j = {
@@ -2672,7 +2673,7 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2672
2673
  limit: g.limit
2673
2674
  }
2674
2675
  })), l.pagination.offset = g.offset, l.pagination.limit = g.limit, O();
2675
- }, ee = _e("noResultsComponent", null);
2676
+ }, ee = me("noResultsComponent", null);
2676
2677
  ue(() => [
2677
2678
  o.currentRoute.value.path,
2678
2679
  o.currentRoute.value.query.section
@@ -2681,14 +2682,14 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2681
2682
  return;
2682
2683
  const ne = o.currentRoute.value;
2683
2684
  if (r.view.title = a.collection, r.view.collection = a.collection, !a.noFetch && (!ne.query._popstate || l.itemsCount === 0)) {
2684
- const oe = Kt(l, ne);
2685
+ const oe = Dt(l, ne);
2685
2686
  Object.keys(oe).length > 0 && Object.assign(l.filters, oe), await O();
2686
2687
  }
2687
2688
  }, {
2688
2689
  immediate: !0,
2689
2690
  flush: "post"
2690
2691
  });
2691
- const [h] = c((g) => (o.push(qe(o.currentRoute.value, {
2692
+ const [b] = c((g) => (o.push(qe(o.currentRoute.value, {
2692
2693
  query: {
2693
2694
  search: g || void 0
2694
2695
  }
@@ -2701,14 +2702,14 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2701
2702
  offset: 0
2702
2703
  })) : (l.filters = Ce(l.freshFilters), $.value = 0, O())));
2703
2704
  ue(() => l.textQuery, (g) => {
2704
- h(g);
2705
+ b(g);
2705
2706
  });
2706
2707
  const F = (g) => {
2707
2708
  g.currentLayout = g.currentLayout === "tabular" ? g.description.layout.name : "tabular";
2708
2709
  };
2709
- Bt(() => {
2710
- l.$actions.clearFilters(), l.textQuery = "", b();
2711
- }), ue(() => ht.value, async (g) => {
2710
+ It(() => {
2711
+ l.$actions.clearFilters(), l.textQuery = "", h();
2712
+ }), ue(() => vt.value, async (g) => {
2712
2713
  var oe;
2713
2714
  const j = Ce(g);
2714
2715
  let ne;
@@ -2731,16 +2732,16 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2731
2732
  ...H,
2732
2733
  [se]: ae
2733
2734
  };
2734
- const m = l.properties[se];
2735
- if (m.readOnly)
2735
+ const _ = l.properties[se];
2736
+ if (_.readOnly)
2736
2737
  return H;
2737
2738
  const L = (K) => {
2738
- const B = me(m);
2739
- if (!B)
2739
+ const w = _e(_);
2740
+ if (!w)
2740
2741
  return K;
2741
- if (B.$ref === "file")
2742
+ if (w.$ref === "file")
2742
2743
  return {};
2743
- if (B.inline && K) {
2744
+ if (w.inline && K) {
2744
2745
  const { _id: I, ...q } = K;
2745
2746
  return q;
2746
2747
  }
@@ -2764,20 +2765,20 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2764
2765
  ...g
2765
2766
  }))), T = G(() => l.actions.filter((g) => !g.button));
2766
2767
  return ye(Fe, G(() => a.collection)), ye("individualActions", le), (g, j) => {
2767
- var M, H, se, ae, m, L, K;
2768
+ var M, H, se, ae, _, L, K;
2768
2769
  const ne = te("clickable"), oe = te("loading");
2769
2770
  return n(), i(x, null, [
2770
- e(Ve) ? (n(), k(na, {
2771
+ e(Ve) ? (n(), k(Yo, {
2771
2772
  key: e(l).$id,
2772
2773
  modelValue: e(Ve),
2773
- "onUpdate:modelValue": j[0] || (j[0] = (B) => mt(Ve) ? Ve.value = B : null)
2774
+ "onUpdate:modelValue": j[0] || (j[0] = (w) => pt(Ve) ? Ve.value = w : null)
2774
2775
  }, null, 8, ["modelValue"])) : y("", !0),
2775
- e(pe) ? (n(), k(oa, {
2776
+ e(pe) ? (n(), k(Jo, {
2776
2777
  key: 1,
2777
2778
  visible: e(pe),
2778
- "onUpdate:visible": j[1] || (j[1] = (B) => mt(pe) ? pe.value = B : null),
2779
+ "onUpdate:visible": j[1] || (j[1] = (w) => pt(pe) ? pe.value = w : null),
2779
2780
  "fixed-right": "",
2780
- onCancel: j[2] || (j[2] = (B) => pe.value = !1)
2781
+ onCancel: j[2] || (j[2] = (w) => pe.value = !1)
2781
2782
  }, ce({
2782
2783
  header: f(() => [
2783
2784
  A("span", null, V((() => {
@@ -2795,18 +2796,18 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2795
2796
  ]),
2796
2797
  _: 2
2797
2798
  }, [
2798
- Q(Object.keys(g.$slots).filter((B) => B.startsWith("field-")), (B) => ({
2799
- name: B,
2799
+ Q(Object.keys(g.$slots).filter((w) => w.startsWith("field-")), (w) => ({
2800
+ name: w,
2800
2801
  fn: f((I) => [
2801
- C(g.$slots, B, de(ge(I)), void 0, !0)
2802
+ C(g.$slots, w, de(ge(I)), void 0, !0)
2802
2803
  ])
2803
2804
  }))
2804
2805
  ]), 1032, ["visible"])) : y("", !0),
2805
- !g.noActions && (e(l).description.search || Object.keys(e(l).availableFilters).length > 0 || ((M = e(l)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(l).description.layout && ((H = e(l).description.layout) == null ? void 0 : H.name) !== "tabular") ? (n(), i("div", Xa, [
2806
- e(l).description.search ? (n(), i("div", Ya, [
2806
+ !g.noActions && (e(l).description.search || Object.keys(e(l).availableFilters).length > 0 || ((M = e(l)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(l).description.layout && ((H = e(l).description.layout) == null ? void 0 : H.name) !== "tabular") ? (n(), i("div", Fa, [
2807
+ e(l).description.search ? (n(), i("div", Ua, [
2807
2808
  z(ke, E({
2808
2809
  modelValue: e(l).textQuery,
2809
- "onUpdate:modelValue": j[3] || (j[3] = (B) => e(l).textQuery = B)
2810
+ "onUpdate:modelValue": j[3] || (j[3] = (w) => e(l).textQuery = w)
2810
2811
  }, {
2811
2812
  property: {
2812
2813
  type: "string",
@@ -2815,7 +2816,7 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2815
2816
  }
2816
2817
  }), null, 16, ["modelValue"])
2817
2818
  ])) : y("", !0),
2818
- A("div", Ja, [
2819
+ A("div", Ea, [
2819
2820
  T.value.length > 0 || !g.noLayoutToggle && e(l).description.layout && ((se = e(l).description.layout) == null ? void 0 : se.name) !== "tabular" ? (n(), k(Oe, { key: 0 }, ce({
2820
2821
  default: f(() => [
2821
2822
  z(ie, {
@@ -2840,7 +2841,7 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2840
2841
  fn: f(() => [
2841
2842
  P((n(), k(Z, {
2842
2843
  icon: "funnel",
2843
- onClick: j[4] || (j[4] = (B) => Ve.value = !0)
2844
+ onClick: j[4] || (j[4] = (w) => Ve.value = !0)
2844
2845
  }, {
2845
2846
  default: f(() => [
2846
2847
  D(V(e(R)("filters", { capitalize: !0 })), 1)
@@ -2849,7 +2850,7 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2849
2850
  })), [
2850
2851
  [ne]
2851
2852
  ]),
2852
- A("div", Za, [
2853
+ A("div", Ha, [
2853
2854
  e(l).filtersCount ? (n(), k($e, { key: 0 }, {
2854
2855
  default: f(() => [
2855
2856
  D(V(e(l).filtersCount), 1)
@@ -2865,7 +2866,7 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2865
2866
  fn: f(() => [
2866
2867
  P((n(), k(Z, {
2867
2868
  icon: "table",
2868
- onClick: j[5] || (j[5] = (B) => F(e(l)))
2869
+ onClick: j[5] || (j[5] = (w) => F(e(l)))
2869
2870
  }, {
2870
2871
  default: f(() => [
2871
2872
  D(V(e(R)("change_layout", { capitalize: !0 })), 1)
@@ -2877,17 +2878,17 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2877
2878
  ]),
2878
2879
  key: "1"
2879
2880
  } : void 0,
2880
- Q(T.value, (B, I) => ({
2881
+ Q(T.value, (w, I) => ({
2881
2882
  name: `action-${I}`,
2882
2883
  fn: f(() => [
2883
- B ? (n(), k(Z, {
2884
+ w ? (n(), k(Z, {
2884
2885
  key: 0,
2885
- icon: B.icon || "gear",
2886
- disabled: e(l).selected.length === 0 && "selection" in B && B.selection,
2887
- onClick: (q) => e(Re)(B)({ _id: e(l).selected.map((fe) => fe._id) })
2886
+ icon: w.icon || "gear",
2887
+ disabled: e(l).selected.length === 0 && "selection" in w && w.selection,
2888
+ onClick: (q) => e(Re)(w)({ _id: e(l).selected.map((fe) => fe._id) })
2888
2889
  }, {
2889
2890
  default: f(() => [
2890
- D(V(e(R)(B.label, { capitalize: !0 })), 1)
2891
+ D(V(e(R)(w.label, { capitalize: !0 })), 1)
2891
2892
  ]),
2892
2893
  _: 2
2893
2894
  }, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
@@ -2897,10 +2898,10 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2897
2898
  key: 1,
2898
2899
  variant: "alt",
2899
2900
  icon: "funnel",
2900
- onClick: j[6] || (j[6] = (B) => Ve.value = !0)
2901
+ onClick: j[6] || (j[6] = (w) => Ve.value = !0)
2901
2902
  }, {
2902
2903
  default: f(() => [
2903
- Pa,
2904
+ j[8] || (j[8] = A("div", null, "Filtros", -1)),
2904
2905
  e(l).filtersCount ? (n(), k($e, { key: 0 }, {
2905
2906
  default: f(() => [
2906
2907
  D(V(e(l).filtersCount), 1)
@@ -2910,14 +2911,14 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2910
2911
  ]),
2911
2912
  _: 1
2912
2913
  })) : y("", !0),
2913
- (n(!0), i(x, null, Q(e(l).actions.filter((B) => B.button), (B, I) => (n(), k(ie, {
2914
+ (n(!0), i(x, null, Q(e(l).actions.filter((w) => w.button), (w, I) => (n(), k(ie, {
2914
2915
  key: `action-${I}`,
2915
- icon: B.icon,
2916
- disabled: e(l).selected.length === 0 && "selection" in B && B.selection,
2917
- onClick: (q) => e(Re)(B)({ _id: e(l).selected.map((fe) => fe._id) })
2916
+ icon: w.icon,
2917
+ disabled: e(l).selected.length === 0 && "selection" in w && w.selection,
2918
+ onClick: (q) => e(Re)(w)({ _id: e(l).selected.map((fe) => fe._id) })
2918
2919
  }, {
2919
2920
  default: f(() => [
2920
- D(V(e(R)(B.label, { capitalize: !0 })), 1)
2921
+ D(V(e(R)(w.label, { capitalize: !0 })), 1)
2921
2922
  ]),
2922
2923
  _: 2
2923
2924
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
@@ -2925,15 +2926,15 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2925
2926
  ])
2926
2927
  ])) : y("", !0),
2927
2928
  P((n(), i("div", null, [
2928
- e(l).itemsCount === 0 && !e(l).loading.getAll && S.value && (e(ee) || g.$slots.empty) ? (n(), i("div", Na, [
2929
- e(ee) ? (n(), k(he(e(ee)), de(E({ key: 0 }, {
2929
+ e(l).itemsCount === 0 && !e(l).loading.getAll && S.value && (e(ee) || g.$slots.empty) ? (n(), i("div", Da, [
2930
+ e(ee) ? (n(), k(be(e(ee)), de(E({ key: 0 }, {
2930
2931
  collection: e(l).$id
2931
2932
  })), {
2932
2933
  default: f(() => [
2933
2934
  e(l).filtersCount === 0 && e(l).description.actions && "spawnAdd" in e(l).description.actions ? (n(), k(ie, {
2934
2935
  key: 0,
2935
2936
  icon: "plus",
2936
- onClick: j[7] || (j[7] = (B) => e(Re)({
2937
+ onClick: j[7] || (j[7] = (w) => e(Re)({
2937
2938
  action: "spawnAdd",
2938
2939
  event: "spawnAdd"
2939
2940
  })())
@@ -2950,17 +2951,17 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2950
2951
  })), void 0, !0)
2951
2952
  ])) : g.$slots.component ? C(g.$slots, "component", de(E({ key: 1 }, {
2952
2953
  store: e(l)
2953
- })), void 0, !0) : (n(), k(he(e(Wa)(((m = g.layout) == null ? void 0 : m.name) || e(l).$currentLayout)), E({ key: 2 }, {
2954
+ })), void 0, !0) : (n(), k(be(e(Ma)(((_ = g.layout) == null ? void 0 : _.name) || e(l).$currentLayout)), E({ key: 2 }, {
2954
2955
  individualActions: le.value,
2955
2956
  layoutOptions: ((L = g.layout) == null ? void 0 : L.options) || e(l).layout.options,
2956
2957
  componentProps: g.componentProps
2957
2958
  }, {
2958
2959
  "component-name": ((K = g.layout) == null ? void 0 : K.name) || e(l).$currentLayout
2959
2960
  }), ce({ _: 2 }, [
2960
- Q(Object.keys(g.$slots).filter((B) => B.startsWith("row-")), (B) => ({
2961
- name: B,
2961
+ Q(Object.keys(g.$slots).filter((w) => w.startsWith("row-")), (w) => ({
2962
+ name: w,
2962
2963
  fn: f((I) => [
2963
- C(g.$slots, B, de(ge(I)), void 0, !0)
2964
+ C(g.$slots, w, de(ge(I)), void 0, !0)
2964
2965
  ])
2965
2966
  })),
2966
2967
  g.$slots.tfoot ? {
@@ -2972,10 +2973,10 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2972
2973
  } : void 0
2973
2974
  ]), 1040, ["component-name"]))
2974
2975
  ])), [
2975
- [oe, (!e(s) || $.value === bt) && e(l).loading.getAll]
2976
+ [oe, (!e(s) || $.value === yt) && e(l).loading.getAll]
2976
2977
  ]),
2977
- !e(l).loading.getAll && e(l).itemsCount > 0 ? (n(), i("div", xa, [
2978
- z(Un, {
2978
+ !e(l).loading.getAll && e(l).itemsCount > 0 ? (n(), i("div", Qa, [
2979
+ z(qn, {
2979
2980
  pagination: e(l).pagination,
2980
2981
  onPaginate: Y
2981
2982
  }, null, 8, ["pagination"])
@@ -2984,13 +2985,13 @@ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d568
2984
2985
  };
2985
2986
  }
2986
2987
  });
2987
- const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { class: "prompt" }, nl = /* @__PURE__ */ U({
2988
+ const Al = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-d5684d74"]]), Wa = { class: "prompt" }, Ka = /* @__PURE__ */ U({
2988
2989
  __name: "aeria-prompt",
2989
2990
  props: {
2990
2991
  title: {},
2991
2992
  options: {}
2992
2993
  },
2993
- setup(d) {
2994
+ setup(p) {
2994
2995
  const u = re("meta"), a = (t, o) => {
2995
2996
  u.$actions.fulfillPrompt(t, o);
2996
2997
  };
@@ -3003,15 +3004,15 @@ const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { cla
3003
3004
  footer: f(() => [
3004
3005
  A("div", {
3005
3006
  class: "prompt__options",
3006
- style: be(`grid-template-columns: repeat(${Object.keys(t.options).length}, 1fr)`)
3007
+ style: he(`grid-template-columns: repeat(${Object.keys(t.options).length}, 1fr)`)
3007
3008
  }, [
3008
- (n(!0), i(x, null, Q(Object.entries(t.options), ([c, r], _) => (n(), k(ve, {
3009
- key: `option-${_}`,
3009
+ (n(!0), i(x, null, Q(Object.entries(t.options), ([c, r], m) => (n(), k(ve, {
3010
+ key: `option-${m}`,
3010
3011
  class: X(`
3011
3012
  prompt__option
3012
3013
  prompt__option--${r.variant || "primary"}
3013
3014
  `),
3014
- onClick: (p) => r.click ? r.click(c, r) : a(c, r)
3015
+ onClick: (d) => r.click ? r.click(c, r) : a(c, r)
3015
3016
  }, {
3016
3017
  default: f(() => [
3017
3018
  D(V(r.title), 1)
@@ -3021,7 +3022,7 @@ const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { cla
3021
3022
  ], 4)
3022
3023
  ]),
3023
3024
  default: f(() => [
3024
- A("div", tl, [
3025
+ A("div", Wa, [
3025
3026
  C(t.$slots, "default", {}, void 0, !0)
3026
3027
  ])
3027
3028
  ]),
@@ -3037,7 +3038,7 @@ const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { cla
3037
3038
  ]), 1024));
3038
3039
  }
3039
3040
  });
3040
- const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { class: "toast__content" }, ll = { class: "toast__time" }, sl = /* @__PURE__ */ U({
3041
+ const Xa = /* @__PURE__ */ W(Ka, [["__scopeId", "data-v-c069c1ef"]]), Ya = { class: "toast__content" }, Ja = { class: "toast__time" }, Za = /* @__PURE__ */ U({
3041
3042
  __name: "aeria-toast",
3042
3043
  props: {
3043
3044
  idx: {},
@@ -3045,7 +3046,7 @@ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { cla
3045
3046
  date: {},
3046
3047
  icon: {}
3047
3048
  },
3048
- setup(d) {
3049
+ setup(p) {
3049
3050
  const u = re("meta");
3050
3051
  return (a, t) => {
3051
3052
  const o = te("clickable");
@@ -3061,9 +3062,9 @@ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { cla
3061
3062
  a.icon ? { icon: a.icon } : { icon: "warning-circle" },
3062
3063
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3063
3064
  ), null, 16),
3064
- A("div", al, [
3065
+ A("div", Ya, [
3065
3066
  C(a.$slots, "default", {}, void 0, !0),
3066
- A("div", ll, V(a.formatDateTime(a.date, { hoursOnly: !0 })), 1)
3067
+ A("div", Ja, V(a.formatDateTime(a.date, { hoursOnly: !0 })), 1)
3067
3068
  ])
3068
3069
  ], 34)), [
3069
3070
  [o]
@@ -3071,12 +3072,12 @@ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { cla
3071
3072
  };
3072
3073
  }
3073
3074
  });
3074
- const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["innerHTML"], ul = { class: "main__toasts" }, cl = ["innerHTML"], dl = /* @__PURE__ */ U({
3075
+ const Pa = /* @__PURE__ */ W(Za, [["__scopeId", "data-v-21bbe178"]]), Na = ["innerHTML"], xa = { class: "main__toasts" }, el = ["innerHTML"], tl = /* @__PURE__ */ U({
3075
3076
  __name: "aeria-main",
3076
- setup(d) {
3077
+ setup(p) {
3077
3078
  const u = re("meta"), a = G(() => u.themeOverride || u.theme);
3078
3079
  return (t, o) => {
3079
- const c = St("router-view");
3080
+ const c = At("router-view");
3080
3081
  return n(), i("main", {
3081
3082
  id: "main",
3082
3083
  class: X(`
@@ -3085,15 +3086,15 @@ const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["inn
3085
3086
  ${a.value === "dark" && "tw-dark"}
3086
3087
  `)
3087
3088
  }, [
3088
- (n(), k(Tt, null, {
3089
+ (n(), k(Bt, null, {
3089
3090
  default: f(() => [
3090
3091
  z(c, null, {
3091
3092
  default: f(({ Component: r }) => [
3092
- (n(), k(he(r), null, ce({ _: 2 }, [
3093
- Q(Object.keys(t.$slots), (_) => ({
3094
- name: _,
3093
+ (n(), k(be(r), null, ce({ _: 2 }, [
3094
+ Q(Object.keys(t.$slots), (m) => ({
3095
+ name: m,
3095
3096
  fn: f(() => [
3096
- C(t.$slots, _, {}, void 0, !0)
3097
+ C(t.$slots, m, {}, void 0, !0)
3097
3098
  ])
3098
3099
  }))
3099
3100
  ]), 1024))
@@ -3118,25 +3119,25 @@ const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["inn
3118
3119
  key: 0,
3119
3120
  style: { "white-space": "pre-wrap" },
3120
3121
  innerHTML: e(u).modal.body
3121
- }, null, 8, rl)) : y("", !0),
3122
- e(u).modal.component ? (n(), k(he(e(u).modal.component), { key: 1 })) : y("", !0)
3122
+ }, null, 8, Na)) : y("", !0),
3123
+ e(u).modal.component ? (n(), k(be(e(u).modal.component), { key: 1 })) : y("", !0)
3123
3124
  ]),
3124
3125
  _: 1
3125
3126
  }, 16, ["modelValue"]),
3126
- e(u).prompt.visible ? (n(), k(ol, de(E({ key: 0 }, e(u).prompt)), {
3127
+ e(u).prompt.visible ? (n(), k(Xa, de(E({ key: 0 }, e(u).prompt)), {
3127
3128
  default: f(() => [
3128
3129
  D(V(e(u).prompt.body), 1)
3129
3130
  ]),
3130
3131
  _: 1
3131
3132
  }, 16)) : y("", !0),
3132
- A("div", ul, [
3133
- (n(!0), i(x, null, Q(e(u).toasts, (r) => (n(), k(il, E({ ref_for: !0 }, r, {
3133
+ A("div", xa, [
3134
+ (n(!0), i(x, null, Q(e(u).toasts, (r) => (n(), k(Pa, E({ ref_for: !0 }, r, {
3134
3135
  key: `toast-${r.itr}`
3135
3136
  }), {
3136
3137
  default: f(() => [
3137
3138
  A("div", {
3138
3139
  innerHTML: e(R)(r.text)
3139
- }, null, 8, cl)
3140
+ }, null, 8, el)
3140
3141
  ]),
3141
3142
  _: 2
3142
3143
  }, 1040))), 128))
@@ -3145,75 +3146,75 @@ const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["inn
3145
3146
  };
3146
3147
  }
3147
3148
  });
3148
- const Ml = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-1166be3d"]]);
3149
- const pl = {}, _l = { class: "menu" };
3150
- function ml(d, u) {
3151
- return n(), i("menu", _l, [
3152
- (n(!0), i(x, null, Q(Object.keys(d.$slots), (a) => (n(), i("div", {
3149
+ const Bl = /* @__PURE__ */ W(tl, [["__scopeId", "data-v-1166be3d"]]);
3150
+ const nl = {}, ol = { class: "menu" };
3151
+ function al(p, u) {
3152
+ return n(), i("menu", ol, [
3153
+ (n(!0), i(x, null, Q(Object.keys(p.$slots), (a) => (n(), i("div", {
3153
3154
  key: a,
3154
3155
  class: "menu__entry"
3155
3156
  }, [
3156
- C(d.$slots, a, {}, void 0, !0)
3157
+ C(p.$slots, a, {}, void 0, !0)
3157
3158
  ]))), 128))
3158
3159
  ]);
3159
3160
  }
3160
- const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb"]]), fl = { class: "tabs" }, vl = {
3161
+ const wl = /* @__PURE__ */ W(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb"]]), ll = { class: "tabs" }, sl = {
3161
3162
  key: 0,
3162
3163
  class: "tabs__horizontal"
3163
- }, yl = {
3164
+ }, il = {
3164
3165
  key: 0,
3165
3166
  class: "tabs__tab tabs__tab--info"
3166
- }, hl = ["onClick"], bl = {
3167
+ }, rl = ["onClick"], ul = {
3167
3168
  key: 1,
3168
3169
  class: "tabs__context-menu"
3169
- }, $l = ["onClick"], gl = /* @__PURE__ */ U({
3170
+ }, cl = ["onClick"], dl = /* @__PURE__ */ U({
3170
3171
  __name: "aeria-tabs",
3171
3172
  props: {
3172
3173
  query: {},
3173
3174
  param: {},
3174
3175
  dropdown: { type: Boolean }
3175
3176
  },
3176
- setup(d) {
3177
- const u = d, a = jt(), t = Ie(), o = Ue(), c = G(() => {
3177
+ setup(p) {
3178
+ const u = p, a = wt(), t = Ie(), o = Ue(), c = G(() => {
3178
3179
  if (u.query) {
3179
- const _ = t.currentRoute.value.query[u.query];
3180
- if (_)
3181
- return _;
3180
+ const m = t.currentRoute.value.query[u.query];
3181
+ if (m)
3182
+ return m;
3182
3183
  } else if (u.param) {
3183
- const _ = t.currentRoute.value.params[u.param];
3184
- if (_)
3185
- return _;
3184
+ const m = t.currentRoute.value.params[u.param];
3185
+ if (m)
3186
+ return m;
3186
3187
  }
3187
3188
  return Object.keys(a)[0];
3188
- }), r = (_) => {
3189
+ }), r = (m) => {
3189
3190
  u.query && t.push(qe(t.currentRoute.value, {
3190
3191
  query: {
3191
- [u.query]: _
3192
+ [u.query]: m
3192
3193
  }
3193
3194
  })), u.param && t.push(qe(t.currentRoute.value, {
3194
3195
  params: {
3195
- [u.param]: _
3196
+ [u.param]: m
3196
3197
  }
3197
3198
  }));
3198
3199
  };
3199
- return (_, p) => {
3200
- const b = te("clickable");
3201
- return n(), i("div", fl, [
3202
- e(o).md && !_.dropdown ? (n(), i("div", vl, [
3203
- _.$slots.default ? (n(), i("div", yl, [
3204
- C(_.$slots, "default", {}, void 0, !0)
3200
+ return (m, d) => {
3201
+ const h = te("clickable");
3202
+ return n(), i("div", ll, [
3203
+ e(o).md && !m.dropdown ? (n(), i("div", sl, [
3204
+ m.$slots.default ? (n(), i("div", il, [
3205
+ C(m.$slots, "default", {}, void 0, !0)
3205
3206
  ])) : y("", !0),
3206
- (n(!0), i(x, null, Q(Object.keys(_.$slots).filter((s) => s !== "default"), (s, l) => (n(), i("div", {
3207
+ (n(!0), i(x, null, Q(Object.keys(m.$slots).filter((s) => s !== "default"), (s, l) => (n(), i("div", {
3207
3208
  key: s,
3208
3209
  class: X({
3209
3210
  tabs__tab: !0,
3210
3211
  "tabs__tab--current": s === c.value || !c.value && l === 0
3211
3212
  }),
3212
- onClick: (w) => r(s)
3213
+ onClick: (B) => r(s)
3213
3214
  }, [
3214
- C(_.$slots, s, {}, void 0, !0)
3215
- ], 10, hl))), 128))
3216
- ])) : (n(), i("div", bl, [
3215
+ C(m.$slots, s, {}, void 0, !0)
3216
+ ], 10, rl))), 128))
3217
+ ])) : (n(), i("div", ul, [
3217
3218
  z(Oe, null, ce({
3218
3219
  default: f(({ visible: s }) => [
3219
3220
  P((n(), k(Z, {
@@ -3224,23 +3225,23 @@ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb
3224
3225
  class: "tabs__context-menu-icon"
3225
3226
  }, {
3226
3227
  default: f(() => [
3227
- C(_.$slots, c.value, {}, void 0, !0)
3228
+ C(m.$slots, c.value, {}, void 0, !0)
3228
3229
  ]),
3229
3230
  _: 2
3230
3231
  }, 1032, ["active"])), [
3231
- [b]
3232
+ [h]
3232
3233
  ])
3233
3234
  ]),
3234
3235
  _: 2
3235
3236
  }, [
3236
- Q(Object.keys(_.$slots).filter((s) => s !== "default"), (s) => ({
3237
+ Q(Object.keys(m.$slots).filter((s) => s !== "default"), (s) => ({
3237
3238
  name: s,
3238
3239
  fn: f(() => [
3239
3240
  A("div", {
3240
3241
  onClick: (l) => r(s)
3241
3242
  }, [
3242
- C(_.$slots, s, {}, void 0, !0)
3243
- ], 8, $l)
3243
+ C(m.$slots, s, {}, void 0, !0)
3244
+ ], 8, cl)
3244
3245
  ])
3245
3246
  }))
3246
3247
  ]), 1024)
@@ -3249,78 +3250,78 @@ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb
3249
3250
  };
3250
3251
  }
3251
3252
  });
3252
- const kl = /* @__PURE__ */ W(gl, [["__scopeId", "data-v-a20914ab"]]), Vl = U({
3253
+ const pl = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-a20914ab"]]), ml = U({
3253
3254
  props: {
3254
3255
  initialValue: String,
3255
3256
  promise: Promise
3256
3257
  },
3257
- setup(d) {
3258
- const u = J(d.initialValue);
3259
- return d.promise instanceof Promise && d.promise.then((a) => {
3258
+ setup(p) {
3259
+ const u = J(p.initialValue);
3260
+ return p.promise instanceof Promise && p.promise.then((a) => {
3260
3261
  u.value = a;
3261
- }), () => Rt("div", u.value);
3262
+ }), () => St("div", u.value);
3262
3263
  }
3263
- }), Cl = ["onClick"], Ol = { key: 1 }, Il = /* @__PURE__ */ U({
3264
+ }), _l = ["onClick"], fl = { key: 1 }, vl = /* @__PURE__ */ U({
3264
3265
  __name: "aeria-crud-topbar",
3265
3266
  props: {
3266
3267
  collection: {}
3267
3268
  },
3268
- setup(d) {
3269
- const u = d, t = Ie().currentRoute, o = Ze(), c = G(() => u.collection ? Le(u.collection, o) : typeof t.value.meta.collection == "string" ? Le(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Le(t.value.params.collection, o) : null), r = async (_, p) => {
3270
- const { error: b, result: s } = await p.$functions[_.badgeFunction]({
3271
- filters: _.filters
3269
+ setup(p) {
3270
+ const u = p, t = Ie().currentRoute, o = Ye(), c = G(() => u.collection ? Le(u.collection, o) : typeof t.value.meta.collection == "string" ? Le(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Le(t.value.params.collection, o) : null), r = async (m, d) => {
3271
+ const { error: h, result: s } = await d.$functions[m.badgeFunction]({
3272
+ filters: m.filters
3272
3273
  });
3273
- return b ? 0 : s;
3274
+ return h ? 0 : s;
3274
3275
  };
3275
- return (_, p) => c.value && c.value.description.filtersPresets ? (n(), k(kl, {
3276
+ return (m, d) => c.value && c.value.description.filtersPresets ? (n(), k(pl, {
3276
3277
  key: 0,
3277
3278
  dropdown: "",
3278
3279
  query: "section"
3279
3280
  }, ce({ _: 2 }, [
3280
- Q(Object.entries(c.value.description.filtersPresets), ([b, s]) => ({
3281
- name: b,
3281
+ Q(Object.entries(c.value.description.filtersPresets), ([h, s]) => ({
3282
+ name: h,
3282
3283
  fn: f(() => [
3283
3284
  A("div", {
3284
3285
  class: "topbar__preset",
3285
- onClick: (l) => e(Ot)(s, c.value)
3286
+ onClick: (l) => e(kt)(s, c.value)
3286
3287
  }, [
3287
3288
  s.icon ? (n(), k(Z, {
3288
3289
  key: 0,
3289
3290
  icon: s.icon
3290
3291
  }, {
3291
3292
  default: f(() => [
3292
- D(V(s.label || e(R)(b, { plural: !0 })), 1)
3293
+ D(V(s.label || e(R)(h, { plural: !0 })), 1)
3293
3294
  ]),
3294
3295
  _: 2
3295
- }, 1032, ["icon"])) : (n(), i("div", Ol, V(s.label || e(R)(b, { plural: !0 })), 1)),
3296
+ }, 1032, ["icon"])) : (n(), i("div", fl, V(s.label || e(R)(h, { plural: !0 })), 1)),
3296
3297
  s.badgeFunction ? (n(), k($e, { key: 2 }, {
3297
3298
  default: f(() => [
3298
- z(e(Vl), {
3299
+ z(e(ml), {
3299
3300
  "initial-value": "0",
3300
3301
  promise: async () => String(r(s, c.value))
3301
3302
  }, null, 8, ["promise"])
3302
3303
  ]),
3303
3304
  _: 2
3304
3305
  }, 1024)) : y("", !0)
3305
- ], 8, Cl)
3306
+ ], 8, _l)
3306
3307
  ])
3307
3308
  }))
3308
3309
  ]), 1024)) : y("", !0);
3309
3310
  }
3310
3311
  });
3311
- const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3312
+ const yl = /* @__PURE__ */ W(vl, [["__scopeId", "data-v-5f3141a5"]]), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3312
3313
  __proto__: null,
3313
- default: Al
3314
- }, Symbol.toStringTag, { value: "Module" })), Ul = /* @__PURE__ */ U({
3314
+ default: yl
3315
+ }, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ U({
3315
3316
  __name: "aeria-password-form",
3316
3317
  props: {
3317
3318
  modelValue: {}
3318
3319
  },
3319
3320
  emits: ["update:modelValue"],
3320
- setup(d) {
3321
- const u = d;
3321
+ setup(p) {
3322
+ const u = p;
3322
3323
  ye(Fe, null);
3323
- const a = Xt(), t = G(() => a(
3324
+ const a = Qt(), t = G(() => a(
3324
3325
  u.modelValue.password,
3325
3326
  u.modelValue.confirmation
3326
3327
  ));
@@ -3347,10 +3348,10 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3347
3348
  _: 3
3348
3349
  }, 8, ["model-value"]));
3349
3350
  }
3350
- }), El = (d, u = []) => ({
3351
+ }), Tl = (p, u = []) => ({
3351
3352
  path: "/user",
3352
3353
  name: "/builtin:user",
3353
- component: d,
3354
+ component: p,
3354
3355
  children: u.concat([
3355
3356
  {
3356
3357
  path: "invite/:id",
@@ -3365,7 +3366,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3365
3366
  {
3366
3367
  path: "signin",
3367
3368
  name: "/user/signin",
3368
- component: () => import("./signin-131cef9c.js"),
3369
+ component: () => import("./signin-5b0ad694.js"),
3369
3370
  meta: {
3370
3371
  title: "Autenticação"
3371
3372
  }
@@ -3373,7 +3374,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3373
3374
  {
3374
3375
  path: "signup",
3375
3376
  name: "/user/signup",
3376
- component: () => import("./signup-037f2f37.js"),
3377
+ component: () => import("./signup-841995d1.js"),
3377
3378
  meta: {
3378
3379
  title: "Registro"
3379
3380
  }
@@ -3381,16 +3382,16 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3381
3382
  {
3382
3383
  path: "activation",
3383
3384
  name: "/user/activation",
3384
- component: () => import("./activation-01e847e4.js"),
3385
+ component: () => import("./activation-ff45bf88.js"),
3385
3386
  meta: {
3386
3387
  title: "Ativação"
3387
3388
  }
3388
3389
  }
3389
3390
  ])
3390
- }), Hl = (d, u = []) => ({
3391
+ }), jl = (p, u = []) => ({
3391
3392
  path: "/dashboard",
3392
3393
  name: "/builtin:dashboard",
3393
- component: d,
3394
+ component: p,
3394
3395
  redirect: {
3395
3396
  name: "/dashboard/"
3396
3397
  },
@@ -3403,8 +3404,8 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3403
3404
  name: "/dashboard/:collection",
3404
3405
  props: !0,
3405
3406
  components: {
3406
- default: () => import("./index-bdc0133c.js"),
3407
- topbar: () => Promise.resolve().then(() => wl)
3407
+ default: () => import("./index-5bc37b94.js"),
3408
+ topbar: () => Promise.resolve().then(() => bl)
3408
3409
  },
3409
3410
  meta: {
3410
3411
  title: "%viewTitle%"
@@ -3415,7 +3416,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3415
3416
  name: "/dashboard/:collection/:id",
3416
3417
  props: !0,
3417
3418
  components: {
3418
- default: () => import("./_id_-28e2ff98.js")
3419
+ default: () => import("./_id_-4e41f0b3.js")
3419
3420
  },
3420
3421
  meta: {
3421
3422
  title: "%viewTitle%"
@@ -3433,7 +3434,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3433
3434
  children: [
3434
3435
  {
3435
3436
  path: "profile",
3436
- component: () => import("./index-7e4faf19.js"),
3437
+ component: () => import("./index-0ef9607e.js"),
3437
3438
  meta: {
3438
3439
  title: "Meu perfil",
3439
3440
  icon: "user-square"
@@ -3442,7 +3443,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3442
3443
  {
3443
3444
  path: "changepass",
3444
3445
  name: "/dashboard/user/changepass",
3445
- component: () => import("./index-3e560edd.js"),
3446
+ component: () => import("./index-47e06fd8.js"),
3446
3447
  meta: {
3447
3448
  title: "Mudar senha",
3448
3449
  icon: "lock"
@@ -3454,38 +3455,38 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3454
3455
  });
3455
3456
  export {
3456
3457
  Qe as A,
3457
- no as B,
3458
- Vl as C,
3459
- ol as D,
3460
- il as E,
3461
- Al as F,
3462
- El as G,
3463
- Hl as H,
3464
- Ul as _,
3458
+ Pn as B,
3459
+ ml as C,
3460
+ Xa as D,
3461
+ Pa as E,
3462
+ yl as F,
3463
+ Tl as G,
3464
+ jl as H,
3465
+ Sl as _,
3465
3466
  ie as a,
3466
3467
  Z as b,
3467
- Kn as c,
3468
- ql as d,
3469
- oa as e,
3468
+ Qn as c,
3469
+ Al as d,
3470
+ Jo as e,
3470
3471
  He as f,
3471
- Fl as g,
3472
+ wl as g,
3472
3473
  Ae as h,
3473
3474
  W as i,
3474
- zl as j,
3475
+ Il as j,
3475
3476
  $e as k,
3476
3477
  ve as l,
3477
- pn as m,
3478
+ un as m,
3478
3479
  Oe as n,
3479
- Ha as o,
3480
- na as p,
3481
- Vn as q,
3482
- Ml as r,
3483
- Un as s,
3484
- Fa as t,
3485
- kl as u,
3486
- ko as v,
3480
+ Ra as o,
3481
+ Yo as p,
3482
+ $n as q,
3483
+ Bl as r,
3484
+ qn as s,
3485
+ Sa as t,
3486
+ pl as u,
3487
+ _o as v,
3487
3488
  ke as w,
3488
- Jn as x,
3489
- qo as y,
3490
- Ne as z
3489
+ Kn as x,
3490
+ Bo as y,
3491
+ Ze as z
3491
3492
  };