@aeria-ui/ui 0.0.22 → 0.0.24

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,14 +1,13 @@
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 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 se, 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";
2
2
  import { t as M, useI18n as wt } from "@aeria-ui/i18n";
3
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
4
  import { useStore as ce, getStoreId as Le, useParentStore as ge, STORE_ID as Ee, getGlobalStateManager as Mt } from "@aeria-ui/state-management";
5
5
  import { useRouter as Re } from "vue-router";
6
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";
7
- import { vMaska as Dt } from "maska";
8
- const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
7
+ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
9
8
  key: 0,
10
9
  class: "accordion__content"
11
- }, Xt = /* @__PURE__ */ U({
10
+ }, Wt = /* @__PURE__ */ U({
12
11
  __name: "aeria-accordion",
13
12
  props: {
14
13
  enumerate: { type: Boolean },
@@ -17,8 +16,8 @@ const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
17
16
  },
18
17
  setup(c) {
19
18
  const u = Y(null), e = (a) => typeof a == "string" ? a : a.title;
20
- return (a, s) => {
21
- const l = N("clickable");
19
+ return (a, l) => {
20
+ const s = N("clickable");
22
21
  return n(), i("div", {
23
22
  class: W({
24
23
  accordion: !0,
@@ -33,12 +32,12 @@ const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
33
32
  class: "accordion__header",
34
33
  onClick: (p) => u.value === r ? u.value = null : u.value = r
35
34
  }, [
36
- a.enumerate ? (n(), i("span", Gt, g(y + 1) + ". ", 1)) : f("", !0),
35
+ a.enumerate ? (n(), i("span", Qt, g(y + 1) + ". ", 1)) : f("", !0),
37
36
  Q(" " + g(a.headers[r] ? e(a.headers[r]) : t(M)(r)), 1)
38
- ], 8, Qt)), [
39
- [l]
37
+ ], 8, Dt)), [
38
+ [s]
40
39
  ]),
41
- u.value === r ? (n(), i("div", Wt, [
40
+ u.value === r ? (n(), i("div", Gt, [
42
41
  V(a.$slots, r, {}, void 0, !0)
43
42
  ])) : f("", !0)
44
43
  ]))), 128))
@@ -48,10 +47,10 @@ const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
48
47
  });
49
48
  const X = (c, u) => {
50
49
  const e = c.__vccOpts || c;
51
- for (const [a, s] of u)
52
- e[a] = s;
50
+ for (const [a, l] of u)
51
+ e[a] = l;
53
52
  return e;
54
- }, Ts = /* @__PURE__ */ X(Xt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ U({
53
+ }, Sl = /* @__PURE__ */ X(Wt, [["__scopeId", "data-v-3ea933d4"]]), Xt = /* @__PURE__ */ U({
55
54
  __name: "aeria-badge",
56
55
  props: {
57
56
  large: { type: Boolean },
@@ -69,31 +68,31 @@ const X = (c, u) => {
69
68
  ], 2));
70
69
  }
71
70
  });
72
- const $e = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-47f92648"]]), Jt = /* @__PURE__ */ U({
71
+ const $e = /* @__PURE__ */ X(Xt, [["__scopeId", "data-v-47f92648"]]), Yt = /* @__PURE__ */ U({
73
72
  __name: "aeria-bare-button",
74
73
  props: {
75
74
  disabled: { type: Boolean }
76
75
  },
77
76
  emits: ["click"],
78
77
  setup(c, { emit: u }) {
79
- const e = c, a = u, s = (l) => {
80
- e.disabled || a("click", l);
78
+ const e = c, a = u, l = (s) => {
79
+ e.disabled || a("click", s);
81
80
  };
82
- return (l, r) => (n(), i("button", {
81
+ return (s, r) => (n(), i("button", {
83
82
  class: W(`
84
83
  barebutton
85
- barebutton--${l.disabled ? "disabled" : "enabled"}
84
+ barebutton--${s.disabled ? "disabled" : "enabled"}
86
85
  `),
87
- onClick: s
86
+ onClick: l
88
87
  }, [
89
- V(l.$slots, "default", {}, void 0, !0)
88
+ V(s.$slots, "default", {}, void 0, !0)
90
89
  ], 2));
91
90
  }
92
91
  });
93
- const me = /* @__PURE__ */ X(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["href"], Zt = {
92
+ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["href"], Kt = {
94
93
  key: 0,
95
94
  "data-component": "icon-label"
96
- }, Pt = /* @__PURE__ */ U({
95
+ }, Zt = /* @__PURE__ */ U({
97
96
  __name: "aeria-icon",
98
97
  props: {
99
98
  icon: {},
@@ -105,21 +104,21 @@ const me = /* @__PURE__ */ X(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["hre
105
104
  },
106
105
  setup(c) {
107
106
  const u = c, e = typeof u.reactive == "boolean" ? u.reactive : fe("iconReactive", !1), a = D(() => {
108
- var s;
109
- 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}`;
110
109
  });
111
- return (s, l) => (n(), i("a", {
110
+ return (l, s) => (n(), i("a", {
112
111
  class: W(`
113
112
  icon
114
113
  ${t(e) && "icon--reactive"}
115
- ${s.$slots.default ? "icon--centered" : "icon--standalone"}
114
+ ${l.$slots.default ? "icon--centered" : "icon--standalone"}
116
115
  `)
117
116
  }, [
118
117
  k("div", {
119
118
  class: W(`
120
119
  icon__icon
121
- ${s.size && `icon__icon--${s.size}`}
122
- ${s.iconRight && "icon__icon--right"}
120
+ ${l.size && `icon__icon--${l.size}`}
121
+ ${l.iconRight && "icon__icon--right"}
123
122
  `)
124
123
  }, [
125
124
  (n(), i("svg", G({
@@ -128,23 +127,23 @@ const me = /* @__PURE__ */ X(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["hre
128
127
  viewBox: "0 0 256 256",
129
128
  "data-component": "icon"
130
129
  }, {
131
- ...s.fill ? { fill: s.fill } : {}
130
+ ...l.fill ? { fill: l.fill } : {}
132
131
  }), [
133
132
  k("use", {
134
133
  href: `/assets/icons.svg#${a.value}`
135
- }, null, 8, Kt)
134
+ }, null, 8, Jt)
136
135
  ], 16))
137
136
  ], 2),
138
- s.$slots.default ? (n(), i("div", Zt, [
139
- V(s.$slots, "default", {}, void 0, !0)
137
+ l.$slots.default ? (n(), i("div", Kt, [
138
+ V(l.$slots, "default", {}, void 0, !0)
140
139
  ])) : f("", !0)
141
140
  ], 2));
142
141
  }
143
142
  });
144
- const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { class: "panel__header-left" }, xt = { key: 1 }, en = {
143
+ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { class: "panel__header-left" }, Nt = { key: 1 }, xt = {
145
144
  key: 2,
146
145
  style: { "margin-left": "auto" }
147
- }, tn = /* @__PURE__ */ U({
146
+ }, en = /* @__PURE__ */ U({
148
147
  __name: "aeria-panel",
149
148
  props: {
150
149
  closeHint: { type: Boolean, default: !1 },
@@ -169,12 +168,12 @@ const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
169
168
  },
170
169
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
171
170
  setup(c, { emit: u }) {
172
- const e = c, a = u, s = D(() => e.floating || e.float), l = Y(e.collapsed), r = Y(null), { reachedEnd: y } = Xe(r), p = () => {
171
+ const e = c, a = u, l = D(() => e.floating || e.float), s = Y(e.collapsed), r = Y(null), { reachedEnd: y } = Xe(r), p = () => {
173
172
  a("update:modelValue", !1), a("close");
174
173
  }, h = () => {
175
174
  a("overlayClick");
176
175
  }, d = (o) => {
177
- a("update:collapsed", o), l.value = o;
176
+ a("update:collapsed", o), s.value = o;
178
177
  };
179
178
  return (o, v) => {
180
179
  const b = N("clickable"), C = N("loading"), R = N("overlay");
@@ -186,42 +185,42 @@ const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
186
185
  `)
187
186
  }, [
188
187
  (n(), $(ye(
189
- s.value ? "dialog" : "div"
188
+ l.value ? "dialog" : "div"
190
189
  ), {
191
190
  "data-component": "panel",
192
191
  class: W(`
193
192
  aeria-surface
194
193
  panel__content
195
- ${!(s.value || o.fixedRight) && "panel__content--rounded"}
196
- ${s.value && "panel__content--floating"}
194
+ ${!(l.value || o.fixedRight) && "panel__content--rounded"}
195
+ ${l.value && "panel__content--floating"}
197
196
  ${o.bordered && "panel__content--bordered-body"}
198
197
  ${o.fixedRight && "panel__content--fixed-right"}
199
198
  ${o.transparent && "panel__content--transparent"}
200
199
  ${o.transparentMobile && "panel__content--transparent-mobile"}
201
200
  ${o.outerHeader && "panel__content--outer-header"}
202
201
  `),
203
- onClick: v[1] || (v[1] = (j) => j.stopPropagation())
202
+ onClick: v[1] || (v[1] = (T) => T.stopPropagation())
204
203
  }, {
205
204
  default: m(() => [
206
205
  o.$slots.header || o.title ? (n(), i("div", {
207
206
  key: 0,
208
207
  class: W(`
209
208
  panel__header
210
- ${l.value && "panel__header--collapsed"}
209
+ ${s.value && "panel__header--collapsed"}
211
210
  ${o.outerHeader && "panel__header--outer"}
212
211
  `)
213
212
  }, [
214
- k("div", Nt, [
215
- o.$slots.header ? V(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), i("div", xt, g(o.title), 1)) : f("", !0),
216
- o.$slots.extra ? (n(), i("div", en, [
213
+ k("div", Pt, [
214
+ o.$slots.header ? V(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), i("div", Nt, g(o.title), 1)) : f("", !0),
215
+ o.$slots.extra ? (n(), i("div", xt, [
217
216
  V(o.$slots, "extra", {}, void 0, !0)
218
217
  ])) : f("", !0)
219
218
  ]),
220
219
  o.collapsible ? Z((n(), $(K, {
221
220
  key: 0,
222
221
  reactive: "",
223
- icon: l.value ? "plus" : "minus",
224
- onClick: v[0] || (v[0] = (j) => d(!l.value))
222
+ icon: s.value ? "plus" : "minus",
223
+ onClick: v[0] || (v[0] = (T) => d(!s.value))
225
224
  }, null, 8, ["icon"])), [
226
225
  [b]
227
226
  ]) : o.closeHint ? Z((n(), $(K, {
@@ -233,7 +232,7 @@ const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
233
232
  [b]
234
233
  ]) : f("", !0)
235
234
  ], 2)) : f("", !0),
236
- l.value ? f("", !0) : Z((n(), i("div", {
235
+ s.value ? f("", !0) : Z((n(), i("div", {
237
236
  key: 1,
238
237
  ref_key: "body",
239
238
  ref: r,
@@ -261,19 +260,19 @@ const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
261
260
  }, 8, ["class"]))
262
261
  ], 2)), [
263
262
  [R, {
264
- condition: o.overlay || o.fixedRight || s.value,
263
+ condition: o.overlay || o.fixedRight || l.value,
265
264
  invisible: o.invisibleOverlay,
266
265
  click: h,
267
- layer: o.overlayLayer || (s.value ? 60 : o.fixedRight ? 50 : 0)
266
+ layer: o.overlayLayer || (l.value ? 60 : o.fixedRight ? 50 : 0)
268
267
  }]
269
268
  ]) : f("", !0);
270
269
  };
271
270
  }
272
271
  });
273
- const Ae = /* @__PURE__ */ X(tn, [["__scopeId", "data-v-729778b1"]]), nn = { class: "button__content" }, on = {
272
+ const Ae = /* @__PURE__ */ X(en, [["__scopeId", "data-v-729778b1"]]), tn = { class: "button__content" }, nn = {
274
273
  key: 1,
275
274
  class: "button__content"
276
- }, an = /* @__PURE__ */ U({
275
+ }, on = /* @__PURE__ */ U({
277
276
  __name: "aeria-button",
278
277
  props: {
279
278
  size: {},
@@ -294,35 +293,35 @@ const Ae = /* @__PURE__ */ X(tn, [["__scopeId", "data-v-729778b1"]]), nn = { cla
294
293
  }
295
294
  return fe("buttonSize", u.size) || "medium";
296
295
  })();
297
- return (s, l) => (n(), $(me, {
296
+ return (l, s) => (n(), $(me, {
298
297
  class: W(`
299
298
  button
300
299
  button--${t(e)}
301
300
  button--${t(a)}
302
- ${s.loading && "button--loading"}
301
+ ${l.loading && "button--loading"}
303
302
  `),
304
- disabled: s.disabled
303
+ disabled: l.disabled
305
304
  }, {
306
305
  default: m(() => [
307
- s.icon ? (n(), $(K, {
306
+ l.icon ? (n(), $(K, {
308
307
  key: 0,
309
- icon: s.icon
308
+ icon: l.icon
310
309
  }, {
311
310
  default: m(() => [
312
- k("div", nn, [
313
- V(s.$slots, "default", {}, void 0, !0)
311
+ k("div", tn, [
312
+ V(l.$slots, "default", {}, void 0, !0)
314
313
  ])
315
314
  ]),
316
315
  _: 3
317
- }, 8, ["icon"])) : (n(), i("div", on, [
318
- V(s.$slots, "default", {}, void 0, !0)
316
+ }, 8, ["icon"])) : (n(), i("div", nn, [
317
+ V(l.$slots, "default", {}, void 0, !0)
319
318
  ]))
320
319
  ]),
321
320
  _: 3
322
321
  }, 8, ["class", "disabled"]));
323
322
  }
324
323
  });
325
- const re = /* @__PURE__ */ X(an, [["__scopeId", "data-v-c328251b"]]), sn = { class: "card__picture" }, ln = { class: "card__footer" }, rn = { class: "card__footer-upper" }, un = { class: "card__badge" }, cn = /* @__PURE__ */ U({
324
+ 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({
326
325
  __name: "aeria-card",
327
326
  props: {
328
327
  inactive: { type: Boolean },
@@ -336,27 +335,27 @@ const re = /* @__PURE__ */ X(an, [["__scopeId", "data-v-c328251b"]]), sn = { cla
336
335
  ${u.horizontal && "card--horizontal"}
337
336
  `)
338
337
  }, [
339
- k("div", sn, [
338
+ k("div", an, [
340
339
  V(u.$slots, "default", {}, void 0, !0)
341
340
  ]),
342
341
  k("div", ln, [
343
- k("div", rn, [
342
+ k("div", sn, [
344
343
  k("div", null, [
345
344
  V(u.$slots, "footer", {}, void 0, !0)
346
345
  ]),
347
346
  u.$slots.actions ? V(u.$slots, "actions", { key: 0 }, void 0, !0) : f("", !0)
348
347
  ]),
349
- k("div", un, [
348
+ k("div", rn, [
350
349
  V(u.$slots, "badge", {}, void 0, !0)
351
350
  ])
352
351
  ])
353
352
  ], 2));
354
353
  }
355
354
  });
356
- const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { class: "content__body" }, _n = {
355
+ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { class: "content__body" }, pn = {
357
356
  key: 0,
358
357
  class: "content__section"
359
- }, mn = { class: "content__item" }, fn = /* @__PURE__ */ U({
358
+ }, _n = { class: "content__item" }, mn = /* @__PURE__ */ U({
360
359
  __name: "aeria-context-menu",
361
360
  props: {
362
361
  actions: {},
@@ -369,20 +368,20 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
369
368
  fae20070: p.value.x,
370
369
  fae2006e: p.value.y
371
370
  }));
372
- 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) => {
371
+ const e = u, a = ce("user"), l = Y(null), s = Y(!1), r = (h) => h.filter((d) => d.roles ? d.roles.include(a.currentUser.role) : !!d.click), y = (h, d) => {
373
372
  h.click(d), e("actionClick", {
374
373
  action: h,
375
374
  subject: d
376
- }), l.value = !1;
375
+ }), s.value = !1;
377
376
  }, p = D(() => {
378
- if (!s.value)
377
+ if (!l.value)
379
378
  return {
380
379
  x: 0,
381
380
  y: 0
382
381
  };
383
- const h = s.value.getBoundingClientRect().top, d = s.value.getBoundingClientRect().left, o = s.value.offsetHeight;
382
+ const h = l.value.getBoundingClientRect().top, d = l.value.getBoundingClientRect().left, o = l.value.offsetHeight;
384
383
  return {
385
- _: l.value,
384
+ _: s.value,
386
385
  x: Math.floor(d) + "px",
387
386
  y: Math.floor(h + o) + "px"
388
387
  };
@@ -394,37 +393,37 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
394
393
  Object.keys(h.$slots).some((b) => b !== "default") || ((v = h.actions) == null ? void 0 : v.length) > 0 ? (n(), i("div", {
395
394
  key: 0,
396
395
  ref_key: "contextmenu",
397
- ref: s,
396
+ ref: l,
398
397
  class: "contextmenu"
399
398
  }, [
400
399
  k("a", {
401
400
  class: "contextmenu__trigger",
402
- onClick: d[0] || (d[0] = (b) => l.value = !0)
401
+ onClick: d[0] || (d[0] = (b) => s.value = !0)
403
402
  }, [
404
403
  V(h.$slots, "default", {}, void 0, !0)
405
404
  ])
406
405
  ], 512)) : f("", !0),
407
- l.value ? (n(), $(We, {
406
+ s.value ? (n(), $(We, {
408
407
  key: 1,
409
408
  to: "main"
410
409
  }, [
411
410
  Z((n(), $(Ae, {
412
- modelValue: l.value,
413
- "onUpdate:modelValue": d[4] || (d[4] = (b) => l.value = b),
411
+ modelValue: s.value,
412
+ "onUpdate:modelValue": d[4] || (d[4] = (b) => s.value = b),
414
413
  fill: "",
415
414
  class: "content"
416
415
  }, {
417
416
  default: m(() => {
418
417
  var b;
419
418
  return [
420
- k("div", pn, [
421
- h.$slots.header ? (n(), i("div", _n, [
419
+ k("div", dn, [
420
+ h.$slots.header ? (n(), i("div", pn, [
422
421
  V(h.$slots, "header", {}, void 0, !0)
423
422
  ])) : f("", !0),
424
423
  Object.keys(h.$slots).filter((C) => !["default", "extra", "header"].includes(C)).length > 0 ? (n(), i("div", {
425
424
  key: 1,
426
425
  class: "content__section",
427
- onClick: d[1] || (d[1] = (C) => l.value = !1)
426
+ onClick: d[1] || (d[1] = (C) => s.value = !1)
428
427
  }, [
429
428
  (n(!0), i(J, null, H(Object.keys(h.$slots).filter((C) => !["default", "extra", "header"].includes(C)), (C, R) => (n(), $(me, {
430
429
  key: `slot-${R}`,
@@ -439,12 +438,12 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
439
438
  ((b = h.actions) == null ? void 0 : b.length) > 0 ? (n(), i("div", {
440
439
  key: 2,
441
440
  class: "content__section",
442
- onClick: d[2] || (d[2] = (C) => l.value = !1)
441
+ onClick: d[2] || (d[2] = (C) => s.value = !1)
443
442
  }, [
444
443
  (n(!0), i(J, null, H(r(h.actions), (C, R) => (n(), $(me, {
445
444
  key: `action-${R}`,
446
445
  class: "content__item content__item--reactive",
447
- onClick: (j) => y(C, h.subject)
446
+ onClick: (T) => y(C, h.subject)
448
447
  }, {
449
448
  default: m(() => [
450
449
  C.icon ? (n(), $(K, {
@@ -463,9 +462,9 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
463
462
  h.$slots.extra ? (n(), i("div", {
464
463
  key: 3,
465
464
  class: "content__section",
466
- onClick: d[3] || (d[3] = (C) => l.value = !1)
465
+ onClick: d[3] || (d[3] = (C) => s.value = !1)
467
466
  }, [
468
- k("div", mn, [
467
+ k("div", _n, [
469
468
  h.$slots.extra ? V(h.$slots, "extra", { key: 0 }, void 0, !0) : f("", !0)
470
469
  ])
471
470
  ])) : f("", !0)
@@ -479,7 +478,7 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
479
478
  {
480
479
  layer: h.overlayLayer,
481
480
  click: () => {
482
- l.value = !1;
481
+ s.value = !1;
483
482
  }
484
483
  },
485
484
  void 0,
@@ -491,14 +490,14 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
491
490
  };
492
491
  }
493
492
  });
494
- const Ce = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-24506525"]]), vn = { class: "info__content" }, yn = /* @__PURE__ */ U({
493
+ const Ce = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-24506525"]]), fn = { class: "info__content" }, vn = /* @__PURE__ */ U({
495
494
  __name: "aeria-info",
496
495
  props: {
497
496
  where: {}
498
497
  },
499
498
  setup(c) {
500
- const u = c, e = Te(), a = Y(!1), s = u.where || "top";
501
- return (l, r) => t(e).md ? (n(), i("div", {
499
+ const u = c, e = Te(), a = Y(!1), l = u.where || "top";
500
+ return (s, r) => t(e).md ? (n(), i("div", {
502
501
  key: 0,
503
502
  class: "info",
504
503
  onMouseleave: r[1] || (r[1] = (y) => a.value = !1)
@@ -507,31 +506,31 @@ const Ce = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-24506525"]]), vn = { cla
507
506
  key: 0,
508
507
  class: W(`
509
508
  info__bubble
510
- info__bubble--${t(s)}
509
+ info__bubble--${t(l)}
511
510
  `)
512
511
  }, [
513
- k("div", vn, [
514
- V(l.$slots, "text", {}, void 0, !0)
512
+ k("div", fn, [
513
+ V(s.$slots, "text", {}, void 0, !0)
515
514
  ])
516
515
  ], 2)) : f("", !0),
517
516
  k("div", {
518
517
  onMouseover: r[0] || (r[0] = (y) => a.value = !0)
519
518
  }, [
520
- V(l.$slots, "default", {}, void 0, !0)
519
+ V(s.$slots, "default", {}, void 0, !0)
521
520
  ], 32)
522
- ], 32)) : V(l.$slots, "default", { key: 1 }, void 0, !0);
521
+ ], 32)) : V(s.$slots, "default", { key: 1 }, void 0, !0);
523
522
  }
524
523
  });
525
- const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { class: "input" }, bn = {
524
+ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-b4b7dab5"]]), hn = { class: "input" }, $n = {
526
525
  key: 0,
527
526
  class: "input__label"
528
- }, gn = {
527
+ }, bn = {
529
528
  key: 1,
530
529
  class: "input__hint"
531
- }, kn = ["placeholder", "readonly", "value"], Vn = ["value", "data-maska"], Cn = {
530
+ }, gn = ["placeholder", "readonly", "value"], kn = ["value"], Vn = {
532
531
  key: 1,
533
532
  class: "input__clipboard"
534
- }, In = /* @__PURE__ */ U({
533
+ }, Cn = /* @__PURE__ */ U({
535
534
  __name: "aeria-input",
536
535
  props: {
537
536
  modelValue: {},
@@ -543,7 +542,9 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
543
542
  },
544
543
  emits: ["update:modelValue", "input", "change"],
545
544
  setup(c, { emit: u }) {
546
- 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 = {
545
+ const e = c, a = e.property || {}, l = "icon" in a || "inputType" in a && a.inputType === "search", s = fe("searchOnly", !1), r = fe("innerInputLabel", !1), y = !s && a.readOnly, p = Bt(), h = u, d = fe("inputVariant", e.variant) || "normal", o = {
546
+ name: e.propertyName,
547
+ readonly: y,
547
548
  type: (() => {
548
549
  if ("type" in a)
549
550
  switch (a.type) {
@@ -564,10 +565,7 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
564
565
  })(),
565
566
  placeholder: r ? a.description || e.propertyName : a.placeholder
566
567
  };
567
- "type" in a && (a.type === "number" && (o.min = a.minimum || a.exclusiveMinimum, o.max = a.maximum || a.exclusiveMaximum), o.name = e.propertyName, o.readonly = y, a.type === "string" && [
568
- "date",
569
- "date-time"
570
- ].includes(a.format) && (o.type = !l && a.format === "date-time" ? "datetime-local" : "date")), o.type === "text" && l && (o.type = "search");
568
+ "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 = !s && a.format === "date-time" ? "datetime-local" : "date"), o.minlength = a.minLength, o.maxlength = a.maxLength)), o.type === "text" && s && (o.type = "search");
571
569
  const v = () => {
572
570
  try {
573
571
  return e.modelValue ? new Date(e.modelValue).toISOString().split("T").shift() : "";
@@ -577,35 +575,35 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
577
575
  }, b = Y([
578
576
  "date",
579
577
  "date-time"
580
- ].includes(o.type) ? v() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue), C = (j) => {
578
+ ].includes(o.type) ? v() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue), C = (T) => {
581
579
  const q = (() => {
582
- if (o.type === "number")
583
- return Number(j);
580
+ if (o.type === "number" || o.type === "integer")
581
+ return Number(T);
584
582
  if (!("type" in a && a.type === "string"))
585
- return j;
583
+ return T;
586
584
  switch (a.format) {
587
585
  case "date":
588
586
  case "date-time":
589
- return new Date(j);
587
+ return new Date(T);
590
588
  default:
591
- return j;
589
+ return T;
592
590
  }
593
591
  })();
594
592
  h("input", q), h("update:modelValue", q);
595
- }, R = (j, q) => {
596
- const { masked: w } = q || {}, ae = b.value = j.target.value, x = w ? j.detail.unmasked : ae;
597
- C(x);
593
+ }, R = (T) => {
594
+ const q = T.target.value;
595
+ b.value = q, C(q);
598
596
  };
599
- return ue(() => e.modelValue, (j, q) => {
600
- j instanceof Date || (q && !j ? b.value = void 0 : j && q === void 0 && (b.value = j));
601
- }), (j, q) => {
602
- const w = N("focus"), ae = N("clickable");
603
- return n(), i("label", $n, [
604
- t(r) ? f("", !0) : (n(), i("div", bn, [
605
- j.$slots.default ? V(j.$slots, "default", { key: 0 }, void 0, !0) : V(j.$slots, "description", { key: 1 }, void 0, !0)
597
+ return ue(() => e.modelValue, (T, q) => {
598
+ T instanceof Date || (q && !T ? b.value = void 0 : T && q === void 0 && (b.value = T));
599
+ }), (T, q) => {
600
+ const w = N("focus"), le = N("clickable");
601
+ return n(), i("label", hn, [
602
+ t(r) ? f("", !0) : (n(), i("div", $n, [
603
+ T.$slots.default ? V(T.$slots, "default", { key: 0 }, void 0, !0) : V(T.$slots, "description", { key: 1 }, void 0, !0)
606
604
  ])),
607
- j.$slots.hint ? (n(), i("div", gn, [
608
- V(j.$slots, "hint", {}, void 0, !0)
605
+ T.$slots.hint ? (n(), i("div", bn, [
606
+ V(T.$slots, "hint", {}, void 0, !0)
609
607
  ])) : f("", !0),
610
608
  "element" in t(a) && t(a).element === "textarea" ? (n(), i("div", {
611
609
  key: 2,
@@ -617,13 +615,13 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
617
615
  Z(k("textarea", {
618
616
  placeholder: o.placeholder,
619
617
  readonly: o.readonly,
620
- value: j.modelValue,
618
+ value: T.modelValue,
621
619
  class: W(`
622
620
  input__textarea
623
621
  input__input--${t(d)}
624
622
  `),
625
623
  onInput: R
626
- }, null, 42, kn), [
624
+ }, null, 42, gn), [
627
625
  [w, t(a).focus]
628
626
  ])
629
627
  ], 2)) : (n(), i("div", {
@@ -636,38 +634,36 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
636
634
  Z(k("input", G(o, {
637
635
  value: b.value,
638
636
  "data-component": "input",
639
- "data-maska": "mask" in t(a) ? t(a).mask : "",
640
637
  class: `
641
638
  input__input
642
639
  input__input--${t(d)}
643
- ${t(s) && "input__input--icon"}
640
+ ${t(l) && "input__input--icon"}
644
641
  ${t(y) && "input__input--readOnly"}
645
642
  `,
646
- onMaska: q[0] || (q[0] = (x) => R(x, { masked: !0 })),
647
- onChange: q[1] || (q[1] = (x) => h("change", x))
648
- }), null, 16, Vn), [
649
- [t(Dt)],
643
+ onInput: R,
644
+ onChange: q[0] || (q[0] = (oe) => h("change", oe))
645
+ }), null, 16, kn), [
650
646
  [w, t(a).focus]
651
647
  ]),
652
- t(s) ? (n(), $(K, {
648
+ t(l) ? (n(), $(K, {
653
649
  key: 0,
654
650
  icon: t(a).icon || "magnifying-glass",
655
651
  class: W(`
656
- input__icon
657
- input__icon--${t(d)}
658
- `)
652
+ input__icon
653
+ input__icon--${t(d)}
654
+ `)
659
655
  }, null, 8, ["icon", "class"])) : f("", !0),
660
- t(y) ? (n(), i("div", Cn, [
661
- F(hn, null, {
656
+ t(y) ? (n(), i("div", Vn, [
657
+ F(yn, null, {
662
658
  text: m(() => [
663
659
  Q("Copiar")
664
660
  ]),
665
661
  default: m(() => [
666
662
  Z(F(K, {
667
663
  icon: "clipboard",
668
- onClick: q[2] || (q[2] = (x) => t(p)(String(j.modelValue || "")))
664
+ onClick: q[1] || (q[1] = (oe) => t(p)(String(T.modelValue || "")))
669
665
  }, null, 512), [
670
- [ae]
666
+ [le]
671
667
  ])
672
668
  ]),
673
669
  _: 1
@@ -678,10 +674,10 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
678
674
  };
679
675
  }
680
676
  });
681
- const Ie = /* @__PURE__ */ X(In, [["__scopeId", "data-v-3e3e8c77"]]), An = ["value"], On = {
677
+ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["value"], An = {
682
678
  key: 1,
683
679
  value: ""
684
- }, wn = ["value", "data-selected"], Bn = /* @__PURE__ */ U({
680
+ }, On = ["value", "data-selected"], wn = /* @__PURE__ */ U({
685
681
  __name: "aeria-select",
686
682
  props: {
687
683
  modelValue: {},
@@ -695,7 +691,7 @@ const Ie = /* @__PURE__ */ X(In, [["__scopeId", "data-v-3e3e8c77"]]), An = ["val
695
691
  },
696
692
  emits: ["update:modelValue", "change"],
697
693
  setup(c, { emit: u }) {
698
- const e = c, a = u, s = Y(null), l = e.property || {}, r = (d) => {
694
+ const e = c, a = u, l = Y(null), s = e.property || {}, r = (d) => {
699
695
  e.booleanRef && (y.value = d), a("update:modelValue", (d == null ? void 0 : d._id) || d), a("change", (d == null ? void 0 : d._id) || d);
700
696
  }, y = e.booleanRef ? (() => {
701
697
  const d = Y(e.modelValue);
@@ -711,10 +707,10 @@ const Ie = /* @__PURE__ */ X(In, [["__scopeId", "data-v-3e3e8c77"]]), An = ["val
711
707
  }), 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);
712
708
  return e.multiple && ue(() => e.modelValue, (d) => {
713
709
  var v;
714
- if (!s.value)
710
+ if (!l.value)
715
711
  return;
716
- const o = s.value.querySelector('option[data-selected="true"]');
717
- o && o.removeAttribute("data-selected"), (v = s.value.querySelector(`option[value="${d}"]`)) == null || v.setAttribute("data-selected", "true");
712
+ const o = l.value.querySelector('option[data-selected="true"]');
713
+ o && o.removeAttribute("data-selected"), (v = l.value.querySelector(`option[value="${d}"]`)) == null || v.setAttribute("data-selected", "true");
718
714
  }), (d, o) => (n(), i("div", {
719
715
  class: W({
720
716
  select: !0,
@@ -723,7 +719,7 @@ const Ie = /* @__PURE__ */ X(In, [["__scopeId", "data-v-3e3e8c77"]]), An = ["val
723
719
  }, [
724
720
  k("select", G({
725
721
  ref_key: "select",
726
- ref: s,
722
+ ref: l,
727
723
  value: t(y)
728
724
  }, {
729
725
  size: h.value
@@ -734,53 +730,53 @@ const Ie = /* @__PURE__ */ X(In, [["__scopeId", "data-v-3e3e8c77"]]), An = ["val
734
730
  },
735
731
  onChange: o[0] || (o[0] = (v) => r(v.target.value))
736
732
  }), [
737
- t(l).icon ? (n(), $(K, {
733
+ t(s).icon ? (n(), $(K, {
738
734
  key: 0,
739
- icon: t(l).icon
735
+ icon: t(s).icon
740
736
  }, null, 8, ["icon"])) : f("", !0),
741
- e.multiple ? f("", !0) : (n(), i("option", On, g(t(M)("none")), 1)),
742
- (n(!0), i(J, null, H("enum" in t(l) ? t(l).enum : [], (v) => (n(), i("option", {
737
+ e.multiple ? f("", !0) : (n(), i("option", An, g(t(M)("none")), 1)),
738
+ (n(!0), i(J, null, H("enum" in t(s) ? t(s).enum : [], (v) => (n(), i("option", {
743
739
  key: v,
744
740
  value: v,
745
741
  "data-selected": p(v)
746
- }, g(t(l).translate ? t(M)(v) : v), 9, wn))), 128)),
742
+ }, g(t(s).translate ? t(M)(v) : v), 9, On))), 128)),
747
743
  V(d.$slots, "default", {}, void 0, !0)
748
- ], 16, An)
744
+ ], 16, In)
749
745
  ], 2));
750
746
  }
751
747
  });
752
- const He = /* @__PURE__ */ X(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { class: "pagination" }, jn = ["value"], Tn = { class: "pagination__control" }, Ln = { class: "pagination__page-input" }, Rn = /* @__PURE__ */ U({
748
+ 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({
753
749
  __name: "aeria-pagination",
754
750
  props: {
755
751
  pagination: {}
756
752
  },
757
753
  emits: ["paginate"],
758
754
  setup(c, { emit: u }) {
759
- const e = c, a = u, s = D({
755
+ const e = c, a = u, l = D({
760
756
  get: () => Math.floor(e.pagination.offset / e.pagination.limit),
761
757
  set: (h) => {
762
758
  e.pagination.offset = h * e.pagination.limit;
763
759
  }
764
- }), l = D({
760
+ }), s = D({
765
761
  get: () => e.pagination.limit,
766
762
  set: (h) => {
767
763
  e.pagination.limit = Number(h);
768
764
  }
769
- }), r = Y(s.value ? s.value + 1 : 1), y = D(() => Math.ceil(e.pagination.recordsTotal / e.pagination.limit)), p = (h) => {
770
- s.value = h === "previous" ? s.value - 1 : s.value + 1;
765
+ }), r = Y(l.value ? l.value + 1 : 1), y = D(() => Math.ceil(e.pagination.recordsTotal / e.pagination.limit)), p = (h) => {
766
+ l.value = h === "previous" ? l.value - 1 : l.value + 1;
771
767
  };
772
768
  return ue([
773
- s,
774
- l
769
+ l,
770
+ s
775
771
  ], ([h]) => {
776
772
  r.value = h + 1, a("paginate", {
777
- offset: s.value * l.value,
778
- limit: l.value
773
+ offset: l.value * s.value,
774
+ limit: s.value
779
775
  });
780
- }), (h, d) => (n(), i("div", Sn, [
776
+ }), (h, d) => (n(), i("div", Bn, [
781
777
  F(He, {
782
- modelValue: l.value,
783
- "onUpdate:modelValue": d[0] || (d[0] = (o) => l.value = o),
778
+ modelValue: s.value,
779
+ "onUpdate:modelValue": d[0] || (d[0] = (o) => s.value = o),
784
780
  property: {
785
781
  enum: [],
786
782
  icon: "list"
@@ -791,13 +787,13 @@ const He = /* @__PURE__ */ X(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { cla
791
787
  (n(!0), i(J, null, H(t(St), (o) => (n(), i("option", {
792
788
  key: `limit-${o}`,
793
789
  value: o
794
- }, g(o), 9, jn))), 128))
790
+ }, g(o), 9, Sn))), 128))
795
791
  ]),
796
792
  _: 1
797
793
  }, 8, ["modelValue"]),
798
- k("div", Tn, [
794
+ k("div", jn, [
799
795
  F(me, {
800
- onClick: d[1] || (d[1] = (o) => s.value = 0)
796
+ onClick: d[1] || (d[1] = (o) => l.value = 0)
801
797
  }, {
802
798
  default: m(() => [
803
799
  F(K, {
@@ -808,7 +804,7 @@ const He = /* @__PURE__ */ X(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { cla
808
804
  _: 1
809
805
  }),
810
806
  F(me, {
811
- disabled: s.value === 0,
807
+ disabled: l.value === 0,
812
808
  onClick: d[2] || (d[2] = (o) => p("previous"))
813
809
  }, {
814
810
  default: m(() => [
@@ -819,9 +815,9 @@ const He = /* @__PURE__ */ X(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { cla
819
815
  ]),
820
816
  _: 1
821
817
  }, 8, ["disabled"]),
822
- k("div", Ln, [
818
+ k("div", Tn, [
823
819
  (n(), $(Ie, {
824
- key: s.value,
820
+ key: l.value,
825
821
  modelValue: r.value,
826
822
  "onUpdate:modelValue": d[3] || (d[3] = (o) => r.value = o),
827
823
  property: {
@@ -829,13 +825,13 @@ const He = /* @__PURE__ */ X(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { cla
829
825
  minimum: 1
830
826
  },
831
827
  onChange: d[4] || (d[4] = (o) => {
832
- s.value = r.value === 0 ? 0 : r.value - 1;
828
+ l.value = r.value === 0 ? 0 : r.value - 1;
833
829
  })
834
830
  }, null, 8, ["modelValue"])),
835
831
  k("span", null, g(t(M)("of")) + " " + g(y.value), 1)
836
832
  ]),
837
833
  F(me, {
838
- disabled: s.value === y.value - 1,
834
+ disabled: l.value === y.value - 1,
839
835
  onClick: d[5] || (d[5] = (o) => p("next"))
840
836
  }, {
841
837
  default: m(() => [
@@ -847,7 +843,7 @@ const He = /* @__PURE__ */ X(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { cla
847
843
  _: 1
848
844
  }, 8, ["disabled"]),
849
845
  F(me, {
850
- onClick: d[6] || (d[6] = (o) => s.value = y.value - 1)
846
+ onClick: d[6] || (d[6] = (o) => l.value = y.value - 1)
851
847
  }, {
852
848
  default: m(() => [
853
849
  F(K, {
@@ -861,10 +857,10 @@ const He = /* @__PURE__ */ X(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { cla
861
857
  ]));
862
858
  }
863
859
  });
864
- const zn = /* @__PURE__ */ X(Rn, [["__scopeId", "data-v-7b3fd4da"]]), Fn = { class: "checkbox__text" }, Mn = ["innerHTML"], qn = { class: "checkbox__hint" }, Un = ["innerHTML"], En = {
860
+ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), zn = { class: "checkbox__text" }, Fn = ["innerHTML"], Mn = { class: "checkbox__hint" }, qn = ["innerHTML"], Un = {
865
861
  inheritAttrs: !1
866
- }, Hn = /* @__PURE__ */ U({
867
- ...En,
862
+ }, En = /* @__PURE__ */ U({
863
+ ...Un,
868
864
  __name: "aeria-checkbox",
869
865
  props: {
870
866
  modelValue: {},
@@ -877,10 +873,10 @@ const zn = /* @__PURE__ */ X(Rn, [["__scopeId", "data-v-7b3fd4da"]]), Fn = { cla
877
873
  },
878
874
  emits: ["update:modelValue", "change"],
879
875
  setup(c, { emit: u }) {
880
- const e = c, a = e.property || {}, s = !("enum" in a) && [
876
+ const e = c, a = e.property || {}, l = !("enum" in a) && [
881
877
  "array",
882
878
  "boolean"
883
- ].includes(a.type) ? "checkbox" : "radio", l = u, r = e.value || !1, y = D({
879
+ ].includes(a.type) ? "checkbox" : "radio", s = u, r = e.value || !1, y = D({
884
880
  get: () => {
885
881
  var p;
886
882
  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;
@@ -889,17 +885,17 @@ const zn = /* @__PURE__ */ X(Rn, [["__scopeId", "data-v-7b3fd4da"]]), Fn = { cla
889
885
  var p;
890
886
  if (!a.readOnly) {
891
887
  if ("type" in a && a.type === "boolean") {
892
- l("update:modelValue", !e.modelValue);
888
+ s("update:modelValue", !e.modelValue);
893
889
  return;
894
890
  }
895
891
  if ("items" in a) {
896
- l("update:modelValue", (p = e.modelValue) != null && p.includes(r) ? e.modelValue.filter((h) => h !== r) : [
892
+ s("update:modelValue", (p = e.modelValue) != null && p.includes(r) ? e.modelValue.filter((h) => h !== r) : [
897
893
  ...e.modelValue || [],
898
894
  r
899
895
  ]);
900
896
  return;
901
897
  }
902
- l("update:modelValue", e.value);
898
+ s("update:modelValue", e.value);
903
899
  }
904
900
  }
905
901
  });
@@ -914,24 +910,24 @@ const zn = /* @__PURE__ */ X(Rn, [["__scopeId", "data-v-7b3fd4da"]]), Fn = { cla
914
910
  Z(k("input", G({
915
911
  "onUpdate:modelValue": h[0] || (h[0] = (o) => y.value = o)
916
912
  }, {
917
- type: t(s),
913
+ type: t(l),
918
914
  readOnly: t(a).readOnly,
919
915
  checked: y.value
920
916
  }, { class: "checkbox__input" }), null, 16), [
921
917
  [bt, y.value]
922
918
  ]),
923
- Z((n(), i("div", Fn, [
919
+ Z((n(), i("div", zn, [
924
920
  k("div", null, [
925
921
  p.$slots.description ? V(p.$slots, "description", { key: 0 }, void 0, !0) : t(r) ? (n(), i("div", {
926
922
  key: 1,
927
923
  innerHTML: t(a).translate ? t(M)(t(r)) : t(r)
928
- }, null, 8, Mn)) : V(p.$slots, "default", { key: 2 }, void 0, !0)
924
+ }, null, 8, Fn)) : V(p.$slots, "default", { key: 2 }, void 0, !0)
929
925
  ]),
930
- k("div", qn, [
926
+ k("div", Mn, [
931
927
  p.$slots.hint ? V(p.$slots, "hint", { key: 0 }, void 0, !0) : t(a).hint ? (n(), i("div", {
932
928
  key: 1,
933
929
  innerHTML: t(a).hint
934
- }, null, 8, Un)) : f("", !0)
930
+ }, null, 8, qn)) : f("", !0)
935
931
  ])
936
932
  ])), [
937
933
  [d]
@@ -940,10 +936,10 @@ const zn = /* @__PURE__ */ X(Rn, [["__scopeId", "data-v-7b3fd4da"]]), Fn = { cla
940
936
  };
941
937
  }
942
938
  });
943
- const Dn = /* @__PURE__ */ X(Hn, [["__scopeId", "data-v-c0ec1e4a"]]), Qn = {
939
+ const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-c0ec1e4a"]]), Dn = {
944
940
  inheritAttrs: !1
945
- }, Gn = /* @__PURE__ */ U({
946
- ...Qn,
941
+ }, Qn = /* @__PURE__ */ U({
942
+ ...Dn,
947
943
  __name: "aeria-options",
948
944
  props: {
949
945
  modelValue: {},
@@ -955,7 +951,7 @@ const Dn = /* @__PURE__ */ X(Hn, [["__scopeId", "data-v-c0ec1e4a"]]), Qn = {
955
951
  },
956
952
  emits: ["update:modelValue"],
957
953
  setup(c, { emit: u }) {
958
- const e = c, a = u, s = "items" in e.property ? e.property.items.enum : e.property.enum, l = (r) => {
954
+ const e = c, a = u, l = "items" in e.property ? e.property.items.enum : e.property.enum, s = (r) => {
959
955
  a("update:modelValue", r);
960
956
  };
961
957
  return mt(() => {
@@ -970,25 +966,25 @@ const Dn = /* @__PURE__ */ X(Hn, [["__scopeId", "data-v-c0ec1e4a"]]), Qn = {
970
966
  grid-template-columns: repeat(var(--columns), 1fr);
971
967
  `)
972
968
  }, [
973
- (n(!0), i(J, null, H(t(s), (p) => (n(), i("div", {
969
+ (n(!0), i(J, null, H(t(l), (p) => (n(), i("div", {
974
970
  key: `option-${p}`,
975
971
  class: "options__checkbox"
976
972
  }, [
977
- F(Dn, G({
973
+ F(Hn, G({
978
974
  value: p,
979
975
  property: r.property
980
976
  }, {
981
977
  "model-value": r.modelValue,
982
- "onUpdate:modelValue": l
978
+ "onUpdate:modelValue": s
983
979
  }), null, 16, ["model-value"])
984
980
  ]))), 128))
985
981
  ], 4));
986
982
  }
987
983
  });
988
- const Wn = /* @__PURE__ */ X(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) => (qe("data-v-30f5a5ca"), c = c(), Ue(), c), Yn = { class: "switch-wrapper" }, Jn = /* @__PURE__ */ Xn(() => /* @__PURE__ */ k("div", { class: "switch__slider" }, null, -1)), Kn = { key: 1 }, Zn = {
984
+ 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 = {
989
985
  inheritAttrs: !1
990
- }, Pn = /* @__PURE__ */ U({
991
- ...Zn,
986
+ }, Zn = /* @__PURE__ */ U({
987
+ ...Kn,
992
988
  __name: "aeria-switch",
993
989
  props: {
994
990
  modelValue: {},
@@ -999,21 +995,21 @@ const Wn = /* @__PURE__ */ X(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) =
999
995
  },
1000
996
  emits: ["update:modelValue", "change"],
1001
997
  setup(c, { emit: u }) {
1002
- const e = c, a = u, s = e.property || {}, l = () => {
1003
- s.readOnly || (a("change", !e.modelValue), a("update:modelValue", !e.modelValue));
998
+ const e = c, a = u, l = e.property || {}, s = () => {
999
+ l.readOnly || (a("change", !e.modelValue), a("update:modelValue", !e.modelValue));
1004
1000
  };
1005
1001
  return (r, y) => {
1006
1002
  const p = N("clickable");
1007
- return n(), i("div", Yn, [
1003
+ return n(), i("div", Xn, [
1008
1004
  Z((n(), i("a", {
1009
1005
  class: W(`
1010
1006
  switch
1011
1007
  ${r.modelValue && "switch--active"}
1012
- ${t(s).readOnly && "switch--readOnly"}
1008
+ ${t(l).readOnly && "switch--readOnly"}
1013
1009
  `),
1014
- onClick: Fe(l, ["stop"])
1010
+ onClick: Fe(s, ["stop"])
1015
1011
  }, [
1016
- Jn,
1012
+ Yn,
1017
1013
  k("div", {
1018
1014
  class: W(`
1019
1015
  switch__dummy
@@ -1022,28 +1018,28 @@ const Wn = /* @__PURE__ */ X(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) =
1022
1018
  }, null, 2)
1023
1019
  ], 2)), [
1024
1020
  [p, {
1025
- blocked: t(s).readOnly
1021
+ blocked: t(l).readOnly
1026
1022
  }]
1027
1023
  ]),
1028
- r.$slots.default ? V(r.$slots, "default", { key: 0 }, void 0, !0) : (n(), i("div", Kn, g(t(s).description || r.propertyName), 1))
1024
+ r.$slots.default ? V(r.$slots, "default", { key: 0 }, void 0, !0) : (n(), i("div", Jn, g(t(l).description || r.propertyName), 1))
1029
1025
  ]);
1030
1026
  };
1031
1027
  }
1032
1028
  });
1033
- const Nn = /* @__PURE__ */ X(Pn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) => (qe("data-v-ecfb1379"), c = c(), Ue(), c), xn = { class: "picture" }, eo = {
1029
+ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) => (qe("data-v-ecfb1379"), c = c(), Ue(), c), Nn = { class: "picture" }, xn = {
1034
1030
  key: 0,
1035
1031
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1036
- }, to = ["src"], no = {
1032
+ }, eo = ["src"], to = {
1037
1033
  key: 0,
1038
1034
  class: "picture__meta"
1039
- }, oo = ["src"], ao = /* @__PURE__ */ yt(() => /* @__PURE__ */ k("line", {
1035
+ }, no = ["src"], oo = /* @__PURE__ */ yt(() => /* @__PURE__ */ k("line", {
1040
1036
  x1: "0",
1041
1037
  y1: "0",
1042
1038
  x2: "200",
1043
1039
  y2: "200",
1044
1040
  stroke: "#000",
1045
1041
  "vector-effect": "non-scaling-stroke"
1046
- }, null, -1)), so = /* @__PURE__ */ yt(() => /* @__PURE__ */ k("line", {
1042
+ }, null, -1)), ao = /* @__PURE__ */ yt(() => /* @__PURE__ */ k("line", {
1047
1043
  x1: "200",
1048
1044
  y1: "0",
1049
1045
  x2: "0",
@@ -1051,9 +1047,9 @@ const Nn = /* @__PURE__ */ X(Pn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
1051
1047
  stroke: "#000",
1052
1048
  "vector-effect": "non-scaling-stroke"
1053
1049
  }, null, -1)), lo = [
1054
- ao,
1055
- so
1056
- ], io = { key: 5 }, ro = /* @__PURE__ */ U({
1050
+ oo,
1051
+ ao
1052
+ ], so = { key: 5 }, io = /* @__PURE__ */ U({
1057
1053
  __name: "aeria-picture",
1058
1054
  props: {
1059
1055
  url: {},
@@ -1068,24 +1064,24 @@ const Nn = /* @__PURE__ */ X(Pn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
1068
1064
  },
1069
1065
  setup(c) {
1070
1066
  const u = c, e = D(() => u.fileId ? `${ft}/file/${u.fileId}/picture` : u.url || u.modelValue), a = Y(!1);
1071
- return (s, l) => {
1067
+ return (l, s) => {
1072
1068
  var y;
1073
1069
  const r = N("overlay");
1074
- return n(), i("figure", xn, [
1070
+ return n(), i("figure", Nn, [
1075
1071
  e.value ? (n(), $(We, {
1076
1072
  key: 0,
1077
1073
  to: "main"
1078
1074
  }, [
1079
- a.value ? Z((n(), i("div", eo, [
1075
+ a.value ? Z((n(), i("div", xn, [
1080
1076
  k("img", {
1081
1077
  src: e.value,
1082
1078
  style: `
1083
1079
  max-height: 60vh;
1084
1080
  object-fit: contain;
1085
1081
  `,
1086
- onClick: l[0] || (l[0] = (p) => a.value = !0)
1087
- }, null, 8, to),
1088
- (y = s.meta) != null && y.owner ? (n(), i("div", no, " Criado por " + g(s.meta.owner.name) + " em " + g(s.formatDateTime(s.meta.created_at, { hours: !0 })), 1)) : f("", !0)
1082
+ onClick: s[0] || (s[0] = (p) => a.value = !0)
1083
+ }, null, 8, eo),
1084
+ (y = l.meta) != null && y.owner ? (n(), i("div", to, " Criado por " + g(l.meta.owner.name) + " em " + g(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : f("", !0)
1089
1085
  ])), [
1090
1086
  [r, {
1091
1087
  click: () => {
@@ -1099,45 +1095,45 @@ const Nn = /* @__PURE__ */ X(Pn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
1099
1095
  src: e.value,
1100
1096
  class: W(`
1101
1097
  picture__image
1102
- ${s.bordered && "picture__image--bordered"}
1103
- ${s.expandable && "picture__image--expandable"}
1098
+ ${l.bordered && "picture__image--bordered"}
1099
+ ${l.expandable && "picture__image--expandable"}
1104
1100
  `),
1105
1101
  style: he(`
1106
- object-fit: ${s.objectFit || "cover"};
1107
- width: ${s.width || "100%"};
1108
- height: ${s.height || "100%"};
1102
+ object-fit: ${l.objectFit || "cover"};
1103
+ width: ${l.width || "100%"};
1104
+ height: ${l.height || "100%"};
1109
1105
  `),
1110
- onClick: l[1] || (l[1] = () => {
1111
- s.expandable && (a.value = !0);
1106
+ onClick: s[1] || (s[1] = () => {
1107
+ l.expandable && (a.value = !0);
1112
1108
  })
1113
- }, null, 14, oo)) : 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", {
1109
+ }, null, 14, no)) : l.$slots.fallback ? V(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? V(l.$slots, "default", { key: 3 }, void 0, !0) : (n(), i("svg", {
1114
1110
  key: 4,
1115
1111
  class: W(["picture__background", `
1116
- ${s.bordered && "picture__image--bordered"}
1112
+ ${l.bordered && "picture__image--bordered"}
1117
1113
  `]),
1118
1114
  xmlns: "http://www.w3.org/2000/svg",
1119
1115
  viewBox: "0 0 200 200",
1120
1116
  preserveAspectRatio: "none",
1121
1117
  style: he(`
1122
- object-fit: ${s.objectFit || "cover"};
1123
- width: ${s.width || "100%"};
1124
- height: ${s.height || "100%"};
1118
+ object-fit: ${l.objectFit || "cover"};
1119
+ width: ${l.width || "100%"};
1120
+ height: ${l.height || "100%"};
1125
1121
  `)
1126
1122
  }, lo, 6)),
1127
- s.$slots.caption ? (n(), i("figcaption", io, [
1128
- V(s.$slots, "caption", {}, void 0, !0)
1123
+ l.$slots.caption ? (n(), i("figcaption", so, [
1124
+ V(l.$slots, "caption", {}, void 0, !0)
1129
1125
  ])) : f("", !0)
1130
1126
  ]);
1131
1127
  };
1132
1128
  }
1133
1129
  });
1134
- const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { class: "file" }, co = { key: 0 }, po = ["href"], _o = { class: "file__actions" }, mo = ["accept"], fo = {
1130
+ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { class: "file" }, uo = { key: 0 }, co = ["href"], po = { class: "file__actions" }, _o = ["accept"], mo = {
1135
1131
  key: 0,
1136
1132
  class: "file__buttons"
1137
- }, vo = {
1133
+ }, fo = {
1138
1134
  key: 1,
1139
1135
  class: "file__buttons"
1140
- }, yo = /* @__PURE__ */ U({
1136
+ }, vo = /* @__PURE__ */ U({
1141
1137
  __name: "aeria-file",
1142
1138
  props: {
1143
1139
  modelValue: {},
@@ -1150,7 +1146,7 @@ const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { cla
1150
1146
  },
1151
1147
  emits: ["update:modelValue", "update:content", "change"],
1152
1148
  setup(c, { emit: u }) {
1153
- const e = c, a = u, l = Le() ? ge() : null, r = Y(null), y = D(() => {
1149
+ const e = c, a = u, s = Le() ? ge() : null, r = Y(null), y = D(() => {
1154
1150
  var b;
1155
1151
  return r.value ? URL.createObjectURL(r.value) : (b = e.modelValue) == null ? void 0 : b.link;
1156
1152
  }), p = D(() => {
@@ -1164,8 +1160,8 @@ const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { cla
1164
1160
  }, o = async (b) => {
1165
1161
  r.value = b.target.files[0];
1166
1162
  const C = r.value, R = await h(C);
1167
- if (l) {
1168
- const { data: j } = await jt(`${ft}/${l.$id}/upload?filename=${C.name}`, R, {
1163
+ if (s) {
1164
+ const { data: T } = await jt(`${ft}/${s.$id}/upload?filename=${C.name}`, R, {
1169
1165
  params: {
1170
1166
  method: "POST",
1171
1167
  headers: {
@@ -1174,38 +1170,38 @@ const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { cla
1174
1170
  }
1175
1171
  }
1176
1172
  });
1177
- a("update:modelValue", j);
1173
+ a("update:modelValue", T);
1178
1174
  }
1179
1175
  a("update:content", R), a("change", R);
1180
1176
  }, v = async () => {
1181
1177
  a("update:modelValue", null);
1182
1178
  };
1183
1179
  return (b, C) => {
1184
- var R, j, q, w, ae, x;
1185
- return n(), i("div", uo, [
1186
- r.value || (R = b.modelValue) != null && R._id ? (n(), i("div", co, [
1180
+ var R, T, q, w, le, oe;
1181
+ return n(), i("div", ro, [
1182
+ r.value || (R = b.modelValue) != null && R._id ? (n(), i("div", uo, [
1187
1183
  p.value ? (n(), $(Me, {
1188
1184
  key: 0,
1189
1185
  modelValue: y.value,
1190
1186
  "onUpdate:modelValue": C[0] || (C[0] = (S) => y.value = S),
1191
1187
  class: W(`
1192
1188
  file__image
1193
- ${!t(l) || ((j = b.modelValue) == null ? void 0 : j._id) || "file__image--unsent"}
1189
+ ${!t(s) || ((T = b.modelValue) == null ? void 0 : T._id) || "file__image--unsent"}
1194
1190
  `)
1195
1191
  }, null, 8, ["modelValue", "class"])) : f("", !0),
1196
1192
  (q = b.modelValue) != null && q._id ? (n(), i("a", {
1197
1193
  key: 1,
1198
1194
  href: b.modelValue.download_link
1199
- }, g(b.modelValue.filename), 9, po)) : f("", !0)
1195
+ }, g(b.modelValue.filename), 9, co)) : f("", !0)
1200
1196
  ])) : f("", !0),
1201
- k("div", _o, [
1197
+ k("div", po, [
1202
1198
  k("input", {
1203
1199
  ref: "file",
1204
1200
  type: "file",
1205
- accept: (ae = (w = b.property) == null ? void 0 : w.accept) == null ? void 0 : ae.join(","),
1201
+ accept: (le = (w = b.property) == null ? void 0 : w.accept) == null ? void 0 : le.join(","),
1206
1202
  onChange: o
1207
- }, null, 40, mo),
1208
- r.value ? (n(), i("div", fo, [
1203
+ }, null, 40, _o),
1204
+ r.value ? (n(), i("div", mo, [
1209
1205
  F(re, {
1210
1206
  small: "",
1211
1207
  onClick: Fe(d, ["prevent"])
@@ -1215,7 +1211,7 @@ const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { cla
1215
1211
  ]),
1216
1212
  _: 1
1217
1213
  })
1218
- ])) : (x = b.modelValue) != null && x._id ? (n(), i("div", vo, [
1214
+ ])) : (oe = b.modelValue) != null && oe._id ? (n(), i("div", fo, [
1219
1215
  F(re, {
1220
1216
  small: "",
1221
1217
  onClick: Fe(v, ["prevent"])
@@ -1231,37 +1227,37 @@ const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { cla
1231
1227
  };
1232
1228
  }
1233
1229
  });
1234
- const ho = /* @__PURE__ */ X(yo, [["__scopeId", "data-v-f3848c9a"]]), $o = { class: "container" }, bo = {
1230
+ const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-f3848c9a"]]), ho = { class: "container" }, $o = {
1235
1231
  key: 1,
1236
1232
  class: "container__footer"
1237
- }, go = /* @__PURE__ */ U({
1233
+ }, bo = /* @__PURE__ */ U({
1238
1234
  __name: "aeria-search-container",
1239
1235
  props: {
1240
1236
  observeScroll: { type: Boolean }
1241
1237
  },
1242
1238
  emits: ["endReached"],
1243
1239
  setup(c, { emit: u }) {
1244
- const e = c, a = u, s = Y(null), l = e.observeScroll ? Xe(s, {
1240
+ const e = c, a = u, l = Y(null), s = e.observeScroll ? Xe(l, {
1245
1241
  antecipate: 100
1246
1242
  }).reachedEnd : null;
1247
- return l !== null && ue(l, (r) => {
1243
+ return s !== null && ue(s, (r) => {
1248
1244
  r && a("endReached", r);
1249
- }), (r, y) => (n(), i("div", $o, [
1245
+ }), (r, y) => (n(), i("div", ho, [
1250
1246
  r.$slots.default ? (n(), i("div", {
1251
1247
  key: 0,
1252
1248
  ref_key: "containerEl",
1253
- ref: s,
1249
+ ref: l,
1254
1250
  class: "container__content"
1255
1251
  }, [
1256
1252
  V(r.$slots, "default", {}, void 0, !0)
1257
1253
  ], 512)) : f("", !0),
1258
- r.$slots.footer ? (n(), i("div", bo, [
1254
+ r.$slots.footer ? (n(), i("div", $o, [
1259
1255
  V(r.$slots, "footer", {}, void 0, !0)
1260
1256
  ])) : f("", !0)
1261
1257
  ]));
1262
1258
  }
1263
1259
  });
1264
- const it = /* @__PURE__ */ X(go, [["__scopeId", "data-v-193f9eed"]]), ko = { class: "item__values" }, Vo = /* @__PURE__ */ U({
1260
+ const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { class: "item__values" }, ko = /* @__PURE__ */ U({
1265
1261
  __name: "aeria-search-item",
1266
1262
  props: {
1267
1263
  item: {},
@@ -1271,16 +1267,16 @@ const it = /* @__PURE__ */ X(go, [["__scopeId", "data-v-193f9eed"]]), ko = { cla
1271
1267
  },
1272
1268
  emits: ["update:modelValue", "change"],
1273
1269
  setup(c, { emit: u }) {
1274
- 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 = () => {
1270
+ const e = c, a = u, l = e.property, s = 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 = () => {
1275
1271
  if (y.value)
1276
1272
  return;
1277
- 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;
1273
+ 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;
1278
1274
  a("update:modelValue", Array.isArray(o) ? [
1279
1275
  ...o,
1280
1276
  e.item
1281
1277
  ] : e.item), a("change", e.item);
1282
1278
  }, h = async (d) => {
1283
- if (l.purge && (d != null && d.purge)) {
1279
+ if (s.purge && (d != null && d.purge)) {
1284
1280
  const { _id: v } = e.item;
1285
1281
  await r.$actions.remove({
1286
1282
  filters: {
@@ -1292,7 +1288,7 @@ const it = /* @__PURE__ */ X(go, [["__scopeId", "data-v-193f9eed"]]), ko = { cla
1292
1288
  const v = [...e.modelValue], b = v.findIndex((C) => C._id === e.item._id);
1293
1289
  return v.splice(b, 1), v;
1294
1290
  };
1295
- a("update:modelValue", "items" in s ? o() : null);
1291
+ a("update:modelValue", "items" in l ? o() : null);
1296
1292
  };
1297
1293
  return (d, o) => {
1298
1294
  const v = N("clickable");
@@ -1304,7 +1300,7 @@ const it = /* @__PURE__ */ X(go, [["__scopeId", "data-v-193f9eed"]]), ko = { cla
1304
1300
  onClick: o[0] || (o[0] = (b) => y.value ? h() : p())
1305
1301
  }, [
1306
1302
  V(d.$slots, "default", {}, void 0, !0),
1307
- k("div", ko, [
1303
+ k("div", go, [
1308
1304
  (n(!0), i(J, null, H(d.indexes, (b, C) => (n(), i("div", {
1309
1305
  key: `index-${d.item._id}-${C}`,
1310
1306
  class: "item__value"
@@ -1316,10 +1312,10 @@ const it = /* @__PURE__ */ X(go, [["__scopeId", "data-v-193f9eed"]]), ko = { cla
1316
1312
  };
1317
1313
  }
1318
1314
  });
1319
- const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { class: "search__panel" }, Io = { class: "search__input" }, Ao = ["value"], Oo = { style: { flex: "1" } }, wo = { key: 1 }, Bo = { key: 0 }, So = { key: 1 }, jo = { class: "search__summary" }, To = {
1315
+ 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 = {
1320
1316
  key: 1,
1321
1317
  class: "search"
1322
- }, Lo = { key: 0 }, ze = 10, Ro = /* @__PURE__ */ U({
1318
+ }, To = { key: 0 }, ze = 10, Lo = /* @__PURE__ */ U({
1323
1319
  __name: "aeria-search",
1324
1320
  props: {
1325
1321
  modelValue: {},
@@ -1332,21 +1328,21 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1332
1328
  },
1333
1329
  emits: ["update:modelValue", "change", "update:panel"],
1334
1330
  setup(c, { emit: u }) {
1335
- 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
+ const e = c, a = pe(e.property), l = e.panel !== void 0 ? D(() => e.panel) : Y(!1), s = u, r = ce(pe(e.property).$ref), y = Le(), p = y ? ge() : null, h = a.indexes;
1336
1332
  ve(Ee, pe(e.property).$ref), ve("innerInputLabel", !0), ve("omitInputLabels", !0);
1337
1333
  const d = Y(e.modelValue), o = Y({
1338
1334
  data: [],
1339
1335
  pagination: {}
1340
- }), v = D(() => o.value.data), b = D(() => o.value.pagination), C = Y(0), R = Y(h[0]), j = Y(!1), q = Y({}), w = () => {
1336
+ }), v = D(() => o.value.data), b = D(() => o.value.pagination), C = Y(0), R = Y(h[0]), T = Y(!1), q = Y({}), w = () => {
1341
1337
  const I = {};
1342
1338
  if (y) {
1343
1339
  const L = je(y) ? y.value : y;
1344
1340
  I[L] = p;
1345
1341
  }
1346
1342
  return a.constraints ? qt(a.constraints, I) : {};
1347
- }, ae = () => {
1343
+ }, le = () => {
1348
1344
  v.value.length < b.value.recordsTotal && (C.value += 1, S());
1349
- }, x = async () => Object.values(q.value).every((I) => !(String(I).length > 0)) ? r.$actions.custom("getAll", {
1345
+ }, oe = async () => Object.values(q.value).every((I) => !(String(I).length > 0)) ? r.$actions.custom("getAll", {
1350
1346
  limit: ze,
1351
1347
  offset: C.value * ze,
1352
1348
  filters: w()
@@ -1368,33 +1364,33 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1368
1364
  }), S = async () => {
1369
1365
  if (r.loading.getAll)
1370
1366
  return;
1371
- const I = await x();
1367
+ const I = await oe();
1372
1368
  o.value.pagination = I.pagination, C.value === 0 && o.value.data.splice(0), o.value.data.push(...I.data);
1373
- }, [ee] = vt({
1369
+ }, [x] = vt({
1374
1370
  delay: 800
1375
1371
  })(() => {
1376
- C.value = 0, S(), j.value = !1;
1372
+ C.value = 0, S(), T.value = !1;
1377
1373
  }), O = () => {
1378
- j.value = !0, ee();
1374
+ T.value = !0, x();
1379
1375
  }, z = () => {
1380
- "effect" in s ? l("update:panel", !0) : s.value = !0, S();
1381
- }, te = () => {
1382
- C.value = 0, o.value.data.splice(0), "effect" in s ? l("update:panel", !1) : s.value = !1;
1383
- }, oe = D(() => !Object.values(q.value).some((I) => !!I));
1384
- ue(oe, (I, L) => {
1376
+ "effect" in l ? s("update:panel", !0) : l.value = !0, S();
1377
+ }, ee = () => {
1378
+ C.value = 0, o.value.data.splice(0), "effect" in l ? s("update:panel", !1) : l.value = !1;
1379
+ }, ne = D(() => !Object.values(q.value).some((I) => !!I));
1380
+ ue(ne, (I, L) => {
1385
1381
  I && !L && S();
1386
1382
  }), gt(() => {
1387
1383
  e.selectOnly && S();
1388
1384
  });
1389
1385
  const _ = (I) => {
1390
- d.value = I, e.selectOnly || l("update:modelValue", I);
1386
+ d.value = I, e.selectOnly || s("update:modelValue", I);
1391
1387
  }, E = () => {
1392
- te(), l("update:modelValue", d.value);
1388
+ ee(), s("update:modelValue", d.value);
1393
1389
  };
1394
1390
  return (I, L) => {
1395
1391
  const A = N("clickable");
1396
1392
  return n(), i("div", null, [
1397
- t(s) ? (n(), $(We, {
1393
+ t(l) ? (n(), $(We, {
1398
1394
  key: 0,
1399
1395
  to: "main"
1400
1396
  }, [
@@ -1403,10 +1399,10 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1403
1399
  "close-hint": "",
1404
1400
  title: `${t(M)("action.select", { capitalize: !0 })} ${t(M)(I.propertyName)}`,
1405
1401
  "overlay-layer": 65,
1406
- "model-value": t(s),
1402
+ "model-value": t(l),
1407
1403
  style: { "--panel-max-width": "36rem" },
1408
- onClose: te,
1409
- onOverlayClick: te
1404
+ onClose: ee,
1405
+ onOverlayClick: ee
1410
1406
  }, {
1411
1407
  footer: m(() => [
1412
1408
  F(re, {
@@ -1420,10 +1416,10 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1420
1416
  })
1421
1417
  ]),
1422
1418
  default: m(() => {
1423
- var T, ne;
1419
+ var j, te;
1424
1420
  return [
1425
- k("div", Co, [
1426
- k("div", Io, [
1421
+ k("div", Vo, [
1422
+ k("div", Co, [
1427
1423
  t(h).length > 1 ? (n(), $(He, {
1428
1424
  key: 0,
1429
1425
  modelValue: R.value,
@@ -1434,11 +1430,11 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1434
1430
  (n(!0), i(J, null, H(t(h), (B) => (n(), i("option", {
1435
1431
  key: `searchfield-${B}`,
1436
1432
  value: B
1437
- }, g(t(M)(B)), 9, Ao))), 128))
1433
+ }, g(t(M)(B)), 9, Io))), 128))
1438
1434
  ]),
1439
1435
  _: 1
1440
1436
  }, 8, ["modelValue"])) : f("", !0),
1441
- k("div", Oo, [
1437
+ k("div", Ao, [
1442
1438
  (n(), $(Ie, {
1443
1439
  key: `field-${R.value}`,
1444
1440
  modelValue: q.value[R.value],
@@ -1454,7 +1450,7 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1454
1450
  v.value.length ? (n(), $(it, {
1455
1451
  key: 0,
1456
1452
  "observe-scroll": "",
1457
- onEndReached: ae
1453
+ onEndReached: le
1458
1454
  }, {
1459
1455
  default: m(() => [
1460
1456
  (n(!0), i(J, null, H(v.value, (B) => (n(), $(Qe, G({
@@ -1464,21 +1460,21 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1464
1460
  }, {
1465
1461
  key: `matching-${B._id}`,
1466
1462
  modelValue: d.value,
1467
- "onUpdate:modelValue": L[3] || (L[3] = (se) => d.value = se)
1463
+ "onUpdate:modelValue": L[3] || (L[3] = (ae) => d.value = ae)
1468
1464
  }), null, 16, ["modelValue"]))), 128))
1469
1465
  ]),
1470
1466
  _: 1
1471
- })) : (n(), i("div", wo, [
1472
- j.value ? (n(), i("div", Bo, g(t(M)("searching_ellipsis", { capitalize: !0 })), 1)) : !t(r).loading.getAll && Object.values(q.value).filter((B) => !!B).length > 0 && !("items" in I.property && ((T = I.modelValue) != null && T.length) || !Array.isArray(I.modelValue) && ((ne = I.modelValue) != null && ne._id)) ? (n(), i("div", So, g(t(M)("no_results", { capitalize: !0 })), 1)) : f("", !0)
1467
+ })) : (n(), i("div", Oo, [
1468
+ T.value ? (n(), i("div", wo, g(t(M)("searching_ellipsis", { 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)
1473
1469
  ]))
1474
1470
  ]),
1475
- k("div", jo, g(t(M)("showing", { capitalize: !0 })) + " " + g(v.value.length) + " " + g(t(M)("of")) + " " + g(b.value.recordsTotal), 1)
1471
+ k("div", So, g(t(M)("showing", { capitalize: !0 })) + " " + g(v.value.length) + " " + g(t(M)("of")) + " " + g(b.value.recordsTotal), 1)
1476
1472
  ];
1477
1473
  }),
1478
1474
  _: 1
1479
1475
  }, 8, ["title", "model-value"])
1480
1476
  ])) : f("", !0),
1481
- I.selectOnly ? f("", !0) : (n(), i("div", To, [
1477
+ I.selectOnly ? f("", !0) : (n(), i("div", jo, [
1482
1478
  F(it, null, {
1483
1479
  footer: m(() => [
1484
1480
  Z((n(), $(K, {
@@ -1494,19 +1490,19 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1494
1490
  ])
1495
1491
  ]),
1496
1492
  default: m(() => {
1497
- var T;
1493
+ var j;
1498
1494
  return [
1499
- "items" in I.property ? (n(), i("div", Lo, [
1500
- (n(!0), i(J, null, H(I.modelValue, (ne) => (n(), $(Qe, G({
1501
- item: ne,
1495
+ "items" in I.property ? (n(), i("div", To, [
1496
+ (n(!0), i(J, null, H(I.modelValue, (te) => (n(), $(Qe, G({
1497
+ item: te,
1502
1498
  indexes: t(h),
1503
1499
  property: I.property,
1504
1500
  modelValue: I.modelValue
1505
1501
  }, {
1506
- key: `selected-${ne._id}`,
1502
+ key: `selected-${te._id}`,
1507
1503
  "onUpdate:modelValue": _
1508
1504
  }), null, 16))), 128))
1509
- ])) : (T = I.modelValue) != null && T._id ? (n(), $(Qe, G({ key: 1 }, {
1505
+ ])) : (j = I.modelValue) != null && j._id ? (n(), $(Qe, G({ key: 1 }, {
1510
1506
  item: I.modelValue,
1511
1507
  indexes: t(h),
1512
1508
  property: t(a),
@@ -1521,16 +1517,16 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1521
1517
  };
1522
1518
  }
1523
1519
  });
1524
- const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u) => {
1520
+ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u) => {
1525
1521
  const e = "items" in c ? c.items : c, a = {
1526
- options: Wn,
1522
+ options: Gn,
1527
1523
  select: He,
1528
- switch: Nn,
1529
- file: ho,
1530
- search: zo,
1524
+ switch: Pn,
1525
+ file: yo,
1526
+ search: Ro,
1531
1527
  input: Ie,
1532
1528
  form: De
1533
- }, s = (() => {
1529
+ }, l = (() => {
1534
1530
  if ("type" in e) {
1535
1531
  if (e.type === "object")
1536
1532
  return "form";
@@ -1543,36 +1539,36 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
1543
1539
  if (c.element === "select")
1544
1540
  return "select";
1545
1541
  }
1546
- const l = pe(c);
1547
- return l ? l.inline ? "form" : l.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in e ? "select" : "input";
1542
+ const s = pe(c);
1543
+ return s ? s.inline ? "form" : s.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in e ? "select" : "input";
1548
1544
  })();
1549
- return u[s] ? u[s] : a[s];
1550
- }, Fo = (c, u) => {
1545
+ return u[l] ? u[l] : a[l];
1546
+ }, zo = (c, u) => {
1551
1547
  c ?? (c = []);
1552
1548
  const e = "items" in u ? u.items : u;
1553
1549
  if ("$ref" in u) {
1554
- const a = ce(u.$ref), s = Se(a.$freshItem);
1555
- return c.unshift(s);
1550
+ const a = ce(u.$ref), l = Se(a.$freshItem);
1551
+ return c.unshift(l);
1556
1552
  }
1557
1553
  return "properties" in e ? c.unshift(Ut(e)) : "type" in e && e.type === "boolean" ? c.unshift({}) : c.unshift(null);
1558
- }, Mo = (c, u) => {
1554
+ }, Fo = (c, u) => {
1559
1555
  c.splice(u, 1);
1560
- }, qo = {
1556
+ }, Mo = {
1561
1557
  key: 0,
1562
1558
  class: "form__header"
1563
- }, Uo = {
1559
+ }, qo = {
1564
1560
  key: 1,
1565
1561
  class: "form__fieldset"
1566
- }, Eo = { key: 0 }, Ho = ["innerHTML"], Do = ["onInput"], Qo = { key: 4 }, Go = { value: "true" }, Wo = { value: "false" }, Xo = {
1562
+ }, Uo = { key: 0 }, Eo = ["innerHTML"], Ho = ["onInput"], Do = { key: 4 }, Qo = { value: "true" }, Go = { value: "false" }, Wo = {
1567
1563
  key: 5,
1568
1564
  style: { display: "grid", "row-gap": ".4rem" }
1569
- }, Yo = { style: { "flex-grow": "1" } }, Jo = {
1565
+ }, Xo = { style: { "flex-grow": "1" } }, Yo = {
1570
1566
  key: 7,
1571
1567
  class: "form__validation-error"
1572
- }, Ko = { key: 0 }, Zo = { key: 1 }, Po = {
1568
+ }, Jo = { key: 0 }, Ko = { key: 1 }, Zo = {
1573
1569
  key: 3,
1574
1570
  class: "form__footer"
1575
- }, No = /* @__PURE__ */ U({
1571
+ }, Po = /* @__PURE__ */ U({
1576
1572
  __name: "aeria-form",
1577
1573
  props: {
1578
1574
  modelValue: {},
@@ -1601,26 +1597,26 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
1601
1597
  mt(() => {
1602
1598
  e.modelValue || a("update:modelValue", e.property && "items" in e.property ? [] : {});
1603
1599
  });
1604
- const s = e.property && pe(e.property), l = s ? s.$ref : e.collection || Le(), r = l ? ce(je(l) ? l.value : l) : null;
1605
- !l && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1600
+ const l = e.property && pe(e.property), s = l ? l.$ref : e.collection || Le(), r = s ? ce(je(s) ? s.value : s) : null;
1601
+ !s && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1606
1602
  collection prop, some features may not work as intended`);
1607
1603
  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 = (_) => {
1608
1604
  const E = fe(_, e[_]);
1609
1605
  return e[_] && ve(_, e[_]), E;
1610
- }, 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"), j = d("innerInputLabel");
1611
- l && ve(Ee, l), ve("searchOnly", e.searchOnly);
1606
+ }, 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");
1607
+ s && ve(Ee, s), ve("searchOnly", e.searchOnly);
1612
1608
  const q = (_) => p.value ? Object.entries(p.value).filter(([E, I]) => !I.noForm && _([
1613
1609
  E,
1614
1610
  I
1615
1611
  ])) : null, w = (_) => {
1616
1612
  var I;
1617
- if (e.searchOnly || !l)
1613
+ if (e.searchOnly || !s)
1618
1614
  return !0;
1619
1615
  const E = e.property && "properties" in e.property ? e.property.form : (I = r == null ? void 0 : r.description) == null ? void 0 : I.form;
1620
1616
  return !E || E.includes(_);
1621
- }, ae = q(([_]) => w(_)), x = Te(), S = {}, ee = (_, E) => {
1622
- var T, ne, B, se;
1623
- const I = [], L = ((ne = (T = h.value) == null ? void 0 : T.fields) == null ? void 0 : ne[_]) || ((se = (B = h.value) == null ? void 0 : B.fields) == null ? void 0 : se.$default);
1617
+ }, le = q(([_]) => w(_)), oe = Te(), S = {}, x = (_, E) => {
1618
+ var j, te, B, ae;
1619
+ 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);
1624
1620
  if (!E)
1625
1621
  return;
1626
1622
  if (L != null && L.if && !e.searchOnly) {
@@ -1633,7 +1629,7 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
1633
1629
  null
1634
1630
  ].includes(e.modelValue[_]) ? null : e.modelValue[_].constructor()), I.push("display: none;")), S[_] = _e.satisfied;
1635
1631
  }
1636
- const A = x.value.md && (L == null ? void 0 : L.span) || 6;
1632
+ const A = oe.value.md && (L == null ? void 0 : L.span) || 6;
1637
1633
  return I.push(`
1638
1634
  --field-span: ${A};
1639
1635
  grid-column: span var(--field-span) / span var(--field-span);
@@ -1646,12 +1642,12 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
1646
1642
  padding: 1rem 0;
1647
1643
  margin: 1rem 0;
1648
1644
  `)), I.join("");
1649
- }, O = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, z = D(() => e.required ? e.required : e.property && "required" in e.property ? e.property.required : r == null ? void 0 : r.description.required), te = D(() => e.form ? Tt(
1645
+ }, O = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, z = D(() => e.required ? e.required : e.property && "required" in e.property ? e.property.required : r == null ? void 0 : r.description.required), ee = D(() => e.form ? Tt(
1650
1646
  e.modelValue,
1651
1647
  e.form,
1652
1648
  z.value,
1653
1649
  r == null ? void 0 : r.description
1654
- ) : !0), oe = (_, E) => {
1650
+ ) : !0), ne = (_, E) => {
1655
1651
  var I;
1656
1652
  return (I = o.value) != null && I[_] && (typeof o.value[_].index != "number" || o.value[_].index === E) ? o.value[_].errors : null;
1657
1653
  };
@@ -1661,47 +1657,47 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
1661
1657
  class: "form",
1662
1658
  style: he(`row-gap: ${t(C) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1663
1659
  }, [
1664
- _.$slots.header && !t(C) ? (n(), i("header", qo, [
1660
+ _.$slots.header && !t(C) ? (n(), i("header", Mo, [
1665
1661
  V(_.$slots, "header", {}, void 0, !0)
1666
1662
  ])) : f("", !0),
1667
1663
  V(_.$slots, "default", {}, void 0, !0),
1668
- _.isReadOnly ? f("", !0) : (n(), i("fieldset", Uo, [
1669
- (n(!0), i(J, null, H(t(ae), ([A, T]) => {
1670
- var ne, B, se, _e, ke, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
1664
+ _.isReadOnly ? f("", !0) : (n(), i("fieldset", qo, [
1665
+ (n(!0), i(J, null, H(t(le), ([A, j]) => {
1666
+ var te, B, ae, _e, ke, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
1671
1667
  return n(), i("div", {
1672
1668
  key: `field-${A}`,
1673
- style: he(ee(A, T)),
1669
+ style: he(x(A, j)),
1674
1670
  class: "form__field"
1675
1671
  }, [
1676
- (!("type" in T) || T.type !== "boolean" || _.searchOnly) && !T.noLabel && !t(R) && !t(j) ? (n(), i("label", Eo, [
1672
+ (!("type" in j) || j.type !== "boolean" || _.searchOnly) && !j.noLabel && !t(R) && !t(T) ? (n(), i("label", Uo, [
1677
1673
  k("div", {
1678
1674
  class: W({
1679
1675
  "form__field-label": !0,
1680
- "form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
1676
+ "form__field-label--section": "items" in j ? "properties" in j.items : "properties" in j,
1681
1677
  "form__field-required-hint": _.highlightRequired && !_.searchOnly && (!z.value || t(Et)(A, z.value, _.modelValue))
1682
1678
  })
1683
- }, g(T.description || t(M)(A)), 3),
1684
- T.hint ? (n(), i("div", {
1679
+ }, g(j.description || t(M)(A)), 3),
1680
+ j.hint ? (n(), i("div", {
1685
1681
  key: 0,
1686
- innerHTML: T.hint
1687
- }, null, 8, Ho)) : f("", !0)
1682
+ innerHTML: j.hint
1683
+ }, null, 8, Eo)) : f("", !0)
1688
1684
  ])) : f("", !0),
1689
- _.$slots[`field-${A}`] ? V(_.$slots, `field-${A}`, le(G({ key: 1 }, {
1690
- propery: T,
1685
+ _.$slots[`field-${A}`] ? V(_.$slots, `field-${A}`, se(G({ key: 1 }, {
1686
+ propery: j,
1691
1687
  properyName: A,
1692
1688
  modelValue: _.modelValue
1693
- })), void 0, !0) : (se = (B = (ne = _.layout) == null ? void 0 : ne.fields) == null ? void 0 : B[A]) != null && se.component && t(b)[_.layout.fields[A].component.name] ? (n(), $(ye(t(b)[_.layout.fields[A].component.name]), G({
1689
+ })), void 0, !0) : (ae = (B = (te = _.layout) == null ? void 0 : te.fields) == null ? void 0 : B[A]) != null && ae.component && t(b)[_.layout.fields[A].component.name] ? (n(), $(ye(t(b)[_.layout.fields[A].component.name]), G({
1694
1690
  key: 2,
1695
1691
  modelValue: _.modelValue[A],
1696
1692
  "onUpdate:modelValue": (P) => _.modelValue[A] = P
1697
1693
  }, {
1698
- property: T,
1694
+ property: j,
1699
1695
  propertyName: A,
1700
1696
  ..._.layout.fields[A].component.props || {}
1701
1697
  }, {
1702
1698
  onInput: (P) => a("input", A),
1703
1699
  onChange: E[0] || (E[0] = (P) => a("change", P))
1704
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && _.searchOnly ? (n(), i("div", {
1700
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in j && ["date", "date-time"].includes(j.format) && _.searchOnly ? (n(), i("div", {
1705
1701
  key: 3,
1706
1702
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1707
1703
  onInput: (P) => a("input", A),
@@ -1711,19 +1707,19 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
1711
1707
  modelValue: _.modelValue[A].$gte,
1712
1708
  "onUpdate:modelValue": (P) => _.modelValue[A].$gte = P
1713
1709
  }, {
1714
- property: T,
1710
+ property: j,
1715
1711
  propertyName: A
1716
1712
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1717
1713
  F(Ie, G({
1718
1714
  modelValue: _.modelValue[A].$lte,
1719
1715
  "onUpdate:modelValue": (P) => _.modelValue[A].$lte = P
1720
1716
  }, {
1721
- property: T,
1717
+ property: j,
1722
1718
  propertyName: A
1723
1719
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1724
- ], 40, Do)) : "type" in T && T.type === "boolean" && _.searchOnly ? (n(), i("div", Qo, [
1720
+ ], 40, Ho)) : "type" in j && j.type === "boolean" && _.searchOnly ? (n(), i("div", Do, [
1725
1721
  F(He, G({
1726
- property: T,
1722
+ property: j,
1727
1723
  propertyName: A
1728
1724
  }, {
1729
1725
  "boolean-ref": "",
@@ -1734,20 +1730,20 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
1734
1730
  }
1735
1731
  }), {
1736
1732
  default: m(() => [
1737
- k("option", Go, g(t(M)("yes")), 1),
1738
- k("option", Wo, g(t(M)("no")), 1)
1733
+ k("option", Qo, g(t(M)("yes")), 1),
1734
+ k("option", Go, g(t(M)("no")), 1)
1739
1735
  ]),
1740
1736
  _: 2
1741
1737
  }, 1040, ["model-value", "onUpdate:modelValue"])
1742
- ])) : _.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (n(), i("div", Xo, [
1738
+ ])) : _.modelValue && "items" in j && !j.uniqueItems && (!("$ref" in j.items) || j.items.inline || j.items.$ref === "file") ? (n(), i("div", Wo, [
1743
1739
  k("div", null, [
1744
1740
  F(re, {
1745
1741
  small: "",
1746
1742
  variant: "alt",
1747
1743
  icon: "plus",
1748
- disabled: !("inline" in T.items && T.items.inline) && (((_e = _.modelValue[A]) == null ? void 0 : _e.length) >= T.maxItems || O((Ye = _.modelValue[A]) == null ? void 0 : Ye[((ke = _.modelValue[A]) == null ? void 0 : ke.length) - 1])),
1744
+ 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])),
1749
1745
  onClick: Fe((P) => {
1750
- _.modelValue[A] || (_.modelValue[A] = []), t(Fo)(_.modelValue[A], T);
1746
+ _.modelValue[A] || (_.modelValue[A] = []), t(zo)(_.modelValue[A], j);
1751
1747
  }, ["prevent"])
1752
1748
  }, {
1753
1749
  default: m(() => [
@@ -1757,23 +1753,23 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
1757
1753
  }, 1032, ["disabled", "onClick"])
1758
1754
  ]),
1759
1755
  (n(!0), i(J, null, H(_.modelValue[A], (P, Oe) => {
1760
- var tt, nt, ot, at, st, lt;
1756
+ var tt, nt, ot, at, lt, st;
1761
1757
  return n(), i("div", {
1762
1758
  key: `rep-${A}-${Oe}`,
1763
1759
  style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
1764
1760
  }, [
1765
- k("div", Yo, [
1766
- (n(), $(ye(t(rt)(T, t(v))), G({
1761
+ k("div", Xo, [
1762
+ (n(), $(ye(t(rt)(j, t(v))), G({
1767
1763
  modelValue: _.modelValue[A][Oe],
1768
1764
  "onUpdate:modelValue": (we) => _.modelValue[A][Oe] = we
1769
1765
  }, {
1770
- property: T.items,
1766
+ property: j.items,
1771
1767
  propertyName: A,
1772
- parentCollection: t(l),
1768
+ parentCollection: t(s),
1773
1769
  parentPropertyName: _.parentPropertyName,
1774
- 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),
1775
- validationErrors: oe(A, Oe),
1776
- ...T.componentProps || {}
1770
+ columns: ((ot = (nt = (tt = _.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[A]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = _.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
1771
+ validationErrors: ne(A, Oe),
1772
+ ...j.componentProps || {}
1777
1773
  }, {
1778
1774
  onInput: (we) => a("input", A),
1779
1775
  onChange: E[3] || (E[3] = (we) => a("change", we))
@@ -1782,53 +1778,53 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
1782
1778
  Z(F(K, {
1783
1779
  reactive: "",
1784
1780
  icon: "trash",
1785
- onClick: (we) => t(Mo)(_.modelValue[A], Oe)
1781
+ onClick: (we) => t(Fo)(_.modelValue[A], Oe)
1786
1782
  }, null, 8, ["onClick"]), [
1787
1783
  [I]
1788
1784
  ])
1789
1785
  ]);
1790
1786
  }), 128))
1791
- ])) : _.modelValue ? Z((n(), $(ye(t(rt)(T, t(v))), G({
1787
+ ])) : _.modelValue ? Z((n(), $(ye(t(rt)(j, t(v))), G({
1792
1788
  key: 6,
1793
1789
  modelValue: _.modelValue[A],
1794
1790
  "onUpdate:modelValue": (P) => _.modelValue[A] = P
1795
1791
  }, {
1796
- property: T,
1792
+ property: j,
1797
1793
  propertyName: A,
1798
1794
  parentPropertyName: _.parentPropertyName,
1799
- parentCollection: t(l),
1795
+ parentCollection: t(s),
1800
1796
  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),
1801
- ...T.componentProps || {},
1802
- validationErrors: oe(A)
1797
+ ...j.componentProps || {},
1798
+ validationErrors: ne(A)
1803
1799
  }, {
1804
1800
  onInput: (P) => a("input", A),
1805
1801
  onChange: E[4] || (E[4] = (P) => a("change", P))
1806
1802
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1807
1803
  [L, !y.value && (y.value = !!_.focus)]
1808
1804
  ]) : f("", !0),
1809
- (et = o.value) != null && et[A] ? (n(), i("div", Jo, [
1810
- o.value[A].type ? (n(), i("span", Ko, g(t(M)(`validation_error.${o.value[A].type}`)), 1)) : f("", !0),
1811
- o.value[A].detail ? (n(), i("span", Zo, g(t(M)(o.value[A].detail)), 1)) : f("", !0)
1805
+ (et = o.value) != null && et[A] ? (n(), i("div", Yo, [
1806
+ o.value[A].type ? (n(), i("span", Jo, g(t(M)(`validation_error.${o.value[A].type}`)), 1)) : f("", !0),
1807
+ o.value[A].detail ? (n(), i("span", Ko, g(t(M)(o.value[A].detail)), 1)) : f("", !0)
1812
1808
  ])) : f("", !0)
1813
1809
  ], 4);
1814
1810
  }), 128))
1815
1811
  ])),
1816
1812
  _.$slots.after ? V(_.$slots, "after", { key: 2 }, void 0, !0) : f("", !0),
1817
- _.$slots.footer ? (n(), i("div", Po, [
1818
- V(_.$slots, "footer", le(be({
1819
- isInsertReady: te.value
1813
+ _.$slots.footer ? (n(), i("div", Zo, [
1814
+ V(_.$slots, "footer", se(be({
1815
+ isInsertReady: ee.value
1820
1816
  })), void 0, !0)
1821
1817
  ])) : f("", !0)
1822
1818
  ], 4);
1823
1819
  };
1824
1820
  }
1825
1821
  });
1826
- const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @__PURE__ */ U({
1822
+ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @__PURE__ */ U({
1827
1823
  __name: "aeria-filter-panel",
1828
1824
  emits: ["update:modelValue"],
1829
1825
  setup(c, { emit: u }) {
1830
- const e = u, a = ge(), s = Re(), l = () => {
1831
- a.pagination.offset = 0, a.$actions.filter(), e("update:modelValue", !1), s.push({
1826
+ const e = u, a = ge(), l = Re(), s = () => {
1827
+ a.pagination.offset = 0, a.$actions.filter(), e("update:modelValue", !1), l.push({
1832
1828
  query: Lt(a)
1833
1829
  });
1834
1830
  };
@@ -1844,7 +1840,7 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
1844
1840
  key: 0,
1845
1841
  variant: "transparent",
1846
1842
  onClick: y[1] || (y[1] = (p) => {
1847
- t(a).$actions.clearFilters(), l(), e("update:modelValue", !1);
1843
+ t(a).$actions.clearFilters(), s(), e("update:modelValue", !1);
1848
1844
  })
1849
1845
  }, {
1850
1846
  default: m(() => [
@@ -1862,7 +1858,7 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
1862
1858
  large: "",
1863
1859
  icon: "funnel",
1864
1860
  disabled: !t(a).hasActiveFilters,
1865
- onClick: l
1861
+ onClick: s
1866
1862
  }, {
1867
1863
  default: m(() => [
1868
1864
  Q(g(r.t("action.filter", { capitalize: !0 })), 1)
@@ -1883,18 +1879,18 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
1883
1879
  _: 1
1884
1880
  }, 8, ["title"]));
1885
1881
  }
1886
- }), ie = Y(!1), ut = Y(!1), Ve = Y(!1), Be = Y((...c) => null), ct = Y(), dt = !1, ea = /* @__PURE__ */ U({
1882
+ }), ie = Y(!1), ut = Y(!1), Ve = Y(!1), Be = Y((...c) => null), ct = Y(), dt = !1, xo = /* @__PURE__ */ U({
1887
1883
  __name: "aeria-insert-panel",
1888
1884
  setup(c) {
1889
- const u = ce("meta"), e = ce(u.view.collection), a = fe("individualActions", []), s = async () => {
1885
+ const u = ce("meta"), e = ce(u.view.collection), a = fe("individualActions", []), l = async () => {
1890
1886
  const y = await e.$actions.deepInsert();
1891
1887
  Ht(y) || (ie.value = !1);
1892
- }, { t: l } = wt(), r = () => {
1888
+ }, { t: s } = wt(), r = () => {
1893
1889
  u.$actions.ask({
1894
1890
  action: () => {
1895
1891
  e.$actions.clearItem(), e.validationErrors = {}, ie.value = !1;
1896
1892
  },
1897
- body: l("prompt.close_panel")
1893
+ body: s("prompt.close_panel")
1898
1894
  });
1899
1895
  };
1900
1896
  return ue(() => e.item._id, (y) => {
@@ -1912,15 +1908,15 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
1912
1908
  k("span", null, g((() => {
1913
1909
  switch (t(ie)) {
1914
1910
  case "add":
1915
- return t(l)("action.add", { capitalize: !0 });
1911
+ return t(s)("action.add", { capitalize: !0 });
1916
1912
  case "duplicate":
1917
- return t(l)("action.duplicate", { capitalize: !0 });
1913
+ return t(s)("action.duplicate", { capitalize: !0 });
1918
1914
  case "edit":
1919
1915
  default:
1920
- return t(l)("action.edit", { capitalize: !0 });
1916
+ return t(s)("action.edit", { capitalize: !0 });
1921
1917
  }
1922
1918
  })()), 1),
1923
- k("span", null, " " + g(t(l)(t(u).view.collection)), 1)
1919
+ k("span", null, " " + g(t(s)(t(u).view.collection)), 1)
1924
1920
  ]),
1925
1921
  extra: m(() => [
1926
1922
  F(Ce, G({
@@ -1947,7 +1943,7 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
1947
1943
  onClick: r
1948
1944
  }, {
1949
1945
  default: m(() => [
1950
- Q(g(t(l)("action.cancel", { capitalize: !0 })), 1)
1946
+ Q(g(t(s)("action.cancel", { capitalize: !0 })), 1)
1951
1947
  ]),
1952
1948
  _: 1
1953
1949
  }),
@@ -1955,10 +1951,10 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
1955
1951
  large: "",
1956
1952
  disabled: !t(e).isInsertReady || dt || t(e).loading.get,
1957
1953
  loading: t(e).loading.insert,
1958
- onClick: s
1954
+ onClick: l
1959
1955
  }, {
1960
1956
  default: m(() => [
1961
- Q(g(t(l)("action.insert", { capitalize: !0 })), 1)
1957
+ Q(g(t(s)("action.insert", { capitalize: !0 })), 1)
1962
1958
  ]),
1963
1959
  _: 1
1964
1960
  }, 8, ["disabled", "loading"])
@@ -1979,7 +1975,7 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
1979
1975
  H(Object.keys(y.$slots).filter((d) => d.startsWith("field-")), (d) => ({
1980
1976
  name: d,
1981
1977
  fn: m((o) => [
1982
- V(y.$slots, d, le(be(o)))
1978
+ V(y.$slots, d, se(be(o)))
1983
1979
  ])
1984
1980
  }))
1985
1981
  ]), 1040, ["modelValue"])
@@ -1996,20 +1992,20 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
1996
1992
  }
1997
1993
  u.filtersPreset = c.filters || {}, u.preferredTableProperties = c.table ? Array.from(c.table) : [], u.pagination.offset = 0;
1998
1994
  }
1999
- }, ta = (c, u = {
1995
+ }, ea = (c, u = {
2000
1996
  persistInQuery: !0
2001
1997
  }) => {
2002
1998
  const a = Re().currentRoute;
2003
- return ue(() => a.value.query.section, (s) => {
1999
+ return ue(() => a.value.query.section, (l) => {
2004
2000
  if (c) {
2005
2001
  if (c.description.filtersPresets) {
2006
- const l = s || Object.keys(c.description.filtersPresets)[0];
2007
- ht(c.description.filtersPresets[l], c);
2002
+ const s = l || Object.keys(c.description.filtersPresets)[0];
2003
+ ht(c.description.filtersPresets[s], c);
2008
2004
  }
2009
2005
  if (u.persistInQuery) {
2010
- const l = a.value.query;
2011
- l.offset && (c.pagination.offset = +l.offset), l.limit && (c.pagination.limit = +l.limit), l.search && (c.textQuery = l.search, c.filters.$text = {
2012
- $search: `"${l.search}"`,
2006
+ const s = a.value.query;
2007
+ s.offset && (c.pagination.offset = +s.offset), s.limit && (c.pagination.limit = +s.limit), s.search && (c.textQuery = s.search, c.filters.$text = {
2008
+ $search: `"${s.search}"`,
2013
2009
  $caseSensitive: !1
2014
2010
  });
2015
2011
  }
@@ -2017,29 +2013,29 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
2017
2013
  }, {
2018
2014
  immediate: !0
2019
2015
  });
2020
- }, na = (c) => (qe("data-v-d8e1b8cf"), c = c(), Ue(), c), oa = {
2016
+ }, ta = (c) => (qe("data-v-d8e1b8cf"), c = c(), Ue(), c), na = {
2021
2017
  key: 0,
2022
2018
  class: "table aeria-surface"
2023
- }, aa = { key: 0 }, sa = { key: 1 }, la = { key: 0 }, ia = ["checked"], ra = {
2019
+ }, oa = { key: 0 }, aa = { key: 1 }, la = { key: 0 }, sa = ["checked"], ia = {
2024
2020
  key: 1,
2025
2021
  style: { "text-align": "right" }
2026
- }, ua = { key: 2 }, ca = { key: 3 }, da = ["onClick"], pa = { key: 0 }, _a = ["value"], ma = { class: "table__cell-mobile-label" }, fa = {
2022
+ }, ra = { key: 2 }, ua = { key: 3 }, ca = ["onClick"], da = { key: 0 }, pa = ["value"], _a = { class: "table__cell-mobile-label" }, ma = {
2027
2023
  key: 0,
2028
2024
  class: "table__cell-container"
2029
- }, va = {
2025
+ }, fa = {
2030
2026
  key: 1,
2031
2027
  class: "table__cell-container"
2032
- }, ya = { class: "table__cell-grid" }, ha = { key: 0 }, $a = { key: 1 }, ba = ["href"], ga = { key: 3 }, ka = { key: 2 }, Va = { key: 0 }, Ca = { key: 1 }, Ia = { key: 2 }, Aa = {
2028
+ }, va = { class: "table__cell-grid" }, ya = { key: 0 }, ha = { key: 1 }, $a = ["href"], ba = { key: 3 }, ga = { key: 2 }, ka = { key: 0 }, Va = { key: 1 }, Ca = { key: 2 }, Ia = {
2033
2029
  key: 1,
2034
2030
  class: "no-print"
2035
- }, Oa = { class: "table__cell-actions" }, wa = {
2031
+ }, Aa = { class: "table__cell-actions" }, Oa = {
2036
2032
  key: 2,
2037
2033
  class: "no-print table__mobile-actions"
2038
- }, Ba = ["id"], Sa = { key: 1 }, ja = /* @__PURE__ */ na(() => /* @__PURE__ */ k("td", { colspan: 10 }, [
2034
+ }, wa = ["id"], Ba = { key: 1 }, Sa = /* @__PURE__ */ ta(() => /* @__PURE__ */ k("td", { colspan: 10 }, [
2039
2035
  /* @__PURE__ */ k("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
2040
- ], -1)), Ta = [
2041
- ja
2042
- ], La = /* @__PURE__ */ U({
2036
+ ], -1)), ja = [
2037
+ Sa
2038
+ ], Ta = /* @__PURE__ */ U({
2043
2039
  __name: "aeria-table",
2044
2040
  props: {
2045
2041
  columns: {},
@@ -2051,85 +2047,85 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
2051
2047
  },
2052
2048
  emits: ["itemClick"],
2053
2049
  setup(c, { emit: u }) {
2054
- const e = c, a = u, s = Te(), l = e.collection || Le(), r = l ? ce(typeof l == "string" ? l : l.value) : null, y = D({
2050
+ const e = c, a = u, l = Te(), s = e.collection || Le(), r = s ? ce(typeof s == "string" ? s : s.value) : null, y = D({
2055
2051
  get: () => r == null ? void 0 : r.selected,
2056
2052
  set: (v) => r == null ? void 0 : r.$actions.selectManyItems(v, !0)
2057
2053
  }), p = (v, b) => v != null && v.button ? typeof v.button == "object" ? Ge(b, v.button).satisfied : v.button : !1, h = (v) => {
2058
2054
  var b;
2059
- return !s.value.xl || !((b = e.layout) != null && b.actions) || !e.actions ? [] : e.actions.filter((C) => {
2055
+ return !l.value.xl || !((b = e.layout) != null && b.actions) || !e.actions ? [] : e.actions.filter((C) => {
2060
2056
  const R = e.layout.actions[C.action];
2061
2057
  return p(R, v);
2062
2058
  });
2063
2059
  }, d = (v) => {
2064
2060
  var b;
2065
- return e.actions ? !s.value.xl || !((b = e.layout) != null && b.actions) ? e.actions : e.actions.filter((C) => {
2061
+ return e.actions ? !l.value.xl || !((b = e.layout) != null && b.actions) ? e.actions : e.actions.filter((C) => {
2066
2062
  const R = e.layout.actions[C.action];
2067
2063
  return !p(R, v);
2068
2064
  }) : [];
2069
2065
  }, o = (v, b) => {
2070
- var j, q;
2071
- const C = [], R = (q = (j = e.layout) == null ? void 0 : j.actions) == null ? void 0 : q[b.action];
2066
+ var T, q;
2067
+ const C = [], R = (q = (T = e.layout) == null ? void 0 : T.actions) == null ? void 0 : q[b.action];
2072
2068
  return R != null && R.if && (Ge(
2073
2069
  v,
2074
2070
  R.if
2075
2071
  ).satisfied || C.push("display: none;")), C.join("");
2076
2072
  };
2077
2073
  return (v, b) => {
2078
- var R, j, q;
2074
+ var R, T, q;
2079
2075
  const C = N("clickable");
2080
- return v.columns && Object.keys(v.columns).length > 0 || v.$slots.thead ? (n(), i("table", oa, [
2081
- v.$slots.thead ? (n(), i("thead", aa, [
2076
+ return v.columns && Object.keys(v.columns).length > 0 || v.$slots.thead ? (n(), i("table", na, [
2077
+ v.$slots.thead ? (n(), i("thead", oa, [
2082
2078
  V(v.$slots, "thead", {}, void 0, !0)
2083
- ])) : (n(), i("thead", sa, [
2079
+ ])) : (n(), i("thead", aa, [
2084
2080
  k("tr", null, [
2085
- v.checkbox && t(r) && t(s).md ? (n(), i("th", la, [
2081
+ v.checkbox && t(r) && t(l).md ? (n(), i("th", la, [
2086
2082
  k("input", {
2087
2083
  type: "checkbox",
2088
2084
  checked: t(r).selected.length > 0 && t(r).selected.length === t(r).itemsCount,
2089
2085
  onChange: b[0] || (b[0] = (w) => t(r).$actions.selectAllItems(w.target.checked))
2090
- }, null, 40, ia)
2086
+ }, null, 40, sa)
2091
2087
  ])) : f("", !0),
2092
- (n(!0), i(J, null, H(Object.entries(v.columns), ([w, ae], x) => (n(), i("th", {
2093
- key: `header-${x}`,
2088
+ (n(!0), i(J, null, H(Object.entries(v.columns), ([w, le], oe) => (n(), i("th", {
2089
+ key: `header-${oe}`,
2094
2090
  class: "table__header"
2095
- }, g(ae.description || t(M)(w)), 1))), 128)),
2096
- (R = v.actions) != null && R.length ? (n(), i("th", ra)) : f("", !0)
2091
+ }, g(le.description || t(M)(w)), 1))), 128)),
2092
+ (R = v.actions) != null && R.length ? (n(), i("th", ia)) : f("", !0)
2097
2093
  ])
2098
2094
  ])),
2099
- v.$slots.tbody ? (n(), i("tbody", ua, [
2095
+ v.$slots.tbody ? (n(), i("tbody", ra, [
2100
2096
  V(v.$slots, "tbody", {}, void 0, !0)
2101
- ])) : (n(), i("tbody", ca, [
2097
+ ])) : (n(), i("tbody", ua, [
2102
2098
  (n(!0), i(J, null, H(v.rows, (w) => {
2103
- var ae, x;
2099
+ var le, oe;
2104
2100
  return n(), i("tr", {
2105
2101
  key: w._id,
2106
2102
  onClick: (S) => a("itemClick", w)
2107
2103
  }, [
2108
- t(r) && v.checkbox && t(s).md ? (n(), i("td", pa, [
2104
+ t(r) && v.checkbox && t(l).md ? (n(), i("td", da, [
2109
2105
  Z(k("input", {
2110
2106
  "onUpdate:modelValue": b[1] || (b[1] = (S) => y.value = S),
2111
2107
  type: "checkbox",
2112
2108
  value: w._id
2113
- }, null, 8, _a), [
2109
+ }, null, 8, pa), [
2114
2110
  [kt, y.value]
2115
2111
  ])
2116
2112
  ])) : f("", !0),
2117
- (n(!0), i(J, null, H(Object.entries(v.columns), ([S, ee], O) => {
2118
- var z, te, oe, _, E, I;
2113
+ (n(!0), i(J, null, H(Object.entries(v.columns), ([S, x], O) => {
2114
+ var z, ee, ne, _, E, I;
2119
2115
  return n(), i("td", {
2120
2116
  key: `column-${w._id}-${O}`
2121
2117
  }, [
2122
- k("div", ma, g(ee.description || t(M)(S)), 1),
2123
- `row-${S}` in v.$slots ? (n(), i("div", fa, [
2124
- V(v.$slots, `row-${S}`, le(be({
2118
+ k("div", _a, g(x.description || t(M)(S)), 1),
2119
+ `row-${S}` in v.$slots ? (n(), i("div", ma, [
2120
+ V(v.$slots, `row-${S}`, se(be({
2125
2121
  store: t(r),
2126
2122
  column: S,
2127
- property: ee,
2123
+ property: x,
2128
2124
  row: w
2129
2125
  })), void 0, !0)
2130
- ])) : (n(), i("div", va, [
2131
- k("div", ya, [
2132
- "type" in ee && ee.type === "boolean" ? (n(), i("div", ha, [
2126
+ ])) : (n(), i("div", fa, [
2127
+ k("div", va, [
2128
+ "type" in x && x.type === "boolean" ? (n(), i("div", ya, [
2133
2129
  w[S] ? (n(), $(K, {
2134
2130
  key: 0,
2135
2131
  icon: "check",
@@ -2149,15 +2145,15 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
2149
2145
  ]),
2150
2146
  _: 1
2151
2147
  }))
2152
- ])) : ((z = t(pe)(ee)) == null ? void 0 : z.$ref) === "file" ? (n(), i("div", $a, [
2153
- /^image/.test((te = w[S][0]) == null ? void 0 : te.mime) && "items" in ee ? (n(), $(Me, {
2148
+ ])) : ((z = t(pe)(x)) == null ? void 0 : z.$ref) === "file" ? (n(), i("div", ha, [
2149
+ /^image/.test((ee = w[S][0]) == null ? void 0 : ee.mime) && "items" in x ? (n(), $(Me, {
2154
2150
  key: 0,
2155
2151
  modelValue: w[S][0].link,
2156
2152
  "onUpdate:modelValue": (L) => w[S][0].link = L,
2157
2153
  expandable: "",
2158
2154
  meta: w[S][0],
2159
2155
  class: "table__picture"
2160
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = w[S]) == null ? void 0 : oe.mime) ? (n(), $(Me, {
2156
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((ne = w[S]) == null ? void 0 : ne.mime) ? (n(), $(Me, {
2161
2157
  key: 1,
2162
2158
  modelValue: w[S].link,
2163
2159
  "onUpdate:modelValue": (L) => w[S].link = L,
@@ -2168,21 +2164,21 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
2168
2164
  key: 2,
2169
2165
  href: w[S].link,
2170
2166
  style: { "font-size": "10pt" }
2171
- }, g(w[S].filename), 9, ba)) : (n(), i("div", ga, " - "))
2172
- ])) : (n(), i("div", ka, [
2173
- t(r) ? (n(), i("span", Va, g(t(r).$actions.formatValue({
2167
+ }, g(w[S].filename), 9, $a)) : (n(), i("div", ba, " - "))
2168
+ ])) : (n(), i("div", ga, [
2169
+ t(r) ? (n(), i("span", ka, g(t(r).$actions.formatValue({
2174
2170
  value: w[S],
2175
2171
  key: S,
2176
- property: ee
2177
- })), 1)) : (n(), i("span", Ca, g(Array.isArray(w[S]) ? w[S].filter((L) => !!L).join(", ") : [void 0, null].includes(w[S]) ? "-" : w[S]), 1)),
2178
- ((I = (E = t(pe)(ee)) == null ? void 0 : E.indexes) == null ? void 0 : I.length) > 1 ? (n(), i("div", Ia, [
2179
- (n(!0), i(J, null, H(t(pe)(ee).indexes.slice(1, 2), (L, A) => (n(), i("div", {
2172
+ property: x
2173
+ })), 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)),
2174
+ ((I = (E = t(pe)(x)) == null ? void 0 : E.indexes) == null ? void 0 : I.length) > 1 ? (n(), i("div", Ca, [
2175
+ (n(!0), i(J, null, H(t(pe)(x).indexes.slice(1, 2), (L, A) => (n(), i("div", {
2180
2176
  key: `subvalue-${A}`,
2181
2177
  class: "table__cell-subvalue"
2182
2178
  }, g(t(r).$actions.formatValue({
2183
2179
  value: w[S],
2184
2180
  key: S,
2185
- property: ee,
2181
+ property: x,
2186
2182
  index: L
2187
2183
  })), 1))), 128))
2188
2184
  ])) : f("", !0)
@@ -2191,22 +2187,22 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
2191
2187
  ]))
2192
2188
  ]);
2193
2189
  }), 128)),
2194
- (ae = v.actions) != null && ae.length && t(s).md ? (n(), i("td", Aa, [
2195
- k("div", Oa, [
2190
+ (le = v.actions) != null && le.length && t(l).md ? (n(), i("td", Ia, [
2191
+ k("div", Aa, [
2196
2192
  (n(!0), i(J, null, H(h(w), (S) => (n(), $(re, {
2197
2193
  key: `action-${S.action}`,
2198
2194
  small: "",
2199
2195
  variant: "transparent",
2200
2196
  icon: S.icon,
2201
2197
  style: he(o(w, S)),
2202
- onClick: (ee) => S.click(w)
2198
+ onClick: (x) => S.click(w)
2203
2199
  }, {
2204
2200
  default: m(() => [
2205
2201
  Q(g(t(M)(S.name)), 1)
2206
2202
  ]),
2207
2203
  _: 2
2208
2204
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2209
- d(w).length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
2205
+ d(w).length > 0 ? (n(), $(Ce, se(G({ key: 0 }, {
2210
2206
  subject: w,
2211
2207
  actions: d(w)
2212
2208
  })), {
@@ -2221,7 +2217,7 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
2221
2217
  _: 2
2222
2218
  }, 1040)) : f("", !0)
2223
2219
  ])
2224
- ])) : (x = v.actions) != null && x.length ? (n(), i("td", wa, [
2220
+ ])) : (oe = v.actions) != null && oe.length ? (n(), i("td", Oa, [
2225
2221
  k("div", {
2226
2222
  class: "table__mobile-actions-grid",
2227
2223
  style: he(`grid-template-columns: repeat(${h(w).length + (d(w).length ? 1 : 0)}, 1fr);`)
@@ -2229,7 +2225,7 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
2229
2225
  (n(!0), i(J, null, H(h(w), (S) => (n(), $(me, {
2230
2226
  key: `action-${S.action}`,
2231
2227
  class: "table__mobile-actions-button",
2232
- onClick: (ee) => S.click(w)
2228
+ onClick: (x) => S.click(w)
2233
2229
  }, {
2234
2230
  default: m(() => [
2235
2231
  F(K, {
@@ -2243,7 +2239,7 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
2243
2239
  ]),
2244
2240
  _: 2
2245
2241
  }, 1032, ["onClick"]))), 128)),
2246
- d(w).length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
2242
+ d(w).length > 0 ? (n(), $(Ce, se(G({ key: 0 }, {
2247
2243
  subject: w,
2248
2244
  actions: d(w)
2249
2245
  })), {
@@ -2259,18 +2255,18 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
2259
2255
  ])) : f("", !0),
2260
2256
  k("div", {
2261
2257
  id: `dropdown-${w._id}`
2262
- }, null, 8, Ba)
2263
- ], 8, da);
2258
+ }, null, 8, wa)
2259
+ ], 8, ca);
2264
2260
  }), 128))
2265
2261
  ])),
2266
2262
  k("tfoot", null, [
2267
- v.$slots.tfoot ? V(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((j = v.rows) != null && j.length) && !((q = t(r)) != null && q.loading.getAll) ? (n(), i("tr", Sa, Ta)) : f("", !0)
2263
+ 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
2264
  ])
2269
2265
  ])) : f("", !0);
2270
2266
  };
2271
2267
  }
2272
2268
  });
2273
- const Ra = /* @__PURE__ */ X(La, [["__scopeId", "data-v-d8e1b8cf"]]), za = /* @__PURE__ */ U({
2269
+ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @__PURE__ */ U({
2274
2270
  __name: "aeria-tabular",
2275
2271
  props: {
2276
2272
  individualActions: {},
@@ -2278,8 +2274,8 @@ const Ra = /* @__PURE__ */ X(La, [["__scopeId", "data-v-d8e1b8cf"]]), za = /* @_
2278
2274
  componentProps: {}
2279
2275
  },
2280
2276
  setup(c) {
2281
- const u = c, e = ge(), a = Le(), s = D(() => {
2282
- const l = {
2277
+ const u = c, e = ge(), a = Le(), l = D(() => {
2278
+ const s = {
2283
2279
  collection: a,
2284
2280
  checkbox: e.hasSelectionActions,
2285
2281
  columns: e.tableProperties,
@@ -2287,23 +2283,23 @@ const Ra = /* @__PURE__ */ X(La, [["__scopeId", "data-v-d8e1b8cf"]]), za = /* @_
2287
2283
  actions: u.individualActions,
2288
2284
  layout: e.tableLayout
2289
2285
  };
2290
- return Object.assign(l, u.componentProps);
2286
+ return Object.assign(s, u.componentProps);
2291
2287
  });
2292
- return (l, r) => (n(), i("div", null, [
2293
- l.$slots.inner ? V(l.$slots, "inner", { key: 0 }) : f("", !0),
2294
- t(e).properties ? (n(), $(Ra, G({ key: 1 }, s.value, {
2288
+ return (s, r) => (n(), i("div", null, [
2289
+ s.$slots.inner ? V(s.$slots, "inner", { key: 0 }) : f("", !0),
2290
+ t(e).properties ? (n(), $(La, G({ key: 1 }, l.value, {
2295
2291
  key: t(e).$id
2296
2292
  }), de({ _: 2 }, [
2297
- H(Object.keys(l.$slots).filter((y) => !["inner"].includes(y)), (y) => ({
2293
+ H(Object.keys(s.$slots).filter((y) => !["inner"].includes(y)), (y) => ({
2298
2294
  name: y,
2299
2295
  fn: m((p) => [
2300
- V(l.$slots, y, le(be(p)))
2296
+ V(s.$slots, y, se(be(p)))
2301
2297
  ])
2302
2298
  }))
2303
2299
  ]), 1040)) : f("", !0)
2304
2300
  ]));
2305
2301
  }
2306
- }), Fa = /* @__PURE__ */ U({
2302
+ }), za = /* @__PURE__ */ U({
2307
2303
  __name: "aeria-grid",
2308
2304
  props: {
2309
2305
  list: { type: Boolean }
@@ -2319,10 +2315,10 @@ const Ra = /* @__PURE__ */ X(La, [["__scopeId", "data-v-d8e1b8cf"]]), za = /* @_
2319
2315
  ], 2));
2320
2316
  }
2321
2317
  });
2322
- const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key: 0 }, Ua = {
2318
+ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key: 0 }, qa = {
2323
2319
  key: 1,
2324
2320
  class: "card__information"
2325
- }, Ea = /* @__PURE__ */ U({
2321
+ }, Ua = /* @__PURE__ */ U({
2326
2322
  __name: "aeria-grid",
2327
2323
  props: {
2328
2324
  individualActions: {},
@@ -2331,26 +2327,26 @@ const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key
2331
2327
  componentName: {}
2332
2328
  },
2333
2329
  setup(c) {
2334
- const e = c.layoutOptions, a = ge(), s = (l) => Array.isArray(l) ? l[0] : l;
2335
- return (l, r) => {
2330
+ const e = c.layoutOptions, a = ge(), l = (s) => Array.isArray(s) ? s[0] : s;
2331
+ return (s, r) => {
2336
2332
  const y = N("clickable");
2337
- return n(), $(Ma, {
2338
- list: l.componentName === "list"
2333
+ return n(), $(Fa, {
2334
+ list: s.componentName === "list"
2339
2335
  }, {
2340
2336
  default: m(() => [
2341
- (n(!0), i(J, null, H(t(a).items, (p) => (n(), $(dn, {
2337
+ (n(!0), i(J, null, H(t(a).items, (p) => (n(), $(cn, {
2342
2338
  key: p,
2343
2339
  inactive: !!(t(e).active && !p[t(e).active]),
2344
- horizontal: l.componentName === "list"
2340
+ horizontal: s.componentName === "list"
2345
2341
  }, de({
2346
2342
  footer: m(() => [
2347
- t(e).title ? (n(), i("div", qa, g(p[t(e).title]), 1)) : f("", !0),
2348
- t(e).information ? (n(), i("div", Ua, g(p[t(e).information]), 1)) : f("", !0)
2343
+ t(e).title ? (n(), i("div", Ma, g(p[t(e).title]), 1)) : f("", !0),
2344
+ t(e).information ? (n(), i("div", qa, g(p[t(e).information]), 1)) : f("", !0)
2349
2345
  ]),
2350
2346
  actions: m(() => [
2351
- l.individualActions.length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
2347
+ s.individualActions.length > 0 ? (n(), $(Ce, se(G({ key: 0 }, {
2352
2348
  subject: p,
2353
- actions: l.individualActions
2349
+ actions: s.individualActions
2354
2350
  })), {
2355
2351
  default: m(() => [
2356
2352
  Z(F(K, {
@@ -2368,8 +2364,8 @@ const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key
2368
2364
  return [
2369
2365
  F(Me, {
2370
2366
  expandable: "",
2371
- url: (h = s(p[t(e).picture])) == null ? void 0 : h.link,
2372
- meta: s(p[t(e).picture])
2367
+ url: (h = l(p[t(e).picture])) == null ? void 0 : h.link,
2368
+ meta: l(p[t(e).picture])
2373
2369
  }, null, 8, ["url", "meta"])
2374
2370
  ];
2375
2371
  }),
@@ -2394,7 +2390,7 @@ const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key
2394
2390
  fn: m(() => [
2395
2391
  F($e, null, {
2396
2392
  default: m(() => [
2397
- Q(g(t(e).translateBadge ? t(M)(p[t(e).badge]) : p[t(e)[l.badge]]), 1)
2393
+ Q(g(t(e).translateBadge ? t(M)(p[t(e).badge]) : p[t(e)[s.badge]]), 1)
2398
2394
  ]),
2399
2395
  _: 2
2400
2396
  }, 1024)
@@ -2408,20 +2404,20 @@ const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key
2408
2404
  };
2409
2405
  }
2410
2406
  });
2411
- const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) => ({
2412
- tabular: za,
2407
+ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) => ({
2408
+ tabular: Ra,
2413
2409
  grid: pt,
2414
2410
  list: pt
2415
- })[c], Da = (c) => (qe("data-v-227a4f52"), c = c(), Ue(), c), Qa = {
2411
+ })[c], Ha = (c) => (qe("data-v-476a7284"), c = c(), Ue(), c), Da = {
2416
2412
  key: 2,
2417
2413
  class: "crud__controls"
2418
- }, Ga = {
2414
+ }, Qa = {
2419
2415
  key: 0,
2420
2416
  class: "crud__search"
2421
- }, Wa = { class: "crud__actions" }, Xa = { class: "crud__context-badge" }, Ya = /* @__PURE__ */ Da(() => /* @__PURE__ */ k("div", null, "Filtros", -1)), Ja = { key: 0 }, Ka = {
2417
+ }, Ga = { class: "crud__actions" }, Wa = { class: "crud__context-badge" }, Xa = /* @__PURE__ */ Ha(() => /* @__PURE__ */ k("div", null, "Filtros", -1)), Ya = { key: 0 }, Ja = {
2422
2418
  key: 3,
2423
2419
  class: "crud__pagination"
2424
- }, _t = 30, Za = /* @__PURE__ */ U({
2420
+ }, _t = 30, Ka = /* @__PURE__ */ U({
2425
2421
  __name: "aeria-crud",
2426
2422
  props: {
2427
2423
  collection: {},
@@ -2437,21 +2433,21 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2437
2433
  },
2438
2434
  emits: ["uiEvent"],
2439
2435
  setup(c, { emit: u }) {
2440
- const e = c, a = u, s = Re(), l = vt({
2436
+ const e = c, a = u, l = Re(), s = vt({
2441
2437
  delay: 600
2442
2438
  }), r = ce("meta"), y = Te(), { reachedEnd: p, detach: h } = Xe(null, {
2443
2439
  antecipate: 600
2444
2440
  }), d = !y.value.md || e.scrollPagination;
2445
2441
  d && ue(p, (O) => {
2446
- O && o.pagination.recordsTotal > o.items.length && C.value < _t && (C.value += 1, j());
2442
+ O && o.pagination.recordsTotal > o.items.length && C.value < _t && (C.value += 1, T());
2447
2443
  });
2448
2444
  const o = ce(e.collection);
2449
- ta(o, {
2445
+ ea(o, {
2450
2446
  persistInQuery: !e.noQueryPersistence
2451
2447
  });
2452
- const v = Mt(), b = e.action ? je(e.action) ? e.action.value : e.action : Rt(o, s, v);
2448
+ const v = Mt(), b = e.action ? je(e.action) ? e.action.value : e.action : Rt(o, l, v);
2453
2449
  Be.value = b[0], ct.value = b[1];
2454
- const C = Y(0), R = Y(!1), j = async (O) => {
2450
+ const C = Y(0), R = Y(!1), T = async (O) => {
2455
2451
  o.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
2456
2452
  const z = {
2457
2453
  filters: o.activeFilters,
@@ -2460,33 +2456,33 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2460
2456
  project: o.preferredTableProperties.length > 0 ? o.preferredTableProperties : o.description.table || Object.keys(o.properties)
2461
2457
  };
2462
2458
  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;
2463
- const { data: te, pagination: oe } = await o.$actions.retrieveItems(z);
2464
- o.pagination.recordsCount = oe.recordsCount, o.pagination.recordsTotal = oe.recordsTotal, C.value === 0 && o.items.splice(0), o.items.push(...te), o.loading.getAll = !1, R.value = !0;
2459
+ const { data: ee, pagination: ne } = await o.$actions.retrieveItems(z);
2460
+ 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;
2465
2461
  }, q = async (O) => {
2466
- s.push({
2462
+ l.push({
2467
2463
  query: {
2468
- ...s.currentRoute.value.query,
2464
+ ...l.currentRoute.value.query,
2469
2465
  offset: O.offset,
2470
2466
  limit: O.limit
2471
2467
  }
2472
- }), o.pagination.offset = O.offset, o.pagination.limit = O.limit, j();
2473
- }, w = fe("emptyComponent", null);
2468
+ }), o.pagination.offset = O.offset, o.pagination.limit = O.limit, T();
2469
+ }, w = fe("noResultsComponent", null);
2474
2470
  ue(() => [
2475
- s.currentRoute.value.path,
2476
- s.currentRoute.value.query.section
2471
+ l.currentRoute.value.path,
2472
+ l.currentRoute.value.query.section
2477
2473
  ], async (O, z) => {
2478
2474
  if (z && z[0] === O[0] && z[1] === O[1])
2479
2475
  return;
2480
- const te = s.currentRoute.value;
2481
- if (r.view.title = e.collection, r.view.collection = e.collection, ut.value = !1, !e.noFetch && !te.query._popstate) {
2482
- const oe = zt(o, te);
2483
- Object.keys(oe).length > 0 && Object.assign(o.filters, oe), await j();
2476
+ const ee = l.currentRoute.value;
2477
+ if (r.view.title = e.collection, r.view.collection = e.collection, ut.value = !1, !e.noFetch && !ee.query._popstate) {
2478
+ const ne = zt(o, ee);
2479
+ Object.keys(ne).length > 0 && Object.assign(o.filters, ne), await T();
2484
2480
  }
2485
2481
  }, {
2486
2482
  immediate: !0,
2487
2483
  flush: "post"
2488
2484
  });
2489
- const [ae] = l((O) => (s.push({
2485
+ const [le] = s((O) => (l.push({
2490
2486
  query: {
2491
2487
  search: O || void 0
2492
2488
  }
@@ -2495,32 +2491,32 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2495
2491
  $search: `"${O}"`,
2496
2492
  $caseSensitive: !1
2497
2493
  }
2498
- }), j({
2494
+ }), T({
2499
2495
  offset: 0
2500
- })) : (o.filters = Se(o.freshFilters), C.value = 0, j())));
2496
+ })) : (o.filters = Se(o.freshFilters), C.value = 0, T())));
2501
2497
  ue(() => o.textQuery, (O) => {
2502
- ae(O);
2498
+ le(O);
2503
2499
  });
2504
- const x = (O) => {
2500
+ const oe = (O) => {
2505
2501
  O.currentLayout = O.currentLayout === "tabular" ? O.description.layout.name : "tabular";
2506
2502
  };
2507
2503
  Vt(() => {
2508
2504
  o.$actions.clearFilters(), o.textQuery = "", h();
2509
2505
  }), ue(() => ct.value, async (O) => {
2510
- var oe;
2506
+ var ne;
2511
2507
  const z = Se(O);
2512
- let te;
2508
+ let ee;
2513
2509
  if (z)
2514
2510
  if ([
2515
2511
  "spawnEdit",
2516
2512
  "spawnView",
2517
2513
  "duplicate"
2518
- ].includes(z.name) && (te = o.$actions.get({
2514
+ ].includes(z.name) && (ee = o.$actions.get({
2519
2515
  filters: {
2520
2516
  _id: z.params._id
2521
2517
  }
2522
2518
  })), z.name === "spawnAdd")
2523
- o.$actions.clearItem(), (oe = z.params) != null && oe.item && (o.$actions.setItem(z.params.item), Object.keys(z.params.item).forEach((_) => {
2519
+ o.$actions.clearItem(), (ne = z.params) != null && ne.item && (o.$actions.setItem(z.params.item), Object.keys(z.params.item).forEach((_) => {
2524
2520
  delete o.referenceItem[_];
2525
2521
  })), ie.value = "add";
2526
2522
  else if (z.name === "spawnEdit")
@@ -2528,7 +2524,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2528
2524
  else if (z.name === "spawnView")
2529
2525
  ut.value = !0, ie.value = "view";
2530
2526
  else if (z.name === "duplicate") {
2531
- await te;
2527
+ await ee;
2532
2528
  const _ = Object.entries(o.item).reduce((E, [I, L]) => {
2533
2529
  if (!(I in o.properties))
2534
2530
  return {
@@ -2538,19 +2534,19 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2538
2534
  const A = o.properties[I];
2539
2535
  if (A.readOnly)
2540
2536
  return E;
2541
- const T = (ne) => {
2537
+ const j = (te) => {
2542
2538
  const B = pe(A);
2543
2539
  if (!B)
2544
- return ne;
2540
+ return te;
2545
2541
  if (B.$ref === "file")
2546
2542
  return {};
2547
- if (B.inline && ne) {
2548
- const { _id: se, ..._e } = ne;
2543
+ if (B.inline && te) {
2544
+ const { _id: ae, ..._e } = te;
2549
2545
  return _e;
2550
2546
  }
2551
- return ne;
2547
+ return te;
2552
2548
  };
2553
- return L = Array.isArray(L) ? L.map(T) : T(L), {
2549
+ return L = Array.isArray(L) ? L.map(j) : j(L), {
2554
2550
  ...E,
2555
2551
  [I]: L
2556
2552
  };
@@ -2566,26 +2562,26 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2566
2562
  const S = D(() => o.individualActions.map((O) => ({
2567
2563
  click: Be.value(O),
2568
2564
  ...O
2569
- }))), ee = D(() => o.actions.filter((O) => !O.button));
2565
+ }))), x = D(() => o.actions.filter((O) => !O.button));
2570
2566
  return ve(Ee, D(() => e.collection)), ve("individualActions", S), (O, z) => {
2571
- var _, E, I, L, A, T, ne;
2572
- const te = N("clickable"), oe = N("loading");
2567
+ var _, E, I, L, A, j, te;
2568
+ const ee = N("clickable"), ne = N("loading");
2573
2569
  return n(), i(J, null, [
2574
- t(Ve) ? (n(), $(xo, {
2570
+ t(Ve) ? (n(), $(No, {
2575
2571
  key: t(o).$id,
2576
2572
  modelValue: t(Ve),
2577
2573
  "onUpdate:modelValue": z[0] || (z[0] = (B) => je(Ve) ? Ve.value = B : null)
2578
2574
  }, null, 8, ["modelValue"])) : f("", !0),
2579
- t(ie) ? (n(), $(ea, { key: 1 }, de({ _: 2 }, [
2575
+ t(ie) ? (n(), $(xo, { key: 1 }, de({ _: 2 }, [
2580
2576
  H(Object.keys(O.$slots).filter((B) => B.startsWith("field-")), (B) => ({
2581
2577
  name: B,
2582
- fn: m((se) => [
2583
- V(O.$slots, B, le(be(se)), void 0, !0)
2578
+ fn: m((ae) => [
2579
+ V(O.$slots, B, se(be(ae)), void 0, !0)
2584
2580
  ])
2585
2581
  }))
2586
2582
  ]), 1024)) : f("", !0),
2587
- !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", Qa, [
2588
- t(o).description.search ? (n(), i("div", Ga, [
2583
+ !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, [
2584
+ t(o).description.search ? (n(), i("div", Qa, [
2589
2585
  F(Ie, G({
2590
2586
  modelValue: t(o).textQuery,
2591
2587
  "onUpdate:modelValue": z[1] || (z[1] = (B) => t(o).textQuery = B)
@@ -2597,8 +2593,8 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2597
2593
  }
2598
2594
  }), null, 16, ["modelValue"])
2599
2595
  ])) : f("", !0),
2600
- k("div", Wa, [
2601
- ee.value.length > 0 || !O.noLayoutToggle && t(o).description.layout && ((I = t(o).description.layout) == null ? void 0 : I.name) !== "tabular" ? (n(), $(Ce, { key: 0 }, de({
2596
+ k("div", Ga, [
2597
+ x.value.length > 0 || !O.noLayoutToggle && t(o).description.layout && ((I = t(o).description.layout) == null ? void 0 : I.name) !== "tabular" ? (n(), $(Ce, { key: 0 }, de({
2602
2598
  default: m(() => [
2603
2599
  F(re, {
2604
2600
  variant: "alt",
@@ -2629,9 +2625,9 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2629
2625
  ]),
2630
2626
  _: 1
2631
2627
  })), [
2632
- [te]
2628
+ [ee]
2633
2629
  ]),
2634
- k("div", Xa, [
2630
+ k("div", Wa, [
2635
2631
  t(o).filtersCount ? (n(), $($e, { key: 0 }, {
2636
2632
  default: m(() => [
2637
2633
  Q(g(t(o).filtersCount), 1)
@@ -2647,20 +2643,20 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2647
2643
  fn: m(() => [
2648
2644
  Z((n(), $(K, {
2649
2645
  icon: "table",
2650
- onClick: z[3] || (z[3] = (B) => x(t(o)))
2646
+ onClick: z[3] || (z[3] = (B) => oe(t(o)))
2651
2647
  }, {
2652
2648
  default: m(() => [
2653
2649
  Q(g(t(M)("change_layout", { capitalize: !0 })), 1)
2654
2650
  ]),
2655
2651
  _: 1
2656
2652
  })), [
2657
- [te]
2653
+ [ee]
2658
2654
  ])
2659
2655
  ]),
2660
2656
  key: "1"
2661
2657
  } : void 0,
2662
- H(ee.value, (B, se) => ({
2663
- name: `action-${se}`,
2658
+ H(x.value, (B, ae) => ({
2659
+ name: `action-${ae}`,
2664
2660
  fn: m(() => [
2665
2661
  B ? (n(), $(K, {
2666
2662
  key: 0,
@@ -2682,7 +2678,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2682
2678
  onClick: z[4] || (z[4] = (B) => Ve.value = !0)
2683
2679
  }, {
2684
2680
  default: m(() => [
2685
- Ya,
2681
+ Xa,
2686
2682
  t(o).filtersCount ? (n(), $($e, { key: 0 }, {
2687
2683
  default: m(() => [
2688
2684
  Q(g(t(o).filtersCount), 1)
@@ -2692,8 +2688,8 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2692
2688
  ]),
2693
2689
  _: 1
2694
2690
  })) : f("", !0),
2695
- (n(!0), i(J, null, H(t(o).actions.filter((B) => B.button), (B, se) => (n(), $(re, {
2696
- key: `action-${se}`,
2691
+ (n(!0), i(J, null, H(t(o).actions.filter((B) => B.button), (B, ae) => (n(), $(re, {
2692
+ key: `action-${ae}`,
2697
2693
  icon: B.icon,
2698
2694
  disabled: t(o).selected.length === 0 && B.selection,
2699
2695
  onClick: (_e) => t(Be)(B)({ _id: t(o).selected.map((ke) => ke._id) })
@@ -2707,8 +2703,8 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2707
2703
  ])
2708
2704
  ])) : f("", !0),
2709
2705
  Z((n(), i("div", null, [
2710
- t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(w) || O.$slots.empty) ? (n(), i("div", Ja, [
2711
- t(w) ? (n(), $(ye(t(w)), le(G({ key: 0 }, {
2706
+ t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(w) || O.$slots.empty) ? (n(), i("div", Ya, [
2707
+ t(w) ? (n(), $(ye(t(w)), se(G({ key: 0 }, {
2712
2708
  collection: t(o).$id
2713
2709
  })), {
2714
2710
  default: m(() => [
@@ -2726,22 +2722,22 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2726
2722
  })) : f("", !0)
2727
2723
  ]),
2728
2724
  _: 1
2729
- }, 16)) : V(O.$slots, "empty", le(G({ key: 1 }, {
2725
+ }, 16)) : V(O.$slots, "empty", se(G({ key: 1 }, {
2730
2726
  collection: t(o).$id
2731
2727
  })), void 0, !0)
2732
- ])) : O.$slots.component ? V(O.$slots, "component", le(G({ key: 1 }, {
2728
+ ])) : O.$slots.component ? V(O.$slots, "component", se(G({ key: 1 }, {
2733
2729
  store: t(o)
2734
- })), void 0, !0) : (n(), $(ye(t(Ha)(((A = O.layout) == null ? void 0 : A.name) || t(o).$currentLayout)), G({ key: 2 }, {
2730
+ })), void 0, !0) : (n(), $(ye(t(Ea)(((A = O.layout) == null ? void 0 : A.name) || t(o).$currentLayout)), G({ key: 2 }, {
2735
2731
  individualActions: S.value,
2736
- layoutOptions: ((T = O.layout) == null ? void 0 : T.options) || t(o).layout.options,
2732
+ layoutOptions: ((j = O.layout) == null ? void 0 : j.options) || t(o).layout.options,
2737
2733
  componentProps: O.componentProps
2738
2734
  }, {
2739
- "component-name": ((ne = O.layout) == null ? void 0 : ne.name) || t(o).$currentLayout
2735
+ "component-name": ((te = O.layout) == null ? void 0 : te.name) || t(o).$currentLayout
2740
2736
  }), de({ _: 2 }, [
2741
2737
  H(Object.keys(O.$slots).filter((B) => B.startsWith("row-")), (B) => ({
2742
2738
  name: B,
2743
- fn: m((se) => [
2744
- V(O.$slots, B, le(be(se)), void 0, !0)
2739
+ fn: m((ae) => [
2740
+ V(O.$slots, B, se(be(ae)), void 0, !0)
2745
2741
  ])
2746
2742
  })),
2747
2743
  O.$slots.tfoot ? {
@@ -2753,10 +2749,10 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2753
2749
  } : void 0
2754
2750
  ]), 1040, ["component-name"]))
2755
2751
  ])), [
2756
- [oe, (!t(d) || C.value === _t) && t(o).loading.getAll]
2752
+ [ne, (!t(d) || C.value === _t) && t(o).loading.getAll]
2757
2753
  ]),
2758
- !t(o).loading.getAll && t(o).itemsCount > 0 ? (n(), i("div", Ka, [
2759
- F(zn, {
2754
+ !t(o).loading.getAll && t(o).itemsCount > 0 ? (n(), i("div", Ja, [
2755
+ F(Rn, {
2760
2756
  pagination: t(o).pagination,
2761
2757
  onPaginate: q
2762
2758
  }, null, 8, ["pagination"])
@@ -2765,7 +2761,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
2765
2761
  };
2766
2762
  }
2767
2763
  });
2768
- const Ls = /* @__PURE__ */ X(Za, [["__scopeId", "data-v-227a4f52"]]), Pa = { class: "prompt" }, Na = /* @__PURE__ */ U({
2764
+ const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { class: "prompt" }, Pa = /* @__PURE__ */ U({
2769
2765
  __name: "aeria-prompt",
2770
2766
  props: {
2771
2767
  title: {},
@@ -2775,7 +2771,7 @@ const Ls = /* @__PURE__ */ X(Za, [["__scopeId", "data-v-227a4f52"]]), Pa = { cla
2775
2771
  const u = ce("meta"), e = (a) => {
2776
2772
  u.$actions.fulfillPrompt(a);
2777
2773
  };
2778
- return (a, s) => (n(), $(Ae, {
2774
+ return (a, l) => (n(), $(Ae, {
2779
2775
  float: "",
2780
2776
  "fill-footer": "",
2781
2777
  "close-hint": !1,
@@ -2786,23 +2782,23 @@ const Ls = /* @__PURE__ */ X(Za, [["__scopeId", "data-v-227a4f52"]]), Pa = { cla
2786
2782
  class: "prompt__actions",
2787
2783
  style: he(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
2788
2784
  }, [
2789
- (n(!0), i(J, null, H(a.actions, (l, r) => (n(), $(me, {
2785
+ (n(!0), i(J, null, H(a.actions, (s, r) => (n(), $(me, {
2790
2786
  key: `action-${r}`,
2791
2787
  class: W(`
2792
2788
  prompt__action
2793
- prompt__action--${l.variant || "primary"}
2789
+ prompt__action--${s.variant || "primary"}
2794
2790
  `),
2795
- onClick: (y) => l.click ? l.click(l) : e(l)
2791
+ onClick: (y) => s.click ? s.click(s) : e(s)
2796
2792
  }, {
2797
2793
  default: m(() => [
2798
- Q(g(l.title || l.name), 1)
2794
+ Q(g(s.title || s.name), 1)
2799
2795
  ]),
2800
2796
  _: 2
2801
2797
  }, 1032, ["class", "onClick"]))), 128))
2802
2798
  ], 4)
2803
2799
  ]),
2804
2800
  default: m(() => [
2805
- k("div", Pa, [
2801
+ k("div", Za, [
2806
2802
  V(a.$slots, "default", {}, void 0, !0)
2807
2803
  ])
2808
2804
  ]),
@@ -2818,7 +2814,7 @@ const Ls = /* @__PURE__ */ X(Za, [["__scopeId", "data-v-227a4f52"]]), Pa = { cla
2818
2814
  ]), 1024));
2819
2815
  }
2820
2816
  });
2821
- const xa = /* @__PURE__ */ X(Na, [["__scopeId", "data-v-73673b07"]]), es = { class: "toast__content" }, ts = { class: "toast__time" }, ns = /* @__PURE__ */ U({
2817
+ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { class: "toast__content" }, el = { class: "toast__time" }, tl = /* @__PURE__ */ U({
2822
2818
  __name: "aeria-toast",
2823
2819
  props: {
2824
2820
  idx: {},
@@ -2829,35 +2825,35 @@ const xa = /* @__PURE__ */ X(Na, [["__scopeId", "data-v-73673b07"]]), es = { cla
2829
2825
  setup(c) {
2830
2826
  const u = ce("meta");
2831
2827
  return (e, a) => {
2832
- const s = N("clickable");
2828
+ const l = N("clickable");
2833
2829
  return Z((n(), i("div", {
2834
2830
  class: W({
2835
2831
  toast: !0,
2836
2832
  "toast--animate": t(u).toasts[0].itr === e.itr
2837
2833
  }),
2838
- onAnimationend: a[0] || (a[0] = (l) => t(u).$actions.popToast()),
2839
- onClick: a[1] || (a[1] = (l) => t(u).$actions.popToast(e.itr))
2834
+ onAnimationend: a[0] || (a[0] = (s) => t(u).$actions.popToast()),
2835
+ onClick: a[1] || (a[1] = (s) => t(u).$actions.popToast(e.itr))
2840
2836
  }, [
2841
2837
  F(K, G(
2842
2838
  e.icon ? { icon: e.icon } : { icon: "warning-circle" },
2843
2839
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
2844
2840
  ), null, 16),
2845
- k("div", es, [
2841
+ k("div", xa, [
2846
2842
  V(e.$slots, "default", {}, void 0, !0),
2847
- k("div", ts, g(e.formatDateTime(e.date, { hoursOnly: !0 })), 1)
2843
+ k("div", el, g(e.formatDateTime(e.date, { hoursOnly: !0 })), 1)
2848
2844
  ])
2849
2845
  ], 34)), [
2850
- [s]
2846
+ [l]
2851
2847
  ]);
2852
2848
  };
2853
2849
  }
2854
2850
  });
2855
- const os = /* @__PURE__ */ X(ns, [["__scopeId", "data-v-54736bc3"]]), as = ["innerHTML"], ss = { class: "main__toasts" }, ls = ["innerHTML"], is = /* @__PURE__ */ U({
2851
+ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["innerHTML"], al = { class: "main__toasts" }, ll = ["innerHTML"], sl = /* @__PURE__ */ U({
2856
2852
  __name: "aeria-main",
2857
2853
  setup(c) {
2858
2854
  const u = ce("meta"), e = D(() => u.themeOverride || u.theme);
2859
- return (a, s) => {
2860
- const l = Ct("router-view");
2855
+ return (a, l) => {
2856
+ const s = Ct("router-view");
2861
2857
  return n(), i("main", {
2862
2858
  id: "main",
2863
2859
  class: W(`
@@ -2868,7 +2864,7 @@ const os = /* @__PURE__ */ X(ns, [["__scopeId", "data-v-54736bc3"]]), as = ["inn
2868
2864
  }, [
2869
2865
  (n(), $(It, null, {
2870
2866
  default: m(() => [
2871
- F(l, null, {
2867
+ F(s, null, {
2872
2868
  default: m(({ Component: r }) => [
2873
2869
  (n(), $(ye(r), null, de({ _: 2 }, [
2874
2870
  H(Object.keys(a.$slots), (y) => ({
@@ -2887,37 +2883,37 @@ const os = /* @__PURE__ */ X(ns, [["__scopeId", "data-v-54736bc3"]]), as = ["inn
2887
2883
  V(a.$slots, "default", {}, void 0, !0),
2888
2884
  F(Ae, G({
2889
2885
  modelValue: t(u).modal.visible,
2890
- "onUpdate:modelValue": s[0] || (s[0] = (r) => t(u).modal.visible = r),
2886
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => t(u).modal.visible = r),
2891
2887
  float: "",
2892
2888
  "close-hint": ""
2893
2889
  }, t(u).modal, {
2894
2890
  "overlay-layer": 70,
2895
- onOverlayClick: s[1] || (s[1] = (r) => t(u).modal.visible = !1)
2891
+ onOverlayClick: l[1] || (l[1] = (r) => t(u).modal.visible = !1)
2896
2892
  }), {
2897
2893
  default: m(() => [
2898
2894
  t(u).modal.body ? (n(), i("div", {
2899
2895
  key: 0,
2900
2896
  style: { "white-space": "pre-wrap" },
2901
2897
  innerHTML: t(u).modal.body
2902
- }, null, 8, as)) : f("", !0),
2898
+ }, null, 8, ol)) : f("", !0),
2903
2899
  t(u).modal.component ? (n(), $(ye(t(u).modal.component), { key: 1 })) : f("", !0)
2904
2900
  ]),
2905
2901
  _: 1
2906
2902
  }, 16, ["modelValue"]),
2907
- t(u).prompt.visible ? (n(), $(xa, le(G({ key: 0 }, t(u).prompt)), {
2903
+ t(u).prompt.visible ? (n(), $(Na, se(G({ key: 0 }, t(u).prompt)), {
2908
2904
  default: m(() => [
2909
2905
  Q(g(t(u).prompt.body), 1)
2910
2906
  ]),
2911
2907
  _: 1
2912
2908
  }, 16)) : f("", !0),
2913
- k("div", ss, [
2914
- (n(!0), i(J, null, H(t(u).toasts, (r) => (n(), $(os, G(r, {
2909
+ k("div", al, [
2910
+ (n(!0), i(J, null, H(t(u).toasts, (r) => (n(), $(nl, G(r, {
2915
2911
  key: `toast-${r.itr}`
2916
2912
  }), {
2917
2913
  default: m(() => [
2918
2914
  k("div", {
2919
2915
  innerHTML: t(M)(r.text)
2920
- }, null, 8, ls)
2916
+ }, null, 8, ll)
2921
2917
  ]),
2922
2918
  _: 2
2923
2919
  }, 1040))), 128))
@@ -2926,10 +2922,10 @@ const os = /* @__PURE__ */ X(ns, [["__scopeId", "data-v-54736bc3"]]), as = ["inn
2926
2922
  };
2927
2923
  }
2928
2924
  });
2929
- const Rs = /* @__PURE__ */ X(is, [["__scopeId", "data-v-1166be3d"]]);
2930
- const rs = {}, us = { class: "menu" };
2931
- function cs(c, u) {
2932
- return n(), i("menu", us, [
2925
+ const Tl = /* @__PURE__ */ X(sl, [["__scopeId", "data-v-1166be3d"]]);
2926
+ const il = {}, rl = { class: "menu" };
2927
+ function ul(c, u) {
2928
+ return n(), i("menu", rl, [
2933
2929
  (n(!0), i(J, null, H(Object.keys(c.$slots), (e) => (n(), i("div", {
2934
2930
  key: e,
2935
2931
  class: "menu__entry"
@@ -2938,16 +2934,16 @@ function cs(c, u) {
2938
2934
  ]))), 128))
2939
2935
  ]);
2940
2936
  }
2941
- const zs = /* @__PURE__ */ X(rs, [["render", cs], ["__scopeId", "data-v-3cfef7fb"]]), ds = { class: "tabs" }, ps = {
2937
+ const Ll = /* @__PURE__ */ X(il, [["render", ul], ["__scopeId", "data-v-3cfef7fb"]]), cl = { class: "tabs" }, dl = {
2942
2938
  key: 0,
2943
2939
  class: "tabs__horizontal"
2944
- }, _s = {
2940
+ }, pl = {
2945
2941
  key: 0,
2946
2942
  class: "tabs__tab tabs__tab--info"
2947
- }, ms = ["onClick"], fs = {
2943
+ }, _l = ["onClick"], ml = {
2948
2944
  key: 1,
2949
2945
  class: "tabs__context-menu"
2950
- }, vs = ["onClick"], ys = /* @__PURE__ */ U({
2946
+ }, fl = ["onClick"], vl = /* @__PURE__ */ U({
2951
2947
  __name: "aeria-tabs",
2952
2948
  props: {
2953
2949
  query: {},
@@ -2955,11 +2951,11 @@ const zs = /* @__PURE__ */ X(rs, [["render", cs], ["__scopeId", "data-v-3cfef7fb
2955
2951
  dropdown: { type: Boolean }
2956
2952
  },
2957
2953
  setup(c) {
2958
- const u = c, e = At(), a = Re(), s = Te(), l = "query" in u && u.query ? "query" : "params", r = D(() => {
2959
- const p = a.currentRoute.value[l][u.query || u.param];
2954
+ const u = c, e = At(), a = Re(), l = Te(), s = "query" in u && u.query ? "query" : "params", r = D(() => {
2955
+ const p = a.currentRoute.value[s][u.query || u.param];
2960
2956
  return p || Object.keys(e)[0];
2961
2957
  }), y = (p) => {
2962
- if (l === "query") {
2958
+ if (s === "query") {
2963
2959
  a.push({
2964
2960
  query: {
2965
2961
  ...a.currentRoute.value.query,
@@ -2976,9 +2972,9 @@ const zs = /* @__PURE__ */ X(rs, [["render", cs], ["__scopeId", "data-v-3cfef7fb
2976
2972
  };
2977
2973
  return (p, h) => {
2978
2974
  const d = N("clickable");
2979
- return n(), i("div", ds, [
2980
- t(s).md && !p.dropdown ? (n(), i("div", ps, [
2981
- p.$slots.default ? (n(), i("div", _s, [
2975
+ return n(), i("div", cl, [
2976
+ t(l).md && !p.dropdown ? (n(), i("div", dl, [
2977
+ p.$slots.default ? (n(), i("div", pl, [
2982
2978
  V(p.$slots, "default", {}, void 0, !0)
2983
2979
  ])) : f("", !0),
2984
2980
  (n(!0), i(J, null, H(Object.keys(p.$slots).filter((o) => o !== "default"), (o, v) => (n(), i("div", {
@@ -2990,8 +2986,8 @@ const zs = /* @__PURE__ */ X(rs, [["render", cs], ["__scopeId", "data-v-3cfef7fb
2990
2986
  onClick: (b) => y(o)
2991
2987
  }, [
2992
2988
  V(p.$slots, o, {}, void 0, !0)
2993
- ], 10, ms))), 128))
2994
- ])) : (n(), i("div", fs, [
2989
+ ], 10, _l))), 128))
2990
+ ])) : (n(), i("div", ml, [
2995
2991
  F(Ce, null, de({
2996
2992
  default: m(() => [
2997
2993
  Z((n(), $(K, {
@@ -3017,7 +3013,7 @@ const zs = /* @__PURE__ */ X(rs, [["render", cs], ["__scopeId", "data-v-3cfef7fb
3017
3013
  onClick: (v) => y(o)
3018
3014
  }, [
3019
3015
  V(p.$slots, o, {}, void 0, !0)
3020
- ], 8, vs)
3016
+ ], 8, fl)
3021
3017
  ])
3022
3018
  }))
3023
3019
  ]), 1024)
@@ -3026,7 +3022,7 @@ const zs = /* @__PURE__ */ X(rs, [["render", cs], ["__scopeId", "data-v-3cfef7fb
3026
3022
  };
3027
3023
  }
3028
3024
  });
3029
- const hs = /* @__PURE__ */ X(ys, [["__scopeId", "data-v-d12cddeb"]]), $s = U({
3025
+ const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-d12cddeb"]]), hl = U({
3030
3026
  props: {
3031
3027
  initialValue: String,
3032
3028
  promise: Promise
@@ -3037,31 +3033,31 @@ const hs = /* @__PURE__ */ X(ys, [["__scopeId", "data-v-d12cddeb"]]), $s = U({
3037
3033
  u.value = e;
3038
3034
  }), () => Ot("div", u.value);
3039
3035
  }
3040
- }), bs = ["onClick"], gs = { key: 1 }, ks = /* @__PURE__ */ U({
3036
+ }), $l = ["onClick"], bl = { key: 1 }, gl = /* @__PURE__ */ U({
3041
3037
  __name: "aeria-crud-topbar",
3042
3038
  props: {
3043
3039
  collection: {}
3044
3040
  },
3045
3041
  setup(c) {
3046
- const u = c, a = Re().currentRoute, s = D(() => {
3042
+ const u = c, a = Re().currentRoute, l = D(() => {
3047
3043
  try {
3048
- const l = u.collection ? u.collection : a.value.meta.collection || a.value.params.collection;
3049
- return ge(l);
3044
+ const s = u.collection ? u.collection : a.value.meta.collection || a.value.params.collection;
3045
+ return ge(s);
3050
3046
  } catch {
3051
3047
  return null;
3052
3048
  }
3053
3049
  });
3054
- return (l, r) => s.value && s.value.description.filtersPresets ? (n(), $(hs, {
3050
+ return (s, r) => l.value && l.value.description.filtersPresets ? (n(), $(yl, {
3055
3051
  key: 0,
3056
3052
  dropdown: "",
3057
3053
  query: "section"
3058
3054
  }, de({ _: 2 }, [
3059
- H(Object.entries(s.value.description.filtersPresets), ([y, p]) => ({
3055
+ H(Object.entries(l.value.description.filtersPresets), ([y, p]) => ({
3060
3056
  name: y,
3061
3057
  fn: m(() => [
3062
3058
  k("div", {
3063
3059
  class: "topbar__preset",
3064
- onClick: (h) => t(ht)(p, s.value)
3060
+ onClick: (h) => t(ht)(p, l.value)
3065
3061
  }, [
3066
3062
  p.icon ? (n(), $(K, {
3067
3063
  key: 0,
@@ -3071,26 +3067,26 @@ const hs = /* @__PURE__ */ X(ys, [["__scopeId", "data-v-d12cddeb"]]), $s = U({
3071
3067
  Q(g(p.name || t(M)(y, { plural: !0 })), 1)
3072
3068
  ]),
3073
3069
  _: 2
3074
- }, 1032, ["icon"])) : (n(), i("div", gs, g(p.name || t(M)(y, { plural: !0 })), 1)),
3070
+ }, 1032, ["icon"])) : (n(), i("div", bl, g(p.name || t(M)(y, { plural: !0 })), 1)),
3075
3071
  p.badgeFunction ? (n(), $($e, { key: 2 }, {
3076
3072
  default: m(() => [
3077
- F(t($s), {
3073
+ F(t(hl), {
3078
3074
  "initial-value": "0",
3079
- promise: s.value.$functions[p.badgeFunction]({ filters: p.filters })
3075
+ promise: l.value.$functions[p.badgeFunction]({ filters: p.filters })
3080
3076
  }, null, 8, ["promise"])
3081
3077
  ]),
3082
3078
  _: 2
3083
3079
  }, 1024)) : f("", !0)
3084
- ], 8, bs)
3080
+ ], 8, $l)
3085
3081
  ])
3086
3082
  }))
3087
3083
  ]), 1024)) : f("", !0);
3088
3084
  }
3089
3085
  });
3090
- const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3086
+ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3091
3087
  __proto__: null,
3092
- default: Vs
3093
- }, Symbol.toStringTag, { value: "Module" })), Fs = /* @__PURE__ */ U({
3088
+ default: kl
3089
+ }, Symbol.toStringTag, { value: "Module" })), Rl = /* @__PURE__ */ U({
3094
3090
  __name: "aeria-password-form",
3095
3091
  props: {
3096
3092
  modelValue: {}
@@ -3103,7 +3099,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
3103
3099
  u.modelValue.password,
3104
3100
  u.modelValue.confirmation
3105
3101
  ));
3106
- return (s, l) => (n(), $(De, {
3102
+ return (l, s) => (n(), $(De, {
3107
3103
  form: {
3108
3104
  password: {
3109
3105
  type: "string",
@@ -3116,17 +3112,17 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
3116
3112
  inputType: "password"
3117
3113
  }
3118
3114
  },
3119
- "model-value": s.modelValue,
3120
- "onUpdate:modelValue": l[0] || (l[0] = (r) => s.$emit("update:modelValue", r))
3115
+ "model-value": l.modelValue,
3116
+ "onUpdate:modelValue": s[0] || (s[0] = (r) => l.$emit("update:modelValue", r))
3121
3117
  }, {
3122
3118
  after: m(() => [
3123
3119
  k("div", null, g(a.value || "Senhas conferem"), 1),
3124
- V(s.$slots, "default", le(be({ passwordError: a.value })))
3120
+ V(l.$slots, "default", se(be({ passwordError: a.value })))
3125
3121
  ]),
3126
3122
  _: 3
3127
3123
  }, 8, ["model-value"]));
3128
3124
  }
3129
- }), Ms = (c, u = []) => ({
3125
+ }), zl = (c, u = []) => ({
3130
3126
  path: "/user",
3131
3127
  name: "/builtin:user",
3132
3128
  component: c,
@@ -3144,7 +3140,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
3144
3140
  {
3145
3141
  path: "signin",
3146
3142
  name: "/user/signin",
3147
- component: () => import("./signin-51f03695.js"),
3143
+ component: () => import("./signin-d5a6e078.js"),
3148
3144
  meta: {
3149
3145
  title: "Autenticação"
3150
3146
  }
@@ -3152,7 +3148,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
3152
3148
  {
3153
3149
  path: "signup",
3154
3150
  name: "/user/signup",
3155
- component: () => import("./signup-8e13a52e.js"),
3151
+ component: () => import("./signup-f5a090a1.js"),
3156
3152
  meta: {
3157
3153
  title: "Registro"
3158
3154
  }
@@ -3160,13 +3156,13 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
3160
3156
  {
3161
3157
  path: "activation",
3162
3158
  name: "/user/activation",
3163
- component: () => import("./activation-5643d715.js"),
3159
+ component: () => import("./activation-ff3d6437.js"),
3164
3160
  meta: {
3165
3161
  title: "Ativação"
3166
3162
  }
3167
3163
  }
3168
3164
  ])
3169
- }), qs = (c, u = []) => ({
3165
+ }), Fl = (c, u = []) => ({
3170
3166
  path: "/dashboard",
3171
3167
  name: "/builtin:dashboard",
3172
3168
  component: c,
@@ -3182,8 +3178,8 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
3182
3178
  name: "/dashboard/crud",
3183
3179
  props: !0,
3184
3180
  components: {
3185
- default: () => import("./crud-view-1c8f821b.js"),
3186
- topbar: () => Promise.resolve().then(() => Cs)
3181
+ default: () => import("./crud-view-637701b0.js"),
3182
+ topbar: () => Promise.resolve().then(() => Vl)
3187
3183
  },
3188
3184
  meta: {
3189
3185
  title: "%viewTitle%"
@@ -3200,7 +3196,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
3200
3196
  children: [
3201
3197
  {
3202
3198
  path: "profile",
3203
- component: () => import("./profile-a4beaa01.js"),
3199
+ component: () => import("./profile-2b521e77.js"),
3204
3200
  meta: {
3205
3201
  title: "Meu perfil",
3206
3202
  icon: "user-square"
@@ -3209,7 +3205,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
3209
3205
  {
3210
3206
  path: "changepass",
3211
3207
  name: "/dashboard/user/changepass",
3212
- component: () => import("./password-change-6e95eef3.js"),
3208
+ component: () => import("./password-change-23a13368.js"),
3213
3209
  meta: {
3214
3210
  title: "Mudar senha",
3215
3211
  icon: "lock"
@@ -3221,36 +3217,36 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
3221
3217
  });
3222
3218
  export {
3223
3219
  De as A,
3224
- xa as B,
3225
- os as C,
3226
- Vs as D,
3227
- Ms as E,
3228
- qs as F,
3229
- Fs as _,
3220
+ Na as B,
3221
+ nl as C,
3222
+ kl as D,
3223
+ zl as E,
3224
+ Fl as F,
3225
+ Rl as _,
3230
3226
  re as a,
3231
3227
  K as b,
3232
- Dn as c,
3233
- Ls as d,
3228
+ Hn as c,
3229
+ jl as d,
3234
3230
  Me as e,
3235
- zs as f,
3231
+ Ll as f,
3236
3232
  Ae as g,
3237
3233
  X as h,
3238
- Ts as i,
3234
+ Sl as i,
3239
3235
  $e as j,
3240
3236
  me as k,
3241
- dn as l,
3237
+ cn as l,
3242
3238
  Ce as m,
3243
- Ma as n,
3244
- hn as o,
3245
- Rs as p,
3246
- zn as q,
3247
- Ra as r,
3248
- hs as s,
3249
- ho as t,
3239
+ Fa as n,
3240
+ yn as o,
3241
+ Tl as p,
3242
+ Rn as q,
3243
+ La as r,
3244
+ yl as s,
3245
+ yo as t,
3250
3246
  Ie as u,
3251
- Wn as v,
3252
- zo as w,
3247
+ Gn as v,
3248
+ Ro as w,
3253
3249
  He as x,
3254
- Nn as y,
3255
- $s as z
3250
+ Pn as y,
3251
+ hl as z
3256
3252
  };