@aeria-ui/ui 0.0.151 → 0.0.153

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,10 +1,10 @@
1
- import { defineComponent as F, ref as ee, resolveDirective as ne, openBlock as t, createElementBlock as s, normalizeClass as W, Fragment as P, renderList as H, withDirectives as J, toDisplayString as C, createCommentVNode as h, createTextVNode as Q, unref as e, renderSlot as A, withModifiers as Re, inject as fe, computed as K, createElementVNode as I, mergeProps as z, createBlock as V, withCtx as y, resolveDynamicComponent as he, useCssVars as gt, normalizeProps as de, guardReactiveProps as Ce, Teleport as Ge, createVNode as L, onMounted as We, watch as ue, vModelDynamic as $t, onBeforeMount as ft, normalizeStyle as $e, provide as ge, createSlots as _e, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as Ot, useSlots as At, h as It } from "vue";
1
+ import { defineComponent as F, ref as ee, resolveDirective as ne, openBlock as t, createElementBlock as s, normalizeClass as W, Fragment as P, renderList as H, withDirectives as Z, toDisplayString as C, createCommentVNode as h, createTextVNode as Q, unref as e, renderSlot as A, withModifiers as Re, inject as fe, computed as X, createElementVNode as B, mergeProps as z, createBlock as V, withCtx as b, resolveDynamicComponent as he, useCssVars as gt, normalizeProps as de, guardReactiveProps as Ce, Teleport as We, createVNode as L, onMounted as Ye, watch as ue, vModelDynamic as $t, onBeforeMount as vt, normalizeStyle as $e, provide as ge, createSlots as _e, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as Ot, useSlots as It, h as At } from "vue";
2
2
  import { t as q, useI18n as Bt } from "@aeria-ui/i18n";
3
- import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ye, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as vt, request as jt, useDebounce as yt, convertToSearchQuery as Rt, useParentCollectionStore as je, useCollectionStore as qt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as zt } from "@aeria-ui/core";
4
- import { arraysIntersect as bt, deepClone as Ae, getReferenceProperty as me, freshItem as Ft, isRequired as ct, evaluateCondition as Qe, deepMerge as qe } from "@aeriajs/common";
5
- import { useStore as re, getStoreId as Me, useParentStore as Ee, STORE_ID as ze, getGlobalStateManager as Ke } from "@aeria-ui/state-management";
3
+ import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ke, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as yt, request as jt, useDebounce as bt, convertToSearchQuery as Rt, useParentCollectionStore as je, useCollectionStore as qt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as zt } from "@aeria-ui/core";
4
+ import { arraysIntersect as Ge, deepClone as Ie, getReferenceProperty as me, freshItem as Ft, isRequired as dt, evaluateCondition as Ee, deepMerge as qe } from "@aeriajs/common";
5
+ import { useStore as ie, getStoreId as Me, useParentStore as He, STORE_ID as ze, getGlobalStateManager as Xe } from "@aeria-ui/state-management";
6
6
  import { useRouter as Be } from "vue-router";
7
- import { convertConditionToQuery as Ut, isDocumentComplete as Et, getObjectKey as Ht } from "@aeria-ui/utils";
7
+ import { convertConditionToQuery as Et, isDocumentComplete as Ut, getObjectKey as Ht } from "@aeria-ui/utils";
8
8
  const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
9
9
  key: 0,
10
10
  class: "accordion__content"
@@ -29,7 +29,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
29
29
  key: u,
30
30
  class: "accordion__slot"
31
31
  }, [
32
- J((t(), s("div", {
32
+ Z((t(), s("div", {
33
33
  class: "accordion__header",
34
34
  onClick: (d) => r.value === u ? r.value = null : r.value = u
35
35
  }, [
@@ -104,7 +104,7 @@ const ye = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
104
104
  active: { type: Boolean }
105
105
  },
106
106
  setup(p) {
107
- const r = p, o = fe(St, {}), n = typeof r.reactive == "boolean" ? r.reactive : fe("iconReactive", !1), a = K(() => {
107
+ const r = p, o = fe(St, {}), n = typeof r.reactive == "boolean" ? r.reactive : fe("iconReactive", !1), a = X(() => {
108
108
  var c;
109
109
  return (c = r.icon) != null && c.includes(":") ? r.icon : `regular:${r.icon}`;
110
110
  });
@@ -116,7 +116,7 @@ const ye = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
116
116
  c.$slots.default ? "icon--centered" : "icon--standalone"
117
117
  ])
118
118
  }, [
119
- I("div", {
119
+ B("div", {
120
120
  class: W([
121
121
  "icon__icon",
122
122
  { "icon__icon--right": c.iconRight }
@@ -130,7 +130,7 @@ const ye = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
130
130
  }, {
131
131
  ...c.fill ? { fill: c.fill } : {}
132
132
  }), [
133
- I("use", {
133
+ B("use", {
134
134
  href: `${e(o).base || "/"}assets/icons.svg#${a.value}`
135
135
  }, null, 8, Xt)
136
136
  ], 16))
@@ -174,13 +174,13 @@ const Y = /* @__PURE__ */ D(Zt, [["__scopeId", "data-v-263a2782"]]), Pt = { clas
174
174
  ]),
175
175
  disabled: a.disabled || a.loading
176
176
  }, {
177
- default: y(() => [
177
+ default: b(() => [
178
178
  a.icon ? (t(), V(Y, {
179
179
  key: 0,
180
180
  icon: a.icon
181
181
  }, {
182
- default: y(() => [
183
- I("div", Pt, [
182
+ default: b(() => [
183
+ B("div", Pt, [
184
184
  A(a.$slots, "default", {}, void 0, !0)
185
185
  ])
186
186
  ]),
@@ -207,19 +207,19 @@ const pe = /* @__PURE__ */ D(xt, [["__scopeId", "data-v-e9f582db"]]), en = { cla
207
207
  { "card--horizontal": r.horizontal }
208
208
  ])
209
209
  }, [
210
- I("div", en, [
210
+ B("div", en, [
211
211
  A(r.$slots, "default", {}, void 0, !0)
212
212
  ]),
213
- I("div", tn, [
214
- I("div", nn, [
215
- I("div", null, [
213
+ B("div", tn, [
214
+ B("div", nn, [
215
+ B("div", null, [
216
216
  A(r.$slots, "footer", {}, void 0, !0)
217
217
  ]),
218
- I("div", on, [
218
+ B("div", on, [
219
219
  r.$slots.actions ? A(r.$slots, "actions", { key: 0 }, void 0, !0) : h("", !0)
220
220
  ])
221
221
  ]),
222
- I("div", an, [
222
+ B("div", an, [
223
223
  A(r.$slots, "badge", {}, void 0, !0)
224
224
  ])
225
225
  ])
@@ -252,16 +252,16 @@ const sn = /* @__PURE__ */ D(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
252
252
  },
253
253
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
254
254
  setup(p, { emit: r }) {
255
- const o = p, n = r, a = ee(o.collapsed), c = ee(null), { reachedEnd: u } = Ye(c), m = () => {
255
+ const o = p, n = r, a = ee(o.collapsed), c = ee(null), { reachedEnd: u } = Ke(c), m = () => {
256
256
  n("update:modelValue", !1), n("close");
257
257
  }, d = () => {
258
258
  n("overlayClick");
259
- }, b = (l) => {
259
+ }, v = (l) => {
260
260
  n("update:collapsed", l), a.value = l;
261
261
  };
262
- return (l, v) => {
263
- const $ = ne("clickable"), f = ne("loading"), B = ne("overlay");
264
- return l.modelValue ? J((t(), s("div", {
262
+ return (l, y) => {
263
+ const g = ne("clickable"), f = ne("loading"), I = ne("overlay");
264
+ return l.modelValue ? Z((t(), s("div", {
265
265
  key: 0,
266
266
  class: W([
267
267
  "panel",
@@ -282,9 +282,9 @@ const sn = /* @__PURE__ */ D(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
282
282
  { "panel__content--transparent-mobile": l.transparentMobile },
283
283
  { "panel__content--outer-header": l.outerHeader }
284
284
  ]),
285
- onClick: v[2] || (v[2] = (i) => i.stopPropagation())
285
+ onClick: y[2] || (y[2] = (i) => i.stopPropagation())
286
286
  }, {
287
- default: y(() => [
287
+ default: b(() => [
288
288
  l.$slots.header || l.title ? (t(), s("div", {
289
289
  key: 0,
290
290
  class: W([
@@ -293,36 +293,36 @@ const sn = /* @__PURE__ */ D(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
293
293
  { "panel__header--outer": l.outerHeader }
294
294
  ])
295
295
  }, [
296
- I("div", rn, [
296
+ B("div", rn, [
297
297
  l.$slots.header ? A(l.$slots, "header", { key: 0 }, void 0, !0) : l.title ? (t(), s("div", un, C(l.title), 1)) : h("", !0),
298
298
  l.$slots.extra ? (t(), s("div", cn, [
299
299
  A(l.$slots, "extra", {}, void 0, !0)
300
300
  ])) : h("", !0)
301
301
  ]),
302
- l.collapsible && a.value ? J((t(), V(Y, {
302
+ l.collapsible && a.value ? Z((t(), V(Y, {
303
303
  key: 0,
304
304
  reactive: "",
305
305
  icon: "plus",
306
- onClick: v[0] || (v[0] = (i) => b(!a.value))
306
+ onClick: y[0] || (y[0] = (i) => v(!a.value))
307
307
  }, null, 512)), [
308
- [$]
309
- ]) : l.collapsible && !a.value ? J((t(), V(Y, {
308
+ [g]
309
+ ]) : l.collapsible && !a.value ? Z((t(), V(Y, {
310
310
  key: 1,
311
311
  reactive: "",
312
312
  icon: "minus",
313
- onClick: v[1] || (v[1] = (i) => b(!a.value))
313
+ onClick: y[1] || (y[1] = (i) => v(!a.value))
314
314
  }, null, 512)), [
315
- [$]
316
- ]) : l.closeHint ? J((t(), V(Y, {
315
+ [g]
316
+ ]) : l.closeHint ? Z((t(), V(Y, {
317
317
  key: 2,
318
318
  reactive: "",
319
319
  icon: "x",
320
320
  onClick: m
321
321
  }, null, 512)), [
322
- [$]
322
+ [g]
323
323
  ]) : h("", !0)
324
324
  ], 2)) : h("", !0),
325
- a.value ? h("", !0) : J((t(), s("div", {
325
+ a.value ? h("", !0) : Z((t(), s("div", {
326
326
  key: 1,
327
327
  ref_key: "body",
328
328
  ref: c,
@@ -350,7 +350,7 @@ const sn = /* @__PURE__ */ D(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
350
350
  _: 3
351
351
  }, 8, ["class"]))
352
352
  ], 2)), [
353
- [B, {
353
+ [I, {
354
354
  condition: l.overlay || l.fixedRight || l.float,
355
355
  invisible: l.invisibleOverlay,
356
356
  click: d,
@@ -373,80 +373,80 @@ const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { cla
373
373
  emits: ["actionClick"],
374
374
  setup(p, { emit: r }) {
375
375
  gt((d) => ({
376
- "4393a358": m.value.x,
377
- "4393a359": m.value.y
376
+ "4078ef85": m.value.x,
377
+ "4078ef86": m.value.y
378
378
  }));
379
- const o = r, n = ee(null), a = ee(!1), c = (d) => d == null ? void 0 : d.filter((b) => {
380
- if (b.roles) {
381
- const l = re("user");
382
- return bt(b.roles, l.currentUser.roles);
379
+ const o = r, n = ee(null), a = ee(!1), c = (d) => d == null ? void 0 : d.filter((v) => {
380
+ if (v.roles) {
381
+ const l = ie("user");
382
+ return Ge(v.roles, l.currentUser.roles);
383
383
  }
384
384
  return !0;
385
- }), u = (d, b) => {
386
- const l = b && Ae(b);
385
+ }), u = (d, v) => {
386
+ const l = v && Ie(v);
387
387
  d.click && d.click(l), o("actionClick", {
388
388
  action: d,
389
389
  subject: l
390
390
  }), a.value = !1;
391
- }, m = K(() => {
391
+ }, m = X(() => {
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, b = n.value.getBoundingClientRect().left, l = n.value.offsetHeight;
397
+ const d = n.value.getBoundingClientRect().top, v = n.value.getBoundingClientRect().left, l = n.value.offsetHeight;
398
398
  return {
399
399
  _: a.value,
400
- x: Math.floor(b) + "px",
400
+ x: Math.floor(v) + "px",
401
401
  y: Math.floor(d + l) + "px"
402
402
  };
403
403
  });
404
- return (d, b) => {
404
+ return (d, v) => {
405
405
  const l = ne("overlay");
406
406
  return t(), s(P, null, [
407
- Object.keys(d.$slots).some((v) => v !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
407
+ Object.keys(d.$slots).some((y) => y !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
408
408
  key: 0,
409
409
  ref_key: "contextmenu",
410
410
  ref: n,
411
411
  class: "contextmenu"
412
412
  }, [
413
- I("a", {
413
+ B("a", {
414
414
  class: "contextmenu__trigger",
415
- onClick: b[0] || (b[0] = (v) => a.value = !0)
415
+ onClick: v[0] || (v[0] = (y) => a.value = !0)
416
416
  }, [
417
417
  A(d.$slots, "default", de(Ce({
418
418
  visible: a.value
419
419
  })), void 0, !0)
420
420
  ])
421
421
  ], 512)) : h("", !0),
422
- a.value ? (t(), V(Ge, {
422
+ a.value ? (t(), V(We, {
423
423
  key: 1,
424
424
  to: "main"
425
425
  }, [
426
- J((t(), V(Se, {
426
+ Z((t(), V(Se, {
427
427
  modelValue: a.value,
428
- "onUpdate:modelValue": b[4] || (b[4] = (v) => a.value = v),
428
+ "onUpdate:modelValue": v[4] || (v[4] = (y) => a.value = y),
429
429
  fill: "",
430
430
  bordered: "",
431
431
  class: "content",
432
432
  style: { "--panel-min-width": "0" }
433
433
  }, {
434
- default: y(() => [
435
- I("div", pn, [
434
+ default: b(() => [
435
+ B("div", pn, [
436
436
  d.$slots.header ? (t(), s("div", _n, [
437
437
  A(d.$slots, "header", {}, void 0, !0)
438
438
  ])) : h("", !0),
439
- Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)).length > 0 ? (t(), s("div", {
439
+ Object.keys(d.$slots).filter((y) => !["default", "extra", "header"].includes(y)).length > 0 ? (t(), s("div", {
440
440
  key: 1,
441
441
  class: "content__section",
442
- onClick: b[1] || (b[1] = (v) => a.value = !1)
442
+ onClick: v[1] || (v[1] = (y) => a.value = !1)
443
443
  }, [
444
- (t(!0), s(P, null, H(Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)), (v, $) => (t(), V(ye, {
445
- key: `slot-${$}`,
444
+ (t(!0), s(P, null, H(Object.keys(d.$slots).filter((y) => !["default", "extra", "header"].includes(y)), (y, g) => (t(), V(ye, {
445
+ key: `slot-${g}`,
446
446
  class: "content__item content__item--reactive"
447
447
  }, {
448
- default: y(() => [
449
- A(d.$slots, v, {}, void 0, !0)
448
+ default: b(() => [
449
+ A(d.$slots, y, {}, void 0, !0)
450
450
  ]),
451
451
  _: 2
452
452
  }, 1024))), 128))
@@ -454,19 +454,19 @@ const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { cla
454
454
  d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
455
455
  key: 2,
456
456
  class: "content__section",
457
- onClick: b[2] || (b[2] = (v) => a.value = !1)
457
+ onClick: v[2] || (v[2] = (y) => a.value = !1)
458
458
  }, [
459
- (t(!0), s(P, null, H(c(d.actions), (v, $) => (t(), V(ye, {
460
- key: `action-${$}`,
459
+ (t(!0), s(P, null, H(c(d.actions), (y, g) => (t(), V(ye, {
460
+ key: `action-${g}`,
461
461
  class: "content__item content__item--reactive",
462
- onClick: (f) => u(v, d.subject)
462
+ onClick: (f) => u(y, d.subject)
463
463
  }, {
464
- default: y(() => [
464
+ default: b(() => [
465
465
  L(Y, {
466
- icon: v.icon || "gear"
466
+ icon: y.icon || "gear"
467
467
  }, {
468
- default: y(() => [
469
- Q(C(v.translate ? e(q)(v.label, { capitalize: !0 }) : v.label), 1)
468
+ default: b(() => [
469
+ Q(C(y.translate ? e(q)(y.label, { capitalize: !0 }) : y.label), 1)
470
470
  ]),
471
471
  _: 2
472
472
  }, 1032, ["icon"])
@@ -477,9 +477,9 @@ const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { cla
477
477
  d.$slots.extra ? (t(), s("div", {
478
478
  key: 3,
479
479
  class: "content__section",
480
- onClick: b[3] || (b[3] = (v) => a.value = !1)
480
+ onClick: v[3] || (v[3] = (y) => a.value = !1)
481
481
  }, [
482
- I("div", mn, [
482
+ B("div", mn, [
483
483
  d.$slots.extra ? A(d.$slots, "extra", { key: 0 }, void 0, !0) : h("", !0)
484
484
  ])
485
485
  ])) : h("", !0)
@@ -504,7 +504,7 @@ const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { cla
504
504
  };
505
505
  }
506
506
  });
507
- const Ie = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-34fb8e38"]]), vn = { class: "info__content" }, yn = /* @__PURE__ */ F({
507
+ const Ae = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-ee3ea72f"]]), vn = { class: "info__content" }, yn = /* @__PURE__ */ F({
508
508
  __name: "aeria-info",
509
509
  props: {
510
510
  where: { default: "top" }
@@ -523,11 +523,11 @@ const Ie = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-34fb8e38"]]), vn = { cla
523
523
  `info__bubble--${n.where}`
524
524
  ])
525
525
  }, [
526
- I("div", vn, [
526
+ B("div", vn, [
527
527
  A(n.$slots, "text", {}, void 0, !0)
528
528
  ])
529
529
  ], 2)) : h("", !0),
530
- I("div", {
530
+ B("div", {
531
531
  onMouseover: a[0] || (a[0] = (c) => o.value = !0)
532
532
  }, [
533
533
  A(n.$slots, "default", {}, void 0, !0)
@@ -558,8 +558,8 @@ const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { cla
558
558
  },
559
559
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
560
560
  setup(p, { emit: r }) {
561
- var Z;
562
- const o = p, n = r, a = o.property || {}, c = "icon" in a || "inputType" in a && a.inputType === "search", u = fe("searchOnly", !1), m = fe("innerInputLabel", !1), d = !u && (o.readOnly || a.readOnly), b = (g) => (n("clipboardCopy", g), navigator.clipboard.writeText(g)), l = fe("inputVariant", o.variant) || "normal", v = Object.assign(Object.assign({}, o), {
561
+ var K;
562
+ const o = p, n = r, a = o.property || {}, c = "icon" in a || "inputType" in a && a.inputType === "search", u = fe("searchOnly", !1), m = fe("innerInputLabel", !1), d = !u && (o.readOnly || a.readOnly), v = ($) => (n("clipboardCopy", $), navigator.clipboard.writeText($)), l = fe("inputVariant", o.variant) || "normal", y = Object.assign(Object.assign({}, o), {
563
563
  name: o.propertyName,
564
564
  readonly: d,
565
565
  type: (() => {
@@ -582,78 +582,78 @@ const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { cla
582
582
  })(),
583
583
  placeholder: m ? a.description || o.propertyName : a.placeholder
584
584
  });
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(() => {
585
+ "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (y.min = a.minimum), a.exclusiveMinimum && (y.min = a.exclusiveMinimum + 1), a.maximum && (y.max = a.maximum), a.exclusiveMaximum && (y.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (y.type = !u && a.format === "date-time" ? "datetime-local" : "date"), y.minlength = a.minLength, y.maxlength = a.maxLength)), y.type === "text" && u && (y.type = "search"), Ye(() => {
586
586
  o.modelValue !== null && M(o.modelValue);
587
587
  });
588
- const $ = (g) => {
589
- if (typeof g == "string")
590
- return g;
591
- if (!(g instanceof Date))
588
+ const g = ($) => {
589
+ if (typeof $ == "string")
590
+ return $;
591
+ if (!($ instanceof Date))
592
592
  return "";
593
- switch (v.type) {
593
+ switch (y.type) {
594
594
  case "date":
595
- return g.toISOString().slice(0, 10);
595
+ return $.toISOString().slice(0, 10);
596
596
  case "datetime-local":
597
- return g.toISOString().slice(0, 19);
597
+ return $.toISOString().slice(0, 19);
598
598
  default:
599
599
  throw new Error();
600
600
  }
601
- }, f = ee(""), B = ((Z = o.property) == null ? void 0 : Z.type) === "string" && o.property.mask ? wt(o.property.mask) : null;
602
- ue(() => o.modelValue, (g) => {
601
+ }, f = ee(""), I = ((K = o.property) == null ? void 0 : K.type) === "string" && o.property.mask ? wt(o.property.mask) : null;
602
+ ue(() => o.modelValue, ($) => {
603
603
  f.value = (() => {
604
- if (B)
605
- return g ? B.enmask(String(g), void 0, {
604
+ if (I)
605
+ return $ ? I.enmask(String($), void 0, {
606
606
  defaultValue: !0
607
607
  }) : "";
608
- switch (v.type) {
608
+ switch (y.type) {
609
609
  case "date":
610
610
  case "datetime-local":
611
- return $(g);
611
+ return g($);
612
612
  }
613
- switch (g) {
613
+ switch ($) {
614
614
  case null:
615
615
  case void 0:
616
616
  return "";
617
617
  default:
618
- return g;
618
+ return $;
619
619
  }
620
620
  })();
621
621
  }, {
622
622
  immediate: !0
623
623
  });
624
- const i = (g) => {
624
+ const i = ($) => {
625
625
  var G;
626
- return typeof f.value == "string" && ((G = o.property) == null ? void 0 : G.type) === "string" && B !== null ? (f.value = B.enmask(f.value, void 0, {
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
- }), o.property.maskedValue === !0 ? f.value : B.unmask(f.value)) : g;
629
- }, M = (g) => {
628
+ }), o.property.maskedValue === !0 ? f.value : I.unmask(f.value)) : $;
629
+ }, M = ($) => {
630
630
  const G = (() => {
631
- if (!g || typeof g != "string")
632
- return g;
633
- switch (v.type) {
631
+ if (!$ || typeof $ != "string")
632
+ return $;
633
+ switch (y.type) {
634
634
  case "number":
635
635
  case "integer":
636
- return Number(g);
636
+ return Number($);
637
637
  case "date":
638
638
  case "date-time":
639
- return g;
639
+ return $;
640
640
  default:
641
- return i(g);
641
+ return i($);
642
642
  }
643
643
  })();
644
644
  n("input", G), n("update:modelValue", G);
645
- }, E = (g) => {
646
- const G = g.target.value;
645
+ }, E = ($) => {
646
+ const G = $.target.value;
647
647
  f.value = G, M(G);
648
648
  };
649
- return (g, G) => {
649
+ return ($, G) => {
650
650
  const oe = ne("focus"), w = ne("clickable");
651
651
  return t(), s("label", hn, [
652
652
  e(m) ? h("", !0) : (t(), s("div", gn, [
653
- g.$slots.default ? A(g.$slots, "default", { key: 0 }, void 0, !0) : A(g.$slots, "description", { key: 1 }, void 0, !0)
653
+ $.$slots.default ? A($.$slots, "default", { key: 0 }, void 0, !0) : A($.$slots, "description", { key: 1 }, void 0, !0)
654
654
  ])),
655
- g.$slots.hint ? (t(), s("div", $n, [
656
- A(g.$slots, "hint", {}, void 0, !0)
655
+ $.$slots.hint ? (t(), s("div", $n, [
656
+ A($.$slots, "hint", {}, void 0, !0)
657
657
  ])) : h("", !0),
658
658
  "element" in e(a) && e(a).element === "textarea" ? (t(), s("div", {
659
659
  key: 2,
@@ -663,10 +663,10 @@ const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { cla
663
663
  `input__container--${e(l)}`
664
664
  ])
665
665
  }, [
666
- J(I("textarea", {
667
- placeholder: e(v).placeholder,
668
- readonly: e(v).readonly,
669
- value: g.modelValue,
666
+ Z(B("textarea", {
667
+ placeholder: e(y).placeholder,
668
+ readonly: e(y).readonly,
669
+ value: $.modelValue,
670
670
  class: W([
671
671
  "input__textarea",
672
672
  `input__input--${e(l)}`
@@ -682,7 +682,7 @@ const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { cla
682
682
  `input__container--${e(l)}`
683
683
  ])
684
684
  }, [
685
- J(I("input", z(e(v), {
685
+ Z(B("input", z(e(y), {
686
686
  value: f.value,
687
687
  "data-component": "input",
688
688
  class: [
@@ -706,14 +706,14 @@ const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { cla
706
706
  }, null, 8, ["icon", "class"])) : h("", !0),
707
707
  e(d) ? (t(), s("div", Cn, [
708
708
  L(bn, null, {
709
- text: y(() => G[2] || (G[2] = [
709
+ text: b(() => G[2] || (G[2] = [
710
710
  Q("Copiar")
711
711
  ])),
712
- default: y(() => [
713
- J(L(Y, {
712
+ default: b(() => [
713
+ Z(L(Y, {
714
714
  reactive: "",
715
715
  icon: "clipboard",
716
- onClick: G[1] || (G[1] = Re((te) => b(String(g.modelValue || "")), ["prevent"]))
716
+ onClick: G[1] || (G[1] = Re((te) => v(String($.modelValue || "")), ["prevent"]))
717
717
  }, null, 512), [
718
718
  [w]
719
719
  ])
@@ -726,10 +726,10 @@ const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { cla
726
726
  };
727
727
  }
728
728
  });
729
- const Oe = /* @__PURE__ */ D(On, [["__scopeId", "data-v-b4ebd684"]]), An = {
729
+ const Oe = /* @__PURE__ */ D(On, [["__scopeId", "data-v-b4ebd684"]]), In = {
730
730
  key: 1,
731
731
  value: ""
732
- }, In = ["value", "data-selected"], Bn = /* @__PURE__ */ F({
732
+ }, An = ["value", "data-selected"], Bn = /* @__PURE__ */ F({
733
733
  __name: "aeria-select",
734
734
  props: {
735
735
  modelValue: {},
@@ -749,48 +749,48 @@ const Oe = /* @__PURE__ */ D(On, [["__scopeId", "data-v-b4ebd684"]]), An = {
749
749
  n("update:modelValue", l), n("change", l);
750
750
  }, m = (l) => {
751
751
  l === "" || l === null ? u(null) : o.booleanRef ? u(l === "true") : u(l);
752
- }, d = (l) => Array.isArray(o.modelValue) ? o.modelValue.includes(l) : o.modelValue === l, b = K(() => o.multiple ? typeof o.multiple == "number" ? o.multiple : 5 : 1);
752
+ }, d = (l) => Array.isArray(o.modelValue) ? o.modelValue.includes(l) : o.modelValue === l, v = X(() => o.multiple ? typeof o.multiple == "number" ? o.multiple : 5 : 1);
753
753
  return o.multiple && ue(() => o.modelValue, (l) => {
754
- var $;
754
+ var g;
755
755
  if (!a.value)
756
756
  return;
757
- const v = a.value.querySelector('option[data-selected="true"]');
758
- v && v.removeAttribute("data-selected"), ($ = a.value.querySelector(`option[value="${l}"]`)) == null || $.setAttribute("data-selected", "true");
759
- }), (l, v) => l.readOnly ? (t(), V(Oe, {
757
+ const y = a.value.querySelector('option[data-selected="true"]');
758
+ y && y.removeAttribute("data-selected"), (g = a.value.querySelector(`option[value="${l}"]`)) == null || g.setAttribute("data-selected", "true");
759
+ }), (l, y) => l.readOnly ? (t(), V(Oe, {
760
760
  key: 1,
761
761
  "read-only": "",
762
762
  "model-value": l.modelValue
763
763
  }, null, 8, ["model-value"])) : (t(), s("select", z({ key: 0 }, {
764
- size: b.value,
764
+ size: v.value,
765
765
  value: l.modelValue
766
766
  }, {
767
767
  ref_key: "select",
768
768
  ref: a,
769
769
  class: {
770
770
  select: !0,
771
- "select--multiple": !!b.value,
771
+ "select--multiple": !!v.value,
772
772
  "select--outline": !l.noOutline
773
773
  },
774
- onChange: v[0] || (v[0] = ($) => m($.target.value))
774
+ onChange: y[0] || (y[0] = (g) => m(g.target.value))
775
775
  }), [
776
776
  e(c) && e(c).icon ? (t(), V(Y, {
777
777
  key: 0,
778
778
  icon: e(c).icon
779
779
  }, null, 8, ["icon"])) : h("", !0),
780
- !o.multiple && !l.required ? (t(), s("option", An, C(e(q)("none")), 1)) : h("", !0),
781
- (t(!0), s(P, null, H(e(c) && "enum" in e(c) ? e(c).enum : [], ($) => {
780
+ !o.multiple && !l.required ? (t(), s("option", In, C(e(q)("none")), 1)) : h("", !0),
781
+ (t(!0), s(P, null, H(e(c) && "enum" in e(c) ? e(c).enum : [], (g) => {
782
782
  var f;
783
783
  return t(), s("option", {
784
- key: String($),
785
- value: $,
786
- "data-selected": d($)
787
- }, C((f = e(c)) != null && f.translate ? e(q)($) : $), 9, In);
784
+ key: String(g),
785
+ value: g,
786
+ "data-selected": d(g)
787
+ }, C((f = e(c)) != null && f.translate ? e(q)(g) : g), 9, An);
788
788
  }), 128)),
789
789
  A(l.$slots, "default", {}, void 0, !0)
790
790
  ], 16));
791
791
  }
792
792
  });
793
- const Xe = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { class: "pagination" }, wn = { class: "pagination__arrows" }, Tn = ["value"], jn = {
793
+ const Je = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { class: "pagination" }, wn = { class: "pagination__arrows" }, Tn = ["value"], jn = {
794
794
  key: 0,
795
795
  class: "pagination__summary"
796
796
  }, Rn = /* @__PURE__ */ F({
@@ -801,107 +801,107 @@ const Xe = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
801
801
  },
802
802
  emits: ["paginate"],
803
803
  setup(p, { emit: r }) {
804
- const o = p, n = r, a = K({
804
+ const o = p, n = r, a = X({
805
805
  get: () => Math.floor(o.pagination.offset / o.pagination.limit),
806
- set: (b) => {
807
- o.pagination.offset = b * o.pagination.limit;
806
+ set: (v) => {
807
+ o.pagination.offset = v * o.pagination.limit;
808
808
  }
809
- }), c = K({
809
+ }), c = X({
810
810
  get: () => o.pagination.limit,
811
- set: (b) => {
812
- o.pagination.limit = Number(b);
811
+ set: (v) => {
812
+ o.pagination.limit = Number(v);
813
813
  }
814
- }), u = ee(a.value ? a.value + 1 : 1), m = K(() => Math.ceil(o.pagination.recordsTotal / o.pagination.limit)), d = (b) => {
815
- a.value = b === "previous" ? a.value - 1 : a.value + 1;
814
+ }), u = ee(a.value ? a.value + 1 : 1), m = X(() => Math.ceil(o.pagination.recordsTotal / o.pagination.limit)), d = (v) => {
815
+ a.value = v === "previous" ? a.value - 1 : a.value + 1;
816
816
  };
817
817
  return ue([
818
818
  a,
819
819
  c
820
- ], ([b]) => {
821
- u.value = b + 1, n("paginate", {
820
+ ], ([v]) => {
821
+ u.value = v + 1, n("paginate", {
822
822
  offset: a.value * c.value,
823
823
  limit: c.value
824
824
  });
825
- }), (b, l) => (t(), s("div", Sn, [
826
- I("div", wn, [
825
+ }), (v, l) => (t(), s("div", Sn, [
826
+ B("div", wn, [
827
827
  L(ye, {
828
828
  disabled: a.value === 0,
829
- onClick: l[0] || (l[0] = (v) => a.value = 0)
829
+ onClick: l[0] || (l[0] = (y) => a.value = 0)
830
830
  }, {
831
- default: y(() => [
831
+ default: b(() => [
832
832
  L(Y, { icon: "caret-double-left" })
833
833
  ]),
834
834
  _: 1
835
835
  }, 8, ["disabled"]),
836
836
  L(ye, {
837
837
  disabled: a.value === 0,
838
- onClick: l[1] || (l[1] = (v) => d("previous"))
838
+ onClick: l[1] || (l[1] = (y) => d("previous"))
839
839
  }, {
840
- default: y(() => [
840
+ default: b(() => [
841
841
  L(Y, { icon: "caret-left" })
842
842
  ]),
843
843
  _: 1
844
844
  }, 8, ["disabled"]),
845
845
  L(ye, {
846
846
  disabled: a.value === m.value - 1,
847
- onClick: l[2] || (l[2] = (v) => d("next"))
847
+ onClick: l[2] || (l[2] = (y) => d("next"))
848
848
  }, {
849
- default: y(() => [
849
+ default: b(() => [
850
850
  L(Y, { icon: "caret-right" })
851
851
  ]),
852
852
  _: 1
853
853
  }, 8, ["disabled"]),
854
854
  L(ye, {
855
855
  disabled: a.value === m.value - 1,
856
- onClick: l[3] || (l[3] = (v) => a.value = m.value - 1)
856
+ onClick: l[3] || (l[3] = (y) => a.value = m.value - 1)
857
857
  }, {
858
- default: y(() => [
858
+ default: b(() => [
859
859
  L(Y, { icon: "caret-double-right" })
860
860
  ]),
861
861
  _: 1
862
862
  }, 8, ["disabled"]),
863
- L(Xe, {
863
+ L(Je, {
864
864
  modelValue: c.value,
865
- "onUpdate:modelValue": l[4] || (l[4] = (v) => c.value = v),
865
+ "onUpdate:modelValue": l[4] || (l[4] = (y) => c.value = y),
866
866
  property: {
867
867
  enum: [],
868
868
  icon: "list"
869
869
  },
870
870
  class: "pagination__control"
871
871
  }, {
872
- default: y(() => [
873
- (t(!0), s(P, null, H(e(Tt), (v) => (t(), s("option", {
874
- key: `limit-${v}`,
875
- value: v
876
- }, C(v), 9, Tn))), 128))
872
+ default: b(() => [
873
+ (t(!0), s(P, null, H(e(Tt), (y) => (t(), s("option", {
874
+ key: `limit-${y}`,
875
+ value: y
876
+ }, C(y), 9, Tn))), 128))
877
877
  ]),
878
878
  _: 1
879
879
  }, 8, ["modelValue"])
880
880
  ]),
881
- b.noSummary ? h("", !0) : (t(), s("div", jn, [
881
+ v.noSummary ? h("", !0) : (t(), s("div", jn, [
882
882
  Q(C(e(q)("Page")) + " ", 1),
883
883
  (t(), V(Oe, {
884
884
  key: a.value,
885
885
  modelValue: u.value,
886
- "onUpdate:modelValue": l[5] || (l[5] = (v) => u.value = v),
886
+ "onUpdate:modelValue": l[5] || (l[5] = (y) => u.value = y),
887
887
  property: {
888
888
  type: "number",
889
889
  minimum: 1
890
890
  },
891
891
  style: { height: "100%" },
892
- onChange: l[6] || (l[6] = (v) => {
892
+ onChange: l[6] || (l[6] = (y) => {
893
893
  a.value = u.value === 0 ? 0 : u.value - 1;
894
894
  })
895
895
  }, null, 8, ["modelValue"])),
896
- I("span", null, C(e(q)("of")) + " " + C(m.value), 1)
896
+ B("span", null, C(e(q)("of")) + " " + C(m.value), 1)
897
897
  ]))
898
898
  ]));
899
899
  }
900
900
  });
901
- const qn = /* @__PURE__ */ D(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { class: "checkbox__text" }, Mn = ["innerHTML"], zn = { class: "checkbox__hint" }, Fn = ["innerHTML"], Un = {
901
+ const qn = /* @__PURE__ */ D(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { class: "checkbox__text" }, Mn = ["innerHTML"], zn = { class: "checkbox__hint" }, Fn = ["innerHTML"], En = {
902
902
  inheritAttrs: !1
903
- }, En = /* @__PURE__ */ F({
904
- ...Un,
903
+ }, Un = /* @__PURE__ */ F({
904
+ ...En,
905
905
  __name: "aeria-checkbox",
906
906
  props: {
907
907
  modelValue: {},
@@ -924,7 +924,7 @@ const qn = /* @__PURE__ */ D(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
924
924
  return "checkbox";
925
925
  }
926
926
  return "radio";
927
- })(), u = r, m = o.value || !1, d = K({
927
+ })(), u = r, m = o.value || !1, d = X({
928
928
  get: () => {
929
929
  var l;
930
930
  if (n) {
@@ -945,7 +945,7 @@ const qn = /* @__PURE__ */ D(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
945
945
  }
946
946
  if ("items" in n) {
947
947
  if ((l = o.modelValue) != null && l.includes(m)) {
948
- u("update:modelValue", o.modelValue.filter((v) => v !== m));
948
+ u("update:modelValue", o.modelValue.filter((y) => y !== m));
949
949
  return;
950
950
  }
951
951
  u("update:modelValue", [m].concat(o.modelValue || []));
@@ -955,51 +955,51 @@ const qn = /* @__PURE__ */ D(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
955
955
  u("update:modelValue", o.value);
956
956
  }
957
957
  }
958
- }), b = (l) => {
958
+ }), v = (l) => {
959
959
  a && l.preventDefault();
960
960
  };
961
- return (l, v) => {
962
- var f, B;
963
- const $ = ne("clickable");
964
- return J((t(), s("label", {
961
+ return (l, y) => {
962
+ var f, I;
963
+ const g = ne("clickable");
964
+ return Z((t(), s("label", {
965
965
  class: W([
966
966
  "checkbox",
967
967
  { "checkbox--readOnly": e(a) }
968
968
  ])
969
969
  }, [
970
- J(I("input", z({
971
- "onUpdate:modelValue": v[0] || (v[0] = (i) => d.value = i)
970
+ Z(B("input", z({
971
+ "onUpdate:modelValue": y[0] || (y[0] = (i) => d.value = i)
972
972
  }, {
973
973
  type: e(c),
974
974
  readOnly: e(a),
975
975
  checked: d.value
976
976
  }, {
977
977
  class: "checkbox__input",
978
- onClick: b
978
+ onClick: v
979
979
  }), null, 16), [
980
980
  [$t, d.value]
981
981
  ]),
982
- I("div", Ln, [
983
- I("div", null, [
982
+ B("div", Ln, [
983
+ B("div", null, [
984
984
  l.$slots.description ? A(l.$slots, "description", { key: 0 }, void 0, !0) : e(m) ? (t(), s("div", {
985
985
  key: 1,
986
986
  innerHTML: (f = e(n)) != null && f.translate ? e(q)(e(m)) : e(m)
987
987
  }, null, 8, Mn)) : A(l.$slots, "default", { key: 2 }, void 0, !0)
988
988
  ]),
989
- I("div", zn, [
990
- l.$slots.hint ? A(l.$slots, "hint", { key: 0 }, void 0, !0) : (B = e(n)) != null && B.hint ? (t(), s("div", {
989
+ B("div", zn, [
990
+ l.$slots.hint ? A(l.$slots, "hint", { key: 0 }, void 0, !0) : (I = e(n)) != null && I.hint ? (t(), s("div", {
991
991
  key: 1,
992
992
  innerHTML: e(n).hint
993
993
  }, null, 8, Fn)) : h("", !0)
994
994
  ])
995
995
  ])
996
996
  ], 2)), [
997
- [$]
997
+ [g]
998
998
  ]);
999
999
  };
1000
1000
  }
1001
1001
  });
1002
- const Hn = /* @__PURE__ */ D(En, [["__scopeId", "data-v-7e6efc77"]]), Dn = {
1002
+ const Hn = /* @__PURE__ */ D(Un, [["__scopeId", "data-v-7e6efc77"]]), Dn = {
1003
1003
  inheritAttrs: !1
1004
1004
  }, Qn = /* @__PURE__ */ F({
1005
1005
  ...Dn,
@@ -1019,7 +1019,7 @@ const Hn = /* @__PURE__ */ D(En, [["__scopeId", "data-v-7e6efc77"]]), Dn = {
1019
1019
  const o = p, n = r, a = o.readOnly || o.property.readOnly, c = "items" in o.property ? o.property.items.enum : o.property.enum, u = (m) => {
1020
1020
  n("update:modelValue", m);
1021
1021
  };
1022
- return ft(() => {
1022
+ return vt(() => {
1023
1023
  o.modelValue || n(
1024
1024
  "update:modelValue",
1025
1025
  "items" in o.property ? [] : ""
@@ -1031,12 +1031,12 @@ const Hn = /* @__PURE__ */ D(En, [["__scopeId", "data-v-7e6efc77"]]), Dn = {
1031
1031
  grid-template-columns: repeat(var(--columns), 1fr);
1032
1032
  `)
1033
1033
  }, [
1034
- (t(!0), s(P, null, H(e(c), (b) => (t(), s("div", {
1035
- key: `option-${b}`,
1034
+ (t(!0), s(P, null, H(e(c), (v) => (t(), s("div", {
1035
+ key: `option-${v}`,
1036
1036
  class: "options__checkbox"
1037
1037
  }, [
1038
1038
  L(Hn, z({ ref_for: !0 }, {
1039
- value: b,
1039
+ value: v,
1040
1040
  readOnly: e(a),
1041
1041
  property: m.property
1042
1042
  }, {
@@ -1068,9 +1068,9 @@ const Gn = /* @__PURE__ */ D(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { cla
1068
1068
  };
1069
1069
  return (m, d) => {
1070
1070
  var l;
1071
- const b = ne("clickable");
1071
+ const v = ne("clickable");
1072
1072
  return t(), s("div", Wn, [
1073
- J((t(), s("a", {
1073
+ Z((t(), s("a", {
1074
1074
  class: W([
1075
1075
  "switch",
1076
1076
  { "switch--active": m.modelValue },
@@ -1078,15 +1078,15 @@ const Gn = /* @__PURE__ */ D(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { cla
1078
1078
  ]),
1079
1079
  onClick: Re(u, ["stop"])
1080
1080
  }, [
1081
- d[0] || (d[0] = I("div", { class: "switch__slider" }, null, -1)),
1082
- I("div", {
1081
+ d[0] || (d[0] = B("div", { class: "switch__slider" }, null, -1)),
1082
+ B("div", {
1083
1083
  class: W([
1084
1084
  "switch__dummy",
1085
1085
  { "switch__dummy--flex": !m.modelValue }
1086
1086
  ])
1087
1087
  }, null, 2)
1088
1088
  ], 2)), [
1089
- [b, {
1089
+ [v, {
1090
1090
  blocked: e(c)
1091
1091
  }]
1092
1092
  ]),
@@ -1113,17 +1113,17 @@ const Jn = /* @__PURE__ */ D(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
1113
1113
  meta: {}
1114
1114
  },
1115
1115
  setup(p) {
1116
- const r = p, o = K(() => r.fileId ? `${vt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = ee(!1);
1116
+ const r = p, o = X(() => r.fileId ? `${yt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = ee(!1);
1117
1117
  return (a, c) => {
1118
1118
  var m;
1119
1119
  const u = ne("overlay");
1120
1120
  return t(), s("figure", Zn, [
1121
- o.value && n.value ? (t(), V(Ge, {
1121
+ o.value && n.value ? (t(), V(We, {
1122
1122
  key: 0,
1123
1123
  to: "main"
1124
1124
  }, [
1125
- J((t(), s("div", Pn, [
1126
- I("img", {
1125
+ Z((t(), s("div", Pn, [
1126
+ B("img", {
1127
1127
  src: o.value,
1128
1128
  alt: a.alt,
1129
1129
  style: `
@@ -1172,7 +1172,7 @@ const Jn = /* @__PURE__ */ D(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
1172
1172
  height: ${a.height || "100%"};
1173
1173
  `)
1174
1174
  }, c[2] || (c[2] = [
1175
- I("line", {
1175
+ B("line", {
1176
1176
  x1: "0",
1177
1177
  y1: "0",
1178
1178
  x2: "200",
@@ -1180,7 +1180,7 @@ const Jn = /* @__PURE__ */ D(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
1180
1180
  stroke: "#000",
1181
1181
  "vector-effect": "non-scaling-stroke"
1182
1182
  }, null, -1),
1183
- I("line", {
1183
+ B("line", {
1184
1184
  x1: "200",
1185
1185
  y1: "0",
1186
1186
  x2: "0",
@@ -1224,7 +1224,7 @@ const Ue = /* @__PURE__ */ D(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { cla
1224
1224
  url: e(o).link,
1225
1225
  class: "item__picture"
1226
1226
  }, null, 8, ["alt", "url"])) : h("", !0),
1227
- I("div", ao, [
1227
+ B("div", ao, [
1228
1228
  "_id" in e(o) ? (t(), V(Y, {
1229
1229
  key: 0,
1230
1230
  icon: "arrow-square-out",
@@ -1232,14 +1232,14 @@ const Ue = /* @__PURE__ */ D(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { cla
1232
1232
  target: "_blank",
1233
1233
  class: "item__name item__name--link"
1234
1234
  }, {
1235
- default: y(() => [
1235
+ default: b(() => [
1236
1236
  Q(C(e(o).name), 1)
1237
1237
  ]),
1238
1238
  _: 1
1239
1239
  }, 8, ["href"])) : (t(), s("div", lo, C(e(o).name), 1)),
1240
- I("div", so, C(n(e(o).size)), 1)
1240
+ B("div", so, C(n(e(o).size)), 1)
1241
1241
  ]),
1242
- I("div", null, [
1242
+ B("div", null, [
1243
1243
  A(a.$slots, "default", {}, void 0, !0)
1244
1244
  ])
1245
1245
  ]));
@@ -1264,21 +1264,21 @@ const ro = /* @__PURE__ */ D(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
1264
1264
  },
1265
1265
  emits: ["update:content", "change", "update:modelValue"],
1266
1266
  setup(p, { emit: r }) {
1267
- const o = p, n = o.property && me(o.property), a = r, u = Me() ? Ee() : null, m = o.multiple || o.property && "type" in o.property && o.property.type === "array", d = K(() => {
1267
+ const o = p, n = o.property && me(o.property), a = r, u = Me() ? He() : null, m = o.multiple || o.property && "type" in o.property && o.property.type === "array", d = X(() => {
1268
1268
  if (o.modelValue)
1269
1269
  return Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue];
1270
- }), b = ($) => new Promise((f) => {
1271
- const B = new FileReader();
1272
- B.onload = () => f(B.result), B.readAsArrayBuffer($);
1273
- }), l = async ($) => {
1274
- const f = $.target.files;
1270
+ }), v = (g) => new Promise((f) => {
1271
+ const I = new FileReader();
1272
+ I.onload = () => f(I.result), I.readAsArrayBuffer(g);
1273
+ }), l = async (g) => {
1274
+ const f = g.target.files;
1275
1275
  if (!f)
1276
1276
  return;
1277
- const B = [];
1277
+ const I = [];
1278
1278
  for (const i of f) {
1279
- const M = await b(i);
1279
+ const M = await v(i);
1280
1280
  if (u) {
1281
- const { data: { error: E, result: Z } } = await jt(`${vt}/${u.$id}/upload?name=${i.name}`, M, {
1281
+ const { data: { error: E, result: K } } = await jt(`${yt}/${u.$id}/upload?name=${i.name}`, M, {
1282
1282
  params: {
1283
1283
  method: "POST",
1284
1284
  headers: {
@@ -1289,27 +1289,27 @@ const ro = /* @__PURE__ */ D(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
1289
1289
  });
1290
1290
  if (E)
1291
1291
  return;
1292
- B.unshift({
1293
- tempId: Z.tempId,
1292
+ I.unshift({
1293
+ tempId: K.tempId,
1294
1294
  file: i
1295
1295
  });
1296
1296
  } else
1297
- B.unshift({
1297
+ I.unshift({
1298
1298
  file: i
1299
1299
  });
1300
1300
  }
1301
- m ? a("update:modelValue", Array.isArray(o.modelValue) ? B.concat(o.modelValue) : B) : a("update:modelValue", B[0]), a("update:content", B), a("change", B);
1302
- }, v = async ($) => {
1301
+ m ? a("update:modelValue", Array.isArray(o.modelValue) ? I.concat(o.modelValue) : I) : a("update:modelValue", I[0]), a("update:content", I), a("change", I);
1302
+ }, y = async (g) => {
1303
1303
  if (!o.modelValue)
1304
1304
  throw new Error();
1305
- const f = Array.isArray(o.modelValue) ? o.modelValue.filter((B, i) => i !== $) : [];
1305
+ const f = Array.isArray(o.modelValue) ? o.modelValue.filter((I, i) => i !== g) : [];
1306
1306
  m ? a("update:modelValue", f) : a("update:modelValue", null), a("update:content", f), a("change", f);
1307
1307
  };
1308
- return ($, f) => {
1308
+ return (g, f) => {
1309
1309
  var i, M;
1310
- const B = ne("clickable");
1310
+ const I = ne("clickable");
1311
1311
  return t(), s("div", uo, [
1312
- $.readOnly ? h("", !0) : (t(), s("input", {
1312
+ g.readOnly ? h("", !0) : (t(), s("input", {
1313
1313
  key: 0,
1314
1314
  ref: "file",
1315
1315
  type: "file",
@@ -1318,18 +1318,18 @@ const ro = /* @__PURE__ */ D(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
1318
1318
  onChange: l
1319
1319
  }, null, 40, co)),
1320
1320
  d.value && d.value.length > 0 ? (t(), s("div", po, [
1321
- (t(!0), s(P, null, H(d.value, (E, Z) => (t(), V(ro, {
1321
+ (t(!0), s(P, null, H(d.value, (E, K) => (t(), V(ro, {
1322
1322
  key: "_id" in E ? String(E._id) : E.file.name,
1323
1323
  "model-value": E
1324
1324
  }, {
1325
- default: y(() => [
1326
- $.readOnly ? h("", !0) : J((t(), V(Y, {
1325
+ default: b(() => [
1326
+ g.readOnly ? h("", !0) : Z((t(), V(Y, {
1327
1327
  key: 0,
1328
1328
  reactive: "",
1329
1329
  icon: "trash",
1330
- onClick: (g) => v(Z)
1330
+ onClick: ($) => y(K)
1331
1331
  }, null, 8, ["onClick"])), [
1332
- [B]
1332
+ [I]
1333
1333
  ])
1334
1334
  ]),
1335
1335
  _: 2
@@ -1349,7 +1349,7 @@ const mo = /* @__PURE__ */ D(_o, [["__scopeId", "data-v-9950a715"]]), fo = { cla
1349
1349
  },
1350
1350
  emits: ["endReached"],
1351
1351
  setup(p, { emit: r }) {
1352
- const o = p, n = r, a = ee(null), c = o.observeScroll ? Ye(a, {
1352
+ const o = p, n = r, a = ee(null), c = o.observeScroll ? Ke(a, {
1353
1353
  antecipate: 100
1354
1354
  }).reachedEnd : null;
1355
1355
  return c !== null && ue(c, (u) => {
@@ -1369,7 +1369,7 @@ const mo = /* @__PURE__ */ D(_o, [["__scopeId", "data-v-9950a715"]]), fo = { cla
1369
1369
  ]));
1370
1370
  }
1371
1371
  });
1372
- const dt = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { class: "item__values" }, ho = /* @__PURE__ */ F({
1372
+ const pt = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { class: "item__values" }, ho = /* @__PURE__ */ F({
1373
1373
  __name: "aeria-search-item",
1374
1374
  props: {
1375
1375
  item: {},
@@ -1380,66 +1380,66 @@ const dt = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { cla
1380
1380
  },
1381
1381
  emits: ["update:modelValue", "change"],
1382
1382
  setup(p, { emit: r }) {
1383
- const o = Be(), n = p, a = r, c = n.property, u = me(c), m = Ee(), d = K(() => n.modelValue ? Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: $ }) => n.item._id === $) : n.modelValue._id === n.item._id : !1), b = () => {
1383
+ const o = Be(), n = p, a = r, c = n.property, u = me(c), m = He(), d = X(() => n.modelValue ? Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: g }) => n.item._id === g) : n.modelValue._id === n.item._id : !1), v = () => {
1384
1384
  if (d.value)
1385
1385
  return;
1386
- const $ = (B) => B.filter((i) => !!i._id);
1386
+ const g = (I) => I.filter((i) => !!i._id);
1387
1387
  let f;
1388
- "items" in c ? n.modelValue ? f = $(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : f = [] : f = n.modelValue, Array.isArray(f) ? a("update:modelValue", f.concat([n.item])) : a("update:modelValue", n.item), a("change", n.item);
1389
- }, l = async ($) => {
1390
- if (u.purge && ($ != null && $.purge)) {
1391
- const { _id: B } = n.item;
1388
+ "items" in c ? n.modelValue ? f = g(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);
1389
+ }, l = async (g) => {
1390
+ if (u.purge && (g != null && g.purge)) {
1391
+ const { _id: I } = n.item;
1392
1392
  await m.$actions.remove({
1393
1393
  filters: {
1394
- _id: B
1394
+ _id: I
1395
1395
  }
1396
1396
  });
1397
1397
  }
1398
1398
  const f = () => {
1399
- const B = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [], i = B.findIndex((M) => M._id === n.item._id);
1400
- return B.splice(i, 1), B;
1399
+ const I = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [], i = I.findIndex((M) => M._id === n.item._id);
1400
+ return I.splice(i, 1), I;
1401
1401
  };
1402
1402
  a("update:modelValue", "items" in c ? f() : null);
1403
- }, v = () => {
1403
+ }, y = () => {
1404
1404
  if (n.readOnly) {
1405
1405
  o.push({
1406
1406
  path: `/dashboard/c/${u.$ref}/${n.item._id}`
1407
1407
  });
1408
1408
  return;
1409
1409
  }
1410
- return d.value ? l() : b();
1410
+ return d.value ? l() : v();
1411
1411
  };
1412
- return ($, f) => {
1413
- const B = ne("clickable");
1414
- return J((t(), s("div", {
1412
+ return (g, f) => {
1413
+ const I = ne("clickable");
1414
+ return Z((t(), s("div", {
1415
1415
  class: W({
1416
1416
  item: !0,
1417
1417
  "item--selected": d.value
1418
1418
  }),
1419
- onClick: v
1419
+ onClick: y
1420
1420
  }, [
1421
- A($.$slots, "default", {}, void 0, !0),
1422
- I("div", bo, [
1423
- (t(!0), s(P, null, H($.indexes, (i, M) => (t(), s("div", {
1424
- key: `index-${$.item._id}-${M}`,
1421
+ A(g.$slots, "default", {}, void 0, !0),
1422
+ B("div", bo, [
1423
+ (t(!0), s(P, null, H(g.indexes, (i, M) => (t(), s("div", {
1424
+ key: `index-${g.item._id}-${M}`,
1425
1425
  class: "item__value"
1426
- }, C($.item[i]), 1))), 128))
1426
+ }, C(g.item[i]), 1))), 128))
1427
1427
  ]),
1428
- $.readOnly ? (t(), V(Y, {
1428
+ g.readOnly ? (t(), V(Y, {
1429
1429
  key: 0,
1430
1430
  icon: "arrow-square-out",
1431
1431
  style: { "--icon-color": "var(--theme-brand-color-contrast)" }
1432
1432
  })) : h("", !0)
1433
1433
  ], 2)), [
1434
- [B]
1434
+ [I]
1435
1435
  ]);
1436
1436
  };
1437
1437
  }
1438
1438
  });
1439
- const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { class: "search__panel" }, $o = { key: 1 }, ko = { key: 0 }, Vo = { key: 1 }, Co = { class: "search__summary" }, Oo = {
1439
+ const Qe = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { class: "search__panel" }, $o = { key: 1 }, ko = { key: 0 }, Vo = { key: 1 }, Co = { class: "search__summary" }, Oo = {
1440
1440
  key: 1,
1441
1441
  class: "search"
1442
- }, Ao = { key: 0 }, Fe = 10, Io = /* @__PURE__ */ F({
1442
+ }, Io = { key: 0 }, Fe = 10, Ao = /* @__PURE__ */ F({
1443
1443
  __name: "aeria-search",
1444
1444
  props: {
1445
1445
  modelValue: {},
@@ -1454,24 +1454,24 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
1454
1454
  },
1455
1455
  emits: ["update:modelValue", "change", "update:panel"],
1456
1456
  setup(p, { emit: r }) {
1457
- const o = p, n = re("meta"), a = me(o.property), c = o.panel !== void 0 ? K(() => o.panel) : ee(!1), u = r, m = re(me(o.property).$ref), d = Me(), b = d ? Ee() : null, l = a.indexes;
1457
+ const o = p, n = ie("meta"), a = me(o.property), c = o.panel !== void 0 ? X(() => o.panel) : ee(!1), u = r, m = ie(me(o.property).$ref), d = Me(), v = d ? He() : null, l = a.indexes;
1458
1458
  ge(ze, me(o.property).$ref), ge("innerInputLabel", !0), ge("omitInputLabels", !0);
1459
- const v = ee(o.modelValue), $ = ee({
1459
+ const y = ee(o.modelValue), g = ee({
1460
1460
  data: [],
1461
1461
  pagination: {}
1462
- }), f = K(() => $.value.data), B = K(() => $.value.pagination), i = ee(0), M = ee(!1), E = ee(""), Z = () => {
1462
+ }), f = X(() => g.value.data), I = X(() => g.value.pagination), i = ee(0), M = ee(!1), E = ee(""), K = () => {
1463
1463
  const k = {};
1464
1464
  if (d) {
1465
1465
  const N = e(d);
1466
- k[N] = b;
1466
+ k[N] = v;
1467
1467
  }
1468
- return a.constraints ? Ut(a.constraints, k) : {};
1469
- }, g = () => {
1470
- f.value.length < B.value.recordsTotal && (i.value += 1, oe());
1468
+ return a.constraints ? Et(a.constraints, k) : {};
1469
+ }, $ = () => {
1470
+ f.value.length < I.value.recordsTotal && (i.value += 1, oe());
1471
1471
  }, G = async () => E.value.length === 0 ? m.$actions.custom("getAll", {
1472
1472
  limit: Fe,
1473
1473
  offset: i.value * Fe,
1474
- filters: Z()
1474
+ filters: K()
1475
1475
  }) : m.$actions.custom("getAll", {
1476
1476
  limit: Fe,
1477
1477
  offset: i.value * Fe,
@@ -1480,7 +1480,7 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
1480
1480
  $search: `"${E.value}"`,
1481
1481
  $caseSensitive: !1
1482
1482
  },
1483
- ...Z()
1483
+ ...K()
1484
1484
  }
1485
1485
  }), oe = async () => {
1486
1486
  if (m.loading.getAll)
@@ -1493,8 +1493,8 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
1493
1493
  });
1494
1494
  return;
1495
1495
  }
1496
- $.value.pagination = N.pagination, i.value === 0 && $.value.data.splice(0), $.value.data.push(...N.data);
1497
- }, [w] = yt({
1496
+ g.value.pagination = N.pagination, i.value === 0 && g.value.data.splice(0), g.value.data.push(...N.data);
1497
+ }, [w] = bt({
1498
1498
  delay: 800
1499
1499
  })(() => {
1500
1500
  i.value = 0, oe(), M.value = !1;
@@ -1503,22 +1503,22 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
1503
1503
  }, ke = () => {
1504
1504
  "effect" in c ? u("update:panel", !0) : c.value = !0, oe();
1505
1505
  }, ce = () => {
1506
- i.value = 0, $.value.data.splice(0), "effect" in c ? u("update:panel", !1) : c.value = !1;
1506
+ i.value = 0, g.value.data.splice(0), "effect" in c ? u("update:panel", !1) : c.value = !1;
1507
1507
  };
1508
1508
  ue(() => E.value.length, (k, N) => {
1509
1509
  k && !N && oe();
1510
- }), We(() => {
1510
+ }), Ye(() => {
1511
1511
  o.selectOnly && oe();
1512
1512
  });
1513
1513
  const ae = (k) => {
1514
- v.value = k, o.selectOnly || u("update:modelValue", k);
1514
+ y.value = k, o.selectOnly || u("update:modelValue", k);
1515
1515
  }, O = () => {
1516
- ce(), u("update:modelValue", v.value);
1516
+ ce(), u("update:modelValue", y.value);
1517
1517
  };
1518
1518
  return (k, N) => {
1519
1519
  const le = ne("clickable");
1520
1520
  return t(), s("div", null, [
1521
- e(c) ? (t(), V(Ge, {
1521
+ e(c) ? (t(), V(We, {
1522
1522
  key: 0,
1523
1523
  to: "main"
1524
1524
  }, [
@@ -1532,21 +1532,21 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
1532
1532
  onClose: ce,
1533
1533
  onOverlayClick: ce
1534
1534
  }, {
1535
- footer: y(() => [
1535
+ footer: b(() => [
1536
1536
  L(pe, {
1537
1537
  large: "",
1538
1538
  onClick: O
1539
1539
  }, {
1540
- default: y(() => [
1540
+ default: b(() => [
1541
1541
  Q(C(e(q)("action.save", { capitalize: !0 })), 1)
1542
1542
  ]),
1543
1543
  _: 1
1544
1544
  })
1545
1545
  ]),
1546
- default: y(() => {
1546
+ default: b(() => {
1547
1547
  var _, T;
1548
1548
  return [
1549
- I("div", go, [
1549
+ B("div", go, [
1550
1550
  L(Oe, z({
1551
1551
  modelValue: E.value,
1552
1552
  "onUpdate:modelValue": N[0] || (N[0] = (U) => E.value = U)
@@ -1557,20 +1557,20 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
1557
1557
  inputType: "search"
1558
1558
  }
1559
1559
  }, { onInput: te }), null, 16, ["modelValue"]),
1560
- f.value.length ? (t(), V(dt, {
1560
+ f.value.length ? (t(), V(pt, {
1561
1561
  key: 0,
1562
1562
  "observe-scroll": "",
1563
- onEndReached: g
1563
+ onEndReached: $
1564
1564
  }, {
1565
- default: y(() => [
1566
- (t(!0), s(P, null, H(f.value, (U) => (t(), V(De, z({ ref_for: !0 }, {
1565
+ default: b(() => [
1566
+ (t(!0), s(P, null, H(f.value, (U) => (t(), V(Qe, z({ ref_for: !0 }, {
1567
1567
  item: U,
1568
1568
  indexes: e(l),
1569
1569
  property: k.property
1570
1570
  }, {
1571
1571
  key: `matching-${U._id}`,
1572
- modelValue: v.value,
1573
- "onUpdate:modelValue": N[1] || (N[1] = (X) => v.value = X)
1572
+ modelValue: y.value,
1573
+ "onUpdate:modelValue": N[1] || (N[1] = (J) => y.value = J)
1574
1574
  }), null, 16, ["modelValue"]))), 128))
1575
1575
  ]),
1576
1576
  _: 1
@@ -1578,19 +1578,19 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
1578
1578
  M.value ? (t(), s("div", ko, C(e(q)("searching", { capitalize: !0 })) + "... ", 1)) : !e(m).loading.getAll && Object.values(E.value).filter((U) => !!U).length > 0 && !("items" in k.property && ((_ = k.modelValue) != null && _.length) || !Array.isArray(k.modelValue) && ((T = k.modelValue) != null && T._id)) ? (t(), s("div", Vo, C(e(q)("no_results", { capitalize: !0 })), 1)) : h("", !0)
1579
1579
  ]))
1580
1580
  ]),
1581
- I("div", Co, C(e(q)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(q)("of")) + " " + C(B.value.recordsTotal), 1)
1581
+ B("div", Co, C(e(q)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(q)("of")) + " " + C(I.value.recordsTotal), 1)
1582
1582
  ];
1583
1583
  }),
1584
1584
  _: 1
1585
1585
  }, 8, ["title", "model-value"])
1586
1586
  ])) : h("", !0),
1587
1587
  k.selectOnly ? h("", !0) : (t(), s("div", Oo, [
1588
- L(dt, null, _e({
1589
- default: y(() => {
1588
+ L(pt, null, _e({
1589
+ default: b(() => {
1590
1590
  var _;
1591
1591
  return [
1592
- "items" in k.property ? (t(), s("div", Ao, [
1593
- (t(!0), s(P, null, H(k.modelValue, (T) => (t(), V(De, z({ ref_for: !0 }, {
1592
+ "items" in k.property ? (t(), s("div", Io, [
1593
+ (t(!0), s(P, null, H(k.modelValue, (T) => (t(), V(Qe, z({ ref_for: !0 }, {
1594
1594
  item: T,
1595
1595
  indexes: e(l),
1596
1596
  property: k.property,
@@ -1600,7 +1600,7 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
1600
1600
  key: `selected-${T._id}`,
1601
1601
  "onUpdate:modelValue": ae
1602
1602
  }), null, 16))), 128))
1603
- ])) : (_ = k.modelValue) != null && _._id ? (t(), V(De, z({ key: 1 }, {
1603
+ ])) : (_ = k.modelValue) != null && _._id ? (t(), V(Qe, z({ key: 1 }, {
1604
1604
  item: k.modelValue,
1605
1605
  indexes: e(l),
1606
1606
  property: e(a),
@@ -1613,12 +1613,12 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
1613
1613
  }, [
1614
1614
  k.readOnly ? void 0 : {
1615
1615
  name: "footer",
1616
- fn: y(() => [
1617
- J((t(), V(Y, {
1616
+ fn: b(() => [
1617
+ Z((t(), V(Y, {
1618
1618
  icon: "plus",
1619
1619
  onClick: ke
1620
1620
  }, {
1621
- default: y(() => [
1621
+ default: b(() => [
1622
1622
  Q(C(e(q)("action.select", { capitalize: !0 })), 1)
1623
1623
  ]),
1624
1624
  _: 1
@@ -1634,15 +1634,15 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
1634
1634
  };
1635
1635
  }
1636
1636
  });
1637
- const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r) => {
1637
+ const Bo = /* @__PURE__ */ D(Ao, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r) => {
1638
1638
  const o = "items" in p ? p.items : p, n = {
1639
1639
  options: Gn,
1640
- select: Xe,
1640
+ select: Je,
1641
1641
  switch: Jn,
1642
1642
  file: mo,
1643
1643
  search: Bo,
1644
1644
  input: Oe,
1645
- form: He
1645
+ form: De
1646
1646
  }, a = (() => {
1647
1647
  if ("type" in o) {
1648
1648
  if (o.type === "object")
@@ -1664,7 +1664,7 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1664
1664
  p ?? (p = []);
1665
1665
  const n = "items" in r ? r.items : r;
1666
1666
  if ("$ref" in n) {
1667
- const a = re(n.$ref, o), c = Ae(a.$freshItem);
1667
+ const a = ie(n.$ref, o), c = Ie(a.$freshItem);
1668
1668
  return p.push(c);
1669
1669
  }
1670
1670
  return "properties" in n ? p.push(Ft(n)) : "type" in n && n.type === "boolean" ? p.push({}) : p.push(null);
@@ -1673,10 +1673,10 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1673
1673
  }, To = {
1674
1674
  key: 0,
1675
1675
  class: "form__header"
1676
- }, jo = { class: "form__fieldset" }, Ro = { key: 0 }, qo = ["innerHTML"], Lo = ["onInput"], Mo = { key: 4 }, zo = { value: "true" }, Fo = { value: "false" }, Uo = {
1676
+ }, jo = { class: "form__fieldset" }, Ro = { key: 0 }, qo = ["innerHTML"], Lo = ["onInput"], Mo = { key: 4 }, zo = { value: "true" }, Fo = { value: "false" }, Eo = {
1677
1677
  key: 5,
1678
1678
  style: { display: "grid", "row-gap": ".4rem" }
1679
- }, Eo = { key: 0 }, Ho = {
1679
+ }, Uo = { key: 0 }, Ho = {
1680
1680
  key: 1,
1681
1681
  class: "form__array"
1682
1682
  }, Do = {
@@ -1714,13 +1714,13 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1714
1714
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
1715
1715
  setup(p, { emit: r }) {
1716
1716
  var le;
1717
- const o = Ke(), n = p, a = r;
1718
- ft(() => {
1717
+ const o = Xe(), n = p, a = r;
1718
+ vt(() => {
1719
1719
  n.modelValue || a("update:modelValue", n.property && "items" in n.property ? [] : {});
1720
1720
  });
1721
- const c = n.property && me(n.property), u = c ? c.$ref : n.collection || Me(), m = n.readOnly || ((le = n.property) == null ? void 0 : le.readOnly), d = u ? re(e(u)) : null;
1721
+ const c = n.property && me(n.property), u = c ? c.$ref : n.collection || Me(), m = n.readOnly || ((le = n.property) == null ? void 0 : le.readOnly), d = u ? ie(e(u)) : null;
1722
1722
  !u && process.env.NODE_ENV !== "production" && console.warn("aeria-form was used without providing storeId or specifying collection prop, some features may not work as intended");
1723
- const b = ee(!1), l = K(() => {
1723
+ const v = ee(!1), l = X(() => {
1724
1724
  const _ = (() => !n.form && n.property ? "type" in n.property && n.property.type === "object" ? "properties" in n.property ? n.property.properties : void 0 : d == null ? void 0 : d.properties : n.form)();
1725
1725
  if (!_)
1726
1726
  return;
@@ -1738,49 +1738,49 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1738
1738
  _.created_at || (T.created_at = U), _.created_at || (T.updated_at = U);
1739
1739
  }
1740
1740
  return Object.assign(T, _), T;
1741
- }), v = K(() => n.layout || (d == null ? void 0 : d.description.formLayout)), $ = (_) => {
1741
+ }), y = X(() => n.layout || (d == null ? void 0 : d.description.formLayout)), g = (_) => {
1742
1742
  const T = fe(_, n[_]);
1743
1743
  return n[_] && ge(_, n[_]), T;
1744
- }, f = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), B = $("formComponents") || {}, i = $("propertyComponents") || {}, M = $("omitFormHeader"), E = $("omitInputLabels"), Z = $("innerInputLabel");
1744
+ }, f = X(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), I = g("formComponents") || {}, i = g("propertyComponents") || {}, M = g("omitFormHeader"), E = g("omitInputLabels"), K = g("innerInputLabel");
1745
1745
  u && ge(ze, u), ge("searchOnly", n.searchOnly);
1746
- const g = (_) => l.value ? Object.entries(l.value).filter(([T, U]) => !U.noForm && _([
1746
+ const $ = (_) => l.value ? Object.entries(l.value).filter(([T, U]) => !U.noForm && _([
1747
1747
  T,
1748
1748
  U
1749
1749
  ])) : null, G = (_, T) => {
1750
- var X;
1750
+ var J;
1751
1751
  if (n.searchOnly || !u || n.includeId && _ === "_id" || n.includeTimestamps && T.isTimestamp)
1752
1752
  return !0;
1753
- const U = n.property && "properties" in n.property ? n.property.form : (X = d == null ? void 0 : d.description) == null ? void 0 : X.form;
1753
+ const U = n.property && "properties" in n.property ? n.property.form : (J = d == null ? void 0 : d.description) == null ? void 0 : J.form;
1754
1754
  return !U || U.includes(_);
1755
- }, oe = g(([_, T]) => G(_, T)), w = Le(), te = {}, ke = (_, T) => {
1756
- var R, ie, j, se;
1757
- const U = [], X = ((ie = (R = v.value) == null ? void 0 : R.fields) == null ? void 0 : ie[_]) || ((se = (j = v.value) == null ? void 0 : j.fields) == null ? void 0 : se.$default);
1755
+ }, oe = $(([_, T]) => G(_, T)), w = Le(), te = {}, ke = (_, T) => {
1756
+ var R, re, j, se;
1757
+ const U = [], J = ((re = (R = y.value) == null ? void 0 : R.fields) == null ? void 0 : re[_]) || ((se = (j = y.value) == null ? void 0 : j.fields) == null ? void 0 : se.$default);
1758
1758
  if (!T)
1759
1759
  return;
1760
- if (X != null && X.if && !n.searchOnly) {
1761
- const ve = Qe(
1760
+ if (J != null && J.if && !n.searchOnly) {
1761
+ const ve = Ee(
1762
1762
  n.modelValue,
1763
- X.if
1763
+ J.if
1764
1764
  );
1765
- ve.satisfied || (te[_] && (d ? n.modelValue[_] = typeof d.$freshItem[_] == "object" ? Ae(d.$freshItem[_]) : d.$freshItem[_] : n.modelValue[_] = [
1765
+ ve.satisfied || (te[_] && (d ? n.modelValue[_] = typeof d.$freshItem[_] == "object" ? Ie(d.$freshItem[_]) : d.$freshItem[_] : n.modelValue[_] = [
1766
1766
  void 0,
1767
1767
  null
1768
1768
  ].includes(n.modelValue[_]) ? null : n.modelValue[_].constructor()), U.push("display: none;")), te[_] = ve.satisfied;
1769
1769
  }
1770
- const S = w.value.md && (X == null ? void 0 : X.span) || 6;
1770
+ const S = w.value.md && (J == null ? void 0 : J.span) || 6;
1771
1771
  return U.push(`
1772
1772
  --field-span: ${S};
1773
1773
  grid-column: span var(--field-span) / span var(--field-span);
1774
- `), X && (X.verticalSpacing && U.push(`
1775
- --vertical-spacing: ${X.verticalSpacing};
1774
+ `), J && (J.verticalSpacing && U.push(`
1775
+ --vertical-spacing: ${J.verticalSpacing};
1776
1776
  padding: var(--vertical-spacing) 0;
1777
- `), X.separator && U.push(`
1777
+ `), J.separator && U.push(`
1778
1778
  border-top: 1px solid var(--theme-border-color);
1779
1779
  border-width: 1px 0 1px 0;
1780
1780
  padding: 1rem 0;
1781
1781
  margin: 1rem 0;
1782
1782
  `)), U.join("");
1783
- }, ce = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, ae = K(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), O = K(() => n.form ? Et(
1783
+ }, ce = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, ae = X(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), O = X(() => n.form ? Ut(
1784
1784
  n.modelValue,
1785
1785
  n.form,
1786
1786
  ae.value,
@@ -1789,11 +1789,11 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1789
1789
  var U;
1790
1790
  return (U = f.value) != null && U[_] && (typeof f.value[_].index != "number" || f.value[_].index === T) ? f.value[_].errors : null;
1791
1791
  }, N = (_) => {
1792
- if (!(m || _.readOnly) && !n.parentPropertyName && !n.parentCollection && !b.value)
1793
- return b.value = !0, !0;
1792
+ if (!(m || _.readOnly) && !n.parentPropertyName && !n.parentCollection && !v.value)
1793
+ return v.value = !0, !0;
1794
1794
  };
1795
1795
  return (_, T) => {
1796
- const U = ne("clickable"), X = ne("focus");
1796
+ const U = ne("clickable"), J = ne("focus");
1797
1797
  return t(), s("form", {
1798
1798
  class: "form",
1799
1799
  style: $e(`row-gap: ${e(M) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
@@ -1802,9 +1802,9 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1802
1802
  A(_.$slots, "header", {}, void 0, !0)
1803
1803
  ])) : h("", !0),
1804
1804
  A(_.$slots, "default", {}, void 0, !0),
1805
- I("fieldset", jo, [
1805
+ B("fieldset", jo, [
1806
1806
  (t(!0), s(P, null, H(e(oe), ([S, R]) => {
1807
- var ie, j, se, ve, be, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
1807
+ var re, j, se, ve, be, Ze, Pe, Ne, xe, et, tt, nt, ot, at;
1808
1808
  return t(), s("div", {
1809
1809
  key: `field-${S}`,
1810
1810
  style: $e(ke(S, R)),
@@ -1813,12 +1813,12 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1813
1813
  "form__field--form": "properties" in R
1814
1814
  })
1815
1815
  }, [
1816
- (!("type" in R) || R.type !== "boolean" || _.searchOnly) && !R.noLabel && !e(E) && !e(Z) ? (t(), s("label", Ro, [
1817
- I("div", {
1816
+ (!("type" in R) || R.type !== "boolean" || _.searchOnly) && !R.noLabel && !e(E) && !e(K) ? (t(), s("label", Ro, [
1817
+ B("div", {
1818
1818
  class: W({
1819
1819
  "form__field-label": !0,
1820
1820
  "form__field-label--section": "items" in R ? "properties" in R.items : "properties" in R,
1821
- "form__field-required-hint": _.highlightRequired && !e(m) && !_.searchOnly && (!ae.value || e(ct)(S, ae.value, _.modelValue))
1821
+ "form__field-required-hint": _.highlightRequired && !e(m) && !_.searchOnly && (!ae.value || e(dt)(S, ae.value, _.modelValue))
1822
1822
  })
1823
1823
  }, C(R.description || e(q)(S)), 3),
1824
1824
  R.hint ? (t(), s("div", {
@@ -1834,7 +1834,7 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1834
1834
  property: R,
1835
1835
  propertyName: S,
1836
1836
  modelValue: _.modelValue
1837
- }), void 0, !0) : (se = (j = (ie = _.layout) == null ? void 0 : ie.fields) == null ? void 0 : j[S]) != null && se.component && e(i)[_.layout.fields[S].component.name] ? (t(), V(he(e(i)[_.layout.fields[S].component.name]), z({
1837
+ }), void 0, !0) : (se = (j = (re = _.layout) == null ? void 0 : re.fields) == null ? void 0 : j[S]) != null && se.component && e(i)[_.layout.fields[S].component.name] ? (t(), V(he(e(i)[_.layout.fields[S].component.name]), z({
1838
1838
  key: 2,
1839
1839
  modelValue: _.modelValue[S],
1840
1840
  "onUpdate:modelValue": (x) => _.modelValue[S] = x,
@@ -1843,7 +1843,7 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1843
1843
  readOnly: e(m),
1844
1844
  property: R,
1845
1845
  propertyName: S,
1846
- required: !_.searchOnly && (!ae.value || e(ct)(S, ae.value, _.modelValue)),
1846
+ required: !_.searchOnly && (!ae.value || e(dt)(S, ae.value, _.modelValue)),
1847
1847
  ..._.layout.fields[S].component.props || {}
1848
1848
  }, {
1849
1849
  onInput: (x) => a("input", S),
@@ -1871,7 +1871,7 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1871
1871
  propertyName: S
1872
1872
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1873
1873
  ], 40, Lo)) : "type" in R && R.type === "boolean" && _.searchOnly ? (t(), s("div", Mo, [
1874
- L(Xe, z({ ref_for: !0 }, {
1874
+ L(Je, z({ ref_for: !0 }, {
1875
1875
  property: R,
1876
1876
  propertyName: S
1877
1877
  }, {
@@ -1882,50 +1882,50 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1882
1882
  _.modelValue[S] = x;
1883
1883
  }
1884
1884
  }), {
1885
- default: y(() => [
1886
- I("option", zo, C(e(q)("yes")), 1),
1887
- I("option", Fo, C(e(q)("no")), 1)
1885
+ default: b(() => [
1886
+ B("option", zo, C(e(q)("yes")), 1),
1887
+ B("option", Fo, C(e(q)("no")), 1)
1888
1888
  ]),
1889
1889
  _: 2
1890
1890
  }, 1040, ["model-value", "onUpdate:modelValue"])
1891
- ])) : _.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(), s("div", Uo, [
1892
- e(m) ? h("", !0) : (t(), s("div", Eo, [
1891
+ ])) : _.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(), s("div", Eo, [
1892
+ e(m) ? h("", !0) : (t(), s("div", Uo, [
1893
1893
  L(pe, {
1894
1894
  small: "",
1895
1895
  variant: "alt",
1896
1896
  icon: "plus",
1897
- disabled: !("inline" in R.items && R.items.inline) && (((ve = _.modelValue[S]) == null ? void 0 : ve.length) >= R.maxItems || ce((Je = _.modelValue[S]) == null ? void 0 : Je[((be = _.modelValue[S]) == null ? void 0 : be.length) - 1])),
1897
+ disabled: !("inline" in R.items && R.items.inline) && (((ve = _.modelValue[S]) == null ? void 0 : ve.length) >= R.maxItems || ce((Ze = _.modelValue[S]) == null ? void 0 : Ze[((be = _.modelValue[S]) == null ? void 0 : be.length) - 1])),
1898
1898
  onClick: Re((x) => {
1899
1899
  _.modelValue[S] || (_.modelValue[S] = []), e(So)(_.modelValue[S], R, e(o));
1900
1900
  }, ["prevent"])
1901
1901
  }, {
1902
- default: y(() => [
1902
+ default: b(() => [
1903
1903
  Q(C(e(q)("action.add", { capitalize: !0 })), 1)
1904
1904
  ]),
1905
1905
  _: 2
1906
1906
  }, 1032, ["disabled", "onClick"])
1907
1907
  ])),
1908
- ((Ze = _.modelValue[S]) == null ? void 0 : Ze.length) > 0 ? (t(), s("div", Ho, [
1908
+ ((Pe = _.modelValue[S]) == null ? void 0 : Pe.length) > 0 ? (t(), s("div", Ho, [
1909
1909
  (t(!0), s(P, null, H(_.modelValue[S], (x, we) => {
1910
- var at, lt, st, it, rt, ut;
1910
+ var lt, st, it, rt, ut, ct;
1911
1911
  return t(), s("div", {
1912
1912
  key: `rep-${S}-${e(Ht)(x, we)}`,
1913
1913
  class: "form__array-item"
1914
1914
  }, [
1915
- e(m) ? h("", !0) : J((t(), V(Y, {
1915
+ e(m) ? h("", !0) : Z((t(), V(Y, {
1916
1916
  key: 0,
1917
1917
  icon: "trash",
1918
1918
  class: "form__array-remove",
1919
1919
  onClick: Re((Te) => e(wo)(_.modelValue[S], we), ["prevent"])
1920
1920
  }, {
1921
- default: y(() => [
1921
+ default: b(() => [
1922
1922
  Q(C(e(q)("action.remove", { capitalize: !0 })), 1)
1923
1923
  ]),
1924
1924
  _: 2
1925
1925
  }, 1032, ["onClick"])), [
1926
1926
  [U]
1927
1927
  ]),
1928
- (t(), V(he(e(pt)(R, e(B))), z({
1928
+ (t(), V(he(e(_t)(R, e(I))), z({
1929
1929
  modelValue: _.modelValue[S][we],
1930
1930
  "onUpdate:modelValue": (Te) => _.modelValue[S][we] = Te,
1931
1931
  ref_for: !0
@@ -1935,7 +1935,7 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1935
1935
  propertyName: S,
1936
1936
  parentCollection: e(u),
1937
1937
  parentPropertyName: _.parentPropertyName,
1938
- columns: ((st = (lt = (at = _.layout) == null ? void 0 : at.fields) == null ? void 0 : lt[S]) == null ? void 0 : st.optionsColumns) || ((ut = (rt = (it = _.layout) == null ? void 0 : it.fields) == null ? void 0 : rt.$default) == null ? void 0 : ut.optionsColumns),
1938
+ columns: ((it = (st = (lt = _.layout) == null ? void 0 : lt.fields) == null ? void 0 : st[S]) == null ? void 0 : it.optionsColumns) || ((ct = (ut = (rt = _.layout) == null ? void 0 : rt.fields) == null ? void 0 : ut.$default) == null ? void 0 : ct.optionsColumns),
1939
1939
  validationErrors: k(S, we),
1940
1940
  ...R.componentProps || {}
1941
1941
  }, {
@@ -1945,7 +1945,7 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1945
1945
  ]);
1946
1946
  }), 128))
1947
1947
  ])) : h("", !0)
1948
- ])) : _.modelValue ? J((t(), V(he(e(pt)(R, e(B))), z({
1948
+ ])) : _.modelValue ? Z((t(), V(he(e(_t)(R, e(I))), z({
1949
1949
  key: 6,
1950
1950
  modelValue: _.modelValue[S],
1951
1951
  "onUpdate:modelValue": (x) => _.modelValue[S] = x,
@@ -1956,7 +1956,7 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1956
1956
  propertyName: S,
1957
1957
  parentPropertyName: _.parentPropertyName,
1958
1958
  parentCollection: e(u),
1959
- columns: ((xe = (Ne = (Pe = _.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne[S]) == null ? void 0 : xe.optionsColumns) || ((nt = (tt = (et = _.layout) == null ? void 0 : et.fields) == null ? void 0 : tt.$default) == null ? void 0 : nt.optionsColumns),
1959
+ columns: ((et = (xe = (Ne = _.layout) == null ? void 0 : Ne.fields) == null ? void 0 : xe[S]) == null ? void 0 : et.optionsColumns) || ((ot = (nt = (tt = _.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt.$default) == null ? void 0 : ot.optionsColumns),
1960
1960
  ...R.componentProps || {},
1961
1961
  validationErrors: k(S)
1962
1962
  }, {
@@ -1964,9 +1964,9 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1964
1964
  onChange: T[4] || (T[4] = (x) => a("change", x)),
1965
1965
  onClipboardCopy: T[5] || (T[5] = (x) => a("clipboardCopy", x))
1966
1966
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1967
- [X, N(R)]
1967
+ [J, N(R)]
1968
1968
  ]) : h("", !0),
1969
- (ot = f.value) != null && ot[S] ? (t(), s("div", Do, [
1969
+ (at = f.value) != null && at[S] ? (t(), s("div", Do, [
1970
1970
  f.value[S].type ? (t(), s("span", Qo, C(e(q)(`validation_error.${f.value[S].type}`)), 1)) : h("", !0),
1971
1971
  f.value[S].detail ? (t(), s("span", Go, C(e(q)(f.value[S].detail)), 1)) : h("", !0)
1972
1972
  ])) : h("", !0)
@@ -1983,15 +1983,15 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1983
1983
  };
1984
1984
  }
1985
1985
  });
1986
- const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @__PURE__ */ F({
1986
+ const De = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @__PURE__ */ F({
1987
1987
  __name: "aeria-filter-panel",
1988
1988
  emits: ["update:modelValue"],
1989
1989
  setup(p, { emit: r }) {
1990
- const o = r, n = Ee(), a = Be(), c = e(fe(ze)), u = () => {
1990
+ const o = r, n = He(), a = Be(), c = e(fe(ze)), u = () => {
1991
1991
  if (n.pagination.offset = 0, n.$actions.filter(), o("update:modelValue", !1), "query" in a.currentRoute && a.currentRoute.query && typeof a.currentRoute.query == "object") {
1992
- const b = a.currentRoute.query;
1993
- for (const l of Object.keys(b))
1994
- l.startsWith(`${c}.`) && delete b[l];
1992
+ const v = a.currentRoute.query;
1993
+ for (const l of Object.keys(v))
1994
+ l.startsWith(`${c}.`) && delete v[l];
1995
1995
  }
1996
1996
  const { query: m, ...d } = a.currentRoute.value;
1997
1997
  a.push(qe(d, {
@@ -2002,21 +2002,21 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2002
2002
  "close-hint": "",
2003
2003
  "fixed-right": "",
2004
2004
  title: m.t("filter_by", { capitalize: !0 }),
2005
- onClose: d[2] || (d[2] = (b) => o("update:modelValue", !1)),
2006
- onOverlayClick: d[3] || (d[3] = (b) => o("update:modelValue", !1))
2005
+ onClose: d[2] || (d[2] = (v) => o("update:modelValue", !1)),
2006
+ onOverlayClick: d[3] || (d[3] = (v) => o("update:modelValue", !1))
2007
2007
  }, {
2008
- footer: y(() => [
2008
+ footer: b(() => [
2009
2009
  e(n).filtersCount > 0 ? (t(), V(pe, {
2010
2010
  key: 0,
2011
2011
  variant: "transparent",
2012
- onClick: d[1] || (d[1] = (b) => {
2012
+ onClick: d[1] || (d[1] = (v) => {
2013
2013
  e(n).$actions.clearFilters(), u(), o("update:modelValue", !1);
2014
2014
  })
2015
2015
  }, {
2016
- default: y(() => [
2016
+ default: b(() => [
2017
2017
  Q(C(m.t("action.clear", { capitalize: !0 })) + " ", 1),
2018
2018
  L(Ve, null, {
2019
- default: y(() => [
2019
+ default: b(() => [
2020
2020
  Q(C(e(n).filtersCount), 1)
2021
2021
  ]),
2022
2022
  _: 1
@@ -2030,16 +2030,16 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2030
2030
  disabled: !e(n).hasActiveFilters,
2031
2031
  onClick: u
2032
2032
  }, {
2033
- default: y(() => [
2033
+ default: b(() => [
2034
2034
  Q(C(m.t("action.filter", { capitalize: !0 })), 1)
2035
2035
  ]),
2036
2036
  _: 1
2037
2037
  }, 8, ["disabled"])
2038
2038
  ]),
2039
- default: y(() => [
2040
- L(He, z({
2039
+ default: b(() => [
2040
+ L(De, z({
2041
2041
  modelValue: e(n).filters,
2042
- "onUpdate:modelValue": d[0] || (d[0] = (b) => e(n).filters = b)
2042
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => e(n).filters = v)
2043
2043
  }, {
2044
2044
  searchOnly: !0,
2045
2045
  form: e(n).availableFilters,
@@ -2065,109 +2065,118 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2065
2065
  },
2066
2066
  emits: ["update:visible", "update:modelValue", "insert", "cancel"],
2067
2067
  setup(p, { emit: r }) {
2068
- const o = p, n = r, a = re("meta"), c = o.collection, u = re(c);
2069
- We(() => {
2068
+ const o = p, n = r, a = ie("meta"), c = o.collection, u = ie(c);
2069
+ Ye(() => {
2070
2070
  o.modelValue && u.$actions.setItem(o.modelValue);
2071
2071
  });
2072
- const m = K(() => o.form ? u.$actions.useProperties(o.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
2073
- const { error: $, result: f } = await u.$actions.deepInsert();
2074
- if ($) {
2075
- a.$actions.spawnToast({
2076
- text: `${b("error", {
2077
- capitalize: !0
2078
- })}: ${$.code}`,
2079
- icon: "warning"
2080
- });
2072
+ const m = X(() => o.form ? u.$actions.useProperties(o.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
2073
+ const { error: g, result: f } = await u.$actions.deepInsert();
2074
+ if (g) {
2075
+ if ("code" in g)
2076
+ switch (g.code) {
2077
+ case "INVALID_PROPERTIES":
2078
+ case "MISSING_PROPERTIES":
2079
+ return;
2080
+ default: {
2081
+ let I = v("error", {
2082
+ capitalize: !0
2083
+ });
2084
+ g.message && (I += `: ${v(g.message)}`), I += ` (${v(g.code)})`, a.$actions.spawnToast({
2085
+ text: I,
2086
+ icon: "warning"
2087
+ });
2088
+ }
2089
+ }
2081
2090
  return;
2082
2091
  }
2083
2092
  n("update:visible", !1), n("update:modelValue", f), n("insert", f), u.$actions.clearItem();
2084
- }, { t: b } = Bt(), l = () => {
2093
+ }, { t: v } = Bt(), l = () => {
2085
2094
  a.$actions.ask({
2086
2095
  action: () => {
2087
2096
  u.$actions.clearItem(), u.validationErrors = {}, n("cancel");
2088
2097
  },
2089
- body: b("prompt.close_panel")
2098
+ body: v("prompt.close_panel")
2090
2099
  });
2091
- }, v = () => a.$actions.spawnToast({
2100
+ }, y = () => a.$actions.spawnToast({
2092
2101
  icon: "info",
2093
- text: b("copied_to_clipboard")
2102
+ text: v("copied_to_clipboard")
2094
2103
  });
2095
- return ue(() => u.item._id, ($) => {
2096
- $ === null && n("update:visible", !1);
2097
- }), ($, f) => {
2098
- const B = ne("clickable");
2104
+ return ue(() => u.item._id, (g) => {
2105
+ g === null && n("update:visible", !1);
2106
+ }), (g, f) => {
2107
+ const I = ne("clickable");
2099
2108
  return t(), V(Se, z({
2100
- modelValue: $.visible,
2109
+ modelValue: g.visible,
2101
2110
  loading: e(u).loading.get,
2102
- float: $.float,
2103
- fixedRight: $.fixedRight
2111
+ float: g.float,
2112
+ fixedRight: g.fixedRight
2104
2113
  }, { onOverlayClick: l }), _e({
2105
- extra: y(() => [
2106
- $.individualActions ? (t(), V(Ie, z({ key: 0 }, {
2114
+ extra: b(() => [
2115
+ g.individualActions ? (t(), V(Ae, z({ key: 0 }, {
2107
2116
  subject: e(u).item,
2108
- actions: $.individualActions.filter(({ action: i }) => i !== "spawnEdit"),
2117
+ actions: g.individualActions.filter(({ action: i }) => i !== "spawnEdit"),
2109
2118
  overlayLayer: 60
2110
2119
  }, {
2111
2120
  onActionClick: f[2] || (f[2] = (i) => n("update:visible", !1))
2112
2121
  }), {
2113
- default: y(({
2122
+ default: b(({
2114
2123
  visible: i
2115
2124
  }) => [
2116
- e(u).item._id ? J((t(), V(Y, {
2125
+ e(u).item._id ? Z((t(), V(Y, {
2117
2126
  key: 0,
2118
2127
  reactive: "",
2119
2128
  active: i,
2120
2129
  icon: "dots-three"
2121
2130
  }, null, 8, ["active"])), [
2122
- [B]
2131
+ [I]
2123
2132
  ]) : h("", !0)
2124
2133
  ]),
2125
2134
  _: 1
2126
2135
  }, 16)) : h("", !0)
2127
2136
  ]),
2128
- default: y(() => [
2129
- L(He, z({
2137
+ default: b(() => [
2138
+ L(De, z({
2130
2139
  modelValue: e(u).item,
2131
2140
  "onUpdate:modelValue": f[0] || (f[0] = (i) => e(u).item = i)
2132
2141
  }, {
2133
2142
  collection: e(c),
2134
- readOnly: $.readOnly,
2135
- includeId: $.includeId,
2136
- includeTimestamps: $.includeTimestamps,
2143
+ readOnly: g.readOnly,
2144
+ includeId: g.includeId,
2145
+ includeTimestamps: g.includeTimestamps,
2137
2146
  form: m.value,
2138
2147
  layout: e(u).description.formLayout || {}
2139
2148
  }, {
2140
2149
  focus: "",
2141
- onClipboardCopy: v,
2150
+ onClipboardCopy: y,
2142
2151
  onAdd: f[1] || (f[1] = (i) => i.preventDefault())
2143
2152
  }), _e({ _: 2 }, [
2144
- H(Object.keys($.$slots).filter((i) => i.startsWith("field-")), (i) => ({
2153
+ H(Object.keys(g.$slots).filter((i) => i.startsWith("field-")), (i) => ({
2145
2154
  name: i,
2146
- fn: y((M) => [
2147
- A($.$slots, i, de(Ce(M)))
2155
+ fn: b((M) => [
2156
+ A(g.$slots, i, de(Ce(M)))
2148
2157
  ])
2149
2158
  }))
2150
2159
  ]), 1040, ["modelValue"])
2151
2160
  ]),
2152
2161
  _: 2
2153
2162
  }, [
2154
- $.$slots.header ? {
2163
+ g.$slots.header ? {
2155
2164
  name: "header",
2156
- fn: y(() => [
2157
- A($.$slots, "header")
2165
+ fn: b(() => [
2166
+ A(g.$slots, "header")
2158
2167
  ]),
2159
2168
  key: "0"
2160
2169
  } : void 0,
2161
- $.readOnly ? void 0 : {
2170
+ g.readOnly ? void 0 : {
2162
2171
  name: "footer",
2163
- fn: y(() => [
2164
- $.float || $.fixedRight ? (t(), V(pe, {
2172
+ fn: b(() => [
2173
+ g.float || g.fixedRight ? (t(), V(pe, {
2165
2174
  key: 0,
2166
2175
  variant: "transparent",
2167
2176
  onClick: l
2168
2177
  }, {
2169
- default: y(() => [
2170
- Q(C(e(b)("action.cancel", { capitalize: !0 })), 1)
2178
+ default: b(() => [
2179
+ Q(C(e(v)("action.cancel", { capitalize: !0 })), 1)
2171
2180
  ]),
2172
2181
  _: 1
2173
2182
  })) : h("", !0),
@@ -2177,8 +2186,8 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2177
2186
  loading: e(u).loading.insert,
2178
2187
  onClick: d
2179
2188
  }, {
2180
- default: y(() => [
2181
- Q(C(e(b)("action.insert", { capitalize: !0 })), 1)
2189
+ default: b(() => [
2190
+ Q(C(e(v)("action.insert", { capitalize: !0 })), 1)
2182
2191
  ]),
2183
2192
  _: 1
2184
2193
  }, 8, ["disabled", "loading"])
@@ -2235,7 +2244,7 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2235
2244
  }, ka = { class: "table__cell-actions" }, Va = {
2236
2245
  key: 2,
2237
2246
  class: "no-print table__mobile-actions"
2238
- }, Ca = ["id"], Oa = { key: 1 }, Aa = ["colspan"], Ia = { class: "table__empty" }, Ba = /* @__PURE__ */ F({
2247
+ }, Ca = ["id"], Oa = { key: 1 }, Ia = ["colspan"], Aa = { class: "table__empty" }, Ba = /* @__PURE__ */ F({
2239
2248
  __name: "aeria-table",
2240
2249
  props: {
2241
2250
  columns: {},
@@ -2247,74 +2256,82 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2247
2256
  },
2248
2257
  emits: ["itemClick"],
2249
2258
  setup(p, { emit: r }) {
2250
- const o = p, n = r, a = Le(), c = o.collection || Me(), u = c ? re(typeof c == "string" ? c : c.value) : null, m = K({
2259
+ const o = p, n = r, a = Le(), c = o.collection || Me(), u = c ? ie(typeof c == "string" ? c : c.value) : null, m = X({
2251
2260
  get: () => u == null ? void 0 : u.selected,
2252
2261
  set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
2253
- }), d = K(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), b = (f, B) => f.button ? typeof f.button == "object" ? Qe(B, f.button).satisfied : f.button : !1, l = (f) => {
2262
+ }), d = X(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), v = (f, I) => f.button ? typeof f.button == "object" ? Ee(I, f.button).satisfied : f.button : !1, l = (f) => {
2254
2263
  var i;
2255
- const B = (i = o.layout) == null ? void 0 : i.actions;
2256
- return !a.value.xl || !B || !o.actions ? [] : o.actions.filter((M) => {
2257
- const E = B[M.action];
2258
- return E && b(E, f);
2264
+ const I = (i = o.layout) == null ? void 0 : i.actions;
2265
+ return !a.value.xl || !I || !o.actions ? [] : o.actions.filter((M) => {
2266
+ if (M.roles) {
2267
+ const K = ie("user");
2268
+ if (!Ge(M.roles, K.currentUser.roles))
2269
+ return !1;
2270
+ }
2271
+ const E = I[M.action];
2272
+ return E && v(E, f);
2259
2273
  });
2260
- }, v = (f) => {
2274
+ }, y = (f) => {
2261
2275
  var i;
2262
2276
  if (!o.actions)
2263
2277
  return [];
2264
- const B = (i = o.layout) == null ? void 0 : i.actions;
2265
- return !a.value.xl || !B ? o.actions : o.actions.filter((M) => {
2266
- const E = B[M.action];
2278
+ const I = (i = o.layout) == null ? void 0 : i.actions;
2279
+ return !a.value.xl || !I ? o.actions : o.actions.filter((M) => {
2280
+ const E = I[M.action];
2267
2281
  if (M.roles) {
2268
- const Z = re("user");
2269
- if (!bt(M.roles, Z.currentUser.roles))
2282
+ const K = ie("user");
2283
+ if (!Ge(M.roles, K.currentUser.roles))
2270
2284
  return !1;
2271
2285
  }
2272
- return !E || !b(E, f);
2286
+ return E ? E.if ? Ee(
2287
+ f,
2288
+ E.if
2289
+ ).satisfied : !v(E, f) : !0;
2273
2290
  });
2274
- }, $ = (f, B) => {
2275
- var E, Z;
2276
- const i = [], M = (Z = (E = o.layout) == null ? void 0 : E.actions) == null ? void 0 : Z[B.action];
2277
- return M != null && M.if && (Qe(
2291
+ }, g = (f, I) => {
2292
+ var E, K;
2293
+ const i = [], M = (K = (E = o.layout) == null ? void 0 : E.actions) == null ? void 0 : K[I.action];
2294
+ return M != null && M.if && (Ee(
2278
2295
  f,
2279
2296
  M.if
2280
2297
  ).satisfied || i.push("display: none;")), i.join("");
2281
2298
  };
2282
- return (f, B) => {
2283
- var M, E, Z;
2299
+ return (f, I) => {
2300
+ var M, E, K;
2284
2301
  const i = ne("clickable");
2285
2302
  return d.value > 0 || f.$slots.thead ? (t(), s("table", Zo, [
2286
2303
  f.$slots.thead ? (t(), s("thead", Po, [
2287
2304
  A(f.$slots, "thead", {}, void 0, !0)
2288
2305
  ])) : (t(), s("thead", No, [
2289
- I("tr", null, [
2306
+ B("tr", null, [
2290
2307
  f.checkbox && e(u) && e(a).md ? (t(), s("th", xo, [
2291
- I("input", {
2308
+ B("input", {
2292
2309
  type: "checkbox",
2293
2310
  checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
2294
- onChange: B[0] || (B[0] = (g) => e(u).$actions.selectAllItems(g.target.checked))
2311
+ onChange: I[0] || (I[0] = ($) => e(u).$actions.selectAllItems($.target.checked))
2295
2312
  }, null, 40, ea)
2296
2313
  ])) : h("", !0),
2297
- (t(!0), s(P, null, H(Object.entries(f.columns), ([g, G], oe) => (t(), s("th", {
2314
+ (t(!0), s(P, null, H(Object.entries(f.columns), ([$, G], oe) => (t(), s("th", {
2298
2315
  key: `header-${oe}`,
2299
2316
  class: "table__header"
2300
- }, C(G.description || e(q)(g)), 1))), 128)),
2317
+ }, C(G.description || e(q)($)), 1))), 128)),
2301
2318
  (M = f.actions) != null && M.length ? (t(), s("th", ta)) : h("", !0)
2302
2319
  ])
2303
2320
  ])),
2304
2321
  f.$slots.tbody ? (t(), s("tbody", na, [
2305
2322
  A(f.$slots, "tbody", {}, void 0, !0)
2306
2323
  ])) : (t(), s("tbody", oa, [
2307
- (t(!0), s(P, null, H(f.rows, (g) => {
2324
+ (t(!0), s(P, null, H(f.rows, ($) => {
2308
2325
  var G, oe;
2309
2326
  return t(), s("tr", {
2310
- key: g._id,
2311
- onClick: (w) => n("itemClick", g)
2327
+ key: $._id,
2328
+ onClick: (w) => n("itemClick", $)
2312
2329
  }, [
2313
2330
  e(u) && f.checkbox && e(a).md ? (t(), s("td", la, [
2314
- J(I("input", {
2315
- "onUpdate:modelValue": B[1] || (B[1] = (w) => m.value = w),
2331
+ Z(B("input", {
2332
+ "onUpdate:modelValue": I[1] || (I[1] = (w) => m.value = w),
2316
2333
  type: "checkbox",
2317
- value: g._id
2334
+ value: $._id
2318
2335
  }, null, 8, sa), [
2319
2336
  [kt, m.value]
2320
2337
  ])
@@ -2322,25 +2339,25 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2322
2339
  (t(!0), s(P, null, H(Object.entries(f.columns), ([w, te], ke) => {
2323
2340
  var ce, ae, O;
2324
2341
  return t(), s("td", {
2325
- key: `column-${g._id}-${ke}`
2342
+ key: `column-${$._id}-${ke}`
2326
2343
  }, [
2327
- I("div", ia, C(te.description || e(q)(w)), 1),
2344
+ B("div", ia, C(te.description || e(q)(w)), 1),
2328
2345
  `row-${w}` in f.$slots ? (t(), s("div", ra, [
2329
2346
  A(f.$slots, `row-${w}`, z({ ref_for: !0 }, {
2330
2347
  store: e(u),
2331
2348
  column: w,
2332
2349
  property: te,
2333
- row: g
2350
+ row: $
2334
2351
  }), void 0, !0)
2335
2352
  ])) : (t(), s("div", ua, [
2336
- I("div", ca, [
2353
+ B("div", ca, [
2337
2354
  "type" in te && te.type === "boolean" ? (t(), s("div", da, [
2338
- g[w] ? (t(), V(Y, {
2355
+ $[w] ? (t(), V(Y, {
2339
2356
  key: 0,
2340
2357
  icon: "check",
2341
2358
  "icon-classes": "aeria-blueish"
2342
2359
  }, {
2343
- default: y(() => [
2360
+ default: b(() => [
2344
2361
  Q(C(e(q)("yes")), 1)
2345
2362
  ]),
2346
2363
  _: 1
@@ -2349,47 +2366,47 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2349
2366
  icon: "x",
2350
2367
  "icon-classes": "aeria-redish"
2351
2368
  }, {
2352
- default: y(() => [
2369
+ default: b(() => [
2353
2370
  Q(C(e(q)("no")), 1)
2354
2371
  ]),
2355
2372
  _: 1
2356
2373
  }))
2357
2374
  ])) : ((ce = e(me)(te)) == null ? void 0 : ce.$ref) === "file" ? (t(), s("div", pa, [
2358
- g[w] ? (t(), s("div", _a, [
2359
- "items" in te && g[w][0] && /^image/.test(g[w][0].type) ? (t(), V(Ue, {
2375
+ $[w] ? (t(), s("div", _a, [
2376
+ "items" in te && $[w][0] && /^image/.test($[w][0].type) ? (t(), V(Ue, {
2360
2377
  key: 0,
2361
- modelValue: g[w][0].link,
2362
- "onUpdate:modelValue": (k) => g[w][0].link = k,
2378
+ modelValue: $[w][0].link,
2379
+ "onUpdate:modelValue": (k) => $[w][0].link = k,
2363
2380
  expandable: "",
2364
- meta: g[w][0],
2381
+ meta: $[w][0],
2365
2382
  alt: "Row image",
2366
2383
  class: "table__picture"
2367
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(g[w].type) ? (t(), V(Ue, {
2384
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test($[w].type) ? (t(), V(Ue, {
2368
2385
  key: 1,
2369
- modelValue: g[w].link,
2370
- "onUpdate:modelValue": (k) => g[w].link = k,
2386
+ modelValue: $[w].link,
2387
+ "onUpdate:modelValue": (k) => $[w].link = k,
2371
2388
  expandable: "",
2372
- meta: g[w],
2389
+ meta: $[w],
2373
2390
  alt: "Row image",
2374
2391
  class: "table__picture"
2375
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : g[w].link ? (t(), s("a", {
2392
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : $[w].link ? (t(), s("a", {
2376
2393
  key: 2,
2377
- href: g[w].link,
2394
+ href: $[w].link,
2378
2395
  style: { "font-size": "10pt" }
2379
- }, C(g[w].filename), 9, ma)) : (t(), s("div", fa, " - "))
2396
+ }, C($[w].filename), 9, ma)) : (t(), s("div", fa, " - "))
2380
2397
  ])) : (t(), s("div", va, " - "))
2381
2398
  ])) : (t(), s("div", ya, [
2382
2399
  e(u) ? (t(), s("span", ba, C(e(u).$actions.formatValue({
2383
- value: g[w],
2400
+ value: $[w],
2384
2401
  key: w,
2385
2402
  property: te
2386
- })), 1)) : (t(), s("span", ha, C(Array.isArray(g[w]) ? g[w].filter((k) => !!k).join(", ") : [void 0, null].includes(g[w]) ? "-" : g[w]), 1)),
2403
+ })), 1)) : (t(), s("span", ha, C(Array.isArray($[w]) ? $[w].filter((k) => !!k).join(", ") : [void 0, null].includes($[w]) ? "-" : $[w]), 1)),
2387
2404
  ((O = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : O.length) > 1 ? (t(), s("div", ga, [
2388
2405
  (t(!0), s(P, null, H(e(me)(te).indexes.slice(1, 2), (k, N) => (t(), s("div", {
2389
2406
  key: `subvalue-${N}`,
2390
2407
  class: "table__cell-subvalue"
2391
2408
  }, C(e(u).$actions.formatValue({
2392
- value: g[w],
2409
+ value: $[w],
2393
2410
  key: w,
2394
2411
  property: te,
2395
2412
  index: k
@@ -2401,31 +2418,31 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2401
2418
  ]);
2402
2419
  }), 128)),
2403
2420
  (G = f.actions) != null && G.length && e(a).md ? (t(), s("td", $a, [
2404
- I("div", ka, [
2405
- (t(!0), s(P, null, H(l(g), (w) => (t(), V(pe, {
2421
+ B("div", ka, [
2422
+ (t(!0), s(P, null, H(l($), (w) => (t(), V(pe, {
2406
2423
  key: `action-${w.action}`,
2407
2424
  small: "",
2408
2425
  variant: "alt",
2409
2426
  icon: w.icon,
2410
- style: $e($(g, w)),
2411
- onClick: (te) => w.click(g)
2427
+ style: $e(g($, w)),
2428
+ onClick: (te) => w.click($)
2412
2429
  }, {
2413
- default: y(() => [
2430
+ default: b(() => [
2414
2431
  Q(C(e(q)(w.label)), 1)
2415
2432
  ]),
2416
2433
  _: 2
2417
2434
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2418
- v(g).length > 0 ? (t(), V(Ie, z({
2435
+ y($).length > 0 ? (t(), V(Ae, z({
2419
2436
  key: 0,
2420
2437
  ref_for: !0
2421
2438
  }, {
2422
- subject: g,
2423
- actions: v(g)
2439
+ subject: $,
2440
+ actions: y($)
2424
2441
  }), {
2425
- default: y(({
2442
+ default: b(({
2426
2443
  visible: w
2427
2444
  }) => [
2428
- J(L(Y, {
2445
+ Z(L(Y, {
2429
2446
  reactive: "",
2430
2447
  active: w,
2431
2448
  icon: "dots-three"
@@ -2437,20 +2454,20 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2437
2454
  }, 1040)) : h("", !0)
2438
2455
  ])
2439
2456
  ])) : (oe = f.actions) != null && oe.length ? (t(), s("td", Va, [
2440
- I("div", {
2457
+ B("div", {
2441
2458
  class: "table__mobile-actions-grid",
2442
- style: $e(`grid-template-columns: repeat(${l(g).length + (v(g).length ? 1 : 0)}, 1fr);`)
2459
+ style: $e(`grid-template-columns: repeat(${l($).length + (y($).length ? 1 : 0)}, 1fr);`)
2443
2460
  }, [
2444
- (t(!0), s(P, null, H(l(g), (w) => (t(), V(ye, {
2461
+ (t(!0), s(P, null, H(l($), (w) => (t(), V(ye, {
2445
2462
  key: `action-${w.action}`,
2446
2463
  class: "table__mobile-actions-button",
2447
- onClick: (te) => w.click(g)
2464
+ onClick: (te) => w.click($)
2448
2465
  }, {
2449
- default: y(() => [
2466
+ default: b(() => [
2450
2467
  L(Y, {
2451
2468
  icon: w.icon || "gear"
2452
2469
  }, {
2453
- default: y(() => [
2470
+ default: b(() => [
2454
2471
  Q(C(e(q)(w.label)), 1)
2455
2472
  ]),
2456
2473
  _: 2
@@ -2458,14 +2475,14 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2458
2475
  ]),
2459
2476
  _: 2
2460
2477
  }, 1032, ["onClick"]))), 128)),
2461
- v(g).length > 0 ? (t(), V(Ie, z({
2478
+ y($).length > 0 ? (t(), V(Ae, z({
2462
2479
  key: 0,
2463
2480
  ref_for: !0
2464
2481
  }, {
2465
- subject: g,
2466
- actions: v(g)
2482
+ subject: $,
2483
+ actions: y($)
2467
2484
  }), {
2468
- default: y(() => [
2485
+ default: b(() => [
2469
2486
  L(Y, {
2470
2487
  icon: "dots-three",
2471
2488
  class: "table__mobile-actions-button"
@@ -2474,27 +2491,27 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
2474
2491
  _: 2
2475
2492
  }, 1040)) : h("", !0)
2476
2493
  ], 4),
2477
- I("div", {
2478
- id: `dropdown-${g._id}`
2494
+ B("div", {
2495
+ id: `dropdown-${$._id}`
2479
2496
  }, null, 8, Ca)
2480
2497
  ])) : h("", !0)
2481
2498
  ], 8, aa);
2482
2499
  }), 128))
2483
2500
  ])),
2484
- I("tfoot", null, [
2485
- 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(), s("tr", Oa, [
2486
- I("td", {
2501
+ B("tfoot", null, [
2502
+ f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((K = e(u)) != null && K.loading.getAll) ? (t(), s("tr", Oa, [
2503
+ B("td", {
2487
2504
  colspan: d.value + 1
2488
2505
  }, [
2489
- I("div", Ia, C(e(q)("no_results", { capitalize: !0 })) + ". ", 1)
2490
- ], 8, Aa)
2506
+ B("div", Aa, C(e(q)("no_results", { capitalize: !0 })) + ". ", 1)
2507
+ ], 8, Ia)
2491
2508
  ])) : h("", !0)
2492
2509
  ])
2493
2510
  ])) : h("", !0);
2494
2511
  };
2495
2512
  }
2496
2513
  });
2497
- const Sa = /* @__PURE__ */ D(Ba, [["__scopeId", "data-v-89303bb6"]]), wa = /* @__PURE__ */ F({
2514
+ const Sa = /* @__PURE__ */ D(Ba, [["__scopeId", "data-v-660daba6"]]), wa = /* @__PURE__ */ F({
2498
2515
  __name: "aeria-tabular",
2499
2516
  props: {
2500
2517
  individualActions: {},
@@ -2502,7 +2519,7 @@ const Sa = /* @__PURE__ */ D(Ba, [["__scopeId", "data-v-89303bb6"]]), wa = /* @_
2502
2519
  componentProps: {}
2503
2520
  },
2504
2521
  setup(p) {
2505
- const r = p, o = je(), n = Me(), a = K(() => {
2522
+ const r = p, o = je(), n = Me(), a = X(() => {
2506
2523
  const c = {
2507
2524
  collection: n,
2508
2525
  checkbox: o.hasSelectionActions,
@@ -2520,7 +2537,7 @@ const Sa = /* @__PURE__ */ D(Ba, [["__scopeId", "data-v-89303bb6"]]), wa = /* @_
2520
2537
  }), _e({ _: 2 }, [
2521
2538
  H(Object.keys(c.$slots).filter((m) => !["inner"].includes(m)), (m) => ({
2522
2539
  name: m,
2523
- fn: y((d) => [
2540
+ fn: b((d) => [
2524
2541
  A(c.$slots, m, de(Ce(d)))
2525
2542
  ])
2526
2543
  }))
@@ -2561,30 +2578,30 @@ const ja = /* @__PURE__ */ D(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
2561
2578
  return t(), V(ja, {
2562
2579
  list: c.componentName === "list"
2563
2580
  }, {
2564
- default: y(() => [
2581
+ default: b(() => [
2565
2582
  (t(!0), s(P, null, H(e(n).items, (d) => (t(), V(sn, {
2566
2583
  key: d._id,
2567
2584
  inactive: !!(e(o).active && !d[e(o).active]),
2568
2585
  horizontal: c.componentName === "list"
2569
2586
  }, _e({
2570
- footer: y(() => [
2587
+ footer: b(() => [
2571
2588
  e(o).title ? (t(), s("div", Ra, C(d[e(o).title]), 1)) : h("", !0),
2572
2589
  e(o).information ? (t(), s("div", qa, C(d[e(o).information]), 1)) : h("", !0)
2573
2590
  ]),
2574
- actions: y(() => {
2575
- var b;
2591
+ actions: b(() => {
2592
+ var v;
2576
2593
  return [
2577
- (b = c.individualActions) != null && b.length ? (t(), V(Ie, z({
2594
+ (v = c.individualActions) != null && v.length ? (t(), V(Ae, z({
2578
2595
  key: 0,
2579
2596
  ref_for: !0
2580
2597
  }, {
2581
2598
  subject: d,
2582
2599
  actions: c.individualActions
2583
2600
  }), {
2584
- default: y(({
2601
+ default: b(({
2585
2602
  visible: l
2586
2603
  }) => [
2587
- J(L(Y, {
2604
+ Z(L(Y, {
2588
2605
  reactive: "",
2589
2606
  active: l,
2590
2607
  icon: "dots-three-vertical"
@@ -2596,14 +2613,14 @@ const ja = /* @__PURE__ */ D(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
2596
2613
  }, 1040)) : h("", !0)
2597
2614
  ];
2598
2615
  }),
2599
- default: y(() => {
2600
- var b, l;
2616
+ default: b(() => {
2617
+ var v, l;
2601
2618
  return [
2602
2619
  L(Ue, z({
2603
2620
  expandable: "",
2604
2621
  ref_for: !0
2605
2622
  }, {
2606
- url: (b = a(d[e(o).picture])) == null ? void 0 : b.link,
2623
+ url: (v = a(d[e(o).picture])) == null ? void 0 : v.link,
2607
2624
  meta: a(d[e(o).picture]),
2608
2625
  height: "16rem",
2609
2626
  alt: e(o).title ? (l = a(d[e(o).title])) == null ? void 0 : l.link : "Item picture"
@@ -2614,13 +2631,13 @@ const ja = /* @__PURE__ */ D(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
2614
2631
  }, [
2615
2632
  e(o).badge && Array.isArray(d[e(o).badge]) ? {
2616
2633
  name: "badge",
2617
- fn: y(() => [
2618
- (t(!0), s(P, null, H(d[e(o).badge], (b) => (t(), V(Ve, {
2619
- key: `${d._id}-${b}`,
2634
+ fn: b(() => [
2635
+ (t(!0), s(P, null, H(d[e(o).badge], (v) => (t(), V(Ve, {
2636
+ key: `${d._id}-${v}`,
2620
2637
  large: ""
2621
2638
  }, {
2622
- default: y(() => [
2623
- Q(C(e(o).translateBadge ? e(q)(b) : b), 1)
2639
+ default: b(() => [
2640
+ Q(C(e(o).translateBadge ? e(q)(v) : v), 1)
2624
2641
  ]),
2625
2642
  _: 2
2626
2643
  }, 1024))), 128))
@@ -2628,9 +2645,9 @@ const ja = /* @__PURE__ */ D(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
2628
2645
  key: "0"
2629
2646
  } : e(o).badge ? {
2630
2647
  name: "badge",
2631
- fn: y(() => [
2648
+ fn: b(() => [
2632
2649
  L(Ve, null, {
2633
- default: y(() => [
2650
+ default: b(() => [
2634
2651
  Q(C(e(o).translateBadge ? e(q)(d[e(o).badge]) : d[e(o).badge]), 1)
2635
2652
  ]),
2636
2653
  _: 2
@@ -2645,20 +2662,20 @@ const ja = /* @__PURE__ */ D(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
2645
2662
  };
2646
2663
  }
2647
2664
  });
2648
- const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) => ({
2665
+ const mt = /* @__PURE__ */ D(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) => ({
2649
2666
  tabular: wa,
2650
- grid: _t,
2651
- list: _t
2667
+ grid: mt,
2668
+ list: mt
2652
2669
  })[p], za = {
2653
2670
  key: 2,
2654
2671
  class: "crud__controls"
2655
2672
  }, Fa = {
2656
2673
  key: 0,
2657
2674
  class: "crud__search"
2658
- }, Ua = { class: "crud__actions" }, Ea = { class: "crud__context-badge" }, Ha = { key: 0 }, Da = {
2675
+ }, Ea = { class: "crud__actions" }, Ua = { class: "crud__context-badge" }, Ha = { key: 0 }, Da = {
2659
2676
  key: 3,
2660
2677
  class: "crud__pagination"
2661
- }, mt = 30, Qa = /* @__PURE__ */ F({
2678
+ }, ft = 30, Qa = /* @__PURE__ */ F({
2662
2679
  __name: "aeria-crud",
2663
2680
  props: {
2664
2681
  collection: {},
@@ -2674,21 +2691,21 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2674
2691
  },
2675
2692
  emits: ["uiEvent"],
2676
2693
  setup(p, { emit: r }) {
2677
- const o = ee(!1), n = ee(!1), a = ee((...O) => null), c = ee(), u = p, m = r, d = Be(), b = yt({
2694
+ const o = ee(!1), n = ee(!1), a = ee((...O) => null), c = ee(), u = p, m = r, d = Be(), v = bt({
2678
2695
  delay: 600
2679
- }), l = re("meta"), v = Le(), { reachedEnd: $, detach: f } = Ye(null, {
2696
+ }), l = ie("meta"), y = Le(), { reachedEnd: g, detach: f } = Ke(null, {
2680
2697
  antecipate: 600
2681
- }), B = !v.value.md || u.scrollPagination;
2682
- B && ue($, (O) => {
2683
- O && i.pagination.recordsTotal > i.items.length && Z.value < mt && (Z.value += 1, G());
2698
+ }), I = !y.value.md || u.scrollPagination;
2699
+ I && ue(g, (O) => {
2700
+ O && i.pagination.recordsTotal > i.items.length && K.value < ft && (K.value += 1, G());
2684
2701
  });
2685
2702
  const i = qt(u.collection);
2686
2703
  Jo(i, {
2687
2704
  persistInQuery: !u.noQueryPersistence
2688
2705
  });
2689
- const M = Ke(), E = u.action ? e(u.action) : Lt(i, d, M);
2706
+ const M = Xe(), E = u.action ? e(u.action) : Lt(i, d, M);
2690
2707
  a.value = E[0], c.value = E[1];
2691
- const Z = ee(0), g = ee(!1), G = async (O) => {
2708
+ const K = ee(0), $ = ee(!1), G = async (O) => {
2692
2709
  i.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || i.$filters), Object.assign(i.activeFilters, i.filtersPreset);
2693
2710
  const k = {
2694
2711
  filters: i.activeFilters,
@@ -2696,12 +2713,12 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2696
2713
  offset: i.pagination.offset,
2697
2714
  project: i.preferredTableProperties.length > 0 ? i.preferredTableProperties : i.description.table || Object.keys(i.properties)
2698
2715
  };
2699
- Z.value > 0 && (k.limit = 15, k.offset = Z.value * k.limit), i.description.tableMeta && (k.project = k.project.concat(i.description.tableMeta)), O && Object.assign(k, O), i.loading.getAll = !0;
2716
+ K.value > 0 && (k.limit = 15, k.offset = K.value * k.limit), i.description.tableMeta && (k.project = k.project.concat(i.description.tableMeta)), O && Object.assign(k, O), i.loading.getAll = !0;
2700
2717
  const { error: N, result: le } = await i.$actions.retrieveItems(k);
2701
2718
  if (N)
2702
2719
  return;
2703
2720
  const { data: _, pagination: T } = le;
2704
- i.pagination.recordsCount = T.recordsCount, i.pagination.recordsTotal = T.recordsTotal, Z.value === 0 && i.items.splice(0), i.items.push(..._), i.loading.getAll = !1, g.value = !0;
2721
+ i.pagination.recordsCount = T.recordsCount, i.pagination.recordsTotal = T.recordsTotal, K.value === 0 && i.items.splice(0), i.items.push(..._), i.loading.getAll = !1, $.value = !0;
2705
2722
  }, oe = async (O) => {
2706
2723
  d.push(qe(d.currentRoute.value, {
2707
2724
  query: {
@@ -2725,18 +2742,18 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2725
2742
  immediate: !0,
2726
2743
  flush: "post"
2727
2744
  });
2728
- const [te] = b((O) => (d.push(qe(d.currentRoute.value, {
2745
+ const [te] = v((O) => (d.push(qe(d.currentRoute.value, {
2729
2746
  query: {
2730
2747
  search: O || void 0
2731
2748
  }
2732
- })), O ? (i.filters = Object.assign(Ae(i.freshFilters), {
2749
+ })), O ? (i.filters = Object.assign(Ie(i.freshFilters), {
2733
2750
  $text: {
2734
2751
  $search: `"${O}"`,
2735
2752
  $caseSensitive: !1
2736
2753
  }
2737
2754
  }), G({
2738
2755
  offset: 0
2739
- })) : (i.filters = Ae(i.freshFilters), Z.value = 0, G())));
2756
+ })) : (i.filters = Ie(i.freshFilters), K.value = 0, G())));
2740
2757
  ue(() => i.textQuery, (O) => {
2741
2758
  te(O);
2742
2759
  });
@@ -2747,7 +2764,7 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2747
2764
  i.$actions.clearFilters(), i.textQuery = "", f();
2748
2765
  }), ue(() => c.value, async (O) => {
2749
2766
  var le;
2750
- const k = Ae(O);
2767
+ const k = Ie(O);
2751
2768
  let N;
2752
2769
  if (k)
2753
2770
  if ((k.name === "spawnEdit" || k.name === "duplicate") && (N = i.$actions.get({
@@ -2762,30 +2779,30 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2762
2779
  i.$actions.setItem(k.params), o.value = "edit";
2763
2780
  else if (k.name === "duplicate") {
2764
2781
  await N;
2765
- const _ = Object.entries(i.item).reduce((T, [U, X]) => {
2782
+ const _ = Object.entries(i.item).reduce((T, [U, J]) => {
2766
2783
  if (!(U in i.properties))
2767
2784
  return {
2768
2785
  ...T,
2769
- [U]: X
2786
+ [U]: J
2770
2787
  };
2771
2788
  const S = i.properties[U];
2772
2789
  if (S.readOnly)
2773
2790
  return T;
2774
- const R = (ie) => {
2791
+ const R = (re) => {
2775
2792
  const j = me(S);
2776
2793
  if (!j)
2777
- return ie;
2794
+ return re;
2778
2795
  if (j.$ref === "file")
2779
2796
  return {};
2780
- if (j.inline && ie) {
2781
- const { _id: se, ...ve } = ie;
2797
+ if (j.inline && re) {
2798
+ const { _id: se, ...ve } = re;
2782
2799
  return ve;
2783
2800
  }
2784
- return ie;
2801
+ return re;
2785
2802
  };
2786
- return X = Array.isArray(X) ? X.map(R) : R(X), {
2803
+ return J = Array.isArray(J) ? J.map(R) : R(J), {
2787
2804
  ...T,
2788
- [U]: X
2805
+ [U]: J
2789
2806
  };
2790
2807
  }, {});
2791
2808
  i.$actions.setItem(_), delete i.item._id, i.referenceItem = {}, o.value = "duplicate";
@@ -2796,15 +2813,15 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2796
2813
  }), ue(() => o, ({ value: O }) => {
2797
2814
  O === !1 && i.$actions.clearItem();
2798
2815
  });
2799
- const ce = K(() => {
2816
+ const ce = X(() => {
2800
2817
  if (!u.noActions)
2801
2818
  return i.individualActions.map((O) => ({
2802
2819
  click: a.value(O),
2803
2820
  ...O
2804
2821
  }));
2805
- }), ae = K(() => i.actions.filter((O) => !O.button));
2806
- return ge(ze, K(() => u.collection)), (O, k) => {
2807
- var _, T, U, X, S, R, ie;
2822
+ }), ae = X(() => i.actions.filter((O) => !O.button));
2823
+ return ge(ze, X(() => u.collection)), (O, k) => {
2824
+ var _, T, U, J, S, R, re;
2808
2825
  const N = ne("clickable"), le = ne("loading");
2809
2826
  return t(), s(P, null, [
2810
2827
  n.value ? (t(), V(Ko, {
@@ -2823,8 +2840,8 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2823
2840
  }, {
2824
2841
  onCancel: k[2] || (k[2] = (j) => o.value = !1)
2825
2842
  }), _e({
2826
- header: y(() => [
2827
- I("span", null, C((() => {
2843
+ header: b(() => [
2844
+ B("span", null, C((() => {
2828
2845
  switch (o.value) {
2829
2846
  case "add":
2830
2847
  return e(q)("action.add", { capitalize: !0 });
@@ -2835,13 +2852,13 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2835
2852
  return e(q)("action.edit", { capitalize: !0 });
2836
2853
  }
2837
2854
  })()), 1),
2838
- I("span", null, " " + C(e(q)(O.collection)), 1)
2855
+ B("span", null, " " + C(e(q)(O.collection)), 1)
2839
2856
  ]),
2840
2857
  _: 2
2841
2858
  }, [
2842
2859
  H(Object.keys(O.$slots).filter((j) => j.startsWith("field-")), (j) => ({
2843
2860
  name: j,
2844
- fn: y((se) => [
2861
+ fn: b((se) => [
2845
2862
  A(O.$slots, j, de(Ce(se)), void 0, !0)
2846
2863
  ])
2847
2864
  }))
@@ -2859,16 +2876,16 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2859
2876
  }
2860
2877
  }), null, 16, ["modelValue"])
2861
2878
  ])) : h("", !0),
2862
- I("div", Ua, [
2863
- ae.value.length > 0 || !O.noLayoutToggle && e(i).description.layout && ((U = e(i).description.layout) == null ? void 0 : U.name) !== "tabular" ? (t(), V(Ie, { key: 0 }, _e({
2864
- default: y(() => [
2879
+ B("div", Ea, [
2880
+ ae.value.length > 0 || !O.noLayoutToggle && e(i).description.layout && ((U = e(i).description.layout) == null ? void 0 : U.name) !== "tabular" ? (t(), V(Ae, { key: 0 }, _e({
2881
+ default: b(() => [
2865
2882
  L(pe, {
2866
2883
  variant: "alt",
2867
2884
  icon: "sliders"
2868
2885
  }, {
2869
- default: y(() => [
2886
+ default: b(() => [
2870
2887
  e(i).filtersCount ? (t(), V(Ve, { key: 0 }, {
2871
- default: y(() => [
2888
+ default: b(() => [
2872
2889
  Q(C(e(i).filtersCount), 1)
2873
2890
  ]),
2874
2891
  _: 1
@@ -2881,21 +2898,21 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2881
2898
  }, [
2882
2899
  Object.keys(e(i).availableFilters).length > 0 ? {
2883
2900
  name: "filter",
2884
- fn: y(() => [
2885
- J((t(), V(Y, {
2901
+ fn: b(() => [
2902
+ Z((t(), V(Y, {
2886
2903
  icon: "funnel",
2887
2904
  onClick: k[4] || (k[4] = (j) => n.value = !0)
2888
2905
  }, {
2889
- default: y(() => [
2906
+ default: b(() => [
2890
2907
  Q(C(e(q)("filters", { capitalize: !0 })), 1)
2891
2908
  ]),
2892
2909
  _: 1
2893
2910
  })), [
2894
2911
  [N]
2895
2912
  ]),
2896
- I("div", Ea, [
2913
+ B("div", Ua, [
2897
2914
  e(i).filtersCount ? (t(), V(Ve, { key: 0 }, {
2898
- default: y(() => [
2915
+ default: b(() => [
2899
2916
  Q(C(e(i).filtersCount), 1)
2900
2917
  ]),
2901
2918
  _: 1
@@ -2904,14 +2921,14 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2904
2921
  ]),
2905
2922
  key: "0"
2906
2923
  } : void 0,
2907
- !O.noLayoutToggle && e(i).description.layout && ((X = e(i).description.layout) == null ? void 0 : X.name) !== "tabular" ? {
2924
+ !O.noLayoutToggle && e(i).description.layout && ((J = e(i).description.layout) == null ? void 0 : J.name) !== "tabular" ? {
2908
2925
  name: "layout-toggle",
2909
- fn: y(() => [
2910
- J((t(), V(Y, {
2926
+ fn: b(() => [
2927
+ Z((t(), V(Y, {
2911
2928
  icon: "table",
2912
2929
  onClick: k[5] || (k[5] = (j) => ke(e(i)))
2913
2930
  }, {
2914
- default: y(() => [
2931
+ default: b(() => [
2915
2932
  Q(C(e(q)("change_layout", { capitalize: !0 })), 1)
2916
2933
  ]),
2917
2934
  _: 1
@@ -2923,14 +2940,14 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2923
2940
  } : void 0,
2924
2941
  H(ae.value, (j, se) => ({
2925
2942
  name: `action-${se}`,
2926
- fn: y(() => [
2943
+ fn: b(() => [
2927
2944
  j ? (t(), V(Y, {
2928
2945
  key: 0,
2929
2946
  icon: j.icon || "gear",
2930
2947
  disabled: e(i).selected.length === 0 && "selection" in j && j.selection,
2931
2948
  onClick: (ve) => a.value(j)({ _id: e(i).selected.map((be) => typeof be == "string" || be._id) })
2932
2949
  }, {
2933
- default: y(() => [
2950
+ default: b(() => [
2934
2951
  Q(C(e(q)(j.label, { capitalize: !0 })), 1)
2935
2952
  ]),
2936
2953
  _: 2
@@ -2943,10 +2960,10 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2943
2960
  icon: "funnel",
2944
2961
  onClick: k[6] || (k[6] = (j) => n.value = !0)
2945
2962
  }, {
2946
- default: y(() => [
2947
- k[8] || (k[8] = I("div", null, "Filtros", -1)),
2963
+ default: b(() => [
2964
+ k[8] || (k[8] = B("div", null, "Filtros", -1)),
2948
2965
  e(i).filtersCount ? (t(), V(Ve, { key: 0 }, {
2949
- default: y(() => [
2966
+ default: b(() => [
2950
2967
  Q(C(e(i).filtersCount), 1)
2951
2968
  ]),
2952
2969
  _: 1
@@ -2960,7 +2977,7 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2960
2977
  disabled: e(i).selected.length === 0 && "selection" in j && j.selection,
2961
2978
  onClick: (ve) => a.value(j)({ _id: e(i).selected.map((be) => typeof be == "string" || be._id) })
2962
2979
  }, {
2963
- default: y(() => [
2980
+ default: b(() => [
2964
2981
  Q(C(e(q)(j.label, { capitalize: !0 })), 1)
2965
2982
  ]),
2966
2983
  _: 2
@@ -2968,12 +2985,12 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2968
2985
  O.$slots.actions ? A(O.$slots, "actions", { key: 2 }, void 0, !0) : h("", !0)
2969
2986
  ])
2970
2987
  ])) : h("", !0),
2971
- J((t(), s("div", null, [
2972
- e(i).itemsCount === 0 && !e(i).loading.getAll && g.value && (e(w) || O.$slots.empty) ? (t(), s("div", Ha, [
2988
+ Z((t(), s("div", null, [
2989
+ e(i).itemsCount === 0 && !e(i).loading.getAll && $.value && (e(w) || O.$slots.empty) ? (t(), s("div", Ha, [
2973
2990
  e(w) ? (t(), V(he(e(w)), de(z({ key: 0 }, {
2974
2991
  collection: e(i).$id
2975
2992
  })), {
2976
- default: y(() => [
2993
+ default: b(() => [
2977
2994
  e(i).filtersCount === 0 && e(i).description.actions && "spawnAdd" in e(i).description.actions ? (t(), V(pe, {
2978
2995
  key: 0,
2979
2996
  icon: "plus",
@@ -2982,7 +2999,7 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2982
2999
  event: "spawnAdd"
2983
3000
  })())
2984
3001
  }, {
2985
- default: y(() => [
3002
+ default: b(() => [
2986
3003
  Q(C(e(q)("add_first_item", { capitalize: !0 })), 1)
2987
3004
  ]),
2988
3005
  _: 1
@@ -2999,26 +3016,26 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
2999
3016
  layoutOptions: ((R = O.layout) == null ? void 0 : R.options) || e(i).layout.options,
3000
3017
  componentProps: O.componentProps
3001
3018
  }, {
3002
- "component-name": ((ie = O.layout) == null ? void 0 : ie.name) || e(i).$currentLayout
3019
+ "component-name": ((re = O.layout) == null ? void 0 : re.name) || e(i).$currentLayout
3003
3020
  }), _e({ _: 2 }, [
3004
3021
  H(Object.keys(O.$slots).filter((j) => j.startsWith("row-")), (j) => ({
3005
3022
  name: j,
3006
- fn: y((se) => [
3023
+ fn: b((se) => [
3007
3024
  A(O.$slots, j, de(Ce(se)), void 0, !0)
3008
3025
  ])
3009
3026
  })),
3010
3027
  O.$slots.tfoot ? {
3011
3028
  name: "tfoot",
3012
- fn: y(() => [
3029
+ fn: b(() => [
3013
3030
  A(O.$slots, "tfoot", {}, void 0, !0)
3014
3031
  ]),
3015
3032
  key: "0"
3016
3033
  } : void 0
3017
3034
  ]), 1040, ["component-name"]))
3018
3035
  ])), [
3019
- [le, (!e(B) || Z.value === mt) && e(i).loading.getAll]
3036
+ [le, (!e(I) || K.value === ft) && e(i).loading.getAll]
3020
3037
  ]),
3021
- !e(B) && !O.noControls && !e(i).loading.getAll && e(i).itemsCount > 0 ? (t(), s("div", Da, [
3038
+ !e(I) && !O.noControls && !e(i).loading.getAll && e(i).itemsCount > 0 ? (t(), s("div", Da, [
3022
3039
  L(qn, {
3023
3040
  pagination: e(i).pagination,
3024
3041
  onPaginate: oe
@@ -3028,14 +3045,14 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) =
3028
3045
  };
3029
3046
  }
3030
3047
  });
3031
- const Al = /* @__PURE__ */ D(Qa, [["__scopeId", "data-v-d64cb42a"]]), Ga = { class: "prompt" }, Wa = /* @__PURE__ */ F({
3048
+ const Il = /* @__PURE__ */ D(Qa, [["__scopeId", "data-v-d64cb42a"]]), Ga = { class: "prompt" }, Wa = /* @__PURE__ */ F({
3032
3049
  __name: "aeria-prompt",
3033
3050
  props: {
3034
3051
  title: {},
3035
3052
  options: {}
3036
3053
  },
3037
3054
  setup(p) {
3038
- const r = re("meta"), o = (n, a) => {
3055
+ const r = ie("meta"), o = (n, a) => {
3039
3056
  r.$actions.fulfillPrompt(n, a);
3040
3057
  };
3041
3058
  return (n, a) => (t(), V(Se, {
@@ -3045,8 +3062,8 @@ const Al = /* @__PURE__ */ D(Qa, [["__scopeId", "data-v-d64cb42a"]]), Ga = { cla
3045
3062
  title: n.title,
3046
3063
  style: { "--panel-min-width": "32rem" }
3047
3064
  }, {
3048
- footer: y(() => [
3049
- I("div", {
3065
+ footer: b(() => [
3066
+ B("div", {
3050
3067
  class: "prompt__options",
3051
3068
  style: $e(`grid-template-columns: repeat(${Object.keys(n.options).length}, 1fr)`)
3052
3069
  }, [
@@ -3058,15 +3075,15 @@ const Al = /* @__PURE__ */ D(Qa, [["__scopeId", "data-v-d64cb42a"]]), Ga = { cla
3058
3075
  ]),
3059
3076
  onClick: (d) => u.click ? u.click(c, u) : o(c, u)
3060
3077
  }, {
3061
- default: y(() => [
3078
+ default: b(() => [
3062
3079
  Q(C(u.title), 1)
3063
3080
  ]),
3064
3081
  _: 2
3065
3082
  }, 1032, ["class", "onClick"]))), 128))
3066
3083
  ], 4)
3067
3084
  ]),
3068
- default: y(() => [
3069
- I("div", Ga, [
3085
+ default: b(() => [
3086
+ B("div", Ga, [
3070
3087
  A(n.$slots, "default", {}, void 0, !0)
3071
3088
  ])
3072
3089
  ]),
@@ -3083,10 +3100,10 @@ const Ya = /* @__PURE__ */ D(Wa, [["__scopeId", "data-v-4cbfd28f"]]), Ka = { cla
3083
3100
  icon: {}
3084
3101
  },
3085
3102
  setup(p) {
3086
- const r = re("meta");
3103
+ const r = ie("meta");
3087
3104
  return (o, n) => {
3088
3105
  const a = ne("clickable");
3089
- return J((t(), s("div", {
3106
+ return Z((t(), s("div", {
3090
3107
  class: W({
3091
3108
  toast: !0,
3092
3109
  "toast--animate": e(r).toasts[0].itr === o.itr
@@ -3098,9 +3115,9 @@ const Ya = /* @__PURE__ */ D(Wa, [["__scopeId", "data-v-4cbfd28f"]]), Ka = { cla
3098
3115
  o.icon ? { icon: o.icon } : { icon: "warning-circle" },
3099
3116
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3100
3117
  ), null, 16),
3101
- I("div", Ka, [
3118
+ B("div", Ka, [
3102
3119
  A(o.$slots, "default", {}, void 0, !0),
3103
- I("div", Xa, C(o.formatDateTime(o.date, { hoursOnly: !0 })), 1)
3120
+ B("div", Xa, C(o.formatDateTime(o.date, { hoursOnly: !0 })), 1)
3104
3121
  ])
3105
3122
  ], 34)), [
3106
3123
  [a]
@@ -3111,7 +3128,7 @@ const Ya = /* @__PURE__ */ D(Wa, [["__scopeId", "data-v-4cbfd28f"]]), Ka = { cla
3111
3128
  const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["innerHTML"], Na = { class: "main__toasts" }, xa = ["innerHTML"], el = /* @__PURE__ */ F({
3112
3129
  __name: "aeria-main",
3113
3130
  setup(p) {
3114
- const r = re("meta"), o = K(() => r.themeOverride || r.theme);
3131
+ const r = ie("meta"), o = X(() => r.themeOverride || r.theme);
3115
3132
  return (n, a) => {
3116
3133
  const c = Ct("router-view");
3117
3134
  return t(), s("main", {
@@ -3123,13 +3140,13 @@ const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
3123
3140
  ])
3124
3141
  }, [
3125
3142
  (t(), V(Ot, null, {
3126
- default: y(() => [
3143
+ default: b(() => [
3127
3144
  L(c, null, {
3128
- default: y(({ Component: u }) => [
3145
+ default: b(({ Component: u }) => [
3129
3146
  (t(), V(he(u), null, _e({ _: 2 }, [
3130
3147
  H(Object.keys(n.$slots), (m) => ({
3131
3148
  name: m,
3132
- fn: y(() => [
3149
+ fn: b(() => [
3133
3150
  A(n.$slots, m, {}, void 0, !0)
3134
3151
  ])
3135
3152
  }))
@@ -3150,7 +3167,7 @@ const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
3150
3167
  "overlay-layer": 70,
3151
3168
  onOverlayClick: a[1] || (a[1] = (u) => e(r).modal.visible = !1)
3152
3169
  }), {
3153
- default: y(() => [
3170
+ default: b(() => [
3154
3171
  e(r).modal.body ? (t(), s("div", {
3155
3172
  key: 0,
3156
3173
  style: { "white-space": "pre-wrap" },
@@ -3161,17 +3178,17 @@ const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
3161
3178
  _: 1
3162
3179
  }, 16, ["modelValue"]),
3163
3180
  e(r).prompt.visible ? (t(), V(Ya, de(z({ key: 0 }, e(r).prompt)), {
3164
- default: y(() => [
3181
+ default: b(() => [
3165
3182
  Q(C(e(r).prompt.body), 1)
3166
3183
  ]),
3167
3184
  _: 1
3168
3185
  }, 16)) : h("", !0),
3169
- I("div", Na, [
3186
+ B("div", Na, [
3170
3187
  (t(!0), s(P, null, H(e(r).toasts, (u) => (t(), V(Za, z({ ref_for: !0 }, u, {
3171
3188
  key: `toast-${u.itr}`
3172
3189
  }), {
3173
- default: y(() => [
3174
- I("div", {
3190
+ default: b(() => [
3191
+ B("div", {
3175
3192
  innerHTML: e(q)(u.text)
3176
3193
  }, null, 8, xa)
3177
3194
  ]),
@@ -3182,7 +3199,7 @@ const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
3182
3199
  };
3183
3200
  }
3184
3201
  });
3185
- const Il = /* @__PURE__ */ D(el, [["__scopeId", "data-v-8f232683"]]);
3202
+ const Al = /* @__PURE__ */ D(el, [["__scopeId", "data-v-8f232683"]]);
3186
3203
  const tl = {}, nl = { class: "menu" };
3187
3204
  function ol(p, r) {
3188
3205
  return t(), s("menu", nl, [
@@ -3211,7 +3228,7 @@ const Bl = /* @__PURE__ */ D(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
3211
3228
  dropdown: { type: Boolean }
3212
3229
  },
3213
3230
  setup(p) {
3214
- const r = p, o = At(), n = Be(), a = Le(), c = K(() => {
3231
+ const r = p, o = It(), n = Be(), a = Le(), c = X(() => {
3215
3232
  if (r.query) {
3216
3233
  const m = n.currentRoute.value.query[r.query];
3217
3234
  if (m)
@@ -3234,47 +3251,47 @@ const Bl = /* @__PURE__ */ D(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
3234
3251
  }));
3235
3252
  };
3236
3253
  return (m, d) => {
3237
- const b = ne("clickable");
3254
+ const v = ne("clickable");
3238
3255
  return t(), s("div", al, [
3239
3256
  e(a).md && !m.dropdown ? (t(), s("div", ll, [
3240
3257
  m.$slots.default ? (t(), s("div", sl, [
3241
3258
  A(m.$slots, "default", {}, void 0, !0)
3242
3259
  ])) : h("", !0),
3243
- (t(!0), s(P, null, H(Object.keys(m.$slots).filter((l) => l !== "default"), (l, v) => (t(), s("div", {
3260
+ (t(!0), s(P, null, H(Object.keys(m.$slots).filter((l) => l !== "default"), (l, y) => (t(), s("div", {
3244
3261
  key: l,
3245
3262
  class: W({
3246
3263
  tabs__tab: !0,
3247
- "tabs__tab--current": l === c.value || !c.value && v === 0
3264
+ "tabs__tab--current": l === c.value || !c.value && y === 0
3248
3265
  }),
3249
- onClick: ($) => u(l)
3266
+ onClick: (g) => u(l)
3250
3267
  }, [
3251
3268
  A(m.$slots, l, {}, void 0, !0)
3252
3269
  ], 10, il))), 128))
3253
3270
  ])) : (t(), s("div", rl, [
3254
- L(Ie, null, _e({
3255
- default: y(({ visible: l }) => [
3256
- J((t(), V(Y, {
3271
+ L(Ae, null, _e({
3272
+ default: b(({ visible: l }) => [
3273
+ Z((t(), V(Y, {
3257
3274
  "icon-right": "",
3258
3275
  active: l,
3259
3276
  icon: "caret-down",
3260
3277
  style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
3261
3278
  class: "tabs__context-menu-icon"
3262
3279
  }, {
3263
- default: y(() => [
3280
+ default: b(() => [
3264
3281
  A(m.$slots, c.value, {}, void 0, !0)
3265
3282
  ]),
3266
3283
  _: 2
3267
3284
  }, 1032, ["active"])), [
3268
- [b]
3285
+ [v]
3269
3286
  ])
3270
3287
  ]),
3271
3288
  _: 2
3272
3289
  }, [
3273
3290
  H(Object.keys(m.$slots).filter((l) => l !== "default"), (l) => ({
3274
3291
  name: l,
3275
- fn: y(() => [
3276
- I("div", {
3277
- onClick: (v) => u(l)
3292
+ fn: b(() => [
3293
+ B("div", {
3294
+ onClick: (y) => u(l)
3278
3295
  }, [
3279
3296
  A(m.$slots, l, {}, void 0, !0)
3280
3297
  ], 8, ul)
@@ -3295,7 +3312,7 @@ const dl = /* @__PURE__ */ D(cl, [["__scopeId", "data-v-a20914ab"]]), pl = F({
3295
3312
  const r = ee(p.initialValue);
3296
3313
  return p.promise instanceof Promise && p.promise.then((o) => {
3297
3314
  r.value = o;
3298
- }), () => It("div", String(r.value));
3315
+ }), () => At("div", String(r.value));
3299
3316
  }
3300
3317
  }), _l = ["onClick"], ml = { key: 1 }, fl = /* @__PURE__ */ F({
3301
3318
  __name: "aeria-crud-topbar",
@@ -3303,35 +3320,35 @@ const dl = /* @__PURE__ */ D(cl, [["__scopeId", "data-v-a20914ab"]]), pl = F({
3303
3320
  collection: {}
3304
3321
  },
3305
3322
  setup(p) {
3306
- 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 (m, d) => {
3307
- const { error: b, result: l } = await d.$functions[m.badgeFunction]({
3323
+ const r = p, n = Be().currentRoute, a = Xe(), c = X(() => 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 (m, d) => {
3324
+ const { error: v, result: l } = await d.$functions[m.badgeFunction]({
3308
3325
  filters: m.filters
3309
3326
  });
3310
- return b ? 0 : l;
3327
+ return v ? 0 : l;
3311
3328
  };
3312
3329
  return (m, d) => c.value && c.value.description.filtersPresets ? (t(), V(dl, {
3313
3330
  key: 0,
3314
3331
  dropdown: "",
3315
3332
  query: "section"
3316
3333
  }, _e({ _: 2 }, [
3317
- H(Object.entries(c.value.description.filtersPresets), ([b, l]) => ({
3318
- name: b,
3319
- fn: y(() => [
3320
- I("div", {
3334
+ H(Object.entries(c.value.description.filtersPresets), ([v, l]) => ({
3335
+ name: v,
3336
+ fn: b(() => [
3337
+ B("div", {
3321
3338
  class: "topbar__preset",
3322
- onClick: (v) => e(ht)(l, c.value)
3339
+ onClick: (y) => e(ht)(l, c.value)
3323
3340
  }, [
3324
3341
  l.icon ? (t(), V(Y, {
3325
3342
  key: 0,
3326
3343
  icon: l.icon
3327
3344
  }, {
3328
- default: y(() => [
3329
- Q(C(l.label || e(q)(b, { plural: !0 })), 1)
3345
+ default: b(() => [
3346
+ Q(C(l.label || e(q)(v, { plural: !0 })), 1)
3330
3347
  ]),
3331
3348
  _: 2
3332
- }, 1032, ["icon"])) : (t(), s("div", ml, C(l.label || e(q)(b, { plural: !0 })), 1)),
3349
+ }, 1032, ["icon"])) : (t(), s("div", ml, C(l.label || e(q)(v, { plural: !0 })), 1)),
3333
3350
  l.badgeFunction ? (t(), V(Ve, { key: 2 }, {
3334
- default: y(() => [
3351
+ default: b(() => [
3335
3352
  L(e(pl), {
3336
3353
  "initial-value": "0",
3337
3354
  promise: u(l, c.value)
@@ -3357,11 +3374,11 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3357
3374
  setup(p) {
3358
3375
  const r = p;
3359
3376
  ge(ze, null);
3360
- const o = zt(), n = K(() => o(
3377
+ const o = zt(), n = X(() => o(
3361
3378
  r.modelValue.password,
3362
3379
  r.modelValue.confirmation
3363
3380
  ));
3364
- return (a, c) => (t(), V(He, {
3381
+ return (a, c) => (t(), V(De, {
3365
3382
  form: {
3366
3383
  password: {
3367
3384
  type: "string",
@@ -3377,8 +3394,8 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3377
3394
  "model-value": a.modelValue,
3378
3395
  "onUpdate:modelValue": c[0] || (c[0] = (u) => a.$emit("update:modelValue", u))
3379
3396
  }, {
3380
- after: y(() => [
3381
- I("div", null, C(n.value || "Senhas conferem"), 1),
3397
+ after: b(() => [
3398
+ B("div", null, C(n.value || "Senhas conferem"), 1),
3382
3399
  A(a.$slots, "default", de(Ce({ passwordError: n.value })))
3383
3400
  ]),
3384
3401
  _: 3
@@ -3402,7 +3419,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3402
3419
  {
3403
3420
  path: "signin",
3404
3421
  name: "/user/signin",
3405
- component: () => import("./signin-46fed036.js"),
3422
+ component: () => import("./signin-41417db3.js"),
3406
3423
  meta: {
3407
3424
  title: "Sign in"
3408
3425
  }
@@ -3410,7 +3427,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3410
3427
  {
3411
3428
  path: "signup",
3412
3429
  name: "/user/signup",
3413
- component: () => import("./signup-23919639.js"),
3430
+ component: () => import("./signup-fc726ae1.js"),
3414
3431
  meta: {
3415
3432
  title: "Sign up"
3416
3433
  }
@@ -3418,7 +3435,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3418
3435
  {
3419
3436
  path: "redefine-password",
3420
3437
  name: "/user/redefine-password",
3421
- component: () => import("./redefine-password-266c2bb6.js"),
3438
+ component: () => import("./redefine-password-25af0141.js"),
3422
3439
  meta: {
3423
3440
  title: "Redefine password"
3424
3441
  }
@@ -3426,7 +3443,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3426
3443
  {
3427
3444
  path: "activation",
3428
3445
  name: "/user/activation",
3429
- component: () => import("./activation-54b1d9a6.js"),
3446
+ component: () => import("./activation-5428c16b.js"),
3430
3447
  meta: {
3431
3448
  title: "Activate user"
3432
3449
  }
@@ -3448,7 +3465,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3448
3465
  name: "/dashboard/:collection",
3449
3466
  props: !0,
3450
3467
  components: {
3451
- default: () => import("./index-cb00ac25.js"),
3468
+ default: () => import("./index-dc7a3375.js"),
3452
3469
  topbar: () => Promise.resolve().then(() => yl)
3453
3470
  },
3454
3471
  meta: {
@@ -3462,7 +3479,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3462
3479
  name: "/dashboard/:collection/:id",
3463
3480
  props: !0,
3464
3481
  components: {
3465
- default: () => import("./_id_-96b01051.js")
3482
+ default: () => import("./_id_-66899607.js")
3466
3483
  },
3467
3484
  meta: {
3468
3485
  title: ({ collectionName: o, t: n }) => n(o, {
@@ -3482,7 +3499,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3482
3499
  children: [
3483
3500
  {
3484
3501
  path: "profile",
3485
- component: () => import("./index-84b8a1c7.js"),
3502
+ component: () => import("./index-97e3a8d7.js"),
3486
3503
  meta: {
3487
3504
  title: "User profile",
3488
3505
  icon: "user-square"
@@ -3491,7 +3508,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3491
3508
  {
3492
3509
  path: "changepass",
3493
3510
  name: "/dashboard/user/changepass",
3494
- component: () => import("./index-dca59f5a.js"),
3511
+ component: () => import("./index-41ebb04f.js"),
3495
3512
  meta: {
3496
3513
  title: "Change password",
3497
3514
  icon: "lock"
@@ -3502,7 +3519,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
3502
3519
  ])
3503
3520
  });
3504
3521
  export {
3505
- He as A,
3522
+ De as A,
3506
3523
  Jn as B,
3507
3524
  pl as C,
3508
3525
  Ya as D,
@@ -3514,7 +3531,7 @@ export {
3514
3531
  pe as a,
3515
3532
  Y as b,
3516
3533
  Hn as c,
3517
- Al as d,
3534
+ Il as d,
3518
3535
  Xo as e,
3519
3536
  Ue as f,
3520
3537
  Bl as g,
@@ -3524,11 +3541,11 @@ export {
3524
3541
  Ve as k,
3525
3542
  ye as l,
3526
3543
  sn as m,
3527
- Ie as n,
3544
+ Ae as n,
3528
3545
  ja as o,
3529
3546
  Ko as p,
3530
3547
  bn as q,
3531
- Il as r,
3548
+ Al as r,
3532
3549
  qn as s,
3533
3550
  Sa as t,
3534
3551
  dl as u,
@@ -3536,5 +3553,5 @@ export {
3536
3553
  Oe as w,
3537
3554
  Gn as x,
3538
3555
  Bo as y,
3539
- Xe as z
3556
+ Je as z
3540
3557
  };