@aeria-ui/ui 0.0.190 → 0.0.191

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,7 +1,7 @@
1
- import { defineComponent as F, ref as Z, resolveDirective as ee, createElementBlock as i, openBlock as t, normalizeClass as G, Fragment as X, renderList as E, withDirectives as J, createCommentVNode as h, createTextVNode as Q, toDisplayString as C, unref as e, renderSlot as O, withModifiers as Ie, inject as re, computed as Y, createElementVNode as A, mergeProps as z, createBlock as g, withCtx as _, resolveDynamicComponent as me, useCssVars as xe, normalizeProps as ae, guardReactiveProps as he, Teleport as Ue, createVNode as M, onMounted as He, watch as oe, vModelDynamic as et, onBeforeMount as Je, normalizeStyle as ve, provide as fe, createSlots as ie, vModelCheckbox as tt, onUnmounted as nt, resolveComponent as ot, Suspense as at, useSlots as lt, h as it } from "vue";
2
- import { t as R, useI18n as st } from "@aeria-ui/i18n";
1
+ import { defineComponent as F, ref as Z, resolveDirective as ee, createElementBlock as s, openBlock as t, normalizeClass as G, Fragment as X, renderList as E, withDirectives as J, createCommentVNode as h, createTextVNode as Q, toDisplayString as C, unref as e, renderSlot as O, withModifiers as Ie, inject as re, computed as Y, createElementVNode as A, mergeProps as z, createBlock as g, withCtx as _, resolveDynamicComponent as me, useCssVars as xe, normalizeProps as ae, guardReactiveProps as he, Teleport as Ue, createVNode as M, onMounted as He, watch as oe, vModelDynamic as et, onBeforeMount as Je, normalizeStyle as ve, provide as fe, createSlots as se, vModelCheckbox as tt, onUnmounted as nt, resolveComponent as ot, Suspense as at, useSlots as lt, h as st } from "vue";
2
+ import { t as R, useI18n as it } from "@aeria-ui/i18n";
3
3
  import { INSTANCE_VARS_SYMBOL as rt, useScrollObserver as De, useBreakpoints as Se, useMask as ut, PAGINATION_PER_PAGE_DEFAULTS as dt, API_URL as Ze, request as ct, useDebounce as Pe, convertToSearchQuery as pt, useParentCollectionStore as Ae, useCollectionStore as mt, useAction as ft, convertFromSearchQuery as vt, usePasswordPolicy as yt } from "@aeria-ui/core";
4
- import { arraysIntersect as Ee, deepClone as ke, getReferenceProperty as se, convertConditionToQuery as _t, freshItem as ht, isRequired as je, evaluateCondition as qe, deepMerge as Be } from "@aeriajs/common";
4
+ import { arraysIntersect as Ee, deepClone as ke, getReferenceProperty as ie, convertConditionToQuery as _t, freshItem as ht, isRequired as je, evaluateCondition as qe, deepMerge as Be } from "@aeriajs/common";
5
5
  import { useStore as ne, getStoreId as we, useParentStore as Me, STORE_ID as Te, getGlobalStateManager as Qe } from "@aeria-ui/state-management";
6
6
  import { useRouter as Ce } from "vue-router";
7
7
  import { isDocumentComplete as bt, getObjectKey as $t } from "@aeria-ui/utils";
@@ -16,55 +16,55 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
16
16
  headers: {}
17
17
  },
18
18
  setup(m) {
19
- const s = Z(null), n = (o) => typeof o == "string" ? o : o.title;
19
+ const i = Z(null), n = (o) => typeof o == "string" ? o : o.title;
20
20
  return (o, a) => {
21
21
  const d = ee("clickable");
22
- return t(), i("div", {
22
+ return t(), s("div", {
23
23
  class: G({
24
24
  accordion: !0,
25
25
  "accordion--padded": !o.noPadding
26
26
  })
27
27
  }, [
28
- (t(!0), i(X, null, E(Object.keys(o.$slots).filter((r) => r !== "default"), (r, f) => (t(), i("div", {
28
+ (t(!0), s(X, null, E(Object.keys(o.$slots).filter((r) => r !== "default"), (r, f) => (t(), s("div", {
29
29
  key: r,
30
30
  class: "accordion__slot"
31
31
  }, [
32
- J((t(), i("div", {
32
+ J((t(), s("div", {
33
33
  class: "accordion__header",
34
- onClick: (p) => s.value === r ? s.value = null : s.value = r
34
+ onClick: (p) => i.value === r ? i.value = null : i.value = r
35
35
  }, [
36
- o.enumerate ? (t(), i("span", kt, C(f + 1) + ". ", 1)) : h("", !0),
36
+ o.enumerate ? (t(), s("span", kt, C(f + 1) + ". ", 1)) : h("", !0),
37
37
  Q(" " + C(o.headers[r] ? n(o.headers[r]) : e(R)(r)), 1)
38
38
  ], 8, gt)), [
39
39
  [d]
40
40
  ]),
41
- s.value === r ? (t(), i("div", Vt, [
41
+ i.value === r ? (t(), s("div", Vt, [
42
42
  O(o.$slots, r, {}, void 0, !0)
43
43
  ])) : h("", !0)
44
44
  ]))), 128))
45
45
  ], 2);
46
46
  };
47
47
  }
48
- }), U = (m, s) => {
48
+ }), U = (m, i) => {
49
49
  const n = m.__vccOpts || m;
50
- for (const [o, a] of s)
50
+ for (const [o, a] of i)
51
51
  n[o] = a;
52
52
  return n;
53
- }, sl = /* @__PURE__ */ U(Ct, [["__scopeId", "data-v-3ea933d4"]]), Ot = /* @__PURE__ */ F({
53
+ }, il = /* @__PURE__ */ U(Ct, [["__scopeId", "data-v-3ea933d4"]]), Ot = /* @__PURE__ */ F({
54
54
  __name: "aeria-badge",
55
55
  props: {
56
56
  large: { type: Boolean },
57
57
  alt: { type: Boolean }
58
58
  },
59
59
  setup(m) {
60
- return (s, n) => (t(), i("div", {
60
+ return (i, n) => (t(), s("div", {
61
61
  class: G([
62
62
  "badge",
63
- { "badge--large": s.large },
64
- { "badge--alt": s.alt }
63
+ { "badge--large": i.large },
64
+ { "badge--alt": i.alt }
65
65
  ])
66
66
  }, [
67
- O(s.$slots, "default", {}, void 0, !0)
67
+ O(i.$slots, "default", {}, void 0, !0)
68
68
  ], 2));
69
69
  }
70
70
  }), _e = /* @__PURE__ */ U(Ot, [["__scopeId", "data-v-4cbce7ef"]]), At = /* @__PURE__ */ F({
@@ -73,11 +73,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
73
73
  disabled: { type: Boolean }
74
74
  },
75
75
  emits: ["click"],
76
- setup(m, { emit: s }) {
77
- const n = m, o = s, a = (d) => {
76
+ setup(m, { emit: i }) {
77
+ const n = m, o = i, a = (d) => {
78
78
  n.disabled || o("click", d);
79
79
  };
80
- return (d, r) => (t(), i("button", {
80
+ return (d, r) => (t(), s("button", {
81
81
  class: G([
82
82
  "barebutton",
83
83
  `barebutton--${d.disabled ? "disabled" : "enabled"}`
@@ -101,8 +101,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
101
101
  active: { type: Boolean }
102
102
  },
103
103
  setup(m) {
104
- const s = m, n = re(rt, {}), o = typeof s.reactive == "boolean" ? s.reactive : re("iconReactive", !1), a = Y(() => s.icon?.includes(":") ? s.icon : `regular:${s.icon}`);
105
- return (d, r) => (t(), i("a", {
104
+ const i = m, n = re(rt, {}), o = typeof i.reactive == "boolean" ? i.reactive : re("iconReactive", !1), a = Y(() => i.icon?.includes(":") ? i.icon : `regular:${i.icon}`);
105
+ return (d, r) => (t(), s("a", {
106
106
  class: G([
107
107
  "icon",
108
108
  { "icon--reactive": e(o) },
@@ -116,7 +116,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
116
116
  { "icon__icon--right": d.iconRight }
117
117
  ])
118
118
  }, [
119
- (t(), i("svg", z({
119
+ (t(), s("svg", z({
120
120
  width: "24",
121
121
  height: "24",
122
122
  viewBox: "0 0 256 256",
@@ -129,7 +129,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
129
129
  }, null, 8, It)
130
130
  ], 16))
131
131
  ], 2),
132
- d.$slots.default ? (t(), i("div", Bt, [
132
+ d.$slots.default ? (t(), s("div", Bt, [
133
133
  O(d.$slots, "default", {}, void 0, !0)
134
134
  ])) : h("", !0)
135
135
  ], 2));
@@ -149,14 +149,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
149
149
  loading: { type: Boolean }
150
150
  },
151
151
  setup(m) {
152
- const s = m, n = re("buttonVariant", s.variant) || "primary", o = (() => {
152
+ const i = m, n = re("buttonVariant", i.variant) || "primary", o = (() => {
153
153
  switch (!0) {
154
- case s.small:
154
+ case i.small:
155
155
  return "small";
156
- case s.large:
156
+ case i.large:
157
157
  return "large";
158
158
  }
159
- return re("buttonSize", s.size) || "medium";
159
+ return re("buttonSize", i.size) || "medium";
160
160
  })();
161
161
  return (a, d) => (t(), g(ce, {
162
162
  class: G([
@@ -178,7 +178,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
178
178
  ])
179
179
  ]),
180
180
  _: 3
181
- }, 8, ["icon"])) : (t(), i("div", Tt, [
181
+ }, 8, ["icon"])) : (t(), s("div", Tt, [
182
182
  O(a.$slots, "default", {}, void 0, !0)
183
183
  ]))
184
184
  ]),
@@ -192,27 +192,27 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
192
192
  horizontal: { type: Boolean }
193
193
  },
194
194
  setup(m) {
195
- return (s, n) => (t(), i("div", {
195
+ return (i, n) => (t(), s("div", {
196
196
  class: G([
197
197
  "card",
198
- { "card--inactive": s.inactive },
199
- { "card--horizontal": s.horizontal }
198
+ { "card--inactive": i.inactive },
199
+ { "card--horizontal": i.horizontal }
200
200
  ])
201
201
  }, [
202
202
  A("div", Rt, [
203
- O(s.$slots, "default", {}, void 0, !0)
203
+ O(i.$slots, "default", {}, void 0, !0)
204
204
  ]),
205
205
  A("div", qt, [
206
206
  A("div", Lt, [
207
207
  A("div", null, [
208
- O(s.$slots, "footer", {}, void 0, !0)
208
+ O(i.$slots, "footer", {}, void 0, !0)
209
209
  ]),
210
210
  A("div", Mt, [
211
- s.$slots.actions ? O(s.$slots, "actions", { key: 0 }, void 0, !0) : h("", !0)
211
+ i.$slots.actions ? O(i.$slots, "actions", { key: 0 }, void 0, !0) : h("", !0)
212
212
  ])
213
213
  ]),
214
214
  A("div", zt, [
215
- O(s.$slots, "badge", {}, void 0, !0)
215
+ O(i.$slots, "badge", {}, void 0, !0)
216
216
  ])
217
217
  ])
218
218
  ], 2));
@@ -245,8 +245,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
245
245
  overlayLayer: {}
246
246
  },
247
247
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
248
- setup(m, { emit: s }) {
249
- const n = m, o = s, a = Z(n.collapsed), d = Z(null), { reachedEnd: r } = De(d), f = () => {
248
+ setup(m, { emit: i }) {
249
+ const n = m, o = i, a = Z(n.collapsed), d = Z(null), { reachedEnd: r } = De(d), f = () => {
250
250
  o("update:modelValue", !1), o("close");
251
251
  }, p = () => {
252
252
  o("overlayClick");
@@ -255,7 +255,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
255
255
  };
256
256
  return (u, v) => {
257
257
  const $ = ee("clickable"), b = ee("loading"), l = ee("overlay");
258
- return u.modelValue ? J((t(), i("div", {
258
+ return u.modelValue ? J((t(), s("div", {
259
259
  key: 0,
260
260
  class: G([
261
261
  "panel",
@@ -279,7 +279,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
279
279
  onClick: v[2] || (v[2] = (T) => T.stopPropagation())
280
280
  }, {
281
281
  default: _(() => [
282
- u.$slots.header || u.title ? (t(), i("div", {
282
+ u.$slots.header || u.title ? (t(), s("div", {
283
283
  key: 0,
284
284
  class: G([
285
285
  "panel__header",
@@ -288,8 +288,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
288
288
  ])
289
289
  }, [
290
290
  A("div", Ut, [
291
- u.$slots.header ? O(u.$slots, "header", { key: 0 }, void 0, !0) : u.title ? (t(), i("div", Ht, C(u.title), 1)) : h("", !0),
292
- u.$slots.extra ? (t(), i("div", Dt, [
291
+ u.$slots.header ? O(u.$slots, "header", { key: 0 }, void 0, !0) : u.title ? (t(), s("div", Ht, C(u.title), 1)) : h("", !0),
292
+ u.$slots.extra ? (t(), s("div", Dt, [
293
293
  O(u.$slots, "extra", {}, void 0, !0)
294
294
  ])) : h("", !0)
295
295
  ]),
@@ -316,7 +316,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
316
316
  [$]
317
317
  ]) : h("", !0)
318
318
  ], 2)) : h("", !0),
319
- a.value ? h("", !0) : J((t(), i("div", {
319
+ a.value ? h("", !0) : J((t(), s("div", {
320
320
  key: 1,
321
321
  ref_key: "body",
322
322
  ref: d,
@@ -330,7 +330,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
330
330
  ], 2)), [
331
331
  [b, u.loading]
332
332
  ]),
333
- u.$slots.footer ? (t(), i("div", {
333
+ u.$slots.footer ? (t(), s("div", {
334
334
  key: 2,
335
335
  class: G([
336
336
  "panel__footer",
@@ -364,12 +364,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
364
364
  overlayLayer: {}
365
365
  },
366
366
  emits: ["actionClick"],
367
- setup(m, { emit: s }) {
367
+ setup(m, { emit: i }) {
368
368
  xe((p) => ({
369
369
  "4078ef85": f.value.x,
370
370
  "4078ef86": f.value.y
371
371
  }));
372
- const n = s, o = Z(null), a = Z(!1), d = (p) => p?.filter((y) => {
372
+ const n = i, o = Z(null), a = Z(!1), d = (p) => p?.filter((y) => {
373
373
  if (y.roles) {
374
374
  const u = ne("user");
375
375
  return Ee(y.roles, u.currentUser.roles);
@@ -396,8 +396,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
396
396
  });
397
397
  return (p, y) => {
398
398
  const u = ee("overlay");
399
- return t(), i(X, null, [
400
- Object.keys(p.$slots).some((v) => v !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (t(), i("div", {
399
+ return t(), s(X, null, [
400
+ Object.keys(p.$slots).some((v) => v !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (t(), s("div", {
401
401
  key: 0,
402
402
  ref_key: "contextmenu",
403
403
  ref: o,
@@ -426,15 +426,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
426
426
  }, {
427
427
  default: _(() => [
428
428
  A("div", Gt, [
429
- p.$slots.header ? (t(), i("div", Wt, [
429
+ p.$slots.header ? (t(), s("div", Wt, [
430
430
  O(p.$slots, "header", {}, void 0, !0)
431
431
  ])) : h("", !0),
432
- Object.keys(p.$slots).filter((v) => !["default", "extra", "header"].includes(v)).length > 0 ? (t(), i("div", {
432
+ Object.keys(p.$slots).filter((v) => !["default", "extra", "header"].includes(v)).length > 0 ? (t(), s("div", {
433
433
  key: 1,
434
434
  class: "content__section",
435
435
  onClick: y[1] || (y[1] = (v) => a.value = !1)
436
436
  }, [
437
- (t(!0), i(X, null, E(Object.keys(p.$slots).filter((v) => !["default", "extra", "header"].includes(v)), (v, $) => (t(), g(ce, {
437
+ (t(!0), s(X, null, E(Object.keys(p.$slots).filter((v) => !["default", "extra", "header"].includes(v)), (v, $) => (t(), g(ce, {
438
438
  key: `slot-${$}`,
439
439
  class: "content__item content__item--reactive"
440
440
  }, {
@@ -444,12 +444,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
444
444
  _: 2
445
445
  }, 1024))), 128))
446
446
  ])) : h("", !0),
447
- p.actions !== void 0 && p.actions.length > 0 ? (t(), i("div", {
447
+ p.actions !== void 0 && p.actions.length > 0 ? (t(), s("div", {
448
448
  key: 2,
449
449
  class: "content__section",
450
450
  onClick: y[2] || (y[2] = (v) => a.value = !1)
451
451
  }, [
452
- (t(!0), i(X, null, E(d(p.actions), (v, $) => (t(), g(ce, {
452
+ (t(!0), s(X, null, E(d(p.actions), (v, $) => (t(), g(ce, {
453
453
  key: `action-${$}`,
454
454
  class: "content__item content__item--reactive",
455
455
  onClick: (b) => r(v, p.subject)
@@ -467,7 +467,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
467
467
  _: 2
468
468
  }, 1032, ["onClick"]))), 128))
469
469
  ])) : h("", !0),
470
- p.$slots.extra ? (t(), i("div", {
470
+ p.$slots.extra ? (t(), s("div", {
471
471
  key: 3,
472
472
  class: "content__section",
473
473
  onClick: y[3] || (y[3] = (v) => a.value = !1)
@@ -502,13 +502,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
502
502
  where: { default: "top" }
503
503
  },
504
504
  setup(m) {
505
- const s = Se(), n = Z(!1);
506
- return (o, a) => e(s).md ? (t(), i("div", {
505
+ const i = Se(), n = Z(!1);
506
+ return (o, a) => e(i).md ? (t(), s("div", {
507
507
  key: 0,
508
508
  class: "info",
509
509
  onMouseleave: a[1] || (a[1] = (d) => n.value = !1)
510
510
  }, [
511
- n.value ? (t(), i("div", {
511
+ n.value ? (t(), s("div", {
512
512
  key: 0,
513
513
  class: G([
514
514
  "info__bubble",
@@ -548,8 +548,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
548
548
  variant: {}
549
549
  },
550
550
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
551
- setup(m, { emit: s }) {
552
- const n = m, o = s, a = n.property || {}, d = "icon" in a || "inputType" in a && a.inputType === "search", r = re("searchOnly", !1), f = re("innerInputLabel", !1), p = !r && (n.readOnly || a.readOnly), y = Z(!1), u = async (B) => {
551
+ setup(m, { emit: i }) {
552
+ const n = m, o = i, a = n.property || {}, d = a.icon || "inputType" in a && a.inputType === "search", r = re("searchOnly", !1), f = re("innerInputLabel", !1), p = !r && (n.readOnly || a.readOnly), y = Z(!1), u = async (B) => {
553
553
  await navigator.clipboard.writeText(B), o("clipboardCopy", B), y.value = !0;
554
554
  }, v = re("inputVariant", n.variant) || "normal", $ = Object.assign(Object.assign({}, n), {
555
555
  name: n.propertyName,
@@ -640,14 +640,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
640
640
  };
641
641
  return (B, P) => {
642
642
  const x = ee("focus"), ue = ee("clickable");
643
- return t(), i("label", Pt, [
644
- e(f) ? h("", !0) : (t(), i("div", Nt, [
643
+ return t(), s("label", Pt, [
644
+ e(f) ? h("", !0) : (t(), s("div", Nt, [
645
645
  B.$slots.default ? O(B.$slots, "default", { key: 0 }, void 0, !0) : O(B.$slots, "description", { key: 1 }, void 0, !0)
646
646
  ])),
647
- B.$slots.hint ? (t(), i("div", xt, [
647
+ B.$slots.hint ? (t(), s("div", xt, [
648
648
  O(B.$slots, "hint", {}, void 0, !0)
649
649
  ])) : h("", !0),
650
- "element" in e(a) && e(a).element === "textarea" ? (t(), i("div", {
650
+ "element" in e(a) && e(a).element === "textarea" ? (t(), s("div", {
651
651
  key: 2,
652
652
  class: G([
653
653
  "input__container",
@@ -667,7 +667,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
667
667
  }, null, 42, en), [
668
668
  [x, e(a).focus]
669
669
  ])
670
- ], 2)) : (t(), i("div", {
670
+ ], 2)) : (t(), s("div", {
671
671
  key: 3,
672
672
  class: G([
673
673
  "input__container",
@@ -696,7 +696,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
696
696
  `input__icon--${e(v)}`
697
697
  ])
698
698
  }, null, 8, ["icon", "class"])) : h("", !0),
699
- e(p) ? (t(), i("div", nn, [
699
+ e(p) ? (t(), s("div", nn, [
700
700
  M(Zt, null, {
701
701
  text: _(() => [...P[2] || (P[2] = [
702
702
  Q("Copiar", -1)
@@ -722,7 +722,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
722
722
  ]);
723
723
  };
724
724
  }
725
- }), be = /* @__PURE__ */ U(on, [["__scopeId", "data-v-74adc1f4"]]), an = {
725
+ }), be = /* @__PURE__ */ U(on, [["__scopeId", "data-v-6e5fdbe7"]]), an = {
726
726
  key: 1,
727
727
  value: ""
728
728
  }, ln = ["value", "data-selected"], sn = /* @__PURE__ */ F({
@@ -740,8 +740,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
740
740
  noOutline: { type: Boolean }
741
741
  },
742
742
  emits: ["update:modelValue", "change"],
743
- setup(m, { emit: s }) {
744
- const n = m, o = s, a = Z(null), d = n.property, r = (u) => {
743
+ setup(m, { emit: i }) {
744
+ const n = m, o = i, a = Z(null), d = n.property, r = (u) => {
745
745
  o("update:modelValue", u), o("change", u);
746
746
  }, f = (u) => {
747
747
  u === "" || u === null ? r(null) : n.booleanRef ? r(u === "true") : r(u);
@@ -760,7 +760,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
760
760
  key: 1,
761
761
  "read-only": "",
762
762
  "model-value": u.modelValue
763
- }, null, 8, ["model-value"])) : (t(), i("select", z({ key: 0 }, {
763
+ }, null, 8, ["model-value"])) : (t(), s("select", z({ key: 0 }, {
764
764
  size: y.value,
765
765
  value: u.modelValue
766
766
  }, {
@@ -777,8 +777,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
777
777
  key: 0,
778
778
  icon: e(d).icon
779
779
  }, null, 8, ["icon"])) : h("", !0),
780
- !n.multiple && !u.required ? (t(), i("option", an, C(e(R)("none")), 1)) : h("", !0),
781
- (t(!0), i(X, null, E(e(d) && "enum" in e(d) ? e(d).enum : [], ($) => (t(), i("option", {
780
+ !n.multiple && !u.required ? (t(), s("option", an, C(e(R)("none")), 1)) : h("", !0),
781
+ (t(!0), s(X, null, E(e(d) && "enum" in e(d) ? e(d).enum : [], ($) => (t(), s("option", {
782
782
  key: String($),
783
783
  value: $,
784
784
  "data-selected": p($)
@@ -796,8 +796,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
796
796
  noSummary: { type: Boolean }
797
797
  },
798
798
  emits: ["paginate"],
799
- setup(m, { emit: s }) {
800
- const n = m, o = s, a = Y({
799
+ setup(m, { emit: i }) {
800
+ const n = m, o = i, a = Y({
801
801
  get: () => Math.floor(n.pagination.offset / n.pagination.limit),
802
802
  set: (p) => {
803
803
  n.pagination.offset = p * n.pagination.limit;
@@ -816,7 +816,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
816
816
  offset: a.value * d.value,
817
817
  limit: d.value
818
818
  });
819
- }), (p, y) => (t(), i("div", rn, [
819
+ }), (p, y) => (t(), s("div", rn, [
820
820
  A("div", un, [
821
821
  M(ce, {
822
822
  disabled: a.value === 0,
@@ -864,7 +864,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
864
864
  class: "pagination__control"
865
865
  }, {
866
866
  default: _(() => [
867
- (t(!0), i(X, null, E(e(dt), (u) => (t(), i("option", {
867
+ (t(!0), s(X, null, E(e(dt), (u) => (t(), s("option", {
868
868
  key: `limit-${u}`,
869
869
  value: u
870
870
  }, C(u), 9, dn))), 128))
@@ -872,7 +872,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
872
872
  _: 1
873
873
  }, 8, ["modelValue"])
874
874
  ]),
875
- p.noSummary ? h("", !0) : (t(), i("div", cn, [
875
+ p.noSummary ? h("", !0) : (t(), s("div", cn, [
876
876
  Q(C(e(R)("Page")) + " ", 1),
877
877
  (t(), g(be, {
878
878
  key: a.value,
@@ -908,7 +908,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
908
908
  variant: {}
909
909
  },
910
910
  emits: ["update:modelValue", "change"],
911
- setup(m, { emit: s }) {
911
+ setup(m, { emit: i }) {
912
912
  const n = m, o = n.property, a = n.readOnly || o?.readOnly, d = (() => {
913
913
  if (o && "type" in o)
914
914
  switch (o.type) {
@@ -917,7 +917,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
917
917
  return "checkbox";
918
918
  }
919
919
  return "radio";
920
- })(), r = s, f = n.value || !1, p = Y({
920
+ })(), r = i, f = n.value || !1, p = Y({
921
921
  get: () => {
922
922
  if (o) {
923
923
  if ("type" in o && o.type === "boolean")
@@ -951,7 +951,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
951
951
  };
952
952
  return (u, v) => {
953
953
  const $ = ee("clickable");
954
- return J((t(), i("label", {
954
+ return J((t(), s("label", {
955
955
  class: G([
956
956
  "checkbox",
957
957
  { "checkbox--readOnly": e(a) }
@@ -971,13 +971,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
971
971
  ]),
972
972
  A("div", fn, [
973
973
  A("div", null, [
974
- u.$slots.description ? O(u.$slots, "description", { key: 0 }, void 0, !0) : e(f) ? (t(), i("div", {
974
+ u.$slots.description ? O(u.$slots, "description", { key: 0 }, void 0, !0) : e(f) ? (t(), s("div", {
975
975
  key: 1,
976
976
  innerHTML: e(o)?.translate ? e(R)(e(f)) : e(f)
977
977
  }, null, 8, vn)) : O(u.$slots, "default", { key: 2 }, void 0, !0)
978
978
  ]),
979
979
  A("div", yn, [
980
- u.$slots.hint ? O(u.$slots, "hint", { key: 0 }, void 0, !0) : e(o)?.hint ? (t(), i("div", {
980
+ u.$slots.hint ? O(u.$slots, "hint", { key: 0 }, void 0, !0) : e(o)?.hint ? (t(), s("div", {
981
981
  key: 1,
982
982
  innerHTML: e(o).hint
983
983
  }, null, 8, _n)) : h("", !0)
@@ -1004,8 +1004,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1004
1004
  columns: { default: 1 }
1005
1005
  },
1006
1006
  emits: ["update:modelValue"],
1007
- setup(m, { emit: s }) {
1008
- const n = m, o = s, a = n.readOnly || n.property.readOnly, d = "items" in n.property ? n.property.items.enum : n.property.enum, r = (f) => {
1007
+ setup(m, { emit: i }) {
1008
+ const n = m, o = i, a = n.readOnly || n.property.readOnly, d = "items" in n.property ? n.property.items.enum : n.property.enum, r = (f) => {
1009
1009
  o("update:modelValue", f);
1010
1010
  };
1011
1011
  return Je(() => {
@@ -1013,14 +1013,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1013
1013
  "update:modelValue",
1014
1014
  "items" in n.property ? [] : ""
1015
1015
  );
1016
- }), (f, p) => (t(), i("div", {
1016
+ }), (f, p) => (t(), s("div", {
1017
1017
  class: "options",
1018
1018
  style: ve({
1019
1019
  "--columns": f.columns,
1020
1020
  "grid-template-columns": "repeat(var(--columns), 1fr)"
1021
1021
  })
1022
1022
  }, [
1023
- (t(!0), i(X, null, E(e(d), (y) => (t(), i("div", {
1023
+ (t(!0), s(X, null, E(e(d), (y) => (t(), s("div", {
1024
1024
  key: `option-${y}`,
1025
1025
  class: "options__checkbox"
1026
1026
  }, [
@@ -1050,14 +1050,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1050
1050
  required: { type: Boolean }
1051
1051
  },
1052
1052
  emits: ["update:modelValue", "change"],
1053
- setup(m, { emit: s }) {
1054
- const n = m, o = s, a = n.property, d = n.readOnly || a?.readOnly, r = () => {
1053
+ setup(m, { emit: i }) {
1054
+ const n = m, o = i, a = n.property, d = n.readOnly || a?.readOnly, r = () => {
1055
1055
  d || (o("change", !n.modelValue), o("update:modelValue", !n.modelValue));
1056
1056
  };
1057
1057
  return (f, p) => {
1058
1058
  const y = ee("clickable");
1059
- return t(), i("div", Cn, [
1060
- J((t(), i("a", {
1059
+ return t(), s("div", Cn, [
1060
+ J((t(), s("a", {
1061
1061
  class: G([
1062
1062
  "switch",
1063
1063
  { "switch--active": f.modelValue },
@@ -1077,7 +1077,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1077
1077
  blocked: e(d)
1078
1078
  }]
1079
1079
  ]),
1080
- f.$slots.default ? O(f.$slots, "default", { key: 0 }, void 0, !0) : (t(), i("div", On, C(e(a)?.description || f.propertyName), 1))
1080
+ f.$slots.default ? O(f.$slots, "default", { key: 0 }, void 0, !0) : (t(), s("div", On, C(e(a)?.description || f.propertyName), 1))
1081
1081
  ]);
1082
1082
  };
1083
1083
  }
@@ -1099,15 +1099,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1099
1099
  height: { default: "100%" }
1100
1100
  },
1101
1101
  setup(m) {
1102
- const s = m, n = Y(() => s.fileId ? `${Ze}/file/${s.fileId}/picture` : s.url || s.modelValue), o = Z(!1);
1102
+ const i = m, n = Y(() => i.fileId ? `${Ze}/file/${i.fileId}/picture` : i.url || i.modelValue), o = Z(!1);
1103
1103
  return (a, d) => {
1104
1104
  const r = ee("overlay");
1105
- return t(), i("figure", Sn, [
1105
+ return t(), s("figure", Sn, [
1106
1106
  n.value && o.value ? (t(), g(Ue, {
1107
1107
  key: 0,
1108
1108
  to: "main"
1109
1109
  }, [
1110
- J((t(), i("div", wn, [
1110
+ J((t(), s("div", wn, [
1111
1111
  A("img", {
1112
1112
  src: n.value,
1113
1113
  alt: a.alt,
@@ -1117,7 +1117,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1117
1117
  },
1118
1118
  onClick: d[0] || (d[0] = (f) => o.value = !0)
1119
1119
  }, null, 8, Tn),
1120
- a.meta?.owner ? (t(), i("div", jn, C(a.t("created_by")) + " " + C(a.meta.owner.name) + " em " + C(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : h("", !0)
1120
+ a.meta?.owner ? (t(), s("div", jn, C(a.t("created_by")) + " " + C(a.meta.owner.name) + " em " + C(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : h("", !0)
1121
1121
  ])), [
1122
1122
  [r, {
1123
1123
  layer: 60,
@@ -1127,7 +1127,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1127
1127
  }]
1128
1128
  ])
1129
1129
  ])) : h("", !0),
1130
- n.value ? (t(), i("img", {
1130
+ n.value ? (t(), s("img", {
1131
1131
  key: 1,
1132
1132
  src: n.value,
1133
1133
  class: G([
@@ -1143,7 +1143,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1143
1143
  onClick: d[1] || (d[1] = () => {
1144
1144
  a.expandable && (o.value = !0);
1145
1145
  })
1146
- }, null, 14, Rn)) : a.$slots.fallback ? O(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? O(a.$slots, "default", { key: 3 }, void 0, !0) : (t(), i("svg", {
1146
+ }, null, 14, Rn)) : a.$slots.fallback ? O(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? O(a.$slots, "default", { key: 3 }, void 0, !0) : (t(), s("svg", {
1147
1147
  key: 4,
1148
1148
  class: G(["picture__background", [
1149
1149
  { "picture__image--bordered": a.bordered }
@@ -1174,7 +1174,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1174
1174
  "vector-effect": "non-scaling-stroke"
1175
1175
  }, null, -1)
1176
1176
  ])], 6)),
1177
- a.$slots.caption ? (t(), i("figcaption", qn, [
1177
+ a.$slots.caption ? (t(), s("figcaption", qn, [
1178
1178
  O(a.$slots, "caption", {}, void 0, !0)
1179
1179
  ])) : h("", !0)
1180
1180
  ]);
@@ -1189,7 +1189,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1189
1189
  modelValue: {}
1190
1190
  },
1191
1191
  setup(m) {
1192
- const s = m, n = "_id" in s.modelValue ? s.modelValue : s.modelValue.file, o = (a) => {
1192
+ const i = m, n = "_id" in i.modelValue ? i.modelValue : i.modelValue.file, o = (a) => {
1193
1193
  const d = a === 0 ? 0 : Math.floor(Math.log(a) / Math.log(1024));
1194
1194
  return `${(a / Math.pow(1024, d)).toFixed(2)} ${[
1195
1195
  "B",
@@ -1199,7 +1199,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1199
1199
  "TB"
1200
1200
  ][d]}`;
1201
1201
  };
1202
- return (a, d) => (t(), i("div", Mn, [
1202
+ return (a, d) => (t(), s("div", Mn, [
1203
1203
  "_id" in e(n) && e(n).type.startsWith("image/") ? (t(), g(Le, {
1204
1204
  key: 0,
1205
1205
  bordered: "",
@@ -1220,7 +1220,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1220
1220
  Q(C(e(n).name), 1)
1221
1221
  ]),
1222
1222
  _: 1
1223
- }, 8, ["href"])) : (t(), i("div", Fn, C(e(n).name), 1)),
1223
+ }, 8, ["href"])) : (t(), s("div", Fn, C(e(n).name), 1)),
1224
1224
  A("div", En, C(o(e(n).size)), 1)
1225
1225
  ]),
1226
1226
  A("div", null, [
@@ -1246,8 +1246,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1246
1246
  multiple: { type: Boolean }
1247
1247
  },
1248
1248
  emits: ["update:content", "change", "update:modelValue"],
1249
- setup(m, { emit: s }) {
1250
- const n = m, o = n.property && se(n.property), a = s, r = we() ? Me() : null, f = n.multiple || n.property && "type" in n.property && n.property.type === "array", p = Y(() => {
1249
+ setup(m, { emit: i }) {
1250
+ const n = m, o = n.property && ie(n.property), a = i, r = we() ? Me() : null, f = n.multiple || n.property && "type" in n.property && n.property.type === "array", p = Y(() => {
1251
1251
  if (n.modelValue)
1252
1252
  return Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue];
1253
1253
  }), y = ($) => new Promise((b) => {
@@ -1290,8 +1290,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1290
1290
  };
1291
1291
  return ($, b) => {
1292
1292
  const l = ee("clickable");
1293
- return t(), i("div", Dn, [
1294
- $.readOnly ? h("", !0) : (t(), i("input", {
1293
+ return t(), s("div", Dn, [
1294
+ $.readOnly ? h("", !0) : (t(), s("input", {
1295
1295
  key: 0,
1296
1296
  ref: "file",
1297
1297
  type: "file",
@@ -1299,8 +1299,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1299
1299
  multiple: e(f),
1300
1300
  onChange: u
1301
1301
  }, null, 40, Qn)),
1302
- p.value && p.value.length > 0 ? (t(), i("div", Gn, [
1303
- (t(!0), i(X, null, E(p.value, (T, V) => (t(), g(Hn, {
1302
+ p.value && p.value.length > 0 ? (t(), s("div", Gn, [
1303
+ (t(!0), s(X, null, E(p.value, (T, V) => (t(), g(Hn, {
1304
1304
  key: "_id" in T ? String(T._id) : T.file.name,
1305
1305
  "model-value": T
1306
1306
  }, {
@@ -1329,14 +1329,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1329
1329
  observeScroll: { type: Boolean }
1330
1330
  },
1331
1331
  emits: ["endReached"],
1332
- setup(m, { emit: s }) {
1333
- const n = m, o = s, a = Z(null), d = n.observeScroll ? De(a, {
1332
+ setup(m, { emit: i }) {
1333
+ const n = m, o = i, a = Z(null), d = n.observeScroll ? De(a, {
1334
1334
  antecipate: 100
1335
1335
  }).reachedEnd : null;
1336
1336
  return d !== null && oe(d, (r) => {
1337
1337
  r && o("endReached", r);
1338
- }), (r, f) => (t(), i("div", Kn, [
1339
- r.$slots.default ? (t(), i("div", {
1338
+ }), (r, f) => (t(), s("div", Kn, [
1339
+ r.$slots.default ? (t(), s("div", {
1340
1340
  key: 0,
1341
1341
  ref_key: "containerEl",
1342
1342
  ref: a,
@@ -1344,7 +1344,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1344
1344
  }, [
1345
1345
  O(r.$slots, "default", {}, void 0, !0)
1346
1346
  ], 512)) : h("", !0),
1347
- r.$slots.footer ? (t(), i("div", Xn, [
1347
+ r.$slots.footer ? (t(), s("div", Xn, [
1348
1348
  O(r.$slots, "footer", {}, void 0, !0)
1349
1349
  ])) : h("", !0)
1350
1350
  ]));
@@ -1359,8 +1359,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1359
1359
  readOnly: { type: Boolean }
1360
1360
  },
1361
1361
  emits: ["update:modelValue", "change"],
1362
- setup(m, { emit: s }) {
1363
- const n = Ce(), o = m, a = s, d = o.property, r = se(d);
1362
+ setup(m, { emit: i }) {
1363
+ const n = Ce(), o = m, a = i, d = o.property, r = ie(d);
1364
1364
  Me();
1365
1365
  const f = Y(() => o.modelValue ? Array.isArray(o.modelValue) ? Array.isArray(o.modelValue) && Object.values(o.modelValue).some(({ _id: v }) => o.item._id === v) : o.modelValue._id === o.item._id : !1), p = () => {
1366
1366
  if (f.value)
@@ -1386,7 +1386,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1386
1386
  };
1387
1387
  return (v, $) => {
1388
1388
  const b = ee("clickable");
1389
- return J((t(), i("div", {
1389
+ return J((t(), s("div", {
1390
1390
  class: G({
1391
1391
  item: !0,
1392
1392
  "item--selected": f.value
@@ -1395,7 +1395,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1395
1395
  }, [
1396
1396
  O(v.$slots, "default", {}, void 0, !0),
1397
1397
  A("div", Zn, [
1398
- (t(!0), i(X, null, E(v.indexes, (l, T) => (t(), i("div", {
1398
+ (t(!0), s(X, null, E(v.indexes, (l, T) => (t(), s("div", {
1399
1399
  key: `index-${v.item._id}-${T}`,
1400
1400
  class: "item__value"
1401
1401
  }, C(v.item[l]), 1))), 128))
@@ -1427,9 +1427,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1427
1427
  panel: { default: void 0 }
1428
1428
  },
1429
1429
  emits: ["update:modelValue", "change", "update:panel"],
1430
- setup(m, { emit: s }) {
1431
- const n = m, o = ne("meta"), a = se(n.property), d = n.panel !== void 0 ? Y(() => n.panel) : Z(!1), r = s, f = ne(se(n.property).$ref), p = we(), y = p ? Me() : null, u = a.indexes;
1432
- fe(Te, se(n.property).$ref), fe("innerInputLabel", !0), fe("omitInputLabels", !0);
1430
+ setup(m, { emit: i }) {
1431
+ const n = m, o = ne("meta"), a = ie(n.property), d = n.panel !== void 0 ? Y(() => n.panel) : Z(!1), r = i, f = ne(ie(n.property).$ref), p = we(), y = p ? Me() : null, u = a.indexes;
1432
+ fe(Te, ie(n.property).$ref), fe("innerInputLabel", !0), fe("omitInputLabels", !0);
1433
1433
  const v = Z(n.modelValue), $ = Z({
1434
1434
  data: [],
1435
1435
  pagination: {}
@@ -1491,7 +1491,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1491
1491
  };
1492
1492
  return (L, N) => {
1493
1493
  const c = ee("clickable");
1494
- return t(), i("div", null, [
1494
+ return t(), s("div", null, [
1495
1495
  e(d) ? (t(), g(Ue, {
1496
1496
  key: 0,
1497
1497
  to: "main"
@@ -1535,7 +1535,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1535
1535
  onEndReached: B
1536
1536
  }, {
1537
1537
  default: _(() => [
1538
- (t(!0), i(X, null, E(b.value, (w) => (t(), g(Fe, z({ ref_for: !0 }, {
1538
+ (t(!0), s(X, null, E(b.value, (w) => (t(), g(Fe, z({ ref_for: !0 }, {
1539
1539
  item: w,
1540
1540
  indexes: e(u),
1541
1541
  property: L.property
@@ -1546,8 +1546,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1546
1546
  }), null, 16, ["modelValue"]))), 128))
1547
1547
  ]),
1548
1548
  _: 1
1549
- })) : (t(), i("div", xn, [
1550
- V.value ? (t(), i("div", eo, C(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(f).loading.getAll && Object.values(H.value).filter((w) => !!w).length > 0 && !("items" in L.property && L.modelValue?.length || !Array.isArray(L.modelValue) && L.modelValue?._id) ? (t(), i("div", to, C(e(R)("no_results", { capitalize: !0 })), 1)) : h("", !0)
1549
+ })) : (t(), s("div", xn, [
1550
+ V.value ? (t(), s("div", eo, C(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(f).loading.getAll && Object.values(H.value).filter((w) => !!w).length > 0 && !("items" in L.property && L.modelValue?.length || !Array.isArray(L.modelValue) && L.modelValue?._id) ? (t(), s("div", to, C(e(R)("no_results", { capitalize: !0 })), 1)) : h("", !0)
1551
1551
  ]))
1552
1552
  ]),
1553
1553
  A("div", no, C(e(R)("showing", { capitalize: !0 })) + " " + C(b.value.length) + " " + C(e(R)("of")) + " " + C(l.value.recordsTotal), 1)
@@ -1555,11 +1555,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1555
1555
  _: 1
1556
1556
  }, 8, ["title", "model-value"])
1557
1557
  ])) : h("", !0),
1558
- L.selectOnly ? h("", !0) : (t(), i("div", oo, [
1559
- M(We, null, ie({
1558
+ L.selectOnly ? h("", !0) : (t(), s("div", oo, [
1559
+ M(We, null, se({
1560
1560
  default: _(() => [
1561
- "items" in L.property ? (t(), i("div", ao, [
1562
- (t(!0), i(X, null, E(L.modelValue, (w) => (t(), g(Fe, z({ ref_for: !0 }, {
1561
+ "items" in L.property ? (t(), s("div", ao, [
1562
+ (t(!0), s(X, null, E(L.modelValue, (w) => (t(), g(Fe, z({ ref_for: !0 }, {
1563
1563
  item: w,
1564
1564
  indexes: e(u),
1565
1565
  property: L.property,
@@ -1601,13 +1601,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1601
1601
  ]);
1602
1602
  };
1603
1603
  }
1604
- }), io = /* @__PURE__ */ U(lo, [["__scopeId", "data-v-7a35daa0"]]), Ye = (m, s) => {
1604
+ }), so = /* @__PURE__ */ U(lo, [["__scopeId", "data-v-7a35daa0"]]), Ye = (m, i) => {
1605
1605
  const n = "items" in m ? m.items : m, o = {
1606
1606
  options: Vn,
1607
1607
  select: Ge,
1608
1608
  switch: Bn,
1609
1609
  file: Yn,
1610
- search: io,
1610
+ search: so,
1611
1611
  input: be,
1612
1612
  form: ze
1613
1613
  }, a = (() => {
@@ -1623,20 +1623,20 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1623
1623
  if (m.element === "select")
1624
1624
  return "select";
1625
1625
  }
1626
- const d = se(m);
1626
+ const d = ie(m);
1627
1627
  return d ? d.inline ? "form" : d.$ref === "file" ? "file" : "search" : "items" in m && m.uniqueItems ? "options" : "enum" in n ? "select" : "input";
1628
1628
  })();
1629
- return s[a] ? s[a] : o[a];
1630
- }, so = (m, s, n) => {
1629
+ return i[a] ? i[a] : o[a];
1630
+ }, io = (m, i, n) => {
1631
1631
  m ??= [];
1632
- const o = "items" in s ? s.items : s;
1632
+ const o = "items" in i ? i.items : i;
1633
1633
  if ("$ref" in o) {
1634
1634
  const a = ne(o.$ref, n), d = ke(a.$freshItem);
1635
1635
  return m.push(d);
1636
1636
  }
1637
1637
  return "properties" in o ? m.push(ht(o)) : "type" in o && o.type === "boolean" ? m.push({}) : m.push(null);
1638
- }, ro = (m, s) => {
1639
- m.splice(s, 1);
1638
+ }, ro = (m, i) => {
1639
+ m.splice(i, 1);
1640
1640
  }, uo = {
1641
1641
  key: 0,
1642
1642
  class: "form__header"
@@ -1678,12 +1678,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1678
1678
  includeTimestamps: { type: Boolean }
1679
1679
  },
1680
1680
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
1681
- setup(m, { emit: s }) {
1682
- const n = Qe(), o = m, a = s;
1681
+ setup(m, { emit: i }) {
1682
+ const n = Qe(), o = m, a = i;
1683
1683
  Je(() => {
1684
1684
  o.modelValue || a("update:modelValue", o.property && "items" in o.property ? [] : {});
1685
1685
  });
1686
- const d = o.property && se(o.property), r = d ? d.$ref : o.collection || we(), f = o.readOnly || o.property?.readOnly, p = r ? ne(e(r)) : null;
1686
+ const d = o.property && ie(o.property), r = d ? d.$ref : o.collection || we(), f = o.readOnly || o.property?.readOnly, p = r ? ne(e(r)) : null;
1687
1687
  !r && 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");
1688
1688
  const y = Z(!1), u = Y(() => {
1689
1689
  const c = !o.form && o.property ? "type" in o.property && o.property.type === "object" ? "properties" in o.property ? o.property.properties : void 0 : p?.properties : o.form;
@@ -1764,16 +1764,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1764
1764
  };
1765
1765
  return (c, w) => {
1766
1766
  const K = ee("clickable"), te = ee("focus");
1767
- return t(), i("form", {
1767
+ return t(), s("form", {
1768
1768
  class: "form",
1769
1769
  style: ve(`row-gap: ${e(V) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1770
1770
  }, [
1771
- c.$slots.header && !e(V) ? (t(), i("header", uo, [
1771
+ c.$slots.header && !e(V) ? (t(), s("header", uo, [
1772
1772
  O(c.$slots, "header", {}, void 0, !0)
1773
1773
  ])) : h("", !0),
1774
1774
  O(c.$slots, "default", {}, void 0, !0),
1775
1775
  A("fieldset", co, [
1776
- (t(!0), i(X, null, E(e(x), ([S, q]) => (t(), i("div", {
1776
+ (t(!0), s(X, null, E(e(x), ([S, q]) => (t(), s("div", {
1777
1777
  key: `field-${S}`,
1778
1778
  style: ve($e(S, q)),
1779
1779
  class: G({
@@ -1781,7 +1781,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1781
1781
  "form__field--form": "properties" in q
1782
1782
  })
1783
1783
  }, [
1784
- (!("type" in q) || q.type !== "boolean" || c.searchOnly) && !q.noLabel && !e(H) && !e(I) ? (t(), i("label", po, [
1784
+ (!("type" in q) || q.type !== "boolean" || c.searchOnly) && !q.noLabel && !e(H) && !e(I) ? (t(), s("label", po, [
1785
1785
  A("div", {
1786
1786
  class: G({
1787
1787
  "form__field-label": !0,
@@ -1789,7 +1789,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1789
1789
  "form__field-required-hint": c.highlightRequired && !e(f) && !c.searchOnly && (!k.value || e(je)(S, k.value, c.modelValue))
1790
1790
  })
1791
1791
  }, C(q.description || e(R)(S)), 3),
1792
- q.hint ? (t(), i("div", {
1792
+ q.hint ? (t(), s("div", {
1793
1793
  key: 0,
1794
1794
  innerHTML: q.hint
1795
1795
  }, null, 8, mo)) : h("", !0)
@@ -1815,7 +1815,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1815
1815
  }, {
1816
1816
  onInput: (W) => a("input", S),
1817
1817
  onChange: w[0] || (w[0] = (W) => a("change", W))
1818
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && c.searchOnly ? (t(), i("div", {
1818
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && c.searchOnly ? (t(), s("div", {
1819
1819
  key: 3,
1820
1820
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1821
1821
  onInput: (W) => a("input", S),
@@ -1835,7 +1835,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1835
1835
  property: q,
1836
1836
  propertyName: S
1837
1837
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1838
- ], 40, fo)) : "type" in q && q.type === "boolean" && c.searchOnly ? (t(), i("div", vo, [
1838
+ ], 40, fo)) : "type" in q && q.type === "boolean" && c.searchOnly ? (t(), s("div", vo, [
1839
1839
  M(Ge, z({ ref_for: !0 }, {
1840
1840
  property: q,
1841
1841
  propertyName: S
@@ -1853,15 +1853,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1853
1853
  ]),
1854
1854
  _: 2
1855
1855
  }, 1040, ["model-value", "onUpdate:modelValue"])
1856
- ])) : c.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline) ? (t(), i("div", ho, [
1857
- e(f) ? h("", !0) : (t(), i("div", bo, [
1856
+ ])) : c.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline) ? (t(), s("div", ho, [
1857
+ e(f) ? h("", !0) : (t(), s("div", bo, [
1858
1858
  M(le, {
1859
1859
  small: "",
1860
1860
  variant: "alt",
1861
1861
  icon: "plus",
1862
1862
  disabled: !("inline" in q.items && q.items.inline) && (c.modelValue[S]?.length >= q.maxItems || pe(c.modelValue[S]?.[c.modelValue[S]?.length - 1])),
1863
1863
  onClick: Ie((W) => {
1864
- c.modelValue[S] || (c.modelValue[S] = []), e(so)(c.modelValue[S], q, e(n));
1864
+ c.modelValue[S] || (c.modelValue[S] = []), e(io)(c.modelValue[S], q, e(n));
1865
1865
  }, ["prevent"])
1866
1866
  }, {
1867
1867
  default: _(() => [
@@ -1870,8 +1870,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1870
1870
  _: 2
1871
1871
  }, 1032, ["disabled", "onClick"])
1872
1872
  ])),
1873
- c.modelValue[S]?.length > 0 ? (t(), i("div", $o, [
1874
- (t(!0), i(X, null, E(c.modelValue[S], (W, ge) => (t(), i("div", {
1873
+ c.modelValue[S]?.length > 0 ? (t(), s("div", $o, [
1874
+ (t(!0), s(X, null, E(c.modelValue[S], (W, ge) => (t(), s("div", {
1875
1875
  key: `rep-${S}-${e($t)(W, ge)}`,
1876
1876
  class: "form__array-item"
1877
1877
  }, [
@@ -1926,14 +1926,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1926
1926
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1927
1927
  [te, N(q)]
1928
1928
  ]) : h("", !0),
1929
- b.value?.[S] ? (t(), i("div", go, [
1930
- b.value[S].type ? (t(), i("span", ko, C(e(R)(`validation_error.${b.value[S].type}`)), 1)) : h("", !0),
1931
- b.value[S].detail ? (t(), i("span", Vo, C(e(R)(b.value[S].detail)), 1)) : h("", !0)
1929
+ b.value?.[S] ? (t(), s("div", go, [
1930
+ b.value[S].type ? (t(), s("span", ko, C(e(R)(`validation_error.${b.value[S].type}`)), 1)) : h("", !0),
1931
+ b.value[S].detail ? (t(), s("span", Vo, C(e(R)(b.value[S].detail)), 1)) : h("", !0)
1932
1932
  ])) : h("", !0)
1933
1933
  ], 6))), 128))
1934
1934
  ]),
1935
1935
  c.$slots.after ? O(c.$slots, "after", { key: 1 }, void 0, !0) : h("", !0),
1936
- c.$slots.footer ? (t(), i("div", Co, [
1936
+ c.$slots.footer ? (t(), s("div", Co, [
1937
1937
  O(c.$slots, "footer", ae(he({
1938
1938
  isInsertReady: j.value
1939
1939
  })), void 0, !0)
@@ -1944,8 +1944,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
1944
1944
  }), ze = /* @__PURE__ */ U(Oo, [["__scopeId", "data-v-d9b9a9a6"]]), Ao = /* @__PURE__ */ F({
1945
1945
  __name: "aeria-filter-panel",
1946
1946
  emits: ["update:modelValue"],
1947
- setup(m, { emit: s }) {
1948
- const n = s, o = Me(), a = Ce(), d = e(re(Te)), r = () => {
1947
+ setup(m, { emit: i }) {
1948
+ const n = i, o = Me(), a = Ce(), d = e(re(Te)), r = () => {
1949
1949
  if (o.pagination.offset = 0, o.$actions.filter(), n("update:modelValue", !1), "query" in a.currentRoute && a.currentRoute.query && typeof a.currentRoute.query == "object") {
1950
1950
  const y = a.currentRoute.query;
1951
1951
  for (const u of Object.keys(y))
@@ -2022,8 +2022,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2022
2022
  includeTimestamps: { type: Boolean }
2023
2023
  },
2024
2024
  emits: ["update:visible", "update:modelValue", "insert", "cancel"],
2025
- setup(m, { emit: s }) {
2026
- const n = m, o = s, a = ne("meta"), d = n.collection, r = ne(d);
2025
+ setup(m, { emit: i }) {
2026
+ const n = m, o = i, a = ne("meta"), d = n.collection, r = ne(d);
2027
2027
  He(() => {
2028
2028
  n.modelValue && r.$actions.setItem(n.modelValue);
2029
2029
  });
@@ -2048,7 +2048,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2048
2048
  return;
2049
2049
  }
2050
2050
  o("update:visible", !1), o("update:modelValue", $), o("insert", $), r.$actions.clearItem();
2051
- }, { t: y } = st(), u = () => {
2051
+ }, { t: y } = it(), u = () => {
2052
2052
  a.$actions.ask({
2053
2053
  action: () => {
2054
2054
  r.$actions.clearItem(), r.validationErrors = {}, o("cancel");
@@ -2065,7 +2065,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2065
2065
  loading: e(r).loading.get,
2066
2066
  float: v.float,
2067
2067
  fixedRight: v.fixedRight
2068
- }, { onOverlayClick: u }), ie({
2068
+ }, { onOverlayClick: u }), se({
2069
2069
  extra: _(() => [
2070
2070
  v.individualActions ? (t(), g(Ve, z({ key: 0 }, {
2071
2071
  subject: e(r).item,
@@ -2103,7 +2103,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2103
2103
  }, {
2104
2104
  focus: "",
2105
2105
  onAdd: $[1] || ($[1] = (l) => l.preventDefault())
2106
- }), ie({ _: 2 }, [
2106
+ }), se({ _: 2 }, [
2107
2107
  E(Object.keys(v.$slots).filter((l) => l.startsWith("field-")), (l) => ({
2108
2108
  name: l,
2109
2109
  fn: _((T) => [
@@ -2151,15 +2151,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2151
2151
  ]), 1040);
2152
2152
  };
2153
2153
  }
2154
- }), Ne = (m, s) => {
2155
- if (s) {
2154
+ }), Ne = (m, i) => {
2155
+ if (i) {
2156
2156
  if (!m) {
2157
- s.filtersPreset = {}, s.preferredTableProperties = [], s.pagination.offset = 0;
2157
+ i.filtersPreset = {}, i.preferredTableProperties = [], i.pagination.offset = 0;
2158
2158
  return;
2159
2159
  }
2160
- s.filtersPreset = m.filters || {}, s.preferredTableProperties = m.table ? Array.from(m.table) : [], s.pagination.offset = 0;
2160
+ i.filtersPreset = m.filters || {}, i.preferredTableProperties = m.table ? Array.from(m.table) : [], i.pagination.offset = 0;
2161
2161
  }
2162
- }, Bo = (m, s = {
2162
+ }, Bo = (m, i = {
2163
2163
  persistInQuery: !0
2164
2164
  }) => {
2165
2165
  const o = Ce().currentRoute;
@@ -2169,7 +2169,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2169
2169
  const d = a || Object.keys(m.description.filtersPresets)[0];
2170
2170
  Ne(m.description.filtersPresets[d], m);
2171
2171
  }
2172
- if (s.persistInQuery) {
2172
+ if (i.persistInQuery) {
2173
2173
  const d = o.value.query;
2174
2174
  d.offset && (m.pagination.offset = +d.offset), d.limit && (m.pagination.limit = +d.limit), d.search && (m.textQuery = d.search, m.filters.$text = {
2175
2175
  $search: `"${d.search}"`,
@@ -2198,7 +2198,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2198
2198
  }, ta = { class: "table__cell-actions" }, na = {
2199
2199
  key: 2,
2200
2200
  class: "no-print table__mobile-actions"
2201
- }, oa = ["id"], aa = { key: 1 }, la = ["colspan"], ia = { class: "table__empty" }, sa = /* @__PURE__ */ F({
2201
+ }, oa = ["id"], aa = { key: 1 }, la = ["colspan"], sa = { class: "table__empty" }, ia = /* @__PURE__ */ F({
2202
2202
  __name: "aeria-table",
2203
2203
  props: {
2204
2204
  columns: {},
@@ -2209,8 +2209,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2209
2209
  layout: {}
2210
2210
  },
2211
2211
  emits: ["itemClick"],
2212
- setup(m, { emit: s }) {
2213
- const n = m, o = s, a = Se(), d = n.collection || we(), r = d ? ne(typeof d == "string" ? d : d.value) : null, f = Y({
2212
+ setup(m, { emit: i }) {
2213
+ const n = m, o = i, a = Se(), d = n.collection || we(), r = d ? ne(typeof d == "string" ? d : d.value) : null, f = Y({
2214
2214
  get: () => r?.selected,
2215
2215
  set: (b) => r?.$actions.selectManyItems(b, !0)
2216
2216
  }), p = Y(() => n.columns ? Object.keys(n.columns).length + Number(n.checkbox) : 0), y = (b, l) => b.button ? typeof b.button == "object" ? qe(l, b.button).satisfied : b.button : !1, u = (b) => {
@@ -2249,33 +2249,33 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2249
2249
  };
2250
2250
  return (b, l) => {
2251
2251
  const T = ee("clickable");
2252
- return p.value > 0 || b.$slots.thead ? (t(), i("table", So, [
2253
- b.$slots.thead ? (t(), i("thead", wo, [
2252
+ return p.value > 0 || b.$slots.thead ? (t(), s("table", So, [
2253
+ b.$slots.thead ? (t(), s("thead", wo, [
2254
2254
  O(b.$slots, "thead", {}, void 0, !0)
2255
- ])) : (t(), i("thead", To, [
2255
+ ])) : (t(), s("thead", To, [
2256
2256
  A("tr", null, [
2257
- b.checkbox && e(r) && e(a).md ? (t(), i("th", jo, [
2257
+ b.checkbox && e(r) && e(a).md ? (t(), s("th", jo, [
2258
2258
  A("input", {
2259
2259
  type: "checkbox",
2260
2260
  checked: e(r).selected.length > 0 && e(r).selected.length === e(r).itemsCount,
2261
2261
  onChange: l[0] || (l[0] = (V) => e(r).$actions.selectAllItems(V.target.checked))
2262
2262
  }, null, 40, Ro)
2263
2263
  ])) : h("", !0),
2264
- (t(!0), i(X, null, E(Object.entries(b.columns), ([V, H], I) => (t(), i("th", {
2264
+ (t(!0), s(X, null, E(Object.entries(b.columns), ([V, H], I) => (t(), s("th", {
2265
2265
  key: `header-${I}`,
2266
2266
  class: "table__header"
2267
2267
  }, C(H.description || e(R)(V)), 1))), 128)),
2268
- b.actions?.length ? (t(), i("th", qo)) : h("", !0)
2268
+ b.actions?.length ? (t(), s("th", qo)) : h("", !0)
2269
2269
  ])
2270
2270
  ])),
2271
- b.$slots.tbody ? (t(), i("tbody", Lo, [
2271
+ b.$slots.tbody ? (t(), s("tbody", Lo, [
2272
2272
  O(b.$slots, "tbody", {}, void 0, !0)
2273
- ])) : (t(), i("tbody", Mo, [
2274
- (t(!0), i(X, null, E(b.rows, (V, H) => (t(), i("tr", {
2273
+ ])) : (t(), s("tbody", Mo, [
2274
+ (t(!0), s(X, null, E(b.rows, (V, H) => (t(), s("tr", {
2275
2275
  key: V._id,
2276
2276
  onClick: (I) => o("itemClick", V)
2277
2277
  }, [
2278
- e(r) && b.checkbox && e(a).md ? (t(), i("td", Fo, [
2278
+ e(r) && b.checkbox && e(a).md ? (t(), s("td", Fo, [
2279
2279
  J(A("input", {
2280
2280
  "onUpdate:modelValue": l[1] || (l[1] = (I) => f.value = I),
2281
2281
  type: "checkbox",
@@ -2284,11 +2284,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2284
2284
  [tt, f.value]
2285
2285
  ])
2286
2286
  ])) : h("", !0),
2287
- (t(!0), i(X, null, E(Object.entries(b.columns), ([I, B], P) => (t(), i("td", {
2287
+ (t(!0), s(X, null, E(Object.entries(b.columns), ([I, B], P) => (t(), s("td", {
2288
2288
  key: `column-${V._id}-${P}`
2289
2289
  }, [
2290
2290
  A("div", Uo, C(B.description || e(R)(I)), 1),
2291
- `row-${I}` in b.$slots ? (t(), i("div", Ho, [
2291
+ `row-${I}` in b.$slots ? (t(), s("div", Ho, [
2292
2292
  O(b.$slots, `row-${I}`, z({ ref_for: !0 }, {
2293
2293
  store: e(r),
2294
2294
  column: I,
@@ -2296,9 +2296,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2296
2296
  row: V,
2297
2297
  rowIndex: H
2298
2298
  }), void 0, !0)
2299
- ])) : (t(), i("div", Do, [
2299
+ ])) : (t(), s("div", Do, [
2300
2300
  A("div", Qo, [
2301
- "type" in B && B.type === "boolean" ? (t(), i("div", Go, [
2301
+ "type" in B && B.type === "boolean" ? (t(), s("div", Go, [
2302
2302
  V[I] ? (t(), g(D, {
2303
2303
  key: 0,
2304
2304
  icon: "check",
@@ -2318,8 +2318,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2318
2318
  ]),
2319
2319
  _: 1
2320
2320
  }))
2321
- ])) : e(se)(B)?.$ref === "file" ? (t(), i("div", Wo, [
2322
- V[I] ? (t(), i("div", Yo, [
2321
+ ])) : e(ie)(B)?.$ref === "file" ? (t(), s("div", Wo, [
2322
+ V[I] ? (t(), s("div", Yo, [
2323
2323
  "items" in B && V[I][0] && /^image/.test(V[I][0].type) ? (t(), g(Le, {
2324
2324
  key: 0,
2325
2325
  modelValue: V[I][0].link,
@@ -2336,20 +2336,20 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2336
2336
  meta: V[I],
2337
2337
  alt: "Row image",
2338
2338
  class: "table__picture"
2339
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : V[I].link ? (t(), i("a", {
2339
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : V[I].link ? (t(), s("a", {
2340
2340
  key: 2,
2341
2341
  href: V[I].link,
2342
2342
  style: { "font-size": "10pt" }
2343
- }, C(V[I].filename), 9, Ko)) : (t(), i("div", Xo, " - "))
2344
- ])) : (t(), i("div", Jo, " - "))
2345
- ])) : (t(), i("div", Zo, [
2346
- e(r) ? (t(), i("span", Po, C(e(r).$actions.formatValue({
2343
+ }, C(V[I].filename), 9, Ko)) : (t(), s("div", Xo, " - "))
2344
+ ])) : (t(), s("div", Jo, " - "))
2345
+ ])) : (t(), s("div", Zo, [
2346
+ e(r) ? (t(), s("span", Po, C(e(r).$actions.formatValue({
2347
2347
  value: V[I],
2348
2348
  key: I,
2349
2349
  property: B
2350
- })), 1)) : (t(), i("span", No, C(Array.isArray(V[I]) ? V[I].filter((x) => !!x).join(", ") : [void 0, null].includes(V[I]) ? "-" : V[I]), 1)),
2351
- e(se)(B)?.indexes?.length > 1 ? (t(), i("div", xo, [
2352
- (t(!0), i(X, null, E(e(se)(B).indexes.slice(1, 2), (x, ue) => (t(), i("div", {
2350
+ })), 1)) : (t(), s("span", No, C(Array.isArray(V[I]) ? V[I].filter((x) => !!x).join(", ") : [void 0, null].includes(V[I]) ? "-" : V[I]), 1)),
2351
+ e(ie)(B)?.indexes?.length > 1 ? (t(), s("div", xo, [
2352
+ (t(!0), s(X, null, E(e(ie)(B).indexes.slice(1, 2), (x, ue) => (t(), s("div", {
2353
2353
  key: `subvalue-${ue}`,
2354
2354
  class: "table__cell-subvalue"
2355
2355
  }, C(e(r).$actions.formatValue({
@@ -2363,9 +2363,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2363
2363
  ])
2364
2364
  ]))
2365
2365
  ]))), 128)),
2366
- b.actions?.length && e(a).md ? (t(), i("td", ea, [
2366
+ b.actions?.length && e(a).md ? (t(), s("td", ea, [
2367
2367
  A("div", ta, [
2368
- (t(!0), i(X, null, E(u(V), (I) => (t(), g(le, {
2368
+ (t(!0), s(X, null, E(u(V), (I) => (t(), g(le, {
2369
2369
  key: `action-${I.action}`,
2370
2370
  small: "",
2371
2371
  variant: "alt",
@@ -2399,12 +2399,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2399
2399
  _: 2
2400
2400
  }, 1040)) : h("", !0)
2401
2401
  ])
2402
- ])) : b.actions?.length ? (t(), i("td", na, [
2402
+ ])) : b.actions?.length ? (t(), s("td", na, [
2403
2403
  A("div", {
2404
2404
  class: "table__mobile-actions-grid",
2405
2405
  style: ve(`grid-template-columns: repeat(${u(V).length + (v(V).length ? 1 : 0)}, 1fr);`)
2406
2406
  }, [
2407
- (t(!0), i(X, null, E(u(V), (I) => (t(), g(ce, {
2407
+ (t(!0), s(X, null, E(u(V), (I) => (t(), g(ce, {
2408
2408
  key: `action-${I.action}`,
2409
2409
  class: "table__mobile-actions-button",
2410
2410
  onClick: (B) => I.click(V)
@@ -2444,18 +2444,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2444
2444
  ], 8, zo))), 128))
2445
2445
  ])),
2446
2446
  A("tfoot", null, [
2447
- b.$slots.tfoot ? O(b.$slots, "tfoot", { key: 0 }, void 0, !0) : b.columns && !b.rows?.length && !e(r)?.loading.getAll ? (t(), i("tr", aa, [
2447
+ b.$slots.tfoot ? O(b.$slots, "tfoot", { key: 0 }, void 0, !0) : b.columns && !b.rows?.length && !e(r)?.loading.getAll ? (t(), s("tr", aa, [
2448
2448
  A("td", {
2449
2449
  colspan: p.value + 1
2450
2450
  }, [
2451
- A("div", ia, C(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2451
+ A("div", sa, C(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2452
2452
  ], 8, la)
2453
2453
  ])) : h("", !0)
2454
2454
  ])
2455
2455
  ])) : h("", !0);
2456
2456
  };
2457
2457
  }
2458
- }), ra = /* @__PURE__ */ U(sa, [["__scopeId", "data-v-e01a149a"]]), ua = /* @__PURE__ */ F({
2458
+ }), ra = /* @__PURE__ */ U(ia, [["__scopeId", "data-v-e01a149a"]]), ua = /* @__PURE__ */ F({
2459
2459
  __name: "aeria-tabular",
2460
2460
  props: {
2461
2461
  individualActions: {},
@@ -2463,22 +2463,22 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2463
2463
  componentProps: {}
2464
2464
  },
2465
2465
  setup(m) {
2466
- const s = m, n = Ae(), o = we(), a = Y(() => {
2466
+ const i = m, n = Ae(), o = we(), a = Y(() => {
2467
2467
  const d = {
2468
2468
  collection: o,
2469
2469
  checkbox: n.hasSelectionActions,
2470
2470
  columns: n.tableProperties,
2471
2471
  rows: n.items,
2472
- actions: s.individualActions,
2472
+ actions: i.individualActions,
2473
2473
  layout: n.tableLayout
2474
2474
  };
2475
- return Object.assign(d, s.componentProps);
2475
+ return Object.assign(d, i.componentProps);
2476
2476
  });
2477
- return (d, r) => (t(), i("div", null, [
2477
+ return (d, r) => (t(), s("div", null, [
2478
2478
  d.$slots.inner ? O(d.$slots, "inner", { key: 0 }) : h("", !0),
2479
2479
  e(n).properties ? (t(), g(ra, z({ key: 1 }, a.value, {
2480
2480
  key: e(n).$id
2481
- }), ie({ _: 2 }, [
2481
+ }), se({ _: 2 }, [
2482
2482
  E(Object.keys(d.$slots).filter((f) => !["inner"].includes(f)), (f) => ({
2483
2483
  name: f,
2484
2484
  fn: _((p) => [
@@ -2494,13 +2494,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2494
2494
  list: { type: Boolean }
2495
2495
  },
2496
2496
  setup(m) {
2497
- return (s, n) => (t(), i("div", {
2497
+ return (i, n) => (t(), s("div", {
2498
2498
  class: G([
2499
2499
  "grid",
2500
- { "grid--list": s.list }
2500
+ { "grid--list": i.list }
2501
2501
  ])
2502
2502
  }, [
2503
- O(s.$slots, "default", {}, void 0, !0)
2503
+ O(i.$slots, "default", {}, void 0, !0)
2504
2504
  ], 2));
2505
2505
  }
2506
2506
  }), ca = /* @__PURE__ */ U(da, [["__scopeId", "data-v-4839c834"]]), pa = { key: 0 }, ma = {
@@ -2525,18 +2525,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2525
2525
  list: d.componentName === "list"
2526
2526
  }, {
2527
2527
  default: _(() => [
2528
- (t(!0), i(X, null, E(e(o).items, (p) => (t(), g(Et, {
2528
+ (t(!0), s(X, null, E(e(o).items, (p) => (t(), g(Et, {
2529
2529
  key: p._id,
2530
2530
  inactive: !!(e(n).active && !p[e(n).active]),
2531
2531
  horizontal: d.componentName === "list"
2532
- }, ie({
2532
+ }, se({
2533
2533
  footer: _(() => [
2534
- e(n).title ? (t(), i("div", pa, C(p[e(n).title]), 1)) : h("", !0),
2535
- Array.isArray(e(n).information) ? (t(), i("div", ma, [
2536
- (t(!0), i(X, null, E(e(n).information, (y) => (t(), i("div", {
2534
+ e(n).title ? (t(), s("div", pa, C(p[e(n).title]), 1)) : h("", !0),
2535
+ Array.isArray(e(n).information) ? (t(), s("div", ma, [
2536
+ (t(!0), s(X, null, E(e(n).information, (y) => (t(), s("div", {
2537
2537
  key: `info-${y}`
2538
2538
  }, C(p[y]), 1))), 128))
2539
- ])) : e(n).information ? (t(), i("div", fa, C(p[e(n).information]), 1)) : h("", !0)
2539
+ ])) : e(n).information ? (t(), s("div", fa, C(p[e(n).information]), 1)) : h("", !0)
2540
2540
  ]),
2541
2541
  actions: _(() => [
2542
2542
  d.individualActions?.length ? (t(), g(Ve, z({
@@ -2573,7 +2573,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2573
2573
  e(n).badge && Array.isArray(p[e(n).badge]) ? {
2574
2574
  name: "badge",
2575
2575
  fn: _(() => [
2576
- (t(!0), i(X, null, E(p[e(n).badge], (y) => (t(), g(_e, {
2576
+ (t(!0), s(X, null, E(p[e(n).badge], (y) => (t(), g(_e, {
2577
2577
  key: `${p._id}-${y}`,
2578
2578
  large: ""
2579
2579
  }, {
@@ -2630,8 +2630,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2630
2630
  noQueryPersistence: { type: Boolean }
2631
2631
  },
2632
2632
  emits: ["uiEvent"],
2633
- setup(m, { emit: s }) {
2634
- const n = Z(!1), o = Z(!1), a = Z((...k) => null), d = Z(), r = m, f = s, p = Ce(), y = ne("meta"), u = Se(), { reachedEnd: v, detach: $ } = De(null, {
2633
+ setup(m, { emit: i }) {
2634
+ const n = Z(!1), o = Z(!1), a = Z((...k) => null), d = Z(), r = m, f = i, p = Ce(), y = ne("meta"), u = Se(), { reachedEnd: v, detach: $ } = De(null, {
2635
2635
  antecipate: 600
2636
2636
  }), b = !u.value.md || r.scrollPagination;
2637
2637
  b && oe(v, (k) => {
@@ -2728,7 +2728,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2728
2728
  if (te.readOnly)
2729
2729
  return c;
2730
2730
  const S = (q) => {
2731
- const W = se(te);
2731
+ const W = ie(te);
2732
2732
  if (!W)
2733
2733
  return q;
2734
2734
  if (W.$ref === "file")
@@ -2765,7 +2765,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2765
2765
  }), pe = Y(() => l.actions.filter((k) => !k.button));
2766
2766
  return fe(Te, Y(() => r.collection)), (k, j) => {
2767
2767
  const L = ee("clickable"), N = ee("loading");
2768
- return t(), i(X, null, [
2768
+ return t(), s(X, null, [
2769
2769
  o.value ? (t(), g(Ao, {
2770
2770
  key: e(l).$id,
2771
2771
  modelValue: o.value,
@@ -2781,7 +2781,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2781
2781
  individualActions: $e.value
2782
2782
  }, {
2783
2783
  onCancel: j[2] || (j[2] = (c) => n.value = !1)
2784
- }), ie({
2784
+ }), se({
2785
2785
  header: _(() => [
2786
2786
  A("span", null, C((() => {
2787
2787
  switch (n.value) {
@@ -2805,8 +2805,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2805
2805
  ])
2806
2806
  }))
2807
2807
  ]), 1040, ["visible"])) : h("", !0),
2808
- !k.noActions && (e(l).description.search || Object.keys(e(l).availableFilters).length > 0 || e(l)?.actions.length > 0 || k.$slots.actions || !k.noLayoutToggle && e(l).description.layout && e(l).description.layout?.name !== "tabular") ? (t(), i("div", _a, [
2809
- e(l).description.search ? (t(), i("div", ha, [
2808
+ !k.noActions && (e(l).description.search || Object.keys(e(l).availableFilters).length > 0 || e(l)?.actions.length > 0 || k.$slots.actions || !k.noLayoutToggle && e(l).description.layout && e(l).description.layout?.name !== "tabular") ? (t(), s("div", _a, [
2809
+ e(l).description.search ? (t(), s("div", ha, [
2810
2810
  M(be, z({
2811
2811
  modelValue: e(l).textQuery,
2812
2812
  "onUpdate:modelValue": j[3] || (j[3] = (c) => e(l).textQuery = c)
@@ -2819,7 +2819,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2819
2819
  }), null, 16, ["modelValue"])
2820
2820
  ])) : h("", !0),
2821
2821
  A("div", ba, [
2822
- pe.value.length > 0 || !k.noLayoutToggle && e(l).description.layout && e(l).description.layout?.name !== "tabular" ? (t(), g(Ve, { key: 0 }, ie({
2822
+ pe.value.length > 0 || !k.noLayoutToggle && e(l).description.layout && e(l).description.layout?.name !== "tabular" ? (t(), g(Ve, { key: 0 }, se({
2823
2823
  default: _(() => [
2824
2824
  M(le, {
2825
2825
  variant: "alt",
@@ -2913,7 +2913,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2913
2913
  ]),
2914
2914
  _: 1
2915
2915
  })) : h("", !0),
2916
- (t(!0), i(X, null, E(e(l).actions.filter((c) => c.button), (c, w) => (t(), g(le, {
2916
+ (t(!0), s(X, null, E(e(l).actions.filter((c) => c.button), (c, w) => (t(), g(le, {
2917
2917
  key: `action-${w}`,
2918
2918
  icon: c.icon,
2919
2919
  disabled: e(l).selected.length === 0 && "selection" in c && c.selection,
@@ -2927,8 +2927,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2927
2927
  k.$slots.actions ? O(k.$slots, "actions", { key: 2 }, void 0, !0) : h("", !0)
2928
2928
  ])
2929
2929
  ])) : h("", !0),
2930
- J((t(), i("div", ga, [
2931
- e(l).itemsCount === 0 && !e(l).loading.getAll && I.value && (e(x) || k.$slots.empty) ? (t(), i("div", ka, [
2930
+ J((t(), s("div", ga, [
2931
+ e(l).itemsCount === 0 && !e(l).loading.getAll && I.value && (e(x) || k.$slots.empty) ? (t(), s("div", ka, [
2932
2932
  e(x) ? (t(), g(me(e(x)), ae(z({ key: 0 }, {
2933
2933
  collection: e(l).$id
2934
2934
  })), {
@@ -2959,7 +2959,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2959
2959
  componentProps: k.componentProps
2960
2960
  }, {
2961
2961
  "component-name": k.layout?.name || e(l).$currentLayout
2962
- }), ie({ _: 2 }, [
2962
+ }), se({ _: 2 }, [
2963
2963
  E(Object.keys(k.$slots).filter((c) => c.startsWith("row-")), (c) => ({
2964
2964
  name: c,
2965
2965
  fn: _((w) => [
@@ -2977,7 +2977,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2977
2977
  ])), [
2978
2978
  [N, (!e(b) || H.value === Xe) && e(l).loading.getAll]
2979
2979
  ]),
2980
- !e(b) && !k.noControls && !e(l).loading.getAll && e(l).itemsCount > 0 ? (t(), i("div", Va, [
2980
+ !e(b) && !k.noControls && !e(l).loading.getAll && e(l).itemsCount > 0 ? (t(), s("div", Va, [
2981
2981
  M(mn, {
2982
2982
  pagination: e(l).pagination,
2983
2983
  onPaginate: P
@@ -2993,8 +2993,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
2993
2993
  options: {}
2994
2994
  },
2995
2995
  setup(m) {
2996
- const s = ne("meta"), n = (o, a) => {
2997
- s.$actions.fulfillPrompt(o, a);
2996
+ const i = ne("meta"), n = (o, a) => {
2997
+ i.$actions.fulfillPrompt(o, a);
2998
2998
  };
2999
2999
  return (o, a) => (t(), g(Oe, {
3000
3000
  float: "",
@@ -3008,7 +3008,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
3008
3008
  class: "prompt__options",
3009
3009
  style: ve(`grid-template-columns: repeat(${Object.keys(o.options).length}, 1fr)`)
3010
3010
  }, [
3011
- (t(!0), i(X, null, E(Object.entries(o.options), ([d, r], f) => (t(), g(ce, {
3011
+ (t(!0), s(X, null, E(Object.entries(o.options), ([d, r], f) => (t(), g(ce, {
3012
3012
  key: `option-${f}`,
3013
3013
  class: G([
3014
3014
  "prompt__option",
@@ -3040,16 +3040,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
3040
3040
  icon: {}
3041
3041
  },
3042
3042
  setup(m) {
3043
- const s = ne("meta");
3043
+ const i = ne("meta");
3044
3044
  return (n, o) => {
3045
3045
  const a = ee("clickable");
3046
- return J((t(), i("div", {
3046
+ return J((t(), s("div", {
3047
3047
  class: G({
3048
3048
  toast: !0,
3049
- "toast--animate": e(s).toasts[0].itr === n.itr
3049
+ "toast--animate": e(i).toasts[0].itr === n.itr
3050
3050
  }),
3051
- onAnimationend: o[0] || (o[0] = (d) => e(s).$actions.popToast()),
3052
- onClick: o[1] || (o[1] = (d) => e(s).$actions.popToast(n.itr))
3051
+ onAnimationend: o[0] || (o[0] = (d) => e(i).$actions.popToast()),
3052
+ onClick: o[1] || (o[1] = (d) => e(i).$actions.popToast(n.itr))
3053
3053
  }, [
3054
3054
  M(D, z(
3055
3055
  n.icon ? { icon: n.icon } : { icon: "warning-circle" },
@@ -3067,10 +3067,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
3067
3067
  }), Ta = /* @__PURE__ */ U(wa, [["__scopeId", "data-v-606d47bf"]]), ja = ["innerHTML"], Ra = ["innerHTML"], qa = { class: "main__toasts" }, La = ["innerHTML"], Ma = /* @__PURE__ */ F({
3068
3068
  __name: "aeria-main",
3069
3069
  setup(m) {
3070
- const s = ne("meta"), n = Y(() => s.themeOverride || s.theme);
3070
+ const i = ne("meta"), n = Y(() => i.themeOverride || i.theme);
3071
3071
  return (o, a) => {
3072
3072
  const d = ot("router-view");
3073
- return t(), i("main", {
3073
+ return t(), s("main", {
3074
3074
  id: "main",
3075
3075
  class: G([
3076
3076
  "main",
@@ -3082,7 +3082,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
3082
3082
  default: _(() => [
3083
3083
  M(d, null, {
3084
3084
  default: _(({ Component: r }) => [
3085
- (t(), g(me(r), null, ie({ _: 2 }, [
3085
+ (t(), g(me(r), null, se({ _: 2 }, [
3086
3086
  E(Object.keys(o.$slots), (f) => ({
3087
3087
  name: f,
3088
3088
  fn: _(() => [
@@ -3098,34 +3098,34 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
3098
3098
  })),
3099
3099
  O(o.$slots, "default", {}, void 0, !0),
3100
3100
  M(Oe, z({
3101
- modelValue: e(s).modal.visible,
3102
- "onUpdate:modelValue": a[0] || (a[0] = (r) => e(s).modal.visible = r),
3101
+ modelValue: e(i).modal.visible,
3102
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => e(i).modal.visible = r),
3103
3103
  float: "",
3104
3104
  "close-hint": ""
3105
- }, e(s).modal, {
3105
+ }, e(i).modal, {
3106
3106
  "overlay-layer": 70,
3107
- onOverlayClick: a[1] || (a[1] = (r) => e(s).modal.visible = !1)
3107
+ onOverlayClick: a[1] || (a[1] = (r) => e(i).modal.visible = !1)
3108
3108
  }), {
3109
3109
  default: _(() => [
3110
- e(s).modal.body ? (t(), i("div", {
3110
+ e(i).modal.body ? (t(), s("div", {
3111
3111
  key: 0,
3112
3112
  style: { "white-space": "pre-wrap" },
3113
- innerHTML: e(s).modal.body
3113
+ innerHTML: e(i).modal.body
3114
3114
  }, null, 8, ja)) : h("", !0),
3115
- e(s).modal.component ? (t(), g(me(e(s).modal.component), { key: 1 })) : h("", !0)
3115
+ e(i).modal.component ? (t(), g(me(e(i).modal.component), { key: 1 })) : h("", !0)
3116
3116
  ]),
3117
3117
  _: 1
3118
3118
  }, 16, ["modelValue"]),
3119
- e(s).prompt.visible ? (t(), g(Ia, ae(z({ key: 0 }, e(s).prompt)), {
3119
+ e(i).prompt.visible ? (t(), g(Ia, ae(z({ key: 0 }, e(i).prompt)), {
3120
3120
  default: _(() => [
3121
3121
  A("div", {
3122
- innerHTML: e(s).prompt.body
3122
+ innerHTML: e(i).prompt.body
3123
3123
  }, null, 8, Ra)
3124
3124
  ]),
3125
3125
  _: 1
3126
3126
  }, 16)) : h("", !0),
3127
3127
  A("div", qa, [
3128
- (t(!0), i(X, null, E(e(s).toasts, (r) => (t(), g(Ta, z({ ref_for: !0 }, r, {
3128
+ (t(!0), s(X, null, E(e(i).toasts, (r) => (t(), g(Ta, z({ ref_for: !0 }, r, {
3129
3129
  key: `toast-${r.itr}`
3130
3130
  }), {
3131
3131
  default: _(() => [
@@ -3140,9 +3140,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
3140
3140
  };
3141
3141
  }
3142
3142
  }), ul = /* @__PURE__ */ U(Ma, [["__scopeId", "data-v-8de8a4eb"]]), za = {}, Fa = { class: "menu" };
3143
- function Ea(m, s) {
3144
- return t(), i("menu", Fa, [
3145
- (t(!0), i(X, null, E(Object.keys(m.$slots), (n) => (t(), i("div", {
3143
+ function Ea(m, i) {
3144
+ return t(), s("menu", Fa, [
3145
+ (t(!0), s(X, null, E(Object.keys(m.$slots), (n) => (t(), s("div", {
3146
3146
  key: n,
3147
3147
  class: "menu__entry"
3148
3148
  }, [
@@ -3167,36 +3167,36 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3167
3167
  dropdown: { type: Boolean }
3168
3168
  },
3169
3169
  setup(m) {
3170
- const s = m, n = lt(), o = Ce(), a = Se(), d = Y(() => {
3171
- if (s.query) {
3172
- const f = o.currentRoute.value.query[s.query];
3170
+ const i = m, n = lt(), o = Ce(), a = Se(), d = Y(() => {
3171
+ if (i.query) {
3172
+ const f = o.currentRoute.value.query[i.query];
3173
3173
  if (f)
3174
3174
  return f;
3175
- } else if (s.param) {
3176
- const f = o.currentRoute.value.params[s.param];
3175
+ } else if (i.param) {
3176
+ const f = o.currentRoute.value.params[i.param];
3177
3177
  if (f)
3178
3178
  return f;
3179
3179
  }
3180
3180
  return Object.keys(n)[0];
3181
3181
  }), r = (f) => {
3182
- s.query && o.push(Be(o.currentRoute.value, {
3182
+ i.query && o.push(Be(o.currentRoute.value, {
3183
3183
  query: {
3184
- [s.query]: f
3184
+ [i.query]: f
3185
3185
  }
3186
- })), s.param && o.push(Be(o.currentRoute.value, {
3186
+ })), i.param && o.push(Be(o.currentRoute.value, {
3187
3187
  params: {
3188
- [s.param]: f
3188
+ [i.param]: f
3189
3189
  }
3190
3190
  }));
3191
3191
  };
3192
3192
  return (f, p) => {
3193
3193
  const y = ee("clickable");
3194
- return t(), i("div", Ua, [
3195
- e(a).md && !f.dropdown ? (t(), i("div", Ha, [
3196
- f.$slots.default ? (t(), i("div", Da, [
3194
+ return t(), s("div", Ua, [
3195
+ e(a).md && !f.dropdown ? (t(), s("div", Ha, [
3196
+ f.$slots.default ? (t(), s("div", Da, [
3197
3197
  O(f.$slots, "default", {}, void 0, !0)
3198
3198
  ])) : h("", !0),
3199
- (t(!0), i(X, null, E(Object.keys(f.$slots).filter((u) => u !== "default"), (u, v) => (t(), i("div", {
3199
+ (t(!0), s(X, null, E(Object.keys(f.$slots).filter((u) => u !== "default"), (u, v) => (t(), s("div", {
3200
3200
  key: u,
3201
3201
  class: G({
3202
3202
  tabs__tab: !0,
@@ -3206,8 +3206,8 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3206
3206
  }, [
3207
3207
  O(f.$slots, u, {}, void 0, !0)
3208
3208
  ], 10, Qa))), 128))
3209
- ])) : (t(), i("div", Ga, [
3210
- M(Ve, null, ie({
3209
+ ])) : (t(), s("div", Ga, [
3210
+ M(Ve, null, se({
3211
3211
  default: _(({ visible: u }) => [
3212
3212
  J((t(), g(D, {
3213
3213
  "icon-right": "",
@@ -3247,10 +3247,10 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3247
3247
  promise: Promise
3248
3248
  },
3249
3249
  setup(m) {
3250
- const s = Z(m.initialValue);
3250
+ const i = Z(m.initialValue);
3251
3251
  return m.promise instanceof Promise && m.promise.then((n) => {
3252
- s.value = n;
3253
- }), () => it("div", String(s.value));
3252
+ i.value = n;
3253
+ }), () => st("div", String(i.value));
3254
3254
  }
3255
3255
  }), Ja = ["onClick"], Za = { key: 1 }, Pa = /* @__PURE__ */ F({
3256
3256
  __name: "aeria-crud-topbar",
@@ -3258,7 +3258,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3258
3258
  collection: {}
3259
3259
  },
3260
3260
  setup(m) {
3261
- const s = m, o = Ce().currentRoute, a = Qe(), d = Y(() => s.collection ? Ae(s.collection, a) : typeof o.value.meta.collection == "string" ? Ae(o.value.meta.collection, a) : typeof o.value.params.collection == "string" ? Ae(o.value.params.collection, a) : null), r = async (f, p) => {
3261
+ const i = m, o = Ce().currentRoute, a = Qe(), d = Y(() => i.collection ? Ae(i.collection, a) : typeof o.value.meta.collection == "string" ? Ae(o.value.meta.collection, a) : typeof o.value.params.collection == "string" ? Ae(o.value.params.collection, a) : null), r = async (f, p) => {
3262
3262
  const { error: y, result: u } = await p.$functions[f.badgeFunction]({
3263
3263
  filters: f.filters
3264
3264
  });
@@ -3268,7 +3268,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3268
3268
  key: 0,
3269
3269
  dropdown: "",
3270
3270
  query: "section"
3271
- }, ie({ _: 2 }, [
3271
+ }, se({ _: 2 }, [
3272
3272
  E(Object.entries(d.value.description.filtersPresets), ([y, u]) => ({
3273
3273
  name: y,
3274
3274
  fn: _(() => [
@@ -3284,7 +3284,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3284
3284
  Q(C(u.label || e(R)(y, { plural: !0 })), 1)
3285
3285
  ]),
3286
3286
  _: 2
3287
- }, 1032, ["icon"])) : (t(), i("div", Za, C(u.label || e(R)(y, { plural: !0 })), 1)),
3287
+ }, 1032, ["icon"])) : (t(), s("div", Za, C(u.label || e(R)(y, { plural: !0 })), 1)),
3288
3288
  u.badgeFunction ? (t(), g(_e, { key: 2 }, {
3289
3289
  default: _(() => [
3290
3290
  M(e(Xa), {
@@ -3309,11 +3309,11 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3309
3309
  },
3310
3310
  emits: ["update:modelValue"],
3311
3311
  setup(m) {
3312
- const s = m;
3312
+ const i = m;
3313
3313
  fe(Te, null);
3314
3314
  const n = yt(), o = Y(() => n(
3315
- s.modelValue.password,
3316
- s.modelValue.confirmation
3315
+ i.modelValue.password,
3316
+ i.modelValue.confirmation
3317
3317
  ));
3318
3318
  return (a, d) => (t(), g(ze, {
3319
3319
  form: {
@@ -3338,11 +3338,11 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3338
3338
  _: 3
3339
3339
  }, 8, ["model-value"]));
3340
3340
  }
3341
- }), pl = (m, s = []) => ({
3341
+ }), pl = (m, i = []) => ({
3342
3342
  path: "/user",
3343
3343
  name: "/builtin:user",
3344
3344
  component: m,
3345
- children: s.concat([
3345
+ children: i.concat([
3346
3346
  {
3347
3347
  path: "invite/:id",
3348
3348
  name: "/user/invite/:id",
@@ -3356,7 +3356,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3356
3356
  {
3357
3357
  path: "signin",
3358
3358
  name: "/user/signin",
3359
- component: () => import("./signin-wcTF5qEm.js"),
3359
+ component: () => import("./signin-qyQWe20l.js"),
3360
3360
  meta: {
3361
3361
  title: "Sign in"
3362
3362
  }
@@ -3364,7 +3364,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3364
3364
  {
3365
3365
  path: "signup",
3366
3366
  name: "/user/signup",
3367
- component: () => import("./signup-BI-FL_It.js"),
3367
+ component: () => import("./signup-BV8XNoCW.js"),
3368
3368
  meta: {
3369
3369
  title: "Sign up"
3370
3370
  }
@@ -3372,7 +3372,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3372
3372
  {
3373
3373
  path: "redefine-password",
3374
3374
  name: "/user/redefine-password",
3375
- component: () => import("./redefine-password-DfcGIlWc.js"),
3375
+ component: () => import("./redefine-password-B6iR8Daw.js"),
3376
3376
  meta: {
3377
3377
  title: "Redefine password"
3378
3378
  }
@@ -3380,13 +3380,13 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3380
3380
  {
3381
3381
  path: "activation",
3382
3382
  name: "/user/activation",
3383
- component: () => import("./activation-DFcEnfMr.js"),
3383
+ component: () => import("./activation-BLK5vWLb.js"),
3384
3384
  meta: {
3385
3385
  title: "Activate user"
3386
3386
  }
3387
3387
  }
3388
3388
  ])
3389
- }), ml = (m, s = []) => ({
3389
+ }), ml = (m, i = []) => ({
3390
3390
  path: "/dashboard",
3391
3391
  name: "/builtin:dashboard",
3392
3392
  component: m,
@@ -3396,13 +3396,13 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3396
3396
  meta: {
3397
3397
  title: "Dashboard"
3398
3398
  },
3399
- children: s.concat([
3399
+ children: i.concat([
3400
3400
  {
3401
3401
  path: "c/:collection",
3402
3402
  name: "/dashboard/:collection",
3403
3403
  props: !0,
3404
3404
  components: {
3405
- default: () => import("./index-C1SMLLyx.js"),
3405
+ default: () => import("./index-BONQgktz.js"),
3406
3406
  topbar: () => Promise.resolve().then(() => xa)
3407
3407
  },
3408
3408
  meta: {
@@ -3416,7 +3416,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3416
3416
  name: "/dashboard/:collection/:id",
3417
3417
  props: !0,
3418
3418
  components: {
3419
- default: () => import("./_id_-Cmzqf-yJ.js")
3419
+ default: () => import("./_id_-DVHwHOM4.js")
3420
3420
  },
3421
3421
  meta: {
3422
3422
  title: ({ collectionName: n, t: o }) => o(n, {
@@ -3436,7 +3436,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3436
3436
  children: [
3437
3437
  {
3438
3438
  path: "profile",
3439
- component: () => import("./index-CbG03QWA.js"),
3439
+ component: () => import("./index-BRw_qkT2.js"),
3440
3440
  meta: {
3441
3441
  title: "User profile",
3442
3442
  icon: "user-square"
@@ -3445,7 +3445,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
3445
3445
  {
3446
3446
  path: "changepass",
3447
3447
  name: "/dashboard/user/changepass",
3448
- component: () => import("./index-DZ3ExAxA.js"),
3448
+ component: () => import("./index-CHb6ftk7.js"),
3449
3449
  meta: {
3450
3450
  title: "Change password",
3451
3451
  icon: "lock"
@@ -3474,7 +3474,7 @@ export {
3474
3474
  Le as g,
3475
3475
  dl as h,
3476
3476
  Oe as i,
3477
- sl as j,
3477
+ il as j,
3478
3478
  _e as k,
3479
3479
  ce as l,
3480
3480
  Et as m,
@@ -3489,6 +3489,6 @@ export {
3489
3489
  Yn as v,
3490
3490
  be as w,
3491
3491
  Vn as x,
3492
- io as y,
3492
+ so as y,
3493
3493
  Ge as z
3494
3494
  };