@aeria-ui/ui 0.0.87 → 0.0.88

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