@aeria-ui/ui 0.0.120 → 0.0.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- import { defineComponent as z, ref as x, resolveDirective as te, openBlock as n, createElementBlock as l, normalizeClass as G, Fragment as J, renderList as E, withDirectives as Y, toDisplayString as C, createCommentVNode as h, createTextVNode as H, unref as e, renderSlot as I, withModifiers as Re, inject as be, computed as X, createElementVNode as B, mergeProps as U, createBlock as V, withCtx as b, resolveDynamicComponent as he, useCssVars as ht, normalizeProps as de, guardReactiveProps as Ve, Teleport as Ge, onMounted as We, watch as re, createVNode as M, vModelDynamic as $t, onBeforeMount as mt, normalizeStyle as ge, provide as $e, createSlots as ue, vModelCheckbox as gt, onUnmounted as kt, resolveComponent as Vt, Suspense as Ct, useSlots as Ot, h as At } from "vue";
1
+ import { defineComponent as z, ref as x, resolveDirective as te, openBlock as t, createElementBlock as l, normalizeClass as G, Fragment as J, renderList as U, withDirectives as X, toDisplayString as C, createCommentVNode as h, createTextVNode as H, unref as e, renderSlot as I, withModifiers as Re, inject as fe, computed as K, createElementVNode as B, mergeProps as E, createBlock as V, withCtx as b, resolveDynamicComponent as he, useCssVars as ht, normalizeProps as de, guardReactiveProps as Ve, Teleport as Ge, onMounted as We, watch as re, createVNode as M, vModelDynamic as $t, onBeforeMount as mt, normalizeStyle as ge, provide as $e, createSlots as ue, vModelCheckbox as gt, onUnmounted as kt, resolveComponent as Vt, Suspense as Ct, useSlots as Ot, h as At } from "vue";
2
2
  import { t as L, useI18n as It } from "@aeria-ui/i18n";
3
- import { arraysIntersect as ft, deepClone as Ae, getReferenceProperty as _e, freshItem as Bt, isRequired as St, evaluateCondition as Qe, deepMerge as Le } from "@aeriajs/common";
4
- import { useStore as ie, getStoreId as Me, useParentStore as Ee, STORE_ID as qe, getGlobalStateManager as Ke } from "@aeria-ui/state-management";
5
- import { useScrollObserver as Xe, useBreakpoints as ze, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as vt, request as jt, useDebounce as yt, convertToSearchQuery as Rt, useParentCollectionStore as je, useCollectionStore as Lt, useAction as Mt, convertFromSearchQuery as qt, usePasswordPolicy as zt } from "@aeria-ui/core";
3
+ import { INSTANCE_VARS_SYMBOL as Bt, useScrollObserver as Ye, useBreakpoints as Me, useMask as St, PAGINATION_PER_PAGE_DEFAULTS as wt, API_URL as ft, request as Tt, useDebounce as vt, convertToSearchQuery as jt, useParentCollectionStore as je, useCollectionStore as Rt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as qt } from "@aeria-ui/core";
4
+ import { arraysIntersect as yt, deepClone as Ae, getReferenceProperty as _e, freshItem as zt, isRequired as Ft, evaluateCondition as Qe, deepMerge as Le } from "@aeriajs/common";
5
+ import { useStore as ie, getStoreId as qe, useParentStore as Ue, STORE_ID as ze, getGlobalStateManager as Ke } from "@aeria-ui/state-management";
6
6
  import { useRouter as Be } from "vue-router";
7
- import { convertConditionToQuery as Ft, isDocumentComplete as Ut, getObjectKey as Et } from "@aeria-ui/utils";
8
- const Ht = ["onClick"], Dt = { key: 0 }, Qt = {
7
+ import { convertConditionToQuery as Et, isDocumentComplete as Ut, getObjectKey as Ht } from "@aeria-ui/utils";
8
+ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
9
9
  key: 0,
10
10
  class: "accordion__content"
11
- }, Gt = /* @__PURE__ */ z({
11
+ }, Wt = /* @__PURE__ */ z({
12
12
  __name: "aeria-accordion",
13
13
  props: {
14
14
  enumerate: { type: Boolean },
@@ -16,30 +16,30 @@ const Ht = ["onClick"], Dt = { key: 0 }, Qt = {
16
16
  headers: {}
17
17
  },
18
18
  setup(p) {
19
- const r = x(null), a = (o) => typeof o == "string" ? o : o.title;
20
- return (o, t) => {
19
+ const r = x(null), a = (n) => typeof n == "string" ? n : n.title;
20
+ return (n, o) => {
21
21
  const c = te("clickable");
22
- return n(), l("div", {
22
+ return t(), l("div", {
23
23
  class: G({
24
24
  accordion: !0,
25
- "accordion--padded": !o.noPadding
25
+ "accordion--padded": !n.noPadding
26
26
  })
27
27
  }, [
28
- (n(!0), l(J, null, E(Object.keys(o.$slots).filter((u) => u !== "default"), (u, _) => (n(), l("div", {
28
+ (t(!0), l(J, null, U(Object.keys(n.$slots).filter((u) => u !== "default"), (u, _) => (t(), l("div", {
29
29
  key: u,
30
30
  class: "accordion__slot"
31
31
  }, [
32
- Y((n(), l("div", {
32
+ X((t(), l("div", {
33
33
  class: "accordion__header",
34
34
  onClick: (d) => r.value === u ? r.value = null : r.value = u
35
35
  }, [
36
- o.enumerate ? (n(), l("span", Dt, C(_ + 1) + ". ", 1)) : h("", !0),
37
- H(" " + C(o.headers[u] ? a(o.headers[u]) : e(L)(u)), 1)
38
- ], 8, Ht)), [
36
+ n.enumerate ? (t(), l("span", Qt, C(_ + 1) + ". ", 1)) : h("", !0),
37
+ H(" " + C(n.headers[u] ? a(n.headers[u]) : e(L)(u)), 1)
38
+ ], 8, Dt)), [
39
39
  [c]
40
40
  ]),
41
- r.value === u ? (n(), l("div", Qt, [
42
- I(o.$slots, u, {}, void 0, !0)
41
+ r.value === u ? (t(), l("div", Gt, [
42
+ I(n.$slots, u, {}, void 0, !0)
43
43
  ])) : h("", !0)
44
44
  ]))), 128))
45
45
  ], 2);
@@ -48,52 +48,52 @@ const Ht = ["onClick"], Dt = { key: 0 }, Qt = {
48
48
  });
49
49
  const D = (p, r) => {
50
50
  const a = p.__vccOpts || p;
51
- for (const [o, t] of r)
52
- a[o] = t;
51
+ for (const [n, o] of r)
52
+ a[n] = o;
53
53
  return a;
54
- }, Vl = /* @__PURE__ */ D(Gt, [["__scopeId", "data-v-3ea933d4"]]), Wt = /* @__PURE__ */ z({
54
+ }, Cl = /* @__PURE__ */ D(Wt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ z({
55
55
  __name: "aeria-badge",
56
56
  props: {
57
57
  large: { type: Boolean },
58
58
  alt: { type: Boolean }
59
59
  },
60
60
  setup(p) {
61
- return (r, a) => (n(), l("div", {
62
- class: G(`
63
- badge
64
- ${r.large && "badge--large"}
65
- ${r.alt && "badge--alt"}
66
- `)
61
+ return (r, a) => (t(), l("div", {
62
+ class: G([
63
+ "badge",
64
+ { "badge--large": r.large },
65
+ { "badge--alt": r.alt }
66
+ ])
67
67
  }, [
68
68
  I(r.$slots, "default", {}, void 0, !0)
69
69
  ], 2));
70
70
  }
71
71
  });
72
- const ke = /* @__PURE__ */ D(Wt, [["__scopeId", "data-v-47f92648"]]), Kt = /* @__PURE__ */ z({
72
+ const ke = /* @__PURE__ */ D(Yt, [["__scopeId", "data-v-4cbce7ef"]]), Kt = /* @__PURE__ */ z({
73
73
  __name: "aeria-bare-button",
74
74
  props: {
75
75
  disabled: { type: Boolean }
76
76
  },
77
77
  emits: ["click"],
78
78
  setup(p, { emit: r }) {
79
- const a = p, o = r, t = (c) => {
80
- a.disabled || o("click", c);
79
+ const a = p, n = r, o = (c) => {
80
+ a.disabled || n("click", c);
81
81
  };
82
- return (c, u) => (n(), l("button", {
83
- class: G(`
84
- barebutton
85
- barebutton--${c.disabled ? "disabled" : "enabled"}
86
- `),
87
- onClick: Re(t, ["prevent"])
82
+ return (c, u) => (t(), l("button", {
83
+ class: G([
84
+ "barebutton",
85
+ `barebutton--${c.disabled ? "disabled" : "enabled"}`
86
+ ]),
87
+ onClick: Re(o, ["prevent"])
88
88
  }, [
89
89
  I(c.$slots, "default", {}, void 0, !0)
90
90
  ], 2));
91
91
  }
92
92
  });
93
- const ye = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-39dcc6fc"]]), Xt = ["href"], Yt = {
93
+ const be = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["href"], Jt = {
94
94
  key: 0,
95
95
  "data-component": "icon-label"
96
- }, Jt = /* @__PURE__ */ z({
96
+ }, Zt = /* @__PURE__ */ z({
97
97
  __name: "aeria-icon",
98
98
  props: {
99
99
  icon: {},
@@ -105,48 +105,48 @@ const ye = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-39dcc6fc"]]), Xt = ["hre
105
105
  active: { type: Boolean }
106
106
  },
107
107
  setup(p) {
108
- const r = p, a = typeof r.reactive == "boolean" ? r.reactive : be("iconReactive", !1), o = X(() => {
109
- var t;
110
- return (t = r.icon) != null && t.includes(":") ? r.icon : `regular:${r.icon}`;
108
+ const r = p, a = fe(Bt), n = typeof r.reactive == "boolean" ? r.reactive : fe("iconReactive", !1), o = K(() => {
109
+ var c;
110
+ return (c = r.icon) != null && c.includes(":") ? r.icon : `regular:${r.icon}`;
111
111
  });
112
- return (t, c) => (n(), l("a", {
112
+ return (c, u) => (t(), l("a", {
113
113
  class: G([
114
114
  "icon",
115
- { "icon--reactive": e(a) },
116
- { "icon--active": t.active },
117
- t.$slots.default ? "icon--centered" : "icon--standalone"
115
+ { "icon--reactive": e(n) },
116
+ { "icon--active": c.active },
117
+ c.$slots.default ? "icon--centered" : "icon--standalone"
118
118
  ])
119
119
  }, [
120
120
  B("div", {
121
- class: G(`
122
- icon__icon
123
- ${t.size && `icon__icon--${t.size}`}
124
- ${t.iconRight && "icon__icon--right"}
125
- `)
121
+ class: G([
122
+ "icon__icon",
123
+ { "icon__icon--${size}": !!c.size },
124
+ { "icon__icon--right": c.iconRight }
125
+ ])
126
126
  }, [
127
- (n(), l("svg", U({
127
+ (t(), l("svg", E({
128
128
  width: "24",
129
129
  height: "24",
130
130
  viewBox: "0 0 256 256",
131
131
  "data-component": "icon"
132
132
  }, {
133
- ...t.fill ? { fill: t.fill } : {}
133
+ ...c.fill ? { fill: c.fill } : {}
134
134
  }), [
135
135
  B("use", {
136
- href: `${t.instanceVars.base || "/"}assets/icons.svg#${o.value}`
136
+ href: `${e(a).base || "/"}assets/icons.svg#${o.value}`
137
137
  }, null, 8, Xt)
138
138
  ], 16))
139
139
  ], 2),
140
- t.$slots.default ? (n(), l("div", Yt, [
141
- I(t.$slots, "default", {}, void 0, !0)
140
+ c.$slots.default ? (t(), l("div", Jt, [
141
+ I(c.$slots, "default", {}, void 0, !0)
142
142
  ])) : h("", !0)
143
143
  ], 2));
144
144
  }
145
145
  });
146
- const W = /* @__PURE__ */ D(Jt, [["__scopeId", "data-v-141d44b5"]]), Zt = { class: "button__content" }, Pt = {
146
+ const W = /* @__PURE__ */ D(Zt, [["__scopeId", "data-v-e167487b"]]), Pt = { class: "button__content" }, Nt = {
147
147
  key: 1,
148
148
  class: "button__content"
149
- }, Nt = /* @__PURE__ */ z({
149
+ }, xt = /* @__PURE__ */ z({
150
150
  __name: "aeria-button",
151
151
  props: {
152
152
  size: {},
@@ -158,78 +158,78 @@ const W = /* @__PURE__ */ D(Jt, [["__scopeId", "data-v-141d44b5"]]), Zt = { clas
158
158
  loading: { type: Boolean }
159
159
  },
160
160
  setup(p) {
161
- const r = p, a = be("buttonVariant", r.variant) || "primary", o = (() => {
161
+ const r = p, a = fe("buttonVariant", r.variant) || "primary", n = (() => {
162
162
  switch (!0) {
163
163
  case r.small:
164
164
  return "small";
165
165
  case r.large:
166
166
  return "large";
167
167
  }
168
- return be("buttonSize", r.size) || "medium";
168
+ return fe("buttonSize", r.size) || "medium";
169
169
  })();
170
- return (t, c) => (n(), V(ye, {
171
- class: G(`
172
- button
173
- button--${e(a)}
174
- button--${e(o)}
175
- ${t.loading && "button--loading"}
176
- `),
177
- disabled: t.disabled
170
+ return (o, c) => (t(), V(be, {
171
+ class: G([
172
+ "button",
173
+ `button--${e(a)}`,
174
+ `button--${e(n)}`,
175
+ { "button--loading": o.loading }
176
+ ]),
177
+ disabled: o.disabled
178
178
  }, {
179
179
  default: b(() => [
180
- t.icon ? (n(), V(W, {
180
+ o.icon ? (t(), V(W, {
181
181
  key: 0,
182
- icon: t.icon
182
+ icon: o.icon
183
183
  }, {
184
184
  default: b(() => [
185
- B("div", Zt, [
186
- I(t.$slots, "default", {}, void 0, !0)
185
+ B("div", Pt, [
186
+ I(o.$slots, "default", {}, void 0, !0)
187
187
  ])
188
188
  ]),
189
189
  _: 3
190
- }, 8, ["icon"])) : (n(), l("div", Pt, [
191
- I(t.$slots, "default", {}, void 0, !0)
190
+ }, 8, ["icon"])) : (t(), l("div", Nt, [
191
+ I(o.$slots, "default", {}, void 0, !0)
192
192
  ]))
193
193
  ]),
194
194
  _: 3
195
195
  }, 8, ["class", "disabled"]));
196
196
  }
197
197
  });
198
- const pe = /* @__PURE__ */ D(Nt, [["__scopeId", "data-v-c328251b"]]), xt = { class: "card__picture" }, en = { class: "card__footer" }, tn = { class: "card__footer-upper" }, nn = { class: "card__badge" }, on = /* @__PURE__ */ z({
198
+ const pe = /* @__PURE__ */ D(xt, [["__scopeId", "data-v-96692ab2"]]), en = { class: "card__picture" }, tn = { class: "card__footer" }, nn = { class: "card__footer-upper" }, on = { class: "card__badge" }, an = /* @__PURE__ */ z({
199
199
  __name: "aeria-card",
200
200
  props: {
201
201
  inactive: { type: Boolean },
202
202
  horizontal: { type: Boolean }
203
203
  },
204
204
  setup(p) {
205
- return (r, a) => (n(), l("div", {
206
- class: G(`
207
- card
208
- ${r.inactive && "card--inactive"}
209
- ${r.horizontal && "card--horizontal"}
210
- `)
205
+ return (r, a) => (t(), l("div", {
206
+ class: G([
207
+ "card",
208
+ { "card--inactive": r.inactive },
209
+ { "card--horizontal": r.horizontal }
210
+ ])
211
211
  }, [
212
- B("div", xt, [
212
+ B("div", en, [
213
213
  I(r.$slots, "default", {}, void 0, !0)
214
214
  ]),
215
- B("div", en, [
216
- B("div", tn, [
215
+ B("div", tn, [
216
+ B("div", nn, [
217
217
  B("div", null, [
218
218
  I(r.$slots, "footer", {}, void 0, !0)
219
219
  ]),
220
220
  r.$slots.actions ? I(r.$slots, "actions", { key: 0 }, void 0, !0) : h("", !0)
221
221
  ]),
222
- B("div", nn, [
222
+ B("div", on, [
223
223
  I(r.$slots, "badge", {}, void 0, !0)
224
224
  ])
225
225
  ])
226
226
  ], 2));
227
227
  }
228
228
  });
229
- const an = /* @__PURE__ */ D(on, [["__scopeId", "data-v-c1a322df"]]), ln = { class: "panel__header-left" }, sn = { key: 1 }, rn = {
229
+ const ln = /* @__PURE__ */ D(an, [["__scopeId", "data-v-ebda18bd"]]), sn = { class: "panel__header-left" }, rn = { key: 1 }, un = {
230
230
  key: 2,
231
231
  style: { "margin-left": "auto" }
232
- }, un = /* @__PURE__ */ z({
232
+ }, cn = /* @__PURE__ */ z({
233
233
  __name: "aeria-panel",
234
234
  props: {
235
235
  closeHint: { type: Boolean, default: !1 },
@@ -252,68 +252,68 @@ const an = /* @__PURE__ */ D(on, [["__scopeId", "data-v-c1a322df"]]), ln = { cla
252
252
  },
253
253
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
254
254
  setup(p, { emit: r }) {
255
- const a = p, o = r, t = x(a.collapsed), c = x(null), { reachedEnd: u } = Xe(c), _ = () => {
256
- o("update:modelValue", !1), o("close");
255
+ const a = p, n = r, o = x(a.collapsed), c = x(null), { reachedEnd: u } = Ye(c), _ = () => {
256
+ n("update:modelValue", !1), n("close");
257
257
  }, d = () => {
258
- o("overlayClick");
258
+ n("overlayClick");
259
259
  }, $ = (s) => {
260
- o("update:collapsed", s), t.value = s;
260
+ n("update:collapsed", s), o.value = s;
261
261
  };
262
262
  return (s, f) => {
263
263
  const k = te("clickable"), v = te("loading"), O = te("overlay");
264
- return s.modelValue ? Y((n(), l("div", {
264
+ return s.modelValue ? X((t(), l("div", {
265
265
  key: 0,
266
- class: G(`
267
- panel
268
- ${s.fixedRight && "panel--fixed"}
269
- `)
266
+ class: G([
267
+ "panel",
268
+ { "panel--fixed": s.fixedRight }
269
+ ])
270
270
  }, [
271
- (n(), V(he(
271
+ (t(), V(he(
272
272
  s.float || s.fixedRight ? "dialog" : "div"
273
273
  ), {
274
274
  "data-component": "panel",
275
- class: G(`
276
- aeria-surface
277
- panel__content
278
- ${s.float && "panel__content--float"}
279
- ${s.bordered && "panel__content--bordered"}
280
- ${s.fixedRight && "panel__content--fixed-right"}
281
- ${s.transparent && "panel__content--transparent"}
282
- ${s.transparentMobile && "panel__content--transparent-mobile"}
283
- ${s.outerHeader && "panel__content--outer-header"}
284
- `),
275
+ class: G([
276
+ "aeria-surface",
277
+ "panel__content",
278
+ { "panel__content--float": s.float },
279
+ { "panel__content--bordered": s.bordered },
280
+ { "panel__content--fixed-right": s.fixedRight },
281
+ { "panel__content--transparent": s.transparent },
282
+ { "panel__content--transparent-mobile": s.transparentMobile },
283
+ { "panel__content--outer-header": s.outerHeader }
284
+ ]),
285
285
  onClick: f[2] || (f[2] = (i) => i.stopPropagation())
286
286
  }, {
287
287
  default: b(() => [
288
- s.$slots.header || s.title ? (n(), l("div", {
288
+ s.$slots.header || s.title ? (t(), l("div", {
289
289
  key: 0,
290
- class: G(`
291
- panel__header
292
- ${t.value && "panel__header--collapsed"}
293
- ${s.outerHeader && "panel__header--outer"}
294
- `)
290
+ class: G([
291
+ "panel__header",
292
+ { "panel__header--collapsed": o.value },
293
+ { "panel__header--outer": s.outerHeader }
294
+ ])
295
295
  }, [
296
- B("div", ln, [
297
- s.$slots.header ? I(s.$slots, "header", { key: 0 }, void 0, !0) : s.title ? (n(), l("div", sn, C(s.title), 1)) : h("", !0),
298
- s.$slots.extra ? (n(), l("div", rn, [
296
+ B("div", sn, [
297
+ s.$slots.header ? I(s.$slots, "header", { key: 0 }, void 0, !0) : s.title ? (t(), l("div", rn, C(s.title), 1)) : h("", !0),
298
+ s.$slots.extra ? (t(), l("div", un, [
299
299
  I(s.$slots, "extra", {}, void 0, !0)
300
300
  ])) : h("", !0)
301
301
  ]),
302
- s.collapsible && t.value ? Y((n(), V(W, {
302
+ s.collapsible && o.value ? X((t(), V(W, {
303
303
  key: 0,
304
304
  reactive: "",
305
305
  icon: "plus",
306
- onClick: f[0] || (f[0] = (i) => $(!t.value))
306
+ onClick: f[0] || (f[0] = (i) => $(!o.value))
307
307
  }, null, 512)), [
308
308
  [k]
309
- ]) : s.collapsible && !t.value ? Y((n(), V(W, {
309
+ ]) : s.collapsible && !o.value ? X((t(), V(W, {
310
310
  key: 1,
311
311
  reactive: "",
312
312
  icon: "minus",
313
- onClick: f[1] || (f[1] = (i) => $(!t.value))
313
+ onClick: f[1] || (f[1] = (i) => $(!o.value))
314
314
  }, null, 512)), [
315
315
  [k]
316
- ]) : s.closeHint ? Y((n(), V(W, {
316
+ ]) : s.closeHint ? X((t(), V(W, {
317
317
  key: 2,
318
318
  reactive: "",
319
319
  icon: "x",
@@ -322,27 +322,27 @@ const an = /* @__PURE__ */ D(on, [["__scopeId", "data-v-c1a322df"]]), ln = { cla
322
322
  [k]
323
323
  ]) : h("", !0)
324
324
  ], 2)) : h("", !0),
325
- t.value ? h("", !0) : Y((n(), l("div", {
325
+ o.value ? h("", !0) : X((t(), l("div", {
326
326
  key: 1,
327
327
  ref_key: "body",
328
328
  ref: c,
329
329
  tabindex: "0",
330
- class: G(`
331
- panel__body
332
- ${s.fill || "panel__body--padded"}
333
- `)
330
+ class: G([
331
+ "panel__body",
332
+ { "panel__body--padded": s.fill }
333
+ ])
334
334
  }, [
335
335
  I(s.$slots, "default", {}, void 0, !0)
336
336
  ], 2)), [
337
337
  [v, s.loading]
338
338
  ]),
339
- s.$slots.footer ? (n(), l("div", {
339
+ s.$slots.footer ? (t(), l("div", {
340
340
  key: 2,
341
- class: G(`
342
- panel__footer
343
- ${s.fillFooter || "panel__footer--padded"}
344
- ${e(u) || "panel__footer--shadowed"}
345
- `)
341
+ class: G([
342
+ "panel__footer",
343
+ { "panel__footer--padded": s.fillFooter },
344
+ { "panel__footer--shadowed": e(u) }
345
+ ])
346
346
  }, [
347
347
  I(s.$slots, "footer", {}, void 0, !0)
348
348
  ], 2)) : h("", !0)
@@ -360,10 +360,10 @@ const an = /* @__PURE__ */ D(on, [["__scopeId", "data-v-c1a322df"]]), ln = { cla
360
360
  };
361
361
  }
362
362
  });
363
- const Se = /* @__PURE__ */ D(un, [["__scopeId", "data-v-019f101a"]]), cn = { class: "content__body" }, dn = {
363
+ const Se = /* @__PURE__ */ D(cn, [["__scopeId", "data-v-1525707c"]]), dn = { class: "content__body" }, pn = {
364
364
  key: 0,
365
365
  class: "content__section"
366
- }, pn = { class: "content__item" }, _n = /* @__PURE__ */ z({
366
+ }, _n = { class: "content__item" }, mn = /* @__PURE__ */ z({
367
367
  __name: "aeria-context-menu",
368
368
  props: {
369
369
  actions: {},
@@ -376,10 +376,10 @@ const Se = /* @__PURE__ */ D(un, [["__scopeId", "data-v-019f101a"]]), cn = { cla
376
376
  "4fd17073": _.value.x,
377
377
  "4fd17074": _.value.y
378
378
  }));
379
- const a = r, o = x(null), t = x(!1), c = (d) => d == null ? void 0 : d.filter(($) => {
379
+ const a = r, n = x(null), o = x(!1), c = (d) => d == null ? void 0 : d.filter(($) => {
380
380
  if ($.roles) {
381
381
  const s = ie("user");
382
- return ft($.roles, s.currentUser.roles);
382
+ return yt($.roles, s.currentUser.roles);
383
383
  }
384
384
  return !0;
385
385
  }), u = (d, $) => {
@@ -387,61 +387,61 @@ const Se = /* @__PURE__ */ D(un, [["__scopeId", "data-v-019f101a"]]), cn = { cla
387
387
  d.click && d.click(s), a("actionClick", {
388
388
  action: d,
389
389
  subject: s
390
- }), t.value = !1;
391
- }, _ = X(() => {
392
- if (!o.value)
390
+ }), o.value = !1;
391
+ }, _ = K(() => {
392
+ if (!n.value)
393
393
  return {
394
394
  x: 0,
395
395
  y: 0
396
396
  };
397
- const d = o.value.getBoundingClientRect().top, $ = o.value.getBoundingClientRect().left, s = o.value.offsetHeight;
397
+ const d = n.value.getBoundingClientRect().top, $ = n.value.getBoundingClientRect().left, s = n.value.offsetHeight;
398
398
  return {
399
- _: t.value,
399
+ _: o.value,
400
400
  x: Math.floor($) + "px",
401
401
  y: Math.floor(d + s) + "px"
402
402
  };
403
403
  });
404
404
  return (d, $) => {
405
405
  const s = te("overlay");
406
- return n(), l(J, null, [
407
- Object.keys(d.$slots).some((f) => f !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (n(), l("div", {
406
+ return t(), l(J, null, [
407
+ Object.keys(d.$slots).some((f) => f !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
408
408
  key: 0,
409
409
  ref_key: "contextmenu",
410
- ref: o,
410
+ ref: n,
411
411
  class: "contextmenu"
412
412
  }, [
413
413
  B("a", {
414
414
  class: "contextmenu__trigger",
415
- onClick: $[0] || ($[0] = (f) => t.value = !0)
415
+ onClick: $[0] || ($[0] = (f) => o.value = !0)
416
416
  }, [
417
417
  I(d.$slots, "default", de(Ve({
418
- visible: t.value
418
+ visible: o.value
419
419
  })), void 0, !0)
420
420
  ])
421
421
  ], 512)) : h("", !0),
422
- t.value ? (n(), V(Ge, {
422
+ o.value ? (t(), V(Ge, {
423
423
  key: 1,
424
424
  to: "main"
425
425
  }, [
426
- Y((n(), V(Se, {
427
- modelValue: t.value,
428
- "onUpdate:modelValue": $[4] || ($[4] = (f) => t.value = f),
426
+ X((t(), V(Se, {
427
+ modelValue: o.value,
428
+ "onUpdate:modelValue": $[4] || ($[4] = (f) => o.value = f),
429
429
  fill: "",
430
430
  bordered: "",
431
431
  class: "content",
432
432
  style: { "--panel-min-width": "0" }
433
433
  }, {
434
434
  default: b(() => [
435
- B("div", cn, [
436
- d.$slots.header ? (n(), l("div", dn, [
435
+ B("div", dn, [
436
+ d.$slots.header ? (t(), l("div", pn, [
437
437
  I(d.$slots, "header", {}, void 0, !0)
438
438
  ])) : h("", !0),
439
- Object.keys(d.$slots).filter((f) => !["default", "extra", "header"].includes(f)).length > 0 ? (n(), l("div", {
439
+ Object.keys(d.$slots).filter((f) => !["default", "extra", "header"].includes(f)).length > 0 ? (t(), l("div", {
440
440
  key: 1,
441
441
  class: "content__section",
442
- onClick: $[1] || ($[1] = (f) => t.value = !1)
442
+ onClick: $[1] || ($[1] = (f) => o.value = !1)
443
443
  }, [
444
- (n(!0), l(J, null, E(Object.keys(d.$slots).filter((f) => !["default", "extra", "header"].includes(f)), (f, k) => (n(), V(ye, {
444
+ (t(!0), l(J, null, U(Object.keys(d.$slots).filter((f) => !["default", "extra", "header"].includes(f)), (f, k) => (t(), V(be, {
445
445
  key: `slot-${k}`,
446
446
  class: "content__item content__item--reactive"
447
447
  }, {
@@ -451,18 +451,18 @@ const Se = /* @__PURE__ */ D(un, [["__scopeId", "data-v-019f101a"]]), cn = { cla
451
451
  _: 2
452
452
  }, 1024))), 128))
453
453
  ])) : h("", !0),
454
- d.actions !== void 0 && d.actions.length > 0 ? (n(), l("div", {
454
+ d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
455
455
  key: 2,
456
456
  class: "content__section",
457
- onClick: $[2] || ($[2] = (f) => t.value = !1)
457
+ onClick: $[2] || ($[2] = (f) => o.value = !1)
458
458
  }, [
459
- (n(!0), l(J, null, E(c(d.actions), (f, k) => (n(), V(ye, {
459
+ (t(!0), l(J, null, U(c(d.actions), (f, k) => (t(), V(be, {
460
460
  key: `action-${k}`,
461
461
  class: "content__item content__item--reactive",
462
462
  onClick: (v) => u(f, d.subject)
463
463
  }, {
464
464
  default: b(() => [
465
- f.icon ? (n(), V(W, {
465
+ f.icon ? (t(), V(W, {
466
466
  key: 0,
467
467
  icon: f.icon
468
468
  }, {
@@ -475,12 +475,12 @@ const Se = /* @__PURE__ */ D(un, [["__scopeId", "data-v-019f101a"]]), cn = { cla
475
475
  _: 2
476
476
  }, 1032, ["onClick"]))), 128))
477
477
  ])) : h("", !0),
478
- d.$slots.extra ? (n(), l("div", {
478
+ d.$slots.extra ? (t(), l("div", {
479
479
  key: 3,
480
480
  class: "content__section",
481
- onClick: $[3] || ($[3] = (f) => t.value = !1)
481
+ onClick: $[3] || ($[3] = (f) => o.value = !1)
482
482
  }, [
483
- B("div", pn, [
483
+ B("div", _n, [
484
484
  d.$slots.extra ? I(d.$slots, "extra", { key: 0 }, void 0, !0) : h("", !0)
485
485
  ])
486
486
  ])) : h("", !0)
@@ -493,7 +493,7 @@ const Se = /* @__PURE__ */ D(un, [["__scopeId", "data-v-019f101a"]]), cn = { cla
493
493
  {
494
494
  layer: d.overlayLayer,
495
495
  click: () => {
496
- t.value = !1;
496
+ o.value = !1;
497
497
  }
498
498
  },
499
499
  void 0,
@@ -505,47 +505,47 @@ const Se = /* @__PURE__ */ D(un, [["__scopeId", "data-v-019f101a"]]), cn = { cla
505
505
  };
506
506
  }
507
507
  });
508
- const Ie = /* @__PURE__ */ D(_n, [["__scopeId", "data-v-3fa3b32f"]]), mn = { class: "info__content" }, fn = /* @__PURE__ */ z({
508
+ const Ie = /* @__PURE__ */ D(mn, [["__scopeId", "data-v-3fa3b32f"]]), fn = { class: "info__content" }, vn = /* @__PURE__ */ z({
509
509
  __name: "aeria-info",
510
510
  props: {
511
511
  where: { default: "top" }
512
512
  },
513
513
  setup(p) {
514
- const r = ze(), a = x(!1);
515
- return (o, t) => e(r).md ? (n(), l("div", {
514
+ const r = Me(), a = x(!1);
515
+ return (n, o) => e(r).md ? (t(), l("div", {
516
516
  key: 0,
517
517
  class: "info",
518
- onMouseleave: t[1] || (t[1] = (c) => a.value = !1)
518
+ onMouseleave: o[1] || (o[1] = (c) => a.value = !1)
519
519
  }, [
520
- a.value ? (n(), l("div", {
520
+ a.value ? (t(), l("div", {
521
521
  key: 0,
522
- class: G(`
523
- info__bubble
524
- info__bubble--${o.where}
525
- `)
522
+ class: G([
523
+ "info__bubble",
524
+ `info__bubble--${n.where}`
525
+ ])
526
526
  }, [
527
- B("div", mn, [
528
- I(o.$slots, "text", {}, void 0, !0)
527
+ B("div", fn, [
528
+ I(n.$slots, "text", {}, void 0, !0)
529
529
  ])
530
530
  ], 2)) : h("", !0),
531
531
  B("div", {
532
- onMouseover: t[0] || (t[0] = (c) => a.value = !0)
532
+ onMouseover: o[0] || (o[0] = (c) => a.value = !0)
533
533
  }, [
534
- I(o.$slots, "default", {}, void 0, !0)
534
+ I(n.$slots, "default", {}, void 0, !0)
535
535
  ], 32)
536
- ], 32)) : I(o.$slots, "default", { key: 1 }, void 0, !0);
536
+ ], 32)) : I(n.$slots, "default", { key: 1 }, void 0, !0);
537
537
  }
538
538
  });
539
- const vn = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-7e2a5440"]]), yn = { class: "input" }, bn = {
539
+ const yn = /* @__PURE__ */ D(vn, [["__scopeId", "data-v-15a38847"]]), bn = { class: "input" }, hn = {
540
540
  key: 0,
541
541
  class: "input__label"
542
- }, hn = {
542
+ }, $n = {
543
543
  key: 1,
544
544
  class: "input__hint"
545
- }, $n = ["placeholder", "readonly", "value"], gn = ["value"], kn = {
545
+ }, gn = ["placeholder", "readonly", "value"], kn = ["value"], Vn = {
546
546
  key: 1,
547
547
  class: "input__clipboard"
548
- }, Vn = /* @__PURE__ */ z({
548
+ }, Cn = /* @__PURE__ */ z({
549
549
  __name: "aeria-input",
550
550
  props: {
551
551
  modelValue: {},
@@ -559,18 +559,18 @@ const vn = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-7e2a5440"]]), yn = { cla
559
559
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
560
560
  setup(p, { emit: r }) {
561
561
  var Z;
562
- const a = p, o = r, t = a.property || {}, c = "icon" in t || "inputType" in t && t.inputType === "search", u = be("searchOnly", !1), _ = be("innerInputLabel", !1), d = !u && (a.readOnly || t.readOnly), $ = (g) => (o("clipboardCopy", g), navigator.clipboard.writeText(g)), s = be("inputVariant", a.variant) || "normal", f = Object.assign(Object.assign({}, a), {
562
+ const a = p, n = r, o = a.property || {}, c = "icon" in o || "inputType" in o && o.inputType === "search", u = fe("searchOnly", !1), _ = fe("innerInputLabel", !1), d = !u && (a.readOnly || o.readOnly), $ = (g) => (n("clipboardCopy", g), navigator.clipboard.writeText(g)), s = fe("inputVariant", a.variant) || "normal", f = Object.assign(Object.assign({}, a), {
563
563
  name: a.propertyName,
564
564
  readonly: d,
565
565
  type: (() => {
566
- if ("type" in t)
567
- switch (t.type) {
566
+ if ("type" in o)
567
+ switch (o.type) {
568
568
  case "number":
569
569
  case "integer":
570
570
  return "number";
571
571
  }
572
- if (t.inputType)
573
- return t.inputType;
572
+ if (o.inputType)
573
+ return o.inputType;
574
574
  switch (typeof a.modelValue) {
575
575
  case "string":
576
576
  return "text";
@@ -580,9 +580,9 @@ const vn = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-7e2a5440"]]), yn = { cla
580
580
  return "text";
581
581
  }
582
582
  })(),
583
- placeholder: _ ? t.description || a.propertyName : t.placeholder
583
+ placeholder: _ ? o.description || a.propertyName : o.placeholder
584
584
  });
585
- "type" in t && ((t.type === "number" || t.type === "integer") && (t.minimum && (f.min = t.minimum), t.exclusiveMinimum && (f.min = t.exclusiveMinimum + 1), t.maximum && (f.max = t.maximum), t.exclusiveMaximum && (f.max = t.exclusiveMaximum - 1)), t.type === "string" && ((t.format === "date" || t.format === "date-time") && (f.type = !u && t.format === "date-time" ? "datetime-local" : "date"), f.minlength = t.minLength, f.maxlength = t.maxLength)), f.type === "text" && u && (f.type = "search"), We(() => {
585
+ "type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (f.min = o.minimum), o.exclusiveMinimum && (f.min = o.exclusiveMinimum + 1), o.maximum && (f.max = o.maximum), o.exclusiveMaximum && (f.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (f.type = !u && o.format === "date-time" ? "datetime-local" : "date"), f.minlength = o.minLength, f.maxlength = o.maxLength)), f.type === "text" && u && (f.type = "search"), We(() => {
586
586
  a.modelValue !== null && q(a.modelValue);
587
587
  });
588
588
  const k = (g) => {
@@ -598,7 +598,7 @@ const vn = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-7e2a5440"]]), yn = { cla
598
598
  default:
599
599
  throw new Error();
600
600
  }
601
- }, v = x(""), O = ((Z = a.property) == null ? void 0 : Z.type) === "string" && a.property.mask ? wt(a.property.mask) : null;
601
+ }, v = x(""), O = ((Z = a.property) == null ? void 0 : Z.type) === "string" && a.property.mask ? St(a.property.mask) : null;
602
602
  re(() => a.modelValue, (g) => {
603
603
  v.value = (() => {
604
604
  if (O)
@@ -641,76 +641,76 @@ const vn = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-7e2a5440"]]), yn = { cla
641
641
  return i(g);
642
642
  }
643
643
  })();
644
- o("input", F), o("update:modelValue", F);
645
- }, K = (g) => {
644
+ n("input", F), n("update:modelValue", F);
645
+ }, Y = (g) => {
646
646
  const F = g.target.value;
647
647
  v.value = F, q(F);
648
648
  };
649
649
  return (g, F) => {
650
650
  const le = te("focus"), w = te("clickable");
651
- return n(), l("label", yn, [
652
- e(_) ? h("", !0) : (n(), l("div", bn, [
651
+ return t(), l("label", bn, [
652
+ e(_) ? h("", !0) : (t(), l("div", hn, [
653
653
  g.$slots.default ? I(g.$slots, "default", { key: 0 }, void 0, !0) : I(g.$slots, "description", { key: 1 }, void 0, !0)
654
654
  ])),
655
- g.$slots.hint ? (n(), l("div", hn, [
655
+ g.$slots.hint ? (t(), l("div", $n, [
656
656
  I(g.$slots, "hint", {}, void 0, !0)
657
657
  ])) : h("", !0),
658
- "element" in e(t) && e(t).element === "textarea" ? (n(), l("div", {
658
+ "element" in e(o) && e(o).element === "textarea" ? (t(), l("div", {
659
659
  key: 2,
660
- class: G(`
661
- input__container
662
- input__container--textarea
663
- input__container--${e(s)}
664
- `)
660
+ class: G([
661
+ "input__container",
662
+ "input__container--textarea",
663
+ `input__container--${e(s)}`
664
+ ])
665
665
  }, [
666
- Y(B("textarea", {
666
+ X(B("textarea", {
667
667
  placeholder: e(f).placeholder,
668
668
  readonly: e(f).readonly,
669
669
  value: g.modelValue,
670
- class: G(`
671
- input__textarea
672
- input__input--${e(s)}
673
- `),
674
- onInput: K
675
- }, null, 42, $n), [
676
- [le, e(t).focus]
670
+ class: G([
671
+ "input__textarea",
672
+ `input__input--${e(s)}`
673
+ ]),
674
+ onInput: Y
675
+ }, null, 42, gn), [
676
+ [le, e(o).focus]
677
677
  ])
678
- ], 2)) : (n(), l("div", {
678
+ ], 2)) : (t(), l("div", {
679
679
  key: 3,
680
- class: G(`
681
- input__container
682
- input__container--${e(s)}
683
- `)
680
+ class: G([
681
+ "input__container",
682
+ `input__container--${e(s)}`
683
+ ])
684
684
  }, [
685
- Y(B("input", U(e(f), {
685
+ X(B("input", E(e(f), {
686
686
  value: v.value,
687
687
  "data-component": "input",
688
- class: `
689
- input__input
690
- input__input--${e(s)}
691
- ${e(c) && "input__input--icon"}
692
- ${e(d) && "input__input--readOnly"}
693
- `,
694
- onInput: K,
695
- onChange: F[0] || (F[0] = (ee) => o("change", ee))
696
- }), null, 16, gn), [
697
- [le, e(t).focus]
688
+ class: [
689
+ "input__input",
690
+ `input__input--${e(s)}`,
691
+ { "input__input--icon": e(c) },
692
+ { "input__input--readOnly": e(d) }
693
+ ],
694
+ onInput: Y,
695
+ onChange: F[0] || (F[0] = (ee) => n("change", ee))
696
+ }), null, 16, kn), [
697
+ [le, e(o).focus]
698
698
  ]),
699
- e(c) ? (n(), V(W, {
699
+ e(c) ? (t(), V(W, {
700
700
  key: 0,
701
- icon: e(t).icon || "magnifying-glass",
702
- class: G(`
703
- input__icon
704
- input__icon--${e(s)}
705
- `)
701
+ icon: e(o).icon || "magnifying-glass",
702
+ class: G([
703
+ "input__icon",
704
+ `input__icon--${e(s)}`
705
+ ])
706
706
  }, null, 8, ["icon", "class"])) : h("", !0),
707
- e(d) ? (n(), l("div", kn, [
708
- M(vn, null, {
707
+ e(d) ? (t(), l("div", Vn, [
708
+ M(yn, null, {
709
709
  text: b(() => F[2] || (F[2] = [
710
710
  H("Copiar")
711
711
  ])),
712
712
  default: b(() => [
713
- Y(M(W, {
713
+ X(M(W, {
714
714
  reactive: "",
715
715
  icon: "clipboard",
716
716
  onClick: F[1] || (F[1] = Re((ee) => $(String(g.modelValue || "")), ["prevent"]))
@@ -726,10 +726,10 @@ const vn = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-7e2a5440"]]), yn = { cla
726
726
  };
727
727
  }
728
728
  });
729
- const Ce = /* @__PURE__ */ D(Vn, [["__scopeId", "data-v-7fb53138"]]), Cn = {
729
+ const Ce = /* @__PURE__ */ D(Cn, [["__scopeId", "data-v-b4ebd684"]]), On = {
730
730
  key: 1,
731
731
  value: ""
732
- }, On = ["value", "data-selected"], An = /* @__PURE__ */ z({
732
+ }, An = ["value", "data-selected"], In = /* @__PURE__ */ z({
733
733
  __name: "aeria-select",
734
734
  props: {
735
735
  modelValue: {},
@@ -744,27 +744,27 @@ const Ce = /* @__PURE__ */ D(Vn, [["__scopeId", "data-v-7fb53138"]]), Cn = {
744
744
  },
745
745
  emits: ["update:modelValue", "change"],
746
746
  setup(p, { emit: r }) {
747
- const a = p, o = r, t = x(null), c = a.property, u = (s) => {
748
- o("update:modelValue", s), o("change", s);
747
+ const a = p, n = r, o = x(null), c = a.property, u = (s) => {
748
+ n("update:modelValue", s), n("change", s);
749
749
  }, _ = (s) => {
750
750
  s === "" || s === null ? u(null) : a.booleanRef ? u(s === "true") : u(s);
751
- }, d = (s) => Array.isArray(a.modelValue) ? a.modelValue.includes(s) : a.modelValue === s, $ = X(() => a.multiple ? typeof a.multiple == "number" ? a.multiple : 5 : 1);
751
+ }, d = (s) => Array.isArray(a.modelValue) ? a.modelValue.includes(s) : a.modelValue === s, $ = K(() => a.multiple ? typeof a.multiple == "number" ? a.multiple : 5 : 1);
752
752
  return a.multiple && re(() => a.modelValue, (s) => {
753
753
  var k;
754
- if (!t.value)
754
+ if (!o.value)
755
755
  return;
756
- const f = t.value.querySelector('option[data-selected="true"]');
757
- f && f.removeAttribute("data-selected"), (k = t.value.querySelector(`option[value="${s}"]`)) == null || k.setAttribute("data-selected", "true");
758
- }), (s, f) => s.readOnly ? (n(), V(Ce, {
756
+ const f = o.value.querySelector('option[data-selected="true"]');
757
+ f && f.removeAttribute("data-selected"), (k = o.value.querySelector(`option[value="${s}"]`)) == null || k.setAttribute("data-selected", "true");
758
+ }), (s, f) => s.readOnly ? (t(), V(Ce, {
759
759
  key: 1,
760
760
  "read-only": "",
761
761
  "model-value": s.modelValue
762
- }, null, 8, ["model-value"])) : (n(), l("select", U({ key: 0 }, {
762
+ }, null, 8, ["model-value"])) : (t(), l("select", E({ key: 0 }, {
763
763
  size: $.value,
764
764
  value: s.modelValue
765
765
  }, {
766
766
  ref_key: "select",
767
- ref: t,
767
+ ref: o,
768
768
  class: {
769
769
  select: !0,
770
770
  "select--multiple": !!$.value,
@@ -772,27 +772,27 @@ const Ce = /* @__PURE__ */ D(Vn, [["__scopeId", "data-v-7fb53138"]]), Cn = {
772
772
  },
773
773
  onChange: f[0] || (f[0] = (k) => _(k.target.value))
774
774
  }), [
775
- e(c) && e(c).icon ? (n(), V(W, {
775
+ e(c) && e(c).icon ? (t(), V(W, {
776
776
  key: 0,
777
777
  icon: e(c).icon
778
778
  }, null, 8, ["icon"])) : h("", !0),
779
- a.multiple ? h("", !0) : (n(), l("option", Cn, C(e(L)("none")), 1)),
780
- (n(!0), l(J, null, E(e(c) && "enum" in e(c) ? e(c).enum : [], (k) => {
779
+ a.multiple ? h("", !0) : (t(), l("option", On, C(e(L)("none")), 1)),
780
+ (t(!0), l(J, null, U(e(c) && "enum" in e(c) ? e(c).enum : [], (k) => {
781
781
  var v;
782
- return n(), l("option", {
782
+ return t(), l("option", {
783
783
  key: String(k),
784
784
  value: k,
785
785
  "data-selected": d(k)
786
- }, C((v = e(c)) != null && v.translate ? e(L)(k) : k), 9, On);
786
+ }, C((v = e(c)) != null && v.translate ? e(L)(k) : k), 9, An);
787
787
  }), 128)),
788
788
  I(s.$slots, "default", {}, void 0, !0)
789
789
  ], 16));
790
790
  }
791
791
  });
792
- const Ye = /* @__PURE__ */ D(An, [["__scopeId", "data-v-86a1e910"]]), In = { class: "pagination" }, Bn = { class: "pagination__arrows" }, Sn = ["value"], wn = {
792
+ const Xe = /* @__PURE__ */ D(In, [["__scopeId", "data-v-86a1e910"]]), Bn = { class: "pagination" }, Sn = { class: "pagination__arrows" }, wn = ["value"], Tn = {
793
793
  key: 0,
794
794
  class: "pagination__summary"
795
- }, Tn = /* @__PURE__ */ z({
795
+ }, jn = /* @__PURE__ */ z({
796
796
  __name: "aeria-pagination",
797
797
  props: {
798
798
  pagination: {},
@@ -800,40 +800,40 @@ const Ye = /* @__PURE__ */ D(An, [["__scopeId", "data-v-86a1e910"]]), In = { cla
800
800
  },
801
801
  emits: ["paginate"],
802
802
  setup(p, { emit: r }) {
803
- const a = p, o = r, t = X({
803
+ const a = p, n = r, o = K({
804
804
  get: () => Math.floor(a.pagination.offset / a.pagination.limit),
805
805
  set: ($) => {
806
806
  a.pagination.offset = $ * a.pagination.limit;
807
807
  }
808
- }), c = X({
808
+ }), c = K({
809
809
  get: () => a.pagination.limit,
810
810
  set: ($) => {
811
811
  a.pagination.limit = Number($);
812
812
  }
813
- }), u = x(t.value ? t.value + 1 : 1), _ = X(() => Math.ceil(a.pagination.recordsTotal / a.pagination.limit)), d = ($) => {
814
- t.value = $ === "previous" ? t.value - 1 : t.value + 1;
813
+ }), u = x(o.value ? o.value + 1 : 1), _ = K(() => Math.ceil(a.pagination.recordsTotal / a.pagination.limit)), d = ($) => {
814
+ o.value = $ === "previous" ? o.value - 1 : o.value + 1;
815
815
  };
816
816
  return re([
817
- t,
817
+ o,
818
818
  c
819
819
  ], ([$]) => {
820
- u.value = $ + 1, o("paginate", {
821
- offset: t.value * c.value,
820
+ u.value = $ + 1, n("paginate", {
821
+ offset: o.value * c.value,
822
822
  limit: c.value
823
823
  });
824
- }), ($, s) => (n(), l("div", In, [
825
- B("div", Bn, [
826
- M(ye, {
827
- disabled: t.value === 0,
828
- onClick: s[0] || (s[0] = (f) => t.value = 0)
824
+ }), ($, s) => (t(), l("div", Bn, [
825
+ B("div", Sn, [
826
+ M(be, {
827
+ disabled: o.value === 0,
828
+ onClick: s[0] || (s[0] = (f) => o.value = 0)
829
829
  }, {
830
830
  default: b(() => [
831
831
  M(W, { icon: "caret-double-left" })
832
832
  ]),
833
833
  _: 1
834
834
  }, 8, ["disabled"]),
835
- M(ye, {
836
- disabled: t.value === 0,
835
+ M(be, {
836
+ disabled: o.value === 0,
837
837
  onClick: s[1] || (s[1] = (f) => d("previous"))
838
838
  }, {
839
839
  default: b(() => [
@@ -841,8 +841,8 @@ const Ye = /* @__PURE__ */ D(An, [["__scopeId", "data-v-86a1e910"]]), In = { cla
841
841
  ]),
842
842
  _: 1
843
843
  }, 8, ["disabled"]),
844
- M(ye, {
845
- disabled: t.value === _.value - 1,
844
+ M(be, {
845
+ disabled: o.value === _.value - 1,
846
846
  onClick: s[2] || (s[2] = (f) => d("next"))
847
847
  }, {
848
848
  default: b(() => [
@@ -850,16 +850,16 @@ const Ye = /* @__PURE__ */ D(An, [["__scopeId", "data-v-86a1e910"]]), In = { cla
850
850
  ]),
851
851
  _: 1
852
852
  }, 8, ["disabled"]),
853
- M(ye, {
854
- disabled: t.value === _.value - 1,
855
- onClick: s[3] || (s[3] = (f) => t.value = _.value - 1)
853
+ M(be, {
854
+ disabled: o.value === _.value - 1,
855
+ onClick: s[3] || (s[3] = (f) => o.value = _.value - 1)
856
856
  }, {
857
857
  default: b(() => [
858
858
  M(W, { icon: "caret-double-right" })
859
859
  ]),
860
860
  _: 1
861
861
  }, 8, ["disabled"]),
862
- M(Ye, {
862
+ M(Xe, {
863
863
  modelValue: c.value,
864
864
  "onUpdate:modelValue": s[4] || (s[4] = (f) => c.value = f),
865
865
  property: {
@@ -869,18 +869,18 @@ const Ye = /* @__PURE__ */ D(An, [["__scopeId", "data-v-86a1e910"]]), In = { cla
869
869
  class: "pagination__control"
870
870
  }, {
871
871
  default: b(() => [
872
- (n(!0), l(J, null, E(e(Tt), (f) => (n(), l("option", {
872
+ (t(!0), l(J, null, U(e(wt), (f) => (t(), l("option", {
873
873
  key: `limit-${f}`,
874
874
  value: f
875
- }, C(f), 9, Sn))), 128))
875
+ }, C(f), 9, wn))), 128))
876
876
  ]),
877
877
  _: 1
878
878
  }, 8, ["modelValue"])
879
879
  ]),
880
- $.noSummary ? h("", !0) : (n(), l("div", wn, [
880
+ $.noSummary ? h("", !0) : (t(), l("div", Tn, [
881
881
  H(C(e(L)("Page")) + " ", 1),
882
- (n(), V(Ce, {
883
- key: t.value,
882
+ (t(), V(Ce, {
883
+ key: o.value,
884
884
  modelValue: u.value,
885
885
  "onUpdate:modelValue": s[5] || (s[5] = (f) => u.value = f),
886
886
  property: {
@@ -889,7 +889,7 @@ const Ye = /* @__PURE__ */ D(An, [["__scopeId", "data-v-86a1e910"]]), In = { cla
889
889
  },
890
890
  style: { height: "100%" },
891
891
  onChange: s[6] || (s[6] = (f) => {
892
- t.value = u.value === 0 ? 0 : u.value - 1;
892
+ o.value = u.value === 0 ? 0 : u.value - 1;
893
893
  })
894
894
  }, null, 8, ["modelValue"])),
895
895
  B("span", null, C(e(L)("of")) + " " + C(_.value), 1)
@@ -897,10 +897,10 @@ const Ye = /* @__PURE__ */ D(An, [["__scopeId", "data-v-86a1e910"]]), In = { cla
897
897
  ]));
898
898
  }
899
899
  });
900
- const jn = /* @__PURE__ */ D(Tn, [["__scopeId", "data-v-ae7235de"]]), Rn = { class: "checkbox__text" }, Ln = ["innerHTML"], Mn = { class: "checkbox__hint" }, qn = ["innerHTML"], zn = {
900
+ const Rn = /* @__PURE__ */ D(jn, [["__scopeId", "data-v-ae7235de"]]), Ln = { class: "checkbox__text" }, Mn = ["innerHTML"], qn = { class: "checkbox__hint" }, zn = ["innerHTML"], Fn = {
901
901
  inheritAttrs: !1
902
- }, Fn = /* @__PURE__ */ z({
903
- ...zn,
902
+ }, En = /* @__PURE__ */ z({
903
+ ...Fn,
904
904
  __name: "aeria-checkbox",
905
905
  props: {
906
906
  modelValue: {},
@@ -914,34 +914,34 @@ const jn = /* @__PURE__ */ D(Tn, [["__scopeId", "data-v-ae7235de"]]), Rn = { cla
914
914
  },
915
915
  emits: ["update:modelValue", "change"],
916
916
  setup(p, { emit: r }) {
917
- const a = p, o = a.property, t = a.readOnly || (o == null ? void 0 : o.readOnly), c = (() => {
918
- if (o && "type" in o)
919
- switch (o.type) {
917
+ const a = p, n = a.property, o = a.readOnly || (n == null ? void 0 : n.readOnly), c = (() => {
918
+ if (n && "type" in n)
919
+ switch (n.type) {
920
920
  case "array":
921
921
  case "boolean":
922
922
  return "checkbox";
923
923
  }
924
924
  return "radio";
925
- })(), u = r, _ = a.value || !1, d = X({
925
+ })(), u = r, _ = a.value || !1, d = K({
926
926
  get: () => {
927
927
  var s;
928
- if (o) {
929
- if ("type" in o && o.type === "boolean")
928
+ if (n) {
929
+ if ("type" in n && n.type === "boolean")
930
930
  return !!a.value;
931
- if ("items" in o)
931
+ if ("items" in n)
932
932
  return (s = a.modelValue) == null ? void 0 : s.includes(a.value);
933
933
  }
934
934
  return a.modelValue === a.value;
935
935
  },
936
936
  set: () => {
937
937
  var s;
938
- if (!t) {
939
- if (o) {
940
- if ("type" in o && o.type === "boolean") {
938
+ if (!o) {
939
+ if (n) {
940
+ if ("type" in n && n.type === "boolean") {
941
941
  u("update:modelValue", !a.modelValue);
942
942
  return;
943
943
  }
944
- if ("items" in o) {
944
+ if ("items" in n) {
945
945
  if ((s = a.modelValue) != null && s.includes(_)) {
946
946
  u("update:modelValue", a.modelValue.filter((f) => f !== _));
947
947
  return;
@@ -954,22 +954,22 @@ const jn = /* @__PURE__ */ D(Tn, [["__scopeId", "data-v-ae7235de"]]), Rn = { cla
954
954
  }
955
955
  }
956
956
  }), $ = (s) => {
957
- t && s.preventDefault();
957
+ o && s.preventDefault();
958
958
  };
959
959
  return (s, f) => {
960
960
  var v, O;
961
961
  const k = te("clickable");
962
- return Y((n(), l("label", {
963
- class: G(`
964
- checkbox
965
- ${e(t) && "checkbox--readOnly"}
966
- `)
962
+ return X((t(), l("label", {
963
+ class: G([
964
+ "checkbox",
965
+ { "checkbox--readOnly": e(o) }
966
+ ])
967
967
  }, [
968
- Y(B("input", U({
968
+ X(B("input", E({
969
969
  "onUpdate:modelValue": f[0] || (f[0] = (i) => d.value = i)
970
970
  }, {
971
971
  type: e(c),
972
- readOnly: e(t),
972
+ readOnly: e(o),
973
973
  checked: d.value
974
974
  }, {
975
975
  class: "checkbox__input",
@@ -977,18 +977,18 @@ const jn = /* @__PURE__ */ D(Tn, [["__scopeId", "data-v-ae7235de"]]), Rn = { cla
977
977
  }), null, 16), [
978
978
  [$t, d.value]
979
979
  ]),
980
- B("div", Rn, [
980
+ B("div", Ln, [
981
981
  B("div", null, [
982
- s.$slots.description ? I(s.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (n(), l("div", {
982
+ s.$slots.description ? I(s.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), l("div", {
983
983
  key: 1,
984
- innerHTML: (v = e(o)) != null && v.translate ? e(L)(e(_)) : e(_)
985
- }, null, 8, Ln)) : I(s.$slots, "default", { key: 2 }, void 0, !0)
984
+ innerHTML: (v = e(n)) != null && v.translate ? e(L)(e(_)) : e(_)
985
+ }, null, 8, Mn)) : I(s.$slots, "default", { key: 2 }, void 0, !0)
986
986
  ]),
987
- B("div", Mn, [
988
- s.$slots.hint ? I(s.$slots, "hint", { key: 0 }, void 0, !0) : (O = e(o)) != null && O.hint ? (n(), l("div", {
987
+ B("div", qn, [
988
+ s.$slots.hint ? I(s.$slots, "hint", { key: 0 }, void 0, !0) : (O = e(n)) != null && O.hint ? (t(), l("div", {
989
989
  key: 1,
990
- innerHTML: e(o).hint
991
- }, null, 8, qn)) : h("", !0)
990
+ innerHTML: e(n).hint
991
+ }, null, 8, zn)) : h("", !0)
992
992
  ])
993
993
  ])
994
994
  ], 2)), [
@@ -997,10 +997,10 @@ const jn = /* @__PURE__ */ D(Tn, [["__scopeId", "data-v-ae7235de"]]), Rn = { cla
997
997
  };
998
998
  }
999
999
  });
1000
- const Un = /* @__PURE__ */ D(Fn, [["__scopeId", "data-v-9f012895"]]), En = {
1000
+ const Un = /* @__PURE__ */ D(En, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
1001
1001
  inheritAttrs: !1
1002
- }, Hn = /* @__PURE__ */ z({
1003
- ...En,
1002
+ }, Dn = /* @__PURE__ */ z({
1003
+ ...Hn,
1004
1004
  __name: "aeria-options",
1005
1005
  props: {
1006
1006
  modelValue: {},
@@ -1013,28 +1013,28 @@ const Un = /* @__PURE__ */ D(Fn, [["__scopeId", "data-v-9f012895"]]), En = {
1013
1013
  },
1014
1014
  emits: ["update:modelValue"],
1015
1015
  setup(p, { emit: r }) {
1016
- const a = p, o = r, t = a.readOnly || a.property.readOnly, c = "items" in a.property ? a.property.items.enum : a.property.enum, u = (_) => {
1017
- o("update:modelValue", _);
1016
+ const a = p, n = r, o = a.readOnly || a.property.readOnly, c = "items" in a.property ? a.property.items.enum : a.property.enum, u = (_) => {
1017
+ n("update:modelValue", _);
1018
1018
  };
1019
1019
  return mt(() => {
1020
- a.modelValue || o(
1020
+ a.modelValue || n(
1021
1021
  "update:modelValue",
1022
1022
  "items" in a.property ? [] : ""
1023
1023
  );
1024
- }), (_, d) => (n(), l("div", {
1024
+ }), (_, d) => (t(), l("div", {
1025
1025
  class: "options",
1026
1026
  style: ge(`
1027
1027
  --columns: ${_.columns};
1028
1028
  grid-template-columns: repeat(var(--columns), 1fr);
1029
1029
  `)
1030
1030
  }, [
1031
- (n(!0), l(J, null, E(e(c), ($) => (n(), l("div", {
1031
+ (t(!0), l(J, null, U(e(c), ($) => (t(), l("div", {
1032
1032
  key: `option-${$}`,
1033
1033
  class: "options__checkbox"
1034
1034
  }, [
1035
- M(Un, U({ ref_for: !0 }, {
1035
+ M(Un, E({ ref_for: !0 }, {
1036
1036
  value: $,
1037
- readOnly: e(t),
1037
+ readOnly: e(o),
1038
1038
  property: _.property
1039
1039
  }, {
1040
1040
  "model-value": _.modelValue,
@@ -1044,10 +1044,10 @@ const Un = /* @__PURE__ */ D(Fn, [["__scopeId", "data-v-9f012895"]]), En = {
1044
1044
  ], 4));
1045
1045
  }
1046
1046
  });
1047
- const Dn = /* @__PURE__ */ D(Hn, [["__scopeId", "data-v-bcfc697e"]]), Qn = { class: "switch-wrapper" }, Gn = { key: 1 }, Wn = {
1047
+ const Qn = /* @__PURE__ */ D(Dn, [["__scopeId", "data-v-bcfc697e"]]), Gn = { class: "switch-wrapper" }, Wn = { key: 1 }, Yn = {
1048
1048
  inheritAttrs: !1
1049
1049
  }, Kn = /* @__PURE__ */ z({
1050
- ...Wn,
1050
+ ...Yn,
1051
1051
  __name: "aeria-switch",
1052
1052
  props: {
1053
1053
  modelValue: {},
@@ -1059,42 +1059,42 @@ const Dn = /* @__PURE__ */ D(Hn, [["__scopeId", "data-v-bcfc697e"]]), Qn = { cla
1059
1059
  },
1060
1060
  emits: ["update:modelValue", "change"],
1061
1061
  setup(p, { emit: r }) {
1062
- const a = p, o = r, t = a.property, c = a.readOnly || (t == null ? void 0 : t.readOnly), u = () => {
1063
- c || (o("change", !a.modelValue), o("update:modelValue", !a.modelValue));
1062
+ const a = p, n = r, o = a.property, c = a.readOnly || (o == null ? void 0 : o.readOnly), u = () => {
1063
+ c || (n("change", !a.modelValue), n("update:modelValue", !a.modelValue));
1064
1064
  };
1065
1065
  return (_, d) => {
1066
1066
  var s;
1067
1067
  const $ = te("clickable");
1068
- return n(), l("div", Qn, [
1069
- Y((n(), l("a", {
1070
- class: G(`
1071
- switch
1072
- ${_.modelValue && "switch--active"}
1073
- ${e(c) && "switch--readOnly"}
1074
- `),
1068
+ return t(), l("div", Gn, [
1069
+ X((t(), l("a", {
1070
+ class: G([
1071
+ "switch",
1072
+ { "switch--active": _.modelValue },
1073
+ { "switch--readOnly": e(c) }
1074
+ ]),
1075
1075
  onClick: Re(u, ["stop"])
1076
1076
  }, [
1077
1077
  d[0] || (d[0] = B("div", { class: "switch__slider" }, null, -1)),
1078
1078
  B("div", {
1079
- class: G(`
1080
- switch__dummy
1081
- ${!_.modelValue && "switch__dummy--flex"}
1082
- `)
1079
+ class: G([
1080
+ "switch__dummy",
1081
+ { "switch__dummy--flex": !_.modelValue }
1082
+ ])
1083
1083
  }, null, 2)
1084
1084
  ], 2)), [
1085
1085
  [$, {
1086
1086
  blocked: e(c)
1087
1087
  }]
1088
1088
  ]),
1089
- _.$slots.default ? I(_.$slots, "default", { key: 0 }, void 0, !0) : (n(), l("div", Gn, C(((s = e(t)) == null ? void 0 : s.description) || _.propertyName), 1))
1089
+ _.$slots.default ? I(_.$slots, "default", { key: 0 }, void 0, !0) : (t(), l("div", Wn, C(((s = e(o)) == null ? void 0 : s.description) || _.propertyName), 1))
1090
1090
  ]);
1091
1091
  };
1092
1092
  }
1093
1093
  });
1094
- const Xn = /* @__PURE__ */ D(Kn, [["__scopeId", "data-v-0e3564b6"]]), Yn = { class: "picture" }, Jn = { style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" } }, Zn = ["src", "alt"], Pn = {
1094
+ const Xn = /* @__PURE__ */ D(Kn, [["__scopeId", "data-v-ae45597d"]]), Jn = { class: "picture" }, Zn = { style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" } }, Pn = ["src", "alt"], Nn = {
1095
1095
  key: 0,
1096
1096
  class: "picture__meta"
1097
- }, Nn = ["src"], xn = { key: 5 }, eo = /* @__PURE__ */ z({
1097
+ }, xn = ["src"], eo = { key: 5 }, to = /* @__PURE__ */ z({
1098
1098
  __name: "aeria-picture",
1099
1099
  props: {
1100
1100
  url: {},
@@ -1109,63 +1109,63 @@ const Xn = /* @__PURE__ */ D(Kn, [["__scopeId", "data-v-0e3564b6"]]), Yn = { cla
1109
1109
  meta: {}
1110
1110
  },
1111
1111
  setup(p) {
1112
- const r = p, a = X(() => r.fileId ? `${vt}/file/${r.fileId}/picture` : r.url || r.modelValue), o = x(!1);
1113
- return (t, c) => {
1112
+ const r = p, a = K(() => r.fileId ? `${ft}/file/${r.fileId}/picture` : r.url || r.modelValue), n = x(!1);
1113
+ return (o, c) => {
1114
1114
  var _;
1115
1115
  const u = te("overlay");
1116
- return n(), l("figure", Yn, [
1117
- a.value && o.value ? (n(), V(Ge, {
1116
+ return t(), l("figure", Jn, [
1117
+ a.value && n.value ? (t(), V(Ge, {
1118
1118
  key: 0,
1119
1119
  to: "main"
1120
1120
  }, [
1121
- Y((n(), l("div", Jn, [
1121
+ X((t(), l("div", Zn, [
1122
1122
  B("img", {
1123
1123
  src: a.value,
1124
- alt: t.alt,
1124
+ alt: o.alt,
1125
1125
  style: `
1126
1126
  max-height: 60vh;
1127
1127
  object-fit: contain;
1128
1128
  `,
1129
- onClick: c[0] || (c[0] = (d) => o.value = !0)
1130
- }, null, 8, Zn),
1131
- (_ = t.meta) != null && _.owner ? (n(), l("div", Pn, C(t.t("created_by")) + " " + C(t.meta.owner.name) + " em " + C(t.formatDateTime(t.meta.created_at, { hours: !0 })), 1)) : h("", !0)
1129
+ onClick: c[0] || (c[0] = (d) => n.value = !0)
1130
+ }, null, 8, Pn),
1131
+ (_ = o.meta) != null && _.owner ? (t(), l("div", Nn, C(o.t("created_by")) + " " + C(o.meta.owner.name) + " em " + C(o.formatDateTime(o.meta.created_at, { hours: !0 })), 1)) : h("", !0)
1132
1132
  ])), [
1133
1133
  [u, {
1134
1134
  layer: 60,
1135
1135
  click: () => {
1136
- o.value = !1;
1136
+ n.value = !1;
1137
1137
  }
1138
1138
  }]
1139
1139
  ])
1140
1140
  ])) : h("", !0),
1141
- a.value ? (n(), l("img", {
1141
+ a.value ? (t(), l("img", {
1142
1142
  key: 1,
1143
1143
  src: a.value,
1144
- class: G(`
1145
- picture__image
1146
- ${t.bordered && "picture__image--bordered"}
1147
- ${t.expandable && "picture__image--expandable"}
1148
- `),
1144
+ class: G([
1145
+ "picture__image",
1146
+ { "picture__image--bordered": o.bordered },
1147
+ { "picture__image--expandable": o.expandable }
1148
+ ]),
1149
1149
  style: ge(`
1150
- object-fit: ${t.objectFit || "cover"};
1151
- width: ${t.width || "100%"};
1152
- height: ${t.height || "100%"};
1150
+ object-fit: ${o.objectFit || "cover"};
1151
+ width: ${o.width || "100%"};
1152
+ height: ${o.height || "100%"};
1153
1153
  `),
1154
1154
  onClick: c[1] || (c[1] = () => {
1155
- t.expandable && (o.value = !0);
1155
+ o.expandable && (n.value = !0);
1156
1156
  })
1157
- }, null, 14, Nn)) : t.$slots.fallback ? I(t.$slots, "fallback", { key: 2 }, void 0, !0) : t.$slots.default ? I(t.$slots, "default", { key: 3 }, void 0, !0) : (n(), l("svg", {
1157
+ }, null, 14, xn)) : o.$slots.fallback ? I(o.$slots, "fallback", { key: 2 }, void 0, !0) : o.$slots.default ? I(o.$slots, "default", { key: 3 }, void 0, !0) : (t(), l("svg", {
1158
1158
  key: 4,
1159
- class: G(["picture__background", `
1160
- ${t.bordered && "picture__image--bordered"}
1161
- `]),
1159
+ class: G(["picture__background", [
1160
+ { "picture__image--bordered": o.bordered }
1161
+ ]]),
1162
1162
  xmlns: "http://www.w3.org/2000/svg",
1163
1163
  viewBox: "0 0 200 200",
1164
1164
  preserveAspectRatio: "none",
1165
1165
  style: ge(`
1166
- object-fit: ${t.objectFit || "cover"};
1167
- width: ${t.width || "100%"};
1168
- height: ${t.height || "100%"};
1166
+ object-fit: ${o.objectFit || "cover"};
1167
+ width: ${o.width || "100%"};
1168
+ height: ${o.height || "100%"};
1169
1169
  `)
1170
1170
  }, c[2] || (c[2] = [
1171
1171
  B("line", {
@@ -1185,25 +1185,25 @@ const Xn = /* @__PURE__ */ D(Kn, [["__scopeId", "data-v-0e3564b6"]]), Yn = { cla
1185
1185
  "vector-effect": "non-scaling-stroke"
1186
1186
  }, null, -1)
1187
1187
  ]), 6)),
1188
- t.$slots.caption ? (n(), l("figcaption", xn, [
1189
- I(t.$slots, "caption", {}, void 0, !0)
1188
+ o.$slots.caption ? (t(), l("figcaption", eo, [
1189
+ I(o.$slots, "caption", {}, void 0, !0)
1190
1190
  ])) : h("", !0)
1191
1191
  ]);
1192
1192
  };
1193
1193
  }
1194
1194
  });
1195
- const Ue = /* @__PURE__ */ D(eo, [["__scopeId", "data-v-fcdb9114"]]), to = { class: "item" }, no = { class: "item__presentation" }, oo = {
1195
+ const Ee = /* @__PURE__ */ D(to, [["__scopeId", "data-v-9e6a58b0"]]), no = { class: "item" }, oo = { class: "item__presentation" }, ao = {
1196
1196
  key: 1,
1197
1197
  class: "item__name"
1198
- }, ao = { class: "item__size" }, lo = /* @__PURE__ */ z({
1198
+ }, lo = { class: "item__size" }, so = /* @__PURE__ */ z({
1199
1199
  __name: "aeria-file-item",
1200
1200
  props: {
1201
1201
  modelValue: {}
1202
1202
  },
1203
1203
  setup(p) {
1204
- const r = p, a = "_id" in r.modelValue ? r.modelValue : r.modelValue.file, o = (t) => {
1205
- const c = t === 0 ? 0 : Math.floor(Math.log(t) / Math.log(1024));
1206
- return `${(t / Math.pow(1024, c)).toFixed(2)} ${[
1204
+ const r = p, a = "_id" in r.modelValue ? r.modelValue : r.modelValue.file, n = (o) => {
1205
+ const c = o === 0 ? 0 : Math.floor(Math.log(o) / Math.log(1024));
1206
+ return `${(o / Math.pow(1024, c)).toFixed(2)} ${[
1207
1207
  "B",
1208
1208
  "kB",
1209
1209
  "MB",
@@ -1211,8 +1211,8 @@ const Ue = /* @__PURE__ */ D(eo, [["__scopeId", "data-v-fcdb9114"]]), to = { cla
1211
1211
  "TB"
1212
1212
  ][c]}`;
1213
1213
  };
1214
- return (t, c) => (n(), l("div", to, [
1215
- "_id" in e(a) && e(a).type.startsWith("image/") ? (n(), V(Ue, {
1214
+ return (o, c) => (t(), l("div", no, [
1215
+ "_id" in e(a) && e(a).type.startsWith("image/") ? (t(), V(Ee, {
1216
1216
  key: 0,
1217
1217
  bordered: "",
1218
1218
  expandable: "",
@@ -1220,8 +1220,8 @@ const Ue = /* @__PURE__ */ D(eo, [["__scopeId", "data-v-fcdb9114"]]), to = { cla
1220
1220
  url: e(a).link,
1221
1221
  class: "item__picture"
1222
1222
  }, null, 8, ["alt", "url"])) : h("", !0),
1223
- B("div", no, [
1224
- "_id" in e(a) ? (n(), V(W, {
1223
+ B("div", oo, [
1224
+ "_id" in e(a) ? (t(), V(W, {
1225
1225
  key: 0,
1226
1226
  icon: "arrow-square-out",
1227
1227
  href: e(a).link,
@@ -1232,19 +1232,19 @@ const Ue = /* @__PURE__ */ D(eo, [["__scopeId", "data-v-fcdb9114"]]), to = { cla
1232
1232
  H(C(e(a).name), 1)
1233
1233
  ]),
1234
1234
  _: 1
1235
- }, 8, ["href"])) : (n(), l("div", oo, C(e(a).name), 1)),
1236
- B("div", ao, C(o(e(a).size)), 1)
1235
+ }, 8, ["href"])) : (t(), l("div", ao, C(e(a).name), 1)),
1236
+ B("div", lo, C(n(e(a).size)), 1)
1237
1237
  ]),
1238
1238
  B("div", null, [
1239
- I(t.$slots, "default", {}, void 0, !0)
1239
+ I(o.$slots, "default", {}, void 0, !0)
1240
1240
  ])
1241
1241
  ]));
1242
1242
  }
1243
1243
  });
1244
- const so = /* @__PURE__ */ D(lo, [["__scopeId", "data-v-85a82246"]]), io = { class: "file" }, ro = ["accept", "multiple"], uo = {
1244
+ const io = /* @__PURE__ */ D(so, [["__scopeId", "data-v-85a82246"]]), ro = { class: "file" }, uo = ["accept", "multiple"], co = {
1245
1245
  key: 1,
1246
1246
  class: "file__list"
1247
- }, co = /* @__PURE__ */ z({
1247
+ }, po = /* @__PURE__ */ z({
1248
1248
  __name: "aeria-file",
1249
1249
  props: {
1250
1250
  modelValue: {},
@@ -1259,7 +1259,7 @@ const so = /* @__PURE__ */ D(lo, [["__scopeId", "data-v-85a82246"]]), io = { cla
1259
1259
  },
1260
1260
  emits: ["update:content", "change", "update:modelValue"],
1261
1261
  setup(p, { emit: r }) {
1262
- const a = p, o = a.property && _e(a.property), t = r, u = Me() ? Ee() : null, _ = a.multiple || a.property && "type" in a.property && a.property.type === "array", d = X(() => {
1262
+ const a = p, n = a.property && _e(a.property), o = r, u = qe() ? Ue() : null, _ = a.multiple || a.property && "type" in a.property && a.property.type === "array", d = K(() => {
1263
1263
  if (a.modelValue)
1264
1264
  return Array.isArray(a.modelValue) ? a.modelValue : [a.modelValue];
1265
1265
  }), $ = (k) => new Promise((v) => {
@@ -1273,7 +1273,7 @@ const so = /* @__PURE__ */ D(lo, [["__scopeId", "data-v-85a82246"]]), io = { cla
1273
1273
  for (const i of v) {
1274
1274
  const q = await $(i);
1275
1275
  if (u) {
1276
- const { data: { error: K, result: Z } } = await jt(`${vt}/${u.$id}/upload?name=${i.name}`, q, {
1276
+ const { data: { error: Y, result: Z } } = await Tt(`${ft}/${u.$id}/upload?name=${i.name}`, q, {
1277
1277
  params: {
1278
1278
  method: "POST",
1279
1279
  headers: {
@@ -1282,7 +1282,7 @@ const so = /* @__PURE__ */ D(lo, [["__scopeId", "data-v-85a82246"]]), io = { cla
1282
1282
  }
1283
1283
  }
1284
1284
  });
1285
- if (K)
1285
+ if (Y)
1286
1286
  return;
1287
1287
  O.unshift({
1288
1288
  tempId: Z.tempId,
@@ -1293,32 +1293,32 @@ const so = /* @__PURE__ */ D(lo, [["__scopeId", "data-v-85a82246"]]), io = { cla
1293
1293
  file: i
1294
1294
  });
1295
1295
  }
1296
- _ ? t("update:modelValue", Array.isArray(a.modelValue) ? O.concat(a.modelValue) : O) : t("update:modelValue", O[0]), t("update:content", O), t("change", O);
1296
+ _ ? o("update:modelValue", Array.isArray(a.modelValue) ? O.concat(a.modelValue) : O) : o("update:modelValue", O[0]), o("update:content", O), o("change", O);
1297
1297
  }, f = async (k) => {
1298
1298
  if (!a.modelValue)
1299
1299
  throw new Error();
1300
1300
  const v = Array.isArray(a.modelValue) ? a.modelValue.filter((O, i) => i !== k) : [];
1301
- _ ? t("update:modelValue", v) : t("update:modelValue", null), t("update:content", v), t("change", v);
1301
+ _ ? o("update:modelValue", v) : o("update:modelValue", null), o("update:content", v), o("change", v);
1302
1302
  };
1303
1303
  return (k, v) => {
1304
1304
  var i, q;
1305
1305
  const O = te("clickable");
1306
- return n(), l("div", io, [
1307
- k.readOnly ? h("", !0) : (n(), l("input", {
1306
+ return t(), l("div", ro, [
1307
+ k.readOnly ? h("", !0) : (t(), l("input", {
1308
1308
  key: 0,
1309
1309
  ref: "file",
1310
1310
  type: "file",
1311
- accept: (q = (i = e(o)) == null ? void 0 : i.accept) == null ? void 0 : q.join(","),
1311
+ accept: (q = (i = e(n)) == null ? void 0 : i.accept) == null ? void 0 : q.join(","),
1312
1312
  multiple: e(_),
1313
1313
  onChange: s
1314
- }, null, 40, ro)),
1315
- d.value && d.value.length > 0 ? (n(), l("div", uo, [
1316
- (n(!0), l(J, null, E(d.value, (K, Z) => (n(), V(so, {
1317
- key: "_id" in K ? String(K._id) : K.file.name,
1318
- "model-value": K
1314
+ }, null, 40, uo)),
1315
+ d.value && d.value.length > 0 ? (t(), l("div", co, [
1316
+ (t(!0), l(J, null, U(d.value, (Y, Z) => (t(), V(io, {
1317
+ key: "_id" in Y ? String(Y._id) : Y.file.name,
1318
+ "model-value": Y
1319
1319
  }, {
1320
1320
  default: b(() => [
1321
- k.readOnly ? h("", !0) : Y((n(), V(W, {
1321
+ k.readOnly ? h("", !0) : X((t(), V(W, {
1322
1322
  key: 0,
1323
1323
  reactive: "",
1324
1324
  icon: "trash",
@@ -1334,37 +1334,37 @@ const so = /* @__PURE__ */ D(lo, [["__scopeId", "data-v-85a82246"]]), io = { cla
1334
1334
  };
1335
1335
  }
1336
1336
  });
1337
- const po = /* @__PURE__ */ D(co, [["__scopeId", "data-v-9950a715"]]), _o = { class: "container" }, mo = {
1337
+ const _o = /* @__PURE__ */ D(po, [["__scopeId", "data-v-9950a715"]]), mo = { class: "container" }, fo = {
1338
1338
  key: 1,
1339
1339
  class: "container__footer"
1340
- }, fo = /* @__PURE__ */ z({
1340
+ }, vo = /* @__PURE__ */ z({
1341
1341
  __name: "aeria-search-container",
1342
1342
  props: {
1343
1343
  observeScroll: { type: Boolean }
1344
1344
  },
1345
1345
  emits: ["endReached"],
1346
1346
  setup(p, { emit: r }) {
1347
- const a = p, o = r, t = x(null), c = a.observeScroll ? Xe(t, {
1347
+ const a = p, n = r, o = x(null), c = a.observeScroll ? Ye(o, {
1348
1348
  antecipate: 100
1349
1349
  }).reachedEnd : null;
1350
1350
  return c !== null && re(c, (u) => {
1351
- u && o("endReached", u);
1352
- }), (u, _) => (n(), l("div", _o, [
1353
- u.$slots.default ? (n(), l("div", {
1351
+ u && n("endReached", u);
1352
+ }), (u, _) => (t(), l("div", mo, [
1353
+ u.$slots.default ? (t(), l("div", {
1354
1354
  key: 0,
1355
1355
  ref_key: "containerEl",
1356
- ref: t,
1356
+ ref: o,
1357
1357
  class: "container__content"
1358
1358
  }, [
1359
1359
  I(u.$slots, "default", {}, void 0, !0)
1360
1360
  ], 512)) : h("", !0),
1361
- u.$slots.footer ? (n(), l("div", mo, [
1361
+ u.$slots.footer ? (t(), l("div", fo, [
1362
1362
  I(u.$slots, "footer", {}, void 0, !0)
1363
1363
  ])) : h("", !0)
1364
1364
  ]));
1365
1365
  }
1366
1366
  });
1367
- const ct = /* @__PURE__ */ D(fo, [["__scopeId", "data-v-c86e2d2a"]]), vo = { class: "item__values" }, yo = /* @__PURE__ */ z({
1367
+ const ct = /* @__PURE__ */ D(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { class: "item__values" }, bo = /* @__PURE__ */ z({
1368
1368
  __name: "aeria-search-item",
1369
1369
  props: {
1370
1370
  item: {},
@@ -1375,15 +1375,15 @@ const ct = /* @__PURE__ */ D(fo, [["__scopeId", "data-v-c86e2d2a"]]), vo = { cla
1375
1375
  },
1376
1376
  emits: ["update:modelValue", "change"],
1377
1377
  setup(p, { emit: r }) {
1378
- const a = Be(), o = p, t = r, c = o.property, u = _e(c), _ = Ee(), d = X(() => o.modelValue ? Array.isArray(o.modelValue) ? Array.isArray(o.modelValue) && Object.values(o.modelValue).some(({ _id: k }) => o.item._id === k) : o.modelValue._id === o.item._id : !1), $ = () => {
1378
+ const a = Be(), n = p, o = r, c = n.property, u = _e(c), _ = Ue(), d = K(() => n.modelValue ? Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: k }) => n.item._id === k) : n.modelValue._id === n.item._id : !1), $ = () => {
1379
1379
  if (d.value)
1380
1380
  return;
1381
1381
  const k = (O) => O.filter((i) => !!i._id);
1382
1382
  let v;
1383
- "items" in c ? o.modelValue ? v = k(Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue]) : v = [] : v = o.modelValue, Array.isArray(v) ? t("update:modelValue", v.concat([o.item])) : t("update:modelValue", o.item), t("change", o.item);
1383
+ "items" in c ? n.modelValue ? v = k(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : v = [] : v = n.modelValue, Array.isArray(v) ? o("update:modelValue", v.concat([n.item])) : o("update:modelValue", n.item), o("change", n.item);
1384
1384
  }, s = async (k) => {
1385
1385
  if (u.purge && (k != null && k.purge)) {
1386
- const { _id: O } = o.item;
1386
+ const { _id: O } = n.item;
1387
1387
  await _.$actions.remove({
1388
1388
  filters: {
1389
1389
  _id: O
@@ -1391,14 +1391,14 @@ const ct = /* @__PURE__ */ D(fo, [["__scopeId", "data-v-c86e2d2a"]]), vo = { cla
1391
1391
  });
1392
1392
  }
1393
1393
  const v = () => {
1394
- const O = Array.isArray(o.modelValue) ? Array.from(o.modelValue) : [], i = O.findIndex((q) => q._id === o.item._id);
1394
+ const O = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [], i = O.findIndex((q) => q._id === n.item._id);
1395
1395
  return O.splice(i, 1), O;
1396
1396
  };
1397
- t("update:modelValue", "items" in c ? v() : null);
1397
+ o("update:modelValue", "items" in c ? v() : null);
1398
1398
  }, f = () => {
1399
- if (o.readOnly) {
1399
+ if (n.readOnly) {
1400
1400
  a.push({
1401
- path: `/dashboard/c/${u.$ref}/${o.item._id}`
1401
+ path: `/dashboard/c/${u.$ref}/${n.item._id}`
1402
1402
  });
1403
1403
  return;
1404
1404
  }
@@ -1406,7 +1406,7 @@ const ct = /* @__PURE__ */ D(fo, [["__scopeId", "data-v-c86e2d2a"]]), vo = { cla
1406
1406
  };
1407
1407
  return (k, v) => {
1408
1408
  const O = te("clickable");
1409
- return Y((n(), l("div", {
1409
+ return X((t(), l("div", {
1410
1410
  class: G({
1411
1411
  item: !0,
1412
1412
  "item--selected": d.value
@@ -1414,13 +1414,13 @@ const ct = /* @__PURE__ */ D(fo, [["__scopeId", "data-v-c86e2d2a"]]), vo = { cla
1414
1414
  onClick: f
1415
1415
  }, [
1416
1416
  I(k.$slots, "default", {}, void 0, !0),
1417
- B("div", vo, [
1418
- (n(!0), l(J, null, E(k.indexes, (i, q) => (n(), l("div", {
1417
+ B("div", yo, [
1418
+ (t(!0), l(J, null, U(k.indexes, (i, q) => (t(), l("div", {
1419
1419
  key: `index-${k.item._id}-${q}`,
1420
1420
  class: "item__value"
1421
1421
  }, C(k.item[i]), 1))), 128))
1422
1422
  ]),
1423
- k.readOnly ? (n(), V(W, {
1423
+ k.readOnly ? (t(), V(W, {
1424
1424
  key: 0,
1425
1425
  icon: "arrow-square-out",
1426
1426
  style: { "--icon-color": "var(--theme-brand-color-contrast)" }
@@ -1431,10 +1431,10 @@ const ct = /* @__PURE__ */ D(fo, [["__scopeId", "data-v-c86e2d2a"]]), vo = { cla
1431
1431
  };
1432
1432
  }
1433
1433
  });
1434
- const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { class: "search__panel" }, ho = { key: 1 }, $o = { key: 0 }, go = { key: 1 }, ko = { class: "search__summary" }, Vo = {
1434
+ const De = /* @__PURE__ */ D(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { class: "search__panel" }, $o = { key: 1 }, go = { key: 0 }, ko = { key: 1 }, Vo = { class: "search__summary" }, Co = {
1435
1435
  key: 1,
1436
1436
  class: "search"
1437
- }, Co = { key: 0 }, Fe = 10, Oo = /* @__PURE__ */ z({
1437
+ }, Oo = { key: 0 }, Fe = 10, Ao = /* @__PURE__ */ z({
1438
1438
  __name: "aeria-search",
1439
1439
  props: {
1440
1440
  modelValue: {},
@@ -1448,24 +1448,24 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1448
1448
  },
1449
1449
  emits: ["update:modelValue", "change", "update:panel"],
1450
1450
  setup(p, { emit: r }) {
1451
- const a = p, o = _e(a.property), t = a.panel !== void 0 ? X(() => a.panel) : x(!1), c = r, u = ie(_e(a.property).$ref), _ = Me(), d = _ ? Ee() : null, $ = o.indexes;
1452
- $e(qe, _e(a.property).$ref), $e("innerInputLabel", !0), $e("omitInputLabels", !0);
1451
+ const a = p, n = _e(a.property), o = a.panel !== void 0 ? K(() => a.panel) : x(!1), c = r, u = ie(_e(a.property).$ref), _ = qe(), d = _ ? Ue() : null, $ = n.indexes;
1452
+ $e(ze, _e(a.property).$ref), $e("innerInputLabel", !0), $e("omitInputLabels", !0);
1453
1453
  const s = x(a.modelValue), f = x({
1454
1454
  data: [],
1455
1455
  pagination: {}
1456
- }), k = X(() => f.value.data), v = X(() => f.value.pagination), O = x(0), i = x(!1), q = x(""), K = () => {
1456
+ }), k = K(() => f.value.data), v = K(() => f.value.pagination), O = x(0), i = x(!1), q = x(""), Y = () => {
1457
1457
  const y = {};
1458
1458
  if (_) {
1459
1459
  const A = e(_);
1460
1460
  y[A] = d;
1461
1461
  }
1462
- return o.constraints ? Ft(o.constraints, y) : {};
1462
+ return n.constraints ? Et(n.constraints, y) : {};
1463
1463
  }, Z = () => {
1464
1464
  k.value.length < v.value.recordsTotal && (O.value += 1, F());
1465
1465
  }, g = async () => q.value.length === 0 ? u.$actions.custom("getAll", {
1466
1466
  limit: Fe,
1467
1467
  offset: O.value * Fe,
1468
- filters: K()
1468
+ filters: Y()
1469
1469
  }) : u.$actions.custom("getAll", {
1470
1470
  limit: Fe,
1471
1471
  offset: O.value * Fe,
@@ -1474,7 +1474,7 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1474
1474
  $search: `"${q.value}"`,
1475
1475
  $caseSensitive: !1
1476
1476
  },
1477
- ...K()
1477
+ ...Y()
1478
1478
  }
1479
1479
  }), F = async () => {
1480
1480
  if (u.loading.getAll)
@@ -1488,16 +1488,16 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1488
1488
  return;
1489
1489
  }
1490
1490
  f.value.pagination = A.pagination, O.value === 0 && f.value.data.splice(0), f.value.data.push(...A.data);
1491
- }, [le] = yt({
1491
+ }, [le] = vt({
1492
1492
  delay: 800
1493
1493
  })(() => {
1494
1494
  O.value = 0, F(), i.value = !1;
1495
1495
  }), w = () => {
1496
1496
  i.value = !0, le();
1497
1497
  }, ee = () => {
1498
- "effect" in t ? c("update:panel", !0) : t.value = !0, F();
1499
- }, fe = () => {
1500
- O.value = 0, f.value.data.splice(0), "effect" in t ? c("update:panel", !1) : t.value = !1;
1498
+ "effect" in o ? c("update:panel", !0) : o.value = !0, F();
1499
+ }, ve = () => {
1500
+ O.value = 0, f.value.data.splice(0), "effect" in o ? c("update:panel", !1) : o.value = !1;
1501
1501
  };
1502
1502
  re(() => q.value.length, (y, A) => {
1503
1503
  y && !A && F();
@@ -1507,12 +1507,12 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1507
1507
  const me = (y) => {
1508
1508
  s.value = y, a.selectOnly || c("update:modelValue", y);
1509
1509
  }, ce = () => {
1510
- fe(), c("update:modelValue", s.value);
1510
+ ve(), c("update:modelValue", s.value);
1511
1511
  };
1512
1512
  return (y, A) => {
1513
1513
  const oe = te("clickable");
1514
- return n(), l("div", null, [
1515
- e(t) ? (n(), V(Ge, {
1514
+ return t(), l("div", null, [
1515
+ e(o) ? (t(), V(Ge, {
1516
1516
  key: 0,
1517
1517
  to: "main"
1518
1518
  }, [
@@ -1521,10 +1521,10 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1521
1521
  "close-hint": "",
1522
1522
  title: `${e(L)("action.select", { capitalize: !0 })} ${e(L)(y.propertyName)}`,
1523
1523
  "overlay-layer": 65,
1524
- "model-value": e(t),
1524
+ "model-value": e(o),
1525
1525
  style: { "--panel-max-width": "36rem" },
1526
- onClose: fe,
1527
- onOverlayClick: fe
1526
+ onClose: ve,
1527
+ onOverlayClick: ve
1528
1528
  }, {
1529
1529
  footer: b(() => [
1530
1530
  M(pe, {
@@ -1540,8 +1540,8 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1540
1540
  default: b(() => {
1541
1541
  var ne, m;
1542
1542
  return [
1543
- B("div", bo, [
1544
- M(Ce, U({
1543
+ B("div", ho, [
1544
+ M(Ce, E({
1545
1545
  modelValue: q.value,
1546
1546
  "onUpdate:modelValue": A[0] || (A[0] = (T) => q.value = T)
1547
1547
  }, {
@@ -1551,13 +1551,13 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1551
1551
  inputType: "search"
1552
1552
  }
1553
1553
  }, { onInput: w }), null, 16, ["modelValue"]),
1554
- k.value.length ? (n(), V(ct, {
1554
+ k.value.length ? (t(), V(ct, {
1555
1555
  key: 0,
1556
1556
  "observe-scroll": "",
1557
1557
  onEndReached: Z
1558
1558
  }, {
1559
1559
  default: b(() => [
1560
- (n(!0), l(J, null, E(k.value, (T) => (n(), V(De, U({ ref_for: !0 }, {
1560
+ (t(!0), l(J, null, U(k.value, (T) => (t(), V(De, E({ ref_for: !0 }, {
1561
1561
  item: T,
1562
1562
  indexes: e($),
1563
1563
  property: y.property
@@ -1568,23 +1568,23 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1568
1568
  }), null, 16, ["modelValue"]))), 128))
1569
1569
  ]),
1570
1570
  _: 1
1571
- })) : (n(), l("div", ho, [
1572
- i.value ? (n(), l("div", $o, C(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(q.value).filter((T) => !!T).length > 0 && !("items" in y.property && ((ne = y.modelValue) != null && ne.length) || !Array.isArray(y.modelValue) && ((m = y.modelValue) != null && m._id)) ? (n(), l("div", go, C(e(L)("no_results", { capitalize: !0 })), 1)) : h("", !0)
1571
+ })) : (t(), l("div", $o, [
1572
+ i.value ? (t(), l("div", go, C(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(q.value).filter((T) => !!T).length > 0 && !("items" in y.property && ((ne = y.modelValue) != null && ne.length) || !Array.isArray(y.modelValue) && ((m = y.modelValue) != null && m._id)) ? (t(), l("div", ko, C(e(L)("no_results", { capitalize: !0 })), 1)) : h("", !0)
1573
1573
  ]))
1574
1574
  ]),
1575
- B("div", ko, C(e(L)("showing", { capitalize: !0 })) + " " + C(k.value.length) + " " + C(e(L)("of")) + " " + C(v.value.recordsTotal), 1)
1575
+ B("div", Vo, C(e(L)("showing", { capitalize: !0 })) + " " + C(k.value.length) + " " + C(e(L)("of")) + " " + C(v.value.recordsTotal), 1)
1576
1576
  ];
1577
1577
  }),
1578
1578
  _: 1
1579
1579
  }, 8, ["title", "model-value"])
1580
1580
  ])) : h("", !0),
1581
- y.selectOnly ? h("", !0) : (n(), l("div", Vo, [
1581
+ y.selectOnly ? h("", !0) : (t(), l("div", Co, [
1582
1582
  M(ct, null, ue({
1583
1583
  default: b(() => {
1584
1584
  var ne;
1585
1585
  return [
1586
- "items" in y.property ? (n(), l("div", Co, [
1587
- (n(!0), l(J, null, E(y.modelValue, (m) => (n(), V(De, U({ ref_for: !0 }, {
1586
+ "items" in y.property ? (t(), l("div", Oo, [
1587
+ (t(!0), l(J, null, U(y.modelValue, (m) => (t(), V(De, E({ ref_for: !0 }, {
1588
1588
  item: m,
1589
1589
  indexes: e($),
1590
1590
  property: y.property,
@@ -1594,10 +1594,10 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1594
1594
  key: `selected-${m._id}`,
1595
1595
  "onUpdate:modelValue": me
1596
1596
  }), null, 16))), 128))
1597
- ])) : (ne = y.modelValue) != null && ne._id ? (n(), V(De, U({ key: 1 }, {
1597
+ ])) : (ne = y.modelValue) != null && ne._id ? (t(), V(De, E({ key: 1 }, {
1598
1598
  item: y.modelValue,
1599
1599
  indexes: e($),
1600
- property: e(o),
1600
+ property: e(n),
1601
1601
  readOnly: y.readOnly,
1602
1602
  modelValue: y.modelValue
1603
1603
  }, { "onUpdate:modelValue": me }), null, 16)) : h("", !0)
@@ -1608,7 +1608,7 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1608
1608
  y.readOnly ? void 0 : {
1609
1609
  name: "footer",
1610
1610
  fn: b(() => [
1611
- Y((n(), V(W, {
1611
+ X((t(), V(W, {
1612
1612
  icon: "plus",
1613
1613
  onClick: ee
1614
1614
  }, {
@@ -1628,16 +1628,16 @@ const De = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-10ee6b3b"]]), bo = { cla
1628
1628
  };
1629
1629
  }
1630
1630
  });
1631
- const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r) => {
1632
- const a = "items" in p ? p.items : p, o = {
1633
- options: Dn,
1634
- select: Ye,
1631
+ const Io = /* @__PURE__ */ D(Ao, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r) => {
1632
+ const a = "items" in p ? p.items : p, n = {
1633
+ options: Qn,
1634
+ select: Xe,
1635
1635
  switch: Xn,
1636
- file: po,
1637
- search: Ao,
1636
+ file: _o,
1637
+ search: Io,
1638
1638
  input: Ce,
1639
1639
  form: He
1640
- }, t = (() => {
1640
+ }, o = (() => {
1641
1641
  if ("type" in a) {
1642
1642
  if (a.type === "object")
1643
1643
  return "form";
@@ -1653,33 +1653,33 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1653
1653
  const c = _e(p);
1654
1654
  return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in p && p.uniqueItems ? "options" : "enum" in a ? "select" : "input";
1655
1655
  })();
1656
- return r[t] ? r[t] : o[t];
1657
- }, Io = (p, r, a) => {
1656
+ return r[o] ? r[o] : n[o];
1657
+ }, Bo = (p, r, a) => {
1658
1658
  p ?? (p = []);
1659
- const o = "items" in r ? r.items : r;
1660
- if ("$ref" in o) {
1661
- const t = ie(o.$ref, a), c = Ae(t.$freshItem);
1659
+ const n = "items" in r ? r.items : r;
1660
+ if ("$ref" in n) {
1661
+ const o = ie(n.$ref, a), c = Ae(o.$freshItem);
1662
1662
  return p.push(c);
1663
1663
  }
1664
- return "properties" in o ? p.push(Bt(o)) : "type" in o && o.type === "boolean" ? p.push({}) : p.push(null);
1665
- }, Bo = (p, r) => {
1664
+ return "properties" in n ? p.push(zt(n)) : "type" in n && n.type === "boolean" ? p.push({}) : p.push(null);
1665
+ }, So = (p, r) => {
1666
1666
  p.splice(r, 1);
1667
- }, So = {
1667
+ }, wo = {
1668
1668
  key: 0,
1669
1669
  class: "form__header"
1670
- }, wo = { class: "form__fieldset" }, To = { key: 0 }, jo = ["innerHTML"], Ro = ["onInput"], Lo = { key: 4 }, Mo = { value: "true" }, qo = { value: "false" }, zo = {
1670
+ }, To = { class: "form__fieldset" }, jo = { key: 0 }, Ro = ["innerHTML"], Lo = ["onInput"], Mo = { key: 4 }, qo = { value: "true" }, zo = { value: "false" }, Fo = {
1671
1671
  key: 5,
1672
1672
  style: { display: "grid", "row-gap": ".4rem" }
1673
- }, Fo = { key: 0 }, Uo = {
1673
+ }, Eo = { key: 0 }, Uo = {
1674
1674
  key: 1,
1675
1675
  class: "form__array"
1676
- }, Eo = {
1676
+ }, Ho = {
1677
1677
  key: 7,
1678
1678
  class: "form__validation-error"
1679
- }, Ho = { key: 0 }, Do = { key: 1 }, Qo = {
1679
+ }, Do = { key: 0 }, Qo = { key: 1 }, Go = {
1680
1680
  key: 2,
1681
1681
  class: "form__footer"
1682
- }, Go = /* @__PURE__ */ z({
1682
+ }, Wo = /* @__PURE__ */ z({
1683
1683
  __name: "aeria-form",
1684
1684
  props: {
1685
1685
  modelValue: {},
@@ -1708,21 +1708,21 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1708
1708
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
1709
1709
  setup(p, { emit: r }) {
1710
1710
  var ne;
1711
- const a = Ke(), o = p, t = r;
1711
+ const a = Ke(), n = p, o = r;
1712
1712
  mt(() => {
1713
- o.modelValue || t("update:modelValue", o.property && "items" in o.property ? [] : {});
1713
+ n.modelValue || o("update:modelValue", n.property && "items" in n.property ? [] : {});
1714
1714
  });
1715
- const c = o.property && _e(o.property), u = c ? c.$ref : o.collection || Me(), _ = o.readOnly || ((ne = o.property) == null ? void 0 : ne.readOnly), d = u ? ie(e(u)) : null;
1715
+ const c = n.property && _e(n.property), u = c ? c.$ref : n.collection || qe(), _ = n.readOnly || ((ne = n.property) == null ? void 0 : ne.readOnly), d = u ? ie(e(u)) : null;
1716
1716
  !u && process.env.NODE_ENV !== "production" && console.warn("aeria-form was used without providing storeId or specifying collection prop, some features may not work as intended");
1717
- const $ = x(!1), s = X(() => {
1718
- 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)();
1717
+ const $ = x(!1), s = K(() => {
1718
+ const m = (() => !n.form && n.property ? "type" in n.property && n.property.type === "object" ? "properties" in n.property ? n.property.properties : void 0 : d == null ? void 0 : d.properties : n.form)();
1719
1719
  if (!m)
1720
1720
  return;
1721
1721
  const T = {};
1722
- if (o.includeId && (T._id = {
1722
+ if (n.includeId && (T._id = {
1723
1723
  type: "string",
1724
1724
  readOnly: !0
1725
- }), o.includeTimestamps) {
1725
+ }), n.includeTimestamps) {
1726
1726
  const Q = {
1727
1727
  type: "string",
1728
1728
  format: "date-time",
@@ -1732,34 +1732,34 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1732
1732
  m.created_at || (T.created_at = Q), m.created_at || (T.updated_at = Q);
1733
1733
  }
1734
1734
  return Object.assign(T, m), T;
1735
- }), f = X(() => o.layout || (d == null ? void 0 : d.description.formLayout)), k = (m) => {
1736
- const T = be(m, o[m]);
1737
- return o[m] && $e(m, o[m]), T;
1738
- }, v = X(() => o.validationErrors !== null ? o.validationErrors : d == null ? void 0 : d.validationErrors), O = k("formComponents") || {}, i = k("propertyComponents") || {}, q = k("omitFormHeader"), K = k("omitInputLabels"), Z = k("innerInputLabel");
1739
- u && $e(qe, u), $e("searchOnly", o.searchOnly);
1735
+ }), f = K(() => n.layout || (d == null ? void 0 : d.description.formLayout)), k = (m) => {
1736
+ const T = fe(m, n[m]);
1737
+ return n[m] && $e(m, n[m]), T;
1738
+ }, v = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), O = k("formComponents") || {}, i = k("propertyComponents") || {}, q = k("omitFormHeader"), Y = k("omitInputLabels"), Z = k("innerInputLabel");
1739
+ u && $e(ze, u), $e("searchOnly", n.searchOnly);
1740
1740
  const g = (m) => s.value ? Object.entries(s.value).filter(([T, Q]) => !Q.noForm && m([
1741
1741
  T,
1742
1742
  Q
1743
1743
  ])) : null, F = (m, T) => {
1744
1744
  var P;
1745
- if (o.searchOnly || !u || o.includeId && m === "_id" || o.includeTimestamps && T.isTimestamp)
1745
+ if (n.searchOnly || !u || n.includeId && m === "_id" || n.includeTimestamps && T.isTimestamp)
1746
1746
  return !0;
1747
- const Q = o.property && "properties" in o.property ? o.property.form : (P = d == null ? void 0 : d.description) == null ? void 0 : P.form;
1747
+ const Q = n.property && "properties" in n.property ? n.property.form : (P = d == null ? void 0 : d.description) == null ? void 0 : P.form;
1748
1748
  return !Q || Q.includes(m);
1749
- }, le = g(([m, T]) => F(m, T)), w = ze(), ee = {}, fe = (m, T) => {
1749
+ }, le = g(([m, T]) => F(m, T)), w = Me(), ee = {}, ve = (m, T) => {
1750
1750
  var R, se, j, ae;
1751
1751
  const Q = [], P = ((se = (R = f.value) == null ? void 0 : R.fields) == null ? void 0 : se[m]) || ((ae = (j = f.value) == null ? void 0 : j.fields) == null ? void 0 : ae.$default);
1752
1752
  if (!T)
1753
1753
  return;
1754
- if (P != null && P.if && !o.searchOnly) {
1755
- const ve = Qe(
1756
- o.modelValue,
1754
+ if (P != null && P.if && !n.searchOnly) {
1755
+ const ye = Qe(
1756
+ n.modelValue,
1757
1757
  P.if
1758
1758
  );
1759
- ve.satisfied || (ee[m] && (d ? o.modelValue[m] = typeof d.$freshItem[m] == "object" ? Ae(d.$freshItem[m]) : d.$freshItem[m] : o.modelValue[m] = [
1759
+ ye.satisfied || (ee[m] && (d ? n.modelValue[m] = typeof d.$freshItem[m] == "object" ? Ae(d.$freshItem[m]) : d.$freshItem[m] : n.modelValue[m] = [
1760
1760
  void 0,
1761
1761
  null
1762
- ].includes(o.modelValue[m]) ? null : o.modelValue[m].constructor()), Q.push("display: none;")), ee[m] = ve.satisfied;
1762
+ ].includes(n.modelValue[m]) ? null : n.modelValue[m].constructor()), Q.push("display: none;")), ee[m] = ye.satisfied;
1763
1763
  }
1764
1764
  const S = w.value.md && (P == null ? void 0 : P.span) || 6;
1765
1765
  return Q.push(`
@@ -1774,53 +1774,53 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1774
1774
  padding: 1rem 0;
1775
1775
  margin: 1rem 0;
1776
1776
  `)), Q.join("");
1777
- }, me = (m) => m === null || m instanceof Object && !Object.keys(m).length, ce = X(() => o.required ? o.required : o.property && "required" in o.property ? o.property.required : d == null ? void 0 : d.description.required), y = X(() => o.form ? Ut(
1778
- o.modelValue,
1779
- o.form,
1777
+ }, me = (m) => m === null || m instanceof Object && !Object.keys(m).length, ce = K(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), y = K(() => n.form ? Ut(
1778
+ n.modelValue,
1779
+ n.form,
1780
1780
  ce.value,
1781
1781
  d == null ? void 0 : d.description
1782
1782
  ) : !0), A = (m, T) => {
1783
1783
  var Q;
1784
1784
  return (Q = v.value) != null && Q[m] && (typeof v.value[m].index != "number" || v.value[m].index === T) ? v.value[m].errors : null;
1785
1785
  }, oe = (m) => {
1786
- if (!(_ || m.readOnly) && !o.parentPropertyName && !o.parentCollection && !$.value)
1786
+ if (!(_ || m.readOnly) && !n.parentPropertyName && !n.parentCollection && !$.value)
1787
1787
  return $.value = !0, !0;
1788
1788
  };
1789
1789
  return (m, T) => {
1790
1790
  const Q = te("clickable"), P = te("focus");
1791
- return n(), l("form", {
1791
+ return t(), l("form", {
1792
1792
  class: "form",
1793
1793
  style: ge(`row-gap: ${e(q) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1794
1794
  }, [
1795
- m.$slots.header && !e(q) ? (n(), l("header", So, [
1795
+ m.$slots.header && !e(q) ? (t(), l("header", wo, [
1796
1796
  I(m.$slots, "header", {}, void 0, !0)
1797
1797
  ])) : h("", !0),
1798
1798
  I(m.$slots, "default", {}, void 0, !0),
1799
- B("fieldset", wo, [
1800
- (n(!0), l(J, null, E(e(le), ([S, R]) => {
1801
- var se, j, ae, ve, Oe, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
1802
- return n(), l("div", {
1799
+ B("fieldset", To, [
1800
+ (t(!0), l(J, null, U(e(le), ([S, R]) => {
1801
+ var se, j, ae, ye, Oe, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
1802
+ return t(), l("div", {
1803
1803
  key: `field-${S}`,
1804
- style: ge(fe(S, R)),
1804
+ style: ge(ve(S, R)),
1805
1805
  class: G({
1806
1806
  form__field: !0,
1807
1807
  "form__field--form": "properties" in R
1808
1808
  })
1809
1809
  }, [
1810
- (!("type" in R) || R.type !== "boolean" || m.searchOnly) && !R.noLabel && !e(K) && !e(Z) ? (n(), l("label", To, [
1810
+ (!("type" in R) || R.type !== "boolean" || m.searchOnly) && !R.noLabel && !e(Y) && !e(Z) ? (t(), l("label", jo, [
1811
1811
  B("div", {
1812
1812
  class: G({
1813
1813
  "form__field-label": !0,
1814
1814
  "form__field-label--section": "items" in R ? "properties" in R.items : "properties" in R,
1815
- "form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!ce.value || e(St)(S, ce.value, m.modelValue))
1815
+ "form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!ce.value || e(Ft)(S, ce.value, m.modelValue))
1816
1816
  })
1817
1817
  }, C(R.description || e(L)(S)), 3),
1818
- R.hint ? (n(), l("div", {
1818
+ R.hint ? (t(), l("div", {
1819
1819
  key: 0,
1820
1820
  innerHTML: R.hint
1821
- }, null, 8, jo)) : h("", !0)
1821
+ }, null, 8, Ro)) : h("", !0)
1822
1822
  ])) : h("", !0),
1823
- m.$slots[`field-${S}`] ? I(m.$slots, `field-${S}`, U({
1823
+ m.$slots[`field-${S}`] ? I(m.$slots, `field-${S}`, E({
1824
1824
  key: 1,
1825
1825
  ref_for: !0
1826
1826
  }, {
@@ -1828,7 +1828,7 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1828
1828
  property: R,
1829
1829
  propertyName: S,
1830
1830
  modelValue: m.modelValue
1831
- }), void 0, !0) : (ae = (j = (se = m.layout) == null ? void 0 : se.fields) == null ? void 0 : j[S]) != null && ae.component && e(i)[m.layout.fields[S].component.name] ? (n(), V(he(e(i)[m.layout.fields[S].component.name]), U({
1831
+ }), void 0, !0) : (ae = (j = (se = m.layout) == null ? void 0 : se.fields) == null ? void 0 : j[S]) != null && ae.component && e(i)[m.layout.fields[S].component.name] ? (t(), V(he(e(i)[m.layout.fields[S].component.name]), E({
1832
1832
  key: 2,
1833
1833
  modelValue: m.modelValue[S],
1834
1834
  "onUpdate:modelValue": (N) => m.modelValue[S] = N,
@@ -1839,15 +1839,15 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1839
1839
  propertyName: S,
1840
1840
  ...m.layout.fields[S].component.props || {}
1841
1841
  }, {
1842
- onInput: (N) => t("input", S),
1843
- onChange: T[0] || (T[0] = (N) => t("change", N))
1844
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) && m.searchOnly ? (n(), l("div", {
1842
+ onInput: (N) => o("input", S),
1843
+ onChange: T[0] || (T[0] = (N) => o("change", N))
1844
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) && m.searchOnly ? (t(), l("div", {
1845
1845
  key: 3,
1846
1846
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1847
- onInput: (N) => t("input", S),
1848
- onChange: T[1] || (T[1] = (N) => t("change", N))
1847
+ onInput: (N) => o("input", S),
1848
+ onChange: T[1] || (T[1] = (N) => o("change", N))
1849
1849
  }, [
1850
- M(Ce, U({
1850
+ M(Ce, E({
1851
1851
  modelValue: m.modelValue[S].$gte,
1852
1852
  "onUpdate:modelValue": (N) => m.modelValue[S].$gte = N,
1853
1853
  ref_for: !0
@@ -1855,7 +1855,7 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1855
1855
  property: R,
1856
1856
  propertyName: S
1857
1857
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1858
- M(Ce, U({
1858
+ M(Ce, E({
1859
1859
  modelValue: m.modelValue[S].$lte,
1860
1860
  "onUpdate:modelValue": (N) => m.modelValue[S].$lte = N,
1861
1861
  ref_for: !0
@@ -1863,33 +1863,33 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1863
1863
  property: R,
1864
1864
  propertyName: S
1865
1865
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1866
- ], 40, Ro)) : "type" in R && R.type === "boolean" && m.searchOnly ? (n(), l("div", Lo, [
1867
- M(Ye, U({ ref_for: !0 }, {
1866
+ ], 40, Lo)) : "type" in R && R.type === "boolean" && m.searchOnly ? (t(), l("div", Mo, [
1867
+ M(Xe, E({ ref_for: !0 }, {
1868
1868
  property: R,
1869
1869
  propertyName: S
1870
1870
  }, {
1871
1871
  "boolean-ref": "",
1872
1872
  "model-value": m.modelValue[S],
1873
- onChange: T[2] || (T[2] = (N) => t("change", N)),
1873
+ onChange: T[2] || (T[2] = (N) => o("change", N)),
1874
1874
  "onUpdate:modelValue": (N) => {
1875
1875
  m.modelValue[S] = N;
1876
1876
  }
1877
1877
  }), {
1878
1878
  default: b(() => [
1879
- B("option", Mo, C(e(L)("yes")), 1),
1880
- B("option", qo, C(e(L)("no")), 1)
1879
+ B("option", qo, C(e(L)("yes")), 1),
1880
+ B("option", zo, C(e(L)("no")), 1)
1881
1881
  ]),
1882
1882
  _: 2
1883
1883
  }, 1040, ["model-value", "onUpdate:modelValue"])
1884
- ])) : m.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (n(), l("div", zo, [
1885
- e(_) ? h("", !0) : (n(), l("div", Fo, [
1884
+ ])) : m.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(), l("div", Fo, [
1885
+ e(_) ? h("", !0) : (t(), l("div", Eo, [
1886
1886
  M(pe, {
1887
1887
  small: "",
1888
1888
  variant: "alt",
1889
1889
  icon: "plus",
1890
- disabled: !("inline" in R.items && R.items.inline) && (((ve = m.modelValue[S]) == null ? void 0 : ve.length) >= R.maxItems || me((Je = m.modelValue[S]) == null ? void 0 : Je[((Oe = m.modelValue[S]) == null ? void 0 : Oe.length) - 1])),
1890
+ disabled: !("inline" in R.items && R.items.inline) && (((ye = m.modelValue[S]) == null ? void 0 : ye.length) >= R.maxItems || me((Je = m.modelValue[S]) == null ? void 0 : Je[((Oe = m.modelValue[S]) == null ? void 0 : Oe.length) - 1])),
1891
1891
  onClick: Re((N) => {
1892
- m.modelValue[S] || (m.modelValue[S] = []), e(Io)(m.modelValue[S], R, e(a));
1892
+ m.modelValue[S] || (m.modelValue[S] = []), e(Bo)(m.modelValue[S], R, e(a));
1893
1893
  }, ["prevent"])
1894
1894
  }, {
1895
1895
  default: b(() => [
@@ -1898,18 +1898,18 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1898
1898
  _: 2
1899
1899
  }, 1032, ["disabled", "onClick"])
1900
1900
  ])),
1901
- ((Ze = m.modelValue[S]) == null ? void 0 : Ze.length) > 0 ? (n(), l("div", Uo, [
1902
- (n(!0), l(J, null, E(m.modelValue[S], (N, we) => {
1901
+ ((Ze = m.modelValue[S]) == null ? void 0 : Ze.length) > 0 ? (t(), l("div", Uo, [
1902
+ (t(!0), l(J, null, U(m.modelValue[S], (N, we) => {
1903
1903
  var at, lt, st, it, rt, ut;
1904
- return n(), l("div", {
1905
- key: `rep-${S}-${e(Et)(N, we)}`,
1904
+ return t(), l("div", {
1905
+ key: `rep-${S}-${e(Ht)(N, we)}`,
1906
1906
  class: "form__array-item"
1907
1907
  }, [
1908
- e(_) ? h("", !0) : Y((n(), V(W, {
1908
+ e(_) ? h("", !0) : X((t(), V(W, {
1909
1909
  key: 0,
1910
1910
  icon: "trash",
1911
1911
  class: "form__array-remove",
1912
- onClick: Re((Te) => e(Bo)(m.modelValue[S], we), ["prevent"])
1912
+ onClick: Re((Te) => e(So)(m.modelValue[S], we), ["prevent"])
1913
1913
  }, {
1914
1914
  default: b(() => [
1915
1915
  H(C(e(L)("action.remove", { capitalize: !0 })), 1)
@@ -1918,7 +1918,7 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1918
1918
  }, 1032, ["onClick"])), [
1919
1919
  [Q]
1920
1920
  ]),
1921
- (n(), V(he(e(dt)(R, e(O))), U({
1921
+ (t(), V(he(e(dt)(R, e(O))), E({
1922
1922
  modelValue: m.modelValue[S][we],
1923
1923
  "onUpdate:modelValue": (Te) => m.modelValue[S][we] = Te,
1924
1924
  ref_for: !0
@@ -1932,13 +1932,13 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1932
1932
  validationErrors: A(S, we),
1933
1933
  ...R.componentProps || {}
1934
1934
  }, {
1935
- onInput: (Te) => t("input", S),
1936
- onChange: T[3] || (T[3] = (Te) => t("change", Te))
1935
+ onInput: (Te) => o("input", S),
1936
+ onChange: T[3] || (T[3] = (Te) => o("change", Te))
1937
1937
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
1938
1938
  ]);
1939
1939
  }), 128))
1940
1940
  ])) : h("", !0)
1941
- ])) : m.modelValue ? Y((n(), V(he(e(dt)(R, e(O))), U({
1941
+ ])) : m.modelValue ? X((t(), V(he(e(dt)(R, e(O))), E({
1942
1942
  key: 6,
1943
1943
  modelValue: m.modelValue[S],
1944
1944
  "onUpdate:modelValue": (N) => m.modelValue[S] = N,
@@ -1953,21 +1953,21 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1953
1953
  ...R.componentProps || {},
1954
1954
  validationErrors: A(S)
1955
1955
  }, {
1956
- onInput: (N) => t("input", S),
1957
- onChange: T[4] || (T[4] = (N) => t("change", N)),
1958
- onClipboardCopy: T[5] || (T[5] = (N) => t("clipboardCopy", N))
1956
+ onInput: (N) => o("input", S),
1957
+ onChange: T[4] || (T[4] = (N) => o("change", N)),
1958
+ onClipboardCopy: T[5] || (T[5] = (N) => o("clipboardCopy", N))
1959
1959
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1960
1960
  [P, oe(R)]
1961
1961
  ]) : h("", !0),
1962
- (ot = v.value) != null && ot[S] ? (n(), l("div", Eo, [
1963
- v.value[S].type ? (n(), l("span", Ho, C(e(L)(`validation_error.${v.value[S].type}`)), 1)) : h("", !0),
1964
- v.value[S].detail ? (n(), l("span", Do, C(e(L)(v.value[S].detail)), 1)) : h("", !0)
1962
+ (ot = v.value) != null && ot[S] ? (t(), l("div", Ho, [
1963
+ v.value[S].type ? (t(), l("span", Do, C(e(L)(`validation_error.${v.value[S].type}`)), 1)) : h("", !0),
1964
+ v.value[S].detail ? (t(), l("span", Qo, C(e(L)(v.value[S].detail)), 1)) : h("", !0)
1965
1965
  ])) : h("", !0)
1966
1966
  ], 6);
1967
1967
  }), 128))
1968
1968
  ]),
1969
1969
  m.$slots.after ? I(m.$slots, "after", { key: 1 }, void 0, !0) : h("", !0),
1970
- m.$slots.footer ? (n(), l("div", Qo, [
1970
+ m.$slots.footer ? (t(), l("div", Go, [
1971
1971
  I(m.$slots, "footer", de(Ve({
1972
1972
  isInsertReady: y.value
1973
1973
  })), void 0, !0)
@@ -1976,21 +1976,21 @@ const Ao = /* @__PURE__ */ D(Oo, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
1976
1976
  };
1977
1977
  }
1978
1978
  });
1979
- const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @__PURE__ */ z({
1979
+ const He = /* @__PURE__ */ D(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @__PURE__ */ z({
1980
1980
  __name: "aeria-filter-panel",
1981
1981
  emits: ["update:modelValue"],
1982
1982
  setup(p, { emit: r }) {
1983
- const a = r, o = Ee(), t = Be(), c = e(be(qe)), u = () => {
1984
- if (o.pagination.offset = 0, o.$actions.filter(), a("update:modelValue", !1), "query" in t.currentRoute && t.currentRoute.query && typeof t.currentRoute.query == "object") {
1985
- const _ = t.currentRoute.query;
1983
+ const a = r, n = Ue(), o = Be(), c = e(fe(ze)), u = () => {
1984
+ if (n.pagination.offset = 0, n.$actions.filter(), a("update:modelValue", !1), "query" in o.currentRoute && o.currentRoute.query && typeof o.currentRoute.query == "object") {
1985
+ const _ = o.currentRoute.query;
1986
1986
  for (const d of Object.keys(_))
1987
1987
  d.startsWith(`${c}.`) && delete _[d];
1988
1988
  }
1989
- t.push(Le(t.currentRoute, {
1990
- query: Rt(o)
1989
+ o.push(Le(o.currentRoute, {
1990
+ query: jt(n)
1991
1991
  }));
1992
1992
  };
1993
- return (_, d) => (n(), V(Se, {
1993
+ return (_, d) => (t(), V(Se, {
1994
1994
  "close-hint": "",
1995
1995
  "fixed-right": "",
1996
1996
  title: _.t("filter_by", { capitalize: !0 }),
@@ -1998,18 +1998,18 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
1998
1998
  onOverlayClick: d[3] || (d[3] = ($) => a("update:modelValue", !1))
1999
1999
  }, {
2000
2000
  footer: b(() => [
2001
- e(o).filtersCount > 0 ? (n(), V(pe, {
2001
+ e(n).filtersCount > 0 ? (t(), V(pe, {
2002
2002
  key: 0,
2003
2003
  variant: "transparent",
2004
2004
  onClick: d[1] || (d[1] = ($) => {
2005
- e(o).$actions.clearFilters(), u(), a("update:modelValue", !1);
2005
+ e(n).$actions.clearFilters(), u(), a("update:modelValue", !1);
2006
2006
  })
2007
2007
  }, {
2008
2008
  default: b(() => [
2009
2009
  H(C(_.t("action.clear", { capitalize: !0 })) + " ", 1),
2010
2010
  M(ke, null, {
2011
2011
  default: b(() => [
2012
- H(C(e(o).filtersCount), 1)
2012
+ H(C(e(n).filtersCount), 1)
2013
2013
  ]),
2014
2014
  _: 1
2015
2015
  })
@@ -2019,7 +2019,7 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2019
2019
  M(pe, {
2020
2020
  large: "",
2021
2021
  icon: "funnel",
2022
- disabled: !e(o).hasActiveFilters,
2022
+ disabled: !e(n).hasActiveFilters,
2023
2023
  onClick: u
2024
2024
  }, {
2025
2025
  default: b(() => [
@@ -2029,13 +2029,13 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2029
2029
  }, 8, ["disabled"])
2030
2030
  ]),
2031
2031
  default: b(() => [
2032
- M(He, U({
2033
- modelValue: e(o).filters,
2034
- "onUpdate:modelValue": d[0] || (d[0] = ($) => e(o).filters = $)
2032
+ M(He, E({
2033
+ modelValue: e(n).filters,
2034
+ "onUpdate:modelValue": d[0] || (d[0] = ($) => e(n).filters = $)
2035
2035
  }, {
2036
2036
  searchOnly: !0,
2037
- form: e(o).availableFilters,
2038
- layout: e(o).description.formLayout
2037
+ form: e(n).availableFilters,
2038
+ layout: e(n).description.formLayout
2039
2039
  }, { focus: "" }), null, 16, ["modelValue"])
2040
2040
  ]),
2041
2041
  _: 1
@@ -2055,45 +2055,45 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2055
2055
  },
2056
2056
  emits: ["update:visible", "update:modelValue", "insert", "cancel"],
2057
2057
  setup(p, { emit: r }) {
2058
- const a = p, o = r, t = ie("meta"), c = a.collection, u = ie(c);
2058
+ const a = p, n = r, o = ie("meta"), c = a.collection, u = ie(c);
2059
2059
  We(() => {
2060
2060
  a.modelValue && u.$actions.setItem(a.modelValue);
2061
2061
  });
2062
- const _ = X(() => a.form ? u.$actions.useProperties(a.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
2062
+ const _ = K(() => a.form ? u.$actions.useProperties(a.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
2063
2063
  const { error: k, result: v } = await u.$actions.deepInsert();
2064
- k || (o("update:visible", !1), o("update:modelValue", v), o("insert", v), u.$actions.clearItem());
2064
+ k || (n("update:visible", !1), n("update:modelValue", v), n("insert", v), u.$actions.clearItem());
2065
2065
  }, { t: $ } = It(), s = () => {
2066
- t.$actions.ask({
2066
+ o.$actions.ask({
2067
2067
  action: () => {
2068
- u.$actions.clearItem(), u.validationErrors = {}, o("cancel");
2068
+ u.$actions.clearItem(), u.validationErrors = {}, n("cancel");
2069
2069
  },
2070
2070
  body: $("prompt.close_panel")
2071
2071
  });
2072
- }, f = () => t.$actions.spawnToast({
2072
+ }, f = () => o.$actions.spawnToast({
2073
2073
  icon: "info",
2074
2074
  text: $("copied_to_clipboard")
2075
2075
  });
2076
2076
  return re(() => u.item._id, (k) => {
2077
- k === null && o("update:visible", !1);
2077
+ k === null && n("update:visible", !1);
2078
2078
  }), (k, v) => {
2079
2079
  const O = te("clickable");
2080
- return n(), V(Se, {
2080
+ return t(), V(Se, {
2081
2081
  "model-value": k.visible,
2082
2082
  loading: e(u).loading.get,
2083
2083
  onOverlayClick: s
2084
2084
  }, ue({
2085
2085
  extra: b(() => [
2086
- k.individualActions ? (n(), V(Ie, U({ key: 0 }, {
2086
+ k.individualActions ? (t(), V(Ie, E({ key: 0 }, {
2087
2087
  subject: e(u).item,
2088
2088
  actions: k.individualActions.filter(({ action: i }) => i !== "spawnEdit"),
2089
2089
  overlayLayer: 60
2090
2090
  }, {
2091
- onActionClick: v[2] || (v[2] = (i) => o("update:visible", !1))
2091
+ onActionClick: v[2] || (v[2] = (i) => n("update:visible", !1))
2092
2092
  }), {
2093
2093
  default: b(({
2094
2094
  visible: i
2095
2095
  }) => [
2096
- e(u).item._id ? Y((n(), V(W, {
2096
+ e(u).item._id ? X((t(), V(W, {
2097
2097
  key: 0,
2098
2098
  reactive: "",
2099
2099
  active: i,
@@ -2106,7 +2106,7 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2106
2106
  }, 16)) : h("", !0)
2107
2107
  ]),
2108
2108
  default: b(() => [
2109
- M(He, U({
2109
+ M(He, E({
2110
2110
  modelValue: e(u).item,
2111
2111
  "onUpdate:modelValue": v[0] || (v[0] = (i) => e(u).item = i)
2112
2112
  }, {
@@ -2121,7 +2121,7 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2121
2121
  onClipboardCopy: f,
2122
2122
  onAdd: v[1] || (v[1] = (i) => i.preventDefault())
2123
2123
  }), ue({ _: 2 }, [
2124
- E(Object.keys(k.$slots).filter((i) => i.startsWith("field-")), (i) => ({
2124
+ U(Object.keys(k.$slots).filter((i) => i.startsWith("field-")), (i) => ({
2125
2125
  name: i,
2126
2126
  fn: b((q) => [
2127
2127
  I(k.$slots, i, de(Ve(q)))
@@ -2178,15 +2178,15 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2178
2178
  }, Xo = (p, r = {
2179
2179
  persistInQuery: !0
2180
2180
  }) => {
2181
- const o = Be().currentRoute;
2182
- return re(() => o.value.query.section, (t) => {
2181
+ const n = Be().currentRoute;
2182
+ return re(() => n.value.query.section, (o) => {
2183
2183
  if (p) {
2184
2184
  if (p.description.filtersPresets) {
2185
- const c = t || Object.keys(p.description.filtersPresets)[0];
2185
+ const c = o || Object.keys(p.description.filtersPresets)[0];
2186
2186
  bt(p.description.filtersPresets[c], p);
2187
2187
  }
2188
2188
  if (r.persistInQuery) {
2189
- const c = o.value.query;
2189
+ const c = n.value.query;
2190
2190
  c.offset && (p.pagination.offset = +c.offset), c.limit && (p.pagination.limit = +c.limit), c.search && (p.textQuery = c.search, p.filters.$text = {
2191
2191
  $search: `"${c.search}"`,
2192
2192
  $caseSensitive: !1
@@ -2196,25 +2196,25 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2196
2196
  }, {
2197
2197
  immediate: !0
2198
2198
  });
2199
- }, Yo = {
2199
+ }, Jo = {
2200
2200
  key: 0,
2201
2201
  class: "table aeria-surface"
2202
- }, Jo = { key: 0 }, Zo = { key: 1 }, Po = { key: 0 }, No = ["checked"], xo = {
2202
+ }, Zo = { key: 0 }, Po = { key: 1 }, No = { key: 0 }, xo = ["checked"], ea = {
2203
2203
  key: 1,
2204
2204
  style: { "text-align": "right" }
2205
- }, ea = { key: 2 }, ta = { key: 3 }, na = ["onClick"], oa = { key: 0 }, aa = ["value"], la = { class: "table__cell-mobile-label" }, sa = {
2205
+ }, ta = { key: 2 }, na = { key: 3 }, oa = ["onClick"], aa = { key: 0 }, la = ["value"], sa = { class: "table__cell-mobile-label" }, ia = {
2206
2206
  key: 0,
2207
2207
  class: "table__cell-container"
2208
- }, ia = {
2208
+ }, ra = {
2209
2209
  key: 1,
2210
2210
  class: "table__cell-container"
2211
- }, ra = { class: "table__cell-grid" }, ua = { key: 0 }, ca = { key: 1 }, da = { key: 0 }, pa = ["href"], _a = { key: 3 }, ma = { key: 1 }, fa = { key: 2 }, va = { key: 0 }, ya = { key: 1 }, ba = { key: 2 }, ha = {
2211
+ }, ua = { class: "table__cell-grid" }, ca = { key: 0 }, da = { key: 1 }, pa = { key: 0 }, _a = ["href"], ma = { key: 3 }, fa = { key: 1 }, va = { key: 2 }, ya = { key: 0 }, ba = { key: 1 }, ha = { key: 2 }, $a = {
2212
2212
  key: 1,
2213
2213
  class: "no-print"
2214
- }, $a = { class: "table__cell-actions" }, ga = {
2214
+ }, ga = { class: "table__cell-actions" }, ka = {
2215
2215
  key: 2,
2216
2216
  class: "no-print table__mobile-actions"
2217
- }, ka = ["id"], Va = { key: 1 }, Ca = ["colspan"], Oa = { class: "table__empty" }, Aa = /* @__PURE__ */ z({
2217
+ }, Va = ["id"], Ca = { key: 1 }, Oa = ["colspan"], Aa = { class: "table__empty" }, Ia = /* @__PURE__ */ z({
2218
2218
  __name: "aeria-table",
2219
2219
  props: {
2220
2220
  columns: {},
@@ -2226,95 +2226,95 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2226
2226
  },
2227
2227
  emits: ["itemClick"],
2228
2228
  setup(p, { emit: r }) {
2229
- const a = p, o = r, t = ze(), c = a.collection || Me(), u = c ? ie(typeof c == "string" ? c : c.value) : null, _ = X({
2229
+ const a = p, n = r, o = Me(), c = a.collection || qe(), u = c ? ie(typeof c == "string" ? c : c.value) : null, _ = K({
2230
2230
  get: () => u == null ? void 0 : u.selected,
2231
2231
  set: (v) => u == null ? void 0 : u.$actions.selectManyItems(v, !0)
2232
- }), d = X(() => a.columns ? Object.keys(a.columns).length + Number(a.checkbox) : 0), $ = (v, O) => v.button ? typeof v.button == "object" ? Qe(O, v.button).satisfied : v.button : !1, s = (v) => {
2232
+ }), d = K(() => a.columns ? Object.keys(a.columns).length + Number(a.checkbox) : 0), $ = (v, O) => v.button ? typeof v.button == "object" ? Qe(O, v.button).satisfied : v.button : !1, s = (v) => {
2233
2233
  var i;
2234
2234
  const O = (i = a.layout) == null ? void 0 : i.actions;
2235
- return !t.value.xl || !O || !a.actions ? [] : a.actions.filter((q) => {
2236
- const K = O[q.action];
2237
- return K && $(K, v);
2235
+ return !o.value.xl || !O || !a.actions ? [] : a.actions.filter((q) => {
2236
+ const Y = O[q.action];
2237
+ return Y && $(Y, v);
2238
2238
  });
2239
2239
  }, f = (v) => {
2240
2240
  var i;
2241
2241
  if (!a.actions)
2242
2242
  return [];
2243
2243
  const O = (i = a.layout) == null ? void 0 : i.actions;
2244
- return !t.value.xl || !O ? a.actions : a.actions.filter((q) => {
2245
- const K = O[q.action];
2244
+ return !o.value.xl || !O ? a.actions : a.actions.filter((q) => {
2245
+ const Y = O[q.action];
2246
2246
  if (q.roles) {
2247
2247
  const Z = ie("user");
2248
- if (!ft(q.roles, Z.currentUser.roles))
2248
+ if (!yt(q.roles, Z.currentUser.roles))
2249
2249
  return !1;
2250
2250
  }
2251
- return !K || !$(K, v);
2251
+ return !Y || !$(Y, v);
2252
2252
  });
2253
2253
  }, k = (v, O) => {
2254
- var K, Z;
2255
- const i = [], q = (Z = (K = a.layout) == null ? void 0 : K.actions) == null ? void 0 : Z[O.action];
2254
+ var Y, Z;
2255
+ const i = [], q = (Z = (Y = a.layout) == null ? void 0 : Y.actions) == null ? void 0 : Z[O.action];
2256
2256
  return q != null && q.if && (Qe(
2257
2257
  v,
2258
2258
  q.if
2259
2259
  ).satisfied || i.push("display: none;")), i.join("");
2260
2260
  };
2261
2261
  return (v, O) => {
2262
- var q, K, Z;
2262
+ var q, Y, Z;
2263
2263
  const i = te("clickable");
2264
- return d.value > 0 || v.$slots.thead ? (n(), l("table", Yo, [
2265
- v.$slots.thead ? (n(), l("thead", Jo, [
2264
+ return d.value > 0 || v.$slots.thead ? (t(), l("table", Jo, [
2265
+ v.$slots.thead ? (t(), l("thead", Zo, [
2266
2266
  I(v.$slots, "thead", {}, void 0, !0)
2267
- ])) : (n(), l("thead", Zo, [
2267
+ ])) : (t(), l("thead", Po, [
2268
2268
  B("tr", null, [
2269
- v.checkbox && e(u) && e(t).md ? (n(), l("th", Po, [
2269
+ v.checkbox && e(u) && e(o).md ? (t(), l("th", No, [
2270
2270
  B("input", {
2271
2271
  type: "checkbox",
2272
2272
  checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
2273
2273
  onChange: O[0] || (O[0] = (g) => e(u).$actions.selectAllItems(g.target.checked))
2274
- }, null, 40, No)
2274
+ }, null, 40, xo)
2275
2275
  ])) : h("", !0),
2276
- (n(!0), l(J, null, E(Object.entries(v.columns), ([g, F], le) => (n(), l("th", {
2276
+ (t(!0), l(J, null, U(Object.entries(v.columns), ([g, F], le) => (t(), l("th", {
2277
2277
  key: `header-${le}`,
2278
2278
  class: "table__header"
2279
2279
  }, C(F.description || e(L)(g)), 1))), 128)),
2280
- (q = v.actions) != null && q.length ? (n(), l("th", xo)) : h("", !0)
2280
+ (q = v.actions) != null && q.length ? (t(), l("th", ea)) : h("", !0)
2281
2281
  ])
2282
2282
  ])),
2283
- v.$slots.tbody ? (n(), l("tbody", ea, [
2283
+ v.$slots.tbody ? (t(), l("tbody", ta, [
2284
2284
  I(v.$slots, "tbody", {}, void 0, !0)
2285
- ])) : (n(), l("tbody", ta, [
2286
- (n(!0), l(J, null, E(v.rows, (g) => {
2285
+ ])) : (t(), l("tbody", na, [
2286
+ (t(!0), l(J, null, U(v.rows, (g) => {
2287
2287
  var F, le;
2288
- return n(), l("tr", {
2288
+ return t(), l("tr", {
2289
2289
  key: g._id,
2290
- onClick: (w) => o("itemClick", g)
2290
+ onClick: (w) => n("itemClick", g)
2291
2291
  }, [
2292
- e(u) && v.checkbox && e(t).md ? (n(), l("td", oa, [
2293
- Y(B("input", {
2292
+ e(u) && v.checkbox && e(o).md ? (t(), l("td", aa, [
2293
+ X(B("input", {
2294
2294
  "onUpdate:modelValue": O[1] || (O[1] = (w) => _.value = w),
2295
2295
  type: "checkbox",
2296
2296
  value: g._id
2297
- }, null, 8, aa), [
2297
+ }, null, 8, la), [
2298
2298
  [gt, _.value]
2299
2299
  ])
2300
2300
  ])) : h("", !0),
2301
- (n(!0), l(J, null, E(Object.entries(v.columns), ([w, ee], fe) => {
2301
+ (t(!0), l(J, null, U(Object.entries(v.columns), ([w, ee], ve) => {
2302
2302
  var me, ce, y;
2303
- return n(), l("td", {
2304
- key: `column-${g._id}-${fe}`
2303
+ return t(), l("td", {
2304
+ key: `column-${g._id}-${ve}`
2305
2305
  }, [
2306
- B("div", la, C(ee.description || e(L)(w)), 1),
2307
- `row-${w}` in v.$slots ? (n(), l("div", sa, [
2308
- I(v.$slots, `row-${w}`, U({ ref_for: !0 }, {
2306
+ B("div", sa, C(ee.description || e(L)(w)), 1),
2307
+ `row-${w}` in v.$slots ? (t(), l("div", ia, [
2308
+ I(v.$slots, `row-${w}`, E({ ref_for: !0 }, {
2309
2309
  store: e(u),
2310
2310
  column: w,
2311
2311
  property: ee,
2312
2312
  row: g
2313
2313
  }), void 0, !0)
2314
- ])) : (n(), l("div", ia, [
2315
- B("div", ra, [
2316
- "type" in ee && ee.type === "boolean" ? (n(), l("div", ua, [
2317
- g[w] ? (n(), V(W, {
2314
+ ])) : (t(), l("div", ra, [
2315
+ B("div", ua, [
2316
+ "type" in ee && ee.type === "boolean" ? (t(), l("div", ca, [
2317
+ g[w] ? (t(), V(W, {
2318
2318
  key: 0,
2319
2319
  icon: "check",
2320
2320
  "icon-classes": "aeria-blueish"
@@ -2323,7 +2323,7 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2323
2323
  H(C(e(L)("yes")), 1)
2324
2324
  ]),
2325
2325
  _: 1
2326
- })) : (n(), V(W, {
2326
+ })) : (t(), V(W, {
2327
2327
  key: 1,
2328
2328
  icon: "x",
2329
2329
  "icon-classes": "aeria-redish"
@@ -2333,9 +2333,9 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2333
2333
  ]),
2334
2334
  _: 1
2335
2335
  }))
2336
- ])) : ((me = e(_e)(ee)) == null ? void 0 : me.$ref) === "file" ? (n(), l("div", ca, [
2337
- g[w] ? (n(), l("div", da, [
2338
- "items" in ee && g[w][0] && /^image/.test(g[w][0].type) ? (n(), V(Ue, {
2336
+ ])) : ((me = e(_e)(ee)) == null ? void 0 : me.$ref) === "file" ? (t(), l("div", da, [
2337
+ g[w] ? (t(), l("div", pa, [
2338
+ "items" in ee && g[w][0] && /^image/.test(g[w][0].type) ? (t(), V(Ee, {
2339
2339
  key: 0,
2340
2340
  modelValue: g[w][0].link,
2341
2341
  "onUpdate:modelValue": (A) => g[w][0].link = A,
@@ -2343,7 +2343,7 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2343
2343
  meta: g[w][0],
2344
2344
  alt: "Row image",
2345
2345
  class: "table__picture"
2346
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(g[w].type) ? (n(), V(Ue, {
2346
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(g[w].type) ? (t(), V(Ee, {
2347
2347
  key: 1,
2348
2348
  modelValue: g[w].link,
2349
2349
  "onUpdate:modelValue": (A) => g[w].link = A,
@@ -2351,20 +2351,20 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2351
2351
  meta: g[w],
2352
2352
  alt: "Row image",
2353
2353
  class: "table__picture"
2354
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : g[w].link ? (n(), l("a", {
2354
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : g[w].link ? (t(), l("a", {
2355
2355
  key: 2,
2356
2356
  href: g[w].link,
2357
2357
  style: { "font-size": "10pt" }
2358
- }, C(g[w].filename), 9, pa)) : (n(), l("div", _a, " - "))
2359
- ])) : (n(), l("div", ma, " - "))
2360
- ])) : (n(), l("div", fa, [
2361
- e(u) ? (n(), l("span", va, C(e(u).$actions.formatValue({
2358
+ }, C(g[w].filename), 9, _a)) : (t(), l("div", ma, " - "))
2359
+ ])) : (t(), l("div", fa, " - "))
2360
+ ])) : (t(), l("div", va, [
2361
+ e(u) ? (t(), l("span", ya, C(e(u).$actions.formatValue({
2362
2362
  value: g[w],
2363
2363
  key: w,
2364
2364
  property: ee
2365
- })), 1)) : (n(), l("span", ya, C(Array.isArray(g[w]) ? g[w].filter((A) => !!A).join(", ") : [void 0, null].includes(g[w]) ? "-" : g[w]), 1)),
2366
- ((y = (ce = e(_e)(ee)) == null ? void 0 : ce.indexes) == null ? void 0 : y.length) > 1 ? (n(), l("div", ba, [
2367
- (n(!0), l(J, null, E(e(_e)(ee).indexes.slice(1, 2), (A, oe) => (n(), l("div", {
2365
+ })), 1)) : (t(), l("span", ba, C(Array.isArray(g[w]) ? g[w].filter((A) => !!A).join(", ") : [void 0, null].includes(g[w]) ? "-" : g[w]), 1)),
2366
+ ((y = (ce = e(_e)(ee)) == null ? void 0 : ce.indexes) == null ? void 0 : y.length) > 1 ? (t(), l("div", ha, [
2367
+ (t(!0), l(J, null, U(e(_e)(ee).indexes.slice(1, 2), (A, oe) => (t(), l("div", {
2368
2368
  key: `subvalue-${oe}`,
2369
2369
  class: "table__cell-subvalue"
2370
2370
  }, C(e(u).$actions.formatValue({
@@ -2379,9 +2379,9 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2379
2379
  ]))
2380
2380
  ]);
2381
2381
  }), 128)),
2382
- (F = v.actions) != null && F.length && e(t).md ? (n(), l("td", ha, [
2383
- B("div", $a, [
2384
- (n(!0), l(J, null, E(s(g), (w) => (n(), V(pe, {
2382
+ (F = v.actions) != null && F.length && e(o).md ? (t(), l("td", $a, [
2383
+ B("div", ga, [
2384
+ (t(!0), l(J, null, U(s(g), (w) => (t(), V(pe, {
2385
2385
  key: `action-${w.action}`,
2386
2386
  small: "",
2387
2387
  variant: "alt",
@@ -2394,7 +2394,7 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2394
2394
  ]),
2395
2395
  _: 2
2396
2396
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2397
- f(g).length > 0 ? (n(), V(Ie, U({
2397
+ f(g).length > 0 ? (t(), V(Ie, E({
2398
2398
  key: 0,
2399
2399
  ref_for: !0
2400
2400
  }, {
@@ -2404,7 +2404,7 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2404
2404
  default: b(({
2405
2405
  visible: w
2406
2406
  }) => [
2407
- Y(M(W, {
2407
+ X(M(W, {
2408
2408
  reactive: "",
2409
2409
  active: w,
2410
2410
  icon: "dots-three"
@@ -2415,12 +2415,12 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2415
2415
  _: 2
2416
2416
  }, 1040)) : h("", !0)
2417
2417
  ])
2418
- ])) : (le = v.actions) != null && le.length ? (n(), l("td", ga, [
2418
+ ])) : (le = v.actions) != null && le.length ? (t(), l("td", ka, [
2419
2419
  B("div", {
2420
2420
  class: "table__mobile-actions-grid",
2421
2421
  style: ge(`grid-template-columns: repeat(${s(g).length + (f(g).length ? 1 : 0)}, 1fr);`)
2422
2422
  }, [
2423
- (n(!0), l(J, null, E(s(g), (w) => (n(), V(ye, {
2423
+ (t(!0), l(J, null, U(s(g), (w) => (t(), V(be, {
2424
2424
  key: `action-${w.action}`,
2425
2425
  class: "table__mobile-actions-button",
2426
2426
  onClick: (ee) => w.click(g)
@@ -2437,7 +2437,7 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2437
2437
  ]),
2438
2438
  _: 2
2439
2439
  }, 1032, ["onClick"]))), 128)),
2440
- f(g).length > 0 ? (n(), V(Ie, U({
2440
+ f(g).length > 0 ? (t(), V(Ie, E({
2441
2441
  key: 0,
2442
2442
  ref_for: !0
2443
2443
  }, {
@@ -2455,25 +2455,25 @@ const He = /* @__PURE__ */ D(Go, [["__scopeId", "data-v-070e513e"]]), Wo = /* @_
2455
2455
  ], 4),
2456
2456
  B("div", {
2457
2457
  id: `dropdown-${g._id}`
2458
- }, null, 8, ka)
2458
+ }, null, 8, Va)
2459
2459
  ])) : h("", !0)
2460
- ], 8, na);
2460
+ ], 8, oa);
2461
2461
  }), 128))
2462
2462
  ])),
2463
2463
  B("tfoot", null, [
2464
- v.$slots.tfoot ? I(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((K = v.rows) != null && K.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (n(), l("tr", Va, [
2464
+ v.$slots.tfoot ? I(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((Y = v.rows) != null && Y.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (t(), l("tr", Ca, [
2465
2465
  B("td", {
2466
2466
  colspan: d.value + 1
2467
2467
  }, [
2468
- B("div", Oa, C(e(L)("no_results", { capitalize: !0 })) + ". ", 1)
2469
- ], 8, Ca)
2468
+ B("div", Aa, C(e(L)("no_results", { capitalize: !0 })) + ". ", 1)
2469
+ ], 8, Oa)
2470
2470
  ])) : h("", !0)
2471
2471
  ])
2472
2472
  ])) : h("", !0);
2473
2473
  };
2474
2474
  }
2475
2475
  });
2476
- const Ia = /* @__PURE__ */ D(Aa, [["__scopeId", "data-v-89303bb6"]]), Ba = /* @__PURE__ */ z({
2476
+ const Ba = /* @__PURE__ */ D(Ia, [["__scopeId", "data-v-89303bb6"]]), Sa = /* @__PURE__ */ z({
2477
2477
  __name: "aeria-tabular",
2478
2478
  props: {
2479
2479
  individualActions: {},
@@ -2481,9 +2481,9 @@ const Ia = /* @__PURE__ */ D(Aa, [["__scopeId", "data-v-89303bb6"]]), Ba = /* @_
2481
2481
  componentProps: {}
2482
2482
  },
2483
2483
  setup(p) {
2484
- const r = p, a = je(), o = Me(), t = X(() => {
2484
+ const r = p, a = je(), n = qe(), o = K(() => {
2485
2485
  const c = {
2486
- collection: o,
2486
+ collection: n,
2487
2487
  checkbox: a.hasSelectionActions,
2488
2488
  columns: a.tableProperties,
2489
2489
  rows: a.items,
@@ -2492,12 +2492,12 @@ const Ia = /* @__PURE__ */ D(Aa, [["__scopeId", "data-v-89303bb6"]]), Ba = /* @_
2492
2492
  };
2493
2493
  return Object.assign(c, r.componentProps);
2494
2494
  });
2495
- return (c, u) => (n(), l("div", null, [
2495
+ return (c, u) => (t(), l("div", null, [
2496
2496
  c.$slots.inner ? I(c.$slots, "inner", { key: 0 }) : h("", !0),
2497
- e(a).properties ? (n(), V(Ia, U({ key: 1 }, t.value, {
2497
+ e(a).properties ? (t(), V(Ba, E({ key: 1 }, o.value, {
2498
2498
  key: e(a).$id
2499
2499
  }), ue({ _: 2 }, [
2500
- E(Object.keys(c.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2500
+ U(Object.keys(c.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2501
2501
  name: _,
2502
2502
  fn: b((d) => [
2503
2503
  I(c.$slots, _, de(Ve(d)))
@@ -2506,26 +2506,26 @@ const Ia = /* @__PURE__ */ D(Aa, [["__scopeId", "data-v-89303bb6"]]), Ba = /* @_
2506
2506
  ]), 1040)) : h("", !0)
2507
2507
  ]));
2508
2508
  }
2509
- }), Sa = /* @__PURE__ */ z({
2509
+ }), wa = /* @__PURE__ */ z({
2510
2510
  __name: "aeria-grid",
2511
2511
  props: {
2512
2512
  list: { type: Boolean }
2513
2513
  },
2514
2514
  setup(p) {
2515
- return (r, a) => (n(), l("div", {
2516
- class: G(`
2517
- grid
2518
- ${r.list && "grid--list"}
2519
- `)
2515
+ return (r, a) => (t(), l("div", {
2516
+ class: G([
2517
+ "grid",
2518
+ { "grid--list": r.list }
2519
+ ])
2520
2520
  }, [
2521
2521
  I(r.$slots, "default", {}, void 0, !0)
2522
2522
  ], 2));
2523
2523
  }
2524
2524
  });
2525
- const wa = /* @__PURE__ */ D(Sa, [["__scopeId", "data-v-438c4aed"]]), Ta = { key: 0 }, ja = {
2525
+ const Ta = /* @__PURE__ */ D(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key: 0 }, Ra = {
2526
2526
  key: 1,
2527
2527
  class: "card__information"
2528
- }, Ra = /* @__PURE__ */ z({
2528
+ }, La = /* @__PURE__ */ z({
2529
2529
  __name: "aeria-grid",
2530
2530
  props: {
2531
2531
  individualActions: {},
@@ -2534,26 +2534,26 @@ const wa = /* @__PURE__ */ D(Sa, [["__scopeId", "data-v-438c4aed"]]), Ta = { key
2534
2534
  componentName: {}
2535
2535
  },
2536
2536
  setup(p) {
2537
- const a = p.layoutOptions, o = je(), t = (c) => Array.isArray(c) ? c[0] : c;
2537
+ const a = p.layoutOptions, n = je(), o = (c) => Array.isArray(c) ? c[0] : c;
2538
2538
  return (c, u) => {
2539
2539
  const _ = te("clickable");
2540
- return n(), V(wa, {
2540
+ return t(), V(Ta, {
2541
2541
  list: c.componentName === "list"
2542
2542
  }, {
2543
2543
  default: b(() => [
2544
- (n(!0), l(J, null, E(e(o).items, (d) => (n(), V(an, {
2544
+ (t(!0), l(J, null, U(e(n).items, (d) => (t(), V(ln, {
2545
2545
  key: d,
2546
2546
  inactive: !!(e(a).active && !d[e(a).active]),
2547
2547
  horizontal: c.componentName === "list"
2548
2548
  }, ue({
2549
2549
  footer: b(() => [
2550
- e(a).title ? (n(), l("div", Ta, C(d[e(a).title]), 1)) : h("", !0),
2551
- e(a).information ? (n(), l("div", ja, C(d[e(a).information]), 1)) : h("", !0)
2550
+ e(a).title ? (t(), l("div", ja, C(d[e(a).title]), 1)) : h("", !0),
2551
+ e(a).information ? (t(), l("div", Ra, C(d[e(a).information]), 1)) : h("", !0)
2552
2552
  ]),
2553
2553
  actions: b(() => {
2554
2554
  var $;
2555
2555
  return [
2556
- ($ = c.individualActions) != null && $.length ? (n(), V(Ie, U({
2556
+ ($ = c.individualActions) != null && $.length ? (t(), V(Ie, E({
2557
2557
  key: 0,
2558
2558
  ref_for: !0
2559
2559
  }, {
@@ -2563,7 +2563,7 @@ const wa = /* @__PURE__ */ D(Sa, [["__scopeId", "data-v-438c4aed"]]), Ta = { key
2563
2563
  default: b(({
2564
2564
  visible: s
2565
2565
  }) => [
2566
- Y(M(W, {
2566
+ X(M(W, {
2567
2567
  reactive: "",
2568
2568
  active: s,
2569
2569
  icon: "dots-three-vertical"
@@ -2578,11 +2578,11 @@ const wa = /* @__PURE__ */ D(Sa, [["__scopeId", "data-v-438c4aed"]]), Ta = { key
2578
2578
  default: b(() => {
2579
2579
  var $;
2580
2580
  return [
2581
- M(Ue, {
2581
+ M(Ee, {
2582
2582
  alt: "Item picture",
2583
2583
  expandable: "",
2584
- url: ($ = t(d[e(a).picture])) == null ? void 0 : $.link,
2585
- meta: t(d[e(a).picture])
2584
+ url: ($ = o(d[e(a).picture])) == null ? void 0 : $.link,
2585
+ meta: o(d[e(a).picture])
2586
2586
  }, null, 8, ["url", "meta"])
2587
2587
  ];
2588
2588
  }),
@@ -2591,7 +2591,7 @@ const wa = /* @__PURE__ */ D(Sa, [["__scopeId", "data-v-438c4aed"]]), Ta = { key
2591
2591
  e(a).badge && Array.isArray(d[e(a).badge]) ? {
2592
2592
  name: "badge",
2593
2593
  fn: b(() => [
2594
- (n(!0), l(J, null, E(d[e(a).badge], ($) => (n(), V(ke, {
2594
+ (t(!0), l(J, null, U(d[e(a).badge], ($) => (t(), V(ke, {
2595
2595
  key: `${d._id}-${$}`,
2596
2596
  large: ""
2597
2597
  }, {
@@ -2621,20 +2621,20 @@ const wa = /* @__PURE__ */ D(Sa, [["__scopeId", "data-v-438c4aed"]]), Ta = { key
2621
2621
  };
2622
2622
  }
2623
2623
  });
2624
- const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) => ({
2625
- tabular: Ba,
2624
+ const pt = /* @__PURE__ */ D(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) => ({
2625
+ tabular: Sa,
2626
2626
  grid: pt,
2627
2627
  list: pt
2628
- })[p], Ma = {
2628
+ })[p], qa = {
2629
2629
  key: 2,
2630
2630
  class: "crud__controls"
2631
- }, qa = {
2631
+ }, za = {
2632
2632
  key: 0,
2633
2633
  class: "crud__search"
2634
- }, za = { class: "crud__actions" }, Fa = { class: "crud__context-badge" }, Ua = { key: 0 }, Ea = {
2634
+ }, Fa = { class: "crud__actions" }, Ea = { class: "crud__context-badge" }, Ua = { key: 0 }, Ha = {
2635
2635
  key: 3,
2636
2636
  class: "crud__pagination"
2637
- }, _t = 30, Ha = /* @__PURE__ */ z({
2637
+ }, _t = 30, Da = /* @__PURE__ */ z({
2638
2638
  __name: "aeria-crud",
2639
2639
  props: {
2640
2640
  collection: {},
@@ -2650,20 +2650,20 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2650
2650
  },
2651
2651
  emits: ["uiEvent"],
2652
2652
  setup(p, { emit: r }) {
2653
- const a = x(!1), o = x(!1), t = x((...y) => null), c = x(), u = p, _ = r, d = Be(), $ = yt({
2653
+ const a = x(!1), n = x(!1), o = x((...y) => null), c = x(), u = p, _ = r, d = Be(), $ = vt({
2654
2654
  delay: 600
2655
- }), s = ie("meta"), f = ze(), { reachedEnd: k, detach: v } = Xe(null, {
2655
+ }), s = ie("meta"), f = Me(), { reachedEnd: k, detach: v } = Ye(null, {
2656
2656
  antecipate: 600
2657
2657
  }), O = !f.value.md || u.scrollPagination;
2658
2658
  O && re(k, (y) => {
2659
2659
  y && i.pagination.recordsTotal > i.items.length && Z.value < _t && (Z.value += 1, F());
2660
2660
  });
2661
- const i = Lt(u.collection);
2661
+ const i = Rt(u.collection);
2662
2662
  Xo(i, {
2663
2663
  persistInQuery: !u.noQueryPersistence
2664
2664
  });
2665
- const q = Ke(), K = u.action ? e(u.action) : Mt(i, d, q);
2666
- t.value = K[0], c.value = K[1];
2665
+ const q = Ke(), Y = u.action ? e(u.action) : Lt(i, d, q);
2666
+ o.value = Y[0], c.value = Y[1];
2667
2667
  const Z = x(0), g = x(!1), F = async (y) => {
2668
2668
  i.activeFilters = Object.assign({}, (y == null ? void 0 : y.filters) || i.$filters), Object.assign(i.activeFilters, i.filtersPreset);
2669
2669
  const A = {
@@ -2685,7 +2685,7 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2685
2685
  limit: y.limit
2686
2686
  }
2687
2687
  })), i.pagination.offset = y.offset, i.pagination.limit = y.limit, F();
2688
- }, w = be("noResultsComponent", null);
2688
+ }, w = fe("noResultsComponent", null);
2689
2689
  re(() => [
2690
2690
  d.currentRoute.value.path,
2691
2691
  d.currentRoute.value.query.section
@@ -2694,7 +2694,7 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2694
2694
  return;
2695
2695
  const oe = d.currentRoute.value;
2696
2696
  if (s.view.title = u.collection, !u.noFetch && (!oe.query._popstate || i.itemsCount === 0)) {
2697
- const ne = qt(i, oe.query);
2697
+ const ne = Mt(i, oe.query);
2698
2698
  Object.keys(ne).length > 0 && Object.assign(i.filters, ne), await F();
2699
2699
  }
2700
2700
  }, {
@@ -2716,7 +2716,7 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2716
2716
  re(() => i.textQuery, (y) => {
2717
2717
  ee(y);
2718
2718
  });
2719
- const fe = (y) => {
2719
+ const ve = (y) => {
2720
2720
  y.currentLayout = y.currentLayout === "tabular" ? y.description.layout.name : "tabular";
2721
2721
  };
2722
2722
  kt(() => {
@@ -2754,8 +2754,8 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2754
2754
  if (j.$ref === "file")
2755
2755
  return {};
2756
2756
  if (j.inline && se) {
2757
- const { _id: ae, ...ve } = se;
2758
- return ve;
2757
+ const { _id: ae, ...ye } = se;
2758
+ return ye;
2759
2759
  }
2760
2760
  return se;
2761
2761
  };
@@ -2772,23 +2772,23 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2772
2772
  }), re(() => a, ({ value: y }) => {
2773
2773
  y === !1 && i.$actions.clearItem();
2774
2774
  });
2775
- const me = X(() => {
2775
+ const me = K(() => {
2776
2776
  if (!u.noActions)
2777
2777
  return i.individualActions.map((y) => ({
2778
- click: t.value(y),
2778
+ click: o.value(y),
2779
2779
  ...y
2780
2780
  }));
2781
- }), ce = X(() => i.actions.filter((y) => !y.button));
2782
- return $e(qe, X(() => u.collection)), (y, A) => {
2781
+ }), ce = K(() => i.actions.filter((y) => !y.button));
2782
+ return $e(ze, K(() => u.collection)), (y, A) => {
2783
2783
  var m, T, Q, P, S, R, se;
2784
2784
  const oe = te("clickable"), ne = te("loading");
2785
- return n(), l(J, null, [
2786
- o.value ? (n(), V(Wo, {
2785
+ return t(), l(J, null, [
2786
+ n.value ? (t(), V(Yo, {
2787
2787
  key: e(i).$id,
2788
- modelValue: o.value,
2789
- "onUpdate:modelValue": A[0] || (A[0] = (j) => o.value = j)
2788
+ modelValue: n.value,
2789
+ "onUpdate:modelValue": A[0] || (A[0] = (j) => n.value = j)
2790
2790
  }, null, 8, ["modelValue"])) : h("", !0),
2791
- a.value ? (n(), V(Ko, {
2791
+ a.value ? (t(), V(Ko, {
2792
2792
  key: 1,
2793
2793
  visible: a.value,
2794
2794
  "onUpdate:visible": A[1] || (A[1] = (j) => a.value = j),
@@ -2813,16 +2813,16 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2813
2813
  ]),
2814
2814
  _: 2
2815
2815
  }, [
2816
- E(Object.keys(y.$slots).filter((j) => j.startsWith("field-")), (j) => ({
2816
+ U(Object.keys(y.$slots).filter((j) => j.startsWith("field-")), (j) => ({
2817
2817
  name: j,
2818
2818
  fn: b((ae) => [
2819
2819
  I(y.$slots, j, de(Ve(ae)), void 0, !0)
2820
2820
  ])
2821
2821
  }))
2822
2822
  ]), 1032, ["visible", "collection", "individual-actions"])) : h("", !0),
2823
- !y.noActions && (e(i).description.search || Object.keys(e(i).availableFilters).length > 0 || ((m = e(i)) == null ? void 0 : m.actions.length) > 0 || y.$slots.actions || !y.noLayoutToggle && e(i).description.layout && ((T = e(i).description.layout) == null ? void 0 : T.name) !== "tabular") ? (n(), l("div", Ma, [
2824
- e(i).description.search ? (n(), l("div", qa, [
2825
- M(Ce, U({
2823
+ !y.noActions && (e(i).description.search || Object.keys(e(i).availableFilters).length > 0 || ((m = e(i)) == null ? void 0 : m.actions.length) > 0 || y.$slots.actions || !y.noLayoutToggle && e(i).description.layout && ((T = e(i).description.layout) == null ? void 0 : T.name) !== "tabular") ? (t(), l("div", qa, [
2824
+ e(i).description.search ? (t(), l("div", za, [
2825
+ M(Ce, E({
2826
2826
  modelValue: e(i).textQuery,
2827
2827
  "onUpdate:modelValue": A[3] || (A[3] = (j) => e(i).textQuery = j)
2828
2828
  }, {
@@ -2833,15 +2833,15 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2833
2833
  }
2834
2834
  }), null, 16, ["modelValue"])
2835
2835
  ])) : h("", !0),
2836
- B("div", za, [
2837
- ce.value.length > 0 || !y.noLayoutToggle && e(i).description.layout && ((Q = e(i).description.layout) == null ? void 0 : Q.name) !== "tabular" ? (n(), V(Ie, { key: 0 }, ue({
2836
+ B("div", Fa, [
2837
+ ce.value.length > 0 || !y.noLayoutToggle && e(i).description.layout && ((Q = e(i).description.layout) == null ? void 0 : Q.name) !== "tabular" ? (t(), V(Ie, { key: 0 }, ue({
2838
2838
  default: b(() => [
2839
2839
  M(pe, {
2840
2840
  variant: "alt",
2841
2841
  icon: "sliders"
2842
2842
  }, {
2843
2843
  default: b(() => [
2844
- e(i).filtersCount ? (n(), V(ke, { key: 0 }, {
2844
+ e(i).filtersCount ? (t(), V(ke, { key: 0 }, {
2845
2845
  default: b(() => [
2846
2846
  H(C(e(i).filtersCount), 1)
2847
2847
  ]),
@@ -2856,9 +2856,9 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2856
2856
  Object.keys(e(i).availableFilters).length > 0 ? {
2857
2857
  name: "filter",
2858
2858
  fn: b(() => [
2859
- Y((n(), V(W, {
2859
+ X((t(), V(W, {
2860
2860
  icon: "funnel",
2861
- onClick: A[4] || (A[4] = (j) => o.value = !0)
2861
+ onClick: A[4] || (A[4] = (j) => n.value = !0)
2862
2862
  }, {
2863
2863
  default: b(() => [
2864
2864
  H(C(e(L)("filters", { capitalize: !0 })), 1)
@@ -2867,8 +2867,8 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2867
2867
  })), [
2868
2868
  [oe]
2869
2869
  ]),
2870
- B("div", Fa, [
2871
- e(i).filtersCount ? (n(), V(ke, { key: 0 }, {
2870
+ B("div", Ea, [
2871
+ e(i).filtersCount ? (t(), V(ke, { key: 0 }, {
2872
2872
  default: b(() => [
2873
2873
  H(C(e(i).filtersCount), 1)
2874
2874
  ]),
@@ -2881,9 +2881,9 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2881
2881
  !y.noLayoutToggle && e(i).description.layout && ((P = e(i).description.layout) == null ? void 0 : P.name) !== "tabular" ? {
2882
2882
  name: "layout-toggle",
2883
2883
  fn: b(() => [
2884
- Y((n(), V(W, {
2884
+ X((t(), V(W, {
2885
2885
  icon: "table",
2886
- onClick: A[5] || (A[5] = (j) => fe(e(i)))
2886
+ onClick: A[5] || (A[5] = (j) => ve(e(i)))
2887
2887
  }, {
2888
2888
  default: b(() => [
2889
2889
  H(C(e(L)("change_layout", { capitalize: !0 })), 1)
@@ -2895,14 +2895,14 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2895
2895
  ]),
2896
2896
  key: "1"
2897
2897
  } : void 0,
2898
- E(ce.value, (j, ae) => ({
2898
+ U(ce.value, (j, ae) => ({
2899
2899
  name: `action-${ae}`,
2900
2900
  fn: b(() => [
2901
- j ? (n(), V(W, {
2901
+ j ? (t(), V(W, {
2902
2902
  key: 0,
2903
2903
  icon: j.icon || "gear",
2904
2904
  disabled: e(i).selected.length === 0 && "selection" in j && j.selection,
2905
- onClick: (ve) => t.value(j)({ _id: e(i).selected.map((Oe) => Oe._id) })
2905
+ onClick: (ye) => o.value(j)({ _id: e(i).selected.map((Oe) => Oe._id) })
2906
2906
  }, {
2907
2907
  default: b(() => [
2908
2908
  H(C(e(L)(j.label, { capitalize: !0 })), 1)
@@ -2911,15 +2911,15 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2911
2911
  }, 1032, ["icon", "disabled", "onClick"])) : h("", !0)
2912
2912
  ])
2913
2913
  }))
2914
- ]), 1024)) : Object.keys(e(i).availableFilters).length > 0 ? (n(), V(pe, {
2914
+ ]), 1024)) : Object.keys(e(i).availableFilters).length > 0 ? (t(), V(pe, {
2915
2915
  key: 1,
2916
2916
  variant: "alt",
2917
2917
  icon: "funnel",
2918
- onClick: A[6] || (A[6] = (j) => o.value = !0)
2918
+ onClick: A[6] || (A[6] = (j) => n.value = !0)
2919
2919
  }, {
2920
2920
  default: b(() => [
2921
2921
  A[8] || (A[8] = B("div", null, "Filtros", -1)),
2922
- e(i).filtersCount ? (n(), V(ke, { key: 0 }, {
2922
+ e(i).filtersCount ? (t(), V(ke, { key: 0 }, {
2923
2923
  default: b(() => [
2924
2924
  H(C(e(i).filtersCount), 1)
2925
2925
  ]),
@@ -2928,11 +2928,11 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2928
2928
  ]),
2929
2929
  _: 1
2930
2930
  })) : h("", !0),
2931
- (n(!0), l(J, null, E(e(i).actions.filter((j) => j.button), (j, ae) => (n(), V(pe, {
2931
+ (t(!0), l(J, null, U(e(i).actions.filter((j) => j.button), (j, ae) => (t(), V(pe, {
2932
2932
  key: `action-${ae}`,
2933
2933
  icon: j.icon,
2934
2934
  disabled: e(i).selected.length === 0 && "selection" in j && j.selection,
2935
- onClick: (ve) => t.value(j)({ _id: e(i).selected.map((Oe) => Oe._id) })
2935
+ onClick: (ye) => o.value(j)({ _id: e(i).selected.map((Oe) => Oe._id) })
2936
2936
  }, {
2937
2937
  default: b(() => [
2938
2938
  H(C(e(L)(j.label, { capitalize: !0 })), 1)
@@ -2942,16 +2942,16 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2942
2942
  y.$slots.actions ? I(y.$slots, "actions", { key: 2 }, void 0, !0) : h("", !0)
2943
2943
  ])
2944
2944
  ])) : h("", !0),
2945
- Y((n(), l("div", null, [
2946
- e(i).itemsCount === 0 && !e(i).loading.getAll && g.value && (e(w) || y.$slots.empty) ? (n(), l("div", Ua, [
2947
- e(w) ? (n(), V(he(e(w)), de(U({ key: 0 }, {
2945
+ X((t(), l("div", null, [
2946
+ e(i).itemsCount === 0 && !e(i).loading.getAll && g.value && (e(w) || y.$slots.empty) ? (t(), l("div", Ua, [
2947
+ e(w) ? (t(), V(he(e(w)), de(E({ key: 0 }, {
2948
2948
  collection: e(i).$id
2949
2949
  })), {
2950
2950
  default: b(() => [
2951
- e(i).filtersCount === 0 && e(i).description.actions && "spawnAdd" in e(i).description.actions ? (n(), V(pe, {
2951
+ e(i).filtersCount === 0 && e(i).description.actions && "spawnAdd" in e(i).description.actions ? (t(), V(pe, {
2952
2952
  key: 0,
2953
2953
  icon: "plus",
2954
- onClick: A[7] || (A[7] = (j) => t.value({
2954
+ onClick: A[7] || (A[7] = (j) => o.value({
2955
2955
  action: "spawnAdd",
2956
2956
  event: "spawnAdd"
2957
2957
  })())
@@ -2963,19 +2963,19 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2963
2963
  })) : h("", !0)
2964
2964
  ]),
2965
2965
  _: 1
2966
- }, 16)) : I(y.$slots, "empty", de(U({ key: 1 }, {
2966
+ }, 16)) : I(y.$slots, "empty", de(E({ key: 1 }, {
2967
2967
  collection: e(i).$id
2968
2968
  })), void 0, !0)
2969
- ])) : y.$slots.component ? I(y.$slots, "component", de(U({ key: 1 }, {
2969
+ ])) : y.$slots.component ? I(y.$slots, "component", de(E({ key: 1 }, {
2970
2970
  store: e(i)
2971
- })), void 0, !0) : (n(), V(he(e(La)(((S = y.layout) == null ? void 0 : S.name) || e(i).$currentLayout)), U({ key: 2 }, {
2971
+ })), void 0, !0) : (t(), V(he(e(Ma)(((S = y.layout) == null ? void 0 : S.name) || e(i).$currentLayout)), E({ key: 2 }, {
2972
2972
  individualActions: me.value,
2973
2973
  layoutOptions: ((R = y.layout) == null ? void 0 : R.options) || e(i).layout.options,
2974
2974
  componentProps: y.componentProps
2975
2975
  }, {
2976
2976
  "component-name": ((se = y.layout) == null ? void 0 : se.name) || e(i).$currentLayout
2977
2977
  }), ue({ _: 2 }, [
2978
- E(Object.keys(y.$slots).filter((j) => j.startsWith("row-")), (j) => ({
2978
+ U(Object.keys(y.$slots).filter((j) => j.startsWith("row-")), (j) => ({
2979
2979
  name: j,
2980
2980
  fn: b((ae) => [
2981
2981
  I(y.$slots, j, de(Ve(ae)), void 0, !0)
@@ -2992,8 +2992,8 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2992
2992
  ])), [
2993
2993
  [ne, (!e(O) || Z.value === _t) && e(i).loading.getAll]
2994
2994
  ]),
2995
- !e(O) && !y.noControls && !e(i).loading.getAll && e(i).itemsCount > 0 ? (n(), l("div", Ea, [
2996
- M(jn, {
2995
+ !e(O) && !y.noControls && !e(i).loading.getAll && e(i).itemsCount > 0 ? (t(), l("div", Ha, [
2996
+ M(Rn, {
2997
2997
  pagination: e(i).pagination,
2998
2998
  onPaginate: le
2999
2999
  }, null, 8, ["pagination"])
@@ -3002,17 +3002,17 @@ const pt = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
3002
3002
  };
3003
3003
  }
3004
3004
  });
3005
- const Cl = /* @__PURE__ */ D(Ha, [["__scopeId", "data-v-147880c3"]]), Da = { class: "prompt" }, Qa = /* @__PURE__ */ z({
3005
+ const Ol = /* @__PURE__ */ D(Da, [["__scopeId", "data-v-147880c3"]]), Qa = { class: "prompt" }, Ga = /* @__PURE__ */ z({
3006
3006
  __name: "aeria-prompt",
3007
3007
  props: {
3008
3008
  title: {},
3009
3009
  options: {}
3010
3010
  },
3011
3011
  setup(p) {
3012
- const r = ie("meta"), a = (o, t) => {
3013
- r.$actions.fulfillPrompt(o, t);
3012
+ const r = ie("meta"), a = (n, o) => {
3013
+ r.$actions.fulfillPrompt(n, o);
3014
3014
  };
3015
- return (o, t) => (n(), V(Se, {
3015
+ return (n, o) => (t(), V(Se, {
3016
3016
  float: "",
3017
3017
  "fill-footer": "",
3018
3018
  "close-hint": !1,
@@ -3021,14 +3021,14 @@ const Cl = /* @__PURE__ */ D(Ha, [["__scopeId", "data-v-147880c3"]]), Da = { cla
3021
3021
  footer: b(() => [
3022
3022
  B("div", {
3023
3023
  class: "prompt__options",
3024
- style: ge(`grid-template-columns: repeat(${Object.keys(o.options).length}, 1fr)`)
3024
+ style: ge(`grid-template-columns: repeat(${Object.keys(n.options).length}, 1fr)`)
3025
3025
  }, [
3026
- (n(!0), l(J, null, E(Object.entries(o.options), ([c, u], _) => (n(), V(ye, {
3026
+ (t(!0), l(J, null, U(Object.entries(n.options), ([c, u], _) => (t(), V(be, {
3027
3027
  key: `option-${_}`,
3028
- class: G(`
3029
- prompt__option
3030
- prompt__option--${u.variant || "primary"}
3031
- `),
3028
+ class: G([
3029
+ "prompt__option",
3030
+ `prompt__option--${u.variant || "primary"}`
3031
+ ]),
3032
3032
  onClick: (d) => u.click ? u.click(c, u) : a(c, u)
3033
3033
  }, {
3034
3034
  default: b(() => [
@@ -3039,23 +3039,23 @@ const Cl = /* @__PURE__ */ D(Ha, [["__scopeId", "data-v-147880c3"]]), Da = { cla
3039
3039
  ], 4)
3040
3040
  ]),
3041
3041
  default: b(() => [
3042
- B("div", Da, [
3043
- I(o.$slots, "default", {}, void 0, !0)
3042
+ B("div", Qa, [
3043
+ I(n.$slots, "default", {}, void 0, !0)
3044
3044
  ])
3045
3045
  ]),
3046
3046
  _: 2
3047
3047
  }, [
3048
- o.title ? {
3048
+ n.title ? {
3049
3049
  name: "title",
3050
3050
  fn: b(() => [
3051
- H(C(o.title), 1)
3051
+ H(C(n.title), 1)
3052
3052
  ]),
3053
3053
  key: "0"
3054
3054
  } : void 0
3055
3055
  ]), 1024));
3056
3056
  }
3057
3057
  });
3058
- const Ga = /* @__PURE__ */ D(Qa, [["__scopeId", "data-v-5f4a5e27"]]), Wa = { class: "toast__content" }, Ka = { class: "toast__time" }, Xa = /* @__PURE__ */ z({
3058
+ const Wa = /* @__PURE__ */ D(Ga, [["__scopeId", "data-v-ee4328ae"]]), Ya = { class: "toast__content" }, Ka = { class: "toast__time" }, Xa = /* @__PURE__ */ z({
3059
3059
  __name: "aeria-toast",
3060
3060
  props: {
3061
3061
  idx: {},
@@ -3065,53 +3065,53 @@ const Ga = /* @__PURE__ */ D(Qa, [["__scopeId", "data-v-5f4a5e27"]]), Wa = { cla
3065
3065
  },
3066
3066
  setup(p) {
3067
3067
  const r = ie("meta");
3068
- return (a, o) => {
3069
- const t = te("clickable");
3070
- return Y((n(), l("div", {
3068
+ return (a, n) => {
3069
+ const o = te("clickable");
3070
+ return X((t(), l("div", {
3071
3071
  class: G({
3072
3072
  toast: !0,
3073
3073
  "toast--animate": e(r).toasts[0].itr === a.itr
3074
3074
  }),
3075
- onAnimationend: o[0] || (o[0] = (c) => e(r).$actions.popToast()),
3076
- onClick: o[1] || (o[1] = (c) => e(r).$actions.popToast(a.itr))
3075
+ onAnimationend: n[0] || (n[0] = (c) => e(r).$actions.popToast()),
3076
+ onClick: n[1] || (n[1] = (c) => e(r).$actions.popToast(a.itr))
3077
3077
  }, [
3078
- M(W, U(
3078
+ M(W, E(
3079
3079
  a.icon ? { icon: a.icon } : { icon: "warning-circle" },
3080
3080
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3081
3081
  ), null, 16),
3082
- B("div", Wa, [
3082
+ B("div", Ya, [
3083
3083
  I(a.$slots, "default", {}, void 0, !0),
3084
3084
  B("div", Ka, C(a.formatDateTime(a.date, { hoursOnly: !0 })), 1)
3085
3085
  ])
3086
3086
  ], 34)), [
3087
- [t]
3087
+ [o]
3088
3088
  ]);
3089
3089
  };
3090
3090
  }
3091
3091
  });
3092
- const Ya = /* @__PURE__ */ D(Xa, [["__scopeId", "data-v-606d47bf"]]), Ja = ["innerHTML"], Za = { class: "main__toasts" }, Pa = ["innerHTML"], Na = /* @__PURE__ */ z({
3092
+ const Ja = /* @__PURE__ */ D(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["innerHTML"], Pa = { class: "main__toasts" }, Na = ["innerHTML"], xa = /* @__PURE__ */ z({
3093
3093
  __name: "aeria-main",
3094
3094
  setup(p) {
3095
- const r = ie("meta"), a = X(() => r.themeOverride || r.theme);
3096
- return (o, t) => {
3095
+ const r = ie("meta"), a = K(() => r.themeOverride || r.theme);
3096
+ return (n, o) => {
3097
3097
  const c = Vt("router-view");
3098
- return n(), l("main", {
3098
+ return t(), l("main", {
3099
3099
  id: "main",
3100
- class: G(`
3101
- main
3102
- main--${a.value}
3103
- ${a.value === "dark" && "tw-dark"}
3104
- `)
3100
+ class: G([
3101
+ "main",
3102
+ `main--${a.value}`,
3103
+ { "tw-dark": a.value === "dark" }
3104
+ ])
3105
3105
  }, [
3106
- (n(), V(Ct, null, {
3106
+ (t(), V(Ct, null, {
3107
3107
  default: b(() => [
3108
3108
  M(c, null, {
3109
3109
  default: b(({ Component: u }) => [
3110
- (n(), V(he(u), null, ue({ _: 2 }, [
3111
- E(Object.keys(o.$slots), (_) => ({
3110
+ (t(), V(he(u), null, ue({ _: 2 }, [
3111
+ U(Object.keys(n.$slots), (_) => ({
3112
3112
  name: _,
3113
3113
  fn: b(() => [
3114
- I(o.$slots, _, {}, void 0, !0)
3114
+ I(n.$slots, _, {}, void 0, !0)
3115
3115
  ])
3116
3116
  }))
3117
3117
  ]), 1024))
@@ -3121,40 +3121,40 @@ const Ya = /* @__PURE__ */ D(Xa, [["__scopeId", "data-v-606d47bf"]]), Ja = ["inn
3121
3121
  ]),
3122
3122
  _: 3
3123
3123
  })),
3124
- I(o.$slots, "default", {}, void 0, !0),
3125
- M(Se, U({
3124
+ I(n.$slots, "default", {}, void 0, !0),
3125
+ M(Se, E({
3126
3126
  modelValue: e(r).modal.visible,
3127
- "onUpdate:modelValue": t[0] || (t[0] = (u) => e(r).modal.visible = u),
3127
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => e(r).modal.visible = u),
3128
3128
  float: "",
3129
3129
  "close-hint": ""
3130
3130
  }, e(r).modal, {
3131
3131
  "overlay-layer": 70,
3132
- onOverlayClick: t[1] || (t[1] = (u) => e(r).modal.visible = !1)
3132
+ onOverlayClick: o[1] || (o[1] = (u) => e(r).modal.visible = !1)
3133
3133
  }), {
3134
3134
  default: b(() => [
3135
- e(r).modal.body ? (n(), l("div", {
3135
+ e(r).modal.body ? (t(), l("div", {
3136
3136
  key: 0,
3137
3137
  style: { "white-space": "pre-wrap" },
3138
3138
  innerHTML: e(r).modal.body
3139
- }, null, 8, Ja)) : h("", !0),
3140
- e(r).modal.component ? (n(), V(he(e(r).modal.component), { key: 1 })) : h("", !0)
3139
+ }, null, 8, Za)) : h("", !0),
3140
+ e(r).modal.component ? (t(), V(he(e(r).modal.component), { key: 1 })) : h("", !0)
3141
3141
  ]),
3142
3142
  _: 1
3143
3143
  }, 16, ["modelValue"]),
3144
- e(r).prompt.visible ? (n(), V(Ga, de(U({ key: 0 }, e(r).prompt)), {
3144
+ e(r).prompt.visible ? (t(), V(Wa, de(E({ key: 0 }, e(r).prompt)), {
3145
3145
  default: b(() => [
3146
3146
  H(C(e(r).prompt.body), 1)
3147
3147
  ]),
3148
3148
  _: 1
3149
3149
  }, 16)) : h("", !0),
3150
- B("div", Za, [
3151
- (n(!0), l(J, null, E(e(r).toasts, (u) => (n(), V(Ya, U({ ref_for: !0 }, u, {
3150
+ B("div", Pa, [
3151
+ (t(!0), l(J, null, U(e(r).toasts, (u) => (t(), V(Ja, E({ ref_for: !0 }, u, {
3152
3152
  key: `toast-${u.itr}`
3153
3153
  }), {
3154
3154
  default: b(() => [
3155
3155
  B("div", {
3156
3156
  innerHTML: e(L)(u.text)
3157
- }, null, 8, Pa)
3157
+ }, null, 8, Na)
3158
3158
  ]),
3159
3159
  _: 2
3160
3160
  }, 1040))), 128))
@@ -3163,11 +3163,11 @@ const Ya = /* @__PURE__ */ D(Xa, [["__scopeId", "data-v-606d47bf"]]), Ja = ["inn
3163
3163
  };
3164
3164
  }
3165
3165
  });
3166
- const Ol = /* @__PURE__ */ D(Na, [["__scopeId", "data-v-1166be3d"]]);
3167
- const xa = {}, el = { class: "menu" };
3168
- function tl(p, r) {
3169
- return n(), l("menu", el, [
3170
- (n(!0), l(J, null, E(Object.keys(p.$slots), (a) => (n(), l("div", {
3166
+ const Al = /* @__PURE__ */ D(xa, [["__scopeId", "data-v-8f232683"]]);
3167
+ const el = {}, tl = { class: "menu" };
3168
+ function nl(p, r) {
3169
+ return t(), l("menu", tl, [
3170
+ (t(!0), l(J, null, U(Object.keys(p.$slots), (a) => (t(), l("div", {
3171
3171
  key: a,
3172
3172
  class: "menu__entry"
3173
3173
  }, [
@@ -3175,16 +3175,16 @@ function tl(p, r) {
3175
3175
  ]))), 128))
3176
3176
  ]);
3177
3177
  }
3178
- const Al = /* @__PURE__ */ D(xa, [["render", tl], ["__scopeId", "data-v-3cfef7fb"]]), nl = { class: "tabs" }, ol = {
3178
+ const Il = /* @__PURE__ */ D(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb"]]), ol = { class: "tabs" }, al = {
3179
3179
  key: 0,
3180
3180
  class: "tabs__horizontal"
3181
- }, al = {
3181
+ }, ll = {
3182
3182
  key: 0,
3183
3183
  class: "tabs__tab tabs__tab--info"
3184
- }, ll = ["onClick"], sl = {
3184
+ }, sl = ["onClick"], il = {
3185
3185
  key: 1,
3186
3186
  class: "tabs__context-menu"
3187
- }, il = ["onClick"], rl = /* @__PURE__ */ z({
3187
+ }, rl = ["onClick"], ul = /* @__PURE__ */ z({
3188
3188
  __name: "aeria-tabs",
3189
3189
  props: {
3190
3190
  query: {},
@@ -3192,23 +3192,23 @@ const Al = /* @__PURE__ */ D(xa, [["render", tl], ["__scopeId", "data-v-3cfef7fb
3192
3192
  dropdown: { type: Boolean }
3193
3193
  },
3194
3194
  setup(p) {
3195
- const r = p, a = Ot(), o = Be(), t = ze(), c = X(() => {
3195
+ const r = p, a = Ot(), n = Be(), o = Me(), c = K(() => {
3196
3196
  if (r.query) {
3197
- const _ = o.currentRoute.value.query[r.query];
3197
+ const _ = n.currentRoute.value.query[r.query];
3198
3198
  if (_)
3199
3199
  return _;
3200
3200
  } else if (r.param) {
3201
- const _ = o.currentRoute.value.params[r.param];
3201
+ const _ = n.currentRoute.value.params[r.param];
3202
3202
  if (_)
3203
3203
  return _;
3204
3204
  }
3205
3205
  return Object.keys(a)[0];
3206
3206
  }), u = (_) => {
3207
- r.query && o.push(Le(o.currentRoute.value, {
3207
+ r.query && n.push(Le(n.currentRoute.value, {
3208
3208
  query: {
3209
3209
  [r.query]: _
3210
3210
  }
3211
- })), r.param && o.push(Le(o.currentRoute.value, {
3211
+ })), r.param && n.push(Le(n.currentRoute.value, {
3212
3212
  params: {
3213
3213
  [r.param]: _
3214
3214
  }
@@ -3216,12 +3216,12 @@ const Al = /* @__PURE__ */ D(xa, [["render", tl], ["__scopeId", "data-v-3cfef7fb
3216
3216
  };
3217
3217
  return (_, d) => {
3218
3218
  const $ = te("clickable");
3219
- return n(), l("div", nl, [
3220
- e(t).md && !_.dropdown ? (n(), l("div", ol, [
3221
- _.$slots.default ? (n(), l("div", al, [
3219
+ return t(), l("div", ol, [
3220
+ e(o).md && !_.dropdown ? (t(), l("div", al, [
3221
+ _.$slots.default ? (t(), l("div", ll, [
3222
3222
  I(_.$slots, "default", {}, void 0, !0)
3223
3223
  ])) : h("", !0),
3224
- (n(!0), l(J, null, E(Object.keys(_.$slots).filter((s) => s !== "default"), (s, f) => (n(), l("div", {
3224
+ (t(!0), l(J, null, U(Object.keys(_.$slots).filter((s) => s !== "default"), (s, f) => (t(), l("div", {
3225
3225
  key: s,
3226
3226
  class: G({
3227
3227
  tabs__tab: !0,
@@ -3230,11 +3230,11 @@ const Al = /* @__PURE__ */ D(xa, [["render", tl], ["__scopeId", "data-v-3cfef7fb
3230
3230
  onClick: (k) => u(s)
3231
3231
  }, [
3232
3232
  I(_.$slots, s, {}, void 0, !0)
3233
- ], 10, ll))), 128))
3234
- ])) : (n(), l("div", sl, [
3233
+ ], 10, sl))), 128))
3234
+ ])) : (t(), l("div", il, [
3235
3235
  M(Ie, null, ue({
3236
3236
  default: b(({ visible: s }) => [
3237
- Y((n(), V(W, {
3237
+ X((t(), V(W, {
3238
3238
  "icon-right": "",
3239
3239
  active: s,
3240
3240
  icon: "caret-down",
@@ -3251,14 +3251,14 @@ const Al = /* @__PURE__ */ D(xa, [["render", tl], ["__scopeId", "data-v-3cfef7fb
3251
3251
  ]),
3252
3252
  _: 2
3253
3253
  }, [
3254
- E(Object.keys(_.$slots).filter((s) => s !== "default"), (s) => ({
3254
+ U(Object.keys(_.$slots).filter((s) => s !== "default"), (s) => ({
3255
3255
  name: s,
3256
3256
  fn: b(() => [
3257
3257
  B("div", {
3258
3258
  onClick: (f) => u(s)
3259
3259
  }, [
3260
3260
  I(_.$slots, s, {}, void 0, !0)
3261
- ], 8, il)
3261
+ ], 8, rl)
3262
3262
  ])
3263
3263
  }))
3264
3264
  ]), 1024)
@@ -3267,7 +3267,7 @@ const Al = /* @__PURE__ */ D(xa, [["render", tl], ["__scopeId", "data-v-3cfef7fb
3267
3267
  };
3268
3268
  }
3269
3269
  });
3270
- const ul = /* @__PURE__ */ D(rl, [["__scopeId", "data-v-a20914ab"]]), cl = z({
3270
+ const cl = /* @__PURE__ */ D(ul, [["__scopeId", "data-v-a20914ab"]]), dl = z({
3271
3271
  props: {
3272
3272
  initialValue: String,
3273
3273
  promise: Promise
@@ -3278,31 +3278,31 @@ const ul = /* @__PURE__ */ D(rl, [["__scopeId", "data-v-a20914ab"]]), cl = z({
3278
3278
  r.value = a;
3279
3279
  }), () => At("div", r.value);
3280
3280
  }
3281
- }), dl = ["onClick"], pl = { key: 1 }, _l = /* @__PURE__ */ z({
3281
+ }), pl = ["onClick"], _l = { key: 1 }, ml = /* @__PURE__ */ z({
3282
3282
  __name: "aeria-crud-topbar",
3283
3283
  props: {
3284
3284
  collection: {}
3285
3285
  },
3286
3286
  setup(p) {
3287
- const r = p, o = Be().currentRoute, t = Ke(), c = X(() => r.collection ? je(r.collection, t) : typeof o.value.meta.collection == "string" ? je(o.value.meta.collection, t) : typeof o.value.params.collection == "string" ? je(o.value.params.collection, t) : null), u = async (_, d) => {
3287
+ const r = p, n = Be().currentRoute, o = Ke(), c = K(() => r.collection ? je(r.collection, o) : typeof n.value.meta.collection == "string" ? je(n.value.meta.collection, o) : typeof n.value.params.collection == "string" ? je(n.value.params.collection, o) : null), u = async (_, d) => {
3288
3288
  const { error: $, result: s } = await d.$functions[_.badgeFunction]({
3289
3289
  filters: _.filters
3290
3290
  });
3291
3291
  return $ ? 0 : s;
3292
3292
  };
3293
- return (_, d) => c.value && c.value.description.filtersPresets ? (n(), V(ul, {
3293
+ return (_, d) => c.value && c.value.description.filtersPresets ? (t(), V(cl, {
3294
3294
  key: 0,
3295
3295
  dropdown: "",
3296
3296
  query: "section"
3297
3297
  }, ue({ _: 2 }, [
3298
- E(Object.entries(c.value.description.filtersPresets), ([$, s]) => ({
3298
+ U(Object.entries(c.value.description.filtersPresets), ([$, s]) => ({
3299
3299
  name: $,
3300
3300
  fn: b(() => [
3301
3301
  B("div", {
3302
3302
  class: "topbar__preset",
3303
3303
  onClick: (f) => e(bt)(s, c.value)
3304
3304
  }, [
3305
- s.icon ? (n(), V(W, {
3305
+ s.icon ? (t(), V(W, {
3306
3306
  key: 0,
3307
3307
  icon: s.icon
3308
3308
  }, {
@@ -3310,26 +3310,26 @@ const ul = /* @__PURE__ */ D(rl, [["__scopeId", "data-v-a20914ab"]]), cl = z({
3310
3310
  H(C(s.label || e(L)($, { plural: !0 })), 1)
3311
3311
  ]),
3312
3312
  _: 2
3313
- }, 1032, ["icon"])) : (n(), l("div", pl, C(s.label || e(L)($, { plural: !0 })), 1)),
3314
- s.badgeFunction ? (n(), V(ke, { key: 2 }, {
3313
+ }, 1032, ["icon"])) : (t(), l("div", _l, C(s.label || e(L)($, { plural: !0 })), 1)),
3314
+ s.badgeFunction ? (t(), V(ke, { key: 2 }, {
3315
3315
  default: b(() => [
3316
- M(e(cl), {
3316
+ M(e(dl), {
3317
3317
  "initial-value": "0",
3318
3318
  promise: async () => String(u(s, c.value))
3319
3319
  }, null, 8, ["promise"])
3320
3320
  ]),
3321
3321
  _: 2
3322
3322
  }, 1024)) : h("", !0)
3323
- ], 8, dl)
3323
+ ], 8, pl)
3324
3324
  ])
3325
3325
  }))
3326
3326
  ]), 1024)) : h("", !0);
3327
3327
  }
3328
3328
  });
3329
- const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3329
+ const fl = /* @__PURE__ */ D(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3330
3330
  __proto__: null,
3331
- default: ml
3332
- }, Symbol.toStringTag, { value: "Module" })), Il = /* @__PURE__ */ z({
3331
+ default: fl
3332
+ }, Symbol.toStringTag, { value: "Module" })), Bl = /* @__PURE__ */ z({
3333
3333
  __name: "aeria-password-form",
3334
3334
  props: {
3335
3335
  modelValue: {}
@@ -3337,12 +3337,12 @@ const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @_
3337
3337
  emits: ["update:modelValue"],
3338
3338
  setup(p) {
3339
3339
  const r = p;
3340
- $e(qe, null);
3341
- const a = zt(), o = X(() => a(
3340
+ $e(ze, null);
3341
+ const a = qt(), n = K(() => a(
3342
3342
  r.modelValue.password,
3343
3343
  r.modelValue.confirmation
3344
3344
  ));
3345
- return (t, c) => (n(), V(He, {
3345
+ return (o, c) => (t(), V(He, {
3346
3346
  form: {
3347
3347
  password: {
3348
3348
  type: "string",
@@ -3355,17 +3355,17 @@ const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @_
3355
3355
  inputType: "password"
3356
3356
  }
3357
3357
  },
3358
- "model-value": t.modelValue,
3359
- "onUpdate:modelValue": c[0] || (c[0] = (u) => t.$emit("update:modelValue", u))
3358
+ "model-value": o.modelValue,
3359
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => o.$emit("update:modelValue", u))
3360
3360
  }, {
3361
3361
  after: b(() => [
3362
- B("div", null, C(o.value || "Senhas conferem"), 1),
3363
- I(t.$slots, "default", de(Ve({ passwordError: o.value })))
3362
+ B("div", null, C(n.value || "Senhas conferem"), 1),
3363
+ I(o.$slots, "default", de(Ve({ passwordError: n.value })))
3364
3364
  ]),
3365
3365
  _: 3
3366
3366
  }, 8, ["model-value"]));
3367
3367
  }
3368
- }), Bl = (p, r = []) => ({
3368
+ }), Sl = (p, r = []) => ({
3369
3369
  path: "/user",
3370
3370
  name: "/builtin:user",
3371
3371
  component: p,
@@ -3383,7 +3383,7 @@ const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @_
3383
3383
  {
3384
3384
  path: "signin",
3385
3385
  name: "/user/signin",
3386
- component: () => import("./signin-0950caf5.js"),
3386
+ component: () => import("./signin-900df932.js"),
3387
3387
  meta: {
3388
3388
  title: "Autenticação"
3389
3389
  }
@@ -3391,7 +3391,7 @@ const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @_
3391
3391
  {
3392
3392
  path: "signup",
3393
3393
  name: "/user/signup",
3394
- component: () => import("./signup-f708783c.js"),
3394
+ component: () => import("./signup-132485d7.js"),
3395
3395
  meta: {
3396
3396
  title: "Registro"
3397
3397
  }
@@ -3399,13 +3399,13 @@ const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @_
3399
3399
  {
3400
3400
  path: "activation",
3401
3401
  name: "/user/activation",
3402
- component: () => import("./activation-96a2c08d.js"),
3402
+ component: () => import("./activation-23ca8e45.js"),
3403
3403
  meta: {
3404
3404
  title: "Ativação"
3405
3405
  }
3406
3406
  }
3407
3407
  ])
3408
- }), Sl = (p, r = []) => ({
3408
+ }), wl = (p, r = []) => ({
3409
3409
  path: "/dashboard",
3410
3410
  name: "/builtin:dashboard",
3411
3411
  component: p,
@@ -3421,8 +3421,8 @@ const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @_
3421
3421
  name: "/dashboard/:collection",
3422
3422
  props: !0,
3423
3423
  components: {
3424
- default: () => import("./index-a92d8816.js"),
3425
- topbar: () => Promise.resolve().then(() => fl)
3424
+ default: () => import("./index-69348349.js"),
3425
+ topbar: () => Promise.resolve().then(() => vl)
3426
3426
  },
3427
3427
  meta: {
3428
3428
  title: "%viewTitle%"
@@ -3433,7 +3433,7 @@ const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @_
3433
3433
  name: "/dashboard/:collection/:id",
3434
3434
  props: !0,
3435
3435
  components: {
3436
- default: () => import("./_id_-2d5d611f.js")
3436
+ default: () => import("./_id_-ca08f53c.js")
3437
3437
  },
3438
3438
  meta: {
3439
3439
  title: "%viewTitle%"
@@ -3451,7 +3451,7 @@ const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @_
3451
3451
  children: [
3452
3452
  {
3453
3453
  path: "profile",
3454
- component: () => import("./index-2cf195e0.js"),
3454
+ component: () => import("./index-fa54f98c.js"),
3455
3455
  meta: {
3456
3456
  title: "Meu perfil",
3457
3457
  icon: "user-square"
@@ -3460,7 +3460,7 @@ const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @_
3460
3460
  {
3461
3461
  path: "changepass",
3462
3462
  name: "/dashboard/user/changepass",
3463
- component: () => import("./index-66dc3276.js"),
3463
+ component: () => import("./index-6c3820d7.js"),
3464
3464
  meta: {
3465
3465
  title: "Mudar senha",
3466
3466
  icon: "lock"
@@ -3473,37 +3473,37 @@ const ml = /* @__PURE__ */ D(_l, [["__scopeId", "data-v-5f3141a5"]]), fl = /* @_
3473
3473
  export {
3474
3474
  He as A,
3475
3475
  Xn as B,
3476
- cl as C,
3477
- Ga as D,
3478
- Ya as E,
3479
- ml as F,
3480
- Bl as G,
3481
- Sl as H,
3482
- Il as _,
3476
+ dl as C,
3477
+ Wa as D,
3478
+ Ja as E,
3479
+ fl as F,
3480
+ Sl as G,
3481
+ wl as H,
3482
+ Bl as _,
3483
3483
  pe as a,
3484
3484
  W as b,
3485
3485
  Un as c,
3486
- Cl as d,
3486
+ Ol as d,
3487
3487
  Ko as e,
3488
- Ue as f,
3489
- Al as g,
3488
+ Ee as f,
3489
+ Il as g,
3490
3490
  Se as h,
3491
3491
  D as i,
3492
- Vl as j,
3492
+ Cl as j,
3493
3493
  ke as k,
3494
- ye as l,
3495
- an as m,
3494
+ be as l,
3495
+ ln as m,
3496
3496
  Ie as n,
3497
- wa as o,
3498
- Wo as p,
3499
- vn as q,
3500
- Ol as r,
3501
- jn as s,
3502
- Ia as t,
3503
- ul as u,
3504
- po as v,
3497
+ Ta as o,
3498
+ Yo as p,
3499
+ yn as q,
3500
+ Al as r,
3501
+ Rn as s,
3502
+ Ba as t,
3503
+ cl as u,
3504
+ _o as v,
3505
3505
  Ce as w,
3506
- Dn as x,
3507
- Ao as y,
3508
- Ye as z
3506
+ Qn as x,
3507
+ Io as y,
3508
+ Xe as z
3509
3509
  };