@aeria-ui/ui 0.0.95 → 0.0.97

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,4 +1,4 @@
1
- import { defineComponent as U, ref as J, resolveDirective as te, openBlock as n, createElementBlock as s, normalizeClass as X, Fragment as x, renderList as G, withDirectives as P, toDisplayString as C, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as O, inject as _e, computed as H, createElementVNode as A, mergeProps as E, createBlock as k, withCtx as v, resolveDynamicComponent as he, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as Ye, popScopeId as Je, provide as ye, createSlots as ce, vModelCheckbox as wt, onUnmounted as Bt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
1
+ import { defineComponent as U, ref as J, resolveDirective as te, openBlock as n, createElementBlock as i, normalizeClass as X, Fragment as x, renderList as Q, withDirectives as P, toDisplayString as V, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as C, inject as _e, computed as G, createElementVNode as A, mergeProps as E, createBlock as k, withCtx as f, resolveDynamicComponent as he, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as Ye, popScopeId as Je, provide as ye, createSlots as ce, vModelCheckbox as wt, onUnmounted as Bt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
2
2
  import { t as R, useI18n as Lt } from "@aeria-ui/i18n";
3
3
  import { arraysIntersect as gt, deepClone as Ce, getReferenceProperty as me, convertConditionToQuery as zt, freshItem as qt, isRequired as Mt, evaluateCondition as We, deepMerge as qe } from "@aeriajs/common";
4
4
  import { useStore as re, getStoreId as Me, useParentStore as De, STORE_ID as Fe, getGlobalStateManager as Ze } from "@aeria-ui/state-management";
@@ -14,57 +14,57 @@ const Yt = ["onClick"], Jt = { key: 0 }, Zt = {
14
14
  noPadding: { type: Boolean },
15
15
  headers: {}
16
16
  },
17
- setup(c) {
18
- const r = J(null), l = (t) => typeof t == "string" ? t : t.title;
17
+ setup(d) {
18
+ const u = J(null), a = (t) => typeof t == "string" ? t : t.title;
19
19
  return (t, o) => {
20
- const u = te("clickable");
21
- return n(), s("div", {
20
+ const c = te("clickable");
21
+ return n(), i("div", {
22
22
  class: X({
23
23
  accordion: !0,
24
24
  "accordion--padded": !t.noPadding
25
25
  })
26
26
  }, [
27
- (n(!0), s(x, null, G(Object.keys(t.$slots).filter((i) => i !== "default"), (i, _) => (n(), s("div", {
28
- key: i,
27
+ (n(!0), i(x, null, Q(Object.keys(t.$slots).filter((r) => r !== "default"), (r, _) => (n(), i("div", {
28
+ key: r,
29
29
  class: "accordion__slot"
30
30
  }, [
31
- P((n(), s("div", {
31
+ P((n(), i("div", {
32
32
  class: "accordion__header",
33
- onClick: (p) => r.value === i ? r.value = null : r.value = i
33
+ onClick: (p) => u.value === r ? u.value = null : u.value = r
34
34
  }, [
35
- t.enumerate ? (n(), s("span", Jt, C(_ + 1) + ". ", 1)) : y("", !0),
36
- Q(" " + C(t.headers[i] ? l(t.headers[i]) : e(R)(i)), 1)
35
+ t.enumerate ? (n(), i("span", Jt, V(_ + 1) + ". ", 1)) : y("", !0),
36
+ D(" " + V(t.headers[r] ? a(t.headers[r]) : e(R)(r)), 1)
37
37
  ], 8, Yt)), [
38
- [u]
38
+ [c]
39
39
  ]),
40
- r.value === i ? (n(), s("div", Zt, [
41
- O(t.$slots, i, {}, void 0, !0)
40
+ u.value === r ? (n(), i("div", Zt, [
41
+ C(t.$slots, r, {}, void 0, !0)
42
42
  ])) : y("", !0)
43
43
  ]))), 128))
44
44
  ], 2);
45
45
  };
46
46
  }
47
47
  });
48
- const W = (c, r) => {
49
- const l = c.__vccOpts || c;
50
- for (const [t, o] of r)
51
- l[t] = o;
52
- return l;
48
+ const W = (d, u) => {
49
+ const a = d.__vccOpts || d;
50
+ for (const [t, o] of u)
51
+ a[t] = o;
52
+ return a;
53
53
  }, zl = /* @__PURE__ */ W(Pt, [["__scopeId", "data-v-3ea933d4"]]), Nt = /* @__PURE__ */ U({
54
54
  __name: "aeria-badge",
55
55
  props: {
56
56
  large: { type: Boolean },
57
57
  alt: { type: Boolean }
58
58
  },
59
- setup(c) {
60
- return (r, l) => (n(), s("div", {
59
+ setup(d) {
60
+ return (u, a) => (n(), i("div", {
61
61
  class: X(`
62
62
  badge
63
- ${r.large && "badge--large"}
64
- ${r.alt && "badge--alt"}
63
+ ${u.large && "badge--large"}
64
+ ${u.alt && "badge--alt"}
65
65
  `)
66
66
  }, [
67
- O(r.$slots, "default", {}, void 0, !0)
67
+ C(u.$slots, "default", {}, void 0, !0)
68
68
  ], 2));
69
69
  }
70
70
  });
@@ -74,18 +74,18 @@ const $e = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-47f92648"]]), xt = /* @_
74
74
  disabled: { type: Boolean }
75
75
  },
76
76
  emits: ["click"],
77
- setup(c, { emit: r }) {
78
- const l = c, t = r, o = (u) => {
79
- l.disabled || t("click", u);
77
+ setup(d, { emit: u }) {
78
+ const a = d, t = u, o = (c) => {
79
+ a.disabled || t("click", c);
80
80
  };
81
- return (u, i) => (n(), s("button", {
81
+ return (c, r) => (n(), i("button", {
82
82
  class: X(`
83
83
  barebutton
84
- barebutton--${u.disabled ? "disabled" : "enabled"}
84
+ barebutton--${c.disabled ? "disabled" : "enabled"}
85
85
  `),
86
86
  onClick: o
87
87
  }, [
88
- O(u.$slots, "default", {}, void 0, !0)
88
+ C(c.$slots, "default", {}, void 0, !0)
89
89
  ], 2));
90
90
  }
91
91
  });
@@ -103,15 +103,15 @@ const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["hre
103
103
  iconRight: { type: Boolean },
104
104
  active: { type: Boolean }
105
105
  },
106
- setup(c) {
107
- const r = c, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), t = H(() => {
106
+ setup(d) {
107
+ const u = d, a = typeof u.reactive == "boolean" ? u.reactive : _e("iconReactive", !1), t = G(() => {
108
108
  var o;
109
- return (o = r.icon) != null && o.includes(":") ? r.icon : `regular:${r.icon}`;
109
+ return (o = u.icon) != null && o.includes(":") ? u.icon : `regular:${u.icon}`;
110
110
  });
111
- return (o, u) => (n(), s("a", {
111
+ return (o, c) => (n(), i("a", {
112
112
  class: X(`
113
113
  icon
114
- ${e(l) && "icon--reactive"}
114
+ ${e(a) && "icon--reactive"}
115
115
  ${o.active && "icon--active"}
116
116
  ${o.$slots.default ? "icon--centered" : "icon--standalone"}
117
117
  `)
@@ -123,7 +123,7 @@ const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["hre
123
123
  ${o.iconRight && "icon__icon--right"}
124
124
  `)
125
125
  }, [
126
- (n(), s("svg", E({
126
+ (n(), i("svg", E({
127
127
  width: "24",
128
128
  height: "24",
129
129
  viewBox: "0 0 256 256",
@@ -136,8 +136,8 @@ const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["hre
136
136
  }, null, 8, en)
137
137
  ], 16))
138
138
  ], 2),
139
- o.$slots.default ? (n(), s("div", tn, [
140
- O(o.$slots, "default", {}, void 0, !0)
139
+ o.$slots.default ? (n(), i("div", tn, [
140
+ C(o.$slots, "default", {}, void 0, !0)
141
141
  ])) : y("", !0)
142
142
  ], 2));
143
143
  }
@@ -156,38 +156,38 @@ const Z = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-6d36de33"]]), on = { clas
156
156
  disabled: { type: Boolean },
157
157
  loading: { type: Boolean }
158
158
  },
159
- setup(c) {
160
- const r = c, l = _e("buttonVariant", r.variant) || "primary", t = (() => {
159
+ setup(d) {
160
+ const u = d, a = _e("buttonVariant", u.variant) || "primary", t = (() => {
161
161
  switch (!0) {
162
- case r.small:
162
+ case u.small:
163
163
  return "small";
164
- case r.large:
164
+ case u.large:
165
165
  return "large";
166
166
  }
167
- return _e("buttonSize", r.size) || "medium";
167
+ return _e("buttonSize", u.size) || "medium";
168
168
  })();
169
- return (o, u) => (n(), k(ve, {
169
+ return (o, c) => (n(), k(ve, {
170
170
  class: X(`
171
171
  button
172
- button--${e(l)}
172
+ button--${e(a)}
173
173
  button--${e(t)}
174
174
  ${o.loading && "button--loading"}
175
175
  `),
176
176
  disabled: o.disabled
177
177
  }, {
178
- default: v(() => [
178
+ default: f(() => [
179
179
  o.icon ? (n(), k(Z, {
180
180
  key: 0,
181
181
  icon: o.icon
182
182
  }, {
183
- default: v(() => [
183
+ default: f(() => [
184
184
  A("div", on, [
185
- O(o.$slots, "default", {}, void 0, !0)
185
+ C(o.$slots, "default", {}, void 0, !0)
186
186
  ])
187
187
  ]),
188
188
  _: 3
189
- }, 8, ["icon"])) : (n(), s("div", an, [
190
- O(o.$slots, "default", {}, void 0, !0)
189
+ }, 8, ["icon"])) : (n(), i("div", an, [
190
+ C(o.$slots, "default", {}, void 0, !0)
191
191
  ]))
192
192
  ]),
193
193
  _: 3
@@ -200,26 +200,26 @@ const ie = /* @__PURE__ */ W(ln, [["__scopeId", "data-v-c328251b"]]), sn = { cla
200
200
  inactive: { type: Boolean },
201
201
  horizontal: { type: Boolean }
202
202
  },
203
- setup(c) {
204
- return (r, l) => (n(), s("div", {
203
+ setup(d) {
204
+ return (u, a) => (n(), i("div", {
205
205
  class: X(`
206
206
  card
207
- ${r.inactive && "card--inactive"}
208
- ${r.horizontal && "card--horizontal"}
207
+ ${u.inactive && "card--inactive"}
208
+ ${u.horizontal && "card--horizontal"}
209
209
  `)
210
210
  }, [
211
211
  A("div", sn, [
212
- O(r.$slots, "default", {}, void 0, !0)
212
+ C(u.$slots, "default", {}, void 0, !0)
213
213
  ]),
214
214
  A("div", rn, [
215
215
  A("div", un, [
216
216
  A("div", null, [
217
- O(r.$slots, "footer", {}, void 0, !0)
217
+ C(u.$slots, "footer", {}, void 0, !0)
218
218
  ]),
219
- r.$slots.actions ? O(r.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
219
+ u.$slots.actions ? C(u.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
220
220
  ]),
221
221
  A("div", cn, [
222
- O(r.$slots, "badge", {}, void 0, !0)
222
+ C(u.$slots, "badge", {}, void 0, !0)
223
223
  ])
224
224
  ])
225
225
  ], 2));
@@ -236,7 +236,6 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
236
236
  title: {},
237
237
  float: { type: Boolean },
238
238
  fixedRight: { type: Boolean },
239
- floating: { type: Boolean },
240
239
  loading: { type: Boolean },
241
240
  bordered: { type: Boolean },
242
241
  overlay: { type: Boolean },
@@ -251,115 +250,116 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
251
250
  overlayLayer: {}
252
251
  },
253
252
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
254
- setup(c, { emit: r }) {
255
- const l = c, t = r, o = H(() => l.floating || l.float), u = J(l.collapsed), i = J(null), { reachedEnd: _ } = Pe(i), p = () => {
253
+ setup(d, { emit: u }) {
254
+ const a = d, t = u, o = J(a.collapsed), c = J(null), { reachedEnd: r } = Pe(c), _ = () => {
256
255
  t("update:modelValue", !1), t("close");
257
- }, b = () => {
256
+ }, p = () => {
258
257
  t("overlayClick");
259
- }, d = (a) => {
260
- t("update:collapsed", a), u.value = a;
258
+ }, b = (s) => {
259
+ t("update:collapsed", s), o.value = s;
261
260
  };
262
- return (a, w) => {
263
- const f = te("clickable"), $ = te("loading"), T = te("overlay");
264
- return a.modelValue ? P((n(), s("div", {
261
+ return (s, l) => {
262
+ const w = te("clickable"), v = te("loading"), $ = te("overlay");
263
+ return s.modelValue ? P((n(), i("div", {
265
264
  key: 0,
266
265
  class: X(`
267
266
  panel
268
- ${a.fixedRight && "panel--fixed"}
267
+ ${s.fixedRight && "panel--fixed"}
269
268
  `)
270
269
  }, [
271
270
  (n(), k(he(
272
- o.value ? "dialog" : "div"
271
+ s.float || s.fixedRight ? "dialog" : "div"
273
272
  ), {
274
273
  "data-component": "panel",
275
274
  class: X(`
276
275
  aeria-surface
277
276
  panel__content
278
- ${o.value && "panel__content--floating"}
279
- ${a.bordered && "panel__content--bordered"}
280
- ${a.fixedRight && "panel__content--fixed-right"}
281
- ${a.transparent && "panel__content--transparent"}
282
- ${a.transparentMobile && "panel__content--transparent-mobile"}
283
- ${a.outerHeader && "panel__content--outer-header"}
277
+ ${s.float && "panel__content--float"}
278
+ ${s.bordered && "panel__content--bordered"}
279
+ ${s.fixedRight && "panel__content--fixed-right"}
280
+ ${s.transparent && "panel__content--transparent"}
281
+ ${s.transparentMobile && "panel__content--transparent-mobile"}
282
+ ${s.outerHeader && "panel__content--outer-header"}
284
283
  `),
285
- onClick: w[2] || (w[2] = (V) => V.stopPropagation())
284
+ onClick: l[2] || (l[2] = (S) => S.stopPropagation())
286
285
  }, {
287
- default: v(() => [
288
- a.$slots.header || a.title ? (n(), s("div", {
286
+ default: f(() => [
287
+ s.$slots.header || s.title ? (n(), i("div", {
289
288
  key: 0,
290
289
  class: X(`
291
290
  panel__header
292
- ${u.value && "panel__header--collapsed"}
293
- ${a.outerHeader && "panel__header--outer"}
291
+ ${o.value && "panel__header--collapsed"}
292
+ ${s.outerHeader && "panel__header--outer"}
294
293
  `)
295
294
  }, [
296
295
  A("div", _n, [
297
- a.$slots.header ? O(a.$slots, "header", { key: 0 }, void 0, !0) : a.title ? (n(), s("div", mn, C(a.title), 1)) : y("", !0),
298
- a.$slots.extra ? (n(), s("div", fn, [
299
- O(a.$slots, "extra", {}, void 0, !0)
296
+ s.$slots.header ? C(s.$slots, "header", { key: 0 }, void 0, !0) : s.title ? (n(), i("div", mn, V(s.title), 1)) : y("", !0),
297
+ s.$slots.extra ? (n(), i("div", fn, [
298
+ C(s.$slots, "extra", {}, void 0, !0)
300
299
  ])) : y("", !0)
301
300
  ]),
302
- a.collapsible && u.value ? P((n(), k(Z, {
301
+ s.collapsible && o.value ? P((n(), k(Z, {
303
302
  key: 0,
304
303
  reactive: "",
305
304
  icon: "plus",
306
- onClick: w[0] || (w[0] = (V) => d(!u.value))
305
+ onClick: l[0] || (l[0] = (S) => b(!o.value))
307
306
  }, null, 512)), [
308
- [f]
309
- ]) : a.collapsible && !u.value ? P((n(), k(Z, {
307
+ [w]
308
+ ]) : s.collapsible && !o.value ? P((n(), k(Z, {
310
309
  key: 1,
311
310
  reactive: "",
312
311
  icon: "minus",
313
- onClick: w[1] || (w[1] = (V) => d(!u.value))
312
+ onClick: l[1] || (l[1] = (S) => b(!o.value))
314
313
  }, null, 512)), [
315
- [f]
316
- ]) : a.closeHint ? P((n(), k(Z, {
314
+ [w]
315
+ ]) : s.closeHint ? P((n(), k(Z, {
317
316
  key: 2,
318
317
  reactive: "",
319
318
  icon: "x",
320
- onClick: p
319
+ onClick: _
321
320
  }, null, 512)), [
322
- [f]
321
+ [w]
323
322
  ]) : y("", !0)
324
323
  ], 2)) : y("", !0),
325
- u.value ? y("", !0) : P((n(), s("div", {
324
+ o.value ? y("", !0) : P((n(), i("div", {
326
325
  key: 1,
327
326
  ref_key: "body",
328
- ref: i,
327
+ ref: c,
328
+ tabindex: "0",
329
329
  class: X(`
330
330
  panel__body
331
- ${a.fill || "panel__body--padded"}
331
+ ${s.fill || "panel__body--padded"}
332
332
  `)
333
333
  }, [
334
- O(a.$slots, "default", {}, void 0, !0)
334
+ C(s.$slots, "default", {}, void 0, !0)
335
335
  ], 2)), [
336
- [$, a.loading]
336
+ [v, s.loading]
337
337
  ]),
338
- a.$slots.footer ? (n(), s("div", {
338
+ s.$slots.footer ? (n(), i("div", {
339
339
  key: 2,
340
340
  class: X(`
341
341
  panel__footer
342
- ${a.fillFooter || "panel__footer--padded"}
343
- ${e(_) || "panel__footer--shadowed"}
342
+ ${s.fillFooter || "panel__footer--padded"}
343
+ ${e(r) || "panel__footer--shadowed"}
344
344
  `)
345
345
  }, [
346
- O(a.$slots, "footer", {}, void 0, !0)
346
+ C(s.$slots, "footer", {}, void 0, !0)
347
347
  ], 2)) : y("", !0)
348
348
  ]),
349
349
  _: 3
350
350
  }, 8, ["class"]))
351
351
  ], 2)), [
352
- [T, {
353
- condition: a.overlay || a.fixedRight || o.value,
354
- invisible: a.invisibleOverlay,
355
- click: b,
356
- layer: a.overlayLayer || (o.value ? 60 : a.fixedRight ? 50 : 0)
352
+ [$, {
353
+ condition: s.overlay || s.fixedRight || s.float,
354
+ invisible: s.invisibleOverlay,
355
+ click: p,
356
+ layer: s.overlayLayer || (s.float ? 60 : s.fixedRight ? 50 : 0)
357
357
  }]
358
358
  ]) : y("", !0);
359
359
  };
360
360
  }
361
361
  });
362
- const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { class: "content__body" }, hn = {
362
+ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-4271b4f1"]]), yn = { class: "content__body" }, hn = {
363
363
  key: 0,
364
364
  class: "content__section"
365
365
  }, bn = { class: "content__item" }, $n = /* @__PURE__ */ U({
@@ -370,40 +370,40 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
370
370
  overlayLayer: {}
371
371
  },
372
372
  emits: ["actionClick"],
373
- setup(c, { emit: r }) {
373
+ setup(d, { emit: u }) {
374
374
  It((p) => ({
375
375
  "036683e2": _.value.x,
376
376
  "036683e0": _.value.y
377
377
  }));
378
- const l = r, t = J(null), o = J(!1), u = (p) => p == null ? void 0 : p.filter((b) => {
378
+ const a = u, t = J(null), o = J(!1), c = (p) => p == null ? void 0 : p.filter((b) => {
379
379
  if (b.roles) {
380
- const d = re("user");
381
- return gt(b.roles, d.currentUser.roles);
380
+ const s = re("user");
381
+ return gt(b.roles, s.currentUser.roles);
382
382
  }
383
383
  return !0;
384
- }), i = (p, b) => {
385
- const d = b && Ce(b);
386
- p.click && p.click(d), l("actionClick", {
384
+ }), r = (p, b) => {
385
+ const s = b && Ce(b);
386
+ p.click && p.click(s), a("actionClick", {
387
387
  action: p,
388
- subject: d
388
+ subject: s
389
389
  }), o.value = !1;
390
- }, _ = H(() => {
390
+ }, _ = G(() => {
391
391
  if (!t.value)
392
392
  return {
393
393
  x: 0,
394
394
  y: 0
395
395
  };
396
- const p = t.value.getBoundingClientRect().top, b = t.value.getBoundingClientRect().left, d = t.value.offsetHeight;
396
+ const p = t.value.getBoundingClientRect().top, b = t.value.getBoundingClientRect().left, s = t.value.offsetHeight;
397
397
  return {
398
398
  _: o.value,
399
399
  x: Math.floor(b) + "px",
400
- y: Math.floor(p + d) + "px"
400
+ y: Math.floor(p + s) + "px"
401
401
  };
402
402
  });
403
403
  return (p, b) => {
404
- const d = te("overlay");
405
- return n(), s(x, null, [
406
- Object.keys(p.$slots).some((a) => a !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (n(), s("div", {
404
+ const s = te("overlay");
405
+ return n(), i(x, null, [
406
+ Object.keys(p.$slots).some((l) => l !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (n(), i("div", {
407
407
  key: 0,
408
408
  ref_key: "contextmenu",
409
409
  ref: t,
@@ -411,9 +411,9 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
411
411
  }, [
412
412
  A("a", {
413
413
  class: "contextmenu__trigger",
414
- onClick: b[0] || (b[0] = (a) => o.value = !0)
414
+ onClick: b[0] || (b[0] = (l) => o.value = !0)
415
415
  }, [
416
- O(p.$slots, "default", de(ge({
416
+ C(p.$slots, "default", de(ge({
417
417
  visible: o.value
418
418
  })), void 0, !0)
419
419
  ])
@@ -424,49 +424,49 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
424
424
  }, [
425
425
  P((n(), k(Ae, {
426
426
  modelValue: o.value,
427
- "onUpdate:modelValue": b[4] || (b[4] = (a) => o.value = a),
427
+ "onUpdate:modelValue": b[4] || (b[4] = (l) => o.value = l),
428
428
  fill: "",
429
429
  bordered: "",
430
430
  class: "content",
431
431
  style: { "--panel-min-width": "0" }
432
432
  }, {
433
- default: v(() => [
433
+ default: f(() => [
434
434
  A("div", yn, [
435
- p.$slots.header ? (n(), s("div", hn, [
436
- O(p.$slots, "header", {}, void 0, !0)
435
+ p.$slots.header ? (n(), i("div", hn, [
436
+ C(p.$slots, "header", {}, void 0, !0)
437
437
  ])) : y("", !0),
438
- Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)).length > 0 ? (n(), s("div", {
438
+ Object.keys(p.$slots).filter((l) => !["default", "extra", "header"].includes(l)).length > 0 ? (n(), i("div", {
439
439
  key: 1,
440
440
  class: "content__section",
441
- onClick: b[1] || (b[1] = (a) => o.value = !1)
441
+ onClick: b[1] || (b[1] = (l) => o.value = !1)
442
442
  }, [
443
- (n(!0), s(x, null, G(Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)), (a, w) => (n(), k(ve, {
443
+ (n(!0), i(x, null, Q(Object.keys(p.$slots).filter((l) => !["default", "extra", "header"].includes(l)), (l, w) => (n(), k(ve, {
444
444
  key: `slot-${w}`,
445
445
  class: "content__item content__item--reactive"
446
446
  }, {
447
- default: v(() => [
448
- O(p.$slots, a, {}, void 0, !0)
447
+ default: f(() => [
448
+ C(p.$slots, l, {}, void 0, !0)
449
449
  ]),
450
450
  _: 2
451
451
  }, 1024))), 128))
452
452
  ])) : y("", !0),
453
- p.actions !== void 0 && p.actions.length > 0 ? (n(), s("div", {
453
+ p.actions !== void 0 && p.actions.length > 0 ? (n(), i("div", {
454
454
  key: 2,
455
455
  class: "content__section",
456
- onClick: b[2] || (b[2] = (a) => o.value = !1)
456
+ onClick: b[2] || (b[2] = (l) => o.value = !1)
457
457
  }, [
458
- (n(!0), s(x, null, G(u(p.actions), (a, w) => (n(), k(ve, {
458
+ (n(!0), i(x, null, Q(c(p.actions), (l, w) => (n(), k(ve, {
459
459
  key: `action-${w}`,
460
460
  class: "content__item content__item--reactive",
461
- onClick: (f) => i(a, p.subject)
461
+ onClick: (v) => r(l, p.subject)
462
462
  }, {
463
- default: v(() => [
464
- a.icon ? (n(), k(Z, {
463
+ default: f(() => [
464
+ l.icon ? (n(), k(Z, {
465
465
  key: 0,
466
- icon: a.icon
466
+ icon: l.icon
467
467
  }, {
468
- default: v(() => [
469
- Q(C(a.translate ? e(R)(a.label, { capitalize: !0 }) : a.label), 1)
468
+ default: f(() => [
469
+ D(V(l.translate ? e(R)(l.label, { capitalize: !0 }) : l.label), 1)
470
470
  ]),
471
471
  _: 2
472
472
  }, 1032, ["icon"])) : y("", !0)
@@ -474,13 +474,13 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
474
474
  _: 2
475
475
  }, 1032, ["onClick"]))), 128))
476
476
  ])) : y("", !0),
477
- p.$slots.extra ? (n(), s("div", {
477
+ p.$slots.extra ? (n(), i("div", {
478
478
  key: 3,
479
479
  class: "content__section",
480
- onClick: b[3] || (b[3] = (a) => o.value = !1)
480
+ onClick: b[3] || (b[3] = (l) => o.value = !1)
481
481
  }, [
482
482
  A("div", bn, [
483
- p.$slots.extra ? O(p.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
483
+ p.$slots.extra ? C(p.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
484
484
  ])
485
485
  ])) : y("", !0)
486
486
  ])
@@ -488,7 +488,7 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
488
488
  _: 3
489
489
  }, 8, ["modelValue"])), [
490
490
  [
491
- d,
491
+ s,
492
492
  {
493
493
  layer: p.overlayLayer,
494
494
  click: () => {
@@ -509,14 +509,14 @@ const Oe = /* @__PURE__ */ W($n, [["__scopeId", "data-v-a03802b2"]]), gn = { cla
509
509
  props: {
510
510
  where: { default: "top" }
511
511
  },
512
- setup(c) {
513
- const r = Ue(), l = J(!1);
514
- return (t, o) => e(r).md ? (n(), s("div", {
512
+ setup(d) {
513
+ const u = Ue(), a = J(!1);
514
+ return (t, o) => e(u).md ? (n(), i("div", {
515
515
  key: 0,
516
516
  class: "info",
517
- onMouseleave: o[1] || (o[1] = (u) => l.value = !1)
517
+ onMouseleave: o[1] || (o[1] = (c) => a.value = !1)
518
518
  }, [
519
- l.value ? (n(), s("div", {
519
+ a.value ? (n(), i("div", {
520
520
  key: 0,
521
521
  class: X(`
522
522
  info__bubble
@@ -524,15 +524,15 @@ const Oe = /* @__PURE__ */ W($n, [["__scopeId", "data-v-a03802b2"]]), gn = { cla
524
524
  `)
525
525
  }, [
526
526
  A("div", gn, [
527
- O(t.$slots, "text", {}, void 0, !0)
527
+ C(t.$slots, "text", {}, void 0, !0)
528
528
  ])
529
529
  ], 2)) : y("", !0),
530
530
  A("div", {
531
- onMouseover: o[0] || (o[0] = (u) => l.value = !0)
531
+ onMouseover: o[0] || (o[0] = (c) => a.value = !0)
532
532
  }, [
533
- O(t.$slots, "default", {}, void 0, !0)
533
+ C(t.$slots, "default", {}, void 0, !0)
534
534
  ], 32)
535
- ], 32)) : O(t.$slots, "default", { key: 1 }, void 0, !0);
535
+ ], 32)) : C(t.$slots, "default", { key: 1 }, void 0, !0);
536
536
  }
537
537
  });
538
538
  const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { class: "input" }, On = {
@@ -556,10 +556,10 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
556
556
  variant: {}
557
557
  },
558
558
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
559
- setup(c, { emit: r }) {
559
+ setup(d, { emit: u }) {
560
560
  var ee;
561
- const l = c, t = r, o = l.property || {}, u = "icon" in o || "inputType" in o && o.inputType === "search", i = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), p = !i && (l.readOnly || o.readOnly), b = (h) => (t("clipboardCopy", h), navigator.clipboard.writeText(h)), d = _e("inputVariant", l.variant) || "normal", a = Object.assign(Object.assign({}, l), {
562
- name: l.propertyName,
561
+ const a = d, t = u, o = a.property || {}, c = "icon" in o || "inputType" in o && o.inputType === "search", r = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), p = !r && (a.readOnly || o.readOnly), b = (h) => (t("clipboardCopy", h), navigator.clipboard.writeText(h)), s = _e("inputVariant", a.variant) || "normal", l = Object.assign(Object.assign({}, a), {
562
+ name: a.propertyName,
563
563
  readonly: p,
564
564
  type: (() => {
565
565
  if ("type" in o)
@@ -570,7 +570,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
570
570
  }
571
571
  if (o.inputType)
572
572
  return o.inputType;
573
- switch (typeof l.modelValue) {
573
+ switch (typeof a.modelValue) {
574
574
  case "string":
575
575
  return "text";
576
576
  case "number":
@@ -579,10 +579,10 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
579
579
  return "text";
580
580
  }
581
581
  })(),
582
- placeholder: _ ? o.description || l.propertyName : o.placeholder
582
+ placeholder: _ ? o.description || a.propertyName : o.placeholder
583
583
  });
584
- "type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (a.min = o.minimum), o.exclusiveMinimum && (a.min = o.exclusiveMinimum + 1), o.maximum && (a.max = o.maximum), o.exclusiveMaximum && (a.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (a.type = !i && o.format === "date-time" ? "datetime-local" : "date"), a.minlength = o.minLength, a.maxlength = o.maxLength)), a.type === "text" && i && (a.type = "search"), Xe(() => {
585
- l.modelValue !== null && V(l.modelValue);
584
+ "type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (l.min = o.minimum), o.exclusiveMinimum && (l.min = o.exclusiveMinimum + 1), o.maximum && (l.max = o.maximum), o.exclusiveMaximum && (l.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (l.type = !r && o.format === "date-time" ? "datetime-local" : "date"), l.minlength = o.minLength, l.maxlength = o.maxLength)), l.type === "text" && r && (l.type = "search"), Xe(() => {
585
+ a.modelValue !== null && O(a.modelValue);
586
586
  });
587
587
  const w = (h) => {
588
588
  try {
@@ -593,7 +593,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
593
593
  F = new Date(h);
594
594
  else
595
595
  throw new Error();
596
- switch (a.type) {
596
+ switch (l.type) {
597
597
  case "date":
598
598
  return F.toISOString().slice(0, 10);
599
599
  case "datetime-local":
@@ -604,14 +604,14 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
604
604
  } catch {
605
605
  return "";
606
606
  }
607
- }, f = J(""), $ = ((ee = l.property) == null ? void 0 : ee.type) === "string" && l.property.mask ? Ft(l.property.mask) : null;
608
- ue(() => l.modelValue, (h) => {
609
- f.value = (() => {
607
+ }, v = J(""), $ = ((ee = a.property) == null ? void 0 : ee.type) === "string" && a.property.mask ? Ft(a.property.mask) : null;
608
+ ue(() => a.modelValue, (h) => {
609
+ v.value = (() => {
610
610
  if ($)
611
611
  return h ? $.enmask(String(h), void 0, {
612
612
  defaultValue: !0
613
613
  }) : "";
614
- switch (a.type) {
614
+ switch (l.type) {
615
615
  case "date":
616
616
  case "datetime-local":
617
617
  return w(h);
@@ -627,16 +627,16 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
627
627
  }, {
628
628
  immediate: !0
629
629
  });
630
- const T = (h) => {
630
+ const S = (h) => {
631
631
  var F;
632
- return typeof f.value == "string" && ((F = l.property) == null ? void 0 : F.type) === "string" && $ !== null ? (f.value = $.enmask(f.value, void 0, {
632
+ return typeof v.value == "string" && ((F = a.property) == null ? void 0 : F.type) === "string" && $ !== null ? (v.value = $.enmask(v.value, void 0, {
633
633
  defaultValue: !0
634
- }), l.property.maskedValue === !0 ? f.value : $.unmask(f.value)) : h;
635
- }, V = (h) => {
634
+ }), a.property.maskedValue === !0 ? v.value : $.unmask(v.value)) : h;
635
+ }, O = (h) => {
636
636
  const F = (() => {
637
637
  if (!h || typeof h != "string")
638
638
  return h;
639
- switch (a.type) {
639
+ switch (l.type) {
640
640
  case "number":
641
641
  case "integer":
642
642
  return Number(h);
@@ -644,57 +644,57 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
644
644
  case "date-time":
645
645
  return new Date(h);
646
646
  default:
647
- return T(h);
647
+ return S(h);
648
648
  }
649
649
  })();
650
650
  t("input", F), t("update:modelValue", F);
651
651
  }, Y = (h) => {
652
652
  const F = h.target.value;
653
- f.value = F, V(F);
653
+ v.value = F, O(F);
654
654
  };
655
655
  return (h, F) => {
656
- const le = te("focus"), S = te("clickable");
657
- return n(), s("label", Cn, [
658
- e(_) ? y("", !0) : (n(), s("div", On, [
659
- h.$slots.default ? O(h.$slots, "default", { key: 0 }, void 0, !0) : O(h.$slots, "description", { key: 1 }, void 0, !0)
656
+ const le = te("focus"), T = te("clickable");
657
+ return n(), i("label", Cn, [
658
+ e(_) ? y("", !0) : (n(), i("div", On, [
659
+ h.$slots.default ? C(h.$slots, "default", { key: 0 }, void 0, !0) : C(h.$slots, "description", { key: 1 }, void 0, !0)
660
660
  ])),
661
- h.$slots.hint ? (n(), s("div", In, [
662
- O(h.$slots, "hint", {}, void 0, !0)
661
+ h.$slots.hint ? (n(), i("div", In, [
662
+ C(h.$slots, "hint", {}, void 0, !0)
663
663
  ])) : y("", !0),
664
- "element" in e(o) && e(o).element === "textarea" ? (n(), s("div", {
664
+ "element" in e(o) && e(o).element === "textarea" ? (n(), i("div", {
665
665
  key: 2,
666
666
  class: X(`
667
667
  input__container
668
668
  input__container--textarea
669
- input__container--${e(d)}
669
+ input__container--${e(s)}
670
670
  `)
671
671
  }, [
672
672
  P(A("textarea", {
673
- placeholder: e(a).placeholder,
674
- readonly: e(a).readonly,
673
+ placeholder: e(l).placeholder,
674
+ readonly: e(l).readonly,
675
675
  value: h.modelValue,
676
676
  class: X(`
677
677
  input__textarea
678
- input__input--${e(d)}
678
+ input__input--${e(s)}
679
679
  `),
680
680
  onInput: Y
681
681
  }, null, 42, An), [
682
682
  [le, e(o).focus]
683
683
  ])
684
- ], 2)) : (n(), s("div", {
684
+ ], 2)) : (n(), i("div", {
685
685
  key: 3,
686
686
  class: X(`
687
687
  input__container
688
- input__container--${e(d)}
688
+ input__container--${e(s)}
689
689
  `)
690
690
  }, [
691
- P(A("input", E(e(a), {
692
- value: f.value,
691
+ P(A("input", E(e(l), {
692
+ value: v.value,
693
693
  "data-component": "input",
694
694
  class: `
695
695
  input__input
696
- input__input--${e(d)}
697
- ${e(u) && "input__input--icon"}
696
+ input__input--${e(s)}
697
+ ${e(c) && "input__input--icon"}
698
698
  ${e(p) && "input__input--readOnly"}
699
699
  `,
700
700
  onInput: Y,
@@ -702,26 +702,26 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
702
702
  }), null, 16, wn), [
703
703
  [le, e(o).focus]
704
704
  ]),
705
- e(u) ? (n(), k(Z, {
705
+ e(c) ? (n(), k(Z, {
706
706
  key: 0,
707
707
  icon: e(o).icon || "magnifying-glass",
708
708
  class: X(`
709
709
  input__icon
710
- input__icon--${e(d)}
710
+ input__icon--${e(s)}
711
711
  `)
712
712
  }, null, 8, ["icon", "class"])) : y("", !0),
713
- e(p) ? (n(), s("div", Bn, [
713
+ e(p) ? (n(), i("div", Bn, [
714
714
  z(Vn, null, {
715
- text: v(() => [
716
- Q("Copiar")
715
+ text: f(() => [
716
+ D("Copiar")
717
717
  ]),
718
- default: v(() => [
718
+ default: f(() => [
719
719
  P(z(Z, {
720
720
  reactive: "",
721
721
  icon: "clipboard",
722
722
  onClick: F[1] || (F[1] = ze((g) => b(String(h.modelValue || "")), ["prevent"]))
723
723
  }, null, 512), [
724
- [S]
724
+ [T]
725
725
  ])
726
726
  ]),
727
727
  _: 1
@@ -749,14 +749,14 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
749
749
  noOutline: { type: Boolean }
750
750
  },
751
751
  emits: ["update:modelValue", "change"],
752
- setup(c, { emit: r }) {
753
- const l = c, t = r, o = J(null), u = l.property, i = (d) => {
754
- l.booleanRef && (_.value = d), t("update:modelValue", (d == null ? void 0 : d._id) || d), t("change", (d == null ? void 0 : d._id) || d);
755
- }, _ = l.booleanRef ? (() => {
756
- const d = J(l.modelValue);
757
- return H({
752
+ setup(d, { emit: u }) {
753
+ const a = d, t = u, o = J(null), c = a.property, r = (s) => {
754
+ a.booleanRef && (_.value = s), t("update:modelValue", (s == null ? void 0 : s._id) || s), t("change", (s == null ? void 0 : s._id) || s);
755
+ }, _ = a.booleanRef ? (() => {
756
+ const s = J(a.modelValue);
757
+ return G({
758
758
  get: () => {
759
- switch (d.value) {
759
+ switch (s.value) {
760
760
  case "true":
761
761
  return !0;
762
762
  case "false":
@@ -766,24 +766,24 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
766
766
  }
767
767
  },
768
768
  set: (w) => {
769
- d.value = w;
769
+ s.value = w;
770
770
  }
771
771
  });
772
- })() : H({
773
- get: () => l.modelValue,
774
- set: i
775
- }), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, b = H(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
776
- return l.multiple && ue(() => l.modelValue, (d) => {
772
+ })() : G({
773
+ get: () => a.modelValue,
774
+ set: r
775
+ }), p = (s) => Array.isArray(a.modelValue) ? a.modelValue.includes(s) : a.modelValue === s, b = G(() => a.multiple ? typeof a.multiple == "number" ? a.multiple : 5 : 1);
776
+ return a.multiple && ue(() => a.modelValue, (s) => {
777
777
  var w;
778
778
  if (!o.value)
779
779
  return;
780
- const a = o.value.querySelector('option[data-selected="true"]');
781
- a && a.removeAttribute("data-selected"), (w = o.value.querySelector(`option[value="${d}"]`)) == null || w.setAttribute("data-selected", "true");
782
- }), (d, a) => d.readOnly ? (n(), k(ke, {
780
+ const l = o.value.querySelector('option[data-selected="true"]');
781
+ l && l.removeAttribute("data-selected"), (w = o.value.querySelector(`option[value="${s}"]`)) == null || w.setAttribute("data-selected", "true");
782
+ }), (s, l) => s.readOnly ? (n(), k(ke, {
783
783
  key: 1,
784
784
  "read-only": "",
785
785
  "model-value": e(_)
786
- }, null, 8, ["model-value"])) : (n(), s("select", E({ key: 0 }, {
786
+ }, null, 8, ["model-value"])) : (n(), i("select", E({ key: 0 }, {
787
787
  size: b.value,
788
788
  value: e(_)
789
789
  }, {
@@ -792,24 +792,24 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
792
792
  class: {
793
793
  select: !0,
794
794
  "select--multiple": !!b.value,
795
- "select--outline": !d.noOutline
795
+ "select--outline": !s.noOutline
796
796
  },
797
- onChange: a[0] || (a[0] = (w) => i(w.target.value))
797
+ onChange: l[0] || (l[0] = (w) => r(w.target.value))
798
798
  }), [
799
- e(u) && e(u).icon ? (n(), k(Z, {
799
+ e(c) && e(c).icon ? (n(), k(Z, {
800
800
  key: 0,
801
- icon: e(u).icon
801
+ icon: e(c).icon
802
802
  }, null, 8, ["icon"])) : y("", !0),
803
- l.multiple ? y("", !0) : (n(), s("option", Tn, C(e(R)("none")), 1)),
804
- (n(!0), s(x, null, G(e(u) && "enum" in e(u) ? e(u).enum : [], (w) => {
805
- var f;
806
- return n(), s("option", {
803
+ a.multiple ? y("", !0) : (n(), i("option", Tn, V(e(R)("none")), 1)),
804
+ (n(!0), i(x, null, Q(e(c) && "enum" in e(c) ? e(c).enum : [], (w) => {
805
+ var v;
806
+ return n(), i("option", {
807
807
  key: w,
808
808
  value: w,
809
809
  "data-selected": p(w)
810
- }, C((f = e(u)) != null && f.translate ? e(R)(w) : w), 9, jn);
810
+ }, V((v = e(c)) != null && v.translate ? e(R)(w) : w), 9, jn);
811
811
  }), 128)),
812
- O(d.$slots, "default", {}, void 0, !0)
812
+ C(s.$slots, "default", {}, void 0, !0)
813
813
  ], 16));
814
814
  }
815
815
  });
@@ -823,100 +823,100 @@ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { cla
823
823
  noSummary: { type: Boolean }
824
824
  },
825
825
  emits: ["paginate"],
826
- setup(c, { emit: r }) {
827
- const l = c, t = r, o = H({
828
- get: () => Math.floor(l.pagination.offset / l.pagination.limit),
826
+ setup(d, { emit: u }) {
827
+ const a = d, t = u, o = G({
828
+ get: () => Math.floor(a.pagination.offset / a.pagination.limit),
829
829
  set: (b) => {
830
- l.pagination.offset = b * l.pagination.limit;
830
+ a.pagination.offset = b * a.pagination.limit;
831
831
  }
832
- }), u = H({
833
- get: () => l.pagination.limit,
832
+ }), c = G({
833
+ get: () => a.pagination.limit,
834
834
  set: (b) => {
835
- l.pagination.limit = Number(b);
835
+ a.pagination.limit = Number(b);
836
836
  }
837
- }), i = J(o.value ? o.value + 1 : 1), _ = H(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (b) => {
837
+ }), r = J(o.value ? o.value + 1 : 1), _ = G(() => Math.ceil(a.pagination.recordsTotal / a.pagination.limit)), p = (b) => {
838
838
  o.value = b === "previous" ? o.value - 1 : o.value + 1;
839
839
  };
840
840
  return ue([
841
841
  o,
842
- u
842
+ c
843
843
  ], ([b]) => {
844
- i.value = b + 1, t("paginate", {
845
- offset: o.value * u.value,
846
- limit: u.value
844
+ r.value = b + 1, t("paginate", {
845
+ offset: o.value * c.value,
846
+ limit: c.value
847
847
  });
848
- }), (b, d) => (n(), s("div", Ln, [
848
+ }), (b, s) => (n(), i("div", Ln, [
849
849
  A("div", zn, [
850
850
  z(ve, {
851
851
  disabled: o.value === 0,
852
- onClick: d[0] || (d[0] = (a) => o.value = 0)
852
+ onClick: s[0] || (s[0] = (l) => o.value = 0)
853
853
  }, {
854
- default: v(() => [
854
+ default: f(() => [
855
855
  z(Z, { icon: "caret-double-left" })
856
856
  ]),
857
857
  _: 1
858
858
  }, 8, ["disabled"]),
859
859
  z(ve, {
860
860
  disabled: o.value === 0,
861
- onClick: d[1] || (d[1] = (a) => p("previous"))
861
+ onClick: s[1] || (s[1] = (l) => p("previous"))
862
862
  }, {
863
- default: v(() => [
863
+ default: f(() => [
864
864
  z(Z, { icon: "caret-left" })
865
865
  ]),
866
866
  _: 1
867
867
  }, 8, ["disabled"]),
868
868
  z(ve, {
869
869
  disabled: o.value === _.value - 1,
870
- onClick: d[2] || (d[2] = (a) => p("next"))
870
+ onClick: s[2] || (s[2] = (l) => p("next"))
871
871
  }, {
872
- default: v(() => [
872
+ default: f(() => [
873
873
  z(Z, { icon: "caret-right" })
874
874
  ]),
875
875
  _: 1
876
876
  }, 8, ["disabled"]),
877
877
  z(ve, {
878
878
  disabled: o.value === _.value - 1,
879
- onClick: d[3] || (d[3] = (a) => o.value = _.value - 1)
879
+ onClick: s[3] || (s[3] = (l) => o.value = _.value - 1)
880
880
  }, {
881
- default: v(() => [
881
+ default: f(() => [
882
882
  z(Z, { icon: "caret-double-right" })
883
883
  ]),
884
884
  _: 1
885
885
  }, 8, ["disabled"]),
886
886
  z(Ne, {
887
- modelValue: u.value,
888
- "onUpdate:modelValue": d[4] || (d[4] = (a) => u.value = a),
887
+ modelValue: c.value,
888
+ "onUpdate:modelValue": s[4] || (s[4] = (l) => c.value = l),
889
889
  property: {
890
890
  enum: [],
891
891
  icon: "list"
892
892
  },
893
893
  class: "pagination__control"
894
894
  }, {
895
- default: v(() => [
896
- (n(!0), s(x, null, G(e(Ut), (a) => (n(), s("option", {
897
- key: `limit-${a}`,
898
- value: a
899
- }, C(a), 9, qn))), 128))
895
+ default: f(() => [
896
+ (n(!0), i(x, null, Q(e(Ut), (l) => (n(), i("option", {
897
+ key: `limit-${l}`,
898
+ value: l
899
+ }, V(l), 9, qn))), 128))
900
900
  ]),
901
901
  _: 1
902
902
  }, 8, ["modelValue"])
903
903
  ]),
904
- b.noSummary ? y("", !0) : (n(), s("div", Mn, [
905
- Q(C(e(R)("Page")) + " ", 1),
904
+ b.noSummary ? y("", !0) : (n(), i("div", Mn, [
905
+ D(V(e(R)("Page")) + " ", 1),
906
906
  (n(), k(ke, {
907
907
  key: o.value,
908
- modelValue: i.value,
909
- "onUpdate:modelValue": d[5] || (d[5] = (a) => i.value = a),
908
+ modelValue: r.value,
909
+ "onUpdate:modelValue": s[5] || (s[5] = (l) => r.value = l),
910
910
  property: {
911
911
  type: "number",
912
912
  minimum: 1
913
913
  },
914
914
  style: { height: "100%" },
915
- onChange: d[6] || (d[6] = (a) => {
916
- o.value = i.value === 0 ? 0 : i.value - 1;
915
+ onChange: s[6] || (s[6] = (l) => {
916
+ o.value = r.value === 0 ? 0 : r.value - 1;
917
917
  })
918
918
  }, null, 8, ["modelValue"])),
919
- A("span", null, C(e(R)("of")) + " " + C(_.value), 1)
919
+ A("span", null, V(e(R)("of")) + " " + V(_.value), 1)
920
920
  ]))
921
921
  ]));
922
922
  }
@@ -937,8 +937,8 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
937
937
  variant: {}
938
938
  },
939
939
  emits: ["update:modelValue", "change"],
940
- setup(c, { emit: r }) {
941
- const l = c, t = l.property, o = l.readOnly || (t == null ? void 0 : t.readOnly), u = (() => {
940
+ setup(d, { emit: u }) {
941
+ const a = d, t = a.property, o = a.readOnly || (t == null ? void 0 : t.readOnly), c = (() => {
942
942
  if (t && "type" in t)
943
943
  switch (t.type) {
944
944
  case "array":
@@ -946,53 +946,53 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
946
946
  return "checkbox";
947
947
  }
948
948
  return "radio";
949
- })(), i = r, _ = l.value || !1, p = H({
949
+ })(), r = u, _ = a.value || !1, p = G({
950
950
  get: () => {
951
- var d;
951
+ var s;
952
952
  if (t) {
953
953
  if ("type" in t && t.type === "boolean")
954
- return !!l.value;
954
+ return !!a.value;
955
955
  if ("items" in t)
956
- return (d = l.modelValue) == null ? void 0 : d.includes(l.value);
956
+ return (s = a.modelValue) == null ? void 0 : s.includes(a.value);
957
957
  }
958
- return l.modelValue === l.value;
958
+ return a.modelValue === a.value;
959
959
  },
960
960
  set: () => {
961
- var d;
961
+ var s;
962
962
  if (!o) {
963
963
  if (t) {
964
964
  if ("type" in t && t.type === "boolean") {
965
- i("update:modelValue", !l.modelValue);
965
+ r("update:modelValue", !a.modelValue);
966
966
  return;
967
967
  }
968
968
  if ("items" in t) {
969
- if ((d = l.modelValue) != null && d.includes(_)) {
970
- i("update:modelValue", l.modelValue.filter((a) => a !== _));
969
+ if ((s = a.modelValue) != null && s.includes(_)) {
970
+ r("update:modelValue", a.modelValue.filter((l) => l !== _));
971
971
  return;
972
972
  }
973
- i("update:modelValue", [_].concat(l.modelValue || []));
973
+ r("update:modelValue", [_].concat(a.modelValue || []));
974
974
  return;
975
975
  }
976
976
  }
977
- i("update:modelValue", l.value);
977
+ r("update:modelValue", a.value);
978
978
  }
979
979
  }
980
- }), b = (d) => {
981
- o && d.preventDefault();
980
+ }), b = (s) => {
981
+ o && s.preventDefault();
982
982
  };
983
- return (d, a) => {
984
- var f, $;
983
+ return (s, l) => {
984
+ var v, $;
985
985
  const w = te("clickable");
986
- return P((n(), s("label", {
986
+ return P((n(), i("label", {
987
987
  class: X(`
988
988
  checkbox
989
989
  ${e(o) && "checkbox--readOnly"}
990
990
  `)
991
991
  }, [
992
992
  P(A("input", E({
993
- "onUpdate:modelValue": a[0] || (a[0] = (T) => p.value = T)
993
+ "onUpdate:modelValue": l[0] || (l[0] = (S) => p.value = S)
994
994
  }, {
995
- type: e(u),
995
+ type: e(c),
996
996
  readOnly: e(o),
997
997
  checked: p.value
998
998
  }, {
@@ -1003,13 +1003,13 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
1003
1003
  ]),
1004
1004
  A("div", En, [
1005
1005
  A("div", null, [
1006
- d.$slots.description ? O(d.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (n(), s("div", {
1006
+ s.$slots.description ? C(s.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (n(), i("div", {
1007
1007
  key: 1,
1008
- innerHTML: (f = e(t)) != null && f.translate ? e(R)(e(_)) : e(_)
1009
- }, null, 8, Hn)) : O(d.$slots, "default", { key: 2 }, void 0, !0)
1008
+ innerHTML: (v = e(t)) != null && v.translate ? e(R)(e(_)) : e(_)
1009
+ }, null, 8, Hn)) : C(s.$slots, "default", { key: 2 }, void 0, !0)
1010
1010
  ]),
1011
1011
  A("div", Dn, [
1012
- d.$slots.hint ? O(d.$slots, "hint", { key: 0 }, void 0, !0) : ($ = e(t)) != null && $.hint ? (n(), s("div", {
1012
+ s.$slots.hint ? C(s.$slots, "hint", { key: 0 }, void 0, !0) : ($ = e(t)) != null && $.hint ? (n(), i("div", {
1013
1013
  key: 1,
1014
1014
  innerHTML: e(t).hint
1015
1015
  }, null, 8, Qn)) : y("", !0)
@@ -1036,23 +1036,23 @@ const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1036
1036
  columns: { default: 1 }
1037
1037
  },
1038
1038
  emits: ["update:modelValue"],
1039
- setup(c, { emit: r }) {
1040
- const l = c, t = r, o = l.readOnly || l.property.readOnly, u = "items" in l.property ? l.property.items.enum : l.property.enum, i = (_) => {
1039
+ setup(d, { emit: u }) {
1040
+ const a = d, t = u, o = a.readOnly || a.property.readOnly, c = "items" in a.property ? a.property.items.enum : a.property.enum, r = (_) => {
1041
1041
  t("update:modelValue", _);
1042
1042
  };
1043
1043
  return $t(() => {
1044
- l.modelValue || t(
1044
+ a.modelValue || t(
1045
1045
  "update:modelValue",
1046
- "items" in l.property ? [] : ""
1046
+ "items" in a.property ? [] : ""
1047
1047
  );
1048
- }), (_, p) => (n(), s("div", {
1048
+ }), (_, p) => (n(), i("div", {
1049
1049
  class: "options",
1050
1050
  style: be(`
1051
1051
  --columns: ${_.columns};
1052
1052
  grid-template-columns: repeat(var(--columns), 1fr);
1053
1053
  `)
1054
1054
  }, [
1055
- (n(!0), s(x, null, G(e(u), (b) => (n(), s("div", {
1055
+ (n(!0), i(x, null, Q(e(c), (b) => (n(), i("div", {
1056
1056
  key: `option-${b}`,
1057
1057
  class: "options__checkbox"
1058
1058
  }, [
@@ -1062,13 +1062,13 @@ const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1062
1062
  property: _.property
1063
1063
  }, {
1064
1064
  "model-value": _.modelValue,
1065
- "onUpdate:modelValue": i
1065
+ "onUpdate:modelValue": r
1066
1066
  }), null, 16, ["model-value"])
1067
1067
  ]))), 128))
1068
1068
  ], 4));
1069
1069
  }
1070
1070
  });
1071
- const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (c) => (Ye("data-v-0e3564b6"), c = c(), Je(), c), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ A("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
1071
+ const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (d) => (Ye("data-v-0e3564b6"), d = d(), Je(), d), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ A("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
1072
1072
  inheritAttrs: !1
1073
1073
  }, to = /* @__PURE__ */ U({
1074
1074
  ...eo,
@@ -1082,21 +1082,21 @@ const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (c) =
1082
1082
  readOnly: { type: Boolean }
1083
1083
  },
1084
1084
  emits: ["update:modelValue", "change"],
1085
- setup(c, { emit: r }) {
1086
- const l = c, t = r, o = l.property, u = l.readOnly || (o == null ? void 0 : o.readOnly), i = () => {
1087
- u || (t("change", !l.modelValue), t("update:modelValue", !l.modelValue));
1085
+ setup(d, { emit: u }) {
1086
+ const a = d, t = u, o = a.property, c = a.readOnly || (o == null ? void 0 : o.readOnly), r = () => {
1087
+ c || (t("change", !a.modelValue), t("update:modelValue", !a.modelValue));
1088
1088
  };
1089
1089
  return (_, p) => {
1090
- var d;
1090
+ var s;
1091
1091
  const b = te("clickable");
1092
- return n(), s("div", Pn, [
1093
- P((n(), s("a", {
1092
+ return n(), i("div", Pn, [
1093
+ P((n(), i("a", {
1094
1094
  class: X(`
1095
1095
  switch
1096
1096
  ${_.modelValue && "switch--active"}
1097
- ${e(u) && "switch--readOnly"}
1097
+ ${e(c) && "switch--readOnly"}
1098
1098
  `),
1099
- onClick: ze(i, ["stop"])
1099
+ onClick: ze(r, ["stop"])
1100
1100
  }, [
1101
1101
  Nn,
1102
1102
  A("div", {
@@ -1107,15 +1107,15 @@ const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (c) =
1107
1107
  }, null, 2)
1108
1108
  ], 2)), [
1109
1109
  [b, {
1110
- blocked: e(u)
1110
+ blocked: e(c)
1111
1111
  }]
1112
1112
  ]),
1113
- _.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("div", xn, C(((d = e(o)) == null ? void 0 : d.description) || _.propertyName), 1))
1113
+ _.$slots.default ? C(_.$slots, "default", { key: 0 }, void 0, !0) : (n(), i("div", xn, V(((s = e(o)) == null ? void 0 : s.description) || _.propertyName), 1))
1114
1114
  ]);
1115
1115
  };
1116
1116
  }
1117
1117
  });
1118
- const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) => (Ye("data-v-153a2e0f"), c = c(), Je(), c), oo = { class: "picture" }, ao = {
1118
+ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (d) => (Ye("data-v-153a2e0f"), d = d(), Je(), d), oo = { class: "picture" }, ao = {
1119
1119
  key: 0,
1120
1120
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1121
1121
  }, lo = ["src", "alt"], so = {
@@ -1152,38 +1152,38 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1152
1152
  expandable: { type: Boolean },
1153
1153
  meta: {}
1154
1154
  },
1155
- setup(c) {
1156
- const r = c, l = H(() => r.fileId ? `${kt}/file/${r.fileId}/picture` : r.url || r.modelValue), t = J(!1);
1157
- return (o, u) => {
1155
+ setup(d) {
1156
+ const u = d, a = G(() => u.fileId ? `${kt}/file/${u.fileId}/picture` : u.url || u.modelValue), t = J(!1);
1157
+ return (o, c) => {
1158
1158
  var _;
1159
- const i = te("overlay");
1160
- return n(), s("figure", oo, [
1161
- l.value ? (n(), k(Ke, {
1159
+ const r = te("overlay");
1160
+ return n(), i("figure", oo, [
1161
+ a.value ? (n(), k(Ke, {
1162
1162
  key: 0,
1163
1163
  to: "main"
1164
1164
  }, [
1165
- t.value ? P((n(), s("div", ao, [
1165
+ t.value ? P((n(), i("div", ao, [
1166
1166
  A("img", {
1167
- src: l.value,
1167
+ src: a.value,
1168
1168
  alt: o.alt,
1169
1169
  style: `
1170
1170
  max-height: 60vh;
1171
1171
  object-fit: contain;
1172
1172
  `,
1173
- onClick: u[0] || (u[0] = (p) => t.value = !0)
1173
+ onClick: c[0] || (c[0] = (p) => t.value = !0)
1174
1174
  }, null, 8, lo),
1175
- (_ = o.meta) != null && _.owner ? (n(), s("div", so, " Criado por " + C(o.meta.owner.name) + " em " + C(o.formatDateTime(o.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1175
+ (_ = o.meta) != null && _.owner ? (n(), i("div", so, " Criado por " + V(o.meta.owner.name) + " em " + V(o.formatDateTime(o.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1176
1176
  ])), [
1177
- [i, {
1177
+ [r, {
1178
1178
  click: () => {
1179
1179
  t.value = !1;
1180
1180
  }
1181
1181
  }]
1182
1182
  ]) : y("", !0)
1183
1183
  ])) : y("", !0),
1184
- l.value ? (n(), s("img", {
1184
+ a.value ? (n(), i("img", {
1185
1185
  key: 1,
1186
- src: l.value,
1186
+ src: a.value,
1187
1187
  class: X(`
1188
1188
  picture__image
1189
1189
  ${o.bordered && "picture__image--bordered"}
@@ -1194,10 +1194,10 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1194
1194
  width: ${o.width || "100%"};
1195
1195
  height: ${o.height || "100%"};
1196
1196
  `),
1197
- onClick: u[1] || (u[1] = () => {
1197
+ onClick: c[1] || (c[1] = () => {
1198
1198
  o.expandable && (t.value = !0);
1199
1199
  })
1200
- }, null, 14, io)) : o.$slots.fallback ? O(o.$slots, "fallback", { key: 2 }, void 0, !0) : o.$slots.default ? O(o.$slots, "default", { key: 3 }, void 0, !0) : (n(), s("svg", {
1200
+ }, null, 14, io)) : o.$slots.fallback ? C(o.$slots, "fallback", { key: 2 }, void 0, !0) : o.$slots.default ? C(o.$slots, "default", { key: 3 }, void 0, !0) : (n(), i("svg", {
1201
1201
  key: 4,
1202
1202
  class: X(["picture__background", `
1203
1203
  ${o.bordered && "picture__image--bordered"}
@@ -1211,8 +1211,8 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1211
1211
  height: ${o.height || "100%"};
1212
1212
  `)
1213
1213
  }, co, 6)),
1214
- o.$slots.caption ? (n(), s("figcaption", po, [
1215
- O(o.$slots, "caption", {}, void 0, !0)
1214
+ o.$slots.caption ? (n(), i("figcaption", po, [
1215
+ C(o.$slots, "caption", {}, void 0, !0)
1216
1216
  ])) : y("", !0)
1217
1217
  ]);
1218
1218
  };
@@ -1240,28 +1240,28 @@ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1240
1240
  content: {}
1241
1241
  },
1242
1242
  emits: ["update:content", "change", "update:modelValue"],
1243
- setup(c, { emit: r }) {
1244
- var f;
1245
- const l = c, t = r, u = Me() ? De() : null, i = J(((f = l.modelValue) == null ? void 0 : f.file) || null), _ = H(() => {
1243
+ setup(d, { emit: u }) {
1244
+ var v;
1245
+ const a = d, t = u, c = Me() ? De() : null, r = J(((v = a.modelValue) == null ? void 0 : v.file) || null), _ = G(() => {
1246
1246
  var $;
1247
- return i.value ? URL.createObjectURL(i.value) : ($ = l.modelValue) == null ? void 0 : $.link;
1248
- }), p = H(() => {
1249
- var $, T, V;
1250
- return /^image\//.test(($ = l.modelValue) == null ? void 0 : $.type) && !((T = i.value) != null && T.type) || /^image\//.test((V = i.value) == null ? void 0 : V.type);
1251
- }), b = ($) => new Promise((T) => {
1252
- const V = new FileReader();
1253
- V.onload = () => T(V.result), V.readAsArrayBuffer($);
1254
- }), d = () => {
1255
- l.modelValue.tempId && t("update:modelValue", null), i.value = null;
1256
- }, a = async ($) => {
1257
- i.value = $.target.files[0];
1258
- const T = i.value, V = await b(T);
1259
- if (u) {
1260
- const { data: { error: Y, result: ee } } = await Et(`${kt}/${u.$id}/upload?name=${T.name}`, V, {
1247
+ return r.value ? URL.createObjectURL(r.value) : ($ = a.modelValue) == null ? void 0 : $.link;
1248
+ }), p = G(() => {
1249
+ var $, S, O;
1250
+ return /^image\//.test(($ = a.modelValue) == null ? void 0 : $.type) && !((S = r.value) != null && S.type) || /^image\//.test((O = r.value) == null ? void 0 : O.type);
1251
+ }), b = ($) => new Promise((S) => {
1252
+ const O = new FileReader();
1253
+ O.onload = () => S(O.result), O.readAsArrayBuffer($);
1254
+ }), s = () => {
1255
+ a.modelValue.tempId && t("update:modelValue", null), r.value = null;
1256
+ }, l = async ($) => {
1257
+ r.value = $.target.files[0];
1258
+ const S = r.value, O = await b(S);
1259
+ if (c) {
1260
+ const { data: { error: Y, result: ee } } = await Et(`${kt}/${c.$id}/upload?name=${S.name}`, O, {
1261
1261
  params: {
1262
1262
  method: "POST",
1263
1263
  headers: {
1264
- "content-type": T.type || "application/octet-stream",
1264
+ "content-type": S.type || "application/octet-stream",
1265
1265
  "x-stream-request": "1"
1266
1266
  }
1267
1267
  }
@@ -1270,58 +1270,58 @@ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1270
1270
  return;
1271
1271
  t("update:modelValue", {
1272
1272
  tempId: ee.tempId,
1273
- file: T
1273
+ file: S
1274
1274
  });
1275
1275
  } else
1276
- t("update:modelValue", T);
1277
- t("update:content", V), t("change", V);
1276
+ t("update:modelValue", S);
1277
+ t("update:content", O), t("change", O);
1278
1278
  }, w = async () => {
1279
1279
  t("update:modelValue", null);
1280
1280
  };
1281
- return ($, T) => {
1282
- var V, Y, ee, h, F, le;
1283
- return n(), s("div", mo, [
1284
- i.value || (V = $.modelValue) != null && V._id ? (n(), s("div", fo, [
1281
+ return ($, S) => {
1282
+ var O, Y, ee, h, F, le;
1283
+ return n(), i("div", mo, [
1284
+ r.value || (O = $.modelValue) != null && O._id ? (n(), i("div", fo, [
1285
1285
  p.value ? (n(), k(He, {
1286
1286
  key: 0,
1287
1287
  modelValue: _.value,
1288
- "onUpdate:modelValue": T[0] || (T[0] = (S) => _.value = S),
1288
+ "onUpdate:modelValue": S[0] || (S[0] = (T) => _.value = T),
1289
1289
  alt: "Image preview",
1290
1290
  expandable: $.readOnly,
1291
1291
  class: X(`
1292
1292
  file__image
1293
- ${!e(u) || ((Y = $.modelValue) == null ? void 0 : Y._id) || "file__image--unsent"}
1293
+ ${!e(c) || ((Y = $.modelValue) == null ? void 0 : Y._id) || "file__image--unsent"}
1294
1294
  `)
1295
1295
  }, null, 8, ["modelValue", "expandable", "class"])) : y("", !0),
1296
- (ee = $.modelValue) != null && ee._id ? (n(), s("a", {
1296
+ (ee = $.modelValue) != null && ee._id ? (n(), i("a", {
1297
1297
  key: 1,
1298
1298
  href: $.modelValue.download_link
1299
- }, C($.modelValue.name), 9, vo)) : y("", !0)
1299
+ }, V($.modelValue.name), 9, vo)) : y("", !0)
1300
1300
  ])) : y("", !0),
1301
- $.readOnly ? y("", !0) : (n(), s("div", yo, [
1301
+ $.readOnly ? y("", !0) : (n(), i("div", yo, [
1302
1302
  A("input", {
1303
1303
  ref: "file",
1304
1304
  type: "file",
1305
1305
  accept: (F = (h = $.property) == null ? void 0 : h.accept) == null ? void 0 : F.join(","),
1306
- onChange: a
1306
+ onChange: l
1307
1307
  }, null, 40, ho),
1308
- i.value ? (n(), s("div", bo, [
1308
+ r.value ? (n(), i("div", bo, [
1309
1309
  z(ie, {
1310
1310
  small: "",
1311
- onClick: ze(d, ["prevent"])
1311
+ onClick: ze(s, ["prevent"])
1312
1312
  }, {
1313
- default: v(() => [
1314
- Q(C(e(R)("action.clear", { capitalize: !0 })), 1)
1313
+ default: f(() => [
1314
+ D(V(e(R)("action.clear", { capitalize: !0 })), 1)
1315
1315
  ]),
1316
1316
  _: 1
1317
1317
  })
1318
- ])) : (le = $.modelValue) != null && le._id ? (n(), s("div", $o, [
1318
+ ])) : (le = $.modelValue) != null && le._id ? (n(), i("div", $o, [
1319
1319
  z(ie, {
1320
1320
  small: "",
1321
1321
  onClick: ze(w, ["prevent"])
1322
1322
  }, {
1323
- default: v(() => [
1324
- Q(C(e(R)("action.remove", { capitalize: !0 })), 1)
1323
+ default: f(() => [
1324
+ D(V(e(R)("action.remove", { capitalize: !0 })), 1)
1325
1325
  ]),
1326
1326
  _: 1
1327
1327
  })
@@ -1340,23 +1340,23 @@ const ko = /* @__PURE__ */ W(go, [["__scopeId", "data-v-d491b7ce"]]), Vo = { cla
1340
1340
  observeScroll: { type: Boolean }
1341
1341
  },
1342
1342
  emits: ["endReached"],
1343
- setup(c, { emit: r }) {
1344
- const l = c, t = r, o = J(null), u = l.observeScroll ? Pe(o, {
1343
+ setup(d, { emit: u }) {
1344
+ const a = d, t = u, o = J(null), c = a.observeScroll ? Pe(o, {
1345
1345
  antecipate: 100
1346
1346
  }).reachedEnd : null;
1347
- return u !== null && ue(u, (i) => {
1348
- i && t("endReached", i);
1349
- }), (i, _) => (n(), s("div", Vo, [
1350
- i.$slots.default ? (n(), s("div", {
1347
+ return c !== null && ue(c, (r) => {
1348
+ r && t("endReached", r);
1349
+ }), (r, _) => (n(), i("div", Vo, [
1350
+ r.$slots.default ? (n(), i("div", {
1351
1351
  key: 0,
1352
1352
  ref_key: "containerEl",
1353
1353
  ref: o,
1354
1354
  class: "container__content"
1355
1355
  }, [
1356
- O(i.$slots, "default", {}, void 0, !0)
1356
+ C(r.$slots, "default", {}, void 0, !0)
1357
1357
  ], 512)) : y("", !0),
1358
- i.$slots.footer ? (n(), s("div", Co, [
1359
- O(i.$slots, "footer", {}, void 0, !0)
1358
+ r.$slots.footer ? (n(), i("div", Co, [
1359
+ C(r.$slots, "footer", {}, void 0, !0)
1360
1360
  ])) : y("", !0)
1361
1361
  ]));
1362
1362
  }
@@ -1371,14 +1371,14 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1371
1371
  readOnly: { type: Boolean }
1372
1372
  },
1373
1373
  emits: ["update:modelValue", "change"],
1374
- setup(c, { emit: r }) {
1375
- const l = Ie(), t = c, o = r, u = t.property, i = me(u), _ = De(), p = H(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: w }) => t.item._id === w) : t.modelValue && t.modelValue._id === t.item._id), b = () => {
1374
+ setup(d, { emit: u }) {
1375
+ const a = Ie(), t = d, o = u, c = t.property, r = me(c), _ = De(), p = G(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: w }) => t.item._id === w) : t.modelValue && t.modelValue._id === t.item._id), b = () => {
1376
1376
  if (p.value)
1377
1377
  return;
1378
- const w = ($) => $.filter((T) => !!(T != null && T._id)), f = "items" in u ? w(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1379
- Array.isArray(f) ? o("update:modelValue", f.concat([t.item])) : o("update:modelValue", t.item), o("change", t.item);
1380
- }, d = async (w) => {
1381
- if (i.purge && (w != null && w.purge)) {
1378
+ const w = ($) => $.filter((S) => !!(S != null && S._id)), v = "items" in c ? w(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1379
+ Array.isArray(v) ? o("update:modelValue", v.concat([t.item])) : o("update:modelValue", t.item), o("change", t.item);
1380
+ }, s = async (w) => {
1381
+ if (r.purge && (w != null && w.purge)) {
1382
1382
  const { _id: $ } = t.item;
1383
1383
  await _.$actions.remove({
1384
1384
  filters: {
@@ -1386,35 +1386,35 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1386
1386
  }
1387
1387
  });
1388
1388
  }
1389
- const f = () => {
1390
- const $ = Array.isArray(t.modelValue) ? Array.from(t.modelValue) : [], T = $.findIndex((V) => V._id === t.item._id);
1391
- return $.splice(T, 1), $;
1389
+ const v = () => {
1390
+ const $ = Array.isArray(t.modelValue) ? Array.from(t.modelValue) : [], S = $.findIndex((O) => O._id === t.item._id);
1391
+ return $.splice(S, 1), $;
1392
1392
  };
1393
- o("update:modelValue", "items" in u ? f() : null);
1394
- }, a = () => {
1393
+ o("update:modelValue", "items" in c ? v() : null);
1394
+ }, l = () => {
1395
1395
  if (t.readOnly) {
1396
- l.push({
1397
- path: `/dashboard/c/${i.$ref}/${t.item._id}`
1396
+ a.push({
1397
+ path: `/dashboard/c/${r.$ref}/${t.item._id}`
1398
1398
  });
1399
1399
  return;
1400
1400
  }
1401
- return p.value ? d() : b();
1401
+ return p.value ? s() : b();
1402
1402
  };
1403
- return (w, f) => {
1403
+ return (w, v) => {
1404
1404
  const $ = te("clickable");
1405
- return P((n(), s("div", {
1405
+ return P((n(), i("div", {
1406
1406
  class: X({
1407
1407
  item: !0,
1408
1408
  "item--selected": p.value
1409
1409
  }),
1410
- onClick: a
1410
+ onClick: l
1411
1411
  }, [
1412
- O(w.$slots, "default", {}, void 0, !0),
1412
+ C(w.$slots, "default", {}, void 0, !0),
1413
1413
  A("div", Io, [
1414
- (n(!0), s(x, null, G(w.indexes, (T, V) => (n(), s("div", {
1415
- key: `index-${w.item._id}-${V}`,
1414
+ (n(!0), i(x, null, Q(w.indexes, (S, O) => (n(), i("div", {
1415
+ key: `index-${w.item._id}-${O}`,
1416
1416
  class: "item__value"
1417
- }, C(w.item[T]), 1))), 128))
1417
+ }, V(w.item[S]), 1))), 128))
1418
1418
  ]),
1419
1419
  w.readOnly ? (n(), k(Z, {
1420
1420
  key: 0,
@@ -1443,39 +1443,39 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1443
1443
  panel: { default: void 0 }
1444
1444
  },
1445
1445
  emits: ["update:modelValue", "change", "update:panel"],
1446
- setup(c, { emit: r }) {
1447
- const l = c, t = me(l.property), o = l.panel !== void 0 ? H(() => l.panel) : J(!1), u = r, i = re(me(l.property).$ref), _ = Me(), p = _ ? De() : null, b = t.indexes;
1448
- ye(Fe, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1449
- const d = J(l.modelValue), a = J({
1446
+ setup(d, { emit: u }) {
1447
+ const a = d, t = me(a.property), o = a.panel !== void 0 ? G(() => a.panel) : J(!1), c = u, r = re(me(a.property).$ref), _ = Me(), p = _ ? De() : null, b = t.indexes;
1448
+ ye(Fe, me(a.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1449
+ const s = J(a.modelValue), l = J({
1450
1450
  data: [],
1451
1451
  pagination: {}
1452
- }), w = H(() => a.value.data), f = H(() => a.value.pagination), $ = J(0), T = J(!1), V = J(""), Y = () => {
1452
+ }), w = G(() => l.value.data), v = G(() => l.value.pagination), $ = J(0), S = J(!1), O = J(""), Y = () => {
1453
1453
  const M = {};
1454
1454
  if (_) {
1455
- const D = e(_);
1456
- M[D] = p;
1455
+ const H = e(_);
1456
+ M[H] = p;
1457
1457
  }
1458
1458
  return t.constraints ? zt(t.constraints, M) : {};
1459
1459
  }, ee = () => {
1460
- w.value.length < f.value.recordsTotal && ($.value += 1, F());
1461
- }, h = async () => V.value.length === 0 ? i.$actions.custom("getAll", {
1460
+ w.value.length < v.value.recordsTotal && ($.value += 1, F());
1461
+ }, h = async () => O.value.length === 0 ? r.$actions.custom("getAll", {
1462
1462
  limit: Ee,
1463
1463
  offset: $.value * Ee,
1464
1464
  filters: Y()
1465
- }) : i.$actions.custom("getAll", {
1465
+ }) : r.$actions.custom("getAll", {
1466
1466
  limit: Ee,
1467
1467
  offset: $.value * Ee,
1468
1468
  filters: {
1469
1469
  $text: {
1470
- $search: `"${V.value}"`,
1470
+ $search: `"${O.value}"`,
1471
1471
  $caseSensitive: !1
1472
1472
  },
1473
1473
  ...Y()
1474
1474
  }
1475
1475
  }), F = async () => {
1476
- if (i.loading.getAll)
1476
+ if (r.loading.getAll)
1477
1477
  return;
1478
- const { error: M, result: D } = await h();
1478
+ const { error: M, result: H } = await h();
1479
1479
  if (M) {
1480
1480
  re("meta").$actions.spawnToast({
1481
1481
  text: "Request failed",
@@ -1483,31 +1483,31 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1483
1483
  });
1484
1484
  return;
1485
1485
  }
1486
- a.value.pagination = D.pagination, $.value === 0 && a.value.data.splice(0), a.value.data.push(...D.data);
1486
+ l.value.pagination = H.pagination, $.value === 0 && l.value.data.splice(0), l.value.data.push(...H.data);
1487
1487
  }, [le] = Vt({
1488
1488
  delay: 800
1489
1489
  })(() => {
1490
- $.value = 0, F(), T.value = !1;
1491
- }), S = () => {
1492
- T.value = !0, le();
1490
+ $.value = 0, F(), S.value = !1;
1491
+ }), T = () => {
1492
+ S.value = !0, le();
1493
1493
  }, g = () => {
1494
- "effect" in o ? u("update:panel", !0) : o.value = !0, F();
1494
+ "effect" in o ? c("update:panel", !0) : o.value = !0, F();
1495
1495
  }, j = () => {
1496
- $.value = 0, a.value.data.splice(0), "effect" in o ? u("update:panel", !1) : o.value = !1;
1496
+ $.value = 0, l.value.data.splice(0), "effect" in o ? c("update:panel", !1) : o.value = !1;
1497
1497
  };
1498
- ue(() => V.value.length, (M, D) => {
1499
- M && !D && F();
1498
+ ue(() => O.value.length, (M, H) => {
1499
+ M && !H && F();
1500
1500
  }), Xe(() => {
1501
- l.selectOnly && F();
1501
+ a.selectOnly && F();
1502
1502
  });
1503
1503
  const ne = (M) => {
1504
- d.value = M, l.selectOnly || u("update:modelValue", M);
1504
+ s.value = M, a.selectOnly || c("update:modelValue", M);
1505
1505
  }, oe = () => {
1506
- j(), u("update:modelValue", d.value);
1506
+ j(), c("update:modelValue", s.value);
1507
1507
  };
1508
- return (M, D) => {
1508
+ return (M, H) => {
1509
1509
  const se = te("clickable");
1510
- return n(), s("div", null, [
1510
+ return n(), i("div", null, [
1511
1511
  e(o) ? (n(), k(Ke, {
1512
1512
  key: 0,
1513
1513
  to: "main"
@@ -1522,65 +1522,65 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1522
1522
  onClose: j,
1523
1523
  onOverlayClick: j
1524
1524
  }, {
1525
- footer: v(() => [
1525
+ footer: f(() => [
1526
1526
  z(ie, {
1527
1527
  large: "",
1528
1528
  onClick: oe
1529
1529
  }, {
1530
- default: v(() => [
1531
- Q(C(e(R)("action.save", { capitalize: !0 })), 1)
1530
+ default: f(() => [
1531
+ D(V(e(R)("action.save", { capitalize: !0 })), 1)
1532
1532
  ]),
1533
1533
  _: 1
1534
1534
  })
1535
1535
  ]),
1536
- default: v(() => {
1536
+ default: f(() => {
1537
1537
  var ae, m;
1538
1538
  return [
1539
1539
  A("div", wo, [
1540
1540
  z(ke, E({
1541
- modelValue: V.value,
1542
- "onUpdate:modelValue": D[0] || (D[0] = (L) => V.value = L)
1541
+ modelValue: O.value,
1542
+ "onUpdate:modelValue": H[0] || (H[0] = (L) => O.value = L)
1543
1543
  }, {
1544
1544
  property: {
1545
1545
  type: "string",
1546
1546
  placeholder: "Pesquise aqui",
1547
1547
  inputType: "search"
1548
1548
  }
1549
- }, { onInput: S }), null, 16, ["modelValue"]),
1549
+ }, { onInput: T }), null, 16, ["modelValue"]),
1550
1550
  w.value.length ? (n(), k(ft, {
1551
1551
  key: 0,
1552
1552
  "observe-scroll": "",
1553
1553
  onEndReached: ee
1554
1554
  }, {
1555
- default: v(() => [
1556
- (n(!0), s(x, null, G(w.value, (L) => (n(), k(Ge, E({ ref_for: !0 }, {
1555
+ default: f(() => [
1556
+ (n(!0), i(x, null, Q(w.value, (L) => (n(), k(Ge, E({ ref_for: !0 }, {
1557
1557
  item: L,
1558
1558
  indexes: e(b),
1559
1559
  property: M.property
1560
1560
  }, {
1561
1561
  key: `matching-${L._id}`,
1562
- modelValue: d.value,
1563
- "onUpdate:modelValue": D[1] || (D[1] = (K) => d.value = K)
1562
+ modelValue: s.value,
1563
+ "onUpdate:modelValue": H[1] || (H[1] = (K) => s.value = K)
1564
1564
  }), null, 16, ["modelValue"]))), 128))
1565
1565
  ]),
1566
1566
  _: 1
1567
- })) : (n(), s("div", Bo, [
1568
- T.value ? (n(), s("div", So, C(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(i).loading.getAll && Object.values(V.value).filter((L) => !!L).length > 0 && !("items" in M.property && ((ae = M.modelValue) != null && ae.length) || !Array.isArray(M.modelValue) && ((m = M.modelValue) != null && m._id)) ? (n(), s("div", To, C(e(R)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1567
+ })) : (n(), i("div", Bo, [
1568
+ S.value ? (n(), i("div", So, V(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(r).loading.getAll && Object.values(O.value).filter((L) => !!L).length > 0 && !("items" in M.property && ((ae = M.modelValue) != null && ae.length) || !Array.isArray(M.modelValue) && ((m = M.modelValue) != null && m._id)) ? (n(), i("div", To, V(e(R)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1569
1569
  ]))
1570
1570
  ]),
1571
- A("div", jo, C(e(R)("showing", { capitalize: !0 })) + " " + C(w.value.length) + " " + C(e(R)("of")) + " " + C(f.value.recordsTotal), 1)
1571
+ A("div", jo, V(e(R)("showing", { capitalize: !0 })) + " " + V(w.value.length) + " " + V(e(R)("of")) + " " + V(v.value.recordsTotal), 1)
1572
1572
  ];
1573
1573
  }),
1574
1574
  _: 1
1575
1575
  }, 8, ["title", "model-value"])
1576
1576
  ])) : y("", !0),
1577
- M.selectOnly ? y("", !0) : (n(), s("div", Ro, [
1577
+ M.selectOnly ? y("", !0) : (n(), i("div", Ro, [
1578
1578
  z(ft, null, ce({
1579
- default: v(() => {
1579
+ default: f(() => {
1580
1580
  var ae;
1581
1581
  return [
1582
- "items" in M.property ? (n(), s("div", Lo, [
1583
- (n(!0), s(x, null, G(M.modelValue, (m) => (n(), k(Ge, E({ ref_for: !0 }, {
1582
+ "items" in M.property ? (n(), i("div", Lo, [
1583
+ (n(!0), i(x, null, Q(M.modelValue, (m) => (n(), k(Ge, E({ ref_for: !0 }, {
1584
1584
  item: m,
1585
1585
  indexes: e(b),
1586
1586
  property: M.property,
@@ -1603,13 +1603,13 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1603
1603
  }, [
1604
1604
  M.readOnly ? void 0 : {
1605
1605
  name: "footer",
1606
- fn: v(() => [
1606
+ fn: f(() => [
1607
1607
  P((n(), k(Z, {
1608
1608
  icon: "plus",
1609
1609
  onClick: g
1610
1610
  }, {
1611
- default: v(() => [
1612
- Q(C(e(R)("action.select", { capitalize: !0 })), 1)
1611
+ default: f(() => [
1612
+ D(V(e(R)("action.select", { capitalize: !0 })), 1)
1613
1613
  ]),
1614
1614
  _: 1
1615
1615
  })), [
@@ -1624,8 +1624,8 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
1624
1624
  };
1625
1625
  }
1626
1626
  });
1627
- const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r) => {
1628
- const l = "items" in c ? c.items : c, t = {
1627
+ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (d, u) => {
1628
+ const a = "items" in d ? d.items : d, t = {
1629
1629
  options: Jn,
1630
1630
  select: Ne,
1631
1631
  switch: no,
@@ -1634,32 +1634,32 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1634
1634
  input: ke,
1635
1635
  form: Qe
1636
1636
  }, o = (() => {
1637
- if ("type" in l) {
1638
- if (l.type === "object")
1637
+ if ("type" in a) {
1638
+ if (a.type === "object")
1639
1639
  return "form";
1640
- if (l.type === "boolean")
1640
+ if (a.type === "boolean")
1641
1641
  return "switch";
1642
1642
  }
1643
- if ("element" in c) {
1644
- if (c.element === "checkbox" || c.element === "radio")
1643
+ if ("element" in d) {
1644
+ if (d.element === "checkbox" || d.element === "radio")
1645
1645
  return "options";
1646
- if (c.element === "select")
1646
+ if (d.element === "select")
1647
1647
  return "select";
1648
1648
  }
1649
- const u = me(c);
1650
- return u ? u.inline ? "form" : u.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in l ? "select" : "input";
1649
+ const c = me(d);
1650
+ return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in d && d.uniqueItems ? "options" : "enum" in a ? "select" : "input";
1651
1651
  })();
1652
- return r[o] ? r[o] : t[o];
1653
- }, Mo = (c, r, l) => {
1654
- c ?? (c = []);
1655
- const t = "items" in r ? r.items : r;
1652
+ return u[o] ? u[o] : t[o];
1653
+ }, Mo = (d, u, a) => {
1654
+ d ?? (d = []);
1655
+ const t = "items" in u ? u.items : u;
1656
1656
  if ("$ref" in t) {
1657
- const o = re(t.$ref, l), u = Ce(o.$freshItem);
1658
- return c.push(u);
1657
+ const o = re(t.$ref, a), c = Ce(o.$freshItem);
1658
+ return d.push(c);
1659
1659
  }
1660
- return "properties" in t ? c.push(qt(t)) : "type" in t && t.type === "boolean" ? c.push({}) : c.push(null);
1661
- }, Fo = (c, r) => {
1662
- c.splice(r, 1);
1660
+ return "properties" in t ? d.push(qt(t)) : "type" in t && t.type === "boolean" ? d.push({}) : d.push(null);
1661
+ }, Fo = (d, u) => {
1662
+ d.splice(u, 1);
1663
1663
  }, Uo = {
1664
1664
  key: 0,
1665
1665
  class: "form__header"
@@ -1699,16 +1699,16 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1699
1699
  includeTimestamps: { type: Boolean }
1700
1700
  },
1701
1701
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
1702
- setup(c, { emit: r }) {
1702
+ setup(d, { emit: u }) {
1703
1703
  var ae;
1704
- const l = Ze(), t = c, o = r;
1704
+ const a = Ze(), t = d, o = u;
1705
1705
  $t(() => {
1706
1706
  t.modelValue || o("update:modelValue", t.property && "items" in t.property ? [] : {});
1707
1707
  });
1708
- const u = t.property && me(t.property), i = u ? u.$ref : t.collection || Me(), _ = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), p = i ? re(e(i)) : null;
1709
- !i && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1708
+ const c = t.property && me(t.property), r = c ? c.$ref : t.collection || Me(), _ = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), p = r ? re(e(r)) : null;
1709
+ !r && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1710
1710
  collection prop, some features may not work as intended`);
1711
- const b = J(!1), d = H(() => {
1711
+ const b = J(!1), s = G(() => {
1712
1712
  const m = (() => !t.form && t.property ? "type" in t.property && t.property.type === "object" ? "properties" in t.property ? t.property.properties : void 0 : p == null ? void 0 : p.properties : t.form)();
1713
1713
  if (!m)
1714
1714
  return;
@@ -1726,23 +1726,23 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1726
1726
  m.created_at || (L.created_at = K), m.created_at || (L.updated_at = K);
1727
1727
  }
1728
1728
  return Object.assign(L, m), L;
1729
- }), a = H(() => t.layout || (p == null ? void 0 : p.description.formLayout)), w = (m) => {
1729
+ }), l = G(() => t.layout || (p == null ? void 0 : p.description.formLayout)), w = (m) => {
1730
1730
  const L = _e(m, t[m]);
1731
1731
  return t[m] && ye(m, t[m]), L;
1732
- }, f = H(() => t.validationErrors !== null ? t.validationErrors : p == null ? void 0 : p.validationErrors), $ = w("formComponents") || {}, T = w("propertyComponents") || {}, V = w("omitFormHeader"), Y = w("omitInputLabels"), ee = w("innerInputLabel");
1733
- i && ye(Fe, i), ye("searchOnly", t.searchOnly);
1734
- const h = (m) => d.value ? Object.entries(d.value).filter(([L, K]) => !K.noForm && m([
1732
+ }, v = G(() => t.validationErrors !== null ? t.validationErrors : p == null ? void 0 : p.validationErrors), $ = w("formComponents") || {}, S = w("propertyComponents") || {}, O = w("omitFormHeader"), Y = w("omitInputLabels"), ee = w("innerInputLabel");
1733
+ r && ye(Fe, r), ye("searchOnly", t.searchOnly);
1734
+ const h = (m) => s.value ? Object.entries(s.value).filter(([L, K]) => !K.noForm && m([
1735
1735
  L,
1736
1736
  K
1737
1737
  ])) : null, F = (m, L) => {
1738
1738
  var B;
1739
- if (t.searchOnly || !i || t.includeId && m === "_id" || t.includeTimestamps && L.isTimestamp)
1739
+ if (t.searchOnly || !r || t.includeId && m === "_id" || t.includeTimestamps && L.isTimestamp)
1740
1740
  return !0;
1741
1741
  const K = t.property && "properties" in t.property ? t.property.form : (B = p == null ? void 0 : p.description) == null ? void 0 : B.form;
1742
1742
  return !K || K.includes(m);
1743
- }, le = h(([m, L]) => F(m, L)), S = Ue(), g = {}, j = (m, L) => {
1743
+ }, le = h(([m, L]) => F(m, L)), T = Ue(), g = {}, j = (m, L) => {
1744
1744
  var q, fe, we, Be;
1745
- const K = [], B = ((fe = (q = a.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((Be = (we = a.value) == null ? void 0 : we.fields) == null ? void 0 : Be.$default);
1745
+ const K = [], B = ((fe = (q = l.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((Be = (we = l.value) == null ? void 0 : we.fields) == null ? void 0 : Be.$default);
1746
1746
  if (!L)
1747
1747
  return;
1748
1748
  if (B != null && B.if && !t.searchOnly) {
@@ -1755,7 +1755,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1755
1755
  null
1756
1756
  ].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), K.push("display: none;")), g[m] = Se.satisfied;
1757
1757
  }
1758
- const I = S.value.md && (B == null ? void 0 : B.span) || 6;
1758
+ const I = T.value.md && (B == null ? void 0 : B.span) || 6;
1759
1759
  return K.push(`
1760
1760
  --field-span: ${I};
1761
1761
  grid-column: span var(--field-span) / span var(--field-span);
@@ -1768,50 +1768,50 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1768
1768
  padding: 1rem 0;
1769
1769
  margin: 1rem 0;
1770
1770
  `)), K.join("");
1771
- }, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe = H(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : p == null ? void 0 : p.description.required), M = H(() => t.form ? Ht(
1771
+ }, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe = G(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : p == null ? void 0 : p.description.required), M = G(() => t.form ? Ht(
1772
1772
  t.modelValue,
1773
1773
  t.form,
1774
1774
  oe.value,
1775
1775
  p == null ? void 0 : p.description
1776
- ) : !0), D = (m, L) => {
1776
+ ) : !0), H = (m, L) => {
1777
1777
  var K;
1778
- return (K = f.value) != null && K[m] && (typeof f.value[m].index != "number" || f.value[m].index === L) ? f.value[m].errors : null;
1778
+ return (K = v.value) != null && K[m] && (typeof v.value[m].index != "number" || v.value[m].index === L) ? v.value[m].errors : null;
1779
1779
  }, se = (m) => {
1780
1780
  if (!(_ || m.readOnly) && !t.parentPropertyName && !t.parentCollection && !b.value)
1781
1781
  return b.value = !0, !0;
1782
1782
  };
1783
1783
  return (m, L) => {
1784
1784
  const K = te("clickable"), B = te("focus");
1785
- return n(), s("form", {
1785
+ return n(), i("form", {
1786
1786
  class: "form",
1787
- style: be(`row-gap: ${e(V) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1787
+ style: be(`row-gap: ${e(O) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1788
1788
  }, [
1789
- m.$slots.header && !e(V) ? (n(), s("header", Uo, [
1790
- O(m.$slots, "header", {}, void 0, !0)
1789
+ m.$slots.header && !e(O) ? (n(), i("header", Uo, [
1790
+ C(m.$slots, "header", {}, void 0, !0)
1791
1791
  ])) : y("", !0),
1792
- O(m.$slots, "default", {}, void 0, !0),
1792
+ C(m.$slots, "default", {}, void 0, !0),
1793
1793
  A("fieldset", Eo, [
1794
- (n(!0), s(x, null, G(e(le), ([I, q]) => {
1794
+ (n(!0), i(x, null, Q(e(le), ([I, q]) => {
1795
1795
  var fe, we, Be, Se, xe, et, tt, nt, ot, at, lt, st, it;
1796
- return n(), s("div", {
1796
+ return n(), i("div", {
1797
1797
  key: `field-${I}`,
1798
1798
  style: be(j(I, q)),
1799
1799
  class: "form__field"
1800
1800
  }, [
1801
- (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), s("label", Ho, [
1801
+ (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), i("label", Ho, [
1802
1802
  A("div", {
1803
1803
  class: X({
1804
1804
  "form__field-label": !0,
1805
1805
  "form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
1806
1806
  "form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!oe.value || e(Mt)(I, oe.value, m.modelValue))
1807
1807
  })
1808
- }, C(q.description || e(R)(I)), 3),
1809
- q.hint ? (n(), s("div", {
1808
+ }, V(q.description || e(R)(I)), 3),
1809
+ q.hint ? (n(), i("div", {
1810
1810
  key: 0,
1811
1811
  innerHTML: q.hint
1812
1812
  }, null, 8, Do)) : y("", !0)
1813
1813
  ])) : y("", !0),
1814
- m.$slots[`field-${I}`] ? O(m.$slots, `field-${I}`, E({
1814
+ m.$slots[`field-${I}`] ? C(m.$slots, `field-${I}`, E({
1815
1815
  key: 1,
1816
1816
  ref_for: !0
1817
1817
  }, {
@@ -1819,7 +1819,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1819
1819
  property: q,
1820
1820
  propertyName: I,
1821
1821
  modelValue: m.modelValue
1822
- }), void 0, !0) : (Be = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Be.component && e(T)[m.layout.fields[I].component.name] ? (n(), k(he(e(T)[m.layout.fields[I].component.name]), E({
1822
+ }), void 0, !0) : (Be = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Be.component && e(S)[m.layout.fields[I].component.name] ? (n(), k(he(e(S)[m.layout.fields[I].component.name]), E({
1823
1823
  key: 2,
1824
1824
  modelValue: m.modelValue[I],
1825
1825
  "onUpdate:modelValue": (N) => m.modelValue[I] = N,
@@ -1832,7 +1832,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1832
1832
  }, {
1833
1833
  onInput: (N) => o("input", I),
1834
1834
  onChange: L[0] || (L[0] = (N) => o("change", N))
1835
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && m.searchOnly ? (n(), s("div", {
1835
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && m.searchOnly ? (n(), i("div", {
1836
1836
  key: 3,
1837
1837
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1838
1838
  onInput: (N) => o("input", I),
@@ -1854,7 +1854,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1854
1854
  property: q,
1855
1855
  propertyName: I
1856
1856
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1857
- ], 40, Qo)) : "type" in q && q.type === "boolean" && m.searchOnly ? (n(), s("div", Go, [
1857
+ ], 40, Qo)) : "type" in q && q.type === "boolean" && m.searchOnly ? (n(), i("div", Go, [
1858
1858
  z(Ne, E({ ref_for: !0 }, {
1859
1859
  property: q,
1860
1860
  propertyName: I
@@ -1866,33 +1866,33 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1866
1866
  m.modelValue[I] = N == "true" ? !0 : N == "false" ? !1 : null;
1867
1867
  }
1868
1868
  }), {
1869
- default: v(() => [
1870
- A("option", Wo, C(e(R)("yes")), 1),
1871
- A("option", Ko, C(e(R)("no")), 1)
1869
+ default: f(() => [
1870
+ A("option", Wo, V(e(R)("yes")), 1),
1871
+ A("option", Ko, V(e(R)("no")), 1)
1872
1872
  ]),
1873
1873
  _: 2
1874
1874
  }, 1040, ["model-value", "onUpdate:modelValue"])
1875
- ])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(), s("div", Xo, [
1876
- e(_) ? y("", !0) : (n(), s("div", Yo, [
1875
+ ])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(), i("div", Xo, [
1876
+ e(_) ? y("", !0) : (n(), i("div", Yo, [
1877
1877
  z(ie, {
1878
1878
  small: "",
1879
1879
  variant: "alt",
1880
1880
  icon: "plus",
1881
1881
  disabled: !("inline" in q.items && q.items.inline) && (((Se = m.modelValue[I]) == null ? void 0 : Se.length) >= q.maxItems || ne((et = m.modelValue[I]) == null ? void 0 : et[((xe = m.modelValue[I]) == null ? void 0 : xe.length) - 1])),
1882
1882
  onClick: ze((N) => {
1883
- m.modelValue[I] || (m.modelValue[I] = []), e(Mo)(m.modelValue[I], q, e(l));
1883
+ m.modelValue[I] || (m.modelValue[I] = []), e(Mo)(m.modelValue[I], q, e(a));
1884
1884
  }, ["prevent"])
1885
1885
  }, {
1886
- default: v(() => [
1887
- Q(C(e(R)("action.add", { capitalize: !0 })), 1)
1886
+ default: f(() => [
1887
+ D(V(e(R)("action.add", { capitalize: !0 })), 1)
1888
1888
  ]),
1889
1889
  _: 2
1890
1890
  }, 1032, ["disabled", "onClick"])
1891
1891
  ])),
1892
1892
  A("div", Jo, [
1893
- (n(!0), s(x, null, G(m.modelValue[I], (N, Te) => {
1893
+ (n(!0), i(x, null, Q(m.modelValue[I], (N, Te) => {
1894
1894
  var rt, ut, ct, dt, pt, _t;
1895
- return n(), s("div", {
1895
+ return n(), i("div", {
1896
1896
  key: `rep-${I}-${e(Dt)(N, Te)}`,
1897
1897
  class: "form__array-item"
1898
1898
  }, [
@@ -1905,10 +1905,10 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1905
1905
  readOnly: e(_),
1906
1906
  property: q.items,
1907
1907
  propertyName: I,
1908
- parentCollection: e(i),
1908
+ parentCollection: e(r),
1909
1909
  parentPropertyName: m.parentPropertyName,
1910
1910
  columns: ((ct = (ut = (rt = m.layout) == null ? void 0 : rt.fields) == null ? void 0 : ut[I]) == null ? void 0 : ct.optionsColumns) || ((_t = (pt = (dt = m.layout) == null ? void 0 : dt.fields) == null ? void 0 : pt.$default) == null ? void 0 : _t.optionsColumns),
1911
- validationErrors: D(I, Te),
1911
+ validationErrors: H(I, Te),
1912
1912
  ...q.componentProps || {}
1913
1913
  }, {
1914
1914
  onInput: (je) => o("input", I),
@@ -1936,10 +1936,10 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1936
1936
  property: q,
1937
1937
  propertyName: I,
1938
1938
  parentPropertyName: m.parentPropertyName,
1939
- parentCollection: e(i),
1939
+ parentCollection: e(r),
1940
1940
  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),
1941
1941
  ...q.componentProps || {},
1942
- validationErrors: D(I)
1942
+ validationErrors: H(I)
1943
1943
  }, {
1944
1944
  onInput: (N) => o("input", I),
1945
1945
  onChange: L[4] || (L[4] = (N) => o("change", N)),
@@ -1947,16 +1947,16 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1947
1947
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1948
1948
  [B, se(q)]
1949
1949
  ]) : y("", !0),
1950
- (it = f.value) != null && it[I] ? (n(), s("div", Po, [
1951
- f.value[I].type ? (n(), s("span", No, C(e(R)(`validation_error.${f.value[I].type}`)), 1)) : y("", !0),
1952
- f.value[I].detail ? (n(), s("span", xo, C(e(R)(f.value[I].detail)), 1)) : y("", !0)
1950
+ (it = v.value) != null && it[I] ? (n(), i("div", Po, [
1951
+ v.value[I].type ? (n(), i("span", No, V(e(R)(`validation_error.${v.value[I].type}`)), 1)) : y("", !0),
1952
+ v.value[I].detail ? (n(), i("span", xo, V(e(R)(v.value[I].detail)), 1)) : y("", !0)
1953
1953
  ])) : y("", !0)
1954
1954
  ], 4);
1955
1955
  }), 128))
1956
1956
  ]),
1957
- m.$slots.after ? O(m.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1958
- m.$slots.footer ? (n(), s("div", ea, [
1959
- O(m.$slots, "footer", de(ge({
1957
+ m.$slots.after ? C(m.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1958
+ m.$slots.footer ? (n(), i("div", ea, [
1959
+ C(m.$slots, "footer", de(ge({
1960
1960
  isInsertReady: M.value
1961
1961
  })), void 0, !0)
1962
1962
  ])) : y("", !0)
@@ -1967,14 +1967,14 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1967
1967
  const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @__PURE__ */ U({
1968
1968
  __name: "aeria-filter-panel",
1969
1969
  emits: ["update:modelValue"],
1970
- setup(c, { emit: r }) {
1971
- const l = r, t = De(), o = Ie(), u = e(_e(Fe)), i = () => {
1972
- t.pagination.offset = 0, t.$actions.filter(), l("update:modelValue", !1);
1970
+ setup(d, { emit: u }) {
1971
+ const a = u, t = De(), o = Ie(), c = e(_e(Fe)), r = () => {
1972
+ t.pagination.offset = 0, t.$actions.filter(), a("update:modelValue", !1);
1973
1973
  const _ = Object.assign({
1974
1974
  query: {}
1975
1975
  }, o.currentRoute.value);
1976
1976
  for (const p of Object.keys(_.query))
1977
- p.startsWith(`${u}.`) && delete _.query[p];
1977
+ p.startsWith(`${c}.`) && delete _.query[p];
1978
1978
  o.currentRoute.value.query = {}, o.push(qe(_, {
1979
1979
  query: Qt(t)
1980
1980
  }));
@@ -1983,22 +1983,22 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
1983
1983
  "close-hint": "",
1984
1984
  "fixed-right": "",
1985
1985
  title: _.t("filter_by", { capitalize: !0 }),
1986
- onClose: p[2] || (p[2] = (b) => l("update:modelValue", !1)),
1987
- onOverlayClick: p[3] || (p[3] = (b) => l("update:modelValue", !1))
1986
+ onClose: p[2] || (p[2] = (b) => a("update:modelValue", !1)),
1987
+ onOverlayClick: p[3] || (p[3] = (b) => a("update:modelValue", !1))
1988
1988
  }, {
1989
- footer: v(() => [
1989
+ footer: f(() => [
1990
1990
  e(t).filtersCount > 0 ? (n(), k(ie, {
1991
1991
  key: 0,
1992
1992
  variant: "transparent",
1993
1993
  onClick: p[1] || (p[1] = (b) => {
1994
- e(t).$actions.clearFilters(), i(), l("update:modelValue", !1);
1994
+ e(t).$actions.clearFilters(), r(), a("update:modelValue", !1);
1995
1995
  })
1996
1996
  }, {
1997
- default: v(() => [
1998
- Q(C(_.t("action.clear", { capitalize: !0 })) + " ", 1),
1997
+ default: f(() => [
1998
+ D(V(_.t("action.clear", { capitalize: !0 })) + " ", 1),
1999
1999
  z($e, null, {
2000
- default: v(() => [
2001
- Q(C(e(t).filtersCount), 1)
2000
+ default: f(() => [
2001
+ D(V(e(t).filtersCount), 1)
2002
2002
  ]),
2003
2003
  _: 1
2004
2004
  })
@@ -2009,15 +2009,15 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2009
2009
  large: "",
2010
2010
  icon: "funnel",
2011
2011
  disabled: !e(t).hasActiveFilters,
2012
- onClick: i
2012
+ onClick: r
2013
2013
  }, {
2014
- default: v(() => [
2015
- Q(C(_.t("action.filter", { capitalize: !0 })), 1)
2014
+ default: f(() => [
2015
+ D(V(_.t("action.filter", { capitalize: !0 })), 1)
2016
2016
  ]),
2017
2017
  _: 1
2018
2018
  }, 8, ["disabled"])
2019
2019
  ]),
2020
- default: v(() => [
2020
+ default: f(() => [
2021
2021
  z(Qe, E({
2022
2022
  modelValue: e(t).filters,
2023
2023
  "onUpdate:modelValue": p[0] || (p[0] = (b) => e(t).filters = b)
@@ -2042,110 +2042,110 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2042
2042
  includeTimestamps: { type: Boolean }
2043
2043
  },
2044
2044
  emits: ["update:visible", "update:modelValue", "insert", "cancel"],
2045
- setup(c, { emit: r }) {
2046
- const l = c, t = r, o = re("meta"), u = l.collection || o.view.collection, i = re(u), _ = _e("individualActions", []);
2045
+ setup(d, { emit: u }) {
2046
+ const a = d, t = u, o = re("meta"), c = a.collection || o.view.collection, r = re(c), _ = _e("individualActions", []);
2047
2047
  Xe(() => {
2048
- l.modelValue && i.$actions.setItem(l.modelValue);
2048
+ a.modelValue && r.$actions.setItem(a.modelValue);
2049
2049
  });
2050
- const p = H(() => l.form ? i.$actions.useProperties(l.form) : i.description.form ? i.$actions.useProperties(i.description.form) : i.properties), b = async () => {
2051
- const { error: f, result: $ } = await i.$actions.deepInsert();
2052
- f || (t("update:visible", !1), t("update:modelValue", $), t("insert", $), i.$actions.clearItem());
2053
- }, { t: d } = Lt(), a = () => {
2050
+ const p = G(() => a.form ? r.$actions.useProperties(a.form) : r.description.form ? r.$actions.useProperties(r.description.form) : r.properties), b = async () => {
2051
+ const { error: v, result: $ } = await r.$actions.deepInsert();
2052
+ v || (t("update:visible", !1), t("update:modelValue", $), t("insert", $), r.$actions.clearItem());
2053
+ }, { t: s } = Lt(), l = () => {
2054
2054
  o.$actions.ask({
2055
2055
  action: () => {
2056
- i.$actions.clearItem(), i.validationErrors = {}, t("cancel");
2056
+ r.$actions.clearItem(), r.validationErrors = {}, t("cancel");
2057
2057
  },
2058
- body: d("prompt.close_panel")
2058
+ body: s("prompt.close_panel")
2059
2059
  });
2060
2060
  }, w = () => o.$actions.spawnToast({
2061
2061
  icon: "info",
2062
- text: d("copied_to_clipboard")
2062
+ text: s("copied_to_clipboard")
2063
2063
  });
2064
- return ue(() => i.item._id, (f) => {
2065
- f === null && t("update:visible", !1);
2066
- }), (f, $) => {
2067
- const T = te("clickable");
2064
+ return ue(() => r.item._id, (v) => {
2065
+ v === null && t("update:visible", !1);
2066
+ }), (v, $) => {
2067
+ const S = te("clickable");
2068
2068
  return n(), k(Ae, {
2069
- "model-value": f.visible,
2070
- loading: e(i).loading.get,
2071
- onOverlayClick: a
2069
+ "model-value": v.visible,
2070
+ loading: e(r).loading.get,
2071
+ onOverlayClick: l
2072
2072
  }, ce({
2073
- extra: v(() => [
2073
+ extra: f(() => [
2074
2074
  z(Oe, E({
2075
- subject: e(i).item,
2076
- actions: e(_).filter(({ action: V }) => V !== "spawnEdit"),
2075
+ subject: e(r).item,
2076
+ actions: e(_).filter(({ action: O }) => O !== "spawnEdit"),
2077
2077
  overlayLayer: 60
2078
2078
  }, {
2079
- onActionClick: $[2] || ($[2] = (V) => t("update:visible", !1))
2079
+ onActionClick: $[2] || ($[2] = (O) => t("update:visible", !1))
2080
2080
  }), {
2081
- default: v(({
2082
- visible: V
2081
+ default: f(({
2082
+ visible: O
2083
2083
  }) => [
2084
- e(i).item._id ? P((n(), k(Z, {
2084
+ e(r).item._id ? P((n(), k(Z, {
2085
2085
  key: 0,
2086
2086
  reactive: "",
2087
- active: V,
2087
+ active: O,
2088
2088
  icon: "dots-three"
2089
2089
  }, null, 8, ["active"])), [
2090
- [T]
2090
+ [S]
2091
2091
  ]) : y("", !0)
2092
2092
  ]),
2093
2093
  _: 1
2094
2094
  }, 16)
2095
2095
  ]),
2096
- default: v(() => [
2096
+ default: f(() => [
2097
2097
  z(Qe, E({
2098
- modelValue: e(i).item,
2099
- "onUpdate:modelValue": $[0] || ($[0] = (V) => e(i).item = V)
2098
+ modelValue: e(r).item,
2099
+ "onUpdate:modelValue": $[0] || ($[0] = (O) => e(r).item = O)
2100
2100
  }, {
2101
- collection: e(u),
2102
- readOnly: f.readOnly,
2103
- includeId: f.includeId,
2104
- includeTimestamps: f.includeTimestamps,
2101
+ collection: e(c),
2102
+ readOnly: v.readOnly,
2103
+ includeId: v.includeId,
2104
+ includeTimestamps: v.includeTimestamps,
2105
2105
  form: p.value,
2106
- layout: e(i).description.formLayout || {}
2106
+ layout: e(r).description.formLayout || {}
2107
2107
  }, {
2108
2108
  focus: "",
2109
2109
  onClipboardCopy: w,
2110
- onAdd: $[1] || ($[1] = (V) => V.preventDefault())
2110
+ onAdd: $[1] || ($[1] = (O) => O.preventDefault())
2111
2111
  }), ce({ _: 2 }, [
2112
- G(Object.keys(f.$slots).filter((V) => V.startsWith("field-")), (V) => ({
2113
- name: V,
2114
- fn: v((Y) => [
2115
- O(f.$slots, V, de(ge(Y)))
2112
+ Q(Object.keys(v.$slots).filter((O) => O.startsWith("field-")), (O) => ({
2113
+ name: O,
2114
+ fn: f((Y) => [
2115
+ C(v.$slots, O, de(ge(Y)))
2116
2116
  ])
2117
2117
  }))
2118
2118
  ]), 1040, ["modelValue"])
2119
2119
  ]),
2120
2120
  _: 2
2121
2121
  }, [
2122
- f.$slots.header ? {
2122
+ v.$slots.header ? {
2123
2123
  name: "header",
2124
- fn: v(() => [
2125
- O(f.$slots, "header")
2124
+ fn: f(() => [
2125
+ C(v.$slots, "header")
2126
2126
  ]),
2127
2127
  key: "0"
2128
2128
  } : void 0,
2129
- f.readOnly ? void 0 : {
2129
+ v.readOnly ? void 0 : {
2130
2130
  name: "footer",
2131
- fn: v(() => [
2131
+ fn: f(() => [
2132
2132
  z(ie, {
2133
2133
  variant: "transparent",
2134
- onClick: a
2134
+ onClick: l
2135
2135
  }, {
2136
- default: v(() => [
2137
- Q(C(e(d)("action.cancel", { capitalize: !0 })), 1)
2136
+ default: f(() => [
2137
+ D(V(e(s)("action.cancel", { capitalize: !0 })), 1)
2138
2138
  ]),
2139
2139
  _: 1
2140
2140
  }),
2141
2141
  z(ie, {
2142
2142
  large: "",
2143
- disabled: !e(i).isInsertReady || e(i).loading.get,
2144
- loading: e(i).loading.insert,
2143
+ disabled: !e(r).isInsertReady || e(r).loading.get,
2144
+ loading: e(r).loading.insert,
2145
2145
  onClick: b
2146
2146
  }, {
2147
- default: v(() => [
2148
- Q(C(e(d)("action.insert", { capitalize: !0 })), 1)
2147
+ default: f(() => [
2148
+ D(V(e(s)("action.insert", { capitalize: !0 })), 1)
2149
2149
  ]),
2150
2150
  _: 1
2151
2151
  }, 8, ["disabled", "loading"])
@@ -2155,28 +2155,28 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2155
2155
  ]), 1032, ["model-value", "loading"]);
2156
2156
  };
2157
2157
  }
2158
- }), Ot = (c, r) => {
2159
- if (r) {
2160
- if (!c) {
2161
- r.filtersPreset = {}, r.preferredTableProperties = [], r.pagination.offset = 0;
2158
+ }), Ot = (d, u) => {
2159
+ if (u) {
2160
+ if (!d) {
2161
+ u.filtersPreset = {}, u.preferredTableProperties = [], u.pagination.offset = 0;
2162
2162
  return;
2163
2163
  }
2164
- r.filtersPreset = c.filters || {}, r.preferredTableProperties = c.table ? Array.from(c.table) : [], r.pagination.offset = 0;
2164
+ u.filtersPreset = d.filters || {}, u.preferredTableProperties = d.table ? Array.from(d.table) : [], u.pagination.offset = 0;
2165
2165
  }
2166
- }, aa = (c, r = {
2166
+ }, aa = (d, u = {
2167
2167
  persistInQuery: !0
2168
2168
  }) => {
2169
2169
  const t = Ie().currentRoute;
2170
2170
  return ue(() => t.value.query.section, (o) => {
2171
- if (c) {
2172
- if (c.description.filtersPresets) {
2173
- const u = o || Object.keys(c.description.filtersPresets)[0];
2174
- Ot(c.description.filtersPresets[u], c);
2171
+ if (d) {
2172
+ if (d.description.filtersPresets) {
2173
+ const c = o || Object.keys(d.description.filtersPresets)[0];
2174
+ Ot(d.description.filtersPresets[c], d);
2175
2175
  }
2176
- if (r.persistInQuery) {
2177
- const u = t.value.query;
2178
- u.offset && (c.pagination.offset = +u.offset), u.limit && (c.pagination.limit = +u.limit), u.search && (c.textQuery = u.search, c.filters.$text = {
2179
- $search: `"${u.search}"`,
2176
+ if (u.persistInQuery) {
2177
+ const c = t.value.query;
2178
+ c.offset && (d.pagination.offset = +c.offset), c.limit && (d.pagination.limit = +c.limit), c.search && (d.textQuery = c.search, d.filters.$text = {
2179
+ $search: `"${c.search}"`,
2180
2180
  $caseSensitive: !1
2181
2181
  });
2182
2182
  }
@@ -2213,102 +2213,102 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2213
2213
  layout: {}
2214
2214
  },
2215
2215
  emits: ["itemClick"],
2216
- setup(c, { emit: r }) {
2217
- const l = c, t = r, o = Ue(), u = l.collection || Me(), i = u ? re(typeof u == "string" ? u : u.value) : null, _ = H({
2218
- get: () => i == null ? void 0 : i.selected,
2219
- set: (f) => i == null ? void 0 : i.$actions.selectManyItems(f, !0)
2220
- }), p = H(() => l.columns ? Object.keys(l.columns).length + Number(l.checkbox) : 0), b = (f, $) => f.button ? typeof f.button == "object" ? We($, f.button).satisfied : f.button : !1, d = (f) => {
2221
- var T;
2222
- const $ = (T = l.layout) == null ? void 0 : T.actions;
2223
- return !o.value.xl || !$ || !l.actions ? [] : l.actions.filter((V) => {
2224
- const Y = $[V.action];
2225
- return Y && b(Y, f);
2216
+ setup(d, { emit: u }) {
2217
+ const a = d, t = u, o = Ue(), c = a.collection || Me(), r = c ? re(typeof c == "string" ? c : c.value) : null, _ = G({
2218
+ get: () => r == null ? void 0 : r.selected,
2219
+ set: (v) => r == null ? void 0 : r.$actions.selectManyItems(v, !0)
2220
+ }), p = G(() => a.columns ? Object.keys(a.columns).length + Number(a.checkbox) : 0), b = (v, $) => v.button ? typeof v.button == "object" ? We($, v.button).satisfied : v.button : !1, s = (v) => {
2221
+ var S;
2222
+ const $ = (S = a.layout) == null ? void 0 : S.actions;
2223
+ return !o.value.xl || !$ || !a.actions ? [] : a.actions.filter((O) => {
2224
+ const Y = $[O.action];
2225
+ return Y && b(Y, v);
2226
2226
  });
2227
- }, a = (f) => {
2228
- var T;
2229
- if (!l.actions)
2227
+ }, l = (v) => {
2228
+ var S;
2229
+ if (!a.actions)
2230
2230
  return [];
2231
- const $ = (T = l.layout) == null ? void 0 : T.actions;
2232
- return !o.value.xl || !$ ? l.actions : l.actions.filter((V) => {
2233
- const Y = $[V.action];
2234
- if (V.roles) {
2231
+ const $ = (S = a.layout) == null ? void 0 : S.actions;
2232
+ return !o.value.xl || !$ ? a.actions : a.actions.filter((O) => {
2233
+ const Y = $[O.action];
2234
+ if (O.roles) {
2235
2235
  const ee = re("user");
2236
- if (!gt(V.roles, ee.currentUser.roles))
2236
+ if (!gt(O.roles, ee.currentUser.roles))
2237
2237
  return !1;
2238
2238
  }
2239
- return !Y || !b(Y, f);
2239
+ return !Y || !b(Y, v);
2240
2240
  });
2241
- }, w = (f, $) => {
2241
+ }, w = (v, $) => {
2242
2242
  var Y, ee;
2243
- const T = [], V = (ee = (Y = l.layout) == null ? void 0 : Y.actions) == null ? void 0 : ee[$.action];
2244
- return V != null && V.if && (We(
2245
- f,
2246
- V.if
2247
- ).satisfied || T.push("display: none;")), T.join("");
2243
+ const S = [], O = (ee = (Y = a.layout) == null ? void 0 : Y.actions) == null ? void 0 : ee[$.action];
2244
+ return O != null && O.if && (We(
2245
+ v,
2246
+ O.if
2247
+ ).satisfied || S.push("display: none;")), S.join("");
2248
2248
  };
2249
- return (f, $) => {
2250
- var V, Y, ee;
2251
- const T = te("clickable");
2252
- return p.value > 0 || f.$slots.thead ? (n(), s("table", la, [
2253
- f.$slots.thead ? (n(), s("thead", sa, [
2254
- O(f.$slots, "thead", {}, void 0, !0)
2255
- ])) : (n(), s("thead", ia, [
2249
+ return (v, $) => {
2250
+ var O, Y, ee;
2251
+ const S = te("clickable");
2252
+ return p.value > 0 || v.$slots.thead ? (n(), i("table", la, [
2253
+ v.$slots.thead ? (n(), i("thead", sa, [
2254
+ C(v.$slots, "thead", {}, void 0, !0)
2255
+ ])) : (n(), i("thead", ia, [
2256
2256
  A("tr", null, [
2257
- f.checkbox && e(i) && e(o).md ? (n(), s("th", ra, [
2257
+ v.checkbox && e(r) && e(o).md ? (n(), i("th", ra, [
2258
2258
  A("input", {
2259
2259
  type: "checkbox",
2260
- checked: e(i).selected.length > 0 && e(i).selected.length === e(i).itemsCount,
2261
- onChange: $[0] || ($[0] = (h) => e(i).$actions.selectAllItems(h.target.checked))
2260
+ checked: e(r).selected.length > 0 && e(r).selected.length === e(r).itemsCount,
2261
+ onChange: $[0] || ($[0] = (h) => e(r).$actions.selectAllItems(h.target.checked))
2262
2262
  }, null, 40, ua)
2263
2263
  ])) : y("", !0),
2264
- (n(!0), s(x, null, G(Object.entries(f.columns), ([h, F], le) => (n(), s("th", {
2264
+ (n(!0), i(x, null, Q(Object.entries(v.columns), ([h, F], le) => (n(), i("th", {
2265
2265
  key: `header-${le}`,
2266
2266
  class: "table__header"
2267
- }, C(F.description || e(R)(h)), 1))), 128)),
2268
- (V = f.actions) != null && V.length ? (n(), s("th", ca)) : y("", !0)
2267
+ }, V(F.description || e(R)(h)), 1))), 128)),
2268
+ (O = v.actions) != null && O.length ? (n(), i("th", ca)) : y("", !0)
2269
2269
  ])
2270
2270
  ])),
2271
- f.$slots.tbody ? (n(), s("tbody", da, [
2272
- O(f.$slots, "tbody", {}, void 0, !0)
2273
- ])) : (n(), s("tbody", pa, [
2274
- (n(!0), s(x, null, G(f.rows, (h) => {
2271
+ v.$slots.tbody ? (n(), i("tbody", da, [
2272
+ C(v.$slots, "tbody", {}, void 0, !0)
2273
+ ])) : (n(), i("tbody", pa, [
2274
+ (n(!0), i(x, null, Q(v.rows, (h) => {
2275
2275
  var F, le;
2276
- return n(), s("tr", {
2276
+ return n(), i("tr", {
2277
2277
  key: h._id,
2278
- onClick: (S) => t("itemClick", h)
2278
+ onClick: (T) => t("itemClick", h)
2279
2279
  }, [
2280
- e(i) && f.checkbox && e(o).md ? (n(), s("td", ma, [
2280
+ e(r) && v.checkbox && e(o).md ? (n(), i("td", ma, [
2281
2281
  P(A("input", {
2282
- "onUpdate:modelValue": $[1] || ($[1] = (S) => _.value = S),
2282
+ "onUpdate:modelValue": $[1] || ($[1] = (T) => _.value = T),
2283
2283
  type: "checkbox",
2284
2284
  value: h._id
2285
2285
  }, null, 8, fa), [
2286
2286
  [wt, _.value]
2287
2287
  ])
2288
2288
  ])) : y("", !0),
2289
- (n(!0), s(x, null, G(Object.entries(f.columns), ([S, g], j) => {
2289
+ (n(!0), i(x, null, Q(Object.entries(v.columns), ([T, g], j) => {
2290
2290
  var ne, oe, M;
2291
- return n(), s("td", {
2291
+ return n(), i("td", {
2292
2292
  key: `column-${h._id}-${j}`
2293
2293
  }, [
2294
- A("div", va, C(g.description || e(R)(S)), 1),
2295
- `row-${S}` in f.$slots ? (n(), s("div", ya, [
2296
- O(f.$slots, `row-${S}`, E({ ref_for: !0 }, {
2297
- store: e(i),
2298
- column: S,
2294
+ A("div", va, V(g.description || e(R)(T)), 1),
2295
+ `row-${T}` in v.$slots ? (n(), i("div", ya, [
2296
+ C(v.$slots, `row-${T}`, E({ ref_for: !0 }, {
2297
+ store: e(r),
2298
+ column: T,
2299
2299
  property: g,
2300
2300
  row: h
2301
2301
  }), void 0, !0)
2302
- ])) : (n(), s("div", ha, [
2302
+ ])) : (n(), i("div", ha, [
2303
2303
  A("div", ba, [
2304
- "type" in g && g.type === "boolean" ? (n(), s("div", $a, [
2305
- h[S] ? (n(), k(Z, {
2304
+ "type" in g && g.type === "boolean" ? (n(), i("div", $a, [
2305
+ h[T] ? (n(), k(Z, {
2306
2306
  key: 0,
2307
2307
  icon: "check",
2308
2308
  "icon-classes": "aeria-blueish"
2309
2309
  }, {
2310
- default: v(() => [
2311
- Q(C(e(R)("yes")), 1)
2310
+ default: f(() => [
2311
+ D(V(e(R)("yes")), 1)
2312
2312
  ]),
2313
2313
  _: 1
2314
2314
  })) : (n(), k(Z, {
@@ -2316,50 +2316,50 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2316
2316
  icon: "x",
2317
2317
  "icon-classes": "aeria-redish"
2318
2318
  }, {
2319
- default: v(() => [
2320
- Q(C(e(R)("no")), 1)
2319
+ default: f(() => [
2320
+ D(V(e(R)("no")), 1)
2321
2321
  ]),
2322
2322
  _: 1
2323
2323
  }))
2324
- ])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), s("div", ga, [
2325
- h[S] ? (n(), s("div", ka, [
2326
- "items" in g && h[S][0] && /^image/.test(h[S][0].type) ? (n(), k(He, {
2324
+ ])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), i("div", ga, [
2325
+ h[T] ? (n(), i("div", ka, [
2326
+ "items" in g && h[T][0] && /^image/.test(h[T][0].type) ? (n(), k(He, {
2327
2327
  key: 0,
2328
- modelValue: h[S][0].link,
2329
- "onUpdate:modelValue": (D) => h[S][0].link = D,
2328
+ modelValue: h[T][0].link,
2329
+ "onUpdate:modelValue": (H) => h[T][0].link = H,
2330
2330
  expandable: "",
2331
- meta: h[S][0],
2331
+ meta: h[T][0],
2332
2332
  alt: "Row image",
2333
2333
  class: "table__picture"
2334
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[S].type) ? (n(), k(He, {
2334
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[T].type) ? (n(), k(He, {
2335
2335
  key: 1,
2336
- modelValue: h[S].link,
2337
- "onUpdate:modelValue": (D) => h[S].link = D,
2336
+ modelValue: h[T].link,
2337
+ "onUpdate:modelValue": (H) => h[T].link = H,
2338
2338
  expandable: "",
2339
- meta: h[S],
2339
+ meta: h[T],
2340
2340
  alt: "Row image",
2341
2341
  class: "table__picture"
2342
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : h[S].link ? (n(), s("a", {
2342
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : h[T].link ? (n(), i("a", {
2343
2343
  key: 2,
2344
- href: h[S].link,
2344
+ href: h[T].link,
2345
2345
  style: { "font-size": "10pt" }
2346
- }, C(h[S].filename), 9, Va)) : (n(), s("div", Ca, " - "))
2347
- ])) : (n(), s("div", Oa, " - "))
2348
- ])) : (n(), s("div", Ia, [
2349
- e(i) ? (n(), s("span", Aa, C(e(i).$actions.formatValue({
2350
- value: h[S],
2351
- key: S,
2346
+ }, V(h[T].filename), 9, Va)) : (n(), i("div", Ca, " - "))
2347
+ ])) : (n(), i("div", Oa, " - "))
2348
+ ])) : (n(), i("div", Ia, [
2349
+ e(r) ? (n(), i("span", Aa, V(e(r).$actions.formatValue({
2350
+ value: h[T],
2351
+ key: T,
2352
2352
  property: g
2353
- })), 1)) : (n(), s("span", wa, C(Array.isArray(h[S]) ? h[S].filter((D) => !!D).join(", ") : [void 0, null].includes(h[S]) ? "-" : h[S]), 1)),
2354
- ((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), s("div", Ba, [
2355
- (n(!0), s(x, null, G(e(me)(g).indexes.slice(1, 2), (D, se) => (n(), s("div", {
2353
+ })), 1)) : (n(), i("span", wa, V(Array.isArray(h[T]) ? h[T].filter((H) => !!H).join(", ") : [void 0, null].includes(h[T]) ? "-" : h[T]), 1)),
2354
+ ((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), i("div", Ba, [
2355
+ (n(!0), i(x, null, Q(e(me)(g).indexes.slice(1, 2), (H, se) => (n(), i("div", {
2356
2356
  key: `subvalue-${se}`,
2357
2357
  class: "table__cell-subvalue"
2358
- }, C(e(i).$actions.formatValue({
2359
- value: h[S],
2360
- key: S,
2358
+ }, V(e(r).$actions.formatValue({
2359
+ value: h[T],
2360
+ key: T,
2361
2361
  property: g,
2362
- index: D
2362
+ index: H
2363
2363
  })), 1))), 128))
2364
2364
  ])) : y("", !0)
2365
2365
  ]))
@@ -2367,72 +2367,72 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2367
2367
  ]))
2368
2368
  ]);
2369
2369
  }), 128)),
2370
- (F = f.actions) != null && F.length && e(o).md ? (n(), s("td", Sa, [
2370
+ (F = v.actions) != null && F.length && e(o).md ? (n(), i("td", Sa, [
2371
2371
  A("div", Ta, [
2372
- (n(!0), s(x, null, G(d(h), (S) => (n(), k(ie, {
2373
- key: `action-${S.action}`,
2372
+ (n(!0), i(x, null, Q(s(h), (T) => (n(), k(ie, {
2373
+ key: `action-${T.action}`,
2374
2374
  small: "",
2375
2375
  variant: "alt",
2376
- icon: S.icon,
2377
- style: be(w(h, S)),
2378
- onClick: (g) => S.click(h)
2376
+ icon: T.icon,
2377
+ style: be(w(h, T)),
2378
+ onClick: (g) => T.click(h)
2379
2379
  }, {
2380
- default: v(() => [
2381
- Q(C(e(R)(S.label)), 1)
2380
+ default: f(() => [
2381
+ D(V(e(R)(T.label)), 1)
2382
2382
  ]),
2383
2383
  _: 2
2384
2384
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2385
- a(h).length > 0 ? (n(), k(Oe, E({
2385
+ l(h).length > 0 ? (n(), k(Oe, E({
2386
2386
  key: 0,
2387
2387
  ref_for: !0
2388
2388
  }, {
2389
2389
  subject: h,
2390
- actions: a(h)
2390
+ actions: l(h)
2391
2391
  }), {
2392
- default: v(({
2393
- visible: S
2392
+ default: f(({
2393
+ visible: T
2394
2394
  }) => [
2395
2395
  P(z(Z, {
2396
2396
  reactive: "",
2397
- active: S,
2397
+ active: T,
2398
2398
  icon: "dots-three"
2399
2399
  }, null, 8, ["active"]), [
2400
- [T]
2400
+ [S]
2401
2401
  ])
2402
2402
  ]),
2403
2403
  _: 2
2404
2404
  }, 1040)) : y("", !0)
2405
2405
  ])
2406
- ])) : (le = f.actions) != null && le.length ? (n(), s("td", ja, [
2406
+ ])) : (le = v.actions) != null && le.length ? (n(), i("td", ja, [
2407
2407
  A("div", {
2408
2408
  class: "table__mobile-actions-grid",
2409
- style: be(`grid-template-columns: repeat(${d(h).length + (a(h).length ? 1 : 0)}, 1fr);`)
2409
+ style: be(`grid-template-columns: repeat(${s(h).length + (l(h).length ? 1 : 0)}, 1fr);`)
2410
2410
  }, [
2411
- (n(!0), s(x, null, G(d(h), (S) => (n(), k(ve, {
2412
- key: `action-${S.action}`,
2411
+ (n(!0), i(x, null, Q(s(h), (T) => (n(), k(ve, {
2412
+ key: `action-${T.action}`,
2413
2413
  class: "table__mobile-actions-button",
2414
- onClick: (g) => S.click(h)
2414
+ onClick: (g) => T.click(h)
2415
2415
  }, {
2416
- default: v(() => [
2416
+ default: f(() => [
2417
2417
  z(Z, {
2418
- icon: S.icon || "gear"
2418
+ icon: T.icon || "gear"
2419
2419
  }, {
2420
- default: v(() => [
2421
- Q(C(e(R)(S.label)), 1)
2420
+ default: f(() => [
2421
+ D(V(e(R)(T.label)), 1)
2422
2422
  ]),
2423
2423
  _: 2
2424
2424
  }, 1032, ["icon"])
2425
2425
  ]),
2426
2426
  _: 2
2427
2427
  }, 1032, ["onClick"]))), 128)),
2428
- a(h).length > 0 ? (n(), k(Oe, E({
2428
+ l(h).length > 0 ? (n(), k(Oe, E({
2429
2429
  key: 0,
2430
2430
  ref_for: !0
2431
2431
  }, {
2432
2432
  subject: h,
2433
- actions: a(h)
2433
+ actions: l(h)
2434
2434
  }), {
2435
- default: v(() => [
2435
+ default: f(() => [
2436
2436
  z(Z, {
2437
2437
  icon: "dots-three",
2438
2438
  class: "table__mobile-actions-button"
@@ -2449,11 +2449,11 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2449
2449
  }), 128))
2450
2450
  ])),
2451
2451
  A("tfoot", null, [
2452
- f.$slots.tfoot ? O(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((Y = f.rows) != null && Y.length) && !((ee = e(i)) != null && ee.loading.getAll) ? (n(), s("tr", La, [
2452
+ v.$slots.tfoot ? C(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((Y = v.rows) != null && Y.length) && !((ee = e(r)) != null && ee.loading.getAll) ? (n(), i("tr", La, [
2453
2453
  A("td", {
2454
2454
  colspan: p.value + 1
2455
2455
  }, [
2456
- A("div", qa, C(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2456
+ A("div", qa, V(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2457
2457
  ], 8, za)
2458
2458
  ])) : y("", !0)
2459
2459
  ])
@@ -2468,27 +2468,27 @@ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @_
2468
2468
  layoutOptions: {},
2469
2469
  componentProps: {}
2470
2470
  },
2471
- setup(c) {
2472
- const r = c, l = Le(), t = Me(), o = H(() => {
2473
- const u = {
2471
+ setup(d) {
2472
+ const u = d, a = Le(), t = Me(), o = G(() => {
2473
+ const c = {
2474
2474
  collection: t,
2475
- checkbox: l.hasSelectionActions,
2476
- columns: l.tableProperties,
2477
- rows: l.items,
2478
- actions: r.individualActions,
2479
- layout: l.tableLayout
2475
+ checkbox: a.hasSelectionActions,
2476
+ columns: a.tableProperties,
2477
+ rows: a.items,
2478
+ actions: u.individualActions,
2479
+ layout: a.tableLayout
2480
2480
  };
2481
- return Object.assign(u, r.componentProps);
2481
+ return Object.assign(c, u.componentProps);
2482
2482
  });
2483
- return (u, i) => (n(), s("div", null, [
2484
- u.$slots.inner ? O(u.$slots, "inner", { key: 0 }) : y("", !0),
2485
- e(l).properties ? (n(), k(Fa, E({ key: 1 }, o.value, {
2486
- key: e(l).$id
2483
+ return (c, r) => (n(), i("div", null, [
2484
+ c.$slots.inner ? C(c.$slots, "inner", { key: 0 }) : y("", !0),
2485
+ e(a).properties ? (n(), k(Fa, E({ key: 1 }, o.value, {
2486
+ key: e(a).$id
2487
2487
  }), ce({ _: 2 }, [
2488
- G(Object.keys(u.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2488
+ Q(Object.keys(c.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2489
2489
  name: _,
2490
- fn: v((p) => [
2491
- O(u.$slots, _, de(ge(p)))
2490
+ fn: f((p) => [
2491
+ C(c.$slots, _, de(ge(p)))
2492
2492
  ])
2493
2493
  }))
2494
2494
  ]), 1040)) : y("", !0)
@@ -2499,14 +2499,14 @@ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @_
2499
2499
  props: {
2500
2500
  list: { type: Boolean }
2501
2501
  },
2502
- setup(c) {
2503
- return (r, l) => (n(), s("div", {
2502
+ setup(d) {
2503
+ return (u, a) => (n(), i("div", {
2504
2504
  class: X(`
2505
2505
  grid
2506
- ${r.list && "grid--list"}
2506
+ ${u.list && "grid--list"}
2507
2507
  `)
2508
2508
  }, [
2509
- O(r.$slots, "default", {}, void 0, !0)
2509
+ C(u.$slots, "default", {}, void 0, !0)
2510
2510
  ], 2));
2511
2511
  }
2512
2512
  });
@@ -2521,32 +2521,32 @@ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key
2521
2521
  layoutOptions: {},
2522
2522
  componentName: {}
2523
2523
  },
2524
- setup(c) {
2525
- const l = c.layoutOptions, t = Le(), o = (u) => Array.isArray(u) ? u[0] : u;
2526
- return (u, i) => {
2524
+ setup(d) {
2525
+ const a = d.layoutOptions, t = Le(), o = (c) => Array.isArray(c) ? c[0] : c;
2526
+ return (c, r) => {
2527
2527
  const _ = te("clickable");
2528
2528
  return n(), k(Ha, {
2529
- list: u.componentName === "list"
2529
+ list: c.componentName === "list"
2530
2530
  }, {
2531
- default: v(() => [
2532
- (n(!0), s(x, null, G(e(t).items, (p) => (n(), k(pn, {
2531
+ default: f(() => [
2532
+ (n(!0), i(x, null, Q(e(t).items, (p) => (n(), k(pn, {
2533
2533
  key: p,
2534
- inactive: !!(e(l).active && !p[e(l).active]),
2535
- horizontal: u.componentName === "list"
2534
+ inactive: !!(e(a).active && !p[e(a).active]),
2535
+ horizontal: c.componentName === "list"
2536
2536
  }, ce({
2537
- footer: v(() => [
2538
- e(l).title ? (n(), s("div", Da, C(p[e(l).title]), 1)) : y("", !0),
2539
- e(l).information ? (n(), s("div", Qa, C(p[e(l).information]), 1)) : y("", !0)
2537
+ footer: f(() => [
2538
+ e(a).title ? (n(), i("div", Da, V(p[e(a).title]), 1)) : y("", !0),
2539
+ e(a).information ? (n(), i("div", Qa, V(p[e(a).information]), 1)) : y("", !0)
2540
2540
  ]),
2541
- actions: v(() => [
2542
- u.individualActions.length > 0 ? (n(), k(Oe, E({
2541
+ actions: f(() => [
2542
+ c.individualActions.length > 0 ? (n(), k(Oe, E({
2543
2543
  key: 0,
2544
2544
  ref_for: !0
2545
2545
  }, {
2546
2546
  subject: p,
2547
- actions: u.individualActions
2547
+ actions: c.individualActions
2548
2548
  }), {
2549
- default: v(({
2549
+ default: f(({
2550
2550
  visible: b
2551
2551
  }) => [
2552
2552
  P(z(Z, {
@@ -2560,39 +2560,39 @@ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key
2560
2560
  _: 2
2561
2561
  }, 1040)) : y("", !0)
2562
2562
  ]),
2563
- default: v(() => {
2563
+ default: f(() => {
2564
2564
  var b;
2565
2565
  return [
2566
2566
  z(He, {
2567
2567
  alt: "Item picture",
2568
2568
  expandable: "",
2569
- url: (b = o(p[e(l).picture])) == null ? void 0 : b.link,
2570
- meta: o(p[e(l).picture])
2569
+ url: (b = o(p[e(a).picture])) == null ? void 0 : b.link,
2570
+ meta: o(p[e(a).picture])
2571
2571
  }, null, 8, ["url", "meta"])
2572
2572
  ];
2573
2573
  }),
2574
2574
  _: 2
2575
2575
  }, [
2576
- e(l).badge && Array.isArray(p[e(l).badge]) ? {
2576
+ e(a).badge && Array.isArray(p[e(a).badge]) ? {
2577
2577
  name: "badge",
2578
- fn: v(() => [
2579
- (n(!0), s(x, null, G(p[e(l).badge], (b) => (n(), k($e, {
2578
+ fn: f(() => [
2579
+ (n(!0), i(x, null, Q(p[e(a).badge], (b) => (n(), k($e, {
2580
2580
  key: `${p._id}-${b}`,
2581
2581
  large: ""
2582
2582
  }, {
2583
- default: v(() => [
2584
- Q(C(e(l).translateBadge ? e(R)(b) : b), 1)
2583
+ default: f(() => [
2584
+ D(V(e(a).translateBadge ? e(R)(b) : b), 1)
2585
2585
  ]),
2586
2586
  _: 2
2587
2587
  }, 1024))), 128))
2588
2588
  ]),
2589
2589
  key: "0"
2590
- } : e(l).badge ? {
2590
+ } : e(a).badge ? {
2591
2591
  name: "badge",
2592
- fn: v(() => [
2592
+ fn: f(() => [
2593
2593
  z($e, null, {
2594
- default: v(() => [
2595
- Q(C(e(l).translateBadge ? e(R)(p[e(l).badge]) : p[e(l).badge]), 1)
2594
+ default: f(() => [
2595
+ D(V(e(a).translateBadge ? e(R)(p[e(a).badge]) : p[e(a).badge]), 1)
2596
2596
  ]),
2597
2597
  _: 2
2598
2598
  }, 1024)
@@ -2606,13 +2606,13 @@ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key
2606
2606
  };
2607
2607
  }
2608
2608
  });
2609
- const yt = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-6ea2d642"]]), Wa = (c) => ({
2609
+ const yt = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-6ea2d642"]]), Wa = (d) => ({
2610
2610
  tabular: Ua,
2611
2611
  grid: yt,
2612
2612
  list: yt
2613
- })[c], pe = J(!1);
2613
+ })[d], pe = J(!1);
2614
2614
  J(!1);
2615
- const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d5684d74"), c = c(), Je(), c), Xa = {
2615
+ const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d5684d74"), d = d(), Je(), d), Xa = {
2616
2616
  key: 2,
2617
2617
  class: "crud__controls"
2618
2618
  }, Ya = {
@@ -2636,42 +2636,42 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2636
2636
  noQueryPersistence: { type: Boolean }
2637
2637
  },
2638
2638
  emits: ["uiEvent"],
2639
- setup(c, { emit: r }) {
2640
- const l = c, t = r, o = Ie(), u = Vt({
2639
+ setup(d, { emit: u }) {
2640
+ const a = d, t = u, o = Ie(), c = Vt({
2641
2641
  delay: 600
2642
- }), i = re("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Pe(null, {
2642
+ }), r = re("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Pe(null, {
2643
2643
  antecipate: 600
2644
- }), d = !_.value.md || l.scrollPagination;
2645
- d && ue(p, (g) => {
2646
- g && a.pagination.recordsTotal > a.items.length && $.value < bt && ($.value += 1, V());
2644
+ }), s = !_.value.md || a.scrollPagination;
2645
+ s && ue(p, (g) => {
2646
+ g && l.pagination.recordsTotal > l.items.length && $.value < bt && ($.value += 1, O());
2647
2647
  });
2648
- const a = Gt(l.collection);
2649
- aa(a, {
2650
- persistInQuery: !l.noQueryPersistence
2648
+ const l = Gt(a.collection);
2649
+ aa(l, {
2650
+ persistInQuery: !a.noQueryPersistence
2651
2651
  });
2652
- const w = Ze(), f = l.action ? e(l.action) : Wt(a, o, w);
2653
- Re.value = f[0], ht.value = f[1];
2654
- const $ = J(0), T = J(!1), V = async (g) => {
2655
- a.activeFilters = Object.assign({}, (g == null ? void 0 : g.filters) || a.$filters), Object.assign(a.activeFilters, a.filtersPreset);
2652
+ const w = Ze(), v = a.action ? e(a.action) : Wt(l, o, w);
2653
+ Re.value = v[0], ht.value = v[1];
2654
+ const $ = J(0), S = J(!1), O = async (g) => {
2655
+ l.activeFilters = Object.assign({}, (g == null ? void 0 : g.filters) || l.$filters), Object.assign(l.activeFilters, l.filtersPreset);
2656
2656
  const j = {
2657
- filters: a.activeFilters,
2658
- limit: a.pagination.limit,
2659
- offset: a.pagination.offset,
2660
- project: a.preferredTableProperties.length > 0 ? a.preferredTableProperties : a.description.table || Object.keys(a.properties)
2657
+ filters: l.activeFilters,
2658
+ limit: l.pagination.limit,
2659
+ offset: l.pagination.offset,
2660
+ project: l.preferredTableProperties.length > 0 ? l.preferredTableProperties : l.description.table || Object.keys(l.properties)
2661
2661
  };
2662
- $.value > 0 && (j.limit = 15, j.offset = $.value * j.limit), a.description.tableMeta && (j.project = j.project.concat(a.description.tableMeta)), g && Object.assign(j, g), a.loading.getAll = !0;
2663
- const { error: ne, result: oe } = await a.$actions.retrieveItems(j);
2662
+ $.value > 0 && (j.limit = 15, j.offset = $.value * j.limit), l.description.tableMeta && (j.project = j.project.concat(l.description.tableMeta)), g && Object.assign(j, g), l.loading.getAll = !0;
2663
+ const { error: ne, result: oe } = await l.$actions.retrieveItems(j);
2664
2664
  if (ne)
2665
2665
  return;
2666
- const { data: M, pagination: D } = oe;
2667
- a.pagination.recordsCount = D.recordsCount, a.pagination.recordsTotal = D.recordsTotal, $.value === 0 && a.items.splice(0), a.items.push(...M), a.loading.getAll = !1, T.value = !0;
2666
+ const { data: M, pagination: H } = oe;
2667
+ l.pagination.recordsCount = H.recordsCount, l.pagination.recordsTotal = H.recordsTotal, $.value === 0 && l.items.splice(0), l.items.push(...M), l.loading.getAll = !1, S.value = !0;
2668
2668
  }, Y = async (g) => {
2669
2669
  o.push(qe(o.currentRoute.value, {
2670
2670
  query: {
2671
2671
  offset: g.offset,
2672
2672
  limit: g.limit
2673
2673
  }
2674
- })), a.pagination.offset = g.offset, a.pagination.limit = g.limit, V();
2674
+ })), l.pagination.offset = g.offset, l.pagination.limit = g.limit, O();
2675
2675
  }, ee = _e("noResultsComponent", null);
2676
2676
  ue(() => [
2677
2677
  o.currentRoute.value.path,
@@ -2680,60 +2680,60 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2680
2680
  if (j && j[0] === g[0] && j[1] === g[1])
2681
2681
  return;
2682
2682
  const ne = o.currentRoute.value;
2683
- if (i.view.title = l.collection, i.view.collection = l.collection, !l.noFetch && (!ne.query._popstate || a.itemsCount === 0)) {
2684
- const oe = Kt(a, ne);
2685
- Object.keys(oe).length > 0 && Object.assign(a.filters, oe), await V();
2683
+ if (r.view.title = a.collection, r.view.collection = a.collection, !a.noFetch && (!ne.query._popstate || l.itemsCount === 0)) {
2684
+ const oe = Kt(l, ne);
2685
+ Object.keys(oe).length > 0 && Object.assign(l.filters, oe), await O();
2686
2686
  }
2687
2687
  }, {
2688
2688
  immediate: !0,
2689
2689
  flush: "post"
2690
2690
  });
2691
- const [h] = u((g) => (o.push(qe(o.currentRoute.value, {
2691
+ const [h] = c((g) => (o.push(qe(o.currentRoute.value, {
2692
2692
  query: {
2693
2693
  search: g || void 0
2694
2694
  }
2695
- })), g ? (a.filters = Object.assign(Ce(a.freshFilters), {
2695
+ })), g ? (l.filters = Object.assign(Ce(l.freshFilters), {
2696
2696
  $text: {
2697
2697
  $search: `"${g}"`,
2698
2698
  $caseSensitive: !1
2699
2699
  }
2700
- }), V({
2700
+ }), O({
2701
2701
  offset: 0
2702
- })) : (a.filters = Ce(a.freshFilters), $.value = 0, V())));
2703
- ue(() => a.textQuery, (g) => {
2702
+ })) : (l.filters = Ce(l.freshFilters), $.value = 0, O())));
2703
+ ue(() => l.textQuery, (g) => {
2704
2704
  h(g);
2705
2705
  });
2706
2706
  const F = (g) => {
2707
2707
  g.currentLayout = g.currentLayout === "tabular" ? g.description.layout.name : "tabular";
2708
2708
  };
2709
2709
  Bt(() => {
2710
- a.$actions.clearFilters(), a.textQuery = "", b();
2710
+ l.$actions.clearFilters(), l.textQuery = "", b();
2711
2711
  }), ue(() => ht.value, async (g) => {
2712
2712
  var oe;
2713
2713
  const j = Ce(g);
2714
2714
  let ne;
2715
2715
  if (j)
2716
- if ((j.name === "spawnEdit" || j.name === "duplicate") && (ne = a.$actions.get({
2716
+ if ((j.name === "spawnEdit" || j.name === "duplicate") && (ne = l.$actions.get({
2717
2717
  filters: {
2718
2718
  _id: j.params._id
2719
2719
  }
2720
2720
  })), j.name === "spawnAdd")
2721
- a.$actions.clearItem(), (oe = j.params) != null && oe.item && (a.$actions.setItem(j.params.item), Object.keys(j.params.item).forEach((M) => {
2722
- delete a.referenceItem[M];
2721
+ l.$actions.clearItem(), (oe = j.params) != null && oe.item && (l.$actions.setItem(j.params.item), Object.keys(j.params.item).forEach((M) => {
2722
+ delete l.referenceItem[M];
2723
2723
  })), pe.value = "add";
2724
2724
  else if (j.name === "spawnEdit")
2725
- a.$actions.setItem(j.params), pe.value = "edit";
2725
+ l.$actions.setItem(j.params), pe.value = "edit";
2726
2726
  else if (j.name === "duplicate") {
2727
2727
  await ne;
2728
- const M = Object.entries(a.item).reduce((D, [se, ae]) => {
2729
- if (!(se in a.properties))
2728
+ const M = Object.entries(l.item).reduce((H, [se, ae]) => {
2729
+ if (!(se in l.properties))
2730
2730
  return {
2731
- ...D,
2731
+ ...H,
2732
2732
  [se]: ae
2733
2733
  };
2734
- const m = a.properties[se];
2734
+ const m = l.properties[se];
2735
2735
  if (m.readOnly)
2736
- return D;
2736
+ return H;
2737
2737
  const L = (K) => {
2738
2738
  const B = me(m);
2739
2739
  if (!B)
@@ -2747,28 +2747,28 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2747
2747
  return K;
2748
2748
  };
2749
2749
  return ae = Array.isArray(ae) ? ae.map(L) : L(ae), {
2750
- ...D,
2750
+ ...H,
2751
2751
  [se]: ae
2752
2752
  };
2753
2753
  }, {});
2754
- a.$actions.setItem(M), delete a.item._id, a.referenceItem = {}, pe.value = "duplicate";
2754
+ l.$actions.setItem(M), delete l.item._id, l.referenceItem = {}, pe.value = "duplicate";
2755
2755
  } else
2756
2756
  t("uiEvent", j);
2757
2757
  }, {
2758
2758
  deep: !0
2759
2759
  }), ue(() => pe, ({ value: g }) => {
2760
- g === !1 && (i.view.collection = l.collection, a.$actions.clearItem());
2760
+ g === !1 && (r.view.collection = a.collection, l.$actions.clearItem());
2761
2761
  });
2762
- const le = H(() => a.individualActions.map((g) => ({
2762
+ const le = G(() => l.individualActions.map((g) => ({
2763
2763
  click: Re.value(g),
2764
2764
  ...g
2765
- }))), S = H(() => a.actions.filter((g) => !g.button));
2766
- return ye(Fe, H(() => l.collection)), ye("individualActions", le), (g, j) => {
2767
- var M, D, se, ae, m, L, K;
2765
+ }))), T = G(() => l.actions.filter((g) => !g.button));
2766
+ return ye(Fe, G(() => a.collection)), ye("individualActions", le), (g, j) => {
2767
+ var M, H, se, ae, m, L, K;
2768
2768
  const ne = te("clickable"), oe = te("loading");
2769
- return n(), s(x, null, [
2769
+ return n(), i(x, null, [
2770
2770
  e(Ve) ? (n(), k(na, {
2771
- key: e(a).$id,
2771
+ key: e(l).$id,
2772
2772
  modelValue: e(Ve),
2773
2773
  "onUpdate:modelValue": j[0] || (j[0] = (B) => mt(Ve) ? Ve.value = B : null)
2774
2774
  }, null, 8, ["modelValue"])) : y("", !0),
@@ -2779,8 +2779,8 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2779
2779
  "fixed-right": "",
2780
2780
  onCancel: j[2] || (j[2] = (B) => pe.value = !1)
2781
2781
  }, ce({
2782
- header: v(() => [
2783
- A("span", null, C((() => {
2782
+ header: f(() => [
2783
+ A("span", null, V((() => {
2784
2784
  switch (e(pe)) {
2785
2785
  case "add":
2786
2786
  return e(R)("action.add", { capitalize: !0 });
@@ -2791,41 +2791,41 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2791
2791
  return e(R)("action.edit", { capitalize: !0 });
2792
2792
  }
2793
2793
  })()), 1),
2794
- A("span", null, " " + C(e(R)(e(i).view.collection)), 1)
2794
+ A("span", null, " " + V(e(R)(e(r).view.collection)), 1)
2795
2795
  ]),
2796
2796
  _: 2
2797
2797
  }, [
2798
- G(Object.keys(g.$slots).filter((B) => B.startsWith("field-")), (B) => ({
2798
+ Q(Object.keys(g.$slots).filter((B) => B.startsWith("field-")), (B) => ({
2799
2799
  name: B,
2800
- fn: v((I) => [
2801
- O(g.$slots, B, de(ge(I)), void 0, !0)
2800
+ fn: f((I) => [
2801
+ C(g.$slots, B, de(ge(I)), void 0, !0)
2802
2802
  ])
2803
2803
  }))
2804
2804
  ]), 1032, ["visible"])) : y("", !0),
2805
- !g.noActions && (e(a).description.search || Object.keys(e(a).availableFilters).length > 0 || ((M = e(a)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(a).description.layout && ((D = e(a).description.layout) == null ? void 0 : D.name) !== "tabular") ? (n(), s("div", Xa, [
2806
- e(a).description.search ? (n(), s("div", Ya, [
2805
+ !g.noActions && (e(l).description.search || Object.keys(e(l).availableFilters).length > 0 || ((M = e(l)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(l).description.layout && ((H = e(l).description.layout) == null ? void 0 : H.name) !== "tabular") ? (n(), i("div", Xa, [
2806
+ e(l).description.search ? (n(), i("div", Ya, [
2807
2807
  z(ke, E({
2808
- modelValue: e(a).textQuery,
2809
- "onUpdate:modelValue": j[3] || (j[3] = (B) => e(a).textQuery = B)
2808
+ modelValue: e(l).textQuery,
2809
+ "onUpdate:modelValue": j[3] || (j[3] = (B) => e(l).textQuery = B)
2810
2810
  }, {
2811
2811
  property: {
2812
2812
  type: "string",
2813
- placeholder: e(a).description.search.placeholder || "Pesquise aqui",
2813
+ placeholder: e(l).description.search.placeholder || "Pesquise aqui",
2814
2814
  inputType: "search"
2815
2815
  }
2816
2816
  }), null, 16, ["modelValue"])
2817
2817
  ])) : y("", !0),
2818
2818
  A("div", Ja, [
2819
- S.value.length > 0 || !g.noLayoutToggle && e(a).description.layout && ((se = e(a).description.layout) == null ? void 0 : se.name) !== "tabular" ? (n(), k(Oe, { key: 0 }, ce({
2820
- default: v(() => [
2819
+ T.value.length > 0 || !g.noLayoutToggle && e(l).description.layout && ((se = e(l).description.layout) == null ? void 0 : se.name) !== "tabular" ? (n(), k(Oe, { key: 0 }, ce({
2820
+ default: f(() => [
2821
2821
  z(ie, {
2822
2822
  variant: "alt",
2823
2823
  icon: "sliders"
2824
2824
  }, {
2825
- default: v(() => [
2826
- e(a).filtersCount ? (n(), k($e, { key: 0 }, {
2827
- default: v(() => [
2828
- Q(C(e(a).filtersCount), 1)
2825
+ default: f(() => [
2826
+ e(l).filtersCount ? (n(), k($e, { key: 0 }, {
2827
+ default: f(() => [
2828
+ D(V(e(l).filtersCount), 1)
2829
2829
  ]),
2830
2830
  _: 1
2831
2831
  })) : y("", !0)
@@ -2835,24 +2835,24 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2835
2835
  ]),
2836
2836
  _: 2
2837
2837
  }, [
2838
- Object.keys(e(a).availableFilters).length > 0 ? {
2838
+ Object.keys(e(l).availableFilters).length > 0 ? {
2839
2839
  name: "filter",
2840
- fn: v(() => [
2840
+ fn: f(() => [
2841
2841
  P((n(), k(Z, {
2842
2842
  icon: "funnel",
2843
2843
  onClick: j[4] || (j[4] = (B) => Ve.value = !0)
2844
2844
  }, {
2845
- default: v(() => [
2846
- Q(C(e(R)("filters", { capitalize: !0 })), 1)
2845
+ default: f(() => [
2846
+ D(V(e(R)("filters", { capitalize: !0 })), 1)
2847
2847
  ]),
2848
2848
  _: 1
2849
2849
  })), [
2850
2850
  [ne]
2851
2851
  ]),
2852
2852
  A("div", Za, [
2853
- e(a).filtersCount ? (n(), k($e, { key: 0 }, {
2854
- default: v(() => [
2855
- Q(C(e(a).filtersCount), 1)
2853
+ e(l).filtersCount ? (n(), k($e, { key: 0 }, {
2854
+ default: f(() => [
2855
+ D(V(e(l).filtersCount), 1)
2856
2856
  ]),
2857
2857
  _: 1
2858
2858
  })) : y("", !0)
@@ -2860,15 +2860,15 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2860
2860
  ]),
2861
2861
  key: "0"
2862
2862
  } : void 0,
2863
- !g.noLayoutToggle && e(a).description.layout && ((ae = e(a).description.layout) == null ? void 0 : ae.name) !== "tabular" ? {
2863
+ !g.noLayoutToggle && e(l).description.layout && ((ae = e(l).description.layout) == null ? void 0 : ae.name) !== "tabular" ? {
2864
2864
  name: "layout-toggle",
2865
- fn: v(() => [
2865
+ fn: f(() => [
2866
2866
  P((n(), k(Z, {
2867
2867
  icon: "table",
2868
- onClick: j[5] || (j[5] = (B) => F(e(a)))
2868
+ onClick: j[5] || (j[5] = (B) => F(e(l)))
2869
2869
  }, {
2870
- default: v(() => [
2871
- Q(C(e(R)("change_layout", { capitalize: !0 })), 1)
2870
+ default: f(() => [
2871
+ D(V(e(R)("change_layout", { capitalize: !0 })), 1)
2872
2872
  ]),
2873
2873
  _: 1
2874
2874
  })), [
@@ -2877,60 +2877,60 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2877
2877
  ]),
2878
2878
  key: "1"
2879
2879
  } : void 0,
2880
- G(S.value, (B, I) => ({
2880
+ Q(T.value, (B, I) => ({
2881
2881
  name: `action-${I}`,
2882
- fn: v(() => [
2882
+ fn: f(() => [
2883
2883
  B ? (n(), k(Z, {
2884
2884
  key: 0,
2885
2885
  icon: B.icon || "gear",
2886
- disabled: e(a).selected.length === 0 && "selection" in B && B.selection,
2887
- onClick: (q) => e(Re)(B)({ _id: e(a).selected.map((fe) => fe._id) })
2886
+ disabled: e(l).selected.length === 0 && "selection" in B && B.selection,
2887
+ onClick: (q) => e(Re)(B)({ _id: e(l).selected.map((fe) => fe._id) })
2888
2888
  }, {
2889
- default: v(() => [
2890
- Q(C(e(R)(B.label, { capitalize: !0 })), 1)
2889
+ default: f(() => [
2890
+ D(V(e(R)(B.label, { capitalize: !0 })), 1)
2891
2891
  ]),
2892
2892
  _: 2
2893
2893
  }, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
2894
2894
  ])
2895
2895
  }))
2896
- ]), 1024)) : Object.keys(e(a).availableFilters).length > 0 ? (n(), k(ie, {
2896
+ ]), 1024)) : Object.keys(e(l).availableFilters).length > 0 ? (n(), k(ie, {
2897
2897
  key: 1,
2898
2898
  variant: "alt",
2899
2899
  icon: "funnel",
2900
2900
  onClick: j[6] || (j[6] = (B) => Ve.value = !0)
2901
2901
  }, {
2902
- default: v(() => [
2902
+ default: f(() => [
2903
2903
  Pa,
2904
- e(a).filtersCount ? (n(), k($e, { key: 0 }, {
2905
- default: v(() => [
2906
- Q(C(e(a).filtersCount), 1)
2904
+ e(l).filtersCount ? (n(), k($e, { key: 0 }, {
2905
+ default: f(() => [
2906
+ D(V(e(l).filtersCount), 1)
2907
2907
  ]),
2908
2908
  _: 1
2909
2909
  })) : y("", !0)
2910
2910
  ]),
2911
2911
  _: 1
2912
2912
  })) : y("", !0),
2913
- (n(!0), s(x, null, G(e(a).actions.filter((B) => B.button), (B, I) => (n(), k(ie, {
2913
+ (n(!0), i(x, null, Q(e(l).actions.filter((B) => B.button), (B, I) => (n(), k(ie, {
2914
2914
  key: `action-${I}`,
2915
2915
  icon: B.icon,
2916
- disabled: e(a).selected.length === 0 && "selection" in B && B.selection,
2917
- onClick: (q) => e(Re)(B)({ _id: e(a).selected.map((fe) => fe._id) })
2916
+ disabled: e(l).selected.length === 0 && "selection" in B && B.selection,
2917
+ onClick: (q) => e(Re)(B)({ _id: e(l).selected.map((fe) => fe._id) })
2918
2918
  }, {
2919
- default: v(() => [
2920
- Q(C(e(R)(B.label, { capitalize: !0 })), 1)
2919
+ default: f(() => [
2920
+ D(V(e(R)(B.label, { capitalize: !0 })), 1)
2921
2921
  ]),
2922
2922
  _: 2
2923
2923
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
2924
- g.$slots.actions ? O(g.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2924
+ g.$slots.actions ? C(g.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2925
2925
  ])
2926
2926
  ])) : y("", !0),
2927
- P((n(), s("div", null, [
2928
- e(a).itemsCount === 0 && !e(a).loading.getAll && T.value && (e(ee) || g.$slots.empty) ? (n(), s("div", Na, [
2927
+ P((n(), i("div", null, [
2928
+ e(l).itemsCount === 0 && !e(l).loading.getAll && S.value && (e(ee) || g.$slots.empty) ? (n(), i("div", Na, [
2929
2929
  e(ee) ? (n(), k(he(e(ee)), de(E({ key: 0 }, {
2930
- collection: e(a).$id
2930
+ collection: e(l).$id
2931
2931
  })), {
2932
- default: v(() => [
2933
- e(a).filtersCount === 0 && e(a).description.actions && "spawnAdd" in e(a).description.actions ? (n(), k(ie, {
2932
+ default: f(() => [
2933
+ e(l).filtersCount === 0 && e(l).description.actions && "spawnAdd" in e(l).description.actions ? (n(), k(ie, {
2934
2934
  key: 0,
2935
2935
  icon: "plus",
2936
2936
  onClick: j[7] || (j[7] = (B) => e(Re)({
@@ -2938,45 +2938,45 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2938
2938
  event: "spawnAdd"
2939
2939
  })())
2940
2940
  }, {
2941
- default: v(() => [
2942
- Q(C(e(R)("add_first_item", { capitalize: !0 })), 1)
2941
+ default: f(() => [
2942
+ D(V(e(R)("add_first_item", { capitalize: !0 })), 1)
2943
2943
  ]),
2944
2944
  _: 1
2945
2945
  })) : y("", !0)
2946
2946
  ]),
2947
2947
  _: 1
2948
- }, 16)) : O(g.$slots, "empty", de(E({ key: 1 }, {
2949
- collection: e(a).$id
2948
+ }, 16)) : C(g.$slots, "empty", de(E({ key: 1 }, {
2949
+ collection: e(l).$id
2950
2950
  })), void 0, !0)
2951
- ])) : g.$slots.component ? O(g.$slots, "component", de(E({ key: 1 }, {
2952
- store: e(a)
2953
- })), void 0, !0) : (n(), k(he(e(Wa)(((m = g.layout) == null ? void 0 : m.name) || e(a).$currentLayout)), E({ key: 2 }, {
2951
+ ])) : g.$slots.component ? C(g.$slots, "component", de(E({ key: 1 }, {
2952
+ store: e(l)
2953
+ })), void 0, !0) : (n(), k(he(e(Wa)(((m = g.layout) == null ? void 0 : m.name) || e(l).$currentLayout)), E({ key: 2 }, {
2954
2954
  individualActions: le.value,
2955
- layoutOptions: ((L = g.layout) == null ? void 0 : L.options) || e(a).layout.options,
2955
+ layoutOptions: ((L = g.layout) == null ? void 0 : L.options) || e(l).layout.options,
2956
2956
  componentProps: g.componentProps
2957
2957
  }, {
2958
- "component-name": ((K = g.layout) == null ? void 0 : K.name) || e(a).$currentLayout
2958
+ "component-name": ((K = g.layout) == null ? void 0 : K.name) || e(l).$currentLayout
2959
2959
  }), ce({ _: 2 }, [
2960
- G(Object.keys(g.$slots).filter((B) => B.startsWith("row-")), (B) => ({
2960
+ Q(Object.keys(g.$slots).filter((B) => B.startsWith("row-")), (B) => ({
2961
2961
  name: B,
2962
- fn: v((I) => [
2963
- O(g.$slots, B, de(ge(I)), void 0, !0)
2962
+ fn: f((I) => [
2963
+ C(g.$slots, B, de(ge(I)), void 0, !0)
2964
2964
  ])
2965
2965
  })),
2966
2966
  g.$slots.tfoot ? {
2967
2967
  name: "tfoot",
2968
- fn: v(() => [
2969
- O(g.$slots, "tfoot", {}, void 0, !0)
2968
+ fn: f(() => [
2969
+ C(g.$slots, "tfoot", {}, void 0, !0)
2970
2970
  ]),
2971
2971
  key: "0"
2972
2972
  } : void 0
2973
2973
  ]), 1040, ["component-name"]))
2974
2974
  ])), [
2975
- [oe, (!e(d) || $.value === bt) && e(a).loading.getAll]
2975
+ [oe, (!e(s) || $.value === bt) && e(l).loading.getAll]
2976
2976
  ]),
2977
- !e(a).loading.getAll && e(a).itemsCount > 0 ? (n(), s("div", xa, [
2977
+ !e(l).loading.getAll && e(l).itemsCount > 0 ? (n(), i("div", xa, [
2978
2978
  z(Un, {
2979
- pagination: e(a).pagination,
2979
+ pagination: e(l).pagination,
2980
2980
  onPaginate: Y
2981
2981
  }, null, 8, ["pagination"])
2982
2982
  ])) : y("", !0)
@@ -2990,9 +2990,9 @@ const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { cla
2990
2990
  title: {},
2991
2991
  options: {}
2992
2992
  },
2993
- setup(c) {
2994
- const r = re("meta"), l = (t, o) => {
2995
- r.$actions.fulfillPrompt(t, o);
2993
+ setup(d) {
2994
+ const u = re("meta"), a = (t, o) => {
2995
+ u.$actions.fulfillPrompt(t, o);
2996
2996
  };
2997
2997
  return (t, o) => (n(), k(Ae, {
2998
2998
  float: "",
@@ -3000,37 +3000,37 @@ const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { cla
3000
3000
  "close-hint": !1,
3001
3001
  style: { "--panel-min-width": "32rem" }
3002
3002
  }, ce({
3003
- footer: v(() => [
3003
+ footer: f(() => [
3004
3004
  A("div", {
3005
3005
  class: "prompt__options",
3006
3006
  style: be(`grid-template-columns: repeat(${Object.keys(t.options).length}, 1fr)`)
3007
3007
  }, [
3008
- (n(!0), s(x, null, G(Object.entries(t.options), ([u, i], _) => (n(), k(ve, {
3008
+ (n(!0), i(x, null, Q(Object.entries(t.options), ([c, r], _) => (n(), k(ve, {
3009
3009
  key: `option-${_}`,
3010
3010
  class: X(`
3011
3011
  prompt__option
3012
- prompt__option--${i.variant || "primary"}
3012
+ prompt__option--${r.variant || "primary"}
3013
3013
  `),
3014
- onClick: (p) => i.click ? i.click(u, i) : l(u, i)
3014
+ onClick: (p) => r.click ? r.click(c, r) : a(c, r)
3015
3015
  }, {
3016
- default: v(() => [
3017
- Q(C(i.title), 1)
3016
+ default: f(() => [
3017
+ D(V(r.title), 1)
3018
3018
  ]),
3019
3019
  _: 2
3020
3020
  }, 1032, ["class", "onClick"]))), 128))
3021
3021
  ], 4)
3022
3022
  ]),
3023
- default: v(() => [
3023
+ default: f(() => [
3024
3024
  A("div", tl, [
3025
- O(t.$slots, "default", {}, void 0, !0)
3025
+ C(t.$slots, "default", {}, void 0, !0)
3026
3026
  ])
3027
3027
  ]),
3028
3028
  _: 2
3029
3029
  }, [
3030
3030
  t.title ? {
3031
3031
  name: "title",
3032
- fn: v(() => [
3033
- Q(C(t.title), 1)
3032
+ fn: f(() => [
3033
+ D(V(t.title), 1)
3034
3034
  ]),
3035
3035
  key: "0"
3036
3036
  } : void 0
@@ -3045,25 +3045,25 @@ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { cla
3045
3045
  date: {},
3046
3046
  icon: {}
3047
3047
  },
3048
- setup(c) {
3049
- const r = re("meta");
3050
- return (l, t) => {
3048
+ setup(d) {
3049
+ const u = re("meta");
3050
+ return (a, t) => {
3051
3051
  const o = te("clickable");
3052
- return P((n(), s("div", {
3052
+ return P((n(), i("div", {
3053
3053
  class: X({
3054
3054
  toast: !0,
3055
- "toast--animate": e(r).toasts[0].itr === l.itr
3055
+ "toast--animate": e(u).toasts[0].itr === a.itr
3056
3056
  }),
3057
- onAnimationend: t[0] || (t[0] = (u) => e(r).$actions.popToast()),
3058
- onClick: t[1] || (t[1] = (u) => e(r).$actions.popToast(l.itr))
3057
+ onAnimationend: t[0] || (t[0] = (c) => e(u).$actions.popToast()),
3058
+ onClick: t[1] || (t[1] = (c) => e(u).$actions.popToast(a.itr))
3059
3059
  }, [
3060
3060
  z(Z, E(
3061
- l.icon ? { icon: l.icon } : { icon: "warning-circle" },
3061
+ a.icon ? { icon: a.icon } : { icon: "warning-circle" },
3062
3062
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3063
3063
  ), null, 16),
3064
3064
  A("div", al, [
3065
- O(l.$slots, "default", {}, void 0, !0),
3066
- A("div", ll, C(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
3065
+ C(a.$slots, "default", {}, void 0, !0),
3066
+ A("div", ll, V(a.formatDateTime(a.date, { hoursOnly: !0 })), 1)
3067
3067
  ])
3068
3068
  ], 34)), [
3069
3069
  [o]
@@ -3073,27 +3073,27 @@ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { cla
3073
3073
  });
3074
3074
  const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["innerHTML"], ul = { class: "main__toasts" }, cl = ["innerHTML"], dl = /* @__PURE__ */ U({
3075
3075
  __name: "aeria-main",
3076
- setup(c) {
3077
- const r = re("meta"), l = H(() => r.themeOverride || r.theme);
3076
+ setup(d) {
3077
+ const u = re("meta"), a = G(() => u.themeOverride || u.theme);
3078
3078
  return (t, o) => {
3079
- const u = St("router-view");
3080
- return n(), s("main", {
3079
+ const c = St("router-view");
3080
+ return n(), i("main", {
3081
3081
  id: "main",
3082
3082
  class: X(`
3083
3083
  main
3084
- main--${l.value}
3085
- ${l.value === "dark" && "tw-dark"}
3084
+ main--${a.value}
3085
+ ${a.value === "dark" && "tw-dark"}
3086
3086
  `)
3087
3087
  }, [
3088
3088
  (n(), k(Tt, null, {
3089
- default: v(() => [
3090
- z(u, null, {
3091
- default: v(({ Component: i }) => [
3092
- (n(), k(he(i), null, ce({ _: 2 }, [
3093
- G(Object.keys(t.$slots), (_) => ({
3089
+ default: f(() => [
3090
+ z(c, null, {
3091
+ default: f(({ Component: r }) => [
3092
+ (n(), k(he(r), null, ce({ _: 2 }, [
3093
+ Q(Object.keys(t.$slots), (_) => ({
3094
3094
  name: _,
3095
- fn: v(() => [
3096
- O(t.$slots, _, {}, void 0, !0)
3095
+ fn: f(() => [
3096
+ C(t.$slots, _, {}, void 0, !0)
3097
3097
  ])
3098
3098
  }))
3099
3099
  ]), 1024))
@@ -3103,39 +3103,39 @@ const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["inn
3103
3103
  ]),
3104
3104
  _: 3
3105
3105
  })),
3106
- O(t.$slots, "default", {}, void 0, !0),
3106
+ C(t.$slots, "default", {}, void 0, !0),
3107
3107
  z(Ae, E({
3108
- modelValue: e(r).modal.visible,
3109
- "onUpdate:modelValue": o[0] || (o[0] = (i) => e(r).modal.visible = i),
3108
+ modelValue: e(u).modal.visible,
3109
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => e(u).modal.visible = r),
3110
3110
  float: "",
3111
3111
  "close-hint": ""
3112
- }, e(r).modal, {
3112
+ }, e(u).modal, {
3113
3113
  "overlay-layer": 70,
3114
- onOverlayClick: o[1] || (o[1] = (i) => e(r).modal.visible = !1)
3114
+ onOverlayClick: o[1] || (o[1] = (r) => e(u).modal.visible = !1)
3115
3115
  }), {
3116
- default: v(() => [
3117
- e(r).modal.body ? (n(), s("div", {
3116
+ default: f(() => [
3117
+ e(u).modal.body ? (n(), i("div", {
3118
3118
  key: 0,
3119
3119
  style: { "white-space": "pre-wrap" },
3120
- innerHTML: e(r).modal.body
3120
+ innerHTML: e(u).modal.body
3121
3121
  }, null, 8, rl)) : y("", !0),
3122
- e(r).modal.component ? (n(), k(he(e(r).modal.component), { key: 1 })) : y("", !0)
3122
+ e(u).modal.component ? (n(), k(he(e(u).modal.component), { key: 1 })) : y("", !0)
3123
3123
  ]),
3124
3124
  _: 1
3125
3125
  }, 16, ["modelValue"]),
3126
- e(r).prompt.visible ? (n(), k(ol, de(E({ key: 0 }, e(r).prompt)), {
3127
- default: v(() => [
3128
- Q(C(e(r).prompt.body), 1)
3126
+ e(u).prompt.visible ? (n(), k(ol, de(E({ key: 0 }, e(u).prompt)), {
3127
+ default: f(() => [
3128
+ D(V(e(u).prompt.body), 1)
3129
3129
  ]),
3130
3130
  _: 1
3131
3131
  }, 16)) : y("", !0),
3132
3132
  A("div", ul, [
3133
- (n(!0), s(x, null, G(e(r).toasts, (i) => (n(), k(il, E({ ref_for: !0 }, i, {
3134
- key: `toast-${i.itr}`
3133
+ (n(!0), i(x, null, Q(e(u).toasts, (r) => (n(), k(il, E({ ref_for: !0 }, r, {
3134
+ key: `toast-${r.itr}`
3135
3135
  }), {
3136
- default: v(() => [
3136
+ default: f(() => [
3137
3137
  A("div", {
3138
- innerHTML: e(R)(i.text)
3138
+ innerHTML: e(R)(r.text)
3139
3139
  }, null, 8, cl)
3140
3140
  ]),
3141
3141
  _: 2
@@ -3147,13 +3147,13 @@ const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["inn
3147
3147
  });
3148
3148
  const Ml = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-1166be3d"]]);
3149
3149
  const pl = {}, _l = { class: "menu" };
3150
- function ml(c, r) {
3151
- return n(), s("menu", _l, [
3152
- (n(!0), s(x, null, G(Object.keys(c.$slots), (l) => (n(), s("div", {
3153
- key: l,
3150
+ function ml(d, u) {
3151
+ return n(), i("menu", _l, [
3152
+ (n(!0), i(x, null, Q(Object.keys(d.$slots), (a) => (n(), i("div", {
3153
+ key: a,
3154
3154
  class: "menu__entry"
3155
3155
  }, [
3156
- O(c.$slots, l, {}, void 0, !0)
3156
+ C(d.$slots, a, {}, void 0, !0)
3157
3157
  ]))), 128))
3158
3158
  ]);
3159
3159
  }
@@ -3173,58 +3173,58 @@ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb
3173
3173
  param: {},
3174
3174
  dropdown: { type: Boolean }
3175
3175
  },
3176
- setup(c) {
3177
- const r = c, l = jt(), t = Ie(), o = Ue(), u = H(() => {
3178
- if (r.query) {
3179
- const _ = t.currentRoute.value.query[r.query];
3176
+ setup(d) {
3177
+ const u = d, a = jt(), t = Ie(), o = Ue(), c = G(() => {
3178
+ if (u.query) {
3179
+ const _ = t.currentRoute.value.query[u.query];
3180
3180
  if (_)
3181
3181
  return _;
3182
- } else if (r.param) {
3183
- const _ = t.currentRoute.value.params[r.param];
3182
+ } else if (u.param) {
3183
+ const _ = t.currentRoute.value.params[u.param];
3184
3184
  if (_)
3185
3185
  return _;
3186
3186
  }
3187
- return Object.keys(l)[0];
3188
- }), i = (_) => {
3189
- r.query && t.push(qe(t.currentRoute.value, {
3187
+ return Object.keys(a)[0];
3188
+ }), r = (_) => {
3189
+ u.query && t.push(qe(t.currentRoute.value, {
3190
3190
  query: {
3191
- [r.query]: _
3191
+ [u.query]: _
3192
3192
  }
3193
- })), r.param && t.push(qe(t.currentRoute.value, {
3193
+ })), u.param && t.push(qe(t.currentRoute.value, {
3194
3194
  params: {
3195
- [r.param]: _
3195
+ [u.param]: _
3196
3196
  }
3197
3197
  }));
3198
3198
  };
3199
3199
  return (_, p) => {
3200
3200
  const b = te("clickable");
3201
- return n(), s("div", fl, [
3202
- e(o).md && !_.dropdown ? (n(), s("div", vl, [
3203
- _.$slots.default ? (n(), s("div", yl, [
3204
- O(_.$slots, "default", {}, void 0, !0)
3201
+ return n(), i("div", fl, [
3202
+ e(o).md && !_.dropdown ? (n(), i("div", vl, [
3203
+ _.$slots.default ? (n(), i("div", yl, [
3204
+ C(_.$slots, "default", {}, void 0, !0)
3205
3205
  ])) : y("", !0),
3206
- (n(!0), s(x, null, G(Object.keys(_.$slots).filter((d) => d !== "default"), (d, a) => (n(), s("div", {
3207
- key: d,
3206
+ (n(!0), i(x, null, Q(Object.keys(_.$slots).filter((s) => s !== "default"), (s, l) => (n(), i("div", {
3207
+ key: s,
3208
3208
  class: X({
3209
3209
  tabs__tab: !0,
3210
- "tabs__tab--current": d === u.value || !u.value && a === 0
3210
+ "tabs__tab--current": s === c.value || !c.value && l === 0
3211
3211
  }),
3212
- onClick: (w) => i(d)
3212
+ onClick: (w) => r(s)
3213
3213
  }, [
3214
- O(_.$slots, d, {}, void 0, !0)
3214
+ C(_.$slots, s, {}, void 0, !0)
3215
3215
  ], 10, hl))), 128))
3216
- ])) : (n(), s("div", bl, [
3216
+ ])) : (n(), i("div", bl, [
3217
3217
  z(Oe, null, ce({
3218
- default: v(({ visible: d }) => [
3218
+ default: f(({ visible: s }) => [
3219
3219
  P((n(), k(Z, {
3220
3220
  "icon-right": "",
3221
- active: d,
3221
+ active: s,
3222
3222
  icon: "caret-down",
3223
3223
  style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
3224
3224
  class: "tabs__context-menu-icon"
3225
3225
  }, {
3226
- default: v(() => [
3227
- O(_.$slots, u.value, {}, void 0, !0)
3226
+ default: f(() => [
3227
+ C(_.$slots, c.value, {}, void 0, !0)
3228
3228
  ]),
3229
3229
  _: 2
3230
3230
  }, 1032, ["active"])), [
@@ -3233,13 +3233,13 @@ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb
3233
3233
  ]),
3234
3234
  _: 2
3235
3235
  }, [
3236
- G(Object.keys(_.$slots).filter((d) => d !== "default"), (d) => ({
3237
- name: d,
3238
- fn: v(() => [
3236
+ Q(Object.keys(_.$slots).filter((s) => s !== "default"), (s) => ({
3237
+ name: s,
3238
+ fn: f(() => [
3239
3239
  A("div", {
3240
- onClick: (a) => i(d)
3240
+ onClick: (l) => r(s)
3241
3241
  }, [
3242
- O(_.$slots, d, {}, void 0, !0)
3242
+ C(_.$slots, s, {}, void 0, !0)
3243
3243
  ], 8, $l)
3244
3244
  ])
3245
3245
  }))
@@ -3254,50 +3254,50 @@ const kl = /* @__PURE__ */ W(gl, [["__scopeId", "data-v-a20914ab"]]), Vl = U({
3254
3254
  initialValue: String,
3255
3255
  promise: Promise
3256
3256
  },
3257
- setup(c) {
3258
- const r = J(c.initialValue);
3259
- return c.promise instanceof Promise && c.promise.then((l) => {
3260
- r.value = l;
3261
- }), () => Rt("div", r.value);
3257
+ setup(d) {
3258
+ const u = J(d.initialValue);
3259
+ return d.promise instanceof Promise && d.promise.then((a) => {
3260
+ u.value = a;
3261
+ }), () => Rt("div", u.value);
3262
3262
  }
3263
3263
  }), Cl = ["onClick"], Ol = { key: 1 }, Il = /* @__PURE__ */ U({
3264
3264
  __name: "aeria-crud-topbar",
3265
3265
  props: {
3266
3266
  collection: {}
3267
3267
  },
3268
- setup(c) {
3269
- const r = c, t = Ie().currentRoute, o = Ze(), u = H(() => r.collection ? Le(r.collection, o) : typeof t.value.meta.collection == "string" ? Le(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Le(t.value.params.collection, o) : null), i = async (_, p) => {
3270
- const { error: b, result: d } = await p.$functions[_.badgeFunction]({
3268
+ setup(d) {
3269
+ const u = d, t = Ie().currentRoute, o = Ze(), c = G(() => u.collection ? Le(u.collection, o) : typeof t.value.meta.collection == "string" ? Le(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Le(t.value.params.collection, o) : null), r = async (_, p) => {
3270
+ const { error: b, result: s } = await p.$functions[_.badgeFunction]({
3271
3271
  filters: _.filters
3272
3272
  });
3273
- return b ? 0 : d;
3273
+ return b ? 0 : s;
3274
3274
  };
3275
- return (_, p) => u.value && u.value.description.filtersPresets ? (n(), k(kl, {
3275
+ return (_, p) => c.value && c.value.description.filtersPresets ? (n(), k(kl, {
3276
3276
  key: 0,
3277
3277
  dropdown: "",
3278
3278
  query: "section"
3279
3279
  }, ce({ _: 2 }, [
3280
- G(Object.entries(u.value.description.filtersPresets), ([b, d]) => ({
3280
+ Q(Object.entries(c.value.description.filtersPresets), ([b, s]) => ({
3281
3281
  name: b,
3282
- fn: v(() => [
3282
+ fn: f(() => [
3283
3283
  A("div", {
3284
3284
  class: "topbar__preset",
3285
- onClick: (a) => e(Ot)(d, u.value)
3285
+ onClick: (l) => e(Ot)(s, c.value)
3286
3286
  }, [
3287
- d.icon ? (n(), k(Z, {
3287
+ s.icon ? (n(), k(Z, {
3288
3288
  key: 0,
3289
- icon: d.icon
3289
+ icon: s.icon
3290
3290
  }, {
3291
- default: v(() => [
3292
- Q(C(d.label || e(R)(b, { plural: !0 })), 1)
3291
+ default: f(() => [
3292
+ D(V(s.label || e(R)(b, { plural: !0 })), 1)
3293
3293
  ]),
3294
3294
  _: 2
3295
- }, 1032, ["icon"])) : (n(), s("div", Ol, C(d.label || e(R)(b, { plural: !0 })), 1)),
3296
- d.badgeFunction ? (n(), k($e, { key: 2 }, {
3297
- default: v(() => [
3295
+ }, 1032, ["icon"])) : (n(), i("div", Ol, V(s.label || e(R)(b, { plural: !0 })), 1)),
3296
+ s.badgeFunction ? (n(), k($e, { key: 2 }, {
3297
+ default: f(() => [
3298
3298
  z(e(Vl), {
3299
3299
  "initial-value": "0",
3300
- promise: async () => String(i(d, u.value))
3300
+ promise: async () => String(r(s, c.value))
3301
3301
  }, null, 8, ["promise"])
3302
3302
  ]),
3303
3303
  _: 2
@@ -3317,14 +3317,14 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3317
3317
  modelValue: {}
3318
3318
  },
3319
3319
  emits: ["update:modelValue"],
3320
- setup(c) {
3321
- const r = c;
3320
+ setup(d) {
3321
+ const u = d;
3322
3322
  ye(Fe, null);
3323
- const l = Xt(), t = H(() => l(
3324
- r.modelValue.password,
3325
- r.modelValue.confirmation
3323
+ const a = Xt(), t = G(() => a(
3324
+ u.modelValue.password,
3325
+ u.modelValue.confirmation
3326
3326
  ));
3327
- return (o, u) => (n(), k(Qe, {
3327
+ return (o, c) => (n(), k(Qe, {
3328
3328
  form: {
3329
3329
  password: {
3330
3330
  type: "string",
@@ -3338,34 +3338,34 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3338
3338
  }
3339
3339
  },
3340
3340
  "model-value": o.modelValue,
3341
- "onUpdate:modelValue": u[0] || (u[0] = (i) => o.$emit("update:modelValue", i))
3341
+ "onUpdate:modelValue": c[0] || (c[0] = (r) => o.$emit("update:modelValue", r))
3342
3342
  }, {
3343
- after: v(() => [
3344
- A("div", null, C(t.value || "Senhas conferem"), 1),
3345
- O(o.$slots, "default", de(ge({ passwordError: t.value })))
3343
+ after: f(() => [
3344
+ A("div", null, V(t.value || "Senhas conferem"), 1),
3345
+ C(o.$slots, "default", de(ge({ passwordError: t.value })))
3346
3346
  ]),
3347
3347
  _: 3
3348
3348
  }, 8, ["model-value"]));
3349
3349
  }
3350
- }), El = (c, r = []) => ({
3350
+ }), El = (d, u = []) => ({
3351
3351
  path: "/user",
3352
3352
  name: "/builtin:user",
3353
- component: c,
3354
- children: r.concat([
3353
+ component: d,
3354
+ children: u.concat([
3355
3355
  {
3356
3356
  path: "invite/:id",
3357
3357
  name: "/user/invite/:id",
3358
- redirect: (l) => ({
3358
+ redirect: (a) => ({
3359
3359
  path: "/user/signup",
3360
3360
  params: {
3361
- inviteId: l.params.id
3361
+ inviteId: a.params.id
3362
3362
  }
3363
3363
  })
3364
3364
  },
3365
3365
  {
3366
3366
  path: "signin",
3367
3367
  name: "/user/signin",
3368
- component: () => import("./signin-cc8074a5.js"),
3368
+ component: () => import("./signin-131cef9c.js"),
3369
3369
  meta: {
3370
3370
  title: "Autenticação"
3371
3371
  }
@@ -3373,7 +3373,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3373
3373
  {
3374
3374
  path: "signup",
3375
3375
  name: "/user/signup",
3376
- component: () => import("./signup-aa8ebb88.js"),
3376
+ component: () => import("./signup-037f2f37.js"),
3377
3377
  meta: {
3378
3378
  title: "Registro"
3379
3379
  }
@@ -3381,29 +3381,29 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3381
3381
  {
3382
3382
  path: "activation",
3383
3383
  name: "/user/activation",
3384
- component: () => import("./activation-21234686.js"),
3384
+ component: () => import("./activation-01e847e4.js"),
3385
3385
  meta: {
3386
3386
  title: "Ativação"
3387
3387
  }
3388
3388
  }
3389
3389
  ])
3390
- }), Hl = (c, r = []) => ({
3390
+ }), Hl = (d, u = []) => ({
3391
3391
  path: "/dashboard",
3392
3392
  name: "/builtin:dashboard",
3393
- component: c,
3393
+ component: d,
3394
3394
  redirect: {
3395
3395
  name: "/dashboard/"
3396
3396
  },
3397
3397
  meta: {
3398
3398
  title: "Dashboard"
3399
3399
  },
3400
- children: r.concat([
3400
+ children: u.concat([
3401
3401
  {
3402
3402
  path: "c/:collection",
3403
3403
  name: "/dashboard/:collection",
3404
3404
  props: !0,
3405
3405
  components: {
3406
- default: () => import("./index-c6c46429.js"),
3406
+ default: () => import("./index-bdc0133c.js"),
3407
3407
  topbar: () => Promise.resolve().then(() => wl)
3408
3408
  },
3409
3409
  meta: {
@@ -3415,7 +3415,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3415
3415
  name: "/dashboard/:collection/:id",
3416
3416
  props: !0,
3417
3417
  components: {
3418
- default: () => import("./_id_-e62f8939.js")
3418
+ default: () => import("./_id_-28e2ff98.js")
3419
3419
  },
3420
3420
  meta: {
3421
3421
  title: "%viewTitle%"
@@ -3433,7 +3433,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3433
3433
  children: [
3434
3434
  {
3435
3435
  path: "profile",
3436
- component: () => import("./index-1395aded.js"),
3436
+ component: () => import("./index-7e4faf19.js"),
3437
3437
  meta: {
3438
3438
  title: "Meu perfil",
3439
3439
  icon: "user-square"
@@ -3442,7 +3442,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
3442
3442
  {
3443
3443
  path: "changepass",
3444
3444
  name: "/dashboard/user/changepass",
3445
- component: () => import("./index-d838adbc.js"),
3445
+ component: () => import("./index-3e560edd.js"),
3446
3446
  meta: {
3447
3447
  title: "Mudar senha",
3448
3448
  icon: "lock"