@stonecrop/aform 0.17.0 → 0.19.0

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,13 +1,13 @@
1
1
  import { install as pe } from "@stonecrop/atable";
2
- import { defineComponent as R, computed as A, useModel as G, openBlock as u, createElementBlock as m, Fragment as L, createElementVNode as a, toDisplayString as g, withDirectives as p, vModelCheckbox as Le, vShow as K, mergeModels as P, useId as qe, ref as S, inject as ie, watch as J, normalizeClass as X, withKeys as _, withModifiers as B, vModelText as Y, createCommentVNode as C, renderList as Z, renderSlot as re, createTextVNode as ae, unref as W, createVNode as le, withCtx as Fe, useTemplateRef as te, onMounted as $e, nextTick as _e, reactive as ce, vModelSelect as Ce, provide as Be, createBlock as O, watchEffect as Re, resolveDynamicComponent as he, mergeProps as Ve } from "vue";
3
- import { vOnClickOutside as me } from "@vueuse/components";
4
- import { onClickOutside as ke, useFileDialog as Ne } from "@vueuse/core";
5
- import './assets/index.css';function ue(e) {
2
+ import { defineComponent as V, computed as I, useModel as G, openBlock as u, createElementBlock as m, Fragment as L, createElementVNode as a, toDisplayString as g, withDirectives as p, vModelCheckbox as Le, vShow as P, mergeModels as Q, useId as qe, ref as A, inject as re, watch as X, normalizeClass as O, withKeys as _, withModifiers as R, vModelText as Y, createCommentVNode as B, renderList as j, renderSlot as fe, createTextVNode as ne, unref as J, createVNode as oe, withCtx as Fe, useTemplateRef as le, onMounted as we, nextTick as _e, reactive as ve, vModelSelect as Ce, provide as Be, createBlock as ee, watchEffect as Re, resolveDynamicComponent as $e, mergeProps as Ve } from "vue";
3
+ import { vOnClickOutside as ye } from "@vueuse/components";
4
+ import { onClickOutside as De, useFileDialog as Ne } from "@vueuse/core";
5
+ import './assets/index.css';function ce(e) {
6
6
  return Function(`"use strict"; return (${e})`)();
7
7
  }
8
- const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" }, Ee = { class: "aform_display-value" }, Ke = ["for"], Pe = { class: "aform_checkbox-container aform_input-field" }, Qe = ["id", "disabled", "required"], Ye = ["innerHTML"], Ge = /* @__PURE__ */ R({
8
+ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" }, Ee = { class: "aform_display-value" }, Ke = ["for"], Pe = { class: "aform_checkbox-container aform_input-field" }, Qe = ["id", "disabled", "required"], Ye = ["innerHTML"], Ge = /* @__PURE__ */ V({
9
9
  __name: "ACheckbox",
10
- props: /* @__PURE__ */ P({
10
+ props: /* @__PURE__ */ Q({
11
11
  schema: {},
12
12
  label: {},
13
13
  selectRange: { type: Boolean },
@@ -23,7 +23,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
23
23
  }),
24
24
  emits: ["update:modelValue"],
25
25
  setup(e) {
26
- const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
26
+ const s = I(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
27
27
  return (c, t) => (u(), m("div", He, [
28
28
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
29
29
  a("label", Ue, g(e.label), 1),
@@ -49,7 +49,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
49
49
  class: "aform_error",
50
50
  innerHTML: s.value
51
51
  }, null, 8, Ye), [
52
- [K, s.value]
52
+ [P, s.value]
53
53
  ])
54
54
  ], 64))
55
55
  ]));
@@ -68,9 +68,9 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
68
68
  }, tt = ["id", "aria-selected", "onMousedown"], at = {
69
69
  key: 0,
70
70
  class: "aform_field-label"
71
- }, lt = /* @__PURE__ */ R({
71
+ }, lt = /* @__PURE__ */ V({
72
72
  __name: "AFormLink",
73
- props: /* @__PURE__ */ P({
73
+ props: /* @__PURE__ */ Q({
74
74
  schema: {},
75
75
  label: {},
76
76
  selectRange: { type: Boolean },
@@ -98,76 +98,89 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
98
98
  }),
99
99
  emits: ["update:modelValue"],
100
100
  setup(e) {
101
- const s = `${e.uuid ?? `aform-link-${qe()}`}-listbox`, n = G(e, "modelValue"), c = A(() => {
102
- const D = n.value?.id;
103
- return D != null && D !== "";
104
- }), t = A(() => c.value ? e.formatter ? e.formatter(n.value) : n.value.displayText ?? String(n.value.id) : "—"), d = S(c.value ? t.value : ""), y = S(!1), k = S(!1), v = S([]), h = S(null), x = ie("aformLinkNavigator", null), $ = ie("aformLinkResolver", null);
105
- J(
106
- () => n.value,
107
- (D) => {
108
- D != null && (typeof D == "string" || typeof D == "number") && (n.value = { id: D });
109
- },
110
- { immediate: !0 }
111
- ), J(
112
- () => n.value?.id,
101
+ const s = `${e.uuid ?? `aform-link-${qe()}`}-listbox`, n = G(e, "modelValue"), c = I(() => T(n.value) !== void 0), t = I(() => {
102
+ const D = T(n.value);
103
+ return D === void 0 ? "—" : e.formatter ? e.formatter(l(n.value)) : f(n.value) ?? D;
104
+ }), d = A(c.value ? t.value : ""), y = A(!1), k = A(!1), v = A([]), h = A(null), x = re("aformLinkNavigator", null), $ = re("aformLinkResolver", null);
105
+ function T(D) {
106
+ if (D == null) return;
107
+ if (typeof D == "string") return D === "" ? void 0 : D;
108
+ if (typeof D == "number") return String(D);
109
+ const C = D.id;
110
+ if (!(C == null || C === ""))
111
+ return String(C);
112
+ }
113
+ function f(D) {
114
+ if (D == null || typeof D != "object") return;
115
+ const C = D.displayText;
116
+ return typeof C == "string" || typeof C == "number" ? String(C) : void 0;
117
+ }
118
+ function l(D) {
119
+ if (D != null && typeof D == "object") return D;
120
+ const C = T(D);
121
+ return C !== void 0 ? { id: C } : { id: "" };
122
+ }
123
+ X(
124
+ () => T(n.value),
113
125
  async (D) => {
114
- if (!(!D || n.value.displayText))
126
+ if (!(!D || f(n.value)))
115
127
  try {
116
- let V, N;
117
- if (e.filterFunction ? (V = (await (typeof e.filterFunction == "string" ? ue(e.filterFunction) : e.filterFunction)(String(D))).find((j) => String(j.id) === String(D)), N = V?.displayText, N === void 0 && console.warn(
128
+ let C, E;
129
+ if (e.filterFunction ? (C = (await (typeof e.filterFunction == "string" ? ce(e.filterFunction) : e.filterFunction)(String(D))).find((ue) => String(ue.id) === String(D)), E = C?.displayText, E === void 0 && console.warn(
118
130
  `[AFormLink] filterFunction returned no matching result for id "${D}". The function must return an item whose \`id\` exactly matches the search string.`
119
- )) : $ && e.doctype && (N = await $(e.doctype, D.toString()) ?? void 0), N) {
120
- const Q = { ...n.value, ...V, id: n.value.id, displayText: N };
121
- d.value = e.formatter ? e.formatter(Q) : N, n.value = Q;
131
+ )) : $ && e.doctype && (E = await $(e.doctype, D.toString()) ?? void 0), E) {
132
+ const Z = { ...l(n.value), ...C, id: D, displayText: E };
133
+ d.value = e.formatter ? e.formatter(Z) : E, n.value = Z;
122
134
  }
123
135
  } catch {
124
136
  }
125
137
  },
126
138
  { immediate: !0 }
127
139
  );
128
- const I = () => {
129
- x && e.doctype ? x.navigate(e.doctype, n.value.id) : x && !e.doctype && console.warn(
140
+ const o = () => {
141
+ const D = T(n.value);
142
+ x && e.doctype && D !== void 0 ? x.navigate(e.doctype, D) : x && !e.doctype && console.warn(
130
143
  "[AFormLink] Navigation requested but `doctype` prop is missing. Add `options` (or `doctype`) to the Link field definition to enable navigation."
131
144
  );
132
- }, f = async (D) => {
145
+ }, i = async (D) => {
133
146
  if (!(!e.filterFunction || e.mode === "read")) {
134
147
  h.value = null, y.value = !0, e.isAsync && (k.value = !0);
135
148
  try {
136
- const V = typeof e.filterFunction == "string" ? ue(e.filterFunction) : e.filterFunction;
137
- v.value = await V(D) ?? [];
149
+ const C = typeof e.filterFunction == "string" ? ce(e.filterFunction) : e.filterFunction;
150
+ v.value = await C(D) ?? [];
138
151
  } catch {
139
152
  v.value = [];
140
153
  } finally {
141
154
  k.value = !1;
142
155
  }
143
156
  }
144
- }, l = () => {
157
+ }, w = () => {
145
158
  y.value = !1, h.value = null, d.value = c.value ? t.value : "";
146
- }, o = () => {
147
- y.value && l();
148
- }, i = () => f(d.value), w = () => f(d.value), r = (D) => {
159
+ }, r = () => {
160
+ y.value && w();
161
+ }, F = () => i(d.value), b = () => i(d.value), q = (D) => {
149
162
  n.value = D, d.value = e.formatter ? e.formatter(D) : D.displayText ?? String(D.id), y.value = !1, h.value = null;
150
- }, F = () => {
163
+ }, N = () => {
151
164
  const D = v.value.length;
152
165
  D && (h.value = h.value === null ? 0 : (h.value + 1) % D);
153
- }, b = () => {
166
+ }, W = () => {
154
167
  v.value.length && (h.value === null || h.value === 0 ? h.value = null : h.value -= 1);
155
- }, q = () => {
156
- h.value !== null && v.value[h.value] && r(v.value[h.value]);
168
+ }, te = () => {
169
+ h.value !== null && v.value[h.value] && q(v.value[h.value]);
157
170
  };
158
- return (D, V) => (u(), m("div", {
159
- class: X(["aform_form-element", { "aform_form-element--embedded": e.embedded }])
171
+ return (D, C) => (u(), m("div", {
172
+ class: O(["aform_form-element", { "aform_form-element--embedded": e.embedded }])
160
173
  }, [
161
174
  e.mode === "display" ? (u(), m("span", We, g(t.value), 1)) : (u(), m(L, { key: 1 }, [
162
175
  p((u(), m("div", Je, [
163
176
  a("div", Xe, [
164
177
  p(a("input", {
165
- "onUpdate:modelValue": V[0] || (V[0] = (N) => d.value = N),
178
+ "onUpdate:modelValue": C[0] || (C[0] = (E) => d.value = E),
166
179
  type: "text",
167
180
  role: "combobox",
168
181
  autocomplete: "off",
169
182
  "aria-autocomplete": "list",
170
- class: X(["aform_input-field", { "aform_input-field--embedded": e.embedded }]),
183
+ class: O(["aform_input-field", { "aform_input-field--embedded": e.embedded }]),
171
184
  placeholder: e.placeholder,
172
185
  "aria-label": e.ariaLabel,
173
186
  required: e.required,
@@ -175,14 +188,14 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
175
188
  "aria-controls": y.value ? s : void 0,
176
189
  "aria-activedescendant": h.value === null ? void 0 : `${s}-opt-${h.value}`,
177
190
  disabled: e.disabled || e.mode === "read",
178
- onInput: w,
179
- onFocus: i,
191
+ onInput: b,
192
+ onFocus: F,
180
193
  onKeydown: [
181
- _(B(F, ["prevent"]), ["down"]),
182
- _(B(b, ["prevent"]), ["up"]),
183
- _(B(q, ["prevent"]), ["enter"]),
184
- _(l, ["esc"]),
185
- _(l, ["tab"])
194
+ _(R(N, ["prevent"]), ["down"]),
195
+ _(R(W, ["prevent"]), ["up"]),
196
+ _(R(te, ["prevent"]), ["enter"]),
197
+ _(w, ["esc"]),
198
+ _(w, ["tab"])
186
199
  ]
187
200
  }, null, 42, Ze), [
188
201
  [Y, d.value]
@@ -191,11 +204,11 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
191
204
  key: 0,
192
205
  type: "button",
193
206
  class: "aform_form-btn",
194
- onClick: I,
195
- onKeydown: _(B(I, ["prevent"]), ["enter"])
207
+ onClick: o,
208
+ onKeydown: _(R(o, ["prevent"]), ["enter"])
196
209
  }, [
197
210
  a("span", null, g(e.icon === "chevron-right" ? "›" : "→"), 1)
198
- ], 40, Oe)) : C("", !0)
211
+ ], 40, Oe)) : B("", !0)
199
212
  ]),
200
213
  y.value ? (u(), m("ul", {
201
214
  key: 0,
@@ -204,29 +217,29 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
204
217
  role: "listbox",
205
218
  "aria-label": e.ariaLabel
206
219
  }, [
207
- k.value ? (u(), m("li", et, "Loading…")) : (u(!0), m(L, { key: 1 }, Z(v.value, (N, Q) => (u(), m("li", {
208
- id: `${s}-opt-${Q}`,
209
- key: String(N.id),
220
+ k.value ? (u(), m("li", et, "Loading…")) : (u(!0), m(L, { key: 1 }, j(v.value, (E, Z) => (u(), m("li", {
221
+ id: `${s}-opt-${Z}`,
222
+ key: String(E.id),
210
223
  role: "option",
211
- "aria-selected": Q === h.value,
212
- class: X(["autocomplete-result", { "is-active": Q === h.value }]),
213
- onMousedown: B((se) => r(N), ["prevent"])
224
+ "aria-selected": Z === h.value,
225
+ class: O(["autocomplete-result", { "is-active": Z === h.value }]),
226
+ onMousedown: R((ie) => q(E), ["prevent"])
214
227
  }, [
215
- re(D.$slots, "option", { option: N }, () => [
216
- ae(g(N.displayText ?? String(N.id)), 1)
228
+ fe(D.$slots, "option", { option: E }, () => [
229
+ ne(g(E.displayText ?? String(E.id)), 1)
217
230
  ], !0)
218
231
  ], 42, tt))), 128))
219
- ], 8, je)) : C("", !0)
232
+ ], 8, je)) : B("", !0)
220
233
  ])), [
221
- [W(me), o]
234
+ [J(ye), r]
222
235
  ]),
223
- e.label && !e.embedded ? (u(), m("label", at, g(e.label), 1)) : C("", !0)
236
+ e.label && !e.embedded ? (u(), m("label", at, g(e.label), 1)) : B("", !0)
224
237
  ], 64))
225
238
  ], 2));
226
239
  }
227
- }), xe = /* @__PURE__ */ U(lt, [["__scopeId", "data-v-eb2fee75"]]), nt = { class: "aform_form-element acurrency" }, st = { class: "aform_display-value" }, ot = { class: "aform_field-label" }, it = { class: "acurrency__row" }, ut = { class: "acurrency__field acurrency__field--amount" }, dt = { class: "acurrency__group" }, rt = { class: "acurrency__currency" }, ct = { class: "acurrency__amount-wrap" }, mt = ["id", "disabled", "required"], ft = ["for"], vt = { class: "acurrency__row acurrency__row--base" }, yt = { class: "acurrency__field acurrency__field--base-currency" }, ht = ["value"], bt = { class: "aform_field-label" }, gt = { class: "acurrency__field acurrency__field--base-amount" }, $t = ["value"], kt = { class: "aform_field-label" }, xt = { class: "acurrency__field acurrency__field--exchange-rate" }, wt = ["value"], Dt = { class: "aform_field-label" }, Mt = ["innerHTML"], be = 6, Tt = /* @__PURE__ */ R({
240
+ }), Me = /* @__PURE__ */ U(lt, [["__scopeId", "data-v-154d79c9"]]), nt = { class: "aform_form-element acurrency" }, ot = { class: "aform_display-value" }, st = { class: "aform_field-label" }, it = { class: "acurrency__row" }, ut = { class: "acurrency__field acurrency__field--amount" }, dt = { class: "acurrency__group" }, rt = { class: "acurrency__currency" }, ct = { class: "acurrency__amount-wrap" }, mt = ["id", "disabled", "required"], ft = ["for"], vt = { class: "acurrency__row acurrency__row--base" }, yt = { class: "acurrency__field acurrency__field--base-currency" }, ht = ["value"], bt = { class: "aform_field-label" }, gt = { class: "acurrency__field acurrency__field--base-amount" }, $t = ["value"], kt = { class: "aform_field-label" }, xt = { class: "acurrency__field acurrency__field--exchange-rate" }, wt = ["value"], Dt = { class: "aform_field-label" }, Mt = ["innerHTML"], ke = 6, Tt = /* @__PURE__ */ V({
228
241
  __name: "ACurrencyInput",
229
- props: /* @__PURE__ */ P({
242
+ props: /* @__PURE__ */ Q({
230
243
  schema: {},
231
244
  label: {},
232
245
  selectRange: { type: Boolean },
@@ -255,11 +268,11 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
255
268
  }),
256
269
  emits: ["update:modelValue"],
257
270
  setup(e) {
258
- const s = (r) => r.symbol ?? r.displayText ?? String(r.id), n = G(e, "modelValue"), c = A(() => {
271
+ const s = (r) => r.symbol ?? r.displayText ?? String(r.id), n = G(e, "modelValue"), c = I(() => {
259
272
  const r = e.options.baseCurrency ?? n.value?.baseCurrency;
260
273
  return r ? typeof r == "string" ? { id: r } : r : { id: "" };
261
- }), t = ie("aformLinkResolver", null), d = S(c.value);
262
- J(
274
+ }), t = re("aformLinkResolver", null), d = A(c.value);
275
+ X(
263
276
  c,
264
277
  async (r) => {
265
278
  if (!r.id || r.displayText || !t || !e.options.doctype) {
@@ -275,15 +288,15 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
275
288
  },
276
289
  { immediate: !0 }
277
290
  );
278
- const y = A(() => {
291
+ const y = I(() => {
279
292
  const r = d.value;
280
293
  return r?.id ? r.displayText ?? String(r.id) : "";
281
294
  }), k = (r) => {
282
295
  const F = d.value.id;
283
296
  return !r || String(r) === String(F) ? 1 : String(r) === String(n.value?.currency?.id) ? n.value?.exchangeRate ?? e.options.exchangeRates?.[String(r)] ?? 1 : e.options.exchangeRates?.[String(r)] ?? 1;
284
- }, v = A(() => {
297
+ }, v = I(() => {
285
298
  const { precision: r } = e.options;
286
- return r === void 0 ? be : Number.isInteger(r) && r >= 0 && r <= 100 ? r : be;
299
+ return r === void 0 ? ke : Number.isInteger(r) && r >= 0 && r <= 100 ? r : ke;
287
300
  }), h = (r) => Number(r.toFixed(v.value)), x = (r, F) => {
288
301
  const b = k(F.id);
289
302
  n.value = {
@@ -293,10 +306,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
293
306
  baseCurrency: d.value,
294
307
  baseAmount: h(r * b)
295
308
  };
296
- }, $ = A({
309
+ }, $ = I({
297
310
  get: () => n.value?.amount ?? 0,
298
311
  set: (r) => x(r, n.value?.currency ?? { id: "" })
299
- }), I = A({
312
+ }), T = I({
300
313
  get: () => n.value?.currency ?? { id: "" },
301
314
  set: (r) => x(n.value?.amount ?? 0, r)
302
315
  }), f = /* @__PURE__ */ new Set([
@@ -318,10 +331,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
318
331
  }, o = (r) => {
319
332
  const F = r.clipboardData?.getData("text") ?? "";
320
333
  /^-?\d*\.?\d*$/.test(F) || r.preventDefault();
321
- }, i = A(() => {
334
+ }, i = I(() => {
322
335
  const r = n.value;
323
336
  return !!r?.baseCurrency?.id && (r.currency?.id !== r.baseCurrency?.id || r.amount !== r.baseAmount);
324
- }), w = A(() => {
337
+ }), w = I(() => {
325
338
  const r = n.value;
326
339
  if (!r || !r.currency?.id) return "—";
327
340
  const F = r.currency.displayText ?? String(r.currency.id), b = `${r.amount} ${F}`;
@@ -331,16 +344,16 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
331
344
  });
332
345
  return (r, F) => (u(), m("div", nt, [
333
346
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
334
- a("span", st, g(w.value), 1),
335
- a("label", ot, g(e.label), 1)
347
+ a("span", ot, g(w.value), 1),
348
+ a("label", st, g(e.label), 1)
336
349
  ], 64)) : (u(), m(L, { key: 1 }, [
337
350
  a("div", it, [
338
351
  a("div", ut, [
339
352
  a("div", dt, [
340
353
  a("div", rt, [
341
- le(xe, {
342
- modelValue: I.value,
343
- "onUpdate:modelValue": F[0] || (F[0] = (b) => I.value = b),
354
+ oe(Me, {
355
+ modelValue: T.value,
356
+ "onUpdate:modelValue": F[0] || (F[0] = (b) => T.value = b),
344
357
  mode: e.mode,
345
358
  embedded: "",
346
359
  placeholder: e.currencyLabel,
@@ -352,7 +365,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
352
365
  "is-async": e.options.isAsync
353
366
  }, {
354
367
  option: Fe(({ option: b }) => [
355
- ae(g(b.symbol ? `${b.symbol} — ` : "") + g(b.displayText ?? b.id), 1)
368
+ ne(g(b.symbol ? `${b.symbol} — ` : "") + g(b.displayText ?? b.id), 1)
356
369
  ]),
357
370
  _: 1
358
371
  }, 8, ["modelValue", "mode", "placeholder", "aria-label", "required", "doctype", "filter-function", "is-async"])
@@ -416,7 +429,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
416
429
  class: "aform_error",
417
430
  innerHTML: e.validation.errorMessage
418
431
  }, null, 8, Mt), [
419
- [K, e.validation.errorMessage]
432
+ [P, e.validation.errorMessage]
420
433
  ])
421
434
  ], 64))
422
435
  ]));
@@ -428,9 +441,9 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
428
441
  }, qt = {
429
442
  colspan: "5",
430
443
  tabindex: -1
431
- }, Ft = { key: 0 }, _t = { colspan: "7" }, Ct = { class: "date-input" }, Bt = ["value"], Rt = ["value"], Vt = ["onClick", "onKeydown", "onMouseover"], Nt = ["innerHTML"], Ht = 6, ge = 7, Ut = /* @__PURE__ */ R({
444
+ }, Ft = { key: 0 }, _t = { colspan: "7" }, Ct = { class: "date-input" }, Bt = ["value"], Rt = ["value"], Vt = ["onClick", "onKeydown", "onMouseover"], Nt = ["innerHTML"], Ht = 6, xe = 7, Ut = /* @__PURE__ */ V({
432
445
  __name: "ADatePicker",
433
- props: /* @__PURE__ */ P({
446
+ props: /* @__PURE__ */ Q({
434
447
  schema: {},
435
448
  label: {},
436
449
  selectRange: { type: Boolean, default: !1 },
@@ -444,52 +457,52 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
444
457
  modelValue: { default: () => /* @__PURE__ */ new Date() },
445
458
  modelModifiers: {}
446
459
  }),
447
- emits: /* @__PURE__ */ P(["get-date"], ["update:modelValue"]),
460
+ emits: /* @__PURE__ */ Q(["get-date"], ["update:modelValue"]),
448
461
  setup(e, { expose: s, emit: n }) {
449
- const c = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), t = G(e, "modelValue"), d = S(new Date(t.value)), y = S(d.value.getMonth()), k = S(d.value.getFullYear()), v = S([]), h = S(new Date(t.value)), x = S(null), $ = S(null), I = te("start-date-input"), f = te("end-date-input"), l = n, o = A(() => new Date(k.value, y.value, 1).toLocaleDateString(void 0, {
462
+ const c = I(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), t = G(e, "modelValue"), d = A(new Date(t.value)), y = A(d.value.getMonth()), k = A(d.value.getFullYear()), v = A([]), h = A(new Date(t.value)), x = A(null), $ = A(null), T = le("start-date-input"), f = le("end-date-input"), l = n, o = I(() => new Date(k.value, y.value, 1).toLocaleDateString(void 0, {
450
463
  year: "numeric",
451
464
  month: "long"
452
- })), i = A(() => x.value != null ? r(x.value) : ""), w = A(() => $.value != null ? r($.value) : ""), r = (M) => z(M) ? M.getMonth() + 1 + "/" + M.getDate() + "/" + M.getFullYear() : "", F = (M) => {
453
- const T = /* @__PURE__ */ new Date();
454
- return y.value !== T.getMonth() ? !1 : T.toDateString() === new Date(M).toDateString();
465
+ })), i = I(() => x.value != null ? r(x.value) : ""), w = I(() => $.value != null ? r($.value) : ""), r = (M) => z(M) ? M.getMonth() + 1 + "/" + M.getDate() + "/" + M.getFullYear() : "", F = (M) => {
466
+ const S = /* @__PURE__ */ new Date();
467
+ return y.value !== S.getMonth() ? !1 : S.toDateString() === new Date(M).toDateString();
455
468
  }, b = (M) => new Date(M).toDateString() === new Date(d.value).toDateString(), q = (M) => {
456
- const T = x.value;
457
- return z(T) ? new Date(M).toDateString() === T.toDateString() : !1;
458
- }, D = (M) => {
459
- const T = $.value;
460
- return z(T) ? new Date(M).toDateString() === T.toDateString() : !1;
461
- }, V = (M, T) => (M - 1) * ge + T, N = (M) => {
462
- const T = x.value;
463
- if (!z(T)) return !1;
464
- const H = new Date(M), E = $.value, ee = z(E) ? E : new Date(h.value);
465
- return H.getTime() > T.getTime() && H.getTime() < ee.getTime();
466
- }, Q = (M, T) => v.value[V(M, T)], se = (M) => {
469
+ const S = x.value;
470
+ return z(S) ? new Date(M).toDateString() === S.toDateString() : !1;
471
+ }, N = (M) => {
472
+ const S = $.value;
473
+ return z(S) ? new Date(M).toDateString() === S.toDateString() : !1;
474
+ }, W = (M, S) => (M - 1) * xe + S, te = (M) => {
475
+ const S = x.value;
476
+ if (!z(S)) return !1;
477
+ const H = new Date(M), K = $.value, ae = z(K) ? K : new Date(h.value);
478
+ return H.getTime() > S.getTime() && H.getTime() < ae.getTime();
479
+ }, D = (M, S) => v.value[W(M, S)], C = (M) => {
467
480
  h.value = new Date(v.value[M]);
468
- }, j = () => {
481
+ }, E = () => {
469
482
  v.value = [];
470
- const M = new Date(k.value, y.value, 1), T = M.getDay(), H = M.setDate(M.getDate() - T);
471
- for (const E of Array(43).keys())
472
- v.value.push(H + E * 864e5);
473
- }, Me = () => k.value -= 1, Te = () => k.value += 1, Se = () => {
474
- y.value == 0 ? (y.value = 11, Me()) : y.value -= 1;
483
+ const M = new Date(k.value, y.value, 1), S = M.getDay(), H = M.setDate(M.getDate() - S);
484
+ for (const K of Array(43).keys())
485
+ v.value.push(H + K * 864e5);
486
+ }, Z = () => k.value -= 1, ie = () => k.value += 1, ue = () => {
487
+ y.value == 0 ? (y.value = 11, Z()) : y.value -= 1;
475
488
  }, Ae = () => {
476
- y.value == 11 ? (y.value = 0, Te()) : y.value += 1;
477
- }, fe = (M) => {
478
- M.key === "Enter" && oe();
479
- }, ve = (M) => {
489
+ y.value == 11 ? (y.value = 0, ie()) : y.value += 1;
490
+ }, he = (M) => {
491
+ M.key === "Enter" && de();
492
+ }, be = (M) => {
480
493
  if (t.value = d.value = new Date(v.value[M]), e.selectRange) {
481
- const T = x.value;
482
- T == null || $.value != null ? (x.value = t.value, $.value = null) : z(T) && d.value.getTime() < T.getTime() ? ($.value = null, x.value = t.value) : $.value = t.value, I.value && (I.value.value = r(x.value) ?? ""), f.value && (f.value.value = r($.value) ?? "");
494
+ const S = x.value;
495
+ S == null || $.value != null ? (x.value = t.value, $.value = null) : z(S) && d.value.getTime() < S.getTime() ? ($.value = null, x.value = t.value) : $.value = t.value, T.value && (T.value.value = r(x.value) ?? ""), f.value && (f.value.value = r($.value) ?? "");
483
496
  }
484
- ye();
497
+ ge();
485
498
  }, Ie = () => {
486
- const M = x.value, T = $.value;
487
- z(T) && z(M) && T.getTime() < M.getTime() && ([x.value, $.value] = [T, M]);
488
- }, z = (M) => M instanceof Date && !isNaN(M.getTime()), oe = () => {
489
- if (I.value?.value == "")
499
+ const M = x.value, S = $.value;
500
+ z(S) && z(M) && S.getTime() < M.getTime() && ([x.value, $.value] = [S, M]);
501
+ }, z = (M) => M instanceof Date && !isNaN(M.getTime()), de = () => {
502
+ if (T.value?.value == "")
490
503
  x.value = null;
491
- else if (I.value) {
492
- const M = new Date(I.value.value);
504
+ else if (T.value) {
505
+ const M = new Date(T.value.value);
493
506
  x.value = z(M) ? M : null;
494
507
  }
495
508
  if (f.value?.value == "")
@@ -498,31 +511,31 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
498
511
  const M = new Date(f.value.value);
499
512
  $.value = z(M) ? M : null;
500
513
  }
501
- z(x.value) && (z($.value) && Ie(), d.value = x.value), ye();
502
- }, ye = () => {
514
+ z(x.value) && (z($.value) && Ie(), d.value = x.value), ge();
515
+ }, ge = () => {
503
516
  l("get-date", {
504
517
  start: e.selectRange ? x.value : null,
505
518
  end: e.selectRange ? $.value : null,
506
519
  selected: d.value
507
520
  });
508
521
  };
509
- return $e(async () => {
510
- j(), await _e();
522
+ return we(async () => {
523
+ E(), await _e();
511
524
  const M = document.getElementsByClassName("selectedDate");
512
525
  if (M.length > 0)
513
526
  M[0].focus();
514
527
  else {
515
- const T = document.getElementsByClassName("todaysDate");
516
- T.length > 0 && T[0].focus();
528
+ const S = document.getElementsByClassName("todaysDate");
529
+ S.length > 0 && S[0].focus();
517
530
  }
518
- }), J([y, k], j), s({ currentMonth: y, currentYear: k, selectedDate: d }), (M, T) => e.mode === "display" || e.mode === "read" ? (u(), m(L, { key: 0 }, [
531
+ }), X([y, k], E), s({ currentMonth: y, currentYear: k, selectedDate: d }), (M, S) => e.mode === "display" || e.mode === "read" ? (u(), m(L, { key: 0 }, [
519
532
  a("span", At, g(t.value ? new Date(t.value).toLocaleDateString() : ""), 1),
520
- e.label ? (u(), m("label", It, g(e.label), 1)) : C("", !0),
533
+ e.label ? (u(), m("label", It, g(e.label), 1)) : B("", !0),
521
534
  p(a("p", {
522
535
  class: "aform_error",
523
536
  innerHTML: c.value
524
537
  }, null, 8, pt), [
525
- [K, c.value]
538
+ [P, c.value]
526
539
  ])
527
540
  ], 64)) : (u(), m(L, { key: 1 }, [
528
541
  a("div", Lt, [
@@ -532,7 +545,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
532
545
  a("td", {
533
546
  id: "previous-month-btn",
534
547
  tabindex: -1,
535
- onClick: Se
548
+ onClick: ue
536
549
  }, "<"),
537
550
  a("th", qt, g(o.value), 1),
538
551
  a("td", {
@@ -550,23 +563,23 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
550
563
  class: "date-input-start aform_input-field",
551
564
  type: "text",
552
565
  placeholder: "start date",
553
- onBlur: T[0] || (T[0] = (H) => oe()),
554
- onKeydown: fe
566
+ onBlur: S[0] || (S[0] = (H) => de()),
567
+ onKeydown: he
555
568
  }, null, 40, Bt),
556
- T[2] || (T[2] = a("div", null, "-", -1)),
569
+ S[2] || (S[2] = a("div", null, "-", -1)),
557
570
  a("input", {
558
571
  ref: "end-date-input",
559
572
  value: w.value,
560
573
  class: "date-input-end aform_input-field",
561
574
  type: "text",
562
575
  placeholder: "end date",
563
- onBlur: T[1] || (T[1] = (H) => oe()),
564
- onKeydown: fe
576
+ onBlur: S[1] || (S[1] = (H) => de()),
577
+ onKeydown: he
565
578
  }, null, 40, Rt)
566
579
  ])
567
580
  ])
568
- ])) : C("", !0),
569
- T[3] || (T[3] = a("tr", { class: "days-header" }, [
581
+ ])) : B("", !0),
582
+ S[3] || (S[3] = a("tr", { class: "days-header" }, [
570
583
  a("td", null, "M"),
571
584
  a("td", null, "T"),
572
585
  a("td", null, "W"),
@@ -575,25 +588,25 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
575
588
  a("td", null, "S"),
576
589
  a("td", null, "S")
577
590
  ], -1)),
578
- (u(), m(L, null, Z(Ht, (H) => a("tr", { key: H }, [
579
- (u(), m(L, null, Z(ge, (E) => a("td", {
591
+ (u(), m(L, null, j(Ht, (H) => a("tr", { key: H }, [
592
+ (u(), m(L, null, j(xe, (K) => a("td", {
580
593
  ref_for: !0,
581
594
  ref: "celldate",
582
- key: V(H, E),
583
- class: X(["date-cell", {
584
- todaysDate: F(Q(H, E)),
585
- selectedDate: b(Q(H, E)),
586
- withinRange: e.selectRange ? N(Q(H, E)) : !1,
587
- startDate: e.selectRange ? q(Q(H, E)) : !1,
588
- endDate: e.selectRange ? D(Q(H, E)) : !1
595
+ key: W(H, K),
596
+ class: O(["date-cell", {
597
+ todaysDate: F(D(H, K)),
598
+ selectedDate: b(D(H, K)),
599
+ withinRange: e.selectRange ? te(D(H, K)) : !1,
600
+ startDate: e.selectRange ? q(D(H, K)) : !1,
601
+ endDate: e.selectRange ? N(D(H, K)) : !1
589
602
  }]),
590
603
  contenteditable: !1,
591
604
  spellcheck: !1,
592
605
  tabindex: 0,
593
- onClick: B((ee) => ve(V(H, E)), ["prevent", "stop"]),
594
- onKeydown: _((ee) => ve(V(H, E)), ["enter"]),
595
- onMouseover: (ee) => se(V(H, E))
596
- }, g(new Date(Q(H, E)).getDate()), 43, Vt)), 64))
606
+ onClick: R((ae) => be(W(H, K)), ["prevent", "stop"]),
607
+ onKeydown: _((ae) => be(W(H, K)), ["enter"]),
608
+ onMouseover: (ae) => C(W(H, K))
609
+ }, g(new Date(D(H, K)).getDate()), 43, Vt)), 64))
597
610
  ])), 64))
598
611
  ])
599
612
  ])
@@ -602,14 +615,14 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
602
615
  class: "aform_error",
603
616
  innerHTML: c.value
604
617
  }, null, 8, Nt), [
605
- [K, c.value]
618
+ [P, c.value]
606
619
  ])
607
620
  ], 64));
608
621
  }
609
- }), we = /* @__PURE__ */ U(Ut, [["__scopeId", "data-v-9e85c95a"]]), Et = { class: "adate_time" }, Kt = { class: "adate_time_fields" }, Pt = ["onKeydown"], Qt = ["onKeydown"], Yt = {
622
+ }), Te = /* @__PURE__ */ U(Ut, [["__scopeId", "data-v-9e85c95a"]]), Et = { class: "adate_time" }, Kt = { class: "adate_time_fields" }, Pt = ["onKeydown"], Qt = ["onKeydown"], Yt = {
610
623
  key: 0,
611
624
  class: "colon"
612
- }, Gt = ["onKeydown"], zt = /* @__PURE__ */ R({
625
+ }, Gt = ["onKeydown"], zt = /* @__PURE__ */ V({
613
626
  __name: "ADateTime",
614
627
  props: {
615
628
  allowMilitaryTime: { type: Boolean, default: !1 },
@@ -621,12 +634,12 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
621
634
  },
622
635
  emits: ["get-time"],
623
636
  setup(e, { emit: s }) {
624
- const n = s, c = te("meridiem-selector"), t = ce({
637
+ const n = s, c = le("meridiem-selector"), t = ve({
625
638
  hours: String(e.defaultHours).padStart(2, "0"),
626
639
  minutes: String(e.defaultMinutes).padStart(2, "0"),
627
640
  seconds: String(e.defaultSeconds).padStart(2, "0")
628
- }), d = S(e.defaultMeridiem == "AM" ? "AM" : "PM");
629
- $e(() => {
641
+ }), d = A(e.defaultMeridiem == "AM" ? "AM" : "PM");
642
+ we(() => {
630
643
  k();
631
644
  });
632
645
  const y = () => {
@@ -656,17 +669,17 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
656
669
  const r = Number(t.hours);
657
670
  !e.allowMilitaryTime && r !== w && (w === 11 && r === 12 || w === 12 && r === 11) && $(), t.hours = String(x(Number(t.hours), i, o)).padStart(2, "0"), t.minutes = String(x(Number(t.minutes), 0, 59)).padStart(2, "0"), t.seconds = String(x(Number(t.seconds), 0, 59)).padStart(2, "0");
658
671
  };
659
- J(
672
+ X(
660
673
  () => t.hours,
661
674
  (f, l) => {
662
675
  t.hours = Number(f) > 99 ? l : f;
663
676
  }
664
- ), J(
677
+ ), X(
665
678
  () => t.minutes,
666
679
  (f, l) => {
667
680
  t.minutes = Number(f) > 99 ? l : f;
668
681
  }
669
- ), J(
682
+ ), X(
670
683
  () => t.seconds,
671
684
  (f, l) => {
672
685
  t.seconds = Number(f) > 99 ? l : f;
@@ -674,7 +687,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
674
687
  );
675
688
  const x = (f, l, o) => f > o ? l : f < l ? o : f, $ = () => {
676
689
  d.value = d.value == "PM" ? "AM" : "PM", k();
677
- }, I = (f, l = !1) => {
690
+ }, T = (f, l = !1) => {
678
691
  f.stopPropagation(), f.preventDefault();
679
692
  const o = f.clipboardData;
680
693
  if (!o) return;
@@ -696,13 +709,13 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
696
709
  "onUpdate:modelValue": l[0] || (l[0] = (o) => t.hours = o),
697
710
  type: "text",
698
711
  inputmode: "numeric",
699
- onPaste: l[1] || (l[1] = (o) => I(o, !0)),
712
+ onPaste: l[1] || (l[1] = (o) => T(o, !0)),
700
713
  onFocus: v,
701
714
  onBlur: y,
702
715
  onKeydown: [
703
- _(B(y, ["prevent"]), ["enter"]),
704
- l[2] || (l[2] = _(B((o) => h("hours"), ["prevent"]), ["up"])),
705
- l[3] || (l[3] = _(B((o) => h("hours", -1), ["prevent"]), ["down"]))
716
+ _(R(y, ["prevent"]), ["enter"]),
717
+ l[2] || (l[2] = _(R((o) => h("hours"), ["prevent"]), ["up"])),
718
+ l[3] || (l[3] = _(R((o) => h("hours", -1), ["prevent"]), ["down"]))
706
719
  ]
707
720
  }, null, 40, Pt), [
708
721
  [Y, t.hours]
@@ -712,35 +725,35 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
712
725
  "onUpdate:modelValue": l[4] || (l[4] = (o) => t.minutes = o),
713
726
  type: "text",
714
727
  inputmode: "numeric",
715
- onPaste: I,
728
+ onPaste: T,
716
729
  onFocus: v,
717
730
  onBlur: y,
718
731
  onKeydown: [
719
- _(B(y, ["prevent"]), ["enter"]),
720
- l[5] || (l[5] = _(B((o) => h("minutes"), ["prevent"]), ["up"])),
721
- l[6] || (l[6] = _(B((o) => h("minutes", -1), ["prevent"]), ["down"]))
732
+ _(R(y, ["prevent"]), ["enter"]),
733
+ l[5] || (l[5] = _(R((o) => h("minutes"), ["prevent"]), ["up"])),
734
+ l[6] || (l[6] = _(R((o) => h("minutes", -1), ["prevent"]), ["down"]))
722
735
  ]
723
736
  }, null, 40, Qt), [
724
737
  [Y, t.minutes]
725
738
  ]),
726
- e.useSeconds ? (u(), m("span", Yt, ":")) : C("", !0),
739
+ e.useSeconds ? (u(), m("span", Yt, ":")) : B("", !0),
727
740
  e.useSeconds ? p((u(), m("input", {
728
741
  key: 1,
729
742
  "onUpdate:modelValue": l[7] || (l[7] = (o) => t.seconds = o),
730
743
  type: "text",
731
744
  inputmode: "numeric",
732
- onPaste: I,
745
+ onPaste: T,
733
746
  onFocus: v,
734
747
  onBlur: y,
735
748
  onKeydown: [
736
- _(B(y, ["prevent"]), ["enter"]),
737
- l[8] || (l[8] = _(B((o) => h("seconds"), ["prevent"]), ["up"])),
738
- l[9] || (l[9] = _(B((o) => h("seconds", -1), ["prevent"]), ["down"]))
749
+ _(R(y, ["prevent"]), ["enter"]),
750
+ l[8] || (l[8] = _(R((o) => h("seconds"), ["prevent"]), ["up"])),
751
+ l[9] || (l[9] = _(R((o) => h("seconds", -1), ["prevent"]), ["down"]))
739
752
  ]
740
753
  }, null, 40, Gt)), [
741
754
  [Y, t.seconds]
742
- ]) : C("", !0),
743
- e.allowMilitaryTime ? C("", !0) : p((u(), m("select", {
755
+ ]) : B("", !0),
756
+ e.allowMilitaryTime ? B("", !0) : p((u(), m("select", {
744
757
  key: 2,
745
758
  ref: "meridiem-selector",
746
759
  "onUpdate:modelValue": l[10] || (l[10] = (o) => d.value = o),
@@ -755,10 +768,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
755
768
  ])
756
769
  ]));
757
770
  }
758
- }), de = /* @__PURE__ */ U(zt, [["__scopeId", "data-v-959a3e41"]]), Wt = { class: "adate-selection" }, Jt = {
771
+ }), me = /* @__PURE__ */ U(zt, [["__scopeId", "data-v-959a3e41"]]), Wt = { class: "adate-selection" }, Jt = {
759
772
  key: 3,
760
773
  class: "empty"
761
- }, Xt = /* @__PURE__ */ R({
774
+ }, Xt = /* @__PURE__ */ V({
762
775
  __name: "ADateSelection",
763
776
  props: {
764
777
  showDate: { type: Boolean, default: !0 },
@@ -776,7 +789,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
776
789
  setup(e, { emit: s }) {
777
790
  const n = s;
778
791
  Be("select-range", e.selectRange);
779
- const c = /* @__PURE__ */ new Date(), t = S(c), d = S(c), y = S(0), k = S(0), v = (l, o) => {
792
+ const c = /* @__PURE__ */ new Date(), t = A(c), d = A(c), y = A(0), k = A(0), v = (l, o) => {
780
793
  const i = new Date(l);
781
794
  return i.setHours(0, 0, 0, 0), new Date(i.getTime() + o);
782
795
  }, h = (l) => {
@@ -795,18 +808,18 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
795
808
  });
796
809
  }, $ = (l) => {
797
810
  n("get-date", l), e.selectRange && (t.value = l.start ?? l.selected, d.value = l.end ?? l.selected, x());
798
- }, I = (l) => {
811
+ }, T = (l) => {
799
812
  y.value = h(l), e.showEndTime ? x() : n("get-time", l);
800
813
  }, f = (l) => {
801
814
  k.value = h(l), x();
802
815
  };
803
816
  return (l, o) => (u(), m("div", Wt, [
804
- e.showDate ? (u(), O(we, {
817
+ e.showDate ? (u(), ee(Te, {
805
818
  key: 0,
806
819
  "select-range": e.selectRange,
807
820
  onGetDate: $
808
- }, null, 8, ["select-range"])) : C("", !0),
809
- e.showTime ? (u(), O(de, {
821
+ }, null, 8, ["select-range"])) : B("", !0),
822
+ e.showTime ? (u(), ee(me, {
810
823
  key: 1,
811
824
  "allow-military-time": e.allowMilitaryTime,
812
825
  "default-hours": e.defaultHours,
@@ -814,11 +827,11 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
814
827
  "default-seconds": e.defaultSeconds,
815
828
  "default-meridiem": e.defaultMeridiem,
816
829
  "use-seconds": e.useSeconds,
817
- onGetTime: I
818
- }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) : C("", !0),
830
+ onGetTime: T
831
+ }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) : B("", !0),
819
832
  e.selectRange && e.showTime && e.showEndTime ? (u(), m(L, { key: 2 }, [
820
833
  o[0] || (o[0] = a("div", { class: "adate-selection__end-label" }, "End time", -1)),
821
- le(de, {
834
+ oe(me, {
822
835
  "allow-military-time": e.allowMilitaryTime,
823
836
  "default-hours": e.defaultHours,
824
837
  "default-minutes": e.defaultMinutes,
@@ -827,13 +840,13 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
827
840
  "use-seconds": e.useSeconds,
828
841
  onGetTime: f
829
842
  }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])
830
- ], 64)) : C("", !0),
831
- !e.showTime && !e.showDate ? (u(), m("p", Jt, "empty")) : C("", !0)
843
+ ], 64)) : B("", !0),
844
+ !e.showTime && !e.showDate ? (u(), m("p", Jt, "empty")) : B("", !0)
832
845
  ]));
833
846
  }
834
- }), ne = /* @__PURE__ */ U(Xt, [["__scopeId", "data-v-eeadb3e2"]]), Zt = { class: "aform_display-value" }, Ot = ["id", "value", "disabled", "required"], jt = ["for"], ea = ["innerHTML"], ta = /* @__PURE__ */ R({
847
+ }), se = /* @__PURE__ */ U(Xt, [["__scopeId", "data-v-eeadb3e2"]]), Zt = { class: "aform_display-value" }, Ot = ["id", "value", "disabled", "required"], jt = ["for"], ea = ["innerHTML"], ta = /* @__PURE__ */ V({
835
848
  __name: "ADate",
836
- props: /* @__PURE__ */ P({
849
+ props: /* @__PURE__ */ Q({
837
850
  schema: {},
838
851
  label: { default: "Date" },
839
852
  selectRange: { type: Boolean },
@@ -849,13 +862,13 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
849
862
  }),
850
863
  emits: ["update:modelValue"],
851
864
  setup(e) {
852
- const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c = S(n.value ? new Date(n.value) : /* @__PURE__ */ new Date()), t = A({
865
+ const s = I(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c = A(n.value ? new Date(n.value) : /* @__PURE__ */ new Date()), t = I({
853
866
  get: () => c.value.toISOString().split("T")[0],
854
867
  set: (v) => {
855
868
  c.value = new Date(v), n.value = v;
856
869
  }
857
- }), d = te("picker"), y = S(!1);
858
- ke(d, () => y.value = !1), J(
870
+ }), d = le("picker"), y = A(!1);
871
+ De(d, () => y.value = !1), X(
859
872
  () => n.value,
860
873
  (v) => {
861
874
  v && (c.value = new Date(v));
@@ -878,7 +891,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
878
891
  type: "date",
879
892
  disabled: e.mode === "read",
880
893
  required: e.required,
881
- onClick: h[1] || (h[1] = B(
894
+ onClick: h[1] || (h[1] = R(
882
895
  () => {
883
896
  y.value = !y.value;
884
897
  },
@@ -889,31 +902,31 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
889
902
  ]),
890
903
  a("label", { for: e.uuid }, g(e.label), 9, jt),
891
904
  p(a("p", { innerHTML: s.value }, null, 8, ea), [
892
- [K, s.value]
905
+ [P, s.value]
893
906
  ]),
894
- y.value ? (u(), O(ne, {
907
+ y.value ? (u(), ee(se, {
895
908
  key: 0,
896
909
  ref: "picker",
897
910
  class: "picker",
898
911
  "select-range": !1,
899
912
  "show-time": !1,
900
913
  onGetDate: k
901
- }, null, 512)) : C("", !0)
914
+ }, null, 512)) : B("", !0)
902
915
  ], 64))
903
916
  ]));
904
917
  }
905
918
  }), aa = /* @__PURE__ */ U(ta, [["__scopeId", "data-v-a73c275b"]]), la = {
906
919
  key: 0,
907
920
  class: "input-wrapper"
908
- }, na = { class: "aform_display-value" }, sa = ["innerHTML"], oa = { class: "input-wrapper" }, ia = ["disabled"], ua = {
921
+ }, na = { class: "aform_display-value" }, oa = ["innerHTML"], sa = { class: "input-wrapper" }, ia = ["disabled"], ua = {
909
922
  id: "autocomplete-results",
910
923
  class: "autocomplete-results"
911
924
  }, da = {
912
925
  key: 0,
913
926
  class: "loading autocomplete-result"
914
- }, ra = ["onClick"], ca = ["innerHTML"], ma = /* @__PURE__ */ R({
927
+ }, ra = ["onClick"], ca = ["innerHTML"], ma = /* @__PURE__ */ V({
915
928
  __name: "ADropdown",
916
- props: /* @__PURE__ */ P({
929
+ props: /* @__PURE__ */ Q({
917
930
  schema: {},
918
931
  label: {},
919
932
  selectRange: { type: Boolean },
@@ -932,7 +945,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
932
945
  }),
933
946
  emits: ["update:modelValue"],
934
947
  setup(e) {
935
- const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c = S(n.value ?? ""), t = ce({
948
+ const s = I(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c = A(n.value ?? ""), t = ve({
936
949
  activeItemIndex: null,
937
950
  open: !1,
938
951
  loading: !1,
@@ -966,7 +979,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
966
979
  t.activeItemIndex = (o + 1) % l;
967
980
  } else
968
981
  t.activeItemIndex = 0;
969
- }, I = () => {
982
+ }, T = () => {
970
983
  const l = t.results?.length || 0;
971
984
  if (t.activeItemIndex != null) {
972
985
  const o = isNaN(t.activeItemIndex) ? 0 : t.activeItemIndex;
@@ -986,14 +999,14 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
986
999
  p(a("p", {
987
1000
  class: "aform_error",
988
1001
  innerHTML: s.value
989
- }, null, 8, sa), [
990
- [K, s.value]
1002
+ }, null, 8, oa), [
1003
+ [P, s.value]
991
1004
  ])
992
1005
  ])) : p((u(), m("div", {
993
1006
  key: 1,
994
- class: X(["autocomplete", { isOpen: t.open }])
1007
+ class: O(["autocomplete", { isOpen: t.open }])
995
1008
  }, [
996
- a("div", oa, [
1009
+ a("div", sa, [
997
1010
  p(a("input", {
998
1011
  "onUpdate:modelValue": o[0] || (o[0] = (i) => n.value = i),
999
1012
  type: "text",
@@ -1002,7 +1015,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1002
1015
  onFocus: v,
1003
1016
  onKeydown: [
1004
1017
  _($, ["down"]),
1005
- _(I, ["up"]),
1018
+ _(T, ["up"]),
1006
1019
  _(f, ["enter"]),
1007
1020
  _(d, ["esc"]),
1008
1021
  _(d, ["tab"])
@@ -1011,13 +1024,13 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1011
1024
  [Y, n.value]
1012
1025
  ]),
1013
1026
  p(a("ul", ua, [
1014
- t.loading ? (u(), m("li", da, "Loading results...")) : (u(!0), m(L, { key: 1 }, Z(t.results, (i, w) => (u(), m("li", {
1027
+ t.loading ? (u(), m("li", da, "Loading results...")) : (u(!0), m(L, { key: 1 }, j(t.results, (i, w) => (u(), m("li", {
1015
1028
  key: i,
1016
- class: X(["autocomplete-result", { "is-active": w === t.activeItemIndex }]),
1017
- onClick: B((r) => k(i), ["stop"])
1029
+ class: O(["autocomplete-result", { "is-active": w === t.activeItemIndex }]),
1030
+ onClick: R((r) => k(i), ["stop"])
1018
1031
  }, g(i), 11, ra))), 128))
1019
1032
  ], 512), [
1020
- [K, t.open]
1033
+ [P, t.open]
1021
1034
  ]),
1022
1035
  a("label", null, g(e.label), 1)
1023
1036
  ]),
@@ -1025,18 +1038,18 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1025
1038
  class: "aform_error",
1026
1039
  innerHTML: s.value
1027
1040
  }, null, 8, ca), [
1028
- [K, s.value]
1041
+ [P, s.value]
1029
1042
  ])
1030
1043
  ], 2)), [
1031
- [W(me), d]
1044
+ [J(ye), d]
1032
1045
  ]);
1033
1046
  }
1034
1047
  }), fa = /* @__PURE__ */ U(ma, [["__scopeId", "data-v-2b75e2d5"]]), va = { class: "aduration" }, ya = { class: "aform_display-value" }, ha = { class: "aduration__footer" }, ba = {
1035
1048
  key: 0,
1036
1049
  class: "aduration__summary"
1037
- }, ga = { class: "aduration__value" }, $a = { class: "aduration__ms" }, ka = /* @__PURE__ */ R({
1050
+ }, ga = { class: "aduration__value" }, $a = { class: "aduration__ms" }, ka = /* @__PURE__ */ V({
1038
1051
  __name: "ADuration",
1039
- props: /* @__PURE__ */ P({
1052
+ props: /* @__PURE__ */ Q({
1040
1053
  label: { default: "Duration" },
1041
1054
  mode: { default: "edit" },
1042
1055
  allowMilitaryTime: { type: Boolean, default: !1 },
@@ -1047,33 +1060,33 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1047
1060
  }),
1048
1061
  emits: ["update:modelValue"],
1049
1062
  setup(e) {
1050
- const s = G(e, "modelValue"), n = S(null), c = S(null), t = A(() => {
1063
+ const s = G(e, "modelValue"), n = A(null), c = A(null), t = I(() => {
1051
1064
  if (!n.value || !c.value) return 0;
1052
1065
  const v = c.value.getTime() - n.value.getTime();
1053
1066
  return v > 0 ? v : 0;
1054
1067
  });
1055
- J(t, (v) => {
1068
+ X(t, (v) => {
1056
1069
  s.value = v;
1057
1070
  });
1058
1071
  const d = (v) => {
1059
1072
  n.value = v.start, c.value = v.end, s.value = t.value;
1060
- }, y = A(() => {
1073
+ }, y = I(() => {
1061
1074
  const v = t.value;
1062
1075
  if (v === 0) return "0s";
1063
- const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24, I = Math.floor(v / 864e5);
1064
- return [I && `${I}d`, $ && `${$}h`, x && `${x}m`, h && `${h}s`].filter(Boolean).join(" ") || "0s";
1065
- }), k = A(() => {
1076
+ const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24, T = Math.floor(v / 864e5);
1077
+ return [T && `${T}d`, $ && `${$}h`, x && `${x}m`, h && `${h}s`].filter(Boolean).join(" ") || "0s";
1078
+ }), k = I(() => {
1066
1079
  const v = s.value;
1067
1080
  if (!v) return "—";
1068
- const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24, I = Math.floor(v / 864e5);
1069
- return [I && `${I}d`, $ && `${$}h`, x && `${x}m`, h && `${h}s`].filter(Boolean).join(" ") || "0s";
1081
+ const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24, T = Math.floor(v / 864e5);
1082
+ return [T && `${T}d`, $ && `${$}h`, x && `${x}m`, h && `${h}s`].filter(Boolean).join(" ") || "0s";
1070
1083
  });
1071
1084
  return (v, h) => (u(), m("div", va, [
1072
1085
  e.mode === "display" || e.mode === "read" ? (u(), m(L, { key: 0 }, [
1073
1086
  a("span", ya, g(k.value), 1),
1074
1087
  a("label", null, g(e.label), 1)
1075
1088
  ], 64)) : (u(), m(L, { key: 1 }, [
1076
- le(ne, {
1089
+ oe(se, {
1077
1090
  ref: "selectionRef",
1078
1091
  "select-range": !0,
1079
1092
  "show-time": !0,
@@ -1088,14 +1101,14 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1088
1101
  h[0] || (h[0] = a("span", { class: "aduration__label" }, "Duration:", -1)),
1089
1102
  a("span", ga, g(y.value), 1),
1090
1103
  a("span", $a, "(" + g(s.value ?? 0) + " ms)", 1)
1091
- ])) : C("", !0)
1104
+ ])) : B("", !0)
1092
1105
  ])
1093
1106
  ], 64))
1094
1107
  ]));
1095
1108
  }
1096
- }), xa = /* @__PURE__ */ U(ka, [["__scopeId", "data-v-22611dd6"]]), wa = { class: "adaterange" }, Da = { class: "aform_display-value" }, Ma = ["id", "value", "disabled"], Ta = ["for"], Sa = ["innerHTML"], Aa = /* @__PURE__ */ R({
1109
+ }), xa = /* @__PURE__ */ U(ka, [["__scopeId", "data-v-22611dd6"]]), wa = { class: "adaterange" }, Da = { class: "aform_display-value" }, Ma = ["id", "value", "disabled"], Ta = ["for"], Sa = ["innerHTML"], Aa = /* @__PURE__ */ V({
1097
1110
  __name: "ADateRange",
1098
- props: /* @__PURE__ */ P({
1111
+ props: /* @__PURE__ */ Q({
1099
1112
  schema: {},
1100
1113
  label: { default: "Date Range" },
1101
1114
  selectRange: { type: Boolean },
@@ -1113,17 +1126,17 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1113
1126
  }),
1114
1127
  emits: ["update:modelValue"],
1115
1128
  setup(e) {
1116
- const s = (i) => new Date(i).toLocaleDateString(), n = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), c = G(e, "modelValue"), t = S(c.value.start_date ? new Date(c.value.start_date) : null), d = S(c.value.end_date ? new Date(c.value.end_date) : null), y = S(!1), k = S(null);
1117
- ke(k, () => y.value = !1);
1129
+ const s = (i) => new Date(i).toLocaleDateString(), n = I(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), c = G(e, "modelValue"), t = A(c.value.start_date ? new Date(c.value.start_date) : null), d = A(c.value.end_date ? new Date(c.value.end_date) : null), y = A(!1), k = A(null);
1130
+ De(k, () => y.value = !1);
1118
1131
  const v = () => {
1119
1132
  e.mode !== "read" && (y.value = !0);
1120
- }, h = (i) => i ? `${i.getMonth() + 1}/${i.getDate()}/${i.getFullYear()}` : "", x = A(() => {
1133
+ }, h = (i) => i ? `${i.getMonth() + 1}/${i.getDate()}/${i.getFullYear()}` : "", x = I(() => {
1121
1134
  const i = h(t.value), w = h(d.value);
1122
1135
  return i && w ? `${i} — ${w}` : i ? `${i} — ...` : "";
1123
- }), $ = A(() => {
1136
+ }), $ = I(() => {
1124
1137
  const i = c.value.start_date, w = c.value.end_date;
1125
1138
  return !i && !w ? "" : i && w ? `${s(i)} — ${s(w)}` : i ? `From ${s(i)}` : `Until ${s(w)}`;
1126
- }), I = () => {
1139
+ }), T = () => {
1127
1140
  const i = t.value, w = d.value;
1128
1141
  i && w && w.getTime() < i.getTime() && ([t.value, d.value] = [w, i]);
1129
1142
  }, f = (i) => i ? i.toISOString().split("T")[0] : null, l = () => {
@@ -1132,9 +1145,9 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1132
1145
  end_date: f(d.value)
1133
1146
  };
1134
1147
  }, o = (i) => {
1135
- i.start && (t.value = i.start), i.end && (d.value = i.end, I(), y.value = !1), l();
1148
+ i.start && (t.value = i.start), i.end && (d.value = i.end, T(), y.value = !1), l();
1136
1149
  };
1137
- return J(
1150
+ return X(
1138
1151
  () => c.value,
1139
1152
  (i) => {
1140
1153
  t.value = i.start_date ? new Date(i.start_date) : null, d.value = i.end_date ? new Date(i.end_date) : null;
@@ -1157,9 +1170,9 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1157
1170
  }, null, 8, Ma),
1158
1171
  a("label", { for: e.uuid }, g(e.label), 9, Ta),
1159
1172
  p(a("p", { innerHTML: n.value }, null, 8, Sa), [
1160
- [K, n.value]
1173
+ [P, n.value]
1161
1174
  ]),
1162
- y.value ? (u(), O(ne, {
1175
+ y.value ? (u(), ee(se, {
1163
1176
  key: 0,
1164
1177
  ref_key: "pickerRef",
1165
1178
  ref: k,
@@ -1167,7 +1180,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1167
1180
  "select-range": !0,
1168
1181
  "show-time": !1,
1169
1182
  onGetDate: o
1170
- }, null, 512)) : C("", !0)
1183
+ }, null, 512)) : B("", !0)
1171
1184
  ], 64))
1172
1185
  ]));
1173
1186
  }
@@ -1177,9 +1190,9 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1177
1190
  }, qa = {
1178
1191
  key: 0,
1179
1192
  class: "aform-nested-label"
1180
- }, Fa = /* @__PURE__ */ R({
1193
+ }, Fa = /* @__PURE__ */ V({
1181
1194
  __name: "AForm",
1182
- props: /* @__PURE__ */ P({
1195
+ props: /* @__PURE__ */ Q({
1183
1196
  schema: {},
1184
1197
  mode: { default: "edit" },
1185
1198
  errors: {}
@@ -1187,10 +1200,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1187
1200
  data: { required: !0 },
1188
1201
  dataModifiers: {}
1189
1202
  }),
1190
- emits: /* @__PURE__ */ P(["update:schema", "update:data"], ["update:data"]),
1203
+ emits: /* @__PURE__ */ Q(["update:schema", "update:data"], ["update:data"]),
1191
1204
  setup(e, { emit: s }) {
1192
- const n = s, c = G(e, "data"), t = (f) => (f.kind === "link" || f.kind === "fieldset") && "schema" in f && Array.isArray(f.schema) && f.schema.length > 0, d = S({});
1193
- J(
1205
+ const n = s, c = G(e, "data"), t = (f) => (f.kind === "link" || f.kind === "fieldset") && "schema" in f && Array.isArray(f.schema) && f.schema.length > 0, d = A({});
1206
+ X(
1194
1207
  () => c.value,
1195
1208
  (f) => {
1196
1209
  !e.schema || !f || e.schema.forEach((l) => {
@@ -1210,14 +1223,14 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1210
1223
  if (f.kind !== "field") return {};
1211
1224
  const l = f.width;
1212
1225
  return l ? { flexBasis: l, width: l } : {};
1213
- }, h = A(() => e.mode ?? "edit");
1226
+ }, h = I(() => e.mode ?? "edit");
1214
1227
  function x(f) {
1215
1228
  const l = f.mode;
1216
1229
  return l || h.value;
1217
1230
  }
1218
- const $ = S([]);
1231
+ const $ = A([]);
1219
1232
  Re(() => {
1220
- e.schema && $.value.length !== e.schema.length && ($.value = e.schema.map((f, l) => A({
1233
+ e.schema && $.value.length !== e.schema.length && ($.value = e.schema.map((f, l) => I({
1221
1234
  get() {
1222
1235
  return c.value?.[e.schema[l].fieldname];
1223
1236
  },
@@ -1227,12 +1240,12 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1227
1240
  }
1228
1241
  })));
1229
1242
  });
1230
- const I = A(() => $.value);
1243
+ const T = I(() => $.value);
1231
1244
  return (f, l) => (u(), m("form", pa, [
1232
- (u(!0), m(L, null, Z(e.schema, (o, i) => (u(), m(L, { key: i }, [
1245
+ (u(!0), m(L, null, j(e.schema, (o, i) => (u(), m(L, { key: i }, [
1233
1246
  t(o) ? (u(), m("div", La, [
1234
- o.label && o.kind !== "fieldset" ? (u(), m("h4", qa, g(o.label), 1)) : C("", !0),
1235
- (u(), O(he(o.component ?? "AForm"), {
1247
+ o.label && o.kind !== "fieldset" ? (u(), m("h4", qa, g(o.label), 1)) : B("", !0),
1248
+ (u(), ee($e(o.component ?? "AForm"), {
1236
1249
  data: d.value[o.fieldname],
1237
1250
  mode: x(o),
1238
1251
  schema: o.schema,
@@ -1241,10 +1254,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1241
1254
  errors: e.errors,
1242
1255
  "onUpdate:data": (w) => y(o.fieldname, w)
1243
1256
  }, null, 40, ["data", "mode", "schema", "label", "collapsible", "errors", "onUpdate:data"]))
1244
- ])) : o.hidden ? C("", !0) : (u(), O(he(o.component), Ve({
1257
+ ])) : o.hidden ? B("", !0) : (u(), ee($e(o.component), Ve({
1245
1258
  key: 1,
1246
- modelValue: I.value[i].value,
1247
- "onUpdate:modelValue": (w) => I.value[i].value = w,
1259
+ modelValue: T.value[i].value,
1260
+ "onUpdate:modelValue": (w) => T.value[i].value = w,
1248
1261
  style: v(o),
1249
1262
  schema: o,
1250
1263
  data: c.value[o.fieldname],
@@ -1254,17 +1267,17 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1254
1267
  ], 64))), 128))
1255
1268
  ]));
1256
1269
  }
1257
- }), De = /* @__PURE__ */ U(Fa, [["__scopeId", "data-v-bb17171c"]]), _a = /* @__PURE__ */ R({
1270
+ }), Se = /* @__PURE__ */ U(Fa, [["__scopeId", "data-v-bb17171c"]]), _a = /* @__PURE__ */ V({
1258
1271
  __name: "CollapseButton",
1259
1272
  props: {
1260
1273
  collapsed: { type: Boolean }
1261
1274
  },
1262
1275
  setup(e) {
1263
1276
  return (s, n) => (u(), m("button", {
1264
- class: X(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
1277
+ class: O(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
1265
1278
  }, "×", 2));
1266
1279
  }
1267
- }), Ca = /* @__PURE__ */ U(_a, [["__scopeId", "data-v-6f1c1b45"]]), Ba = /* @__PURE__ */ R({
1280
+ }), Ca = /* @__PURE__ */ U(_a, [["__scopeId", "data-v-6f1c1b45"]]), Ba = /* @__PURE__ */ V({
1268
1281
  __name: "AFieldset",
1269
1282
  props: {
1270
1283
  schema: {},
@@ -1275,7 +1288,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1275
1288
  mode: { default: "edit" }
1276
1289
  },
1277
1290
  setup(e, { expose: s }) {
1278
- const n = S(!1), c = S(e.data || []), t = S(e.schema), d = (y) => {
1291
+ const n = A(!1), c = A(e.data || []), t = A(e.schema), d = (y) => {
1279
1292
  y.preventDefault(), e.collapsible && (n.value = !n.value);
1280
1293
  };
1281
1294
  return s({ collapsed: n }), (y, k) => (u(), m("fieldset", null, [
@@ -1284,20 +1297,20 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1284
1297
  onClick: d,
1285
1298
  onSubmit: d
1286
1299
  }, [
1287
- ae(g(e.label) + " ", 1),
1288
- e.collapsible ? (u(), O(Ca, {
1300
+ ne(g(e.label) + " ", 1),
1301
+ e.collapsible ? (u(), ee(Ca, {
1289
1302
  key: 0,
1290
1303
  collapsed: n.value
1291
- }, null, 8, ["collapsed"])) : C("", !0)
1292
- ], 32)) : C("", !0),
1293
- re(y.$slots, "default", { collapsed: n.value }, () => [
1294
- p(le(De, {
1304
+ }, null, 8, ["collapsed"])) : B("", !0)
1305
+ ], 32)) : B("", !0),
1306
+ fe(y.$slots, "default", { collapsed: n.value }, () => [
1307
+ p(oe(Se, {
1295
1308
  data: c.value,
1296
1309
  "onUpdate:data": k[0] || (k[0] = (v) => c.value = v),
1297
1310
  schema: t.value,
1298
1311
  mode: e.mode
1299
1312
  }, null, 8, ["data", "schema", "mode"]), [
1300
- [K, !n.value]
1313
+ [P, !n.value]
1301
1314
  ])
1302
1315
  ], !0)
1303
1316
  ]));
@@ -1311,7 +1324,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1311
1324
  }, Ua = {
1312
1325
  key: 0,
1313
1326
  class: "aform_file-attach-feedback"
1314
- }, Ea = ["disabled"], Ka = ["disabled"], Pa = /* @__PURE__ */ R({
1327
+ }, Ea = ["disabled"], Ka = ["disabled"], Pa = /* @__PURE__ */ V({
1315
1328
  __name: "AFileAttach",
1316
1329
  props: {
1317
1330
  schema: {},
@@ -1325,48 +1338,48 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1325
1338
  errors: {}
1326
1339
  },
1327
1340
  setup(e) {
1328
- const { files: s, open: n, reset: c, onChange: t } = Ne(), d = A(() => {
1341
+ const { files: s, open: n, reset: c, onChange: t } = Ne(), d = I(() => {
1329
1342
  const y = s.value?.length ?? 0;
1330
1343
  return `${y} ${y === 1 ? "file" : "files"}`;
1331
1344
  });
1332
1345
  return t((y) => y), (y, k) => (u(), m("div", Va, [
1333
1346
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
1334
- W(s) ? (u(), m("div", Na, [
1347
+ J(s) ? (u(), m("div", Na, [
1335
1348
  a("p", null, [
1336
1349
  a("b", null, g(d.value), 1)
1337
1350
  ]),
1338
- (u(!0), m(L, null, Z(W(s), (v) => (u(), m("li", {
1351
+ (u(!0), m(L, null, j(J(s), (v) => (u(), m("li", {
1339
1352
  key: v.name
1340
1353
  }, g(v.name), 1))), 128))
1341
1354
  ])) : (u(), m("span", Ha, "No file selected"))
1342
1355
  ], 64)) : (u(), m(L, { key: 1 }, [
1343
- W(s) ? (u(), m("div", Ua, [
1356
+ J(s) ? (u(), m("div", Ua, [
1344
1357
  a("p", null, [
1345
- k[2] || (k[2] = ae(" You have selected: ", -1)),
1358
+ k[2] || (k[2] = ne(" You have selected: ", -1)),
1346
1359
  a("b", null, g(d.value), 1)
1347
1360
  ]),
1348
- (u(!0), m(L, null, Z(W(s), (v) => (u(), m("li", {
1361
+ (u(!0), m(L, null, j(J(s), (v) => (u(), m("li", {
1349
1362
  key: v.name
1350
1363
  }, g(v.name), 1))), 128))
1351
- ])) : C("", !0),
1364
+ ])) : B("", !0),
1352
1365
  a("button", {
1353
1366
  type: "button",
1354
1367
  class: "aform_form-btn",
1355
1368
  disabled: e.mode === "read",
1356
- onClick: k[0] || (k[0] = (v) => W(n)())
1369
+ onClick: k[0] || (k[0] = (v) => J(n)())
1357
1370
  }, g(e.label), 9, Ea),
1358
1371
  a("button", {
1359
1372
  type: "button",
1360
- disabled: !W(s) || e.mode === "read",
1373
+ disabled: !J(s) || e.mode === "read",
1361
1374
  class: "aform_form-btn",
1362
- onClick: k[1] || (k[1] = (v) => W(c)())
1375
+ onClick: k[1] || (k[1] = (v) => J(c)())
1363
1376
  }, "Reset", 8, Ka)
1364
1377
  ], 64))
1365
1378
  ]));
1366
1379
  }
1367
- }), Qa = /* @__PURE__ */ U(Pa, [["__scopeId", "data-v-8eefd179"]]), Ya = { class: "aform_form-element" }, Ga = { class: "aform_display-value" }, za = { class: "aform_field-label" }, Wa = ["id", "disabled", "required"], Ja = ["for"], Xa = ["innerHTML"], Za = /* @__PURE__ */ R({
1380
+ }), Qa = /* @__PURE__ */ U(Pa, [["__scopeId", "data-v-8eefd179"]]), Ya = { class: "aform_form-element" }, Ga = { class: "aform_display-value" }, za = { class: "aform_field-label" }, Wa = ["id", "disabled", "required"], Ja = ["for"], Xa = ["innerHTML"], Za = /* @__PURE__ */ V({
1368
1381
  __name: "ANumericInput",
1369
- props: /* @__PURE__ */ P({
1382
+ props: /* @__PURE__ */ Q({
1370
1383
  schema: {},
1371
1384
  label: {},
1372
1385
  selectRange: { type: Boolean },
@@ -1382,7 +1395,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1382
1395
  }),
1383
1396
  emits: ["update:modelValue"],
1384
1397
  setup(e) {
1385
- const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
1398
+ const s = I(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
1386
1399
  return (c, t) => (u(), m("div", Ya, [
1387
1400
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
1388
1401
  a("span", Ga, g(n.value ?? ""), 1),
@@ -1406,14 +1419,14 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1406
1419
  class: "aform_error",
1407
1420
  innerHTML: s.value
1408
1421
  }, null, 8, Xa), [
1409
- [K, s.value]
1422
+ [P, s.value]
1410
1423
  ])
1411
1424
  ], 64))
1412
1425
  ]));
1413
1426
  }
1414
- }), Oa = { class: "aform_form-element aquantity" }, ja = { class: "aform_display-value" }, el = { class: "aform_field-label" }, tl = { class: "aquantity__row" }, al = { class: "aquantity__field aquantity__field--qty" }, ll = { class: "aquantity__group" }, nl = ["id", "disabled", "required"], sl = { class: "aquantity__uom" }, ol = ["id", "disabled", "aria-expanded", "aria-activedescendant", "onKeydown"], il = { class: "aquantity__uom-value" }, ul = ["aria-label"], dl = ["id", "aria-selected", "onMouseenter", "onClick"], rl = ["for"], cl = { class: "aquantity__row aquantity__row--stock" }, ml = { class: "aquantity__field aquantity__field--stock-uom" }, fl = ["value"], vl = { class: "aform_field-label" }, yl = { class: "aquantity__field aquantity__field--stock-qty" }, hl = ["value"], bl = { class: "aform_field-label" }, gl = { class: "aquantity__field aquantity__field--conversion" }, $l = ["value"], kl = { class: "aform_field-label" }, xl = ["innerHTML"], wl = /* @__PURE__ */ R({
1427
+ }), Oa = { class: "aform_form-element aquantity" }, ja = { class: "aform_display-value" }, el = { class: "aform_field-label" }, tl = { class: "aquantity__row" }, al = { class: "aquantity__field aquantity__field--qty" }, ll = { class: "aquantity__group" }, nl = ["id", "disabled", "required"], ol = { class: "aquantity__uom" }, sl = ["id", "disabled", "aria-expanded", "aria-activedescendant", "onKeydown"], il = { class: "aquantity__uom-value" }, ul = ["aria-label"], dl = ["id", "aria-selected", "onMouseenter", "onClick"], rl = ["for"], cl = { class: "aquantity__row aquantity__row--stock" }, ml = { class: "aquantity__field aquantity__field--stock-uom" }, fl = ["value"], vl = { class: "aform_field-label" }, yl = { class: "aquantity__field aquantity__field--stock-qty" }, hl = ["value"], bl = { class: "aform_field-label" }, gl = { class: "aquantity__field aquantity__field--conversion" }, $l = ["value"], kl = { class: "aform_field-label" }, xl = ["innerHTML"], wl = /* @__PURE__ */ V({
1415
1428
  __name: "AQuantityInput",
1416
- props: /* @__PURE__ */ P({
1429
+ props: /* @__PURE__ */ Q({
1417
1430
  schema: {},
1418
1431
  label: {},
1419
1432
  selectRange: { type: Boolean },
@@ -1436,24 +1449,24 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1436
1449
  }),
1437
1450
  emits: ["update:modelValue"],
1438
1451
  setup(e) {
1439
- const s = G(e, "modelValue"), n = A(() => e.options.uoms ?? []), c = (b) => Number(b.toFixed(6)), t = (b) => {
1452
+ const s = G(e, "modelValue"), n = I(() => e.options.uoms ?? []), c = (b) => Number(b.toFixed(6)), t = (b) => {
1440
1453
  const q = e.options.stockUom ?? s.value.stockUom;
1441
1454
  if (!b || b === q) return 1;
1442
- const D = e.options.conversionFactors?.[b];
1443
- return D !== void 0 ? D : b === s.value.uom ? s.value.conversionFactor ?? 1 : 1;
1455
+ const N = e.options.conversionFactors?.[b];
1456
+ return N !== void 0 ? N : b === s.value.uom ? s.value.conversionFactor ?? 1 : 1;
1444
1457
  }, d = (b, q) => {
1445
- const D = t(q);
1458
+ const N = t(q);
1446
1459
  s.value = {
1447
1460
  qty: b,
1448
1461
  uom: q,
1449
- conversionFactor: D,
1462
+ conversionFactor: N,
1450
1463
  stockUom: e.options.stockUom ?? s.value.stockUom,
1451
- stockQty: c(b * D)
1464
+ stockQty: c(b * N)
1452
1465
  };
1453
- }, y = A({
1466
+ }, y = I({
1454
1467
  get: () => s.value?.qty ?? 0,
1455
1468
  set: (b) => d(b, s.value?.uom ?? "")
1456
- }), k = A({
1469
+ }), k = I({
1457
1470
  get: () => s.value?.uom ?? "",
1458
1471
  set: (b) => d(s.value?.qty ?? 0, b)
1459
1472
  }), v = /* @__PURE__ */ new Set([
@@ -1475,32 +1488,32 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1475
1488
  }, x = (b) => {
1476
1489
  const q = b.clipboardData?.getData("text") ?? "";
1477
1490
  /^\d*\.?\d*$/.test(q) || b.preventDefault();
1478
- }, $ = ce({ open: !1, activeIndex: -1 }), I = () => {
1491
+ }, $ = ve({ open: !1, activeIndex: -1 }), T = () => {
1479
1492
  $.activeIndex = Math.max(n.value.indexOf(k.value), 0), $.open = !0;
1480
1493
  }, f = () => {
1481
1494
  $.open = !1;
1482
1495
  }, l = () => {
1483
- $.open ? f() : I();
1496
+ $.open ? f() : T();
1484
1497
  }, o = (b) => {
1485
1498
  k.value = b, f();
1486
1499
  }, i = (b) => {
1487
1500
  if (!$.open) {
1488
- I();
1501
+ T();
1489
1502
  return;
1490
1503
  }
1491
1504
  const q = n.value.length;
1492
1505
  q && ($.activeIndex = ($.activeIndex + b + q) % q);
1493
1506
  }, w = () => {
1494
1507
  if (!$.open) {
1495
- I();
1508
+ T();
1496
1509
  return;
1497
1510
  }
1498
1511
  const b = n.value[$.activeIndex];
1499
1512
  b !== void 0 && o(b);
1500
- }, r = A(() => {
1513
+ }, r = I(() => {
1501
1514
  const b = s.value;
1502
1515
  return !!b?.stockUom && (b.uom !== b.stockUom || b.qty !== b.stockQty);
1503
- }), F = A(() => {
1516
+ }), F = I(() => {
1504
1517
  const b = s.value;
1505
1518
  if (!b || !b.uom) return "—";
1506
1519
  const q = `${b.qty} ${b.uom}`;
@@ -1516,7 +1529,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1516
1529
  a("div", ll, [
1517
1530
  p(a("input", {
1518
1531
  id: e.uuid,
1519
- "onUpdate:modelValue": q[0] || (q[0] = (D) => y.value = D),
1532
+ "onUpdate:modelValue": q[0] || (q[0] = (N) => y.value = N),
1520
1533
  class: "aquantity__qty",
1521
1534
  type: "number",
1522
1535
  disabled: e.mode === "read",
@@ -1531,7 +1544,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1531
1544
  { number: !0 }
1532
1545
  ]
1533
1546
  ]),
1534
- p((u(), m("div", sl, [
1547
+ p((u(), m("div", ol, [
1535
1548
  a("button", {
1536
1549
  id: `${e.uuid}-uom`,
1537
1550
  type: "button",
@@ -1542,9 +1555,9 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1542
1555
  "aria-activedescendant": $.open && $.activeIndex >= 0 ? `${e.uuid}-uom-opt-${$.activeIndex}` : void 0,
1543
1556
  onClick: l,
1544
1557
  onKeydown: [
1545
- q[1] || (q[1] = _(B((D) => i(1), ["prevent"]), ["down"])),
1546
- q[2] || (q[2] = _(B((D) => i(-1), ["prevent"]), ["up"])),
1547
- _(B(w, ["prevent"]), ["enter"]),
1558
+ q[1] || (q[1] = _(R((N) => i(1), ["prevent"]), ["down"])),
1559
+ q[2] || (q[2] = _(R((N) => i(-1), ["prevent"]), ["up"])),
1560
+ _(R(w, ["prevent"]), ["enter"]),
1548
1561
  _(f, ["esc"])
1549
1562
  ]
1550
1563
  }, [
@@ -1553,26 +1566,26 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1553
1566
  class: "aquantity__caret",
1554
1567
  "aria-hidden": "true"
1555
1568
  }, null, -1))
1556
- ], 40, ol),
1569
+ ], 40, sl),
1557
1570
  p(a("ul", {
1558
1571
  class: "aquantity__uom-menu",
1559
1572
  role: "listbox",
1560
1573
  "aria-label": e.uomLabel
1561
1574
  }, [
1562
- (u(!0), m(L, null, Z(n.value, (D, V) => (u(), m("li", {
1563
- id: `${e.uuid}-uom-opt-${V}`,
1564
- key: D,
1575
+ (u(!0), m(L, null, j(n.value, (N, W) => (u(), m("li", {
1576
+ id: `${e.uuid}-uom-opt-${W}`,
1577
+ key: N,
1565
1578
  role: "option",
1566
- "aria-selected": D === k.value,
1567
- class: X(["aquantity__uom-option", { "is-active": V === $.activeIndex }]),
1568
- onMouseenter: (N) => $.activeIndex = V,
1569
- onClick: (N) => o(D)
1570
- }, g(D), 43, dl))), 128))
1579
+ "aria-selected": N === k.value,
1580
+ class: O(["aquantity__uom-option", { "is-active": W === $.activeIndex }]),
1581
+ onMouseenter: (te) => $.activeIndex = W,
1582
+ onClick: (te) => o(N)
1583
+ }, g(N), 43, dl))), 128))
1571
1584
  ], 8, ul), [
1572
- [K, $.open]
1585
+ [P, $.open]
1573
1586
  ])
1574
1587
  ])), [
1575
- [W(me), f]
1588
+ [J(ye), f]
1576
1589
  ])
1577
1590
  ]),
1578
1591
  a("label", {
@@ -1614,7 +1627,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1614
1627
  class: "aform_error",
1615
1628
  innerHTML: e.validation.errorMessage
1616
1629
  }, null, 8, xl), [
1617
- [K, e.validation.errorMessage]
1630
+ [P, e.validation.errorMessage]
1618
1631
  ])
1619
1632
  ], 64))
1620
1633
  ]));
@@ -1622,7 +1635,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1622
1635
  }), Dl = /* @__PURE__ */ U(wl, [["__scopeId", "data-v-0b714861"]]);
1623
1636
  function Ml(e) {
1624
1637
  try {
1625
- return ue(e);
1638
+ return ce(e);
1626
1639
  } catch {
1627
1640
  return;
1628
1641
  }
@@ -1665,9 +1678,9 @@ function Il(e, s) {
1665
1678
  } else
1666
1679
  e.value = n;
1667
1680
  }
1668
- const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value" }, ql = { class: "aform_field-label" }, Fl = ["id", "disabled", "maxlength", "required"], _l = ["for"], Cl = ["innerHTML"], Bl = /* @__PURE__ */ R({
1681
+ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value" }, ql = { class: "aform_field-label" }, Fl = ["id", "disabled", "maxlength", "required"], _l = ["for"], Cl = ["innerHTML"], Bl = /* @__PURE__ */ V({
1669
1682
  __name: "ATextInput",
1670
- props: /* @__PURE__ */ P({
1683
+ props: /* @__PURE__ */ Q({
1671
1684
  schema: {},
1672
1685
  label: {},
1673
1686
  selectRange: { type: Boolean },
@@ -1683,7 +1696,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1683
1696
  }),
1684
1697
  emits: ["update:modelValue"],
1685
1698
  setup(e) {
1686
- const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = S(!0), c = G(e, "modelValue");
1699
+ const s = I(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = A(!0), c = G(e, "modelValue");
1687
1700
  return (t, d) => (u(), m("div", pl, [
1688
1701
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
1689
1702
  a("span", Ll, g(c.value ?? ""), 1),
@@ -1698,7 +1711,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1698
1711
  required: e.required
1699
1712
  }, null, 8, Fl), [
1700
1713
  [Y, c.value],
1701
- [W(Il), e.mask]
1714
+ [J(Il), e.mask]
1702
1715
  ]),
1703
1716
  a("label", {
1704
1717
  class: "aform_field-label",
@@ -1708,14 +1721,14 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1708
1721
  class: "aform_error",
1709
1722
  innerHTML: s.value
1710
1723
  }, null, 8, Cl), [
1711
- [K, s.value]
1724
+ [P, s.value]
1712
1725
  ])
1713
1726
  ], 64))
1714
1727
  ]));
1715
1728
  }
1716
- }), Rl = { class: "aform_form-element" }, Vl = { class: "aform_display-value aform_textbox-display" }, Nl = { class: "aform_field-label" }, Hl = ["id", "placeholder", "rows", "maxlength", "disabled", "required"], Ul = ["for"], El = ["innerHTML"], Kl = /* @__PURE__ */ R({
1729
+ }), Rl = { class: "aform_form-element" }, Vl = { class: "aform_display-value aform_textbox-display" }, Nl = { class: "aform_field-label" }, Hl = ["id", "placeholder", "rows", "maxlength", "disabled", "required"], Ul = ["for"], El = ["innerHTML"], Kl = /* @__PURE__ */ V({
1717
1730
  __name: "ATextboxInput",
1718
- props: /* @__PURE__ */ P({
1731
+ props: /* @__PURE__ */ Q({
1719
1732
  schema: {},
1720
1733
  label: {},
1721
1734
  selectRange: { type: Boolean },
@@ -1734,7 +1747,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1734
1747
  }),
1735
1748
  emits: ["update:modelValue"],
1736
1749
  setup(e) {
1737
- const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
1750
+ const s = I(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
1738
1751
  return (c, t) => (u(), m("div", Rl, [
1739
1752
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
1740
1753
  a("span", Vl, g(n.value ?? ""), 1),
@@ -1760,7 +1773,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1760
1773
  class: "aform_error",
1761
1774
  innerHTML: s.value
1762
1775
  }, null, 8, El), [
1763
- [K, s.value]
1776
+ [P, s.value]
1764
1777
  ])
1765
1778
  ], 64))
1766
1779
  ]));
@@ -1768,7 +1781,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1768
1781
  }), Pl = /* @__PURE__ */ U(Kl, [["__scopeId", "data-v-2a9c793b"]]), Ql = { class: "login-container" }, Yl = { class: "account-container" }, Gl = { class: "account-header" }, zl = { id: "account-title" }, Wl = { id: "account-subtitle" }, Jl = { class: "login-form-container" }, Xl = { class: "login-form-email aform_form-element" }, Zl = ["disabled"], Ol = { class: "login-form-password aform_form-element" }, jl = ["disabled"], en = ["disabled"], tn = {
1769
1782
  key: 0,
1770
1783
  class: "material-symbols-outlined loading-icon"
1771
- }, an = /* @__PURE__ */ R({
1784
+ }, an = /* @__PURE__ */ V({
1772
1785
  __name: "Login",
1773
1786
  props: {
1774
1787
  headerTitle: { default: "Login" },
@@ -1776,7 +1789,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1776
1789
  },
1777
1790
  emits: ["loginFailed", "loginSuccess"],
1778
1791
  setup(e, { emit: s }) {
1779
- const n = s, c = S(""), t = S(""), d = S(!1), y = S(!1);
1792
+ const n = s, c = A(""), t = A(""), d = A(!1), y = A(!1);
1780
1793
  function k(v) {
1781
1794
  if (v.preventDefault(), d.value = !0, y.value) {
1782
1795
  d.value = !1, n("loginFailed");
@@ -1836,7 +1849,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1836
1849
  disabled: d.value || !c.value || !t.value,
1837
1850
  onClick: k
1838
1851
  }, [
1839
- d.value ? (u(), m("span", tn, "progress_activity")) : C("", !0),
1852
+ d.value ? (u(), m("span", tn, "progress_activity")) : B("", !0),
1840
1853
  h[4] || (h[4] = a("span", { id: "login-form-button" }, "Login", -1))
1841
1854
  ], 8, en)
1842
1855
  ])
@@ -1848,40 +1861,40 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1848
1861
  ])
1849
1862
  ]));
1850
1863
  }
1851
- }), fn = /* @__PURE__ */ U(an, [["__scopeId", "data-v-2c0f0634"]]), ln = {}, nn = { class: "aform-loading" }, sn = { class: "aform-loading__label" };
1852
- function on(e, s) {
1864
+ }), fn = /* @__PURE__ */ U(an, [["__scopeId", "data-v-2c0f0634"]]), ln = {}, nn = { class: "aform-loading" }, on = { class: "aform-loading__label" };
1865
+ function sn(e, s) {
1853
1866
  return u(), m("div", nn, [
1854
- a("div", sn, [
1855
- re(e.$slots, "default", {}, void 0, !0)
1867
+ a("div", on, [
1868
+ fe(e.$slots, "default", {}, void 0, !0)
1856
1869
  ]),
1857
1870
  s[0] || (s[0] = a("div", { class: "aform-loading__bar" }, null, -1))
1858
1871
  ]);
1859
1872
  }
1860
- const un = /* @__PURE__ */ U(ln, [["render", on], ["__scopeId", "data-v-274f5ba3"]]);
1873
+ const un = /* @__PURE__ */ U(ln, [["render", sn], ["__scopeId", "data-v-274f5ba3"]]);
1861
1874
  function vn(e) {
1862
- e.use(pe), e.component("ACheckbox", ze), e.component("ACurrencyInput", St), e.component("ADate", aa), e.component("ADropdown", fa), e.component("ADatePicker", we), e.component("ADateTime", de), e.component("ADateRange", Ia), e.component("ADateSelection", ne), e.component("AFieldset", Ra), e.component("AFileAttach", Qa), e.component("AForm", De), e.component("AFormLink", xe), e.component("ANumericInput", Za), e.component("AQuantityInput", Dl), e.component("ATextInput", Bl), e.component("ATextboxInput", Pl), e.component("ADuration", xa), e.component("AFormLoading", un);
1875
+ e.use(pe), e.component("ACheckbox", ze), e.component("ACurrencyInput", St), e.component("ADate", aa), e.component("ADropdown", fa), e.component("ADatePicker", Te), e.component("ADateTime", me), e.component("ADateRange", Ia), e.component("ADateSelection", se), e.component("AFieldset", Ra), e.component("AFileAttach", Qa), e.component("AForm", Se), e.component("AFormLink", Me), e.component("ANumericInput", Za), e.component("AQuantityInput", Dl), e.component("ATextInput", Bl), e.component("ATextboxInput", Pl), e.component("ADuration", xa), e.component("AFormLoading", un);
1863
1876
  }
1864
1877
  export {
1865
1878
  ze as ACheckbox,
1866
1879
  St as ACurrencyInput,
1867
1880
  aa as ADate,
1868
- we as ADatePicker,
1881
+ Te as ADatePicker,
1869
1882
  Ia as ADateRange,
1870
- ne as ADateSelection,
1871
- de as ADateTime,
1883
+ se as ADateSelection,
1884
+ me as ADateTime,
1872
1885
  fa as ADropdown,
1873
1886
  xa as ADuration,
1874
1887
  Ra as AFieldset,
1875
1888
  Qa as AFileAttach,
1876
- De as AForm,
1877
- xe as AFormLink,
1889
+ Se as AForm,
1890
+ Me as AFormLink,
1878
1891
  un as AFormLoading,
1879
1892
  Za as ANumericInput,
1880
1893
  Dl as AQuantityInput,
1881
1894
  Bl as ATextInput,
1882
1895
  Pl as ATextboxInput,
1883
1896
  fn as Login,
1884
- ue as deserializeFunction,
1897
+ ce as deserializeFunction,
1885
1898
  vn as install
1886
1899
  };
1887
1900
  //# sourceMappingURL=aform.js.map