@aeria-ui/ui 0.0.43 → 0.0.45

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