@aeria-ui/ui 0.0.35 → 0.0.36

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