@aeria-ui/ui 0.0.48 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, ref as Y, resolveDirective as ne, openBlock as o, createElementBlock as s, normalizeClass as Q, Fragment as J, renderList as U, withDirectives as Z, toDisplayString as g, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as A, inject as ve, computed as H, createElementVNode as k, mergeProps as E, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as Vt, Teleport as Ge, onMounted as mt, watch as re, createVNode as z, vModelDynamic as Ct, 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 It, onUnmounted as At, resolveComponent as Ot, Suspense as wt, useSlots as Bt, h as St } from "vue";
1
+ import { defineComponent as q, ref as Y, resolveDirective as ne, openBlock as o, createElementBlock as s, normalizeClass as Q, Fragment as J, renderList as U, withDirectives as P, 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 re, createVNode as z, vModelDynamic as Ct, 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 It, onUnmounted as At, resolveComponent as Ot, Suspense as wt, useSlots as Bt, h as St } from "vue";
2
2
  import { t as F, useI18n as jt } from "@aeria-ui/i18n";
3
3
  import { useScrollObserver as We, useBreakpoints as je, useClipboard as Tt, useMask as Rt, PAGINATION_PER_PAGE_DEFAULTS as Lt, API_URL as yt, request as zt, useDebounce as ht, isDocumentComplete as Mt, convertToSearchQuery as Ft, useAction as qt, convertFromSearchQuery as Ut, usePasswordPolicy as Et } from "@aeria-ui/core";
4
4
  import { useStore as ue, getStoreId as Te, useParentStore as ge, STORE_ID as Ue, getGlobalStateManager as $t } from "@aeria-ui/state-management";
@@ -28,17 +28,17 @@ const Gt = ["onClick"], Wt = { key: 0 }, Xt = {
28
28
  key: u,
29
29
  class: "accordion__slot"
30
30
  }, [
31
- Z((o(), s("div", {
31
+ P((o(), s("div", {
32
32
  class: "accordion__header",
33
33
  onClick: (d) => i.value === u ? i.value = null : i.value = u
34
34
  }, [
35
- a.enumerate ? (o(), s("span", Wt, g(p + 1) + ". ", 1)) : y("", !0),
36
- D(" " + g(a.headers[u] ? t(a.headers[u]) : e(F)(u)), 1)
35
+ a.enumerate ? (o(), s("span", Wt, b(p + 1) + ". ", 1)) : y("", !0),
36
+ D(" " + b(a.headers[u] ? t(a.headers[u]) : e(F)(u)), 1)
37
37
  ], 8, Gt)), [
38
38
  [r]
39
39
  ]),
40
40
  i.value === u ? (o(), s("div", Xt, [
41
- A(a.$slots, u, {}, void 0, !0)
41
+ I(a.$slots, u, {}, void 0, !0)
42
42
  ])) : y("", !0)
43
43
  ]))), 128))
44
44
  ], 2);
@@ -64,7 +64,7 @@ const G = (c, i) => {
64
64
  ${i.alt && "badge--alt"}
65
65
  `)
66
66
  }, [
67
- A(i.$slots, "default", {}, void 0, !0)
67
+ I(i.$slots, "default", {}, void 0, !0)
68
68
  ], 2));
69
69
  }
70
70
  });
@@ -85,7 +85,7 @@ const be = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-47f92648"]]), Kt = /* @_
85
85
  `),
86
86
  onClick: l
87
87
  }, [
88
- A(r.$slots, "default", {}, void 0, !0)
88
+ I(r.$slots, "default", {}, void 0, !0)
89
89
  ], 2));
90
90
  }
91
91
  });
@@ -114,7 +114,7 @@ const fe = /* @__PURE__ */ G(Kt, [["__scopeId", "data-v-35bc81ae"]]), Zt = ["hre
114
114
  ${l.$slots.default ? "icon--centered" : "icon--standalone"}
115
115
  `)
116
116
  }, [
117
- k("div", {
117
+ g("div", {
118
118
  class: Q(`
119
119
  icon__icon
120
120
  ${l.size && `icon__icon--${l.size}`}
@@ -129,18 +129,18 @@ const fe = /* @__PURE__ */ G(Kt, [["__scopeId", "data-v-35bc81ae"]]), Zt = ["hre
129
129
  }, {
130
130
  ...l.fill ? { fill: l.fill } : {}
131
131
  }), [
132
- k("use", {
132
+ g("use", {
133
133
  href: `/assets/icons.svg#${a.value}`
134
134
  }, null, 8, Zt)
135
135
  ], 16))
136
136
  ], 2),
137
137
  l.$slots.default ? (o(), s("div", Pt, [
138
- A(l.$slots, "default", {}, void 0, !0)
138
+ I(l.$slots, "default", {}, void 0, !0)
139
139
  ])) : y("", !0)
140
140
  ], 2));
141
141
  }
142
142
  });
143
- const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { class: "panel__header-left" }, en = { key: 1 }, tn = {
143
+ const Z = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { class: "panel__header-left" }, en = { key: 1 }, tn = {
144
144
  key: 2,
145
145
  style: { "margin-left": "auto" }
146
146
  }, nn = /* @__PURE__ */ q({
@@ -175,8 +175,8 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
175
175
  a("update:collapsed", n), r.value = n;
176
176
  };
177
177
  return (n, f) => {
178
- const V = ne("clickable"), S = ne("loading"), L = ne("overlay");
179
- return n.modelValue ? Z((o(), s("div", {
178
+ const k = ne("clickable"), j = ne("loading"), L = ne("overlay");
179
+ return n.modelValue ? P((o(), s("div", {
180
180
  key: 0,
181
181
  class: Q(`
182
182
  panel
@@ -209,29 +209,29 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
209
209
  ${n.outerHeader && "panel__header--outer"}
210
210
  `)
211
211
  }, [
212
- k("div", xt, [
213
- n.$slots.header ? A(n.$slots, "header", { key: 0 }, void 0, !0) : n.title ? (o(), s("div", en, g(n.title), 1)) : y("", !0),
212
+ g("div", xt, [
213
+ n.$slots.header ? I(n.$slots, "header", { key: 0 }, void 0, !0) : n.title ? (o(), s("div", en, b(n.title), 1)) : y("", !0),
214
214
  n.$slots.extra ? (o(), s("div", tn, [
215
- A(n.$slots, "extra", {}, void 0, !0)
215
+ I(n.$slots, "extra", {}, void 0, !0)
216
216
  ])) : y("", !0)
217
217
  ]),
218
- n.collapsible ? Z((o(), $(K, {
218
+ n.collapsible ? P((o(), $(Z, {
219
219
  key: 0,
220
220
  reactive: "",
221
221
  icon: r.value ? "plus" : "minus",
222
222
  onClick: f[0] || (f[0] = (W) => _(!r.value))
223
223
  }, null, 8, ["icon"])), [
224
- [V]
225
- ]) : n.closeHint ? Z((o(), $(K, {
224
+ [k]
225
+ ]) : n.closeHint ? P((o(), $(Z, {
226
226
  key: 1,
227
227
  reactive: "",
228
228
  icon: "x",
229
229
  onClick: d
230
230
  }, null, 512)), [
231
- [V]
231
+ [k]
232
232
  ]) : y("", !0)
233
233
  ], 2)) : y("", !0),
234
- r.value ? y("", !0) : Z((o(), s("div", {
234
+ r.value ? y("", !0) : P((o(), s("div", {
235
235
  key: 1,
236
236
  ref_key: "body",
237
237
  ref: u,
@@ -240,9 +240,9 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
240
240
  ${n.fill || "panel__body--padded"}
241
241
  `)
242
242
  }, [
243
- A(n.$slots, "default", {}, void 0, !0)
243
+ I(n.$slots, "default", {}, void 0, !0)
244
244
  ], 2)), [
245
- [S, n.loading]
245
+ [j, n.loading]
246
246
  ]),
247
247
  n.$slots.footer ? (o(), s("div", {
248
248
  key: 2,
@@ -252,7 +252,7 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
252
252
  ${e(p) || "panel__footer--shadowed"}
253
253
  `)
254
254
  }, [
255
- A(n.$slots, "footer", {}, void 0, !0)
255
+ I(n.$slots, "footer", {}, void 0, !0)
256
256
  ], 2)) : y("", !0)
257
257
  ]),
258
258
  _: 3
@@ -302,18 +302,18 @@ const Ae = /* @__PURE__ */ G(nn, [["__scopeId", "data-v-6fdc75a0"]]), on = { cla
302
302
  disabled: l.disabled
303
303
  }, {
304
304
  default: v(() => [
305
- l.icon ? (o(), $(K, {
305
+ l.icon ? (o(), $(Z, {
306
306
  key: 0,
307
307
  icon: l.icon
308
308
  }, {
309
309
  default: v(() => [
310
- k("div", on, [
311
- A(l.$slots, "default", {}, void 0, !0)
310
+ g("div", on, [
311
+ I(l.$slots, "default", {}, void 0, !0)
312
312
  ])
313
313
  ]),
314
314
  _: 3
315
315
  }, 8, ["icon"])) : (o(), s("div", an, [
316
- A(l.$slots, "default", {}, void 0, !0)
316
+ I(l.$slots, "default", {}, void 0, !0)
317
317
  ]))
318
318
  ]),
319
319
  _: 3
@@ -334,18 +334,18 @@ const ie = /* @__PURE__ */ G(ln, [["__scopeId", "data-v-c328251b"]]), sn = { cla
334
334
  ${i.horizontal && "card--horizontal"}
335
335
  `)
336
336
  }, [
337
- k("div", sn, [
338
- A(i.$slots, "default", {}, void 0, !0)
337
+ g("div", sn, [
338
+ I(i.$slots, "default", {}, void 0, !0)
339
339
  ]),
340
- k("div", rn, [
341
- k("div", un, [
342
- k("div", null, [
343
- A(i.$slots, "footer", {}, void 0, !0)
340
+ g("div", rn, [
341
+ g("div", un, [
342
+ g("div", null, [
343
+ I(i.$slots, "footer", {}, void 0, !0)
344
344
  ]),
345
- i.$slots.actions ? A(i.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
345
+ i.$slots.actions ? I(i.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
346
346
  ]),
347
- k("div", cn, [
348
- A(i.$slots, "badge", {}, void 0, !0)
347
+ g("div", cn, [
348
+ I(i.$slots, "badge", {}, void 0, !0)
349
349
  ])
350
350
  ])
351
351
  ], 2));
@@ -400,27 +400,27 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
400
400
  ref: a,
401
401
  class: "contextmenu"
402
402
  }, [
403
- k("a", {
403
+ g("a", {
404
404
  class: "contextmenu__trigger",
405
405
  onClick: h[0] || (h[0] = (n) => l.value = !0)
406
406
  }, [
407
- A(d.$slots, "default", {}, void 0, !0)
407
+ I(d.$slots, "default", {}, void 0, !0)
408
408
  ])
409
409
  ], 512)) : y("", !0),
410
410
  l.value ? (o(), $(Ge, {
411
411
  key: 1,
412
412
  to: "main"
413
413
  }, [
414
- Z((o(), $(Ae, {
414
+ P((o(), $(Ae, {
415
415
  modelValue: l.value,
416
416
  "onUpdate:modelValue": h[4] || (h[4] = (n) => l.value = n),
417
417
  fill: "",
418
418
  class: "content"
419
419
  }, {
420
420
  default: v(() => [
421
- k("div", _n, [
421
+ g("div", _n, [
422
422
  d.$slots.header ? (o(), s("div", mn, [
423
- A(d.$slots, "header", {}, void 0, !0)
423
+ I(d.$slots, "header", {}, void 0, !0)
424
424
  ])) : y("", !0),
425
425
  Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)).length > 0 ? (o(), s("div", {
426
426
  key: 1,
@@ -432,7 +432,7 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
432
432
  class: "content__item content__item--reactive"
433
433
  }, {
434
434
  default: v(() => [
435
- A(d.$slots, n, {}, void 0, !0)
435
+ I(d.$slots, n, {}, void 0, !0)
436
436
  ]),
437
437
  _: 2
438
438
  }, 1024))), 128))
@@ -445,15 +445,15 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
445
445
  (o(!0), s(J, null, U(r(d.actions), (n, f) => (o(), $(fe, {
446
446
  key: `action-${f}`,
447
447
  class: "content__item content__item--reactive",
448
- onClick: (V) => u(n, d.subject)
448
+ onClick: (k) => u(n, d.subject)
449
449
  }, {
450
450
  default: v(() => [
451
- n.icon ? (o(), $(K, {
451
+ n.icon ? (o(), $(Z, {
452
452
  key: 0,
453
453
  icon: n.icon
454
454
  }, {
455
455
  default: v(() => [
456
- D(g(n.translate ? e(F)(n.label, { capitalize: !0 }) : n.label), 1)
456
+ D(b(n.translate ? e(F)(n.label, { capitalize: !0 }) : n.label), 1)
457
457
  ]),
458
458
  _: 2
459
459
  }, 1032, ["icon"])) : y("", !0)
@@ -466,8 +466,8 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
466
466
  class: "content__section",
467
467
  onClick: h[3] || (h[3] = (n) => l.value = !1)
468
468
  }, [
469
- k("div", fn, [
470
- d.$slots.extra ? A(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
469
+ g("div", fn, [
470
+ d.$slots.extra ? I(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
471
471
  ])
472
472
  ])) : y("", !0)
473
473
  ])
@@ -510,16 +510,16 @@ const Ce = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-5ad42e0b"]]), yn = { cla
510
510
  info__bubble--${e(l)}
511
511
  `)
512
512
  }, [
513
- k("div", yn, [
514
- A(r.$slots, "text", {}, void 0, !0)
513
+ g("div", yn, [
514
+ I(r.$slots, "text", {}, void 0, !0)
515
515
  ])
516
516
  ], 2)) : y("", !0),
517
- k("div", {
517
+ g("div", {
518
518
  onMouseover: u[0] || (u[0] = (p) => a.value = !0)
519
519
  }, [
520
- A(r.$slots, "default", {}, void 0, !0)
520
+ I(r.$slots, "default", {}, void 0, !0)
521
521
  ], 32)
522
- ], 32)) : A(r.$slots, "default", { key: 1 }, void 0, !0);
522
+ ], 32)) : I(r.$slots, "default", { key: 1 }, void 0, !0);
523
523
  }
524
524
  });
525
525
  const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { class: "input" }, gn = {
@@ -576,14 +576,14 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
576
576
  } catch {
577
577
  return "";
578
578
  }
579
- }, V = Y([
579
+ }, k = Y([
580
580
  "date",
581
581
  "date-time"
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 ? Rt(t.property.mask) : null, L = (M) => {
582
+ ].includes(n.type) ? f() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue), j = ((O = t.property) == null ? void 0 : O.type) === "string" && t.property.mask ? Rt(t.property.mask) : null, L = (M) => {
583
583
  var X;
584
- return typeof V.value == "string" && ((X = t.property) == null ? void 0 : X.type) === "string" && S !== null ? (V.value = S.enmask(V.value, void 0, {
584
+ return typeof k.value == "string" && ((X = t.property) == null ? void 0 : X.type) === "string" && j !== null ? (k.value = j.enmask(k.value, void 0, {
585
585
  defaultValue: !0
586
- }), t.property.maskedValue === !0 ? V.value : S.unmask(V.value)) : M;
586
+ }), t.property.maskedValue === !0 ? k.value : j.unmask(k.value)) : M;
587
587
  }, W = (M) => {
588
588
  const X = (() => {
589
589
  if (!M || typeof M != "string")
@@ -601,22 +601,22 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
601
601
  }
602
602
  })();
603
603
  h("input", X), h("update:modelValue", X);
604
- }, P = (M) => {
604
+ }, N = (M) => {
605
605
  const X = M.target.value;
606
- V.value = X, W(X);
606
+ k.value = X, W(X);
607
607
  };
608
608
  return re(() => t.modelValue, (M, X) => {
609
- M instanceof Date || (X && !M ? V.value = void 0 : V.value = S ? S.enmask(String(M), void 0, {
609
+ M instanceof Date || (X && !M ? k.value = void 0 : k.value = j ? j.enmask(String(M), void 0, {
610
610
  defaultValue: !0
611
611
  }) : String(M));
612
612
  }), (M, X) => {
613
- const w = ne("focus"), ee = ne("clickable");
613
+ const B = ne("focus"), ee = ne("clickable");
614
614
  return o(), s("label", bn, [
615
615
  e(u) ? y("", !0) : (o(), s("div", gn, [
616
- M.$slots.default ? A(M.$slots, "default", { key: 0 }, void 0, !0) : A(M.$slots, "description", { key: 1 }, void 0, !0)
616
+ M.$slots.default ? I(M.$slots, "default", { key: 0 }, void 0, !0) : I(M.$slots, "description", { key: 1 }, void 0, !0)
617
617
  ])),
618
618
  M.$slots.hint ? (o(), s("div", kn, [
619
- A(M.$slots, "hint", {}, void 0, !0)
619
+ I(M.$slots, "hint", {}, void 0, !0)
620
620
  ])) : y("", !0),
621
621
  "element" in e(a) && e(a).element === "textarea" ? (o(), s("div", {
622
622
  key: 2,
@@ -625,7 +625,7 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
625
625
  input__container--${e(_)}
626
626
  `)
627
627
  }, [
628
- Z(k("textarea", {
628
+ P(g("textarea", {
629
629
  placeholder: n.placeholder,
630
630
  readonly: n.readonly,
631
631
  value: M.modelValue,
@@ -633,9 +633,9 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
633
633
  input__textarea
634
634
  input__input--${e(_)}
635
635
  `),
636
- onInput: P
636
+ onInput: N
637
637
  }, null, 42, Vn), [
638
- [w, e(a).focus]
638
+ [B, e(a).focus]
639
639
  ])
640
640
  ], 2)) : (o(), s("div", {
641
641
  key: 3,
@@ -644,8 +644,8 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
644
644
  input__container--${e(_)}
645
645
  `)
646
646
  }, [
647
- Z(k("input", E(n, {
648
- value: V.value,
647
+ P(g("input", E(n, {
648
+ value: k.value,
649
649
  "data-component": "input",
650
650
  class: `
651
651
  input__input
@@ -653,12 +653,12 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
653
653
  ${e(l) && "input__input--icon"}
654
654
  ${e(p) && "input__input--readOnly"}
655
655
  `,
656
- onInput: P,
657
- onChange: X[0] || (X[0] = (C) => h("change", C))
656
+ onInput: N,
657
+ onChange: X[0] || (X[0] = (V) => h("change", V))
658
658
  }), null, 16, Cn), [
659
- [w, e(a).focus]
659
+ [B, e(a).focus]
660
660
  ]),
661
- e(l) ? (o(), $(K, {
661
+ e(l) ? (o(), $(Z, {
662
662
  key: 0,
663
663
  icon: e(a).icon || "magnifying-glass",
664
664
  class: Q(`
@@ -672,9 +672,9 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
672
672
  D("Copiar")
673
673
  ]),
674
674
  default: v(() => [
675
- Z(z(K, {
675
+ P(z(Z, {
676
676
  icon: "clipboard",
677
- onClick: X[1] || (X[1] = (C) => e(d)(String(M.modelValue || "")))
677
+ onClick: X[1] || (X[1] = (V) => e(d)(String(M.modelValue || "")))
678
678
  }, null, 512), [
679
679
  [ee]
680
680
  ])
@@ -730,7 +730,7 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-4bdda204"]]), On = ["val
730
730
  "select--outline": !_.noOutline
731
731
  })
732
732
  }, [
733
- k("select", E({
733
+ g("select", E({
734
734
  ref_key: "select",
735
735
  ref: l,
736
736
  value: e(p)
@@ -743,17 +743,17 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-4bdda204"]]), On = ["val
743
743
  },
744
744
  onChange: n[0] || (n[0] = (f) => u(f.target.value))
745
745
  }), [
746
- e(r).icon ? (o(), $(K, {
746
+ e(r).icon ? (o(), $(Z, {
747
747
  key: 0,
748
748
  icon: e(r).icon
749
749
  }, null, 8, ["icon"])) : y("", !0),
750
- t.multiple ? y("", !0) : (o(), s("option", wn, g(e(F)("none")), 1)),
750
+ t.multiple ? y("", !0) : (o(), s("option", wn, b(e(F)("none")), 1)),
751
751
  (o(!0), s(J, null, U("enum" in e(r) ? e(r).enum : [], (f) => (o(), s("option", {
752
752
  key: f,
753
753
  value: f,
754
754
  "data-selected": d(f)
755
- }, g(e(r).translate ? e(F)(f) : f), 9, Bn))), 128)),
756
- A(_.$slots, "default", {}, void 0, !0)
755
+ }, b(e(r).translate ? e(F)(f) : f), 9, Bn))), 128)),
756
+ I(_.$slots, "default", {}, void 0, !0)
757
757
  ], 16, On)
758
758
  ], 2));
759
759
  }
@@ -800,16 +800,16 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
800
800
  (o(!0), s(J, null, U(e(Lt), (n) => (o(), s("option", {
801
801
  key: `limit-${n}`,
802
802
  value: n
803
- }, g(n), 9, Tn))), 128))
803
+ }, b(n), 9, Tn))), 128))
804
804
  ]),
805
805
  _: 1
806
806
  }, 8, ["modelValue"]),
807
- k("div", Rn, [
807
+ g("div", Rn, [
808
808
  z(fe, {
809
809
  onClick: _[1] || (_[1] = (n) => l.value = 0)
810
810
  }, {
811
811
  default: v(() => [
812
- z(K, {
812
+ z(Z, {
813
813
  reactive: "",
814
814
  icon: "caret-double-left"
815
815
  })
@@ -821,14 +821,14 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
821
821
  onClick: _[2] || (_[2] = (n) => d("previous"))
822
822
  }, {
823
823
  default: v(() => [
824
- z(K, {
824
+ z(Z, {
825
825
  reactive: "",
826
826
  icon: "caret-left"
827
827
  })
828
828
  ]),
829
829
  _: 1
830
830
  }, 8, ["disabled"]),
831
- k("div", Ln, [
831
+ g("div", Ln, [
832
832
  (o(), $(Ie, {
833
833
  key: l.value,
834
834
  modelValue: u.value,
@@ -841,14 +841,14 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
841
841
  l.value = u.value === 0 ? 0 : u.value - 1;
842
842
  })
843
843
  }, null, 8, ["modelValue"])),
844
- k("span", null, g(e(F)("of")) + " " + g(p.value), 1)
844
+ g("span", null, b(e(F)("of")) + " " + b(p.value), 1)
845
845
  ]),
846
846
  z(fe, {
847
847
  disabled: l.value === p.value - 1,
848
848
  onClick: _[5] || (_[5] = (n) => d("next"))
849
849
  }, {
850
850
  default: v(() => [
851
- z(K, {
851
+ z(Z, {
852
852
  reactive: "",
853
853
  icon: "caret-right"
854
854
  })
@@ -859,7 +859,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
859
859
  onClick: _[6] || (_[6] = (n) => l.value = p.value - 1)
860
860
  }, {
861
861
  default: v(() => [
862
- z(K, {
862
+ z(Z, {
863
863
  reactive: "",
864
864
  icon: "caret-double-right"
865
865
  })
@@ -914,13 +914,13 @@ const Mn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-41aa1ffc"]]), Fn = { cla
914
914
  });
915
915
  return (d, h) => {
916
916
  const _ = ne("clickable");
917
- return Z((o(), s("label", {
917
+ return P((o(), s("label", {
918
918
  class: Q(`
919
919
  checkbox
920
920
  ${e(a).readOnly && "checkbox--readOnly"}
921
921
  `)
922
922
  }, [
923
- Z(k("input", E({
923
+ P(g("input", E({
924
924
  "onUpdate:modelValue": h[0] || (h[0] = (n) => p.value = n)
925
925
  }, {
926
926
  type: e(l),
@@ -929,15 +929,15 @@ const Mn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-41aa1ffc"]]), Fn = { cla
929
929
  }, { class: "checkbox__input" }), null, 16), [
930
930
  [Ct, p.value]
931
931
  ]),
932
- k("div", Fn, [
933
- k("div", null, [
934
- d.$slots.description ? A(d.$slots, "description", { key: 0 }, void 0, !0) : e(u) ? (o(), s("div", {
932
+ g("div", Fn, [
933
+ g("div", null, [
934
+ d.$slots.description ? I(d.$slots, "description", { key: 0 }, void 0, !0) : e(u) ? (o(), s("div", {
935
935
  key: 1,
936
936
  innerHTML: e(a).translate ? e(F)(e(u)) : e(u)
937
- }, null, 8, qn)) : A(d.$slots, "default", { key: 2 }, void 0, !0)
937
+ }, null, 8, qn)) : I(d.$slots, "default", { key: 2 }, void 0, !0)
938
938
  ]),
939
- k("div", Un, [
940
- d.$slots.hint ? A(d.$slots, "hint", { key: 0 }, void 0, !0) : e(a).hint ? (o(), s("div", {
939
+ g("div", Un, [
940
+ d.$slots.hint ? I(d.$slots, "hint", { key: 0 }, void 0, !0) : e(a).hint ? (o(), s("div", {
941
941
  key: 1,
942
942
  innerHTML: e(a).hint
943
943
  }, null, 8, En)) : y("", !0)
@@ -994,7 +994,7 @@ const Qn = /* @__PURE__ */ G(Dn, [["__scopeId", "data-v-256eb557"]]), Gn = {
994
994
  ], 4));
995
995
  }
996
996
  });
997
- const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) => (Fe("data-v-30f5a5ca"), c = c(), qe(), c), Jn = { class: "switch-wrapper" }, Kn = /* @__PURE__ */ Yn(() => /* @__PURE__ */ k("div", { class: "switch__slider" }, null, -1)), Zn = { key: 1 }, Pn = {
997
+ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) => (Fe("data-v-30f5a5ca"), c = c(), qe(), c), Jn = { class: "switch-wrapper" }, Kn = /* @__PURE__ */ Yn(() => /* @__PURE__ */ g("div", { class: "switch__slider" }, null, -1)), Zn = { key: 1 }, Pn = {
998
998
  inheritAttrs: !1
999
999
  }, Nn = /* @__PURE__ */ q({
1000
1000
  ...Pn,
@@ -1014,7 +1014,7 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
1014
1014
  return (u, p) => {
1015
1015
  const d = ne("clickable");
1016
1016
  return o(), s("div", Jn, [
1017
- Z((o(), s("a", {
1017
+ P((o(), s("a", {
1018
1018
  class: Q(`
1019
1019
  switch
1020
1020
  ${u.modelValue && "switch--active"}
@@ -1023,7 +1023,7 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
1023
1023
  onClick: ze(r, ["stop"])
1024
1024
  }, [
1025
1025
  Kn,
1026
- k("div", {
1026
+ g("div", {
1027
1027
  class: Q(`
1028
1028
  switch__dummy
1029
1029
  ${!u.modelValue && "switch__dummy--flex"}
@@ -1034,7 +1034,7 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
1034
1034
  blocked: e(l).readOnly
1035
1035
  }]
1036
1036
  ]),
1037
- u.$slots.default ? A(u.$slots, "default", { key: 0 }, void 0, !0) : (o(), s("div", Zn, g(e(l).description || u.propertyName), 1))
1037
+ u.$slots.default ? I(u.$slots, "default", { key: 0 }, void 0, !0) : (o(), s("div", Zn, b(e(l).description || u.propertyName), 1))
1038
1038
  ]);
1039
1039
  };
1040
1040
  }
@@ -1045,14 +1045,14 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
1045
1045
  }, no = ["src", "alt"], oo = {
1046
1046
  key: 0,
1047
1047
  class: "picture__meta"
1048
- }, ao = ["src"], lo = /* @__PURE__ */ gt(() => /* @__PURE__ */ k("line", {
1048
+ }, ao = ["src"], lo = /* @__PURE__ */ gt(() => /* @__PURE__ */ g("line", {
1049
1049
  x1: "0",
1050
1050
  y1: "0",
1051
1051
  x2: "200",
1052
1052
  y2: "200",
1053
1053
  stroke: "#000",
1054
1054
  "vector-effect": "non-scaling-stroke"
1055
- }, null, -1)), so = /* @__PURE__ */ gt(() => /* @__PURE__ */ k("line", {
1055
+ }, null, -1)), so = /* @__PURE__ */ gt(() => /* @__PURE__ */ g("line", {
1056
1056
  x1: "200",
1057
1057
  y1: "0",
1058
1058
  x2: "0",
@@ -1086,8 +1086,8 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
1086
1086
  key: 0,
1087
1087
  to: "main"
1088
1088
  }, [
1089
- a.value ? Z((o(), s("div", to, [
1090
- k("img", {
1089
+ a.value ? P((o(), s("div", to, [
1090
+ g("img", {
1091
1091
  src: t.value,
1092
1092
  alt: l.alt,
1093
1093
  style: `
@@ -1096,7 +1096,7 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
1096
1096
  `,
1097
1097
  onClick: r[0] || (r[0] = (d) => a.value = !0)
1098
1098
  }, null, 8, no),
1099
- (p = l.meta) != null && p.owner ? (o(), s("div", oo, " Criado por " + g(l.meta.owner.name) + " em " + g(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1099
+ (p = l.meta) != null && p.owner ? (o(), s("div", oo, " Criado por " + b(l.meta.owner.name) + " em " + b(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1100
1100
  ])), [
1101
1101
  [u, {
1102
1102
  click: () => {
@@ -1121,7 +1121,7 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
1121
1121
  onClick: r[1] || (r[1] = () => {
1122
1122
  l.expandable && (a.value = !0);
1123
1123
  })
1124
- }, null, 14, ao)) : l.$slots.fallback ? A(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? A(l.$slots, "default", { key: 3 }, void 0, !0) : (o(), s("svg", {
1124
+ }, null, 14, ao)) : l.$slots.fallback ? I(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? I(l.$slots, "default", { key: 3 }, void 0, !0) : (o(), s("svg", {
1125
1125
  key: 4,
1126
1126
  class: Q(["picture__background", `
1127
1127
  ${l.bordered && "picture__image--bordered"}
@@ -1136,7 +1136,7 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
1136
1136
  `)
1137
1137
  }, io, 6)),
1138
1138
  l.$slots.caption ? (o(), s("figcaption", ro, [
1139
- A(l.$slots, "caption", {}, void 0, !0)
1139
+ I(l.$slots, "caption", {}, void 0, !0)
1140
1140
  ])) : y("", !0)
1141
1141
  ]);
1142
1142
  };
@@ -1162,25 +1162,25 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
1162
1162
  emits: ["update:content", "change", "update:modelValue"],
1163
1163
  setup(c, { emit: i }) {
1164
1164
  const t = c, a = i, r = Te() ? ge() : null, u = Y(null), p = H(() => {
1165
- var V;
1166
- return u.value ? URL.createObjectURL(u.value) : (V = t.modelValue) == null ? void 0 : V.link;
1165
+ var k;
1166
+ return u.value ? URL.createObjectURL(u.value) : (k = t.modelValue) == null ? void 0 : k.link;
1167
1167
  }), d = H(() => {
1168
- var V, S, L;
1169
- return /^image\//.test((V = t.modelValue) == null ? void 0 : V.type) && !((S = u.value) != null && S.type) || /^image\//.test((L = u.value) == null ? void 0 : L.type);
1170
- }), h = (V) => new Promise((S) => {
1168
+ var k, j, L;
1169
+ return /^image\//.test((k = t.modelValue) == null ? void 0 : k.type) && !((j = u.value) != null && j.type) || /^image\//.test((L = u.value) == null ? void 0 : L.type);
1170
+ }), h = (k) => new Promise((j) => {
1171
1171
  const L = new FileReader();
1172
- L.onload = () => S(L.result), L.readAsArrayBuffer(V);
1172
+ L.onload = () => j(L.result), L.readAsArrayBuffer(k);
1173
1173
  }), _ = () => {
1174
1174
  u.value = null;
1175
- }, n = async (V) => {
1176
- u.value = V.target.files[0];
1177
- const S = u.value, L = await h(S);
1175
+ }, n = async (k) => {
1176
+ u.value = k.target.files[0];
1177
+ const j = u.value, L = await h(j);
1178
1178
  if (r) {
1179
- const { data: W } = await zt(`${yt}/${r.$id}/upload?name=${S.name}`, L, {
1179
+ const { data: W } = await zt(`${yt}/${r.$id}/upload?name=${j.name}`, L, {
1180
1180
  params: {
1181
1181
  method: "POST",
1182
1182
  headers: {
1183
- "content-type": S.type || "application/octet-stream",
1183
+ "content-type": j.type || "application/octet-stream",
1184
1184
  "x-stream-request": "1"
1185
1185
  }
1186
1186
  }
@@ -1189,35 +1189,35 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
1189
1189
  return;
1190
1190
  a("update:modelValue", W);
1191
1191
  } else
1192
- a("update:modelValue", S);
1192
+ a("update:modelValue", j);
1193
1193
  a("update:content", L), a("change", L);
1194
1194
  }, f = async () => {
1195
1195
  a("update:modelValue", null);
1196
1196
  };
1197
- return (V, S) => {
1198
- var L, W, P, O, M, X;
1197
+ return (k, j) => {
1198
+ var L, W, N, O, M, X;
1199
1199
  return o(), s("div", co, [
1200
- u.value || (L = V.modelValue) != null && L._id ? (o(), s("div", po, [
1200
+ u.value || (L = k.modelValue) != null && L._id ? (o(), s("div", po, [
1201
1201
  d.value ? (o(), $(Me, {
1202
1202
  key: 0,
1203
1203
  modelValue: p.value,
1204
- "onUpdate:modelValue": S[0] || (S[0] = (w) => p.value = w),
1204
+ "onUpdate:modelValue": j[0] || (j[0] = (B) => p.value = B),
1205
1205
  alt: "Image preview",
1206
1206
  class: Q(`
1207
1207
  file__image
1208
- ${!e(r) || ((W = V.modelValue) == null ? void 0 : W._id) || "file__image--unsent"}
1208
+ ${!e(r) || ((W = k.modelValue) == null ? void 0 : W._id) || "file__image--unsent"}
1209
1209
  `)
1210
1210
  }, null, 8, ["modelValue", "class"])) : y("", !0),
1211
- (P = V.modelValue) != null && P._id ? (o(), s("a", {
1211
+ (N = k.modelValue) != null && N._id ? (o(), s("a", {
1212
1212
  key: 1,
1213
- href: V.modelValue.download_link
1214
- }, g(V.modelValue.filename), 9, _o)) : y("", !0)
1213
+ href: k.modelValue.download_link
1214
+ }, b(k.modelValue.filename), 9, _o)) : y("", !0)
1215
1215
  ])) : y("", !0),
1216
- k("div", mo, [
1217
- k("input", {
1216
+ g("div", mo, [
1217
+ g("input", {
1218
1218
  ref: "file",
1219
1219
  type: "file",
1220
- accept: (M = (O = V.property) == null ? void 0 : O.accept) == null ? void 0 : M.join(","),
1220
+ accept: (M = (O = k.property) == null ? void 0 : O.accept) == null ? void 0 : M.join(","),
1221
1221
  onChange: n
1222
1222
  }, null, 40, fo),
1223
1223
  u.value ? (o(), s("div", vo, [
@@ -1226,17 +1226,17 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
1226
1226
  onClick: ze(_, ["prevent"])
1227
1227
  }, {
1228
1228
  default: v(() => [
1229
- D(g(e(F)("action.clear", { capitalize: !0 })), 1)
1229
+ D(b(e(F)("action.clear", { capitalize: !0 })), 1)
1230
1230
  ]),
1231
1231
  _: 1
1232
1232
  })
1233
- ])) : (X = V.modelValue) != null && X._id ? (o(), s("div", yo, [
1233
+ ])) : (X = k.modelValue) != null && X._id ? (o(), s("div", yo, [
1234
1234
  z(ie, {
1235
1235
  small: "",
1236
1236
  onClick: ze(f, ["prevent"])
1237
1237
  }, {
1238
1238
  default: v(() => [
1239
- D(g(e(F)("action.remove", { capitalize: !0 })), 1)
1239
+ D(b(e(F)("action.remove", { capitalize: !0 })), 1)
1240
1240
  ]),
1241
1241
  _: 1
1242
1242
  })
@@ -1268,10 +1268,10 @@ const $o = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-69b23965"]]), bo = { cla
1268
1268
  ref: l,
1269
1269
  class: "container__content"
1270
1270
  }, [
1271
- A(u.$slots, "default", {}, void 0, !0)
1271
+ I(u.$slots, "default", {}, void 0, !0)
1272
1272
  ], 512)) : y("", !0),
1273
1273
  u.$slots.footer ? (o(), s("div", go, [
1274
- A(u.$slots, "footer", {}, void 0, !0)
1274
+ I(u.$slots, "footer", {}, void 0, !0)
1275
1275
  ])) : y("", !0)
1276
1276
  ]));
1277
1277
  }
@@ -1289,7 +1289,7 @@ const it = /* @__PURE__ */ G(ko, [["__scopeId", "data-v-c86e2d2a"]]), Vo = { cla
1289
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 = () => {
1290
1290
  if (p.value)
1291
1291
  return;
1292
- const _ = (f) => f.filter((V) => !!(V != null && V._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;
1293
1293
  a("update:modelValue", Array.isArray(n) ? [
1294
1294
  ...n,
1295
1295
  t.item
@@ -1304,26 +1304,26 @@ const it = /* @__PURE__ */ G(ko, [["__scopeId", "data-v-c86e2d2a"]]), Vo = { cla
1304
1304
  });
1305
1305
  }
1306
1306
  const n = () => {
1307
- const f = [...t.modelValue], V = f.findIndex((S) => S._id === t.item._id);
1308
- return f.splice(V, 1), f;
1307
+ const f = [...t.modelValue], k = f.findIndex((j) => j._id === t.item._id);
1308
+ return f.splice(k, 1), f;
1309
1309
  };
1310
1310
  a("update:modelValue", "items" in l ? n() : null);
1311
1311
  };
1312
1312
  return (_, n) => {
1313
1313
  const f = ne("clickable");
1314
- return Z((o(), s("div", {
1314
+ return P((o(), s("div", {
1315
1315
  class: Q({
1316
1316
  item: !0,
1317
1317
  "item--selected": p.value
1318
1318
  }),
1319
- onClick: n[0] || (n[0] = (V) => p.value ? h() : d())
1319
+ onClick: n[0] || (n[0] = (k) => p.value ? h() : d())
1320
1320
  }, [
1321
- A(_.$slots, "default", {}, void 0, !0),
1322
- k("div", Vo, [
1323
- (o(!0), s(J, null, U(_.indexes, (V, S) => (o(), s("div", {
1324
- key: `index-${_.item._id}-${S}`,
1321
+ I(_.$slots, "default", {}, void 0, !0),
1322
+ g("div", Vo, [
1323
+ (o(!0), s(J, null, U(_.indexes, (k, j) => (o(), s("div", {
1324
+ key: `index-${_.item._id}-${j}`,
1325
1325
  class: "item__value"
1326
- }, g(_.item[V]), 1))), 128))
1326
+ }, b(_.item[k]), 1))), 128))
1327
1327
  ])
1328
1328
  ], 2)), [
1329
1329
  [f]
@@ -1352,62 +1352,69 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
1352
1352
  const _ = Y(t.modelValue), n = Y({
1353
1353
  data: [],
1354
1354
  pagination: {}
1355
- }), f = H(() => n.value.data), V = H(() => n.value.pagination), S = Y(0), L = Y(h[0]), W = Y(!1), P = Y({}), O = () => {
1356
- const b = {};
1355
+ }), f = H(() => n.value.data), k = H(() => n.value.pagination), j = Y(0), L = Y(h[0]), W = Y(!1), N = Y({}), O = () => {
1356
+ const A = {};
1357
1357
  if (p) {
1358
- const j = e(p);
1359
- b[j] = d;
1358
+ const w = e(p);
1359
+ A[w] = d;
1360
1360
  }
1361
- return a.constraints ? Ht(a.constraints, b) : {};
1361
+ return a.constraints ? Ht(a.constraints, A) : {};
1362
1362
  }, M = () => {
1363
- f.value.length < V.value.recordsTotal && (S.value += 1, w());
1364
- }, X = async () => Object.values(P.value).every((b) => !(String(b).length > 0)) ? u.$actions.custom("getAll", {
1365
- limit: Le,
1366
- offset: S.value * Le,
1367
- filters: O()
1368
- }) : u.$actions.custom("getAll", {
1369
- limit: Le,
1370
- offset: S.value * Le,
1371
- filters: {
1372
- ...O(),
1373
- $or: h.filter((b) => {
1374
- var j;
1375
- return ((j = P.value[b]) == null ? void 0 : j.length) > 0;
1376
- }).map((b) => ({
1377
- [b]: {
1378
- $regex: P.value[b].trim().replace("(", "\\(").replace(")", "\\)"),
1379
- $options: "i"
1363
+ f.value.length < k.value.recordsTotal && (j.value += 1, B());
1364
+ }, X = async () => {
1365
+ if (Object.values(N.value).every((w) => !(String(w).length > 0)))
1366
+ return u.$actions.custom("getAll", {
1367
+ limit: Le,
1368
+ offset: j.value * Le,
1369
+ filters: O()
1370
+ });
1371
+ const A = h.filter((w) => {
1372
+ var K;
1373
+ return ((K = N.value[w]) == null ? void 0 : K.length) > 0;
1374
+ }).map((w) => ({
1375
+ [w]: {
1376
+ $regex: N.value[w].trim().replace("(", "\\(").replace(")", "\\)"),
1377
+ $options: "i"
1378
+ }
1379
+ }));
1380
+ return u.$actions.custom("getAll", {
1381
+ limit: Le,
1382
+ offset: j.value * Le,
1383
+ filters: {
1384
+ ...O(),
1385
+ ...A.length > 0 && {
1386
+ $or: A
1380
1387
  }
1381
- }))
1382
- }
1383
- }), w = async () => {
1388
+ }
1389
+ });
1390
+ }, B = async () => {
1384
1391
  if (u.loading.getAll)
1385
1392
  return;
1386
- const b = await X();
1387
- n.value.pagination = b.pagination, S.value === 0 && n.value.data.splice(0), n.value.data.push(...b.data);
1393
+ const A = await X();
1394
+ n.value.pagination = A.pagination, j.value === 0 && n.value.data.splice(0), n.value.data.push(...A.data);
1388
1395
  }, [ee] = ht({
1389
1396
  delay: 800
1390
1397
  })(() => {
1391
- S.value = 0, w(), W.value = !1;
1392
- }), C = () => {
1398
+ j.value = 0, B(), W.value = !1;
1399
+ }), V = () => {
1393
1400
  W.value = !0, ee();
1394
1401
  }, R = () => {
1395
- "effect" in l ? r("update:panel", !0) : l.value = !0, w();
1402
+ "effect" in l ? r("update:panel", !0) : l.value = !0, B();
1396
1403
  }, te = () => {
1397
- S.value = 0, n.value.data.splice(0), "effect" in l ? r("update:panel", !1) : l.value = !1;
1398
- }, oe = H(() => !Object.values(P.value).some((b) => !!b));
1399
- re(oe, (b, j) => {
1400
- b && !j && w();
1404
+ j.value = 0, n.value.data.splice(0), "effect" in l ? r("update:panel", !1) : l.value = !1;
1405
+ }, oe = H(() => !Object.values(N.value).some((A) => !!A));
1406
+ re(oe, (A, w) => {
1407
+ A && !w && B();
1401
1408
  }), mt(() => {
1402
- t.selectOnly && w();
1409
+ t.selectOnly && B();
1403
1410
  });
1404
- const le = (b) => {
1405
- _.value = b, t.selectOnly || r("update:modelValue", b);
1411
+ const le = (A) => {
1412
+ _.value = A, t.selectOnly || r("update:modelValue", A);
1406
1413
  }, m = () => {
1407
1414
  te(), r("update:modelValue", _.value);
1408
1415
  };
1409
- return (b, j) => {
1410
- const N = ne("clickable");
1416
+ return (A, w) => {
1417
+ const K = ne("clickable");
1411
1418
  return o(), s("div", null, [
1412
1419
  e(l) ? (o(), $(Ge, {
1413
1420
  key: 0,
@@ -1416,7 +1423,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
1416
1423
  z(Ae, {
1417
1424
  float: "",
1418
1425
  "close-hint": "",
1419
- title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(b.propertyName)}`,
1426
+ title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(A.propertyName)}`,
1420
1427
  "overlay-layer": 65,
1421
1428
  "model-value": e(l),
1422
1429
  style: { "--panel-max-width": "36rem" },
@@ -1429,40 +1436,40 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
1429
1436
  onClick: m
1430
1437
  }, {
1431
1438
  default: v(() => [
1432
- D(g(e(F)("action.save", { capitalize: !0 })), 1)
1439
+ D(b(e(F)("action.save", { capitalize: !0 })), 1)
1433
1440
  ]),
1434
1441
  _: 1
1435
1442
  })
1436
1443
  ]),
1437
1444
  default: v(() => {
1438
- var I, T;
1445
+ var C, T;
1439
1446
  return [
1440
- k("div", Io, [
1441
- k("div", Ao, [
1447
+ g("div", Io, [
1448
+ g("div", Ao, [
1442
1449
  e(h).length > 1 ? (o(), $(Ee, {
1443
1450
  key: 0,
1444
1451
  modelValue: L.value,
1445
- "onUpdate:modelValue": j[0] || (j[0] = (B) => L.value = B),
1446
- onChange: j[1] || (j[1] = (B) => P.value = {})
1452
+ "onUpdate:modelValue": w[0] || (w[0] = (S) => L.value = S),
1453
+ onChange: w[1] || (w[1] = (S) => N.value = {})
1447
1454
  }, {
1448
1455
  default: v(() => [
1449
- (o(!0), s(J, null, U(e(h), (B) => (o(), s("option", {
1450
- key: `searchfield-${B}`,
1451
- value: B
1452
- }, g(e(F)(B)), 9, Oo))), 128))
1456
+ (o(!0), s(J, null, U(e(h), (S) => (o(), s("option", {
1457
+ key: `searchfield-${S}`,
1458
+ value: S
1459
+ }, b(e(F)(S)), 9, Oo))), 128))
1453
1460
  ]),
1454
1461
  _: 1
1455
1462
  }, 8, ["modelValue"])) : y("", !0),
1456
- k("div", wo, [
1463
+ g("div", wo, [
1457
1464
  (o(), $(Ie, {
1458
1465
  key: `field-${L.value}`,
1459
- modelValue: P.value[L.value],
1460
- "onUpdate:modelValue": j[2] || (j[2] = (B) => P.value[L.value] = B),
1466
+ modelValue: N.value[L.value],
1467
+ "onUpdate:modelValue": w[2] || (w[2] = (S) => N.value[L.value] = S),
1461
1468
  property: {
1462
1469
  ...e(u).properties[L.value],
1463
1470
  inputType: "search"
1464
1471
  },
1465
- onInput: C
1472
+ onInput: V
1466
1473
  }, null, 8, ["modelValue", "property"]))
1467
1474
  ])
1468
1475
  ]),
@@ -1472,60 +1479,60 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
1472
1479
  onEndReached: M
1473
1480
  }, {
1474
1481
  default: v(() => [
1475
- (o(!0), s(J, null, U(f.value, (B) => (o(), $(De, E({ ref_for: !0 }, {
1476
- item: B,
1482
+ (o(!0), s(J, null, U(f.value, (S) => (o(), $(De, E({ ref_for: !0 }, {
1483
+ item: S,
1477
1484
  indexes: e(h),
1478
- property: b.property
1485
+ property: A.property
1479
1486
  }, {
1480
- key: `matching-${B._id}`,
1487
+ key: `matching-${S._id}`,
1481
1488
  modelValue: _.value,
1482
- "onUpdate:modelValue": j[3] || (j[3] = (ae) => _.value = ae)
1489
+ "onUpdate:modelValue": w[3] || (w[3] = (ae) => _.value = ae)
1483
1490
  }), null, 16, ["modelValue"]))), 128))
1484
1491
  ]),
1485
1492
  _: 1
1486
1493
  })) : (o(), s("div", Bo, [
1487
- W.value ? (o(), s("div", So, g(e(F)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(P.value).filter((B) => !!B).length > 0 && !("items" in b.property && ((I = b.modelValue) != null && I.length) || !Array.isArray(b.modelValue) && ((T = b.modelValue) != null && T._id)) ? (o(), s("div", jo, g(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(N.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", jo, b(e(F)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1488
1495
  ]))
1489
1496
  ]),
1490
- k("div", To, g(e(F)("showing", { capitalize: !0 })) + " " + g(f.value.length) + " " + g(e(F)("of")) + " " + g(V.value.recordsTotal), 1)
1497
+ g("div", To, b(e(F)("showing", { capitalize: !0 })) + " " + b(f.value.length) + " " + b(e(F)("of")) + " " + b(k.value.recordsTotal), 1)
1491
1498
  ];
1492
1499
  }),
1493
1500
  _: 1
1494
1501
  }, 8, ["title", "model-value"])
1495
1502
  ])) : y("", !0),
1496
- b.selectOnly ? y("", !0) : (o(), s("div", Ro, [
1503
+ A.selectOnly ? y("", !0) : (o(), s("div", Ro, [
1497
1504
  z(it, null, {
1498
1505
  footer: v(() => [
1499
- Z((o(), $(K, {
1506
+ P((o(), $(Z, {
1500
1507
  icon: "plus",
1501
1508
  onClick: R
1502
1509
  }, {
1503
1510
  default: v(() => [
1504
- D(g(e(F)("action.select", { capitalize: !0 })), 1)
1511
+ D(b(e(F)("action.select", { capitalize: !0 })), 1)
1505
1512
  ]),
1506
1513
  _: 1
1507
1514
  })), [
1508
- [N]
1515
+ [K]
1509
1516
  ])
1510
1517
  ]),
1511
1518
  default: v(() => {
1512
- var I;
1519
+ var C;
1513
1520
  return [
1514
- "items" in b.property ? (o(), s("div", Lo, [
1515
- (o(!0), s(J, null, U(b.modelValue, (T) => (o(), $(De, E({ ref_for: !0 }, {
1521
+ "items" in A.property ? (o(), s("div", Lo, [
1522
+ (o(!0), s(J, null, U(A.modelValue, (T) => (o(), $(De, E({ ref_for: !0 }, {
1516
1523
  item: T,
1517
1524
  indexes: e(h),
1518
- property: b.property,
1519
- modelValue: b.modelValue
1525
+ property: A.property,
1526
+ modelValue: A.modelValue
1520
1527
  }, {
1521
1528
  key: `selected-${T._id}`,
1522
1529
  "onUpdate:modelValue": le
1523
1530
  }), null, 16))), 128))
1524
- ])) : (I = b.modelValue) != null && I._id ? (o(), $(De, E({ key: 1 }, {
1525
- item: b.modelValue,
1531
+ ])) : (C = A.modelValue) != null && C._id ? (o(), $(De, E({ key: 1 }, {
1532
+ item: A.modelValue,
1526
1533
  indexes: e(h),
1527
1534
  property: e(a),
1528
- modelValue: b.modelValue
1535
+ modelValue: A.modelValue
1529
1536
  }, { "onUpdate:modelValue": le }), null, 16)) : y("", !0)
1530
1537
  ];
1531
1538
  }),
@@ -1536,7 +1543,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
1536
1543
  };
1537
1544
  }
1538
1545
  });
1539
- const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, i) => {
1546
+ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i) => {
1540
1547
  const t = "items" in c ? c.items : c, a = {
1541
1548
  options: Xn,
1542
1549
  select: Ee,
@@ -1620,225 +1627,225 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, i
1620
1627
  !u && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1621
1628
  collection prop, some features may not work as intended`);
1622
1629
  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) => {
1623
- const b = ve(m, a[m]);
1624
- return a[m] && ye(m, a[m]), b;
1625
- }, f = H(() => a.validationErrors !== null ? a.validationErrors : p == null ? void 0 : p.validationErrors), V = n("formComponents") || {}, S = n("propertyComponents") || {}, L = n("omitFormHeader"), W = n("omitInputLabels"), P = n("innerInputLabel");
1630
+ const A = ve(m, a[m]);
1631
+ return a[m] && ye(m, a[m]), A;
1632
+ }, f = H(() => a.validationErrors !== null ? a.validationErrors : p == null ? void 0 : p.validationErrors), k = n("formComponents") || {}, j = n("propertyComponents") || {}, L = n("omitFormHeader"), W = n("omitInputLabels"), N = n("innerInputLabel");
1626
1633
  u && ye(Ue, u), ye("searchOnly", a.searchOnly);
1627
- const O = (m) => h.value ? Object.entries(h.value).filter(([b, j]) => !j.noForm && m([
1628
- b,
1629
- j
1634
+ const O = (m) => h.value ? Object.entries(h.value).filter(([A, w]) => !w.noForm && m([
1635
+ A,
1636
+ w
1630
1637
  ])) : null, M = (m) => {
1631
- var j;
1638
+ var w;
1632
1639
  if (a.searchOnly || !u)
1633
1640
  return !0;
1634
- const b = a.property && "properties" in a.property ? a.property.form : (j = p == null ? void 0 : p.description) == null ? void 0 : j.form;
1635
- return !b || b.includes(m);
1636
- }, X = O(([m]) => M(m)), w = je(), ee = {}, C = (m, b) => {
1637
- var T, B, ae, _e;
1638
- const j = [], N = ((B = (T = _.value) == null ? void 0 : T.fields) == null ? void 0 : B[m]) || ((_e = (ae = _.value) == null ? void 0 : ae.fields) == null ? void 0 : _e.$default);
1639
- if (!b)
1641
+ const A = a.property && "properties" in a.property ? a.property.form : (w = p == null ? void 0 : p.description) == null ? void 0 : w.form;
1642
+ return !A || A.includes(m);
1643
+ }, X = O(([m]) => M(m)), B = je(), ee = {}, V = (m, A) => {
1644
+ var T, S, ae, _e;
1645
+ const w = [], K = ((S = (T = _.value) == null ? void 0 : T.fields) == null ? void 0 : S[m]) || ((_e = (ae = _.value) == null ? void 0 : ae.fields) == null ? void 0 : _e.$default);
1646
+ if (!A)
1640
1647
  return;
1641
- if (N != null && N.if && !a.searchOnly) {
1648
+ if (K != null && K.if && !a.searchOnly) {
1642
1649
  const me = Qe(
1643
1650
  a.modelValue,
1644
- N.if
1651
+ K.if
1645
1652
  );
1646
1653
  me.satisfied || (ee[m] && (p ? a.modelValue[m] = typeof p.$freshItem[m] == "object" ? Se(p.$freshItem[m]) : p.$freshItem[m] : a.modelValue[m] = [
1647
1654
  void 0,
1648
1655
  null
1649
- ].includes(a.modelValue[m]) ? null : a.modelValue[m].constructor()), j.push("display: none;")), ee[m] = me.satisfied;
1656
+ ].includes(a.modelValue[m]) ? null : a.modelValue[m].constructor()), w.push("display: none;")), ee[m] = me.satisfied;
1650
1657
  }
1651
- const I = w.value.md && (N == null ? void 0 : N.span) || 6;
1652
- return j.push(`
1653
- --field-span: ${I};
1658
+ const C = B.value.md && (K == null ? void 0 : K.span) || 6;
1659
+ return w.push(`
1660
+ --field-span: ${C};
1654
1661
  grid-column: span var(--field-span) / span var(--field-span);
1655
- `), N && (N.verticalSpacing && j.push(`
1656
- --vertical-spacing: ${N.verticalSpacing};
1662
+ `), K && (K.verticalSpacing && w.push(`
1663
+ --vertical-spacing: ${K.verticalSpacing};
1657
1664
  padding: var(--vertical-spacing) 0;
1658
- `), N.separator && j.push(`
1665
+ `), K.separator && w.push(`
1659
1666
  border-top: 1px solid var(--theme-border-color);
1660
1667
  border-width: 1px 0 1px 0;
1661
1668
  padding: 1rem 0;
1662
1669
  margin: 1rem 0;
1663
- `)), j.join("");
1670
+ `)), w.join("");
1664
1671
  }, R = (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 ? Mt(
1665
1672
  a.modelValue,
1666
1673
  a.form,
1667
1674
  te.value,
1668
1675
  p == null ? void 0 : p.description
1669
- ) : !0), le = (m, b) => {
1670
- var j;
1671
- return (j = f.value) != null && j[m] && (typeof f.value[m].index != "number" || f.value[m].index === b) ? f.value[m].errors : null;
1676
+ ) : !0), le = (m, A) => {
1677
+ var w;
1678
+ return (w = f.value) != null && w[m] && (typeof f.value[m].index != "number" || f.value[m].index === A) ? f.value[m].errors : null;
1672
1679
  };
1673
- return (m, b) => {
1674
- const j = ne("clickable"), N = ne("focus");
1680
+ return (m, A) => {
1681
+ const w = ne("clickable"), K = ne("focus");
1675
1682
  return o(), s("form", {
1676
1683
  class: "form",
1677
1684
  style: $e(`row-gap: ${e(L) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1678
1685
  }, [
1679
1686
  m.$slots.header && !e(L) ? (o(), s("header", Uo, [
1680
- A(m.$slots, "header", {}, void 0, !0)
1687
+ I(m.$slots, "header", {}, void 0, !0)
1681
1688
  ])) : y("", !0),
1682
- A(m.$slots, "default", {}, void 0, !0),
1689
+ I(m.$slots, "default", {}, void 0, !0),
1683
1690
  m.isReadOnly ? y("", !0) : (o(), s("fieldset", Eo, [
1684
- (o(!0), s(J, null, U(e(X), ([I, T]) => {
1685
- var B, ae, _e, me, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
1691
+ (o(!0), s(J, null, U(e(X), ([C, T]) => {
1692
+ var S, ae, _e, me, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
1686
1693
  return o(), s("div", {
1687
- key: `field-${I}`,
1688
- style: $e(C(I, T)),
1694
+ key: `field-${C}`,
1695
+ style: $e(V(C, T)),
1689
1696
  class: "form__field"
1690
1697
  }, [
1691
- (!("type" in T) || T.type !== "boolean" || m.searchOnly) && !T.noLabel && !e(W) && !e(P) ? (o(), s("label", Ho, [
1692
- k("div", {
1698
+ (!("type" in T) || T.type !== "boolean" || m.searchOnly) && !T.noLabel && !e(W) && !e(N) ? (o(), s("label", Ho, [
1699
+ g("div", {
1693
1700
  class: Q({
1694
1701
  "form__field-label": !0,
1695
1702
  "form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
1696
- "form__field-required-hint": m.highlightRequired && !m.searchOnly && (!te.value || e(Qt)(I, te.value, m.modelValue))
1703
+ "form__field-required-hint": m.highlightRequired && !m.searchOnly && (!te.value || e(Qt)(C, te.value, m.modelValue))
1697
1704
  })
1698
- }, g(T.description || e(F)(I)), 3),
1705
+ }, b(T.description || e(F)(C)), 3),
1699
1706
  T.hint ? (o(), s("div", {
1700
1707
  key: 0,
1701
1708
  innerHTML: T.hint
1702
1709
  }, null, 8, Do)) : y("", !0)
1703
1710
  ])) : y("", !0),
1704
- m.$slots[`field-${I}`] ? A(m.$slots, `field-${I}`, E({
1711
+ m.$slots[`field-${C}`] ? I(m.$slots, `field-${C}`, E({
1705
1712
  key: 1,
1706
1713
  ref_for: !0
1707
1714
  }, {
1708
1715
  propery: T,
1709
- properyName: I,
1716
+ properyName: C,
1710
1717
  modelValue: m.modelValue
1711
- }), void 0, !0) : (_e = (ae = (B = m.layout) == null ? void 0 : B.fields) == null ? void 0 : ae[I]) != null && _e.component && e(S)[m.layout.fields[I].component.name] ? (o(), $(he(e(S)[m.layout.fields[I].component.name]), E({
1718
+ }), void 0, !0) : (_e = (ae = (S = m.layout) == null ? void 0 : S.fields) == null ? void 0 : ae[C]) != null && _e.component && e(j)[m.layout.fields[C].component.name] ? (o(), $(he(e(j)[m.layout.fields[C].component.name]), E({
1712
1719
  key: 2,
1713
- modelValue: m.modelValue[I],
1714
- "onUpdate:modelValue": (x) => m.modelValue[I] = x,
1720
+ modelValue: m.modelValue[C],
1721
+ "onUpdate:modelValue": (x) => m.modelValue[C] = x,
1715
1722
  ref_for: !0
1716
1723
  }, {
1717
1724
  property: T,
1718
- propertyName: I,
1719
- ...m.layout.fields[I].component.props || {}
1725
+ propertyName: C,
1726
+ ...m.layout.fields[C].component.props || {}
1720
1727
  }, {
1721
- onInput: (x) => l("input", I),
1722
- onChange: b[0] || (b[0] = (x) => l("change", x))
1728
+ onInput: (x) => l("input", C),
1729
+ onChange: A[0] || (A[0] = (x) => l("change", x))
1723
1730
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && m.searchOnly ? (o(), s("div", {
1724
1731
  key: 3,
1725
1732
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1726
- onInput: (x) => l("input", I),
1727
- onChange: b[1] || (b[1] = (x) => l("change", x))
1733
+ onInput: (x) => l("input", C),
1734
+ onChange: A[1] || (A[1] = (x) => l("change", x))
1728
1735
  }, [
1729
1736
  z(Ie, E({
1730
- modelValue: m.modelValue[I].$gte,
1731
- "onUpdate:modelValue": (x) => m.modelValue[I].$gte = x,
1737
+ modelValue: m.modelValue[C].$gte,
1738
+ "onUpdate:modelValue": (x) => m.modelValue[C].$gte = x,
1732
1739
  ref_for: !0
1733
1740
  }, {
1734
1741
  property: T,
1735
- propertyName: I
1742
+ propertyName: C
1736
1743
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1737
1744
  z(Ie, E({
1738
- modelValue: m.modelValue[I].$lte,
1739
- "onUpdate:modelValue": (x) => m.modelValue[I].$lte = x,
1745
+ modelValue: m.modelValue[C].$lte,
1746
+ "onUpdate:modelValue": (x) => m.modelValue[C].$lte = x,
1740
1747
  ref_for: !0
1741
1748
  }, {
1742
1749
  property: T,
1743
- propertyName: I
1750
+ propertyName: C
1744
1751
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1745
1752
  ], 40, Qo)) : "type" in T && T.type === "boolean" && m.searchOnly ? (o(), s("div", Go, [
1746
1753
  z(Ee, E({ ref_for: !0 }, {
1747
1754
  property: T,
1748
- propertyName: I
1755
+ propertyName: C
1749
1756
  }, {
1750
1757
  "boolean-ref": "",
1751
- "model-value": m.modelValue[I],
1752
- onChange: b[2] || (b[2] = (x) => l("change", x)),
1758
+ "model-value": m.modelValue[C],
1759
+ onChange: A[2] || (A[2] = (x) => l("change", x)),
1753
1760
  "onUpdate:modelValue": (x) => {
1754
- m.modelValue[I] = x == "true" ? !0 : x == "false" ? !1 : null;
1761
+ m.modelValue[C] = x == "true" ? !0 : x == "false" ? !1 : null;
1755
1762
  }
1756
1763
  }), {
1757
1764
  default: v(() => [
1758
- k("option", Wo, g(e(F)("yes")), 1),
1759
- k("option", Xo, g(e(F)("no")), 1)
1765
+ g("option", Wo, b(e(F)("yes")), 1),
1766
+ g("option", Xo, b(e(F)("no")), 1)
1760
1767
  ]),
1761
1768
  _: 2
1762
1769
  }, 1040, ["model-value", "onUpdate:modelValue"])
1763
1770
  ])) : m.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (o(), s("div", Yo, [
1764
- k("div", null, [
1771
+ g("div", null, [
1765
1772
  z(ie, {
1766
1773
  small: "",
1767
1774
  variant: "alt",
1768
1775
  icon: "plus",
1769
- disabled: !("inline" in T.items && T.items.inline) && (((me = m.modelValue[I]) == null ? void 0 : me.length) >= T.maxItems || R((Ye = m.modelValue[I]) == null ? void 0 : Ye[((Xe = m.modelValue[I]) == null ? void 0 : Xe.length) - 1])),
1776
+ disabled: !("inline" in T.items && T.items.inline) && (((me = m.modelValue[C]) == null ? void 0 : me.length) >= T.maxItems || R((Ye = m.modelValue[C]) == null ? void 0 : Ye[((Xe = m.modelValue[C]) == null ? void 0 : Xe.length) - 1])),
1770
1777
  onClick: ze((x) => {
1771
- m.modelValue[I] || (m.modelValue[I] = []), e(Fo)(m.modelValue[I], T, e(t));
1778
+ m.modelValue[C] || (m.modelValue[C] = []), e(Fo)(m.modelValue[C], T, e(t));
1772
1779
  }, ["prevent"])
1773
1780
  }, {
1774
1781
  default: v(() => [
1775
- D(g(e(F)("action.add", { capitalize: !0 })), 1)
1782
+ D(b(e(F)("action.add", { capitalize: !0 })), 1)
1776
1783
  ]),
1777
1784
  _: 2
1778
1785
  }, 1032, ["disabled", "onClick"])
1779
1786
  ]),
1780
- (o(!0), s(J, null, U(m.modelValue[I], (x, Oe) => {
1787
+ (o(!0), s(J, null, U(m.modelValue[C], (x, Oe) => {
1781
1788
  var tt, nt, ot, at, lt, st;
1782
1789
  return o(), s("div", {
1783
- key: `rep-${I}-${Oe}`,
1790
+ key: `rep-${C}-${Oe}`,
1784
1791
  style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
1785
1792
  }, [
1786
- k("div", Jo, [
1787
- (o(), $(he(e(rt)(T, e(V))), E({
1788
- modelValue: m.modelValue[I][Oe],
1789
- "onUpdate:modelValue": (we) => m.modelValue[I][Oe] = we,
1793
+ g("div", Jo, [
1794
+ (o(), $(he(e(rt)(T, e(k))), E({
1795
+ modelValue: m.modelValue[C][Oe],
1796
+ "onUpdate:modelValue": (we) => m.modelValue[C][Oe] = we,
1790
1797
  ref_for: !0
1791
1798
  }, {
1792
1799
  property: T.items,
1793
- propertyName: I,
1800
+ propertyName: C,
1794
1801
  parentCollection: e(u),
1795
1802
  parentPropertyName: m.parentPropertyName,
1796
- columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[I]) == 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),
1797
- validationErrors: le(I, Oe),
1803
+ 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),
1804
+ validationErrors: le(C, Oe),
1798
1805
  ...T.componentProps || {}
1799
1806
  }, {
1800
- onInput: (we) => l("input", I),
1801
- onChange: b[3] || (b[3] = (we) => l("change", we))
1807
+ onInput: (we) => l("input", C),
1808
+ onChange: A[3] || (A[3] = (we) => l("change", we))
1802
1809
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
1803
1810
  ]),
1804
- Z(z(K, {
1811
+ P(z(Z, {
1805
1812
  reactive: "",
1806
1813
  icon: "trash",
1807
- onClick: (we) => e(qo)(m.modelValue[I], Oe)
1814
+ onClick: (we) => e(qo)(m.modelValue[C], Oe)
1808
1815
  }, null, 8, ["onClick"]), [
1809
- [j]
1816
+ [w]
1810
1817
  ])
1811
1818
  ]);
1812
1819
  }), 128))
1813
- ])) : m.modelValue ? Z((o(), $(he(e(rt)(T, e(V))), E({
1820
+ ])) : m.modelValue ? P((o(), $(he(e(rt)(T, e(k))), E({
1814
1821
  key: 6,
1815
- modelValue: m.modelValue[I],
1816
- "onUpdate:modelValue": (x) => m.modelValue[I] = x,
1822
+ modelValue: m.modelValue[C],
1823
+ "onUpdate:modelValue": (x) => m.modelValue[C] = x,
1817
1824
  ref_for: !0
1818
1825
  }, {
1819
1826
  property: T,
1820
- propertyName: I,
1827
+ propertyName: C,
1821
1828
  parentPropertyName: m.parentPropertyName,
1822
1829
  parentCollection: e(u),
1823
- columns: ((Ze = (Ke = (Je = m.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[I]) == 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),
1830
+ 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),
1824
1831
  ...T.componentProps || {},
1825
- validationErrors: le(I)
1832
+ validationErrors: le(C)
1826
1833
  }, {
1827
- onInput: (x) => l("input", I),
1828
- onChange: b[4] || (b[4] = (x) => l("change", x))
1834
+ onInput: (x) => l("input", C),
1835
+ onChange: A[4] || (A[4] = (x) => l("change", x))
1829
1836
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1830
- [N, !d.value && (d.value = !!m.focus)]
1837
+ [K, !d.value && (d.value = !!m.focus)]
1831
1838
  ]) : y("", !0),
1832
- (et = f.value) != null && et[I] ? (o(), s("div", Ko, [
1833
- f.value[I].type ? (o(), s("span", Zo, g(e(F)(`validation_error.${f.value[I].type}`)), 1)) : y("", !0),
1834
- f.value[I].detail ? (o(), s("span", Po, g(e(F)(f.value[I].detail)), 1)) : y("", !0)
1839
+ (et = f.value) != null && et[C] ? (o(), s("div", Ko, [
1840
+ f.value[C].type ? (o(), s("span", Zo, b(e(F)(`validation_error.${f.value[C].type}`)), 1)) : y("", !0),
1841
+ f.value[C].detail ? (o(), s("span", Po, b(e(F)(f.value[C].detail)), 1)) : y("", !0)
1835
1842
  ])) : y("", !0)
1836
1843
  ], 4);
1837
1844
  }), 128))
1838
1845
  ])),
1839
- m.$slots.after ? A(m.$slots, "after", { key: 2 }, void 0, !0) : y("", !0),
1846
+ m.$slots.after ? I(m.$slots, "after", { key: 2 }, void 0, !0) : y("", !0),
1840
1847
  m.$slots.footer ? (o(), s("div", No, [
1841
- A(m.$slots, "footer", ce(Ve({
1848
+ I(m.$slots, "footer", ce(Ve({
1842
1849
  isInsertReady: oe.value
1843
1850
  })), void 0, !0)
1844
1851
  ])) : y("", !0)
@@ -1871,10 +1878,10 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
1871
1878
  })
1872
1879
  }, {
1873
1880
  default: v(() => [
1874
- D(g(u.t("action.clear", { capitalize: !0 })) + " ", 1),
1881
+ D(b(u.t("action.clear", { capitalize: !0 })) + " ", 1),
1875
1882
  z(be, null, {
1876
1883
  default: v(() => [
1877
- D(g(e(a).filtersCount), 1)
1884
+ D(b(e(a).filtersCount), 1)
1878
1885
  ]),
1879
1886
  _: 1
1880
1887
  })
@@ -1888,7 +1895,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
1888
1895
  onClick: r
1889
1896
  }, {
1890
1897
  default: v(() => [
1891
- D(g(u.t("action.filter", { capitalize: !0 })), 1)
1898
+ D(b(u.t("action.filter", { capitalize: !0 })), 1)
1892
1899
  ]),
1893
1900
  _: 1
1894
1901
  }, 8, ["disabled"])
@@ -1932,7 +1939,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
1932
1939
  onOverlayClick: u
1933
1940
  }, {
1934
1941
  header: v(() => [
1935
- k("span", null, g((() => {
1942
+ g("span", null, b((() => {
1936
1943
  switch (e(se)) {
1937
1944
  case "add":
1938
1945
  return e(r)("action.add", { capitalize: !0 });
@@ -1943,7 +1950,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
1943
1950
  return e(r)("action.edit", { capitalize: !0 });
1944
1951
  }
1945
1952
  })()), 1),
1946
- k("span", null, " " + g(e(r)(e(i).view.collection)), 1)
1953
+ g("span", null, " " + b(e(r)(e(i).view.collection)), 1)
1947
1954
  ]),
1948
1955
  extra: v(() => [
1949
1956
  z(Ce, E({
@@ -1953,7 +1960,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
1953
1960
  onActionClick: d[2] || (d[2] = (_) => se.value = !1)
1954
1961
  }), {
1955
1962
  default: v(() => [
1956
- e(t).item._id ? Z((o(), $(K, {
1963
+ e(t).item._id ? P((o(), $(Z, {
1957
1964
  key: 0,
1958
1965
  reactive: "",
1959
1966
  icon: "dots-three"
@@ -1970,7 +1977,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
1970
1977
  onClick: u
1971
1978
  }, {
1972
1979
  default: v(() => [
1973
- D(g(e(r)("action.cancel", { capitalize: !0 })), 1)
1980
+ D(b(e(r)("action.cancel", { capitalize: !0 })), 1)
1974
1981
  ]),
1975
1982
  _: 1
1976
1983
  }),
@@ -1981,7 +1988,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
1981
1988
  onClick: l
1982
1989
  }, {
1983
1990
  default: v(() => [
1984
- D(g(e(r)("action.insert", { capitalize: !0 })), 1)
1991
+ D(b(e(r)("action.insert", { capitalize: !0 })), 1)
1985
1992
  ]),
1986
1993
  _: 1
1987
1994
  }, 8, ["disabled", "loading"])
@@ -2002,7 +2009,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
2002
2009
  U(Object.keys(p.$slots).filter((_) => _.startsWith("field-")), (_) => ({
2003
2010
  name: _,
2004
2011
  fn: v((n) => [
2005
- A(p.$slots, _, ce(Ve(n)))
2012
+ I(p.$slots, _, ce(Ve(n)))
2006
2013
  ])
2007
2014
  }))
2008
2015
  ]), 1040, ["modelValue"])
@@ -2058,8 +2065,8 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
2058
2065
  }, wa = { class: "table__cell-actions" }, Ba = {
2059
2066
  key: 2,
2060
2067
  class: "no-print table__mobile-actions"
2061
- }, Sa = ["id"], ja = { key: 1 }, Ta = /* @__PURE__ */ oa(() => /* @__PURE__ */ k("td", { colspan: 10 }, [
2062
- /* @__PURE__ */ k("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
2068
+ }, Sa = ["id"], ja = { key: 1 }, Ta = /* @__PURE__ */ oa(() => /* @__PURE__ */ g("td", { colspan: 10 }, [
2069
+ /* @__PURE__ */ g("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
2063
2070
  ], -1)), Ra = [
2064
2071
  Ta
2065
2072
  ], La = /* @__PURE__ */ q({
@@ -2077,138 +2084,138 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
2077
2084
  const t = c, a = i, l = je(), r = t.collection || Te(), u = r ? ue(typeof r == "string" ? r : r.value) : null, p = H({
2078
2085
  get: () => u == null ? void 0 : u.selected,
2079
2086
  set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
2080
- }), d = (f, V) => f != null && f.button ? typeof f.button == "object" ? Qe(V, f.button).satisfied : f.button : !1, h = (f) => {
2081
- var V;
2082
- return !l.value.xl || !((V = t.layout) != null && V.actions) || !t.actions ? [] : t.actions.filter((S) => {
2083
- const L = t.layout.actions[S.action];
2087
+ }), d = (f, k) => f != null && f.button ? typeof f.button == "object" ? Qe(k, f.button).satisfied : f.button : !1, h = (f) => {
2088
+ var k;
2089
+ return !l.value.xl || !((k = t.layout) != null && k.actions) || !t.actions ? [] : t.actions.filter((j) => {
2090
+ const L = t.layout.actions[j.action];
2084
2091
  return d(L, f);
2085
2092
  });
2086
2093
  }, _ = (f) => {
2087
- var V;
2088
- return t.actions ? !l.value.xl || !((V = t.layout) != null && V.actions) ? t.actions : t.actions.filter((S) => {
2089
- const L = t.layout.actions[S.action];
2094
+ var k;
2095
+ return t.actions ? !l.value.xl || !((k = t.layout) != null && k.actions) ? t.actions : t.actions.filter((j) => {
2096
+ const L = t.layout.actions[j.action];
2090
2097
  return !d(L, f);
2091
2098
  }) : [];
2092
- }, n = (f, V) => {
2093
- var W, P;
2094
- const S = [], L = (P = (W = t.layout) == null ? void 0 : W.actions) == null ? void 0 : P[V.action];
2099
+ }, n = (f, k) => {
2100
+ var W, N;
2101
+ const j = [], L = (N = (W = t.layout) == null ? void 0 : W.actions) == null ? void 0 : N[k.action];
2095
2102
  return L != null && L.if && (Qe(
2096
2103
  f,
2097
2104
  L.if
2098
- ).satisfied || S.push("display: none;")), S.join("");
2105
+ ).satisfied || j.push("display: none;")), j.join("");
2099
2106
  };
2100
- return (f, V) => {
2101
- var L, W, P;
2102
- const S = ne("clickable");
2107
+ return (f, k) => {
2108
+ var L, W, N;
2109
+ const j = ne("clickable");
2103
2110
  return f.columns && Object.keys(f.columns).length > 0 || f.$slots.thead ? (o(), s("table", aa, [
2104
2111
  f.$slots.thead ? (o(), s("thead", la, [
2105
- A(f.$slots, "thead", {}, void 0, !0)
2112
+ I(f.$slots, "thead", {}, void 0, !0)
2106
2113
  ])) : (o(), s("thead", sa, [
2107
- k("tr", null, [
2114
+ g("tr", null, [
2108
2115
  f.checkbox && e(u) && e(l).md ? (o(), s("th", ia, [
2109
- k("input", {
2116
+ g("input", {
2110
2117
  type: "checkbox",
2111
2118
  checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
2112
- onChange: V[0] || (V[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
2119
+ onChange: k[0] || (k[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
2113
2120
  }, null, 40, ra)
2114
2121
  ])) : y("", !0),
2115
2122
  (o(!0), s(J, null, U(Object.entries(f.columns), ([O, M], X) => (o(), s("th", {
2116
2123
  key: `header-${X}`,
2117
2124
  class: "table__header"
2118
- }, g(M.description || e(F)(O)), 1))), 128)),
2125
+ }, b(M.description || e(F)(O)), 1))), 128)),
2119
2126
  (L = f.actions) != null && L.length ? (o(), s("th", ua)) : y("", !0)
2120
2127
  ])
2121
2128
  ])),
2122
2129
  f.$slots.tbody ? (o(), s("tbody", ca, [
2123
- A(f.$slots, "tbody", {}, void 0, !0)
2130
+ I(f.$slots, "tbody", {}, void 0, !0)
2124
2131
  ])) : (o(), s("tbody", da, [
2125
2132
  (o(!0), s(J, null, U(f.rows, (O) => {
2126
2133
  var M, X;
2127
2134
  return o(), s("tr", {
2128
2135
  key: O._id,
2129
- onClick: (w) => a("itemClick", O)
2136
+ onClick: (B) => a("itemClick", O)
2130
2137
  }, [
2131
2138
  e(u) && f.checkbox && e(l).md ? (o(), s("td", _a, [
2132
- Z(k("input", {
2133
- "onUpdate:modelValue": V[1] || (V[1] = (w) => p.value = w),
2139
+ P(g("input", {
2140
+ "onUpdate:modelValue": k[1] || (k[1] = (B) => p.value = B),
2134
2141
  type: "checkbox",
2135
2142
  value: O._id
2136
2143
  }, null, 8, ma), [
2137
2144
  [It, p.value]
2138
2145
  ])
2139
2146
  ])) : y("", !0),
2140
- (o(!0), s(J, null, U(Object.entries(f.columns), ([w, ee], C) => {
2141
- var R, te, oe, le, m, b;
2147
+ (o(!0), s(J, null, U(Object.entries(f.columns), ([B, ee], V) => {
2148
+ var R, te, oe, le, m, A;
2142
2149
  return o(), s("td", {
2143
- key: `column-${O._id}-${C}`
2150
+ key: `column-${O._id}-${V}`
2144
2151
  }, [
2145
- k("div", fa, g(ee.description || e(F)(w)), 1),
2146
- `row-${w}` in f.$slots ? (o(), s("div", va, [
2147
- A(f.$slots, `row-${w}`, E({ ref_for: !0 }, {
2152
+ g("div", fa, b(ee.description || e(F)(B)), 1),
2153
+ `row-${B}` in f.$slots ? (o(), s("div", va, [
2154
+ I(f.$slots, `row-${B}`, E({ ref_for: !0 }, {
2148
2155
  store: e(u),
2149
- column: w,
2156
+ column: B,
2150
2157
  property: ee,
2151
2158
  row: O
2152
2159
  }), void 0, !0)
2153
2160
  ])) : (o(), s("div", ya, [
2154
- k("div", ha, [
2161
+ g("div", ha, [
2155
2162
  "type" in ee && ee.type === "boolean" ? (o(), s("div", $a, [
2156
- O[w] ? (o(), $(K, {
2163
+ O[B] ? (o(), $(Z, {
2157
2164
  key: 0,
2158
2165
  icon: "check",
2159
2166
  "icon-classes": "aeria-blueish"
2160
2167
  }, {
2161
2168
  default: v(() => [
2162
- D(g(e(F)("yes")), 1)
2169
+ D(b(e(F)("yes")), 1)
2163
2170
  ]),
2164
2171
  _: 1
2165
- })) : (o(), $(K, {
2172
+ })) : (o(), $(Z, {
2166
2173
  key: 1,
2167
2174
  icon: "x",
2168
2175
  "icon-classes": "aeria-redish"
2169
2176
  }, {
2170
2177
  default: v(() => [
2171
- D(g(e(F)("no")), 1)
2178
+ D(b(e(F)("no")), 1)
2172
2179
  ]),
2173
2180
  _: 1
2174
2181
  }))
2175
2182
  ])) : ((R = e(pe)(ee)) == null ? void 0 : R.$ref) === "file" ? (o(), s("div", ba, [
2176
- /^image/.test((te = O[w][0]) == null ? void 0 : te.type) && "items" in ee ? (o(), $(Me, {
2183
+ /^image/.test((te = O[B][0]) == null ? void 0 : te.type) && "items" in ee ? (o(), $(Me, {
2177
2184
  key: 0,
2178
- modelValue: O[w][0].link,
2179
- "onUpdate:modelValue": (j) => O[w][0].link = j,
2185
+ modelValue: O[B][0].link,
2186
+ "onUpdate:modelValue": (w) => O[B][0].link = w,
2180
2187
  expandable: "",
2181
- meta: O[w][0],
2188
+ meta: O[B][0],
2182
2189
  alt: "Row image",
2183
2190
  class: "table__picture"
2184
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[w]) == null ? void 0 : oe.type) ? (o(), $(Me, {
2191
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[B]) == null ? void 0 : oe.type) ? (o(), $(Me, {
2185
2192
  key: 1,
2186
- modelValue: O[w].link,
2187
- "onUpdate:modelValue": (j) => O[w].link = j,
2193
+ modelValue: O[B].link,
2194
+ "onUpdate:modelValue": (w) => O[B].link = w,
2188
2195
  expandable: "",
2189
- meta: O[w],
2196
+ meta: O[B],
2190
2197
  alt: "Row image",
2191
2198
  class: "table__picture"
2192
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (le = O[w]) != null && le.link ? (o(), s("a", {
2199
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (le = O[B]) != null && le.link ? (o(), s("a", {
2193
2200
  key: 2,
2194
- href: O[w].link,
2201
+ href: O[B].link,
2195
2202
  style: { "font-size": "10pt" }
2196
- }, g(O[w].filename), 9, ga)) : (o(), s("div", ka, " - "))
2203
+ }, b(O[B].filename), 9, ga)) : (o(), s("div", ka, " - "))
2197
2204
  ])) : (o(), s("div", Va, [
2198
- e(u) ? (o(), s("span", Ca, g(e(u).$actions.formatValue({
2199
- value: O[w],
2200
- key: w,
2205
+ e(u) ? (o(), s("span", Ca, b(e(u).$actions.formatValue({
2206
+ value: O[B],
2207
+ key: B,
2201
2208
  property: ee
2202
- })), 1)) : (o(), s("span", Ia, g(Array.isArray(O[w]) ? O[w].filter((j) => !!j).join(", ") : [void 0, null].includes(O[w]) ? "-" : O[w]), 1)),
2203
- ((b = (m = e(pe)(ee)) == null ? void 0 : m.indexes) == null ? void 0 : b.length) > 1 ? (o(), s("div", Aa, [
2204
- (o(!0), s(J, null, U(e(pe)(ee).indexes.slice(1, 2), (j, N) => (o(), s("div", {
2205
- key: `subvalue-${N}`,
2209
+ })), 1)) : (o(), s("span", Ia, b(Array.isArray(O[B]) ? O[B].filter((w) => !!w).join(", ") : [void 0, null].includes(O[B]) ? "-" : O[B]), 1)),
2210
+ ((A = (m = e(pe)(ee)) == null ? void 0 : m.indexes) == null ? void 0 : A.length) > 1 ? (o(), s("div", Aa, [
2211
+ (o(!0), s(J, null, U(e(pe)(ee).indexes.slice(1, 2), (w, K) => (o(), s("div", {
2212
+ key: `subvalue-${K}`,
2206
2213
  class: "table__cell-subvalue"
2207
- }, g(e(u).$actions.formatValue({
2208
- value: O[w],
2209
- key: w,
2214
+ }, b(e(u).$actions.formatValue({
2215
+ value: O[B],
2216
+ key: B,
2210
2217
  property: ee,
2211
- index: j
2218
+ index: w
2212
2219
  })), 1))), 128))
2213
2220
  ])) : y("", !0)
2214
2221
  ]))
@@ -2217,17 +2224,17 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
2217
2224
  ]);
2218
2225
  }), 128)),
2219
2226
  (M = f.actions) != null && M.length && e(l).md ? (o(), s("td", Oa, [
2220
- k("div", wa, [
2221
- (o(!0), s(J, null, U(h(O), (w) => (o(), $(ie, {
2222
- key: `action-${w.action}`,
2227
+ g("div", wa, [
2228
+ (o(!0), s(J, null, U(h(O), (B) => (o(), $(ie, {
2229
+ key: `action-${B.action}`,
2223
2230
  small: "",
2224
2231
  variant: "transparent",
2225
- icon: w.icon,
2226
- style: $e(n(O, w)),
2227
- onClick: (ee) => w.click(O)
2232
+ icon: B.icon,
2233
+ style: $e(n(O, B)),
2234
+ onClick: (ee) => B.click(O)
2228
2235
  }, {
2229
2236
  default: v(() => [
2230
- D(g(e(F)(w.label)), 1)
2237
+ D(b(e(F)(B.label)), 1)
2231
2238
  ]),
2232
2239
  _: 2
2233
2240
  }, 1032, ["icon", "style", "onClick"]))), 128)),
@@ -2239,32 +2246,32 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
2239
2246
  actions: _(O)
2240
2247
  }), {
2241
2248
  default: v(() => [
2242
- Z(z(K, {
2249
+ P(z(Z, {
2243
2250
  reactive: "",
2244
2251
  icon: "dots-three"
2245
2252
  }, null, 512), [
2246
- [S]
2253
+ [j]
2247
2254
  ])
2248
2255
  ]),
2249
2256
  _: 2
2250
2257
  }, 1040)) : y("", !0)
2251
2258
  ])
2252
2259
  ])) : (X = f.actions) != null && X.length ? (o(), s("td", Ba, [
2253
- k("div", {
2260
+ g("div", {
2254
2261
  class: "table__mobile-actions-grid",
2255
2262
  style: $e(`grid-template-columns: repeat(${h(O).length + (_(O).length ? 1 : 0)}, 1fr);`)
2256
2263
  }, [
2257
- (o(!0), s(J, null, U(h(O), (w) => (o(), $(fe, {
2258
- key: `action-${w.action}`,
2264
+ (o(!0), s(J, null, U(h(O), (B) => (o(), $(fe, {
2265
+ key: `action-${B.action}`,
2259
2266
  class: "table__mobile-actions-button",
2260
- onClick: (ee) => w.click(O)
2267
+ onClick: (ee) => B.click(O)
2261
2268
  }, {
2262
2269
  default: v(() => [
2263
- z(K, {
2264
- icon: w.icon || "gear"
2270
+ z(Z, {
2271
+ icon: B.icon || "gear"
2265
2272
  }, {
2266
2273
  default: v(() => [
2267
- D(g(e(F)(w.label)), 1)
2274
+ D(b(e(F)(B.label)), 1)
2268
2275
  ]),
2269
2276
  _: 2
2270
2277
  }, 1032, ["icon"])
@@ -2279,7 +2286,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
2279
2286
  actions: _(O)
2280
2287
  }), {
2281
2288
  default: v(() => [
2282
- z(K, {
2289
+ z(Z, {
2283
2290
  icon: "dots-three",
2284
2291
  class: "table__mobile-actions-button"
2285
2292
  })
@@ -2288,14 +2295,14 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
2288
2295
  }, 1040)) : y("", !0)
2289
2296
  ], 4)
2290
2297
  ])) : y("", !0),
2291
- k("div", {
2298
+ g("div", {
2292
2299
  id: `dropdown-${O._id}`
2293
2300
  }, null, 8, Sa)
2294
2301
  ], 8, pa);
2295
2302
  }), 128))
2296
2303
  ])),
2297
- k("tfoot", null, [
2298
- f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((W = f.rows) != null && W.length) && !((P = e(u)) != null && P.loading.getAll) ? (o(), s("tr", ja, Ra)) : y("", !0)
2304
+ g("tfoot", null, [
2305
+ f.$slots.tfoot ? I(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((W = f.rows) != null && W.length) && !((N = e(u)) != null && N.loading.getAll) ? (o(), s("tr", ja, Ra)) : y("", !0)
2299
2306
  ])
2300
2307
  ])) : y("", !0);
2301
2308
  };
@@ -2321,14 +2328,14 @@ const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
2321
2328
  return Object.assign(r, i.componentProps);
2322
2329
  });
2323
2330
  return (r, u) => (o(), s("div", null, [
2324
- r.$slots.inner ? A(r.$slots, "inner", { key: 0 }) : y("", !0),
2331
+ r.$slots.inner ? I(r.$slots, "inner", { key: 0 }) : y("", !0),
2325
2332
  e(t).properties ? (o(), $(za, E({ key: 1 }, l.value, {
2326
2333
  key: e(t).$id
2327
2334
  }), de({ _: 2 }, [
2328
2335
  U(Object.keys(r.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
2329
2336
  name: p,
2330
2337
  fn: v((d) => [
2331
- A(r.$slots, p, ce(Ve(d)))
2338
+ I(r.$slots, p, ce(Ve(d)))
2332
2339
  ])
2333
2340
  }))
2334
2341
  ]), 1040)) : y("", !0)
@@ -2346,7 +2353,7 @@ const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
2346
2353
  ${i.list && "grid--list"}
2347
2354
  `)
2348
2355
  }, [
2349
- A(i.$slots, "default", {}, void 0, !0)
2356
+ I(i.$slots, "default", {}, void 0, !0)
2350
2357
  ], 2));
2351
2358
  }
2352
2359
  });
@@ -2375,8 +2382,8 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
2375
2382
  horizontal: r.componentName === "list"
2376
2383
  }, de({
2377
2384
  footer: v(() => [
2378
- e(t).title ? (o(), s("div", Ua, g(d[e(t).title]), 1)) : y("", !0),
2379
- e(t).information ? (o(), s("div", Ea, g(d[e(t).information]), 1)) : y("", !0)
2385
+ e(t).title ? (o(), s("div", Ua, b(d[e(t).title]), 1)) : y("", !0),
2386
+ e(t).information ? (o(), s("div", Ea, b(d[e(t).information]), 1)) : y("", !0)
2380
2387
  ]),
2381
2388
  actions: v(() => [
2382
2389
  r.individualActions.length > 0 ? (o(), $(Ce, E({
@@ -2387,7 +2394,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
2387
2394
  actions: r.individualActions
2388
2395
  }), {
2389
2396
  default: v(() => [
2390
- Z(z(K, {
2397
+ P(z(Z, {
2391
2398
  reactive: "",
2392
2399
  icon: "dots-three-vertical"
2393
2400
  }, null, 512), [
@@ -2418,7 +2425,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
2418
2425
  large: ""
2419
2426
  }, {
2420
2427
  default: v(() => [
2421
- D(g(e(t).translateBadge ? e(F)(h) : h), 1)
2428
+ D(b(e(t).translateBadge ? e(F)(h) : h), 1)
2422
2429
  ]),
2423
2430
  _: 2
2424
2431
  }, 1024))), 128))
@@ -2429,7 +2436,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
2429
2436
  fn: v(() => [
2430
2437
  z(be, null, {
2431
2438
  default: v(() => [
2432
- D(g(e(t).translateBadge ? e(F)(d[e(t).badge]) : d[e(t)[r.badge]]), 1)
2439
+ D(b(e(t).translateBadge ? e(F)(d[e(t).badge]) : d[e(t)[r.badge]]), 1)
2433
2440
  ]),
2434
2441
  _: 2
2435
2442
  }, 1024)
@@ -2453,7 +2460,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2453
2460
  }, Wa = {
2454
2461
  key: 0,
2455
2462
  class: "crud__search"
2456
- }, Xa = { class: "crud__actions" }, Ya = { class: "crud__context-badge" }, Ja = /* @__PURE__ */ Qa(() => /* @__PURE__ */ k("div", null, "Filtros", -1)), Ka = { key: 0 }, Za = {
2463
+ }, Xa = { class: "crud__actions" }, Ya = { class: "crud__context-badge" }, Ja = /* @__PURE__ */ Qa(() => /* @__PURE__ */ g("div", null, "Filtros", -1)), Ka = { key: 0 }, Za = {
2457
2464
  key: 3,
2458
2465
  class: "crud__pagination"
2459
2466
  }, _t = 30, Pa = /* @__PURE__ */ q({
@@ -2477,40 +2484,40 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2477
2484
  }), u = ue("meta"), p = je(), { reachedEnd: d, detach: h } = We(null, {
2478
2485
  antecipate: 600
2479
2486
  }), _ = !p.value.md || t.scrollPagination;
2480
- _ && re(d, (C) => {
2481
- C && n.pagination.recordsTotal > n.items.length && S.value < _t && (S.value += 1, W());
2487
+ _ && re(d, (V) => {
2488
+ V && n.pagination.recordsTotal > n.items.length && j.value < _t && (j.value += 1, W());
2482
2489
  });
2483
2490
  const n = ue(t.collection);
2484
2491
  na(n, {
2485
2492
  persistInQuery: !t.noQueryPersistence
2486
2493
  });
2487
- const f = $t(), V = t.action ? e(t.action) : qt(n, l, f);
2488
- Be.value = V[0], ct.value = V[1];
2489
- const S = Y(0), L = Y(!1), W = async (C) => {
2490
- n.activeFilters = Object.assign({}, (C == null ? void 0 : C.filters) || n.$filters), Object.assign(n.activeFilters, n.filtersPreset);
2494
+ const f = $t(), k = t.action ? e(t.action) : qt(n, l, f);
2495
+ Be.value = k[0], ct.value = k[1];
2496
+ const j = Y(0), L = Y(!1), W = async (V) => {
2497
+ n.activeFilters = Object.assign({}, (V == null ? void 0 : V.filters) || n.$filters), Object.assign(n.activeFilters, n.filtersPreset);
2491
2498
  const R = {
2492
2499
  filters: n.activeFilters,
2493
2500
  limit: n.pagination.limit,
2494
2501
  offset: n.pagination.offset,
2495
2502
  project: n.preferredTableProperties.length > 0 ? n.preferredTableProperties : n.description.table || Object.keys(n.properties)
2496
2503
  };
2497
- S.value > 0 && (R.limit = 15, R.offset = S.value * R.limit), n.description.tableMeta && (R.project = R.project.concat(n.description.tableMeta)), C && Object.assign(R, C), n.loading.getAll = !0;
2504
+ j.value > 0 && (R.limit = 15, R.offset = j.value * R.limit), n.description.tableMeta && (R.project = R.project.concat(n.description.tableMeta)), V && Object.assign(R, V), n.loading.getAll = !0;
2498
2505
  const { data: te, pagination: oe } = await n.$actions.retrieveItems(R);
2499
- 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, L.value = !0;
2500
- }, P = async (C) => {
2506
+ 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, L.value = !0;
2507
+ }, N = async (V) => {
2501
2508
  l.push({
2502
2509
  query: {
2503
2510
  ...l.currentRoute.value.query,
2504
- offset: C.offset,
2505
- limit: C.limit
2511
+ offset: V.offset,
2512
+ limit: V.limit
2506
2513
  }
2507
- }), n.pagination.offset = C.offset, n.pagination.limit = C.limit, W();
2514
+ }), n.pagination.offset = V.offset, n.pagination.limit = V.limit, W();
2508
2515
  }, O = ve("noResultsComponent", null);
2509
2516
  re(() => [
2510
2517
  l.currentRoute.value.path,
2511
2518
  l.currentRoute.value.query.section
2512
- ], async (C, R) => {
2513
- if (R && R[0] === C[0] && R[1] === C[1])
2519
+ ], async (V, R) => {
2520
+ if (R && R[0] === V[0] && R[1] === V[1])
2514
2521
  return;
2515
2522
  const te = l.currentRoute.value;
2516
2523
  if (u.view.title = t.collection, u.view.collection = t.collection, ut.value = !1, !t.noFetch && !te.query._popstate) {
@@ -2521,29 +2528,29 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2521
2528
  immediate: !0,
2522
2529
  flush: "post"
2523
2530
  });
2524
- const [M] = r((C) => (l.push({
2531
+ const [M] = r((V) => (l.push({
2525
2532
  query: {
2526
- search: C || void 0
2533
+ search: V || void 0
2527
2534
  }
2528
- }), C ? (n.filters = Object.assign(Se(n.freshFilters), {
2535
+ }), V ? (n.filters = Object.assign(Se(n.freshFilters), {
2529
2536
  $text: {
2530
- $search: `"${C}"`,
2537
+ $search: `"${V}"`,
2531
2538
  $caseSensitive: !1
2532
2539
  }
2533
2540
  }), W({
2534
2541
  offset: 0
2535
- })) : (n.filters = Se(n.freshFilters), S.value = 0, W())));
2536
- re(() => n.textQuery, (C) => {
2537
- M(C);
2542
+ })) : (n.filters = Se(n.freshFilters), j.value = 0, W())));
2543
+ re(() => n.textQuery, (V) => {
2544
+ M(V);
2538
2545
  });
2539
- const X = (C) => {
2540
- C.currentLayout = C.currentLayout === "tabular" ? C.description.layout.name : "tabular";
2546
+ const X = (V) => {
2547
+ V.currentLayout = V.currentLayout === "tabular" ? V.description.layout.name : "tabular";
2541
2548
  };
2542
2549
  At(() => {
2543
2550
  n.$actions.clearFilters(), n.textQuery = "", h();
2544
- }), re(() => ct.value, async (C) => {
2551
+ }), re(() => ct.value, async (V) => {
2545
2552
  var oe;
2546
- const R = Se(C);
2553
+ const R = Se(V);
2547
2554
  let te;
2548
2555
  if (R)
2549
2556
  if ([
@@ -2564,30 +2571,30 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2564
2571
  ut.value = !0, se.value = "view";
2565
2572
  else if (R.name === "duplicate") {
2566
2573
  await te;
2567
- const le = Object.entries(n.item).reduce((m, [b, j]) => {
2568
- if (!(b in n.properties))
2574
+ const le = Object.entries(n.item).reduce((m, [A, w]) => {
2575
+ if (!(A in n.properties))
2569
2576
  return {
2570
2577
  ...m,
2571
- [b]: j
2578
+ [A]: w
2572
2579
  };
2573
- const N = n.properties[b];
2574
- if (N.readOnly)
2580
+ const K = n.properties[A];
2581
+ if (K.readOnly)
2575
2582
  return m;
2576
- const I = (T) => {
2577
- const B = pe(N);
2578
- if (!B)
2583
+ const C = (T) => {
2584
+ const S = pe(K);
2585
+ if (!S)
2579
2586
  return T;
2580
- if (B.$ref === "file")
2587
+ if (S.$ref === "file")
2581
2588
  return {};
2582
- if (B.inline && T) {
2589
+ if (S.inline && T) {
2583
2590
  const { _id: ae, ..._e } = T;
2584
2591
  return _e;
2585
2592
  }
2586
2593
  return T;
2587
2594
  };
2588
- return j = Array.isArray(j) ? j.map(I) : I(j), {
2595
+ return w = Array.isArray(w) ? w.map(C) : C(w), {
2589
2596
  ...m,
2590
- [b]: j
2597
+ [A]: w
2591
2598
  };
2592
2599
  }, {});
2593
2600
  n.$actions.setItem(le), delete n.item._id, n.referenceItem = {}, se.value = "duplicate";
@@ -2595,35 +2602,35 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2595
2602
  a("uiEvent", R);
2596
2603
  }, {
2597
2604
  deep: !0
2598
- }), re(() => se, (C) => {
2599
- C.value === !1 && (u.view.collection = t.collection, n.$actions.clearItem());
2605
+ }), re(() => se, (V) => {
2606
+ V.value === !1 && (u.view.collection = t.collection, n.$actions.clearItem());
2600
2607
  });
2601
- const w = H(() => n.individualActions.map((C) => ({
2602
- click: Be.value(C),
2603
- ...C
2604
- }))), ee = H(() => n.actions.filter((C) => !C.button));
2605
- return ye(Ue, H(() => t.collection)), ye("individualActions", w), (C, R) => {
2606
- var le, m, b, j, N, I, T;
2608
+ const B = H(() => n.individualActions.map((V) => ({
2609
+ click: Be.value(V),
2610
+ ...V
2611
+ }))), ee = H(() => n.actions.filter((V) => !V.button));
2612
+ return ye(Ue, H(() => t.collection)), ye("individualActions", B), (V, R) => {
2613
+ var le, m, A, w, K, C, T;
2607
2614
  const te = ne("clickable"), oe = ne("loading");
2608
2615
  return o(), s(J, null, [
2609
2616
  e(ke) ? (o(), $(ea, {
2610
2617
  key: e(n).$id,
2611
2618
  modelValue: e(ke),
2612
- "onUpdate:modelValue": R[0] || (R[0] = (B) => vt(ke) ? ke.value = B : null)
2619
+ "onUpdate:modelValue": R[0] || (R[0] = (S) => vt(ke) ? ke.value = S : null)
2613
2620
  }, null, 8, ["modelValue"])) : y("", !0),
2614
2621
  e(se) ? (o(), $(ta, { key: 1 }, de({ _: 2 }, [
2615
- U(Object.keys(C.$slots).filter((B) => B.startsWith("field-")), (B) => ({
2616
- name: B,
2622
+ U(Object.keys(V.$slots).filter((S) => S.startsWith("field-")), (S) => ({
2623
+ name: S,
2617
2624
  fn: v((ae) => [
2618
- A(C.$slots, B, ce(Ve(ae)), void 0, !0)
2625
+ I(V.$slots, S, ce(Ve(ae)), void 0, !0)
2619
2626
  ])
2620
2627
  }))
2621
2628
  ]), 1024)) : y("", !0),
2622
- !C.noActions && (e(n).description.search || Object.keys(e(n).availableFilters).length > 0 || ((le = e(n)) == null ? void 0 : le.actions.length) > 0 || C.$slots.actions || !C.noLayoutToggle && e(n).description.layout && ((m = e(n).description.layout) == null ? void 0 : m.name) !== "tabular") ? (o(), s("div", Ga, [
2629
+ !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", Ga, [
2623
2630
  e(n).description.search ? (o(), s("div", Wa, [
2624
2631
  z(Ie, E({
2625
2632
  modelValue: e(n).textQuery,
2626
- "onUpdate:modelValue": R[1] || (R[1] = (B) => e(n).textQuery = B)
2633
+ "onUpdate:modelValue": R[1] || (R[1] = (S) => e(n).textQuery = S)
2627
2634
  }, {
2628
2635
  property: {
2629
2636
  type: "string",
@@ -2632,8 +2639,8 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2632
2639
  }
2633
2640
  }), null, 16, ["modelValue"])
2634
2641
  ])) : y("", !0),
2635
- k("div", Xa, [
2636
- ee.value.length > 0 || !C.noLayoutToggle && e(n).description.layout && ((b = e(n).description.layout) == null ? void 0 : b.name) !== "tabular" ? (o(), $(Ce, { key: 0 }, de({
2642
+ g("div", Xa, [
2643
+ ee.value.length > 0 || !V.noLayoutToggle && e(n).description.layout && ((A = e(n).description.layout) == null ? void 0 : A.name) !== "tabular" ? (o(), $(Ce, { key: 0 }, de({
2637
2644
  default: v(() => [
2638
2645
  z(ie, {
2639
2646
  variant: "alt",
@@ -2642,7 +2649,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2642
2649
  default: v(() => [
2643
2650
  e(n).filtersCount ? (o(), $(be, { key: 0 }, {
2644
2651
  default: v(() => [
2645
- D(g(e(n).filtersCount), 1)
2652
+ D(b(e(n).filtersCount), 1)
2646
2653
  ]),
2647
2654
  _: 1
2648
2655
  })) : y("", !0)
@@ -2655,21 +2662,21 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2655
2662
  Object.keys(e(n).availableFilters).length > 0 ? {
2656
2663
  name: "filter",
2657
2664
  fn: v(() => [
2658
- Z((o(), $(K, {
2665
+ P((o(), $(Z, {
2659
2666
  icon: "funnel",
2660
- onClick: R[2] || (R[2] = (B) => ke.value = !0)
2667
+ onClick: R[2] || (R[2] = (S) => ke.value = !0)
2661
2668
  }, {
2662
2669
  default: v(() => [
2663
- D(g(e(F)("filters", { capitalize: !0 })), 1)
2670
+ D(b(e(F)("filters", { capitalize: !0 })), 1)
2664
2671
  ]),
2665
2672
  _: 1
2666
2673
  })), [
2667
2674
  [te]
2668
2675
  ]),
2669
- k("div", Ya, [
2676
+ g("div", Ya, [
2670
2677
  e(n).filtersCount ? (o(), $(be, { key: 0 }, {
2671
2678
  default: v(() => [
2672
- D(g(e(n).filtersCount), 1)
2679
+ D(b(e(n).filtersCount), 1)
2673
2680
  ]),
2674
2681
  _: 1
2675
2682
  })) : y("", !0)
@@ -2677,15 +2684,15 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2677
2684
  ]),
2678
2685
  key: "0"
2679
2686
  } : void 0,
2680
- !C.noLayoutToggle && e(n).description.layout && ((j = e(n).description.layout) == null ? void 0 : j.name) !== "tabular" ? {
2687
+ !V.noLayoutToggle && e(n).description.layout && ((w = e(n).description.layout) == null ? void 0 : w.name) !== "tabular" ? {
2681
2688
  name: "layout-toggle",
2682
2689
  fn: v(() => [
2683
- Z((o(), $(K, {
2690
+ P((o(), $(Z, {
2684
2691
  icon: "table",
2685
- onClick: R[3] || (R[3] = (B) => X(e(n)))
2692
+ onClick: R[3] || (R[3] = (S) => X(e(n)))
2686
2693
  }, {
2687
2694
  default: v(() => [
2688
- D(g(e(F)("change_layout", { capitalize: !0 })), 1)
2695
+ D(b(e(F)("change_layout", { capitalize: !0 })), 1)
2689
2696
  ]),
2690
2697
  _: 1
2691
2698
  })), [
@@ -2694,17 +2701,17 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2694
2701
  ]),
2695
2702
  key: "1"
2696
2703
  } : void 0,
2697
- U(ee.value, (B, ae) => ({
2704
+ U(ee.value, (S, ae) => ({
2698
2705
  name: `action-${ae}`,
2699
2706
  fn: v(() => [
2700
- B ? (o(), $(K, {
2707
+ S ? (o(), $(Z, {
2701
2708
  key: 0,
2702
- icon: B.icon || "gear",
2703
- disabled: e(n).selected.length === 0 && B.selection,
2704
- onClick: (_e) => e(Be)(B)({ _id: e(n).selected.map((me) => me._id) })
2709
+ icon: S.icon || "gear",
2710
+ disabled: e(n).selected.length === 0 && S.selection,
2711
+ onClick: (_e) => e(Be)(S)({ _id: e(n).selected.map((me) => me._id) })
2705
2712
  }, {
2706
2713
  default: v(() => [
2707
- D(g(e(F)(B.label, { capitalize: !0 })), 1)
2714
+ D(b(e(F)(S.label, { capitalize: !0 })), 1)
2708
2715
  ]),
2709
2716
  _: 2
2710
2717
  }, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
@@ -2714,35 +2721,35 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2714
2721
  key: 1,
2715
2722
  variant: "alt",
2716
2723
  icon: "funnel",
2717
- onClick: R[4] || (R[4] = (B) => ke.value = !0)
2724
+ onClick: R[4] || (R[4] = (S) => ke.value = !0)
2718
2725
  }, {
2719
2726
  default: v(() => [
2720
2727
  Ja,
2721
2728
  e(n).filtersCount ? (o(), $(be, { key: 0 }, {
2722
2729
  default: v(() => [
2723
- D(g(e(n).filtersCount), 1)
2730
+ D(b(e(n).filtersCount), 1)
2724
2731
  ]),
2725
2732
  _: 1
2726
2733
  })) : y("", !0)
2727
2734
  ]),
2728
2735
  _: 1
2729
2736
  })) : y("", !0),
2730
- (o(!0), s(J, null, U(e(n).actions.filter((B) => B.button), (B, ae) => (o(), $(ie, {
2737
+ (o(!0), s(J, null, U(e(n).actions.filter((S) => S.button), (S, ae) => (o(), $(ie, {
2731
2738
  key: `action-${ae}`,
2732
- icon: B.icon,
2733
- disabled: e(n).selected.length === 0 && B.selection,
2734
- onClick: (_e) => e(Be)(B)({ _id: e(n).selected.map((me) => me._id) })
2739
+ icon: S.icon,
2740
+ disabled: e(n).selected.length === 0 && S.selection,
2741
+ onClick: (_e) => e(Be)(S)({ _id: e(n).selected.map((me) => me._id) })
2735
2742
  }, {
2736
2743
  default: v(() => [
2737
- D(g(e(F)(B.label, { capitalize: !0 })), 1)
2744
+ D(b(e(F)(S.label, { capitalize: !0 })), 1)
2738
2745
  ]),
2739
2746
  _: 2
2740
2747
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
2741
- C.$slots.actions ? A(C.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2748
+ V.$slots.actions ? I(V.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2742
2749
  ])
2743
2750
  ])) : y("", !0),
2744
- Z((o(), s("div", null, [
2745
- e(n).itemsCount === 0 && !e(n).loading.getAll && L.value && (e(O) || C.$slots.empty) ? (o(), s("div", Ka, [
2751
+ P((o(), s("div", null, [
2752
+ e(n).itemsCount === 0 && !e(n).loading.getAll && L.value && (e(O) || V.$slots.empty) ? (o(), s("div", Ka, [
2746
2753
  e(O) ? (o(), $(he(e(O)), ce(E({ key: 0 }, {
2747
2754
  collection: e(n).$id
2748
2755
  })), {
@@ -2750,50 +2757,50 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
2750
2757
  e(n).filtersCount === 0 && e(n).description.actions && "ui:spawnAdd" in e(n).description.actions ? (o(), $(ie, {
2751
2758
  key: 0,
2752
2759
  icon: "plus",
2753
- onClick: R[5] || (R[5] = (B) => e(Be)({
2760
+ onClick: R[5] || (R[5] = (S) => e(Be)({
2754
2761
  action: "ui:spawnAdd"
2755
2762
  })())
2756
2763
  }, {
2757
2764
  default: v(() => [
2758
- D(g(e(F)("add_first_item", { capitalize: !0 })), 1)
2765
+ D(b(e(F)("add_first_item", { capitalize: !0 })), 1)
2759
2766
  ]),
2760
2767
  _: 1
2761
2768
  })) : y("", !0)
2762
2769
  ]),
2763
2770
  _: 1
2764
- }, 16)) : A(C.$slots, "empty", ce(E({ key: 1 }, {
2771
+ }, 16)) : I(V.$slots, "empty", ce(E({ key: 1 }, {
2765
2772
  collection: e(n).$id
2766
2773
  })), void 0, !0)
2767
- ])) : C.$slots.component ? A(C.$slots, "component", ce(E({ key: 1 }, {
2774
+ ])) : V.$slots.component ? I(V.$slots, "component", ce(E({ key: 1 }, {
2768
2775
  store: e(n)
2769
- })), void 0, !0) : (o(), $(he(e(Da)(((N = C.layout) == null ? void 0 : N.name) || e(n).$currentLayout)), E({ key: 2 }, {
2770
- individualActions: w.value,
2771
- layoutOptions: ((I = C.layout) == null ? void 0 : I.options) || e(n).layout.options,
2772
- componentProps: C.componentProps
2776
+ })), void 0, !0) : (o(), $(he(e(Da)(((K = V.layout) == null ? void 0 : K.name) || e(n).$currentLayout)), E({ key: 2 }, {
2777
+ individualActions: B.value,
2778
+ layoutOptions: ((C = V.layout) == null ? void 0 : C.options) || e(n).layout.options,
2779
+ componentProps: V.componentProps
2773
2780
  }, {
2774
- "component-name": ((T = C.layout) == null ? void 0 : T.name) || e(n).$currentLayout
2781
+ "component-name": ((T = V.layout) == null ? void 0 : T.name) || e(n).$currentLayout
2775
2782
  }), de({ _: 2 }, [
2776
- U(Object.keys(C.$slots).filter((B) => B.startsWith("row-")), (B) => ({
2777
- name: B,
2783
+ U(Object.keys(V.$slots).filter((S) => S.startsWith("row-")), (S) => ({
2784
+ name: S,
2778
2785
  fn: v((ae) => [
2779
- A(C.$slots, B, ce(Ve(ae)), void 0, !0)
2786
+ I(V.$slots, S, ce(Ve(ae)), void 0, !0)
2780
2787
  ])
2781
2788
  })),
2782
- C.$slots.tfoot ? {
2789
+ V.$slots.tfoot ? {
2783
2790
  name: "tfoot",
2784
2791
  fn: v(() => [
2785
- A(C.$slots, "tfoot", {}, void 0, !0)
2792
+ I(V.$slots, "tfoot", {}, void 0, !0)
2786
2793
  ]),
2787
2794
  key: "0"
2788
2795
  } : void 0
2789
2796
  ]), 1040, ["component-name"]))
2790
2797
  ])), [
2791
- [oe, (!e(_) || S.value === _t) && e(n).loading.getAll]
2798
+ [oe, (!e(_) || j.value === _t) && e(n).loading.getAll]
2792
2799
  ]),
2793
2800
  !e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), s("div", Za, [
2794
2801
  z(Mn, {
2795
2802
  pagination: e(n).pagination,
2796
- onPaginate: P
2803
+ onPaginate: N
2797
2804
  }, null, 8, ["pagination"])
2798
2805
  ])) : y("", !0)
2799
2806
  ], 64);
@@ -2817,7 +2824,7 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
2817
2824
  style: { "--panel-min-width": "32rem" }
2818
2825
  }, de({
2819
2826
  footer: v(() => [
2820
- k("div", {
2827
+ g("div", {
2821
2828
  class: "prompt__actions",
2822
2829
  style: $e(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
2823
2830
  }, [
@@ -2830,15 +2837,15 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
2830
2837
  onClick: (p) => r.click ? r.click(r) : t(r)
2831
2838
  }, {
2832
2839
  default: v(() => [
2833
- D(g(r.title || r.name), 1)
2840
+ D(b(r.title || r.name), 1)
2834
2841
  ]),
2835
2842
  _: 2
2836
2843
  }, 1032, ["class", "onClick"]))), 128))
2837
2844
  ], 4)
2838
2845
  ]),
2839
2846
  default: v(() => [
2840
- k("div", Na, [
2841
- A(a.$slots, "default", {}, void 0, !0)
2847
+ g("div", Na, [
2848
+ I(a.$slots, "default", {}, void 0, !0)
2842
2849
  ])
2843
2850
  ]),
2844
2851
  _: 2
@@ -2846,7 +2853,7 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
2846
2853
  a.title ? {
2847
2854
  name: "title",
2848
2855
  fn: v(() => [
2849
- D(g(a.title), 1)
2856
+ D(b(a.title), 1)
2850
2857
  ]),
2851
2858
  key: "0"
2852
2859
  } : void 0
@@ -2865,7 +2872,7 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
2865
2872
  const i = ue("meta");
2866
2873
  return (t, a) => {
2867
2874
  const l = ne("clickable");
2868
- return Z((o(), s("div", {
2875
+ return P((o(), s("div", {
2869
2876
  class: Q({
2870
2877
  toast: !0,
2871
2878
  "toast--animate": e(i).toasts[0].itr === t.itr
@@ -2873,13 +2880,13 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
2873
2880
  onAnimationend: a[0] || (a[0] = (r) => e(i).$actions.popToast()),
2874
2881
  onClick: a[1] || (a[1] = (r) => e(i).$actions.popToast(t.itr))
2875
2882
  }, [
2876
- z(K, E(
2883
+ z(Z, E(
2877
2884
  t.icon ? { icon: t.icon } : { icon: "warning-circle" },
2878
2885
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
2879
2886
  ), null, 16),
2880
- k("div", tl, [
2881
- A(t.$slots, "default", {}, void 0, !0),
2882
- k("div", nl, g(t.formatDateTime(t.date, { hoursOnly: !0 })), 1)
2887
+ g("div", tl, [
2888
+ I(t.$slots, "default", {}, void 0, !0),
2889
+ g("div", nl, b(t.formatDateTime(t.date, { hoursOnly: !0 })), 1)
2883
2890
  ])
2884
2891
  ], 34)), [
2885
2892
  [l]
@@ -2909,7 +2916,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
2909
2916
  U(Object.keys(a.$slots), (p) => ({
2910
2917
  name: p,
2911
2918
  fn: v(() => [
2912
- A(a.$slots, p, {}, void 0, !0)
2919
+ I(a.$slots, p, {}, void 0, !0)
2913
2920
  ])
2914
2921
  }))
2915
2922
  ]), 1024))
@@ -2919,7 +2926,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
2919
2926
  ]),
2920
2927
  _: 3
2921
2928
  })),
2922
- A(a.$slots, "default", {}, void 0, !0),
2929
+ I(a.$slots, "default", {}, void 0, !0),
2923
2930
  z(Ae, E({
2924
2931
  modelValue: e(i).modal.visible,
2925
2932
  "onUpdate:modelValue": l[0] || (l[0] = (u) => e(i).modal.visible = u),
@@ -2941,16 +2948,16 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
2941
2948
  }, 16, ["modelValue"]),
2942
2949
  e(i).prompt.visible ? (o(), $(el, ce(E({ key: 0 }, e(i).prompt)), {
2943
2950
  default: v(() => [
2944
- D(g(e(i).prompt.body), 1)
2951
+ D(b(e(i).prompt.body), 1)
2945
2952
  ]),
2946
2953
  _: 1
2947
2954
  }, 16)) : y("", !0),
2948
- k("div", sl, [
2955
+ g("div", sl, [
2949
2956
  (o(!0), s(J, null, U(e(i).toasts, (u) => (o(), $(al, E({ ref_for: !0 }, u, {
2950
2957
  key: `toast-${u.itr}`
2951
2958
  }), {
2952
2959
  default: v(() => [
2953
- k("div", {
2960
+ g("div", {
2954
2961
  innerHTML: e(F)(u.text)
2955
2962
  }, null, 8, il)
2956
2963
  ]),
@@ -2969,7 +2976,7 @@ function dl(c, i) {
2969
2976
  key: t,
2970
2977
  class: "menu__entry"
2971
2978
  }, [
2972
- A(c.$slots, t, {}, void 0, !0)
2979
+ I(c.$slots, t, {}, void 0, !0)
2973
2980
  ]))), 128))
2974
2981
  ]);
2975
2982
  }
@@ -3014,7 +3021,7 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
3014
3021
  return o(), s("div", pl, [
3015
3022
  e(l).md && !d.dropdown ? (o(), s("div", _l, [
3016
3023
  d.$slots.default ? (o(), s("div", ml, [
3017
- A(d.$slots, "default", {}, void 0, !0)
3024
+ I(d.$slots, "default", {}, void 0, !0)
3018
3025
  ])) : y("", !0),
3019
3026
  (o(!0), s(J, null, U(Object.keys(d.$slots).filter((n) => n !== "default"), (n, f) => (o(), s("div", {
3020
3027
  key: n,
@@ -3022,21 +3029,21 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
3022
3029
  tabs__tab: !0,
3023
3030
  "tabs__tab--current": n === u.value || !u.value && f === 0
3024
3031
  }),
3025
- onClick: (V) => p(n)
3032
+ onClick: (k) => p(n)
3026
3033
  }, [
3027
- A(d.$slots, n, {}, void 0, !0)
3034
+ I(d.$slots, n, {}, void 0, !0)
3028
3035
  ], 10, fl))), 128))
3029
3036
  ])) : (o(), s("div", vl, [
3030
3037
  z(Ce, null, de({
3031
3038
  default: v(() => [
3032
- Z((o(), $(K, {
3039
+ P((o(), $(Z, {
3033
3040
  "icon-right": "",
3034
3041
  icon: "caret-down",
3035
3042
  style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
3036
3043
  class: "tabs__context-menu-icon"
3037
3044
  }, {
3038
3045
  default: v(() => [
3039
- A(d.$slots, u.value, {}, void 0, !0)
3046
+ I(d.$slots, u.value, {}, void 0, !0)
3040
3047
  ]),
3041
3048
  _: 3
3042
3049
  })), [
@@ -3048,10 +3055,10 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
3048
3055
  U(Object.keys(d.$slots).filter((n) => n !== "default"), (n) => ({
3049
3056
  name: n,
3050
3057
  fn: v(() => [
3051
- k("div", {
3058
+ g("div", {
3052
3059
  onClick: (f) => p(n)
3053
3060
  }, [
3054
- A(d.$slots, n, {}, void 0, !0)
3061
+ I(d.$slots, n, {}, void 0, !0)
3055
3062
  ], 8, yl)
3056
3063
  ])
3057
3064
  }))
@@ -3094,19 +3101,19 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
3094
3101
  U(Object.entries(l.value.description.filtersPresets), ([p, d]) => ({
3095
3102
  name: p,
3096
3103
  fn: v(() => [
3097
- k("div", {
3104
+ g("div", {
3098
3105
  class: "topbar__preset",
3099
3106
  onClick: (h) => e(kt)(d, l.value)
3100
3107
  }, [
3101
- d.icon ? (o(), $(K, {
3108
+ d.icon ? (o(), $(Z, {
3102
3109
  key: 0,
3103
3110
  icon: d.icon
3104
3111
  }, {
3105
3112
  default: v(() => [
3106
- D(g(d.label || e(F)(p, { plural: !0 })), 1)
3113
+ D(b(d.label || e(F)(p, { plural: !0 })), 1)
3107
3114
  ]),
3108
3115
  _: 2
3109
- }, 1032, ["icon"])) : (o(), s("div", kl, g(d.label || e(F)(p, { plural: !0 })), 1)),
3116
+ }, 1032, ["icon"])) : (o(), s("div", kl, b(d.label || e(F)(p, { plural: !0 })), 1)),
3110
3117
  d.badgeFunction ? (o(), $(be, { key: 2 }, {
3111
3118
  default: v(() => [
3112
3119
  z(e(bl), {
@@ -3155,8 +3162,8 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
3155
3162
  "onUpdate:modelValue": r[0] || (r[0] = (u) => l.$emit("update:modelValue", u))
3156
3163
  }, {
3157
3164
  after: v(() => [
3158
- k("div", null, g(a.value || "Senhas conferem"), 1),
3159
- A(l.$slots, "default", ce(Ve({ passwordError: a.value })))
3165
+ g("div", null, b(a.value || "Senhas conferem"), 1),
3166
+ I(l.$slots, "default", ce(Ve({ passwordError: a.value })))
3160
3167
  ]),
3161
3168
  _: 3
3162
3169
  }, 8, ["model-value"]));
@@ -3179,7 +3186,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
3179
3186
  {
3180
3187
  path: "signin",
3181
3188
  name: "/user/signin",
3182
- component: () => import("./signin-f49f8090.js"),
3189
+ component: () => import("./signin-aebed8c0.js"),
3183
3190
  meta: {
3184
3191
  title: "Autenticação"
3185
3192
  }
@@ -3187,7 +3194,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
3187
3194
  {
3188
3195
  path: "signup",
3189
3196
  name: "/user/signup",
3190
- component: () => import("./signup-25160b53.js"),
3197
+ component: () => import("./signup-91d24668.js"),
3191
3198
  meta: {
3192
3199
  title: "Registro"
3193
3200
  }
@@ -3195,7 +3202,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
3195
3202
  {
3196
3203
  path: "activation",
3197
3204
  name: "/user/activation",
3198
- component: () => import("./activation-73d0823e.js"),
3205
+ component: () => import("./activation-855b78be.js"),
3199
3206
  meta: {
3200
3207
  title: "Ativação"
3201
3208
  }
@@ -3217,7 +3224,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
3217
3224
  name: "/dashboard/crud",
3218
3225
  props: !0,
3219
3226
  components: {
3220
- default: () => import("./crud-view-543eb1a6.js"),
3227
+ default: () => import("./crud-view-644dd64f.js"),
3221
3228
  topbar: () => Promise.resolve().then(() => Il)
3222
3229
  },
3223
3230
  meta: {
@@ -3235,7 +3242,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
3235
3242
  children: [
3236
3243
  {
3237
3244
  path: "profile",
3238
- component: () => import("./profile-c3166c73.js"),
3245
+ component: () => import("./profile-8baa89be.js"),
3239
3246
  meta: {
3240
3247
  title: "Meu perfil",
3241
3248
  icon: "user-square"
@@ -3244,7 +3251,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
3244
3251
  {
3245
3252
  path: "changepass",
3246
3253
  name: "/dashboard/user/changepass",
3247
- component: () => import("./password-change-83650bca.js"),
3254
+ component: () => import("./password-change-b4db19a6.js"),
3248
3255
  meta: {
3249
3256
  title: "Mudar senha",
3250
3257
  icon: "lock"
@@ -3263,7 +3270,7 @@ export {
3263
3270
  ql as F,
3264
3271
  Ml as _,
3265
3272
  ie as a,
3266
- K as b,
3273
+ Z as b,
3267
3274
  Qn as c,
3268
3275
  Rl as d,
3269
3276
  Me as e,