@aeria-ui/ui 0.0.30 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as i, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as g, createCommentVNode as f, createTextVNode as Q, unref as t, renderSlot as V, inject as fe, computed as D, createElementVNode as k, mergeProps as G, createBlock as $, resolveDynamicComponent as ye, withCtx as m, useCssVars as $t, Teleport as We, watch as ue, createVNode as F, vModelDynamic as bt, onBeforeMount as mt, normalizeStyle as he, withModifiers as Fe, pushScopeId as qe, popScopeId as Ue, provide as ve, onMounted as gt, isRef as je, normalizeProps as le, guardReactiveProps as be, createSlots as de, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as It, useSlots as At, h as Ot } from "vue";
1
+ import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as s, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as g, createCommentVNode as f, createTextVNode as Q, unref as t, renderSlot as C, inject as fe, computed as D, createElementVNode as k, mergeProps as G, createBlock as $, resolveDynamicComponent as ye, withCtx as m, useCssVars as $t, Teleport as Ge, watch as ue, createVNode as F, vModelDynamic as bt, onBeforeMount as _t, normalizeStyle as he, withModifiers as ze, pushScopeId as Me, popScopeId as qe, provide as ve, onMounted as gt, normalizeProps as se, guardReactiveProps as be, isRef as mt, createSlots as de, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as It, useSlots as At, h as Ot } from "vue";
2
2
  import { t as M, useI18n as wt } from "@aeria-ui/i18n";
3
- import { useScrollObserver as Xe, useBreakpoints as Te, useClipboard as Bt, PAGINATION_PER_PAGE_DEFAULTS as St, API_URL as ft, request as jt, useDebounce as vt, isDocumentComplete as Tt, convertToSearchQuery as Lt, useAction as Rt, convertFromSearchQuery as zt, usePasswordPolicy as Ft } from "@aeria-ui/web";
4
- import { useStore as ce, getStoreId as Le, useParentStore as ge, STORE_ID as Ee, getGlobalStateManager as Mt } from "@aeria-ui/state-management";
5
- import { useRouter as Re } from "vue-router";
6
- import { getReferenceProperty as pe, convertConditionToQuery as qt, deepClone as Se, freshItem as Ut, isRequired as Et, evaluateCondition as Ge, isLeft as Ht } from "@aeriajs/common";
3
+ import { useScrollObserver as We, useBreakpoints as je, useClipboard as Bt, PAGINATION_PER_PAGE_DEFAULTS as St, API_URL as ft, request as jt, useDebounce as vt, isDocumentComplete as Tt, convertToSearchQuery as Lt, useAction as Rt, convertFromSearchQuery as zt, usePasswordPolicy as Ft } from "@aeria-ui/core";
4
+ import { useStore as ce, getStoreId as Te, useParentStore as ge, STORE_ID as Ue, getGlobalStateManager as Mt } from "@aeria-ui/state-management";
5
+ import { useRouter as Le } from "vue-router";
6
+ import { getReferenceProperty as pe, convertConditionToQuery as qt, deepClone as Se, freshItem as Ut, isRequired as Et, evaluateCondition as Qe, isLeft as Ht } from "@aeriajs/common";
7
7
  const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
8
8
  key: 0,
9
9
  class: "accordion__content"
@@ -16,29 +16,29 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
16
16
  },
17
17
  setup(c) {
18
18
  const u = Y(null), e = (a) => typeof a == "string" ? a : a.title;
19
- return (a, s) => {
20
- const l = N("clickable");
21
- return n(), i("div", {
19
+ return (a, l) => {
20
+ const i = N("clickable");
21
+ return n(), s("div", {
22
22
  class: W({
23
23
  accordion: !0,
24
24
  "accordion--padded": !a.noPadding
25
25
  })
26
26
  }, [
27
- (n(!0), i(J, null, H(Object.keys(a.$slots).filter((r) => r !== "default"), (r, y) => (n(), i("div", {
27
+ (n(!0), s(J, null, H(Object.keys(a.$slots).filter((r) => r !== "default"), (r, y) => (n(), s("div", {
28
28
  key: r,
29
29
  class: "accordion__slot"
30
30
  }, [
31
- Z((n(), i("div", {
31
+ Z((n(), s("div", {
32
32
  class: "accordion__header",
33
33
  onClick: (p) => u.value === r ? u.value = null : u.value = r
34
34
  }, [
35
- a.enumerate ? (n(), i("span", Qt, g(y + 1) + ". ", 1)) : f("", !0),
35
+ a.enumerate ? (n(), s("span", Qt, g(y + 1) + ". ", 1)) : f("", !0),
36
36
  Q(" " + g(a.headers[r] ? e(a.headers[r]) : t(M)(r)), 1)
37
37
  ], 8, Dt)), [
38
- [l]
38
+ [i]
39
39
  ]),
40
- u.value === r ? (n(), i("div", Gt, [
41
- V(a.$slots, r, {}, void 0, !0)
40
+ u.value === r ? (n(), s("div", Gt, [
41
+ C(a.$slots, r, {}, void 0, !0)
42
42
  ])) : f("", !0)
43
43
  ]))), 128))
44
44
  ], 2);
@@ -47,24 +47,24 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
47
47
  });
48
48
  const X = (c, u) => {
49
49
  const e = c.__vccOpts || c;
50
- for (const [a, s] of u)
51
- e[a] = s;
50
+ for (const [a, l] of u)
51
+ e[a] = l;
52
52
  return e;
53
- }, Ss = /* @__PURE__ */ X(Wt, [["__scopeId", "data-v-3ea933d4"]]), Xt = /* @__PURE__ */ U({
53
+ }, Sl = /* @__PURE__ */ X(Wt, [["__scopeId", "data-v-3ea933d4"]]), Xt = /* @__PURE__ */ U({
54
54
  __name: "aeria-badge",
55
55
  props: {
56
56
  large: { type: Boolean },
57
57
  alt: { type: Boolean }
58
58
  },
59
59
  setup(c) {
60
- return (u, e) => (n(), i("div", {
60
+ return (u, e) => (n(), s("div", {
61
61
  class: W(`
62
62
  badge
63
63
  ${u.large && "badge--large"}
64
64
  ${u.alt && "badge--alt"}
65
65
  `)
66
66
  }, [
67
- V(u.$slots, "default", {}, void 0, !0)
67
+ C(u.$slots, "default", {}, void 0, !0)
68
68
  ], 2));
69
69
  }
70
70
  });
@@ -75,17 +75,17 @@ const $e = /* @__PURE__ */ X(Xt, [["__scopeId", "data-v-47f92648"]]), Yt = /* @_
75
75
  },
76
76
  emits: ["click"],
77
77
  setup(c, { emit: u }) {
78
- const e = c, a = u, s = (l) => {
79
- e.disabled || a("click", l);
78
+ const e = c, a = u, l = (i) => {
79
+ e.disabled || a("click", i);
80
80
  };
81
- return (l, r) => (n(), i("button", {
81
+ return (i, r) => (n(), s("button", {
82
82
  class: W(`
83
83
  barebutton
84
- barebutton--${l.disabled ? "disabled" : "enabled"}
84
+ barebutton--${i.disabled ? "disabled" : "enabled"}
85
85
  `),
86
- onClick: s
86
+ onClick: l
87
87
  }, [
88
- V(l.$slots, "default", {}, void 0, !0)
88
+ C(i.$slots, "default", {}, void 0, !0)
89
89
  ], 2));
90
90
  }
91
91
  });
@@ -104,38 +104,38 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
104
104
  },
105
105
  setup(c) {
106
106
  const u = c, e = typeof u.reactive == "boolean" ? u.reactive : fe("iconReactive", !1), a = D(() => {
107
- var s;
108
- return (s = u.icon) != null && s.includes(":") ? u.icon : `regular:${u.icon}`;
107
+ var l;
108
+ return (l = u.icon) != null && l.includes(":") ? u.icon : `regular:${u.icon}`;
109
109
  });
110
- return (s, l) => (n(), i("a", {
110
+ return (l, i) => (n(), s("a", {
111
111
  class: W(`
112
112
  icon
113
113
  ${t(e) && "icon--reactive"}
114
- ${s.$slots.default ? "icon--centered" : "icon--standalone"}
114
+ ${l.$slots.default ? "icon--centered" : "icon--standalone"}
115
115
  `)
116
116
  }, [
117
117
  k("div", {
118
118
  class: W(`
119
119
  icon__icon
120
- ${s.size && `icon__icon--${s.size}`}
121
- ${s.iconRight && "icon__icon--right"}
120
+ ${l.size && `icon__icon--${l.size}`}
121
+ ${l.iconRight && "icon__icon--right"}
122
122
  `)
123
123
  }, [
124
- (n(), i("svg", G({
124
+ (n(), s("svg", G({
125
125
  width: "24",
126
126
  height: "24",
127
127
  viewBox: "0 0 256 256",
128
128
  "data-component": "icon"
129
129
  }, {
130
- ...s.fill ? { fill: s.fill } : {}
130
+ ...l.fill ? { fill: l.fill } : {}
131
131
  }), [
132
132
  k("use", {
133
133
  href: `/assets/icons.svg#${a.value}`
134
134
  }, null, 8, Jt)
135
135
  ], 16))
136
136
  ], 2),
137
- s.$slots.default ? (n(), i("div", Kt, [
138
- V(s.$slots, "default", {}, void 0, !0)
137
+ l.$slots.default ? (n(), s("div", Kt, [
138
+ C(l.$slots, "default", {}, void 0, !0)
139
139
  ])) : f("", !0)
140
140
  ], 2));
141
141
  }
@@ -167,16 +167,16 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
167
167
  },
168
168
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
169
169
  setup(c, { emit: u }) {
170
- const e = c, a = u, s = D(() => e.floating || e.float), l = Y(e.collapsed), r = Y(null), { reachedEnd: y } = Xe(r), p = () => {
170
+ const e = c, a = u, l = D(() => e.floating || e.float), i = Y(e.collapsed), r = Y(null), { reachedEnd: y } = We(r), p = () => {
171
171
  a("update:modelValue", !1), a("close");
172
172
  }, h = () => {
173
173
  a("overlayClick");
174
174
  }, d = (o) => {
175
- a("update:collapsed", o), l.value = o;
175
+ a("update:collapsed", o), i.value = o;
176
176
  };
177
177
  return (o, v) => {
178
- const b = N("clickable"), C = N("loading"), R = N("overlay");
179
- return o.modelValue ? Z((n(), i("div", {
178
+ const b = N("clickable"), V = N("loading"), R = N("overlay");
179
+ return o.modelValue ? Z((n(), s("div", {
180
180
  key: 0,
181
181
  class: W(`
182
182
  panel
@@ -184,14 +184,14 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
184
184
  `)
185
185
  }, [
186
186
  (n(), $(ye(
187
- s.value ? "dialog" : "div"
187
+ l.value ? "dialog" : "div"
188
188
  ), {
189
189
  "data-component": "panel",
190
190
  class: W(`
191
191
  aeria-surface
192
192
  panel__content
193
- ${!(s.value || o.fixedRight) && "panel__content--rounded"}
194
- ${s.value && "panel__content--floating"}
193
+ ${!(l.value || o.fixedRight) && "panel__content--rounded"}
194
+ ${l.value && "panel__content--floating"}
195
195
  ${o.bordered && "panel__content--bordered-body"}
196
196
  ${o.fixedRight && "panel__content--fixed-right"}
197
197
  ${o.transparent && "panel__content--transparent"}
@@ -201,25 +201,25 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
201
201
  onClick: v[1] || (v[1] = (T) => T.stopPropagation())
202
202
  }, {
203
203
  default: m(() => [
204
- o.$slots.header || o.title ? (n(), i("div", {
204
+ o.$slots.header || o.title ? (n(), s("div", {
205
205
  key: 0,
206
206
  class: W(`
207
207
  panel__header
208
- ${l.value && "panel__header--collapsed"}
208
+ ${i.value && "panel__header--collapsed"}
209
209
  ${o.outerHeader && "panel__header--outer"}
210
210
  `)
211
211
  }, [
212
212
  k("div", Pt, [
213
- o.$slots.header ? V(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), i("div", Nt, g(o.title), 1)) : f("", !0),
214
- o.$slots.extra ? (n(), i("div", xt, [
215
- V(o.$slots, "extra", {}, void 0, !0)
213
+ o.$slots.header ? C(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), s("div", Nt, g(o.title), 1)) : f("", !0),
214
+ o.$slots.extra ? (n(), s("div", xt, [
215
+ C(o.$slots, "extra", {}, void 0, !0)
216
216
  ])) : f("", !0)
217
217
  ]),
218
218
  o.collapsible ? Z((n(), $(K, {
219
219
  key: 0,
220
220
  reactive: "",
221
- icon: l.value ? "plus" : "minus",
222
- onClick: v[0] || (v[0] = (T) => d(!l.value))
221
+ icon: i.value ? "plus" : "minus",
222
+ onClick: v[0] || (v[0] = (T) => d(!i.value))
223
223
  }, null, 8, ["icon"])), [
224
224
  [b]
225
225
  ]) : o.closeHint ? Z((n(), $(K, {
@@ -231,7 +231,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
231
231
  [b]
232
232
  ]) : f("", !0)
233
233
  ], 2)) : f("", !0),
234
- l.value ? f("", !0) : Z((n(), i("div", {
234
+ i.value ? f("", !0) : Z((n(), s("div", {
235
235
  key: 1,
236
236
  ref_key: "body",
237
237
  ref: r,
@@ -240,11 +240,11 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
240
240
  ${o.fill || "panel__body--padded"}
241
241
  `)
242
242
  }, [
243
- V(o.$slots, "default", {}, void 0, !0)
243
+ C(o.$slots, "default", {}, void 0, !0)
244
244
  ], 2)), [
245
- [C, o.loading]
245
+ [V, o.loading]
246
246
  ]),
247
- o.$slots.footer ? (n(), i("div", {
247
+ o.$slots.footer ? (n(), s("div", {
248
248
  key: 2,
249
249
  class: W(`
250
250
  panel__footer
@@ -252,23 +252,23 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
252
252
  ${t(y) || "panel__footer--shadowed"}
253
253
  `)
254
254
  }, [
255
- V(o.$slots, "footer", {}, void 0, !0)
255
+ C(o.$slots, "footer", {}, void 0, !0)
256
256
  ], 2)) : f("", !0)
257
257
  ]),
258
258
  _: 3
259
259
  }, 8, ["class"]))
260
260
  ], 2)), [
261
261
  [R, {
262
- condition: o.overlay || o.fixedRight || s.value,
262
+ condition: o.overlay || o.fixedRight || l.value,
263
263
  invisible: o.invisibleOverlay,
264
264
  click: h,
265
- layer: o.overlayLayer || (s.value ? 60 : o.fixedRight ? 50 : 0)
265
+ layer: o.overlayLayer || (l.value ? 60 : o.fixedRight ? 50 : 0)
266
266
  }]
267
267
  ]) : f("", !0);
268
268
  };
269
269
  }
270
270
  });
271
- const Ae = /* @__PURE__ */ X(en, [["__scopeId", "data-v-72abeadd"]]), tn = { class: "button__content" }, nn = {
271
+ const Ae = /* @__PURE__ */ X(en, [["__scopeId", "data-v-6fdc75a0"]]), tn = { class: "button__content" }, nn = {
272
272
  key: 1,
273
273
  class: "button__content"
274
274
  }, on = /* @__PURE__ */ U({
@@ -292,42 +292,42 @@ const Ae = /* @__PURE__ */ X(en, [["__scopeId", "data-v-72abeadd"]]), tn = { cla
292
292
  }
293
293
  return fe("buttonSize", u.size) || "medium";
294
294
  })();
295
- return (s, l) => (n(), $(me, {
295
+ return (l, i) => (n(), $(me, {
296
296
  class: W(`
297
297
  button
298
298
  button--${t(e)}
299
299
  button--${t(a)}
300
- ${s.loading && "button--loading"}
300
+ ${l.loading && "button--loading"}
301
301
  `),
302
- disabled: s.disabled
302
+ disabled: l.disabled
303
303
  }, {
304
304
  default: m(() => [
305
- s.icon ? (n(), $(K, {
305
+ l.icon ? (n(), $(K, {
306
306
  key: 0,
307
- icon: s.icon
307
+ icon: l.icon
308
308
  }, {
309
309
  default: m(() => [
310
310
  k("div", tn, [
311
- V(s.$slots, "default", {}, void 0, !0)
311
+ C(l.$slots, "default", {}, void 0, !0)
312
312
  ])
313
313
  ]),
314
314
  _: 3
315
- }, 8, ["icon"])) : (n(), i("div", nn, [
316
- V(s.$slots, "default", {}, void 0, !0)
315
+ }, 8, ["icon"])) : (n(), s("div", nn, [
316
+ C(l.$slots, "default", {}, void 0, !0)
317
317
  ]))
318
318
  ]),
319
319
  _: 3
320
320
  }, 8, ["class", "disabled"]));
321
321
  }
322
322
  });
323
- const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { class: "card__picture" }, sn = { class: "card__footer" }, ln = { class: "card__footer-upper" }, rn = { class: "card__badge" }, un = /* @__PURE__ */ U({
323
+ const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { class: "card__picture" }, ln = { class: "card__footer" }, sn = { class: "card__footer-upper" }, rn = { class: "card__badge" }, un = /* @__PURE__ */ U({
324
324
  __name: "aeria-card",
325
325
  props: {
326
326
  inactive: { type: Boolean },
327
327
  horizontal: { type: Boolean }
328
328
  },
329
329
  setup(c) {
330
- return (u, e) => (n(), i("div", {
330
+ return (u, e) => (n(), s("div", {
331
331
  class: W(`
332
332
  card
333
333
  ${u.inactive && "card--inactive"}
@@ -335,17 +335,17 @@ const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { cla
335
335
  `)
336
336
  }, [
337
337
  k("div", an, [
338
- V(u.$slots, "default", {}, void 0, !0)
338
+ C(u.$slots, "default", {}, void 0, !0)
339
339
  ]),
340
- k("div", sn, [
341
- k("div", ln, [
340
+ k("div", ln, [
341
+ k("div", sn, [
342
342
  k("div", null, [
343
- V(u.$slots, "footer", {}, void 0, !0)
343
+ C(u.$slots, "footer", {}, void 0, !0)
344
344
  ]),
345
- u.$slots.actions ? V(u.$slots, "actions", { key: 0 }, void 0, !0) : f("", !0)
345
+ u.$slots.actions ? C(u.$slots, "actions", { key: 0 }, void 0, !0) : f("", !0)
346
346
  ]),
347
347
  k("div", rn, [
348
- V(u.$slots, "badge", {}, void 0, !0)
348
+ C(u.$slots, "badge", {}, void 0, !0)
349
349
  ])
350
350
  ])
351
351
  ], 2));
@@ -367,20 +367,20 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
367
367
  fae20070: p.value.x,
368
368
  fae2006e: p.value.y
369
369
  }));
370
- const e = u, a = ce("user"), s = Y(null), l = Y(!1), r = (h) => h.filter((d) => d.roles ? d.roles.include(a.currentUser.role) : !!d.click), y = (h, d) => {
370
+ const e = u, a = ce("user"), l = Y(null), i = Y(!1), r = (h) => h.filter((d) => d.roles ? d.roles.include(a.currentUser.role) : !!d.click), y = (h, d) => {
371
371
  h.click(d), e("actionClick", {
372
372
  action: h,
373
373
  subject: d
374
- }), l.value = !1;
374
+ }), i.value = !1;
375
375
  }, p = D(() => {
376
- if (!s.value)
376
+ if (!l.value)
377
377
  return {
378
378
  x: 0,
379
379
  y: 0
380
380
  };
381
- const h = s.value.getBoundingClientRect().top, d = s.value.getBoundingClientRect().left, o = s.value.offsetHeight;
381
+ const h = l.value.getBoundingClientRect().top, d = l.value.getBoundingClientRect().left, o = l.value.offsetHeight;
382
382
  return {
383
- _: l.value,
383
+ _: i.value,
384
384
  x: Math.floor(d) + "px",
385
385
  y: Math.floor(h + o) + "px"
386
386
  };
@@ -388,27 +388,27 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
388
388
  return (h, d) => {
389
389
  var v;
390
390
  const o = N("overlay");
391
- return n(), i(J, null, [
392
- Object.keys(h.$slots).some((b) => b !== "default") || ((v = h.actions) == null ? void 0 : v.length) > 0 ? (n(), i("div", {
391
+ return n(), s(J, null, [
392
+ Object.keys(h.$slots).some((b) => b !== "default") || ((v = h.actions) == null ? void 0 : v.length) > 0 ? (n(), s("div", {
393
393
  key: 0,
394
394
  ref_key: "contextmenu",
395
- ref: s,
395
+ ref: l,
396
396
  class: "contextmenu"
397
397
  }, [
398
398
  k("a", {
399
399
  class: "contextmenu__trigger",
400
- onClick: d[0] || (d[0] = (b) => l.value = !0)
400
+ onClick: d[0] || (d[0] = (b) => i.value = !0)
401
401
  }, [
402
- V(h.$slots, "default", {}, void 0, !0)
402
+ C(h.$slots, "default", {}, void 0, !0)
403
403
  ])
404
404
  ], 512)) : f("", !0),
405
- l.value ? (n(), $(We, {
405
+ i.value ? (n(), $(Ge, {
406
406
  key: 1,
407
407
  to: "main"
408
408
  }, [
409
409
  Z((n(), $(Ae, {
410
- modelValue: l.value,
411
- "onUpdate:modelValue": d[4] || (d[4] = (b) => l.value = b),
410
+ modelValue: i.value,
411
+ "onUpdate:modelValue": d[4] || (d[4] = (b) => i.value = b),
412
412
  fill: "",
413
413
  class: "content"
414
414
  }, {
@@ -416,41 +416,41 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
416
416
  var b;
417
417
  return [
418
418
  k("div", dn, [
419
- h.$slots.header ? (n(), i("div", pn, [
420
- V(h.$slots, "header", {}, void 0, !0)
419
+ h.$slots.header ? (n(), s("div", pn, [
420
+ C(h.$slots, "header", {}, void 0, !0)
421
421
  ])) : f("", !0),
422
- Object.keys(h.$slots).filter((C) => !["default", "extra", "header"].includes(C)).length > 0 ? (n(), i("div", {
422
+ Object.keys(h.$slots).filter((V) => !["default", "extra", "header"].includes(V)).length > 0 ? (n(), s("div", {
423
423
  key: 1,
424
424
  class: "content__section",
425
- onClick: d[1] || (d[1] = (C) => l.value = !1)
425
+ onClick: d[1] || (d[1] = (V) => i.value = !1)
426
426
  }, [
427
- (n(!0), i(J, null, H(Object.keys(h.$slots).filter((C) => !["default", "extra", "header"].includes(C)), (C, R) => (n(), $(me, {
427
+ (n(!0), s(J, null, H(Object.keys(h.$slots).filter((V) => !["default", "extra", "header"].includes(V)), (V, R) => (n(), $(me, {
428
428
  key: `slot-${R}`,
429
429
  class: "content__item content__item--reactive"
430
430
  }, {
431
431
  default: m(() => [
432
- V(h.$slots, C, {}, void 0, !0)
432
+ C(h.$slots, V, {}, void 0, !0)
433
433
  ]),
434
434
  _: 2
435
435
  }, 1024))), 128))
436
436
  ])) : f("", !0),
437
- ((b = h.actions) == null ? void 0 : b.length) > 0 ? (n(), i("div", {
437
+ ((b = h.actions) == null ? void 0 : b.length) > 0 ? (n(), s("div", {
438
438
  key: 2,
439
439
  class: "content__section",
440
- onClick: d[2] || (d[2] = (C) => l.value = !1)
440
+ onClick: d[2] || (d[2] = (V) => i.value = !1)
441
441
  }, [
442
- (n(!0), i(J, null, H(r(h.actions), (C, R) => (n(), $(me, {
442
+ (n(!0), s(J, null, H(r(h.actions), (V, R) => (n(), $(me, {
443
443
  key: `action-${R}`,
444
444
  class: "content__item content__item--reactive",
445
- onClick: (T) => y(C, h.subject)
445
+ onClick: (T) => y(V, h.subject)
446
446
  }, {
447
447
  default: m(() => [
448
- C.icon ? (n(), $(K, {
448
+ V.icon ? (n(), $(K, {
449
449
  key: 0,
450
- icon: C.icon
450
+ icon: V.icon
451
451
  }, {
452
452
  default: m(() => [
453
- Q(g(C.translate ? t(M)(C.name, { capitalize: !0 }) : C.name), 1)
453
+ Q(g(V.translate ? t(M)(V.name, { capitalize: !0 }) : V.name), 1)
454
454
  ]),
455
455
  _: 2
456
456
  }, 1032, ["icon"])) : f("", !0)
@@ -458,13 +458,13 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
458
458
  _: 2
459
459
  }, 1032, ["onClick"]))), 128))
460
460
  ])) : f("", !0),
461
- h.$slots.extra ? (n(), i("div", {
461
+ h.$slots.extra ? (n(), s("div", {
462
462
  key: 3,
463
463
  class: "content__section",
464
- onClick: d[3] || (d[3] = (C) => l.value = !1)
464
+ onClick: d[3] || (d[3] = (V) => i.value = !1)
465
465
  }, [
466
466
  k("div", _n, [
467
- h.$slots.extra ? V(h.$slots, "extra", { key: 0 }, void 0, !0) : f("", !0)
467
+ h.$slots.extra ? C(h.$slots, "extra", { key: 0 }, void 0, !0) : f("", !0)
468
468
  ])
469
469
  ])) : f("", !0)
470
470
  ])
@@ -477,7 +477,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
477
477
  {
478
478
  layer: h.overlayLayer,
479
479
  click: () => {
480
- l.value = !1;
480
+ i.value = !1;
481
481
  }
482
482
  },
483
483
  void 0,
@@ -495,32 +495,32 @@ const Ce = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-24506525"]]), fn = { cla
495
495
  where: {}
496
496
  },
497
497
  setup(c) {
498
- const u = c, e = Te(), a = Y(!1), s = u.where || "top";
499
- return (l, r) => t(e).md ? (n(), i("div", {
498
+ const u = c, e = je(), a = Y(!1), l = u.where || "top";
499
+ return (i, r) => t(e).md ? (n(), s("div", {
500
500
  key: 0,
501
501
  class: "info",
502
502
  onMouseleave: r[1] || (r[1] = (y) => a.value = !1)
503
503
  }, [
504
- a.value ? (n(), i("div", {
504
+ a.value ? (n(), s("div", {
505
505
  key: 0,
506
506
  class: W(`
507
507
  info__bubble
508
- info__bubble--${t(s)}
508
+ info__bubble--${t(l)}
509
509
  `)
510
510
  }, [
511
511
  k("div", fn, [
512
- V(l.$slots, "text", {}, void 0, !0)
512
+ C(i.$slots, "text", {}, void 0, !0)
513
513
  ])
514
514
  ], 2)) : f("", !0),
515
515
  k("div", {
516
516
  onMouseover: r[0] || (r[0] = (y) => a.value = !0)
517
517
  }, [
518
- V(l.$slots, "default", {}, void 0, !0)
518
+ C(i.$slots, "default", {}, void 0, !0)
519
519
  ], 32)
520
- ], 32)) : V(l.$slots, "default", { key: 1 }, void 0, !0);
520
+ ], 32)) : C(i.$slots, "default", { key: 1 }, void 0, !0);
521
521
  }
522
522
  });
523
- const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { class: "input" }, $n = {
523
+ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-76defa0b"]]), hn = { class: "input" }, $n = {
524
524
  key: 0,
525
525
  class: "input__label"
526
526
  }, bn = {
@@ -541,7 +541,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
541
541
  },
542
542
  emits: ["update:modelValue", "input", "change"],
543
543
  setup(c, { emit: u }) {
544
- const e = c, a = e.property || {}, s = "icon" in a || "inputType" in a && a.inputType === "search", l = fe("searchOnly", !1), r = fe("innerInputLabel", !1), y = !l && a.readOnly, p = Bt(), h = u, d = fe("inputVariant", e.variant) || "normal", o = {
544
+ const e = c, a = e.property || {}, l = "icon" in a || "inputType" in a && a.inputType === "search", i = fe("searchOnly", !1), r = fe("innerInputLabel", !1), y = !i && a.readOnly, p = Bt(), h = u, d = fe("inputVariant", e.variant) || "normal", o = {
545
545
  name: e.propertyName,
546
546
  readonly: y,
547
547
  type: (() => {
@@ -564,7 +564,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
564
564
  })(),
565
565
  placeholder: r ? a.description || e.propertyName : a.placeholder
566
566
  };
567
- "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (o.min = a.minimum), a.exclusiveMinimum && (o.min = a.exclusiveMinimum + 1), a.maximum && (o.max = a.maximum), a.exclusiveMaximum && (o.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (o.type = !l && a.format === "date-time" ? "datetime-local" : "date"), o.minlength = a.minLength, o.maxlength = a.maxLength)), o.type === "text" && l && (o.type = "search");
567
+ "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (o.min = a.minimum), a.exclusiveMinimum && (o.min = a.exclusiveMinimum + 1), a.maximum && (o.max = a.maximum), a.exclusiveMaximum && (o.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (o.type = !i && a.format === "date-time" ? "datetime-local" : "date"), o.minlength = a.minLength, o.maxlength = a.maxLength)), o.type === "text" && i && (o.type = "search");
568
568
  const v = () => {
569
569
  try {
570
570
  return e.modelValue ? new Date(e.modelValue).toISOString().split("T").shift() : "";
@@ -574,7 +574,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
574
574
  }, b = Y([
575
575
  "date",
576
576
  "date-time"
577
- ].includes(o.type) ? v() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue), C = (T) => {
577
+ ].includes(o.type) ? v() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue), V = (T) => {
578
578
  const q = (() => {
579
579
  if (o.type === "number" || o.type === "integer")
580
580
  return Number(T);
@@ -591,20 +591,20 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
591
591
  h("input", q), h("update:modelValue", q);
592
592
  }, R = (T) => {
593
593
  const q = T.target.value;
594
- b.value = q, C(q);
594
+ b.value = q, V(q);
595
595
  };
596
596
  return ue(() => e.modelValue, (T, q) => {
597
597
  T instanceof Date || (q && !T ? b.value = void 0 : T && q === void 0 && (b.value = T));
598
598
  }), (T, q) => {
599
- const w = N("focus"), se = N("clickable");
600
- return n(), i("label", hn, [
601
- t(r) ? f("", !0) : (n(), i("div", $n, [
602
- T.$slots.default ? V(T.$slots, "default", { key: 0 }, void 0, !0) : V(T.$slots, "description", { key: 1 }, void 0, !0)
599
+ const w = N("focus"), le = N("clickable");
600
+ return n(), s("label", hn, [
601
+ t(r) ? f("", !0) : (n(), s("div", $n, [
602
+ T.$slots.default ? C(T.$slots, "default", { key: 0 }, void 0, !0) : C(T.$slots, "description", { key: 1 }, void 0, !0)
603
603
  ])),
604
- T.$slots.hint ? (n(), i("div", bn, [
605
- V(T.$slots, "hint", {}, void 0, !0)
604
+ T.$slots.hint ? (n(), s("div", bn, [
605
+ C(T.$slots, "hint", {}, void 0, !0)
606
606
  ])) : f("", !0),
607
- "element" in t(a) && t(a).element === "textarea" ? (n(), i("div", {
607
+ "element" in t(a) && t(a).element === "textarea" ? (n(), s("div", {
608
608
  key: 2,
609
609
  class: W(`
610
610
  input__container
@@ -623,7 +623,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
623
623
  }, null, 42, gn), [
624
624
  [w, t(a).focus]
625
625
  ])
626
- ], 2)) : (n(), i("div", {
626
+ ], 2)) : (n(), s("div", {
627
627
  key: 3,
628
628
  class: W(`
629
629
  input__container
@@ -636,7 +636,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
636
636
  class: `
637
637
  input__input
638
638
  input__input--${t(d)}
639
- ${t(s) && "input__input--icon"}
639
+ ${t(l) && "input__input--icon"}
640
640
  ${t(y) && "input__input--readOnly"}
641
641
  `,
642
642
  onInput: R,
@@ -644,7 +644,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
644
644
  }), null, 16, kn), [
645
645
  [w, t(a).focus]
646
646
  ]),
647
- t(s) ? (n(), $(K, {
647
+ t(l) ? (n(), $(K, {
648
648
  key: 0,
649
649
  icon: t(a).icon || "magnifying-glass",
650
650
  class: W(`
@@ -652,7 +652,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
652
652
  input__icon--${t(d)}
653
653
  `)
654
654
  }, null, 8, ["icon", "class"])) : f("", !0),
655
- t(y) ? (n(), i("div", Vn, [
655
+ t(y) ? (n(), s("div", Vn, [
656
656
  F(yn, null, {
657
657
  text: m(() => [
658
658
  Q("Copiar")
@@ -662,7 +662,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
662
662
  icon: "clipboard",
663
663
  onClick: q[1] || (q[1] = (oe) => t(p)(String(T.modelValue || "")))
664
664
  }, null, 512), [
665
- [se]
665
+ [le]
666
666
  ])
667
667
  ]),
668
668
  _: 1
@@ -673,7 +673,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
673
673
  };
674
674
  }
675
675
  });
676
- const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["value"], An = {
676
+ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-fea1d6e5"]]), In = ["value"], An = {
677
677
  key: 1,
678
678
  value: ""
679
679
  }, On = ["value", "data-selected"], wn = /* @__PURE__ */ U({
@@ -690,7 +690,7 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["val
690
690
  },
691
691
  emits: ["update:modelValue", "change"],
692
692
  setup(c, { emit: u }) {
693
- const e = c, a = u, s = Y(null), l = e.property || {}, r = (d) => {
693
+ const e = c, a = u, l = Y(null), i = e.property || {}, r = (d) => {
694
694
  e.booleanRef && (y.value = d), a("update:modelValue", (d == null ? void 0 : d._id) || d), a("change", (d == null ? void 0 : d._id) || d);
695
695
  }, y = e.booleanRef ? (() => {
696
696
  const d = Y(e.modelValue);
@@ -706,11 +706,11 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["val
706
706
  }), p = (d) => Array.isArray(e.modelValue) ? e.modelValue.includes(d) : e.modelValue === d, h = D(() => e.multiple ? typeof e.multiple == "number" ? e.multiple : 5 : 1);
707
707
  return e.multiple && ue(() => e.modelValue, (d) => {
708
708
  var v;
709
- if (!s.value)
709
+ if (!l.value)
710
710
  return;
711
- const o = s.value.querySelector('option[data-selected="true"]');
712
- o && o.removeAttribute("data-selected"), (v = s.value.querySelector(`option[value="${d}"]`)) == null || v.setAttribute("data-selected", "true");
713
- }), (d, o) => (n(), i("div", {
711
+ const o = l.value.querySelector('option[data-selected="true"]');
712
+ o && o.removeAttribute("data-selected"), (v = l.value.querySelector(`option[value="${d}"]`)) == null || v.setAttribute("data-selected", "true");
713
+ }), (d, o) => (n(), s("div", {
714
714
  class: W({
715
715
  select: !0,
716
716
  "select--outline": !d.noOutline
@@ -718,7 +718,7 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["val
718
718
  }, [
719
719
  k("select", G({
720
720
  ref_key: "select",
721
- ref: s,
721
+ ref: l,
722
722
  value: t(y)
723
723
  }, {
724
724
  size: h.value
@@ -729,53 +729,53 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["val
729
729
  },
730
730
  onChange: o[0] || (o[0] = (v) => r(v.target.value))
731
731
  }), [
732
- t(l).icon ? (n(), $(K, {
732
+ t(i).icon ? (n(), $(K, {
733
733
  key: 0,
734
- icon: t(l).icon
734
+ icon: t(i).icon
735
735
  }, null, 8, ["icon"])) : f("", !0),
736
- e.multiple ? f("", !0) : (n(), i("option", An, g(t(M)("none")), 1)),
737
- (n(!0), i(J, null, H("enum" in t(l) ? t(l).enum : [], (v) => (n(), i("option", {
736
+ e.multiple ? f("", !0) : (n(), s("option", An, g(t(M)("none")), 1)),
737
+ (n(!0), s(J, null, H("enum" in t(i) ? t(i).enum : [], (v) => (n(), s("option", {
738
738
  key: v,
739
739
  value: v,
740
740
  "data-selected": p(v)
741
- }, g(t(l).translate ? t(M)(v) : v), 9, On))), 128)),
742
- V(d.$slots, "default", {}, void 0, !0)
741
+ }, g(t(i).translate ? t(M)(v) : v), 9, On))), 128)),
742
+ C(d.$slots, "default", {}, void 0, !0)
743
743
  ], 16, In)
744
744
  ], 2));
745
745
  }
746
746
  });
747
- const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { class: "pagination" }, Sn = ["value"], jn = { class: "pagination__control" }, Tn = { class: "pagination__page-input" }, Ln = /* @__PURE__ */ U({
747
+ const Ee = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { class: "pagination" }, Sn = ["value"], jn = { class: "pagination__control" }, Tn = { class: "pagination__page-input" }, Ln = /* @__PURE__ */ U({
748
748
  __name: "aeria-pagination",
749
749
  props: {
750
750
  pagination: {}
751
751
  },
752
752
  emits: ["paginate"],
753
753
  setup(c, { emit: u }) {
754
- const e = c, a = u, s = D({
754
+ const e = c, a = u, l = D({
755
755
  get: () => Math.floor(e.pagination.offset / e.pagination.limit),
756
756
  set: (h) => {
757
757
  e.pagination.offset = h * e.pagination.limit;
758
758
  }
759
- }), l = D({
759
+ }), i = D({
760
760
  get: () => e.pagination.limit,
761
761
  set: (h) => {
762
762
  e.pagination.limit = Number(h);
763
763
  }
764
- }), r = Y(s.value ? s.value + 1 : 1), y = D(() => Math.ceil(e.pagination.recordsTotal / e.pagination.limit)), p = (h) => {
765
- s.value = h === "previous" ? s.value - 1 : s.value + 1;
764
+ }), r = Y(l.value ? l.value + 1 : 1), y = D(() => Math.ceil(e.pagination.recordsTotal / e.pagination.limit)), p = (h) => {
765
+ l.value = h === "previous" ? l.value - 1 : l.value + 1;
766
766
  };
767
767
  return ue([
768
- s,
769
- l
768
+ l,
769
+ i
770
770
  ], ([h]) => {
771
771
  r.value = h + 1, a("paginate", {
772
- offset: s.value * l.value,
773
- limit: l.value
772
+ offset: l.value * i.value,
773
+ limit: i.value
774
774
  });
775
- }), (h, d) => (n(), i("div", Bn, [
776
- F(He, {
777
- modelValue: l.value,
778
- "onUpdate:modelValue": d[0] || (d[0] = (o) => l.value = o),
775
+ }), (h, d) => (n(), s("div", Bn, [
776
+ F(Ee, {
777
+ modelValue: i.value,
778
+ "onUpdate:modelValue": d[0] || (d[0] = (o) => i.value = o),
779
779
  property: {
780
780
  enum: [],
781
781
  icon: "list"
@@ -783,7 +783,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
783
783
  class: "pagination__control"
784
784
  }, {
785
785
  default: m(() => [
786
- (n(!0), i(J, null, H(t(St), (o) => (n(), i("option", {
786
+ (n(!0), s(J, null, H(t(St), (o) => (n(), s("option", {
787
787
  key: `limit-${o}`,
788
788
  value: o
789
789
  }, g(o), 9, Sn))), 128))
@@ -792,7 +792,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
792
792
  }, 8, ["modelValue"]),
793
793
  k("div", jn, [
794
794
  F(me, {
795
- onClick: d[1] || (d[1] = (o) => s.value = 0)
795
+ onClick: d[1] || (d[1] = (o) => l.value = 0)
796
796
  }, {
797
797
  default: m(() => [
798
798
  F(K, {
@@ -803,7 +803,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
803
803
  _: 1
804
804
  }),
805
805
  F(me, {
806
- disabled: s.value === 0,
806
+ disabled: l.value === 0,
807
807
  onClick: d[2] || (d[2] = (o) => p("previous"))
808
808
  }, {
809
809
  default: m(() => [
@@ -816,7 +816,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
816
816
  }, 8, ["disabled"]),
817
817
  k("div", Tn, [
818
818
  (n(), $(Ie, {
819
- key: s.value,
819
+ key: l.value,
820
820
  modelValue: r.value,
821
821
  "onUpdate:modelValue": d[3] || (d[3] = (o) => r.value = o),
822
822
  property: {
@@ -824,13 +824,13 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
824
824
  minimum: 1
825
825
  },
826
826
  onChange: d[4] || (d[4] = (o) => {
827
- s.value = r.value === 0 ? 0 : r.value - 1;
827
+ l.value = r.value === 0 ? 0 : r.value - 1;
828
828
  })
829
829
  }, null, 8, ["modelValue"])),
830
830
  k("span", null, g(t(M)("of")) + " " + g(y.value), 1)
831
831
  ]),
832
832
  F(me, {
833
- disabled: s.value === y.value - 1,
833
+ disabled: l.value === y.value - 1,
834
834
  onClick: d[5] || (d[5] = (o) => p("next"))
835
835
  }, {
836
836
  default: m(() => [
@@ -842,7 +842,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
842
842
  _: 1
843
843
  }, 8, ["disabled"]),
844
844
  F(me, {
845
- onClick: d[6] || (d[6] = (o) => s.value = y.value - 1)
845
+ onClick: d[6] || (d[6] = (o) => l.value = y.value - 1)
846
846
  }, {
847
847
  default: m(() => [
848
848
  F(K, {
@@ -856,7 +856,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
856
856
  ]));
857
857
  }
858
858
  });
859
- const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), zn = { class: "checkbox__text" }, Fn = ["innerHTML"], Mn = { class: "checkbox__hint" }, qn = ["innerHTML"], Un = {
859
+ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-41aa1ffc"]]), zn = { class: "checkbox__text" }, Fn = ["innerHTML"], Mn = { class: "checkbox__hint" }, qn = ["innerHTML"], Un = {
860
860
  inheritAttrs: !1
861
861
  }, En = /* @__PURE__ */ U({
862
862
  ...Un,
@@ -872,10 +872,10 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), zn = { cla
872
872
  },
873
873
  emits: ["update:modelValue", "change"],
874
874
  setup(c, { emit: u }) {
875
- const e = c, a = e.property || {}, s = !("enum" in a) && [
875
+ const e = c, a = e.property || {}, l = !("enum" in a) && [
876
876
  "array",
877
877
  "boolean"
878
- ].includes(a.type) ? "checkbox" : "radio", l = u, r = e.value || !1, y = D({
878
+ ].includes(a.type) ? "checkbox" : "radio", i = u, r = e.value || !1, y = D({
879
879
  get: () => {
880
880
  var p;
881
881
  return "type" in a && a.type === "boolean" ? !!e.value : "items" in a ? (p = e.modelValue) == null ? void 0 : p.includes(e.value) : e.modelValue === e.value;
@@ -884,23 +884,23 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), zn = { cla
884
884
  var p;
885
885
  if (!a.readOnly) {
886
886
  if ("type" in a && a.type === "boolean") {
887
- l("update:modelValue", !e.modelValue);
887
+ i("update:modelValue", !e.modelValue);
888
888
  return;
889
889
  }
890
890
  if ("items" in a) {
891
- l("update:modelValue", (p = e.modelValue) != null && p.includes(r) ? e.modelValue.filter((h) => h !== r) : [
891
+ i("update:modelValue", (p = e.modelValue) != null && p.includes(r) ? e.modelValue.filter((h) => h !== r) : [
892
892
  ...e.modelValue || [],
893
893
  r
894
894
  ]);
895
895
  return;
896
896
  }
897
- l("update:modelValue", e.value);
897
+ i("update:modelValue", e.value);
898
898
  }
899
899
  }
900
900
  });
901
901
  return (p, h) => {
902
902
  const d = N("clickable");
903
- return n(), i("label", {
903
+ return Z((n(), s("label", {
904
904
  class: W(`
905
905
  checkbox
906
906
  ${t(a).readOnly && "checkbox--readOnly"}
@@ -909,33 +909,33 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), zn = { cla
909
909
  Z(k("input", G({
910
910
  "onUpdate:modelValue": h[0] || (h[0] = (o) => y.value = o)
911
911
  }, {
912
- type: t(s),
912
+ type: t(l),
913
913
  readOnly: t(a).readOnly,
914
914
  checked: y.value
915
915
  }, { class: "checkbox__input" }), null, 16), [
916
916
  [bt, y.value]
917
917
  ]),
918
- Z((n(), i("div", zn, [
918
+ k("div", zn, [
919
919
  k("div", null, [
920
- p.$slots.description ? V(p.$slots, "description", { key: 0 }, void 0, !0) : t(r) ? (n(), i("div", {
920
+ p.$slots.description ? C(p.$slots, "description", { key: 0 }, void 0, !0) : t(r) ? (n(), s("div", {
921
921
  key: 1,
922
922
  innerHTML: t(a).translate ? t(M)(t(r)) : t(r)
923
- }, null, 8, Fn)) : V(p.$slots, "default", { key: 2 }, void 0, !0)
923
+ }, null, 8, Fn)) : C(p.$slots, "default", { key: 2 }, void 0, !0)
924
924
  ]),
925
925
  k("div", Mn, [
926
- p.$slots.hint ? V(p.$slots, "hint", { key: 0 }, void 0, !0) : t(a).hint ? (n(), i("div", {
926
+ p.$slots.hint ? C(p.$slots, "hint", { key: 0 }, void 0, !0) : t(a).hint ? (n(), s("div", {
927
927
  key: 1,
928
928
  innerHTML: t(a).hint
929
929
  }, null, 8, qn)) : f("", !0)
930
930
  ])
931
- ])), [
932
- [d]
933
931
  ])
934
- ], 2);
932
+ ], 2)), [
933
+ [d]
934
+ ]);
935
935
  };
936
936
  }
937
937
  });
938
- const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-c0ec1e4a"]]), Dn = {
938
+ const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-256eb557"]]), Dn = {
939
939
  inheritAttrs: !1
940
940
  }, Qn = /* @__PURE__ */ U({
941
941
  ...Dn,
@@ -950,22 +950,22 @@ const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-c0ec1e4a"]]), Dn = {
950
950
  },
951
951
  emits: ["update:modelValue"],
952
952
  setup(c, { emit: u }) {
953
- const e = c, a = u, s = "items" in e.property ? e.property.items.enum : e.property.enum, l = (r) => {
953
+ const e = c, a = u, l = "items" in e.property ? e.property.items.enum : e.property.enum, i = (r) => {
954
954
  a("update:modelValue", r);
955
955
  };
956
- return mt(() => {
956
+ return _t(() => {
957
957
  e.modelValue || a(
958
958
  "update:modelValue",
959
959
  "items" in e.property ? [] : ""
960
960
  );
961
- }), (r, y) => (n(), i("div", {
961
+ }), (r, y) => (n(), s("div", {
962
962
  class: "options",
963
963
  style: he(`
964
964
  --columns: ${r.columns};
965
965
  grid-template-columns: repeat(var(--columns), 1fr);
966
966
  `)
967
967
  }, [
968
- (n(!0), i(J, null, H(t(s), (p) => (n(), i("div", {
968
+ (n(!0), s(J, null, H(t(l), (p) => (n(), s("div", {
969
969
  key: `option-${p}`,
970
970
  class: "options__checkbox"
971
971
  }, [
@@ -974,13 +974,13 @@ const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-c0ec1e4a"]]), Dn = {
974
974
  property: r.property
975
975
  }, {
976
976
  "model-value": r.modelValue,
977
- "onUpdate:modelValue": l
977
+ "onUpdate:modelValue": i
978
978
  }), null, 16, ["model-value"])
979
979
  ]))), 128))
980
980
  ], 4));
981
981
  }
982
982
  });
983
- const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) => (qe("data-v-30f5a5ca"), c = c(), Ue(), c), Xn = { class: "switch-wrapper" }, Yn = /* @__PURE__ */ Wn(() => /* @__PURE__ */ k("div", { class: "switch__slider" }, null, -1)), Jn = { key: 1 }, Kn = {
983
+ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) => (Me("data-v-30f5a5ca"), c = c(), qe(), c), Xn = { class: "switch-wrapper" }, Yn = /* @__PURE__ */ Wn(() => /* @__PURE__ */ k("div", { class: "switch__slider" }, null, -1)), Jn = { key: 1 }, Kn = {
984
984
  inheritAttrs: !1
985
985
  }, Zn = /* @__PURE__ */ U({
986
986
  ...Kn,
@@ -994,19 +994,19 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) =
994
994
  },
995
995
  emits: ["update:modelValue", "change"],
996
996
  setup(c, { emit: u }) {
997
- const e = c, a = u, s = e.property || {}, l = () => {
998
- s.readOnly || (a("change", !e.modelValue), a("update:modelValue", !e.modelValue));
997
+ const e = c, a = u, l = e.property || {}, i = () => {
998
+ l.readOnly || (a("change", !e.modelValue), a("update:modelValue", !e.modelValue));
999
999
  };
1000
1000
  return (r, y) => {
1001
1001
  const p = N("clickable");
1002
- return n(), i("div", Xn, [
1003
- Z((n(), i("a", {
1002
+ return n(), s("div", Xn, [
1003
+ Z((n(), s("a", {
1004
1004
  class: W(`
1005
1005
  switch
1006
1006
  ${r.modelValue && "switch--active"}
1007
- ${t(s).readOnly && "switch--readOnly"}
1007
+ ${t(l).readOnly && "switch--readOnly"}
1008
1008
  `),
1009
- onClick: Fe(l, ["stop"])
1009
+ onClick: ze(i, ["stop"])
1010
1010
  }, [
1011
1011
  Yn,
1012
1012
  k("div", {
@@ -1017,18 +1017,18 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) =
1017
1017
  }, null, 2)
1018
1018
  ], 2)), [
1019
1019
  [p, {
1020
- blocked: t(s).readOnly
1020
+ blocked: t(l).readOnly
1021
1021
  }]
1022
1022
  ]),
1023
- r.$slots.default ? V(r.$slots, "default", { key: 0 }, void 0, !0) : (n(), i("div", Jn, g(t(s).description || r.propertyName), 1))
1023
+ r.$slots.default ? C(r.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("div", Jn, g(t(l).description || r.propertyName), 1))
1024
1024
  ]);
1025
1025
  };
1026
1026
  }
1027
1027
  });
1028
- const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) => (qe("data-v-ecfb1379"), c = c(), Ue(), c), Nn = { class: "picture" }, xn = {
1028
+ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) => (Me("data-v-153a2e0f"), c = c(), qe(), c), Nn = { class: "picture" }, xn = {
1029
1029
  key: 0,
1030
1030
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1031
- }, eo = ["src"], to = {
1031
+ }, eo = ["src", "alt"], to = {
1032
1032
  key: 0,
1033
1033
  class: "picture__meta"
1034
1034
  }, no = ["src"], oo = /* @__PURE__ */ yt(() => /* @__PURE__ */ k("line", {
@@ -1045,13 +1045,14 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
1045
1045
  y2: "200",
1046
1046
  stroke: "#000",
1047
1047
  "vector-effect": "non-scaling-stroke"
1048
- }, null, -1)), so = [
1048
+ }, null, -1)), lo = [
1049
1049
  oo,
1050
1050
  ao
1051
- ], lo = { key: 5 }, io = /* @__PURE__ */ U({
1051
+ ], so = { key: 5 }, io = /* @__PURE__ */ U({
1052
1052
  __name: "aeria-picture",
1053
1053
  props: {
1054
1054
  url: {},
1055
+ alt: {},
1055
1056
  fileId: {},
1056
1057
  modelValue: {},
1057
1058
  objectFit: {},
@@ -1063,24 +1064,25 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
1063
1064
  },
1064
1065
  setup(c) {
1065
1066
  const u = c, e = D(() => u.fileId ? `${ft}/file/${u.fileId}/picture` : u.url || u.modelValue), a = Y(!1);
1066
- return (s, l) => {
1067
+ return (l, i) => {
1067
1068
  var y;
1068
1069
  const r = N("overlay");
1069
- return n(), i("figure", Nn, [
1070
- e.value ? (n(), $(We, {
1070
+ return n(), s("figure", Nn, [
1071
+ e.value ? (n(), $(Ge, {
1071
1072
  key: 0,
1072
1073
  to: "main"
1073
1074
  }, [
1074
- a.value ? Z((n(), i("div", xn, [
1075
+ a.value ? Z((n(), s("div", xn, [
1075
1076
  k("img", {
1076
1077
  src: e.value,
1078
+ alt: l.alt,
1077
1079
  style: `
1078
1080
  max-height: 60vh;
1079
1081
  object-fit: contain;
1080
1082
  `,
1081
- onClick: l[0] || (l[0] = (p) => a.value = !0)
1083
+ onClick: i[0] || (i[0] = (p) => a.value = !0)
1082
1084
  }, null, 8, eo),
1083
- (y = s.meta) != null && y.owner ? (n(), i("div", to, " Criado por " + g(s.meta.owner.name) + " em " + g(s.formatDateTime(s.meta.created_at, { hours: !0 })), 1)) : f("", !0)
1085
+ (y = l.meta) != null && y.owner ? (n(), s("div", to, " Criado por " + g(l.meta.owner.name) + " em " + g(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : f("", !0)
1084
1086
  ])), [
1085
1087
  [r, {
1086
1088
  click: () => {
@@ -1089,44 +1091,44 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
1089
1091
  }]
1090
1092
  ]) : f("", !0)
1091
1093
  ])) : f("", !0),
1092
- e.value ? (n(), i("img", {
1094
+ e.value ? (n(), s("img", {
1093
1095
  key: 1,
1094
1096
  src: e.value,
1095
1097
  class: W(`
1096
1098
  picture__image
1097
- ${s.bordered && "picture__image--bordered"}
1098
- ${s.expandable && "picture__image--expandable"}
1099
+ ${l.bordered && "picture__image--bordered"}
1100
+ ${l.expandable && "picture__image--expandable"}
1099
1101
  `),
1100
1102
  style: he(`
1101
- object-fit: ${s.objectFit || "cover"};
1102
- width: ${s.width || "100%"};
1103
- height: ${s.height || "100%"};
1103
+ object-fit: ${l.objectFit || "cover"};
1104
+ width: ${l.width || "100%"};
1105
+ height: ${l.height || "100%"};
1104
1106
  `),
1105
- onClick: l[1] || (l[1] = () => {
1106
- s.expandable && (a.value = !0);
1107
+ onClick: i[1] || (i[1] = () => {
1108
+ l.expandable && (a.value = !0);
1107
1109
  })
1108
- }, null, 14, no)) : s.$slots.fallback ? V(s.$slots, "fallback", { key: 2 }, void 0, !0) : s.$slots.default ? V(s.$slots, "default", { key: 3 }, void 0, !0) : (n(), i("svg", {
1110
+ }, null, 14, no)) : l.$slots.fallback ? C(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? C(l.$slots, "default", { key: 3 }, void 0, !0) : (n(), s("svg", {
1109
1111
  key: 4,
1110
1112
  class: W(["picture__background", `
1111
- ${s.bordered && "picture__image--bordered"}
1113
+ ${l.bordered && "picture__image--bordered"}
1112
1114
  `]),
1113
1115
  xmlns: "http://www.w3.org/2000/svg",
1114
1116
  viewBox: "0 0 200 200",
1115
1117
  preserveAspectRatio: "none",
1116
1118
  style: he(`
1117
- object-fit: ${s.objectFit || "cover"};
1118
- width: ${s.width || "100%"};
1119
- height: ${s.height || "100%"};
1119
+ object-fit: ${l.objectFit || "cover"};
1120
+ width: ${l.width || "100%"};
1121
+ height: ${l.height || "100%"};
1120
1122
  `)
1121
- }, so, 6)),
1122
- s.$slots.caption ? (n(), i("figcaption", lo, [
1123
- V(s.$slots, "caption", {}, void 0, !0)
1123
+ }, lo, 6)),
1124
+ l.$slots.caption ? (n(), s("figcaption", so, [
1125
+ C(l.$slots, "caption", {}, void 0, !0)
1124
1126
  ])) : f("", !0)
1125
1127
  ]);
1126
1128
  };
1127
1129
  }
1128
1130
  });
1129
- const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { class: "file" }, uo = { key: 0 }, co = ["href"], po = { class: "file__actions" }, _o = ["accept"], mo = {
1131
+ const Fe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-153a2e0f"]]), ro = { class: "file" }, uo = { key: 0 }, co = ["href"], po = { class: "file__actions" }, _o = ["accept"], mo = {
1130
1132
  key: 0,
1131
1133
  class: "file__buttons"
1132
1134
  }, fo = {
@@ -1143,52 +1145,54 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
1143
1145
  meta: {},
1144
1146
  content: {}
1145
1147
  },
1146
- emits: ["update:modelValue", "update:content", "change"],
1148
+ emits: ["update:content", "change", "update:modelValue"],
1147
1149
  setup(c, { emit: u }) {
1148
- const e = c, a = u, l = Le() ? ge() : null, r = Y(null), y = D(() => {
1150
+ const e = c, a = u, i = Te() ? ge() : null, r = Y(null), y = D(() => {
1149
1151
  var b;
1150
1152
  return r.value ? URL.createObjectURL(r.value) : (b = e.modelValue) == null ? void 0 : b.link;
1151
1153
  }), p = D(() => {
1152
- var b, C, R;
1153
- return /^image\//.test((b = e.modelValue) == null ? void 0 : b.mime) && !((C = r.value) != null && C.type) || /^image\//.test((R = r.value) == null ? void 0 : R.type);
1154
- }), h = (b) => new Promise((C) => {
1154
+ var b, V, R;
1155
+ return /^image\//.test((b = e.modelValue) == null ? void 0 : b.mime) && !((V = r.value) != null && V.type) || /^image\//.test((R = r.value) == null ? void 0 : R.type);
1156
+ }), h = (b) => new Promise((V) => {
1155
1157
  const R = new FileReader();
1156
- R.onload = () => C(R.result), R.readAsArrayBuffer(b);
1158
+ R.onload = () => V(R.result), R.readAsArrayBuffer(b);
1157
1159
  }), d = () => {
1158
1160
  r.value = null;
1159
1161
  }, o = async (b) => {
1160
1162
  r.value = b.target.files[0];
1161
- const C = r.value, R = await h(C);
1162
- if (l) {
1163
- const { data: T } = await jt(`${ft}/${l.$id}/upload?filename=${C.name}`, R, {
1163
+ const V = r.value, R = await h(V);
1164
+ if (i) {
1165
+ const { data: T } = await jt(`${ft}/${i.$id}/upload?name=${V.name}`, R, {
1164
1166
  params: {
1165
1167
  method: "POST",
1166
1168
  headers: {
1167
- "content-type": C.type || "application/octet-stream",
1169
+ "content-type": V.type || "application/octet-stream",
1168
1170
  "x-stream-request": "1"
1169
1171
  }
1170
1172
  }
1171
1173
  });
1172
1174
  a("update:modelValue", T);
1173
- }
1175
+ } else
1176
+ a("update:modelValue", V);
1174
1177
  a("update:content", R), a("change", R);
1175
1178
  }, v = async () => {
1176
1179
  a("update:modelValue", null);
1177
1180
  };
1178
- return (b, C) => {
1179
- var R, T, q, w, se, oe;
1180
- return n(), i("div", ro, [
1181
- r.value || (R = b.modelValue) != null && R._id ? (n(), i("div", uo, [
1182
- p.value ? (n(), $(Me, {
1181
+ return (b, V) => {
1182
+ var R, T, q, w, le, oe;
1183
+ return n(), s("div", ro, [
1184
+ r.value || (R = b.modelValue) != null && R._id ? (n(), s("div", uo, [
1185
+ p.value ? (n(), $(Fe, {
1183
1186
  key: 0,
1184
1187
  modelValue: y.value,
1185
- "onUpdate:modelValue": C[0] || (C[0] = (S) => y.value = S),
1188
+ "onUpdate:modelValue": V[0] || (V[0] = (S) => y.value = S),
1189
+ alt: "Image preview",
1186
1190
  class: W(`
1187
1191
  file__image
1188
- ${!t(l) || ((T = b.modelValue) == null ? void 0 : T._id) || "file__image--unsent"}
1192
+ ${!t(i) || ((T = b.modelValue) == null ? void 0 : T._id) || "file__image--unsent"}
1189
1193
  `)
1190
1194
  }, null, 8, ["modelValue", "class"])) : f("", !0),
1191
- (q = b.modelValue) != null && q._id ? (n(), i("a", {
1195
+ (q = b.modelValue) != null && q._id ? (n(), s("a", {
1192
1196
  key: 1,
1193
1197
  href: b.modelValue.download_link
1194
1198
  }, g(b.modelValue.filename), 9, co)) : f("", !0)
@@ -1197,26 +1201,26 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
1197
1201
  k("input", {
1198
1202
  ref: "file",
1199
1203
  type: "file",
1200
- accept: (se = (w = b.property) == null ? void 0 : w.accept) == null ? void 0 : se.join(","),
1204
+ accept: (le = (w = b.property) == null ? void 0 : w.accept) == null ? void 0 : le.join(","),
1201
1205
  onChange: o
1202
1206
  }, null, 40, _o),
1203
- r.value ? (n(), i("div", mo, [
1207
+ r.value ? (n(), s("div", mo, [
1204
1208
  F(re, {
1205
1209
  small: "",
1206
- onClick: Fe(d, ["prevent"])
1210
+ onClick: ze(d, ["prevent"])
1207
1211
  }, {
1208
1212
  default: m(() => [
1209
- Q(" Limpar ")
1213
+ Q(g(t(M)("action.clear", { capitalize: !0 })), 1)
1210
1214
  ]),
1211
1215
  _: 1
1212
1216
  })
1213
- ])) : (oe = b.modelValue) != null && oe._id ? (n(), i("div", fo, [
1217
+ ])) : (oe = b.modelValue) != null && oe._id ? (n(), s("div", fo, [
1214
1218
  F(re, {
1215
1219
  small: "",
1216
- onClick: Fe(v, ["prevent"])
1220
+ onClick: ze(v, ["prevent"])
1217
1221
  }, {
1218
1222
  default: m(() => [
1219
- Q(" Remover ")
1223
+ Q(g(t(M)("action.remove", { capitalize: !0 })), 1)
1220
1224
  ]),
1221
1225
  _: 1
1222
1226
  })
@@ -1226,7 +1230,7 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
1226
1230
  };
1227
1231
  }
1228
1232
  });
1229
- const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-f3848c9a"]]), ho = { class: "container" }, $o = {
1233
+ const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-38fc243c"]]), ho = { class: "container" }, $o = {
1230
1234
  key: 1,
1231
1235
  class: "container__footer"
1232
1236
  }, bo = /* @__PURE__ */ U({
@@ -1236,27 +1240,27 @@ const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-f3848c9a"]]), ho = { cla
1236
1240
  },
1237
1241
  emits: ["endReached"],
1238
1242
  setup(c, { emit: u }) {
1239
- const e = c, a = u, s = Y(null), l = e.observeScroll ? Xe(s, {
1243
+ const e = c, a = u, l = Y(null), i = e.observeScroll ? We(l, {
1240
1244
  antecipate: 100
1241
1245
  }).reachedEnd : null;
1242
- return l !== null && ue(l, (r) => {
1246
+ return i !== null && ue(i, (r) => {
1243
1247
  r && a("endReached", r);
1244
- }), (r, y) => (n(), i("div", ho, [
1245
- r.$slots.default ? (n(), i("div", {
1248
+ }), (r, y) => (n(), s("div", ho, [
1249
+ r.$slots.default ? (n(), s("div", {
1246
1250
  key: 0,
1247
1251
  ref_key: "containerEl",
1248
- ref: s,
1252
+ ref: l,
1249
1253
  class: "container__content"
1250
1254
  }, [
1251
- V(r.$slots, "default", {}, void 0, !0)
1255
+ C(r.$slots, "default", {}, void 0, !0)
1252
1256
  ], 512)) : f("", !0),
1253
- r.$slots.footer ? (n(), i("div", $o, [
1254
- V(r.$slots, "footer", {}, void 0, !0)
1257
+ r.$slots.footer ? (n(), s("div", $o, [
1258
+ C(r.$slots, "footer", {}, void 0, !0)
1255
1259
  ])) : f("", !0)
1256
1260
  ]));
1257
1261
  }
1258
1262
  });
1259
- const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { class: "item__values" }, ko = /* @__PURE__ */ U({
1263
+ const st = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-c86e2d2a"]]), go = { class: "item__values" }, ko = /* @__PURE__ */ U({
1260
1264
  __name: "aeria-search-item",
1261
1265
  props: {
1262
1266
  item: {},
@@ -1266,16 +1270,16 @@ const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
1266
1270
  },
1267
1271
  emits: ["update:modelValue", "change"],
1268
1272
  setup(c, { emit: u }) {
1269
- const e = c, a = u, s = e.property, l = pe(s), r = ge(), y = D(() => Array.isArray(e.modelValue) ? Array.isArray(e.modelValue) && Object.values(e.modelValue).some(({ _id: d }) => e.item._id === d) : e.modelValue && e.modelValue._id === e.item._id), p = () => {
1273
+ const e = c, a = u, l = e.property, i = pe(l), r = ge(), y = D(() => Array.isArray(e.modelValue) ? Array.isArray(e.modelValue) && Object.values(e.modelValue).some(({ _id: d }) => e.item._id === d) : e.modelValue && e.modelValue._id === e.item._id), p = () => {
1270
1274
  if (y.value)
1271
1275
  return;
1272
- const d = (v) => v.filter((b) => !!(b != null && b._id)), o = "items" in s ? d(Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]) : e.modelValue;
1276
+ const d = (v) => v.filter((b) => !!(b != null && b._id)), o = "items" in l ? d(Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]) : e.modelValue;
1273
1277
  a("update:modelValue", Array.isArray(o) ? [
1274
1278
  ...o,
1275
1279
  e.item
1276
1280
  ] : e.item), a("change", e.item);
1277
1281
  }, h = async (d) => {
1278
- if (l.purge && (d != null && d.purge)) {
1282
+ if (i.purge && (d != null && d.purge)) {
1279
1283
  const { _id: v } = e.item;
1280
1284
  await r.$actions.remove({
1281
1285
  filters: {
@@ -1284,24 +1288,24 @@ const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
1284
1288
  });
1285
1289
  }
1286
1290
  const o = () => {
1287
- const v = [...e.modelValue], b = v.findIndex((C) => C._id === e.item._id);
1291
+ const v = [...e.modelValue], b = v.findIndex((V) => V._id === e.item._id);
1288
1292
  return v.splice(b, 1), v;
1289
1293
  };
1290
- a("update:modelValue", "items" in s ? o() : null);
1294
+ a("update:modelValue", "items" in l ? o() : null);
1291
1295
  };
1292
1296
  return (d, o) => {
1293
1297
  const v = N("clickable");
1294
- return Z((n(), i("div", {
1298
+ return Z((n(), s("div", {
1295
1299
  class: W({
1296
1300
  item: !0,
1297
1301
  "item--selected": y.value
1298
1302
  }),
1299
1303
  onClick: o[0] || (o[0] = (b) => y.value ? h() : p())
1300
1304
  }, [
1301
- V(d.$slots, "default", {}, void 0, !0),
1305
+ C(d.$slots, "default", {}, void 0, !0),
1302
1306
  k("div", go, [
1303
- (n(!0), i(J, null, H(d.indexes, (b, C) => (n(), i("div", {
1304
- key: `index-${d.item._id}-${C}`,
1307
+ (n(!0), s(J, null, H(d.indexes, (b, V) => (n(), s("div", {
1308
+ key: `index-${d.item._id}-${V}`,
1305
1309
  class: "item__value"
1306
1310
  }, g(d.item[b]), 1))), 128))
1307
1311
  ])
@@ -1311,10 +1315,10 @@ const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
1311
1315
  };
1312
1316
  }
1313
1317
  });
1314
- const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { class: "search__panel" }, Co = { class: "search__input" }, Io = ["value"], Ao = { style: { flex: "1" } }, Oo = { key: 1 }, wo = { key: 0 }, Bo = { key: 1 }, So = { class: "search__summary" }, jo = {
1318
+ const De = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { class: "search__panel" }, Co = { class: "search__input" }, Io = ["value"], Ao = { style: { flex: "1" } }, Oo = { key: 1 }, wo = { key: 0 }, Bo = { key: 1 }, So = { class: "search__summary" }, jo = {
1315
1319
  key: 1,
1316
1320
  class: "search"
1317
- }, To = { key: 0 }, ze = 10, Lo = /* @__PURE__ */ U({
1321
+ }, To = { key: 0 }, Re = 10, Lo = /* @__PURE__ */ U({
1318
1322
  __name: "aeria-search",
1319
1323
  props: {
1320
1324
  modelValue: {},
@@ -1327,27 +1331,27 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1327
1331
  },
1328
1332
  emits: ["update:modelValue", "change", "update:panel"],
1329
1333
  setup(c, { emit: u }) {
1330
- const e = c, a = pe(e.property), s = e.panel !== void 0 ? D(() => e.panel) : Y(!1), l = u, r = ce(pe(e.property).$ref), y = Le(), p = y ? ge() : null, h = a.indexes;
1331
- ve(Ee, pe(e.property).$ref), ve("innerInputLabel", !0), ve("omitInputLabels", !0);
1334
+ const e = c, a = pe(e.property), l = e.panel !== void 0 ? D(() => e.panel) : Y(!1), i = u, r = ce(pe(e.property).$ref), y = Te(), p = y ? ge() : null, h = a.indexes;
1335
+ ve(Ue, pe(e.property).$ref), ve("innerInputLabel", !0), ve("omitInputLabels", !0);
1332
1336
  const d = Y(e.modelValue), o = Y({
1333
1337
  data: [],
1334
1338
  pagination: {}
1335
- }), v = D(() => o.value.data), b = D(() => o.value.pagination), C = Y(0), R = Y(h[0]), T = Y(!1), q = Y({}), w = () => {
1339
+ }), v = D(() => o.value.data), b = D(() => o.value.pagination), V = Y(0), R = Y(h[0]), T = Y(!1), q = Y({}), w = () => {
1336
1340
  const I = {};
1337
1341
  if (y) {
1338
- const L = je(y) ? y.value : y;
1342
+ const L = t(y);
1339
1343
  I[L] = p;
1340
1344
  }
1341
1345
  return a.constraints ? qt(a.constraints, I) : {};
1342
- }, se = () => {
1343
- v.value.length < b.value.recordsTotal && (C.value += 1, S());
1346
+ }, le = () => {
1347
+ v.value.length < b.value.recordsTotal && (V.value += 1, S());
1344
1348
  }, oe = async () => Object.values(q.value).every((I) => !(String(I).length > 0)) ? r.$actions.custom("getAll", {
1345
- limit: ze,
1346
- offset: C.value * ze,
1349
+ limit: Re,
1350
+ offset: V.value * Re,
1347
1351
  filters: w()
1348
1352
  }) : r.$actions.custom("getAll", {
1349
- limit: ze,
1350
- offset: C.value * ze,
1353
+ limit: Re,
1354
+ offset: V.value * Re,
1351
1355
  filters: {
1352
1356
  ...w(),
1353
1357
  $or: h.filter((I) => {
@@ -1364,17 +1368,17 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1364
1368
  if (r.loading.getAll)
1365
1369
  return;
1366
1370
  const I = await oe();
1367
- o.value.pagination = I.pagination, C.value === 0 && o.value.data.splice(0), o.value.data.push(...I.data);
1371
+ o.value.pagination = I.pagination, V.value === 0 && o.value.data.splice(0), o.value.data.push(...I.data);
1368
1372
  }, [x] = vt({
1369
1373
  delay: 800
1370
1374
  })(() => {
1371
- C.value = 0, S(), T.value = !1;
1375
+ V.value = 0, S(), T.value = !1;
1372
1376
  }), O = () => {
1373
1377
  T.value = !0, x();
1374
1378
  }, z = () => {
1375
- "effect" in s ? l("update:panel", !0) : s.value = !0, S();
1379
+ "effect" in l ? i("update:panel", !0) : l.value = !0, S();
1376
1380
  }, ee = () => {
1377
- C.value = 0, o.value.data.splice(0), "effect" in s ? l("update:panel", !1) : s.value = !1;
1381
+ V.value = 0, o.value.data.splice(0), "effect" in l ? i("update:panel", !1) : l.value = !1;
1378
1382
  }, ne = D(() => !Object.values(q.value).some((I) => !!I));
1379
1383
  ue(ne, (I, L) => {
1380
1384
  I && !L && S();
@@ -1382,14 +1386,14 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1382
1386
  e.selectOnly && S();
1383
1387
  });
1384
1388
  const _ = (I) => {
1385
- d.value = I, e.selectOnly || l("update:modelValue", I);
1389
+ d.value = I, e.selectOnly || i("update:modelValue", I);
1386
1390
  }, E = () => {
1387
- ee(), l("update:modelValue", d.value);
1391
+ ee(), i("update:modelValue", d.value);
1388
1392
  };
1389
1393
  return (I, L) => {
1390
1394
  const A = N("clickable");
1391
- return n(), i("div", null, [
1392
- t(s) ? (n(), $(We, {
1395
+ return n(), s("div", null, [
1396
+ t(l) ? (n(), $(Ge, {
1393
1397
  key: 0,
1394
1398
  to: "main"
1395
1399
  }, [
@@ -1398,7 +1402,7 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1398
1402
  "close-hint": "",
1399
1403
  title: `${t(M)("action.select", { capitalize: !0 })} ${t(M)(I.propertyName)}`,
1400
1404
  "overlay-layer": 65,
1401
- "model-value": t(s),
1405
+ "model-value": t(l),
1402
1406
  style: { "--panel-max-width": "36rem" },
1403
1407
  onClose: ee,
1404
1408
  onOverlayClick: ee
@@ -1419,14 +1423,14 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1419
1423
  return [
1420
1424
  k("div", Vo, [
1421
1425
  k("div", Co, [
1422
- t(h).length > 1 ? (n(), $(He, {
1426
+ t(h).length > 1 ? (n(), $(Ee, {
1423
1427
  key: 0,
1424
1428
  modelValue: R.value,
1425
1429
  "onUpdate:modelValue": L[0] || (L[0] = (B) => R.value = B),
1426
1430
  onChange: L[1] || (L[1] = (B) => q.value = {})
1427
1431
  }, {
1428
1432
  default: m(() => [
1429
- (n(!0), i(J, null, H(t(h), (B) => (n(), i("option", {
1433
+ (n(!0), s(J, null, H(t(h), (B) => (n(), s("option", {
1430
1434
  key: `searchfield-${B}`,
1431
1435
  value: B
1432
1436
  }, g(t(M)(B)), 9, Io))), 128))
@@ -1446,13 +1450,13 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1446
1450
  }, null, 8, ["modelValue", "property"]))
1447
1451
  ])
1448
1452
  ]),
1449
- v.value.length ? (n(), $(it, {
1453
+ v.value.length ? (n(), $(st, {
1450
1454
  key: 0,
1451
1455
  "observe-scroll": "",
1452
- onEndReached: se
1456
+ onEndReached: le
1453
1457
  }, {
1454
1458
  default: m(() => [
1455
- (n(!0), i(J, null, H(v.value, (B) => (n(), $(Qe, G({
1459
+ (n(!0), s(J, null, H(v.value, (B) => (n(), $(De, G({
1456
1460
  item: B,
1457
1461
  indexes: t(h),
1458
1462
  property: I.property
@@ -1463,8 +1467,8 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1463
1467
  }), null, 16, ["modelValue"]))), 128))
1464
1468
  ]),
1465
1469
  _: 1
1466
- })) : (n(), i("div", Oo, [
1467
- T.value ? (n(), i("div", wo, g(t(M)("searching", { capitalize: !0 })) + "... ", 1)) : !t(r).loading.getAll && Object.values(q.value).filter((B) => !!B).length > 0 && !("items" in I.property && ((j = I.modelValue) != null && j.length) || !Array.isArray(I.modelValue) && ((te = I.modelValue) != null && te._id)) ? (n(), i("div", Bo, g(t(M)("no_results", { capitalize: !0 })), 1)) : f("", !0)
1470
+ })) : (n(), s("div", Oo, [
1471
+ T.value ? (n(), s("div", wo, g(t(M)("searching", { capitalize: !0 })) + "... ", 1)) : !t(r).loading.getAll && Object.values(q.value).filter((B) => !!B).length > 0 && !("items" in I.property && ((j = I.modelValue) != null && j.length) || !Array.isArray(I.modelValue) && ((te = I.modelValue) != null && te._id)) ? (n(), s("div", Bo, g(t(M)("no_results", { capitalize: !0 })), 1)) : f("", !0)
1468
1472
  ]))
1469
1473
  ]),
1470
1474
  k("div", So, g(t(M)("showing", { capitalize: !0 })) + " " + g(v.value.length) + " " + g(t(M)("of")) + " " + g(b.value.recordsTotal), 1)
@@ -1473,8 +1477,8 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1473
1477
  _: 1
1474
1478
  }, 8, ["title", "model-value"])
1475
1479
  ])) : f("", !0),
1476
- I.selectOnly ? f("", !0) : (n(), i("div", jo, [
1477
- F(it, null, {
1480
+ I.selectOnly ? f("", !0) : (n(), s("div", jo, [
1481
+ F(st, null, {
1478
1482
  footer: m(() => [
1479
1483
  Z((n(), $(K, {
1480
1484
  icon: "plus",
@@ -1491,8 +1495,8 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1491
1495
  default: m(() => {
1492
1496
  var j;
1493
1497
  return [
1494
- "items" in I.property ? (n(), i("div", To, [
1495
- (n(!0), i(J, null, H(I.modelValue, (te) => (n(), $(Qe, G({
1498
+ "items" in I.property ? (n(), s("div", To, [
1499
+ (n(!0), s(J, null, H(I.modelValue, (te) => (n(), $(De, G({
1496
1500
  item: te,
1497
1501
  indexes: t(h),
1498
1502
  property: I.property,
@@ -1501,7 +1505,7 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1501
1505
  key: `selected-${te._id}`,
1502
1506
  "onUpdate:modelValue": _
1503
1507
  }), null, 16))), 128))
1504
- ])) : (j = I.modelValue) != null && j._id ? (n(), $(Qe, G({ key: 1 }, {
1508
+ ])) : (j = I.modelValue) != null && j._id ? (n(), $(De, G({ key: 1 }, {
1505
1509
  item: I.modelValue,
1506
1510
  indexes: t(h),
1507
1511
  property: t(a),
@@ -1516,16 +1520,16 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
1516
1520
  };
1517
1521
  }
1518
1522
  });
1519
- const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u) => {
1523
+ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u) => {
1520
1524
  const e = "items" in c ? c.items : c, a = {
1521
1525
  options: Gn,
1522
- select: He,
1526
+ select: Ee,
1523
1527
  switch: Pn,
1524
1528
  file: yo,
1525
1529
  search: Ro,
1526
1530
  input: Ie,
1527
- form: De
1528
- }, s = (() => {
1531
+ form: He
1532
+ }, l = (() => {
1529
1533
  if ("type" in e) {
1530
1534
  if (e.type === "object")
1531
1535
  return "form";
@@ -1538,16 +1542,16 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1538
1542
  if (c.element === "select")
1539
1543
  return "select";
1540
1544
  }
1541
- const l = pe(c);
1542
- return l ? l.inline ? "form" : l.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in e ? "select" : "input";
1545
+ const i = pe(c);
1546
+ return i ? i.inline ? "form" : i.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in e ? "select" : "input";
1543
1547
  })();
1544
- return u[s] ? u[s] : a[s];
1548
+ return u[l] ? u[l] : a[l];
1545
1549
  }, zo = (c, u) => {
1546
1550
  c ?? (c = []);
1547
1551
  const e = "items" in u ? u.items : u;
1548
1552
  if ("$ref" in u) {
1549
- const a = ce(u.$ref), s = Se(a.$freshItem);
1550
- return c.unshift(s);
1553
+ const a = ce(u.$ref), l = Se(a.$freshItem);
1554
+ return c.unshift(l);
1551
1555
  }
1552
1556
  return "properties" in e ? c.unshift(Ut(e)) : "type" in e && e.type === "boolean" ? c.unshift({}) : c.unshift(null);
1553
1557
  }, Fo = (c, u) => {
@@ -1593,33 +1597,33 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1593
1597
  emits: ["update:modelValue", "input", "change"],
1594
1598
  setup(c, { emit: u }) {
1595
1599
  const e = c, a = u;
1596
- mt(() => {
1600
+ _t(() => {
1597
1601
  e.modelValue || a("update:modelValue", e.property && "items" in e.property ? [] : {});
1598
1602
  });
1599
- const s = e.property && pe(e.property), l = s ? s.$ref : e.collection || Le(), r = l ? ce(je(l) ? l.value : l) : null;
1600
- !l && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1603
+ const l = e.property && pe(e.property), i = l ? l.$ref : e.collection || Te(), r = i ? ce(t(i)) : null;
1604
+ !i && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1601
1605
  collection prop, some features may not work as intended`);
1602
1606
  const y = Y(!1), p = D(() => !e.form && e.property ? "properties" in e.property ? e.property.properties : r == null ? void 0 : r.properties : e.form), h = D(() => e.layout || (r == null ? void 0 : r.description.formLayout)), d = (_) => {
1603
1607
  const E = fe(_, e[_]);
1604
1608
  return e[_] && ve(_, e[_]), E;
1605
- }, o = D(() => e.validationErrors !== null ? e.validationErrors : r == null ? void 0 : r.validationErrors), v = d("formComponents") || {}, b = d("propertyComponents") || {}, C = d("omitFormHeader"), R = d("omitInputLabels"), T = d("innerInputLabel");
1606
- l && ve(Ee, l), ve("searchOnly", e.searchOnly);
1609
+ }, o = D(() => e.validationErrors !== null ? e.validationErrors : r == null ? void 0 : r.validationErrors), v = d("formComponents") || {}, b = d("propertyComponents") || {}, V = d("omitFormHeader"), R = d("omitInputLabels"), T = d("innerInputLabel");
1610
+ i && ve(Ue, i), ve("searchOnly", e.searchOnly);
1607
1611
  const q = (_) => p.value ? Object.entries(p.value).filter(([E, I]) => !I.noForm && _([
1608
1612
  E,
1609
1613
  I
1610
1614
  ])) : null, w = (_) => {
1611
1615
  var I;
1612
- if (e.searchOnly || !l)
1616
+ if (e.searchOnly || !i)
1613
1617
  return !0;
1614
1618
  const E = e.property && "properties" in e.property ? e.property.form : (I = r == null ? void 0 : r.description) == null ? void 0 : I.form;
1615
1619
  return !E || E.includes(_);
1616
- }, se = q(([_]) => w(_)), oe = Te(), S = {}, x = (_, E) => {
1620
+ }, le = q(([_]) => w(_)), oe = je(), S = {}, x = (_, E) => {
1617
1621
  var j, te, B, ae;
1618
1622
  const I = [], L = ((te = (j = h.value) == null ? void 0 : j.fields) == null ? void 0 : te[_]) || ((ae = (B = h.value) == null ? void 0 : B.fields) == null ? void 0 : ae.$default);
1619
1623
  if (!E)
1620
1624
  return;
1621
1625
  if (L != null && L.if && !e.searchOnly) {
1622
- const _e = Ge(
1626
+ const _e = Qe(
1623
1627
  e.modelValue,
1624
1628
  L.if
1625
1629
  );
@@ -1652,23 +1656,23 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1652
1656
  };
1653
1657
  return (_, E) => {
1654
1658
  const I = N("clickable"), L = N("focus");
1655
- return n(), i("form", {
1659
+ return n(), s("form", {
1656
1660
  class: "form",
1657
- style: he(`row-gap: ${t(C) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1661
+ style: he(`row-gap: ${t(V) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1658
1662
  }, [
1659
- _.$slots.header && !t(C) ? (n(), i("header", Mo, [
1660
- V(_.$slots, "header", {}, void 0, !0)
1663
+ _.$slots.header && !t(V) ? (n(), s("header", Mo, [
1664
+ C(_.$slots, "header", {}, void 0, !0)
1661
1665
  ])) : f("", !0),
1662
- V(_.$slots, "default", {}, void 0, !0),
1663
- _.isReadOnly ? f("", !0) : (n(), i("fieldset", qo, [
1664
- (n(!0), i(J, null, H(t(se), ([A, j]) => {
1665
- var te, B, ae, _e, ke, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
1666
- return n(), i("div", {
1666
+ C(_.$slots, "default", {}, void 0, !0),
1667
+ _.isReadOnly ? f("", !0) : (n(), s("fieldset", qo, [
1668
+ (n(!0), s(J, null, H(t(le), ([A, j]) => {
1669
+ var te, B, ae, _e, ke, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe;
1670
+ return n(), s("div", {
1667
1671
  key: `field-${A}`,
1668
1672
  style: he(x(A, j)),
1669
1673
  class: "form__field"
1670
1674
  }, [
1671
- (!("type" in j) || j.type !== "boolean" || _.searchOnly) && !j.noLabel && !t(R) && !t(T) ? (n(), i("label", Uo, [
1675
+ (!("type" in j) || j.type !== "boolean" || _.searchOnly) && !j.noLabel && !t(R) && !t(T) ? (n(), s("label", Uo, [
1672
1676
  k("div", {
1673
1677
  class: W({
1674
1678
  "form__field-label": !0,
@@ -1676,12 +1680,12 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1676
1680
  "form__field-required-hint": _.highlightRequired && !_.searchOnly && (!z.value || t(Et)(A, z.value, _.modelValue))
1677
1681
  })
1678
1682
  }, g(j.description || t(M)(A)), 3),
1679
- j.hint ? (n(), i("div", {
1683
+ j.hint ? (n(), s("div", {
1680
1684
  key: 0,
1681
1685
  innerHTML: j.hint
1682
1686
  }, null, 8, Eo)) : f("", !0)
1683
1687
  ])) : f("", !0),
1684
- _.$slots[`field-${A}`] ? V(_.$slots, `field-${A}`, le(G({ key: 1 }, {
1688
+ _.$slots[`field-${A}`] ? C(_.$slots, `field-${A}`, se(G({ key: 1 }, {
1685
1689
  propery: j,
1686
1690
  properyName: A,
1687
1691
  modelValue: _.modelValue
@@ -1696,7 +1700,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1696
1700
  }, {
1697
1701
  onInput: (P) => a("input", A),
1698
1702
  onChange: E[0] || (E[0] = (P) => a("change", P))
1699
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in j && ["date", "date-time"].includes(j.format) && _.searchOnly ? (n(), i("div", {
1703
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in j && ["date", "date-time"].includes(j.format) && _.searchOnly ? (n(), s("div", {
1700
1704
  key: 3,
1701
1705
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1702
1706
  onInput: (P) => a("input", A),
@@ -1716,8 +1720,8 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1716
1720
  property: j,
1717
1721
  propertyName: A
1718
1722
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1719
- ], 40, Ho)) : "type" in j && j.type === "boolean" && _.searchOnly ? (n(), i("div", Do, [
1720
- F(He, G({
1723
+ ], 40, Ho)) : "type" in j && j.type === "boolean" && _.searchOnly ? (n(), s("div", Do, [
1724
+ F(Ee, G({
1721
1725
  property: j,
1722
1726
  propertyName: A
1723
1727
  }, {
@@ -1734,14 +1738,14 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1734
1738
  ]),
1735
1739
  _: 2
1736
1740
  }, 1040, ["model-value", "onUpdate:modelValue"])
1737
- ])) : _.modelValue && "items" in j && !j.uniqueItems && (!("$ref" in j.items) || j.items.inline || j.items.$ref === "file") ? (n(), i("div", Wo, [
1741
+ ])) : _.modelValue && "items" in j && !j.uniqueItems && (!("$ref" in j.items) || j.items.inline || j.items.$ref === "file") ? (n(), s("div", Wo, [
1738
1742
  k("div", null, [
1739
1743
  F(re, {
1740
1744
  small: "",
1741
1745
  variant: "alt",
1742
1746
  icon: "plus",
1743
- disabled: !("inline" in j.items && j.items.inline) && (((_e = _.modelValue[A]) == null ? void 0 : _e.length) >= j.maxItems || O((Ye = _.modelValue[A]) == null ? void 0 : Ye[((ke = _.modelValue[A]) == null ? void 0 : ke.length) - 1])),
1744
- onClick: Fe((P) => {
1747
+ disabled: !("inline" in j.items && j.items.inline) && (((_e = _.modelValue[A]) == null ? void 0 : _e.length) >= j.maxItems || O((Xe = _.modelValue[A]) == null ? void 0 : Xe[((ke = _.modelValue[A]) == null ? void 0 : ke.length) - 1])),
1748
+ onClick: ze((P) => {
1745
1749
  _.modelValue[A] || (_.modelValue[A] = []), t(zo)(_.modelValue[A], j);
1746
1750
  }, ["prevent"])
1747
1751
  }, {
@@ -1751,22 +1755,22 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1751
1755
  _: 2
1752
1756
  }, 1032, ["disabled", "onClick"])
1753
1757
  ]),
1754
- (n(!0), i(J, null, H(_.modelValue[A], (P, Oe) => {
1755
- var tt, nt, ot, at, st, lt;
1756
- return n(), i("div", {
1758
+ (n(!0), s(J, null, H(_.modelValue[A], (P, Oe) => {
1759
+ var et, tt, nt, ot, at, lt;
1760
+ return n(), s("div", {
1757
1761
  key: `rep-${A}-${Oe}`,
1758
1762
  style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
1759
1763
  }, [
1760
1764
  k("div", Xo, [
1761
- (n(), $(ye(t(rt)(j, t(v))), G({
1765
+ (n(), $(ye(t(it)(j, t(v))), G({
1762
1766
  modelValue: _.modelValue[A][Oe],
1763
1767
  "onUpdate:modelValue": (we) => _.modelValue[A][Oe] = we
1764
1768
  }, {
1765
1769
  property: j.items,
1766
1770
  propertyName: A,
1767
- parentCollection: t(l),
1771
+ parentCollection: t(i),
1768
1772
  parentPropertyName: _.parentPropertyName,
1769
- columns: ((ot = (nt = (tt = _.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[A]) == null ? void 0 : ot.optionsColumns) || ((lt = (st = (at = _.layout) == null ? void 0 : at.fields) == null ? void 0 : st.$default) == null ? void 0 : lt.optionsColumns),
1773
+ columns: ((nt = (tt = (et = _.layout) == null ? void 0 : et.fields) == null ? void 0 : tt[A]) == null ? void 0 : nt.optionsColumns) || ((lt = (at = (ot = _.layout) == null ? void 0 : ot.fields) == null ? void 0 : at.$default) == null ? void 0 : lt.optionsColumns),
1770
1774
  validationErrors: ne(A, Oe),
1771
1775
  ...j.componentProps || {}
1772
1776
  }, {
@@ -1783,7 +1787,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1783
1787
  ])
1784
1788
  ]);
1785
1789
  }), 128))
1786
- ])) : _.modelValue ? Z((n(), $(ye(t(rt)(j, t(v))), G({
1790
+ ])) : _.modelValue ? Z((n(), $(ye(t(it)(j, t(v))), G({
1787
1791
  key: 6,
1788
1792
  modelValue: _.modelValue[A],
1789
1793
  "onUpdate:modelValue": (P) => _.modelValue[A] = P
@@ -1791,8 +1795,8 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1791
1795
  property: j,
1792
1796
  propertyName: A,
1793
1797
  parentPropertyName: _.parentPropertyName,
1794
- parentCollection: t(l),
1795
- columns: ((Ze = (Ke = (Je = _.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[A]) == null ? void 0 : Ze.optionsColumns) || ((xe = (Ne = (Pe = _.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne.$default) == null ? void 0 : xe.optionsColumns),
1798
+ parentCollection: t(i),
1799
+ columns: ((Ke = (Je = (Ye = _.layout) == null ? void 0 : Ye.fields) == null ? void 0 : Je[A]) == null ? void 0 : Ke.optionsColumns) || ((Ne = (Pe = (Ze = _.layout) == null ? void 0 : Ze.fields) == null ? void 0 : Pe.$default) == null ? void 0 : Ne.optionsColumns),
1796
1800
  ...j.componentProps || {},
1797
1801
  validationErrors: ne(A)
1798
1802
  }, {
@@ -1801,16 +1805,16 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1801
1805
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1802
1806
  [L, !y.value && (y.value = !!_.focus)]
1803
1807
  ]) : f("", !0),
1804
- (et = o.value) != null && et[A] ? (n(), i("div", Yo, [
1805
- o.value[A].type ? (n(), i("span", Jo, g(t(M)(`validation_error.${o.value[A].type}`)), 1)) : f("", !0),
1806
- o.value[A].detail ? (n(), i("span", Ko, g(t(M)(o.value[A].detail)), 1)) : f("", !0)
1808
+ (xe = o.value) != null && xe[A] ? (n(), s("div", Yo, [
1809
+ o.value[A].type ? (n(), s("span", Jo, g(t(M)(`validation_error.${o.value[A].type}`)), 1)) : f("", !0),
1810
+ o.value[A].detail ? (n(), s("span", Ko, g(t(M)(o.value[A].detail)), 1)) : f("", !0)
1807
1811
  ])) : f("", !0)
1808
1812
  ], 4);
1809
1813
  }), 128))
1810
1814
  ])),
1811
- _.$slots.after ? V(_.$slots, "after", { key: 2 }, void 0, !0) : f("", !0),
1812
- _.$slots.footer ? (n(), i("div", Zo, [
1813
- V(_.$slots, "footer", le(be({
1815
+ _.$slots.after ? C(_.$slots, "after", { key: 2 }, void 0, !0) : f("", !0),
1816
+ _.$slots.footer ? (n(), s("div", Zo, [
1817
+ C(_.$slots, "footer", se(be({
1814
1818
  isInsertReady: ee.value
1815
1819
  })), void 0, !0)
1816
1820
  ])) : f("", !0)
@@ -1818,12 +1822,12 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
1818
1822
  };
1819
1823
  }
1820
1824
  });
1821
- const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @__PURE__ */ U({
1825
+ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @__PURE__ */ U({
1822
1826
  __name: "aeria-filter-panel",
1823
1827
  emits: ["update:modelValue"],
1824
1828
  setup(c, { emit: u }) {
1825
- const e = u, a = ge(), s = Re(), l = () => {
1826
- a.pagination.offset = 0, a.$actions.filter(), e("update:modelValue", !1), s.push({
1829
+ const e = u, a = ge(), l = Le(), i = () => {
1830
+ a.pagination.offset = 0, a.$actions.filter(), e("update:modelValue", !1), l.push({
1827
1831
  query: Lt(a)
1828
1832
  });
1829
1833
  };
@@ -1839,7 +1843,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
1839
1843
  key: 0,
1840
1844
  variant: "transparent",
1841
1845
  onClick: y[1] || (y[1] = (p) => {
1842
- t(a).$actions.clearFilters(), l(), e("update:modelValue", !1);
1846
+ t(a).$actions.clearFilters(), i(), e("update:modelValue", !1);
1843
1847
  })
1844
1848
  }, {
1845
1849
  default: m(() => [
@@ -1857,7 +1861,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
1857
1861
  large: "",
1858
1862
  icon: "funnel",
1859
1863
  disabled: !t(a).hasActiveFilters,
1860
- onClick: l
1864
+ onClick: i
1861
1865
  }, {
1862
1866
  default: m(() => [
1863
1867
  Q(g(r.t("action.filter", { capitalize: !0 })), 1)
@@ -1866,7 +1870,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
1866
1870
  }, 8, ["disabled"])
1867
1871
  ]),
1868
1872
  default: m(() => [
1869
- F(De, G({
1873
+ F(He, G({
1870
1874
  modelValue: t(a).filters,
1871
1875
  "onUpdate:modelValue": y[0] || (y[0] = (p) => t(a).filters = p)
1872
1876
  }, {
@@ -1878,18 +1882,18 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
1878
1882
  _: 1
1879
1883
  }, 8, ["title"]));
1880
1884
  }
1881
- }), ie = Y(!1), ut = Y(!1), Ve = Y(!1), Be = Y((...c) => null), ct = Y(), dt = !1, xo = /* @__PURE__ */ U({
1885
+ }), ie = Y(!1), rt = Y(!1), Ve = Y(!1), Be = Y((...c) => null), ut = Y(), ct = !1, xo = /* @__PURE__ */ U({
1882
1886
  __name: "aeria-insert-panel",
1883
1887
  setup(c) {
1884
- const u = ce("meta"), e = ce(u.view.collection), a = fe("individualActions", []), s = async () => {
1888
+ const u = ce("meta"), e = ce(u.view.collection), a = fe("individualActions", []), l = async () => {
1885
1889
  const y = await e.$actions.deepInsert();
1886
1890
  Ht(y) || (ie.value = !1);
1887
- }, { t: l } = wt(), r = () => {
1891
+ }, { t: i } = wt(), r = () => {
1888
1892
  u.$actions.ask({
1889
1893
  action: () => {
1890
1894
  e.$actions.clearItem(), e.validationErrors = {}, ie.value = !1;
1891
1895
  },
1892
- body: l("prompt.close_panel")
1896
+ body: i("prompt.close_panel")
1893
1897
  });
1894
1898
  };
1895
1899
  return ue(() => e.item._id, (y) => {
@@ -1898,7 +1902,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
1898
1902
  const h = N("clickable");
1899
1903
  return n(), $(Ae, {
1900
1904
  modelValue: t(ie),
1901
- "onUpdate:modelValue": p[3] || (p[3] = (d) => je(ie) ? ie.value = d : null),
1905
+ "onUpdate:modelValue": p[3] || (p[3] = (d) => mt(ie) ? ie.value = d : null),
1902
1906
  "fixed-right": "",
1903
1907
  loading: t(e).loading.get,
1904
1908
  onOverlayClick: r
@@ -1907,15 +1911,15 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
1907
1911
  k("span", null, g((() => {
1908
1912
  switch (t(ie)) {
1909
1913
  case "add":
1910
- return t(l)("action.add", { capitalize: !0 });
1914
+ return t(i)("action.add", { capitalize: !0 });
1911
1915
  case "duplicate":
1912
- return t(l)("action.duplicate", { capitalize: !0 });
1916
+ return t(i)("action.duplicate", { capitalize: !0 });
1913
1917
  case "edit":
1914
1918
  default:
1915
- return t(l)("action.edit", { capitalize: !0 });
1919
+ return t(i)("action.edit", { capitalize: !0 });
1916
1920
  }
1917
1921
  })()), 1),
1918
- k("span", null, " " + g(t(l)(t(u).view.collection)), 1)
1922
+ k("span", null, " " + g(t(i)(t(u).view.collection)), 1)
1919
1923
  ]),
1920
1924
  extra: m(() => [
1921
1925
  F(Ce, G({
@@ -1942,30 +1946,30 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
1942
1946
  onClick: r
1943
1947
  }, {
1944
1948
  default: m(() => [
1945
- Q(g(t(l)("action.cancel", { capitalize: !0 })), 1)
1949
+ Q(g(t(i)("action.cancel", { capitalize: !0 })), 1)
1946
1950
  ]),
1947
1951
  _: 1
1948
1952
  }),
1949
1953
  F(re, {
1950
1954
  large: "",
1951
- disabled: !t(e).isInsertReady || dt || t(e).loading.get,
1955
+ disabled: !t(e).isInsertReady || ct || t(e).loading.get,
1952
1956
  loading: t(e).loading.insert,
1953
- onClick: s
1957
+ onClick: l
1954
1958
  }, {
1955
1959
  default: m(() => [
1956
- Q(g(t(l)("action.insert", { capitalize: !0 })), 1)
1960
+ Q(g(t(i)("action.insert", { capitalize: !0 })), 1)
1957
1961
  ]),
1958
1962
  _: 1
1959
1963
  }, 8, ["disabled", "loading"])
1960
1964
  ]),
1961
1965
  default: m(() => [
1962
- F(De, G({
1966
+ F(He, G({
1963
1967
  modelValue: t(e).item,
1964
1968
  "onUpdate:modelValue": p[0] || (p[0] = (d) => t(e).item = d)
1965
1969
  }, {
1966
1970
  collection: t(u).view.collection,
1967
1971
  form: t(e).properties,
1968
- isReadOnly: dt,
1972
+ isReadOnly: ct,
1969
1973
  layout: t(e).description.formLayout || {}
1970
1974
  }, {
1971
1975
  focus: "",
@@ -1974,7 +1978,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
1974
1978
  H(Object.keys(y.$slots).filter((d) => d.startsWith("field-")), (d) => ({
1975
1979
  name: d,
1976
1980
  fn: m((o) => [
1977
- V(y.$slots, d, le(be(o)))
1981
+ C(y.$slots, d, se(be(o)))
1978
1982
  ])
1979
1983
  }))
1980
1984
  ]), 1040, ["modelValue"])
@@ -1994,17 +1998,17 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
1994
1998
  }, ea = (c, u = {
1995
1999
  persistInQuery: !0
1996
2000
  }) => {
1997
- const a = Re().currentRoute;
1998
- return ue(() => a.value.query.section, (s) => {
2001
+ const a = Le().currentRoute;
2002
+ return ue(() => a.value.query.section, (l) => {
1999
2003
  if (c) {
2000
2004
  if (c.description.filtersPresets) {
2001
- const l = s || Object.keys(c.description.filtersPresets)[0];
2002
- ht(c.description.filtersPresets[l], c);
2005
+ const i = l || Object.keys(c.description.filtersPresets)[0];
2006
+ ht(c.description.filtersPresets[i], c);
2003
2007
  }
2004
2008
  if (u.persistInQuery) {
2005
- const l = a.value.query;
2006
- l.offset && (c.pagination.offset = +l.offset), l.limit && (c.pagination.limit = +l.limit), l.search && (c.textQuery = l.search, c.filters.$text = {
2007
- $search: `"${l.search}"`,
2009
+ const i = a.value.query;
2010
+ i.offset && (c.pagination.offset = +i.offset), i.limit && (c.pagination.limit = +i.limit), i.search && (c.textQuery = i.search, c.filters.$text = {
2011
+ $search: `"${i.search}"`,
2008
2012
  $caseSensitive: !1
2009
2013
  });
2010
2014
  }
@@ -2012,10 +2016,10 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
2012
2016
  }, {
2013
2017
  immediate: !0
2014
2018
  });
2015
- }, ta = (c) => (qe("data-v-d8e1b8cf"), c = c(), Ue(), c), na = {
2019
+ }, ta = (c) => (Me("data-v-51392b44"), c = c(), qe(), c), na = {
2016
2020
  key: 0,
2017
2021
  class: "table aeria-surface"
2018
- }, oa = { key: 0 }, aa = { key: 1 }, sa = { key: 0 }, la = ["checked"], ia = {
2022
+ }, oa = { key: 0 }, aa = { key: 1 }, la = { key: 0 }, sa = ["checked"], ia = {
2019
2023
  key: 1,
2020
2024
  style: { "text-align": "right" }
2021
2025
  }, ra = { key: 2 }, ua = { key: 3 }, ca = ["onClick"], da = { key: 0 }, pa = ["value"], _a = { class: "table__cell-mobile-label" }, ma = {
@@ -2046,61 +2050,61 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
2046
2050
  },
2047
2051
  emits: ["itemClick"],
2048
2052
  setup(c, { emit: u }) {
2049
- const e = c, a = u, s = Te(), l = e.collection || Le(), r = l ? ce(typeof l == "string" ? l : l.value) : null, y = D({
2053
+ const e = c, a = u, l = je(), i = e.collection || Te(), r = i ? ce(typeof i == "string" ? i : i.value) : null, y = D({
2050
2054
  get: () => r == null ? void 0 : r.selected,
2051
2055
  set: (v) => r == null ? void 0 : r.$actions.selectManyItems(v, !0)
2052
- }), p = (v, b) => v != null && v.button ? typeof v.button == "object" ? Ge(b, v.button).satisfied : v.button : !1, h = (v) => {
2056
+ }), p = (v, b) => v != null && v.button ? typeof v.button == "object" ? Qe(b, v.button).satisfied : v.button : !1, h = (v) => {
2053
2057
  var b;
2054
- return !s.value.xl || !((b = e.layout) != null && b.actions) || !e.actions ? [] : e.actions.filter((C) => {
2055
- const R = e.layout.actions[C.action];
2058
+ return !l.value.xl || !((b = e.layout) != null && b.actions) || !e.actions ? [] : e.actions.filter((V) => {
2059
+ const R = e.layout.actions[V.action];
2056
2060
  return p(R, v);
2057
2061
  });
2058
2062
  }, d = (v) => {
2059
2063
  var b;
2060
- return e.actions ? !s.value.xl || !((b = e.layout) != null && b.actions) ? e.actions : e.actions.filter((C) => {
2061
- const R = e.layout.actions[C.action];
2064
+ return e.actions ? !l.value.xl || !((b = e.layout) != null && b.actions) ? e.actions : e.actions.filter((V) => {
2065
+ const R = e.layout.actions[V.action];
2062
2066
  return !p(R, v);
2063
2067
  }) : [];
2064
2068
  }, o = (v, b) => {
2065
2069
  var T, q;
2066
- const C = [], R = (q = (T = e.layout) == null ? void 0 : T.actions) == null ? void 0 : q[b.action];
2067
- return R != null && R.if && (Ge(
2070
+ const V = [], R = (q = (T = e.layout) == null ? void 0 : T.actions) == null ? void 0 : q[b.action];
2071
+ return R != null && R.if && (Qe(
2068
2072
  v,
2069
2073
  R.if
2070
- ).satisfied || C.push("display: none;")), C.join("");
2074
+ ).satisfied || V.push("display: none;")), V.join("");
2071
2075
  };
2072
2076
  return (v, b) => {
2073
2077
  var R, T, q;
2074
- const C = N("clickable");
2075
- return v.columns && Object.keys(v.columns).length > 0 || v.$slots.thead ? (n(), i("table", na, [
2076
- v.$slots.thead ? (n(), i("thead", oa, [
2077
- V(v.$slots, "thead", {}, void 0, !0)
2078
- ])) : (n(), i("thead", aa, [
2078
+ const V = N("clickable");
2079
+ return v.columns && Object.keys(v.columns).length > 0 || v.$slots.thead ? (n(), s("table", na, [
2080
+ v.$slots.thead ? (n(), s("thead", oa, [
2081
+ C(v.$slots, "thead", {}, void 0, !0)
2082
+ ])) : (n(), s("thead", aa, [
2079
2083
  k("tr", null, [
2080
- v.checkbox && t(r) && t(s).md ? (n(), i("th", sa, [
2084
+ v.checkbox && t(r) && t(l).md ? (n(), s("th", la, [
2081
2085
  k("input", {
2082
2086
  type: "checkbox",
2083
2087
  checked: t(r).selected.length > 0 && t(r).selected.length === t(r).itemsCount,
2084
2088
  onChange: b[0] || (b[0] = (w) => t(r).$actions.selectAllItems(w.target.checked))
2085
- }, null, 40, la)
2089
+ }, null, 40, sa)
2086
2090
  ])) : f("", !0),
2087
- (n(!0), i(J, null, H(Object.entries(v.columns), ([w, se], oe) => (n(), i("th", {
2091
+ (n(!0), s(J, null, H(Object.entries(v.columns), ([w, le], oe) => (n(), s("th", {
2088
2092
  key: `header-${oe}`,
2089
2093
  class: "table__header"
2090
- }, g(se.description || t(M)(w)), 1))), 128)),
2091
- (R = v.actions) != null && R.length ? (n(), i("th", ia)) : f("", !0)
2094
+ }, g(le.description || t(M)(w)), 1))), 128)),
2095
+ (R = v.actions) != null && R.length ? (n(), s("th", ia)) : f("", !0)
2092
2096
  ])
2093
2097
  ])),
2094
- v.$slots.tbody ? (n(), i("tbody", ra, [
2095
- V(v.$slots, "tbody", {}, void 0, !0)
2096
- ])) : (n(), i("tbody", ua, [
2097
- (n(!0), i(J, null, H(v.rows, (w) => {
2098
- var se, oe;
2099
- return n(), i("tr", {
2098
+ v.$slots.tbody ? (n(), s("tbody", ra, [
2099
+ C(v.$slots, "tbody", {}, void 0, !0)
2100
+ ])) : (n(), s("tbody", ua, [
2101
+ (n(!0), s(J, null, H(v.rows, (w) => {
2102
+ var le, oe;
2103
+ return n(), s("tr", {
2100
2104
  key: w._id,
2101
2105
  onClick: (S) => a("itemClick", w)
2102
2106
  }, [
2103
- t(r) && v.checkbox && t(s).md ? (n(), i("td", da, [
2107
+ t(r) && v.checkbox && t(l).md ? (n(), s("td", da, [
2104
2108
  Z(k("input", {
2105
2109
  "onUpdate:modelValue": b[1] || (b[1] = (S) => y.value = S),
2106
2110
  type: "checkbox",
@@ -2109,22 +2113,22 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
2109
2113
  [kt, y.value]
2110
2114
  ])
2111
2115
  ])) : f("", !0),
2112
- (n(!0), i(J, null, H(Object.entries(v.columns), ([S, x], O) => {
2116
+ (n(!0), s(J, null, H(Object.entries(v.columns), ([S, x], O) => {
2113
2117
  var z, ee, ne, _, E, I;
2114
- return n(), i("td", {
2118
+ return n(), s("td", {
2115
2119
  key: `column-${w._id}-${O}`
2116
2120
  }, [
2117
2121
  k("div", _a, g(x.description || t(M)(S)), 1),
2118
- `row-${S}` in v.$slots ? (n(), i("div", ma, [
2119
- V(v.$slots, `row-${S}`, le(be({
2122
+ `row-${S}` in v.$slots ? (n(), s("div", ma, [
2123
+ C(v.$slots, `row-${S}`, se(be({
2120
2124
  store: t(r),
2121
2125
  column: S,
2122
2126
  property: x,
2123
2127
  row: w
2124
2128
  })), void 0, !0)
2125
- ])) : (n(), i("div", fa, [
2129
+ ])) : (n(), s("div", fa, [
2126
2130
  k("div", va, [
2127
- "type" in x && x.type === "boolean" ? (n(), i("div", ya, [
2131
+ "type" in x && x.type === "boolean" ? (n(), s("div", ya, [
2128
2132
  w[S] ? (n(), $(K, {
2129
2133
  key: 0,
2130
2134
  icon: "check",
@@ -2144,34 +2148,36 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
2144
2148
  ]),
2145
2149
  _: 1
2146
2150
  }))
2147
- ])) : ((z = t(pe)(x)) == null ? void 0 : z.$ref) === "file" ? (n(), i("div", ha, [
2148
- /^image/.test((ee = w[S][0]) == null ? void 0 : ee.mime) && "items" in x ? (n(), $(Me, {
2151
+ ])) : ((z = t(pe)(x)) == null ? void 0 : z.$ref) === "file" ? (n(), s("div", ha, [
2152
+ /^image/.test((ee = w[S][0]) == null ? void 0 : ee.mime) && "items" in x ? (n(), $(Fe, {
2149
2153
  key: 0,
2150
2154
  modelValue: w[S][0].link,
2151
2155
  "onUpdate:modelValue": (L) => w[S][0].link = L,
2152
2156
  expandable: "",
2153
2157
  meta: w[S][0],
2158
+ alt: "Row image",
2154
2159
  class: "table__picture"
2155
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((ne = w[S]) == null ? void 0 : ne.mime) ? (n(), $(Me, {
2160
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((ne = w[S]) == null ? void 0 : ne.mime) ? (n(), $(Fe, {
2156
2161
  key: 1,
2157
2162
  modelValue: w[S].link,
2158
2163
  "onUpdate:modelValue": (L) => w[S].link = L,
2159
2164
  expandable: "",
2160
2165
  meta: w[S],
2166
+ alt: "Row image",
2161
2167
  class: "table__picture"
2162
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (_ = w[S]) != null && _.link ? (n(), i("a", {
2168
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (_ = w[S]) != null && _.link ? (n(), s("a", {
2163
2169
  key: 2,
2164
2170
  href: w[S].link,
2165
2171
  style: { "font-size": "10pt" }
2166
- }, g(w[S].filename), 9, $a)) : (n(), i("div", ba, " - "))
2167
- ])) : (n(), i("div", ga, [
2168
- t(r) ? (n(), i("span", ka, g(t(r).$actions.formatValue({
2172
+ }, g(w[S].filename), 9, $a)) : (n(), s("div", ba, " - "))
2173
+ ])) : (n(), s("div", ga, [
2174
+ t(r) ? (n(), s("span", ka, g(t(r).$actions.formatValue({
2169
2175
  value: w[S],
2170
2176
  key: S,
2171
2177
  property: x
2172
- })), 1)) : (n(), i("span", Va, g(Array.isArray(w[S]) ? w[S].filter((L) => !!L).join(", ") : [void 0, null].includes(w[S]) ? "-" : w[S]), 1)),
2173
- ((I = (E = t(pe)(x)) == null ? void 0 : E.indexes) == null ? void 0 : I.length) > 1 ? (n(), i("div", Ca, [
2174
- (n(!0), i(J, null, H(t(pe)(x).indexes.slice(1, 2), (L, A) => (n(), i("div", {
2178
+ })), 1)) : (n(), s("span", Va, g(Array.isArray(w[S]) ? w[S].filter((L) => !!L).join(", ") : [void 0, null].includes(w[S]) ? "-" : w[S]), 1)),
2179
+ ((I = (E = t(pe)(x)) == null ? void 0 : E.indexes) == null ? void 0 : I.length) > 1 ? (n(), s("div", Ca, [
2180
+ (n(!0), s(J, null, H(t(pe)(x).indexes.slice(1, 2), (L, A) => (n(), s("div", {
2175
2181
  key: `subvalue-${A}`,
2176
2182
  class: "table__cell-subvalue"
2177
2183
  }, g(t(r).$actions.formatValue({
@@ -2186,9 +2192,9 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
2186
2192
  ]))
2187
2193
  ]);
2188
2194
  }), 128)),
2189
- (se = v.actions) != null && se.length && t(s).md ? (n(), i("td", Ia, [
2195
+ (le = v.actions) != null && le.length && t(l).md ? (n(), s("td", Ia, [
2190
2196
  k("div", Aa, [
2191
- (n(!0), i(J, null, H(h(w), (S) => (n(), $(re, {
2197
+ (n(!0), s(J, null, H(h(w), (S) => (n(), $(re, {
2192
2198
  key: `action-${S.action}`,
2193
2199
  small: "",
2194
2200
  variant: "transparent",
@@ -2201,7 +2207,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
2201
2207
  ]),
2202
2208
  _: 2
2203
2209
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2204
- d(w).length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
2210
+ d(w).length > 0 ? (n(), $(Ce, se(G({ key: 0 }, {
2205
2211
  subject: w,
2206
2212
  actions: d(w)
2207
2213
  })), {
@@ -2210,18 +2216,18 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
2210
2216
  reactive: "",
2211
2217
  icon: "dots-three"
2212
2218
  }, null, 512), [
2213
- [C]
2219
+ [V]
2214
2220
  ])
2215
2221
  ]),
2216
2222
  _: 2
2217
2223
  }, 1040)) : f("", !0)
2218
2224
  ])
2219
- ])) : (oe = v.actions) != null && oe.length ? (n(), i("td", Oa, [
2225
+ ])) : (oe = v.actions) != null && oe.length ? (n(), s("td", Oa, [
2220
2226
  k("div", {
2221
2227
  class: "table__mobile-actions-grid",
2222
2228
  style: he(`grid-template-columns: repeat(${h(w).length + (d(w).length ? 1 : 0)}, 1fr);`)
2223
2229
  }, [
2224
- (n(!0), i(J, null, H(h(w), (S) => (n(), $(me, {
2230
+ (n(!0), s(J, null, H(h(w), (S) => (n(), $(me, {
2225
2231
  key: `action-${S.action}`,
2226
2232
  class: "table__mobile-actions-button",
2227
2233
  onClick: (x) => S.click(w)
@@ -2238,7 +2244,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
2238
2244
  ]),
2239
2245
  _: 2
2240
2246
  }, 1032, ["onClick"]))), 128)),
2241
- d(w).length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
2247
+ d(w).length > 0 ? (n(), $(Ce, se(G({ key: 0 }, {
2242
2248
  subject: w,
2243
2249
  actions: d(w)
2244
2250
  })), {
@@ -2259,13 +2265,13 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
2259
2265
  }), 128))
2260
2266
  ])),
2261
2267
  k("tfoot", null, [
2262
- v.$slots.tfoot ? V(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((T = v.rows) != null && T.length) && !((q = t(r)) != null && q.loading.getAll) ? (n(), i("tr", Ba, ja)) : f("", !0)
2268
+ v.$slots.tfoot ? C(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((T = v.rows) != null && T.length) && !((q = t(r)) != null && q.loading.getAll) ? (n(), s("tr", Ba, ja)) : f("", !0)
2263
2269
  ])
2264
2270
  ])) : f("", !0);
2265
2271
  };
2266
2272
  }
2267
2273
  });
2268
- const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @__PURE__ */ U({
2274
+ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-51392b44"]]), Ra = /* @__PURE__ */ U({
2269
2275
  __name: "aeria-tabular",
2270
2276
  props: {
2271
2277
  individualActions: {},
@@ -2273,8 +2279,8 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @_
2273
2279
  componentProps: {}
2274
2280
  },
2275
2281
  setup(c) {
2276
- const u = c, e = ge(), a = Le(), s = D(() => {
2277
- const l = {
2282
+ const u = c, e = ge(), a = Te(), l = D(() => {
2283
+ const i = {
2278
2284
  collection: a,
2279
2285
  checkbox: e.hasSelectionActions,
2280
2286
  columns: e.tableProperties,
@@ -2282,17 +2288,17 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @_
2282
2288
  actions: u.individualActions,
2283
2289
  layout: e.tableLayout
2284
2290
  };
2285
- return Object.assign(l, u.componentProps);
2291
+ return Object.assign(i, u.componentProps);
2286
2292
  });
2287
- return (l, r) => (n(), i("div", null, [
2288
- l.$slots.inner ? V(l.$slots, "inner", { key: 0 }) : f("", !0),
2289
- t(e).properties ? (n(), $(La, G({ key: 1 }, s.value, {
2293
+ return (i, r) => (n(), s("div", null, [
2294
+ i.$slots.inner ? C(i.$slots, "inner", { key: 0 }) : f("", !0),
2295
+ t(e).properties ? (n(), $(La, G({ key: 1 }, l.value, {
2290
2296
  key: t(e).$id
2291
2297
  }), de({ _: 2 }, [
2292
- H(Object.keys(l.$slots).filter((y) => !["inner"].includes(y)), (y) => ({
2298
+ H(Object.keys(i.$slots).filter((y) => !["inner"].includes(y)), (y) => ({
2293
2299
  name: y,
2294
2300
  fn: m((p) => [
2295
- V(l.$slots, y, le(be(p)))
2301
+ C(i.$slots, y, se(be(p)))
2296
2302
  ])
2297
2303
  }))
2298
2304
  ]), 1040)) : f("", !0)
@@ -2304,13 +2310,13 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @_
2304
2310
  list: { type: Boolean }
2305
2311
  },
2306
2312
  setup(c) {
2307
- return (u, e) => (n(), i("div", {
2313
+ return (u, e) => (n(), s("div", {
2308
2314
  class: W(`
2309
2315
  grid
2310
2316
  ${u.list && "grid--list"}
2311
2317
  `)
2312
2318
  }, [
2313
- V(u.$slots, "default", {}, void 0, !0)
2319
+ C(u.$slots, "default", {}, void 0, !0)
2314
2320
  ], 2));
2315
2321
  }
2316
2322
  });
@@ -2326,26 +2332,26 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
2326
2332
  componentName: {}
2327
2333
  },
2328
2334
  setup(c) {
2329
- const e = c.layoutOptions, a = ge(), s = (l) => Array.isArray(l) ? l[0] : l;
2330
- return (l, r) => {
2335
+ const e = c.layoutOptions, a = ge(), l = (i) => Array.isArray(i) ? i[0] : i;
2336
+ return (i, r) => {
2331
2337
  const y = N("clickable");
2332
2338
  return n(), $(Fa, {
2333
- list: l.componentName === "list"
2339
+ list: i.componentName === "list"
2334
2340
  }, {
2335
2341
  default: m(() => [
2336
- (n(!0), i(J, null, H(t(a).items, (p) => (n(), $(cn, {
2342
+ (n(!0), s(J, null, H(t(a).items, (p) => (n(), $(cn, {
2337
2343
  key: p,
2338
2344
  inactive: !!(t(e).active && !p[t(e).active]),
2339
- horizontal: l.componentName === "list"
2345
+ horizontal: i.componentName === "list"
2340
2346
  }, de({
2341
2347
  footer: m(() => [
2342
- t(e).title ? (n(), i("div", Ma, g(p[t(e).title]), 1)) : f("", !0),
2343
- t(e).information ? (n(), i("div", qa, g(p[t(e).information]), 1)) : f("", !0)
2348
+ t(e).title ? (n(), s("div", Ma, g(p[t(e).title]), 1)) : f("", !0),
2349
+ t(e).information ? (n(), s("div", qa, g(p[t(e).information]), 1)) : f("", !0)
2344
2350
  ]),
2345
2351
  actions: m(() => [
2346
- l.individualActions.length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
2352
+ i.individualActions.length > 0 ? (n(), $(Ce, se(G({ key: 0 }, {
2347
2353
  subject: p,
2348
- actions: l.individualActions
2354
+ actions: i.individualActions
2349
2355
  })), {
2350
2356
  default: m(() => [
2351
2357
  Z(F(K, {
@@ -2361,10 +2367,11 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
2361
2367
  default: m(() => {
2362
2368
  var h;
2363
2369
  return [
2364
- F(Me, {
2370
+ F(Fe, {
2371
+ alt: "Item picture",
2365
2372
  expandable: "",
2366
- url: (h = s(p[t(e).picture])) == null ? void 0 : h.link,
2367
- meta: s(p[t(e).picture])
2373
+ url: (h = l(p[t(e).picture])) == null ? void 0 : h.link,
2374
+ meta: l(p[t(e).picture])
2368
2375
  }, null, 8, ["url", "meta"])
2369
2376
  ];
2370
2377
  }),
@@ -2373,7 +2380,7 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
2373
2380
  t(e).badge && Array.isArray(p[t(e).badge]) ? {
2374
2381
  name: "badge",
2375
2382
  fn: m(() => [
2376
- (n(!0), i(J, null, H(p[t(e).badge], (h) => (n(), $($e, {
2383
+ (n(!0), s(J, null, H(p[t(e).badge], (h) => (n(), $($e, {
2377
2384
  key: `${p._id}-${h}`,
2378
2385
  large: ""
2379
2386
  }, {
@@ -2389,7 +2396,7 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
2389
2396
  fn: m(() => [
2390
2397
  F($e, null, {
2391
2398
  default: m(() => [
2392
- Q(g(t(e).translateBadge ? t(M)(p[t(e).badge]) : p[t(e)[l.badge]]), 1)
2399
+ Q(g(t(e).translateBadge ? t(M)(p[t(e).badge]) : p[t(e)[i.badge]]), 1)
2393
2400
  ]),
2394
2401
  _: 2
2395
2402
  }, 1024)
@@ -2403,11 +2410,11 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
2403
2410
  };
2404
2411
  }
2405
2412
  });
2406
- const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) => ({
2413
+ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) => ({
2407
2414
  tabular: Ra,
2408
- grid: pt,
2409
- list: pt
2410
- })[c], Ha = (c) => (qe("data-v-476a7284"), c = c(), Ue(), c), Da = {
2415
+ grid: dt,
2416
+ list: dt
2417
+ })[c], Ha = (c) => (Me("data-v-9c163d4e"), c = c(), qe(), c), Da = {
2411
2418
  key: 2,
2412
2419
  class: "crud__controls"
2413
2420
  }, Qa = {
@@ -2416,7 +2423,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2416
2423
  }, Ga = { class: "crud__actions" }, Wa = { class: "crud__context-badge" }, Xa = /* @__PURE__ */ Ha(() => /* @__PURE__ */ k("div", null, "Filtros", -1)), Ya = { key: 0 }, Ja = {
2417
2424
  key: 3,
2418
2425
  class: "crud__pagination"
2419
- }, _t = 30, Ka = /* @__PURE__ */ U({
2426
+ }, pt = 30, Ka = /* @__PURE__ */ U({
2420
2427
  __name: "aeria-crud",
2421
2428
  props: {
2422
2429
  collection: {},
@@ -2432,21 +2439,21 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2432
2439
  },
2433
2440
  emits: ["uiEvent"],
2434
2441
  setup(c, { emit: u }) {
2435
- const e = c, a = u, s = Re(), l = vt({
2442
+ const e = c, a = u, l = Le(), i = vt({
2436
2443
  delay: 600
2437
- }), r = ce("meta"), y = Te(), { reachedEnd: p, detach: h } = Xe(null, {
2444
+ }), r = ce("meta"), y = je(), { reachedEnd: p, detach: h } = We(null, {
2438
2445
  antecipate: 600
2439
2446
  }), d = !y.value.md || e.scrollPagination;
2440
2447
  d && ue(p, (O) => {
2441
- O && o.pagination.recordsTotal > o.items.length && C.value < _t && (C.value += 1, T());
2448
+ O && o.pagination.recordsTotal > o.items.length && V.value < pt && (V.value += 1, T());
2442
2449
  });
2443
2450
  const o = ce(e.collection);
2444
2451
  ea(o, {
2445
2452
  persistInQuery: !e.noQueryPersistence
2446
2453
  });
2447
- const v = Mt(), b = e.action ? je(e.action) ? e.action.value : e.action : Rt(o, s, v);
2448
- Be.value = b[0], ct.value = b[1];
2449
- const C = Y(0), R = Y(!1), T = async (O) => {
2454
+ const v = Mt(), b = e.action ? t(e.action) : Rt(o, l, v);
2455
+ Be.value = b[0], ut.value = b[1];
2456
+ const V = Y(0), R = Y(!1), T = async (O) => {
2450
2457
  o.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
2451
2458
  const z = {
2452
2459
  filters: o.activeFilters,
@@ -2454,26 +2461,26 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2454
2461
  offset: o.pagination.offset,
2455
2462
  project: o.preferredTableProperties.length > 0 ? o.preferredTableProperties : o.description.table || Object.keys(o.properties)
2456
2463
  };
2457
- C.value > 0 && (z.limit = 15, z.offset = C.value * z.limit), o.description.tableMeta && (z.project = z.project.concat(o.description.tableMeta)), O && Object.assign(z, O), o.loading.getAll = !0;
2464
+ V.value > 0 && (z.limit = 15, z.offset = V.value * z.limit), o.description.tableMeta && (z.project = z.project.concat(o.description.tableMeta)), O && Object.assign(z, O), o.loading.getAll = !0;
2458
2465
  const { data: ee, pagination: ne } = await o.$actions.retrieveItems(z);
2459
- o.pagination.recordsCount = ne.recordsCount, o.pagination.recordsTotal = ne.recordsTotal, C.value === 0 && o.items.splice(0), o.items.push(...ee), o.loading.getAll = !1, R.value = !0;
2466
+ o.pagination.recordsCount = ne.recordsCount, o.pagination.recordsTotal = ne.recordsTotal, V.value === 0 && o.items.splice(0), o.items.push(...ee), o.loading.getAll = !1, R.value = !0;
2460
2467
  }, q = async (O) => {
2461
- s.push({
2468
+ l.push({
2462
2469
  query: {
2463
- ...s.currentRoute.value.query,
2470
+ ...l.currentRoute.value.query,
2464
2471
  offset: O.offset,
2465
2472
  limit: O.limit
2466
2473
  }
2467
2474
  }), o.pagination.offset = O.offset, o.pagination.limit = O.limit, T();
2468
2475
  }, w = fe("noResultsComponent", null);
2469
2476
  ue(() => [
2470
- s.currentRoute.value.path,
2471
- s.currentRoute.value.query.section
2477
+ l.currentRoute.value.path,
2478
+ l.currentRoute.value.query.section
2472
2479
  ], async (O, z) => {
2473
2480
  if (z && z[0] === O[0] && z[1] === O[1])
2474
2481
  return;
2475
- const ee = s.currentRoute.value;
2476
- if (r.view.title = e.collection, r.view.collection = e.collection, ut.value = !1, !e.noFetch && !ee.query._popstate) {
2482
+ const ee = l.currentRoute.value;
2483
+ if (r.view.title = e.collection, r.view.collection = e.collection, rt.value = !1, !e.noFetch && !ee.query._popstate) {
2477
2484
  const ne = zt(o, ee);
2478
2485
  Object.keys(ne).length > 0 && Object.assign(o.filters, ne), await T();
2479
2486
  }
@@ -2481,7 +2488,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2481
2488
  immediate: !0,
2482
2489
  flush: "post"
2483
2490
  });
2484
- const [se] = l((O) => (s.push({
2491
+ const [le] = i((O) => (l.push({
2485
2492
  query: {
2486
2493
  search: O || void 0
2487
2494
  }
@@ -2492,16 +2499,16 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2492
2499
  }
2493
2500
  }), T({
2494
2501
  offset: 0
2495
- })) : (o.filters = Se(o.freshFilters), C.value = 0, T())));
2502
+ })) : (o.filters = Se(o.freshFilters), V.value = 0, T())));
2496
2503
  ue(() => o.textQuery, (O) => {
2497
- se(O);
2504
+ le(O);
2498
2505
  });
2499
2506
  const oe = (O) => {
2500
2507
  O.currentLayout = O.currentLayout === "tabular" ? O.description.layout.name : "tabular";
2501
2508
  };
2502
2509
  Vt(() => {
2503
2510
  o.$actions.clearFilters(), o.textQuery = "", h();
2504
- }), ue(() => ct.value, async (O) => {
2511
+ }), ue(() => ut.value, async (O) => {
2505
2512
  var ne;
2506
2513
  const z = Se(O);
2507
2514
  let ee;
@@ -2521,7 +2528,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2521
2528
  else if (z.name === "spawnEdit")
2522
2529
  o.$actions.setItem(z.params), ie.value = "edit";
2523
2530
  else if (z.name === "spawnView")
2524
- ut.value = !0, ie.value = "view";
2531
+ rt.value = !0, ie.value = "view";
2525
2532
  else if (z.name === "duplicate") {
2526
2533
  await ee;
2527
2534
  const _ = Object.entries(o.item).reduce((E, [I, L]) => {
@@ -2562,25 +2569,25 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2562
2569
  click: Be.value(O),
2563
2570
  ...O
2564
2571
  }))), x = D(() => o.actions.filter((O) => !O.button));
2565
- return ve(Ee, D(() => e.collection)), ve("individualActions", S), (O, z) => {
2572
+ return ve(Ue, D(() => e.collection)), ve("individualActions", S), (O, z) => {
2566
2573
  var _, E, I, L, A, j, te;
2567
2574
  const ee = N("clickable"), ne = N("loading");
2568
- return n(), i(J, null, [
2575
+ return n(), s(J, null, [
2569
2576
  t(Ve) ? (n(), $(No, {
2570
2577
  key: t(o).$id,
2571
2578
  modelValue: t(Ve),
2572
- "onUpdate:modelValue": z[0] || (z[0] = (B) => je(Ve) ? Ve.value = B : null)
2579
+ "onUpdate:modelValue": z[0] || (z[0] = (B) => mt(Ve) ? Ve.value = B : null)
2573
2580
  }, null, 8, ["modelValue"])) : f("", !0),
2574
2581
  t(ie) ? (n(), $(xo, { key: 1 }, de({ _: 2 }, [
2575
2582
  H(Object.keys(O.$slots).filter((B) => B.startsWith("field-")), (B) => ({
2576
2583
  name: B,
2577
2584
  fn: m((ae) => [
2578
- V(O.$slots, B, le(be(ae)), void 0, !0)
2585
+ C(O.$slots, B, se(be(ae)), void 0, !0)
2579
2586
  ])
2580
2587
  }))
2581
2588
  ]), 1024)) : f("", !0),
2582
- !O.noActions && (t(o).description.search || Object.keys(t(o).availableFilters).length > 0 || ((_ = t(o)) == null ? void 0 : _.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && t(o).description.layout && ((E = t(o).description.layout) == null ? void 0 : E.name) !== "tabular") ? (n(), i("div", Da, [
2583
- t(o).description.search ? (n(), i("div", Qa, [
2589
+ !O.noActions && (t(o).description.search || Object.keys(t(o).availableFilters).length > 0 || ((_ = t(o)) == null ? void 0 : _.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && t(o).description.layout && ((E = t(o).description.layout) == null ? void 0 : E.name) !== "tabular") ? (n(), s("div", Da, [
2590
+ t(o).description.search ? (n(), s("div", Qa, [
2584
2591
  F(Ie, G({
2585
2592
  modelValue: t(o).textQuery,
2586
2593
  "onUpdate:modelValue": z[1] || (z[1] = (B) => t(o).textQuery = B)
@@ -2687,7 +2694,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2687
2694
  ]),
2688
2695
  _: 1
2689
2696
  })) : f("", !0),
2690
- (n(!0), i(J, null, H(t(o).actions.filter((B) => B.button), (B, ae) => (n(), $(re, {
2697
+ (n(!0), s(J, null, H(t(o).actions.filter((B) => B.button), (B, ae) => (n(), $(re, {
2691
2698
  key: `action-${ae}`,
2692
2699
  icon: B.icon,
2693
2700
  disabled: t(o).selected.length === 0 && B.selection,
@@ -2698,12 +2705,12 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2698
2705
  ]),
2699
2706
  _: 2
2700
2707
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
2701
- O.$slots.actions ? V(O.$slots, "actions", { key: 2 }, void 0, !0) : f("", !0)
2708
+ O.$slots.actions ? C(O.$slots, "actions", { key: 2 }, void 0, !0) : f("", !0)
2702
2709
  ])
2703
2710
  ])) : f("", !0),
2704
- Z((n(), i("div", null, [
2705
- t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(w) || O.$slots.empty) ? (n(), i("div", Ya, [
2706
- t(w) ? (n(), $(ye(t(w)), le(G({ key: 0 }, {
2711
+ Z((n(), s("div", null, [
2712
+ t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(w) || O.$slots.empty) ? (n(), s("div", Ya, [
2713
+ t(w) ? (n(), $(ye(t(w)), se(G({ key: 0 }, {
2707
2714
  collection: t(o).$id
2708
2715
  })), {
2709
2716
  default: m(() => [
@@ -2721,10 +2728,10 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2721
2728
  })) : f("", !0)
2722
2729
  ]),
2723
2730
  _: 1
2724
- }, 16)) : V(O.$slots, "empty", le(G({ key: 1 }, {
2731
+ }, 16)) : C(O.$slots, "empty", se(G({ key: 1 }, {
2725
2732
  collection: t(o).$id
2726
2733
  })), void 0, !0)
2727
- ])) : O.$slots.component ? V(O.$slots, "component", le(G({ key: 1 }, {
2734
+ ])) : O.$slots.component ? C(O.$slots, "component", se(G({ key: 1 }, {
2728
2735
  store: t(o)
2729
2736
  })), void 0, !0) : (n(), $(ye(t(Ea)(((A = O.layout) == null ? void 0 : A.name) || t(o).$currentLayout)), G({ key: 2 }, {
2730
2737
  individualActions: S.value,
@@ -2736,21 +2743,21 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2736
2743
  H(Object.keys(O.$slots).filter((B) => B.startsWith("row-")), (B) => ({
2737
2744
  name: B,
2738
2745
  fn: m((ae) => [
2739
- V(O.$slots, B, le(be(ae)), void 0, !0)
2746
+ C(O.$slots, B, se(be(ae)), void 0, !0)
2740
2747
  ])
2741
2748
  })),
2742
2749
  O.$slots.tfoot ? {
2743
2750
  name: "tfoot",
2744
2751
  fn: m(() => [
2745
- V(O.$slots, "tfoot", {}, void 0, !0)
2752
+ C(O.$slots, "tfoot", {}, void 0, !0)
2746
2753
  ]),
2747
2754
  key: "0"
2748
2755
  } : void 0
2749
2756
  ]), 1040, ["component-name"]))
2750
2757
  ])), [
2751
- [ne, (!t(d) || C.value === _t) && t(o).loading.getAll]
2758
+ [ne, (!t(d) || V.value === pt) && t(o).loading.getAll]
2752
2759
  ]),
2753
- !t(o).loading.getAll && t(o).itemsCount > 0 ? (n(), i("div", Ja, [
2760
+ !t(o).loading.getAll && t(o).itemsCount > 0 ? (n(), s("div", Ja, [
2754
2761
  F(Rn, {
2755
2762
  pagination: t(o).pagination,
2756
2763
  onPaginate: q
@@ -2760,7 +2767,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
2760
2767
  };
2761
2768
  }
2762
2769
  });
2763
- const js = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { class: "prompt" }, Pa = /* @__PURE__ */ U({
2770
+ const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-9c163d4e"]]), Za = { class: "prompt" }, Pa = /* @__PURE__ */ U({
2764
2771
  __name: "aeria-prompt",
2765
2772
  props: {
2766
2773
  title: {},
@@ -2770,7 +2777,7 @@ const js = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { cla
2770
2777
  const u = ce("meta"), e = (a) => {
2771
2778
  u.$actions.fulfillPrompt(a);
2772
2779
  };
2773
- return (a, s) => (n(), $(Ae, {
2780
+ return (a, l) => (n(), $(Ae, {
2774
2781
  float: "",
2775
2782
  "fill-footer": "",
2776
2783
  "close-hint": !1,
@@ -2781,16 +2788,16 @@ const js = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { cla
2781
2788
  class: "prompt__actions",
2782
2789
  style: he(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
2783
2790
  }, [
2784
- (n(!0), i(J, null, H(a.actions, (l, r) => (n(), $(me, {
2791
+ (n(!0), s(J, null, H(a.actions, (i, r) => (n(), $(me, {
2785
2792
  key: `action-${r}`,
2786
2793
  class: W(`
2787
2794
  prompt__action
2788
- prompt__action--${l.variant || "primary"}
2795
+ prompt__action--${i.variant || "primary"}
2789
2796
  `),
2790
- onClick: (y) => l.click ? l.click(l) : e(l)
2797
+ onClick: (y) => i.click ? i.click(i) : e(i)
2791
2798
  }, {
2792
2799
  default: m(() => [
2793
- Q(g(l.title || l.name), 1)
2800
+ Q(g(i.title || i.name), 1)
2794
2801
  ]),
2795
2802
  _: 2
2796
2803
  }, 1032, ["class", "onClick"]))), 128))
@@ -2798,7 +2805,7 @@ const js = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { cla
2798
2805
  ]),
2799
2806
  default: m(() => [
2800
2807
  k("div", Za, [
2801
- V(a.$slots, "default", {}, void 0, !0)
2808
+ C(a.$slots, "default", {}, void 0, !0)
2802
2809
  ])
2803
2810
  ]),
2804
2811
  _: 2
@@ -2813,7 +2820,7 @@ const js = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { cla
2813
2820
  ]), 1024));
2814
2821
  }
2815
2822
  });
2816
- const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { class: "toast__content" }, es = { class: "toast__time" }, ts = /* @__PURE__ */ U({
2823
+ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-5443f297"]]), xa = { class: "toast__content" }, el = { class: "toast__time" }, tl = /* @__PURE__ */ U({
2817
2824
  __name: "aeria-toast",
2818
2825
  props: {
2819
2826
  idx: {},
@@ -2824,36 +2831,36 @@ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { cla
2824
2831
  setup(c) {
2825
2832
  const u = ce("meta");
2826
2833
  return (e, a) => {
2827
- const s = N("clickable");
2828
- return Z((n(), i("div", {
2834
+ const l = N("clickable");
2835
+ return Z((n(), s("div", {
2829
2836
  class: W({
2830
2837
  toast: !0,
2831
2838
  "toast--animate": t(u).toasts[0].itr === e.itr
2832
2839
  }),
2833
- onAnimationend: a[0] || (a[0] = (l) => t(u).$actions.popToast()),
2834
- onClick: a[1] || (a[1] = (l) => t(u).$actions.popToast(e.itr))
2840
+ onAnimationend: a[0] || (a[0] = (i) => t(u).$actions.popToast()),
2841
+ onClick: a[1] || (a[1] = (i) => t(u).$actions.popToast(e.itr))
2835
2842
  }, [
2836
2843
  F(K, G(
2837
2844
  e.icon ? { icon: e.icon } : { icon: "warning-circle" },
2838
2845
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
2839
2846
  ), null, 16),
2840
2847
  k("div", xa, [
2841
- V(e.$slots, "default", {}, void 0, !0),
2842
- k("div", es, g(e.formatDateTime(e.date, { hoursOnly: !0 })), 1)
2848
+ C(e.$slots, "default", {}, void 0, !0),
2849
+ k("div", el, g(e.formatDateTime(e.date, { hoursOnly: !0 })), 1)
2843
2850
  ])
2844
2851
  ], 34)), [
2845
- [s]
2852
+ [l]
2846
2853
  ]);
2847
2854
  };
2848
2855
  }
2849
2856
  });
2850
- const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["innerHTML"], as = { class: "main__toasts" }, ss = ["innerHTML"], ls = /* @__PURE__ */ U({
2857
+ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["innerHTML"], al = { class: "main__toasts" }, ll = ["innerHTML"], sl = /* @__PURE__ */ U({
2851
2858
  __name: "aeria-main",
2852
2859
  setup(c) {
2853
2860
  const u = ce("meta"), e = D(() => u.themeOverride || u.theme);
2854
- return (a, s) => {
2855
- const l = Ct("router-view");
2856
- return n(), i("main", {
2861
+ return (a, l) => {
2862
+ const i = Ct("router-view");
2863
+ return n(), s("main", {
2857
2864
  id: "main",
2858
2865
  class: W(`
2859
2866
  main
@@ -2863,13 +2870,13 @@ const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["inn
2863
2870
  }, [
2864
2871
  (n(), $(It, null, {
2865
2872
  default: m(() => [
2866
- F(l, null, {
2873
+ F(i, null, {
2867
2874
  default: m(({ Component: r }) => [
2868
2875
  (n(), $(ye(r), null, de({ _: 2 }, [
2869
2876
  H(Object.keys(a.$slots), (y) => ({
2870
2877
  name: y,
2871
2878
  fn: m(() => [
2872
- V(a.$slots, y, {}, void 0, !0)
2879
+ C(a.$slots, y, {}, void 0, !0)
2873
2880
  ])
2874
2881
  }))
2875
2882
  ]), 1024))
@@ -2879,40 +2886,40 @@ const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["inn
2879
2886
  ]),
2880
2887
  _: 3
2881
2888
  })),
2882
- V(a.$slots, "default", {}, void 0, !0),
2889
+ C(a.$slots, "default", {}, void 0, !0),
2883
2890
  F(Ae, G({
2884
2891
  modelValue: t(u).modal.visible,
2885
- "onUpdate:modelValue": s[0] || (s[0] = (r) => t(u).modal.visible = r),
2892
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => t(u).modal.visible = r),
2886
2893
  float: "",
2887
2894
  "close-hint": ""
2888
2895
  }, t(u).modal, {
2889
2896
  "overlay-layer": 70,
2890
- onOverlayClick: s[1] || (s[1] = (r) => t(u).modal.visible = !1)
2897
+ onOverlayClick: l[1] || (l[1] = (r) => t(u).modal.visible = !1)
2891
2898
  }), {
2892
2899
  default: m(() => [
2893
- t(u).modal.body ? (n(), i("div", {
2900
+ t(u).modal.body ? (n(), s("div", {
2894
2901
  key: 0,
2895
2902
  style: { "white-space": "pre-wrap" },
2896
2903
  innerHTML: t(u).modal.body
2897
- }, null, 8, os)) : f("", !0),
2904
+ }, null, 8, ol)) : f("", !0),
2898
2905
  t(u).modal.component ? (n(), $(ye(t(u).modal.component), { key: 1 })) : f("", !0)
2899
2906
  ]),
2900
2907
  _: 1
2901
2908
  }, 16, ["modelValue"]),
2902
- t(u).prompt.visible ? (n(), $(Na, le(G({ key: 0 }, t(u).prompt)), {
2909
+ t(u).prompt.visible ? (n(), $(Na, se(G({ key: 0 }, t(u).prompt)), {
2903
2910
  default: m(() => [
2904
2911
  Q(g(t(u).prompt.body), 1)
2905
2912
  ]),
2906
2913
  _: 1
2907
2914
  }, 16)) : f("", !0),
2908
- k("div", as, [
2909
- (n(!0), i(J, null, H(t(u).toasts, (r) => (n(), $(ns, G(r, {
2915
+ k("div", al, [
2916
+ (n(!0), s(J, null, H(t(u).toasts, (r) => (n(), $(nl, G(r, {
2910
2917
  key: `toast-${r.itr}`
2911
2918
  }), {
2912
2919
  default: m(() => [
2913
2920
  k("div", {
2914
2921
  innerHTML: t(M)(r.text)
2915
- }, null, 8, ss)
2922
+ }, null, 8, ll)
2916
2923
  ]),
2917
2924
  _: 2
2918
2925
  }, 1040))), 128))
@@ -2921,28 +2928,28 @@ const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["inn
2921
2928
  };
2922
2929
  }
2923
2930
  });
2924
- const Ts = /* @__PURE__ */ X(ls, [["__scopeId", "data-v-1166be3d"]]);
2925
- const is = {}, rs = { class: "menu" };
2926
- function us(c, u) {
2927
- return n(), i("menu", rs, [
2928
- (n(!0), i(J, null, H(Object.keys(c.$slots), (e) => (n(), i("div", {
2931
+ const Tl = /* @__PURE__ */ X(sl, [["__scopeId", "data-v-1166be3d"]]);
2932
+ const il = {}, rl = { class: "menu" };
2933
+ function ul(c, u) {
2934
+ return n(), s("menu", rl, [
2935
+ (n(!0), s(J, null, H(Object.keys(c.$slots), (e) => (n(), s("div", {
2929
2936
  key: e,
2930
2937
  class: "menu__entry"
2931
2938
  }, [
2932
- V(c.$slots, e, {}, void 0, !0)
2939
+ C(c.$slots, e, {}, void 0, !0)
2933
2940
  ]))), 128))
2934
2941
  ]);
2935
2942
  }
2936
- const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb"]]), cs = { class: "tabs" }, ds = {
2943
+ const Ll = /* @__PURE__ */ X(il, [["render", ul], ["__scopeId", "data-v-3cfef7fb"]]), cl = { class: "tabs" }, dl = {
2937
2944
  key: 0,
2938
2945
  class: "tabs__horizontal"
2939
- }, ps = {
2946
+ }, pl = {
2940
2947
  key: 0,
2941
2948
  class: "tabs__tab tabs__tab--info"
2942
- }, _s = ["onClick"], ms = {
2949
+ }, _l = ["onClick"], ml = {
2943
2950
  key: 1,
2944
2951
  class: "tabs__context-menu"
2945
- }, fs = ["onClick"], vs = /* @__PURE__ */ U({
2952
+ }, fl = ["onClick"], vl = /* @__PURE__ */ U({
2946
2953
  __name: "aeria-tabs",
2947
2954
  props: {
2948
2955
  query: {},
@@ -2950,11 +2957,11 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
2950
2957
  dropdown: { type: Boolean }
2951
2958
  },
2952
2959
  setup(c) {
2953
- const u = c, e = At(), a = Re(), s = Te(), l = "query" in u && u.query ? "query" : "params", r = D(() => {
2954
- const p = a.currentRoute.value[l][u.query || u.param];
2960
+ const u = c, e = At(), a = Le(), l = je(), i = "query" in u && u.query ? "query" : "params", r = D(() => {
2961
+ const p = a.currentRoute.value[i][u.query || u.param];
2955
2962
  return p || Object.keys(e)[0];
2956
2963
  }), y = (p) => {
2957
- if (l === "query") {
2964
+ if (i === "query") {
2958
2965
  a.push({
2959
2966
  query: {
2960
2967
  ...a.currentRoute.value.query,
@@ -2971,12 +2978,12 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
2971
2978
  };
2972
2979
  return (p, h) => {
2973
2980
  const d = N("clickable");
2974
- return n(), i("div", cs, [
2975
- t(s).md && !p.dropdown ? (n(), i("div", ds, [
2976
- p.$slots.default ? (n(), i("div", ps, [
2977
- V(p.$slots, "default", {}, void 0, !0)
2981
+ return n(), s("div", cl, [
2982
+ t(l).md && !p.dropdown ? (n(), s("div", dl, [
2983
+ p.$slots.default ? (n(), s("div", pl, [
2984
+ C(p.$slots, "default", {}, void 0, !0)
2978
2985
  ])) : f("", !0),
2979
- (n(!0), i(J, null, H(Object.keys(p.$slots).filter((o) => o !== "default"), (o, v) => (n(), i("div", {
2986
+ (n(!0), s(J, null, H(Object.keys(p.$slots).filter((o) => o !== "default"), (o, v) => (n(), s("div", {
2980
2987
  key: o,
2981
2988
  class: W({
2982
2989
  tabs__tab: !0,
@@ -2984,9 +2991,9 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
2984
2991
  }),
2985
2992
  onClick: (b) => y(o)
2986
2993
  }, [
2987
- V(p.$slots, o, {}, void 0, !0)
2988
- ], 10, _s))), 128))
2989
- ])) : (n(), i("div", ms, [
2994
+ C(p.$slots, o, {}, void 0, !0)
2995
+ ], 10, _l))), 128))
2996
+ ])) : (n(), s("div", ml, [
2990
2997
  F(Ce, null, de({
2991
2998
  default: m(() => [
2992
2999
  Z((n(), $(K, {
@@ -2996,7 +3003,7 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
2996
3003
  class: "tabs__context-menu-icon"
2997
3004
  }, {
2998
3005
  default: m(() => [
2999
- V(p.$slots, r.value, {}, void 0, !0)
3006
+ C(p.$slots, r.value, {}, void 0, !0)
3000
3007
  ]),
3001
3008
  _: 3
3002
3009
  })), [
@@ -3011,8 +3018,8 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
3011
3018
  k("div", {
3012
3019
  onClick: (v) => y(o)
3013
3020
  }, [
3014
- V(p.$slots, o, {}, void 0, !0)
3015
- ], 8, fs)
3021
+ C(p.$slots, o, {}, void 0, !0)
3022
+ ], 8, fl)
3016
3023
  ])
3017
3024
  }))
3018
3025
  ]), 1024)
@@ -3021,7 +3028,7 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
3021
3028
  };
3022
3029
  }
3023
3030
  });
3024
- const ys = /* @__PURE__ */ X(vs, [["__scopeId", "data-v-d12cddeb"]]), hs = U({
3031
+ const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-4dd516ec"]]), hl = U({
3025
3032
  props: {
3026
3033
  initialValue: String,
3027
3034
  promise: Promise
@@ -3032,31 +3039,31 @@ const ys = /* @__PURE__ */ X(vs, [["__scopeId", "data-v-d12cddeb"]]), hs = U({
3032
3039
  u.value = e;
3033
3040
  }), () => Ot("div", u.value);
3034
3041
  }
3035
- }), $s = ["onClick"], bs = { key: 1 }, gs = /* @__PURE__ */ U({
3042
+ }), $l = ["onClick"], bl = { key: 1 }, gl = /* @__PURE__ */ U({
3036
3043
  __name: "aeria-crud-topbar",
3037
3044
  props: {
3038
3045
  collection: {}
3039
3046
  },
3040
3047
  setup(c) {
3041
- const u = c, a = Re().currentRoute, s = D(() => {
3048
+ const u = c, a = Le().currentRoute, l = D(() => {
3042
3049
  try {
3043
- const l = u.collection ? u.collection : a.value.meta.collection || a.value.params.collection;
3044
- return ge(l);
3050
+ const i = u.collection ? u.collection : a.value.meta.collection || a.value.params.collection;
3051
+ return ge(i);
3045
3052
  } catch {
3046
3053
  return null;
3047
3054
  }
3048
3055
  });
3049
- return (l, r) => s.value && s.value.description.filtersPresets ? (n(), $(ys, {
3056
+ return (i, r) => l.value && l.value.description.filtersPresets ? (n(), $(yl, {
3050
3057
  key: 0,
3051
3058
  dropdown: "",
3052
3059
  query: "section"
3053
3060
  }, de({ _: 2 }, [
3054
- H(Object.entries(s.value.description.filtersPresets), ([y, p]) => ({
3061
+ H(Object.entries(l.value.description.filtersPresets), ([y, p]) => ({
3055
3062
  name: y,
3056
3063
  fn: m(() => [
3057
3064
  k("div", {
3058
3065
  class: "topbar__preset",
3059
- onClick: (h) => t(ht)(p, s.value)
3066
+ onClick: (h) => t(ht)(p, l.value)
3060
3067
  }, [
3061
3068
  p.icon ? (n(), $(K, {
3062
3069
  key: 0,
@@ -3066,26 +3073,26 @@ const ys = /* @__PURE__ */ X(vs, [["__scopeId", "data-v-d12cddeb"]]), hs = U({
3066
3073
  Q(g(p.name || t(M)(y, { plural: !0 })), 1)
3067
3074
  ]),
3068
3075
  _: 2
3069
- }, 1032, ["icon"])) : (n(), i("div", bs, g(p.name || t(M)(y, { plural: !0 })), 1)),
3076
+ }, 1032, ["icon"])) : (n(), s("div", bl, g(p.name || t(M)(y, { plural: !0 })), 1)),
3070
3077
  p.badgeFunction ? (n(), $($e, { key: 2 }, {
3071
3078
  default: m(() => [
3072
- F(t(hs), {
3079
+ F(t(hl), {
3073
3080
  "initial-value": "0",
3074
- promise: s.value.$functions[p.badgeFunction]({ filters: p.filters })
3081
+ promise: l.value.$functions[p.badgeFunction]({ filters: p.filters })
3075
3082
  }, null, 8, ["promise"])
3076
3083
  ]),
3077
3084
  _: 2
3078
3085
  }, 1024)) : f("", !0)
3079
- ], 8, $s)
3086
+ ], 8, $l)
3080
3087
  ])
3081
3088
  }))
3082
3089
  ]), 1024)) : f("", !0);
3083
3090
  }
3084
3091
  });
3085
- const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3092
+ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-57d3d562"]]), Vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3086
3093
  __proto__: null,
3087
- default: ks
3088
- }, Symbol.toStringTag, { value: "Module" })), Rs = /* @__PURE__ */ U({
3094
+ default: kl
3095
+ }, Symbol.toStringTag, { value: "Module" })), Rl = /* @__PURE__ */ U({
3089
3096
  __name: "aeria-password-form",
3090
3097
  props: {
3091
3098
  modelValue: {}
@@ -3093,12 +3100,12 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
3093
3100
  emits: ["update:modelValue"],
3094
3101
  setup(c) {
3095
3102
  const u = c;
3096
- ve(Ee, null);
3103
+ ve(Ue, null);
3097
3104
  const e = Ft(), a = D(() => e(
3098
3105
  u.modelValue.password,
3099
3106
  u.modelValue.confirmation
3100
3107
  ));
3101
- return (s, l) => (n(), $(De, {
3108
+ return (l, i) => (n(), $(He, {
3102
3109
  form: {
3103
3110
  password: {
3104
3111
  type: "string",
@@ -3111,17 +3118,17 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
3111
3118
  inputType: "password"
3112
3119
  }
3113
3120
  },
3114
- "model-value": s.modelValue,
3115
- "onUpdate:modelValue": l[0] || (l[0] = (r) => s.$emit("update:modelValue", r))
3121
+ "model-value": l.modelValue,
3122
+ "onUpdate:modelValue": i[0] || (i[0] = (r) => l.$emit("update:modelValue", r))
3116
3123
  }, {
3117
3124
  after: m(() => [
3118
3125
  k("div", null, g(a.value || "Senhas conferem"), 1),
3119
- V(s.$slots, "default", le(be({ passwordError: a.value })))
3126
+ C(l.$slots, "default", se(be({ passwordError: a.value })))
3120
3127
  ]),
3121
3128
  _: 3
3122
3129
  }, 8, ["model-value"]));
3123
3130
  }
3124
- }), zs = (c, u = []) => ({
3131
+ }), zl = (c, u = []) => ({
3125
3132
  path: "/user",
3126
3133
  name: "/builtin:user",
3127
3134
  component: c,
@@ -3139,7 +3146,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
3139
3146
  {
3140
3147
  path: "signin",
3141
3148
  name: "/user/signin",
3142
- component: () => import("./signin-9aab98af.js"),
3149
+ component: () => import("./signin-72b3b697.js"),
3143
3150
  meta: {
3144
3151
  title: "Autenticação"
3145
3152
  }
@@ -3147,7 +3154,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
3147
3154
  {
3148
3155
  path: "signup",
3149
3156
  name: "/user/signup",
3150
- component: () => import("./signup-caa26d80.js"),
3157
+ component: () => import("./signup-0257e6aa.js"),
3151
3158
  meta: {
3152
3159
  title: "Registro"
3153
3160
  }
@@ -3155,13 +3162,13 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
3155
3162
  {
3156
3163
  path: "activation",
3157
3164
  name: "/user/activation",
3158
- component: () => import("./activation-2cac4071.js"),
3165
+ component: () => import("./activation-b2a947e0.js"),
3159
3166
  meta: {
3160
3167
  title: "Ativação"
3161
3168
  }
3162
3169
  }
3163
3170
  ])
3164
- }), Fs = (c, u = []) => ({
3171
+ }), Fl = (c, u = []) => ({
3165
3172
  path: "/dashboard",
3166
3173
  name: "/builtin:dashboard",
3167
3174
  component: c,
@@ -3177,8 +3184,8 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
3177
3184
  name: "/dashboard/crud",
3178
3185
  props: !0,
3179
3186
  components: {
3180
- default: () => import("./crud-view-7e492037.js"),
3181
- topbar: () => Promise.resolve().then(() => Vs)
3187
+ default: () => import("./crud-view-232aa79c.js"),
3188
+ topbar: () => Promise.resolve().then(() => Vl)
3182
3189
  },
3183
3190
  meta: {
3184
3191
  title: "%viewTitle%"
@@ -3195,7 +3202,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
3195
3202
  children: [
3196
3203
  {
3197
3204
  path: "profile",
3198
- component: () => import("./profile-f12526fb.js"),
3205
+ component: () => import("./profile-d956dbdb.js"),
3199
3206
  meta: {
3200
3207
  title: "Meu perfil",
3201
3208
  icon: "user-square"
@@ -3204,7 +3211,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
3204
3211
  {
3205
3212
  path: "changepass",
3206
3213
  name: "/dashboard/user/changepass",
3207
- component: () => import("./password-change-98fb5a7f.js"),
3214
+ component: () => import("./password-change-f12b3652.js"),
3208
3215
  meta: {
3209
3216
  title: "Mudar senha",
3210
3217
  icon: "lock"
@@ -3215,37 +3222,37 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
3215
3222
  ])
3216
3223
  });
3217
3224
  export {
3218
- De as A,
3225
+ He as A,
3219
3226
  Na as B,
3220
- ns as C,
3221
- ks as D,
3222
- zs as E,
3223
- Fs as F,
3224
- Rs as _,
3227
+ nl as C,
3228
+ kl as D,
3229
+ zl as E,
3230
+ Fl as F,
3231
+ Rl as _,
3225
3232
  re as a,
3226
3233
  K as b,
3227
3234
  Hn as c,
3228
- js as d,
3229
- Me as e,
3230
- Ls as f,
3235
+ jl as d,
3236
+ Fe as e,
3237
+ Ll as f,
3231
3238
  Ae as g,
3232
3239
  X as h,
3233
- Ss as i,
3240
+ Sl as i,
3234
3241
  $e as j,
3235
3242
  me as k,
3236
3243
  cn as l,
3237
3244
  Ce as m,
3238
3245
  Fa as n,
3239
3246
  yn as o,
3240
- Ts as p,
3247
+ Tl as p,
3241
3248
  Rn as q,
3242
3249
  La as r,
3243
- ys as s,
3250
+ yl as s,
3244
3251
  yo as t,
3245
3252
  Ie as u,
3246
3253
  Gn as v,
3247
3254
  Ro as w,
3248
- He as x,
3255
+ Ee as x,
3249
3256
  Pn as y,
3250
- hs as z
3257
+ hl as z
3251
3258
  };