@aeria-ui/ui 0.0.20 → 0.0.22

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