@aeria-ui/ui 0.0.94 → 0.0.96

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,8 +1,8 @@
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 D, 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 Bt, onUnmounted as wt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
1
+ import { defineComponent as 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
- import { useStore as re, getStoreId as Me, useParentStore as He, STORE_ID as Fe, getGlobalStateManager as Ze } from "@aeria-ui/state-management";
5
- import { useScrollObserver as Pe, useBreakpoints as Ue, useMask as Ft, PAGINATION_PER_PAGE_DEFAULTS as Ut, API_URL as kt, request as Et, useDebounce as Vt, isDocumentComplete as Dt, getObjectKey as Ht, convertToSearchQuery as Qt, useParentCollectionStore as Le, useCollectionStore as Gt, useAction as Wt, convertFromSearchQuery as Kt, usePasswordPolicy as Xt } from "@aeria-ui/core";
4
+ import { useStore as re, getStoreId as Me, useParentStore as De, STORE_ID as Fe, getGlobalStateManager as Ze } from "@aeria-ui/state-management";
5
+ import { useScrollObserver as Pe, useBreakpoints as Ue, useMask as Ft, PAGINATION_PER_PAGE_DEFAULTS as Ut, API_URL as kt, request as Et, useDebounce as Vt, isDocumentComplete as Ht, getObjectKey as Dt, convertToSearchQuery as Qt, useParentCollectionStore as Le, useCollectionStore as Gt, useAction as Wt, convertFromSearchQuery as Kt, usePasswordPolicy as Xt } from "@aeria-ui/core";
6
6
  import { useRouter as Ie } from "vue-router";
7
7
  const Yt = ["onClick"], Jt = { key: 0 }, Zt = {
8
8
  key: 0,
@@ -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 = D(() => {
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 = D(() => 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, B) => {
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: B[2] || (B[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: B[0] || (B[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: B[1] || (B[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
- }, _ = D(() => {
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, B) => (n(), k(ve, {
444
- key: `slot-${B}`,
443
+ (n(!0), i(x, null, Q(Object.keys(p.$slots).filter((l) => !["default", "extra", "header"].includes(l)), (l, w) => (n(), k(ve, {
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, B) => (n(), k(ve, {
459
- key: `action-${B}`,
458
+ (n(!0), i(x, null, Q(c(p.actions), (l, w) => (n(), k(ve, {
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 = {
@@ -541,7 +541,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
541
541
  }, In = {
542
542
  key: 1,
543
543
  class: "input__hint"
544
- }, An = ["placeholder", "readonly", "value"], Bn = ["value"], wn = {
544
+ }, An = ["placeholder", "readonly", "value"], wn = ["value"], Bn = {
545
545
  key: 1,
546
546
  class: "input__clipboard"
547
547
  }, Sn = /* @__PURE__ */ U({
@@ -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,17 +579,21 @@ 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
- const B = (h) => {
587
+ const w = (h) => {
588
588
  try {
589
- if (!(h instanceof Date))
590
- return h;
591
- const F = h instanceof Date ? h : new Date(h);
592
- switch (a.type) {
589
+ let F;
590
+ if (h instanceof Date)
591
+ F = h;
592
+ else if (typeof h == "string")
593
+ F = new Date(h);
594
+ else
595
+ throw new Error();
596
+ switch (l.type) {
593
597
  case "date":
594
598
  return F.toISOString().slice(0, 10);
595
599
  case "datetime-local":
@@ -600,17 +604,17 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
600
604
  } catch {
601
605
  return "";
602
606
  }
603
- }, f = J(""), $ = ((ee = l.property) == null ? void 0 : ee.type) === "string" && l.property.mask ? Ft(l.property.mask) : null;
604
- ue(() => l.modelValue, (h) => {
605
- 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 = (() => {
606
610
  if ($)
607
611
  return h ? $.enmask(String(h), void 0, {
608
612
  defaultValue: !0
609
613
  }) : "";
610
- switch (a.type) {
614
+ switch (l.type) {
611
615
  case "date":
612
616
  case "datetime-local":
613
- return B(h);
617
+ return w(h);
614
618
  }
615
619
  switch (h) {
616
620
  case null:
@@ -623,16 +627,16 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
623
627
  }, {
624
628
  immediate: !0
625
629
  });
626
- const T = (h) => {
630
+ const S = (h) => {
627
631
  var F;
628
- 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, {
629
633
  defaultValue: !0
630
- }), l.property.maskedValue === !0 ? f.value : $.unmask(f.value)) : h;
631
- }, V = (h) => {
634
+ }), a.property.maskedValue === !0 ? v.value : $.unmask(v.value)) : h;
635
+ }, O = (h) => {
632
636
  const F = (() => {
633
637
  if (!h || typeof h != "string")
634
638
  return h;
635
- switch (a.type) {
639
+ switch (l.type) {
636
640
  case "number":
637
641
  case "integer":
638
642
  return Number(h);
@@ -640,84 +644,84 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
640
644
  case "date-time":
641
645
  return new Date(h);
642
646
  default:
643
- return T(h);
647
+ return S(h);
644
648
  }
645
649
  })();
646
650
  t("input", F), t("update:modelValue", F);
647
651
  }, Y = (h) => {
648
652
  const F = h.target.value;
649
- f.value = F, V(F);
653
+ v.value = F, O(F);
650
654
  };
651
655
  return (h, F) => {
652
- const le = te("focus"), S = te("clickable");
653
- return n(), s("label", Cn, [
654
- e(_) ? y("", !0) : (n(), s("div", On, [
655
- 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)
656
660
  ])),
657
- h.$slots.hint ? (n(), s("div", In, [
658
- O(h.$slots, "hint", {}, void 0, !0)
661
+ h.$slots.hint ? (n(), i("div", In, [
662
+ C(h.$slots, "hint", {}, void 0, !0)
659
663
  ])) : y("", !0),
660
- "element" in e(o) && e(o).element === "textarea" ? (n(), s("div", {
664
+ "element" in e(o) && e(o).element === "textarea" ? (n(), i("div", {
661
665
  key: 2,
662
666
  class: X(`
663
667
  input__container
664
668
  input__container--textarea
665
- input__container--${e(d)}
669
+ input__container--${e(s)}
666
670
  `)
667
671
  }, [
668
672
  P(A("textarea", {
669
- placeholder: e(a).placeholder,
670
- readonly: e(a).readonly,
673
+ placeholder: e(l).placeholder,
674
+ readonly: e(l).readonly,
671
675
  value: h.modelValue,
672
676
  class: X(`
673
677
  input__textarea
674
- input__input--${e(d)}
678
+ input__input--${e(s)}
675
679
  `),
676
680
  onInput: Y
677
681
  }, null, 42, An), [
678
682
  [le, e(o).focus]
679
683
  ])
680
- ], 2)) : (n(), s("div", {
684
+ ], 2)) : (n(), i("div", {
681
685
  key: 3,
682
686
  class: X(`
683
687
  input__container
684
- input__container--${e(d)}
688
+ input__container--${e(s)}
685
689
  `)
686
690
  }, [
687
- P(A("input", E(e(a), {
688
- value: f.value,
691
+ P(A("input", E(e(l), {
692
+ value: v.value,
689
693
  "data-component": "input",
690
694
  class: `
691
695
  input__input
692
- input__input--${e(d)}
693
- ${e(u) && "input__input--icon"}
696
+ input__input--${e(s)}
697
+ ${e(c) && "input__input--icon"}
694
698
  ${e(p) && "input__input--readOnly"}
695
699
  `,
696
700
  onInput: Y,
697
701
  onChange: F[0] || (F[0] = (g) => t("change", g))
698
- }), null, 16, Bn), [
702
+ }), null, 16, wn), [
699
703
  [le, e(o).focus]
700
704
  ]),
701
- e(u) ? (n(), k(Z, {
705
+ e(c) ? (n(), k(Z, {
702
706
  key: 0,
703
707
  icon: e(o).icon || "magnifying-glass",
704
708
  class: X(`
705
709
  input__icon
706
- input__icon--${e(d)}
710
+ input__icon--${e(s)}
707
711
  `)
708
712
  }, null, 8, ["icon", "class"])) : y("", !0),
709
- e(p) ? (n(), s("div", wn, [
713
+ e(p) ? (n(), i("div", Bn, [
710
714
  z(Vn, null, {
711
- text: v(() => [
712
- Q("Copiar")
715
+ text: f(() => [
716
+ D("Copiar")
713
717
  ]),
714
- default: v(() => [
718
+ default: f(() => [
715
719
  P(z(Z, {
716
720
  reactive: "",
717
721
  icon: "clipboard",
718
722
  onClick: F[1] || (F[1] = ze((g) => b(String(h.modelValue || "")), ["prevent"]))
719
723
  }, null, 512), [
720
- [S]
724
+ [T]
721
725
  ])
722
726
  ]),
723
727
  _: 1
@@ -728,7 +732,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
728
732
  };
729
733
  }
730
734
  });
731
- const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-12b13e76"]]), Tn = {
735
+ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
732
736
  key: 1,
733
737
  value: ""
734
738
  }, jn = ["value", "data-selected"], Rn = /* @__PURE__ */ U({
@@ -745,14 +749,14 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-12b13e76"]]), Tn = {
745
749
  noOutline: { type: Boolean }
746
750
  },
747
751
  emits: ["update:modelValue", "change"],
748
- setup(c, { emit: r }) {
749
- const l = c, t = r, o = J(null), u = l.property, i = (d) => {
750
- l.booleanRef && (_.value = d), t("update:modelValue", (d == null ? void 0 : d._id) || d), t("change", (d == null ? void 0 : d._id) || d);
751
- }, _ = l.booleanRef ? (() => {
752
- const d = J(l.modelValue);
753
- return D({
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({
754
758
  get: () => {
755
- switch (d.value) {
759
+ switch (s.value) {
756
760
  case "true":
757
761
  return !0;
758
762
  case "false":
@@ -761,25 +765,25 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-12b13e76"]]), Tn = {
761
765
  return null;
762
766
  }
763
767
  },
764
- set: (B) => {
765
- d.value = B;
768
+ set: (w) => {
769
+ s.value = w;
766
770
  }
767
771
  });
768
- })() : D({
769
- get: () => l.modelValue,
770
- set: i
771
- }), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, b = D(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
772
- return l.multiple && ue(() => l.modelValue, (d) => {
773
- var B;
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
+ var w;
774
778
  if (!o.value)
775
779
  return;
776
- const a = o.value.querySelector('option[data-selected="true"]');
777
- a && a.removeAttribute("data-selected"), (B = o.value.querySelector(`option[value="${d}"]`)) == null || B.setAttribute("data-selected", "true");
778
- }), (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, {
779
783
  key: 1,
780
784
  "read-only": "",
781
785
  "model-value": e(_)
782
- }, null, 8, ["model-value"])) : (n(), s("select", E({ key: 0 }, {
786
+ }, null, 8, ["model-value"])) : (n(), i("select", E({ key: 0 }, {
783
787
  size: b.value,
784
788
  value: e(_)
785
789
  }, {
@@ -788,24 +792,24 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-12b13e76"]]), Tn = {
788
792
  class: {
789
793
  select: !0,
790
794
  "select--multiple": !!b.value,
791
- "select--outline": !d.noOutline
795
+ "select--outline": !s.noOutline
792
796
  },
793
- onChange: a[0] || (a[0] = (B) => i(B.target.value))
797
+ onChange: l[0] || (l[0] = (w) => r(w.target.value))
794
798
  }), [
795
- e(u) && e(u).icon ? (n(), k(Z, {
799
+ e(c) && e(c).icon ? (n(), k(Z, {
796
800
  key: 0,
797
- icon: e(u).icon
801
+ icon: e(c).icon
798
802
  }, null, 8, ["icon"])) : y("", !0),
799
- l.multiple ? y("", !0) : (n(), s("option", Tn, C(e(R)("none")), 1)),
800
- (n(!0), s(x, null, G(e(u) && "enum" in e(u) ? e(u).enum : [], (B) => {
801
- var f;
802
- return n(), s("option", {
803
- key: B,
804
- value: B,
805
- "data-selected": p(B)
806
- }, C((f = e(u)) != null && f.translate ? e(R)(B) : B), 9, jn);
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
+ key: w,
808
+ value: w,
809
+ "data-selected": p(w)
810
+ }, V((v = e(c)) != null && v.translate ? e(R)(w) : w), 9, jn);
807
811
  }), 128)),
808
- O(d.$slots, "default", {}, void 0, !0)
812
+ C(s.$slots, "default", {}, void 0, !0)
809
813
  ], 16));
810
814
  }
811
815
  });
@@ -819,105 +823,105 @@ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { cla
819
823
  noSummary: { type: Boolean }
820
824
  },
821
825
  emits: ["paginate"],
822
- setup(c, { emit: r }) {
823
- const l = c, t = r, o = D({
824
- 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),
825
829
  set: (b) => {
826
- l.pagination.offset = b * l.pagination.limit;
830
+ a.pagination.offset = b * a.pagination.limit;
827
831
  }
828
- }), u = D({
829
- get: () => l.pagination.limit,
832
+ }), c = G({
833
+ get: () => a.pagination.limit,
830
834
  set: (b) => {
831
- l.pagination.limit = Number(b);
835
+ a.pagination.limit = Number(b);
832
836
  }
833
- }), i = J(o.value ? o.value + 1 : 1), _ = D(() => 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) => {
834
838
  o.value = b === "previous" ? o.value - 1 : o.value + 1;
835
839
  };
836
840
  return ue([
837
841
  o,
838
- u
842
+ c
839
843
  ], ([b]) => {
840
- i.value = b + 1, t("paginate", {
841
- offset: o.value * u.value,
842
- limit: u.value
844
+ r.value = b + 1, t("paginate", {
845
+ offset: o.value * c.value,
846
+ limit: c.value
843
847
  });
844
- }), (b, d) => (n(), s("div", Ln, [
848
+ }), (b, s) => (n(), i("div", Ln, [
845
849
  A("div", zn, [
846
850
  z(ve, {
847
851
  disabled: o.value === 0,
848
- onClick: d[0] || (d[0] = (a) => o.value = 0)
852
+ onClick: s[0] || (s[0] = (l) => o.value = 0)
849
853
  }, {
850
- default: v(() => [
854
+ default: f(() => [
851
855
  z(Z, { icon: "caret-double-left" })
852
856
  ]),
853
857
  _: 1
854
858
  }, 8, ["disabled"]),
855
859
  z(ve, {
856
860
  disabled: o.value === 0,
857
- onClick: d[1] || (d[1] = (a) => p("previous"))
861
+ onClick: s[1] || (s[1] = (l) => p("previous"))
858
862
  }, {
859
- default: v(() => [
863
+ default: f(() => [
860
864
  z(Z, { icon: "caret-left" })
861
865
  ]),
862
866
  _: 1
863
867
  }, 8, ["disabled"]),
864
868
  z(ve, {
865
869
  disabled: o.value === _.value - 1,
866
- onClick: d[2] || (d[2] = (a) => p("next"))
870
+ onClick: s[2] || (s[2] = (l) => p("next"))
867
871
  }, {
868
- default: v(() => [
872
+ default: f(() => [
869
873
  z(Z, { icon: "caret-right" })
870
874
  ]),
871
875
  _: 1
872
876
  }, 8, ["disabled"]),
873
877
  z(ve, {
874
878
  disabled: o.value === _.value - 1,
875
- onClick: d[3] || (d[3] = (a) => o.value = _.value - 1)
879
+ onClick: s[3] || (s[3] = (l) => o.value = _.value - 1)
876
880
  }, {
877
- default: v(() => [
881
+ default: f(() => [
878
882
  z(Z, { icon: "caret-double-right" })
879
883
  ]),
880
884
  _: 1
881
885
  }, 8, ["disabled"]),
882
886
  z(Ne, {
883
- modelValue: u.value,
884
- "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),
885
889
  property: {
886
890
  enum: [],
887
891
  icon: "list"
888
892
  },
889
893
  class: "pagination__control"
890
894
  }, {
891
- default: v(() => [
892
- (n(!0), s(x, null, G(e(Ut), (a) => (n(), s("option", {
893
- key: `limit-${a}`,
894
- value: a
895
- }, 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))
896
900
  ]),
897
901
  _: 1
898
902
  }, 8, ["modelValue"])
899
903
  ]),
900
- b.noSummary ? y("", !0) : (n(), s("div", Mn, [
901
- Q(C(e(R)("Page")) + " ", 1),
904
+ b.noSummary ? y("", !0) : (n(), i("div", Mn, [
905
+ D(V(e(R)("Page")) + " ", 1),
902
906
  (n(), k(ke, {
903
907
  key: o.value,
904
- modelValue: i.value,
905
- "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),
906
910
  property: {
907
911
  type: "number",
908
912
  minimum: 1
909
913
  },
910
914
  style: { height: "100%" },
911
- onChange: d[6] || (d[6] = (a) => {
912
- 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;
913
917
  })
914
918
  }, null, 8, ["modelValue"])),
915
- A("span", null, C(e(R)("of")) + " " + C(_.value), 1)
919
+ A("span", null, V(e(R)("of")) + " " + V(_.value), 1)
916
920
  ]))
917
921
  ]));
918
922
  }
919
923
  });
920
- const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { class: "checkbox__text" }, Dn = ["innerHTML"], Hn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
924
+ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { class: "checkbox__text" }, Hn = ["innerHTML"], Dn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
921
925
  inheritAttrs: !1
922
926
  }, Wn = /* @__PURE__ */ U({
923
927
  ...Gn,
@@ -933,8 +937,8 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
933
937
  variant: {}
934
938
  },
935
939
  emits: ["update:modelValue", "change"],
936
- setup(c, { emit: r }) {
937
- 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 = (() => {
938
942
  if (t && "type" in t)
939
943
  switch (t.type) {
940
944
  case "array":
@@ -942,53 +946,53 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
942
946
  return "checkbox";
943
947
  }
944
948
  return "radio";
945
- })(), i = r, _ = l.value || !1, p = D({
949
+ })(), r = u, _ = a.value || !1, p = G({
946
950
  get: () => {
947
- var d;
951
+ var s;
948
952
  if (t) {
949
953
  if ("type" in t && t.type === "boolean")
950
- return !!l.value;
954
+ return !!a.value;
951
955
  if ("items" in t)
952
- return (d = l.modelValue) == null ? void 0 : d.includes(l.value);
956
+ return (s = a.modelValue) == null ? void 0 : s.includes(a.value);
953
957
  }
954
- return l.modelValue === l.value;
958
+ return a.modelValue === a.value;
955
959
  },
956
960
  set: () => {
957
- var d;
961
+ var s;
958
962
  if (!o) {
959
963
  if (t) {
960
964
  if ("type" in t && t.type === "boolean") {
961
- i("update:modelValue", !l.modelValue);
965
+ r("update:modelValue", !a.modelValue);
962
966
  return;
963
967
  }
964
968
  if ("items" in t) {
965
- if ((d = l.modelValue) != null && d.includes(_)) {
966
- 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 !== _));
967
971
  return;
968
972
  }
969
- i("update:modelValue", [_].concat(l.modelValue || []));
973
+ r("update:modelValue", [_].concat(a.modelValue || []));
970
974
  return;
971
975
  }
972
976
  }
973
- i("update:modelValue", l.value);
977
+ r("update:modelValue", a.value);
974
978
  }
975
979
  }
976
- }), b = (d) => {
977
- o && d.preventDefault();
980
+ }), b = (s) => {
981
+ o && s.preventDefault();
978
982
  };
979
- return (d, a) => {
980
- var f, $;
981
- const B = te("clickable");
982
- return P((n(), s("label", {
983
+ return (s, l) => {
984
+ var v, $;
985
+ const w = te("clickable");
986
+ return P((n(), i("label", {
983
987
  class: X(`
984
988
  checkbox
985
989
  ${e(o) && "checkbox--readOnly"}
986
990
  `)
987
991
  }, [
988
992
  P(A("input", E({
989
- "onUpdate:modelValue": a[0] || (a[0] = (T) => p.value = T)
993
+ "onUpdate:modelValue": l[0] || (l[0] = (S) => p.value = S)
990
994
  }, {
991
- type: e(u),
995
+ type: e(c),
992
996
  readOnly: e(o),
993
997
  checked: p.value
994
998
  }, {
@@ -999,20 +1003,20 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
999
1003
  ]),
1000
1004
  A("div", En, [
1001
1005
  A("div", null, [
1002
- 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", {
1003
1007
  key: 1,
1004
- innerHTML: (f = e(t)) != null && f.translate ? e(R)(e(_)) : e(_)
1005
- }, null, 8, Dn)) : 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)
1006
1010
  ]),
1007
- A("div", Hn, [
1008
- d.$slots.hint ? O(d.$slots, "hint", { key: 0 }, void 0, !0) : ($ = e(t)) != null && $.hint ? (n(), s("div", {
1011
+ A("div", Dn, [
1012
+ s.$slots.hint ? C(s.$slots, "hint", { key: 0 }, void 0, !0) : ($ = e(t)) != null && $.hint ? (n(), i("div", {
1009
1013
  key: 1,
1010
1014
  innerHTML: e(t).hint
1011
1015
  }, null, 8, Qn)) : y("", !0)
1012
1016
  ])
1013
1017
  ])
1014
1018
  ], 2)), [
1015
- [B]
1019
+ [w]
1016
1020
  ]);
1017
1021
  };
1018
1022
  }
@@ -1032,23 +1036,23 @@ const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1032
1036
  columns: { default: 1 }
1033
1037
  },
1034
1038
  emits: ["update:modelValue"],
1035
- setup(c, { emit: r }) {
1036
- 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 = (_) => {
1037
1041
  t("update:modelValue", _);
1038
1042
  };
1039
1043
  return $t(() => {
1040
- l.modelValue || t(
1044
+ a.modelValue || t(
1041
1045
  "update:modelValue",
1042
- "items" in l.property ? [] : ""
1046
+ "items" in a.property ? [] : ""
1043
1047
  );
1044
- }), (_, p) => (n(), s("div", {
1048
+ }), (_, p) => (n(), i("div", {
1045
1049
  class: "options",
1046
1050
  style: be(`
1047
1051
  --columns: ${_.columns};
1048
1052
  grid-template-columns: repeat(var(--columns), 1fr);
1049
1053
  `)
1050
1054
  }, [
1051
- (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", {
1052
1056
  key: `option-${b}`,
1053
1057
  class: "options__checkbox"
1054
1058
  }, [
@@ -1058,13 +1062,13 @@ const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1058
1062
  property: _.property
1059
1063
  }, {
1060
1064
  "model-value": _.modelValue,
1061
- "onUpdate:modelValue": i
1065
+ "onUpdate:modelValue": r
1062
1066
  }), null, 16, ["model-value"])
1063
1067
  ]))), 128))
1064
1068
  ], 4));
1065
1069
  }
1066
1070
  });
1067
- 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 = {
1068
1072
  inheritAttrs: !1
1069
1073
  }, to = /* @__PURE__ */ U({
1070
1074
  ...eo,
@@ -1078,21 +1082,21 @@ const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (c) =
1078
1082
  readOnly: { type: Boolean }
1079
1083
  },
1080
1084
  emits: ["update:modelValue", "change"],
1081
- setup(c, { emit: r }) {
1082
- const l = c, t = r, o = l.property, u = l.readOnly || (o == null ? void 0 : o.readOnly), i = () => {
1083
- 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));
1084
1088
  };
1085
1089
  return (_, p) => {
1086
- var d;
1090
+ var s;
1087
1091
  const b = te("clickable");
1088
- return n(), s("div", Pn, [
1089
- P((n(), s("a", {
1092
+ return n(), i("div", Pn, [
1093
+ P((n(), i("a", {
1090
1094
  class: X(`
1091
1095
  switch
1092
1096
  ${_.modelValue && "switch--active"}
1093
- ${e(u) && "switch--readOnly"}
1097
+ ${e(c) && "switch--readOnly"}
1094
1098
  `),
1095
- onClick: ze(i, ["stop"])
1099
+ onClick: ze(r, ["stop"])
1096
1100
  }, [
1097
1101
  Nn,
1098
1102
  A("div", {
@@ -1103,15 +1107,15 @@ const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (c) =
1103
1107
  }, null, 2)
1104
1108
  ], 2)), [
1105
1109
  [b, {
1106
- blocked: e(u)
1110
+ blocked: e(c)
1107
1111
  }]
1108
1112
  ]),
1109
- _.$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))
1110
1114
  ]);
1111
1115
  };
1112
1116
  }
1113
1117
  });
1114
- 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 = {
1115
1119
  key: 0,
1116
1120
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1117
1121
  }, lo = ["src", "alt"], so = {
@@ -1148,38 +1152,38 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1148
1152
  expandable: { type: Boolean },
1149
1153
  meta: {}
1150
1154
  },
1151
- setup(c) {
1152
- const r = c, l = D(() => r.fileId ? `${kt}/file/${r.fileId}/picture` : r.url || r.modelValue), t = J(!1);
1153
- 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) => {
1154
1158
  var _;
1155
- const i = te("overlay");
1156
- return n(), s("figure", oo, [
1157
- l.value ? (n(), k(Ke, {
1159
+ const r = te("overlay");
1160
+ return n(), i("figure", oo, [
1161
+ a.value ? (n(), k(Ke, {
1158
1162
  key: 0,
1159
1163
  to: "main"
1160
1164
  }, [
1161
- t.value ? P((n(), s("div", ao, [
1165
+ t.value ? P((n(), i("div", ao, [
1162
1166
  A("img", {
1163
- src: l.value,
1167
+ src: a.value,
1164
1168
  alt: o.alt,
1165
1169
  style: `
1166
1170
  max-height: 60vh;
1167
1171
  object-fit: contain;
1168
1172
  `,
1169
- onClick: u[0] || (u[0] = (p) => t.value = !0)
1173
+ onClick: c[0] || (c[0] = (p) => t.value = !0)
1170
1174
  }, null, 8, lo),
1171
- (_ = 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)
1172
1176
  ])), [
1173
- [i, {
1177
+ [r, {
1174
1178
  click: () => {
1175
1179
  t.value = !1;
1176
1180
  }
1177
1181
  }]
1178
1182
  ]) : y("", !0)
1179
1183
  ])) : y("", !0),
1180
- l.value ? (n(), s("img", {
1184
+ a.value ? (n(), i("img", {
1181
1185
  key: 1,
1182
- src: l.value,
1186
+ src: a.value,
1183
1187
  class: X(`
1184
1188
  picture__image
1185
1189
  ${o.bordered && "picture__image--bordered"}
@@ -1190,10 +1194,10 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1190
1194
  width: ${o.width || "100%"};
1191
1195
  height: ${o.height || "100%"};
1192
1196
  `),
1193
- onClick: u[1] || (u[1] = () => {
1197
+ onClick: c[1] || (c[1] = () => {
1194
1198
  o.expandable && (t.value = !0);
1195
1199
  })
1196
- }, 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", {
1197
1201
  key: 4,
1198
1202
  class: X(["picture__background", `
1199
1203
  ${o.bordered && "picture__image--bordered"}
@@ -1207,14 +1211,14 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
1207
1211
  height: ${o.height || "100%"};
1208
1212
  `)
1209
1213
  }, co, 6)),
1210
- o.$slots.caption ? (n(), s("figcaption", po, [
1211
- O(o.$slots, "caption", {}, void 0, !0)
1214
+ o.$slots.caption ? (n(), i("figcaption", po, [
1215
+ C(o.$slots, "caption", {}, void 0, !0)
1212
1216
  ])) : y("", !0)
1213
1217
  ]);
1214
1218
  };
1215
1219
  }
1216
1220
  });
1217
- const De = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
1221
+ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
1218
1222
  key: 1,
1219
1223
  class: "file__actions"
1220
1224
  }, ho = ["accept"], bo = {
@@ -1236,28 +1240,28 @@ const De = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1236
1240
  content: {}
1237
1241
  },
1238
1242
  emits: ["update:content", "change", "update:modelValue"],
1239
- setup(c, { emit: r }) {
1240
- var f;
1241
- const l = c, t = r, u = Me() ? He() : null, i = J(((f = l.modelValue) == null ? void 0 : f.file) || null), _ = D(() => {
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(() => {
1242
1246
  var $;
1243
- return i.value ? URL.createObjectURL(i.value) : ($ = l.modelValue) == null ? void 0 : $.link;
1244
- }), p = D(() => {
1245
- var $, T, V;
1246
- 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);
1247
- }), b = ($) => new Promise((T) => {
1248
- const V = new FileReader();
1249
- V.onload = () => T(V.result), V.readAsArrayBuffer($);
1250
- }), d = () => {
1251
- l.modelValue.tempId && t("update:modelValue", null), i.value = null;
1252
- }, a = async ($) => {
1253
- i.value = $.target.files[0];
1254
- const T = i.value, V = await b(T);
1255
- if (u) {
1256
- 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, {
1257
1261
  params: {
1258
1262
  method: "POST",
1259
1263
  headers: {
1260
- "content-type": T.type || "application/octet-stream",
1264
+ "content-type": S.type || "application/octet-stream",
1261
1265
  "x-stream-request": "1"
1262
1266
  }
1263
1267
  }
@@ -1266,58 +1270,58 @@ const De = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1266
1270
  return;
1267
1271
  t("update:modelValue", {
1268
1272
  tempId: ee.tempId,
1269
- file: T
1273
+ file: S
1270
1274
  });
1271
1275
  } else
1272
- t("update:modelValue", T);
1273
- t("update:content", V), t("change", V);
1274
- }, B = async () => {
1276
+ t("update:modelValue", S);
1277
+ t("update:content", O), t("change", O);
1278
+ }, w = async () => {
1275
1279
  t("update:modelValue", null);
1276
1280
  };
1277
- return ($, T) => {
1278
- var V, Y, ee, h, F, le;
1279
- return n(), s("div", mo, [
1280
- i.value || (V = $.modelValue) != null && V._id ? (n(), s("div", fo, [
1281
- p.value ? (n(), k(De, {
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
+ p.value ? (n(), k(He, {
1282
1286
  key: 0,
1283
1287
  modelValue: _.value,
1284
- "onUpdate:modelValue": T[0] || (T[0] = (S) => _.value = S),
1288
+ "onUpdate:modelValue": S[0] || (S[0] = (T) => _.value = T),
1285
1289
  alt: "Image preview",
1286
1290
  expandable: $.readOnly,
1287
1291
  class: X(`
1288
1292
  file__image
1289
- ${!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"}
1290
1294
  `)
1291
1295
  }, null, 8, ["modelValue", "expandable", "class"])) : y("", !0),
1292
- (ee = $.modelValue) != null && ee._id ? (n(), s("a", {
1296
+ (ee = $.modelValue) != null && ee._id ? (n(), i("a", {
1293
1297
  key: 1,
1294
1298
  href: $.modelValue.download_link
1295
- }, C($.modelValue.name), 9, vo)) : y("", !0)
1299
+ }, V($.modelValue.name), 9, vo)) : y("", !0)
1296
1300
  ])) : y("", !0),
1297
- $.readOnly ? y("", !0) : (n(), s("div", yo, [
1301
+ $.readOnly ? y("", !0) : (n(), i("div", yo, [
1298
1302
  A("input", {
1299
1303
  ref: "file",
1300
1304
  type: "file",
1301
1305
  accept: (F = (h = $.property) == null ? void 0 : h.accept) == null ? void 0 : F.join(","),
1302
- onChange: a
1306
+ onChange: l
1303
1307
  }, null, 40, ho),
1304
- i.value ? (n(), s("div", bo, [
1308
+ r.value ? (n(), i("div", bo, [
1305
1309
  z(ie, {
1306
1310
  small: "",
1307
- onClick: ze(d, ["prevent"])
1311
+ onClick: ze(s, ["prevent"])
1308
1312
  }, {
1309
- default: v(() => [
1310
- Q(C(e(R)("action.clear", { capitalize: !0 })), 1)
1313
+ default: f(() => [
1314
+ D(V(e(R)("action.clear", { capitalize: !0 })), 1)
1311
1315
  ]),
1312
1316
  _: 1
1313
1317
  })
1314
- ])) : (le = $.modelValue) != null && le._id ? (n(), s("div", $o, [
1318
+ ])) : (le = $.modelValue) != null && le._id ? (n(), i("div", $o, [
1315
1319
  z(ie, {
1316
1320
  small: "",
1317
- onClick: ze(B, ["prevent"])
1321
+ onClick: ze(w, ["prevent"])
1318
1322
  }, {
1319
- default: v(() => [
1320
- Q(C(e(R)("action.remove", { capitalize: !0 })), 1)
1323
+ default: f(() => [
1324
+ D(V(e(R)("action.remove", { capitalize: !0 })), 1)
1321
1325
  ]),
1322
1326
  _: 1
1323
1327
  })
@@ -1336,23 +1340,23 @@ const ko = /* @__PURE__ */ W(go, [["__scopeId", "data-v-d491b7ce"]]), Vo = { cla
1336
1340
  observeScroll: { type: Boolean }
1337
1341
  },
1338
1342
  emits: ["endReached"],
1339
- setup(c, { emit: r }) {
1340
- 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, {
1341
1345
  antecipate: 100
1342
1346
  }).reachedEnd : null;
1343
- return u !== null && ue(u, (i) => {
1344
- i && t("endReached", i);
1345
- }), (i, _) => (n(), s("div", Vo, [
1346
- 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", {
1347
1351
  key: 0,
1348
1352
  ref_key: "containerEl",
1349
1353
  ref: o,
1350
1354
  class: "container__content"
1351
1355
  }, [
1352
- O(i.$slots, "default", {}, void 0, !0)
1356
+ C(r.$slots, "default", {}, void 0, !0)
1353
1357
  ], 512)) : y("", !0),
1354
- i.$slots.footer ? (n(), s("div", Co, [
1355
- O(i.$slots, "footer", {}, void 0, !0)
1358
+ r.$slots.footer ? (n(), i("div", Co, [
1359
+ C(r.$slots, "footer", {}, void 0, !0)
1356
1360
  ])) : y("", !0)
1357
1361
  ]));
1358
1362
  }
@@ -1367,14 +1371,14 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1367
1371
  readOnly: { type: Boolean }
1368
1372
  },
1369
1373
  emits: ["update:modelValue", "change"],
1370
- setup(c, { emit: r }) {
1371
- const l = Ie(), t = c, o = r, u = t.property, i = me(u), _ = He(), p = D(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: B }) => t.item._id === B) : t.modelValue && t.modelValue._id === t.item._id), b = () => {
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 = () => {
1372
1376
  if (p.value)
1373
1377
  return;
1374
- const B = ($) => $.filter((T) => !!(T != null && T._id)), f = "items" in u ? B(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1375
- Array.isArray(f) ? o("update:modelValue", f.concat([t.item])) : o("update:modelValue", t.item), o("change", t.item);
1376
- }, d = async (B) => {
1377
- if (i.purge && (B != null && B.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)) {
1378
1382
  const { _id: $ } = t.item;
1379
1383
  await _.$actions.remove({
1380
1384
  filters: {
@@ -1382,37 +1386,37 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1382
1386
  }
1383
1387
  });
1384
1388
  }
1385
- const f = () => {
1386
- const $ = Array.isArray(t.modelValue) ? Array.from(t.modelValue) : [], T = $.findIndex((V) => V._id === t.item._id);
1387
- 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), $;
1388
1392
  };
1389
- o("update:modelValue", "items" in u ? f() : null);
1390
- }, a = () => {
1393
+ o("update:modelValue", "items" in c ? v() : null);
1394
+ }, l = () => {
1391
1395
  if (t.readOnly) {
1392
- l.push({
1393
- path: `/dashboard/c/${i.$ref}/${t.item._id}`
1396
+ a.push({
1397
+ path: `/dashboard/c/${r.$ref}/${t.item._id}`
1394
1398
  });
1395
1399
  return;
1396
1400
  }
1397
- return p.value ? d() : b();
1401
+ return p.value ? s() : b();
1398
1402
  };
1399
- return (B, f) => {
1403
+ return (w, v) => {
1400
1404
  const $ = te("clickable");
1401
- return P((n(), s("div", {
1405
+ return P((n(), i("div", {
1402
1406
  class: X({
1403
1407
  item: !0,
1404
1408
  "item--selected": p.value
1405
1409
  }),
1406
- onClick: a
1410
+ onClick: l
1407
1411
  }, [
1408
- O(B.$slots, "default", {}, void 0, !0),
1412
+ C(w.$slots, "default", {}, void 0, !0),
1409
1413
  A("div", Io, [
1410
- (n(!0), s(x, null, G(B.indexes, (T, V) => (n(), s("div", {
1411
- key: `index-${B.item._id}-${V}`,
1414
+ (n(!0), i(x, null, Q(w.indexes, (S, O) => (n(), i("div", {
1415
+ key: `index-${w.item._id}-${O}`,
1412
1416
  class: "item__value"
1413
- }, C(B.item[T]), 1))), 128))
1417
+ }, V(w.item[S]), 1))), 128))
1414
1418
  ]),
1415
- B.readOnly ? (n(), k(Z, {
1419
+ w.readOnly ? (n(), k(Z, {
1416
1420
  key: 0,
1417
1421
  icon: "arrow-square-out",
1418
1422
  style: { "--icon-color": "var(--theme-brand-color-contrast)" }
@@ -1423,7 +1427,7 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1423
1427
  };
1424
1428
  }
1425
1429
  });
1426
- const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { class: "search__panel" }, wo = { key: 1 }, So = { key: 0 }, To = { key: 1 }, jo = { class: "search__summary" }, Ro = {
1430
+ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { class: "search__panel" }, Bo = { key: 1 }, So = { key: 0 }, To = { key: 1 }, jo = { class: "search__summary" }, Ro = {
1427
1431
  key: 1,
1428
1432
  class: "search"
1429
1433
  }, Lo = { key: 0 }, Ee = 10, zo = /* @__PURE__ */ U({
@@ -1439,13 +1443,13 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
1439
1443
  panel: { default: void 0 }
1440
1444
  },
1441
1445
  emits: ["update:modelValue", "change", "update:panel"],
1442
- setup(c, { emit: r }) {
1443
- const l = c, t = me(l.property), o = l.panel !== void 0 ? D(() => l.panel) : J(!1), u = r, i = re(me(l.property).$ref), _ = Me(), p = _ ? He() : null, b = t.indexes;
1444
- ye(Fe, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1445
- 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({
1446
1450
  data: [],
1447
1451
  pagination: {}
1448
- }), B = D(() => a.value.data), f = D(() => 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 = () => {
1449
1453
  const M = {};
1450
1454
  if (_) {
1451
1455
  const H = e(_);
@@ -1453,23 +1457,23 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
1453
1457
  }
1454
1458
  return t.constraints ? zt(t.constraints, M) : {};
1455
1459
  }, ee = () => {
1456
- B.value.length < f.value.recordsTotal && ($.value += 1, F());
1457
- }, 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", {
1458
1462
  limit: Ee,
1459
1463
  offset: $.value * Ee,
1460
1464
  filters: Y()
1461
- }) : i.$actions.custom("getAll", {
1465
+ }) : r.$actions.custom("getAll", {
1462
1466
  limit: Ee,
1463
1467
  offset: $.value * Ee,
1464
1468
  filters: {
1465
1469
  $text: {
1466
- $search: `"${V.value}"`,
1470
+ $search: `"${O.value}"`,
1467
1471
  $caseSensitive: !1
1468
1472
  },
1469
1473
  ...Y()
1470
1474
  }
1471
1475
  }), F = async () => {
1472
- if (i.loading.getAll)
1476
+ if (r.loading.getAll)
1473
1477
  return;
1474
1478
  const { error: M, result: H } = await h();
1475
1479
  if (M) {
@@ -1479,31 +1483,31 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
1479
1483
  });
1480
1484
  return;
1481
1485
  }
1482
- a.value.pagination = H.pagination, $.value === 0 && a.value.data.splice(0), a.value.data.push(...H.data);
1486
+ l.value.pagination = H.pagination, $.value === 0 && l.value.data.splice(0), l.value.data.push(...H.data);
1483
1487
  }, [le] = Vt({
1484
1488
  delay: 800
1485
1489
  })(() => {
1486
- $.value = 0, F(), T.value = !1;
1487
- }), S = () => {
1488
- T.value = !0, le();
1490
+ $.value = 0, F(), S.value = !1;
1491
+ }), T = () => {
1492
+ S.value = !0, le();
1489
1493
  }, g = () => {
1490
- "effect" in o ? u("update:panel", !0) : o.value = !0, F();
1494
+ "effect" in o ? c("update:panel", !0) : o.value = !0, F();
1491
1495
  }, j = () => {
1492
- $.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;
1493
1497
  };
1494
- ue(() => V.value.length, (M, H) => {
1498
+ ue(() => O.value.length, (M, H) => {
1495
1499
  M && !H && F();
1496
1500
  }), Xe(() => {
1497
- l.selectOnly && F();
1501
+ a.selectOnly && F();
1498
1502
  });
1499
1503
  const ne = (M) => {
1500
- d.value = M, l.selectOnly || u("update:modelValue", M);
1504
+ s.value = M, a.selectOnly || c("update:modelValue", M);
1501
1505
  }, oe = () => {
1502
- j(), u("update:modelValue", d.value);
1506
+ j(), c("update:modelValue", s.value);
1503
1507
  };
1504
1508
  return (M, H) => {
1505
1509
  const se = te("clickable");
1506
- return n(), s("div", null, [
1510
+ return n(), i("div", null, [
1507
1511
  e(o) ? (n(), k(Ke, {
1508
1512
  key: 0,
1509
1513
  to: "main"
@@ -1518,65 +1522,65 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
1518
1522
  onClose: j,
1519
1523
  onOverlayClick: j
1520
1524
  }, {
1521
- footer: v(() => [
1525
+ footer: f(() => [
1522
1526
  z(ie, {
1523
1527
  large: "",
1524
1528
  onClick: oe
1525
1529
  }, {
1526
- default: v(() => [
1527
- Q(C(e(R)("action.save", { capitalize: !0 })), 1)
1530
+ default: f(() => [
1531
+ D(V(e(R)("action.save", { capitalize: !0 })), 1)
1528
1532
  ]),
1529
1533
  _: 1
1530
1534
  })
1531
1535
  ]),
1532
- default: v(() => {
1536
+ default: f(() => {
1533
1537
  var ae, m;
1534
1538
  return [
1535
- A("div", Bo, [
1539
+ A("div", wo, [
1536
1540
  z(ke, E({
1537
- modelValue: V.value,
1538
- "onUpdate:modelValue": H[0] || (H[0] = (L) => V.value = L)
1541
+ modelValue: O.value,
1542
+ "onUpdate:modelValue": H[0] || (H[0] = (L) => O.value = L)
1539
1543
  }, {
1540
1544
  property: {
1541
1545
  type: "string",
1542
1546
  placeholder: "Pesquise aqui",
1543
1547
  inputType: "search"
1544
1548
  }
1545
- }, { onInput: S }), null, 16, ["modelValue"]),
1546
- B.value.length ? (n(), k(ft, {
1549
+ }, { onInput: T }), null, 16, ["modelValue"]),
1550
+ w.value.length ? (n(), k(ft, {
1547
1551
  key: 0,
1548
1552
  "observe-scroll": "",
1549
1553
  onEndReached: ee
1550
1554
  }, {
1551
- default: v(() => [
1552
- (n(!0), s(x, null, G(B.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 }, {
1553
1557
  item: L,
1554
1558
  indexes: e(b),
1555
1559
  property: M.property
1556
1560
  }, {
1557
1561
  key: `matching-${L._id}`,
1558
- modelValue: d.value,
1559
- "onUpdate:modelValue": H[1] || (H[1] = (K) => d.value = K)
1562
+ modelValue: s.value,
1563
+ "onUpdate:modelValue": H[1] || (H[1] = (K) => s.value = K)
1560
1564
  }), null, 16, ["modelValue"]))), 128))
1561
1565
  ]),
1562
1566
  _: 1
1563
- })) : (n(), s("div", wo, [
1564
- 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)
1565
1569
  ]))
1566
1570
  ]),
1567
- A("div", jo, C(e(R)("showing", { capitalize: !0 })) + " " + C(B.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)
1568
1572
  ];
1569
1573
  }),
1570
1574
  _: 1
1571
1575
  }, 8, ["title", "model-value"])
1572
1576
  ])) : y("", !0),
1573
- M.selectOnly ? y("", !0) : (n(), s("div", Ro, [
1577
+ M.selectOnly ? y("", !0) : (n(), i("div", Ro, [
1574
1578
  z(ft, null, ce({
1575
- default: v(() => {
1579
+ default: f(() => {
1576
1580
  var ae;
1577
1581
  return [
1578
- "items" in M.property ? (n(), s("div", Lo, [
1579
- (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 }, {
1580
1584
  item: m,
1581
1585
  indexes: e(b),
1582
1586
  property: M.property,
@@ -1599,13 +1603,13 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
1599
1603
  }, [
1600
1604
  M.readOnly ? void 0 : {
1601
1605
  name: "footer",
1602
- fn: v(() => [
1606
+ fn: f(() => [
1603
1607
  P((n(), k(Z, {
1604
1608
  icon: "plus",
1605
1609
  onClick: g
1606
1610
  }, {
1607
- default: v(() => [
1608
- Q(C(e(R)("action.select", { capitalize: !0 })), 1)
1611
+ default: f(() => [
1612
+ D(V(e(R)("action.select", { capitalize: !0 })), 1)
1609
1613
  ]),
1610
1614
  _: 1
1611
1615
  })), [
@@ -1620,8 +1624,8 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
1620
1624
  };
1621
1625
  }
1622
1626
  });
1623
- const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r) => {
1624
- 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 = {
1625
1629
  options: Jn,
1626
1630
  select: Ne,
1627
1631
  switch: no,
@@ -1630,36 +1634,36 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1630
1634
  input: ke,
1631
1635
  form: Qe
1632
1636
  }, o = (() => {
1633
- if ("type" in l) {
1634
- if (l.type === "object")
1637
+ if ("type" in a) {
1638
+ if (a.type === "object")
1635
1639
  return "form";
1636
- if (l.type === "boolean")
1640
+ if (a.type === "boolean")
1637
1641
  return "switch";
1638
1642
  }
1639
- if ("element" in c) {
1640
- if (c.element === "checkbox" || c.element === "radio")
1643
+ if ("element" in d) {
1644
+ if (d.element === "checkbox" || d.element === "radio")
1641
1645
  return "options";
1642
- if (c.element === "select")
1646
+ if (d.element === "select")
1643
1647
  return "select";
1644
1648
  }
1645
- const u = me(c);
1646
- 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";
1647
1651
  })();
1648
- return r[o] ? r[o] : t[o];
1649
- }, Mo = (c, r, l) => {
1650
- c ?? (c = []);
1651
- 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;
1652
1656
  if ("$ref" in t) {
1653
- const o = re(t.$ref, l), u = Ce(o.$freshItem);
1654
- return c.push(u);
1657
+ const o = re(t.$ref, a), c = Ce(o.$freshItem);
1658
+ return d.push(c);
1655
1659
  }
1656
- return "properties" in t ? c.push(qt(t)) : "type" in t && t.type === "boolean" ? c.push({}) : c.push(null);
1657
- }, Fo = (c, r) => {
1658
- 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);
1659
1663
  }, Uo = {
1660
1664
  key: 0,
1661
1665
  class: "form__header"
1662
- }, Eo = { class: "form__fieldset" }, Do = { key: 0 }, Ho = ["innerHTML"], Qo = ["onInput"], Go = { key: 4 }, Wo = { value: "true" }, Ko = { value: "false" }, Xo = {
1666
+ }, Eo = { class: "form__fieldset" }, Ho = { key: 0 }, Do = ["innerHTML"], Qo = ["onInput"], Go = { key: 4 }, Wo = { value: "true" }, Ko = { value: "false" }, Xo = {
1663
1667
  key: 5,
1664
1668
  style: { display: "grid", "row-gap": ".4rem" }
1665
1669
  }, Yo = { key: 0 }, Jo = { class: "form__array" }, Zo = { style: { "flex-grow": "1" } }, Po = {
@@ -1695,16 +1699,16 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1695
1699
  includeTimestamps: { type: Boolean }
1696
1700
  },
1697
1701
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
1698
- setup(c, { emit: r }) {
1702
+ setup(d, { emit: u }) {
1699
1703
  var ae;
1700
- const l = Ze(), t = c, o = r;
1704
+ const a = Ze(), t = d, o = u;
1701
1705
  $t(() => {
1702
1706
  t.modelValue || o("update:modelValue", t.property && "items" in t.property ? [] : {});
1703
1707
  });
1704
- 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;
1705
- !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
1706
1710
  collection prop, some features may not work as intended`);
1707
- const b = J(!1), d = D(() => {
1711
+ const b = J(!1), s = G(() => {
1708
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)();
1709
1713
  if (!m)
1710
1714
  return;
@@ -1722,92 +1726,92 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1722
1726
  m.created_at || (L.created_at = K), m.created_at || (L.updated_at = K);
1723
1727
  }
1724
1728
  return Object.assign(L, m), L;
1725
- }), a = D(() => t.layout || (p == null ? void 0 : p.description.formLayout)), B = (m) => {
1729
+ }), l = G(() => t.layout || (p == null ? void 0 : p.description.formLayout)), w = (m) => {
1726
1730
  const L = _e(m, t[m]);
1727
1731
  return t[m] && ye(m, t[m]), L;
1728
- }, f = D(() => t.validationErrors !== null ? t.validationErrors : p == null ? void 0 : p.validationErrors), $ = B("formComponents") || {}, T = B("propertyComponents") || {}, V = B("omitFormHeader"), Y = B("omitInputLabels"), ee = B("innerInputLabel");
1729
- i && ye(Fe, i), ye("searchOnly", t.searchOnly);
1730
- 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([
1731
1735
  L,
1732
1736
  K
1733
1737
  ])) : null, F = (m, L) => {
1734
- var w;
1735
- if (t.searchOnly || !i || t.includeId && m === "_id" || t.includeTimestamps && L.isTimestamp)
1738
+ var B;
1739
+ if (t.searchOnly || !r || t.includeId && m === "_id" || t.includeTimestamps && L.isTimestamp)
1736
1740
  return !0;
1737
- const K = t.property && "properties" in t.property ? t.property.form : (w = p == null ? void 0 : p.description) == null ? void 0 : w.form;
1741
+ const K = t.property && "properties" in t.property ? t.property.form : (B = p == null ? void 0 : p.description) == null ? void 0 : B.form;
1738
1742
  return !K || K.includes(m);
1739
- }, le = h(([m, L]) => F(m, L)), S = Ue(), g = {}, j = (m, L) => {
1740
- var q, fe, Be, we;
1741
- const K = [], w = ((fe = (q = a.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((we = (Be = a.value) == null ? void 0 : Be.fields) == null ? void 0 : we.$default);
1743
+ }, le = h(([m, L]) => F(m, L)), T = Ue(), g = {}, j = (m, L) => {
1744
+ var q, fe, we, Be;
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);
1742
1746
  if (!L)
1743
1747
  return;
1744
- if (w != null && w.if && !t.searchOnly) {
1748
+ if (B != null && B.if && !t.searchOnly) {
1745
1749
  const Se = We(
1746
1750
  t.modelValue,
1747
- w.if
1751
+ B.if
1748
1752
  );
1749
1753
  Se.satisfied || (g[m] && (p ? t.modelValue[m] = typeof p.$freshItem[m] == "object" ? Ce(p.$freshItem[m]) : p.$freshItem[m] : t.modelValue[m] = [
1750
1754
  void 0,
1751
1755
  null
1752
1756
  ].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), K.push("display: none;")), g[m] = Se.satisfied;
1753
1757
  }
1754
- const I = S.value.md && (w == null ? void 0 : w.span) || 6;
1758
+ const I = T.value.md && (B == null ? void 0 : B.span) || 6;
1755
1759
  return K.push(`
1756
1760
  --field-span: ${I};
1757
1761
  grid-column: span var(--field-span) / span var(--field-span);
1758
- `), w && (w.verticalSpacing && K.push(`
1759
- --vertical-spacing: ${w.verticalSpacing};
1762
+ `), B && (B.verticalSpacing && K.push(`
1763
+ --vertical-spacing: ${B.verticalSpacing};
1760
1764
  padding: var(--vertical-spacing) 0;
1761
- `), w.separator && K.push(`
1765
+ `), B.separator && K.push(`
1762
1766
  border-top: 1px solid var(--theme-border-color);
1763
1767
  border-width: 1px 0 1px 0;
1764
1768
  padding: 1rem 0;
1765
1769
  margin: 1rem 0;
1766
1770
  `)), K.join("");
1767
- }, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe = D(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : p == null ? void 0 : p.description.required), M = D(() => t.form ? Dt(
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(
1768
1772
  t.modelValue,
1769
1773
  t.form,
1770
1774
  oe.value,
1771
1775
  p == null ? void 0 : p.description
1772
1776
  ) : !0), H = (m, L) => {
1773
1777
  var K;
1774
- 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;
1775
1779
  }, se = (m) => {
1776
1780
  if (!(_ || m.readOnly) && !t.parentPropertyName && !t.parentCollection && !b.value)
1777
1781
  return b.value = !0, !0;
1778
1782
  };
1779
1783
  return (m, L) => {
1780
- const K = te("clickable"), w = te("focus");
1781
- return n(), s("form", {
1784
+ const K = te("clickable"), B = te("focus");
1785
+ return n(), i("form", {
1782
1786
  class: "form",
1783
- 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);"};`)
1784
1788
  }, [
1785
- m.$slots.header && !e(V) ? (n(), s("header", Uo, [
1786
- 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)
1787
1791
  ])) : y("", !0),
1788
- O(m.$slots, "default", {}, void 0, !0),
1792
+ C(m.$slots, "default", {}, void 0, !0),
1789
1793
  A("fieldset", Eo, [
1790
- (n(!0), s(x, null, G(e(le), ([I, q]) => {
1791
- var fe, Be, we, Se, xe, et, tt, nt, ot, at, lt, st, it;
1792
- return n(), s("div", {
1794
+ (n(!0), i(x, null, Q(e(le), ([I, q]) => {
1795
+ var fe, we, Be, Se, xe, et, tt, nt, ot, at, lt, st, it;
1796
+ return n(), i("div", {
1793
1797
  key: `field-${I}`,
1794
1798
  style: be(j(I, q)),
1795
1799
  class: "form__field"
1796
1800
  }, [
1797
- (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), s("label", Do, [
1801
+ (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), i("label", Ho, [
1798
1802
  A("div", {
1799
1803
  class: X({
1800
1804
  "form__field-label": !0,
1801
1805
  "form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
1802
1806
  "form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!oe.value || e(Mt)(I, oe.value, m.modelValue))
1803
1807
  })
1804
- }, C(q.description || e(R)(I)), 3),
1805
- q.hint ? (n(), s("div", {
1808
+ }, V(q.description || e(R)(I)), 3),
1809
+ q.hint ? (n(), i("div", {
1806
1810
  key: 0,
1807
1811
  innerHTML: q.hint
1808
- }, null, 8, Ho)) : y("", !0)
1812
+ }, null, 8, Do)) : y("", !0)
1809
1813
  ])) : y("", !0),
1810
- m.$slots[`field-${I}`] ? O(m.$slots, `field-${I}`, E({
1814
+ m.$slots[`field-${I}`] ? C(m.$slots, `field-${I}`, E({
1811
1815
  key: 1,
1812
1816
  ref_for: !0
1813
1817
  }, {
@@ -1815,7 +1819,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1815
1819
  property: q,
1816
1820
  propertyName: I,
1817
1821
  modelValue: m.modelValue
1818
- }), void 0, !0) : (we = (Be = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : Be[I]) != null && we.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({
1819
1823
  key: 2,
1820
1824
  modelValue: m.modelValue[I],
1821
1825
  "onUpdate:modelValue": (N) => m.modelValue[I] = N,
@@ -1828,7 +1832,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1828
1832
  }, {
1829
1833
  onInput: (N) => o("input", I),
1830
1834
  onChange: L[0] || (L[0] = (N) => o("change", N))
1831
- }), 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", {
1832
1836
  key: 3,
1833
1837
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1834
1838
  onInput: (N) => o("input", I),
@@ -1850,7 +1854,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1850
1854
  property: q,
1851
1855
  propertyName: I
1852
1856
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1853
- ], 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, [
1854
1858
  z(Ne, E({ ref_for: !0 }, {
1855
1859
  property: q,
1856
1860
  propertyName: I
@@ -1862,34 +1866,34 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1862
1866
  m.modelValue[I] = N == "true" ? !0 : N == "false" ? !1 : null;
1863
1867
  }
1864
1868
  }), {
1865
- default: v(() => [
1866
- A("option", Wo, C(e(R)("yes")), 1),
1867
- 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)
1868
1872
  ]),
1869
1873
  _: 2
1870
1874
  }, 1040, ["model-value", "onUpdate:modelValue"])
1871
- ])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(), s("div", Xo, [
1872
- 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, [
1873
1877
  z(ie, {
1874
1878
  small: "",
1875
1879
  variant: "alt",
1876
1880
  icon: "plus",
1877
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])),
1878
1882
  onClick: ze((N) => {
1879
- 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));
1880
1884
  }, ["prevent"])
1881
1885
  }, {
1882
- default: v(() => [
1883
- Q(C(e(R)("action.add", { capitalize: !0 })), 1)
1886
+ default: f(() => [
1887
+ D(V(e(R)("action.add", { capitalize: !0 })), 1)
1884
1888
  ]),
1885
1889
  _: 2
1886
1890
  }, 1032, ["disabled", "onClick"])
1887
1891
  ])),
1888
1892
  A("div", Jo, [
1889
- (n(!0), s(x, null, G(m.modelValue[I], (N, Te) => {
1893
+ (n(!0), i(x, null, Q(m.modelValue[I], (N, Te) => {
1890
1894
  var rt, ut, ct, dt, pt, _t;
1891
- return n(), s("div", {
1892
- key: `rep-${I}-${e(Ht)(N, Te)}`,
1895
+ return n(), i("div", {
1896
+ key: `rep-${I}-${e(Dt)(N, Te)}`,
1893
1897
  class: "form__array-item"
1894
1898
  }, [
1895
1899
  A("div", Zo, [
@@ -1901,7 +1905,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1901
1905
  readOnly: e(_),
1902
1906
  property: q.items,
1903
1907
  propertyName: I,
1904
- parentCollection: e(i),
1908
+ parentCollection: e(r),
1905
1909
  parentPropertyName: m.parentPropertyName,
1906
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),
1907
1911
  validationErrors: H(I, Te),
@@ -1932,7 +1936,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1932
1936
  property: q,
1933
1937
  propertyName: I,
1934
1938
  parentPropertyName: m.parentPropertyName,
1935
- parentCollection: e(i),
1939
+ parentCollection: e(r),
1936
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),
1937
1941
  ...q.componentProps || {},
1938
1942
  validationErrors: H(I)
@@ -1941,18 +1945,18 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1941
1945
  onChange: L[4] || (L[4] = (N) => o("change", N)),
1942
1946
  onClipboardCopy: L[5] || (L[5] = (N) => o("clipboardCopy", N))
1943
1947
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1944
- [w, se(q)]
1948
+ [B, se(q)]
1945
1949
  ]) : y("", !0),
1946
- (it = f.value) != null && it[I] ? (n(), s("div", Po, [
1947
- f.value[I].type ? (n(), s("span", No, C(e(R)(`validation_error.${f.value[I].type}`)), 1)) : y("", !0),
1948
- 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)
1949
1953
  ])) : y("", !0)
1950
1954
  ], 4);
1951
1955
  }), 128))
1952
1956
  ]),
1953
- m.$slots.after ? O(m.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1954
- m.$slots.footer ? (n(), s("div", ea, [
1955
- 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({
1956
1960
  isInsertReady: M.value
1957
1961
  })), void 0, !0)
1958
1962
  ])) : y("", !0)
@@ -1963,14 +1967,14 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
1963
1967
  const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @__PURE__ */ U({
1964
1968
  __name: "aeria-filter-panel",
1965
1969
  emits: ["update:modelValue"],
1966
- setup(c, { emit: r }) {
1967
- const l = r, t = He(), o = Ie(), u = e(_e(Fe)), i = () => {
1968
- 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);
1969
1973
  const _ = Object.assign({
1970
1974
  query: {}
1971
1975
  }, o.currentRoute.value);
1972
1976
  for (const p of Object.keys(_.query))
1973
- p.startsWith(`${u}.`) && delete _.query[p];
1977
+ p.startsWith(`${c}.`) && delete _.query[p];
1974
1978
  o.currentRoute.value.query = {}, o.push(qe(_, {
1975
1979
  query: Qt(t)
1976
1980
  }));
@@ -1979,22 +1983,22 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
1979
1983
  "close-hint": "",
1980
1984
  "fixed-right": "",
1981
1985
  title: _.t("filter_by", { capitalize: !0 }),
1982
- onClose: p[2] || (p[2] = (b) => l("update:modelValue", !1)),
1983
- 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))
1984
1988
  }, {
1985
- footer: v(() => [
1989
+ footer: f(() => [
1986
1990
  e(t).filtersCount > 0 ? (n(), k(ie, {
1987
1991
  key: 0,
1988
1992
  variant: "transparent",
1989
1993
  onClick: p[1] || (p[1] = (b) => {
1990
- e(t).$actions.clearFilters(), i(), l("update:modelValue", !1);
1994
+ e(t).$actions.clearFilters(), r(), a("update:modelValue", !1);
1991
1995
  })
1992
1996
  }, {
1993
- default: v(() => [
1994
- Q(C(_.t("action.clear", { capitalize: !0 })) + " ", 1),
1997
+ default: f(() => [
1998
+ D(V(_.t("action.clear", { capitalize: !0 })) + " ", 1),
1995
1999
  z($e, null, {
1996
- default: v(() => [
1997
- Q(C(e(t).filtersCount), 1)
2000
+ default: f(() => [
2001
+ D(V(e(t).filtersCount), 1)
1998
2002
  ]),
1999
2003
  _: 1
2000
2004
  })
@@ -2005,15 +2009,15 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2005
2009
  large: "",
2006
2010
  icon: "funnel",
2007
2011
  disabled: !e(t).hasActiveFilters,
2008
- onClick: i
2012
+ onClick: r
2009
2013
  }, {
2010
- default: v(() => [
2011
- Q(C(_.t("action.filter", { capitalize: !0 })), 1)
2014
+ default: f(() => [
2015
+ D(V(_.t("action.filter", { capitalize: !0 })), 1)
2012
2016
  ]),
2013
2017
  _: 1
2014
2018
  }, 8, ["disabled"])
2015
2019
  ]),
2016
- default: v(() => [
2020
+ default: f(() => [
2017
2021
  z(Qe, E({
2018
2022
  modelValue: e(t).filters,
2019
2023
  "onUpdate:modelValue": p[0] || (p[0] = (b) => e(t).filters = b)
@@ -2038,110 +2042,110 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2038
2042
  includeTimestamps: { type: Boolean }
2039
2043
  },
2040
2044
  emits: ["update:visible", "update:modelValue", "insert", "cancel"],
2041
- setup(c, { emit: r }) {
2042
- 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", []);
2043
2047
  Xe(() => {
2044
- l.modelValue && i.$actions.setItem(l.modelValue);
2048
+ a.modelValue && r.$actions.setItem(a.modelValue);
2045
2049
  });
2046
- const p = D(() => l.form ? i.$actions.useProperties(l.form) : i.description.form ? i.$actions.useProperties(i.description.form) : i.properties), b = async () => {
2047
- const { error: f, result: $ } = await i.$actions.deepInsert();
2048
- f || (t("update:visible", !1), t("update:modelValue", $), t("insert", $), i.$actions.clearItem());
2049
- }, { 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 = () => {
2050
2054
  o.$actions.ask({
2051
2055
  action: () => {
2052
- i.$actions.clearItem(), i.validationErrors = {}, t("cancel");
2056
+ r.$actions.clearItem(), r.validationErrors = {}, t("cancel");
2053
2057
  },
2054
- body: d("prompt.close_panel")
2058
+ body: s("prompt.close_panel")
2055
2059
  });
2056
- }, B = () => o.$actions.spawnToast({
2060
+ }, w = () => o.$actions.spawnToast({
2057
2061
  icon: "info",
2058
- text: d("copied_to_clipboard")
2062
+ text: s("copied_to_clipboard")
2059
2063
  });
2060
- return ue(() => i.item._id, (f) => {
2061
- f === null && t("update:visible", !1);
2062
- }), (f, $) => {
2063
- 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");
2064
2068
  return n(), k(Ae, {
2065
- "model-value": f.visible,
2066
- loading: e(i).loading.get,
2067
- onOverlayClick: a
2069
+ "model-value": v.visible,
2070
+ loading: e(r).loading.get,
2071
+ onOverlayClick: l
2068
2072
  }, ce({
2069
- extra: v(() => [
2073
+ extra: f(() => [
2070
2074
  z(Oe, E({
2071
- subject: e(i).item,
2072
- actions: e(_).filter(({ action: V }) => V !== "spawnEdit"),
2075
+ subject: e(r).item,
2076
+ actions: e(_).filter(({ action: O }) => O !== "spawnEdit"),
2073
2077
  overlayLayer: 60
2074
2078
  }, {
2075
- onActionClick: $[2] || ($[2] = (V) => t("update:visible", !1))
2079
+ onActionClick: $[2] || ($[2] = (O) => t("update:visible", !1))
2076
2080
  }), {
2077
- default: v(({
2078
- visible: V
2081
+ default: f(({
2082
+ visible: O
2079
2083
  }) => [
2080
- e(i).item._id ? P((n(), k(Z, {
2084
+ e(r).item._id ? P((n(), k(Z, {
2081
2085
  key: 0,
2082
2086
  reactive: "",
2083
- active: V,
2087
+ active: O,
2084
2088
  icon: "dots-three"
2085
2089
  }, null, 8, ["active"])), [
2086
- [T]
2090
+ [S]
2087
2091
  ]) : y("", !0)
2088
2092
  ]),
2089
2093
  _: 1
2090
2094
  }, 16)
2091
2095
  ]),
2092
- default: v(() => [
2096
+ default: f(() => [
2093
2097
  z(Qe, E({
2094
- modelValue: e(i).item,
2095
- "onUpdate:modelValue": $[0] || ($[0] = (V) => e(i).item = V)
2098
+ modelValue: e(r).item,
2099
+ "onUpdate:modelValue": $[0] || ($[0] = (O) => e(r).item = O)
2096
2100
  }, {
2097
- collection: e(u),
2098
- readOnly: f.readOnly,
2099
- includeId: f.includeId,
2100
- includeTimestamps: f.includeTimestamps,
2101
+ collection: e(c),
2102
+ readOnly: v.readOnly,
2103
+ includeId: v.includeId,
2104
+ includeTimestamps: v.includeTimestamps,
2101
2105
  form: p.value,
2102
- layout: e(i).description.formLayout || {}
2106
+ layout: e(r).description.formLayout || {}
2103
2107
  }, {
2104
2108
  focus: "",
2105
- onClipboardCopy: B,
2106
- onAdd: $[1] || ($[1] = (V) => V.preventDefault())
2109
+ onClipboardCopy: w,
2110
+ onAdd: $[1] || ($[1] = (O) => O.preventDefault())
2107
2111
  }), ce({ _: 2 }, [
2108
- G(Object.keys(f.$slots).filter((V) => V.startsWith("field-")), (V) => ({
2109
- name: V,
2110
- fn: v((Y) => [
2111
- 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)))
2112
2116
  ])
2113
2117
  }))
2114
2118
  ]), 1040, ["modelValue"])
2115
2119
  ]),
2116
2120
  _: 2
2117
2121
  }, [
2118
- f.$slots.header ? {
2122
+ v.$slots.header ? {
2119
2123
  name: "header",
2120
- fn: v(() => [
2121
- O(f.$slots, "header")
2124
+ fn: f(() => [
2125
+ C(v.$slots, "header")
2122
2126
  ]),
2123
2127
  key: "0"
2124
2128
  } : void 0,
2125
- f.readOnly ? void 0 : {
2129
+ v.readOnly ? void 0 : {
2126
2130
  name: "footer",
2127
- fn: v(() => [
2131
+ fn: f(() => [
2128
2132
  z(ie, {
2129
2133
  variant: "transparent",
2130
- onClick: a
2134
+ onClick: l
2131
2135
  }, {
2132
- default: v(() => [
2133
- Q(C(e(d)("action.cancel", { capitalize: !0 })), 1)
2136
+ default: f(() => [
2137
+ D(V(e(s)("action.cancel", { capitalize: !0 })), 1)
2134
2138
  ]),
2135
2139
  _: 1
2136
2140
  }),
2137
2141
  z(ie, {
2138
2142
  large: "",
2139
- disabled: !e(i).isInsertReady || e(i).loading.get,
2140
- loading: e(i).loading.insert,
2143
+ disabled: !e(r).isInsertReady || e(r).loading.get,
2144
+ loading: e(r).loading.insert,
2141
2145
  onClick: b
2142
2146
  }, {
2143
- default: v(() => [
2144
- Q(C(e(d)("action.insert", { capitalize: !0 })), 1)
2147
+ default: f(() => [
2148
+ D(V(e(s)("action.insert", { capitalize: !0 })), 1)
2145
2149
  ]),
2146
2150
  _: 1
2147
2151
  }, 8, ["disabled", "loading"])
@@ -2151,28 +2155,28 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2151
2155
  ]), 1032, ["model-value", "loading"]);
2152
2156
  };
2153
2157
  }
2154
- }), Ot = (c, r) => {
2155
- if (r) {
2156
- if (!c) {
2157
- 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;
2158
2162
  return;
2159
2163
  }
2160
- 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;
2161
2165
  }
2162
- }, aa = (c, r = {
2166
+ }, aa = (d, u = {
2163
2167
  persistInQuery: !0
2164
2168
  }) => {
2165
2169
  const t = Ie().currentRoute;
2166
2170
  return ue(() => t.value.query.section, (o) => {
2167
- if (c) {
2168
- if (c.description.filtersPresets) {
2169
- const u = o || Object.keys(c.description.filtersPresets)[0];
2170
- 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);
2171
2175
  }
2172
- if (r.persistInQuery) {
2173
- const u = t.value.query;
2174
- u.offset && (c.pagination.offset = +u.offset), u.limit && (c.pagination.limit = +u.limit), u.search && (c.textQuery = u.search, c.filters.$text = {
2175
- $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}"`,
2176
2180
  $caseSensitive: !1
2177
2181
  });
2178
2182
  }
@@ -2192,7 +2196,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2192
2196
  }, ha = {
2193
2197
  key: 1,
2194
2198
  class: "table__cell-container"
2195
- }, ba = { class: "table__cell-grid" }, $a = { key: 0 }, ga = { key: 1 }, ka = { key: 0 }, Va = ["href"], Ca = { key: 3 }, Oa = { key: 1 }, Ia = { key: 2 }, Aa = { key: 0 }, Ba = { key: 1 }, wa = { key: 2 }, Sa = {
2199
+ }, ba = { class: "table__cell-grid" }, $a = { key: 0 }, ga = { key: 1 }, ka = { key: 0 }, Va = ["href"], Ca = { key: 3 }, Oa = { key: 1 }, Ia = { key: 2 }, Aa = { key: 0 }, wa = { key: 1 }, Ba = { key: 2 }, Sa = {
2196
2200
  key: 1,
2197
2201
  class: "no-print"
2198
2202
  }, Ta = { class: "table__cell-actions" }, ja = {
@@ -2209,102 +2213,102 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2209
2213
  layout: {}
2210
2214
  },
2211
2215
  emits: ["itemClick"],
2212
- setup(c, { emit: r }) {
2213
- const l = c, t = r, o = Ue(), u = l.collection || Me(), i = u ? re(typeof u == "string" ? u : u.value) : null, _ = D({
2214
- get: () => i == null ? void 0 : i.selected,
2215
- set: (f) => i == null ? void 0 : i.$actions.selectManyItems(f, !0)
2216
- }), p = D(() => 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) => {
2217
- var T;
2218
- const $ = (T = l.layout) == null ? void 0 : T.actions;
2219
- return !o.value.xl || !$ || !l.actions ? [] : l.actions.filter((V) => {
2220
- const Y = $[V.action];
2221
- 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);
2222
2226
  });
2223
- }, a = (f) => {
2224
- var T;
2225
- if (!l.actions)
2227
+ }, l = (v) => {
2228
+ var S;
2229
+ if (!a.actions)
2226
2230
  return [];
2227
- const $ = (T = l.layout) == null ? void 0 : T.actions;
2228
- return !o.value.xl || !$ ? l.actions : l.actions.filter((V) => {
2229
- const Y = $[V.action];
2230
- 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) {
2231
2235
  const ee = re("user");
2232
- if (!gt(V.roles, ee.currentUser.roles))
2236
+ if (!gt(O.roles, ee.currentUser.roles))
2233
2237
  return !1;
2234
2238
  }
2235
- return !Y || !b(Y, f);
2239
+ return !Y || !b(Y, v);
2236
2240
  });
2237
- }, B = (f, $) => {
2241
+ }, w = (v, $) => {
2238
2242
  var Y, ee;
2239
- const T = [], V = (ee = (Y = l.layout) == null ? void 0 : Y.actions) == null ? void 0 : ee[$.action];
2240
- return V != null && V.if && (We(
2241
- f,
2242
- V.if
2243
- ).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("");
2244
2248
  };
2245
- return (f, $) => {
2246
- var V, Y, ee;
2247
- const T = te("clickable");
2248
- return p.value > 0 || f.$slots.thead ? (n(), s("table", la, [
2249
- f.$slots.thead ? (n(), s("thead", sa, [
2250
- O(f.$slots, "thead", {}, void 0, !0)
2251
- ])) : (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, [
2252
2256
  A("tr", null, [
2253
- f.checkbox && e(i) && e(o).md ? (n(), s("th", ra, [
2257
+ v.checkbox && e(r) && e(o).md ? (n(), i("th", ra, [
2254
2258
  A("input", {
2255
2259
  type: "checkbox",
2256
- checked: e(i).selected.length > 0 && e(i).selected.length === e(i).itemsCount,
2257
- 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))
2258
2262
  }, null, 40, ua)
2259
2263
  ])) : y("", !0),
2260
- (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", {
2261
2265
  key: `header-${le}`,
2262
2266
  class: "table__header"
2263
- }, C(F.description || e(R)(h)), 1))), 128)),
2264
- (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)
2265
2269
  ])
2266
2270
  ])),
2267
- f.$slots.tbody ? (n(), s("tbody", da, [
2268
- O(f.$slots, "tbody", {}, void 0, !0)
2269
- ])) : (n(), s("tbody", pa, [
2270
- (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) => {
2271
2275
  var F, le;
2272
- return n(), s("tr", {
2276
+ return n(), i("tr", {
2273
2277
  key: h._id,
2274
- onClick: (S) => t("itemClick", h)
2278
+ onClick: (T) => t("itemClick", h)
2275
2279
  }, [
2276
- e(i) && f.checkbox && e(o).md ? (n(), s("td", ma, [
2280
+ e(r) && v.checkbox && e(o).md ? (n(), i("td", ma, [
2277
2281
  P(A("input", {
2278
- "onUpdate:modelValue": $[1] || ($[1] = (S) => _.value = S),
2282
+ "onUpdate:modelValue": $[1] || ($[1] = (T) => _.value = T),
2279
2283
  type: "checkbox",
2280
2284
  value: h._id
2281
2285
  }, null, 8, fa), [
2282
- [Bt, _.value]
2286
+ [wt, _.value]
2283
2287
  ])
2284
2288
  ])) : y("", !0),
2285
- (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) => {
2286
2290
  var ne, oe, M;
2287
- return n(), s("td", {
2291
+ return n(), i("td", {
2288
2292
  key: `column-${h._id}-${j}`
2289
2293
  }, [
2290
- A("div", va, C(g.description || e(R)(S)), 1),
2291
- `row-${S}` in f.$slots ? (n(), s("div", ya, [
2292
- O(f.$slots, `row-${S}`, E({ ref_for: !0 }, {
2293
- store: e(i),
2294
- 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,
2295
2299
  property: g,
2296
2300
  row: h
2297
2301
  }), void 0, !0)
2298
- ])) : (n(), s("div", ha, [
2302
+ ])) : (n(), i("div", ha, [
2299
2303
  A("div", ba, [
2300
- "type" in g && g.type === "boolean" ? (n(), s("div", $a, [
2301
- h[S] ? (n(), k(Z, {
2304
+ "type" in g && g.type === "boolean" ? (n(), i("div", $a, [
2305
+ h[T] ? (n(), k(Z, {
2302
2306
  key: 0,
2303
2307
  icon: "check",
2304
2308
  "icon-classes": "aeria-blueish"
2305
2309
  }, {
2306
- default: v(() => [
2307
- Q(C(e(R)("yes")), 1)
2310
+ default: f(() => [
2311
+ D(V(e(R)("yes")), 1)
2308
2312
  ]),
2309
2313
  _: 1
2310
2314
  })) : (n(), k(Z, {
@@ -2312,48 +2316,48 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2312
2316
  icon: "x",
2313
2317
  "icon-classes": "aeria-redish"
2314
2318
  }, {
2315
- default: v(() => [
2316
- Q(C(e(R)("no")), 1)
2319
+ default: f(() => [
2320
+ D(V(e(R)("no")), 1)
2317
2321
  ]),
2318
2322
  _: 1
2319
2323
  }))
2320
- ])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), s("div", ga, [
2321
- h[S] ? (n(), s("div", ka, [
2322
- "items" in g && h[S][0] && /^image/.test(h[S][0].type) ? (n(), k(De, {
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, {
2323
2327
  key: 0,
2324
- modelValue: h[S][0].link,
2325
- "onUpdate:modelValue": (H) => h[S][0].link = H,
2328
+ modelValue: h[T][0].link,
2329
+ "onUpdate:modelValue": (H) => h[T][0].link = H,
2326
2330
  expandable: "",
2327
- meta: h[S][0],
2331
+ meta: h[T][0],
2328
2332
  alt: "Row image",
2329
2333
  class: "table__picture"
2330
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[S].type) ? (n(), k(De, {
2334
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[T].type) ? (n(), k(He, {
2331
2335
  key: 1,
2332
- modelValue: h[S].link,
2333
- "onUpdate:modelValue": (H) => h[S].link = H,
2336
+ modelValue: h[T].link,
2337
+ "onUpdate:modelValue": (H) => h[T].link = H,
2334
2338
  expandable: "",
2335
- meta: h[S],
2339
+ meta: h[T],
2336
2340
  alt: "Row image",
2337
2341
  class: "table__picture"
2338
- }, 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", {
2339
2343
  key: 2,
2340
- href: h[S].link,
2344
+ href: h[T].link,
2341
2345
  style: { "font-size": "10pt" }
2342
- }, C(h[S].filename), 9, Va)) : (n(), s("div", Ca, " - "))
2343
- ])) : (n(), s("div", Oa, " - "))
2344
- ])) : (n(), s("div", Ia, [
2345
- e(i) ? (n(), s("span", Aa, C(e(i).$actions.formatValue({
2346
- value: h[S],
2347
- 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,
2348
2352
  property: g
2349
- })), 1)) : (n(), s("span", Ba, C(Array.isArray(h[S]) ? h[S].filter((H) => !!H).join(", ") : [void 0, null].includes(h[S]) ? "-" : h[S]), 1)),
2350
- ((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), s("div", wa, [
2351
- (n(!0), s(x, null, G(e(me)(g).indexes.slice(1, 2), (H, 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", {
2352
2356
  key: `subvalue-${se}`,
2353
2357
  class: "table__cell-subvalue"
2354
- }, C(e(i).$actions.formatValue({
2355
- value: h[S],
2356
- key: S,
2358
+ }, V(e(r).$actions.formatValue({
2359
+ value: h[T],
2360
+ key: T,
2357
2361
  property: g,
2358
2362
  index: H
2359
2363
  })), 1))), 128))
@@ -2363,72 +2367,72 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2363
2367
  ]))
2364
2368
  ]);
2365
2369
  }), 128)),
2366
- (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, [
2367
2371
  A("div", Ta, [
2368
- (n(!0), s(x, null, G(d(h), (S) => (n(), k(ie, {
2369
- key: `action-${S.action}`,
2372
+ (n(!0), i(x, null, Q(s(h), (T) => (n(), k(ie, {
2373
+ key: `action-${T.action}`,
2370
2374
  small: "",
2371
2375
  variant: "alt",
2372
- icon: S.icon,
2373
- style: be(B(h, S)),
2374
- onClick: (g) => S.click(h)
2376
+ icon: T.icon,
2377
+ style: be(w(h, T)),
2378
+ onClick: (g) => T.click(h)
2375
2379
  }, {
2376
- default: v(() => [
2377
- Q(C(e(R)(S.label)), 1)
2380
+ default: f(() => [
2381
+ D(V(e(R)(T.label)), 1)
2378
2382
  ]),
2379
2383
  _: 2
2380
2384
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2381
- a(h).length > 0 ? (n(), k(Oe, E({
2385
+ l(h).length > 0 ? (n(), k(Oe, E({
2382
2386
  key: 0,
2383
2387
  ref_for: !0
2384
2388
  }, {
2385
2389
  subject: h,
2386
- actions: a(h)
2390
+ actions: l(h)
2387
2391
  }), {
2388
- default: v(({
2389
- visible: S
2392
+ default: f(({
2393
+ visible: T
2390
2394
  }) => [
2391
2395
  P(z(Z, {
2392
2396
  reactive: "",
2393
- active: S,
2397
+ active: T,
2394
2398
  icon: "dots-three"
2395
2399
  }, null, 8, ["active"]), [
2396
- [T]
2400
+ [S]
2397
2401
  ])
2398
2402
  ]),
2399
2403
  _: 2
2400
2404
  }, 1040)) : y("", !0)
2401
2405
  ])
2402
- ])) : (le = f.actions) != null && le.length ? (n(), s("td", ja, [
2406
+ ])) : (le = v.actions) != null && le.length ? (n(), i("td", ja, [
2403
2407
  A("div", {
2404
2408
  class: "table__mobile-actions-grid",
2405
- 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);`)
2406
2410
  }, [
2407
- (n(!0), s(x, null, G(d(h), (S) => (n(), k(ve, {
2408
- key: `action-${S.action}`,
2411
+ (n(!0), i(x, null, Q(s(h), (T) => (n(), k(ve, {
2412
+ key: `action-${T.action}`,
2409
2413
  class: "table__mobile-actions-button",
2410
- onClick: (g) => S.click(h)
2414
+ onClick: (g) => T.click(h)
2411
2415
  }, {
2412
- default: v(() => [
2416
+ default: f(() => [
2413
2417
  z(Z, {
2414
- icon: S.icon || "gear"
2418
+ icon: T.icon || "gear"
2415
2419
  }, {
2416
- default: v(() => [
2417
- Q(C(e(R)(S.label)), 1)
2420
+ default: f(() => [
2421
+ D(V(e(R)(T.label)), 1)
2418
2422
  ]),
2419
2423
  _: 2
2420
2424
  }, 1032, ["icon"])
2421
2425
  ]),
2422
2426
  _: 2
2423
2427
  }, 1032, ["onClick"]))), 128)),
2424
- a(h).length > 0 ? (n(), k(Oe, E({
2428
+ l(h).length > 0 ? (n(), k(Oe, E({
2425
2429
  key: 0,
2426
2430
  ref_for: !0
2427
2431
  }, {
2428
2432
  subject: h,
2429
- actions: a(h)
2433
+ actions: l(h)
2430
2434
  }), {
2431
- default: v(() => [
2435
+ default: f(() => [
2432
2436
  z(Z, {
2433
2437
  icon: "dots-three",
2434
2438
  class: "table__mobile-actions-button"
@@ -2445,11 +2449,11 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
2445
2449
  }), 128))
2446
2450
  ])),
2447
2451
  A("tfoot", null, [
2448
- 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, [
2449
2453
  A("td", {
2450
2454
  colspan: p.value + 1
2451
2455
  }, [
2452
- A("div", qa, C(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2456
+ A("div", qa, V(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2453
2457
  ], 8, za)
2454
2458
  ])) : y("", !0)
2455
2459
  ])
@@ -2464,27 +2468,27 @@ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @_
2464
2468
  layoutOptions: {},
2465
2469
  componentProps: {}
2466
2470
  },
2467
- setup(c) {
2468
- const r = c, l = Le(), t = Me(), o = D(() => {
2469
- const u = {
2471
+ setup(d) {
2472
+ const u = d, a = Le(), t = Me(), o = G(() => {
2473
+ const c = {
2470
2474
  collection: t,
2471
- checkbox: l.hasSelectionActions,
2472
- columns: l.tableProperties,
2473
- rows: l.items,
2474
- actions: r.individualActions,
2475
- layout: l.tableLayout
2475
+ checkbox: a.hasSelectionActions,
2476
+ columns: a.tableProperties,
2477
+ rows: a.items,
2478
+ actions: u.individualActions,
2479
+ layout: a.tableLayout
2476
2480
  };
2477
- return Object.assign(u, r.componentProps);
2481
+ return Object.assign(c, u.componentProps);
2478
2482
  });
2479
- return (u, i) => (n(), s("div", null, [
2480
- u.$slots.inner ? O(u.$slots, "inner", { key: 0 }) : y("", !0),
2481
- e(l).properties ? (n(), k(Fa, E({ key: 1 }, o.value, {
2482
- 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
2483
2487
  }), ce({ _: 2 }, [
2484
- G(Object.keys(u.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2488
+ Q(Object.keys(c.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2485
2489
  name: _,
2486
- fn: v((p) => [
2487
- O(u.$slots, _, de(ge(p)))
2490
+ fn: f((p) => [
2491
+ C(c.$slots, _, de(ge(p)))
2488
2492
  ])
2489
2493
  }))
2490
2494
  ]), 1040)) : y("", !0)
@@ -2495,18 +2499,18 @@ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @_
2495
2499
  props: {
2496
2500
  list: { type: Boolean }
2497
2501
  },
2498
- setup(c) {
2499
- return (r, l) => (n(), s("div", {
2502
+ setup(d) {
2503
+ return (u, a) => (n(), i("div", {
2500
2504
  class: X(`
2501
2505
  grid
2502
- ${r.list && "grid--list"}
2506
+ ${u.list && "grid--list"}
2503
2507
  `)
2504
2508
  }, [
2505
- O(r.$slots, "default", {}, void 0, !0)
2509
+ C(u.$slots, "default", {}, void 0, !0)
2506
2510
  ], 2));
2507
2511
  }
2508
2512
  });
2509
- const Da = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Ha = { key: 0 }, Qa = {
2513
+ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key: 0 }, Qa = {
2510
2514
  key: 1,
2511
2515
  class: "card__information"
2512
2516
  }, Ga = /* @__PURE__ */ U({
@@ -2517,32 +2521,32 @@ const Da = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2517
2521
  layoutOptions: {},
2518
2522
  componentName: {}
2519
2523
  },
2520
- setup(c) {
2521
- const l = c.layoutOptions, t = Le(), o = (u) => Array.isArray(u) ? u[0] : u;
2522
- 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) => {
2523
2527
  const _ = te("clickable");
2524
- return n(), k(Da, {
2525
- list: u.componentName === "list"
2528
+ return n(), k(Ha, {
2529
+ list: c.componentName === "list"
2526
2530
  }, {
2527
- default: v(() => [
2528
- (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, {
2529
2533
  key: p,
2530
- inactive: !!(e(l).active && !p[e(l).active]),
2531
- horizontal: u.componentName === "list"
2534
+ inactive: !!(e(a).active && !p[e(a).active]),
2535
+ horizontal: c.componentName === "list"
2532
2536
  }, ce({
2533
- footer: v(() => [
2534
- e(l).title ? (n(), s("div", Ha, C(p[e(l).title]), 1)) : y("", !0),
2535
- 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)
2536
2540
  ]),
2537
- actions: v(() => [
2538
- u.individualActions.length > 0 ? (n(), k(Oe, E({
2541
+ actions: f(() => [
2542
+ c.individualActions.length > 0 ? (n(), k(Oe, E({
2539
2543
  key: 0,
2540
2544
  ref_for: !0
2541
2545
  }, {
2542
2546
  subject: p,
2543
- actions: u.individualActions
2547
+ actions: c.individualActions
2544
2548
  }), {
2545
- default: v(({
2549
+ default: f(({
2546
2550
  visible: b
2547
2551
  }) => [
2548
2552
  P(z(Z, {
@@ -2556,39 +2560,39 @@ const Da = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2556
2560
  _: 2
2557
2561
  }, 1040)) : y("", !0)
2558
2562
  ]),
2559
- default: v(() => {
2563
+ default: f(() => {
2560
2564
  var b;
2561
2565
  return [
2562
- z(De, {
2566
+ z(He, {
2563
2567
  alt: "Item picture",
2564
2568
  expandable: "",
2565
- url: (b = o(p[e(l).picture])) == null ? void 0 : b.link,
2566
- 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])
2567
2571
  }, null, 8, ["url", "meta"])
2568
2572
  ];
2569
2573
  }),
2570
2574
  _: 2
2571
2575
  }, [
2572
- e(l).badge && Array.isArray(p[e(l).badge]) ? {
2576
+ e(a).badge && Array.isArray(p[e(a).badge]) ? {
2573
2577
  name: "badge",
2574
- fn: v(() => [
2575
- (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, {
2576
2580
  key: `${p._id}-${b}`,
2577
2581
  large: ""
2578
2582
  }, {
2579
- default: v(() => [
2580
- Q(C(e(l).translateBadge ? e(R)(b) : b), 1)
2583
+ default: f(() => [
2584
+ D(V(e(a).translateBadge ? e(R)(b) : b), 1)
2581
2585
  ]),
2582
2586
  _: 2
2583
2587
  }, 1024))), 128))
2584
2588
  ]),
2585
2589
  key: "0"
2586
- } : e(l).badge ? {
2590
+ } : e(a).badge ? {
2587
2591
  name: "badge",
2588
- fn: v(() => [
2592
+ fn: f(() => [
2589
2593
  z($e, null, {
2590
- default: v(() => [
2591
- 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)
2592
2596
  ]),
2593
2597
  _: 2
2594
2598
  }, 1024)
@@ -2602,13 +2606,13 @@ const Da = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
2602
2606
  };
2603
2607
  }
2604
2608
  });
2605
- const yt = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-6ea2d642"]]), Wa = (c) => ({
2609
+ const yt = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-6ea2d642"]]), Wa = (d) => ({
2606
2610
  tabular: Ua,
2607
2611
  grid: yt,
2608
2612
  list: yt
2609
- })[c], pe = J(!1);
2613
+ })[d], pe = J(!1);
2610
2614
  J(!1);
2611
- 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 = {
2612
2616
  key: 2,
2613
2617
  class: "crud__controls"
2614
2618
  }, Ya = {
@@ -2632,42 +2636,42 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2632
2636
  noQueryPersistence: { type: Boolean }
2633
2637
  },
2634
2638
  emits: ["uiEvent"],
2635
- setup(c, { emit: r }) {
2636
- const l = c, t = r, o = Ie(), u = Vt({
2639
+ setup(d, { emit: u }) {
2640
+ const a = d, t = u, o = Ie(), c = Vt({
2637
2641
  delay: 600
2638
- }), i = re("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Pe(null, {
2642
+ }), r = re("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Pe(null, {
2639
2643
  antecipate: 600
2640
- }), d = !_.value.md || l.scrollPagination;
2641
- d && ue(p, (g) => {
2642
- 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());
2643
2647
  });
2644
- const a = Gt(l.collection);
2645
- aa(a, {
2646
- persistInQuery: !l.noQueryPersistence
2648
+ const l = Gt(a.collection);
2649
+ aa(l, {
2650
+ persistInQuery: !a.noQueryPersistence
2647
2651
  });
2648
- const B = Ze(), f = l.action ? e(l.action) : Wt(a, o, B);
2649
- Re.value = f[0], ht.value = f[1];
2650
- const $ = J(0), T = J(!1), V = async (g) => {
2651
- 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);
2652
2656
  const j = {
2653
- filters: a.activeFilters,
2654
- limit: a.pagination.limit,
2655
- offset: a.pagination.offset,
2656
- 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)
2657
2661
  };
2658
- $.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;
2659
- 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);
2660
2664
  if (ne)
2661
2665
  return;
2662
2666
  const { data: M, pagination: H } = oe;
2663
- a.pagination.recordsCount = H.recordsCount, a.pagination.recordsTotal = H.recordsTotal, $.value === 0 && a.items.splice(0), a.items.push(...M), a.loading.getAll = !1, T.value = !0;
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;
2664
2668
  }, Y = async (g) => {
2665
2669
  o.push(qe(o.currentRoute.value, {
2666
2670
  query: {
2667
2671
  offset: g.offset,
2668
2672
  limit: g.limit
2669
2673
  }
2670
- })), a.pagination.offset = g.offset, a.pagination.limit = g.limit, V();
2674
+ })), l.pagination.offset = g.offset, l.pagination.limit = g.limit, O();
2671
2675
  }, ee = _e("noResultsComponent", null);
2672
2676
  ue(() => [
2673
2677
  o.currentRoute.value.path,
@@ -2676,67 +2680,67 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2676
2680
  if (j && j[0] === g[0] && j[1] === g[1])
2677
2681
  return;
2678
2682
  const ne = o.currentRoute.value;
2679
- if (i.view.title = l.collection, i.view.collection = l.collection, !l.noFetch && (!ne.query._popstate || a.itemsCount === 0)) {
2680
- const oe = Kt(a, ne);
2681
- 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();
2682
2686
  }
2683
2687
  }, {
2684
2688
  immediate: !0,
2685
2689
  flush: "post"
2686
2690
  });
2687
- const [h] = u((g) => (o.push(qe(o.currentRoute.value, {
2691
+ const [h] = c((g) => (o.push(qe(o.currentRoute.value, {
2688
2692
  query: {
2689
2693
  search: g || void 0
2690
2694
  }
2691
- })), g ? (a.filters = Object.assign(Ce(a.freshFilters), {
2695
+ })), g ? (l.filters = Object.assign(Ce(l.freshFilters), {
2692
2696
  $text: {
2693
2697
  $search: `"${g}"`,
2694
2698
  $caseSensitive: !1
2695
2699
  }
2696
- }), V({
2700
+ }), O({
2697
2701
  offset: 0
2698
- })) : (a.filters = Ce(a.freshFilters), $.value = 0, V())));
2699
- ue(() => a.textQuery, (g) => {
2702
+ })) : (l.filters = Ce(l.freshFilters), $.value = 0, O())));
2703
+ ue(() => l.textQuery, (g) => {
2700
2704
  h(g);
2701
2705
  });
2702
2706
  const F = (g) => {
2703
2707
  g.currentLayout = g.currentLayout === "tabular" ? g.description.layout.name : "tabular";
2704
2708
  };
2705
- wt(() => {
2706
- a.$actions.clearFilters(), a.textQuery = "", b();
2709
+ Bt(() => {
2710
+ l.$actions.clearFilters(), l.textQuery = "", b();
2707
2711
  }), ue(() => ht.value, async (g) => {
2708
2712
  var oe;
2709
2713
  const j = Ce(g);
2710
2714
  let ne;
2711
2715
  if (j)
2712
- if ((j.name === "spawnEdit" || j.name === "duplicate") && (ne = a.$actions.get({
2716
+ if ((j.name === "spawnEdit" || j.name === "duplicate") && (ne = l.$actions.get({
2713
2717
  filters: {
2714
2718
  _id: j.params._id
2715
2719
  }
2716
2720
  })), j.name === "spawnAdd")
2717
- a.$actions.clearItem(), (oe = j.params) != null && oe.item && (a.$actions.setItem(j.params.item), Object.keys(j.params.item).forEach((M) => {
2718
- 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];
2719
2723
  })), pe.value = "add";
2720
2724
  else if (j.name === "spawnEdit")
2721
- a.$actions.setItem(j.params), pe.value = "edit";
2725
+ l.$actions.setItem(j.params), pe.value = "edit";
2722
2726
  else if (j.name === "duplicate") {
2723
2727
  await ne;
2724
- const M = Object.entries(a.item).reduce((H, [se, ae]) => {
2725
- if (!(se in a.properties))
2728
+ const M = Object.entries(l.item).reduce((H, [se, ae]) => {
2729
+ if (!(se in l.properties))
2726
2730
  return {
2727
2731
  ...H,
2728
2732
  [se]: ae
2729
2733
  };
2730
- const m = a.properties[se];
2734
+ const m = l.properties[se];
2731
2735
  if (m.readOnly)
2732
2736
  return H;
2733
2737
  const L = (K) => {
2734
- const w = me(m);
2735
- if (!w)
2738
+ const B = me(m);
2739
+ if (!B)
2736
2740
  return K;
2737
- if (w.$ref === "file")
2741
+ if (B.$ref === "file")
2738
2742
  return {};
2739
- if (w.inline && K) {
2743
+ if (B.inline && K) {
2740
2744
  const { _id: I, ...q } = K;
2741
2745
  return q;
2742
2746
  }
@@ -2747,36 +2751,36 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2747
2751
  [se]: ae
2748
2752
  };
2749
2753
  }, {});
2750
- 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";
2751
2755
  } else
2752
2756
  t("uiEvent", j);
2753
2757
  }, {
2754
2758
  deep: !0
2755
2759
  }), ue(() => pe, ({ value: g }) => {
2756
- g === !1 && (i.view.collection = l.collection, a.$actions.clearItem());
2760
+ g === !1 && (r.view.collection = a.collection, l.$actions.clearItem());
2757
2761
  });
2758
- const le = D(() => a.individualActions.map((g) => ({
2762
+ const le = G(() => l.individualActions.map((g) => ({
2759
2763
  click: Re.value(g),
2760
2764
  ...g
2761
- }))), S = D(() => a.actions.filter((g) => !g.button));
2762
- return ye(Fe, D(() => l.collection)), ye("individualActions", le), (g, j) => {
2765
+ }))), T = G(() => l.actions.filter((g) => !g.button));
2766
+ return ye(Fe, G(() => a.collection)), ye("individualActions", le), (g, j) => {
2763
2767
  var M, H, se, ae, m, L, K;
2764
2768
  const ne = te("clickable"), oe = te("loading");
2765
- return n(), s(x, null, [
2769
+ return n(), i(x, null, [
2766
2770
  e(Ve) ? (n(), k(na, {
2767
- key: e(a).$id,
2771
+ key: e(l).$id,
2768
2772
  modelValue: e(Ve),
2769
- "onUpdate:modelValue": j[0] || (j[0] = (w) => mt(Ve) ? Ve.value = w : null)
2773
+ "onUpdate:modelValue": j[0] || (j[0] = (B) => mt(Ve) ? Ve.value = B : null)
2770
2774
  }, null, 8, ["modelValue"])) : y("", !0),
2771
2775
  e(pe) ? (n(), k(oa, {
2772
2776
  key: 1,
2773
2777
  visible: e(pe),
2774
- "onUpdate:visible": j[1] || (j[1] = (w) => mt(pe) ? pe.value = w : null),
2778
+ "onUpdate:visible": j[1] || (j[1] = (B) => mt(pe) ? pe.value = B : null),
2775
2779
  "fixed-right": "",
2776
- onCancel: j[2] || (j[2] = (w) => pe.value = !1)
2780
+ onCancel: j[2] || (j[2] = (B) => pe.value = !1)
2777
2781
  }, ce({
2778
- header: v(() => [
2779
- A("span", null, C((() => {
2782
+ header: f(() => [
2783
+ A("span", null, V((() => {
2780
2784
  switch (e(pe)) {
2781
2785
  case "add":
2782
2786
  return e(R)("action.add", { capitalize: !0 });
@@ -2787,41 +2791,41 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2787
2791
  return e(R)("action.edit", { capitalize: !0 });
2788
2792
  }
2789
2793
  })()), 1),
2790
- A("span", null, " " + C(e(R)(e(i).view.collection)), 1)
2794
+ A("span", null, " " + V(e(R)(e(r).view.collection)), 1)
2791
2795
  ]),
2792
2796
  _: 2
2793
2797
  }, [
2794
- G(Object.keys(g.$slots).filter((w) => w.startsWith("field-")), (w) => ({
2795
- name: w,
2796
- fn: v((I) => [
2797
- O(g.$slots, w, de(ge(I)), void 0, !0)
2798
+ Q(Object.keys(g.$slots).filter((B) => B.startsWith("field-")), (B) => ({
2799
+ name: B,
2800
+ fn: f((I) => [
2801
+ C(g.$slots, B, de(ge(I)), void 0, !0)
2798
2802
  ])
2799
2803
  }))
2800
2804
  ]), 1032, ["visible"])) : y("", !0),
2801
- !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 && ((H = e(a).description.layout) == null ? void 0 : H.name) !== "tabular") ? (n(), s("div", Xa, [
2802
- 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, [
2803
2807
  z(ke, E({
2804
- modelValue: e(a).textQuery,
2805
- "onUpdate:modelValue": j[3] || (j[3] = (w) => e(a).textQuery = w)
2808
+ modelValue: e(l).textQuery,
2809
+ "onUpdate:modelValue": j[3] || (j[3] = (B) => e(l).textQuery = B)
2806
2810
  }, {
2807
2811
  property: {
2808
2812
  type: "string",
2809
- placeholder: e(a).description.search.placeholder || "Pesquise aqui",
2813
+ placeholder: e(l).description.search.placeholder || "Pesquise aqui",
2810
2814
  inputType: "search"
2811
2815
  }
2812
2816
  }), null, 16, ["modelValue"])
2813
2817
  ])) : y("", !0),
2814
2818
  A("div", Ja, [
2815
- 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({
2816
- 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(() => [
2817
2821
  z(ie, {
2818
2822
  variant: "alt",
2819
2823
  icon: "sliders"
2820
2824
  }, {
2821
- default: v(() => [
2822
- e(a).filtersCount ? (n(), k($e, { key: 0 }, {
2823
- default: v(() => [
2824
- 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)
2825
2829
  ]),
2826
2830
  _: 1
2827
2831
  })) : y("", !0)
@@ -2831,24 +2835,24 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2831
2835
  ]),
2832
2836
  _: 2
2833
2837
  }, [
2834
- Object.keys(e(a).availableFilters).length > 0 ? {
2838
+ Object.keys(e(l).availableFilters).length > 0 ? {
2835
2839
  name: "filter",
2836
- fn: v(() => [
2840
+ fn: f(() => [
2837
2841
  P((n(), k(Z, {
2838
2842
  icon: "funnel",
2839
- onClick: j[4] || (j[4] = (w) => Ve.value = !0)
2843
+ onClick: j[4] || (j[4] = (B) => Ve.value = !0)
2840
2844
  }, {
2841
- default: v(() => [
2842
- Q(C(e(R)("filters", { capitalize: !0 })), 1)
2845
+ default: f(() => [
2846
+ D(V(e(R)("filters", { capitalize: !0 })), 1)
2843
2847
  ]),
2844
2848
  _: 1
2845
2849
  })), [
2846
2850
  [ne]
2847
2851
  ]),
2848
2852
  A("div", Za, [
2849
- e(a).filtersCount ? (n(), k($e, { key: 0 }, {
2850
- default: v(() => [
2851
- 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)
2852
2856
  ]),
2853
2857
  _: 1
2854
2858
  })) : y("", !0)
@@ -2856,15 +2860,15 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2856
2860
  ]),
2857
2861
  key: "0"
2858
2862
  } : void 0,
2859
- !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" ? {
2860
2864
  name: "layout-toggle",
2861
- fn: v(() => [
2865
+ fn: f(() => [
2862
2866
  P((n(), k(Z, {
2863
2867
  icon: "table",
2864
- onClick: j[5] || (j[5] = (w) => F(e(a)))
2868
+ onClick: j[5] || (j[5] = (B) => F(e(l)))
2865
2869
  }, {
2866
- default: v(() => [
2867
- Q(C(e(R)("change_layout", { capitalize: !0 })), 1)
2870
+ default: f(() => [
2871
+ D(V(e(R)("change_layout", { capitalize: !0 })), 1)
2868
2872
  ]),
2869
2873
  _: 1
2870
2874
  })), [
@@ -2873,106 +2877,106 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
2873
2877
  ]),
2874
2878
  key: "1"
2875
2879
  } : void 0,
2876
- G(S.value, (w, I) => ({
2880
+ Q(T.value, (B, I) => ({
2877
2881
  name: `action-${I}`,
2878
- fn: v(() => [
2879
- w ? (n(), k(Z, {
2882
+ fn: f(() => [
2883
+ B ? (n(), k(Z, {
2880
2884
  key: 0,
2881
- icon: w.icon || "gear",
2882
- disabled: e(a).selected.length === 0 && "selection" in w && w.selection,
2883
- onClick: (q) => e(Re)(w)({ _id: e(a).selected.map((fe) => fe._id) })
2885
+ icon: B.icon || "gear",
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) })
2884
2888
  }, {
2885
- default: v(() => [
2886
- Q(C(e(R)(w.label, { capitalize: !0 })), 1)
2889
+ default: f(() => [
2890
+ D(V(e(R)(B.label, { capitalize: !0 })), 1)
2887
2891
  ]),
2888
2892
  _: 2
2889
2893
  }, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
2890
2894
  ])
2891
2895
  }))
2892
- ]), 1024)) : Object.keys(e(a).availableFilters).length > 0 ? (n(), k(ie, {
2896
+ ]), 1024)) : Object.keys(e(l).availableFilters).length > 0 ? (n(), k(ie, {
2893
2897
  key: 1,
2894
2898
  variant: "alt",
2895
2899
  icon: "funnel",
2896
- onClick: j[6] || (j[6] = (w) => Ve.value = !0)
2900
+ onClick: j[6] || (j[6] = (B) => Ve.value = !0)
2897
2901
  }, {
2898
- default: v(() => [
2902
+ default: f(() => [
2899
2903
  Pa,
2900
- e(a).filtersCount ? (n(), k($e, { key: 0 }, {
2901
- default: v(() => [
2902
- 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)
2903
2907
  ]),
2904
2908
  _: 1
2905
2909
  })) : y("", !0)
2906
2910
  ]),
2907
2911
  _: 1
2908
2912
  })) : y("", !0),
2909
- (n(!0), s(x, null, G(e(a).actions.filter((w) => w.button), (w, I) => (n(), k(ie, {
2913
+ (n(!0), i(x, null, Q(e(l).actions.filter((B) => B.button), (B, I) => (n(), k(ie, {
2910
2914
  key: `action-${I}`,
2911
- icon: w.icon,
2912
- disabled: e(a).selected.length === 0 && "selection" in w && w.selection,
2913
- onClick: (q) => e(Re)(w)({ _id: e(a).selected.map((fe) => fe._id) })
2915
+ icon: B.icon,
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) })
2914
2918
  }, {
2915
- default: v(() => [
2916
- Q(C(e(R)(w.label, { capitalize: !0 })), 1)
2919
+ default: f(() => [
2920
+ D(V(e(R)(B.label, { capitalize: !0 })), 1)
2917
2921
  ]),
2918
2922
  _: 2
2919
2923
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
2920
- 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)
2921
2925
  ])
2922
2926
  ])) : y("", !0),
2923
- P((n(), s("div", null, [
2924
- 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, [
2925
2929
  e(ee) ? (n(), k(he(e(ee)), de(E({ key: 0 }, {
2926
- collection: e(a).$id
2930
+ collection: e(l).$id
2927
2931
  })), {
2928
- default: v(() => [
2929
- 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, {
2930
2934
  key: 0,
2931
2935
  icon: "plus",
2932
- onClick: j[7] || (j[7] = (w) => e(Re)({
2936
+ onClick: j[7] || (j[7] = (B) => e(Re)({
2933
2937
  action: "spawnAdd",
2934
2938
  event: "spawnAdd"
2935
2939
  })())
2936
2940
  }, {
2937
- default: v(() => [
2938
- Q(C(e(R)("add_first_item", { capitalize: !0 })), 1)
2941
+ default: f(() => [
2942
+ D(V(e(R)("add_first_item", { capitalize: !0 })), 1)
2939
2943
  ]),
2940
2944
  _: 1
2941
2945
  })) : y("", !0)
2942
2946
  ]),
2943
2947
  _: 1
2944
- }, 16)) : O(g.$slots, "empty", de(E({ key: 1 }, {
2945
- collection: e(a).$id
2948
+ }, 16)) : C(g.$slots, "empty", de(E({ key: 1 }, {
2949
+ collection: e(l).$id
2946
2950
  })), void 0, !0)
2947
- ])) : g.$slots.component ? O(g.$slots, "component", de(E({ key: 1 }, {
2948
- store: e(a)
2949
- })), 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 }, {
2950
2954
  individualActions: le.value,
2951
- 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,
2952
2956
  componentProps: g.componentProps
2953
2957
  }, {
2954
- "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
2955
2959
  }), ce({ _: 2 }, [
2956
- G(Object.keys(g.$slots).filter((w) => w.startsWith("row-")), (w) => ({
2957
- name: w,
2958
- fn: v((I) => [
2959
- O(g.$slots, w, de(ge(I)), void 0, !0)
2960
+ Q(Object.keys(g.$slots).filter((B) => B.startsWith("row-")), (B) => ({
2961
+ name: B,
2962
+ fn: f((I) => [
2963
+ C(g.$slots, B, de(ge(I)), void 0, !0)
2960
2964
  ])
2961
2965
  })),
2962
2966
  g.$slots.tfoot ? {
2963
2967
  name: "tfoot",
2964
- fn: v(() => [
2965
- O(g.$slots, "tfoot", {}, void 0, !0)
2968
+ fn: f(() => [
2969
+ C(g.$slots, "tfoot", {}, void 0, !0)
2966
2970
  ]),
2967
2971
  key: "0"
2968
2972
  } : void 0
2969
2973
  ]), 1040, ["component-name"]))
2970
2974
  ])), [
2971
- [oe, (!e(d) || $.value === bt) && e(a).loading.getAll]
2975
+ [oe, (!e(s) || $.value === bt) && e(l).loading.getAll]
2972
2976
  ]),
2973
- !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, [
2974
2978
  z(Un, {
2975
- pagination: e(a).pagination,
2979
+ pagination: e(l).pagination,
2976
2980
  onPaginate: Y
2977
2981
  }, null, 8, ["pagination"])
2978
2982
  ])) : y("", !0)
@@ -2986,9 +2990,9 @@ const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { cla
2986
2990
  title: {},
2987
2991
  options: {}
2988
2992
  },
2989
- setup(c) {
2990
- const r = re("meta"), l = (t, o) => {
2991
- r.$actions.fulfillPrompt(t, o);
2993
+ setup(d) {
2994
+ const u = re("meta"), a = (t, o) => {
2995
+ u.$actions.fulfillPrompt(t, o);
2992
2996
  };
2993
2997
  return (t, o) => (n(), k(Ae, {
2994
2998
  float: "",
@@ -2996,37 +3000,37 @@ const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { cla
2996
3000
  "close-hint": !1,
2997
3001
  style: { "--panel-min-width": "32rem" }
2998
3002
  }, ce({
2999
- footer: v(() => [
3003
+ footer: f(() => [
3000
3004
  A("div", {
3001
3005
  class: "prompt__options",
3002
3006
  style: be(`grid-template-columns: repeat(${Object.keys(t.options).length}, 1fr)`)
3003
3007
  }, [
3004
- (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, {
3005
3009
  key: `option-${_}`,
3006
3010
  class: X(`
3007
3011
  prompt__option
3008
- prompt__option--${i.variant || "primary"}
3012
+ prompt__option--${r.variant || "primary"}
3009
3013
  `),
3010
- onClick: (p) => i.click ? i.click(u, i) : l(u, i)
3014
+ onClick: (p) => r.click ? r.click(c, r) : a(c, r)
3011
3015
  }, {
3012
- default: v(() => [
3013
- Q(C(i.title), 1)
3016
+ default: f(() => [
3017
+ D(V(r.title), 1)
3014
3018
  ]),
3015
3019
  _: 2
3016
3020
  }, 1032, ["class", "onClick"]))), 128))
3017
3021
  ], 4)
3018
3022
  ]),
3019
- default: v(() => [
3023
+ default: f(() => [
3020
3024
  A("div", tl, [
3021
- O(t.$slots, "default", {}, void 0, !0)
3025
+ C(t.$slots, "default", {}, void 0, !0)
3022
3026
  ])
3023
3027
  ]),
3024
3028
  _: 2
3025
3029
  }, [
3026
3030
  t.title ? {
3027
3031
  name: "title",
3028
- fn: v(() => [
3029
- Q(C(t.title), 1)
3032
+ fn: f(() => [
3033
+ D(V(t.title), 1)
3030
3034
  ]),
3031
3035
  key: "0"
3032
3036
  } : void 0
@@ -3041,25 +3045,25 @@ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { cla
3041
3045
  date: {},
3042
3046
  icon: {}
3043
3047
  },
3044
- setup(c) {
3045
- const r = re("meta");
3046
- return (l, t) => {
3048
+ setup(d) {
3049
+ const u = re("meta");
3050
+ return (a, t) => {
3047
3051
  const o = te("clickable");
3048
- return P((n(), s("div", {
3052
+ return P((n(), i("div", {
3049
3053
  class: X({
3050
3054
  toast: !0,
3051
- "toast--animate": e(r).toasts[0].itr === l.itr
3055
+ "toast--animate": e(u).toasts[0].itr === a.itr
3052
3056
  }),
3053
- onAnimationend: t[0] || (t[0] = (u) => e(r).$actions.popToast()),
3054
- 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))
3055
3059
  }, [
3056
3060
  z(Z, E(
3057
- l.icon ? { icon: l.icon } : { icon: "warning-circle" },
3061
+ a.icon ? { icon: a.icon } : { icon: "warning-circle" },
3058
3062
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3059
3063
  ), null, 16),
3060
3064
  A("div", al, [
3061
- O(l.$slots, "default", {}, void 0, !0),
3062
- 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)
3063
3067
  ])
3064
3068
  ], 34)), [
3065
3069
  [o]
@@ -3069,27 +3073,27 @@ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { cla
3069
3073
  });
3070
3074
  const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["innerHTML"], ul = { class: "main__toasts" }, cl = ["innerHTML"], dl = /* @__PURE__ */ U({
3071
3075
  __name: "aeria-main",
3072
- setup(c) {
3073
- const r = re("meta"), l = D(() => r.themeOverride || r.theme);
3076
+ setup(d) {
3077
+ const u = re("meta"), a = G(() => u.themeOverride || u.theme);
3074
3078
  return (t, o) => {
3075
- const u = St("router-view");
3076
- return n(), s("main", {
3079
+ const c = St("router-view");
3080
+ return n(), i("main", {
3077
3081
  id: "main",
3078
3082
  class: X(`
3079
3083
  main
3080
- main--${l.value}
3081
- ${l.value === "dark" && "tw-dark"}
3084
+ main--${a.value}
3085
+ ${a.value === "dark" && "tw-dark"}
3082
3086
  `)
3083
3087
  }, [
3084
3088
  (n(), k(Tt, null, {
3085
- default: v(() => [
3086
- z(u, null, {
3087
- default: v(({ Component: i }) => [
3088
- (n(), k(he(i), null, ce({ _: 2 }, [
3089
- 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), (_) => ({
3090
3094
  name: _,
3091
- fn: v(() => [
3092
- O(t.$slots, _, {}, void 0, !0)
3095
+ fn: f(() => [
3096
+ C(t.$slots, _, {}, void 0, !0)
3093
3097
  ])
3094
3098
  }))
3095
3099
  ]), 1024))
@@ -3099,39 +3103,39 @@ const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["inn
3099
3103
  ]),
3100
3104
  _: 3
3101
3105
  })),
3102
- O(t.$slots, "default", {}, void 0, !0),
3106
+ C(t.$slots, "default", {}, void 0, !0),
3103
3107
  z(Ae, E({
3104
- modelValue: e(r).modal.visible,
3105
- "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),
3106
3110
  float: "",
3107
3111
  "close-hint": ""
3108
- }, e(r).modal, {
3112
+ }, e(u).modal, {
3109
3113
  "overlay-layer": 70,
3110
- onOverlayClick: o[1] || (o[1] = (i) => e(r).modal.visible = !1)
3114
+ onOverlayClick: o[1] || (o[1] = (r) => e(u).modal.visible = !1)
3111
3115
  }), {
3112
- default: v(() => [
3113
- e(r).modal.body ? (n(), s("div", {
3116
+ default: f(() => [
3117
+ e(u).modal.body ? (n(), i("div", {
3114
3118
  key: 0,
3115
3119
  style: { "white-space": "pre-wrap" },
3116
- innerHTML: e(r).modal.body
3120
+ innerHTML: e(u).modal.body
3117
3121
  }, null, 8, rl)) : y("", !0),
3118
- 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)
3119
3123
  ]),
3120
3124
  _: 1
3121
3125
  }, 16, ["modelValue"]),
3122
- e(r).prompt.visible ? (n(), k(ol, de(E({ key: 0 }, e(r).prompt)), {
3123
- default: v(() => [
3124
- 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)
3125
3129
  ]),
3126
3130
  _: 1
3127
3131
  }, 16)) : y("", !0),
3128
3132
  A("div", ul, [
3129
- (n(!0), s(x, null, G(e(r).toasts, (i) => (n(), k(il, E({ ref_for: !0 }, i, {
3130
- 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}`
3131
3135
  }), {
3132
- default: v(() => [
3136
+ default: f(() => [
3133
3137
  A("div", {
3134
- innerHTML: e(R)(i.text)
3138
+ innerHTML: e(R)(r.text)
3135
3139
  }, null, 8, cl)
3136
3140
  ]),
3137
3141
  _: 2
@@ -3143,13 +3147,13 @@ const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["inn
3143
3147
  });
3144
3148
  const Ml = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-1166be3d"]]);
3145
3149
  const pl = {}, _l = { class: "menu" };
3146
- function ml(c, r) {
3147
- return n(), s("menu", _l, [
3148
- (n(!0), s(x, null, G(Object.keys(c.$slots), (l) => (n(), s("div", {
3149
- 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,
3150
3154
  class: "menu__entry"
3151
3155
  }, [
3152
- O(c.$slots, l, {}, void 0, !0)
3156
+ C(d.$slots, a, {}, void 0, !0)
3153
3157
  ]))), 128))
3154
3158
  ]);
3155
3159
  }
@@ -3169,58 +3173,58 @@ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb
3169
3173
  param: {},
3170
3174
  dropdown: { type: Boolean }
3171
3175
  },
3172
- setup(c) {
3173
- const r = c, l = jt(), t = Ie(), o = Ue(), u = D(() => {
3174
- if (r.query) {
3175
- 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];
3176
3180
  if (_)
3177
3181
  return _;
3178
- } else if (r.param) {
3179
- const _ = t.currentRoute.value.params[r.param];
3182
+ } else if (u.param) {
3183
+ const _ = t.currentRoute.value.params[u.param];
3180
3184
  if (_)
3181
3185
  return _;
3182
3186
  }
3183
- return Object.keys(l)[0];
3184
- }), i = (_) => {
3185
- 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, {
3186
3190
  query: {
3187
- [r.query]: _
3191
+ [u.query]: _
3188
3192
  }
3189
- })), r.param && t.push(qe(t.currentRoute.value, {
3193
+ })), u.param && t.push(qe(t.currentRoute.value, {
3190
3194
  params: {
3191
- [r.param]: _
3195
+ [u.param]: _
3192
3196
  }
3193
3197
  }));
3194
3198
  };
3195
3199
  return (_, p) => {
3196
3200
  const b = te("clickable");
3197
- return n(), s("div", fl, [
3198
- e(o).md && !_.dropdown ? (n(), s("div", vl, [
3199
- _.$slots.default ? (n(), s("div", yl, [
3200
- 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)
3201
3205
  ])) : y("", !0),
3202
- (n(!0), s(x, null, G(Object.keys(_.$slots).filter((d) => d !== "default"), (d, a) => (n(), s("div", {
3203
- key: d,
3206
+ (n(!0), i(x, null, Q(Object.keys(_.$slots).filter((s) => s !== "default"), (s, l) => (n(), i("div", {
3207
+ key: s,
3204
3208
  class: X({
3205
3209
  tabs__tab: !0,
3206
- "tabs__tab--current": d === u.value || !u.value && a === 0
3210
+ "tabs__tab--current": s === c.value || !c.value && l === 0
3207
3211
  }),
3208
- onClick: (B) => i(d)
3212
+ onClick: (w) => r(s)
3209
3213
  }, [
3210
- O(_.$slots, d, {}, void 0, !0)
3214
+ C(_.$slots, s, {}, void 0, !0)
3211
3215
  ], 10, hl))), 128))
3212
- ])) : (n(), s("div", bl, [
3216
+ ])) : (n(), i("div", bl, [
3213
3217
  z(Oe, null, ce({
3214
- default: v(({ visible: d }) => [
3218
+ default: f(({ visible: s }) => [
3215
3219
  P((n(), k(Z, {
3216
3220
  "icon-right": "",
3217
- active: d,
3221
+ active: s,
3218
3222
  icon: "caret-down",
3219
3223
  style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
3220
3224
  class: "tabs__context-menu-icon"
3221
3225
  }, {
3222
- default: v(() => [
3223
- O(_.$slots, u.value, {}, void 0, !0)
3226
+ default: f(() => [
3227
+ C(_.$slots, c.value, {}, void 0, !0)
3224
3228
  ]),
3225
3229
  _: 2
3226
3230
  }, 1032, ["active"])), [
@@ -3229,13 +3233,13 @@ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb
3229
3233
  ]),
3230
3234
  _: 2
3231
3235
  }, [
3232
- G(Object.keys(_.$slots).filter((d) => d !== "default"), (d) => ({
3233
- name: d,
3234
- fn: v(() => [
3236
+ Q(Object.keys(_.$slots).filter((s) => s !== "default"), (s) => ({
3237
+ name: s,
3238
+ fn: f(() => [
3235
3239
  A("div", {
3236
- onClick: (a) => i(d)
3240
+ onClick: (l) => r(s)
3237
3241
  }, [
3238
- O(_.$slots, d, {}, void 0, !0)
3242
+ C(_.$slots, s, {}, void 0, !0)
3239
3243
  ], 8, $l)
3240
3244
  ])
3241
3245
  }))
@@ -3250,50 +3254,50 @@ const kl = /* @__PURE__ */ W(gl, [["__scopeId", "data-v-a20914ab"]]), Vl = U({
3250
3254
  initialValue: String,
3251
3255
  promise: Promise
3252
3256
  },
3253
- setup(c) {
3254
- const r = J(c.initialValue);
3255
- return c.promise instanceof Promise && c.promise.then((l) => {
3256
- r.value = l;
3257
- }), () => 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);
3258
3262
  }
3259
3263
  }), Cl = ["onClick"], Ol = { key: 1 }, Il = /* @__PURE__ */ U({
3260
3264
  __name: "aeria-crud-topbar",
3261
3265
  props: {
3262
3266
  collection: {}
3263
3267
  },
3264
- setup(c) {
3265
- const r = c, t = Ie().currentRoute, o = Ze(), u = D(() => 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) => {
3266
- 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]({
3267
3271
  filters: _.filters
3268
3272
  });
3269
- return b ? 0 : d;
3273
+ return b ? 0 : s;
3270
3274
  };
3271
- return (_, p) => u.value && u.value.description.filtersPresets ? (n(), k(kl, {
3275
+ return (_, p) => c.value && c.value.description.filtersPresets ? (n(), k(kl, {
3272
3276
  key: 0,
3273
3277
  dropdown: "",
3274
3278
  query: "section"
3275
3279
  }, ce({ _: 2 }, [
3276
- G(Object.entries(u.value.description.filtersPresets), ([b, d]) => ({
3280
+ Q(Object.entries(c.value.description.filtersPresets), ([b, s]) => ({
3277
3281
  name: b,
3278
- fn: v(() => [
3282
+ fn: f(() => [
3279
3283
  A("div", {
3280
3284
  class: "topbar__preset",
3281
- onClick: (a) => e(Ot)(d, u.value)
3285
+ onClick: (l) => e(Ot)(s, c.value)
3282
3286
  }, [
3283
- d.icon ? (n(), k(Z, {
3287
+ s.icon ? (n(), k(Z, {
3284
3288
  key: 0,
3285
- icon: d.icon
3289
+ icon: s.icon
3286
3290
  }, {
3287
- default: v(() => [
3288
- Q(C(d.label || e(R)(b, { plural: !0 })), 1)
3291
+ default: f(() => [
3292
+ D(V(s.label || e(R)(b, { plural: !0 })), 1)
3289
3293
  ]),
3290
3294
  _: 2
3291
- }, 1032, ["icon"])) : (n(), s("div", Ol, C(d.label || e(R)(b, { plural: !0 })), 1)),
3292
- d.badgeFunction ? (n(), k($e, { key: 2 }, {
3293
- 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(() => [
3294
3298
  z(e(Vl), {
3295
3299
  "initial-value": "0",
3296
- promise: async () => String(i(d, u.value))
3300
+ promise: async () => String(r(s, c.value))
3297
3301
  }, null, 8, ["promise"])
3298
3302
  ]),
3299
3303
  _: 2
@@ -3304,7 +3308,7 @@ const kl = /* @__PURE__ */ W(gl, [["__scopeId", "data-v-a20914ab"]]), Vl = U({
3304
3308
  ]), 1024)) : y("", !0);
3305
3309
  }
3306
3310
  });
3307
- const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3311
+ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3308
3312
  __proto__: null,
3309
3313
  default: Al
3310
3314
  }, Symbol.toStringTag, { value: "Module" })), Ul = /* @__PURE__ */ U({
@@ -3313,14 +3317,14 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
3313
3317
  modelValue: {}
3314
3318
  },
3315
3319
  emits: ["update:modelValue"],
3316
- setup(c) {
3317
- const r = c;
3320
+ setup(d) {
3321
+ const u = d;
3318
3322
  ye(Fe, null);
3319
- const l = Xt(), t = D(() => l(
3320
- r.modelValue.password,
3321
- r.modelValue.confirmation
3323
+ const a = Xt(), t = G(() => a(
3324
+ u.modelValue.password,
3325
+ u.modelValue.confirmation
3322
3326
  ));
3323
- return (o, u) => (n(), k(Qe, {
3327
+ return (o, c) => (n(), k(Qe, {
3324
3328
  form: {
3325
3329
  password: {
3326
3330
  type: "string",
@@ -3334,34 +3338,34 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
3334
3338
  }
3335
3339
  },
3336
3340
  "model-value": o.modelValue,
3337
- "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))
3338
3342
  }, {
3339
- after: v(() => [
3340
- A("div", null, C(t.value || "Senhas conferem"), 1),
3341
- 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 })))
3342
3346
  ]),
3343
3347
  _: 3
3344
3348
  }, 8, ["model-value"]));
3345
3349
  }
3346
- }), El = (c, r = []) => ({
3350
+ }), El = (d, u = []) => ({
3347
3351
  path: "/user",
3348
3352
  name: "/builtin:user",
3349
- component: c,
3350
- children: r.concat([
3353
+ component: d,
3354
+ children: u.concat([
3351
3355
  {
3352
3356
  path: "invite/:id",
3353
3357
  name: "/user/invite/:id",
3354
- redirect: (l) => ({
3358
+ redirect: (a) => ({
3355
3359
  path: "/user/signup",
3356
3360
  params: {
3357
- inviteId: l.params.id
3361
+ inviteId: a.params.id
3358
3362
  }
3359
3363
  })
3360
3364
  },
3361
3365
  {
3362
3366
  path: "signin",
3363
3367
  name: "/user/signin",
3364
- component: () => import("./signin-e3038c7b.js"),
3368
+ component: () => import("./signin-131cef9c.js"),
3365
3369
  meta: {
3366
3370
  title: "Autenticação"
3367
3371
  }
@@ -3369,7 +3373,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
3369
3373
  {
3370
3374
  path: "signup",
3371
3375
  name: "/user/signup",
3372
- component: () => import("./signup-4beb1e83.js"),
3376
+ component: () => import("./signup-037f2f37.js"),
3373
3377
  meta: {
3374
3378
  title: "Registro"
3375
3379
  }
@@ -3377,30 +3381,30 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
3377
3381
  {
3378
3382
  path: "activation",
3379
3383
  name: "/user/activation",
3380
- component: () => import("./activation-6cf8f626.js"),
3384
+ component: () => import("./activation-01e847e4.js"),
3381
3385
  meta: {
3382
3386
  title: "Ativação"
3383
3387
  }
3384
3388
  }
3385
3389
  ])
3386
- }), Dl = (c, r = []) => ({
3390
+ }), Hl = (d, u = []) => ({
3387
3391
  path: "/dashboard",
3388
3392
  name: "/builtin:dashboard",
3389
- component: c,
3393
+ component: d,
3390
3394
  redirect: {
3391
3395
  name: "/dashboard/"
3392
3396
  },
3393
3397
  meta: {
3394
3398
  title: "Dashboard"
3395
3399
  },
3396
- children: r.concat([
3400
+ children: u.concat([
3397
3401
  {
3398
3402
  path: "c/:collection",
3399
3403
  name: "/dashboard/:collection",
3400
3404
  props: !0,
3401
3405
  components: {
3402
- default: () => import("./index-7832f3b8.js"),
3403
- topbar: () => Promise.resolve().then(() => Bl)
3406
+ default: () => import("./index-bdc0133c.js"),
3407
+ topbar: () => Promise.resolve().then(() => wl)
3404
3408
  },
3405
3409
  meta: {
3406
3410
  title: "%viewTitle%"
@@ -3411,7 +3415,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
3411
3415
  name: "/dashboard/:collection/:id",
3412
3416
  props: !0,
3413
3417
  components: {
3414
- default: () => import("./_id_-a8ae712c.js")
3418
+ default: () => import("./_id_-28e2ff98.js")
3415
3419
  },
3416
3420
  meta: {
3417
3421
  title: "%viewTitle%"
@@ -3429,7 +3433,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
3429
3433
  children: [
3430
3434
  {
3431
3435
  path: "profile",
3432
- component: () => import("./index-1e076d31.js"),
3436
+ component: () => import("./index-7e4faf19.js"),
3433
3437
  meta: {
3434
3438
  title: "Meu perfil",
3435
3439
  icon: "user-square"
@@ -3438,7 +3442,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
3438
3442
  {
3439
3443
  path: "changepass",
3440
3444
  name: "/dashboard/user/changepass",
3441
- component: () => import("./index-45a3b598.js"),
3445
+ component: () => import("./index-3e560edd.js"),
3442
3446
  meta: {
3443
3447
  title: "Mudar senha",
3444
3448
  icon: "lock"
@@ -3456,14 +3460,14 @@ export {
3456
3460
  il as E,
3457
3461
  Al as F,
3458
3462
  El as G,
3459
- Dl as H,
3463
+ Hl as H,
3460
3464
  Ul as _,
3461
3465
  ie as a,
3462
3466
  Z as b,
3463
3467
  Kn as c,
3464
3468
  ql as d,
3465
3469
  oa as e,
3466
- De as f,
3470
+ He as f,
3467
3471
  Fl as g,
3468
3472
  Ae as h,
3469
3473
  W as i,
@@ -3472,7 +3476,7 @@ export {
3472
3476
  ve as l,
3473
3477
  pn as m,
3474
3478
  Oe as n,
3475
- Da as o,
3479
+ Ha as o,
3476
3480
  na as p,
3477
3481
  Vn as q,
3478
3482
  Ml as r,