@aeria-ui/ui 0.0.142 → 0.0.144

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