@aeria-ui/ui 0.0.127 → 0.0.128

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