@aeria-ui/ui 0.0.146 → 0.0.147

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