@aeria-ui/ui 0.0.91 → 0.0.93

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