@aeria-ui/ui 0.0.53 → 0.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/{activation-6d0e8484.js → activation-967982e4.js} +25 -25
  2. package/dist/components/aeria-accordion/aeria-accordion.vue.d.ts +3 -1
  3. package/dist/components/aeria-badge/aeria-badge.vue.d.ts +4 -2
  4. package/dist/components/aeria-bare-button/aeria-bare-button.vue.d.ts +6 -4
  5. package/dist/components/aeria-button/aeria-button.vue.d.ts +4 -2
  6. package/dist/components/aeria-card/aeria-card.vue.d.ts +4 -2
  7. package/dist/components/aeria-context-menu/aeria-context-menu.vue.d.ts +8 -6
  8. package/dist/components/aeria-crud/_internals/components/aeria-insert-panel/aeria-insert-panel.vue.d.ts +3 -1
  9. package/dist/components/aeria-crud/_internals/layouts/aeria-tabular/aeria-tabular.vue.d.ts +4 -2
  10. package/dist/components/aeria-crud/_internals/layouts/index.d.ts +3 -3
  11. package/dist/components/aeria-crud/_internals/store.d.ts +1 -1
  12. package/dist/components/aeria-crud/aeria-crud.vue.d.ts +8 -6
  13. package/dist/components/aeria-grid/aeria-grid.vue.d.ts +4 -2
  14. package/dist/components/aeria-icon/aeria-icon.vue.d.ts +4 -2
  15. package/dist/components/aeria-info/aeria-info.vue.d.ts +4 -2
  16. package/dist/components/aeria-main/aeria-main.vue.d.ts +4 -2
  17. package/dist/components/aeria-menu/aeria-menu.vue.d.ts +3 -1
  18. package/dist/components/aeria-panel/aeria-panel.vue.d.ts +9 -7
  19. package/dist/components/aeria-picture/aeria-picture.vue.d.ts +4 -2
  20. package/dist/components/aeria-table/aeria-table.vue.d.ts +8 -6
  21. package/dist/components/aeria-tabs/aeria-tabs.vue.d.ts +4 -2
  22. package/dist/components/dashboard/aeria-password-form/aeria-password-form.vue.d.ts +8 -6
  23. package/dist/components/dashboard/aeria-prompt/aeria-prompt.vue.d.ts +4 -2
  24. package/dist/components/dashboard/aeria-toast/aeria-toast.vue.d.ts +4 -2
  25. package/dist/components/form/aeria-checkbox/aeria-checkbox.vue.d.ts +14 -14
  26. package/dist/components/form/aeria-form/aeria-form.vue.d.ts +15 -13
  27. package/dist/components/form/aeria-input/aeria-input.vue.d.ts +8 -6
  28. package/dist/components/form/aeria-options/aeria-options.vue.d.ts +2 -2
  29. package/dist/components/form/aeria-search/_internals/components/aeria-search-container/aeria-search-container.vue.d.ts +7 -5
  30. package/dist/components/form/aeria-search/_internals/components/aeria-search-item/aeria-search-item.vue.d.ts +6 -4
  31. package/dist/components/form/aeria-select/aeria-select.vue.d.ts +6 -4
  32. package/dist/components/form/aeria-switch/aeria-switch.vue.d.ts +4 -4
  33. package/dist/components/utils/aeria-async.d.ts +22 -22
  34. package/dist/{crud-view-a9a731e2.js → crud-view-731b1319.js} +2 -2
  35. package/dist/{index-e3c55f64.js → index-fbea6f2f.js} +394 -392
  36. package/dist/{password-change-4a4ef951.js → password-change-f85978c5.js} +1 -1
  37. package/dist/{profile-a639724d.js → profile-f4f9607b.js} +1 -1
  38. package/dist/{signin-0b0a625a.js → signin-b16d808f.js} +1 -1
  39. package/dist/{signup-733ed54f.js → signup-be400dd2.js} +1 -1
  40. package/dist/style.css +1 -1
  41. package/dist/ui.js +2 -2
  42. package/dist/views/dashboard/crud-view/crud-view.vue.d.ts +4 -2
  43. package/dist/views/dashboard/user/profile/profile.vue.d.ts +4 -2
  44. package/package.json +3 -3
@@ -1,13 +1,13 @@
1
- import { defineComponent as q, ref as X, resolveDirective as ne, openBlock as o, createElementBlock as s, normalizeClass as Q, Fragment as J, renderList as U, withDirectives as N, toDisplayString as b, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as I, inject as ve, computed as H, createElementVNode as g, mergeProps as E, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as kt, Teleport as Ge, onMounted as mt, watch as re, createVNode as z, vModelDynamic as Vt, onBeforeMount as ft, normalizeStyle as $e, withModifiers as ze, pushScopeId as Fe, popScopeId as qe, provide as ye, normalizeProps as ce, guardReactiveProps as Ve, isRef as vt, createSlots as de, vModelCheckbox as Ct, onUnmounted as It, resolveComponent as At, Suspense as Ot, useSlots as wt, h as Bt } from "vue";
2
- import { t as F, useI18n as St } from "@aeria-ui/i18n";
3
- import { useScrollObserver as We, useBreakpoints as je, useClipboard as jt, useMask as Tt, PAGINATION_PER_PAGE_DEFAULTS as Lt, API_URL as yt, request as Rt, useDebounce as ht, isDocumentComplete as zt, convertToSearchQuery as Mt, useAction as Ft, convertFromSearchQuery as qt, usePasswordPolicy as Ut } from "@aeria-ui/core";
4
- import { useStore as ue, getStoreId as Te, useParentStore as ge, STORE_ID as Ue, getGlobalStateManager as $t } from "@aeria-ui/state-management";
1
+ import { defineComponent as U, ref as Y, resolveDirective as ne, openBlock as o, createElementBlock as s, normalizeClass as Q, Fragment as K, renderList as q, withDirectives as N, toDisplayString as b, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as I, inject as ve, computed as H, createElementVNode as g, mergeProps as E, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as Vt, Teleport as Ge, onMounted as mt, watch as ue, createVNode as z, vModelDynamic as Ct, onBeforeMount as ft, normalizeStyle as $e, withModifiers as ze, pushScopeId as Fe, popScopeId as Ue, provide as ye, normalizeProps as ce, guardReactiveProps as Ve, isRef as vt, createSlots as de, vModelCheckbox as It, onUnmounted as At, resolveComponent as Ot, Suspense as wt, useSlots as St, h as Bt } from "vue";
2
+ import { t as F, useI18n as jt } from "@aeria-ui/i18n";
3
+ import { useScrollObserver as We, useBreakpoints as je, useMask as Tt, PAGINATION_PER_PAGE_DEFAULTS as Lt, API_URL as yt, request as Rt, useDebounce as ht, isDocumentComplete as zt, convertToSearchQuery as Mt, useAction as Ft, convertFromSearchQuery as Ut, usePasswordPolicy as qt } from "@aeria-ui/core";
4
+ import { arraysIntersect as $t, getReferenceProperty as pe, convertConditionToQuery as Et, deepClone as Be, freshItem as Ht, isRequired as Dt, evaluateCondition as Qe } from "@aeriajs/common";
5
+ import { useStore as re, getStoreId as Te, useParentStore as ge, STORE_ID as qe, getGlobalStateManager as bt } from "@aeria-ui/state-management";
5
6
  import { useRouter as Le } from "vue-router";
6
- import { getReferenceProperty as pe, convertConditionToQuery as Et, deepClone as Se, freshItem as Ht, isRequired as Dt, evaluateCondition as Qe } from "@aeriajs/common";
7
7
  const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
8
8
  key: 0,
9
9
  class: "accordion__content"
10
- }, Xt = /* @__PURE__ */ q({
10
+ }, Xt = /* @__PURE__ */ U({
11
11
  __name: "aeria-accordion",
12
12
  props: {
13
13
  enumerate: { type: Boolean },
@@ -15,7 +15,7 @@ const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
15
15
  headers: {}
16
16
  },
17
17
  setup(c) {
18
- const i = X(null), t = (a) => typeof a == "string" ? a : a.title;
18
+ const i = Y(null), t = (a) => typeof a == "string" ? a : a.title;
19
19
  return (a, l) => {
20
20
  const r = ne("clickable");
21
21
  return o(), s("div", {
@@ -24,7 +24,7 @@ const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
24
24
  "accordion--padded": !a.noPadding
25
25
  })
26
26
  }, [
27
- (o(!0), s(J, null, U(Object.keys(a.$slots).filter((u) => u !== "default"), (u, p) => (o(), s("div", {
27
+ (o(!0), s(K, null, q(Object.keys(a.$slots).filter((u) => u !== "default"), (u, p) => (o(), s("div", {
28
28
  key: u,
29
29
  class: "accordion__slot"
30
30
  }, [
@@ -50,7 +50,7 @@ const G = (c, i) => {
50
50
  for (const [a, l] of i)
51
51
  t[a] = l;
52
52
  return t;
53
- }, jl = /* @__PURE__ */ G(Xt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ q({
53
+ }, jl = /* @__PURE__ */ G(Xt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ U({
54
54
  __name: "aeria-badge",
55
55
  props: {
56
56
  large: { type: Boolean },
@@ -68,7 +68,7 @@ const G = (c, i) => {
68
68
  ], 2));
69
69
  }
70
70
  });
71
- const be = /* @__PURE__ */ G(Yt, [["__scopeId", "data-v-47f92648"]]), Jt = /* @__PURE__ */ q({
71
+ const be = /* @__PURE__ */ G(Yt, [["__scopeId", "data-v-47f92648"]]), Jt = /* @__PURE__ */ U({
72
72
  __name: "aeria-bare-button",
73
73
  props: {
74
74
  disabled: { type: Boolean }
@@ -92,7 +92,7 @@ const be = /* @__PURE__ */ G(Yt, [["__scopeId", "data-v-47f92648"]]), Jt = /* @_
92
92
  const fe = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["href"], Zt = {
93
93
  key: 0,
94
94
  "data-component": "icon-label"
95
- }, Pt = /* @__PURE__ */ q({
95
+ }, Pt = /* @__PURE__ */ U({
96
96
  __name: "aeria-icon",
97
97
  props: {
98
98
  icon: {},
@@ -143,7 +143,7 @@ const fe = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["hre
143
143
  const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { class: "panel__header-left" }, xt = { key: 1 }, en = {
144
144
  key: 2,
145
145
  style: { "margin-left": "auto" }
146
- }, tn = /* @__PURE__ */ q({
146
+ }, tn = /* @__PURE__ */ U({
147
147
  __name: "aeria-panel",
148
148
  props: {
149
149
  closeHint: { type: Boolean, default: !1 },
@@ -167,15 +167,15 @@ const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
167
167
  },
168
168
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
169
169
  setup(c, { emit: i }) {
170
- const t = c, a = i, l = H(() => t.floating || t.float), r = X(t.collapsed), u = X(null), { reachedEnd: p } = We(u), d = () => {
170
+ const t = c, a = i, l = H(() => t.floating || t.float), r = Y(t.collapsed), u = Y(null), { reachedEnd: p } = We(u), d = () => {
171
171
  a("update:modelValue", !1), a("close");
172
172
  }, h = () => {
173
173
  a("overlayClick");
174
174
  }, _ = (n) => {
175
175
  a("update:collapsed", n), r.value = n;
176
176
  };
177
- return (n, m) => {
178
- const k = ne("clickable"), j = ne("loading"), R = ne("overlay");
177
+ return (n, f) => {
178
+ const k = ne("clickable"), S = ne("loading"), R = ne("overlay");
179
179
  return n.modelValue ? N((o(), s("div", {
180
180
  key: 0,
181
181
  class: Q(`
@@ -198,7 +198,7 @@ const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
198
198
  ${n.transparentMobile && "panel__content--transparent-mobile"}
199
199
  ${n.outerHeader && "panel__content--outer-header"}
200
200
  `),
201
- onClick: m[1] || (m[1] = (Y) => Y.stopPropagation())
201
+ onClick: f[1] || (f[1] = (W) => W.stopPropagation())
202
202
  }, {
203
203
  default: v(() => [
204
204
  n.$slots.header || n.title ? (o(), s("div", {
@@ -219,7 +219,7 @@ const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
219
219
  key: 0,
220
220
  reactive: "",
221
221
  icon: r.value ? "plus" : "minus",
222
- onClick: m[0] || (m[0] = (Y) => _(!r.value))
222
+ onClick: f[0] || (f[0] = (W) => _(!r.value))
223
223
  }, null, 8, ["icon"])), [
224
224
  [k]
225
225
  ]) : n.closeHint ? N((o(), $(P, {
@@ -242,7 +242,7 @@ const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
242
242
  }, [
243
243
  I(n.$slots, "default", {}, void 0, !0)
244
244
  ], 2)), [
245
- [j, n.loading]
245
+ [S, n.loading]
246
246
  ]),
247
247
  n.$slots.footer ? (o(), s("div", {
248
248
  key: 2,
@@ -271,7 +271,7 @@ const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
271
271
  const Ae = /* @__PURE__ */ G(tn, [["__scopeId", "data-v-6fdc75a0"]]), nn = { class: "button__content" }, on = {
272
272
  key: 1,
273
273
  class: "button__content"
274
- }, an = /* @__PURE__ */ q({
274
+ }, an = /* @__PURE__ */ U({
275
275
  __name: "aeria-button",
276
276
  props: {
277
277
  size: {},
@@ -320,7 +320,7 @@ const Ae = /* @__PURE__ */ G(tn, [["__scopeId", "data-v-6fdc75a0"]]), nn = { cla
320
320
  }, 8, ["class", "disabled"]));
321
321
  }
322
322
  });
323
- const ie = /* @__PURE__ */ G(an, [["__scopeId", "data-v-c328251b"]]), ln = { class: "card__picture" }, sn = { class: "card__footer" }, rn = { class: "card__footer-upper" }, un = { class: "card__badge" }, cn = /* @__PURE__ */ q({
323
+ const ie = /* @__PURE__ */ G(an, [["__scopeId", "data-v-c328251b"]]), ln = { class: "card__picture" }, sn = { class: "card__footer" }, rn = { class: "card__footer-upper" }, un = { class: "card__badge" }, cn = /* @__PURE__ */ U({
324
324
  __name: "aeria-card",
325
325
  props: {
326
326
  inactive: { type: Boolean },
@@ -354,7 +354,7 @@ const ie = /* @__PURE__ */ G(an, [["__scopeId", "data-v-c328251b"]]), ln = { cla
354
354
  const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { class: "content__body" }, _n = {
355
355
  key: 0,
356
356
  class: "content__section"
357
- }, mn = { class: "content__item" }, fn = /* @__PURE__ */ q({
357
+ }, mn = { class: "content__item" }, fn = /* @__PURE__ */ U({
358
358
  __name: "aeria-context-menu",
359
359
  props: {
360
360
  actions: {},
@@ -363,19 +363,16 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
363
363
  },
364
364
  emits: ["actionClick"],
365
365
  setup(c, { emit: i }) {
366
- kt((d) => ({
367
- "55aa9742": p.value.x,
368
- "55aa9740": p.value.y
366
+ Vt((d) => ({
367
+ "3566df6d": p.value.x,
368
+ "3566df6e": p.value.y
369
369
  }));
370
- const t = i, a = X(null), l = X(!1), r = (d) => d == null ? void 0 : d.filter((h) => {
370
+ const t = i, a = Y(null), l = Y(!1), r = (d) => d == null ? void 0 : d.filter((h) => {
371
371
  if (h.roles) {
372
- const _ = ue("user");
373
- return h.roles.some((n) => {
374
- var m;
375
- return (m = _.currentUser.roles) == null ? void 0 : m.includes(n);
376
- });
372
+ const _ = re("user");
373
+ return $t(h.roles, _.currentUser.roles);
377
374
  }
378
- return !!h.click;
375
+ return !0;
379
376
  }), u = (d, h) => {
380
377
  d.click(h), t("actionClick", {
381
378
  action: d,
@@ -396,7 +393,7 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
396
393
  });
397
394
  return (d, h) => {
398
395
  const _ = ne("overlay");
399
- return o(), s(J, null, [
396
+ return o(), s(K, null, [
400
397
  Object.keys(d.$slots).some((n) => n !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (o(), s("div", {
401
398
  key: 0,
402
399
  ref_key: "contextmenu",
@@ -430,8 +427,8 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
430
427
  class: "content__section",
431
428
  onClick: h[1] || (h[1] = (n) => l.value = !1)
432
429
  }, [
433
- (o(!0), s(J, null, U(Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)), (n, m) => (o(), $(fe, {
434
- key: `slot-${m}`,
430
+ (o(!0), s(K, null, q(Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)), (n, f) => (o(), $(fe, {
431
+ key: `slot-${f}`,
435
432
  class: "content__item content__item--reactive"
436
433
  }, {
437
434
  default: v(() => [
@@ -445,8 +442,8 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
445
442
  class: "content__section",
446
443
  onClick: h[2] || (h[2] = (n) => l.value = !1)
447
444
  }, [
448
- (o(!0), s(J, null, U(r(d.actions), (n, m) => (o(), $(fe, {
449
- key: `action-${m}`,
445
+ (o(!0), s(K, null, q(r(d.actions), (n, f) => (o(), $(fe, {
446
+ key: `action-${f}`,
450
447
  class: "content__item content__item--reactive",
451
448
  onClick: (k) => u(n, d.subject)
452
449
  }, {
@@ -494,13 +491,13 @@ const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
494
491
  };
495
492
  }
496
493
  });
497
- const Ce = /* @__PURE__ */ G(fn, [["__scopeId", "data-v-062403e0"]]), vn = { class: "info__content" }, yn = /* @__PURE__ */ q({
494
+ const Ce = /* @__PURE__ */ G(fn, [["__scopeId", "data-v-9e08ccd4"]]), vn = { class: "info__content" }, yn = /* @__PURE__ */ U({
498
495
  __name: "aeria-info",
499
496
  props: {
500
497
  where: {}
501
498
  },
502
499
  setup(c) {
503
- const i = c, t = je(), a = X(!1), l = i.where || "top";
500
+ const i = c, t = je(), a = Y(!1), l = i.where || "top";
504
501
  return (r, u) => e(t).md ? (o(), s("div", {
505
502
  key: 0,
506
503
  class: "info",
@@ -534,7 +531,7 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
534
531
  }, kn = ["placeholder", "readonly", "value"], Vn = ["value"], Cn = {
535
532
  key: 1,
536
533
  class: "input__clipboard"
537
- }, In = /* @__PURE__ */ q({
534
+ }, In = /* @__PURE__ */ U({
538
535
  __name: "aeria-input",
539
536
  props: {
540
537
  modelValue: {},
@@ -547,7 +544,7 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
547
544
  emits: ["update:modelValue", "input", "change"],
548
545
  setup(c, { emit: i }) {
549
546
  var O;
550
- const t = c, a = t.property || {}, l = "icon" in a || "inputType" in a && a.inputType === "search", r = ve("searchOnly", !1), u = ve("innerInputLabel", !1), p = !r && a.readOnly, d = jt(), h = i, _ = ve("inputVariant", t.variant) || "normal", n = {
547
+ const t = c, a = t.property || {}, l = "icon" in a || "inputType" in a && a.inputType === "search", r = ve("searchOnly", !1), u = ve("innerInputLabel", !1), p = !r && a.readOnly, d = (M) => navigator.clipboard.writeText(M), h = i, _ = ve("inputVariant", t.variant) || "normal", n = {
551
548
  name: t.propertyName,
552
549
  readonly: p,
553
550
  type: (() => {
@@ -571,24 +568,24 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
571
568
  placeholder: u ? a.description || t.propertyName : a.placeholder
572
569
  };
573
570
  "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (n.min = a.minimum), a.exclusiveMinimum && (n.min = a.exclusiveMinimum + 1), a.maximum && (n.max = a.maximum), a.exclusiveMaximum && (n.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (n.type = !r && a.format === "date-time" ? "datetime-local" : "date"), n.minlength = a.minLength, n.maxlength = a.maxLength)), n.type === "text" && r && (n.type = "search"), mt(() => {
574
- t.modelValue !== null && Y(t.modelValue);
571
+ t.modelValue !== null && W(t.modelValue);
575
572
  });
576
- const m = () => {
573
+ const f = () => {
577
574
  try {
578
575
  return t.modelValue ? new Date(t.modelValue).toISOString().split("T").shift() : "";
579
576
  } catch {
580
577
  return "";
581
578
  }
582
- }, k = X([
579
+ }, k = Y([
583
580
  "date",
584
581
  "date-time"
585
- ].includes(n.type) ? m() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue), j = ((O = t.property) == null ? void 0 : O.type) === "string" && t.property.mask ? Tt(t.property.mask) : null, R = (M) => {
586
- var W;
587
- return typeof k.value == "string" && ((W = t.property) == null ? void 0 : W.type) === "string" && j !== null ? (k.value = j.enmask(k.value, void 0, {
582
+ ].includes(n.type) ? f() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue), S = ((O = t.property) == null ? void 0 : O.type) === "string" && t.property.mask ? Tt(t.property.mask) : null, R = (M) => {
583
+ var X;
584
+ return typeof k.value == "string" && ((X = t.property) == null ? void 0 : X.type) === "string" && S !== null ? (k.value = S.enmask(k.value, void 0, {
588
585
  defaultValue: !0
589
- }), t.property.maskedValue === !0 ? k.value : j.unmask(k.value)) : M;
590
- }, Y = (M) => {
591
- const W = (() => {
586
+ }), t.property.maskedValue === !0 ? k.value : S.unmask(k.value)) : M;
587
+ }, W = (M) => {
588
+ const X = (() => {
592
589
  if (!M || typeof M != "string")
593
590
  return M;
594
591
  if (n.type === "number" || n.type === "integer")
@@ -603,16 +600,16 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
603
600
  return R(M);
604
601
  }
605
602
  })();
606
- h("input", W), h("update:modelValue", W);
607
- }, K = (M) => {
608
- const W = M.target.value;
609
- k.value = W, Y(W);
603
+ h("input", X), h("update:modelValue", X);
604
+ }, J = (M) => {
605
+ const X = M.target.value;
606
+ k.value = X, W(X);
610
607
  };
611
- return re(() => t.modelValue, (M, W) => {
612
- M instanceof Date || (W && !M ? k.value = void 0 : k.value = j ? j.enmask(String(M), void 0, {
608
+ return ue(() => t.modelValue, (M, X) => {
609
+ M instanceof Date || (X && !M ? k.value = void 0 : k.value = S ? S.enmask(String(M), void 0, {
613
610
  defaultValue: !0
614
611
  }) : String(M));
615
- }), (M, W) => {
612
+ }), (M, X) => {
616
613
  const B = ne("focus"), ee = ne("clickable");
617
614
  return o(), s("label", $n, [
618
615
  e(u) ? y("", !0) : (o(), s("div", bn, [
@@ -636,7 +633,7 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
636
633
  input__textarea
637
634
  input__input--${e(_)}
638
635
  `),
639
- onInput: K
636
+ onInput: J
640
637
  }, null, 42, kn), [
641
638
  [B, e(a).focus]
642
639
  ])
@@ -656,8 +653,8 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
656
653
  ${e(l) && "input__input--icon"}
657
654
  ${e(p) && "input__input--readOnly"}
658
655
  `,
659
- onInput: K,
660
- onChange: W[0] || (W[0] = (V) => h("change", V))
656
+ onInput: J,
657
+ onChange: X[0] || (X[0] = (V) => h("change", V))
661
658
  }), null, 16, Vn), [
662
659
  [B, e(a).focus]
663
660
  ]),
@@ -677,7 +674,7 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
677
674
  default: v(() => [
678
675
  N(z(P, {
679
676
  icon: "clipboard",
680
- onClick: W[1] || (W[1] = (V) => e(d)(String(M.modelValue || "")))
677
+ onClick: X[1] || (X[1] = (V) => d(String(M.modelValue || "")))
681
678
  }, null, 512), [
682
679
  [ee]
683
680
  ])
@@ -690,10 +687,10 @@ const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { cla
690
687
  };
691
688
  }
692
689
  });
693
- const Ie = /* @__PURE__ */ G(In, [["__scopeId", "data-v-4bdda204"]]), An = ["value"], On = {
690
+ const Ie = /* @__PURE__ */ G(In, [["__scopeId", "data-v-7fdfb21c"]]), An = ["value"], On = {
694
691
  key: 1,
695
692
  value: ""
696
- }, wn = ["value", "data-selected"], Bn = /* @__PURE__ */ q({
693
+ }, wn = ["value", "data-selected"], Sn = /* @__PURE__ */ U({
697
694
  __name: "aeria-select",
698
695
  props: {
699
696
  modelValue: {},
@@ -707,26 +704,26 @@ const Ie = /* @__PURE__ */ G(In, [["__scopeId", "data-v-4bdda204"]]), An = ["val
707
704
  },
708
705
  emits: ["update:modelValue", "change"],
709
706
  setup(c, { emit: i }) {
710
- const t = c, a = i, l = X(null), r = t.property || {}, u = (_) => {
707
+ const t = c, a = i, l = Y(null), r = t.property || {}, u = (_) => {
711
708
  t.booleanRef && (p.value = _), a("update:modelValue", (_ == null ? void 0 : _._id) || _), a("change", (_ == null ? void 0 : _._id) || _);
712
709
  }, p = t.booleanRef ? (() => {
713
- const _ = X(t.modelValue);
710
+ const _ = Y(t.modelValue);
714
711
  return H({
715
712
  get: () => _.value === "true" ? !0 : _.value === "false" ? !1 : null,
716
- set: (m) => {
717
- _.value = m;
713
+ set: (f) => {
714
+ _.value = f;
718
715
  }
719
716
  });
720
717
  })() : H({
721
718
  get: () => t.modelValue,
722
719
  set: u
723
720
  }), d = (_) => Array.isArray(t.modelValue) ? t.modelValue.includes(_) : t.modelValue === _, h = H(() => t.multiple ? typeof t.multiple == "number" ? t.multiple : 5 : 1);
724
- return t.multiple && re(() => t.modelValue, (_) => {
725
- var m;
721
+ return t.multiple && ue(() => t.modelValue, (_) => {
722
+ var f;
726
723
  if (!l.value)
727
724
  return;
728
725
  const n = l.value.querySelector('option[data-selected="true"]');
729
- n && n.removeAttribute("data-selected"), (m = l.value.querySelector(`option[value="${_}"]`)) == null || m.setAttribute("data-selected", "true");
726
+ n && n.removeAttribute("data-selected"), (f = l.value.querySelector(`option[value="${_}"]`)) == null || f.setAttribute("data-selected", "true");
730
727
  }), (_, n) => (o(), s("div", {
731
728
  class: Q({
732
729
  select: !0,
@@ -744,24 +741,24 @@ const Ie = /* @__PURE__ */ G(In, [["__scopeId", "data-v-4bdda204"]]), An = ["val
744
741
  select__select: !0,
745
742
  "select__select--multiple": !!t.multiple
746
743
  },
747
- onChange: n[0] || (n[0] = (m) => u(m.target.value))
744
+ onChange: n[0] || (n[0] = (f) => u(f.target.value))
748
745
  }), [
749
746
  e(r).icon ? (o(), $(P, {
750
747
  key: 0,
751
748
  icon: e(r).icon
752
749
  }, null, 8, ["icon"])) : y("", !0),
753
750
  t.multiple ? y("", !0) : (o(), s("option", On, b(e(F)("none")), 1)),
754
- (o(!0), s(J, null, U("enum" in e(r) ? e(r).enum : [], (m) => (o(), s("option", {
755
- key: m,
756
- value: m,
757
- "data-selected": d(m)
758
- }, b(e(r).translate ? e(F)(m) : m), 9, wn))), 128)),
751
+ (o(!0), s(K, null, q("enum" in e(r) ? e(r).enum : [], (f) => (o(), s("option", {
752
+ key: f,
753
+ value: f,
754
+ "data-selected": d(f)
755
+ }, b(e(r).translate ? e(F)(f) : f), 9, wn))), 128)),
759
756
  I(_.$slots, "default", {}, void 0, !0)
760
757
  ], 16, An)
761
758
  ], 2));
762
759
  }
763
760
  });
764
- const Ee = /* @__PURE__ */ G(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { class: "pagination" }, jn = ["value"], Tn = { class: "pagination__control" }, Ln = { class: "pagination__page-input" }, Rn = /* @__PURE__ */ q({
761
+ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), Bn = { class: "pagination" }, jn = ["value"], Tn = { class: "pagination__control" }, Ln = { class: "pagination__page-input" }, Rn = /* @__PURE__ */ U({
765
762
  __name: "aeria-pagination",
766
763
  props: {
767
764
  pagination: {}
@@ -778,10 +775,10 @@ const Ee = /* @__PURE__ */ G(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { cla
778
775
  set: (h) => {
779
776
  t.pagination.limit = Number(h);
780
777
  }
781
- }), u = X(l.value ? l.value + 1 : 1), p = H(() => Math.ceil(t.pagination.recordsTotal / t.pagination.limit)), d = (h) => {
778
+ }), u = Y(l.value ? l.value + 1 : 1), p = H(() => Math.ceil(t.pagination.recordsTotal / t.pagination.limit)), d = (h) => {
782
779
  l.value = h === "previous" ? l.value - 1 : l.value + 1;
783
780
  };
784
- return re([
781
+ return ue([
785
782
  l,
786
783
  r
787
784
  ], ([h]) => {
@@ -789,7 +786,7 @@ const Ee = /* @__PURE__ */ G(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { cla
789
786
  offset: l.value * r.value,
790
787
  limit: r.value
791
788
  });
792
- }), (h, _) => (o(), s("div", Sn, [
789
+ }), (h, _) => (o(), s("div", Bn, [
793
790
  z(Ee, {
794
791
  modelValue: r.value,
795
792
  "onUpdate:modelValue": _[0] || (_[0] = (n) => r.value = n),
@@ -800,7 +797,7 @@ const Ee = /* @__PURE__ */ G(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { cla
800
797
  class: "pagination__control"
801
798
  }, {
802
799
  default: v(() => [
803
- (o(!0), s(J, null, U(e(Lt), (n) => (o(), s("option", {
800
+ (o(!0), s(K, null, q(e(Lt), (n) => (o(), s("option", {
804
801
  key: `limit-${n}`,
805
802
  value: n
806
803
  }, b(n), 9, jn))), 128))
@@ -873,9 +870,9 @@ const Ee = /* @__PURE__ */ G(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { cla
873
870
  ]));
874
871
  }
875
872
  });
876
- const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { class: "checkbox__text" }, Fn = ["innerHTML"], qn = { class: "checkbox__hint" }, Un = ["innerHTML"], En = {
873
+ const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { class: "checkbox__text" }, Fn = ["innerHTML"], Un = { class: "checkbox__hint" }, qn = ["innerHTML"], En = {
877
874
  inheritAttrs: !1
878
- }, Hn = /* @__PURE__ */ q({
875
+ }, Hn = /* @__PURE__ */ U({
879
876
  ...En,
880
877
  __name: "aeria-checkbox",
881
878
  props: {
@@ -930,7 +927,7 @@ const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { cla
930
927
  readOnly: e(a).readOnly,
931
928
  checked: p.value
932
929
  }, { class: "checkbox__input" }), null, 16), [
933
- [Vt, p.value]
930
+ [Ct, p.value]
934
931
  ]),
935
932
  g("div", Mn, [
936
933
  g("div", null, [
@@ -939,11 +936,11 @@ const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { cla
939
936
  innerHTML: e(a).translate ? e(F)(e(u)) : e(u)
940
937
  }, null, 8, Fn)) : I(d.$slots, "default", { key: 2 }, void 0, !0)
941
938
  ]),
942
- g("div", qn, [
939
+ g("div", Un, [
943
940
  d.$slots.hint ? I(d.$slots, "hint", { key: 0 }, void 0, !0) : e(a).hint ? (o(), s("div", {
944
941
  key: 1,
945
942
  innerHTML: e(a).hint
946
- }, null, 8, Un)) : y("", !0)
943
+ }, null, 8, qn)) : y("", !0)
947
944
  ])
948
945
  ])
949
946
  ], 2)), [
@@ -954,7 +951,7 @@ const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { cla
954
951
  });
955
952
  const Dn = /* @__PURE__ */ G(Hn, [["__scopeId", "data-v-256eb557"]]), Qn = {
956
953
  inheritAttrs: !1
957
- }, Gn = /* @__PURE__ */ q({
954
+ }, Gn = /* @__PURE__ */ U({
958
955
  ...Qn,
959
956
  __name: "aeria-options",
960
957
  props: {
@@ -982,7 +979,7 @@ const Dn = /* @__PURE__ */ G(Hn, [["__scopeId", "data-v-256eb557"]]), Qn = {
982
979
  grid-template-columns: repeat(var(--columns), 1fr);
983
980
  `)
984
981
  }, [
985
- (o(!0), s(J, null, U(e(l), (d) => (o(), s("div", {
982
+ (o(!0), s(K, null, q(e(l), (d) => (o(), s("div", {
986
983
  key: `option-${d}`,
987
984
  class: "options__checkbox"
988
985
  }, [
@@ -997,9 +994,9 @@ const Dn = /* @__PURE__ */ G(Hn, [["__scopeId", "data-v-256eb557"]]), Qn = {
997
994
  ], 4));
998
995
  }
999
996
  });
1000
- const Wn = /* @__PURE__ */ G(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) => (Fe("data-v-30f5a5ca"), c = c(), qe(), c), Yn = { class: "switch-wrapper" }, Jn = /* @__PURE__ */ Xn(() => /* @__PURE__ */ g("div", { class: "switch__slider" }, null, -1)), Kn = { key: 1 }, Zn = {
997
+ const Wn = /* @__PURE__ */ G(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) => (Fe("data-v-30f5a5ca"), c = c(), Ue(), c), Yn = { class: "switch-wrapper" }, Jn = /* @__PURE__ */ Xn(() => /* @__PURE__ */ g("div", { class: "switch__slider" }, null, -1)), Kn = { key: 1 }, Zn = {
1001
998
  inheritAttrs: !1
1002
- }, Pn = /* @__PURE__ */ q({
999
+ }, Pn = /* @__PURE__ */ U({
1003
1000
  ...Zn,
1004
1001
  __name: "aeria-switch",
1005
1002
  props: {
@@ -1042,20 +1039,20 @@ const Wn = /* @__PURE__ */ G(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) =
1042
1039
  };
1043
1040
  }
1044
1041
  });
1045
- const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), bt = (c) => (Fe("data-v-153a2e0f"), c = c(), qe(), c), xn = { class: "picture" }, eo = {
1042
+ const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) => (Fe("data-v-153a2e0f"), c = c(), Ue(), c), xn = { class: "picture" }, eo = {
1046
1043
  key: 0,
1047
1044
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1048
1045
  }, to = ["src", "alt"], no = {
1049
1046
  key: 0,
1050
1047
  class: "picture__meta"
1051
- }, oo = ["src"], ao = /* @__PURE__ */ bt(() => /* @__PURE__ */ g("line", {
1048
+ }, oo = ["src"], ao = /* @__PURE__ */ gt(() => /* @__PURE__ */ g("line", {
1052
1049
  x1: "0",
1053
1050
  y1: "0",
1054
1051
  x2: "200",
1055
1052
  y2: "200",
1056
1053
  stroke: "#000",
1057
1054
  "vector-effect": "non-scaling-stroke"
1058
- }, null, -1)), lo = /* @__PURE__ */ bt(() => /* @__PURE__ */ g("line", {
1055
+ }, null, -1)), lo = /* @__PURE__ */ gt(() => /* @__PURE__ */ g("line", {
1059
1056
  x1: "200",
1060
1057
  y1: "0",
1061
1058
  x2: "0",
@@ -1065,7 +1062,7 @@ const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), bt = (c) =
1065
1062
  }, null, -1)), so = [
1066
1063
  ao,
1067
1064
  lo
1068
- ], io = { key: 5 }, ro = /* @__PURE__ */ q({
1065
+ ], io = { key: 5 }, ro = /* @__PURE__ */ U({
1069
1066
  __name: "aeria-picture",
1070
1067
  props: {
1071
1068
  url: {},
@@ -1080,7 +1077,7 @@ const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), bt = (c) =
1080
1077
  meta: {}
1081
1078
  },
1082
1079
  setup(c) {
1083
- const i = c, t = H(() => i.fileId ? `${yt}/file/${i.fileId}/picture` : i.url || i.modelValue), a = X(!1);
1080
+ const i = c, t = H(() => i.fileId ? `${yt}/file/${i.fileId}/picture` : i.url || i.modelValue), a = Y(!1);
1084
1081
  return (l, r) => {
1085
1082
  var p;
1086
1083
  const u = ne("overlay");
@@ -1151,7 +1148,7 @@ const Me = /* @__PURE__ */ G(ro, [["__scopeId", "data-v-153a2e0f"]]), uo = { cla
1151
1148
  }, vo = {
1152
1149
  key: 1,
1153
1150
  class: "file__buttons"
1154
- }, yo = /* @__PURE__ */ q({
1151
+ }, yo = /* @__PURE__ */ U({
1155
1152
  __name: "aeria-file",
1156
1153
  props: {
1157
1154
  modelValue: {},
@@ -1164,54 +1161,54 @@ const Me = /* @__PURE__ */ G(ro, [["__scopeId", "data-v-153a2e0f"]]), uo = { cla
1164
1161
  },
1165
1162
  emits: ["update:content", "change", "update:modelValue"],
1166
1163
  setup(c, { emit: i }) {
1167
- const t = c, a = i, r = Te() ? ge() : null, u = X(null), p = H(() => {
1164
+ const t = c, a = i, r = Te() ? ge() : null, u = Y(null), p = H(() => {
1168
1165
  var k;
1169
1166
  return u.value ? URL.createObjectURL(u.value) : (k = t.modelValue) == null ? void 0 : k.link;
1170
1167
  }), d = H(() => {
1171
- var k, j, R;
1172
- return /^image\//.test((k = t.modelValue) == null ? void 0 : k.type) && !((j = u.value) != null && j.type) || /^image\//.test((R = u.value) == null ? void 0 : R.type);
1173
- }), h = (k) => new Promise((j) => {
1168
+ var k, S, R;
1169
+ return /^image\//.test((k = t.modelValue) == null ? void 0 : k.type) && !((S = u.value) != null && S.type) || /^image\//.test((R = u.value) == null ? void 0 : R.type);
1170
+ }), h = (k) => new Promise((S) => {
1174
1171
  const R = new FileReader();
1175
- R.onload = () => j(R.result), R.readAsArrayBuffer(k);
1172
+ R.onload = () => S(R.result), R.readAsArrayBuffer(k);
1176
1173
  }), _ = () => {
1177
1174
  u.value = null;
1178
1175
  }, n = async (k) => {
1179
1176
  u.value = k.target.files[0];
1180
- const j = u.value, R = await h(j);
1177
+ const S = u.value, R = await h(S);
1181
1178
  if (r) {
1182
- const { data: { error: Y, result: K } } = await Rt(`${yt}/${r.$id}/upload?name=${j.name}`, R, {
1179
+ const { data: { error: W, result: J } } = await Rt(`${yt}/${r.$id}/upload?name=${S.name}`, R, {
1183
1180
  params: {
1184
1181
  method: "POST",
1185
1182
  headers: {
1186
- "content-type": j.type || "application/octet-stream",
1183
+ "content-type": S.type || "application/octet-stream",
1187
1184
  "x-stream-request": "1"
1188
1185
  }
1189
1186
  }
1190
1187
  });
1191
- if (Y)
1188
+ if (W)
1192
1189
  return;
1193
- a("update:modelValue", K);
1190
+ a("update:modelValue", J);
1194
1191
  } else
1195
- a("update:modelValue", j);
1192
+ a("update:modelValue", S);
1196
1193
  a("update:content", R), a("change", R);
1197
- }, m = async () => {
1194
+ }, f = async () => {
1198
1195
  a("update:modelValue", null);
1199
1196
  };
1200
- return (k, j) => {
1201
- var R, Y, K, O, M, W;
1197
+ return (k, S) => {
1198
+ var R, W, J, O, M, X;
1202
1199
  return o(), s("div", uo, [
1203
1200
  u.value || (R = k.modelValue) != null && R._id ? (o(), s("div", co, [
1204
1201
  d.value ? (o(), $(Me, {
1205
1202
  key: 0,
1206
1203
  modelValue: p.value,
1207
- "onUpdate:modelValue": j[0] || (j[0] = (B) => p.value = B),
1204
+ "onUpdate:modelValue": S[0] || (S[0] = (B) => p.value = B),
1208
1205
  alt: "Image preview",
1209
1206
  class: Q(`
1210
1207
  file__image
1211
- ${!e(r) || ((Y = k.modelValue) == null ? void 0 : Y._id) || "file__image--unsent"}
1208
+ ${!e(r) || ((W = k.modelValue) == null ? void 0 : W._id) || "file__image--unsent"}
1212
1209
  `)
1213
1210
  }, null, 8, ["modelValue", "class"])) : y("", !0),
1214
- (K = k.modelValue) != null && K._id ? (o(), s("a", {
1211
+ (J = k.modelValue) != null && J._id ? (o(), s("a", {
1215
1212
  key: 1,
1216
1213
  href: k.modelValue.download_link
1217
1214
  }, b(k.modelValue.filename), 9, po)) : y("", !0)
@@ -1233,10 +1230,10 @@ const Me = /* @__PURE__ */ G(ro, [["__scopeId", "data-v-153a2e0f"]]), uo = { cla
1233
1230
  ]),
1234
1231
  _: 1
1235
1232
  })
1236
- ])) : (W = k.modelValue) != null && W._id ? (o(), s("div", vo, [
1233
+ ])) : (X = k.modelValue) != null && X._id ? (o(), s("div", vo, [
1237
1234
  z(ie, {
1238
1235
  small: "",
1239
- onClick: ze(m, ["prevent"])
1236
+ onClick: ze(f, ["prevent"])
1240
1237
  }, {
1241
1238
  default: v(() => [
1242
1239
  D(b(e(F)("action.remove", { capitalize: !0 })), 1)
@@ -1252,17 +1249,17 @@ const Me = /* @__PURE__ */ G(ro, [["__scopeId", "data-v-153a2e0f"]]), uo = { cla
1252
1249
  const ho = /* @__PURE__ */ G(yo, [["__scopeId", "data-v-01776346"]]), $o = { class: "container" }, bo = {
1253
1250
  key: 1,
1254
1251
  class: "container__footer"
1255
- }, go = /* @__PURE__ */ q({
1252
+ }, go = /* @__PURE__ */ U({
1256
1253
  __name: "aeria-search-container",
1257
1254
  props: {
1258
1255
  observeScroll: { type: Boolean }
1259
1256
  },
1260
1257
  emits: ["endReached"],
1261
1258
  setup(c, { emit: i }) {
1262
- const t = c, a = i, l = X(null), r = t.observeScroll ? We(l, {
1259
+ const t = c, a = i, l = Y(null), r = t.observeScroll ? We(l, {
1263
1260
  antecipate: 100
1264
1261
  }).reachedEnd : null;
1265
- return r !== null && re(r, (u) => {
1262
+ return r !== null && ue(r, (u) => {
1266
1263
  u && a("endReached", u);
1267
1264
  }), (u, p) => (o(), s("div", $o, [
1268
1265
  u.$slots.default ? (o(), s("div", {
@@ -1279,7 +1276,7 @@ const ho = /* @__PURE__ */ G(yo, [["__scopeId", "data-v-01776346"]]), $o = { cla
1279
1276
  ]));
1280
1277
  }
1281
1278
  });
1282
- const it = /* @__PURE__ */ G(go, [["__scopeId", "data-v-c86e2d2a"]]), ko = { class: "item__values" }, Vo = /* @__PURE__ */ q({
1279
+ const it = /* @__PURE__ */ G(go, [["__scopeId", "data-v-c86e2d2a"]]), ko = { class: "item__values" }, Vo = /* @__PURE__ */ U({
1283
1280
  __name: "aeria-search-item",
1284
1281
  props: {
1285
1282
  item: {},
@@ -1292,28 +1289,28 @@ const it = /* @__PURE__ */ G(go, [["__scopeId", "data-v-c86e2d2a"]]), ko = { cla
1292
1289
  const t = c, a = i, l = t.property, r = pe(l), u = ge(), p = H(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: _ }) => t.item._id === _) : t.modelValue && t.modelValue._id === t.item._id), d = () => {
1293
1290
  if (p.value)
1294
1291
  return;
1295
- const _ = (m) => m.filter((k) => !!(k != null && k._id)), n = "items" in l ? _(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1292
+ const _ = (f) => f.filter((k) => !!(k != null && k._id)), n = "items" in l ? _(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
1296
1293
  a("update:modelValue", Array.isArray(n) ? [
1297
1294
  ...n,
1298
1295
  t.item
1299
1296
  ] : t.item), a("change", t.item);
1300
1297
  }, h = async (_) => {
1301
1298
  if (r.purge && (_ != null && _.purge)) {
1302
- const { _id: m } = t.item;
1299
+ const { _id: f } = t.item;
1303
1300
  await u.$actions.remove({
1304
1301
  filters: {
1305
- _id: m
1302
+ _id: f
1306
1303
  }
1307
1304
  });
1308
1305
  }
1309
1306
  const n = () => {
1310
- const m = [...t.modelValue], k = m.findIndex((j) => j._id === t.item._id);
1311
- return m.splice(k, 1), m;
1307
+ const f = [...t.modelValue], k = f.findIndex((S) => S._id === t.item._id);
1308
+ return f.splice(k, 1), f;
1312
1309
  };
1313
1310
  a("update:modelValue", "items" in l ? n() : null);
1314
1311
  };
1315
1312
  return (_, n) => {
1316
- const m = ne("clickable");
1313
+ const f = ne("clickable");
1317
1314
  return N((o(), s("div", {
1318
1315
  class: Q({
1319
1316
  item: !0,
@@ -1323,21 +1320,21 @@ const it = /* @__PURE__ */ G(go, [["__scopeId", "data-v-c86e2d2a"]]), ko = { cla
1323
1320
  }, [
1324
1321
  I(_.$slots, "default", {}, void 0, !0),
1325
1322
  g("div", ko, [
1326
- (o(!0), s(J, null, U(_.indexes, (k, j) => (o(), s("div", {
1327
- key: `index-${_.item._id}-${j}`,
1323
+ (o(!0), s(K, null, q(_.indexes, (k, S) => (o(), s("div", {
1324
+ key: `index-${_.item._id}-${S}`,
1328
1325
  class: "item__value"
1329
1326
  }, b(_.item[k]), 1))), 128))
1330
1327
  ])
1331
1328
  ], 2)), [
1332
- [m]
1329
+ [f]
1333
1330
  ]);
1334
1331
  };
1335
1332
  }
1336
1333
  });
1337
- const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { class: "search__panel" }, Io = { class: "search__input" }, Ao = ["value"], Oo = { style: { flex: "1" } }, wo = { key: 1 }, Bo = { key: 0 }, So = { key: 1 }, jo = { class: "search__summary" }, To = {
1334
+ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { class: "search__panel" }, Io = { class: "search__input" }, Ao = ["value"], Oo = { style: { flex: "1" } }, wo = { key: 1 }, So = { key: 0 }, Bo = { key: 1 }, jo = { class: "search__summary" }, To = {
1338
1335
  key: 1,
1339
1336
  class: "search"
1340
- }, Lo = { key: 0 }, Re = 10, Ro = /* @__PURE__ */ q({
1337
+ }, Lo = { key: 0 }, Re = 10, Ro = /* @__PURE__ */ U({
1341
1338
  __name: "aeria-search",
1342
1339
  props: {
1343
1340
  modelValue: {},
@@ -1350,12 +1347,12 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1350
1347
  },
1351
1348
  emits: ["update:modelValue", "change", "update:panel"],
1352
1349
  setup(c, { emit: i }) {
1353
- const t = c, a = pe(t.property), l = t.panel !== void 0 ? H(() => t.panel) : X(!1), r = i, u = ue(pe(t.property).$ref), p = Te(), d = p ? ge() : null, h = a.indexes;
1354
- ye(Ue, pe(t.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1355
- const _ = X(t.modelValue), n = X({
1350
+ const t = c, a = pe(t.property), l = t.panel !== void 0 ? H(() => t.panel) : Y(!1), r = i, u = re(pe(t.property).$ref), p = Te(), d = p ? ge() : null, h = a.indexes;
1351
+ ye(qe, pe(t.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1352
+ const _ = Y(t.modelValue), n = Y({
1356
1353
  data: [],
1357
1354
  pagination: {}
1358
- }), m = H(() => n.value.data), k = H(() => n.value.pagination), j = X(0), R = X(h[0]), Y = X(!1), K = X({}), O = () => {
1355
+ }), f = H(() => n.value.data), k = H(() => n.value.pagination), S = Y(0), R = Y(h[0]), W = Y(!1), J = Y({}), O = () => {
1359
1356
  const A = {};
1360
1357
  if (p) {
1361
1358
  const w = e(p);
@@ -1363,26 +1360,26 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1363
1360
  }
1364
1361
  return a.constraints ? Et(a.constraints, A) : {};
1365
1362
  }, M = () => {
1366
- m.value.length < k.value.recordsTotal && (j.value += 1, B());
1367
- }, W = async () => {
1368
- if (Object.values(K.value).every((w) => !(String(w).length > 0)))
1363
+ f.value.length < k.value.recordsTotal && (S.value += 1, B());
1364
+ }, X = async () => {
1365
+ if (Object.values(J.value).every((w) => !(String(w).length > 0)))
1369
1366
  return u.$actions.custom("getAll", {
1370
1367
  limit: Re,
1371
- offset: j.value * Re,
1368
+ offset: S.value * Re,
1372
1369
  filters: O()
1373
1370
  });
1374
1371
  const A = h.filter((w) => {
1375
1372
  var Z;
1376
- return ((Z = K.value[w]) == null ? void 0 : Z.length) > 0;
1373
+ return ((Z = J.value[w]) == null ? void 0 : Z.length) > 0;
1377
1374
  }).map((w) => ({
1378
1375
  [w]: {
1379
- $regex: K.value[w].trim().replace("(", "\\(").replace(")", "\\)"),
1376
+ $regex: J.value[w].trim().replace("(", "\\(").replace(")", "\\)"),
1380
1377
  $options: "i"
1381
1378
  }
1382
1379
  }));
1383
1380
  return u.$actions.custom("getAll", {
1384
1381
  limit: Re,
1385
- offset: j.value * Re,
1382
+ offset: S.value * Re,
1386
1383
  filters: {
1387
1384
  ...O(),
1388
1385
  ...A.length > 0 && {
@@ -1393,27 +1390,27 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1393
1390
  }, B = async () => {
1394
1391
  if (u.loading.getAll)
1395
1392
  return;
1396
- const A = await W();
1397
- n.value.pagination = A.pagination, j.value === 0 && n.value.data.splice(0), n.value.data.push(...A.data);
1393
+ const A = await X();
1394
+ n.value.pagination = A.pagination, S.value === 0 && n.value.data.splice(0), n.value.data.push(...A.data);
1398
1395
  }, [ee] = ht({
1399
1396
  delay: 800
1400
1397
  })(() => {
1401
- j.value = 0, B(), Y.value = !1;
1398
+ S.value = 0, B(), W.value = !1;
1402
1399
  }), V = () => {
1403
- Y.value = !0, ee();
1400
+ W.value = !0, ee();
1404
1401
  }, L = () => {
1405
1402
  "effect" in l ? r("update:panel", !0) : l.value = !0, B();
1406
1403
  }, te = () => {
1407
- j.value = 0, n.value.data.splice(0), "effect" in l ? r("update:panel", !1) : l.value = !1;
1408
- }, oe = H(() => !Object.values(K.value).some((A) => !!A));
1409
- re(oe, (A, w) => {
1404
+ S.value = 0, n.value.data.splice(0), "effect" in l ? r("update:panel", !1) : l.value = !1;
1405
+ }, oe = H(() => !Object.values(J.value).some((A) => !!A));
1406
+ ue(oe, (A, w) => {
1410
1407
  A && !w && B();
1411
1408
  }), mt(() => {
1412
1409
  t.selectOnly && B();
1413
1410
  });
1414
1411
  const le = (A) => {
1415
1412
  _.value = A, t.selectOnly || r("update:modelValue", A);
1416
- }, f = () => {
1413
+ }, m = () => {
1417
1414
  te(), r("update:modelValue", _.value);
1418
1415
  };
1419
1416
  return (A, w) => {
@@ -1436,7 +1433,7 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1436
1433
  footer: v(() => [
1437
1434
  z(ie, {
1438
1435
  large: "",
1439
- onClick: f
1436
+ onClick: m
1440
1437
  }, {
1441
1438
  default: v(() => [
1442
1439
  D(b(e(F)("action.save", { capitalize: !0 })), 1)
@@ -1452,22 +1449,22 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1452
1449
  e(h).length > 1 ? (o(), $(Ee, {
1453
1450
  key: 0,
1454
1451
  modelValue: R.value,
1455
- "onUpdate:modelValue": w[0] || (w[0] = (S) => R.value = S),
1456
- onChange: w[1] || (w[1] = (S) => K.value = {})
1452
+ "onUpdate:modelValue": w[0] || (w[0] = (j) => R.value = j),
1453
+ onChange: w[1] || (w[1] = (j) => J.value = {})
1457
1454
  }, {
1458
1455
  default: v(() => [
1459
- (o(!0), s(J, null, U(e(h), (S) => (o(), s("option", {
1460
- key: `searchfield-${S}`,
1461
- value: S
1462
- }, b(e(F)(S)), 9, Ao))), 128))
1456
+ (o(!0), s(K, null, q(e(h), (j) => (o(), s("option", {
1457
+ key: `searchfield-${j}`,
1458
+ value: j
1459
+ }, b(e(F)(j)), 9, Ao))), 128))
1463
1460
  ]),
1464
1461
  _: 1
1465
1462
  }, 8, ["modelValue"])) : y("", !0),
1466
1463
  g("div", Oo, [
1467
1464
  (o(), $(Ie, {
1468
1465
  key: `field-${R.value}`,
1469
- modelValue: K.value[R.value],
1470
- "onUpdate:modelValue": w[2] || (w[2] = (S) => K.value[R.value] = S),
1466
+ modelValue: J.value[R.value],
1467
+ "onUpdate:modelValue": w[2] || (w[2] = (j) => J.value[R.value] = j),
1471
1468
  property: {
1472
1469
  ...e(u).properties[R.value],
1473
1470
  inputType: "search"
@@ -1476,28 +1473,28 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1476
1473
  }, null, 8, ["modelValue", "property"]))
1477
1474
  ])
1478
1475
  ]),
1479
- m.value.length ? (o(), $(it, {
1476
+ f.value.length ? (o(), $(it, {
1480
1477
  key: 0,
1481
1478
  "observe-scroll": "",
1482
1479
  onEndReached: M
1483
1480
  }, {
1484
1481
  default: v(() => [
1485
- (o(!0), s(J, null, U(m.value, (S) => (o(), $(De, E({ ref_for: !0 }, {
1486
- item: S,
1482
+ (o(!0), s(K, null, q(f.value, (j) => (o(), $(De, E({ ref_for: !0 }, {
1483
+ item: j,
1487
1484
  indexes: e(h),
1488
1485
  property: A.property
1489
1486
  }, {
1490
- key: `matching-${S._id}`,
1487
+ key: `matching-${j._id}`,
1491
1488
  modelValue: _.value,
1492
1489
  "onUpdate:modelValue": w[3] || (w[3] = (ae) => _.value = ae)
1493
1490
  }), null, 16, ["modelValue"]))), 128))
1494
1491
  ]),
1495
1492
  _: 1
1496
1493
  })) : (o(), s("div", wo, [
1497
- Y.value ? (o(), s("div", Bo, b(e(F)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(K.value).filter((S) => !!S).length > 0 && !("items" in A.property && ((C = A.modelValue) != null && C.length) || !Array.isArray(A.modelValue) && ((T = A.modelValue) != null && T._id)) ? (o(), s("div", So, b(e(F)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1494
+ W.value ? (o(), s("div", So, b(e(F)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(J.value).filter((j) => !!j).length > 0 && !("items" in A.property && ((C = A.modelValue) != null && C.length) || !Array.isArray(A.modelValue) && ((T = A.modelValue) != null && T._id)) ? (o(), s("div", Bo, b(e(F)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1498
1495
  ]))
1499
1496
  ]),
1500
- g("div", jo, b(e(F)("showing", { capitalize: !0 })) + " " + b(m.value.length) + " " + b(e(F)("of")) + " " + b(k.value.recordsTotal), 1)
1497
+ g("div", jo, b(e(F)("showing", { capitalize: !0 })) + " " + b(f.value.length) + " " + b(e(F)("of")) + " " + b(k.value.recordsTotal), 1)
1501
1498
  ];
1502
1499
  }),
1503
1500
  _: 1
@@ -1522,7 +1519,7 @@ const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
1522
1519
  var C;
1523
1520
  return [
1524
1521
  "items" in A.property ? (o(), s("div", Lo, [
1525
- (o(!0), s(J, null, U(A.modelValue, (T) => (o(), $(De, E({ ref_for: !0 }, {
1522
+ (o(!0), s(K, null, q(A.modelValue, (T) => (o(), $(De, E({ ref_for: !0 }, {
1526
1523
  item: T,
1527
1524
  indexes: e(h),
1528
1525
  property: A.property,
@@ -1576,16 +1573,16 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1576
1573
  c ?? (c = []);
1577
1574
  const a = "items" in i ? i.items : i;
1578
1575
  if ("$ref" in a) {
1579
- const l = ue(a.$ref, t), r = Se(l.$freshItem);
1576
+ const l = re(a.$ref, t), r = Be(l.$freshItem);
1580
1577
  return c.unshift(r);
1581
1578
  }
1582
1579
  return "properties" in a ? c.unshift(Ht(a)) : "type" in a && a.type === "boolean" ? c.unshift({}) : c.unshift(null);
1583
1580
  }, Fo = (c, i) => {
1584
1581
  c.splice(i, 1);
1585
- }, qo = {
1582
+ }, Uo = {
1586
1583
  key: 0,
1587
1584
  class: "form__header"
1588
- }, Uo = {
1585
+ }, qo = {
1589
1586
  key: 1,
1590
1587
  class: "form__fieldset"
1591
1588
  }, Eo = { key: 0 }, Ho = ["innerHTML"], Do = ["onInput"], Qo = { key: 4 }, Go = { value: "true" }, Wo = { value: "false" }, Xo = {
@@ -1597,7 +1594,7 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1597
1594
  }, Ko = { key: 0 }, Zo = { key: 1 }, Po = {
1598
1595
  key: 3,
1599
1596
  class: "form__footer"
1600
- }, No = /* @__PURE__ */ q({
1597
+ }, No = /* @__PURE__ */ U({
1601
1598
  __name: "aeria-form",
1602
1599
  props: {
1603
1600
  modelValue: {},
@@ -1623,30 +1620,30 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1623
1620
  },
1624
1621
  emits: ["update:modelValue", "input", "change"],
1625
1622
  setup(c, { emit: i }) {
1626
- const t = $t(), a = c, l = i;
1623
+ const t = bt(), a = c, l = i;
1627
1624
  ft(() => {
1628
1625
  a.modelValue || l("update:modelValue", a.property && "items" in a.property ? [] : {});
1629
1626
  });
1630
- const r = a.property && pe(a.property), u = r ? r.$ref : a.collection || Te(), p = u ? ue(e(u)) : null;
1627
+ const r = a.property && pe(a.property), u = r ? r.$ref : a.collection || Te(), p = u ? re(e(u)) : null;
1631
1628
  !u && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1632
1629
  collection prop, some features may not work as intended`);
1633
- const d = X(!1), h = H(() => !a.form && a.property ? "properties" in a.property ? a.property.properties : p == null ? void 0 : p.properties : a.form), _ = H(() => a.layout || (p == null ? void 0 : p.description.formLayout)), n = (f) => {
1634
- const A = ve(f, a[f]);
1635
- return a[f] && ye(f, a[f]), A;
1636
- }, m = H(() => a.validationErrors !== null ? a.validationErrors : p == null ? void 0 : p.validationErrors), k = n("formComponents") || {}, j = n("propertyComponents") || {}, R = n("omitFormHeader"), Y = n("omitInputLabels"), K = n("innerInputLabel");
1637
- u && ye(Ue, u), ye("searchOnly", a.searchOnly);
1638
- const O = (f) => h.value ? Object.entries(h.value).filter(([A, w]) => !w.noForm && f([
1630
+ const d = Y(!1), h = H(() => !a.form && a.property ? "properties" in a.property ? a.property.properties : p == null ? void 0 : p.properties : a.form), _ = H(() => a.layout || (p == null ? void 0 : p.description.formLayout)), n = (m) => {
1631
+ const A = ve(m, a[m]);
1632
+ return a[m] && ye(m, a[m]), A;
1633
+ }, f = H(() => a.validationErrors !== null ? a.validationErrors : p == null ? void 0 : p.validationErrors), k = n("formComponents") || {}, S = n("propertyComponents") || {}, R = n("omitFormHeader"), W = n("omitInputLabels"), J = n("innerInputLabel");
1634
+ u && ye(qe, u), ye("searchOnly", a.searchOnly);
1635
+ const O = (m) => h.value ? Object.entries(h.value).filter(([A, w]) => !w.noForm && m([
1639
1636
  A,
1640
1637
  w
1641
- ])) : null, M = (f) => {
1638
+ ])) : null, M = (m) => {
1642
1639
  var w;
1643
1640
  if (a.searchOnly || !u)
1644
1641
  return !0;
1645
1642
  const A = a.property && "properties" in a.property ? a.property.form : (w = p == null ? void 0 : p.description) == null ? void 0 : w.form;
1646
- return !A || A.includes(f);
1647
- }, W = O(([f]) => M(f)), B = je(), ee = {}, V = (f, A) => {
1648
- var T, S, ae, _e;
1649
- const w = [], Z = ((S = (T = _.value) == null ? void 0 : T.fields) == null ? void 0 : S[f]) || ((_e = (ae = _.value) == null ? void 0 : ae.fields) == null ? void 0 : _e.$default);
1643
+ return !A || A.includes(m);
1644
+ }, X = O(([m]) => M(m)), B = je(), ee = {}, V = (m, A) => {
1645
+ var T, j, ae, _e;
1646
+ const w = [], Z = ((j = (T = _.value) == null ? void 0 : T.fields) == null ? void 0 : j[m]) || ((_e = (ae = _.value) == null ? void 0 : ae.fields) == null ? void 0 : _e.$default);
1650
1647
  if (!A)
1651
1648
  return;
1652
1649
  if (Z != null && Z.if && !a.searchOnly) {
@@ -1654,10 +1651,10 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1654
1651
  a.modelValue,
1655
1652
  Z.if
1656
1653
  );
1657
- me.satisfied || (ee[f] && (p ? a.modelValue[f] = typeof p.$freshItem[f] == "object" ? Se(p.$freshItem[f]) : p.$freshItem[f] : a.modelValue[f] = [
1654
+ me.satisfied || (ee[m] && (p ? a.modelValue[m] = typeof p.$freshItem[m] == "object" ? Be(p.$freshItem[m]) : p.$freshItem[m] : a.modelValue[m] = [
1658
1655
  void 0,
1659
1656
  null
1660
- ].includes(a.modelValue[f]) ? null : a.modelValue[f].constructor()), w.push("display: none;")), ee[f] = me.satisfied;
1657
+ ].includes(a.modelValue[m]) ? null : a.modelValue[m].constructor()), w.push("display: none;")), ee[m] = me.satisfied;
1661
1658
  }
1662
1659
  const C = B.value.md && (Z == null ? void 0 : Z.span) || 6;
1663
1660
  return w.push(`
@@ -1672,39 +1669,39 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1672
1669
  padding: 1rem 0;
1673
1670
  margin: 1rem 0;
1674
1671
  `)), w.join("");
1675
- }, L = (f) => f === null || f instanceof Object && !Object.keys(f).length, te = H(() => a.required ? a.required : a.property && "required" in a.property ? a.property.required : p == null ? void 0 : p.description.required), oe = H(() => a.form ? zt(
1672
+ }, L = (m) => m === null || m instanceof Object && !Object.keys(m).length, te = H(() => a.required ? a.required : a.property && "required" in a.property ? a.property.required : p == null ? void 0 : p.description.required), oe = H(() => a.form ? zt(
1676
1673
  a.modelValue,
1677
1674
  a.form,
1678
1675
  te.value,
1679
1676
  p == null ? void 0 : p.description
1680
- ) : !0), le = (f, A) => {
1677
+ ) : !0), le = (m, A) => {
1681
1678
  var w;
1682
- return (w = m.value) != null && w[f] && (typeof m.value[f].index != "number" || m.value[f].index === A) ? m.value[f].errors : null;
1679
+ return (w = f.value) != null && w[m] && (typeof f.value[m].index != "number" || f.value[m].index === A) ? f.value[m].errors : null;
1683
1680
  };
1684
- return (f, A) => {
1681
+ return (m, A) => {
1685
1682
  const w = ne("clickable"), Z = ne("focus");
1686
1683
  return o(), s("form", {
1687
1684
  class: "form",
1688
1685
  style: $e(`row-gap: ${e(R) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1689
1686
  }, [
1690
- f.$slots.header && !e(R) ? (o(), s("header", qo, [
1691
- I(f.$slots, "header", {}, void 0, !0)
1687
+ m.$slots.header && !e(R) ? (o(), s("header", Uo, [
1688
+ I(m.$slots, "header", {}, void 0, !0)
1692
1689
  ])) : y("", !0),
1693
- I(f.$slots, "default", {}, void 0, !0),
1694
- f.isReadOnly ? y("", !0) : (o(), s("fieldset", Uo, [
1695
- (o(!0), s(J, null, U(e(W), ([C, T]) => {
1696
- var S, ae, _e, me, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
1690
+ I(m.$slots, "default", {}, void 0, !0),
1691
+ m.isReadOnly ? y("", !0) : (o(), s("fieldset", qo, [
1692
+ (o(!0), s(K, null, q(e(X), ([C, T]) => {
1693
+ var j, ae, _e, me, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
1697
1694
  return o(), s("div", {
1698
1695
  key: `field-${C}`,
1699
1696
  style: $e(V(C, T)),
1700
1697
  class: "form__field"
1701
1698
  }, [
1702
- (!("type" in T) || T.type !== "boolean" || f.searchOnly) && !T.noLabel && !e(Y) && !e(K) ? (o(), s("label", Eo, [
1699
+ (!("type" in T) || T.type !== "boolean" || m.searchOnly) && !T.noLabel && !e(W) && !e(J) ? (o(), s("label", Eo, [
1703
1700
  g("div", {
1704
1701
  class: Q({
1705
1702
  "form__field-label": !0,
1706
1703
  "form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
1707
- "form__field-required-hint": f.highlightRequired && !f.searchOnly && (!te.value || e(Dt)(C, te.value, f.modelValue))
1704
+ "form__field-required-hint": m.highlightRequired && !m.searchOnly && (!te.value || e(Dt)(C, te.value, m.modelValue))
1708
1705
  })
1709
1706
  }, b(T.description || e(F)(C)), 3),
1710
1707
  T.hint ? (o(), s("div", {
@@ -1712,57 +1709,57 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1712
1709
  innerHTML: T.hint
1713
1710
  }, null, 8, Ho)) : y("", !0)
1714
1711
  ])) : y("", !0),
1715
- f.$slots[`field-${C}`] ? I(f.$slots, `field-${C}`, E({
1712
+ m.$slots[`field-${C}`] ? I(m.$slots, `field-${C}`, E({
1716
1713
  key: 1,
1717
1714
  ref_for: !0
1718
1715
  }, {
1719
1716
  propery: T,
1720
1717
  properyName: C,
1721
- modelValue: f.modelValue
1722
- }), void 0, !0) : (_e = (ae = (S = f.layout) == null ? void 0 : S.fields) == null ? void 0 : ae[C]) != null && _e.component && e(j)[f.layout.fields[C].component.name] ? (o(), $(he(e(j)[f.layout.fields[C].component.name]), E({
1718
+ modelValue: m.modelValue
1719
+ }), void 0, !0) : (_e = (ae = (j = m.layout) == null ? void 0 : j.fields) == null ? void 0 : ae[C]) != null && _e.component && e(S)[m.layout.fields[C].component.name] ? (o(), $(he(e(S)[m.layout.fields[C].component.name]), E({
1723
1720
  key: 2,
1724
- modelValue: f.modelValue[C],
1725
- "onUpdate:modelValue": (x) => f.modelValue[C] = x,
1721
+ modelValue: m.modelValue[C],
1722
+ "onUpdate:modelValue": (x) => m.modelValue[C] = x,
1726
1723
  ref_for: !0
1727
1724
  }, {
1728
1725
  property: T,
1729
1726
  propertyName: C,
1730
- ...f.layout.fields[C].component.props || {}
1727
+ ...m.layout.fields[C].component.props || {}
1731
1728
  }, {
1732
1729
  onInput: (x) => l("input", C),
1733
1730
  onChange: A[0] || (A[0] = (x) => l("change", x))
1734
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && f.searchOnly ? (o(), s("div", {
1731
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && m.searchOnly ? (o(), s("div", {
1735
1732
  key: 3,
1736
1733
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1737
1734
  onInput: (x) => l("input", C),
1738
1735
  onChange: A[1] || (A[1] = (x) => l("change", x))
1739
1736
  }, [
1740
1737
  z(Ie, E({
1741
- modelValue: f.modelValue[C].$gte,
1742
- "onUpdate:modelValue": (x) => f.modelValue[C].$gte = x,
1738
+ modelValue: m.modelValue[C].$gte,
1739
+ "onUpdate:modelValue": (x) => m.modelValue[C].$gte = x,
1743
1740
  ref_for: !0
1744
1741
  }, {
1745
1742
  property: T,
1746
1743
  propertyName: C
1747
1744
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1748
1745
  z(Ie, E({
1749
- modelValue: f.modelValue[C].$lte,
1750
- "onUpdate:modelValue": (x) => f.modelValue[C].$lte = x,
1746
+ modelValue: m.modelValue[C].$lte,
1747
+ "onUpdate:modelValue": (x) => m.modelValue[C].$lte = x,
1751
1748
  ref_for: !0
1752
1749
  }, {
1753
1750
  property: T,
1754
1751
  propertyName: C
1755
1752
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1756
- ], 40, Do)) : "type" in T && T.type === "boolean" && f.searchOnly ? (o(), s("div", Qo, [
1753
+ ], 40, Do)) : "type" in T && T.type === "boolean" && m.searchOnly ? (o(), s("div", Qo, [
1757
1754
  z(Ee, E({ ref_for: !0 }, {
1758
1755
  property: T,
1759
1756
  propertyName: C
1760
1757
  }, {
1761
1758
  "boolean-ref": "",
1762
- "model-value": f.modelValue[C],
1759
+ "model-value": m.modelValue[C],
1763
1760
  onChange: A[2] || (A[2] = (x) => l("change", x)),
1764
1761
  "onUpdate:modelValue": (x) => {
1765
- f.modelValue[C] = x == "true" ? !0 : x == "false" ? !1 : null;
1762
+ m.modelValue[C] = x == "true" ? !0 : x == "false" ? !1 : null;
1766
1763
  }
1767
1764
  }), {
1768
1765
  default: v(() => [
@@ -1771,15 +1768,15 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1771
1768
  ]),
1772
1769
  _: 2
1773
1770
  }, 1040, ["model-value", "onUpdate:modelValue"])
1774
- ])) : f.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (o(), s("div", Xo, [
1771
+ ])) : m.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (o(), s("div", Xo, [
1775
1772
  g("div", null, [
1776
1773
  z(ie, {
1777
1774
  small: "",
1778
1775
  variant: "alt",
1779
1776
  icon: "plus",
1780
- disabled: !("inline" in T.items && T.items.inline) && (((me = f.modelValue[C]) == null ? void 0 : me.length) >= T.maxItems || L((Ye = f.modelValue[C]) == null ? void 0 : Ye[((Xe = f.modelValue[C]) == null ? void 0 : Xe.length) - 1])),
1777
+ disabled: !("inline" in T.items && T.items.inline) && (((me = m.modelValue[C]) == null ? void 0 : me.length) >= T.maxItems || L((Ye = m.modelValue[C]) == null ? void 0 : Ye[((Xe = m.modelValue[C]) == null ? void 0 : Xe.length) - 1])),
1781
1778
  onClick: ze((x) => {
1782
- f.modelValue[C] || (f.modelValue[C] = []), e(Mo)(f.modelValue[C], T, e(t));
1779
+ m.modelValue[C] || (m.modelValue[C] = []), e(Mo)(m.modelValue[C], T, e(t));
1783
1780
  }, ["prevent"])
1784
1781
  }, {
1785
1782
  default: v(() => [
@@ -1788,7 +1785,7 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1788
1785
  _: 2
1789
1786
  }, 1032, ["disabled", "onClick"])
1790
1787
  ]),
1791
- (o(!0), s(J, null, U(f.modelValue[C], (x, Oe) => {
1788
+ (o(!0), s(K, null, q(m.modelValue[C], (x, Oe) => {
1792
1789
  var tt, nt, ot, at, lt, st;
1793
1790
  return o(), s("div", {
1794
1791
  key: `rep-${C}-${Oe}`,
@@ -1796,15 +1793,15 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1796
1793
  }, [
1797
1794
  g("div", Yo, [
1798
1795
  (o(), $(he(e(rt)(T, e(k))), E({
1799
- modelValue: f.modelValue[C][Oe],
1800
- "onUpdate:modelValue": (we) => f.modelValue[C][Oe] = we,
1796
+ modelValue: m.modelValue[C][Oe],
1797
+ "onUpdate:modelValue": (we) => m.modelValue[C][Oe] = we,
1801
1798
  ref_for: !0
1802
1799
  }, {
1803
1800
  property: T.items,
1804
1801
  propertyName: C,
1805
1802
  parentCollection: e(u),
1806
- parentPropertyName: f.parentPropertyName,
1807
- columns: ((ot = (nt = (tt = f.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[C]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = f.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
1803
+ parentPropertyName: m.parentPropertyName,
1804
+ columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[C]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
1808
1805
  validationErrors: le(C, Oe),
1809
1806
  ...T.componentProps || {}
1810
1807
  }, {
@@ -1815,41 +1812,41 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1815
1812
  N(z(P, {
1816
1813
  reactive: "",
1817
1814
  icon: "trash",
1818
- onClick: (we) => e(Fo)(f.modelValue[C], Oe)
1815
+ onClick: (we) => e(Fo)(m.modelValue[C], Oe)
1819
1816
  }, null, 8, ["onClick"]), [
1820
1817
  [w]
1821
1818
  ])
1822
1819
  ]);
1823
1820
  }), 128))
1824
- ])) : f.modelValue ? N((o(), $(he(e(rt)(T, e(k))), E({
1821
+ ])) : m.modelValue ? N((o(), $(he(e(rt)(T, e(k))), E({
1825
1822
  key: 6,
1826
- modelValue: f.modelValue[C],
1827
- "onUpdate:modelValue": (x) => f.modelValue[C] = x,
1823
+ modelValue: m.modelValue[C],
1824
+ "onUpdate:modelValue": (x) => m.modelValue[C] = x,
1828
1825
  ref_for: !0
1829
1826
  }, {
1830
1827
  property: T,
1831
1828
  propertyName: C,
1832
- parentPropertyName: f.parentPropertyName,
1829
+ parentPropertyName: m.parentPropertyName,
1833
1830
  parentCollection: e(u),
1834
- columns: ((Ze = (Ke = (Je = f.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[C]) == null ? void 0 : Ze.optionsColumns) || ((xe = (Ne = (Pe = f.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne.$default) == null ? void 0 : xe.optionsColumns),
1831
+ columns: ((Ze = (Ke = (Je = m.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[C]) == null ? void 0 : Ze.optionsColumns) || ((xe = (Ne = (Pe = m.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne.$default) == null ? void 0 : xe.optionsColumns),
1835
1832
  ...T.componentProps || {},
1836
1833
  validationErrors: le(C)
1837
1834
  }, {
1838
1835
  onInput: (x) => l("input", C),
1839
1836
  onChange: A[4] || (A[4] = (x) => l("change", x))
1840
1837
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1841
- [Z, !d.value && (d.value = !!f.focus)]
1838
+ [Z, !d.value && (d.value = !!m.focus)]
1842
1839
  ]) : y("", !0),
1843
- (et = m.value) != null && et[C] ? (o(), s("div", Jo, [
1844
- m.value[C].type ? (o(), s("span", Ko, b(e(F)(`validation_error.${m.value[C].type}`)), 1)) : y("", !0),
1845
- m.value[C].detail ? (o(), s("span", Zo, b(e(F)(m.value[C].detail)), 1)) : y("", !0)
1840
+ (et = f.value) != null && et[C] ? (o(), s("div", Jo, [
1841
+ f.value[C].type ? (o(), s("span", Ko, b(e(F)(`validation_error.${f.value[C].type}`)), 1)) : y("", !0),
1842
+ f.value[C].detail ? (o(), s("span", Zo, b(e(F)(f.value[C].detail)), 1)) : y("", !0)
1846
1843
  ])) : y("", !0)
1847
1844
  ], 4);
1848
1845
  }), 128))
1849
1846
  ])),
1850
- f.$slots.after ? I(f.$slots, "after", { key: 2 }, void 0, !0) : y("", !0),
1851
- f.$slots.footer ? (o(), s("div", Po, [
1852
- I(f.$slots, "footer", ce(Ve({
1847
+ m.$slots.after ? I(m.$slots, "after", { key: 2 }, void 0, !0) : y("", !0),
1848
+ m.$slots.footer ? (o(), s("div", Po, [
1849
+ I(m.$slots, "footer", ce(Ve({
1853
1850
  isInsertReady: oe.value
1854
1851
  })), void 0, !0)
1855
1852
  ])) : y("", !0)
@@ -1857,7 +1854,7 @@ const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
1857
1854
  };
1858
1855
  }
1859
1856
  });
1860
- const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @__PURE__ */ q({
1857
+ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @__PURE__ */ U({
1861
1858
  __name: "aeria-filter-panel",
1862
1859
  emits: ["update:modelValue"],
1863
1860
  setup(c, { emit: i }) {
@@ -1917,13 +1914,13 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
1917
1914
  _: 1
1918
1915
  }, 8, ["title"]));
1919
1916
  }
1920
- }), se = X(!1), ut = X(!1), ke = X(!1), Be = X((...c) => null), ct = X(), dt = !1, ea = /* @__PURE__ */ q({
1917
+ }), se = Y(!1), ut = Y(!1), ke = Y(!1), Se = Y((...c) => null), ct = Y(), dt = !1, ea = /* @__PURE__ */ U({
1921
1918
  __name: "aeria-insert-panel",
1922
1919
  setup(c) {
1923
- const i = ue("meta"), t = ue(i.view.collection), a = ve("individualActions", []), l = async () => {
1920
+ const i = re("meta"), t = re(i.view.collection), a = ve("individualActions", []), l = async () => {
1924
1921
  const { error: p } = await t.$actions.deepInsert();
1925
1922
  p || (se.value = !1);
1926
- }, { t: r } = St(), u = () => {
1923
+ }, { t: r } = jt(), u = () => {
1927
1924
  i.$actions.ask({
1928
1925
  action: () => {
1929
1926
  t.$actions.clearItem(), t.validationErrors = {}, se.value = !1;
@@ -1931,7 +1928,7 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
1931
1928
  body: r("prompt.close_panel")
1932
1929
  });
1933
1930
  };
1934
- return re(() => t.item._id, (p) => {
1931
+ return ue(() => t.item._id, (p) => {
1935
1932
  p === null && (se.value = !1);
1936
1933
  }), (p, d) => {
1937
1934
  const h = ne("clickable");
@@ -2010,7 +2007,7 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2010
2007
  focus: "",
2011
2008
  onAdd: d[1] || (d[1] = (_) => _.preventDefault())
2012
2009
  }), de({ _: 2 }, [
2013
- U(Object.keys(p.$slots).filter((_) => _.startsWith("field-")), (_) => ({
2010
+ q(Object.keys(p.$slots).filter((_) => _.startsWith("field-")), (_) => ({
2014
2011
  name: _,
2015
2012
  fn: v((n) => [
2016
2013
  I(p.$slots, _, ce(Ve(n)))
@@ -2022,7 +2019,7 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2022
2019
  }, 8, ["modelValue", "loading"]);
2023
2020
  };
2024
2021
  }
2025
- }), gt = (c, i) => {
2022
+ }), kt = (c, i) => {
2026
2023
  if (i) {
2027
2024
  if (!c) {
2028
2025
  i.filtersPreset = {}, i.preferredTableProperties = [], i.pagination.offset = 0;
@@ -2034,11 +2031,11 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2034
2031
  persistInQuery: !0
2035
2032
  }) => {
2036
2033
  const a = Le().currentRoute;
2037
- return re(() => a.value.query.section, (l) => {
2034
+ return ue(() => a.value.query.section, (l) => {
2038
2035
  if (c) {
2039
2036
  if (c.description.filtersPresets) {
2040
2037
  const r = l || Object.keys(c.description.filtersPresets)[0];
2041
- gt(c.description.filtersPresets[r], c);
2038
+ kt(c.description.filtersPresets[r], c);
2042
2039
  }
2043
2040
  if (i.persistInQuery) {
2044
2041
  const r = a.value.query;
@@ -2051,7 +2048,7 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2051
2048
  }, {
2052
2049
  immediate: !0
2053
2050
  });
2054
- }, na = (c) => (Fe("data-v-434830ec"), c = c(), qe(), c), oa = {
2051
+ }, na = (c) => (Fe("data-v-7f75c4c2"), c = c(), Ue(), c), oa = {
2055
2052
  key: 0,
2056
2053
  class: "table aeria-surface"
2057
2054
  }, aa = { key: 0 }, la = { key: 1 }, sa = { key: 0 }, ia = ["checked"], ra = {
@@ -2069,11 +2066,11 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2069
2066
  }, Oa = { class: "table__cell-actions" }, wa = {
2070
2067
  key: 2,
2071
2068
  class: "no-print table__mobile-actions"
2072
- }, Ba = ["id"], Sa = { key: 1 }, ja = /* @__PURE__ */ na(() => /* @__PURE__ */ g("td", { colspan: 10 }, [
2069
+ }, Sa = ["id"], Ba = { key: 1 }, ja = /* @__PURE__ */ na(() => /* @__PURE__ */ g("td", { colspan: 10 }, [
2073
2070
  /* @__PURE__ */ g("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
2074
2071
  ], -1)), Ta = [
2075
2072
  ja
2076
- ], La = /* @__PURE__ */ q({
2073
+ ], La = /* @__PURE__ */ U({
2077
2074
  __name: "aeria-table",
2078
2075
  props: {
2079
2076
  columns: {},
@@ -2085,77 +2082,82 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2085
2082
  },
2086
2083
  emits: ["itemClick"],
2087
2084
  setup(c, { emit: i }) {
2088
- const t = c, a = i, l = je(), r = t.collection || Te(), u = r ? ue(typeof r == "string" ? r : r.value) : null, p = H({
2085
+ const t = c, a = i, l = je(), r = t.collection || Te(), u = r ? re(typeof r == "string" ? r : r.value) : null, p = H({
2089
2086
  get: () => u == null ? void 0 : u.selected,
2090
- set: (m) => u == null ? void 0 : u.$actions.selectManyItems(m, !0)
2091
- }), d = (m, k) => m != null && m.button ? typeof m.button == "object" ? Qe(k, m.button).satisfied : m.button : !1, h = (m) => {
2087
+ set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
2088
+ }), d = (f, k) => f != null && f.button ? typeof f.button == "object" ? Qe(k, f.button).satisfied : f.button : !1, h = (f) => {
2092
2089
  var k;
2093
- return !l.value.xl || !((k = t.layout) != null && k.actions) || !t.actions ? [] : t.actions.filter((j) => {
2094
- const R = t.layout.actions[j.action];
2095
- return d(R, m);
2090
+ return !l.value.xl || !((k = t.layout) != null && k.actions) || !t.actions ? [] : t.actions.filter((S) => {
2091
+ const R = t.layout.actions[S.action];
2092
+ return d(R, f);
2096
2093
  });
2097
- }, _ = (m) => {
2094
+ }, _ = (f) => {
2098
2095
  var k;
2099
- return t.actions ? !l.value.xl || !((k = t.layout) != null && k.actions) ? t.actions : t.actions.filter((j) => {
2100
- const R = t.layout.actions[j.action];
2101
- return !d(R, m);
2096
+ return t.actions ? !l.value.xl || !((k = t.layout) != null && k.actions) ? t.actions : t.actions.filter((S) => {
2097
+ const R = t.layout.actions[S.action];
2098
+ if (S.roles) {
2099
+ const W = re("user");
2100
+ if (!$t(S.roles, W.currentUser.roles))
2101
+ return !1;
2102
+ }
2103
+ return !d(R, f);
2102
2104
  }) : [];
2103
- }, n = (m, k) => {
2104
- var Y, K;
2105
- const j = [], R = (K = (Y = t.layout) == null ? void 0 : Y.actions) == null ? void 0 : K[k.action];
2105
+ }, n = (f, k) => {
2106
+ var W, J;
2107
+ const S = [], R = (J = (W = t.layout) == null ? void 0 : W.actions) == null ? void 0 : J[k.action];
2106
2108
  return R != null && R.if && (Qe(
2107
- m,
2109
+ f,
2108
2110
  R.if
2109
- ).satisfied || j.push("display: none;")), j.join("");
2111
+ ).satisfied || S.push("display: none;")), S.join("");
2110
2112
  };
2111
- return (m, k) => {
2112
- var R, Y, K;
2113
- const j = ne("clickable");
2114
- return m.columns && Object.keys(m.columns).length > 0 || m.$slots.thead ? (o(), s("table", oa, [
2115
- m.$slots.thead ? (o(), s("thead", aa, [
2116
- I(m.$slots, "thead", {}, void 0, !0)
2113
+ return (f, k) => {
2114
+ var R, W, J;
2115
+ const S = ne("clickable");
2116
+ return f.columns && Object.keys(f.columns).length > 0 || f.$slots.thead ? (o(), s("table", oa, [
2117
+ f.$slots.thead ? (o(), s("thead", aa, [
2118
+ I(f.$slots, "thead", {}, void 0, !0)
2117
2119
  ])) : (o(), s("thead", la, [
2118
2120
  g("tr", null, [
2119
- m.checkbox && e(u) && e(l).md ? (o(), s("th", sa, [
2121
+ f.checkbox && e(u) && e(l).md ? (o(), s("th", sa, [
2120
2122
  g("input", {
2121
2123
  type: "checkbox",
2122
2124
  checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
2123
2125
  onChange: k[0] || (k[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
2124
2126
  }, null, 40, ia)
2125
2127
  ])) : y("", !0),
2126
- (o(!0), s(J, null, U(Object.entries(m.columns), ([O, M], W) => (o(), s("th", {
2127
- key: `header-${W}`,
2128
+ (o(!0), s(K, null, q(Object.entries(f.columns), ([O, M], X) => (o(), s("th", {
2129
+ key: `header-${X}`,
2128
2130
  class: "table__header"
2129
2131
  }, b(M.description || e(F)(O)), 1))), 128)),
2130
- (R = m.actions) != null && R.length ? (o(), s("th", ra)) : y("", !0)
2132
+ (R = f.actions) != null && R.length ? (o(), s("th", ra)) : y("", !0)
2131
2133
  ])
2132
2134
  ])),
2133
- m.$slots.tbody ? (o(), s("tbody", ua, [
2134
- I(m.$slots, "tbody", {}, void 0, !0)
2135
+ f.$slots.tbody ? (o(), s("tbody", ua, [
2136
+ I(f.$slots, "tbody", {}, void 0, !0)
2135
2137
  ])) : (o(), s("tbody", ca, [
2136
- (o(!0), s(J, null, U(m.rows, (O) => {
2137
- var M, W;
2138
+ (o(!0), s(K, null, q(f.rows, (O) => {
2139
+ var M, X;
2138
2140
  return o(), s("tr", {
2139
2141
  key: O._id,
2140
2142
  onClick: (B) => a("itemClick", O)
2141
2143
  }, [
2142
- e(u) && m.checkbox && e(l).md ? (o(), s("td", pa, [
2144
+ e(u) && f.checkbox && e(l).md ? (o(), s("td", pa, [
2143
2145
  N(g("input", {
2144
2146
  "onUpdate:modelValue": k[1] || (k[1] = (B) => p.value = B),
2145
2147
  type: "checkbox",
2146
2148
  value: O._id
2147
2149
  }, null, 8, _a), [
2148
- [Ct, p.value]
2150
+ [It, p.value]
2149
2151
  ])
2150
2152
  ])) : y("", !0),
2151
- (o(!0), s(J, null, U(Object.entries(m.columns), ([B, ee], V) => {
2152
- var L, te, oe, le, f, A;
2153
+ (o(!0), s(K, null, q(Object.entries(f.columns), ([B, ee], V) => {
2154
+ var L, te, oe, le, m, A;
2153
2155
  return o(), s("td", {
2154
2156
  key: `column-${O._id}-${V}`
2155
2157
  }, [
2156
2158
  g("div", ma, b(ee.description || e(F)(B)), 1),
2157
- `row-${B}` in m.$slots ? (o(), s("div", fa, [
2158
- I(m.$slots, `row-${B}`, E({ ref_for: !0 }, {
2159
+ `row-${B}` in f.$slots ? (o(), s("div", fa, [
2160
+ I(f.$slots, `row-${B}`, E({ ref_for: !0 }, {
2159
2161
  store: e(u),
2160
2162
  column: B,
2161
2163
  property: ee,
@@ -2211,8 +2213,8 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2211
2213
  key: B,
2212
2214
  property: ee
2213
2215
  })), 1)) : (o(), s("span", Ca, b(Array.isArray(O[B]) ? O[B].filter((w) => !!w).join(", ") : [void 0, null].includes(O[B]) ? "-" : O[B]), 1)),
2214
- ((A = (f = e(pe)(ee)) == null ? void 0 : f.indexes) == null ? void 0 : A.length) > 1 ? (o(), s("div", Ia, [
2215
- (o(!0), s(J, null, U(e(pe)(ee).indexes.slice(1, 2), (w, Z) => (o(), s("div", {
2216
+ ((A = (m = e(pe)(ee)) == null ? void 0 : m.indexes) == null ? void 0 : A.length) > 1 ? (o(), s("div", Ia, [
2217
+ (o(!0), s(K, null, q(e(pe)(ee).indexes.slice(1, 2), (w, Z) => (o(), s("div", {
2216
2218
  key: `subvalue-${Z}`,
2217
2219
  class: "table__cell-subvalue"
2218
2220
  }, b(e(u).$actions.formatValue({
@@ -2227,9 +2229,9 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2227
2229
  ]))
2228
2230
  ]);
2229
2231
  }), 128)),
2230
- (M = m.actions) != null && M.length && e(l).md ? (o(), s("td", Aa, [
2232
+ (M = f.actions) != null && M.length && e(l).md ? (o(), s("td", Aa, [
2231
2233
  g("div", Oa, [
2232
- (o(!0), s(J, null, U(h(O), (B) => (o(), $(ie, {
2234
+ (o(!0), s(K, null, q(h(O), (B) => (o(), $(ie, {
2233
2235
  key: `action-${B.action}`,
2234
2236
  small: "",
2235
2237
  variant: "transparent",
@@ -2254,18 +2256,18 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2254
2256
  reactive: "",
2255
2257
  icon: "dots-three"
2256
2258
  }, null, 512), [
2257
- [j]
2259
+ [S]
2258
2260
  ])
2259
2261
  ]),
2260
2262
  _: 2
2261
2263
  }, 1040)) : y("", !0)
2262
2264
  ])
2263
- ])) : (W = m.actions) != null && W.length ? (o(), s("td", wa, [
2265
+ ])) : (X = f.actions) != null && X.length ? (o(), s("td", wa, [
2264
2266
  g("div", {
2265
2267
  class: "table__mobile-actions-grid",
2266
2268
  style: $e(`grid-template-columns: repeat(${h(O).length + (_(O).length ? 1 : 0)}, 1fr);`)
2267
2269
  }, [
2268
- (o(!0), s(J, null, U(h(O), (B) => (o(), $(fe, {
2270
+ (o(!0), s(K, null, q(h(O), (B) => (o(), $(fe, {
2269
2271
  key: `action-${B.action}`,
2270
2272
  class: "table__mobile-actions-button",
2271
2273
  onClick: (ee) => B.click(O)
@@ -2301,18 +2303,18 @@ const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @_
2301
2303
  ])) : y("", !0),
2302
2304
  g("div", {
2303
2305
  id: `dropdown-${O._id}`
2304
- }, null, 8, Ba)
2306
+ }, null, 8, Sa)
2305
2307
  ], 8, da);
2306
2308
  }), 128))
2307
2309
  ])),
2308
2310
  g("tfoot", null, [
2309
- m.$slots.tfoot ? I(m.$slots, "tfoot", { key: 0 }, void 0, !0) : m.columns && !((Y = m.rows) != null && Y.length) && !((K = e(u)) != null && K.loading.getAll) ? (o(), s("tr", Sa, Ta)) : y("", !0)
2311
+ f.$slots.tfoot ? I(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((W = f.rows) != null && W.length) && !((J = e(u)) != null && J.loading.getAll) ? (o(), s("tr", Ba, Ta)) : y("", !0)
2310
2312
  ])
2311
2313
  ])) : y("", !0);
2312
2314
  };
2313
2315
  }
2314
2316
  });
2315
- const Ra = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), za = /* @__PURE__ */ q({
2317
+ const Ra = /* @__PURE__ */ G(La, [["__scopeId", "data-v-7f75c4c2"]]), za = /* @__PURE__ */ U({
2316
2318
  __name: "aeria-tabular",
2317
2319
  props: {
2318
2320
  individualActions: {},
@@ -2336,7 +2338,7 @@ const Ra = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), za = /* @_
2336
2338
  e(t).properties ? (o(), $(Ra, E({ key: 1 }, l.value, {
2337
2339
  key: e(t).$id
2338
2340
  }), de({ _: 2 }, [
2339
- U(Object.keys(r.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
2341
+ q(Object.keys(r.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
2340
2342
  name: p,
2341
2343
  fn: v((d) => [
2342
2344
  I(r.$slots, p, ce(Ve(d)))
@@ -2345,7 +2347,7 @@ const Ra = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), za = /* @_
2345
2347
  ]), 1040)) : y("", !0)
2346
2348
  ]));
2347
2349
  }
2348
- }), Ma = /* @__PURE__ */ q({
2350
+ }), Ma = /* @__PURE__ */ U({
2349
2351
  __name: "aeria-grid",
2350
2352
  props: {
2351
2353
  list: { type: Boolean }
@@ -2361,10 +2363,10 @@ const Ra = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), za = /* @_
2361
2363
  ], 2));
2362
2364
  }
2363
2365
  });
2364
- const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), qa = { key: 0 }, Ua = {
2366
+ const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), Ua = { key: 0 }, qa = {
2365
2367
  key: 1,
2366
2368
  class: "card__information"
2367
- }, Ea = /* @__PURE__ */ q({
2369
+ }, Ea = /* @__PURE__ */ U({
2368
2370
  __name: "aeria-grid",
2369
2371
  props: {
2370
2372
  individualActions: {},
@@ -2380,14 +2382,14 @@ const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), qa = { key
2380
2382
  list: r.componentName === "list"
2381
2383
  }, {
2382
2384
  default: v(() => [
2383
- (o(!0), s(J, null, U(e(a).items, (d) => (o(), $(dn, {
2385
+ (o(!0), s(K, null, q(e(a).items, (d) => (o(), $(dn, {
2384
2386
  key: d,
2385
2387
  inactive: !!(e(t).active && !d[e(t).active]),
2386
2388
  horizontal: r.componentName === "list"
2387
2389
  }, de({
2388
2390
  footer: v(() => [
2389
- e(t).title ? (o(), s("div", qa, b(d[e(t).title]), 1)) : y("", !0),
2390
- e(t).information ? (o(), s("div", Ua, b(d[e(t).information]), 1)) : y("", !0)
2391
+ e(t).title ? (o(), s("div", Ua, b(d[e(t).title]), 1)) : y("", !0),
2392
+ e(t).information ? (o(), s("div", qa, b(d[e(t).information]), 1)) : y("", !0)
2391
2393
  ]),
2392
2394
  actions: v(() => [
2393
2395
  r.individualActions.length > 0 ? (o(), $(Ce, E({
@@ -2424,7 +2426,7 @@ const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), qa = { key
2424
2426
  e(t).badge && Array.isArray(d[e(t).badge]) ? {
2425
2427
  name: "badge",
2426
2428
  fn: v(() => [
2427
- (o(!0), s(J, null, U(d[e(t).badge], (h) => (o(), $(be, {
2429
+ (o(!0), s(K, null, q(d[e(t).badge], (h) => (o(), $(be, {
2428
2430
  key: `${d._id}-${h}`,
2429
2431
  large: ""
2430
2432
  }, {
@@ -2440,7 +2442,7 @@ const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), qa = { key
2440
2442
  fn: v(() => [
2441
2443
  z(be, null, {
2442
2444
  default: v(() => [
2443
- D(b(e(t).translateBadge ? e(F)(d[e(t).badge]) : d[e(t)[r.badge]]), 1)
2445
+ D(b(e(t).translateBadge ? e(F)(d[e(t).badge]) : d[e(t).badge]), 1)
2444
2446
  ]),
2445
2447
  _: 2
2446
2448
  }, 1024)
@@ -2454,11 +2456,11 @@ const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), qa = { key
2454
2456
  };
2455
2457
  }
2456
2458
  });
2457
- const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) => ({
2459
+ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-113dd7db"]]), Ha = (c) => ({
2458
2460
  tabular: za,
2459
2461
  grid: pt,
2460
2462
  list: pt
2461
- })[c], Da = (c) => (Fe("data-v-2cbb3e9f"), c = c(), qe(), c), Qa = {
2463
+ })[c], Da = (c) => (Fe("data-v-2cbb3e9f"), c = c(), Ue(), c), Qa = {
2462
2464
  key: 2,
2463
2465
  class: "crud__controls"
2464
2466
  }, Ga = {
@@ -2467,7 +2469,7 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2467
2469
  }, Wa = { class: "crud__actions" }, Xa = { class: "crud__context-badge" }, Ya = /* @__PURE__ */ Da(() => /* @__PURE__ */ g("div", null, "Filtros", -1)), Ja = { key: 0 }, Ka = {
2468
2470
  key: 3,
2469
2471
  class: "crud__pagination"
2470
- }, _t = 30, Za = /* @__PURE__ */ q({
2472
+ }, _t = 30, Za = /* @__PURE__ */ U({
2471
2473
  __name: "aeria-crud",
2472
2474
  props: {
2473
2475
  collection: {},
@@ -2485,19 +2487,19 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2485
2487
  setup(c, { emit: i }) {
2486
2488
  const t = c, a = i, l = Le(), r = ht({
2487
2489
  delay: 600
2488
- }), u = ue("meta"), p = je(), { reachedEnd: d, detach: h } = We(null, {
2490
+ }), u = re("meta"), p = je(), { reachedEnd: d, detach: h } = We(null, {
2489
2491
  antecipate: 600
2490
2492
  }), _ = !p.value.md || t.scrollPagination;
2491
- _ && re(d, (V) => {
2492
- V && n.pagination.recordsTotal > n.items.length && j.value < _t && (j.value += 1, Y());
2493
+ _ && ue(d, (V) => {
2494
+ V && n.pagination.recordsTotal > n.items.length && S.value < _t && (S.value += 1, W());
2493
2495
  });
2494
- const n = ue(t.collection);
2496
+ const n = re(t.collection);
2495
2497
  ta(n, {
2496
2498
  persistInQuery: !t.noQueryPersistence
2497
2499
  });
2498
- const m = $t(), k = t.action ? e(t.action) : Ft(n, l, m);
2499
- Be.value = k[0], ct.value = k[1];
2500
- const j = X(0), R = X(!1), Y = async (V) => {
2500
+ const f = bt(), k = t.action ? e(t.action) : Ft(n, l, f);
2501
+ Se.value = k[0], ct.value = k[1];
2502
+ const S = Y(0), R = Y(!1), W = async (V) => {
2501
2503
  n.activeFilters = Object.assign({}, (V == null ? void 0 : V.filters) || n.$filters), Object.assign(n.activeFilters, n.filtersPreset);
2502
2504
  const L = {
2503
2505
  filters: n.activeFilters,
@@ -2505,19 +2507,19 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2505
2507
  offset: n.pagination.offset,
2506
2508
  project: n.preferredTableProperties.length > 0 ? n.preferredTableProperties : n.description.table || Object.keys(n.properties)
2507
2509
  };
2508
- j.value > 0 && (L.limit = 15, L.offset = j.value * L.limit), n.description.tableMeta && (L.project = L.project.concat(n.description.tableMeta)), V && Object.assign(L, V), n.loading.getAll = !0;
2510
+ S.value > 0 && (L.limit = 15, L.offset = S.value * L.limit), n.description.tableMeta && (L.project = L.project.concat(n.description.tableMeta)), V && Object.assign(L, V), n.loading.getAll = !0;
2509
2511
  const { data: te, pagination: oe } = await n.$actions.retrieveItems(L);
2510
- n.pagination.recordsCount = oe.recordsCount, n.pagination.recordsTotal = oe.recordsTotal, j.value === 0 && n.items.splice(0), n.items.push(...te), n.loading.getAll = !1, R.value = !0;
2511
- }, K = async (V) => {
2512
+ n.pagination.recordsCount = oe.recordsCount, n.pagination.recordsTotal = oe.recordsTotal, S.value === 0 && n.items.splice(0), n.items.push(...te), n.loading.getAll = !1, R.value = !0;
2513
+ }, J = async (V) => {
2512
2514
  l.push({
2513
2515
  query: {
2514
2516
  ...l.currentRoute.value.query,
2515
2517
  offset: V.offset,
2516
2518
  limit: V.limit
2517
2519
  }
2518
- }), n.pagination.offset = V.offset, n.pagination.limit = V.limit, Y();
2520
+ }), n.pagination.offset = V.offset, n.pagination.limit = V.limit, W();
2519
2521
  }, O = ve("noResultsComponent", null);
2520
- re(() => [
2522
+ ue(() => [
2521
2523
  l.currentRoute.value.path,
2522
2524
  l.currentRoute.value.query.section
2523
2525
  ], async (V, L) => {
@@ -2525,8 +2527,8 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2525
2527
  return;
2526
2528
  const te = l.currentRoute.value;
2527
2529
  if (u.view.title = t.collection, u.view.collection = t.collection, ut.value = !1, !t.noFetch && !te.query._popstate) {
2528
- const oe = qt(n, te);
2529
- Object.keys(oe).length > 0 && Object.assign(n.filters, oe), await Y();
2530
+ const oe = Ut(n, te);
2531
+ Object.keys(oe).length > 0 && Object.assign(n.filters, oe), await W();
2530
2532
  }
2531
2533
  }, {
2532
2534
  immediate: !0,
@@ -2536,25 +2538,25 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2536
2538
  query: {
2537
2539
  search: V || void 0
2538
2540
  }
2539
- }), V ? (n.filters = Object.assign(Se(n.freshFilters), {
2541
+ }), V ? (n.filters = Object.assign(Be(n.freshFilters), {
2540
2542
  $text: {
2541
2543
  $search: `"${V}"`,
2542
2544
  $caseSensitive: !1
2543
2545
  }
2544
- }), Y({
2546
+ }), W({
2545
2547
  offset: 0
2546
- })) : (n.filters = Se(n.freshFilters), j.value = 0, Y())));
2547
- re(() => n.textQuery, (V) => {
2548
+ })) : (n.filters = Be(n.freshFilters), S.value = 0, W())));
2549
+ ue(() => n.textQuery, (V) => {
2548
2550
  M(V);
2549
2551
  });
2550
- const W = (V) => {
2552
+ const X = (V) => {
2551
2553
  V.currentLayout = V.currentLayout === "tabular" ? V.description.layout.name : "tabular";
2552
2554
  };
2553
- It(() => {
2555
+ At(() => {
2554
2556
  n.$actions.clearFilters(), n.textQuery = "", h();
2555
- }), re(() => ct.value, async (V) => {
2557
+ }), ue(() => ct.value, async (V) => {
2556
2558
  var oe;
2557
- const L = Se(V);
2559
+ const L = Be(V);
2558
2560
  let te;
2559
2561
  if (L)
2560
2562
  if ([
@@ -2575,29 +2577,29 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2575
2577
  ut.value = !0, se.value = "view";
2576
2578
  else if (L.name === "duplicate") {
2577
2579
  await te;
2578
- const le = Object.entries(n.item).reduce((f, [A, w]) => {
2580
+ const le = Object.entries(n.item).reduce((m, [A, w]) => {
2579
2581
  if (!(A in n.properties))
2580
2582
  return {
2581
- ...f,
2583
+ ...m,
2582
2584
  [A]: w
2583
2585
  };
2584
2586
  const Z = n.properties[A];
2585
2587
  if (Z.readOnly)
2586
- return f;
2588
+ return m;
2587
2589
  const C = (T) => {
2588
- const S = pe(Z);
2589
- if (!S)
2590
+ const j = pe(Z);
2591
+ if (!j)
2590
2592
  return T;
2591
- if (S.$ref === "file")
2593
+ if (j.$ref === "file")
2592
2594
  return {};
2593
- if (S.inline && T) {
2595
+ if (j.inline && T) {
2594
2596
  const { _id: ae, ..._e } = T;
2595
2597
  return _e;
2596
2598
  }
2597
2599
  return T;
2598
2600
  };
2599
2601
  return w = Array.isArray(w) ? w.map(C) : C(w), {
2600
- ...f,
2602
+ ...m,
2601
2603
  [A]: w
2602
2604
  };
2603
2605
  }, {});
@@ -2606,35 +2608,35 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2606
2608
  a("uiEvent", L);
2607
2609
  }, {
2608
2610
  deep: !0
2609
- }), re(() => se, (V) => {
2611
+ }), ue(() => se, (V) => {
2610
2612
  V.value === !1 && (u.view.collection = t.collection, n.$actions.clearItem());
2611
2613
  });
2612
2614
  const B = H(() => n.individualActions.map((V) => ({
2613
- click: Be.value(V),
2615
+ click: Se.value(V),
2614
2616
  ...V
2615
2617
  }))), ee = H(() => n.actions.filter((V) => !V.button));
2616
- return ye(Ue, H(() => t.collection)), ye("individualActions", B), (V, L) => {
2617
- var le, f, A, w, Z, C, T;
2618
+ return ye(qe, H(() => t.collection)), ye("individualActions", B), (V, L) => {
2619
+ var le, m, A, w, Z, C, T;
2618
2620
  const te = ne("clickable"), oe = ne("loading");
2619
- return o(), s(J, null, [
2621
+ return o(), s(K, null, [
2620
2622
  e(ke) ? (o(), $(xo, {
2621
2623
  key: e(n).$id,
2622
2624
  modelValue: e(ke),
2623
- "onUpdate:modelValue": L[0] || (L[0] = (S) => vt(ke) ? ke.value = S : null)
2625
+ "onUpdate:modelValue": L[0] || (L[0] = (j) => vt(ke) ? ke.value = j : null)
2624
2626
  }, null, 8, ["modelValue"])) : y("", !0),
2625
2627
  e(se) ? (o(), $(ea, { key: 1 }, de({ _: 2 }, [
2626
- U(Object.keys(V.$slots).filter((S) => S.startsWith("field-")), (S) => ({
2627
- name: S,
2628
+ q(Object.keys(V.$slots).filter((j) => j.startsWith("field-")), (j) => ({
2629
+ name: j,
2628
2630
  fn: v((ae) => [
2629
- I(V.$slots, S, ce(Ve(ae)), void 0, !0)
2631
+ I(V.$slots, j, ce(Ve(ae)), void 0, !0)
2630
2632
  ])
2631
2633
  }))
2632
2634
  ]), 1024)) : y("", !0),
2633
- !V.noActions && (e(n).description.search || Object.keys(e(n).availableFilters).length > 0 || ((le = e(n)) == null ? void 0 : le.actions.length) > 0 || V.$slots.actions || !V.noLayoutToggle && e(n).description.layout && ((f = e(n).description.layout) == null ? void 0 : f.name) !== "tabular") ? (o(), s("div", Qa, [
2635
+ !V.noActions && (e(n).description.search || Object.keys(e(n).availableFilters).length > 0 || ((le = e(n)) == null ? void 0 : le.actions.length) > 0 || V.$slots.actions || !V.noLayoutToggle && e(n).description.layout && ((m = e(n).description.layout) == null ? void 0 : m.name) !== "tabular") ? (o(), s("div", Qa, [
2634
2636
  e(n).description.search ? (o(), s("div", Ga, [
2635
2637
  z(Ie, E({
2636
2638
  modelValue: e(n).textQuery,
2637
- "onUpdate:modelValue": L[1] || (L[1] = (S) => e(n).textQuery = S)
2639
+ "onUpdate:modelValue": L[1] || (L[1] = (j) => e(n).textQuery = j)
2638
2640
  }, {
2639
2641
  property: {
2640
2642
  type: "string",
@@ -2668,7 +2670,7 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2668
2670
  fn: v(() => [
2669
2671
  N((o(), $(P, {
2670
2672
  icon: "funnel",
2671
- onClick: L[2] || (L[2] = (S) => ke.value = !0)
2673
+ onClick: L[2] || (L[2] = (j) => ke.value = !0)
2672
2674
  }, {
2673
2675
  default: v(() => [
2674
2676
  D(b(e(F)("filters", { capitalize: !0 })), 1)
@@ -2693,7 +2695,7 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2693
2695
  fn: v(() => [
2694
2696
  N((o(), $(P, {
2695
2697
  icon: "table",
2696
- onClick: L[3] || (L[3] = (S) => W(e(n)))
2698
+ onClick: L[3] || (L[3] = (j) => X(e(n)))
2697
2699
  }, {
2698
2700
  default: v(() => [
2699
2701
  D(b(e(F)("change_layout", { capitalize: !0 })), 1)
@@ -2705,17 +2707,17 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2705
2707
  ]),
2706
2708
  key: "1"
2707
2709
  } : void 0,
2708
- U(ee.value, (S, ae) => ({
2710
+ q(ee.value, (j, ae) => ({
2709
2711
  name: `action-${ae}`,
2710
2712
  fn: v(() => [
2711
- S ? (o(), $(P, {
2713
+ j ? (o(), $(P, {
2712
2714
  key: 0,
2713
- icon: S.icon || "gear",
2714
- disabled: e(n).selected.length === 0 && S.selection,
2715
- onClick: (_e) => e(Be)(S)({ _id: e(n).selected.map((me) => me._id) })
2715
+ icon: j.icon || "gear",
2716
+ disabled: e(n).selected.length === 0 && j.selection,
2717
+ onClick: (_e) => e(Se)(j)({ _id: e(n).selected.map((me) => me._id) })
2716
2718
  }, {
2717
2719
  default: v(() => [
2718
- D(b(e(F)(S.label, { capitalize: !0 })), 1)
2720
+ D(b(e(F)(j.label, { capitalize: !0 })), 1)
2719
2721
  ]),
2720
2722
  _: 2
2721
2723
  }, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
@@ -2725,7 +2727,7 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2725
2727
  key: 1,
2726
2728
  variant: "alt",
2727
2729
  icon: "funnel",
2728
- onClick: L[4] || (L[4] = (S) => ke.value = !0)
2730
+ onClick: L[4] || (L[4] = (j) => ke.value = !0)
2729
2731
  }, {
2730
2732
  default: v(() => [
2731
2733
  Ya,
@@ -2738,14 +2740,14 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2738
2740
  ]),
2739
2741
  _: 1
2740
2742
  })) : y("", !0),
2741
- (o(!0), s(J, null, U(e(n).actions.filter((S) => S.button), (S, ae) => (o(), $(ie, {
2743
+ (o(!0), s(K, null, q(e(n).actions.filter((j) => j.button), (j, ae) => (o(), $(ie, {
2742
2744
  key: `action-${ae}`,
2743
- icon: S.icon,
2744
- disabled: e(n).selected.length === 0 && S.selection,
2745
- onClick: (_e) => e(Be)(S)({ _id: e(n).selected.map((me) => me._id) })
2745
+ icon: j.icon,
2746
+ disabled: e(n).selected.length === 0 && j.selection,
2747
+ onClick: (_e) => e(Se)(j)({ _id: e(n).selected.map((me) => me._id) })
2746
2748
  }, {
2747
2749
  default: v(() => [
2748
- D(b(e(F)(S.label, { capitalize: !0 })), 1)
2750
+ D(b(e(F)(j.label, { capitalize: !0 })), 1)
2749
2751
  ]),
2750
2752
  _: 2
2751
2753
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
@@ -2761,7 +2763,7 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2761
2763
  e(n).filtersCount === 0 && e(n).description.actions && "ui:spawnAdd" in e(n).description.actions ? (o(), $(ie, {
2762
2764
  key: 0,
2763
2765
  icon: "plus",
2764
- onClick: L[5] || (L[5] = (S) => e(Be)({
2766
+ onClick: L[5] || (L[5] = (j) => e(Se)({
2765
2767
  action: "ui:spawnAdd"
2766
2768
  })())
2767
2769
  }, {
@@ -2784,10 +2786,10 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2784
2786
  }, {
2785
2787
  "component-name": ((T = V.layout) == null ? void 0 : T.name) || e(n).$currentLayout
2786
2788
  }), de({ _: 2 }, [
2787
- U(Object.keys(V.$slots).filter((S) => S.startsWith("row-")), (S) => ({
2788
- name: S,
2789
+ q(Object.keys(V.$slots).filter((j) => j.startsWith("row-")), (j) => ({
2790
+ name: j,
2789
2791
  fn: v((ae) => [
2790
- I(V.$slots, S, ce(Ve(ae)), void 0, !0)
2792
+ I(V.$slots, j, ce(Ve(ae)), void 0, !0)
2791
2793
  ])
2792
2794
  })),
2793
2795
  V.$slots.tfoot ? {
@@ -2799,26 +2801,26 @@ const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) =
2799
2801
  } : void 0
2800
2802
  ]), 1040, ["component-name"]))
2801
2803
  ])), [
2802
- [oe, (!e(_) || j.value === _t) && e(n).loading.getAll]
2804
+ [oe, (!e(_) || S.value === _t) && e(n).loading.getAll]
2803
2805
  ]),
2804
2806
  !e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), s("div", Ka, [
2805
2807
  z(zn, {
2806
2808
  pagination: e(n).pagination,
2807
- onPaginate: K
2809
+ onPaginate: J
2808
2810
  }, null, 8, ["pagination"])
2809
2811
  ])) : y("", !0)
2810
2812
  ], 64);
2811
2813
  };
2812
2814
  }
2813
2815
  });
2814
- const Tl = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-2cbb3e9f"]]), Pa = { class: "prompt" }, Na = /* @__PURE__ */ q({
2816
+ const Tl = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-2cbb3e9f"]]), Pa = { class: "prompt" }, Na = /* @__PURE__ */ U({
2815
2817
  __name: "aeria-prompt",
2816
2818
  props: {
2817
2819
  title: {},
2818
2820
  actions: {}
2819
2821
  },
2820
2822
  setup(c) {
2821
- const i = ue("meta"), t = (a) => {
2823
+ const i = re("meta"), t = (a) => {
2822
2824
  i.$actions.fulfillPrompt(a);
2823
2825
  };
2824
2826
  return (a, l) => (o(), $(Ae, {
@@ -2832,7 +2834,7 @@ const Tl = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-2cbb3e9f"]]), Pa = { cla
2832
2834
  class: "prompt__actions",
2833
2835
  style: $e(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
2834
2836
  }, [
2835
- (o(!0), s(J, null, U(a.actions, (r, u) => (o(), $(fe, {
2837
+ (o(!0), s(K, null, q(a.actions, (r, u) => (o(), $(fe, {
2836
2838
  key: `action-${u}`,
2837
2839
  class: Q(`
2838
2840
  prompt__action
@@ -2864,7 +2866,7 @@ const Tl = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-2cbb3e9f"]]), Pa = { cla
2864
2866
  ]), 1024));
2865
2867
  }
2866
2868
  });
2867
- const xa = /* @__PURE__ */ G(Na, [["__scopeId", "data-v-5443f297"]]), el = { class: "toast__content" }, tl = { class: "toast__time" }, nl = /* @__PURE__ */ q({
2869
+ const xa = /* @__PURE__ */ G(Na, [["__scopeId", "data-v-5443f297"]]), el = { class: "toast__content" }, tl = { class: "toast__time" }, nl = /* @__PURE__ */ U({
2868
2870
  __name: "aeria-toast",
2869
2871
  props: {
2870
2872
  idx: {},
@@ -2873,7 +2875,7 @@ const xa = /* @__PURE__ */ G(Na, [["__scopeId", "data-v-5443f297"]]), el = { cla
2873
2875
  icon: {}
2874
2876
  },
2875
2877
  setup(c) {
2876
- const i = ue("meta");
2878
+ const i = re("meta");
2877
2879
  return (t, a) => {
2878
2880
  const l = ne("clickable");
2879
2881
  return N((o(), s("div", {
@@ -2898,12 +2900,12 @@ const xa = /* @__PURE__ */ G(Na, [["__scopeId", "data-v-5443f297"]]), el = { cla
2898
2900
  };
2899
2901
  }
2900
2902
  });
2901
- const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["innerHTML"], ll = { class: "main__toasts" }, sl = ["innerHTML"], il = /* @__PURE__ */ q({
2903
+ const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["innerHTML"], ll = { class: "main__toasts" }, sl = ["innerHTML"], il = /* @__PURE__ */ U({
2902
2904
  __name: "aeria-main",
2903
2905
  setup(c) {
2904
- const i = ue("meta"), t = H(() => i.themeOverride || i.theme);
2906
+ const i = re("meta"), t = H(() => i.themeOverride || i.theme);
2905
2907
  return (a, l) => {
2906
- const r = At("router-view");
2908
+ const r = Ot("router-view");
2907
2909
  return o(), s("main", {
2908
2910
  id: "main",
2909
2911
  class: Q(`
@@ -2912,12 +2914,12 @@ const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["inn
2912
2914
  ${t.value === "dark" && "tw-dark"}
2913
2915
  `)
2914
2916
  }, [
2915
- (o(), $(Ot, null, {
2917
+ (o(), $(wt, null, {
2916
2918
  default: v(() => [
2917
2919
  z(r, null, {
2918
2920
  default: v(({ Component: u }) => [
2919
2921
  (o(), $(he(u), null, de({ _: 2 }, [
2920
- U(Object.keys(a.$slots), (p) => ({
2922
+ q(Object.keys(a.$slots), (p) => ({
2921
2923
  name: p,
2922
2924
  fn: v(() => [
2923
2925
  I(a.$slots, p, {}, void 0, !0)
@@ -2957,7 +2959,7 @@ const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["inn
2957
2959
  _: 1
2958
2960
  }, 16)) : y("", !0),
2959
2961
  g("div", ll, [
2960
- (o(!0), s(J, null, U(e(i).toasts, (u) => (o(), $(ol, E({ ref_for: !0 }, u, {
2962
+ (o(!0), s(K, null, q(e(i).toasts, (u) => (o(), $(ol, E({ ref_for: !0 }, u, {
2961
2963
  key: `toast-${u.itr}`
2962
2964
  }), {
2963
2965
  default: v(() => [
@@ -2976,7 +2978,7 @@ const Ll = /* @__PURE__ */ G(il, [["__scopeId", "data-v-1166be3d"]]);
2976
2978
  const rl = {}, ul = { class: "menu" };
2977
2979
  function cl(c, i) {
2978
2980
  return o(), s("menu", ul, [
2979
- (o(!0), s(J, null, U(Object.keys(c.$slots), (t) => (o(), s("div", {
2981
+ (o(!0), s(K, null, q(Object.keys(c.$slots), (t) => (o(), s("div", {
2980
2982
  key: t,
2981
2983
  class: "menu__entry"
2982
2984
  }, [
@@ -2993,7 +2995,7 @@ const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb
2993
2995
  }, ml = ["onClick"], fl = {
2994
2996
  key: 1,
2995
2997
  class: "tabs__context-menu"
2996
- }, vl = ["onClick"], yl = /* @__PURE__ */ q({
2998
+ }, vl = ["onClick"], yl = /* @__PURE__ */ U({
2997
2999
  __name: "aeria-tabs",
2998
3000
  props: {
2999
3001
  query: {},
@@ -3001,7 +3003,7 @@ const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb
3001
3003
  dropdown: { type: Boolean }
3002
3004
  },
3003
3005
  setup(c) {
3004
- const i = c, t = wt(), a = Le(), l = je(), r = "query" in i && i.query ? "query" : "params", u = H(() => {
3006
+ const i = c, t = St(), a = Le(), l = je(), r = "query" in i && i.query ? "query" : "params", u = H(() => {
3005
3007
  const d = a.currentRoute.value[r][i.query || i.param];
3006
3008
  return d || Object.keys(t)[0];
3007
3009
  }), p = (d) => {
@@ -3027,11 +3029,11 @@ const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb
3027
3029
  d.$slots.default ? (o(), s("div", _l, [
3028
3030
  I(d.$slots, "default", {}, void 0, !0)
3029
3031
  ])) : y("", !0),
3030
- (o(!0), s(J, null, U(Object.keys(d.$slots).filter((n) => n !== "default"), (n, m) => (o(), s("div", {
3032
+ (o(!0), s(K, null, q(Object.keys(d.$slots).filter((n) => n !== "default"), (n, f) => (o(), s("div", {
3031
3033
  key: n,
3032
3034
  class: Q({
3033
3035
  tabs__tab: !0,
3034
- "tabs__tab--current": n === u.value || !u.value && m === 0
3036
+ "tabs__tab--current": n === u.value || !u.value && f === 0
3035
3037
  }),
3036
3038
  onClick: (k) => p(n)
3037
3039
  }, [
@@ -3056,11 +3058,11 @@ const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb
3056
3058
  ]),
3057
3059
  _: 2
3058
3060
  }, [
3059
- U(Object.keys(d.$slots).filter((n) => n !== "default"), (n) => ({
3061
+ q(Object.keys(d.$slots).filter((n) => n !== "default"), (n) => ({
3060
3062
  name: n,
3061
3063
  fn: v(() => [
3062
3064
  g("div", {
3063
- onClick: (m) => p(n)
3065
+ onClick: (f) => p(n)
3064
3066
  }, [
3065
3067
  I(d.$slots, n, {}, void 0, !0)
3066
3068
  ], 8, vl)
@@ -3072,18 +3074,18 @@ const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb
3072
3074
  };
3073
3075
  }
3074
3076
  });
3075
- const hl = /* @__PURE__ */ G(yl, [["__scopeId", "data-v-4dd516ec"]]), $l = q({
3077
+ const hl = /* @__PURE__ */ G(yl, [["__scopeId", "data-v-4dd516ec"]]), $l = U({
3076
3078
  props: {
3077
3079
  initialValue: String,
3078
3080
  promise: Promise
3079
3081
  },
3080
3082
  setup(c) {
3081
- const i = X(c.initialValue);
3083
+ const i = Y(c.initialValue);
3082
3084
  return c.promise instanceof Promise && c.promise.then((t) => {
3083
3085
  i.value = t;
3084
3086
  }), () => Bt("div", i.value);
3085
3087
  }
3086
- }), bl = ["onClick"], gl = { key: 1 }, kl = /* @__PURE__ */ q({
3088
+ }), bl = ["onClick"], gl = { key: 1 }, kl = /* @__PURE__ */ U({
3087
3089
  __name: "aeria-crud-topbar",
3088
3090
  props: {
3089
3091
  collection: {}
@@ -3102,12 +3104,12 @@ const hl = /* @__PURE__ */ G(yl, [["__scopeId", "data-v-4dd516ec"]]), $l = q({
3102
3104
  dropdown: "",
3103
3105
  query: "section"
3104
3106
  }, de({ _: 2 }, [
3105
- U(Object.entries(l.value.description.filtersPresets), ([p, d]) => ({
3107
+ q(Object.entries(l.value.description.filtersPresets), ([p, d]) => ({
3106
3108
  name: p,
3107
3109
  fn: v(() => [
3108
3110
  g("div", {
3109
3111
  class: "topbar__preset",
3110
- onClick: (h) => e(gt)(d, l.value)
3112
+ onClick: (h) => e(kt)(d, l.value)
3111
3113
  }, [
3112
3114
  d.icon ? (o(), $(P, {
3113
3115
  key: 0,
@@ -3136,7 +3138,7 @@ const hl = /* @__PURE__ */ G(yl, [["__scopeId", "data-v-4dd516ec"]]), $l = q({
3136
3138
  const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3137
3139
  __proto__: null,
3138
3140
  default: Vl
3139
- }, Symbol.toStringTag, { value: "Module" })), zl = /* @__PURE__ */ q({
3141
+ }, Symbol.toStringTag, { value: "Module" })), zl = /* @__PURE__ */ U({
3140
3142
  __name: "aeria-password-form",
3141
3143
  props: {
3142
3144
  modelValue: {}
@@ -3144,8 +3146,8 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3144
3146
  emits: ["update:modelValue"],
3145
3147
  setup(c) {
3146
3148
  const i = c;
3147
- ye(Ue, null);
3148
- const t = Ut(), a = H(() => t(
3149
+ ye(qe, null);
3150
+ const t = qt(), a = H(() => t(
3149
3151
  i.modelValue.password,
3150
3152
  i.modelValue.confirmation
3151
3153
  ));
@@ -3190,7 +3192,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3190
3192
  {
3191
3193
  path: "signin",
3192
3194
  name: "/user/signin",
3193
- component: () => import("./signin-0b0a625a.js"),
3195
+ component: () => import("./signin-b16d808f.js"),
3194
3196
  meta: {
3195
3197
  title: "Autenticação"
3196
3198
  }
@@ -3198,7 +3200,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3198
3200
  {
3199
3201
  path: "signup",
3200
3202
  name: "/user/signup",
3201
- component: () => import("./signup-733ed54f.js"),
3203
+ component: () => import("./signup-be400dd2.js"),
3202
3204
  meta: {
3203
3205
  title: "Registro"
3204
3206
  }
@@ -3206,7 +3208,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3206
3208
  {
3207
3209
  path: "activation",
3208
3210
  name: "/user/activation",
3209
- component: () => import("./activation-6d0e8484.js"),
3211
+ component: () => import("./activation-967982e4.js"),
3210
3212
  meta: {
3211
3213
  title: "Ativação"
3212
3214
  }
@@ -3228,7 +3230,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3228
3230
  name: "/dashboard/crud",
3229
3231
  props: !0,
3230
3232
  components: {
3231
- default: () => import("./crud-view-a9a731e2.js"),
3233
+ default: () => import("./crud-view-731b1319.js"),
3232
3234
  topbar: () => Promise.resolve().then(() => Cl)
3233
3235
  },
3234
3236
  meta: {
@@ -3246,7 +3248,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3246
3248
  children: [
3247
3249
  {
3248
3250
  path: "profile",
3249
- component: () => import("./profile-a639724d.js"),
3251
+ component: () => import("./profile-f4f9607b.js"),
3250
3252
  meta: {
3251
3253
  title: "Meu perfil",
3252
3254
  icon: "user-square"
@@ -3255,7 +3257,7 @@ const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @_
3255
3257
  {
3256
3258
  path: "changepass",
3257
3259
  name: "/dashboard/user/changepass",
3258
- component: () => import("./password-change-4a4ef951.js"),
3260
+ component: () => import("./password-change-f85978c5.js"),
3259
3261
  meta: {
3260
3262
  title: "Mudar senha",
3261
3263
  icon: "lock"