@stonecrop/aform 0.4.34 → 0.4.36

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.
package/dist/aform.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, mergeModels as z, useModel as q, createElementBlock as w, openBlock as g, createElementVNode as c, withDirectives as M, toDisplayString as A, vModelCheckbox as Re, vShow as W, resolveComponent as He, createBlock as se, withCtx as Be, useTemplateRef as Ae, vModelText as H, watch as O, getCurrentScope as Ie, onScopeDispose as Te, toRef as qe, readonly as Ce, ref as D, customRef as We, computed as T, watchEffect as Se, toValue as b, unref as $, shallowRef as G, reactive as Ue, normalizeClass as Z, withKeys as R, Fragment as Y, renderList as j, withModifiers as $e, onMounted as ae, onBeforeUnmount as Ne, getCurrentInstance as Ye, nextTick as je, resolveDynamicComponent as Ke, mergeProps as ze, renderSlot as Ge, createTextVNode as Le, createCommentVNode as re, createVNode as Xe } from "vue";
1
+ import { defineComponent as C, mergeModels as z, useModel as q, createElementBlock as w, openBlock as g, createElementVNode as c, withDirectives as M, toDisplayString as A, vModelCheckbox as Re, vShow as W, resolveComponent as He, createBlock as ae, withCtx as Be, useTemplateRef as Ae, vModelText as H, watch as O, getCurrentScope as Ie, onScopeDispose as Te, toRef as qe, readonly as Ce, ref as D, customRef as We, computed as T, watchEffect as _e, toValue as b, unref as S, shallowRef as G, reactive as Ue, normalizeClass as Z, withKeys as R, Fragment as Y, renderList as j, withModifiers as Se, onMounted as se, onBeforeUnmount as Ne, getCurrentInstance as Ye, nextTick as je, resolveDynamicComponent as Ke, mergeProps as ze, renderSlot as Ge, createTextVNode as $e, createCommentVNode as re, createVNode as Xe } from "vue";
2
2
  import './assets/index.css';const Je = { class: "aform_form-element" }, Qe = ["for"], Ze = { class: "aform_checkbox-container aform_input-field" }, et = ["id", "readonly", "required"], tt = ["innerHTML"], nt = /* @__PURE__ */ C({
3
3
  __name: "ACheckbox",
4
4
  props: /* @__PURE__ */ z({
@@ -19,57 +19,56 @@ import './assets/index.css';const Je = { class: "aform_form-element" }, Qe = ["f
19
19
  return (n, o) => (g(), w("div", Je, [
20
20
  c("label", {
21
21
  class: "aform_field-label",
22
- for: n.uuid
23
- }, A(n.label), 9, Qe),
22
+ for: e.uuid
23
+ }, A(e.label), 9, Qe),
24
24
  c("span", Ze, [
25
25
  M(c("input", {
26
26
  "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
27
27
  type: "checkbox",
28
- id: n.uuid,
28
+ id: e.uuid,
29
29
  class: "aform_checkbox",
30
- readonly: n.readonly,
31
- required: n.required
30
+ readonly: e.readonly,
31
+ required: e.required
32
32
  }, null, 8, et), [
33
33
  [Re, t.value]
34
34
  ])
35
35
  ]),
36
36
  M(c("p", {
37
37
  class: "aform_error",
38
- innerHTML: n.validation.errorMessage
38
+ innerHTML: e.validation.errorMessage
39
39
  }, null, 8, tt), [
40
- [W, n.validation.errorMessage]
40
+ [W, e.validation.errorMessage]
41
41
  ])
42
42
  ]));
43
43
  }
44
- }), L = (e, t) => {
44
+ }), $ = (e, t) => {
45
45
  const n = e.__vccOpts || e;
46
46
  for (const [o, s] of t)
47
47
  n[o] = s;
48
48
  return n;
49
- }, ot = /* @__PURE__ */ L(nt, [["__scopeId", "data-v-9f382ad4"]]), lt = /* @__PURE__ */ C({
49
+ }, ot = /* @__PURE__ */ $(nt, [["__scopeId", "data-v-9f382ad4"]]), lt = /* @__PURE__ */ C({
50
50
  __name: "AComboBox",
51
51
  props: ["event", "cellData", "tableID"],
52
52
  setup(e) {
53
53
  return (t, n) => {
54
54
  const o = He("ATableModal");
55
- return g(), se(o, {
55
+ return g(), ae(o, {
56
56
  event: e.event,
57
57
  cellData: e.cellData,
58
58
  class: "amodal"
59
59
  }, {
60
- default: Be(() => n[0] || (n[0] = [
60
+ default: Be(() => [...n[0] || (n[0] = [
61
61
  c("div", null, [
62
62
  c("input", { type: "text" }),
63
63
  c("input", { type: "text" }),
64
64
  c("input", { type: "text" })
65
65
  ], -1)
66
- ])),
67
- _: 1,
68
- __: [0]
66
+ ])]),
67
+ _: 1
69
68
  }, 8, ["event", "cellData"]);
70
69
  };
71
70
  }
72
- }), st = ["id", "disabled", "required"], at = ["for"], rt = ["innerHTML"], it = /* @__PURE__ */ C({
71
+ }), at = ["id", "disabled", "required"], st = ["for"], rt = ["innerHTML"], it = /* @__PURE__ */ C({
73
72
  __name: "ADate",
74
73
  props: /* @__PURE__ */ z({
75
74
  schema: {},
@@ -95,25 +94,25 @@ import './assets/index.css';const Je = { class: "aform_form-element" }, Qe = ["f
95
94
  };
96
95
  return (s, u) => (g(), w("div", null, [
97
96
  M(c("input", {
98
- "onUpdate:modelValue": u[0] || (u[0] = (r) => t.value = r),
97
+ "onUpdate:modelValue": u[0] || (u[0] = (i) => t.value = i),
99
98
  ref: "date",
100
99
  type: "date",
101
- id: s.uuid,
102
- disabled: s.readonly,
103
- required: s.required,
100
+ id: e.uuid,
101
+ disabled: e.readonly,
102
+ required: e.required,
104
103
  onClick: o
105
- }, null, 8, st), [
104
+ }, null, 8, at), [
106
105
  [H, t.value]
107
106
  ]),
108
- c("label", { for: s.uuid }, A(s.label), 9, at),
107
+ c("label", { for: e.uuid }, A(e.label), 9, st),
109
108
  M(c("p", {
110
- innerHTML: s.validation.errorMessage
109
+ innerHTML: e.validation.errorMessage
111
110
  }, null, 8, rt), [
112
- [W, s.validation.errorMessage]
111
+ [W, e.validation.errorMessage]
113
112
  ])
114
113
  ]));
115
114
  }
116
- }), ut = /* @__PURE__ */ L(it, [["__scopeId", "data-v-280b3d1a"]]);
115
+ }), ut = /* @__PURE__ */ $(it, [["__scopeId", "data-v-280b3d1a"]]);
117
116
  function ie(e) {
118
117
  return Ie() ? (Te(e), !0) : !1;
119
118
  }
@@ -125,13 +124,13 @@ function ve() {
125
124
  return {
126
125
  on: (u) => {
127
126
  e.add(u);
128
- const r = () => t(u);
129
- return ie(r), {
130
- off: r
127
+ const i = () => t(u);
128
+ return ie(i), {
129
+ off: i
131
130
  };
132
131
  },
133
132
  off: t,
134
- trigger: (...u) => Promise.all(Array.from(e).map((r) => r(...u))),
133
+ trigger: (...u) => Promise.all(Array.from(e).map((i) => i(...u))),
135
134
  clear: () => {
136
135
  e.clear();
137
136
  }
@@ -189,18 +188,18 @@ function bt(e) {
189
188
  function wt(e = {}) {
190
189
  const {
191
190
  document: t = ht
192
- } = e, n = D(bt(e.initialFiles)), { on: o, trigger: s } = /* @__PURE__ */ ve(), { on: u, trigger: r } = /* @__PURE__ */ ve(), l = T(() => {
191
+ } = e, n = D(bt(e.initialFiles)), { on: o, trigger: s } = /* @__PURE__ */ ve(), { on: u, trigger: i } = /* @__PURE__ */ ve(), l = T(() => {
193
192
  var v;
194
193
  const d = (v = gt(e.input)) != null ? v : t ? t.createElement("input") : void 0;
195
194
  return d && (d.type = "file", d.onchange = (p) => {
196
195
  const k = p.target;
197
196
  n.value = k.files, s(n.value);
198
197
  }, d.oncancel = () => {
199
- r();
198
+ i();
200
199
  }), d;
201
200
  }), a = () => {
202
201
  n.value = null, l.value && l.value.value && (l.value.value = "", s(null));
203
- }, i = (v) => {
202
+ }, r = (v) => {
204
203
  const d = l.value;
205
204
  d && (d.multiple = b(v.multiple), d.accept = b(v.accept), d.webkitdirectory = b(v.directory), ft(v, "capture") && (d.capture = b(v.capture)));
206
205
  }, f = (v) => {
@@ -212,10 +211,10 @@ function wt(e = {}) {
212
211
  ...e,
213
212
  ...v
214
213
  };
215
- i(p), b(p.reset) && a(), d.click();
214
+ r(p), b(p.reset) && a(), d.click();
216
215
  };
217
- return Se(() => {
218
- i(e);
216
+ return _e(() => {
217
+ r(e);
219
218
  }), {
220
219
  files: Ce(n),
221
220
  open: f,
@@ -224,7 +223,7 @@ function wt(e = {}) {
224
223
  onChange: o
225
224
  };
226
225
  }
227
- const xe = ue ? window : void 0;
226
+ const Le = ue ? window : void 0;
228
227
  function N(e) {
229
228
  var t;
230
229
  const n = b(e);
@@ -233,41 +232,41 @@ function N(e) {
233
232
  function J(...e) {
234
233
  const t = [], n = () => {
235
234
  t.forEach((l) => l()), t.length = 0;
236
- }, o = (l, a, i, f) => (l.addEventListener(a, i, f), () => l.removeEventListener(a, i, f)), s = T(() => {
235
+ }, o = (l, a, r, f) => (l.addEventListener(a, r, f), () => l.removeEventListener(a, r, f)), s = T(() => {
237
236
  const l = ee(b(e[0])).filter((a) => a != null);
238
237
  return l.every((a) => typeof a != "string") ? l : void 0;
239
238
  }), u = vt(
240
239
  () => {
241
240
  var l, a;
242
241
  return [
243
- (a = (l = s.value) == null ? void 0 : l.map((i) => N(i))) != null ? a : [xe].filter((i) => i != null),
242
+ (a = (l = s.value) == null ? void 0 : l.map((r) => N(r))) != null ? a : [Le].filter((r) => r != null),
244
243
  ee(b(s.value ? e[1] : e[0])),
245
- ee($(s.value ? e[2] : e[1])),
244
+ ee(S(s.value ? e[2] : e[1])),
246
245
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
247
246
  b(s.value ? e[3] : e[2])
248
247
  ];
249
248
  },
250
- ([l, a, i, f]) => {
251
- if (n(), !l?.length || !a?.length || !i?.length)
249
+ ([l, a, r, f]) => {
250
+ if (n(), !l?.length || !a?.length || !r?.length)
252
251
  return;
253
252
  const v = dt(f) ? { ...f } : f;
254
253
  t.push(
255
254
  ...l.flatMap(
256
255
  (d) => a.flatMap(
257
- (p) => i.map((k) => o(d, p, k, v))
256
+ (p) => r.map((k) => o(d, p, k, v))
258
257
  )
259
258
  )
260
259
  );
261
260
  },
262
261
  { flush: "post" }
263
- ), r = () => {
262
+ ), i = () => {
264
263
  u(), n();
265
264
  };
266
- return ie(n), r;
265
+ return ie(n), i;
267
266
  }
268
267
  let he = !1;
269
268
  function ge(e, t, n = {}) {
270
- const { window: o = xe, ignore: s = [], capture: u = !0, detectIframe: r = !1, controls: l = !1 } = n;
269
+ const { window: o = Le, ignore: s = [], capture: u = !0, detectIframe: i = !1, controls: l = !1 } = n;
271
270
  if (!o)
272
271
  return l ? { stop: F, cancel: F, trigger: F } : F;
273
272
  if (le && !he) {
@@ -276,7 +275,7 @@ function ge(e, t, n = {}) {
276
275
  Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", F, m)), o.document.documentElement.addEventListener("click", F, m);
277
276
  }
278
277
  let a = !0;
279
- const i = (m) => b(s).some((h) => {
278
+ const r = (m) => b(s).some((h) => {
280
279
  if (typeof h == "string")
281
280
  return Array.from(o.document.querySelectorAll(h)).some((E) => E === m.target || m.composedPath().includes(E));
282
281
  {
@@ -290,12 +289,12 @@ function ge(e, t, n = {}) {
290
289
  }
291
290
  function v(m, h) {
292
291
  const E = b(m), y = E.$.subTree && E.$.subTree.children;
293
- return y == null || !Array.isArray(y) ? !1 : y.some((_) => _.el === h.target || h.composedPath().includes(_.el));
292
+ return y == null || !Array.isArray(y) ? !1 : y.some((x) => x.el === h.target || h.composedPath().includes(x.el));
294
293
  }
295
294
  const d = (m) => {
296
295
  const h = N(e);
297
296
  if (m.target != null && !(!(h instanceof Element) && f(e) && v(e, m)) && !(!h || h === m.target || m.composedPath().includes(h))) {
298
- if ("detail" in m && m.detail === 0 && (a = !i(m)), !a) {
297
+ if ("detail" in m && m.detail === 0 && (a = !r(m)), !a) {
299
298
  a = !0;
300
299
  return;
301
300
  }
@@ -311,9 +310,9 @@ function ge(e, t, n = {}) {
311
310
  }, { passive: !0, capture: u }),
312
311
  J(o, "pointerdown", (m) => {
313
312
  const h = N(e);
314
- a = !i(m) && !!(h && !m.composedPath().includes(h));
313
+ a = !r(m) && !!(h && !m.composedPath().includes(h));
315
314
  }, { passive: !0 }),
316
- r && J(o, "blur", (m) => {
315
+ i && J(o, "blur", (m) => {
317
316
  setTimeout(() => {
318
317
  var h;
319
318
  const E = N(e);
@@ -360,7 +359,7 @@ function Ve(e) {
360
359
  return !n || n.tagName === "BODY" ? !1 : Ve(n);
361
360
  }
362
361
  }
363
- function _t(e) {
362
+ function xt(e) {
364
363
  const t = e || window.event, n = t.target;
365
364
  return Ve(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
366
365
  }
@@ -371,11 +370,11 @@ function Dt(e, t = !1) {
371
370
  O(pt(e), (l) => {
372
371
  const a = ne(b(l));
373
372
  if (a) {
374
- const i = a;
375
- if (oe.get(i) || oe.set(i, i.style.overflow), i.style.overflow !== "hidden" && (s = i.style.overflow), i.style.overflow === "hidden")
373
+ const r = a;
374
+ if (oe.get(r) || oe.set(r, r.style.overflow), r.style.overflow !== "hidden" && (s = r.style.overflow), r.style.overflow === "hidden")
376
375
  return n.value = !0;
377
376
  if (n.value)
378
- return i.style.overflow = "hidden";
377
+ return r.style.overflow = "hidden";
379
378
  }
380
379
  }, {
381
380
  immediate: !0
@@ -386,20 +385,20 @@ function Dt(e, t = !1) {
386
385
  l,
387
386
  "touchmove",
388
387
  (a) => {
389
- _t(a);
388
+ xt(a);
390
389
  },
391
390
  { passive: !1 }
392
391
  )), l.style.overflow = "hidden", n.value = !0);
393
- }, r = () => {
392
+ }, i = () => {
394
393
  const l = ne(b(e));
395
394
  !l || !n.value || (le && o?.(), l.style.overflow = s, oe.delete(l), n.value = !1);
396
395
  };
397
- return ie(r), T({
396
+ return ie(i), T({
398
397
  get() {
399
398
  return n.value;
400
399
  },
401
400
  set(l) {
402
- l ? u() : r();
401
+ l ? u() : i();
403
402
  }
404
403
  });
405
404
  }
@@ -454,13 +453,13 @@ const Mt = { class: "input-wrapper" }, At = {
454
453
  a();
455
454
  }, u = (d) => {
456
455
  t.value = d, l(d);
457
- }, r = () => {
456
+ }, i = () => {
458
457
  n.activeItemIndex = e.isAsync ? null : t.value && e.items?.indexOf(t.value) || null, n.open = !0, n.results = e.isAsync ? [] : e.items;
459
458
  }, l = (d) => {
460
459
  n.activeItemIndex = null, n.open = !1, e.items?.includes(d || t.value || "") || (t.value = "");
461
460
  }, a = () => {
462
461
  t.value ? n.results = e.items?.filter((d) => d.toLowerCase().includes((t.value ?? "").toLowerCase())) : n.results = e.items;
463
- }, i = () => {
462
+ }, r = () => {
464
463
  const d = n.results?.length || 0;
465
464
  if (n.activeItemIndex != null) {
466
465
  const p = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
@@ -489,9 +488,9 @@ const Mt = { class: "input-wrapper" }, At = {
489
488
  "onUpdate:modelValue": p[0] || (p[0] = (k) => t.value = k),
490
489
  type: "text",
491
490
  onInput: s,
492
- onFocus: r,
491
+ onFocus: i,
493
492
  onKeydown: [
494
- R(i, ["down"]),
493
+ R(r, ["down"]),
495
494
  R(f, ["up"]),
496
495
  R(v, ["enter"]),
497
496
  R(o, ["esc"]),
@@ -503,25 +502,25 @@ const Mt = { class: "input-wrapper" }, At = {
503
502
  M(c("ul", At, [
504
503
  n.loading ? (g(), w("li", It, "Loading results...")) : (g(!0), w(Y, { key: 1 }, j(n.results, (k, I) => (g(), w("li", {
505
504
  key: k,
506
- onClick: $e((m) => u(k), ["stop"]),
505
+ onClick: Se((m) => u(k), ["stop"]),
507
506
  class: Z(["autocomplete-result", { "is-active": I === n.activeItemIndex }])
508
507
  }, A(k), 11, Tt))), 128))
509
508
  ], 512), [
510
509
  [W, n.open]
511
510
  ]),
512
- c("label", null, A(d.label), 1)
511
+ c("label", null, A(e.label), 1)
513
512
  ])
514
513
  ], 2)), [
515
- [$(kt), o]
514
+ [S(kt), o]
516
515
  ]);
517
516
  }
518
- }), St = /* @__PURE__ */ L(Ct, [["__scopeId", "data-v-16c329d1"]]);
517
+ }), _t = /* @__PURE__ */ $(Ct, [["__scopeId", "data-v-16c329d1"]]);
519
518
  function ce(e) {
520
519
  return Ie() ? (Te(e), !0) : !1;
521
520
  }
522
- const $t = typeof window < "u" && typeof document < "u";
521
+ const St = typeof window < "u" && typeof document < "u";
523
522
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
524
- const Lt = (e) => e != null, xt = Object.prototype.toString, Vt = (e) => xt.call(e) === "[object Object]", Pt = () => {
523
+ const $t = (e) => e != null, Lt = Object.prototype.toString, Vt = (e) => Lt.call(e) === "[object Object]", Pt = () => {
525
524
  };
526
525
  function Q(e) {
527
526
  return Array.isArray(e) ? e : [e];
@@ -536,7 +535,7 @@ function Ot(e, t, n) {
536
535
  }
537
536
  );
538
537
  }
539
- const U = $t ? window : void 0;
538
+ const U = St ? window : void 0;
540
539
  function B(e) {
541
540
  var t;
542
541
  const n = b(e);
@@ -545,42 +544,42 @@ function B(e) {
545
544
  function K(...e) {
546
545
  const t = [], n = () => {
547
546
  t.forEach((l) => l()), t.length = 0;
548
- }, o = (l, a, i, f) => (l.addEventListener(a, i, f), () => l.removeEventListener(a, i, f)), s = T(() => {
547
+ }, o = (l, a, r, f) => (l.addEventListener(a, r, f), () => l.removeEventListener(a, r, f)), s = T(() => {
549
548
  const l = Q(b(e[0])).filter((a) => a != null);
550
549
  return l.every((a) => typeof a != "string") ? l : void 0;
551
550
  }), u = Ot(
552
551
  () => {
553
552
  var l, a;
554
553
  return [
555
- (a = (l = s.value) == null ? void 0 : l.map((i) => B(i))) != null ? a : [U].filter((i) => i != null),
554
+ (a = (l = s.value) == null ? void 0 : l.map((r) => B(r))) != null ? a : [U].filter((r) => r != null),
556
555
  Q(b(s.value ? e[1] : e[0])),
557
- Q($(s.value ? e[2] : e[1])),
556
+ Q(S(s.value ? e[2] : e[1])),
558
557
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
559
558
  b(s.value ? e[3] : e[2])
560
559
  ];
561
560
  },
562
- ([l, a, i, f]) => {
563
- if (n(), !l?.length || !a?.length || !i?.length)
561
+ ([l, a, r, f]) => {
562
+ if (n(), !l?.length || !a?.length || !r?.length)
564
563
  return;
565
564
  const v = Vt(f) ? { ...f } : f;
566
565
  t.push(
567
566
  ...l.flatMap(
568
567
  (d) => a.flatMap(
569
- (p) => i.map((k) => o(d, p, k, v))
568
+ (p) => r.map((k) => o(d, p, k, v))
570
569
  )
571
570
  )
572
571
  );
573
572
  },
574
573
  { flush: "post" }
575
- ), r = () => {
574
+ ), i = () => {
576
575
  u(), n();
577
576
  };
578
- return ce(n), r;
577
+ return ce(n), i;
579
578
  }
580
579
  // @__NO_SIDE_EFFECTS__
581
580
  function Ft() {
582
581
  const e = G(!1), t = Ye();
583
- return t && ae(() => {
582
+ return t && se(() => {
584
583
  e.value = !0;
585
584
  }, t), e;
586
585
  }
@@ -592,22 +591,22 @@ function Rt(e) {
592
591
  function Ht(e, t, n = {}) {
593
592
  const { window: o = U, ...s } = n;
594
593
  let u;
595
- const r = /* @__PURE__ */ Rt(() => o && "MutationObserver" in o), l = () => {
594
+ const i = /* @__PURE__ */ Rt(() => o && "MutationObserver" in o), l = () => {
596
595
  u && (u.disconnect(), u = void 0);
597
596
  }, a = T(() => {
598
- const d = b(e), p = Q(d).map(B).filter(Lt);
597
+ const d = b(e), p = Q(d).map(B).filter($t);
599
598
  return new Set(p);
600
- }), i = O(
599
+ }), r = O(
601
600
  () => a.value,
602
601
  (d) => {
603
- l(), r.value && d.size && (u = new MutationObserver(t), d.forEach((p) => u.observe(p, s)));
602
+ l(), i.value && d.size && (u = new MutationObserver(t), d.forEach((p) => u.observe(p, s)));
604
603
  },
605
604
  { immediate: !0, flush: "post" }
606
605
  ), f = () => u?.takeRecords(), v = () => {
607
- i(), l();
606
+ r(), l();
608
607
  };
609
608
  return ce(v), {
610
- isSupported: r,
609
+ isSupported: i,
611
610
  stop: v,
612
611
  takeRecords: f
613
612
  };
@@ -620,10 +619,10 @@ function Bt(e, t, n = {}) {
620
619
  } = n;
621
620
  if (!o || !s)
622
621
  return Pt;
623
- let r;
622
+ let i;
624
623
  const l = (f) => {
625
- r?.(), r = f;
626
- }, a = Se(() => {
624
+ i?.(), i = f;
625
+ }, a = _e(() => {
627
626
  const f = B(e);
628
627
  if (f) {
629
628
  const { stop: v } = Ht(
@@ -639,10 +638,10 @@ function Bt(e, t, n = {}) {
639
638
  );
640
639
  l(v);
641
640
  }
642
- }, { flush: u }), i = () => {
641
+ }, { flush: u }), r = () => {
643
642
  a(), l();
644
643
  };
645
- return ce(i), i;
644
+ return ce(r), r;
646
645
  }
647
646
  // @__NO_SIDE_EFFECTS__
648
647
  function qt(e = {}) {
@@ -651,18 +650,18 @@ function qt(e = {}) {
651
650
  window: n = U,
652
651
  deep: o = !0,
653
652
  triggerOnRemoval: s = !1
654
- } = e, u = (t = e.document) != null ? t : n?.document, r = () => {
655
- var i;
653
+ } = e, u = (t = e.document) != null ? t : n?.document, i = () => {
654
+ var r;
656
655
  let f = u?.activeElement;
657
656
  if (o)
658
657
  for (; f?.shadowRoot; )
659
- f = (i = f?.shadowRoot) == null ? void 0 : i.activeElement;
658
+ f = (r = f?.shadowRoot) == null ? void 0 : r.activeElement;
660
659
  return f;
661
660
  }, l = G(), a = () => {
662
- l.value = r();
661
+ l.value = i();
663
662
  };
664
663
  if (n) {
665
- const i = {
664
+ const r = {
666
665
  capture: !0,
667
666
  passive: !0
668
667
  };
@@ -672,12 +671,12 @@ function qt(e = {}) {
672
671
  (f) => {
673
672
  f.relatedTarget === null && a();
674
673
  },
675
- i
674
+ r
676
675
  ), K(
677
676
  n,
678
677
  "focus",
679
678
  a,
680
- i
679
+ r
681
680
  );
682
681
  }
683
682
  return s && Bt(l, a, { document: u }), a(), l;
@@ -687,20 +686,20 @@ function Yt(e, t = {}) {
687
686
  const { window: n = U } = t, o = T(() => B(e)), s = G(!1), u = T(() => s.value);
688
687
  if (!n || !(/* @__PURE__ */ qt(t)).value)
689
688
  return { focused: u };
690
- const r = { passive: !0 };
691
- return K(o, Wt, () => s.value = !0, r), K(o, Ut, () => {
692
- var l, a, i;
693
- return s.value = (i = (a = (l = o.value) == null ? void 0 : l.matches) == null ? void 0 : a.call(l, Nt)) != null ? i : !1;
694
- }, r), { focused: u };
689
+ const i = { passive: !0 };
690
+ return K(o, Wt, () => s.value = !0, i), K(o, Ut, () => {
691
+ var l, a, r;
692
+ return s.value = (r = (a = (l = o.value) == null ? void 0 : l.matches) == null ? void 0 : a.call(l, Nt)) != null ? r : !1;
693
+ }, i), { focused: u };
695
694
  }
696
695
  function jt(e, { window: t = U, scrollTarget: n } = {}) {
697
696
  const o = D(!1), s = () => {
698
697
  if (!t) return;
699
- const u = t.document, r = B(e);
700
- if (!r)
698
+ const u = t.document, i = B(e);
699
+ if (!i)
701
700
  o.value = !1;
702
701
  else {
703
- const l = r.getBoundingClientRect();
702
+ const l = i.getBoundingClientRect();
704
703
  o.value = l.top <= (t.innerHeight || u.documentElement.clientHeight) && l.left <= (t.innerWidth || u.documentElement.clientWidth) && l.bottom >= 0 && l.right >= 0;
705
704
  }
706
705
  };
@@ -713,7 +712,7 @@ function jt(e, { window: t = U, scrollTarget: n } = {}) {
713
712
  passive: !0
714
713
  }), o;
715
714
  }
716
- const x = (e) => {
715
+ const L = (e) => {
717
716
  let t = jt(e).value;
718
717
  return t = t && e.offsetHeight > 0, t;
719
718
  }, V = (e) => e.tabIndex >= 0, ye = (e) => {
@@ -731,7 +730,7 @@ const x = (e) => {
731
730
  const n = e.previousElementSibling;
732
731
  n && (t = n);
733
732
  }
734
- return t && (!V(t) || !x(t)) ? de(t) : t;
733
+ return t && (!V(t) || !L(t)) ? de(t) : t;
735
734
  }, Kt = (e) => {
736
735
  const t = e.target;
737
736
  let n;
@@ -748,7 +747,7 @@ const x = (e) => {
748
747
  s && (n = s);
749
748
  }
750
749
  }
751
- return n && (!V(n) || !x(n)) ? fe(n) : n;
750
+ return n && (!V(n) || !L(n)) ? fe(n) : n;
752
751
  }, be = (e) => {
753
752
  const t = e.target;
754
753
  return fe(t);
@@ -764,7 +763,7 @@ const x = (e) => {
764
763
  const n = e.nextElementSibling;
765
764
  n && (t = n);
766
765
  }
767
- return t && (!V(t) || !x(t)) ? fe(t) : t;
766
+ return t && (!V(t) || !L(t)) ? fe(t) : t;
768
767
  }, zt = (e) => {
769
768
  const t = e.target;
770
769
  let n;
@@ -781,25 +780,25 @@ const x = (e) => {
781
780
  s && (n = s);
782
781
  }
783
782
  }
784
- return n && (!V(n) || !x(n)) ? de(n) : n;
783
+ return n && (!V(n) || !L(n)) ? de(n) : n;
785
784
  }, we = (e) => {
786
785
  const t = e.target;
787
786
  return me(t);
788
787
  }, me = (e) => {
789
788
  let t;
790
- return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!V(t) || !x(t)) ? me(t) : t;
789
+ return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!V(t) || !L(t)) ? me(t) : t;
791
790
  }, ke = (e) => {
792
791
  const t = e.target;
793
792
  return pe(t);
794
793
  }, pe = (e) => {
795
794
  let t;
796
- return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!V(t) || !x(t)) ? pe(t) : t;
797
- }, _e = (e) => {
795
+ return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!V(t) || !L(t)) ? pe(t) : t;
796
+ }, xe = (e) => {
798
797
  const t = e.target.parentElement?.firstElementChild;
799
- return t && (!V(t) || !x(t)) ? pe(t) : t;
798
+ return t && (!V(t) || !L(t)) ? pe(t) : t;
800
799
  }, De = (e) => {
801
800
  const t = e.target.parentElement?.lastElementChild;
802
- return t && (!V(t) || !x(t)) ? me(t) : t;
801
+ return t && (!V(t) || !L(t)) ? me(t) : t;
803
802
  }, X = ["alt", "control", "shift", "meta"], Gt = {
804
803
  ArrowUp: "up",
805
804
  ArrowDown: "down",
@@ -831,7 +830,7 @@ const x = (e) => {
831
830
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
832
831
  },
833
832
  "keydown.control.left": (e) => {
834
- const t = _e(e);
833
+ const t = xe(e);
835
834
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
836
835
  },
837
836
  "keydown.control.right": (e) => {
@@ -857,7 +856,7 @@ const x = (e) => {
857
856
  }
858
857
  },
859
858
  "keydown.home": (e) => {
860
- const t = _e(e);
859
+ const t = xe(e);
861
860
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
862
861
  },
863
862
  "keydown.tab": (e) => {
@@ -870,38 +869,38 @@ const x = (e) => {
870
869
  }
871
870
  };
872
871
  function Xt(e) {
873
- const t = (r) => {
872
+ const t = (i) => {
874
873
  let l = null;
875
- return r.parent && (typeof r.parent == "string" ? l = document.querySelector(r.parent) : r.parent instanceof HTMLElement ? l = r.parent : l = r.parent.value), l;
876
- }, n = (r) => {
877
- const l = t(r);
874
+ return i.parent && (typeof i.parent == "string" ? l = document.querySelector(i.parent) : i.parent instanceof HTMLElement ? l = i.parent : l = i.parent.value), l;
875
+ }, n = (i) => {
876
+ const l = t(i);
878
877
  let a = [];
879
- if (typeof r.selectors == "string")
880
- a = l ? Array.from(l.querySelectorAll(r.selectors)) : Array.from(document.querySelectorAll(r.selectors));
881
- else if (Array.isArray(r.selectors))
882
- for (const i of r.selectors)
883
- i instanceof HTMLElement ? a.push(i) : a.push(i.$el);
884
- else if (r.selectors instanceof HTMLElement)
885
- a.push(r.selectors);
886
- else if (r.selectors?.value)
887
- if (Array.isArray(r.selectors.value))
888
- for (const i of r.selectors.value)
889
- i instanceof HTMLElement ? a.push(i) : a.push(i.$el);
878
+ if (typeof i.selectors == "string")
879
+ a = l ? Array.from(l.querySelectorAll(i.selectors)) : Array.from(document.querySelectorAll(i.selectors));
880
+ else if (Array.isArray(i.selectors))
881
+ for (const r of i.selectors)
882
+ r instanceof HTMLElement ? a.push(r) : a.push(r.$el);
883
+ else if (i.selectors instanceof HTMLElement)
884
+ a.push(i.selectors);
885
+ else if (i.selectors?.value)
886
+ if (Array.isArray(i.selectors.value))
887
+ for (const r of i.selectors.value)
888
+ r instanceof HTMLElement ? a.push(r) : a.push(r.$el);
890
889
  else
891
- a.push(r.selectors.value);
890
+ a.push(i.selectors.value);
892
891
  return a;
893
- }, o = (r) => {
894
- const l = t(r);
892
+ }, o = (i) => {
893
+ const l = t(i);
895
894
  let a = [];
896
- return r.selectors ? a = n(r) : l && (a = Array.from(l.children).filter((i) => V(i) && x(i))), a;
897
- }, s = (r) => (l) => {
895
+ return i.selectors ? a = n(i) : l && (a = Array.from(l.children).filter((r) => V(r) && L(r))), a;
896
+ }, s = (i) => (l) => {
898
897
  const a = Gt[l.key] || l.key.toLowerCase();
899
898
  if (X.includes(a)) return;
900
- const i = r.handlers || Pe;
901
- for (const f of Object.keys(i)) {
899
+ const r = i.handlers || Pe;
900
+ for (const f of Object.keys(r)) {
902
901
  const [v, ...d] = f.split(".");
903
902
  if (v === "keydown" && d.includes(a)) {
904
- const p = i[f], k = d.filter((m) => X.includes(m)), I = X.some((m) => {
903
+ const p = r[f], k = d.filter((m) => X.includes(m)), I = X.some((m) => {
905
904
  const h = m.charAt(0).toUpperCase() + m.slice(1);
906
905
  return l.getModifierState(h);
907
906
  });
@@ -918,19 +917,19 @@ function Xt(e) {
918
917
  }
919
918
  }
920
919
  }, u = [];
921
- ae(() => {
922
- for (const r of e) {
923
- const l = t(r), a = o(r), i = s(r), f = l ? [l] : a;
920
+ se(() => {
921
+ for (const i of e) {
922
+ const l = t(i), a = o(i), r = s(i), f = l ? [l] : a;
924
923
  for (const v of f) {
925
924
  const { focused: d } = Yt(D(v)), p = O(d, (k) => {
926
- k ? v.addEventListener("keydown", i) : v.removeEventListener("keydown", i);
925
+ k ? v.addEventListener("keydown", r) : v.removeEventListener("keydown", r);
927
926
  });
928
927
  u.push(p);
929
928
  }
930
929
  }
931
930
  }), Ne(() => {
932
- for (const r of u)
933
- r();
931
+ for (const i of u)
932
+ i();
934
933
  });
935
934
  }
936
935
  const Jt = {
@@ -948,34 +947,34 @@ const Jt = {
948
947
  },
949
948
  emits: ["update:modelValue"],
950
949
  setup(e, { expose: t }) {
951
- const n = q(e, "modelValue"), o = D(new Date(n.value)), s = D(o.value.getMonth()), u = D(o.value.getFullYear()), r = D([]), l = Ae("datepicker");
952
- ae(async () => {
950
+ const n = q(e, "modelValue"), o = D(new Date(n.value)), s = D(o.value.getMonth()), u = D(o.value.getFullYear()), i = D([]), l = Ae("datepicker");
951
+ se(async () => {
953
952
  a(), await je();
954
953
  const y = document.getElementsByClassName("selectedDate");
955
954
  if (y.length > 0)
956
955
  y[0].focus();
957
956
  else {
958
- const _ = document.getElementsByClassName("todaysDate");
959
- _.length > 0 && _[0].focus();
957
+ const x = document.getElementsByClassName("todaysDate");
958
+ x.length > 0 && x[0].focus();
960
959
  }
961
960
  });
962
961
  const a = () => {
963
- r.value = [];
964
- const y = new Date(u.value, s.value, 1), _ = y.getDay(), S = y.setDate(y.getDate() - _);
962
+ i.value = [];
963
+ const y = new Date(u.value, s.value, 1), x = y.getDay(), _ = y.setDate(y.getDate() - x);
965
964
  for (const P of Array(43).keys())
966
- r.value.push(S + P * 864e5);
965
+ i.value.push(_ + P * 864e5);
967
966
  };
968
967
  O([s, u], a);
969
- const i = () => u.value -= 1, f = () => u.value += 1, v = () => {
970
- s.value == 0 ? (s.value = 11, i()) : s.value -= 1;
968
+ const r = () => u.value -= 1, f = () => u.value += 1, v = () => {
969
+ s.value == 0 ? (s.value = 11, r()) : s.value -= 1;
971
970
  }, d = () => {
972
971
  s.value == 11 ? (s.value = 0, f()) : s.value += 1;
973
972
  }, p = (y) => {
974
- const _ = /* @__PURE__ */ new Date();
975
- if (s.value === _.getMonth())
976
- return _.toDateString() === new Date(y).toDateString();
977
- }, k = (y) => new Date(y).toDateString() === new Date(o.value).toDateString(), I = (y, _) => (y - 1) * Ee + _, m = (y, _) => r.value[I(y, _)], h = (y) => {
978
- n.value = o.value = new Date(r.value[y]);
973
+ const x = /* @__PURE__ */ new Date();
974
+ if (s.value === x.getMonth())
975
+ return x.toDateString() === new Date(y).toDateString();
976
+ }, k = (y) => new Date(y).toDateString() === new Date(o.value).toDateString(), I = (y, x) => (y - 1) * Ee + x, m = (y, x) => i.value[I(y, x)], h = (y) => {
977
+ n.value = o.value = new Date(i.value[y]);
979
978
  }, E = T(() => new Date(u.value, s.value, 1).toLocaleDateString(void 0, {
980
979
  year: "numeric",
981
980
  month: "long"
@@ -987,7 +986,7 @@ const Jt = {
987
986
  handlers: {
988
987
  ...Pe,
989
988
  "keydown.pageup": v,
990
- "keydown.shift.pageup": i,
989
+ "keydown.shift.pageup": r,
991
990
  "keydown.pagedown": d,
992
991
  "keydown.shift.pagedown": f,
993
992
  // TODO: this is a hack to override the stonecrop enter handler;
@@ -997,7 +996,7 @@ const Jt = {
997
996
  }
998
997
  }
999
998
  }
1000
- ]), t({ currentMonth: s, currentYear: u, selectedDate: o }), (y, _) => (g(), w("div", Jt, [
999
+ ]), t({ currentMonth: s, currentYear: u, selectedDate: o }), (y, x) => (g(), w("div", Jt, [
1001
1000
  c("table", null, [
1002
1001
  c("tbody", null, [
1003
1002
  c("tr", null, [
@@ -1013,7 +1012,7 @@ const Jt = {
1013
1012
  tabindex: -1
1014
1013
  }, ">")
1015
1014
  ]),
1016
- _[0] || (_[0] = c("tr", { class: "days-header" }, [
1015
+ x[0] || (x[0] = c("tr", { class: "days-header" }, [
1017
1016
  c("td", null, "M"),
1018
1017
  c("td", null, "T"),
1019
1018
  c("td", null, "W"),
@@ -1022,37 +1021,37 @@ const Jt = {
1022
1021
  c("td", null, "S"),
1023
1022
  c("td", null, "S")
1024
1023
  ], -1)),
1025
- (g(), w(Y, null, j(en, (S) => c("tr", { key: S }, [
1024
+ (g(), w(Y, null, j(en, (_) => c("tr", { key: _ }, [
1026
1025
  (g(), w(Y, null, j(Ee, (P) => c("td", {
1027
1026
  ref_for: !0,
1028
1027
  ref: "celldate",
1029
- key: I(S, P),
1028
+ key: I(_, P),
1030
1029
  contenteditable: !1,
1031
1030
  spellcheck: !1,
1032
1031
  tabindex: 0,
1033
- onClick: $e((Fe) => h(I(S, P)), ["prevent", "stop"]),
1034
- onKeydown: R((Fe) => h(I(S, P)), ["enter"]),
1032
+ onClick: Se((Fe) => h(I(_, P)), ["prevent", "stop"]),
1033
+ onKeydown: R((Fe) => h(I(_, P)), ["enter"]),
1035
1034
  class: Z({
1036
- todaysDate: p(m(S, P)),
1037
- selectedDate: k(m(S, P))
1035
+ todaysDate: p(m(_, P)),
1036
+ selectedDate: k(m(_, P))
1038
1037
  })
1039
- }, A(new Date(m(S, P)).getDate()), 43, Zt)), 64))
1038
+ }, A(new Date(m(_, P)).getDate()), 43, Zt)), 64))
1040
1039
  ])), 64))
1041
1040
  ])
1042
1041
  ])
1043
1042
  ], 512));
1044
1043
  }
1045
- }), nn = /* @__PURE__ */ L(tn, [["__scopeId", "data-v-f49cfd40"]]), on = /* @__PURE__ */ C({
1044
+ }), nn = /* @__PURE__ */ $(tn, [["__scopeId", "data-v-f49cfd40"]]), on = /* @__PURE__ */ C({
1046
1045
  __name: "CollapseButton",
1047
1046
  props: {
1048
1047
  collapsed: { type: Boolean }
1049
1048
  },
1050
1049
  setup(e) {
1051
1050
  return (t, n) => (g(), w("button", {
1052
- class: Z(["collapse-button", t.collapsed ? "rotated" : "unrotated"])
1051
+ class: Z(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
1053
1052
  }, "×", 2));
1054
1053
  }
1055
- }), ln = /* @__PURE__ */ L(on, [["__scopeId", "data-v-6f1c1b45"]]), sn = { class: "aform" }, an = /* @__PURE__ */ C({
1054
+ }), ln = /* @__PURE__ */ $(on, [["__scopeId", "data-v-6f1c1b45"]]), an = { class: "aform" }, sn = /* @__PURE__ */ C({
1056
1055
  __name: "AForm",
1057
1056
  props: {
1058
1057
  modelValue: {},
@@ -1061,15 +1060,15 @@ const Jt = {
1061
1060
  },
1062
1061
  emits: ["update:modelValue"],
1063
1062
  setup(e, { emit: t }) {
1064
- const n = t, o = D(e.data || {}), s = (r) => {
1063
+ const n = t, o = D(e.data || {}), s = (i) => {
1065
1064
  let l = {};
1066
- for (const [a, i] of Object.entries(r))
1067
- ["component", "fieldtype"].includes(a) || (l[a] = i), a === "rows" && i && i.length === 0 && (l.rows = o.value[r.fieldname]);
1065
+ for (const [a, r] of Object.entries(i))
1066
+ ["component", "fieldtype"].includes(a) || (l[a] = r), a === "rows" && r && r.length === 0 && (l.rows = o.value[i.fieldname]);
1068
1067
  return l;
1069
1068
  }, u = T({
1070
- get: () => e.modelValue.map((r, l) => T({
1069
+ get: () => e.modelValue.map((i, l) => T({
1071
1070
  get() {
1072
- return r.value;
1071
+ return i.value;
1073
1072
  },
1074
1073
  set: (a) => {
1075
1074
  e.modelValue[l].value = a, n("update:modelValue", e.modelValue);
@@ -1078,18 +1077,18 @@ const Jt = {
1078
1077
  set: () => {
1079
1078
  }
1080
1079
  });
1081
- return (r, l) => (g(), w("form", sn, [
1082
- (g(!0), w(Y, null, j(r.modelValue, (a, i) => (g(), se(Ke(a.component), ze({
1083
- key: i,
1080
+ return (i, l) => (g(), w("form", an, [
1081
+ (g(!0), w(Y, null, j(e.modelValue, (a, r) => (g(), ae(Ke(a.component), ze({
1082
+ key: r,
1084
1083
  schema: a,
1085
- modelValue: u.value[i].value,
1086
- "onUpdate:modelValue": (f) => u.value[i].value = f,
1084
+ modelValue: u.value[r].value,
1085
+ "onUpdate:modelValue": (f) => u.value[r].value = f,
1087
1086
  data: o.value[a.fieldname],
1088
- readonly: r.readonly
1087
+ readonly: e.readonly
1089
1088
  }, { ref_for: !0 }, s(a)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
1090
1089
  ]));
1091
1090
  }
1092
- }), Oe = /* @__PURE__ */ L(an, [["__scopeId", "data-v-68845234"]]), rn = /* @__PURE__ */ C({
1091
+ }), Oe = /* @__PURE__ */ $(sn, [["__scopeId", "data-v-68845234"]]), rn = /* @__PURE__ */ C({
1093
1092
  __name: "AFieldset",
1094
1093
  props: {
1095
1094
  schema: {},
@@ -1098,21 +1097,21 @@ const Jt = {
1098
1097
  data: {}
1099
1098
  },
1100
1099
  setup(e, { expose: t }) {
1101
- const n = D(!1), o = D(e.data || []), s = D(e.schema), u = (r) => {
1102
- r.preventDefault(), e.collapsible && (n.value = !n.value);
1100
+ const n = D(!1), o = D(e.data || []), s = D(e.schema), u = (i) => {
1101
+ i.preventDefault(), e.collapsible && (n.value = !n.value);
1103
1102
  };
1104
- return t({ collapsed: n }), (r, l) => (g(), w("fieldset", null, [
1103
+ return t({ collapsed: n }), (i, l) => (g(), w("fieldset", null, [
1105
1104
  c("legend", {
1106
1105
  onClick: u,
1107
1106
  onSubmit: u
1108
1107
  }, [
1109
- Le(A(r.label) + " ", 1),
1110
- r.collapsible ? (g(), se(ln, {
1108
+ $e(A(e.label) + " ", 1),
1109
+ e.collapsible ? (g(), ae(ln, {
1111
1110
  key: 0,
1112
1111
  collapsed: n.value
1113
1112
  }, null, 8, ["collapsed"])) : re("", !0)
1114
1113
  ], 32),
1115
- Ge(r.$slots, "default", { collapsed: n.value }, () => [
1114
+ Ge(i.$slots, "default", { collapsed: n.value }, () => [
1116
1115
  M(Xe(Oe, {
1117
1116
  modelValue: s.value,
1118
1117
  "onUpdate:modelValue": l[0] || (l[0] = (a) => s.value = a),
@@ -1123,7 +1122,7 @@ const Jt = {
1123
1122
  ], !0)
1124
1123
  ]));
1125
1124
  }
1126
- }), un = /* @__PURE__ */ L(rn, [["__scopeId", "data-v-e7ea7e12"]]), cn = { class: "aform_form-element aform_file-attach aform__grid--full" }, dn = {
1125
+ }), un = /* @__PURE__ */ $(rn, [["__scopeId", "data-v-e7ea7e12"]]), cn = { class: "aform_form-element aform_file-attach aform__grid--full" }, dn = {
1127
1126
  key: 0,
1128
1127
  class: "aform_file-attach-feedback"
1129
1128
  }, fn = ["disabled"], mn = /* @__PURE__ */ C({
@@ -1133,30 +1132,30 @@ const Jt = {
1133
1132
  },
1134
1133
  setup(e) {
1135
1134
  const { files: t, open: n, reset: o, onChange: s } = wt(), u = T(() => `${t.value.length} ${t.value.length === 1 ? "file" : "files"}`);
1136
- return s((r) => r), (r, l) => (g(), w("div", cn, [
1137
- $(t) ? (g(), w("div", dn, [
1135
+ return s((i) => i), (i, l) => (g(), w("div", cn, [
1136
+ S(t) ? (g(), w("div", dn, [
1138
1137
  c("p", null, [
1139
- l[2] || (l[2] = Le(" You have selected: ", -1)),
1138
+ l[2] || (l[2] = $e(" You have selected: ", -1)),
1140
1139
  c("b", null, A(u.value), 1)
1141
1140
  ]),
1142
- (g(!0), w(Y, null, j($(t), (a) => (g(), w("li", {
1141
+ (g(!0), w(Y, null, j(S(t), (a) => (g(), w("li", {
1143
1142
  key: a.name
1144
1143
  }, A(a.name), 1))), 128))
1145
1144
  ])) : re("", !0),
1146
1145
  c("button", {
1147
1146
  type: "button",
1148
- onClick: l[0] || (l[0] = (a) => $(n)()),
1147
+ onClick: l[0] || (l[0] = (a) => S(n)()),
1149
1148
  class: "aform_form-btn"
1150
- }, A(r.label), 1),
1149
+ }, A(e.label), 1),
1151
1150
  c("button", {
1152
1151
  type: "button",
1153
- disabled: !$(t),
1154
- onClick: l[1] || (l[1] = (a) => $(o)()),
1152
+ disabled: !S(t),
1153
+ onClick: l[1] || (l[1] = (a) => S(o)()),
1155
1154
  class: "aform_form-btn"
1156
1155
  }, "Reset", 8, fn)
1157
1156
  ]));
1158
1157
  }
1159
- }), pn = /* @__PURE__ */ L(mn, [["__scopeId", "data-v-0b3a11cc"]]), vn = { class: "aform_form-element" }, hn = ["id", "disabled", "required"], gn = ["for"], yn = ["innerHTML"], bn = /* @__PURE__ */ C({
1158
+ }), pn = /* @__PURE__ */ $(mn, [["__scopeId", "data-v-0b3a11cc"]]), vn = { class: "aform_form-element" }, hn = ["id", "disabled", "required"], gn = ["for"], yn = ["innerHTML"], bn = /* @__PURE__ */ C({
1160
1159
  __name: "ANumericInput",
1161
1160
  props: /* @__PURE__ */ z({
1162
1161
  schema: {},
@@ -1178,21 +1177,21 @@ const Jt = {
1178
1177
  class: "aform_input-field",
1179
1178
  "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
1180
1179
  type: "number",
1181
- id: n.uuid,
1182
- disabled: n.readonly,
1183
- required: n.required
1180
+ id: e.uuid,
1181
+ disabled: e.readonly,
1182
+ required: e.required
1184
1183
  }, null, 8, hn), [
1185
1184
  [H, t.value]
1186
1185
  ]),
1187
1186
  c("label", {
1188
1187
  class: "aform_field-label",
1189
- for: n.uuid
1190
- }, A(n.label), 9, gn),
1188
+ for: e.uuid
1189
+ }, A(e.label), 9, gn),
1191
1190
  M(c("p", {
1192
1191
  class: "aform_error",
1193
- innerHTML: n.validation.errorMessage
1192
+ innerHTML: e.validation.errorMessage
1194
1193
  }, null, 8, yn), [
1195
- [W, n.validation.errorMessage]
1194
+ [W, e.validation.errorMessage]
1196
1195
  ])
1197
1196
  ]));
1198
1197
  }
@@ -1224,7 +1223,7 @@ function kn(e) {
1224
1223
  }
1225
1224
  return t;
1226
1225
  }
1227
- function _n(e, t) {
1226
+ function xn(e, t) {
1228
1227
  let n = e;
1229
1228
  const o = [t, "/", "-", "(", ")", " "];
1230
1229
  for (const s of o)
@@ -1236,8 +1235,8 @@ function Dn(e, t, n) {
1236
1235
  for (const s of e) {
1237
1236
  const u = o.indexOf(n);
1238
1237
  if (u !== -1) {
1239
- const r = o.substring(0, u), l = o.substring(u + 1);
1240
- o = r + s + l;
1238
+ const i = o.substring(0, u), l = o.substring(u + 1);
1239
+ o = i + s + l;
1241
1240
  }
1242
1241
  }
1243
1242
  return o.slice(0, t.length);
@@ -1245,10 +1244,10 @@ function Dn(e, t, n) {
1245
1244
  function En(e, t) {
1246
1245
  const n = kn(t);
1247
1246
  if (!n) return;
1248
- const o = "#", s = e.value, u = _n(s, o);
1247
+ const o = "#", s = e.value, u = xn(s, o);
1249
1248
  if (u) {
1250
- const r = Dn(u, n, o);
1251
- t.instance?.maskFilled && (t.instance.maskFilled = !r.includes(o)), e.value = r;
1249
+ const i = Dn(u, n, o);
1250
+ t.instance?.maskFilled && (t.instance.maskFilled = !i.includes(o)), e.value = i;
1252
1251
  } else
1253
1252
  e.value = n;
1254
1253
  }
@@ -1273,27 +1272,27 @@ const Mn = { class: "aform_form-element" }, An = ["id", "disabled", "maxlength",
1273
1272
  M(c("input", {
1274
1273
  class: "aform_input-field",
1275
1274
  "onUpdate:modelValue": s[0] || (s[0] = (u) => n.value = u),
1276
- id: o.uuid,
1277
- disabled: o.readonly,
1278
- maxlength: o.mask ? t.value && o.mask.length : void 0,
1279
- required: o.required
1275
+ id: e.uuid,
1276
+ disabled: e.readonly,
1277
+ maxlength: e.mask ? t.value && e.mask.length : void 0,
1278
+ required: e.required
1280
1279
  }, null, 8, An), [
1281
1280
  [H, n.value],
1282
- [$(En), o.mask]
1281
+ [S(En), e.mask]
1283
1282
  ]),
1284
1283
  c("label", {
1285
1284
  class: "aform_field-label",
1286
- for: o.uuid
1287
- }, A(o.label), 9, In),
1285
+ for: e.uuid
1286
+ }, A(e.label), 9, In),
1288
1287
  M(c("p", {
1289
1288
  class: "aform_error",
1290
- innerHTML: o.validation.errorMessage
1289
+ innerHTML: e.validation.errorMessage
1291
1290
  }, null, 8, Tn), [
1292
- [W, o.validation.errorMessage]
1291
+ [W, e.validation.errorMessage]
1293
1292
  ])
1294
1293
  ]));
1295
1294
  }
1296
- }), Sn = { class: "login-container" }, $n = { class: "account-container" }, Ln = { class: "account-header" }, xn = { id: "account-title" }, Vn = { id: "account-subtitle" }, Pn = { class: "login-form-container" }, On = { class: "login-form-email aform_form-element" }, Fn = ["disabled"], Rn = { class: "login-form-password aform_form-element" }, Hn = ["disabled"], Bn = ["disabled"], qn = {
1295
+ }), _n = { class: "login-container" }, Sn = { class: "account-container" }, $n = { class: "account-header" }, Ln = { id: "account-title" }, Vn = { id: "account-subtitle" }, Pn = { class: "login-form-container" }, On = { class: "login-form-email aform_form-element" }, Fn = ["disabled"], Rn = { class: "login-form-password aform_form-element" }, Hn = ["disabled"], Bn = ["disabled"], qn = {
1297
1296
  key: 0,
1298
1297
  class: "material-symbols-outlined loading-icon"
1299
1298
  }, Wn = /* @__PURE__ */ C({
@@ -1304,25 +1303,25 @@ const Mn = { class: "aform_form-element" }, An = ["id", "disabled", "maxlength",
1304
1303
  },
1305
1304
  emits: ["loginFailed", "loginSuccess"],
1306
1305
  setup(e, { emit: t }) {
1307
- const n = t, o = D(""), s = D(""), u = D(!1), r = D(!1);
1306
+ const n = t, o = D(""), s = D(""), u = D(!1), i = D(!1);
1308
1307
  function l(a) {
1309
- if (a.preventDefault(), u.value = !0, r.value) {
1308
+ if (a.preventDefault(), u.value = !0, i.value) {
1310
1309
  u.value = !1, n("loginFailed");
1311
1310
  return;
1312
1311
  }
1313
1312
  u.value = !1, n("loginSuccess");
1314
1313
  }
1315
- return (a, i) => (g(), w("div", Sn, [
1314
+ return (a, r) => (g(), w("div", _n, [
1316
1315
  c("div", null, [
1317
- c("div", $n, [
1318
- c("div", Ln, [
1319
- c("h1", xn, A(a.headerTitle), 1),
1320
- c("p", Vn, A(a.headerSubtitle), 1)
1316
+ c("div", Sn, [
1317
+ c("div", $n, [
1318
+ c("h1", Ln, A(e.headerTitle), 1),
1319
+ c("p", Vn, A(e.headerSubtitle), 1)
1321
1320
  ]),
1322
1321
  c("form", { onSubmit: l }, [
1323
1322
  c("div", Pn, [
1324
1323
  c("div", On, [
1325
- i[2] || (i[2] = c("label", {
1324
+ r[2] || (r[2] = c("label", {
1326
1325
  id: "login-email",
1327
1326
  for: "email",
1328
1327
  class: "aform_field-label"
@@ -1333,7 +1332,7 @@ const Mn = { class: "aform_form-element" }, An = ["id", "disabled", "maxlength",
1333
1332
  name: "email",
1334
1333
  placeholder: "name@example.com",
1335
1334
  type: "email",
1336
- "onUpdate:modelValue": i[0] || (i[0] = (f) => o.value = f),
1335
+ "onUpdate:modelValue": r[0] || (r[0] = (f) => o.value = f),
1337
1336
  "auto-capitalize": "none",
1338
1337
  "auto-complete": "email",
1339
1338
  "auto-correct": "off",
@@ -1343,7 +1342,7 @@ const Mn = { class: "aform_form-element" }, An = ["id", "disabled", "maxlength",
1343
1342
  ])
1344
1343
  ]),
1345
1344
  c("div", Rn, [
1346
- i[3] || (i[3] = c("label", {
1345
+ r[3] || (r[3] = c("label", {
1347
1346
  id: "login-password",
1348
1347
  for: "password",
1349
1348
  class: "aform_field-label"
@@ -1353,7 +1352,7 @@ const Mn = { class: "aform_form-element" }, An = ["id", "disabled", "maxlength",
1353
1352
  class: "aform_input-field",
1354
1353
  name: "password",
1355
1354
  type: "password",
1356
- "onUpdate:modelValue": i[1] || (i[1] = (f) => s.value = f),
1355
+ "onUpdate:modelValue": r[1] || (r[1] = (f) => s.value = f),
1357
1356
  disabled: u.value
1358
1357
  }, null, 8, Hn), [
1359
1358
  [H, s.value]
@@ -1365,27 +1364,27 @@ const Mn = { class: "aform_form-element" }, An = ["id", "disabled", "maxlength",
1365
1364
  disabled: u.value || !o.value || !s.value
1366
1365
  }, [
1367
1366
  u.value ? (g(), w("span", qn, "progress_activity")) : re("", !0),
1368
- i[4] || (i[4] = c("span", { id: "login-form-button" }, "Login", -1))
1367
+ r[4] || (r[4] = c("span", { id: "login-form-button" }, "Login", -1))
1369
1368
  ], 8, Bn)
1370
1369
  ])
1371
1370
  ], 32),
1372
- i[5] || (i[5] = c("button", { class: "btn" }, [
1371
+ r[5] || (r[5] = c("button", { class: "btn" }, [
1373
1372
  c("span", { id: "forgot-password-button" }, "Forgot password?")
1374
1373
  ], -1))
1375
1374
  ])
1376
1375
  ])
1377
1376
  ]));
1378
1377
  }
1379
- }), Nn = /* @__PURE__ */ L(Wn, [["__scopeId", "data-v-6cbd3add"]]);
1378
+ }), Nn = /* @__PURE__ */ $(Wn, [["__scopeId", "data-v-6cbd3add"]]);
1380
1379
  function Yn(e) {
1381
- e.component("ACheckbox", ot), e.component("ACombobox", lt), e.component("ADate", ut), e.component("ADropdown", St), e.component("ADatePicker", nn), e.component("AFieldset", un), e.component("AFileAttach", pn), e.component("AForm", Oe), e.component("ANumericInput", bn), e.component("ATextInput", Cn);
1380
+ e.component("ACheckbox", ot), e.component("ACombobox", lt), e.component("ADate", ut), e.component("ADropdown", _t), e.component("ADatePicker", nn), e.component("AFieldset", un), e.component("AFileAttach", pn), e.component("AForm", Oe), e.component("ANumericInput", bn), e.component("ATextInput", Cn);
1382
1381
  }
1383
1382
  export {
1384
1383
  ot as ACheckbox,
1385
1384
  lt as AComboBox,
1386
1385
  ut as ADate,
1387
1386
  nn as ADatePicker,
1388
- St as ADropdown,
1387
+ _t as ADropdown,
1389
1388
  un as AFieldset,
1390
1389
  pn as AFileAttach,
1391
1390
  Oe as AForm,