@aeria-ui/ui 0.0.75 → 0.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { defineComponent as E, ref as J, resolveDirective as oe, openBlock as t, createElementBlock as s, normalizeClass as X, Fragment as N, renderList as D, withDirectives as x, toDisplayString as g, createCommentVNode as y, createTextVNode as W, unref as e, renderSlot as O, inject as _e, computed as Q, createElementVNode as C, mergeProps as H, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as It, Teleport as Je, onMounted as bt, watch as ue, createVNode as q, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as He, popScopeId as Qe, provide as ye, createSlots as ce, normalizeProps as pe, guardReactiveProps as Ve, vModelCheckbox as Bt, onUnmounted as wt, isRef as _t, resolveComponent as St, Suspense as jt, useSlots as Tt, h as Rt } from "vue";
1
+ import { defineComponent as E, ref as J, resolveDirective as oe, openBlock as t, createElementBlock as s, normalizeClass as X, Fragment as N, renderList as D, withDirectives as x, toDisplayString as k, createCommentVNode as y, createTextVNode as W, unref as e, renderSlot as O, inject as _e, computed as G, createElementVNode as C, mergeProps as Q, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Je, onMounted as bt, watch as ue, createVNode as F, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as De, popScopeId as Qe, provide as ye, createSlots as ce, vModelCheckbox as Bt, onUnmounted as wt, isRef as _t, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
2
2
  import { t as L, useI18n as Lt } from "@aeria-ui/i18n";
3
- import { useScrollObserver as Ze, useBreakpoints as qe, useMask as zt, PAGINATION_PER_PAGE_DEFAULTS as Mt, API_URL as gt, request as qt, useDebounce as kt, isDocumentComplete as Ft, getObjectKey as Ut, convertToSearchQuery as Et, useAction as Dt, convertFromSearchQuery as Ht, useParentCollectionStore as Ke, usePasswordPolicy as Qt } from "@aeria-ui/core";
4
- import { arraysIntersect as Vt, deepClone as ke, getReferenceProperty as me, convertConditionToQuery as Gt, freshItem as Wt, isRequired as Kt, evaluateCondition as Ye, deepMerge as Me } from "@aeriajs/common";
3
+ import { useScrollObserver as Ze, useBreakpoints as qe, useMask as zt, PAGINATION_PER_PAGE_DEFAULTS as Mt, API_URL as gt, request as qt, useDebounce as kt, isDocumentComplete as Ft, getObjectKey as Ut, convertToSearchQuery as Et, useAction as Ht, convertFromSearchQuery as Dt, useParentCollectionStore as Ke, usePasswordPolicy as Qt } from "@aeria-ui/core";
4
+ import { arraysIntersect as Vt, deepClone as Ve, getReferenceProperty as me, convertConditionToQuery as Gt, freshItem as Wt, isRequired as Kt, evaluateCondition as Ye, deepMerge as Me } from "@aeriajs/common";
5
5
  import { useStore as ie, getStoreId as Fe, useParentStore as Ie, STORE_ID as Ue, getGlobalStateManager as Pe } from "@aeria-ui/state-management";
6
6
  import { useRouter as Ae } from "vue-router";
7
7
  const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
@@ -30,10 +30,10 @@ const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
30
30
  }, [
31
31
  x((t(), s("div", {
32
32
  class: "accordion__header",
33
- onClick: (d) => r.value === c ? r.value = null : r.value = c
33
+ onClick: (p) => r.value === c ? r.value = null : r.value = c
34
34
  }, [
35
- n.enumerate ? (t(), s("span", Yt, g(_ + 1) + ". ", 1)) : y("", !0),
36
- W(" " + g(n.headers[c] ? l(n.headers[c]) : e(L)(c)), 1)
35
+ n.enumerate ? (t(), s("span", Yt, k(_ + 1) + ". ", 1)) : y("", !0),
36
+ W(" " + k(n.headers[c] ? l(n.headers[c]) : e(L)(c)), 1)
37
37
  ], 8, Xt)), [
38
38
  [i]
39
39
  ]),
@@ -97,13 +97,14 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
97
97
  props: {
98
98
  icon: {},
99
99
  size: {},
100
+ fill: {},
100
101
  medium: { type: Boolean },
101
- reactive: { type: [Boolean, null] },
102
+ reactive: { type: Boolean },
102
103
  iconRight: { type: Boolean },
103
- fill: {}
104
+ active: { type: Boolean }
104
105
  },
105
106
  setup(u) {
106
- const r = u, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), n = Q(() => {
107
+ const r = u, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), n = G(() => {
107
108
  var a;
108
109
  return (a = r.icon) != null && a.includes(":") ? r.icon : `regular:${r.icon}`;
109
110
  });
@@ -111,6 +112,7 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
111
112
  class: X(`
112
113
  icon
113
114
  ${e(l) && "icon--reactive"}
115
+ ${a.active && "icon--active"}
114
116
  ${a.$slots.default ? "icon--centered" : "icon--standalone"}
115
117
  `)
116
118
  }, [
@@ -121,7 +123,7 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
121
123
  ${a.iconRight && "icon__icon--right"}
122
124
  `)
123
125
  }, [
124
- (t(), s("svg", H({
126
+ (t(), s("svg", Q({
125
127
  width: "24",
126
128
  height: "24",
127
129
  viewBox: "0 0 256 256",
@@ -140,7 +142,7 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
140
142
  ], 2));
141
143
  }
142
144
  });
143
- const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { class: "panel__header-left" }, on = { key: 1 }, an = {
145
+ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0826507c"]]), nn = { class: "panel__header-left" }, on = { key: 1 }, an = {
144
146
  key: 2,
145
147
  style: { "margin-left": "auto" }
146
148
  }, ln = /* @__PURE__ */ E({
@@ -167,11 +169,11 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { clas
167
169
  },
168
170
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
169
171
  setup(u, { emit: r }) {
170
- const l = u, n = r, a = Q(() => l.floating || l.float), i = J(l.collapsed), c = J(null), { reachedEnd: _ } = Ze(c), d = () => {
172
+ const l = u, n = r, a = G(() => l.floating || l.float), i = J(l.collapsed), c = J(null), { reachedEnd: _ } = Ze(c), p = () => {
171
173
  n("update:modelValue", !1), n("close");
172
174
  }, h = () => {
173
175
  n("overlayClick");
174
- }, p = (o) => {
176
+ }, d = (o) => {
175
177
  n("update:collapsed", o), i.value = o;
176
178
  };
177
179
  return (o, m) => {
@@ -197,7 +199,7 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { clas
197
199
  ${o.transparentMobile && "panel__content--transparent-mobile"}
198
200
  ${o.outerHeader && "panel__content--outer-header"}
199
201
  `),
200
- onClick: m[2] || (m[2] = (T) => T.stopPropagation())
202
+ onClick: m[2] || (m[2] = (j) => j.stopPropagation())
201
203
  }, {
202
204
  default: v(() => [
203
205
  o.$slots.header || o.title ? (t(), s("div", {
@@ -209,7 +211,7 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { clas
209
211
  `)
210
212
  }, [
211
213
  C("div", nn, [
212
- o.$slots.header ? O(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (t(), s("div", on, g(o.title), 1)) : y("", !0),
214
+ o.$slots.header ? O(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (t(), s("div", on, k(o.title), 1)) : y("", !0),
213
215
  o.$slots.extra ? (t(), s("div", an, [
214
216
  O(o.$slots, "extra", {}, void 0, !0)
215
217
  ])) : y("", !0)
@@ -218,21 +220,21 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { clas
218
220
  key: 0,
219
221
  reactive: "",
220
222
  icon: "plus",
221
- onClick: m[0] || (m[0] = (T) => p(!i.value))
223
+ onClick: m[0] || (m[0] = (j) => d(!i.value))
222
224
  }, null, 512)), [
223
225
  [A]
224
226
  ]) : o.collapsible && !i.value ? x((t(), $(Z, {
225
227
  key: 1,
226
228
  reactive: "",
227
229
  icon: "minus",
228
- onClick: m[1] || (m[1] = (T) => p(!i.value))
230
+ onClick: m[1] || (m[1] = (j) => d(!i.value))
229
231
  }, null, 512)), [
230
232
  [A]
231
233
  ]) : o.closeHint ? x((t(), $(Z, {
232
234
  key: 2,
233
235
  reactive: "",
234
236
  icon: "x",
235
- onClick: d
237
+ onClick: p
236
238
  }, null, 512)), [
237
239
  [A]
238
240
  ]) : y("", !0)
@@ -369,39 +371,39 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
369
371
  },
370
372
  emits: ["actionClick"],
371
373
  setup(u, { emit: r }) {
372
- It((d) => ({
373
- "0cfe51de": _.value.x,
374
- "0cfe51df": _.value.y
374
+ It((p) => ({
375
+ e0bbcfc0: _.value.x,
376
+ e0bbcfbe: _.value.y
375
377
  }));
376
- const l = r, n = J(null), a = J(!1), i = (d) => d == null ? void 0 : d.filter((h) => {
378
+ const l = r, n = J(null), a = J(!1), i = (p) => p == null ? void 0 : p.filter((h) => {
377
379
  if (h.roles) {
378
- const p = ie("user");
379
- return Vt(h.roles, p.currentUser.roles);
380
+ const d = ie("user");
381
+ return Vt(h.roles, d.currentUser.roles);
380
382
  }
381
383
  return !0;
382
- }), c = (d, h) => {
383
- const p = ke(h);
384
- d.click(p), l("actionClick", {
385
- action: d,
386
- subject: p
384
+ }), c = (p, h) => {
385
+ const d = Ve(h);
386
+ p.click(d), l("actionClick", {
387
+ action: p,
388
+ subject: d
387
389
  }), a.value = !1;
388
- }, _ = Q(() => {
390
+ }, _ = G(() => {
389
391
  if (!n.value)
390
392
  return {
391
393
  x: 0,
392
394
  y: 0
393
395
  };
394
- const d = n.value.getBoundingClientRect().top, h = n.value.getBoundingClientRect().left, p = n.value.offsetHeight;
396
+ const p = n.value.getBoundingClientRect().top, h = n.value.getBoundingClientRect().left, d = n.value.offsetHeight;
395
397
  return {
396
398
  _: a.value,
397
399
  x: Math.floor(h) + "px",
398
- y: Math.floor(d + p) + "px"
400
+ y: Math.floor(p + d) + "px"
399
401
  };
400
402
  });
401
- return (d, h) => {
402
- const p = oe("overlay");
403
+ return (p, h) => {
404
+ const d = oe("overlay");
403
405
  return t(), s(N, null, [
404
- Object.keys(d.$slots).some((o) => o !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
406
+ Object.keys(p.$slots).some((o) => o !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (t(), s("div", {
405
407
  key: 0,
406
408
  ref_key: "contextmenu",
407
409
  ref: n,
@@ -411,7 +413,9 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
411
413
  class: "contextmenu__trigger",
412
414
  onClick: h[0] || (h[0] = (o) => a.value = !0)
413
415
  }, [
414
- O(d.$slots, "default", {}, void 0, !0)
416
+ O(p.$slots, "default", de(ge({
417
+ visible: a.value
418
+ })), void 0, !0)
415
419
  ])
416
420
  ], 512)) : y("", !0),
417
421
  a.value ? (t(), $(Je, {
@@ -428,33 +432,33 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
428
432
  }, {
429
433
  default: v(() => [
430
434
  C("div", vn, [
431
- d.$slots.header ? (t(), s("div", yn, [
432
- O(d.$slots, "header", {}, void 0, !0)
435
+ p.$slots.header ? (t(), s("div", yn, [
436
+ O(p.$slots, "header", {}, void 0, !0)
433
437
  ])) : y("", !0),
434
- Object.keys(d.$slots).filter((o) => !["default", "extra", "header"].includes(o)).length > 0 ? (t(), s("div", {
438
+ Object.keys(p.$slots).filter((o) => !["default", "extra", "header"].includes(o)).length > 0 ? (t(), s("div", {
435
439
  key: 1,
436
440
  class: "content__section",
437
441
  onClick: h[1] || (h[1] = (o) => a.value = !1)
438
442
  }, [
439
- (t(!0), s(N, null, D(Object.keys(d.$slots).filter((o) => !["default", "extra", "header"].includes(o)), (o, m) => (t(), $(ve, {
443
+ (t(!0), s(N, null, D(Object.keys(p.$slots).filter((o) => !["default", "extra", "header"].includes(o)), (o, m) => (t(), $(ve, {
440
444
  key: `slot-${m}`,
441
445
  class: "content__item content__item--reactive"
442
446
  }, {
443
447
  default: v(() => [
444
- O(d.$slots, o, {}, void 0, !0)
448
+ O(p.$slots, o, {}, void 0, !0)
445
449
  ]),
446
450
  _: 2
447
451
  }, 1024))), 128))
448
452
  ])) : y("", !0),
449
- d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
453
+ p.actions !== void 0 && p.actions.length > 0 ? (t(), s("div", {
450
454
  key: 2,
451
455
  class: "content__section",
452
456
  onClick: h[2] || (h[2] = (o) => a.value = !1)
453
457
  }, [
454
- (t(!0), s(N, null, D(i(d.actions), (o, m) => (t(), $(ve, {
458
+ (t(!0), s(N, null, D(i(p.actions), (o, m) => (t(), $(ve, {
455
459
  key: `action-${m}`,
456
460
  class: "content__item content__item--reactive",
457
- onClick: (A) => c(o, d.subject)
461
+ onClick: (A) => c(o, p.subject)
458
462
  }, {
459
463
  default: v(() => [
460
464
  o.icon ? (t(), $(Z, {
@@ -462,7 +466,7 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
462
466
  icon: o.icon
463
467
  }, {
464
468
  default: v(() => [
465
- W(g(o.translate ? e(L)(o.label, { capitalize: !0 }) : o.label), 1)
469
+ W(k(o.translate ? e(L)(o.label, { capitalize: !0 }) : o.label), 1)
466
470
  ]),
467
471
  _: 2
468
472
  }, 1032, ["icon"])) : y("", !0)
@@ -470,13 +474,13 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
470
474
  _: 2
471
475
  }, 1032, ["onClick"]))), 128))
472
476
  ])) : y("", !0),
473
- d.$slots.extra ? (t(), s("div", {
477
+ p.$slots.extra ? (t(), s("div", {
474
478
  key: 3,
475
479
  class: "content__section",
476
480
  onClick: h[3] || (h[3] = (o) => a.value = !1)
477
481
  }, [
478
482
  C("div", hn, [
479
- d.$slots.extra ? O(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
483
+ p.$slots.extra ? O(p.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
480
484
  ])
481
485
  ])) : y("", !0)
482
486
  ])
@@ -484,9 +488,9 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
484
488
  _: 3
485
489
  }, 8, ["modelValue"])), [
486
490
  [
487
- p,
491
+ d,
488
492
  {
489
- layer: d.overlayLayer,
493
+ layer: p.overlayLayer,
490
494
  click: () => {
491
495
  a.value = !1;
492
496
  }
@@ -500,7 +504,7 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
500
504
  };
501
505
  }
502
506
  });
503
- const Ce = /* @__PURE__ */ K(bn, [["__scopeId", "data-v-66a4ee79"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ E({
507
+ const Ce = /* @__PURE__ */ K(bn, [["__scopeId", "data-v-c28b8435"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ E({
504
508
  __name: "aeria-info",
505
509
  props: {
506
510
  where: { default: "top" }
@@ -554,9 +558,9 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
554
558
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
555
559
  setup(u, { emit: r }) {
556
560
  var B;
557
- const l = u, n = r, a = l.property || {}, i = "icon" in a || "inputType" in a && a.inputType === "search", c = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), d = !c && (l.readOnly || a.readOnly), h = (R) => (n("clipboardCopy", R), navigator.clipboard.writeText(R)), p = _e("inputVariant", l.variant) || "normal", o = {
561
+ const l = u, n = r, a = l.property || {}, i = "icon" in a || "inputType" in a && a.inputType === "search", c = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), p = !c && (l.readOnly || a.readOnly), h = (R) => (n("clipboardCopy", R), navigator.clipboard.writeText(R)), d = _e("inputVariant", l.variant) || "normal", o = {
558
562
  name: l.propertyName,
559
- readonly: d,
563
+ readonly: p,
560
564
  type: (() => {
561
565
  if ("type" in a)
562
566
  switch (a.type) {
@@ -578,23 +582,43 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
578
582
  placeholder: _ ? a.description || l.propertyName : a.placeholder
579
583
  };
580
584
  "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (o.min = a.minimum), a.exclusiveMinimum && (o.min = a.exclusiveMinimum + 1), a.maximum && (o.max = a.maximum), a.exclusiveMaximum && (o.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (o.type = !c && a.format === "date-time" ? "datetime-local" : "date"), o.minlength = a.minLength, o.maxlength = a.maxLength)), o.type === "text" && c && (o.type = "search"), bt(() => {
581
- l.modelValue !== null && T(l.modelValue);
585
+ l.modelValue !== null && j(l.modelValue);
582
586
  });
583
- const m = () => {
587
+ const m = (R) => {
584
588
  try {
585
- return l.modelValue ? new Date(l.modelValue).toISOString().split("T").shift() : "";
589
+ return typeof R == "string" ? new Date(R).toISOString().slice(0, 19) : "";
586
590
  } catch {
587
591
  return "";
588
592
  }
589
- }, A = J([
590
- "date",
591
- "date-time"
592
- ].includes(o.type) ? m() : l.modelValue === null || l.modelValue === void 0 ? "" : l.modelValue), b = ((B = l.property) == null ? void 0 : B.type) === "string" && l.property.mask ? zt(l.property.mask) : null, S = (R) => {
593
+ }, A = J(""), b = ((B = l.property) == null ? void 0 : B.type) === "string" && l.property.mask ? zt(l.property.mask) : null;
594
+ ue(() => l.modelValue, (R) => {
595
+ A.value = (() => {
596
+ if (b)
597
+ return R ? b.enmask(String(R), void 0, {
598
+ defaultValue: !0
599
+ }) : "";
600
+ switch (o.type) {
601
+ case "date":
602
+ case "datetime-local":
603
+ return m(R);
604
+ }
605
+ switch (R) {
606
+ case null:
607
+ case void 0:
608
+ return "";
609
+ default:
610
+ return R;
611
+ }
612
+ })();
613
+ }, {
614
+ immediate: !0
615
+ });
616
+ const S = (R) => {
593
617
  var Y;
594
618
  return typeof A.value == "string" && ((Y = l.property) == null ? void 0 : Y.type) === "string" && b !== null ? (A.value = b.enmask(A.value, void 0, {
595
619
  defaultValue: !0
596
620
  }), l.property.maskedValue === !0 ? A.value : b.unmask(A.value)) : R;
597
- }, T = (R) => {
621
+ }, j = (R) => {
598
622
  const Y = (() => {
599
623
  if (!R || typeof R != "string")
600
624
  return R;
@@ -613,13 +637,9 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
613
637
  n("input", Y), n("update:modelValue", Y);
614
638
  }, P = (R) => {
615
639
  const Y = R.target.value;
616
- A.value = Y, T(Y);
640
+ A.value = Y, j(Y);
617
641
  };
618
- return ue(() => l.modelValue, (R, Y) => {
619
- R instanceof Date || (Y && !R ? A.value = void 0 : A.value = b ? b.enmask(String(R), void 0, {
620
- defaultValue: !0
621
- }) : String(R));
622
- }), (R, Y) => {
642
+ return (R, Y) => {
623
643
  const w = oe("focus"), te = oe("clickable");
624
644
  return t(), s("label", Vn, [
625
645
  e(_) ? y("", !0) : (t(), s("div", Cn, [
@@ -632,7 +652,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
632
652
  key: 2,
633
653
  class: X(`
634
654
  input__container
635
- input__container--${e(p)}
655
+ input__container--${e(d)}
636
656
  `)
637
657
  }, [
638
658
  x(C("textarea", {
@@ -641,7 +661,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
641
661
  value: R.modelValue,
642
662
  class: X(`
643
663
  input__textarea
644
- input__input--${e(p)}
664
+ input__input--${e(d)}
645
665
  `),
646
666
  onInput: P
647
667
  }, null, 42, In), [
@@ -651,20 +671,20 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
651
671
  key: 3,
652
672
  class: X(`
653
673
  input__container
654
- input__container--${e(p)}
674
+ input__container--${e(d)}
655
675
  `)
656
676
  }, [
657
- x(C("input", H(o, {
677
+ x(C("input", Q(o, {
658
678
  value: A.value,
659
679
  "data-component": "input",
660
680
  class: `
661
681
  input__input
662
- input__input--${e(p)}
682
+ input__input--${e(d)}
663
683
  ${e(i) && "input__input--icon"}
664
- ${e(d) && "input__input--readOnly"}
684
+ ${e(p) && "input__input--readOnly"}
665
685
  `,
666
686
  onInput: P,
667
- onChange: Y[0] || (Y[0] = (k) => n("change", k))
687
+ onChange: Y[0] || (Y[0] = (V) => n("change", V))
668
688
  }), null, 16, An), [
669
689
  [w, e(a).focus]
670
690
  ]),
@@ -673,19 +693,19 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
673
693
  icon: e(a).icon || "magnifying-glass",
674
694
  class: X(`
675
695
  input__icon
676
- input__icon--${e(p)}
696
+ input__icon--${e(d)}
677
697
  `)
678
698
  }, null, 8, ["icon", "class"])) : y("", !0),
679
- e(d) ? (t(), s("div", Bn, [
680
- q(kn, null, {
699
+ e(p) ? (t(), s("div", Bn, [
700
+ F(kn, null, {
681
701
  text: v(() => [
682
702
  W("Copiar")
683
703
  ]),
684
704
  default: v(() => [
685
- x(q(Z, {
705
+ x(F(Z, {
686
706
  reactive: "",
687
707
  icon: "clipboard",
688
- onClick: Y[1] || (Y[1] = ze((k) => h(String(R.modelValue || "")), ["prevent"]))
708
+ onClick: Y[1] || (Y[1] = ze((V) => h(String(R.modelValue || "")), ["prevent"]))
689
709
  }, null, 512), [
690
710
  [te]
691
711
  ])
@@ -698,10 +718,10 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
698
718
  };
699
719
  }
700
720
  });
701
- const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-4a9b239e"]]), Sn = ["value"], jn = {
721
+ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-28a4ba0c"]]), Sn = ["value"], Tn = {
702
722
  key: 1,
703
723
  value: ""
704
- }, Tn = ["value", "data-selected"], Rn = /* @__PURE__ */ E({
724
+ }, jn = ["value", "data-selected"], Rn = /* @__PURE__ */ E({
705
725
  __name: "aeria-select",
706
726
  props: {
707
727
  modelValue: {},
@@ -716,13 +736,13 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-4a9b239e"]]), Sn = ["val
716
736
  },
717
737
  emits: ["update:modelValue", "change"],
718
738
  setup(u, { emit: r }) {
719
- const l = u, n = r, a = J(null), i = l.property, c = (p) => {
720
- l.booleanRef && (_.value = p), n("update:modelValue", (p == null ? void 0 : p._id) || p), n("change", (p == null ? void 0 : p._id) || p);
739
+ const l = u, n = r, a = J(null), i = l.property, c = (d) => {
740
+ l.booleanRef && (_.value = d), n("update:modelValue", (d == null ? void 0 : d._id) || d), n("change", (d == null ? void 0 : d._id) || d);
721
741
  }, _ = l.booleanRef ? (() => {
722
- const p = J(l.modelValue);
723
- return Q({
742
+ const d = J(l.modelValue);
743
+ return G({
724
744
  get: () => {
725
- switch (p.value) {
745
+ switch (d.value) {
726
746
  case "true":
727
747
  return !0;
728
748
  case "false":
@@ -732,20 +752,20 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-4a9b239e"]]), Sn = ["val
732
752
  }
733
753
  },
734
754
  set: (m) => {
735
- p.value = m;
755
+ d.value = m;
736
756
  }
737
757
  });
738
- })() : Q({
758
+ })() : G({
739
759
  get: () => l.modelValue,
740
760
  set: c
741
- }), d = (p) => Array.isArray(l.modelValue) ? l.modelValue.includes(p) : l.modelValue === p, h = Q(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
742
- return l.multiple && ue(() => l.modelValue, (p) => {
761
+ }), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, h = G(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
762
+ return l.multiple && ue(() => l.modelValue, (d) => {
743
763
  var m;
744
764
  if (!a.value)
745
765
  return;
746
766
  const o = a.value.querySelector('option[data-selected="true"]');
747
- o && o.removeAttribute("data-selected"), (m = a.value.querySelector(`option[value="${p}"]`)) == null || m.setAttribute("data-selected", "true");
748
- }), (p, o) => (t(), s("select", H({
767
+ o && o.removeAttribute("data-selected"), (m = a.value.querySelector(`option[value="${d}"]`)) == null || m.setAttribute("data-selected", "true");
768
+ }), (d, o) => (t(), s("select", Q({
749
769
  ref_key: "select",
750
770
  ref: a,
751
771
  value: e(_)
@@ -755,7 +775,7 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-4a9b239e"]]), Sn = ["val
755
775
  class: {
756
776
  select: !0,
757
777
  "select--multiple": !!h.value,
758
- "select--outline": !p.noOutline
778
+ "select--outline": !d.noOutline
759
779
  },
760
780
  onChange: o[0] || (o[0] = (m) => c(m.target.value))
761
781
  }), [
@@ -763,16 +783,16 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-4a9b239e"]]), Sn = ["val
763
783
  key: 0,
764
784
  icon: e(i).icon
765
785
  }, null, 8, ["icon"])) : y("", !0),
766
- l.multiple ? y("", !0) : (t(), s("option", jn, g(e(L)("none")), 1)),
786
+ l.multiple ? y("", !0) : (t(), s("option", Tn, k(e(L)("none")), 1)),
767
787
  (t(!0), s(N, null, D(e(i) && "enum" in e(i) ? e(i).enum : [], (m) => {
768
788
  var A;
769
789
  return t(), s("option", {
770
790
  key: m,
771
791
  value: m,
772
- "data-selected": d(m)
773
- }, g((A = e(i)) != null && A.translate ? e(L)(m) : m), 9, Tn);
792
+ "data-selected": p(m)
793
+ }, k((A = e(i)) != null && A.translate ? e(L)(m) : m), 9, jn);
774
794
  }), 128)),
775
- O(p.$slots, "default", {}, void 0, !0)
795
+ O(d.$slots, "default", {}, void 0, !0)
776
796
  ], 16, Sn));
777
797
  }
778
798
  });
@@ -783,17 +803,17 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
783
803
  },
784
804
  emits: ["paginate"],
785
805
  setup(u, { emit: r }) {
786
- const l = u, n = r, a = Q({
806
+ const l = u, n = r, a = G({
787
807
  get: () => Math.floor(l.pagination.offset / l.pagination.limit),
788
808
  set: (h) => {
789
809
  l.pagination.offset = h * l.pagination.limit;
790
810
  }
791
- }), i = Q({
811
+ }), i = G({
792
812
  get: () => l.pagination.limit,
793
813
  set: (h) => {
794
814
  l.pagination.limit = Number(h);
795
815
  }
796
- }), c = J(a.value ? a.value + 1 : 1), _ = Q(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), d = (h) => {
816
+ }), c = J(a.value ? a.value + 1 : 1), _ = G(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (h) => {
797
817
  a.value = h === "previous" ? a.value - 1 : a.value + 1;
798
818
  };
799
819
  return ue([
@@ -804,10 +824,10 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
804
824
  offset: a.value * i.value,
805
825
  limit: i.value
806
826
  });
807
- }), (h, p) => (t(), s("div", Ln, [
808
- q(Ge, {
827
+ }), (h, d) => (t(), s("div", Ln, [
828
+ F(Ge, {
809
829
  modelValue: i.value,
810
- "onUpdate:modelValue": p[0] || (p[0] = (o) => i.value = o),
830
+ "onUpdate:modelValue": d[0] || (d[0] = (o) => i.value = o),
811
831
  property: {
812
832
  enum: [],
813
833
  icon: "list"
@@ -818,28 +838,28 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
818
838
  (t(!0), s(N, null, D(e(Mt), (o) => (t(), s("option", {
819
839
  key: `limit-${o}`,
820
840
  value: o
821
- }, g(o), 9, zn))), 128))
841
+ }, k(o), 9, zn))), 128))
822
842
  ]),
823
843
  _: 1
824
844
  }, 8, ["modelValue"]),
825
845
  C("div", Mn, [
826
- q(ve, {
827
- onClick: p[1] || (p[1] = (o) => a.value = 0)
846
+ F(ve, {
847
+ onClick: d[1] || (d[1] = (o) => a.value = 0)
828
848
  }, {
829
849
  default: v(() => [
830
- q(Z, {
850
+ F(Z, {
831
851
  reactive: "",
832
852
  icon: "caret-double-left"
833
853
  })
834
854
  ]),
835
855
  _: 1
836
856
  }),
837
- q(ve, {
857
+ F(ve, {
838
858
  disabled: a.value === 0,
839
- onClick: p[2] || (p[2] = (o) => d("previous"))
859
+ onClick: d[2] || (d[2] = (o) => p("previous"))
840
860
  }, {
841
861
  default: v(() => [
842
- q(Z, {
862
+ F(Z, {
843
863
  reactive: "",
844
864
  icon: "caret-left"
845
865
  })
@@ -850,34 +870,34 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
850
870
  (t(), $(Oe, {
851
871
  key: a.value,
852
872
  modelValue: c.value,
853
- "onUpdate:modelValue": p[3] || (p[3] = (o) => c.value = o),
873
+ "onUpdate:modelValue": d[3] || (d[3] = (o) => c.value = o),
854
874
  property: {
855
875
  type: "number",
856
876
  minimum: 1
857
877
  },
858
- onChange: p[4] || (p[4] = (o) => {
878
+ onChange: d[4] || (d[4] = (o) => {
859
879
  a.value = c.value === 0 ? 0 : c.value - 1;
860
880
  })
861
881
  }, null, 8, ["modelValue"])),
862
- C("span", null, g(e(L)("of")) + " " + g(_.value), 1)
882
+ C("span", null, k(e(L)("of")) + " " + k(_.value), 1)
863
883
  ]),
864
- q(ve, {
884
+ F(ve, {
865
885
  disabled: a.value === _.value - 1,
866
- onClick: p[5] || (p[5] = (o) => d("next"))
886
+ onClick: d[5] || (d[5] = (o) => p("next"))
867
887
  }, {
868
888
  default: v(() => [
869
- q(Z, {
889
+ F(Z, {
870
890
  reactive: "",
871
891
  icon: "caret-right"
872
892
  })
873
893
  ]),
874
894
  _: 1
875
895
  }, 8, ["disabled"]),
876
- q(ve, {
877
- onClick: p[6] || (p[6] = (o) => a.value = _.value - 1)
896
+ F(ve, {
897
+ onClick: d[6] || (d[6] = (o) => a.value = _.value - 1)
878
898
  }, {
879
899
  default: v(() => [
880
- q(Z, {
900
+ F(Z, {
881
901
  reactive: "",
882
902
  icon: "caret-double-right"
883
903
  })
@@ -888,7 +908,7 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
888
908
  ]));
889
909
  }
890
910
  });
891
- const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { class: "checkbox__text" }, Dn = ["innerHTML"], Hn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
911
+ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { class: "checkbox__text" }, Hn = ["innerHTML"], Dn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
892
912
  inheritAttrs: !1
893
913
  }, Wn = /* @__PURE__ */ E({
894
914
  ...Gn,
@@ -913,19 +933,19 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
913
933
  return "checkbox";
914
934
  }
915
935
  return "radio";
916
- })(), c = r, _ = l.value || !1, d = Q({
936
+ })(), c = r, _ = l.value || !1, p = G({
917
937
  get: () => {
918
- var p;
938
+ var d;
919
939
  if (n) {
920
940
  if ("type" in n && n.type === "boolean")
921
941
  return !!l.value;
922
942
  if ("items" in n)
923
- return (p = l.modelValue) == null ? void 0 : p.includes(l.value);
943
+ return (d = l.modelValue) == null ? void 0 : d.includes(l.value);
924
944
  }
925
945
  return l.modelValue === l.value;
926
946
  },
927
947
  set: () => {
928
- var p;
948
+ var d;
929
949
  if (!a) {
930
950
  if (n) {
931
951
  if ("type" in n && n.type === "boolean") {
@@ -933,7 +953,7 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
933
953
  return;
934
954
  }
935
955
  if ("items" in n) {
936
- if ((p = l.modelValue) != null && p.includes(_)) {
956
+ if ((d = l.modelValue) != null && d.includes(_)) {
937
957
  c("update:modelValue", l.modelValue.filter((o) => o !== _));
938
958
  return;
939
959
  }
@@ -944,10 +964,10 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
944
964
  c("update:modelValue", l.value);
945
965
  }
946
966
  }
947
- }), h = (p) => {
948
- a && p.preventDefault();
967
+ }), h = (d) => {
968
+ a && d.preventDefault();
949
969
  };
950
- return (p, o) => {
970
+ return (d, o) => {
951
971
  var A, b;
952
972
  const m = oe("clickable");
953
973
  return x((t(), s("label", {
@@ -956,27 +976,27 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
956
976
  ${e(a) && "checkbox--readOnly"}
957
977
  `)
958
978
  }, [
959
- x(C("input", H({
960
- "onUpdate:modelValue": o[0] || (o[0] = (S) => d.value = S)
979
+ x(C("input", Q({
980
+ "onUpdate:modelValue": o[0] || (o[0] = (S) => p.value = S)
961
981
  }, {
962
982
  type: e(i),
963
983
  readOnly: e(a),
964
- checked: d.value
984
+ checked: p.value
965
985
  }, {
966
986
  class: "checkbox__input",
967
987
  onClick: h
968
988
  }), null, 16), [
969
- [At, d.value]
989
+ [At, p.value]
970
990
  ]),
971
991
  C("div", En, [
972
992
  C("div", null, [
973
- p.$slots.description ? O(p.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), s("div", {
993
+ d.$slots.description ? O(d.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), s("div", {
974
994
  key: 1,
975
995
  innerHTML: (A = e(n)) != null && A.translate ? e(L)(e(_)) : e(_)
976
- }, null, 8, Dn)) : O(p.$slots, "default", { key: 2 }, void 0, !0)
996
+ }, null, 8, Hn)) : O(d.$slots, "default", { key: 2 }, void 0, !0)
977
997
  ]),
978
- C("div", Hn, [
979
- p.$slots.hint ? O(p.$slots, "hint", { key: 0 }, void 0, !0) : (b = e(n)) != null && b.hint ? (t(), s("div", {
998
+ C("div", Dn, [
999
+ d.$slots.hint ? O(d.$slots, "hint", { key: 0 }, void 0, !0) : (b = e(n)) != null && b.hint ? (t(), s("div", {
980
1000
  key: 1,
981
1001
  innerHTML: e(n).hint
982
1002
  }, null, 8, Qn)) : y("", !0)
@@ -1012,7 +1032,7 @@ const Kn = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1012
1032
  "update:modelValue",
1013
1033
  "items" in l.property ? [] : ""
1014
1034
  );
1015
- }), (_, d) => (t(), s("div", {
1035
+ }), (_, p) => (t(), s("div", {
1016
1036
  class: "options",
1017
1037
  style: be(`
1018
1038
  --columns: ${_.columns};
@@ -1023,7 +1043,7 @@ const Kn = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1023
1043
  key: `option-${h}`,
1024
1044
  class: "options__checkbox"
1025
1045
  }, [
1026
- q(Kn, H({ ref_for: !0 }, {
1046
+ F(Kn, Q({ ref_for: !0 }, {
1027
1047
  value: h,
1028
1048
  readOnly: e(a),
1029
1049
  property: _.property
@@ -1035,7 +1055,7 @@ const Kn = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1035
1055
  ], 4));
1036
1056
  }
1037
1057
  });
1038
- const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) => (He("data-v-0e3564b6"), u = u(), Qe(), u), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ C("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
1058
+ const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) => (De("data-v-0e3564b6"), u = u(), Qe(), u), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ C("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
1039
1059
  inheritAttrs: !1
1040
1060
  }, to = /* @__PURE__ */ E({
1041
1061
  ...eo,
@@ -1053,8 +1073,8 @@ const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) =
1053
1073
  const l = u, n = r, a = l.property, i = l.readOnly || (a == null ? void 0 : a.readOnly), c = () => {
1054
1074
  i || (n("change", !l.modelValue), n("update:modelValue", !l.modelValue));
1055
1075
  };
1056
- return (_, d) => {
1057
- var p;
1076
+ return (_, p) => {
1077
+ var d;
1058
1078
  const h = oe("clickable");
1059
1079
  return t(), s("div", Pn, [
1060
1080
  x((t(), s("a", {
@@ -1077,12 +1097,12 @@ const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) =
1077
1097
  blocked: e(i)
1078
1098
  }]
1079
1099
  ]),
1080
- _.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (t(), s("div", xn, g(((p = e(a)) == null ? void 0 : p.description) || _.propertyName), 1))
1100
+ _.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (t(), s("div", xn, k(((d = e(a)) == null ? void 0 : d.description) || _.propertyName), 1))
1081
1101
  ]);
1082
1102
  };
1083
1103
  }
1084
1104
  });
1085
- const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) => (He("data-v-153a2e0f"), u = u(), Qe(), u), oo = { class: "picture" }, ao = {
1105
+ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) => (De("data-v-153a2e0f"), u = u(), Qe(), u), oo = { class: "picture" }, ao = {
1086
1106
  key: 0,
1087
1107
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1088
1108
  }, lo = ["src", "alt"], so = {
@@ -1120,7 +1140,7 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1120
1140
  meta: {}
1121
1141
  },
1122
1142
  setup(u) {
1123
- const r = u, l = Q(() => r.fileId ? `${gt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = J(!1);
1143
+ const r = u, l = G(() => r.fileId ? `${gt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = J(!1);
1124
1144
  return (a, i) => {
1125
1145
  var _;
1126
1146
  const c = oe("overlay");
@@ -1137,9 +1157,9 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1137
1157
  max-height: 60vh;
1138
1158
  object-fit: contain;
1139
1159
  `,
1140
- onClick: i[0] || (i[0] = (d) => n.value = !0)
1160
+ onClick: i[0] || (i[0] = (p) => n.value = !0)
1141
1161
  }, null, 8, lo),
1142
- (_ = a.meta) != null && _.owner ? (t(), s("div", so, " Criado por " + g(a.meta.owner.name) + " em " + g(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1162
+ (_ = a.meta) != null && _.owner ? (t(), s("div", so, " Criado por " + k(a.meta.owner.name) + " em " + k(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1143
1163
  ])), [
1144
1164
  [c, {
1145
1165
  click: () => {
@@ -1185,7 +1205,7 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1185
1205
  };
1186
1206
  }
1187
1207
  });
1188
- const De = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
1208
+ const He = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
1189
1209
  key: 1,
1190
1210
  class: "file__actions"
1191
1211
  }, ho = ["accept"], bo = {
@@ -1209,22 +1229,22 @@ const De = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1209
1229
  emits: ["update:content", "change", "update:modelValue"],
1210
1230
  setup(u, { emit: r }) {
1211
1231
  var A;
1212
- const l = u, n = r, i = Fe() ? Ie() : null, c = J(((A = l.modelValue) == null ? void 0 : A.file) || null), _ = Q(() => {
1232
+ const l = u, n = r, i = Fe() ? Ie() : null, c = J(((A = l.modelValue) == null ? void 0 : A.file) || null), _ = G(() => {
1213
1233
  var b;
1214
1234
  return c.value ? URL.createObjectURL(c.value) : (b = l.modelValue) == null ? void 0 : b.link;
1215
- }), d = Q(() => {
1216
- var b, S, T;
1217
- return /^image\//.test((b = l.modelValue) == null ? void 0 : b.type) && !((S = c.value) != null && S.type) || /^image\//.test((T = c.value) == null ? void 0 : T.type);
1235
+ }), p = G(() => {
1236
+ var b, S, j;
1237
+ return /^image\//.test((b = l.modelValue) == null ? void 0 : b.type) && !((S = c.value) != null && S.type) || /^image\//.test((j = c.value) == null ? void 0 : j.type);
1218
1238
  }), h = (b) => new Promise((S) => {
1219
- const T = new FileReader();
1220
- T.onload = () => S(T.result), T.readAsArrayBuffer(b);
1221
- }), p = () => {
1239
+ const j = new FileReader();
1240
+ j.onload = () => S(j.result), j.readAsArrayBuffer(b);
1241
+ }), d = () => {
1222
1242
  l.modelValue.tempId && n("update:modelValue", null), c.value = null;
1223
1243
  }, o = async (b) => {
1224
1244
  c.value = b.target.files[0];
1225
- const S = c.value, T = await h(S);
1245
+ const S = c.value, j = await h(S);
1226
1246
  if (i) {
1227
- const { data: { error: P, result: B } } = await qt(`${gt}/${i.$id}/upload?name=${S.name}`, T, {
1247
+ const { data: { error: P, result: B } } = await qt(`${gt}/${i.$id}/upload?name=${S.name}`, j, {
1228
1248
  params: {
1229
1249
  method: "POST",
1230
1250
  headers: {
@@ -1241,15 +1261,15 @@ const De = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1241
1261
  });
1242
1262
  } else
1243
1263
  n("update:modelValue", S);
1244
- n("update:content", T), n("change", T);
1264
+ n("update:content", j), n("change", j);
1245
1265
  }, m = async () => {
1246
1266
  n("update:modelValue", null);
1247
1267
  };
1248
1268
  return (b, S) => {
1249
- var T, P, B, R, Y, w;
1269
+ var j, P, B, R, Y, w;
1250
1270
  return t(), s("div", mo, [
1251
- c.value || (T = b.modelValue) != null && T._id ? (t(), s("div", fo, [
1252
- d.value ? (t(), $(De, {
1271
+ c.value || (j = b.modelValue) != null && j._id ? (t(), s("div", fo, [
1272
+ p.value ? (t(), $(He, {
1253
1273
  key: 0,
1254
1274
  modelValue: _.value,
1255
1275
  "onUpdate:modelValue": S[0] || (S[0] = (te) => _.value = te),
@@ -1263,7 +1283,7 @@ const De = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1263
1283
  (B = b.modelValue) != null && B._id ? (t(), s("a", {
1264
1284
  key: 1,
1265
1285
  href: b.modelValue.download_link
1266
- }, g(b.modelValue.name), 9, vo)) : y("", !0)
1286
+ }, k(b.modelValue.name), 9, vo)) : y("", !0)
1267
1287
  ])) : y("", !0),
1268
1288
  b.readOnly ? y("", !0) : (t(), s("div", yo, [
1269
1289
  C("input", {
@@ -1273,22 +1293,22 @@ const De = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1273
1293
  onChange: o
1274
1294
  }, null, 40, ho),
1275
1295
  c.value ? (t(), s("div", bo, [
1276
- q(re, {
1296
+ F(re, {
1277
1297
  small: "",
1278
- onClick: ze(p, ["prevent"])
1298
+ onClick: ze(d, ["prevent"])
1279
1299
  }, {
1280
1300
  default: v(() => [
1281
- W(g(e(L)("action.clear", { capitalize: !0 })), 1)
1301
+ W(k(e(L)("action.clear", { capitalize: !0 })), 1)
1282
1302
  ]),
1283
1303
  _: 1
1284
1304
  })
1285
1305
  ])) : (w = b.modelValue) != null && w._id ? (t(), s("div", $o, [
1286
- q(re, {
1306
+ F(re, {
1287
1307
  small: "",
1288
1308
  onClick: ze(m, ["prevent"])
1289
1309
  }, {
1290
1310
  default: v(() => [
1291
- W(g(e(L)("action.remove", { capitalize: !0 })), 1)
1311
+ W(k(e(L)("action.remove", { capitalize: !0 })), 1)
1292
1312
  ]),
1293
1313
  _: 1
1294
1314
  })
@@ -1339,12 +1359,12 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1339
1359
  },
1340
1360
  emits: ["update:modelValue", "change"],
1341
1361
  setup(u, { emit: r }) {
1342
- const l = Ae(), n = u, a = r, i = n.property, c = me(i), _ = Ie(), d = Q(() => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: m }) => n.item._id === m) : n.modelValue && n.modelValue._id === n.item._id), h = () => {
1343
- if (d.value)
1362
+ const l = Ae(), n = u, a = r, i = n.property, c = me(i), _ = Ie(), p = G(() => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: m }) => n.item._id === m) : n.modelValue && n.modelValue._id === n.item._id), h = () => {
1363
+ if (p.value)
1344
1364
  return;
1345
1365
  const m = (b) => b.filter((S) => !!(S != null && S._id)), A = "items" in i ? m(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : n.modelValue;
1346
1366
  Array.isArray(A) ? a("update:modelValue", A.concat([n.item])) : a("update:modelValue", n.item), a("change", n.item);
1347
- }, p = async (m) => {
1367
+ }, d = async (m) => {
1348
1368
  if (c.purge && (m != null && m.purge)) {
1349
1369
  const { _id: b } = n.item;
1350
1370
  await _.$actions.remove({
@@ -1354,7 +1374,7 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1354
1374
  });
1355
1375
  }
1356
1376
  const A = () => {
1357
- const b = [...n.modelValue], S = b.findIndex((T) => T._id === n.item._id);
1377
+ const b = [...n.modelValue], S = b.findIndex((j) => j._id === n.item._id);
1358
1378
  return b.splice(S, 1), b;
1359
1379
  };
1360
1380
  a("update:modelValue", "items" in i ? A() : null);
@@ -1369,23 +1389,23 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1369
1389
  });
1370
1390
  return;
1371
1391
  }
1372
- return d.value ? p() : h();
1392
+ return p.value ? d() : h();
1373
1393
  };
1374
1394
  return (m, A) => {
1375
1395
  const b = oe("clickable");
1376
1396
  return x((t(), s("div", {
1377
1397
  class: X({
1378
1398
  item: !0,
1379
- "item--selected": d.value
1399
+ "item--selected": p.value
1380
1400
  }),
1381
1401
  onClick: o
1382
1402
  }, [
1383
1403
  O(m.$slots, "default", {}, void 0, !0),
1384
1404
  C("div", Io, [
1385
- (t(!0), s(N, null, D(m.indexes, (S, T) => (t(), s("div", {
1386
- key: `index-${m.item._id}-${T}`,
1405
+ (t(!0), s(N, null, D(m.indexes, (S, j) => (t(), s("div", {
1406
+ key: `index-${m.item._id}-${j}`,
1387
1407
  class: "item__value"
1388
- }, g(m.item[S]), 1))), 128))
1408
+ }, k(m.item[S]), 1))), 128))
1389
1409
  ]),
1390
1410
  m.readOnly ? (t(), $(Z, {
1391
1411
  key: 0,
@@ -1398,7 +1418,7 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1398
1418
  };
1399
1419
  }
1400
1420
  });
1401
- const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { class: "search__panel" }, wo = { class: "search__input" }, So = ["value"], jo = { style: { flex: "1" } }, To = { key: 1 }, Ro = { key: 0 }, Lo = { key: 1 }, zo = { class: "search__summary" }, Mo = {
1421
+ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { class: "search__panel" }, wo = { class: "search__input" }, So = ["value"], To = { style: { flex: "1" } }, jo = { key: 1 }, Ro = { key: 0 }, Lo = { key: 1 }, zo = { class: "search__summary" }, Mo = {
1402
1422
  key: 1,
1403
1423
  class: "search"
1404
1424
  }, qo = { key: 0 }, Ee = 10, Fo = /* @__PURE__ */ E({
@@ -1415,16 +1435,16 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1415
1435
  },
1416
1436
  emits: ["update:modelValue", "change", "update:panel"],
1417
1437
  setup(u, { emit: r }) {
1418
- const l = u, n = me(l.property), a = l.panel !== void 0 ? Q(() => l.panel) : J(!1), i = r, c = ie(me(l.property).$ref), _ = Fe(), d = _ ? Ie() : null, h = n.indexes;
1438
+ const l = u, n = me(l.property), a = l.panel !== void 0 ? G(() => l.panel) : J(!1), i = r, c = ie(me(l.property).$ref), _ = Fe(), p = _ ? Ie() : null, h = n.indexes;
1419
1439
  ye(Ue, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1420
- const p = J(l.modelValue), o = J({
1440
+ const d = J(l.modelValue), o = J({
1421
1441
  data: [],
1422
1442
  pagination: {}
1423
- }), m = Q(() => o.value.data), A = Q(() => o.value.pagination), b = J(0), S = J(h[0]), T = J(!1), P = J({}), B = () => {
1443
+ }), m = G(() => o.value.data), A = G(() => o.value.pagination), b = J(0), S = J(h[0]), j = J(!1), P = J({}), B = () => {
1424
1444
  const z = {};
1425
1445
  if (_) {
1426
1446
  const U = e(_);
1427
- z[U] = d;
1447
+ z[U] = p;
1428
1448
  }
1429
1449
  return n.constraints ? Gt(n.constraints, z) : {};
1430
1450
  }, R = () => {
@@ -1470,23 +1490,23 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1470
1490
  }, [te] = kt({
1471
1491
  delay: 800
1472
1492
  })(() => {
1473
- b.value = 0, w(), T.value = !1;
1474
- }), k = () => {
1475
- T.value = !0, te();
1476
- }, j = () => {
1493
+ b.value = 0, w(), j.value = !1;
1494
+ }), V = () => {
1495
+ j.value = !0, te();
1496
+ }, T = () => {
1477
1497
  "effect" in a ? i("update:panel", !0) : a.value = !0, w();
1478
1498
  }, ae = () => {
1479
1499
  b.value = 0, o.value.data.splice(0), "effect" in a ? i("update:panel", !1) : a.value = !1;
1480
- }, le = Q(() => !Object.values(P.value).some((z) => !!z));
1500
+ }, le = G(() => !Object.values(P.value).some((z) => !!z));
1481
1501
  ue(le, (z, U) => {
1482
1502
  z && !U && w();
1483
1503
  }), bt(() => {
1484
1504
  l.selectOnly && w();
1485
1505
  });
1486
1506
  const ne = (z) => {
1487
- p.value = z, l.selectOnly || i("update:modelValue", z);
1507
+ d.value = z, l.selectOnly || i("update:modelValue", z);
1488
1508
  }, se = () => {
1489
- ae(), i("update:modelValue", p.value);
1509
+ ae(), i("update:modelValue", d.value);
1490
1510
  };
1491
1511
  return (z, U) => {
1492
1512
  const f = oe("clickable");
@@ -1495,7 +1515,7 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1495
1515
  key: 0,
1496
1516
  to: "main"
1497
1517
  }, [
1498
- q(Be, {
1518
+ F(Be, {
1499
1519
  float: "",
1500
1520
  "close-hint": "",
1501
1521
  title: `${e(L)("action.select", { capitalize: !0 })} ${e(L)(z.propertyName)}`,
@@ -1506,45 +1526,46 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1506
1526
  onOverlayClick: ae
1507
1527
  }, {
1508
1528
  footer: v(() => [
1509
- q(re, {
1529
+ F(re, {
1510
1530
  large: "",
1511
1531
  onClick: se
1512
1532
  }, {
1513
1533
  default: v(() => [
1514
- W(g(e(L)("action.save", { capitalize: !0 })), 1)
1534
+ W(k(e(L)("action.save", { capitalize: !0 })), 1)
1515
1535
  ]),
1516
1536
  _: 1
1517
1537
  })
1518
1538
  ]),
1519
1539
  default: v(() => {
1520
- var F, G;
1540
+ var M, H;
1521
1541
  return [
1522
1542
  C("div", Bo, [
1523
1543
  C("div", wo, [
1524
1544
  e(h).length > 1 ? (t(), $(Ge, {
1525
1545
  key: 0,
1526
1546
  modelValue: S.value,
1527
- "onUpdate:modelValue": U[0] || (U[0] = (V) => S.value = V),
1528
- onChange: U[1] || (U[1] = (V) => P.value = {})
1547
+ "onUpdate:modelValue": U[0] || (U[0] = (g) => S.value = g),
1548
+ style: { width: "auto" },
1549
+ onChange: U[1] || (U[1] = (g) => P.value = {})
1529
1550
  }, {
1530
1551
  default: v(() => [
1531
- (t(!0), s(N, null, D(e(h), (V) => (t(), s("option", {
1532
- key: `searchfield-${V}`,
1533
- value: V
1534
- }, g(e(L)(V)), 9, So))), 128))
1552
+ (t(!0), s(N, null, D(e(h), (g) => (t(), s("option", {
1553
+ key: `searchfield-${g}`,
1554
+ value: g
1555
+ }, k(e(L)(g)), 9, So))), 128))
1535
1556
  ]),
1536
1557
  _: 1
1537
1558
  }, 8, ["modelValue"])) : y("", !0),
1538
- C("div", jo, [
1559
+ C("div", To, [
1539
1560
  (t(), $(Oe, {
1540
1561
  key: `field-${S.value}`,
1541
1562
  modelValue: P.value[S.value],
1542
- "onUpdate:modelValue": U[2] || (U[2] = (V) => P.value[S.value] = V),
1563
+ "onUpdate:modelValue": U[2] || (U[2] = (g) => P.value[S.value] = g),
1543
1564
  property: {
1544
1565
  ...e(c).properties[S.value],
1545
1566
  inputType: "search"
1546
1567
  },
1547
- onInput: k
1568
+ onInput: V
1548
1569
  }, null, 8, ["modelValue", "property"]))
1549
1570
  ])
1550
1571
  ]),
@@ -1554,44 +1575,44 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1554
1575
  onEndReached: R
1555
1576
  }, {
1556
1577
  default: v(() => [
1557
- (t(!0), s(N, null, D(m.value, (V) => (t(), $(Xe, H({ ref_for: !0 }, {
1558
- item: V,
1578
+ (t(!0), s(N, null, D(m.value, (g) => (t(), $(Xe, Q({ ref_for: !0 }, {
1579
+ item: g,
1559
1580
  indexes: e(h),
1560
1581
  property: z.property
1561
1582
  }, {
1562
- key: `matching-${V._id}`,
1563
- modelValue: p.value,
1564
- "onUpdate:modelValue": U[3] || (U[3] = (I) => p.value = I)
1583
+ key: `matching-${g._id}`,
1584
+ modelValue: d.value,
1585
+ "onUpdate:modelValue": U[3] || (U[3] = (I) => d.value = I)
1565
1586
  }), null, 16, ["modelValue"]))), 128))
1566
1587
  ]),
1567
1588
  _: 1
1568
- })) : (t(), s("div", To, [
1569
- T.value ? (t(), s("div", Ro, g(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(c).loading.getAll && Object.values(P.value).filter((V) => !!V).length > 0 && !("items" in z.property && ((F = z.modelValue) != null && F.length) || !Array.isArray(z.modelValue) && ((G = z.modelValue) != null && G._id)) ? (t(), s("div", Lo, g(e(L)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1589
+ })) : (t(), s("div", jo, [
1590
+ j.value ? (t(), s("div", Ro, k(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(c).loading.getAll && Object.values(P.value).filter((g) => !!g).length > 0 && !("items" in z.property && ((M = z.modelValue) != null && M.length) || !Array.isArray(z.modelValue) && ((H = z.modelValue) != null && H._id)) ? (t(), s("div", Lo, k(e(L)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1570
1591
  ]))
1571
1592
  ]),
1572
- C("div", zo, g(e(L)("showing", { capitalize: !0 })) + " " + g(m.value.length) + " " + g(e(L)("of")) + " " + g(A.value.recordsTotal), 1)
1593
+ C("div", zo, k(e(L)("showing", { capitalize: !0 })) + " " + k(m.value.length) + " " + k(e(L)("of")) + " " + k(A.value.recordsTotal), 1)
1573
1594
  ];
1574
1595
  }),
1575
1596
  _: 1
1576
1597
  }, 8, ["title", "model-value"])
1577
1598
  ])) : y("", !0),
1578
1599
  z.selectOnly ? y("", !0) : (t(), s("div", Mo, [
1579
- q(mt, null, ce({
1600
+ F(mt, null, ce({
1580
1601
  default: v(() => {
1581
- var F;
1602
+ var M;
1582
1603
  return [
1583
1604
  "items" in z.property ? (t(), s("div", qo, [
1584
- (t(!0), s(N, null, D(z.modelValue, (G) => (t(), $(Xe, H({ ref_for: !0 }, {
1585
- item: G,
1605
+ (t(!0), s(N, null, D(z.modelValue, (H) => (t(), $(Xe, Q({ ref_for: !0 }, {
1606
+ item: H,
1586
1607
  indexes: e(h),
1587
1608
  property: z.property,
1588
1609
  readOnly: z.readOnly,
1589
1610
  modelValue: z.modelValue
1590
1611
  }, {
1591
- key: `selected-${G._id}`,
1612
+ key: `selected-${H._id}`,
1592
1613
  "onUpdate:modelValue": ne
1593
1614
  }), null, 16))), 128))
1594
- ])) : (F = z.modelValue) != null && F._id ? (t(), $(Xe, H({ key: 1 }, {
1615
+ ])) : (M = z.modelValue) != null && M._id ? (t(), $(Xe, Q({ key: 1 }, {
1595
1616
  item: z.modelValue,
1596
1617
  indexes: e(h),
1597
1618
  property: e(n),
@@ -1607,10 +1628,10 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1607
1628
  fn: v(() => [
1608
1629
  x((t(), $(Z, {
1609
1630
  icon: "plus",
1610
- onClick: j
1631
+ onClick: T
1611
1632
  }, {
1612
1633
  default: v(() => [
1613
- W(g(e(L)("action.select", { capitalize: !0 })), 1)
1634
+ W(k(e(L)("action.select", { capitalize: !0 })), 1)
1614
1635
  ]),
1615
1636
  _: 1
1616
1637
  })), [
@@ -1625,7 +1646,7 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1625
1646
  };
1626
1647
  }
1627
1648
  });
1628
- const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-ab792241"]]), ft = (u, r) => {
1649
+ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r) => {
1629
1650
  const l = "items" in u ? u.items : u, n = {
1630
1651
  options: Jn,
1631
1652
  select: Ge,
@@ -1655,13 +1676,13 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-ab792241"]]), ft = (u, r
1655
1676
  u ?? (u = []);
1656
1677
  const n = "items" in r ? r.items : r;
1657
1678
  if ("$ref" in n) {
1658
- const a = ie(n.$ref, l), i = ke(a.$freshItem);
1679
+ const a = ie(n.$ref, l), i = Ve(a.$freshItem);
1659
1680
  return u.push(i);
1660
1681
  }
1661
1682
  return "properties" in n ? u.push(Wt(n)) : "type" in n && n.type === "boolean" ? u.push({}) : u.push(null);
1662
- }, Do = (u, r) => {
1683
+ }, Ho = (u, r) => {
1663
1684
  u.splice(r, 1);
1664
- }, Ho = {
1685
+ }, Do = {
1665
1686
  key: 0,
1666
1687
  class: "form__header"
1667
1688
  }, Qo = { class: "form__fieldset" }, Go = { key: 0 }, Wo = ["innerHTML"], Ko = ["onInput"], Xo = { key: 4 }, Yo = { value: "true" }, Jo = { value: "false" }, Zo = {
@@ -1696,7 +1717,8 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-ab792241"]]), ft = (u, r
1696
1717
  validationErrors: { default: null },
1697
1718
  highlightRequired: { type: Boolean, default: !0 },
1698
1719
  focus: { type: Boolean },
1699
- includeId: { type: Boolean }
1720
+ includeId: { type: Boolean },
1721
+ includeTimestamps: { type: Boolean }
1700
1722
  },
1701
1723
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
1702
1724
  setup(u, { emit: r }) {
@@ -1705,249 +1727,258 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-ab792241"]]), ft = (u, r
1705
1727
  $t(() => {
1706
1728
  n.modelValue || a("update:modelValue", n.property && "items" in n.property ? [] : {});
1707
1729
  });
1708
- const i = n.property && me(n.property), c = i ? i.$ref : n.collection || Fe(), _ = n.readOnly || ((U = n.property) == null ? void 0 : U.readOnly), d = c ? ie(e(c)) : null;
1730
+ const i = n.property && me(n.property), c = i ? i.$ref : n.collection || Fe(), _ = n.readOnly || ((U = n.property) == null ? void 0 : U.readOnly), p = c ? ie(e(c)) : null;
1709
1731
  !c && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1710
1732
  collection prop, some features may not work as intended`);
1711
- const h = J(!1), p = Q(() => {
1712
- const f = (() => !n.form && n.property ? "properties" in n.property ? n.property.properties : d == null ? void 0 : d.properties : n.form)();
1733
+ const h = J(!1), d = G(() => {
1734
+ const f = (() => !n.form && n.property ? "properties" in n.property ? n.property.properties : void 0 : n.form)();
1713
1735
  if (!f)
1714
1736
  return;
1715
- const F = {};
1716
- return n.includeId && (F._id = {
1737
+ const M = {};
1738
+ if (n.includeId && (M._id = {
1717
1739
  type: "string",
1718
- readOnly: !0,
1719
- description: "id"
1720
- }), Object.assign(F, f), F;
1721
- }), o = Q(() => n.layout || (d == null ? void 0 : d.description.formLayout)), m = (f) => {
1722
- const F = _e(f, n[f]);
1723
- return n[f] && ye(f, n[f]), F;
1724
- }, A = Q(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), b = m("formComponents") || {}, S = m("propertyComponents") || {}, T = m("omitFormHeader"), P = m("omitInputLabels"), B = m("innerInputLabel");
1740
+ readOnly: !0
1741
+ }), n.includeTimestamps) {
1742
+ const H = {
1743
+ type: "string",
1744
+ format: "date-time",
1745
+ readOnly: !0,
1746
+ isTimestamp: !0
1747
+ };
1748
+ f.created_at || (M.created_at = H), f.created_at || (M.updated_at = H);
1749
+ }
1750
+ return Object.assign(M, f), M;
1751
+ }), o = G(() => n.layout || (p == null ? void 0 : p.description.formLayout)), m = (f) => {
1752
+ const M = _e(f, n[f]);
1753
+ return n[f] && ye(f, n[f]), M;
1754
+ }, A = G(() => n.validationErrors !== null ? n.validationErrors : p == null ? void 0 : p.validationErrors), b = m("formComponents") || {}, S = m("propertyComponents") || {}, j = m("omitFormHeader"), P = m("omitInputLabels"), B = m("innerInputLabel");
1725
1755
  c && ye(Ue, c), ye("searchOnly", n.searchOnly);
1726
- const R = (f) => p.value ? Object.entries(p.value).filter(([F, G]) => !G.noForm && f([
1727
- F,
1728
- G
1729
- ])) : null, Y = (f) => {
1730
- var G;
1731
- if (n.searchOnly || !c || n.includeId && f === "_id")
1756
+ const R = (f) => d.value ? Object.entries(d.value).filter(([M, H]) => !H.noForm && f([
1757
+ M,
1758
+ H
1759
+ ])) : null, Y = (f, M) => {
1760
+ var g;
1761
+ if (n.searchOnly || !c || n.includeId && f === "_id" || n.includeTimestamps && M.isTimestamp)
1732
1762
  return !0;
1733
- const F = n.property && "properties" in n.property ? n.property.form : (G = d == null ? void 0 : d.description) == null ? void 0 : G.form;
1734
- return !F || F.includes(f);
1735
- }, w = R(([f]) => Y(f)), te = qe(), k = {}, j = (f, F) => {
1736
- var M, fe, we, Se;
1737
- const G = [], V = ((fe = (M = o.value) == null ? void 0 : M.fields) == null ? void 0 : fe[f]) || ((Se = (we = o.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
1738
- if (!F)
1763
+ const H = n.property && "properties" in n.property ? n.property.form : (g = p == null ? void 0 : p.description) == null ? void 0 : g.form;
1764
+ return !H || H.includes(f);
1765
+ }, w = R(([f, M]) => Y(f, M)), te = qe(), V = {}, T = (f, M) => {
1766
+ var q, fe, we, Se;
1767
+ const H = [], g = ((fe = (q = o.value) == null ? void 0 : q.fields) == null ? void 0 : fe[f]) || ((Se = (we = o.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
1768
+ if (!M)
1739
1769
  return;
1740
- if (V != null && V.if && !n.searchOnly) {
1741
- const je = Ye(
1770
+ if (g != null && g.if && !n.searchOnly) {
1771
+ const Te = Ye(
1742
1772
  n.modelValue,
1743
- V.if
1773
+ g.if
1744
1774
  );
1745
- je.satisfied || (k[f] && (d ? n.modelValue[f] = typeof d.$freshItem[f] == "object" ? ke(d.$freshItem[f]) : d.$freshItem[f] : n.modelValue[f] = [
1775
+ Te.satisfied || (V[f] && (p ? n.modelValue[f] = typeof p.$freshItem[f] == "object" ? Ve(p.$freshItem[f]) : p.$freshItem[f] : n.modelValue[f] = [
1746
1776
  void 0,
1747
1777
  null
1748
- ].includes(n.modelValue[f]) ? null : n.modelValue[f].constructor()), G.push("display: none;")), k[f] = je.satisfied;
1778
+ ].includes(n.modelValue[f]) ? null : n.modelValue[f].constructor()), H.push("display: none;")), V[f] = Te.satisfied;
1749
1779
  }
1750
- const I = te.value.md && (V == null ? void 0 : V.span) || 6;
1751
- return G.push(`
1780
+ const I = te.value.md && (g == null ? void 0 : g.span) || 6;
1781
+ return H.push(`
1752
1782
  --field-span: ${I};
1753
1783
  grid-column: span var(--field-span) / span var(--field-span);
1754
- `), V && (V.verticalSpacing && G.push(`
1755
- --vertical-spacing: ${V.verticalSpacing};
1784
+ `), g && (g.verticalSpacing && H.push(`
1785
+ --vertical-spacing: ${g.verticalSpacing};
1756
1786
  padding: var(--vertical-spacing) 0;
1757
- `), V.separator && G.push(`
1787
+ `), g.separator && H.push(`
1758
1788
  border-top: 1px solid var(--theme-border-color);
1759
1789
  border-width: 1px 0 1px 0;
1760
1790
  padding: 1rem 0;
1761
1791
  margin: 1rem 0;
1762
- `)), G.join("");
1763
- }, ae = (f) => f === null || f instanceof Object && !Object.keys(f).length, le = Q(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), ne = Q(() => n.form ? Ft(
1792
+ `)), H.join("");
1793
+ }, ae = (f) => f === null || f instanceof Object && !Object.keys(f).length, le = G(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : p == null ? void 0 : p.description.required), ne = G(() => n.form ? Ft(
1764
1794
  n.modelValue,
1765
1795
  n.form,
1766
1796
  le.value,
1767
- d == null ? void 0 : d.description
1768
- ) : !0), se = (f, F) => {
1769
- var G;
1770
- return (G = A.value) != null && G[f] && (typeof A.value[f].index != "number" || A.value[f].index === F) ? A.value[f].errors : null;
1797
+ p == null ? void 0 : p.description
1798
+ ) : !0), se = (f, M) => {
1799
+ var H;
1800
+ return (H = A.value) != null && H[f] && (typeof A.value[f].index != "number" || A.value[f].index === M) ? A.value[f].errors : null;
1771
1801
  }, z = (f) => {
1772
1802
  if (!(_ || f.readOnly) && !n.parentPropertyName && !n.parentCollection && !h.value)
1773
1803
  return h.value = !0, !0;
1774
1804
  };
1775
- return (f, F) => {
1776
- const G = oe("clickable"), V = oe("focus");
1805
+ return (f, M) => {
1806
+ const H = oe("clickable"), g = oe("focus");
1777
1807
  return t(), s("form", {
1778
1808
  class: "form",
1779
- style: be(`row-gap: ${e(T) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1809
+ style: be(`row-gap: ${e(j) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1780
1810
  }, [
1781
- f.$slots.header && !e(T) ? (t(), s("header", Ho, [
1811
+ f.$slots.header && !e(j) ? (t(), s("header", Do, [
1782
1812
  O(f.$slots, "header", {}, void 0, !0)
1783
1813
  ])) : y("", !0),
1784
1814
  O(f.$slots, "default", {}, void 0, !0),
1785
1815
  C("fieldset", Qo, [
1786
- (t(!0), s(N, null, D(e(w), ([I, M]) => {
1787
- var fe, we, Se, je, Ne, xe, et, tt, nt, ot, at, lt, st;
1816
+ (t(!0), s(N, null, D(e(w), ([I, q]) => {
1817
+ var fe, we, Se, Te, Ne, xe, et, tt, nt, ot, at, lt, st;
1788
1818
  return t(), s("div", {
1789
1819
  key: `field-${I}`,
1790
- style: be(j(I, M)),
1820
+ style: be(T(I, q)),
1791
1821
  class: "form__field"
1792
1822
  }, [
1793
- (!("type" in M) || M.type !== "boolean" || f.searchOnly) && !M.noLabel && !e(P) && !e(B) ? (t(), s("label", Go, [
1823
+ (!("type" in q) || q.type !== "boolean" || f.searchOnly) && !q.noLabel && !e(P) && !e(B) ? (t(), s("label", Go, [
1794
1824
  C("div", {
1795
1825
  class: X({
1796
1826
  "form__field-label": !0,
1797
- "form__field-label--section": "items" in M ? "properties" in M.items : "properties" in M,
1827
+ "form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
1798
1828
  "form__field-required-hint": f.highlightRequired && !e(_) && !f.searchOnly && (!le.value || e(Kt)(I, le.value, f.modelValue))
1799
1829
  })
1800
- }, g(M.description || e(L)(I)), 3),
1801
- M.hint ? (t(), s("div", {
1830
+ }, k(q.description || e(L)(I)), 3),
1831
+ q.hint ? (t(), s("div", {
1802
1832
  key: 0,
1803
- innerHTML: M.hint
1833
+ innerHTML: q.hint
1804
1834
  }, null, 8, Wo)) : y("", !0)
1805
1835
  ])) : y("", !0),
1806
- f.$slots[`field-${I}`] ? O(f.$slots, `field-${I}`, H({
1836
+ f.$slots[`field-${I}`] ? O(f.$slots, `field-${I}`, Q({
1807
1837
  key: 1,
1808
1838
  ref_for: !0
1809
1839
  }, {
1810
- propery: M,
1811
- properyName: I,
1840
+ readOnly: e(_),
1841
+ property: q,
1842
+ propertyName: I,
1812
1843
  modelValue: f.modelValue
1813
- }), void 0, !0) : (Se = (we = (fe = f.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Se.component && e(S)[f.layout.fields[I].component.name] ? (t(), $(he(e(S)[f.layout.fields[I].component.name]), H({
1844
+ }), void 0, !0) : (Se = (we = (fe = f.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Se.component && e(S)[f.layout.fields[I].component.name] ? (t(), $(he(e(S)[f.layout.fields[I].component.name]), Q({
1814
1845
  key: 2,
1815
1846
  modelValue: f.modelValue[I],
1816
1847
  "onUpdate:modelValue": (ee) => f.modelValue[I] = ee,
1817
1848
  ref_for: !0
1818
1849
  }, {
1819
1850
  readOnly: e(_),
1820
- property: M,
1851
+ property: q,
1821
1852
  propertyName: I,
1822
1853
  ...f.layout.fields[I].component.props || {}
1823
1854
  }, {
1824
1855
  onInput: (ee) => a("input", I),
1825
- onChange: F[0] || (F[0] = (ee) => a("change", ee))
1826
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in M && ["date", "date-time"].includes(M.format) && f.searchOnly ? (t(), s("div", {
1856
+ onChange: M[0] || (M[0] = (ee) => a("change", ee))
1857
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && f.searchOnly ? (t(), s("div", {
1827
1858
  key: 3,
1828
1859
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1829
1860
  onInput: (ee) => a("input", I),
1830
- onChange: F[1] || (F[1] = (ee) => a("change", ee))
1861
+ onChange: M[1] || (M[1] = (ee) => a("change", ee))
1831
1862
  }, [
1832
- q(Oe, H({
1863
+ F(Oe, Q({
1833
1864
  modelValue: f.modelValue[I].$gte,
1834
1865
  "onUpdate:modelValue": (ee) => f.modelValue[I].$gte = ee,
1835
1866
  ref_for: !0
1836
1867
  }, {
1837
- property: M,
1868
+ property: q,
1838
1869
  propertyName: I
1839
1870
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1840
- q(Oe, H({
1871
+ F(Oe, Q({
1841
1872
  modelValue: f.modelValue[I].$lte,
1842
1873
  "onUpdate:modelValue": (ee) => f.modelValue[I].$lte = ee,
1843
1874
  ref_for: !0
1844
1875
  }, {
1845
- property: M,
1876
+ property: q,
1846
1877
  propertyName: I
1847
1878
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1848
- ], 40, Ko)) : "type" in M && M.type === "boolean" && f.searchOnly ? (t(), s("div", Xo, [
1849
- q(Ge, H({ ref_for: !0 }, {
1850
- property: M,
1879
+ ], 40, Ko)) : "type" in q && q.type === "boolean" && f.searchOnly ? (t(), s("div", Xo, [
1880
+ F(Ge, Q({ ref_for: !0 }, {
1881
+ property: q,
1851
1882
  propertyName: I
1852
1883
  }, {
1853
1884
  "boolean-ref": "",
1854
1885
  "model-value": f.modelValue[I],
1855
- onChange: F[2] || (F[2] = (ee) => a("change", ee)),
1886
+ onChange: M[2] || (M[2] = (ee) => a("change", ee)),
1856
1887
  "onUpdate:modelValue": (ee) => {
1857
1888
  f.modelValue[I] = ee == "true" ? !0 : ee == "false" ? !1 : null;
1858
1889
  }
1859
1890
  }), {
1860
1891
  default: v(() => [
1861
- C("option", Yo, g(e(L)("yes")), 1),
1862
- C("option", Jo, g(e(L)("no")), 1)
1892
+ C("option", Yo, k(e(L)("yes")), 1),
1893
+ C("option", Jo, k(e(L)("no")), 1)
1863
1894
  ]),
1864
1895
  _: 2
1865
1896
  }, 1040, ["model-value", "onUpdate:modelValue"])
1866
- ])) : f.modelValue && "items" in M && !M.uniqueItems && (!("$ref" in M.items) || M.items.inline || M.items.$ref === "file") ? (t(), s("div", Zo, [
1897
+ ])) : f.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (t(), s("div", Zo, [
1867
1898
  e(_) ? y("", !0) : (t(), s("div", Po, [
1868
- q(re, {
1899
+ F(re, {
1869
1900
  small: "",
1870
1901
  variant: "alt",
1871
1902
  icon: "plus",
1872
- disabled: !("inline" in M.items && M.items.inline) && (((je = f.modelValue[I]) == null ? void 0 : je.length) >= M.maxItems || ae((xe = f.modelValue[I]) == null ? void 0 : xe[((Ne = f.modelValue[I]) == null ? void 0 : Ne.length) - 1])),
1903
+ disabled: !("inline" in q.items && q.items.inline) && (((Te = f.modelValue[I]) == null ? void 0 : Te.length) >= q.maxItems || ae((xe = f.modelValue[I]) == null ? void 0 : xe[((Ne = f.modelValue[I]) == null ? void 0 : Ne.length) - 1])),
1873
1904
  onClick: ze((ee) => {
1874
- f.modelValue[I] || (f.modelValue[I] = []), e(Eo)(f.modelValue[I], M, e(l));
1905
+ f.modelValue[I] || (f.modelValue[I] = []), e(Eo)(f.modelValue[I], q, e(l));
1875
1906
  }, ["prevent"])
1876
1907
  }, {
1877
1908
  default: v(() => [
1878
- W(g(e(L)("action.add", { capitalize: !0 })), 1)
1909
+ W(k(e(L)("action.add", { capitalize: !0 })), 1)
1879
1910
  ]),
1880
1911
  _: 2
1881
1912
  }, 1032, ["disabled", "onClick"])
1882
1913
  ])),
1883
1914
  C("div", No, [
1884
- (t(!0), s(N, null, D(f.modelValue[I], (ee, Te) => {
1915
+ (t(!0), s(N, null, D(f.modelValue[I], (ee, je) => {
1885
1916
  var it, rt, ut, ct, dt, pt;
1886
1917
  return t(), s("div", {
1887
- key: `rep-${I}-${e(Ut)(ee, Te)}`,
1918
+ key: `rep-${I}-${e(Ut)(ee, je)}`,
1888
1919
  class: "form__array-item"
1889
1920
  }, [
1890
1921
  C("div", xo, [
1891
- (t(), $(he(e(ft)(M, e(b))), H({
1892
- modelValue: f.modelValue[I][Te],
1893
- "onUpdate:modelValue": (Re) => f.modelValue[I][Te] = Re,
1922
+ (t(), $(he(e(ft)(q, e(b))), Q({
1923
+ modelValue: f.modelValue[I][je],
1924
+ "onUpdate:modelValue": (Re) => f.modelValue[I][je] = Re,
1894
1925
  ref_for: !0
1895
1926
  }, {
1896
1927
  readOnly: e(_),
1897
- property: M.items,
1928
+ property: q.items,
1898
1929
  propertyName: I,
1899
1930
  parentCollection: e(c),
1900
1931
  parentPropertyName: f.parentPropertyName,
1901
1932
  columns: ((ut = (rt = (it = f.layout) == null ? void 0 : it.fields) == null ? void 0 : rt[I]) == null ? void 0 : ut.optionsColumns) || ((pt = (dt = (ct = f.layout) == null ? void 0 : ct.fields) == null ? void 0 : dt.$default) == null ? void 0 : pt.optionsColumns),
1902
- validationErrors: se(I, Te),
1903
- ...M.componentProps || {}
1933
+ validationErrors: se(I, je),
1934
+ ...q.componentProps || {}
1904
1935
  }, {
1905
1936
  onInput: (Re) => a("input", I),
1906
- onChange: F[3] || (F[3] = (Re) => a("change", Re))
1937
+ onChange: M[3] || (M[3] = (Re) => a("change", Re))
1907
1938
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
1908
1939
  ]),
1909
1940
  e(_) ? y("", !0) : x((t(), $(Z, {
1910
1941
  key: 0,
1911
1942
  reactive: "",
1912
1943
  icon: "trash",
1913
- onClick: (Re) => e(Do)(f.modelValue[I], Te)
1944
+ onClick: (Re) => e(Ho)(f.modelValue[I], je)
1914
1945
  }, null, 8, ["onClick"])), [
1915
- [G]
1946
+ [H]
1916
1947
  ])
1917
1948
  ]);
1918
1949
  }), 128))
1919
1950
  ])
1920
- ])) : f.modelValue ? x((t(), $(he(e(ft)(M, e(b))), H({
1951
+ ])) : f.modelValue ? x((t(), $(he(e(ft)(q, e(b))), Q({
1921
1952
  key: 6,
1922
1953
  modelValue: f.modelValue[I],
1923
1954
  "onUpdate:modelValue": (ee) => f.modelValue[I] = ee,
1924
1955
  ref_for: !0
1925
1956
  }, {
1926
1957
  readOnly: e(_),
1927
- property: M,
1958
+ property: q,
1928
1959
  propertyName: I,
1929
1960
  parentPropertyName: f.parentPropertyName,
1930
1961
  parentCollection: e(c),
1931
1962
  columns: ((nt = (tt = (et = f.layout) == null ? void 0 : et.fields) == null ? void 0 : tt[I]) == null ? void 0 : nt.optionsColumns) || ((lt = (at = (ot = f.layout) == null ? void 0 : ot.fields) == null ? void 0 : at.$default) == null ? void 0 : lt.optionsColumns),
1932
- ...M.componentProps || {},
1963
+ ...q.componentProps || {},
1933
1964
  validationErrors: se(I)
1934
1965
  }, {
1935
1966
  onInput: (ee) => a("input", I),
1936
- onChange: F[4] || (F[4] = (ee) => a("change", ee)),
1937
- onClipboardCopy: F[5] || (F[5] = (ee) => a("clipboardCopy", ee))
1967
+ onChange: M[4] || (M[4] = (ee) => a("change", ee)),
1968
+ onClipboardCopy: M[5] || (M[5] = (ee) => a("clipboardCopy", ee))
1938
1969
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1939
- [V, z(M)]
1970
+ [g, z(q)]
1940
1971
  ]) : y("", !0),
1941
1972
  (st = A.value) != null && st[I] ? (t(), s("div", ea, [
1942
- A.value[I].type ? (t(), s("span", ta, g(e(L)(`validation_error.${A.value[I].type}`)), 1)) : y("", !0),
1943
- A.value[I].detail ? (t(), s("span", na, g(e(L)(A.value[I].detail)), 1)) : y("", !0)
1973
+ A.value[I].type ? (t(), s("span", ta, k(e(L)(`validation_error.${A.value[I].type}`)), 1)) : y("", !0),
1974
+ A.value[I].detail ? (t(), s("span", na, k(e(L)(A.value[I].detail)), 1)) : y("", !0)
1944
1975
  ])) : y("", !0)
1945
1976
  ], 4);
1946
1977
  }), 128))
1947
1978
  ]),
1948
1979
  f.$slots.after ? O(f.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
1949
1980
  f.$slots.footer ? (t(), s("div", oa, [
1950
- O(f.$slots, "footer", pe(Ve({
1981
+ O(f.$slots, "footer", de(ge({
1951
1982
  isInsertReady: ne.value
1952
1983
  })), void 0, !0)
1953
1984
  ])) : y("", !0)
@@ -1955,7 +1986,7 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-ab792241"]]), ft = (u, r
1955
1986
  };
1956
1987
  }
1957
1988
  });
1958
- const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @__PURE__ */ E({
1989
+ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-cd01186c"]]), la = /* @__PURE__ */ E({
1959
1990
  __name: "aeria-filter-panel",
1960
1991
  emits: ["update:modelValue"],
1961
1992
  setup(u, { emit: r }) {
@@ -1964,54 +1995,54 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
1964
1995
  const _ = Object.assign({
1965
1996
  query: {}
1966
1997
  }, a.currentRoute.value);
1967
- for (const d of Object.keys(_.query))
1968
- d.startsWith(`${i}.`) && delete _.query[d];
1998
+ for (const p of Object.keys(_.query))
1999
+ p.startsWith(`${i}.`) && delete _.query[p];
1969
2000
  a.currentRoute.value.query = {}, a.push(Me(_, {
1970
2001
  query: Et(n)
1971
2002
  }));
1972
2003
  };
1973
- return (_, d) => (t(), $(Be, {
2004
+ return (_, p) => (t(), $(Be, {
1974
2005
  "close-hint": "",
1975
2006
  "fixed-right": "",
1976
2007
  title: _.t("filter_by", { capitalize: !0 }),
1977
- onClose: d[2] || (d[2] = (h) => l("update:modelValue", !1)),
1978
- onOverlayClick: d[3] || (d[3] = (h) => l("update:modelValue", !1))
2008
+ onClose: p[2] || (p[2] = (h) => l("update:modelValue", !1)),
2009
+ onOverlayClick: p[3] || (p[3] = (h) => l("update:modelValue", !1))
1979
2010
  }, {
1980
2011
  footer: v(() => [
1981
2012
  e(n).filtersCount > 0 ? (t(), $(re, {
1982
2013
  key: 0,
1983
2014
  variant: "transparent",
1984
- onClick: d[1] || (d[1] = (h) => {
2015
+ onClick: p[1] || (p[1] = (h) => {
1985
2016
  e(n).$actions.clearFilters(), c(), l("update:modelValue", !1);
1986
2017
  })
1987
2018
  }, {
1988
2019
  default: v(() => [
1989
- W(g(_.t("action.clear", { capitalize: !0 })) + " ", 1),
1990
- q($e, null, {
2020
+ W(k(_.t("action.clear", { capitalize: !0 })) + " ", 1),
2021
+ F($e, null, {
1991
2022
  default: v(() => [
1992
- W(g(e(n).filtersCount), 1)
2023
+ W(k(e(n).filtersCount), 1)
1993
2024
  ]),
1994
2025
  _: 1
1995
2026
  })
1996
2027
  ]),
1997
2028
  _: 1
1998
2029
  })) : y("", !0),
1999
- q(re, {
2030
+ F(re, {
2000
2031
  large: "",
2001
2032
  icon: "funnel",
2002
2033
  disabled: !e(n).hasActiveFilters,
2003
2034
  onClick: c
2004
2035
  }, {
2005
2036
  default: v(() => [
2006
- W(g(_.t("action.filter", { capitalize: !0 })), 1)
2037
+ W(k(_.t("action.filter", { capitalize: !0 })), 1)
2007
2038
  ]),
2008
2039
  _: 1
2009
2040
  }, 8, ["disabled"])
2010
2041
  ]),
2011
2042
  default: v(() => [
2012
- q(We, H({
2043
+ F(We, Q({
2013
2044
  modelValue: e(n).filters,
2014
- "onUpdate:modelValue": d[0] || (d[0] = (h) => e(n).filters = h)
2045
+ "onUpdate:modelValue": p[0] || (p[0] = (h) => e(n).filters = h)
2015
2046
  }, {
2016
2047
  searchOnly: !0,
2017
2048
  form: e(n).availableFilters,
@@ -2027,23 +2058,24 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2027
2058
  collection: {},
2028
2059
  modelValue: { type: [Boolean, String] },
2029
2060
  readOnly: { type: Boolean },
2030
- includeId: { type: Boolean }
2061
+ includeId: { type: Boolean },
2062
+ includeTimestamps: { type: Boolean }
2031
2063
  },
2032
2064
  emits: ["update:modelValue", "cancel"],
2033
2065
  setup(u, { emit: r }) {
2034
2066
  const l = u, n = r, a = ie("meta"), i = ie(l.collection || a.view.collection), c = _e("individualActions", []), _ = async () => {
2035
2067
  const { error: o } = await i.$actions.deepInsert();
2036
2068
  o || n("update:modelValue", !1);
2037
- }, { t: d } = Lt(), h = () => {
2069
+ }, { t: p } = Lt(), h = () => {
2038
2070
  a.$actions.ask({
2039
2071
  action: () => {
2040
2072
  i.$actions.clearItem(), i.validationErrors = {}, n("cancel");
2041
2073
  },
2042
- body: d("prompt.close_panel")
2074
+ body: p("prompt.close_panel")
2043
2075
  });
2044
- }, p = () => a.$actions.spawnToast({
2076
+ }, d = () => a.$actions.spawnToast({
2045
2077
  icon: "info",
2046
- text: d("copied_to_clipboard")
2078
+ text: p("copied_to_clipboard")
2047
2079
  });
2048
2080
  return ue(() => i.item._id, (o) => {
2049
2081
  o === null && n("update:modelValue", !1);
@@ -2054,18 +2086,22 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2054
2086
  onOverlayClick: h
2055
2087
  }, ce({
2056
2088
  extra: v(() => [
2057
- q(Ce, H({
2089
+ F(Ce, Q({
2058
2090
  subject: e(i).item,
2059
- actions: e(c).filter(({ action: b }) => b !== "ui:spawnEdit")
2091
+ actions: e(c).filter(({ action: b }) => b !== "ui:spawnEdit"),
2092
+ overlayLayer: 60
2060
2093
  }, {
2061
2094
  onActionClick: m[2] || (m[2] = (b) => n("update:modelValue", !1))
2062
2095
  }), {
2063
- default: v(() => [
2096
+ default: v(({
2097
+ visible: b
2098
+ }) => [
2064
2099
  e(i).item._id ? x((t(), $(Z, {
2065
2100
  key: 0,
2066
2101
  reactive: "",
2102
+ active: b,
2067
2103
  icon: "dots-three"
2068
- }, null, 512)), [
2104
+ }, null, 8, ["active"])), [
2069
2105
  [A]
2070
2106
  ]) : y("", !0)
2071
2107
  ]),
@@ -2073,24 +2109,25 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2073
2109
  }, 16)
2074
2110
  ]),
2075
2111
  default: v(() => [
2076
- q(We, H({
2112
+ F(We, Q({
2077
2113
  modelValue: e(i).item,
2078
2114
  "onUpdate:modelValue": m[0] || (m[0] = (b) => e(i).item = b)
2079
2115
  }, {
2080
2116
  readOnly: o.readOnly,
2081
2117
  includeId: o.includeId,
2118
+ includeTimestamps: o.includeTimestamps,
2082
2119
  collection: e(a).view.collection,
2083
2120
  form: e(i).description.form ? e(i).$actions.useProperties(e(i).description.form) : e(i).properties,
2084
2121
  layout: e(i).description.formLayout || {}
2085
2122
  }, {
2086
2123
  focus: "",
2087
- onClipboardCopy: p,
2124
+ onClipboardCopy: d,
2088
2125
  onAdd: m[1] || (m[1] = (b) => b.preventDefault())
2089
2126
  }), ce({ _: 2 }, [
2090
2127
  D(Object.keys(o.$slots).filter((b) => b.startsWith("field-")), (b) => ({
2091
2128
  name: b,
2092
2129
  fn: v((S) => [
2093
- O(o.$slots, b, pe(Ve(S)))
2130
+ O(o.$slots, b, de(ge(S)))
2094
2131
  ])
2095
2132
  }))
2096
2133
  ]), 1040, ["modelValue"])
@@ -2107,23 +2144,23 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2107
2144
  o.readOnly ? void 0 : {
2108
2145
  name: "footer",
2109
2146
  fn: v(() => [
2110
- q(re, {
2147
+ F(re, {
2111
2148
  variant: "transparent",
2112
2149
  onClick: h
2113
2150
  }, {
2114
2151
  default: v(() => [
2115
- W(g(e(d)("action.cancel", { capitalize: !0 })), 1)
2152
+ W(k(e(p)("action.cancel", { capitalize: !0 })), 1)
2116
2153
  ]),
2117
2154
  _: 1
2118
2155
  }),
2119
- q(re, {
2156
+ F(re, {
2120
2157
  large: "",
2121
2158
  disabled: !e(i).isInsertReady || e(i).loading.get,
2122
2159
  loading: e(i).loading.insert,
2123
2160
  onClick: _
2124
2161
  }, {
2125
2162
  default: v(() => [
2126
- W(g(e(d)("action.insert", { capitalize: !0 })), 1)
2163
+ W(k(e(p)("action.insert", { capitalize: !0 })), 1)
2127
2164
  ]),
2128
2165
  _: 1
2129
2166
  }, 8, ["disabled", "loading"])
@@ -2162,7 +2199,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2162
2199
  }, {
2163
2200
  immediate: !0
2164
2201
  });
2165
- }, ra = (u) => (He("data-v-2a6c7067"), u = u(), Qe(), u), ua = {
2202
+ }, ra = (u) => (De("data-v-7fdb061d"), u = u(), Qe(), u), ua = {
2166
2203
  key: 0,
2167
2204
  class: "table aeria-surface"
2168
2205
  }, ca = { key: 0 }, da = { key: 1 }, pa = { key: 0 }, _a = ["checked"], ma = {
@@ -2174,7 +2211,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2174
2211
  }, ka = {
2175
2212
  key: 1,
2176
2213
  class: "table__cell-container"
2177
- }, Va = { class: "table__cell-grid" }, Ca = { key: 0 }, Oa = { key: 1 }, Ia = { key: 0 }, Aa = ["href"], Ba = { key: 3 }, wa = { key: 1 }, Sa = { key: 2 }, ja = { key: 0 }, Ta = { key: 1 }, Ra = { key: 2 }, La = {
2214
+ }, Va = { class: "table__cell-grid" }, Ca = { key: 0 }, Oa = { key: 1 }, Ia = { key: 0 }, Aa = ["href"], Ba = { key: 3 }, wa = { key: 1 }, Sa = { key: 2 }, Ta = { key: 0 }, ja = { key: 1 }, Ra = { key: 2 }, La = {
2178
2215
  key: 1,
2179
2216
  class: "no-print"
2180
2217
  }, za = { class: "table__cell-actions" }, Ma = {
@@ -2184,7 +2221,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2184
2221
  /* @__PURE__ */ C("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
2185
2222
  ], -1)), Ea = [
2186
2223
  Ua
2187
- ], Da = /* @__PURE__ */ E({
2224
+ ], Ha = /* @__PURE__ */ E({
2188
2225
  __name: "aeria-table",
2189
2226
  props: {
2190
2227
  columns: {},
@@ -2196,36 +2233,36 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2196
2233
  },
2197
2234
  emits: ["itemClick"],
2198
2235
  setup(u, { emit: r }) {
2199
- const l = u, n = r, a = qe(), i = l.collection || Fe(), c = i ? ie(typeof i == "string" ? i : i.value) : null, _ = Q({
2236
+ const l = u, n = r, a = qe(), i = l.collection || Fe(), c = i ? ie(typeof i == "string" ? i : i.value) : null, _ = G({
2200
2237
  get: () => c == null ? void 0 : c.selected,
2201
2238
  set: (m) => c == null ? void 0 : c.$actions.selectManyItems(m, !0)
2202
- }), d = (m, A) => m != null && m.button ? typeof m.button == "object" ? Ye(A, m.button).satisfied : m.button : !1, h = (m) => {
2239
+ }), p = (m, A) => m != null && m.button ? typeof m.button == "object" ? Ye(A, m.button).satisfied : m.button : !1, h = (m) => {
2203
2240
  var A;
2204
2241
  return !a.value.xl || !((A = l.layout) != null && A.actions) || !l.actions ? [] : l.actions.filter((b) => {
2205
2242
  const S = l.layout.actions[b.action];
2206
- return d(S, m);
2243
+ return p(S, m);
2207
2244
  });
2208
- }, p = (m) => {
2245
+ }, d = (m) => {
2209
2246
  var A;
2210
2247
  return l.actions ? !a.value.xl || !((A = l.layout) != null && A.actions) ? l.actions : l.actions.filter((b) => {
2211
2248
  const S = l.layout.actions[b.action];
2212
2249
  if (b.roles) {
2213
- const T = ie("user");
2214
- if (!Vt(b.roles, T.currentUser.roles))
2250
+ const j = ie("user");
2251
+ if (!Vt(b.roles, j.currentUser.roles))
2215
2252
  return !1;
2216
2253
  }
2217
- return !d(S, m);
2254
+ return !p(S, m);
2218
2255
  }) : [];
2219
2256
  }, o = (m, A) => {
2220
- var T, P;
2221
- const b = [], S = (P = (T = l.layout) == null ? void 0 : T.actions) == null ? void 0 : P[A.action];
2257
+ var j, P;
2258
+ const b = [], S = (P = (j = l.layout) == null ? void 0 : j.actions) == null ? void 0 : P[A.action];
2222
2259
  return S != null && S.if && (Ye(
2223
2260
  m,
2224
2261
  S.if
2225
2262
  ).satisfied || b.push("display: none;")), b.join("");
2226
2263
  };
2227
2264
  return (m, A) => {
2228
- var S, T, P;
2265
+ var S, j, P;
2229
2266
  const b = oe("clickable");
2230
2267
  return m.columns && Object.keys(m.columns).length > 0 || m.$slots.thead ? (t(), s("table", ua, [
2231
2268
  m.$slots.thead ? (t(), s("thead", ca, [
@@ -2242,7 +2279,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2242
2279
  (t(!0), s(N, null, D(Object.entries(m.columns), ([B, R], Y) => (t(), s("th", {
2243
2280
  key: `header-${Y}`,
2244
2281
  class: "table__header"
2245
- }, g(R.description || e(L)(B)), 1))), 128)),
2282
+ }, k(R.description || e(L)(B)), 1))), 128)),
2246
2283
  (S = m.actions) != null && S.length ? (t(), s("th", ma)) : y("", !0)
2247
2284
  ])
2248
2285
  ])),
@@ -2264,14 +2301,14 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2264
2301
  [Bt, _.value]
2265
2302
  ])
2266
2303
  ])) : y("", !0),
2267
- (t(!0), s(N, null, D(Object.entries(m.columns), ([w, te], k) => {
2268
- var j, ae, le;
2304
+ (t(!0), s(N, null, D(Object.entries(m.columns), ([w, te], V) => {
2305
+ var T, ae, le;
2269
2306
  return t(), s("td", {
2270
- key: `column-${B._id}-${k}`
2307
+ key: `column-${B._id}-${V}`
2271
2308
  }, [
2272
- C("div", $a, g(te.description || e(L)(w)), 1),
2309
+ C("div", $a, k(te.description || e(L)(w)), 1),
2273
2310
  `row-${w}` in m.$slots ? (t(), s("div", ga, [
2274
- O(m.$slots, `row-${w}`, H({ ref_for: !0 }, {
2311
+ O(m.$slots, `row-${w}`, Q({ ref_for: !0 }, {
2275
2312
  store: e(c),
2276
2313
  column: w,
2277
2314
  property: te,
@@ -2286,7 +2323,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2286
2323
  "icon-classes": "aeria-blueish"
2287
2324
  }, {
2288
2325
  default: v(() => [
2289
- W(g(e(L)("yes")), 1)
2326
+ W(k(e(L)("yes")), 1)
2290
2327
  ]),
2291
2328
  _: 1
2292
2329
  })) : (t(), $(Z, {
@@ -2295,13 +2332,13 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2295
2332
  "icon-classes": "aeria-redish"
2296
2333
  }, {
2297
2334
  default: v(() => [
2298
- W(g(e(L)("no")), 1)
2335
+ W(k(e(L)("no")), 1)
2299
2336
  ]),
2300
2337
  _: 1
2301
2338
  }))
2302
- ])) : ((j = e(me)(te)) == null ? void 0 : j.$ref) === "file" ? (t(), s("div", Oa, [
2339
+ ])) : ((T = e(me)(te)) == null ? void 0 : T.$ref) === "file" ? (t(), s("div", Oa, [
2303
2340
  B[w] ? (t(), s("div", Ia, [
2304
- "items" in te && B[w][0] && /^image/.test(B[w][0].type) ? (t(), $(De, {
2341
+ "items" in te && B[w][0] && /^image/.test(B[w][0].type) ? (t(), $(He, {
2305
2342
  key: 0,
2306
2343
  modelValue: B[w][0].link,
2307
2344
  "onUpdate:modelValue": (ne) => B[w][0].link = ne,
@@ -2309,7 +2346,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2309
2346
  meta: B[w][0],
2310
2347
  alt: "Row image",
2311
2348
  class: "table__picture"
2312
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(B[w].type) ? (t(), $(De, {
2349
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(B[w].type) ? (t(), $(He, {
2313
2350
  key: 1,
2314
2351
  modelValue: B[w].link,
2315
2352
  "onUpdate:modelValue": (ne) => B[w].link = ne,
@@ -2321,19 +2358,19 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2321
2358
  key: 2,
2322
2359
  href: B[w].link,
2323
2360
  style: { "font-size": "10pt" }
2324
- }, g(B[w].filename), 9, Aa)) : (t(), s("div", Ba, " - "))
2361
+ }, k(B[w].filename), 9, Aa)) : (t(), s("div", Ba, " - "))
2325
2362
  ])) : (t(), s("div", wa, " - "))
2326
2363
  ])) : (t(), s("div", Sa, [
2327
- e(c) ? (t(), s("span", ja, g(e(c).$actions.formatValue({
2364
+ e(c) ? (t(), s("span", Ta, k(e(c).$actions.formatValue({
2328
2365
  value: B[w],
2329
2366
  key: w,
2330
2367
  property: te
2331
- })), 1)) : (t(), s("span", Ta, g(Array.isArray(B[w]) ? B[w].filter((ne) => !!ne).join(", ") : [void 0, null].includes(B[w]) ? "-" : B[w]), 1)),
2368
+ })), 1)) : (t(), s("span", ja, k(Array.isArray(B[w]) ? B[w].filter((ne) => !!ne).join(", ") : [void 0, null].includes(B[w]) ? "-" : B[w]), 1)),
2332
2369
  ((le = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : le.length) > 1 ? (t(), s("div", Ra, [
2333
2370
  (t(!0), s(N, null, D(e(me)(te).indexes.slice(1, 2), (ne, se) => (t(), s("div", {
2334
2371
  key: `subvalue-${se}`,
2335
2372
  class: "table__cell-subvalue"
2336
- }, g(e(c).$actions.formatValue({
2373
+ }, k(e(c).$actions.formatValue({
2337
2374
  value: B[w],
2338
2375
  key: w,
2339
2376
  property: te,
@@ -2356,22 +2393,25 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2356
2393
  onClick: (te) => w.click(B)
2357
2394
  }, {
2358
2395
  default: v(() => [
2359
- W(g(e(L)(w.label)), 1)
2396
+ W(k(e(L)(w.label)), 1)
2360
2397
  ]),
2361
2398
  _: 2
2362
2399
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2363
- p(B).length > 0 ? (t(), $(Ce, H({
2400
+ d(B).length > 0 ? (t(), $(Ce, Q({
2364
2401
  key: 0,
2365
2402
  ref_for: !0
2366
2403
  }, {
2367
2404
  subject: B,
2368
- actions: p(B)
2405
+ actions: d(B)
2369
2406
  }), {
2370
- default: v(() => [
2371
- x(q(Z, {
2407
+ default: v(({
2408
+ visible: w
2409
+ }) => [
2410
+ x(F(Z, {
2372
2411
  reactive: "",
2412
+ active: w,
2373
2413
  icon: "dots-three"
2374
- }, null, 512), [
2414
+ }, null, 8, ["active"]), [
2375
2415
  [b]
2376
2416
  ])
2377
2417
  ]),
@@ -2381,7 +2421,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2381
2421
  ])) : (Y = m.actions) != null && Y.length ? (t(), s("td", Ma, [
2382
2422
  C("div", {
2383
2423
  class: "table__mobile-actions-grid",
2384
- style: be(`grid-template-columns: repeat(${h(B).length + (p(B).length ? 1 : 0)}, 1fr);`)
2424
+ style: be(`grid-template-columns: repeat(${h(B).length + (d(B).length ? 1 : 0)}, 1fr);`)
2385
2425
  }, [
2386
2426
  (t(!0), s(N, null, D(h(B), (w) => (t(), $(ve, {
2387
2427
  key: `action-${w.action}`,
@@ -2389,26 +2429,26 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2389
2429
  onClick: (te) => w.click(B)
2390
2430
  }, {
2391
2431
  default: v(() => [
2392
- q(Z, {
2432
+ F(Z, {
2393
2433
  icon: w.icon || "gear"
2394
2434
  }, {
2395
2435
  default: v(() => [
2396
- W(g(e(L)(w.label)), 1)
2436
+ W(k(e(L)(w.label)), 1)
2397
2437
  ]),
2398
2438
  _: 2
2399
2439
  }, 1032, ["icon"])
2400
2440
  ]),
2401
2441
  _: 2
2402
2442
  }, 1032, ["onClick"]))), 128)),
2403
- p(B).length > 0 ? (t(), $(Ce, H({
2443
+ d(B).length > 0 ? (t(), $(Ce, Q({
2404
2444
  key: 0,
2405
2445
  ref_for: !0
2406
2446
  }, {
2407
2447
  subject: B,
2408
- actions: p(B)
2448
+ actions: d(B)
2409
2449
  }), {
2410
2450
  default: v(() => [
2411
- q(Z, {
2451
+ F(Z, {
2412
2452
  icon: "dots-three",
2413
2453
  class: "table__mobile-actions-button"
2414
2454
  })
@@ -2424,13 +2464,13 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2424
2464
  }), 128))
2425
2465
  ])),
2426
2466
  C("tfoot", null, [
2427
- m.$slots.tfoot ? O(m.$slots, "tfoot", { key: 0 }, void 0, !0) : m.columns && !((T = m.rows) != null && T.length) && !((P = e(c)) != null && P.loading.getAll) ? (t(), s("tr", Fa, Ea)) : y("", !0)
2467
+ m.$slots.tfoot ? O(m.$slots, "tfoot", { key: 0 }, void 0, !0) : m.columns && !((j = m.rows) != null && j.length) && !((P = e(c)) != null && P.loading.getAll) ? (t(), s("tr", Fa, Ea)) : y("", !0)
2428
2468
  ])
2429
2469
  ])) : y("", !0);
2430
2470
  };
2431
2471
  }
2432
2472
  });
2433
- const Ha = /* @__PURE__ */ K(Da, [["__scopeId", "data-v-2a6c7067"]]), Qa = /* @__PURE__ */ E({
2473
+ const Da = /* @__PURE__ */ K(Ha, [["__scopeId", "data-v-7fdb061d"]]), Qa = /* @__PURE__ */ E({
2434
2474
  __name: "aeria-tabular",
2435
2475
  props: {
2436
2476
  individualActions: {},
@@ -2438,7 +2478,7 @@ const Ha = /* @__PURE__ */ K(Da, [["__scopeId", "data-v-2a6c7067"]]), Qa = /* @_
2438
2478
  componentProps: {}
2439
2479
  },
2440
2480
  setup(u) {
2441
- const r = u, l = Ie(), n = Fe(), a = Q(() => {
2481
+ const r = u, l = Ie(), n = Fe(), a = G(() => {
2442
2482
  const i = {
2443
2483
  collection: n,
2444
2484
  checkbox: l.hasSelectionActions,
@@ -2451,13 +2491,13 @@ const Ha = /* @__PURE__ */ K(Da, [["__scopeId", "data-v-2a6c7067"]]), Qa = /* @_
2451
2491
  });
2452
2492
  return (i, c) => (t(), s("div", null, [
2453
2493
  i.$slots.inner ? O(i.$slots, "inner", { key: 0 }) : y("", !0),
2454
- e(l).properties ? (t(), $(Ha, H({ key: 1 }, a.value, {
2494
+ e(l).properties ? (t(), $(Da, Q({ key: 1 }, a.value, {
2455
2495
  key: e(l).$id
2456
2496
  }), ce({ _: 2 }, [
2457
2497
  D(Object.keys(i.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
2458
2498
  name: _,
2459
- fn: v((d) => [
2460
- O(i.$slots, _, pe(Ve(d)))
2499
+ fn: v((p) => [
2500
+ O(i.$slots, _, de(ge(p)))
2461
2501
  ])
2462
2502
  }))
2463
2503
  ]), 1040)) : y("", !0)
@@ -2498,28 +2538,31 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2498
2538
  list: i.componentName === "list"
2499
2539
  }, {
2500
2540
  default: v(() => [
2501
- (t(!0), s(N, null, D(e(n).items, (d) => (t(), $(fn, {
2502
- key: d,
2503
- inactive: !!(e(l).active && !d[e(l).active]),
2541
+ (t(!0), s(N, null, D(e(n).items, (p) => (t(), $(fn, {
2542
+ key: p,
2543
+ inactive: !!(e(l).active && !p[e(l).active]),
2504
2544
  horizontal: i.componentName === "list"
2505
2545
  }, ce({
2506
2546
  footer: v(() => [
2507
- e(l).title ? (t(), s("div", Ka, g(d[e(l).title]), 1)) : y("", !0),
2508
- e(l).information ? (t(), s("div", Xa, g(d[e(l).information]), 1)) : y("", !0)
2547
+ e(l).title ? (t(), s("div", Ka, k(p[e(l).title]), 1)) : y("", !0),
2548
+ e(l).information ? (t(), s("div", Xa, k(p[e(l).information]), 1)) : y("", !0)
2509
2549
  ]),
2510
2550
  actions: v(() => [
2511
- i.individualActions.length > 0 ? (t(), $(Ce, H({
2551
+ i.individualActions.length > 0 ? (t(), $(Ce, Q({
2512
2552
  key: 0,
2513
2553
  ref_for: !0
2514
2554
  }, {
2515
- subject: d,
2555
+ subject: p,
2516
2556
  actions: i.individualActions
2517
2557
  }), {
2518
- default: v(() => [
2519
- x(q(Z, {
2558
+ default: v(({
2559
+ visible: h
2560
+ }) => [
2561
+ x(F(Z, {
2520
2562
  reactive: "",
2563
+ active: h,
2521
2564
  icon: "dots-three-vertical"
2522
- }, null, 512), [
2565
+ }, null, 8, ["active"]), [
2523
2566
  [_]
2524
2567
  ])
2525
2568
  ]),
@@ -2529,25 +2572,25 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2529
2572
  default: v(() => {
2530
2573
  var h;
2531
2574
  return [
2532
- q(De, {
2575
+ F(He, {
2533
2576
  alt: "Item picture",
2534
2577
  expandable: "",
2535
- url: (h = a(d[e(l).picture])) == null ? void 0 : h.link,
2536
- meta: a(d[e(l).picture])
2578
+ url: (h = a(p[e(l).picture])) == null ? void 0 : h.link,
2579
+ meta: a(p[e(l).picture])
2537
2580
  }, null, 8, ["url", "meta"])
2538
2581
  ];
2539
2582
  }),
2540
2583
  _: 2
2541
2584
  }, [
2542
- e(l).badge && Array.isArray(d[e(l).badge]) ? {
2585
+ e(l).badge && Array.isArray(p[e(l).badge]) ? {
2543
2586
  name: "badge",
2544
2587
  fn: v(() => [
2545
- (t(!0), s(N, null, D(d[e(l).badge], (h) => (t(), $($e, {
2546
- key: `${d._id}-${h}`,
2588
+ (t(!0), s(N, null, D(p[e(l).badge], (h) => (t(), $($e, {
2589
+ key: `${p._id}-${h}`,
2547
2590
  large: ""
2548
2591
  }, {
2549
2592
  default: v(() => [
2550
- W(g(e(l).translateBadge ? e(L)(h) : h), 1)
2593
+ W(k(e(l).translateBadge ? e(L)(h) : h), 1)
2551
2594
  ]),
2552
2595
  _: 2
2553
2596
  }, 1024))), 128))
@@ -2556,9 +2599,9 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2556
2599
  } : e(l).badge ? {
2557
2600
  name: "badge",
2558
2601
  fn: v(() => [
2559
- q($e, null, {
2602
+ F($e, null, {
2560
2603
  default: v(() => [
2561
- W(g(e(l).translateBadge ? e(L)(d[e(l).badge]) : d[e(l).badge]), 1)
2604
+ W(k(e(l).translateBadge ? e(L)(p[e(l).badge]) : p[e(l).badge]), 1)
2562
2605
  ]),
2563
2606
  _: 2
2564
2607
  }, 1024)
@@ -2572,13 +2615,13 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2572
2615
  };
2573
2616
  }
2574
2617
  });
2575
- const vt = /* @__PURE__ */ K(Ya, [["__scopeId", "data-v-113dd7db"]]), Ja = (u) => ({
2618
+ const vt = /* @__PURE__ */ K(Ya, [["__scopeId", "data-v-ccbced12"]]), Ja = (u) => ({
2576
2619
  tabular: Qa,
2577
2620
  grid: vt,
2578
2621
  list: vt
2579
- })[u], de = J(!1);
2622
+ })[u], pe = J(!1);
2580
2623
  J(!1);
2581
- const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21eeb8fd"), u = u(), Qe(), u), Pa = {
2624
+ const ke = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21eeb8fd"), u = u(), Qe(), u), Pa = {
2582
2625
  key: 2,
2583
2626
  class: "crud__controls"
2584
2627
  }, Na = {
@@ -2605,91 +2648,91 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2605
2648
  setup(u, { emit: r }) {
2606
2649
  const l = u, n = r, a = Ae(), i = kt({
2607
2650
  delay: 600
2608
- }), c = ie("meta"), _ = qe(), { reachedEnd: d, detach: h } = Ze(null, {
2651
+ }), c = ie("meta"), _ = qe(), { reachedEnd: p, detach: h } = Ze(null, {
2609
2652
  antecipate: 600
2610
- }), p = !_.value.md || l.scrollPagination;
2611
- p && ue(d, (k) => {
2612
- k && o.pagination.recordsTotal > o.items.length && b.value < ht && (b.value += 1, T());
2653
+ }), d = !_.value.md || l.scrollPagination;
2654
+ d && ue(p, (V) => {
2655
+ V && o.pagination.recordsTotal > o.items.length && b.value < ht && (b.value += 1, j());
2613
2656
  });
2614
2657
  const o = ie(l.collection);
2615
2658
  ia(o, {
2616
2659
  persistInQuery: !l.noQueryPersistence
2617
2660
  });
2618
- const m = Pe(), A = l.action ? e(l.action) : Dt(o, a, m);
2661
+ const m = Pe(), A = l.action ? e(l.action) : Ht(o, a, m);
2619
2662
  Le.value = A[0], yt.value = A[1];
2620
- const b = J(0), S = J(!1), T = async (k) => {
2621
- o.activeFilters = Object.assign({}, (k == null ? void 0 : k.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
2622
- const j = {
2663
+ const b = J(0), S = J(!1), j = async (V) => {
2664
+ o.activeFilters = Object.assign({}, (V == null ? void 0 : V.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
2665
+ const T = {
2623
2666
  filters: o.activeFilters,
2624
2667
  limit: o.pagination.limit,
2625
2668
  offset: o.pagination.offset,
2626
2669
  project: o.preferredTableProperties.length > 0 ? o.preferredTableProperties : o.description.table || Object.keys(o.properties)
2627
2670
  };
2628
- b.value > 0 && (j.limit = 15, j.offset = b.value * j.limit), o.description.tableMeta && (j.project = j.project.concat(o.description.tableMeta)), k && Object.assign(j, k), o.loading.getAll = !0;
2629
- const { error: ae, result: le } = await o.$actions.retrieveItems(j);
2671
+ b.value > 0 && (T.limit = 15, T.offset = b.value * T.limit), o.description.tableMeta && (T.project = T.project.concat(o.description.tableMeta)), V && Object.assign(T, V), o.loading.getAll = !0;
2672
+ const { error: ae, result: le } = await o.$actions.retrieveItems(T);
2630
2673
  if (ae)
2631
2674
  return;
2632
2675
  const { data: ne, pagination: se } = le;
2633
2676
  o.pagination.recordsCount = se.recordsCount, o.pagination.recordsTotal = se.recordsTotal, b.value === 0 && o.items.splice(0), o.items.push(...ne), o.loading.getAll = !1, S.value = !0;
2634
- }, P = async (k) => {
2677
+ }, P = async (V) => {
2635
2678
  a.push(Me(a.currentRoute.value, {
2636
2679
  query: {
2637
- offset: k.offset,
2638
- limit: k.limit
2680
+ offset: V.offset,
2681
+ limit: V.limit
2639
2682
  }
2640
- })), o.pagination.offset = k.offset, o.pagination.limit = k.limit, T();
2683
+ })), o.pagination.offset = V.offset, o.pagination.limit = V.limit, j();
2641
2684
  }, B = _e("noResultsComponent", null);
2642
2685
  ue(() => [
2643
2686
  a.currentRoute.value.path,
2644
2687
  a.currentRoute.value.query.section
2645
- ], async (k, j) => {
2646
- if (j && j[0] === k[0] && j[1] === k[1])
2688
+ ], async (V, T) => {
2689
+ if (T && T[0] === V[0] && T[1] === V[1])
2647
2690
  return;
2648
2691
  const ae = a.currentRoute.value;
2649
2692
  if (c.view.title = l.collection, c.view.collection = l.collection, !l.noFetch && !ae.query._popstate) {
2650
- const le = Ht(o, ae);
2651
- Object.keys(le).length > 0 && Object.assign(o.filters, le), await T();
2693
+ const le = Dt(o, ae);
2694
+ Object.keys(le).length > 0 && Object.assign(o.filters, le), await j();
2652
2695
  }
2653
2696
  }, {
2654
2697
  immediate: !0,
2655
2698
  flush: "post"
2656
2699
  });
2657
- const [R] = i((k) => (a.push(Me(a.currentRoute.value, {
2700
+ const [R] = i((V) => (a.push(Me(a.currentRoute.value, {
2658
2701
  query: {
2659
- search: k || void 0
2702
+ search: V || void 0
2660
2703
  }
2661
- })), k ? (o.filters = Object.assign(ke(o.freshFilters), {
2704
+ })), V ? (o.filters = Object.assign(Ve(o.freshFilters), {
2662
2705
  $text: {
2663
- $search: `"${k}"`,
2706
+ $search: `"${V}"`,
2664
2707
  $caseSensitive: !1
2665
2708
  }
2666
- }), T({
2709
+ }), j({
2667
2710
  offset: 0
2668
- })) : (o.filters = ke(o.freshFilters), b.value = 0, T())));
2669
- ue(() => o.textQuery, (k) => {
2670
- R(k);
2711
+ })) : (o.filters = Ve(o.freshFilters), b.value = 0, j())));
2712
+ ue(() => o.textQuery, (V) => {
2713
+ R(V);
2671
2714
  });
2672
- const Y = (k) => {
2673
- k.currentLayout = k.currentLayout === "tabular" ? k.description.layout.name : "tabular";
2715
+ const Y = (V) => {
2716
+ V.currentLayout = V.currentLayout === "tabular" ? V.description.layout.name : "tabular";
2674
2717
  };
2675
2718
  wt(() => {
2676
2719
  o.$actions.clearFilters(), o.textQuery = "", h();
2677
- }), ue(() => yt.value, async (k) => {
2720
+ }), ue(() => yt.value, async (V) => {
2678
2721
  var le;
2679
- const j = ke(k);
2722
+ const T = Ve(V);
2680
2723
  let ae;
2681
- if (j)
2682
- if ((j.name === "spawnEdit" || j.name === "duplicate") && (ae = o.$actions.get({
2724
+ if (T)
2725
+ if ((T.name === "spawnEdit" || T.name === "duplicate") && (ae = o.$actions.get({
2683
2726
  filters: {
2684
- _id: j.params._id
2727
+ _id: T.params._id
2685
2728
  }
2686
- })), j.name === "spawnAdd")
2687
- o.$actions.clearItem(), (le = j.params) != null && le.item && (o.$actions.setItem(j.params.item), Object.keys(j.params.item).forEach((ne) => {
2729
+ })), T.name === "spawnAdd")
2730
+ o.$actions.clearItem(), (le = T.params) != null && le.item && (o.$actions.setItem(T.params.item), Object.keys(T.params.item).forEach((ne) => {
2688
2731
  delete o.referenceItem[ne];
2689
- })), de.value = "add";
2690
- else if (j.name === "spawnEdit")
2691
- o.$actions.setItem(j.params), de.value = "edit";
2692
- else if (j.name === "duplicate") {
2732
+ })), pe.value = "add";
2733
+ else if (T.name === "spawnEdit")
2734
+ o.$actions.setItem(T.params), pe.value = "edit";
2735
+ else if (T.name === "duplicate") {
2693
2736
  await ae;
2694
2737
  const ne = Object.entries(o.item).reduce((se, [z, U]) => {
2695
2738
  if (!(z in o.properties))
@@ -2700,54 +2743,54 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2700
2743
  const f = o.properties[z];
2701
2744
  if (f.readOnly)
2702
2745
  return se;
2703
- const F = (G) => {
2704
- const V = me(f);
2705
- if (!V)
2706
- return G;
2707
- if (V.$ref === "file")
2746
+ const M = (H) => {
2747
+ const g = me(f);
2748
+ if (!g)
2749
+ return H;
2750
+ if (g.$ref === "file")
2708
2751
  return {};
2709
- if (V.inline && G) {
2710
- const { _id: I, ...M } = G;
2711
- return M;
2752
+ if (g.inline && H) {
2753
+ const { _id: I, ...q } = H;
2754
+ return q;
2712
2755
  }
2713
- return G;
2756
+ return H;
2714
2757
  };
2715
- return U = Array.isArray(U) ? U.map(F) : F(U), {
2758
+ return U = Array.isArray(U) ? U.map(M) : M(U), {
2716
2759
  ...se,
2717
2760
  [z]: U
2718
2761
  };
2719
2762
  }, {});
2720
- o.$actions.setItem(ne), delete o.item._id, o.referenceItem = {}, de.value = "duplicate";
2763
+ o.$actions.setItem(ne), delete o.item._id, o.referenceItem = {}, pe.value = "duplicate";
2721
2764
  } else
2722
- n("uiEvent", j);
2765
+ n("uiEvent", T);
2723
2766
  }, {
2724
2767
  deep: !0
2725
- }), ue(() => de, ({ value: k }) => {
2726
- k === !1 && (c.view.collection = l.collection, o.$actions.clearItem());
2768
+ }), ue(() => pe, ({ value: V }) => {
2769
+ V === !1 && (c.view.collection = l.collection, o.$actions.clearItem());
2727
2770
  });
2728
- const w = Q(() => o.individualActions.map((k) => ({
2729
- click: Le.value(k),
2730
- ...k
2731
- }))), te = Q(() => o.actions.filter((k) => !k.button));
2732
- return ye(Ue, Q(() => l.collection)), ye("individualActions", w), (k, j) => {
2733
- var ne, se, z, U, f, F, G;
2771
+ const w = G(() => o.individualActions.map((V) => ({
2772
+ click: Le.value(V),
2773
+ ...V
2774
+ }))), te = G(() => o.actions.filter((V) => !V.button));
2775
+ return ye(Ue, G(() => l.collection)), ye("individualActions", w), (V, T) => {
2776
+ var ne, se, z, U, f, M, H;
2734
2777
  const ae = oe("clickable"), le = oe("loading");
2735
2778
  return t(), s(N, null, [
2736
- e(ge) ? (t(), $(la, {
2779
+ e(ke) ? (t(), $(la, {
2737
2780
  key: e(o).$id,
2738
- modelValue: e(ge),
2739
- "onUpdate:modelValue": j[0] || (j[0] = (V) => _t(ge) ? ge.value = V : null)
2781
+ modelValue: e(ke),
2782
+ "onUpdate:modelValue": T[0] || (T[0] = (g) => _t(ke) ? ke.value = g : null)
2740
2783
  }, null, 8, ["modelValue"])) : y("", !0),
2741
- e(de) ? (t(), $(sa, {
2784
+ e(pe) ? (t(), $(sa, {
2742
2785
  key: 1,
2743
- modelValue: e(de),
2744
- "onUpdate:modelValue": j[1] || (j[1] = (V) => _t(de) ? de.value = V : null),
2786
+ modelValue: e(pe),
2787
+ "onUpdate:modelValue": T[1] || (T[1] = (g) => _t(pe) ? pe.value = g : null),
2745
2788
  "fixed-right": "",
2746
- onCancel: j[2] || (j[2] = (V) => de.value = !1)
2789
+ onCancel: T[2] || (T[2] = (g) => pe.value = !1)
2747
2790
  }, ce({
2748
2791
  header: v(() => [
2749
- C("span", null, g((() => {
2750
- switch (e(de)) {
2792
+ C("span", null, k((() => {
2793
+ switch (e(pe)) {
2751
2794
  case "add":
2752
2795
  return e(L)("action.add", { capitalize: !0 });
2753
2796
  case "duplicate":
@@ -2757,22 +2800,22 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2757
2800
  return e(L)("action.edit", { capitalize: !0 });
2758
2801
  }
2759
2802
  })()), 1),
2760
- C("span", null, " " + g(e(L)(e(c).view.collection)), 1)
2803
+ C("span", null, " " + k(e(L)(e(c).view.collection)), 1)
2761
2804
  ]),
2762
2805
  _: 2
2763
2806
  }, [
2764
- D(Object.keys(k.$slots).filter((V) => V.startsWith("field-")), (V) => ({
2765
- name: V,
2807
+ D(Object.keys(V.$slots).filter((g) => g.startsWith("field-")), (g) => ({
2808
+ name: g,
2766
2809
  fn: v((I) => [
2767
- O(k.$slots, V, pe(Ve(I)), void 0, !0)
2810
+ O(V.$slots, g, de(ge(I)), void 0, !0)
2768
2811
  ])
2769
2812
  }))
2770
2813
  ]), 1032, ["modelValue"])) : y("", !0),
2771
- !k.noActions && (e(o).description.search || Object.keys(e(o).availableFilters).length > 0 || ((ne = e(o)) == null ? void 0 : ne.actions.length) > 0 || k.$slots.actions || !k.noLayoutToggle && e(o).description.layout && ((se = e(o).description.layout) == null ? void 0 : se.name) !== "tabular") ? (t(), s("div", Pa, [
2814
+ !V.noActions && (e(o).description.search || Object.keys(e(o).availableFilters).length > 0 || ((ne = e(o)) == null ? void 0 : ne.actions.length) > 0 || V.$slots.actions || !V.noLayoutToggle && e(o).description.layout && ((se = e(o).description.layout) == null ? void 0 : se.name) !== "tabular") ? (t(), s("div", Pa, [
2772
2815
  e(o).description.search ? (t(), s("div", Na, [
2773
- q(Oe, H({
2816
+ F(Oe, Q({
2774
2817
  modelValue: e(o).textQuery,
2775
- "onUpdate:modelValue": j[3] || (j[3] = (V) => e(o).textQuery = V)
2818
+ "onUpdate:modelValue": T[3] || (T[3] = (g) => e(o).textQuery = g)
2776
2819
  }, {
2777
2820
  property: {
2778
2821
  type: "string",
@@ -2782,16 +2825,16 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2782
2825
  }), null, 16, ["modelValue"])
2783
2826
  ])) : y("", !0),
2784
2827
  C("div", xa, [
2785
- te.value.length > 0 || !k.noLayoutToggle && e(o).description.layout && ((z = e(o).description.layout) == null ? void 0 : z.name) !== "tabular" ? (t(), $(Ce, { key: 0 }, ce({
2828
+ te.value.length > 0 || !V.noLayoutToggle && e(o).description.layout && ((z = e(o).description.layout) == null ? void 0 : z.name) !== "tabular" ? (t(), $(Ce, { key: 0 }, ce({
2786
2829
  default: v(() => [
2787
- q(re, {
2830
+ F(re, {
2788
2831
  variant: "alt",
2789
2832
  icon: "sliders"
2790
2833
  }, {
2791
2834
  default: v(() => [
2792
2835
  e(o).filtersCount ? (t(), $($e, { key: 0 }, {
2793
2836
  default: v(() => [
2794
- W(g(e(o).filtersCount), 1)
2837
+ W(k(e(o).filtersCount), 1)
2795
2838
  ]),
2796
2839
  _: 1
2797
2840
  })) : y("", !0)
@@ -2806,10 +2849,10 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2806
2849
  fn: v(() => [
2807
2850
  x((t(), $(Z, {
2808
2851
  icon: "funnel",
2809
- onClick: j[4] || (j[4] = (V) => ge.value = !0)
2852
+ onClick: T[4] || (T[4] = (g) => ke.value = !0)
2810
2853
  }, {
2811
2854
  default: v(() => [
2812
- W(g(e(L)("filters", { capitalize: !0 })), 1)
2855
+ W(k(e(L)("filters", { capitalize: !0 })), 1)
2813
2856
  ]),
2814
2857
  _: 1
2815
2858
  })), [
@@ -2818,7 +2861,7 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2818
2861
  C("div", el, [
2819
2862
  e(o).filtersCount ? (t(), $($e, { key: 0 }, {
2820
2863
  default: v(() => [
2821
- W(g(e(o).filtersCount), 1)
2864
+ W(k(e(o).filtersCount), 1)
2822
2865
  ]),
2823
2866
  _: 1
2824
2867
  })) : y("", !0)
@@ -2826,15 +2869,15 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2826
2869
  ]),
2827
2870
  key: "0"
2828
2871
  } : void 0,
2829
- !k.noLayoutToggle && e(o).description.layout && ((U = e(o).description.layout) == null ? void 0 : U.name) !== "tabular" ? {
2872
+ !V.noLayoutToggle && e(o).description.layout && ((U = e(o).description.layout) == null ? void 0 : U.name) !== "tabular" ? {
2830
2873
  name: "layout-toggle",
2831
2874
  fn: v(() => [
2832
2875
  x((t(), $(Z, {
2833
2876
  icon: "table",
2834
- onClick: j[5] || (j[5] = (V) => Y(e(o)))
2877
+ onClick: T[5] || (T[5] = (g) => Y(e(o)))
2835
2878
  }, {
2836
2879
  default: v(() => [
2837
- W(g(e(L)("change_layout", { capitalize: !0 })), 1)
2880
+ W(k(e(L)("change_layout", { capitalize: !0 })), 1)
2838
2881
  ]),
2839
2882
  _: 1
2840
2883
  })), [
@@ -2843,17 +2886,17 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2843
2886
  ]),
2844
2887
  key: "1"
2845
2888
  } : void 0,
2846
- D(te.value, (V, I) => ({
2889
+ D(te.value, (g, I) => ({
2847
2890
  name: `action-${I}`,
2848
2891
  fn: v(() => [
2849
- V ? (t(), $(Z, {
2892
+ g ? (t(), $(Z, {
2850
2893
  key: 0,
2851
- icon: V.icon || "gear",
2852
- disabled: e(o).selected.length === 0 && V.selection,
2853
- onClick: (M) => e(Le)(V)({ _id: e(o).selected.map((fe) => fe._id) })
2894
+ icon: g.icon || "gear",
2895
+ disabled: e(o).selected.length === 0 && g.selection,
2896
+ onClick: (q) => e(Le)(g)({ _id: e(o).selected.map((fe) => fe._id) })
2854
2897
  }, {
2855
2898
  default: v(() => [
2856
- W(g(e(L)(V.label, { capitalize: !0 })), 1)
2899
+ W(k(e(L)(g.label, { capitalize: !0 })), 1)
2857
2900
  ]),
2858
2901
  _: 2
2859
2902
  }, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
@@ -2863,84 +2906,84 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2863
2906
  key: 1,
2864
2907
  variant: "alt",
2865
2908
  icon: "funnel",
2866
- onClick: j[6] || (j[6] = (V) => ge.value = !0)
2909
+ onClick: T[6] || (T[6] = (g) => ke.value = !0)
2867
2910
  }, {
2868
2911
  default: v(() => [
2869
2912
  tl,
2870
2913
  e(o).filtersCount ? (t(), $($e, { key: 0 }, {
2871
2914
  default: v(() => [
2872
- W(g(e(o).filtersCount), 1)
2915
+ W(k(e(o).filtersCount), 1)
2873
2916
  ]),
2874
2917
  _: 1
2875
2918
  })) : y("", !0)
2876
2919
  ]),
2877
2920
  _: 1
2878
2921
  })) : y("", !0),
2879
- (t(!0), s(N, null, D(e(o).actions.filter((V) => V.button), (V, I) => (t(), $(re, {
2922
+ (t(!0), s(N, null, D(e(o).actions.filter((g) => g.button), (g, I) => (t(), $(re, {
2880
2923
  key: `action-${I}`,
2881
- icon: V.icon,
2882
- disabled: e(o).selected.length === 0 && V.selection,
2883
- onClick: (M) => e(Le)(V)({ _id: e(o).selected.map((fe) => fe._id) })
2924
+ icon: g.icon,
2925
+ disabled: e(o).selected.length === 0 && g.selection,
2926
+ onClick: (q) => e(Le)(g)({ _id: e(o).selected.map((fe) => fe._id) })
2884
2927
  }, {
2885
2928
  default: v(() => [
2886
- W(g(e(L)(V.label, { capitalize: !0 })), 1)
2929
+ W(k(e(L)(g.label, { capitalize: !0 })), 1)
2887
2930
  ]),
2888
2931
  _: 2
2889
2932
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
2890
- k.$slots.actions ? O(k.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2933
+ V.$slots.actions ? O(V.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2891
2934
  ])
2892
2935
  ])) : y("", !0),
2893
2936
  x((t(), s("div", null, [
2894
- e(o).itemsCount === 0 && !e(o).loading.getAll && S.value && (e(B) || k.$slots.empty) ? (t(), s("div", nl, [
2895
- e(B) ? (t(), $(he(e(B)), pe(H({ key: 0 }, {
2937
+ e(o).itemsCount === 0 && !e(o).loading.getAll && S.value && (e(B) || V.$slots.empty) ? (t(), s("div", nl, [
2938
+ e(B) ? (t(), $(he(e(B)), de(Q({ key: 0 }, {
2896
2939
  collection: e(o).$id
2897
2940
  })), {
2898
2941
  default: v(() => [
2899
2942
  e(o).filtersCount === 0 && e(o).description.actions && "ui:spawnAdd" in e(o).description.actions ? (t(), $(re, {
2900
2943
  key: 0,
2901
2944
  icon: "plus",
2902
- onClick: j[7] || (j[7] = (V) => e(Le)({
2945
+ onClick: T[7] || (T[7] = (g) => e(Le)({
2903
2946
  action: "ui:spawnAdd"
2904
2947
  })())
2905
2948
  }, {
2906
2949
  default: v(() => [
2907
- W(g(e(L)("add_first_item", { capitalize: !0 })), 1)
2950
+ W(k(e(L)("add_first_item", { capitalize: !0 })), 1)
2908
2951
  ]),
2909
2952
  _: 1
2910
2953
  })) : y("", !0)
2911
2954
  ]),
2912
2955
  _: 1
2913
- }, 16)) : O(k.$slots, "empty", pe(H({ key: 1 }, {
2956
+ }, 16)) : O(V.$slots, "empty", de(Q({ key: 1 }, {
2914
2957
  collection: e(o).$id
2915
2958
  })), void 0, !0)
2916
- ])) : k.$slots.component ? O(k.$slots, "component", pe(H({ key: 1 }, {
2959
+ ])) : V.$slots.component ? O(V.$slots, "component", de(Q({ key: 1 }, {
2917
2960
  store: e(o)
2918
- })), void 0, !0) : (t(), $(he(e(Ja)(((f = k.layout) == null ? void 0 : f.name) || e(o).$currentLayout)), H({ key: 2 }, {
2961
+ })), void 0, !0) : (t(), $(he(e(Ja)(((f = V.layout) == null ? void 0 : f.name) || e(o).$currentLayout)), Q({ key: 2 }, {
2919
2962
  individualActions: w.value,
2920
- layoutOptions: ((F = k.layout) == null ? void 0 : F.options) || e(o).layout.options,
2921
- componentProps: k.componentProps
2963
+ layoutOptions: ((M = V.layout) == null ? void 0 : M.options) || e(o).layout.options,
2964
+ componentProps: V.componentProps
2922
2965
  }, {
2923
- "component-name": ((G = k.layout) == null ? void 0 : G.name) || e(o).$currentLayout
2966
+ "component-name": ((H = V.layout) == null ? void 0 : H.name) || e(o).$currentLayout
2924
2967
  }), ce({ _: 2 }, [
2925
- D(Object.keys(k.$slots).filter((V) => V.startsWith("row-")), (V) => ({
2926
- name: V,
2968
+ D(Object.keys(V.$slots).filter((g) => g.startsWith("row-")), (g) => ({
2969
+ name: g,
2927
2970
  fn: v((I) => [
2928
- O(k.$slots, V, pe(Ve(I)), void 0, !0)
2971
+ O(V.$slots, g, de(ge(I)), void 0, !0)
2929
2972
  ])
2930
2973
  })),
2931
- k.$slots.tfoot ? {
2974
+ V.$slots.tfoot ? {
2932
2975
  name: "tfoot",
2933
2976
  fn: v(() => [
2934
- O(k.$slots, "tfoot", {}, void 0, !0)
2977
+ O(V.$slots, "tfoot", {}, void 0, !0)
2935
2978
  ]),
2936
2979
  key: "0"
2937
2980
  } : void 0
2938
2981
  ]), 1040, ["component-name"]))
2939
2982
  ])), [
2940
- [le, (!e(p) || b.value === ht) && e(o).loading.getAll]
2983
+ [le, (!e(d) || b.value === ht) && e(o).loading.getAll]
2941
2984
  ]),
2942
2985
  !e(o).loading.getAll && e(o).itemsCount > 0 ? (t(), s("div", ol, [
2943
- q(Un, {
2986
+ F(Un, {
2944
2987
  pagination: e(o).pagination,
2945
2988
  onPaginate: P
2946
2989
  }, null, 8, ["pagination"])
@@ -2979,7 +3022,7 @@ const El = /* @__PURE__ */ K(al, [["__scopeId", "data-v-21eeb8fd"]]), ll = { cla
2979
3022
  onClick: (_) => i.click ? i.click(i) : l(i)
2980
3023
  }, {
2981
3024
  default: v(() => [
2982
- W(g(i.title || i.name), 1)
3025
+ W(k(i.title || i.name), 1)
2983
3026
  ]),
2984
3027
  _: 2
2985
3028
  }, 1032, ["class", "onClick"]))), 128))
@@ -2995,7 +3038,7 @@ const El = /* @__PURE__ */ K(al, [["__scopeId", "data-v-21eeb8fd"]]), ll = { cla
2995
3038
  n.title ? {
2996
3039
  name: "title",
2997
3040
  fn: v(() => [
2998
- W(g(n.title), 1)
3041
+ W(k(n.title), 1)
2999
3042
  ]),
3000
3043
  key: "0"
3001
3044
  } : void 0
@@ -3022,13 +3065,13 @@ const il = /* @__PURE__ */ K(sl, [["__scopeId", "data-v-5443f297"]]), rl = { cla
3022
3065
  onAnimationend: n[0] || (n[0] = (i) => e(r).$actions.popToast()),
3023
3066
  onClick: n[1] || (n[1] = (i) => e(r).$actions.popToast(l.itr))
3024
3067
  }, [
3025
- q(Z, H(
3068
+ F(Z, Q(
3026
3069
  l.icon ? { icon: l.icon } : { icon: "warning-circle" },
3027
3070
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3028
3071
  ), null, 16),
3029
3072
  C("div", rl, [
3030
3073
  O(l.$slots, "default", {}, void 0, !0),
3031
- C("div", ul, g(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
3074
+ C("div", ul, k(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
3032
3075
  ])
3033
3076
  ], 34)), [
3034
3077
  [a]
@@ -3039,7 +3082,7 @@ const il = /* @__PURE__ */ K(sl, [["__scopeId", "data-v-5443f297"]]), rl = { cla
3039
3082
  const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["innerHTML"], _l = { class: "main__toasts" }, ml = ["innerHTML"], fl = /* @__PURE__ */ E({
3040
3083
  __name: "aeria-main",
3041
3084
  setup(u) {
3042
- const r = ie("meta"), l = Q(() => r.themeOverride || r.theme);
3085
+ const r = ie("meta"), l = G(() => r.themeOverride || r.theme);
3043
3086
  return (n, a) => {
3044
3087
  const i = St("router-view");
3045
3088
  return t(), s("main", {
@@ -3050,9 +3093,9 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3050
3093
  ${l.value === "dark" && "tw-dark"}
3051
3094
  `)
3052
3095
  }, [
3053
- (t(), $(jt, null, {
3096
+ (t(), $(Tt, null, {
3054
3097
  default: v(() => [
3055
- q(i, null, {
3098
+ F(i, null, {
3056
3099
  default: v(({ Component: c }) => [
3057
3100
  (t(), $(he(c), null, ce({ _: 2 }, [
3058
3101
  D(Object.keys(n.$slots), (_) => ({
@@ -3069,7 +3112,7 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3069
3112
  _: 3
3070
3113
  })),
3071
3114
  O(n.$slots, "default", {}, void 0, !0),
3072
- q(Be, H({
3115
+ F(Be, Q({
3073
3116
  modelValue: e(r).modal.visible,
3074
3117
  "onUpdate:modelValue": a[0] || (a[0] = (c) => e(r).modal.visible = c),
3075
3118
  float: "",
@@ -3088,14 +3131,14 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3088
3131
  ]),
3089
3132
  _: 1
3090
3133
  }, 16, ["modelValue"]),
3091
- e(r).prompt.visible ? (t(), $(il, pe(H({ key: 0 }, e(r).prompt)), {
3134
+ e(r).prompt.visible ? (t(), $(il, de(Q({ key: 0 }, e(r).prompt)), {
3092
3135
  default: v(() => [
3093
- W(g(e(r).prompt.body), 1)
3136
+ W(k(e(r).prompt.body), 1)
3094
3137
  ]),
3095
3138
  _: 1
3096
3139
  }, 16)) : y("", !0),
3097
3140
  C("div", _l, [
3098
- (t(!0), s(N, null, D(e(r).toasts, (c) => (t(), $(dl, H({ ref_for: !0 }, c, {
3141
+ (t(!0), s(N, null, D(e(r).toasts, (c) => (t(), $(dl, Q({ ref_for: !0 }, c, {
3099
3142
  key: `toast-${c.itr}`
3100
3143
  }), {
3101
3144
  default: v(() => [
@@ -3110,7 +3153,7 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3110
3153
  };
3111
3154
  }
3112
3155
  });
3113
- const Dl = /* @__PURE__ */ K(fl, [["__scopeId", "data-v-1166be3d"]]);
3156
+ const Hl = /* @__PURE__ */ K(fl, [["__scopeId", "data-v-1166be3d"]]);
3114
3157
  const vl = {}, yl = { class: "menu" };
3115
3158
  function hl(u, r) {
3116
3159
  return t(), s("menu", yl, [
@@ -3122,7 +3165,7 @@ function hl(u, r) {
3122
3165
  ]))), 128))
3123
3166
  ]);
3124
3167
  }
3125
- const Hl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb"]]), bl = { class: "tabs" }, $l = {
3168
+ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb"]]), bl = { class: "tabs" }, $l = {
3126
3169
  key: 0,
3127
3170
  class: "tabs__horizontal"
3128
3171
  }, gl = {
@@ -3139,7 +3182,7 @@ const Hl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3139
3182
  dropdown: { type: Boolean }
3140
3183
  },
3141
3184
  setup(u) {
3142
- const r = u, l = Tt(), n = Ae(), a = qe(), i = Q(() => {
3185
+ const r = u, l = jt(), n = Ae(), a = qe(), i = G(() => {
3143
3186
  if (r.query) {
3144
3187
  const _ = n.currentRoute.value.query[r.query];
3145
3188
  if (_)
@@ -3161,28 +3204,29 @@ const Hl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3161
3204
  }
3162
3205
  }));
3163
3206
  };
3164
- return (_, d) => {
3207
+ return (_, p) => {
3165
3208
  const h = oe("clickable");
3166
3209
  return t(), s("div", bl, [
3167
3210
  e(a).md && !_.dropdown ? (t(), s("div", $l, [
3168
3211
  _.$slots.default ? (t(), s("div", gl, [
3169
3212
  O(_.$slots, "default", {}, void 0, !0)
3170
3213
  ])) : y("", !0),
3171
- (t(!0), s(N, null, D(Object.keys(_.$slots).filter((p) => p !== "default"), (p, o) => (t(), s("div", {
3172
- key: p,
3214
+ (t(!0), s(N, null, D(Object.keys(_.$slots).filter((d) => d !== "default"), (d, o) => (t(), s("div", {
3215
+ key: d,
3173
3216
  class: X({
3174
3217
  tabs__tab: !0,
3175
- "tabs__tab--current": p === i.value || !i.value && o === 0
3218
+ "tabs__tab--current": d === i.value || !i.value && o === 0
3176
3219
  }),
3177
- onClick: (m) => c(p)
3220
+ onClick: (m) => c(d)
3178
3221
  }, [
3179
- O(_.$slots, p, {}, void 0, !0)
3222
+ O(_.$slots, d, {}, void 0, !0)
3180
3223
  ], 10, kl))), 128))
3181
3224
  ])) : (t(), s("div", Vl, [
3182
- q(Ce, null, ce({
3183
- default: v(() => [
3225
+ F(Ce, null, ce({
3226
+ default: v(({ visible: d }) => [
3184
3227
  x((t(), $(Z, {
3185
3228
  "icon-right": "",
3229
+ active: d,
3186
3230
  icon: "caret-down",
3187
3231
  style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
3188
3232
  class: "tabs__context-menu-icon"
@@ -3190,20 +3234,20 @@ const Hl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3190
3234
  default: v(() => [
3191
3235
  O(_.$slots, i.value, {}, void 0, !0)
3192
3236
  ]),
3193
- _: 3
3194
- })), [
3237
+ _: 2
3238
+ }, 1032, ["active"])), [
3195
3239
  [h]
3196
3240
  ])
3197
3241
  ]),
3198
3242
  _: 2
3199
3243
  }, [
3200
- D(Object.keys(_.$slots).filter((p) => p !== "default"), (p) => ({
3201
- name: p,
3244
+ D(Object.keys(_.$slots).filter((d) => d !== "default"), (d) => ({
3245
+ name: d,
3202
3246
  fn: v(() => [
3203
3247
  C("div", {
3204
- onClick: (o) => c(p)
3248
+ onClick: (o) => c(d)
3205
3249
  }, [
3206
- O(_.$slots, p, {}, void 0, !0)
3250
+ O(_.$slots, d, {}, void 0, !0)
3207
3251
  ], 8, Cl)
3208
3252
  ])
3209
3253
  }))
@@ -3213,7 +3257,7 @@ const Hl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3213
3257
  };
3214
3258
  }
3215
3259
  });
3216
- const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-bbc959bb"]]), Al = E({
3260
+ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-a20914ab"]]), Al = E({
3217
3261
  props: {
3218
3262
  initialValue: String,
3219
3263
  promise: Promise
@@ -3230,38 +3274,38 @@ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-bbc959bb"]]), Al = E({
3230
3274
  collection: {}
3231
3275
  },
3232
3276
  setup(u) {
3233
- const r = u, n = Ae().currentRoute, a = Pe(), i = Q(() => r.collection ? Ke(r.collection, a) : typeof n.value.meta.collection == "string" ? Ke(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? Ke(n.value.params.collection, a) : null), c = async (_, d) => {
3234
- const { error: h, result: p } = await d.$functions[_.badgeFunction]({
3277
+ const r = u, n = Ae().currentRoute, a = Pe(), i = G(() => r.collection ? Ke(r.collection, a) : typeof n.value.meta.collection == "string" ? Ke(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? Ke(n.value.params.collection, a) : null), c = async (_, p) => {
3278
+ const { error: h, result: d } = await p.$functions[_.badgeFunction]({
3235
3279
  filters: _.filters
3236
3280
  });
3237
- return h ? 0 : p;
3281
+ return h ? 0 : d;
3238
3282
  };
3239
- return (_, d) => i.value && i.value.description.filtersPresets ? (t(), $(Il, {
3283
+ return (_, p) => i.value && i.value.description.filtersPresets ? (t(), $(Il, {
3240
3284
  key: 0,
3241
3285
  dropdown: "",
3242
3286
  query: "section"
3243
3287
  }, ce({ _: 2 }, [
3244
- D(Object.entries(i.value.description.filtersPresets), ([h, p]) => ({
3288
+ D(Object.entries(i.value.description.filtersPresets), ([h, d]) => ({
3245
3289
  name: h,
3246
3290
  fn: v(() => [
3247
3291
  C("div", {
3248
3292
  class: "topbar__preset",
3249
- onClick: (o) => e(Ot)(p, i.value)
3293
+ onClick: (o) => e(Ot)(d, i.value)
3250
3294
  }, [
3251
- p.icon ? (t(), $(Z, {
3295
+ d.icon ? (t(), $(Z, {
3252
3296
  key: 0,
3253
- icon: p.icon
3297
+ icon: d.icon
3254
3298
  }, {
3255
3299
  default: v(() => [
3256
- W(g(p.label || e(L)(h, { plural: !0 })), 1)
3300
+ W(k(d.label || e(L)(h, { plural: !0 })), 1)
3257
3301
  ]),
3258
3302
  _: 2
3259
- }, 1032, ["icon"])) : (t(), s("div", wl, g(p.label || e(L)(h, { plural: !0 })), 1)),
3260
- p.badgeFunction ? (t(), $($e, { key: 2 }, {
3303
+ }, 1032, ["icon"])) : (t(), s("div", wl, k(d.label || e(L)(h, { plural: !0 })), 1)),
3304
+ d.badgeFunction ? (t(), $($e, { key: 2 }, {
3261
3305
  default: v(() => [
3262
- q(e(Al), {
3306
+ F(e(Al), {
3263
3307
  "initial-value": "0",
3264
- promise: c(p, i.value)
3308
+ promise: c(d, i.value)
3265
3309
  }, null, 8, ["promise"])
3266
3310
  ]),
3267
3311
  _: 2
@@ -3272,9 +3316,9 @@ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-bbc959bb"]]), Al = E({
3272
3316
  ]), 1024)) : y("", !0);
3273
3317
  }
3274
3318
  });
3275
- const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3319
+ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3276
3320
  __proto__: null,
3277
- default: jl
3321
+ default: Tl
3278
3322
  }, Symbol.toStringTag, { value: "Module" })), Ql = /* @__PURE__ */ E({
3279
3323
  __name: "aeria-password-form",
3280
3324
  props: {
@@ -3284,7 +3328,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3284
3328
  setup(u) {
3285
3329
  const r = u;
3286
3330
  ye(Ue, null);
3287
- const l = Qt(), n = Q(() => l(
3331
+ const l = Qt(), n = G(() => l(
3288
3332
  r.modelValue.password,
3289
3333
  r.modelValue.confirmation
3290
3334
  ));
@@ -3305,8 +3349,8 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3305
3349
  "onUpdate:modelValue": i[0] || (i[0] = (c) => a.$emit("update:modelValue", c))
3306
3350
  }, {
3307
3351
  after: v(() => [
3308
- C("div", null, g(n.value || "Senhas conferem"), 1),
3309
- O(a.$slots, "default", pe(Ve({ passwordError: n.value })))
3352
+ C("div", null, k(n.value || "Senhas conferem"), 1),
3353
+ O(a.$slots, "default", de(ge({ passwordError: n.value })))
3310
3354
  ]),
3311
3355
  _: 3
3312
3356
  }, 8, ["model-value"]));
@@ -3329,7 +3373,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3329
3373
  {
3330
3374
  path: "signin",
3331
3375
  name: "/user/signin",
3332
- component: () => import("./signin-9ebeb4bf.js"),
3376
+ component: () => import("./signin-7de447b5.js"),
3333
3377
  meta: {
3334
3378
  title: "Autenticação"
3335
3379
  }
@@ -3337,7 +3381,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3337
3381
  {
3338
3382
  path: "signup",
3339
3383
  name: "/user/signup",
3340
- component: () => import("./signup-6a65ca1e.js"),
3384
+ component: () => import("./signup-8433191a.js"),
3341
3385
  meta: {
3342
3386
  title: "Registro"
3343
3387
  }
@@ -3345,7 +3389,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3345
3389
  {
3346
3390
  path: "activation",
3347
3391
  name: "/user/activation",
3348
- component: () => import("./activation-72df6752.js"),
3392
+ component: () => import("./activation-5547695f.js"),
3349
3393
  meta: {
3350
3394
  title: "Ativação"
3351
3395
  }
@@ -3367,8 +3411,8 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3367
3411
  name: "/dashboard/crud",
3368
3412
  props: !0,
3369
3413
  components: {
3370
- default: () => import("./index-3f208c14.js"),
3371
- topbar: () => Promise.resolve().then(() => Tl)
3414
+ default: () => import("./index-2d387874.js"),
3415
+ topbar: () => Promise.resolve().then(() => jl)
3372
3416
  },
3373
3417
  meta: {
3374
3418
  title: "%viewTitle%"
@@ -3379,7 +3423,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3379
3423
  name: "/dashboard/crud/:id",
3380
3424
  props: !0,
3381
3425
  components: {
3382
- default: () => import("./_id_-442ddf2a.js")
3426
+ default: () => import("./_id_-590c2642.js")
3383
3427
  },
3384
3428
  meta: {
3385
3429
  title: "%viewTitle%"
@@ -3397,7 +3441,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3397
3441
  children: [
3398
3442
  {
3399
3443
  path: "profile",
3400
- component: () => import("./index-d747f05a.js"),
3444
+ component: () => import("./index-2bf9ad84.js"),
3401
3445
  meta: {
3402
3446
  title: "Meu perfil",
3403
3447
  icon: "user-square"
@@ -3406,7 +3450,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3406
3450
  {
3407
3451
  path: "changepass",
3408
3452
  name: "/dashboard/user/changepass",
3409
- component: () => import("./index-be05092e.js"),
3453
+ component: () => import("./index-f57af56f.js"),
3410
3454
  meta: {
3411
3455
  title: "Mudar senha",
3412
3456
  icon: "lock"
@@ -3421,7 +3465,7 @@ export {
3421
3465
  Al as B,
3422
3466
  il as C,
3423
3467
  dl as D,
3424
- jl as E,
3468
+ Tl as E,
3425
3469
  Gl as F,
3426
3470
  Wl as G,
3427
3471
  Ql as _,
@@ -3430,8 +3474,8 @@ export {
3430
3474
  Kn as c,
3431
3475
  El as d,
3432
3476
  sa as e,
3433
- De as f,
3434
- Hl as g,
3477
+ He as f,
3478
+ Dl as g,
3435
3479
  Be as h,
3436
3480
  K as i,
3437
3481
  Ul as j,
@@ -3441,9 +3485,9 @@ export {
3441
3485
  Ce as n,
3442
3486
  Wa as o,
3443
3487
  kn as p,
3444
- Dl as q,
3488
+ Hl as q,
3445
3489
  Un as r,
3446
- Ha as s,
3490
+ Da as s,
3447
3491
  Il as t,
3448
3492
  ko as u,
3449
3493
  Oe as v,