@uniquedj95/vform 3.7.4 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +1 -1
  2. package/dist/components/inputs/BaseInput.vue.d.ts +3 -1
  3. package/dist/components/inputs/BaseInput.vue.d.ts.map +1 -1
  4. package/dist/components/inputs/CheckboxInput.vue.d.ts +3 -1
  5. package/dist/components/inputs/CheckboxInput.vue.d.ts.map +1 -1
  6. package/dist/components/inputs/DateInput.vue.d.ts +6 -2
  7. package/dist/components/inputs/DateInput.vue.d.ts.map +1 -1
  8. package/dist/components/inputs/EmailInput.vue.d.ts +6 -2
  9. package/dist/components/inputs/EmailInput.vue.d.ts.map +1 -1
  10. package/dist/components/inputs/NumberInput.vue.d.ts +6 -2
  11. package/dist/components/inputs/NumberInput.vue.d.ts.map +1 -1
  12. package/dist/components/inputs/PasswordInput.vue.d.ts +6 -2
  13. package/dist/components/inputs/PasswordInput.vue.d.ts.map +1 -1
  14. package/dist/components/inputs/RadioInput.vue.d.ts +3 -1
  15. package/dist/components/inputs/RadioInput.vue.d.ts.map +1 -1
  16. package/dist/components/inputs/SelectInput.vue.d.ts.map +1 -1
  17. package/dist/components/inputs/TextAreaInput.vue.d.ts +3 -1
  18. package/dist/components/inputs/TextAreaInput.vue.d.ts.map +1 -1
  19. package/dist/components/inputs/TextInput.vue.d.ts +6 -2
  20. package/dist/components/inputs/TextInput.vue.d.ts.map +1 -1
  21. package/dist/composables/useDataTransformation.d.ts.map +1 -1
  22. package/dist/composables/useFormFieldValue.d.ts +58 -0
  23. package/dist/composables/useFormFieldValue.d.ts.map +1 -0
  24. package/dist/composables/useMultiStepForm.d.ts.map +1 -1
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.cjs.js.map +1 -1
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.es.js +1213 -1051
  30. package/dist/index.es.js.map +1 -1
  31. package/dist/index.umd.js +1 -1
  32. package/dist/index.umd.js.map +1 -1
  33. package/dist/types/index.d.ts +10 -2
  34. package/dist/types/index.d.ts.map +1 -1
  35. package/dist/utils/index.d.ts +9 -1
  36. package/dist/utils/index.d.ts.map +1 -1
  37. package/dist/vform.css +1 -1
  38. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
- import { ref as F, computed as I, watch as q, defineComponent as U, createElementBlock as B, openBlock as v, normalizeClass as G, createElementVNode as T, createCommentVNode as A, Fragment as L, renderList as ee, toDisplayString as D, normalizeStyle as fe, inject as Se, createBlock as k, unref as c, withCtx as x, createTextVNode as j, resolveDynamicComponent as me, mergeProps as Pe, createVNode as P, toRef as De, mergeModels as Z, useModel as J, resolveDirective as Te, withDirectives as Ue, onMounted as we } from "vue";
2
- import { IonButton as ye, IonGrid as Ie, IonRow as ue, IonCol as ne, IonLabel as se, IonText as xe, IonInput as $e, IonInputPasswordToggle as Re, IonChip as qe, IonIcon as ge, IonList as Ne, IonItem as Ve, IonCheckbox as Ae, actionSheetController as Le, alertController as Me, IonTextarea as je, IonNote as Ge, IonRadioGroup as He, IonRadio as Ke } from "@ionic/vue";
3
- import { chevronDown as We, close as Ze, add as Je, remove as Qe } from "ionicons/icons";
4
- import { maskito as Xe } from "@maskito/vue";
5
- function Ye(t) {
1
+ import { ref as $, computed as F, watch as W, defineComponent as N, createElementBlock as P, openBlock as v, normalizeClass as q, createElementVNode as R, createCommentVNode as z, Fragment as K, renderList as le, toDisplayString as T, normalizeStyle as he, inject as xe, createBlock as k, unref as r, withCtx as E, createTextVNode as G, resolveDynamicComponent as ye, mergeProps as Le, createVNode as L, onMounted as Ve, toRef as Te, mergeModels as Y, useModel as ee, resolveDirective as Ue, withDirectives as Re } from "vue";
2
+ import { IonButton as ke, IonGrid as Fe, IonRow as ie, IonCol as se, IonLabel as ue, IonText as Oe, IonInput as Ae, IonInputPasswordToggle as qe, IonSpinner as de, IonChip as Ne, IonIcon as _e, IonList as Me, IonItem as ge, IonCheckbox as Pe, actionSheetController as je, alertController as We, IonTextarea as Ge, IonNote as He, IonRadioGroup as Ke, IonRadio as Ze } from "@ionic/vue";
3
+ import { chevronDown as Je, close as Qe, add as Xe, remove as Ye } from "ionicons/icons";
4
+ import { maskito as et } from "@maskito/vue";
5
+ function tt(t) {
6
6
  return new Promise((n) => {
7
7
  requestAnimationFrame(async () => {
8
8
  const a = await t.getInputElement();
@@ -10,128 +10,140 @@ function Ye(t) {
10
10
  });
11
11
  });
12
12
  }
13
- const et = {
13
+ const lt = {
14
14
  d: /\d/,
15
15
  a: /[A-Za-z]/,
16
16
  "*": /[A-Za-z0-9]/
17
17
  // Default: alphanum, can customize if needed
18
- }, tt = {
18
+ }, at = {
19
19
  d: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"],
20
20
  a: ["A", "B", "C", "x", "y", "z", "D", "f"],
21
21
  "*": ["A", "3", "b", "8", "z", "4", "D", "0"]
22
22
  };
23
- function lt(t, n) {
24
- const a = tt[t];
23
+ function nt(t, n) {
24
+ const a = at[t];
25
25
  return a[n % a.length];
26
26
  }
27
- function at(t) {
27
+ function ot(t) {
28
28
  const n = [];
29
29
  let a = "", e = 0, l = 0;
30
30
  for (; e < t.length; ) {
31
- const o = t[e];
32
- if (["d", "a", "*"].includes(o)) {
33
- let u = 1;
31
+ const i = t[e];
32
+ if (["d", "a", "*"].includes(i)) {
33
+ let s = 1;
34
34
  if (t[e + 1] === "{") {
35
- const s = t.indexOf("}", e + 2);
36
- if (s !== -1) {
37
- const y = t.slice(e + 2, s);
38
- if (y.includes(",")) {
39
- const [, f] = y.split(",").map((i) => parseInt(i.trim()));
40
- u = f || parseInt(y.split(",")[0]);
35
+ const o = t.indexOf("}", e + 2);
36
+ if (o !== -1) {
37
+ const g = t.slice(e + 2, o);
38
+ if (g.includes(",")) {
39
+ const [, d] = g.split(",").map((c) => parseInt(c.trim()));
40
+ s = d || parseInt(g.split(",")[0]);
41
41
  } else
42
- u = parseInt(y);
43
- e = s;
42
+ s = parseInt(g);
43
+ e = o;
44
44
  }
45
45
  } else {
46
- let s = e + 1;
47
- for (; t[s] === o; )
48
- u++, s++;
49
- e = s - 1;
46
+ let o = e + 1;
47
+ for (; t[o] === i; )
48
+ s++, o++;
49
+ e = o - 1;
50
50
  }
51
- for (let s = 0; s < u; s++)
52
- n.push(et[o]), a += lt(o, l++);
51
+ for (let o = 0; o < s; o++)
52
+ n.push(lt[i]), a += nt(i, l++);
53
53
  } else
54
- n.push(o), a += o;
54
+ n.push(i), a += i;
55
55
  e++;
56
56
  }
57
57
  return {
58
58
  mask: n,
59
59
  placeholder: a,
60
- elementPredicate: Ye
60
+ elementPredicate: tt
61
61
  };
62
62
  }
63
- function _e(t) {
63
+ async function st(t) {
64
+ if (t != null) {
65
+ if (typeof t != "function" && !(t instanceof Promise))
66
+ return t;
67
+ if (typeof t == "function") {
68
+ const n = t();
69
+ return n instanceof Promise ? await n : n;
70
+ }
71
+ if (t instanceof Promise)
72
+ return await t;
73
+ }
74
+ }
75
+ function we(t) {
64
76
  return t == null || Array.isArray(t) && !t.length || typeof t == "object" && !Object.keys(t).length || !t;
65
77
  }
66
- function Oe(t, n, a) {
78
+ function Ie(t, n, a) {
67
79
  return t.disabled || t.hidden || typeof t.condition == "function" && !t.condition(n, a);
68
80
  }
69
- function nt(t, n, a, e) {
81
+ function ut(t, n, a, e) {
70
82
  t.forEach((l) => {
71
- var o;
72
- if (typeof (l == null ? void 0 : l.onReset) == "function" && ((o = l == null ? void 0 : l.$attrs) != null && o["ref-key"])) {
73
- const u = l.$attrs["ref-key"];
74
- if (u && n[u]) {
75
- const s = n[u];
76
- if (Oe(s, a, e))
83
+ var i;
84
+ if (typeof (l == null ? void 0 : l.onReset) == "function" && ((i = l == null ? void 0 : l.$attrs) != null && i["ref-key"])) {
85
+ const s = l.$attrs["ref-key"];
86
+ if (s && n[s]) {
87
+ const o = n[s];
88
+ if (Ie(o, a, e))
77
89
  return;
78
90
  }
79
91
  l.onReset();
80
92
  }
81
93
  });
82
94
  }
83
- function ot(t, n, a, e) {
95
+ function rt(t, n, a, e) {
84
96
  t.forEach((l) => {
85
- var o;
86
- if (typeof (l == null ? void 0 : l.onReset) == "function" && ((o = l == null ? void 0 : l.$attrs) != null && o["ref-key"])) {
87
- const u = l.$attrs["ref-key"], s = e(u);
88
- if (s && Oe(s, n, a))
97
+ var i;
98
+ if (typeof (l == null ? void 0 : l.onReset) == "function" && ((i = l == null ? void 0 : l.$attrs) != null && i["ref-key"])) {
99
+ const s = l.$attrs["ref-key"], o = e(s);
100
+ if (o && Ie(o, n, a))
89
101
  return;
90
102
  l.onReset();
91
103
  }
92
104
  });
93
105
  }
94
- function he(t, n, a) {
106
+ function be(t, n, a) {
95
107
  return typeof t.condition == "function" ? t.condition(n, a) : !0;
96
108
  }
97
- function Ce(t) {
109
+ function Ee(t) {
98
110
  if (typeof t != "object" || t === null)
99
111
  return t;
100
112
  if (Array.isArray(t))
101
- return t.map((a) => Ce(a));
113
+ return t.map((a) => Ee(a));
102
114
  const n = {};
103
115
  return Object.entries(t).forEach(([a, e]) => {
104
- typeof e == "function" ? n[a] = e.bind(n) : n[a] = Ce(e);
116
+ typeof e == "function" ? n[a] = e.bind(n) : n[a] = Ee(e);
105
117
  }), n;
106
118
  }
107
- function Ee(t, n) {
119
+ function ze(t, n) {
108
120
  return n.findIndex((a) => a.value === t.value || a.label === t.label || a.value === t.label || a.label === t.value);
109
121
  }
110
- function le(t, n) {
111
- const a = Ee(t, n);
122
+ function ne(t, n) {
123
+ const a = ze(t, n);
112
124
  a >= 0 ? n[a].isChecked = !0 : n.push({ ...t, isChecked: !0 });
113
125
  }
114
- function st(t, n) {
115
- const a = Ee(t, n);
126
+ function it(t, n) {
127
+ const a = ze(t, n);
116
128
  a >= 0 && (n[a].isChecked = !1);
117
129
  }
118
- function ut(t) {
130
+ function ct(t) {
119
131
  t.forEach((n) => {
120
132
  n.isChecked = !1;
121
133
  });
122
134
  }
123
- function Fe(t, n) {
135
+ function Be(t, n) {
124
136
  if (!t.description)
125
137
  return !1;
126
138
  const a = t.description.show ?? "always";
127
139
  return a === "always" ? !0 : a === "onSelected" ? !!n : !1;
128
140
  }
129
- function rt(t, n) {
141
+ function dt(t, n) {
130
142
  return n ? t.filter(
131
143
  (a) => JSON.stringify(a).toLowerCase().includes(n.toLowerCase())
132
144
  ) : t;
133
145
  }
134
- function it(t) {
146
+ function vt(t) {
135
147
  const n = t.label || "", a = t.required ? " *" : "";
136
148
  return n + a;
137
149
  }
@@ -140,40 +152,40 @@ function ce(t, n) {
140
152
  if (t == null || n == null || typeof t != typeof n) return !1;
141
153
  if (typeof t != "object") return t === n;
142
154
  if (Array.isArray(t) && Array.isArray(n))
143
- return t.length !== n.length ? !1 : t.every((l, o) => ce(l, n[o]));
155
+ return t.length !== n.length ? !1 : t.every((l, i) => ce(l, n[i]));
144
156
  if (Array.isArray(t) !== Array.isArray(n)) return !1;
145
157
  const a = Object.keys(t), e = Object.keys(n);
146
158
  return a.length !== e.length ? !1 : a.every((l) => Object.hasOwn(n, l) && ce(t[l], n[l]));
147
159
  }
148
- function W(t) {
160
+ function X(t) {
149
161
  return t.type !== "FormSection";
150
162
  }
151
- function Be() {
152
- const t = F([]);
163
+ function De() {
164
+ const t = $([]);
153
165
  async function n() {
154
166
  console.debug("Validating form inputs");
155
167
  const l = [];
156
- for (const o of t.value)
157
- if (typeof (o == null ? void 0 : o.onValueUpdate) == "function" && await o.onValueUpdate(), typeof (o == null ? void 0 : o.getErrors) == "function")
168
+ for (const i of t.value)
169
+ if (typeof (i == null ? void 0 : i.onValueUpdate) == "function" && await i.onValueUpdate(), typeof (i == null ? void 0 : i.getErrors) == "function")
158
170
  try {
159
- const u = o.getErrors();
160
- Array.isArray(u) ? l.push(...u) : console.warn("getErrors() returned non-array value:", u);
161
- } catch (u) {
162
- console.error("Error calling getErrors on component:", u, o);
171
+ const s = i.getErrors();
172
+ Array.isArray(s) ? l.push(...s) : console.warn("getErrors() returned non-array value:", s);
173
+ } catch (s) {
174
+ console.error("Error calling getErrors on component:", s, i);
163
175
  }
164
176
  else
165
- console.warn("Component does not have getErrors function:", o);
166
- return l.every(_e);
177
+ console.warn("Component does not have getErrors function:", i);
178
+ return l.every(we);
167
179
  }
168
180
  function a() {
169
181
  const l = [];
170
- for (const o of t.value)
171
- if (typeof (o == null ? void 0 : o.getErrors) == "function")
182
+ for (const i of t.value)
183
+ if (typeof (i == null ? void 0 : i.getErrors) == "function")
172
184
  try {
173
- const u = o.getErrors();
174
- Array.isArray(u) ? l.push(...u) : l.push(String(u));
175
- } catch (u) {
176
- console.error("Error calling getErrors on component:", u, o);
185
+ const s = i.getErrors();
186
+ Array.isArray(s) ? l.push(...s) : l.push(String(s));
187
+ } catch (s) {
188
+ console.error("Error calling getErrors on component:", s, i);
177
189
  }
178
190
  return l;
179
191
  }
@@ -188,49 +200,56 @@ function Be() {
188
200
  updateFormValues: e
189
201
  };
190
202
  }
191
- function ct(t) {
192
- const n = I(
193
- () => Object.entries(t.value).reduce((f, [i, m]) => (W(m) && m.value !== void 0 && (f[i] = m.value), f), {})
194
- ), a = F({}), e = (f, i, m) => {
195
- const p = t.value[f];
196
- if (W(p) && p.children) {
197
- const d = p.children[i];
198
- if (d && W(d) && typeof d.computedValue == "function")
199
- return d.computedValue(m, t.value);
203
+ function pt(t) {
204
+ const n = F(
205
+ () => Object.entries(t.value).reduce((d, [c, p]) => {
206
+ if (X(p) && p.value !== void 0) {
207
+ if (typeof p.value == "function" || p.value instanceof Promise)
208
+ return d;
209
+ d[c] = p.value;
210
+ }
211
+ return d;
212
+ }, {})
213
+ ), a = $({}), e = (d, c, p) => {
214
+ const m = t.value[d];
215
+ if (X(m) && m.children) {
216
+ const h = m.children[c];
217
+ if (h && X(h) && typeof h.computedValue == "function")
218
+ return h.computedValue(p, t.value);
200
219
  }
201
- return m;
202
- }, l = (f, i, m, p) => {
203
- a.value[f][p] || (a.value[f][p] = {}), Object.entries(i.other ?? {}).forEach(([d, h]) => {
204
- var C;
205
- !ce(h, (C = m.other) == null ? void 0 : C[d]) && (a.value[f][p][d] = e(f, d, h));
220
+ return p;
221
+ }, l = (d, c, p, m) => {
222
+ a.value[d][m] || (a.value[d][m] = {}), Object.entries(c.other ?? {}).forEach(([h, f]) => {
223
+ var V;
224
+ !ce(f, (V = p.other) == null ? void 0 : V[h]) && (a.value[d][m][h] = e(d, h, f));
206
225
  });
207
- }, o = (f, i, m) => {
208
- i.forEach((p, d) => {
209
- const h = m[d] ?? { other: {} };
210
- l(f, p, h, d);
226
+ }, i = (d, c, p) => {
227
+ c.forEach((m, h) => {
228
+ const f = p[h] ?? { other: {} };
229
+ l(d, m, f, h);
211
230
  });
212
- }, u = (f, { other: i }) => Object.entries(i ?? {}).reduce(
213
- (m, [p, d]) => (m[p] = e(f, p, d), m),
231
+ }, s = (d, { other: c }) => Object.entries(c ?? {}).reduce(
232
+ (p, [m, h]) => (p[m] = e(d, m, h), p),
214
233
  {}
215
- ), s = (f, i, m) => {
216
- a.value[f] || (a.value[f] = []);
217
- const p = i;
218
- Array.isArray(m[f]) ? o(f, p, m[f]) : a.value[f] = p.map((d) => u(f, d));
219
- }, y = (f, i, m) => {
220
- if (!i) {
221
- delete a.value[f];
234
+ ), o = (d, c, p) => {
235
+ a.value[d] || (a.value[d] = []);
236
+ const m = c;
237
+ Array.isArray(p[d]) ? i(d, m, p[d]) : a.value[d] = m.map((h) => s(d, h));
238
+ }, g = (d, c, p) => {
239
+ if (!c) {
240
+ delete a.value[d];
222
241
  return;
223
242
  }
224
- const p = t.value[f];
225
- W(p) && (typeof p.onChange == "function" && p.onChange(i, t.value), p.children !== void 0 ? s(f, i, m) : typeof p.computedValue == "function" && (a.value[f] = p.computedValue(i, t.value)));
243
+ const m = t.value[d];
244
+ X(m) && (typeof m.onChange == "function" && m.onChange(c, t.value), m.children !== void 0 ? o(d, c, p) : typeof m.computedValue == "function" && (a.value[d] = m.computedValue(c, t.value)));
226
245
  };
227
- return q(
246
+ return W(
228
247
  n,
229
- (f, i = {}) => {
230
- Object.keys(f).forEach((m) => {
231
- ce(f[m], i[m]) || y(m, f[m], i);
232
- }), Object.keys(i).forEach((m) => {
233
- !(m in f) && m in a.value && delete a.value[m];
248
+ (d, c = {}) => {
249
+ Object.keys(d).forEach((p) => {
250
+ ce(d[p], c[p]) || g(p, d[p], c);
251
+ }), Object.keys(c).forEach((p) => {
252
+ !(p in d) && p in a.value && delete a.value[p];
234
253
  });
235
254
  },
236
255
  {
@@ -242,87 +261,87 @@ function ct(t) {
242
261
  computedData: a
243
262
  };
244
263
  }
245
- function dt(t) {
246
- const n = F(0), a = F({}), e = F({}), l = F({});
247
- function o(_, $) {
248
- const b = t.steps.find((w) => w.id === _);
249
- if (!(b != null && b.schema)) return {};
250
- const r = {}, g = Object.values(a.value).reduce(
251
- (w, V) => ({ ...w, ...V }),
264
+ function ft(t) {
265
+ const n = $(0), a = $({}), e = $({}), l = $({});
266
+ function i(C, I) {
267
+ const U = t.steps.find((w) => w.id === C);
268
+ if (!(U != null && U.schema)) return {};
269
+ const u = {}, _ = Object.values(a.value).reduce(
270
+ (w, y) => ({ ...w, ...y }),
252
271
  {}
253
- ), E = Object.values(e.value).reduce(
254
- (w, V) => ({ ...w, ...V }),
272
+ ), b = Object.values(e.value).reduce(
273
+ (w, y) => ({ ...w, ...y }),
255
274
  {}
256
275
  );
257
- for (const [w, V] of Object.entries(b.schema))
258
- W(V) && (Oe(V, g, E) ? $ && w in $ ? r[w] = $[w] : V.value !== void 0 && (r[w] = V.value) : r[w] = V.value);
259
- return r;
276
+ for (const [w, y] of Object.entries(U.schema))
277
+ X(y) && (Ie(y, _, b) && I && w in I ? u[w] = I[w] : y.value !== void 0 && (typeof y.value == "function" || y.value instanceof Promise || (u[w] = y.value)));
278
+ return u;
260
279
  }
261
- t.steps.forEach((_) => {
262
- a.value[_.id] = o(_.id), e.value[_.id] = {}, l.value[_.id] = [];
280
+ t.steps.forEach((C) => {
281
+ a.value[C.id] = i(C.id), e.value[C.id] = {}, l.value[C.id] = [];
263
282
  });
264
- const u = F(t.steps.map((_) => _.id)), s = I(() => t.steps.filter(($) => $.condition ? $.condition(a.value, e.value) : !0));
265
- q(s, (_) => {
266
- const $ = _.map((r) => r.id);
267
- u.value.filter(
268
- (r) => !$.includes(r)
269
- ).forEach((r) => {
270
- O(r);
271
- }), u.value = $;
283
+ const s = $(t.steps.map((C) => C.id)), o = F(() => t.steps.filter((I) => I.condition ? I.condition(a.value, e.value) : !0));
284
+ W(o, (C) => {
285
+ const I = C.map((u) => u.id);
286
+ s.value.filter(
287
+ (u) => !I.includes(u)
288
+ ).forEach((u) => {
289
+ S(u);
290
+ }), s.value = I;
272
291
  });
273
- const y = I(() => s.value.length > 0 ? n.value >= s.value.length ? s.value[s.value.length - 1] : s.value[n.value] : t.steps[n.value]), f = I(() => n.value === 0), i = I(() => n.value === s.value.length - 1), m = I(() => !i.value), p = I(() => !f.value), d = I(() => s.value.length), h = I(() => d.value === 0 ? 0 : Math.round((n.value + 1) / d.value * 100));
274
- function z(_, $) {
275
- a.value[_] = { ...a.value[_], ...$ };
292
+ const g = F(() => o.value.length > 0 ? n.value >= o.value.length ? o.value[o.value.length - 1] : o.value[n.value] : t.steps[n.value]), d = F(() => n.value === 0), c = F(() => n.value === o.value.length - 1), p = F(() => !c.value), m = F(() => !d.value), h = F(() => o.value.length), f = F(() => h.value === 0 ? 0 : Math.round((n.value + 1) / h.value * 100));
293
+ function x(C, I) {
294
+ a.value[C] = { ...a.value[C], ...I };
276
295
  }
277
- function C(_, $) {
278
- e.value[_] = { ...e.value[_], ...$ };
296
+ function V(C, I) {
297
+ e.value[C] = { ...e.value[C], ...I };
279
298
  }
280
- function O(_) {
281
- if (t.steps.find((b) => b.id === _)) {
282
- const b = a.value[_] || {};
283
- a.value[_] = o(_, b), e.value[_] = {};
299
+ function S(C) {
300
+ if (t.steps.find((U) => U.id === C)) {
301
+ const U = a.value[C] || {};
302
+ a.value[C] = i(C, U), e.value[C] = {};
284
303
  }
285
304
  }
286
- async function S() {
287
- const _ = y.value;
288
- if (!_) return !0;
289
- const $ = [];
290
- if (_.validation) {
291
- const b = await _.validation(
292
- a.value[_.id],
293
- e.value[_.id]
305
+ async function O() {
306
+ const C = g.value;
307
+ if (!C) return !0;
308
+ const I = [];
309
+ if (C.validation) {
310
+ const U = await C.validation(
311
+ a.value[C.id],
312
+ e.value[C.id]
294
313
  );
295
- b && $.push(...b);
314
+ U && I.push(...U);
296
315
  }
297
- return l.value[_.id] = $, $.length === 0;
316
+ return l.value[C.id] = I, I.length === 0;
298
317
  }
299
- async function M(_) {
300
- return _ < 0 || _ >= s.value.length || _ > n.value && !await S() ? !1 : (n.value = _, !0);
318
+ async function H(C) {
319
+ return C < 0 || C >= o.value.length || C > n.value && !await O() ? !1 : (n.value = C, !0);
301
320
  }
302
- async function N() {
303
- return m.value ? M(n.value + 1) : !1;
321
+ async function A() {
322
+ return p.value ? H(n.value + 1) : !1;
304
323
  }
305
- async function Q() {
306
- return p.value ? M(n.value - 1) : !1;
324
+ async function B() {
325
+ return m.value ? H(n.value - 1) : !1;
307
326
  }
308
- function X() {
309
- n.value = 0, l.value = {}, t.steps.forEach((_) => {
310
- O(_.id), l.value[_.id] = [];
327
+ function D() {
328
+ n.value = 0, l.value = {}, t.steps.forEach((C) => {
329
+ S(C.id), l.value[C.id] = [];
311
330
  });
312
331
  }
313
- async function te() {
314
- let _ = !0;
315
- for (const $ of t.steps)
316
- if ($.validation) {
317
- const b = await $.validation(
318
- a.value[$.id],
319
- e.value[$.id]
332
+ async function Z() {
333
+ let C = !0;
334
+ for (const I of t.steps)
335
+ if (I.validation) {
336
+ const U = await I.validation(
337
+ a.value[I.id],
338
+ e.value[I.id]
320
339
  );
321
- l.value[$.id] = b || [], b && b.length > 0 && (_ = !1);
340
+ l.value[I.id] = U || [], U && U.length > 0 && (C = !1);
322
341
  }
323
- return _;
342
+ return C;
324
343
  }
325
- function H() {
344
+ function Q() {
326
345
  return {
327
346
  formData: { ...a.value },
328
347
  computedData: { ...e.value }
@@ -331,38 +350,38 @@ function dt(t) {
331
350
  return {
332
351
  // State
333
352
  currentStepIndex: n,
334
- currentStep: y,
353
+ currentStep: g,
335
354
  stepData: a,
336
355
  stepComputedData: e,
337
356
  stepValidationErrors: l,
338
357
  // Computed
339
- visibleSteps: s,
340
- isFirstStep: f,
341
- isLastStep: i,
342
- canGoNext: m,
343
- canGoPrevious: p,
344
- totalSteps: d,
345
- progressPercentage: h,
358
+ visibleSteps: o,
359
+ isFirstStep: d,
360
+ isLastStep: c,
361
+ canGoNext: p,
362
+ canGoPrevious: m,
363
+ totalSteps: h,
364
+ progressPercentage: f,
346
365
  // Methods
347
- updateStepData: z,
348
- updateStepComputedData: C,
349
- clearStepData: O,
350
- validateCurrentStep: S,
351
- goToStep: M,
352
- nextStep: N,
353
- previousStep: Q,
354
- resetForm: X,
355
- validateAllSteps: te,
356
- getMultiStepFormData: H
366
+ updateStepData: x,
367
+ updateStepComputedData: V,
368
+ clearStepData: S,
369
+ validateCurrentStep: O,
370
+ goToStep: H,
371
+ nextStep: A,
372
+ previousStep: B,
373
+ resetForm: D,
374
+ validateAllSteps: Z,
375
+ getMultiStepFormData: Q
357
376
  };
358
377
  }
359
- const vt = { class: "step-indicator__container" }, pt = ["onClick"], ft = { class: "step-indicator__step-content" }, mt = { class: "step-indicator__step-marker" }, ht = { class: "step-indicator__step-info" }, yt = { class: "step-indicator__step-title" }, gt = {
378
+ const mt = { class: "step-indicator__container" }, ht = ["onClick"], yt = { class: "step-indicator__step-content" }, gt = { class: "step-indicator__step-marker" }, bt = { class: "step-indicator__step-info" }, kt = { class: "step-indicator__step-title" }, _t = {
360
379
  key: 0,
361
380
  class: "step-indicator__step-subtitle"
362
- }, bt = {
381
+ }, Vt = {
363
382
  key: 0,
364
383
  class: "step-indicator__progress"
365
- }, kt = { class: "step-indicator__progress-bar" }, Vt = { class: "step-indicator__progress-text" }, _t = /* @__PURE__ */ U({
384
+ }, Ct = { class: "step-indicator__progress-bar" }, St = { class: "step-indicator__progress-text" }, wt = /* @__PURE__ */ N({
366
385
  __name: "StepIndicator",
367
386
  props: {
368
387
  steps: {},
@@ -373,55 +392,55 @@ const vt = { class: "step-indicator__container" }, pt = ["onClick"], ft = { clas
373
392
  },
374
393
  emits: ["step-click"],
375
394
  setup(t, { emit: n }) {
376
- const a = t, e = n, l = I(() => a.steps.length === 0 ? 0 : (a.activeStepIndex + 1) / a.steps.length * 100);
377
- function o(u) {
378
- a.allowNavigation && e("step-click", u);
395
+ const a = t, e = n, l = F(() => a.steps.length === 0 ? 0 : (a.activeStepIndex + 1) / a.steps.length * 100);
396
+ function i(s) {
397
+ a.allowNavigation && e("step-click", s);
379
398
  }
380
- return (u, s) => (v(), B("div", {
381
- class: G(["step-indicator", [`step-indicator--${u.position}`, { "step-indicator--clickable": u.allowNavigation }]])
399
+ return (s, o) => (v(), P("div", {
400
+ class: q(["step-indicator", [`step-indicator--${s.position}`, { "step-indicator--clickable": s.allowNavigation }]])
382
401
  }, [
383
- T("div", vt, [
384
- (v(!0), B(L, null, ee(u.steps, (y, f) => (v(), B("div", {
385
- key: y.id,
386
- class: G(["step-indicator__step", {
387
- "step-indicator__step--active": f === u.activeStepIndex,
388
- "step-indicator__step--completed": f < u.activeStepIndex,
389
- "step-indicator__step--clickable": u.allowNavigation
402
+ R("div", mt, [
403
+ (v(!0), P(K, null, le(s.steps, (g, d) => (v(), P("div", {
404
+ key: g.id,
405
+ class: q(["step-indicator__step", {
406
+ "step-indicator__step--active": d === s.activeStepIndex,
407
+ "step-indicator__step--completed": d < s.activeStepIndex,
408
+ "step-indicator__step--clickable": s.allowNavigation
390
409
  }]),
391
- onClick: (i) => o(f)
410
+ onClick: (c) => i(d)
392
411
  }, [
393
- T("div", ft, [
394
- T("div", mt, [
395
- T("span", null, D(f + 1), 1)
412
+ R("div", yt, [
413
+ R("div", gt, [
414
+ R("span", null, T(d + 1), 1)
396
415
  ]),
397
- T("div", ht, [
398
- T("div", yt, D(y.title), 1),
399
- y.subtitle ? (v(), B("div", gt, D(y.subtitle), 1)) : A("", !0)
416
+ R("div", bt, [
417
+ R("div", kt, T(g.title), 1),
418
+ g.subtitle ? (v(), P("div", _t, T(g.subtitle), 1)) : z("", !0)
400
419
  ])
401
420
  ]),
402
- f < u.steps.length - 1 ? (v(), B("div", {
421
+ d < s.steps.length - 1 ? (v(), P("div", {
403
422
  key: 0,
404
- class: G(["step-indicator__connector", { "step-indicator__connector--completed": f < u.activeStepIndex }])
405
- }, null, 2)) : A("", !0)
406
- ], 10, pt))), 128))
423
+ class: q(["step-indicator__connector", { "step-indicator__connector--completed": d < s.activeStepIndex }])
424
+ }, null, 2)) : z("", !0)
425
+ ], 10, ht))), 128))
407
426
  ]),
408
- u.showProgress && (u.position === "top" || u.position === "bottom") ? (v(), B("div", bt, [
409
- T("div", kt, [
410
- T("div", {
427
+ s.showProgress && (s.position === "top" || s.position === "bottom") ? (v(), P("div", Vt, [
428
+ R("div", Ct, [
429
+ R("div", {
411
430
  class: "step-indicator__progress-fill",
412
- style: fe({ width: `${l.value}%` })
431
+ style: he({ width: `${l.value}%` })
413
432
  }, null, 4)
414
433
  ]),
415
- T("div", Vt, " Step " + D(u.activeStepIndex + 1) + " of " + D(u.steps.length), 1)
416
- ])) : A("", !0)
434
+ R("div", St, " Step " + T(s.activeStepIndex + 1) + " of " + T(s.steps.length), 1)
435
+ ])) : z("", !0)
417
436
  ], 2));
418
437
  }
419
- }), re = (t, n) => {
438
+ }), ae = (t, n) => {
420
439
  const a = t.__vccOpts || t;
421
440
  for (const [e, l] of n)
422
441
  a[e] = l;
423
442
  return a;
424
- }, pe = /* @__PURE__ */ re(_t, [["__scopeId", "data-v-aca1a6d0"]]), ae = /* @__PURE__ */ U({
443
+ }, me = /* @__PURE__ */ ae(wt, [["__scopeId", "data-v-aca1a6d0"]]), oe = /* @__PURE__ */ N({
425
444
  __name: "ActionButton",
426
445
  props: {
427
446
  type: {
@@ -434,26 +453,26 @@ const vt = { class: "step-indicator__container" }, pt = ["onClick"], ft = { clas
434
453
  }
435
454
  },
436
455
  setup(t) {
437
- const n = Se("globalConfig"), a = t, e = I(() => {
438
- var l, o;
439
- return a.label ?? ((o = (l = n == null ? void 0 : n.buttons) == null ? void 0 : l[a.type]) == null ? void 0 : o.label) ?? a.type;
456
+ const n = xe("globalConfig"), a = t, e = F(() => {
457
+ var l, i;
458
+ return a.label ?? ((i = (l = n == null ? void 0 : n.buttons) == null ? void 0 : l[a.type]) == null ? void 0 : i.label) ?? a.type;
440
459
  });
441
- return (l, o) => {
442
- var u, s, y, f, i, m, p, d, h, z, C, O;
443
- return v(), k(c(ye), {
444
- color: ((y = (s = (u = c(n)) == null ? void 0 : u.buttons) == null ? void 0 : s[t.type]) == null ? void 0 : y.color) ?? "primary",
445
- fill: ((m = (i = (f = c(n)) == null ? void 0 : f.buttons) == null ? void 0 : i[t.type]) == null ? void 0 : m.fill) ?? "solid",
446
- expand: (h = (d = (p = c(n)) == null ? void 0 : p.buttons) == null ? void 0 : d[t.type]) == null ? void 0 : h.expand,
447
- size: ((O = (C = (z = c(n)) == null ? void 0 : z.buttons) == null ? void 0 : C[t.type]) == null ? void 0 : O.size) ?? "default"
460
+ return (l, i) => {
461
+ var s, o, g, d, c, p, m, h, f, x, V, S;
462
+ return v(), k(r(ke), {
463
+ color: ((g = (o = (s = r(n)) == null ? void 0 : s.buttons) == null ? void 0 : o[t.type]) == null ? void 0 : g.color) ?? "primary",
464
+ fill: ((p = (c = (d = r(n)) == null ? void 0 : d.buttons) == null ? void 0 : c[t.type]) == null ? void 0 : p.fill) ?? "solid",
465
+ expand: (f = (h = (m = r(n)) == null ? void 0 : m.buttons) == null ? void 0 : h[t.type]) == null ? void 0 : f.expand,
466
+ size: ((S = (V = (x = r(n)) == null ? void 0 : x.buttons) == null ? void 0 : V[t.type]) == null ? void 0 : S.size) ?? "default"
448
467
  }, {
449
- default: x(() => [
450
- j(D(e.value), 1)
468
+ default: E(() => [
469
+ G(T(e.value), 1)
451
470
  ]),
452
471
  _: 1
453
472
  }, 8, ["color", "fill", "expand", "size"]);
454
473
  };
455
474
  }
456
- }), ze = /* @__PURE__ */ U({
475
+ }), $e = /* @__PURE__ */ N({
457
476
  __name: "CustomButton",
458
477
  props: {
459
478
  button: {
@@ -462,26 +481,26 @@ const vt = { class: "step-indicator__container" }, pt = ["onClick"], ft = { clas
462
481
  }
463
482
  },
464
483
  setup(t) {
465
- return (n, a) => (v(), k(c(ye), {
484
+ return (n, a) => (v(), k(r(ke), {
466
485
  onClick: t.button.action,
467
486
  color: t.button.color ?? "primary",
468
487
  fill: t.button.fill ?? "solid",
469
488
  size: t.button.size ?? "default",
470
489
  expand: t.button.expand
471
490
  }, {
472
- default: x(() => [
473
- j(D(t.button.label), 1)
491
+ default: E(() => [
492
+ G(T(t.button.label), 1)
474
493
  ]),
475
494
  _: 1
476
495
  }, 8, ["onClick", "color", "fill", "size", "expand"]));
477
496
  }
478
- }), Ct = { class: "v-form-container" }, St = {
497
+ }), Et = { class: "v-form-container" }, xt = {
479
498
  key: 0,
480
499
  class: "multi-step-form"
481
- }, wt = { class: "multi-step-form-content" }, xt = {
500
+ }, Ot = { class: "multi-step-form-content" }, It = {
482
501
  key: 3,
483
502
  class: "step-progress-bottom"
484
- }, Ot = { class: "step-progress-bar" }, Et = { class: "step-progress-text" }, It = /* @__PURE__ */ U({
503
+ }, zt = { class: "step-progress-bar" }, Ft = { class: "step-progress-text" }, $t = /* @__PURE__ */ N({
485
504
  __name: "vForm",
486
505
  props: {
487
506
  schema: {},
@@ -500,86 +519,86 @@ const vt = { class: "step-indicator__container" }, pt = ["onClick"], ft = { clas
500
519
  },
501
520
  emits: ["submit", "multi-step-submit", "step-change", "clear", "cancel"],
502
521
  setup(t, { expose: n, emit: a }) {
503
- const e = t, l = a, o = I(() => !!e.multiStepConfig), u = F(e.schema || {}), s = e.multiStepConfig ? dt(e.multiStepConfig) : null, { dynamicRefs: y, isFormValid: f } = Be(), { formData: i, computedData: m } = ct(u), p = F(null), d = I(() => (s == null ? void 0 : s.currentStepIndex.value) ?? 0), h = I(() => s == null ? void 0 : s.currentStep.value), z = I(() => (s == null ? void 0 : s.visibleSteps.value) ?? []), C = I(() => (s == null ? void 0 : s.isLastStep.value) ?? !0), O = I(() => (s == null ? void 0 : s.canGoNext.value) ?? !1), S = I(() => (s == null ? void 0 : s.canGoPrevious.value) ?? !1), M = I(() => !o.value || !s ? 0 : s.progressPercentage.value);
504
- q(
505
- () => h.value,
506
- (r) => {
507
- r && o.value && (u.value = r.schema || {});
522
+ const e = t, l = a, i = F(() => !!e.multiStepConfig), s = $(e.schema || {}), o = e.multiStepConfig ? ft(e.multiStepConfig) : null, { dynamicRefs: g, isFormValid: d } = De(), { formData: c, computedData: p } = pt(s), m = $(null), h = F(() => (o == null ? void 0 : o.currentStepIndex.value) ?? 0), f = F(() => o == null ? void 0 : o.currentStep.value), x = F(() => (o == null ? void 0 : o.visibleSteps.value) ?? []), V = F(() => (o == null ? void 0 : o.isLastStep.value) ?? !0), S = F(() => (o == null ? void 0 : o.canGoNext.value) ?? !1), O = F(() => (o == null ? void 0 : o.canGoPrevious.value) ?? !1), H = F(() => !i.value || !o ? 0 : o.progressPercentage.value);
523
+ W(
524
+ () => f.value,
525
+ (u) => {
526
+ u && i.value && (s.value = u.schema || {});
508
527
  },
509
528
  { immediate: !0 }
510
- ), q(
511
- [i, m],
512
- ([r, g]) => {
513
- o.value && s && h.value && (s.updateStepData(h.value.id, r), s.updateStepComputedData(h.value.id, g));
529
+ ), W(
530
+ [c, p],
531
+ ([u, _]) => {
532
+ i.value && o && f.value && (o.updateStepData(f.value.id, u), o.updateStepComputedData(f.value.id, _));
514
533
  },
515
534
  { deep: !0 }
516
- ), q(
535
+ ), W(
517
536
  () => e.schema,
518
- (r) => {
519
- if (!o.value && r) {
520
- u.value = r;
521
- for (const [g, E] of Object.entries(r))
522
- W(E) && "value" in E && E.value !== void 0 && (u.value[g].value = E.value);
537
+ (u) => {
538
+ if (!i.value && u) {
539
+ s.value = u;
540
+ for (const [_, b] of Object.entries(u))
541
+ X(b) && "value" in b && b.value !== void 0 && (s.value[_].value = b.value);
523
542
  }
524
543
  },
525
544
  { deep: !0, immediate: !0 }
526
545
  );
527
- async function N() {
528
- var r;
529
- if (o.value && s) {
530
- if ((r = h.value) != null && r.component && p.value && typeof p.value.validate == "function" && !await p.value.validate() || !await s.validateAllSteps()) return;
531
- const E = s.getMultiStepFormData();
532
- l("multi-step-submit", E);
546
+ async function A() {
547
+ var u;
548
+ if (i.value && o) {
549
+ if ((u = f.value) != null && u.component && m.value && typeof m.value.validate == "function" && !await m.value.validate() || !await o.validateAllSteps()) return;
550
+ const b = o.getMultiStepFormData();
551
+ l("multi-step-submit", b);
533
552
  } else {
534
- if (!await f()) return;
535
- l("submit", i.value, m.value);
553
+ if (!await d()) return;
554
+ l("submit", c.value, p.value);
536
555
  }
537
556
  }
538
- function Q() {
539
- nt(
540
- y.value,
541
- u.value,
542
- i.value,
543
- m.value
557
+ function B() {
558
+ ut(
559
+ g.value,
560
+ s.value,
561
+ c.value,
562
+ p.value
544
563
  );
545
564
  }
546
- function X() {
547
- o.value && s && h.value && s.clearStepData(h.value.id), Q(), l("clear");
565
+ function D() {
566
+ i.value && o && f.value && o.clearStepData(f.value.id), B(), l("clear");
548
567
  }
549
- function te() {
550
- o.value && s ? s.resetForm() : Q(), l("cancel");
568
+ function Z() {
569
+ i.value && o ? o.resetForm() : B(), l("cancel");
551
570
  }
552
- async function H() {
553
- var r;
554
- if (o.value && s) {
555
- let g = !0;
556
- if ((r = h.value) != null && r.component && p.value ? typeof p.value.validate == "function" && (g = await p.value.validate()) : g = await f(), !g)
571
+ async function Q() {
572
+ var u;
573
+ if (i.value && o) {
574
+ let _ = !0;
575
+ if ((u = f.value) != null && u.component && m.value ? typeof m.value.validate == "function" && (_ = await m.value.validate()) : _ = await d(), !_)
557
576
  return;
558
- await s.nextStep() && h.value && l("step-change", d.value, h.value.id);
577
+ await o.nextStep() && f.value && l("step-change", h.value, f.value.id);
559
578
  }
560
579
  }
561
- async function _() {
562
- s && await s.previousStep() && h.value && l("step-change", d.value, h.value.id);
580
+ async function C() {
581
+ o && await o.previousStep() && f.value && l("step-change", h.value, f.value.id);
563
582
  }
564
- async function $(r) {
565
- var g;
566
- if (s) {
567
- if (r > d.value) {
583
+ async function I(u) {
584
+ var _;
585
+ if (o) {
586
+ if (u > h.value) {
568
587
  let w = !0;
569
- if ((g = h.value) != null && g.component && p.value ? typeof p.value.validate == "function" && (w = await p.value.validate()) : w = await f(), !w)
588
+ if ((_ = f.value) != null && _.component && m.value ? typeof m.value.validate == "function" && (w = await m.value.validate()) : w = await d(), !w)
570
589
  return;
571
590
  }
572
- await s.goToStep(r) && h.value && l("step-change", r, h.value.id);
591
+ await o.goToStep(u) && f.value && l("step-change", u, f.value.id);
573
592
  }
574
593
  }
575
- q(
576
- i,
594
+ W(
595
+ c,
577
596
  async () => {
578
- var r;
579
- for (const [g, E] of Object.entries(u.value))
580
- if (!he(E, i.value, m.value)) {
581
- const w = o.value && h.value && h.value.schema ? h.value.schema[g] : (r = e.schema) == null ? void 0 : r[g];
582
- w && W(w) && "value" in w ? E.value = w.value : E.value = void 0;
597
+ var u;
598
+ for (const [_, b] of Object.entries(s.value))
599
+ if (!be(b, c.value, p.value)) {
600
+ const w = i.value && f.value && f.value.schema ? f.value.schema[_] : (u = e.schema) == null ? void 0 : u[_];
601
+ w && X(w) && "value" in w ? b.value = w.value : b.value = void 0;
583
602
  }
584
603
  },
585
604
  {
@@ -587,89 +606,89 @@ const vt = { class: "step-indicator__container" }, pt = ["onClick"], ft = { clas
587
606
  immediate: !0
588
607
  }
589
608
  );
590
- function b(r) {
591
- o.value && s && h.value && s.updateStepData(h.value.id, r);
609
+ function U(u) {
610
+ i.value && o && f.value && o.updateStepData(f.value.id, u);
592
611
  }
593
612
  return n({
594
- isLastStep: C,
595
- canGoNext: O,
596
- canGoPrevious: S,
597
- computedData: m,
598
- formData: i,
599
- resetForm: X,
600
- submitForm: N,
601
- isFormValid: f,
602
- resolveData: () => o.value && s ? s.getMultiStepFormData() : {
603
- formData: i.value,
604
- computedData: m.value
613
+ isLastStep: V,
614
+ canGoNext: S,
615
+ canGoPrevious: O,
616
+ computedData: p,
617
+ formData: c,
618
+ resetForm: D,
619
+ submitForm: A,
620
+ isFormValid: d,
621
+ resolveData: () => i.value && o ? o.getMultiStepFormData() : {
622
+ formData: c.value,
623
+ computedData: p.value
605
624
  },
606
625
  // Multi-step specific methods
607
- nextStep: H,
608
- previousStep: _,
609
- goToStep: $,
610
- getCurrentStep: () => h.value,
611
- getCurrentStepIndex: () => d.value
612
- }), (r, g) => {
613
- var E, w;
614
- return v(), B("div", Ct, [
615
- o.value ? (v(), B("div", St, [
616
- r.multiStepConfig && r.multiStepConfig.stepPosition === "top" ? (v(), k(pe, {
626
+ nextStep: Q,
627
+ previousStep: C,
628
+ goToStep: I,
629
+ getCurrentStep: () => f.value,
630
+ getCurrentStepIndex: () => h.value
631
+ }), (u, _) => {
632
+ var b, w;
633
+ return v(), P("div", Et, [
634
+ i.value ? (v(), P("div", xt, [
635
+ u.multiStepConfig && u.multiStepConfig.stepPosition === "top" ? (v(), k(me, {
617
636
  key: 0,
618
- steps: z.value,
619
- "active-step-index": d.value,
620
- position: r.multiStepConfig.stepPosition || "top",
621
- "show-progress": r.multiStepConfig.showProgress,
622
- "allow-navigation": r.multiStepConfig.allowStepNavigation,
623
- onStepClick: $
624
- }, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : A("", !0),
625
- T("div", {
626
- class: G(["multi-step-content", `multi-step-content--${((E = r.multiStepConfig) == null ? void 0 : E.stepPosition) || "top"}`])
637
+ steps: x.value,
638
+ "active-step-index": h.value,
639
+ position: u.multiStepConfig.stepPosition || "top",
640
+ "show-progress": u.multiStepConfig.showProgress,
641
+ "allow-navigation": u.multiStepConfig.allowStepNavigation,
642
+ onStepClick: I
643
+ }, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : z("", !0),
644
+ R("div", {
645
+ class: q(["multi-step-content", `multi-step-content--${((b = u.multiStepConfig) == null ? void 0 : b.stepPosition) || "top"}`])
627
646
  }, [
628
- r.multiStepConfig && r.multiStepConfig.stepPosition === "left" ? (v(), k(pe, {
647
+ u.multiStepConfig && u.multiStepConfig.stepPosition === "left" ? (v(), k(me, {
629
648
  key: 0,
630
- steps: z.value,
631
- "active-step-index": d.value,
632
- position: r.multiStepConfig.stepPosition ?? "top",
633
- "show-progress": r.multiStepConfig.showProgress,
634
- "allow-navigation": r.multiStepConfig.allowStepNavigation,
635
- onStepClick: $,
649
+ steps: x.value,
650
+ "active-step-index": h.value,
651
+ position: u.multiStepConfig.stepPosition ?? "top",
652
+ "show-progress": u.multiStepConfig.showProgress,
653
+ "allow-navigation": u.multiStepConfig.allowStepNavigation,
654
+ onStepClick: I,
636
655
  class: "multi-step-sidebar"
637
- }, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : A("", !0),
638
- T("div", wt, [
639
- (w = h.value) != null && w.component ? (v(), k(me(h.value.component), Pe({ key: 0 }, h.value.componentProps || {}, {
640
- "onUpdate:data": b,
656
+ }, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : z("", !0),
657
+ R("div", Ot, [
658
+ (w = f.value) != null && w.component ? (v(), k(ye(f.value.component), Le({ key: 0 }, f.value.componentProps || {}, {
659
+ "onUpdate:data": U,
641
660
  ref_key: "customComponentRef",
642
- ref: p
643
- }), null, 16)) : (v(), k(c(Ie), { key: 1 }, {
644
- default: x(() => [
645
- P(c(ue), null, {
646
- default: x(() => [
647
- (v(!0), B(L, null, ee(Object.keys(u.value), (V) => {
648
- var R, K, Y, oe, ie;
649
- return v(), B(L, { key: V }, [
650
- c(he)(u.value[V], c(i), c(m)) ? (v(), k(c(ne), {
661
+ ref: m
662
+ }), null, 16)) : (v(), k(r(Fe), { key: 1 }, {
663
+ default: E(() => [
664
+ L(r(ie), null, {
665
+ default: E(() => [
666
+ (v(!0), P(K, null, le(Object.keys(s.value), (y) => {
667
+ var M, j, J, te, re;
668
+ return v(), P(K, { key: y }, [
669
+ r(be)(s.value[y], r(c), r(p)) ? (v(), k(r(se), {
651
670
  key: 0,
652
- size: ((R = u.value[V].grid) == null ? void 0 : R.xs) ?? "12",
653
- "size-sm": (K = u.value[V].grid) == null ? void 0 : K.sm,
654
- "size-md": (Y = u.value[V].grid) == null ? void 0 : Y.md,
655
- "size-lg": (oe = u.value[V].grid) == null ? void 0 : oe.lg,
656
- "size-xl": (ie = u.value[V].grid) == null ? void 0 : ie.xl,
671
+ size: ((M = s.value[y].grid) == null ? void 0 : M.xs) ?? "12",
672
+ "size-sm": (j = s.value[y].grid) == null ? void 0 : j.sm,
673
+ "size-md": (J = s.value[y].grid) == null ? void 0 : J.md,
674
+ "size-lg": (te = s.value[y].grid) == null ? void 0 : te.lg,
675
+ "size-xl": (re = s.value[y].grid) == null ? void 0 : re.xl,
657
676
  class: "ion-margin-vertical"
658
677
  }, {
659
- default: x(() => [
660
- (v(), k(me(u.value[V].type), {
661
- modelValue: u.value[V],
662
- "onUpdate:modelValue": (ke) => u.value[V] = ke,
663
- schema: u.value,
664
- "form-id": V,
678
+ default: E(() => [
679
+ (v(), k(ye(s.value[y].type), {
680
+ modelValue: s.value[y],
681
+ "onUpdate:modelValue": (Se) => s.value[y] = Se,
682
+ schema: s.value,
683
+ "form-id": y,
665
684
  ref_for: !0,
666
685
  ref_key: "dynamicRefs",
667
- ref: y,
668
- "ref-key": V
686
+ ref: g,
687
+ "ref-key": y
669
688
  }, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "form-id", "ref-key"]))
670
689
  ]),
671
690
  _: 2
672
- }, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : A("", !0)
691
+ }, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : z("", !0)
673
692
  ], 64);
674
693
  }), 128))
675
694
  ]),
@@ -678,146 +697,146 @@ const vt = { class: "step-indicator__container" }, pt = ["onClick"], ft = { clas
678
697
  ]),
679
698
  _: 1
680
699
  })),
681
- r.hideButtons ? A("", !0) : (v(), k(c(ue), { key: 2 }, {
682
- default: x(() => [
683
- P(c(ne), {
700
+ u.hideButtons ? z("", !0) : (v(), k(r(ie), { key: 2 }, {
701
+ default: E(() => [
702
+ L(r(se), {
684
703
  size: "12",
685
- style: fe([{ display: "flex" }, { justifyContent: r.buttonPlacement }])
704
+ style: he([{ display: "flex" }, { justifyContent: u.buttonPlacement }])
686
705
  }, {
687
- default: x(() => [
688
- S.value ? (v(), k(ae, {
706
+ default: E(() => [
707
+ O.value ? (v(), k(oe, {
689
708
  key: 0,
690
709
  type: "previous",
691
- label: r.previousButtonText,
692
- onClick: _
693
- }, null, 8, ["label"])) : A("", !0),
694
- r.showCancelButton ? (v(), k(ae, {
710
+ label: u.previousButtonText,
711
+ onClick: C
712
+ }, null, 8, ["label"])) : z("", !0),
713
+ u.showCancelButton ? (v(), k(oe, {
695
714
  key: 1,
696
715
  type: "cancel",
697
- label: r.cancelButtonText,
698
- onClick: te
699
- }, null, 8, ["label"])) : A("", !0),
700
- r.showClearButton ? (v(), k(ae, {
716
+ label: u.cancelButtonText,
717
+ onClick: Z
718
+ }, null, 8, ["label"])) : z("", !0),
719
+ u.showClearButton ? (v(), k(oe, {
701
720
  key: 2,
702
721
  type: "clear",
703
- label: r.clearButtonText,
704
- onClick: X
705
- }, null, 8, ["label"])) : A("", !0),
706
- (v(!0), B(L, null, ee(r.customButtons, (V) => (v(), k(ze, {
707
- button: V,
708
- key: V.label
722
+ label: u.clearButtonText,
723
+ onClick: D
724
+ }, null, 8, ["label"])) : z("", !0),
725
+ (v(!0), P(K, null, le(u.customButtons, (y) => (v(), k($e, {
726
+ button: y,
727
+ key: y.label
709
728
  }, null, 8, ["button"]))), 128)),
710
- O.value ? (v(), k(ae, {
729
+ S.value ? (v(), k(oe, {
711
730
  key: 3,
712
731
  type: "next",
713
- label: r.nextButtonText,
714
- onClick: H
715
- }, null, 8, ["label"])) : A("", !0),
716
- C.value ? (v(), k(ae, {
732
+ label: u.nextButtonText,
733
+ onClick: Q
734
+ }, null, 8, ["label"])) : z("", !0),
735
+ V.value ? (v(), k(oe, {
717
736
  key: 4,
718
737
  type: "submit",
719
- label: r.submitButtonText,
720
- onClick: N
721
- }, null, 8, ["label"])) : A("", !0)
738
+ label: u.submitButtonText,
739
+ onClick: A
740
+ }, null, 8, ["label"])) : z("", !0)
722
741
  ]),
723
742
  _: 1
724
743
  }, 8, ["style"])
725
744
  ]),
726
745
  _: 1
727
746
  })),
728
- r.multiStepConfig && (r.multiStepConfig.stepPosition === "left" || r.multiStepConfig.stepPosition === "right") && r.multiStepConfig.showProgress ? (v(), B("div", xt, [
729
- T("div", Ot, [
730
- T("div", {
747
+ u.multiStepConfig && (u.multiStepConfig.stepPosition === "left" || u.multiStepConfig.stepPosition === "right") && u.multiStepConfig.showProgress ? (v(), P("div", It, [
748
+ R("div", zt, [
749
+ R("div", {
731
750
  class: "step-progress-fill",
732
- style: fe({ width: `${M.value}%` })
751
+ style: he({ width: `${H.value}%` })
733
752
  }, null, 4)
734
753
  ]),
735
- T("div", Et, " Step " + D(d.value + 1) + " of " + D(z.value.length), 1)
736
- ])) : A("", !0)
754
+ R("div", Ft, " Step " + T(h.value + 1) + " of " + T(x.value.length), 1)
755
+ ])) : z("", !0)
737
756
  ]),
738
- r.multiStepConfig && r.multiStepConfig.stepPosition === "right" ? (v(), k(pe, {
757
+ u.multiStepConfig && u.multiStepConfig.stepPosition === "right" ? (v(), k(me, {
739
758
  key: 1,
740
- steps: z.value,
741
- "active-step-index": d.value,
742
- position: r.multiStepConfig.stepPosition,
743
- "show-progress": r.multiStepConfig.showProgress,
744
- "allow-navigation": r.multiStepConfig.allowStepNavigation,
745
- onStepClick: $,
759
+ steps: x.value,
760
+ "active-step-index": h.value,
761
+ position: u.multiStepConfig.stepPosition,
762
+ "show-progress": u.multiStepConfig.showProgress,
763
+ "allow-navigation": u.multiStepConfig.allowStepNavigation,
764
+ onStepClick: I,
746
765
  class: "multi-step-sidebar"
747
- }, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : A("", !0)
766
+ }, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : z("", !0)
748
767
  ], 2),
749
- r.multiStepConfig && r.multiStepConfig.stepPosition === "bottom" ? (v(), k(pe, {
768
+ u.multiStepConfig && u.multiStepConfig.stepPosition === "bottom" ? (v(), k(me, {
750
769
  key: 1,
751
- steps: z.value,
752
- "active-step-index": d.value,
753
- position: r.multiStepConfig.stepPosition,
754
- "show-progress": r.multiStepConfig.showProgress,
755
- "allow-navigation": r.multiStepConfig.allowStepNavigation,
756
- onStepClick: $
757
- }, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : A("", !0)
758
- ])) : (v(), k(c(Ie), { key: 1 }, {
759
- default: x(() => [
760
- P(c(ue), null, {
761
- default: x(() => [
762
- (v(!0), B(L, null, ee(Object.keys(u.value), (V) => {
763
- var R, K, Y, oe, ie;
764
- return v(), B(L, { key: V }, [
765
- c(he)(u.value[V], c(i), c(m)) ? (v(), k(c(ne), {
770
+ steps: x.value,
771
+ "active-step-index": h.value,
772
+ position: u.multiStepConfig.stepPosition,
773
+ "show-progress": u.multiStepConfig.showProgress,
774
+ "allow-navigation": u.multiStepConfig.allowStepNavigation,
775
+ onStepClick: I
776
+ }, null, 8, ["steps", "active-step-index", "position", "show-progress", "allow-navigation"])) : z("", !0)
777
+ ])) : (v(), k(r(Fe), { key: 1 }, {
778
+ default: E(() => [
779
+ L(r(ie), null, {
780
+ default: E(() => [
781
+ (v(!0), P(K, null, le(Object.keys(s.value), (y) => {
782
+ var M, j, J, te, re;
783
+ return v(), P(K, { key: y }, [
784
+ r(be)(s.value[y], r(c), r(p)) ? (v(), k(r(se), {
766
785
  key: 0,
767
- size: ((R = u.value[V].grid) == null ? void 0 : R.xs) ?? "12",
768
- "size-sm": (K = u.value[V].grid) == null ? void 0 : K.sm,
769
- "size-md": (Y = u.value[V].grid) == null ? void 0 : Y.md,
770
- "size-lg": (oe = u.value[V].grid) == null ? void 0 : oe.lg,
771
- "size-xl": (ie = u.value[V].grid) == null ? void 0 : ie.xl,
786
+ size: ((M = s.value[y].grid) == null ? void 0 : M.xs) ?? "12",
787
+ "size-sm": (j = s.value[y].grid) == null ? void 0 : j.sm,
788
+ "size-md": (J = s.value[y].grid) == null ? void 0 : J.md,
789
+ "size-lg": (te = s.value[y].grid) == null ? void 0 : te.lg,
790
+ "size-xl": (re = s.value[y].grid) == null ? void 0 : re.xl,
772
791
  class: "ion-margin-vertical"
773
792
  }, {
774
- default: x(() => [
775
- (v(), k(me(u.value[V].type), {
776
- modelValue: u.value[V],
777
- "onUpdate:modelValue": (ke) => u.value[V] = ke,
778
- schema: u.value,
779
- "form-id": V,
793
+ default: E(() => [
794
+ (v(), k(ye(s.value[y].type), {
795
+ modelValue: s.value[y],
796
+ "onUpdate:modelValue": (Se) => s.value[y] = Se,
797
+ schema: s.value,
798
+ "form-id": y,
780
799
  ref_for: !0,
781
800
  ref_key: "dynamicRefs",
782
- ref: y,
783
- "ref-key": V,
801
+ ref: g,
802
+ "ref-key": y,
784
803
  style: { width: "100%" }
785
804
  }, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "form-id", "ref-key"]))
786
805
  ]),
787
806
  _: 2
788
- }, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : A("", !0)
807
+ }, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : z("", !0)
789
808
  ], 64);
790
809
  }), 128))
791
810
  ]),
792
811
  _: 1
793
812
  }),
794
- r.hideButtons ? A("", !0) : (v(), k(c(ue), { key: 0 }, {
795
- default: x(() => [
796
- P(c(ne), {
813
+ u.hideButtons ? z("", !0) : (v(), k(r(ie), { key: 0 }, {
814
+ default: E(() => [
815
+ L(r(se), {
797
816
  size: "12",
798
- style: fe([{ display: "flex" }, { justifyContent: r.buttonPlacement }])
817
+ style: he([{ display: "flex" }, { justifyContent: u.buttonPlacement }])
799
818
  }, {
800
- default: x(() => [
801
- r.showCancelButton ? (v(), k(ae, {
819
+ default: E(() => [
820
+ u.showCancelButton ? (v(), k(oe, {
802
821
  key: 0,
803
822
  type: "cancel",
804
- label: r.cancelButtonText,
805
- onClick: te
806
- }, null, 8, ["label"])) : A("", !0),
807
- r.showClearButton ? (v(), k(ae, {
823
+ label: u.cancelButtonText,
824
+ onClick: Z
825
+ }, null, 8, ["label"])) : z("", !0),
826
+ u.showClearButton ? (v(), k(oe, {
808
827
  key: 1,
809
828
  type: "clear",
810
- label: r.clearButtonText,
811
- onClick: X
812
- }, null, 8, ["label"])) : A("", !0),
813
- (v(!0), B(L, null, ee(r.customButtons, (V) => (v(), k(ze, {
814
- button: V,
815
- key: V.label
829
+ label: u.clearButtonText,
830
+ onClick: D
831
+ }, null, 8, ["label"])) : z("", !0),
832
+ (v(!0), P(K, null, le(u.customButtons, (y) => (v(), k($e, {
833
+ button: y,
834
+ key: y.label
816
835
  }, null, 8, ["button"]))), 128)),
817
- P(ae, {
836
+ L(oe, {
818
837
  type: "submit",
819
- label: r.submitButtonText,
820
- onClick: N
838
+ label: u.submitButtonText,
839
+ onClick: A
821
840
  }, null, 8, ["label"])
822
841
  ]),
823
842
  _: 1
@@ -831,12 +850,12 @@ const vt = { class: "step-indicator__container" }, pt = ["onClick"], ft = { clas
831
850
  ]);
832
851
  };
833
852
  }
834
- }), zt = /* @__PURE__ */ re(It, [["__scopeId", "data-v-400c942b"]]);
835
- function $t(t) {
853
+ }), At = /* @__PURE__ */ ae($t, [["__scopeId", "data-v-400c942b"]]);
854
+ function Pt(t) {
836
855
  return {
837
856
  applyValidationState: async (e) => {
838
- var l, o, u, s, y;
839
- (l = t.value) == null || l.$el.classList.remove("ion-invalid"), (o = t.value) == null || o.$el.classList.remove("ion-valid"), e ? (u = t.value) == null || u.$el.classList.add("ion-valid") : (s = t.value) == null || s.$el.classList.add("ion-invalid"), (y = t.value) == null || y.$el.classList.add("ion-touched");
857
+ var l, i, s, o, g;
858
+ (l = t.value) == null || l.$el.classList.remove("ion-invalid"), (i = t.value) == null || i.$el.classList.remove("ion-valid"), e ? (s = t.value) == null || s.$el.classList.add("ion-valid") : (o = t.value) == null || o.$el.classList.add("ion-invalid"), (g = t.value) == null || g.$el.classList.add("ion-touched");
840
859
  },
841
860
  resetValidationState: () => {
842
861
  var e, l;
@@ -844,89 +863,125 @@ function $t(t) {
844
863
  }
845
864
  };
846
865
  }
847
- function de(t, n, a, e, l) {
848
- const { applyValidationState: o, resetValidationState: u } = $t(t), s = Se("globalConfig");
849
- async function y() {
850
- var d;
866
+ function ve(t, n, a, e, l) {
867
+ const { applyValidationState: i, resetValidationState: s } = Pt(t), o = xe("globalConfig");
868
+ async function g() {
869
+ var h;
851
870
  if (n.value.required && !a.value)
852
- return n.value.error = ((d = s == null ? void 0 : s.errorMessages) == null ? void 0 : d.required) ?? "This field is required", !1;
871
+ return n.value.error = ((h = o == null ? void 0 : o.errorMessages) == null ? void 0 : h.required) ?? "This field is required", !1;
853
872
  if (l) {
854
- const h = await l(a.value);
855
- if (typeof h == "string")
856
- return n.value.error = h, !1;
857
- if (h === !1)
873
+ const f = await l(a.value);
874
+ if (typeof f == "string")
875
+ return n.value.error = f, !1;
876
+ if (f === !1)
858
877
  return !1;
859
878
  }
860
879
  if (n.value.validation) {
861
- const h = await n.value.validation(a.value, e == null ? void 0 : e.value);
862
- if (h != null && h.length)
863
- return n.value.error = h.join(), !1;
880
+ const f = await n.value.validation(a.value, e == null ? void 0 : e.value);
881
+ if (f != null && f.length)
882
+ return n.value.error = f.join(), !1;
864
883
  }
865
884
  return !0;
866
885
  }
867
- async function f() {
868
- const d = await y();
869
- d && (n.value.error = "", n.value.value = a.value), await o(d);
886
+ async function d() {
887
+ const h = await g();
888
+ h && (n.value.error = "", n.value.value = a.value), await i(h);
870
889
  }
871
- function i() {
872
- u(), n.value.error = "";
890
+ function c() {
891
+ s(), n.value.error = "";
873
892
  }
874
- function m(d = "") {
875
- a.value = d, n.value.error = "", n.value.value = d;
893
+ function p(h = "") {
894
+ a.value = h, n.value.error = "", n.value.value = h;
876
895
  }
877
- function p() {
896
+ function m() {
878
897
  return n.value.error ? [n.value.error] : [];
879
898
  }
880
899
  return {
881
- isValid: y,
882
- onValueUpdate: f,
883
- onFocus: i,
884
- onReset: m,
885
- getErrors: p,
886
- applyValidationState: o,
887
- resetValidationState: u
900
+ isValid: g,
901
+ onValueUpdate: d,
902
+ onFocus: c,
903
+ onReset: p,
904
+ getErrors: m,
905
+ applyValidationState: i,
906
+ resetValidationState: s
907
+ };
908
+ }
909
+ function pe(t) {
910
+ const n = $(void 0), a = $(!1), e = $(null);
911
+ async function l() {
912
+ if (!t.value.value) {
913
+ n.value = void 0;
914
+ return;
915
+ }
916
+ a.value = !0, e.value = null;
917
+ try {
918
+ const s = await st(t.value.value);
919
+ n.value = s, t.value.value = s;
920
+ } catch (s) {
921
+ e.value = s instanceof Error ? s.message : "Failed to resolve field value", console.error("Error resolving field value:", s);
922
+ } finally {
923
+ a.value = !1;
924
+ }
925
+ }
926
+ async function i(s) {
927
+ t.value.value = s, await l();
928
+ }
929
+ return W(
930
+ () => t.value.value,
931
+ async () => {
932
+ await l();
933
+ },
934
+ { immediate: !1 }
935
+ ), Ve(async () => {
936
+ await l();
937
+ }), {
938
+ resolvedValue: n,
939
+ isLoading: a,
940
+ error: e,
941
+ resolveValue: l,
942
+ updateValue: i
888
943
  };
889
944
  }
890
- function At(t) {
891
- const n = I(() => !!t.value.label), a = I(() => !!t.value.required), e = I(() => t.value.label || "");
945
+ function Bt(t) {
946
+ const n = F(() => !!t.value.label), a = F(() => !!t.value.required), e = F(() => t.value.label || "");
892
947
  return {
893
948
  showLabel: n,
894
949
  showRequired: a,
895
950
  labelText: e
896
951
  };
897
952
  }
898
- const be = /* @__PURE__ */ U({
953
+ const Ce = /* @__PURE__ */ N({
899
954
  __name: "InputLabel",
900
955
  props: {
901
956
  model: {},
902
957
  slotName: {}
903
958
  },
904
959
  setup(t) {
905
- const n = t, { showLabel: a, showRequired: e, labelText: l } = At(De(n, "model"));
906
- return (o, u) => c(a) ? (v(), k(c(se), {
960
+ const n = t, { showLabel: a, showRequired: e, labelText: l } = Bt(Te(n, "model"));
961
+ return (i, s) => r(a) ? (v(), k(r(ue), {
907
962
  key: 0,
908
- slot: o.slotName,
963
+ slot: i.slotName,
909
964
  class: "input-label"
910
965
  }, {
911
- default: x(() => [
912
- j(D(c(l)) + " ", 1),
913
- c(e) ? (v(), k(c(xe), {
966
+ default: E(() => [
967
+ G(T(r(l)) + " ", 1),
968
+ r(e) ? (v(), k(r(Oe), {
914
969
  key: 0,
915
970
  color: "danger"
916
971
  }, {
917
- default: x(() => u[0] || (u[0] = [
918
- j("*")
972
+ default: E(() => s[0] || (s[0] = [
973
+ G("*")
919
974
  ])),
920
975
  _: 1,
921
976
  __: [0]
922
- })) : A("", !0)
977
+ })) : z("", !0)
923
978
  ]),
924
979
  _: 1
925
- }, 8, ["slot"])) : A("", !0);
980
+ }, 8, ["slot"])) : z("", !0);
926
981
  }
927
- }), ve = /* @__PURE__ */ U({
982
+ }), Dt = /* @__PURE__ */ N({
928
983
  __name: "BaseInput",
929
- props: /* @__PURE__ */ Z({
984
+ props: /* @__PURE__ */ Y({
930
985
  schema: {},
931
986
  type: {}
932
987
  }, {
@@ -935,88 +990,108 @@ const be = /* @__PURE__ */ U({
935
990
  }),
936
991
  emits: ["update:modelValue"],
937
992
  setup(t, { expose: n }) {
938
- const a = t, e = J(t, "modelValue"), l = F(null), o = F(e.value.value), u = I(() => a.schema), { isValid: s, onValueUpdate: y, onFocus: f, onReset: i, getErrors: m } = de(
993
+ const a = t, e = ee(t, "modelValue"), l = $(null), i = F(() => a.schema), { resolvedValue: s, isLoading: o, error: g } = pe(e), d = $("");
994
+ W(
995
+ s,
996
+ (S) => {
997
+ S != null ? d.value = String(S) : d.value = "";
998
+ },
999
+ { immediate: !0 }
1000
+ );
1001
+ const { isValid: c, onValueUpdate: p, onFocus: m, onReset: h, getErrors: f } = ve(
939
1002
  l,
940
1003
  e,
941
- o,
942
- u
943
- ), p = I(() => {
944
- if (e.value.pattern) return at(e.value.pattern);
1004
+ d,
1005
+ i
1006
+ ), x = F(() => {
1007
+ if (e.value.pattern) return ot(e.value.pattern);
945
1008
  });
946
- return q(
947
- () => e.value.value,
948
- (d) => o.value = d
949
- ), n({
950
- onValueUpdate: y,
951
- onReset: i,
952
- getErrors: m,
953
- isValid: s
954
- }), (d, h) => {
955
- var C;
956
- const z = Te("maskito");
957
- return Ue((v(), k(c($e), {
958
- ref_key: "inputRef",
959
- ref: l,
960
- modelValue: o.value,
961
- "onUpdate:modelValue": h[0] || (h[0] = (O) => o.value = O),
962
- class: G(e.value.className),
963
- "clear-input": !0,
964
- fill: e.value.fill ?? "solid",
965
- "label-placement": e.value.labelPlacement ?? "stacked",
966
- type: d.type ?? "text",
967
- required: e.value.required,
968
- "error-text": e.value.error,
969
- autofocus: e.value.autoFocus,
970
- placeholder: ((C = p.value) == null ? void 0 : C.placeholder) ?? e.value.placeholder,
971
- disabled: e.value.disabled,
972
- counter: e.value.counter,
973
- min: e.value.min,
974
- max: e.value.max,
975
- "max-length": e.value.maxLength,
976
- "min-length": e.value.minLength,
977
- pattern: e.value.pattern,
978
- style: { width: "100%" },
979
- onIonFocus: c(f),
980
- onIonChange: c(y),
981
- onIonBlur: c(y)
982
- }, {
983
- default: x(() => [
984
- P(be, {
985
- model: e.value,
986
- "slot-name": "label"
987
- }, null, 8, ["model"]),
988
- e.value.prefix ? (v(), k(c(se), {
989
- key: 0,
990
- slot: "start"
991
- }, {
992
- default: x(() => [
993
- j(D(e.value.prefix), 1)
994
- ]),
995
- _: 1
996
- })) : A("", !0),
997
- e.value.suffix ? (v(), k(c(se), {
998
- key: 1,
999
- slot: "end"
1000
- }, {
1001
- default: x(() => [
1002
- j(D(e.value.suffix), 1)
1003
- ]),
1004
- _: 1
1005
- })) : A("", !0),
1006
- d.type === "password" ? (v(), k(c(Re), {
1007
- key: 2,
1008
- slot: "end"
1009
- })) : A("", !0)
1010
- ]),
1011
- _: 1
1012
- }, 8, ["modelValue", "class", "fill", "label-placement", "type", "required", "error-text", "autofocus", "placeholder", "disabled", "counter", "min", "max", "max-length", "min-length", "pattern", "onIonFocus", "onIonChange", "onIonBlur"])), [
1013
- [z, p.value]
1014
- ]);
1009
+ return n({
1010
+ onValueUpdate: p,
1011
+ onReset: h,
1012
+ getErrors: () => {
1013
+ const S = f();
1014
+ return g.value ? [...S, g.value] : S;
1015
+ },
1016
+ isValid: c,
1017
+ isLoading: o,
1018
+ valueError: g
1019
+ }), (S, O) => {
1020
+ var A;
1021
+ const H = Ue("maskito");
1022
+ return v(), P("div", {
1023
+ class: q(["input-container", { loading: r(o) }])
1024
+ }, [
1025
+ Re((v(), k(r(Ae), {
1026
+ ref_key: "inputRef",
1027
+ ref: l,
1028
+ modelValue: d.value,
1029
+ "onUpdate:modelValue": O[0] || (O[0] = (B) => d.value = B),
1030
+ class: q(e.value.className),
1031
+ "clear-input": !0,
1032
+ fill: e.value.fill ?? "solid",
1033
+ "label-placement": e.value.labelPlacement ?? "stacked",
1034
+ type: S.type ?? "text",
1035
+ required: e.value.required,
1036
+ "error-text": e.value.error,
1037
+ autofocus: e.value.autoFocus,
1038
+ placeholder: r(o) ? "Loading..." : ((A = x.value) == null ? void 0 : A.placeholder) ?? e.value.placeholder,
1039
+ disabled: e.value.disabled || r(o),
1040
+ counter: e.value.counter,
1041
+ min: e.value.min,
1042
+ max: e.value.max,
1043
+ "max-length": e.value.maxLength,
1044
+ "min-length": e.value.minLength,
1045
+ pattern: e.value.pattern,
1046
+ style: { width: "100%" },
1047
+ onIonFocus: r(m),
1048
+ onIonChange: r(p),
1049
+ onIonBlur: r(p)
1050
+ }, {
1051
+ default: E(() => [
1052
+ L(Ce, {
1053
+ model: e.value,
1054
+ "slot-name": "label"
1055
+ }, null, 8, ["model"]),
1056
+ e.value.prefix ? (v(), k(r(ue), {
1057
+ key: 0,
1058
+ slot: "start"
1059
+ }, {
1060
+ default: E(() => [
1061
+ G(T(e.value.prefix), 1)
1062
+ ]),
1063
+ _: 1
1064
+ })) : z("", !0),
1065
+ e.value.suffix ? (v(), k(r(ue), {
1066
+ key: 1,
1067
+ slot: "end"
1068
+ }, {
1069
+ default: E(() => [
1070
+ G(T(e.value.suffix), 1)
1071
+ ]),
1072
+ _: 1
1073
+ })) : z("", !0),
1074
+ S.type === "password" ? (v(), k(r(qe), {
1075
+ key: 2,
1076
+ slot: "end"
1077
+ })) : z("", !0),
1078
+ r(o) ? (v(), k(r(de), {
1079
+ key: 3,
1080
+ slot: "end",
1081
+ name: "crescent",
1082
+ class: "loading-spinner"
1083
+ })) : z("", !0)
1084
+ ]),
1085
+ _: 1
1086
+ }, 8, ["modelValue", "class", "fill", "label-placement", "type", "required", "error-text", "autofocus", "placeholder", "disabled", "counter", "min", "max", "max-length", "min-length", "pattern", "onIonFocus", "onIonChange", "onIonBlur"])), [
1087
+ [H, x.value]
1088
+ ])
1089
+ ], 2);
1015
1090
  };
1016
1091
  }
1017
- }), Ft = /* @__PURE__ */ U({
1092
+ }), fe = /* @__PURE__ */ ae(Dt, [["__scopeId", "data-v-9a88e1aa"]]), Lt = /* @__PURE__ */ N({
1018
1093
  __name: "TextInput",
1019
- props: /* @__PURE__ */ Z({
1094
+ props: /* @__PURE__ */ Y({
1020
1095
  schema: {}
1021
1096
  }, {
1022
1097
  modelValue: { type: Object, default: {} },
@@ -1024,7 +1099,7 @@ const be = /* @__PURE__ */ U({
1024
1099
  }),
1025
1100
  emits: ["update:modelValue"],
1026
1101
  setup(t, { expose: n }) {
1027
- const a = J(t, "modelValue"), e = F(null);
1102
+ const a = ee(t, "modelValue"), e = $(null);
1028
1103
  return n({
1029
1104
  onReset: () => {
1030
1105
  var l;
@@ -1035,21 +1110,21 @@ const be = /* @__PURE__ */ U({
1035
1110
  return (l = e.value) == null ? void 0 : l.onValueUpdate();
1036
1111
  },
1037
1112
  getErrors: () => {
1038
- var l, o;
1039
- return ((o = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : o.call(l)) ?? [];
1113
+ var l, i;
1114
+ return ((i = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : i.call(l)) ?? [];
1040
1115
  }
1041
- }), (l, o) => (v(), k(ve, {
1116
+ }), (l, i) => (v(), k(fe, {
1042
1117
  modelValue: a.value,
1043
- "onUpdate:modelValue": o[0] || (o[0] = (u) => a.value = u),
1118
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => a.value = s),
1044
1119
  type: "text",
1045
1120
  schema: l.schema,
1046
1121
  ref_key: "inputRef",
1047
1122
  ref: e
1048
1123
  }, null, 8, ["modelValue", "schema"]));
1049
1124
  }
1050
- }), Bt = /* @__PURE__ */ U({
1125
+ }), Tt = /* @__PURE__ */ N({
1051
1126
  __name: "DateInput",
1052
- props: /* @__PURE__ */ Z({
1127
+ props: /* @__PURE__ */ Y({
1053
1128
  schema: {}
1054
1129
  }, {
1055
1130
  modelValue: { type: Object, default: {} },
@@ -1057,7 +1132,7 @@ const be = /* @__PURE__ */ U({
1057
1132
  }),
1058
1133
  emits: ["update:modelValue"],
1059
1134
  setup(t, { expose: n }) {
1060
- const a = J(t, "modelValue"), e = F(null);
1135
+ const a = ee(t, "modelValue"), e = $(null);
1061
1136
  return n({
1062
1137
  onValueUpdate: () => {
1063
1138
  var l;
@@ -1068,21 +1143,21 @@ const be = /* @__PURE__ */ U({
1068
1143
  return (l = e.value) == null ? void 0 : l.onReset();
1069
1144
  },
1070
1145
  getErrors: () => {
1071
- var l, o;
1072
- return ((o = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : o.call(l)) ?? [];
1146
+ var l, i;
1147
+ return ((i = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : i.call(l)) ?? [];
1073
1148
  }
1074
- }), (l, o) => (v(), k(ve, {
1149
+ }), (l, i) => (v(), k(fe, {
1075
1150
  modelValue: a.value,
1076
- "onUpdate:modelValue": o[0] || (o[0] = (u) => a.value = u),
1151
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => a.value = s),
1077
1152
  type: a.value.enableTime ? "datetime-local" : "date",
1078
1153
  schema: l.schema,
1079
1154
  ref_key: "inputRef",
1080
1155
  ref: e
1081
1156
  }, null, 8, ["modelValue", "type", "schema"]));
1082
1157
  }
1083
- }), Pt = /* @__PURE__ */ U({
1158
+ }), Ut = /* @__PURE__ */ N({
1084
1159
  __name: "NumberInput",
1085
- props: /* @__PURE__ */ Z({
1160
+ props: /* @__PURE__ */ Y({
1086
1161
  schema: {}
1087
1162
  }, {
1088
1163
  modelValue: { type: Object, default: {} },
@@ -1090,7 +1165,7 @@ const be = /* @__PURE__ */ U({
1090
1165
  }),
1091
1166
  emits: ["update:modelValue"],
1092
1167
  setup(t, { expose: n }) {
1093
- const a = J(t, "modelValue"), e = F(null);
1168
+ const a = ee(t, "modelValue"), e = $(null);
1094
1169
  return n({
1095
1170
  onReset: () => {
1096
1171
  var l;
@@ -1101,21 +1176,21 @@ const be = /* @__PURE__ */ U({
1101
1176
  return (l = e.value) == null ? void 0 : l.onValueUpdate();
1102
1177
  },
1103
1178
  getErrors: () => {
1104
- var l, o;
1105
- return ((o = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : o.call(l)) ?? [];
1179
+ var l, i;
1180
+ return ((i = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : i.call(l)) ?? [];
1106
1181
  }
1107
- }), (l, o) => (v(), k(ve, {
1182
+ }), (l, i) => (v(), k(fe, {
1108
1183
  modelValue: a.value,
1109
- "onUpdate:modelValue": o[0] || (o[0] = (u) => a.value = u),
1184
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => a.value = s),
1110
1185
  type: "number",
1111
1186
  schema: l.schema,
1112
1187
  ref_key: "inputRef",
1113
1188
  ref: e
1114
1189
  }, null, 8, ["modelValue", "schema"]));
1115
1190
  }
1116
- }), Dt = /* @__PURE__ */ U({
1191
+ }), Rt = /* @__PURE__ */ N({
1117
1192
  __name: "EmailInput",
1118
- props: /* @__PURE__ */ Z({
1193
+ props: /* @__PURE__ */ Y({
1119
1194
  schema: {}
1120
1195
  }, {
1121
1196
  modelValue: { type: Object, default: {} },
@@ -1123,7 +1198,7 @@ const be = /* @__PURE__ */ U({
1123
1198
  }),
1124
1199
  emits: ["update:modelValue"],
1125
1200
  setup(t, { expose: n }) {
1126
- const a = J(t, "modelValue"), e = F(null);
1201
+ const a = ee(t, "modelValue"), e = $(null);
1127
1202
  return n({
1128
1203
  onReset: () => {
1129
1204
  var l;
@@ -1134,21 +1209,21 @@ const be = /* @__PURE__ */ U({
1134
1209
  return (l = e.value) == null ? void 0 : l.onValueUpdate();
1135
1210
  },
1136
1211
  getErrors: () => {
1137
- var l, o;
1138
- return ((o = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : o.call(l)) ?? [];
1212
+ var l, i;
1213
+ return ((i = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : i.call(l)) ?? [];
1139
1214
  }
1140
- }), (l, o) => (v(), k(ve, {
1215
+ }), (l, i) => (v(), k(fe, {
1141
1216
  modelValue: a.value,
1142
- "onUpdate:modelValue": o[0] || (o[0] = (u) => a.value = u),
1217
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => a.value = s),
1143
1218
  type: "email",
1144
1219
  schema: l.schema,
1145
1220
  ref_key: "inputRef",
1146
1221
  ref: e
1147
1222
  }, null, 8, ["modelValue", "schema"]));
1148
1223
  }
1149
- }), Tt = /* @__PURE__ */ U({
1224
+ }), qt = /* @__PURE__ */ N({
1150
1225
  __name: "PasswordInput",
1151
- props: /* @__PURE__ */ Z({
1226
+ props: /* @__PURE__ */ Y({
1152
1227
  schema: {}
1153
1228
  }, {
1154
1229
  modelValue: { type: Object, default: {} },
@@ -1156,7 +1231,7 @@ const be = /* @__PURE__ */ U({
1156
1231
  }),
1157
1232
  emits: ["update:modelValue"],
1158
1233
  setup(t, { expose: n }) {
1159
- const a = J(t, "modelValue"), e = F(null);
1234
+ const a = ee(t, "modelValue"), e = $(null);
1160
1235
  return n({
1161
1236
  onReset: () => {
1162
1237
  var l;
@@ -1167,21 +1242,21 @@ const be = /* @__PURE__ */ U({
1167
1242
  return (l = e.value) == null ? void 0 : l.onValueUpdate();
1168
1243
  },
1169
1244
  getErrors: () => {
1170
- var l, o;
1171
- return ((o = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : o.call(l)) ?? [];
1245
+ var l, i;
1246
+ return ((i = (l = e.value) == null ? void 0 : l.getErrors) == null ? void 0 : i.call(l)) ?? [];
1172
1247
  }
1173
- }), (l, o) => (v(), k(ve, {
1248
+ }), (l, i) => (v(), k(fe, {
1174
1249
  modelValue: a.value,
1175
- "onUpdate:modelValue": o[0] || (o[0] = (u) => a.value = u),
1250
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => a.value = s),
1176
1251
  type: "password",
1177
1252
  schema: l.schema,
1178
1253
  ref_key: "inputRef",
1179
1254
  ref: e
1180
1255
  }, null, 8, ["modelValue", "schema"]));
1181
1256
  }
1182
- }), Ut = { class: "option-content" }, Rt = /* @__PURE__ */ U({
1257
+ }), Nt = { class: "option-content" }, Mt = /* @__PURE__ */ N({
1183
1258
  __name: "SelectInput",
1184
- props: /* @__PURE__ */ Z({
1259
+ props: /* @__PURE__ */ Y({
1185
1260
  schema: Object,
1186
1261
  type: String,
1187
1262
  formId: String
@@ -1191,229 +1266,233 @@ const be = /* @__PURE__ */ U({
1191
1266
  }),
1192
1267
  emits: ["update:modelValue"],
1193
1268
  setup(t, { expose: n }) {
1194
- const a = t, e = J(t, "modelValue"), l = F(null), o = F(null), u = F(!1), s = F([]), y = F(""), f = F(1), i = Se("globalConfig"), m = I(() => e.value.interface ?? "popover"), p = I(() => e.value.optionsPlacement === "top" ? "top" : "bottom"), d = I(() => s.value.filter((b) => !!b.isChecked)), h = I(() => !y.value && _e(d.value) && !u.value ? e.value.placeholder ?? "Select an option" : "");
1195
- q([y, () => e.value.options], _, {
1269
+ const a = t, e = ee(t, "modelValue"), l = $(null), i = $(null), s = $(!1), o = $([]), g = $(""), d = $(1), c = xe("globalConfig"), { isLoading: p } = pe(e), m = F(() => e.value.interface ?? "popover"), h = F(() => e.value.optionsPlacement === "top" ? "top" : "bottom"), f = F(() => o.value.filter((u) => !!u.isChecked)), x = F(() => !g.value && we(f.value) && !s.value ? e.value.placeholder ?? "Select an option" : "");
1270
+ W([g, () => e.value.options], I, {
1196
1271
  immediate: !0,
1197
1272
  deep: !0
1198
- }), q(() => e.value.value, $, { immediate: !0, deep: !0 }), q(
1199
- () => !e.value.dependsOn || !a.schema ? null : (Array.isArray(e.value.dependsOn) ? e.value.dependsOn : [e.value.dependsOn]).map((r) => {
1200
- const g = a.schema[r];
1201
- return W(g) ? g.value : void 0;
1273
+ }), W(() => e.value.value, U, { immediate: !0, deep: !0 }), W(
1274
+ () => !e.value.dependsOn || !a.schema ? null : (Array.isArray(e.value.dependsOn) ? e.value.dependsOn : [e.value.dependsOn]).map((_) => {
1275
+ const b = a.schema[_];
1276
+ return X(b) ? b.value : void 0;
1202
1277
  }),
1203
- async (b, r) => {
1204
- b && r && !ce(b, r) && (z(), s.value = [], await _());
1278
+ async (u, _) => {
1279
+ u && _ && !ce(u, _) && (V(), o.value = [], await I());
1205
1280
  },
1206
1281
  { deep: !0 }
1207
1282
  );
1208
- function z() {
1209
- e.value.error = "", y.value = "", f.value = 1, e.value.value = e.value.multiple ? [] : "", ut(s.value);
1283
+ function V() {
1284
+ e.value.error = "", g.value = "", d.value = 1, e.value.value = e.value.multiple ? [] : "", ct(o.value);
1210
1285
  }
1211
- function C(b) {
1212
- if (b.disabled) return;
1213
- const r = s.value.findIndex((g) => g.value === b.value && g.isChecked);
1214
- if (r >= 0) {
1286
+ function S(u) {
1287
+ if (u.disabled) return;
1288
+ const _ = o.value.findIndex((b) => b.value === u.value && b.isChecked);
1289
+ if (_ >= 0) {
1215
1290
  if (Array.isArray(e.value.value)) {
1216
- const g = Ee(b, e.value.value);
1217
- g >= 0 && e.value.value.splice(g, 1);
1291
+ const b = ze(u, e.value.value);
1292
+ b >= 0 && e.value.value.splice(b, 1);
1218
1293
  }
1219
- s.value[r].isChecked = !1;
1294
+ o.value[_].isChecked = !1;
1220
1295
  } else
1221
- e.value.multiple || z(), le(b, s.value);
1222
- H(), y.value = "";
1296
+ e.value.multiple || V(), ne(u, o.value);
1297
+ C(), g.value = "";
1223
1298
  }
1224
1299
  function O() {
1225
1300
  switch (m.value) {
1226
1301
  case "action-sheet":
1227
- S();
1302
+ H();
1228
1303
  break;
1229
1304
  case "alert":
1230
- M();
1305
+ A();
1231
1306
  break;
1232
1307
  case "popover":
1233
1308
  default:
1234
- u.value = !0;
1309
+ s.value = !0;
1235
1310
  break;
1236
1311
  }
1237
1312
  }
1238
- async function S() {
1239
- var r, g;
1240
- if (await _(), e.value.multiple) {
1241
- u.value = !0;
1313
+ async function H() {
1314
+ var _, b;
1315
+ if (await I(), e.value.multiple) {
1316
+ s.value = !0;
1242
1317
  return;
1243
1318
  }
1244
- await (await Le.create({
1319
+ await (await je.create({
1245
1320
  header: e.value.label || "Select an option",
1246
1321
  buttons: [
1247
- ...s.value.map((E) => {
1248
- let w = "";
1249
- return E.isChecked ? w = "selected-option" : E.disabled && (w = "disabled-option"), {
1250
- text: E.label,
1251
- cssClass: w,
1252
- handler: () => (C(E), !1),
1253
- disabled: E.disabled
1322
+ ...o.value.map((w) => {
1323
+ let y = "";
1324
+ return w.isChecked ? y = "selected-option" : w.disabled && (y = "disabled-option"), {
1325
+ text: w.label,
1326
+ cssClass: y,
1327
+ handler: () => (S(w), !1),
1328
+ disabled: w.disabled
1254
1329
  };
1255
1330
  }),
1256
1331
  {
1257
- text: ((g = (r = i == null ? void 0 : i.buttons) == null ? void 0 : r.cancel) == null ? void 0 : g.label) ?? "Cancel",
1332
+ text: ((b = (_ = c == null ? void 0 : c.buttons) == null ? void 0 : _.cancel) == null ? void 0 : b.label) ?? "Cancel",
1258
1333
  role: "cancel"
1259
1334
  }
1260
1335
  ]
1261
1336
  })).present();
1262
1337
  }
1263
- async function M() {
1264
- var g, E, w, V;
1265
- await _();
1266
- const b = s.value.map((R) => ({
1267
- label: R.label,
1338
+ async function A() {
1339
+ var b, w, y, M;
1340
+ await I();
1341
+ const u = o.value.map((j) => ({
1342
+ label: j.label,
1268
1343
  type: e.value.multiple ? "checkbox" : "radio",
1269
- value: R,
1270
- checked: R.isChecked,
1271
- disabled: R.disabled
1344
+ value: j,
1345
+ checked: j.isChecked,
1346
+ disabled: j.disabled
1272
1347
  }));
1273
- await (await Me.create({
1348
+ await (await We.create({
1274
1349
  header: e.value.label || "Select an option",
1275
- inputs: b,
1350
+ inputs: u,
1276
1351
  buttons: [
1277
1352
  {
1278
- text: ((E = (g = i == null ? void 0 : i.buttons) == null ? void 0 : g.cancel) == null ? void 0 : E.label) ?? "Cancel",
1353
+ text: ((w = (b = c == null ? void 0 : c.buttons) == null ? void 0 : b.cancel) == null ? void 0 : w.label) ?? "Cancel",
1279
1354
  role: "cancel"
1280
1355
  },
1281
1356
  {
1282
- text: ((V = (w = i == null ? void 0 : i.buttons) == null ? void 0 : w.ok) == null ? void 0 : V.label) ?? "OK",
1283
- handler: (R) => {
1357
+ text: ((M = (y = c == null ? void 0 : c.buttons) == null ? void 0 : y.ok) == null ? void 0 : M.label) ?? "OK",
1358
+ handler: (j) => {
1284
1359
  if (e.value.multiple)
1285
- s.value.forEach((K) => st(K, s.value)), R.forEach((K) => {
1286
- const Y = s.value.find((oe) => oe.value === K.value);
1287
- Y && le(Y, s.value);
1360
+ o.value.forEach((J) => it(J, o.value)), j.forEach((J) => {
1361
+ const te = o.value.find((re) => re.value === J.value);
1362
+ te && ne(te, o.value);
1288
1363
  });
1289
1364
  else {
1290
- z();
1291
- const K = s.value.find((Y) => Y.value === R.value);
1292
- K && le(K, s.value);
1365
+ V();
1366
+ const J = o.value.find((te) => te.value === j.value);
1367
+ J && ne(J, o.value);
1293
1368
  }
1294
- H();
1369
+ C();
1295
1370
  }
1296
1371
  }
1297
1372
  ]
1298
1373
  })).present();
1299
1374
  }
1300
- async function N() {
1301
- var b;
1302
- if (e.value.required && _e(d.value))
1303
- return ((b = i == null ? void 0 : i.errorMessages) == null ? void 0 : b.required) ?? "This field is required";
1375
+ async function B() {
1376
+ var u;
1377
+ if (e.value.required && we(f.value))
1378
+ return ((u = c == null ? void 0 : c.errorMessages) == null ? void 0 : u.required) ?? "This field is required";
1304
1379
  if (e.value.validation) {
1305
- const r = await e.value.validation(d.value, a == null ? void 0 : a.schema);
1306
- if (r && r.length)
1307
- return r.join();
1380
+ const _ = await e.value.validation(f.value, a == null ? void 0 : a.schema);
1381
+ if (_ && _.length)
1382
+ return _.join();
1308
1383
  }
1309
1384
  return !0;
1310
1385
  }
1311
- const { onFocus: Q, applyValidationState: X } = de(
1386
+ const { onFocus: D, applyValidationState: Z } = ve(
1312
1387
  l,
1313
1388
  e,
1314
- I(() => e.value.multiple ? d.value : d.value[0]),
1315
- I(() => a == null ? void 0 : a.schema),
1316
- N
1389
+ F(() => e.value.multiple ? f.value : f.value[0]),
1390
+ F(() => a == null ? void 0 : a.schema),
1391
+ B
1317
1392
  );
1318
- function te(b) {
1319
- var r;
1320
- b.target === ((r = l.value) == null ? void 0 : r.$el) && (Q(), m.value === "popover" && (u.value = !0));
1393
+ function Q(u) {
1394
+ var _;
1395
+ u.target === ((_ = l.value) == null ? void 0 : _.$el) && (D(), m.value === "popover" && (s.value = !0));
1321
1396
  }
1322
- async function H(b) {
1323
- var g;
1324
- if ((g = b == null ? void 0 : b.relatedTarget) != null && g.closest(".suggestions-list")) return;
1325
- u.value = !1;
1326
- const r = await N();
1327
- r === !0 ? (e.value.error = "", e.value.value = e.value.multiple ? d.value : d.value[0]) : e.value.error = typeof r == "string" ? r : "Validation failed", await X(r === !0);
1397
+ async function C(u) {
1398
+ var b;
1399
+ if ((b = u == null ? void 0 : u.relatedTarget) != null && b.closest(".suggestions-list")) return;
1400
+ s.value = !1;
1401
+ const _ = await B();
1402
+ _ === !0 ? (e.value.error = "", e.value.value = e.value.multiple ? f.value : f.value[0]) : e.value.error = typeof _ == "string" ? _ : "Validation failed", await Z(_ === !0);
1328
1403
  }
1329
- async function _() {
1330
- const b = [];
1404
+ async function I() {
1405
+ const u = [];
1331
1406
  if (typeof e.value.options == "function") {
1332
- let r = {};
1407
+ let _ = {};
1333
1408
  if (e.value.dependsOn && a.schema) {
1334
- const g = Array.isArray(e.value.dependsOn) ? e.value.dependsOn : [e.value.dependsOn];
1335
- let E = !0;
1336
- if (r = g.reduce(
1337
- (w, V) => {
1338
- const R = a.schema[V];
1339
- return w[V] = W(R) ? R.value : void 0, (w[V] === void 0 || w[V] === null || w[V] === "") && (E = !1), w;
1409
+ const b = Array.isArray(e.value.dependsOn) ? e.value.dependsOn : [e.value.dependsOn];
1410
+ let w = !0;
1411
+ if (_ = b.reduce(
1412
+ (y, M) => {
1413
+ const j = a.schema[M];
1414
+ return y[M] = X(j) ? j.value : void 0, (y[M] === void 0 || y[M] === null || y[M] === "") && (w = !1), y;
1340
1415
  },
1341
1416
  {}
1342
- ), E) {
1343
- const w = await e.value.options(y.value, r);
1344
- b.push(...w.filter((V) => !!V.label));
1417
+ ), w) {
1418
+ const y = await e.value.options(g.value, _);
1419
+ u.push(...y.filter((M) => !!M.label));
1345
1420
  }
1346
1421
  } else {
1347
- const g = await e.value.options(y.value, {});
1348
- b.push(...g.filter((E) => !!E.label));
1422
+ const b = await e.value.options(g.value, {});
1423
+ u.push(...b.filter((w) => !!w.label));
1349
1424
  }
1350
- } else Array.isArray(e.value.options) && b.push(...rt(e.value.options, y.value));
1351
- d.value.forEach((r) => le(r, b)), s.value = b;
1425
+ } else Array.isArray(e.value.options) && u.push(...dt(e.value.options, g.value));
1426
+ f.value.forEach((_) => ne(_, u)), o.value = u;
1352
1427
  }
1353
- async function $() {
1354
- const b = e.value.value;
1355
- if (b) {
1356
- if (s.value.length === 0 && await _(), Array.isArray(b))
1357
- b.forEach((r) => le(r, s.value));
1358
- else if (typeof b == "object")
1359
- le(b, s.value);
1428
+ async function U() {
1429
+ let u = e.value.value;
1430
+ if (typeof u == "function") {
1431
+ const _ = u();
1432
+ u = _ instanceof Promise ? await _ : _;
1433
+ } else u instanceof Promise && (u = await u);
1434
+ if (u) {
1435
+ if (o.value.length === 0 && await I(), Array.isArray(u))
1436
+ u.forEach((_) => ne(_, o.value));
1437
+ else if (typeof u == "object")
1438
+ ne(u, o.value);
1360
1439
  else {
1361
- const r = s.value.find((g) => g.value === b);
1362
- le(r || {
1363
- value: b,
1364
- label: b
1365
- }, s.value);
1440
+ const _ = o.value.find((b) => b.value === u);
1441
+ ne(_ || {
1442
+ value: u,
1443
+ label: u
1444
+ }, o.value);
1366
1445
  }
1367
- H();
1446
+ e.value.value = u, C();
1368
1447
  }
1369
1448
  }
1370
- return we(async () => {
1371
- await _(), await $();
1449
+ return Ve(async () => {
1450
+ await I(), await U();
1372
1451
  }), n({
1373
- onValueUpdate: H,
1374
- onReset: z,
1452
+ onValueUpdate: C,
1453
+ onReset: V,
1375
1454
  getErrors: () => e.value.error ? [e.value.error] : []
1376
- }), (b, r) => (v(), B("div", {
1377
- class: G(["autocomplete-container", e.value.className]),
1378
- onFocusout: H,
1455
+ }), (u, _) => (v(), P("div", {
1456
+ class: q(["autocomplete-container", e.value.className]),
1457
+ onFocusout: C,
1379
1458
  ref_key: "containerRef",
1380
- ref: o
1459
+ ref: i
1381
1460
  }, [
1382
- P(c($e), {
1461
+ L(r(Ae), {
1383
1462
  ref_key: "inputRef",
1384
1463
  ref: l,
1385
- modelValue: y.value,
1386
- "onUpdate:modelValue": r[0] || (r[0] = (g) => y.value = g),
1464
+ modelValue: g.value,
1465
+ "onUpdate:modelValue": _[0] || (_[0] = (b) => g.value = b),
1387
1466
  fill: e.value.fill ?? "solid",
1388
1467
  "label-placement": e.value.labelPlacement ?? "stacked",
1389
1468
  type: t.type ?? "text",
1390
1469
  required: e.value.required,
1391
1470
  "error-text": e.value.error,
1392
1471
  autofocus: e.value.autoFocus,
1393
- placeholder: h.value,
1394
- disabled: e.value.disabled,
1472
+ placeholder: r(p) ? "Loading..." : x.value,
1473
+ disabled: e.value.disabled || r(p),
1395
1474
  counter: e.value.counter,
1396
1475
  debounce: 300,
1397
- onIonFocus: te,
1476
+ onIonFocus: Q,
1398
1477
  onClick: O,
1399
1478
  style: { width: "100%" }
1400
1479
  }, {
1401
- default: x(() => [
1402
- P(be, {
1480
+ default: E(() => [
1481
+ L(Ce, {
1403
1482
  model: e.value,
1404
1483
  "slot-name": "label"
1405
1484
  }, null, 8, ["model"]),
1406
- e.value.multiple ? (v(), k(c(se), {
1485
+ e.value.multiple ? (v(), k(r(ue), {
1407
1486
  key: 0,
1408
1487
  style: { width: "fit-content" },
1409
1488
  slot: "start"
1410
1489
  }, {
1411
- default: x(() => [
1412
- (v(!0), B(L, null, ee(d.value, (g, E) => (v(), k(c(qe), { key: E }, {
1413
- default: x(() => [
1414
- P(c(se), null, {
1415
- default: x(() => [
1416
- j(D(g.label), 1)
1490
+ default: E(() => [
1491
+ (v(!0), P(K, null, le(f.value, (b, w) => (v(), k(r(Ne), { key: w }, {
1492
+ default: E(() => [
1493
+ L(r(ue), null, {
1494
+ default: E(() => [
1495
+ G(T(b.label), 1)
1417
1496
  ]),
1418
1497
  _: 2
1419
1498
  }, 1024)
@@ -1422,75 +1501,81 @@ const be = /* @__PURE__ */ U({
1422
1501
  }, 1024))), 128))
1423
1502
  ]),
1424
1503
  _: 1
1425
- })) : (v(), k(c(se), {
1504
+ })) : (v(), k(r(ue), {
1426
1505
  key: 1,
1427
1506
  slot: "start",
1428
1507
  class: "ion-no-wrap"
1429
1508
  }, {
1430
- default: x(() => {
1431
- var g;
1509
+ default: E(() => {
1510
+ var b;
1432
1511
  return [
1433
- j(D(((g = d.value[0]) == null ? void 0 : g.label) ?? ""), 1)
1512
+ G(T(((b = f.value[0]) == null ? void 0 : b.label) ?? ""), 1)
1434
1513
  ];
1435
1514
  }),
1436
1515
  _: 1
1437
1516
  })),
1438
- P(c(ge), {
1439
- slot: "end",
1440
- icon: c(We)
1441
- }, null, 8, ["icon"]),
1442
- d.value.length > 0 || y.value ? (v(), k(c(ge), {
1517
+ r(p) ? (v(), k(r(de), {
1443
1518
  key: 2,
1444
1519
  slot: "end",
1445
- icon: c(Ze),
1446
- onClick: z,
1520
+ name: "crescent",
1521
+ class: "loading-spinner"
1522
+ })) : (v(), k(r(_e), {
1523
+ key: 3,
1524
+ slot: "end",
1525
+ icon: r(Je)
1526
+ }, null, 8, ["icon"])),
1527
+ (f.value.length > 0 || g.value) && !r(p) ? (v(), k(r(_e), {
1528
+ key: 4,
1529
+ slot: "end",
1530
+ icon: r(Qe),
1531
+ onClick: V,
1447
1532
  style: { "z-index": "999999" }
1448
- }, null, 8, ["icon"])) : A("", !0)
1533
+ }, null, 8, ["icon"])) : z("", !0)
1449
1534
  ]),
1450
1535
  _: 1
1451
1536
  }, 8, ["modelValue", "fill", "label-placement", "type", "required", "error-text", "autofocus", "placeholder", "disabled", "counter"]),
1452
- u.value && s.value.length > 0 && m.value === "popover" ? (v(), k(c(Ne), {
1537
+ s.value && o.value.length > 0 && m.value === "popover" ? (v(), k(r(Me), {
1453
1538
  key: 0,
1454
- class: G(["suggestions-list", p.value])
1539
+ class: q(["suggestions-list", h.value])
1455
1540
  }, {
1456
- default: x(() => [
1457
- (v(!0), B(L, null, ee(s.value, (g) => (v(), k(c(Ve), {
1541
+ default: E(() => [
1542
+ (v(!0), P(K, null, le(o.value, (b) => (v(), k(r(ge), {
1458
1543
  button: "",
1459
- key: g.label,
1460
- onClick: (E) => C(g),
1544
+ key: b.label,
1545
+ onClick: (w) => S(b),
1461
1546
  lines: e.value.showOptionsSeparator ? "none" : "full",
1462
- disabled: g.disabled,
1463
- class: G({ "ion-item-disabled": g.disabled })
1547
+ disabled: b.disabled,
1548
+ class: q({ "ion-item-disabled": b.disabled })
1464
1549
  }, {
1465
- default: x(() => {
1466
- var E;
1550
+ default: E(() => {
1551
+ var w;
1467
1552
  return [
1468
- e.value.multiple ? (v(), k(c(Ae), {
1553
+ e.value.multiple ? (v(), k(r(Pe), {
1469
1554
  key: 0,
1470
1555
  slot: "start",
1471
- checked: g.isChecked,
1472
- disabled: g.disabled
1473
- }, null, 8, ["checked", "disabled"])) : A("", !0),
1474
- T("div", Ut, [
1475
- P(c(se), null, {
1476
- default: x(() => [
1477
- j(D(g.label), 1)
1556
+ checked: b.isChecked,
1557
+ disabled: b.disabled
1558
+ }, null, 8, ["checked", "disabled"])) : z("", !0),
1559
+ R("div", Nt, [
1560
+ L(r(ue), null, {
1561
+ default: E(() => [
1562
+ G(T(b.label), 1)
1478
1563
  ]),
1479
1564
  _: 2
1480
1565
  }, 1024),
1481
- c(Fe)(g, g.isChecked) ? (v(), k(c(xe), {
1566
+ r(Be)(b, b.isChecked) ? (v(), k(r(Oe), {
1482
1567
  key: 0,
1483
- color: (E = g.description) == null ? void 0 : E.color,
1568
+ color: (w = b.description) == null ? void 0 : w.color,
1484
1569
  class: "option-description"
1485
1570
  }, {
1486
- default: x(() => {
1487
- var w;
1571
+ default: E(() => {
1572
+ var y;
1488
1573
  return [
1489
- j(D((w = g.description) == null ? void 0 : w.text), 1)
1574
+ G(T((y = b.description) == null ? void 0 : y.text), 1)
1490
1575
  ];
1491
1576
  }),
1492
1577
  _: 2
1493
- }, 1032, ["color"])) : A("", !0)
1578
+ }, 1032, ["color"])) : z("", !0)
1494
1579
  ])
1495
1580
  ];
1496
1581
  }),
@@ -1498,12 +1583,12 @@ const be = /* @__PURE__ */ U({
1498
1583
  }, 1032, ["onClick", "lines", "disabled", "class"]))), 128))
1499
1584
  ]),
1500
1585
  _: 1
1501
- }, 8, ["class"])) : A("", !0)
1586
+ }, 8, ["class"])) : z("", !0)
1502
1587
  ], 34));
1503
1588
  }
1504
- }), qt = /* @__PURE__ */ re(Rt, [["__scopeId", "data-v-022ed1e8"]]), Nt = /* @__PURE__ */ U({
1589
+ }), jt = /* @__PURE__ */ ae(Mt, [["__scopeId", "data-v-73a59c08"]]), Wt = /* @__PURE__ */ N({
1505
1590
  __name: "TextAreaInput",
1506
- props: /* @__PURE__ */ Z({
1591
+ props: /* @__PURE__ */ Y({
1507
1592
  schema: {}
1508
1593
  }, {
1509
1594
  modelValue: { type: Object, default: {} },
@@ -1511,59 +1596,79 @@ const be = /* @__PURE__ */ U({
1511
1596
  }),
1512
1597
  emits: ["update:modelValue"],
1513
1598
  setup(t, { expose: n }) {
1514
- const a = t, e = J(t, "modelValue"), l = F(null), o = F(e.value.value), u = I(() => a.schema), { onValueUpdate: s, onFocus: y, onReset: f, getErrors: i } = de(
1599
+ const a = t, e = ee(t, "modelValue"), l = $(null), i = F(() => a.schema), { resolvedValue: s, isLoading: o, error: g } = pe(e), d = $("");
1600
+ W(
1601
+ s,
1602
+ (x) => {
1603
+ x != null ? d.value = String(x) : d.value = "";
1604
+ },
1605
+ { immediate: !0 }
1606
+ );
1607
+ const { onValueUpdate: c, onFocus: p, onReset: m, getErrors: h } = ve(
1515
1608
  l,
1516
1609
  e,
1517
- o,
1518
- u
1610
+ d,
1611
+ i
1519
1612
  );
1520
- return q(
1521
- () => e.value.value,
1522
- (m) => o.value = m
1523
- ), n({
1524
- onReset: f,
1525
- onValueUpdate: s,
1526
- getErrors: i
1527
- }), (m, p) => (v(), k(c(je), {
1528
- ref_key: "inputRef",
1529
- ref: l,
1530
- modelValue: o.value,
1531
- "onUpdate:modelValue": p[0] || (p[0] = (d) => o.value = d),
1532
- class: G(e.value.className),
1533
- "clear-input": !0,
1534
- fill: e.value.fill ?? "solid",
1535
- "label-placement": e.value.labelPlacement ?? "stacked",
1536
- required: e.value.required,
1537
- "error-text": e.value.error,
1538
- autofocus: e.value.autoFocus,
1539
- placeholder: e.value.placeholder,
1540
- disabled: e.value.disabled,
1541
- counter: e.value.counter,
1542
- min: e.value.min,
1543
- max: e.value.max,
1544
- rows: e.value.rows,
1545
- cols: e.value.cols,
1546
- "auto-grow": e.value.autoGrow,
1547
- "max-length": e.value.maxLength,
1548
- "min-length": e.value.minLength,
1549
- pattern: e.value.pattern,
1550
- onIonFocus: c(y),
1551
- onIonChange: c(s),
1552
- onIonBlur: c(s),
1553
- style: { width: "100%" }
1554
- }, {
1555
- default: x(() => [
1556
- P(be, {
1557
- model: e.value,
1558
- "slot-name": "label"
1559
- }, null, 8, ["model"])
1560
- ]),
1561
- _: 1
1562
- }, 8, ["modelValue", "class", "fill", "label-placement", "required", "error-text", "autofocus", "placeholder", "disabled", "counter", "min", "max", "rows", "cols", "auto-grow", "max-length", "min-length", "pattern", "onIonFocus", "onIonChange", "onIonBlur"]));
1613
+ return n({
1614
+ onReset: m,
1615
+ onValueUpdate: c,
1616
+ getErrors: () => {
1617
+ const x = h();
1618
+ return g.value ? [...x, g.value] : x;
1619
+ },
1620
+ isLoading: o,
1621
+ valueError: g
1622
+ }), (x, V) => (v(), P("div", {
1623
+ class: q(["textarea-container", { loading: r(o) }])
1624
+ }, [
1625
+ L(r(Ge), {
1626
+ ref_key: "inputRef",
1627
+ ref: l,
1628
+ modelValue: d.value,
1629
+ "onUpdate:modelValue": V[0] || (V[0] = (S) => d.value = S),
1630
+ class: q(e.value.className),
1631
+ "clear-input": !0,
1632
+ fill: e.value.fill ?? "solid",
1633
+ "label-placement": e.value.labelPlacement ?? "stacked",
1634
+ required: e.value.required,
1635
+ "error-text": e.value.error,
1636
+ autofocus: e.value.autoFocus,
1637
+ placeholder: r(o) ? "Loading..." : e.value.placeholder,
1638
+ disabled: e.value.disabled || r(o),
1639
+ counter: e.value.counter,
1640
+ min: e.value.min,
1641
+ max: e.value.max,
1642
+ rows: e.value.rows,
1643
+ cols: e.value.cols,
1644
+ "auto-grow": e.value.autoGrow,
1645
+ "max-length": e.value.maxLength,
1646
+ "min-length": e.value.minLength,
1647
+ pattern: e.value.pattern,
1648
+ onIonFocus: r(p),
1649
+ onIonChange: r(c),
1650
+ onIonBlur: r(c),
1651
+ style: { width: "100%" }
1652
+ }, {
1653
+ default: E(() => [
1654
+ L(Ce, {
1655
+ model: e.value,
1656
+ "slot-name": "label"
1657
+ }, null, 8, ["model"]),
1658
+ r(o) ? (v(), k(r(de), {
1659
+ key: 0,
1660
+ slot: "end",
1661
+ name: "crescent",
1662
+ class: "loading-spinner"
1663
+ })) : z("", !0)
1664
+ ]),
1665
+ _: 1
1666
+ }, 8, ["modelValue", "class", "fill", "label-placement", "required", "error-text", "autofocus", "placeholder", "disabled", "counter", "min", "max", "rows", "cols", "auto-grow", "max-length", "min-length", "pattern", "onIonFocus", "onIonChange", "onIonBlur"])
1667
+ ], 2));
1563
1668
  }
1564
- }), Lt = { class: "button-container" }, Mt = /* @__PURE__ */ U({
1669
+ }), Gt = /* @__PURE__ */ ae(Wt, [["__scopeId", "data-v-76df4b17"]]), Ht = { class: "button-container" }, Kt = /* @__PURE__ */ N({
1565
1670
  __name: "RepeatInput",
1566
- props: /* @__PURE__ */ Z({
1671
+ props: /* @__PURE__ */ Y({
1567
1672
  schema: {},
1568
1673
  data: {},
1569
1674
  computedData: {}
@@ -1573,88 +1678,88 @@ const be = /* @__PURE__ */ U({
1573
1678
  }),
1574
1679
  emits: ["update:modelValue"],
1575
1680
  setup(t, { expose: n }) {
1576
- const a = t, e = J(t, "modelValue"), l = F([]), { dynamicRefs: o, getFormErrors: u, updateFormValues: s } = Be(), y = I(() => l.value.map((h, z) => ({
1577
- label: `Set ${z + 1}`,
1578
- value: z,
1579
- other: Object.entries(h).reduce(
1580
- (C, [O, S]) => (W(S) && (C[O] = S.value), C),
1681
+ const a = t, e = ee(t, "modelValue"), l = $([]), { dynamicRefs: i, getFormErrors: s, updateFormValues: o } = De(), g = F(() => l.value.map((f, x) => ({
1682
+ label: `Set ${x + 1}`,
1683
+ value: x,
1684
+ other: Object.entries(f).reduce(
1685
+ (V, [S, O]) => (X(O) && (V[S] = O.value), V),
1581
1686
  {}
1582
1687
  )
1583
1688
  })));
1584
- q(
1585
- y,
1586
- (h) => {
1587
- e.value.value = h;
1689
+ W(
1690
+ g,
1691
+ (f) => {
1692
+ e.value.value = f;
1588
1693
  },
1589
1694
  { deep: !0, immediate: !0 }
1590
- ), we(f);
1591
- function f() {
1592
- e.value.children && l.value.push(Ce(e.value.children));
1695
+ ), Ve(d);
1696
+ function d() {
1697
+ e.value.children && l.value.push(Ee(e.value.children));
1593
1698
  }
1594
- function i(h) {
1595
- l.value.splice(h, 1);
1699
+ function c(f) {
1700
+ l.value.splice(f, 1);
1596
1701
  }
1597
- function m() {
1598
- const h = (z) => {
1599
- const [C, O] = z.split("-"), S = parseInt(C, 10);
1600
- return !isNaN(S) && O && l.value[S] && l.value[S][O] ? l.value[S][O] : null;
1702
+ function p() {
1703
+ const f = (x) => {
1704
+ const [V, S] = x.split("-"), O = parseInt(V, 10);
1705
+ return !isNaN(O) && S && l.value[O] && l.value[O][S] ? l.value[O][S] : null;
1601
1706
  };
1602
- ot(
1603
- o.value,
1707
+ rt(
1708
+ i.value,
1604
1709
  a.data,
1605
1710
  a.computedData,
1606
- h
1711
+ f
1607
1712
  );
1608
1713
  }
1609
- function p() {
1610
- return u();
1714
+ function m() {
1715
+ return s();
1611
1716
  }
1612
- async function d() {
1613
- await s();
1717
+ async function h() {
1718
+ await o();
1614
1719
  }
1615
1720
  return n({
1616
- onValueUpdate: d,
1617
- onReset: m,
1618
- getErrors: p
1619
- }), (h, z) => (v(!0), B(L, null, ee(l.value, (C, O) => (v(), B("div", {
1620
- class: G(["repeat-input-wrapper", e.value.className]),
1621
- key: O
1721
+ onValueUpdate: h,
1722
+ onReset: p,
1723
+ getErrors: m
1724
+ }), (f, x) => (v(!0), P(K, null, le(l.value, (V, S) => (v(), P("div", {
1725
+ class: q(["repeat-input-wrapper", e.value.className]),
1726
+ key: S
1622
1727
  }, [
1623
- P(c(ue), { class: "repeat-row" }, {
1624
- default: x(() => [
1625
- P(c(ne), {
1728
+ L(r(ie), { class: "repeat-row" }, {
1729
+ default: E(() => [
1730
+ L(r(se), {
1626
1731
  size: "11",
1627
1732
  class: "form-fields-column"
1628
1733
  }, {
1629
- default: x(() => [
1630
- P(c(ue), { class: "fields-row" }, {
1631
- default: x(() => [
1632
- (v(!0), B(L, null, ee(Object.keys(C), (S) => {
1633
- var M, N, Q, X, te;
1634
- return v(), B(L, null, [
1635
- c(he)(C[S], h.data, h.computedData) ? (v(), k(c(ne), {
1636
- key: `${O}-${S}`,
1637
- size: ((M = C[S].grid) == null ? void 0 : M.xs) ?? "12",
1638
- "size-sm": (N = C[S].grid) == null ? void 0 : N.sm,
1639
- "size-md": (Q = C[S].grid) == null ? void 0 : Q.md,
1640
- "size-lg": (X = C[S].grid) == null ? void 0 : X.lg,
1641
- "size-xl": (te = C[S].grid) == null ? void 0 : te.xl,
1734
+ default: E(() => [
1735
+ L(r(ie), { class: "fields-row" }, {
1736
+ default: E(() => [
1737
+ (v(!0), P(K, null, le(Object.keys(V), (O) => {
1738
+ var H, A, B, D, Z;
1739
+ return v(), P(K, null, [
1740
+ r(be)(V[O], f.data, f.computedData) ? (v(), k(r(se), {
1741
+ key: `${S}-${O}`,
1742
+ size: ((H = V[O].grid) == null ? void 0 : H.xs) ?? "12",
1743
+ "size-sm": (A = V[O].grid) == null ? void 0 : A.sm,
1744
+ "size-md": (B = V[O].grid) == null ? void 0 : B.md,
1745
+ "size-lg": (D = V[O].grid) == null ? void 0 : D.lg,
1746
+ "size-xl": (Z = V[O].grid) == null ? void 0 : Z.xl,
1642
1747
  class: "ion-margin-bottom"
1643
1748
  }, {
1644
- default: x(() => [
1645
- (v(), k(me(C[S].type), {
1646
- modelValue: C[S],
1647
- "onUpdate:modelValue": (H) => C[S] = H,
1648
- schema: C,
1649
- "ref-key": `${O}-${S}`,
1749
+ default: E(() => [
1750
+ (v(), k(ye(V[O].type), {
1751
+ modelValue: V[O],
1752
+ "onUpdate:modelValue": (Q) => V[O] = Q,
1753
+ schema: V,
1754
+ "ref-key": `${S}-${O}`,
1650
1755
  ref_for: !0,
1651
1756
  ref_key: "dynamicRefs",
1652
- ref: o,
1757
+ ref: i,
1653
1758
  style: { width: "100%" }
1654
1759
  }, null, 8, ["modelValue", "onUpdate:modelValue", "schema", "ref-key"]))
1655
1760
  ]),
1656
1761
  _: 2
1657
- }, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : A("", !0)
1762
+ }, 1032, ["size", "size-sm", "size-md", "size-lg", "size-xl"])) : z("", !0)
1658
1763
  ], 64);
1659
1764
  }), 256))
1660
1765
  ]),
@@ -1663,40 +1768,40 @@ const be = /* @__PURE__ */ U({
1663
1768
  ]),
1664
1769
  _: 2
1665
1770
  }, 1024),
1666
- P(c(ne), {
1771
+ L(r(se), {
1667
1772
  size: "1",
1668
1773
  class: "button-column"
1669
1774
  }, {
1670
- default: x(() => [
1671
- T("div", Lt, [
1672
- O === l.value.length - 1 ? (v(), k(c(ye), {
1775
+ default: E(() => [
1776
+ R("div", Ht, [
1777
+ S === l.value.length - 1 ? (v(), k(r(ke), {
1673
1778
  key: 0,
1674
- onClick: f,
1779
+ onClick: d,
1675
1780
  color: "primary",
1676
1781
  size: "small"
1677
1782
  }, {
1678
- default: x(() => [
1679
- P(c(ge), {
1783
+ default: E(() => [
1784
+ L(r(_e), {
1680
1785
  slot: "icon-only",
1681
- icon: c(Je)
1786
+ icon: r(Xe)
1682
1787
  }, null, 8, ["icon"])
1683
1788
  ]),
1684
1789
  _: 1
1685
- })) : A("", !0),
1686
- l.value.length > 1 ? (v(), k(c(ye), {
1790
+ })) : z("", !0),
1791
+ l.value.length > 1 ? (v(), k(r(ke), {
1687
1792
  key: 1,
1688
- onClick: (S) => i(O),
1793
+ onClick: (O) => c(S),
1689
1794
  color: "warning",
1690
1795
  size: "small"
1691
1796
  }, {
1692
- default: x(() => [
1693
- P(c(ge), {
1797
+ default: E(() => [
1798
+ L(r(_e), {
1694
1799
  slot: "icon-only",
1695
- icon: c(Qe)
1800
+ icon: r(Ye)
1696
1801
  }, null, 8, ["icon"])
1697
1802
  ]),
1698
1803
  _: 2
1699
- }, 1032, ["onClick"])) : A("", !0)
1804
+ }, 1032, ["onClick"])) : z("", !0)
1700
1805
  ])
1701
1806
  ]),
1702
1807
  _: 2
@@ -1706,9 +1811,9 @@ const be = /* @__PURE__ */ U({
1706
1811
  }, 1024)
1707
1812
  ], 2))), 128));
1708
1813
  }
1709
- }), jt = /* @__PURE__ */ re(Mt, [["__scopeId", "data-v-f27172ba"]]), Gt = /* @__PURE__ */ U({
1814
+ }), Zt = /* @__PURE__ */ ae(Kt, [["__scopeId", "data-v-f27172ba"]]), Jt = /* @__PURE__ */ N({
1710
1815
  __name: "CheckboxInput",
1711
- props: /* @__PURE__ */ Z({
1816
+ props: /* @__PURE__ */ Y({
1712
1817
  schema: {}
1713
1818
  }, {
1714
1819
  modelValue: { type: Object, default: {} },
@@ -1716,41 +1821,60 @@ const be = /* @__PURE__ */ U({
1716
1821
  }),
1717
1822
  emits: ["update:modelValue"],
1718
1823
  setup(t, { expose: n }) {
1719
- const a = t, e = J(t, "modelValue"), l = F(null), o = F(e.value.value), u = I(() => a.schema), s = I(() => it(e.value)), { onValueUpdate: y, onFocus: f, getErrors: i } = de(l, e, o, u);
1720
- function m() {
1721
- o.value = !1, e.value.error = "", e.value.value = !1;
1824
+ const a = t, e = ee(t, "modelValue"), l = $(null), i = F(() => a.schema), { resolvedValue: s, isLoading: o, error: g } = pe(e), d = $(!1);
1825
+ W(
1826
+ s,
1827
+ (V) => {
1828
+ V != null ? d.value = !!V : d.value = !1;
1829
+ },
1830
+ { immediate: !0 }
1831
+ );
1832
+ const c = F(() => vt(e.value)), { onValueUpdate: p, onFocus: m, getErrors: h } = ve(l, e, d, i);
1833
+ function f() {
1834
+ d.value = !1, e.value.error = "", e.value.value = !1;
1722
1835
  }
1723
- return q(
1724
- () => e.value.value,
1725
- (p) => o.value = p
1726
- ), n({
1727
- onValueUpdate: y,
1728
- onReset: m,
1729
- getErrors: i
1730
- }), (p, d) => (v(), k(c(Ae), {
1731
- modelValue: o.value,
1732
- "onUpdate:modelValue": d[0] || (d[0] = (h) => o.value = h),
1733
- ref_key: "inputRef",
1734
- ref: l,
1735
- justify: "start",
1736
- class: G(e.value.className),
1737
- required: e.value.required,
1738
- "error-text": e.value.error,
1739
- disabled: e.value.disabled,
1740
- onIonFocus: c(f),
1741
- onIonChange: c(y),
1742
- onIonBlur: c(y),
1743
- style: { width: "100%" }
1744
- }, {
1745
- default: x(() => [
1746
- j(D(s.value), 1)
1747
- ]),
1748
- _: 1
1749
- }, 8, ["modelValue", "class", "required", "error-text", "disabled", "onIonFocus", "onIonChange", "onIonBlur"]));
1836
+ return n({
1837
+ onValueUpdate: p,
1838
+ onReset: f,
1839
+ getErrors: () => {
1840
+ const V = h();
1841
+ return g.value ? [...V, g.value] : V;
1842
+ },
1843
+ isLoading: o,
1844
+ valueError: g
1845
+ }), (V, S) => (v(), P("div", {
1846
+ class: q(["checkbox-container", { loading: r(o) }])
1847
+ }, [
1848
+ L(r(Pe), {
1849
+ modelValue: d.value,
1850
+ "onUpdate:modelValue": S[0] || (S[0] = (O) => d.value = O),
1851
+ ref_key: "inputRef",
1852
+ ref: l,
1853
+ justify: "start",
1854
+ class: q(e.value.className),
1855
+ required: e.value.required,
1856
+ "error-text": e.value.error,
1857
+ disabled: e.value.disabled || r(o),
1858
+ onIonFocus: r(m),
1859
+ onIonChange: r(p),
1860
+ onIonBlur: r(p),
1861
+ style: { width: "100%" }
1862
+ }, {
1863
+ default: E(() => [
1864
+ G(T(r(o) ? "Loading..." : c.value) + " ", 1),
1865
+ r(o) ? (v(), k(r(de), {
1866
+ key: 0,
1867
+ name: "crescent",
1868
+ class: "loading-spinner"
1869
+ })) : z("", !0)
1870
+ ]),
1871
+ _: 1
1872
+ }, 8, ["modelValue", "class", "required", "error-text", "disabled", "onIonFocus", "onIonChange", "onIonBlur"])
1873
+ ], 2));
1750
1874
  }
1751
- }), Ht = { class: "radio-content" }, Kt = { class: "radio-label" }, Wt = /* @__PURE__ */ U({
1875
+ }), Qt = /* @__PURE__ */ ae(Jt, [["__scopeId", "data-v-193b3431"]]), Xt = { class: "radio-content" }, Yt = { class: "radio-label" }, el = /* @__PURE__ */ N({
1752
1876
  __name: "RadioInput",
1753
- props: /* @__PURE__ */ Z({
1877
+ props: /* @__PURE__ */ Y({
1754
1878
  schema: {}
1755
1879
  }, {
1756
1880
  modelValue: { type: Object, default: {} },
@@ -1758,89 +1882,125 @@ const be = /* @__PURE__ */ U({
1758
1882
  }),
1759
1883
  emits: ["update:modelValue"],
1760
1884
  setup(t, { expose: n }) {
1761
- const a = t, e = J(t, "modelValue"), l = F(null), o = F(e.value.value), u = I(() => a.schema), s = F([]), { onValueUpdate: y, onFocus: f, getErrors: i, isValid: m } = de(
1885
+ const a = t, e = ee(t, "modelValue"), l = $(null), i = F(() => a.schema), s = $([]), { resolvedValue: o, isLoading: g, error: d } = pe(e), c = $(void 0);
1886
+ W(
1887
+ o,
1888
+ (A) => {
1889
+ if (A != null)
1890
+ if (typeof A == "object" && "value" in A && "label" in A)
1891
+ c.value = A;
1892
+ else {
1893
+ const B = s.value.find((D) => D.value === A);
1894
+ c.value = B;
1895
+ }
1896
+ else
1897
+ c.value = void 0;
1898
+ },
1899
+ { immediate: !0 }
1900
+ );
1901
+ const { onValueUpdate: p, onFocus: m, getErrors: h, isValid: f } = ve(
1762
1902
  l,
1763
1903
  e,
1764
- o,
1765
- u
1904
+ c,
1905
+ i
1766
1906
  );
1767
- function p() {
1768
- e.value.error = "", o.value = void 0, e.value.value = void 0;
1907
+ function x() {
1908
+ e.value.error = "", c.value = void 0, e.value.value = void 0;
1769
1909
  }
1770
- function d(C, O) {
1771
- return (C == null ? void 0 : C.value) === (O == null ? void 0 : O.value);
1910
+ function V(A, B) {
1911
+ return (A == null ? void 0 : A.value) === (B == null ? void 0 : B.value);
1772
1912
  }
1773
- function h(C) {
1774
- return o.value ? d(o.value, C) : !1;
1913
+ function S(A) {
1914
+ return c.value ? V(c.value, A) : !1;
1775
1915
  }
1776
- async function z() {
1916
+ async function O() {
1777
1917
  typeof e.value.options == "function" ? s.value = await e.value.options() : s.value = e.value.options;
1778
1918
  }
1779
- return q(
1780
- () => e.value.value,
1781
- (C) => o.value = C
1782
- ), n({
1783
- onValueUpdate: y,
1784
- onReset: p,
1785
- getErrors: i,
1786
- isValid: m
1787
- }), we(z), (C, O) => (v(), B(L, null, [
1788
- P(be, { model: e.value }, null, 8, ["model"]),
1789
- O[1] || (O[1] = T("br", null, null, -1)),
1790
- e.value.error ? (v(), k(c(Ge), {
1919
+ return n({
1920
+ onValueUpdate: p,
1921
+ onReset: x,
1922
+ getErrors: () => {
1923
+ const A = h();
1924
+ return d.value ? [...A, d.value] : A;
1925
+ },
1926
+ isValid: f,
1927
+ isLoading: g,
1928
+ valueError: d
1929
+ }), Ve(O), (A, B) => (v(), P("div", {
1930
+ class: q(["radio-container", { loading: r(g) }])
1931
+ }, [
1932
+ L(Ce, { model: e.value }, null, 8, ["model"]),
1933
+ r(g) ? (v(), k(r(de), {
1791
1934
  key: 0,
1935
+ name: "crescent",
1936
+ class: "loading-spinner"
1937
+ })) : z("", !0),
1938
+ B[2] || (B[2] = R("br", null, null, -1)),
1939
+ e.value.error ? (v(), k(r(He), {
1940
+ key: 1,
1792
1941
  color: "danger"
1793
1942
  }, {
1794
- default: x(() => [
1795
- j(D(e.value.error), 1)
1943
+ default: E(() => [
1944
+ G(T(e.value.error), 1)
1945
+ ]),
1946
+ _: 1
1947
+ })) : z("", !0),
1948
+ r(g) ? (v(), k(r(ge), { key: 3 }, {
1949
+ default: E(() => [
1950
+ L(r(ue), null, {
1951
+ default: E(() => B[1] || (B[1] = [
1952
+ G("Loading options...")
1953
+ ])),
1954
+ _: 1,
1955
+ __: [1]
1956
+ })
1796
1957
  ]),
1797
1958
  _: 1
1798
- })) : A("", !0),
1799
- P(c(Ve), null, {
1800
- default: x(() => [
1801
- P(c(He), {
1802
- modelValue: o.value,
1803
- "onUpdate:modelValue": O[0] || (O[0] = (S) => o.value = S),
1804
- class: G(e.value.className),
1959
+ })) : (v(), k(r(ge), { key: 2 }, {
1960
+ default: E(() => [
1961
+ L(r(Ke), {
1962
+ modelValue: c.value,
1963
+ "onUpdate:modelValue": B[0] || (B[0] = (D) => c.value = D),
1964
+ class: q(e.value.className),
1805
1965
  required: e.value.required,
1806
1966
  disabled: e.value.disabled,
1807
- compareWith: d,
1967
+ compareWith: V,
1808
1968
  "allow-empty-selection": !e.value.required,
1809
- onIonFocus: c(f),
1810
- onIonChange: c(y),
1811
- onIonBlur: c(y),
1969
+ onIonFocus: r(m),
1970
+ onIonChange: r(p),
1971
+ onIonBlur: r(p),
1812
1972
  style: { width: "100%" }
1813
1973
  }, {
1814
- default: x(() => [
1815
- (v(!0), B(L, null, ee(s.value, (S) => (v(), k(c(Ve), {
1816
- key: S.value,
1974
+ default: E(() => [
1975
+ (v(!0), P(K, null, le(s.value, (D) => (v(), k(r(ge), {
1976
+ key: D.value,
1817
1977
  lines: e.value.showOptionsSeparator ? "none" : "full"
1818
1978
  }, {
1819
- default: x(() => [
1820
- P(c(Ke), {
1821
- value: S,
1822
- disabled: e.value.disabled || S.disabled,
1979
+ default: E(() => [
1980
+ L(r(Ze), {
1981
+ value: D,
1982
+ disabled: e.value.disabled || D.disabled,
1823
1983
  "label-placement": "end",
1824
1984
  justify: "start"
1825
1985
  }, {
1826
- default: x(() => {
1827
- var M;
1986
+ default: E(() => {
1987
+ var Z;
1828
1988
  return [
1829
- T("div", Ht, [
1830
- T("div", Kt, D(S.label), 1),
1831
- c(Fe)(S, h(S)) ? (v(), k(c(xe), {
1989
+ R("div", Xt, [
1990
+ R("div", Yt, T(D.label), 1),
1991
+ r(Be)(D, S(D)) ? (v(), k(r(Oe), {
1832
1992
  key: 0,
1833
- color: (M = S.description) == null ? void 0 : M.color,
1993
+ color: (Z = D.description) == null ? void 0 : Z.color,
1834
1994
  class: "radio-description"
1835
1995
  }, {
1836
- default: x(() => {
1837
- var N;
1996
+ default: E(() => {
1997
+ var Q;
1838
1998
  return [
1839
- j(D((N = S.description) == null ? void 0 : N.text), 1)
1999
+ G(T((Q = D.description) == null ? void 0 : Q.text), 1)
1840
2000
  ];
1841
2001
  }),
1842
2002
  _: 2
1843
- }, 1032, ["color"])) : A("", !0)
2003
+ }, 1032, ["color"])) : z("", !0)
1844
2004
  ])
1845
2005
  ];
1846
2006
  }),
@@ -1854,13 +2014,13 @@ const be = /* @__PURE__ */ U({
1854
2014
  }, 8, ["modelValue", "class", "required", "disabled", "allow-empty-selection", "onIonFocus", "onIonChange", "onIonBlur"])
1855
2015
  ]),
1856
2016
  _: 1
1857
- })
1858
- ], 64));
2017
+ }))
2018
+ ], 2));
1859
2019
  }
1860
- }), Zt = /* @__PURE__ */ re(Wt, [["__scopeId", "data-v-3dbfeaf7"]]), Jt = { class: "form-section-header" }, Qt = { class: "form-section-title" }, Xt = {
2020
+ }), tl = /* @__PURE__ */ ae(el, [["__scopeId", "data-v-4732d2f9"]]), ll = { class: "form-section-header" }, al = { class: "form-section-title" }, nl = {
1861
2021
  key: 0,
1862
2022
  class: "form-section-subtitle"
1863
- }, Yt = /* @__PURE__ */ U({
2023
+ }, ol = /* @__PURE__ */ N({
1864
2024
  __name: "SectionTitle",
1865
2025
  props: {
1866
2026
  modelValue: {},
@@ -1871,104 +2031,106 @@ const be = /* @__PURE__ */ U({
1871
2031
  setup(t) {
1872
2032
  const a = t.modelValue;
1873
2033
  return (e, l) => {
1874
- var o, u, s, y, f;
1875
- return v(), k(c(ne), {
1876
- size: ((o = c(a).grid) == null ? void 0 : o.xs) ?? "12",
1877
- "size-sm": (u = c(a).grid) == null ? void 0 : u.sm,
1878
- "size-md": (s = c(a).grid) == null ? void 0 : s.md,
1879
- "size-lg": (y = c(a).grid) == null ? void 0 : y.lg,
1880
- "size-xl": (f = c(a).grid) == null ? void 0 : f.xl,
1881
- class: G(["form-section-container", c(a).className])
2034
+ var i, s, o, g, d;
2035
+ return v(), k(r(se), {
2036
+ size: ((i = r(a).grid) == null ? void 0 : i.xs) ?? "12",
2037
+ "size-sm": (s = r(a).grid) == null ? void 0 : s.sm,
2038
+ "size-md": (o = r(a).grid) == null ? void 0 : o.md,
2039
+ "size-lg": (g = r(a).grid) == null ? void 0 : g.lg,
2040
+ "size-xl": (d = r(a).grid) == null ? void 0 : d.xl,
2041
+ class: q(["form-section-container", r(a).className])
1882
2042
  }, {
1883
- default: x(() => [
1884
- T("div", Jt, [
1885
- T("h3", Qt, D(c(a).title), 1),
1886
- c(a).subtitle ? (v(), B("p", Xt, D(c(a).subtitle), 1)) : A("", !0)
2043
+ default: E(() => [
2044
+ R("div", ll, [
2045
+ R("h3", al, T(r(a).title), 1),
2046
+ r(a).subtitle ? (v(), P("p", nl, T(r(a).subtitle), 1)) : z("", !0)
1887
2047
  ])
1888
2048
  ]),
1889
2049
  _: 1
1890
2050
  }, 8, ["size", "size-sm", "size-md", "size-lg", "size-xl", "class"]);
1891
2051
  };
1892
2052
  }
1893
- }), el = /* @__PURE__ */ re(Yt, [["__scopeId", "data-v-e0bf7af0"]]);
1894
- function ol(t, n, a) {
1895
- const e = F({}), l = F({});
1896
- function o(i, m, p) {
1897
- l.value[i] = p, m.forEach((d) => {
1898
- var h;
1899
- (h = e.value)[d] ?? (h[d] = []), e.value[d].includes(i) || e.value[d].push(i);
1900
- }), f(i);
2053
+ }), sl = /* @__PURE__ */ ae(ol, [["__scopeId", "data-v-e0bf7af0"]]);
2054
+ function dl(t, n, a) {
2055
+ const e = $({}), l = $({});
2056
+ function i(c, p, m) {
2057
+ l.value[c] = m, p.forEach((h) => {
2058
+ var f;
2059
+ (f = e.value)[h] ?? (f[h] = []), e.value[h].includes(c) || e.value[h].push(c);
2060
+ }), d(c);
1901
2061
  }
1902
- function u(i) {
1903
- return Object.entries(e.value).filter(([, p]) => p.includes(i)).map(([p]) => p).reduce(
1904
- (p, d) => (p[d] = n.value[d] ?? a.value[d], p),
2062
+ function s(c) {
2063
+ return Object.entries(e.value).filter(([, m]) => m.includes(c)).map(([m]) => m).reduce(
2064
+ (m, h) => (m[h] = n.value[h] ?? a.value[h], m),
1905
2065
  {}
1906
2066
  );
1907
2067
  }
1908
- function s(i, m) {
1909
- return i ? Array.isArray(i) ? i.some((p) => m.some((d) => y(p, d.value))) : m.some((p) => y(i, p.value)) : !1;
2068
+ function o(c, p) {
2069
+ return c ? Array.isArray(c) ? c.some((m) => p.some((h) => g(m, h.value))) : p.some((m) => g(c, m.value)) : !1;
1910
2070
  }
1911
- function y(i, m) {
1912
- return typeof i == "object" && i !== null ? i.value === m : String(i) === String(m);
2071
+ function g(c, p) {
2072
+ return typeof c == "object" && c !== null ? c.value === p : String(c) === String(p);
1913
2073
  }
1914
- async function f(i, m) {
1915
- if (!l.value[i]) return;
1916
- const p = u(i), d = Object.keys(p);
1917
- if (!(d.length === 0 || !d.every(
1918
- (z) => p[z] !== void 0 && p[z] !== null
2074
+ async function d(c, p) {
2075
+ if (!l.value[c]) return;
2076
+ const m = s(c), h = Object.keys(m);
2077
+ if (!(h.length === 0 || !h.every(
2078
+ (x) => m[x] !== void 0 && m[x] !== null
1919
2079
  )))
1920
2080
  try {
1921
- const z = l.value[i], C = await z(m, p);
1922
- if (!t.value[i]) return;
1923
- const O = t.value[i];
1924
- if (!W(O)) return;
1925
- O.options = C;
1926
- const S = O.value;
1927
- if (!S) return;
1928
- s(S, C) || (O.value = O.multiple ? [] : "");
1929
- } catch (z) {
1930
- console.error(`Error loading options for ${i}:`, z);
2081
+ const x = l.value[c], V = await x(p, m);
2082
+ if (!t.value[c]) return;
2083
+ const S = t.value[c];
2084
+ if (!X(S)) return;
2085
+ S.options = V;
2086
+ const O = S.value;
2087
+ if (!O) return;
2088
+ o(O, V) || (S.value = S.multiple ? [] : "");
2089
+ } catch (x) {
2090
+ console.error(`Error loading options for ${c}:`, x);
1931
2091
  }
1932
2092
  }
1933
- return q(
2093
+ return W(
1934
2094
  [n, a],
1935
2095
  () => {
1936
- Object.entries(e.value).forEach(([i, m]) => {
1937
- (n.value[i] !== void 0 || a.value[i] !== void 0) && m.forEach((p) => {
1938
- f(p);
2096
+ Object.entries(e.value).forEach(([c, p]) => {
2097
+ (n.value[c] !== void 0 || a.value[c] !== void 0) && p.forEach((m) => {
2098
+ d(m);
1939
2099
  });
1940
2100
  });
1941
2101
  },
1942
2102
  { deep: !0, immediate: !0 }
1943
2103
  ), {
1944
- registerDependency: o,
1945
- updateOptions: f
2104
+ registerDependency: i,
2105
+ updateOptions: d
1946
2106
  };
1947
2107
  }
1948
- const sl = {
2108
+ const vl = {
1949
2109
  install(t, n) {
1950
- n && t.provide("globalConfig", n), t.component("VForm", zt), t.component("TextInput", Ft), t.component("DateInput", Bt), t.component("NumberInput", Pt), t.component("EmailInput", Dt), t.component("PasswordInput", Tt), t.component("SelectInput", qt), t.component("TextAreaInput", Nt), t.component("RepeatInput", jt), t.component("CheckboxInput", Gt), t.component("RadioInput", Zt), t.component("FormSection", el), t.directive("maskito", Xe);
2110
+ n && t.provide("globalConfig", n), t.component("VForm", At), t.component("TextInput", Lt), t.component("DateInput", Tt), t.component("NumberInput", Ut), t.component("EmailInput", Rt), t.component("PasswordInput", qt), t.component("SelectInput", jt), t.component("TextAreaInput", Gt), t.component("RepeatInput", Zt), t.component("CheckboxInput", Qt), t.component("RadioInput", tl), t.component("FormSection", sl), t.directive("maskito", et);
1951
2111
  }
1952
2112
  };
1953
2113
  export {
1954
- Gt as CheckboxInput,
1955
- Bt as DateInput,
1956
- Dt as EmailInput,
1957
- zt as FormBuilder,
1958
- el as FormSection,
1959
- Pt as NumberInput,
1960
- Tt as PasswordInput,
1961
- Zt as RadioInput,
1962
- jt as RepeatInput,
1963
- qt as SelectInput,
1964
- Nt as TextAreaInput,
1965
- Ft as TextInput,
1966
- sl as VForm,
1967
- sl as default,
1968
- ct as useDataTransformation,
1969
- ol as useDependentOptions,
1970
- Be as useFormValidation,
1971
- de as useInputValidation,
1972
- dt as useMultiStepForm
2114
+ Qt as CheckboxInput,
2115
+ Tt as DateInput,
2116
+ Rt as EmailInput,
2117
+ At as FormBuilder,
2118
+ sl as FormSection,
2119
+ Ut as NumberInput,
2120
+ qt as PasswordInput,
2121
+ tl as RadioInput,
2122
+ Zt as RepeatInput,
2123
+ jt as SelectInput,
2124
+ Gt as TextAreaInput,
2125
+ Lt as TextInput,
2126
+ vl as VForm,
2127
+ vl as default,
2128
+ st as resolveFormFieldValue,
2129
+ pt as useDataTransformation,
2130
+ dl as useDependentOptions,
2131
+ pe as useFormFieldValue,
2132
+ De as useFormValidation,
2133
+ ve as useInputValidation,
2134
+ ft as useMultiStepForm
1973
2135
  };
1974
2136
  //# sourceMappingURL=index.es.js.map