@sfxcode/formkit-primevue 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineComponent as P, getCurrentInstance as zt, watch as de, watchEffect as ie, reactive as yn, h as we, ref as Ie, inject as ke, computed as tt, provide as hn, toRef as vn, onBeforeUnmount as _n, isRef as ft, isReactive as wt, toRaw as gn, markRaw as $n, createTextVNode as xn, resolveComponent as j, openBlock as O, createElementBlock as A, createVNode as F, unref as l, toDisplayString as me, createCommentVNode as le, normalizeStyle as ue, normalizeClass as U, createElementVNode as wn } from "vue";
2
- const kn = [
1
+ import { defineComponent as P, getCurrentInstance as zt, watch as me, watchEffect as le, reactive as yn, h as Ce, ref as Ve, inject as Se, computed as M, provide as vn, toRef as hn, onBeforeUnmount as _n, isRef as He, isReactive as kt, toRaw as gn, markRaw as $n, createTextVNode as wn, resolveComponent as T, openBlock as O, createElementBlock as A, createVNode as D, unref as a, toDisplayString as be, createCommentVNode as re, normalizeStyle as fe, normalizeClass as q, createElementVNode as kn } from "vue";
2
+ const Cn = [
3
3
  "__key",
4
4
  "__init",
5
5
  "__shim",
@@ -7,7 +7,7 @@ const kn = [
7
7
  "__index",
8
8
  "__prevKey"
9
9
  ];
10
- function Ke() {
10
+ function Ze() {
11
11
  return Math.random().toString(36).substring(2, 15);
12
12
  }
13
13
  function Sn(e, i) {
@@ -17,59 +17,59 @@ function Sn(e, i) {
17
17
  function E(e, i) {
18
18
  return Object.prototype.hasOwnProperty.call(e, i);
19
19
  }
20
- function Ve(e, i, t = !0, n = ["__key"]) {
20
+ function Le(e, i, t = !0, n = ["__key"]) {
21
21
  if (e === i)
22
22
  return !0;
23
23
  if (typeof i == "object" && typeof e == "object") {
24
24
  if (e instanceof Map || e instanceof Set || e instanceof Date || e === null || i === null || Object.keys(e).length !== Object.keys(i).length)
25
25
  return !1;
26
- for (const r of n)
27
- if ((r in e || r in i) && e[r] !== i[r])
26
+ for (const l of n)
27
+ if ((l in e || l in i) && e[l] !== i[l])
28
28
  return !1;
29
- for (const r in e)
30
- if (!(r in i) || e[r] !== i[r] && !t || t && !Ve(e[r], i[r], t, n))
29
+ for (const l in e)
30
+ if (!(l in i) || e[l] !== i[l] && !t || t && !Le(e[l], i[l], t, n))
31
31
  return !1;
32
32
  return !0;
33
33
  }
34
34
  return !1;
35
35
  }
36
- function nt(e) {
36
+ function it(e) {
37
37
  return Object.prototype.toString.call(e) === "[object Object]";
38
38
  }
39
- function it(e) {
40
- return nt(e) || Array.isArray(e);
39
+ function lt(e) {
40
+ return it(e) || Array.isArray(e);
41
41
  }
42
- function be(e) {
43
- if (nt(e) === !1 || e.__FKNode__ || e.__POJO__ === !1)
42
+ function ye(e) {
43
+ if (it(e) === !1 || e.__FKNode__ || e.__POJO__ === !1)
44
44
  return !1;
45
45
  const i = e.constructor;
46
46
  if (i === void 0)
47
47
  return !0;
48
48
  const t = i.prototype;
49
- return !(nt(t) === !1 || t.hasOwnProperty("isPrototypeOf") === !1);
49
+ return !(it(t) === !1 || t.hasOwnProperty("isPrototypeOf") === !1);
50
50
  }
51
- function He(e, i, t = !1, n = !1) {
51
+ function Ye(e, i, t = !1, n = !1) {
52
52
  if (i === null)
53
53
  return null;
54
- const r = {};
54
+ const l = {};
55
55
  if (typeof i == "string")
56
56
  return i;
57
- for (const a in e)
58
- if (E(i, a) && (i[a] !== void 0 || !n)) {
59
- if (t && Array.isArray(e[a]) && Array.isArray(i[a])) {
60
- r[a] = e[a].concat(i[a]);
57
+ for (const r in e)
58
+ if (E(i, r) && (i[r] !== void 0 || !n)) {
59
+ if (t && Array.isArray(e[r]) && Array.isArray(i[r])) {
60
+ l[r] = e[r].concat(i[r]);
61
61
  continue;
62
62
  }
63
- if (i[a] === void 0)
63
+ if (i[r] === void 0)
64
64
  continue;
65
- be(e[a]) && be(i[a]) ? r[a] = He(e[a], i[a], t, n) : r[a] = i[a];
65
+ ye(e[r]) && ye(i[r]) ? l[r] = Ye(e[r], i[r], t, n) : l[r] = i[r];
66
66
  } else
67
- r[a] = e[a];
68
- for (const a in i)
69
- !E(r, a) && i[a] !== void 0 && (r[a] = i[a]);
70
- return r;
67
+ l[r] = e[r];
68
+ for (const r in i)
69
+ !E(l, r) && i[r] !== void 0 && (l[r] = i[r]);
70
+ return l;
71
71
  }
72
- function Cn(e) {
72
+ function xn(e) {
73
73
  if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
74
74
  return !1;
75
75
  const i = e[0];
@@ -83,51 +83,51 @@ function In(e) {
83
83
  return "";
84
84
  let i = "", t = "";
85
85
  for (let n = 0; n < e.length; n++) {
86
- const r = e.charAt(n);
87
- (r !== "\\" || t === "\\") && (i += r), t = r;
86
+ const l = e.charAt(n);
87
+ (l !== "\\" || t === "\\") && (i += l), t = l;
88
88
  }
89
89
  return i;
90
90
  }
91
- function fe(...e) {
91
+ function ce(...e) {
92
92
  return e.reduce((i, t) => {
93
- const { value: n, name: r, modelValue: a, config: s, plugins: o, ...c } = t;
94
- return Object.assign(i, c);
93
+ const { value: n, name: l, modelValue: r, config: s, plugins: o, ...u } = t;
94
+ return Object.assign(i, u);
95
95
  }, {});
96
96
  }
97
97
  function Vn(e) {
98
98
  const i = [];
99
- let t = "", n = 0, r = "", a = "";
99
+ let t = "", n = 0, l = "", r = "";
100
100
  for (let s = 0; s < e.length; s++) {
101
101
  const o = e.charAt(s);
102
- o === r && a !== "\\" ? r = "" : (o === "'" || o === '"') && !r && a !== "\\" ? r = o : o === "(" && !r ? n++ : o === ")" && !r && n--, o === "," && !r && n === 0 ? (i.push(t), t = "") : (o !== " " || r) && (t += o), a = o;
102
+ o === l && r !== "\\" ? l = "" : (o === "'" || o === '"') && !l && r !== "\\" ? l = o : o === "(" && !l ? n++ : o === ")" && !l && n--, o === "," && !l && n === 0 ? (i.push(t), t = "") : (o !== " " || l) && (t += o), r = o;
103
103
  }
104
104
  return t && i.push(t), i;
105
105
  }
106
- function kt(e, i) {
107
- const t = {}, n = i.filter((a) => a instanceof RegExp), r = new Set(i);
108
- for (const a in e)
109
- !r.has(a) && !n.some((s) => s.test(a)) && (t[a] = e[a]);
106
+ function Ct(e, i) {
107
+ const t = {}, n = i.filter((r) => r instanceof RegExp), l = new Set(i);
108
+ for (const r in e)
109
+ !l.has(r) && !n.some((s) => s.test(r)) && (t[r] = e[r]);
110
110
  return t;
111
111
  }
112
112
  function St(e, i) {
113
- const t = {}, n = i.filter((r) => r instanceof RegExp);
114
- return i.forEach((r) => {
115
- r instanceof RegExp || (t[r] = e[r]);
116
- }), Object.keys(e).forEach((r) => {
117
- n.some((a) => a.test(r)) && (t[r] = e[r]);
113
+ const t = {}, n = i.filter((l) => l instanceof RegExp);
114
+ return i.forEach((l) => {
115
+ l instanceof RegExp || (t[l] = e[l]);
116
+ }), Object.keys(e).forEach((l) => {
117
+ n.some((r) => r.test(l)) && (t[l] = e[l]);
118
118
  }), t;
119
119
  }
120
- function Pe(e) {
120
+ function Ee(e) {
121
121
  return e.replace(/-([a-z0-9])/gi, (i, t) => t.toUpperCase());
122
122
  }
123
123
  function Wt(e) {
124
124
  return e.replace(/([a-z0-9])([A-Z])/g, (i, t, n) => t + "-" + n.toLowerCase()).replace(" ", "-").toLowerCase();
125
125
  }
126
- function Se(e, i = kn) {
126
+ function xe(e, i = Cn) {
127
127
  if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
128
128
  return e;
129
129
  let t;
130
- Array.isArray(e) ? t = e.map((n) => typeof n == "object" ? Se(n, i) : n) : t = Object.keys(e).reduce((n, r) => (n[r] = typeof e[r] == "object" ? Se(e[r], i) : e[r], n), {});
130
+ Array.isArray(e) ? t = e.map((n) => typeof n == "object" ? xe(n, i) : n) : t = Object.keys(e).reduce((n, l) => (n[l] = typeof e[l] == "object" ? xe(e[l], i) : e[l], n), {});
131
131
  for (const n of i)
132
132
  n in e && Object.defineProperty(t, n, {
133
133
  enumerable: !1,
@@ -135,27 +135,27 @@ function Se(e, i = kn) {
135
135
  });
136
136
  return t;
137
137
  }
138
- function oe(e) {
139
- return typeof e == "object" ? Se(e) : e;
138
+ function ue(e) {
139
+ return typeof e == "object" ? xe(e) : e;
140
140
  }
141
141
  function Ln(e, i) {
142
142
  if (!e || typeof e != "object")
143
143
  return null;
144
144
  const t = i.split(".");
145
145
  let n = e;
146
- for (const r in t) {
147
- const a = t[r];
148
- if (E(n, a) && (n = n[a]), +r === t.length - 1)
146
+ for (const l in t) {
147
+ const r = t[l];
148
+ if (E(n, r) && (n = n[r]), +l === t.length - 1)
149
149
  return n;
150
150
  if (!n || typeof n != "object")
151
151
  return null;
152
152
  }
153
153
  return null;
154
154
  }
155
- function J(e) {
155
+ function Q(e) {
156
156
  return e !== void 0 && e !== "false" && e !== !1 ? !0 : void 0;
157
157
  }
158
- function Ce(e) {
158
+ function Ie(e) {
159
159
  return Object.isFrozen(e) ? e : Object.defineProperty(e, "__init", {
160
160
  enumerable: !1,
161
161
  value: !0
@@ -167,60 +167,60 @@ function ct(e) {
167
167
  function pt() {
168
168
  const e = [];
169
169
  let i = 0;
170
- const t = (r) => e.push(r), n = (r) => {
171
- const a = e[i];
172
- return typeof a == "function" ? a(r, (s) => (i++, n(s === void 0 ? r : s))) : (i = 0, r);
170
+ const t = (l) => e.push(l), n = (l) => {
171
+ const r = e[i];
172
+ return typeof r == "function" ? r(l, (s) => (i++, n(s === void 0 ? l : s))) : (i = 0, l);
173
173
  };
174
- return t.dispatch = n, t.unshift = (r) => e.unshift(r), t.remove = (r) => {
175
- const a = e.indexOf(r);
176
- a > -1 && e.splice(a, 1);
174
+ return t.dispatch = n, t.unshift = (l) => e.unshift(l), t.remove = (l) => {
175
+ const r = e.indexOf(l);
176
+ r > -1 && e.splice(r, 1);
177
177
  }, t;
178
178
  }
179
179
  function Ut() {
180
180
  const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
181
181
  let t;
182
- const n = (r, a) => {
182
+ const n = (l, r) => {
183
183
  if (t) {
184
- t.set(a.name, [r, a]);
184
+ t.set(r.name, [l, r]);
185
185
  return;
186
186
  }
187
- e.has(a.name) && e.get(a.name).forEach((s) => {
188
- (a.origin === r || s.modifiers.includes("deep")) && s.listener(a);
189
- }), a.bubble && r.bubble(a);
187
+ e.has(r.name) && e.get(r.name).forEach((s) => {
188
+ (r.origin === l || s.modifiers.includes("deep")) && s.listener(r);
189
+ }), r.bubble && l.bubble(r);
190
190
  };
191
- return n.on = (r, a) => {
192
- const [s, ...o] = r.split("."), c = a.receipt || Ke(), y = {
191
+ return n.on = (l, r) => {
192
+ const [s, ...o] = l.split("."), u = r.receipt || Ze(), b = {
193
193
  modifiers: o,
194
194
  event: s,
195
- listener: a,
196
- receipt: c
195
+ listener: r,
196
+ receipt: u
197
197
  };
198
- return e.has(s) ? e.get(s).push(y) : e.set(s, [y]), i.has(c) ? i.get(c).push(s) : i.set(c, [s]), c;
199
- }, n.off = (r) => {
200
- var a;
201
- i.has(r) && ((a = i.get(r)) === null || a === void 0 || a.forEach((s) => {
198
+ return e.has(s) ? e.get(s).push(b) : e.set(s, [b]), i.has(u) ? i.get(u).push(s) : i.set(u, [s]), u;
199
+ }, n.off = (l) => {
200
+ var r;
201
+ i.has(l) && ((r = i.get(l)) === null || r === void 0 || r.forEach((s) => {
202
202
  const o = e.get(s);
203
- Array.isArray(o) && e.set(s, o.filter((c) => c.receipt !== r));
204
- }), i.delete(r));
205
- }, n.pause = (r) => {
206
- t || (t = /* @__PURE__ */ new Map()), r && r.walk((a) => a._e.pause());
207
- }, n.play = (r) => {
203
+ Array.isArray(o) && e.set(s, o.filter((u) => u.receipt !== l));
204
+ }), i.delete(l));
205
+ }, n.pause = (l) => {
206
+ t || (t = /* @__PURE__ */ new Map()), l && l.walk((r) => r._e.pause());
207
+ }, n.play = (l) => {
208
208
  if (!t)
209
209
  return;
210
- const a = t;
211
- t = void 0, a.forEach(([s, o]) => n(s, o)), r && r.walk((s) => s._e.play());
210
+ const r = t;
211
+ t = void 0, r.forEach(([s, o]) => n(s, o)), l && l.walk((s) => s._e.play());
212
212
  }, n;
213
213
  }
214
- function On(e, i, t, n, r = !0) {
214
+ function On(e, i, t, n, l = !0) {
215
215
  return i._e(e, {
216
216
  payload: n,
217
217
  name: t,
218
- bubble: r,
218
+ bubble: l,
219
219
  origin: e
220
220
  }), e;
221
221
  }
222
222
  function An(e, i, t) {
223
- return Ze(e.parent) && e.parent._e(e.parent, t), e;
223
+ return Je(e.parent) && e.parent._e(e.parent, t), e;
224
224
  }
225
225
  function Pn(e, i, t, n) {
226
226
  return i._e.on(t, n);
@@ -229,23 +229,23 @@ function En(e, i, t) {
229
229
  return i._e.off(t), e;
230
230
  }
231
231
  const dt = pt();
232
- dt((e, i) => (e.message || (e.message = String(`E${e.code}`)), i(e)));
232
+ dt((e, i) => (e.message || (e.message = `E${e.code}`), i(e)));
233
233
  const mt = pt();
234
234
  mt((e, i) => {
235
- e.message || (e.message = String(`W${e.code}`));
235
+ e.message || (e.message = `W${e.code}`);
236
236
  const t = i(e);
237
237
  return console && typeof console.warn == "function" && console.warn(t.message), t;
238
238
  });
239
- function Le(e, i = {}) {
239
+ function Oe(e, i = {}) {
240
240
  mt.dispatch({ code: e, data: i });
241
241
  }
242
- function q(e, i = {}) {
242
+ function N(e, i = {}) {
243
243
  throw Error(dt.dispatch({ code: e, data: i }).message);
244
244
  }
245
- function re(e, i) {
245
+ function ae(e, i) {
246
246
  const t = {
247
247
  blocking: !1,
248
- key: Ke(),
248
+ key: Ze(),
249
249
  meta: {},
250
250
  type: "state",
251
251
  visible: !0,
@@ -253,7 +253,7 @@ function re(e, i) {
253
253
  };
254
254
  return i && t.value && t.meta.localize !== !1 && (t.value = i.t(t), t.meta.locale = i.config.locale), t;
255
255
  }
256
- const Ct = {
256
+ const xt = {
257
257
  apply: Dn,
258
258
  set: Rn,
259
259
  remove: qt,
@@ -264,16 +264,16 @@ const Ct = {
264
264
  };
265
265
  function Mn(e = !1) {
266
266
  const i = {};
267
- let t, n = e, r = [];
268
- const a = /* @__PURE__ */ new Map();
267
+ let t, n = e, l = [];
268
+ const r = /* @__PURE__ */ new Map();
269
269
  let s;
270
270
  const o = new Proxy(i, {
271
- get(...c) {
272
- const [y, w] = c;
273
- return w === "buffer" ? n : w === "_b" ? r : w === "_m" ? a : w === "_r" ? s : E(Ct, w) ? Ct[w].bind(null, i, o, t) : Reflect.get(...c);
271
+ get(...u) {
272
+ const [b, h] = u;
273
+ return h === "buffer" ? n : h === "_b" ? l : h === "_m" ? r : h === "_r" ? s : E(xt, h) ? xt[h].bind(null, i, o, t) : Reflect.get(...u);
274
274
  },
275
- set(c, y, w) {
276
- return y === "_n" ? (t = w, s === "__n" && Nt(t, o), !0) : y === "_b" ? (r = w, !0) : y === "buffer" ? (n = w, !0) : y === "_r" ? (s = w, !0) : (q(101, t), !1);
275
+ set(u, b, h) {
276
+ return b === "_n" ? (t = h, s === "__n" && Nt(t, o), !0) : b === "_b" ? (l = h, !0) : b === "buffer" ? (n = h, !0) : b === "_r" ? (s = h, !0) : (N(101, t), !1);
277
277
  }
278
278
  });
279
279
  return o;
@@ -283,11 +283,11 @@ function Rn(e, i, t, n) {
283
283
  return i._b.push([[n]]), i;
284
284
  if (e[n.key] !== n) {
285
285
  if (typeof n.value == "string" && n.meta.localize !== !1) {
286
- const a = n.value;
287
- n.value = t.t(n), n.value !== a && (n.meta.locale = t.props.locale);
286
+ const r = n.value;
287
+ n.value = t.t(n), n.value !== r && (n.meta.locale = t.props.locale);
288
288
  }
289
- const r = `message-${E(e, n.key) ? "updated" : "added"}`;
290
- e[n.key] = Object.freeze(t.hook.message.dispatch(n)), t.emit(r, n);
289
+ const l = `message-${E(e, n.key) ? "updated" : "added"}`;
290
+ e[n.key] = Object.freeze(t.hook.message.dispatch(n)), t.emit(l, n);
291
291
  }
292
292
  return i;
293
293
  }
@@ -299,67 +299,67 @@ function jn(e, i) {
299
299
  }
300
300
  function qt(e, i, t, n) {
301
301
  if (E(e, n)) {
302
- const r = e[n];
303
- delete e[n], t.emit("message-removed", r);
302
+ const l = e[n];
303
+ delete e[n], t.emit("message-removed", l);
304
304
  }
305
- return i.buffer === !0 && (i._b = i._b.filter((r) => (r[0] = r[0].filter((a) => a.key !== n), r[1] || r[0].length))), i;
305
+ return i.buffer === !0 && (i._b = i._b.filter((l) => (l[0] = l[0].filter((r) => r.key !== n), l[1] || l[0].length))), i;
306
306
  }
307
- function Tn(e, i, t, n, r) {
308
- for (const a in e) {
309
- const s = e[a];
310
- (!r || s.type === r) && !n(s) && qt(e, i, t, a);
307
+ function Tn(e, i, t, n, l) {
308
+ for (const r in e) {
309
+ const s = e[r];
310
+ (!l || s.type === l) && !n(s) && qt(e, i, t, r);
311
311
  }
312
312
  }
313
- function Fn(e, i, t, n, r) {
314
- for (const a in e) {
315
- const s = e[a];
316
- r = n(r, s);
313
+ function Fn(e, i, t, n, l) {
314
+ for (const r in e) {
315
+ const s = e[r];
316
+ l = n(l, s);
317
317
  }
318
- return r;
318
+ return l;
319
319
  }
320
- function Dn(e, i, t, n, r) {
320
+ function Dn(e, i, t, n, l) {
321
321
  if (Array.isArray(n)) {
322
322
  if (i.buffer) {
323
- i._b.push([n, r]);
323
+ i._b.push([n, l]);
324
324
  return;
325
325
  }
326
- const a = new Set(n.map((s) => (i.set(s), s.key)));
327
- typeof r == "string" ? i.filter((s) => s.type !== r || a.has(s.key)) : typeof r == "function" && i.filter((s) => !r(s) || a.has(s.key));
326
+ const r = new Set(n.map((s) => (i.set(s), s.key)));
327
+ typeof l == "string" ? i.filter((s) => s.type !== l || r.has(s.key)) : typeof l == "function" && i.filter((s) => !l(s) || r.has(s.key));
328
328
  } else
329
- for (const a in n) {
330
- const s = t.at(a);
331
- s ? s.store.apply(n[a], r) : zn(t, i, a, n[a], r);
329
+ for (const r in n) {
330
+ const s = t.at(r);
331
+ s ? s.store.apply(n[r], l) : zn(t, i, r, n[r], l);
332
332
  }
333
333
  }
334
334
  function Bn(e, ...i) {
335
- const t = `${e.name}-set`, n = (r) => re({
336
- key: ct(r),
335
+ const t = `${e.name}-set`, n = (l) => ae({
336
+ key: ct(l),
337
337
  type: "error",
338
- value: r,
338
+ value: l,
339
339
  meta: { source: t, autoClear: !0 }
340
340
  });
341
- return i.filter((r) => !!r).map((r) => {
342
- if (typeof r == "string" && (r = [r]), Array.isArray(r))
343
- return r.map((a) => n(a));
341
+ return i.filter((l) => !!l).map((l) => {
342
+ if (typeof l == "string" && (l = [l]), Array.isArray(l))
343
+ return l.map((r) => n(r));
344
344
  {
345
- const a = {};
346
- for (const s in r)
347
- Array.isArray(r[s]) ? a[s] = r[s].map((o) => n(o)) : a[s] = [n(r[s])];
348
- return a;
345
+ const r = {};
346
+ for (const s in l)
347
+ Array.isArray(l[s]) ? r[s] = l[s].map((o) => n(o)) : r[s] = [n(l[s])];
348
+ return r;
349
349
  }
350
350
  });
351
351
  }
352
- function zn(e, i, t, n, r) {
353
- var a;
352
+ function zn(e, i, t, n, l) {
353
+ var r;
354
354
  const s = i._m;
355
- s.has(t) || s.set(t, []), i._r || (i._r = Nt(e, i)), (a = s.get(t)) === null || a === void 0 || a.push([n, r]);
355
+ s.has(t) || s.set(t, []), i._r || (i._r = Nt(e, i)), (r = s.get(t)) === null || r === void 0 || r.push([n, l]);
356
356
  }
357
357
  function Nt(e, i) {
358
358
  return e.on("child.deep", ({ payload: t }) => {
359
- i._m.forEach((n, r) => {
360
- e.at(r) === t && (n.forEach(([a, s]) => {
361
- t.store.apply(a, s);
362
- }), i._m.delete(r));
359
+ i._m.forEach((n, l) => {
360
+ e.at(l) === t && (n.forEach(([r, s]) => {
361
+ t.store.apply(r, s);
362
+ }), i._m.delete(l));
363
363
  }), i._m.size === 0 && i._r && (e.off(i._r), i._r = void 0);
364
364
  });
365
365
  }
@@ -384,9 +384,9 @@ function Un() {
384
384
  }
385
385
  };
386
386
  }
387
- function qn(e, i, t, n, r = 0) {
387
+ function qn(e, i, t, n, l = 0) {
388
388
  if (n = Nn(n || t), !E(i, t)) {
389
- const a = {
389
+ const r = {
390
390
  condition: n,
391
391
  count: 0,
392
392
  name: t,
@@ -396,41 +396,41 @@ function qn(e, i, t, n, r = 0) {
396
396
  }
397
397
  // eslint-disable-line @typescript-eslint/no-empty-function
398
398
  };
399
- i[t] = a, r = e.store.reduce((s, o) => s + a.condition(o) * 1, r), e.each((s) => {
400
- s.ledger.count(a.name, a.condition), r += s.ledger.value(a.name);
399
+ i[t] = r, l = e.store.reduce((s, o) => s + r.condition(o) * 1, l), e.each((s) => {
400
+ s.ledger.count(r.name, r.condition), l += s.ledger.value(r.name);
401
401
  });
402
402
  }
403
- return Kt(i[t], r).promise;
403
+ return Kt(i[t], l).promise;
404
404
  }
405
405
  function Nn(e) {
406
406
  return typeof e == "function" ? e : (i) => i.type === e;
407
407
  }
408
408
  function Kt(e, i) {
409
409
  const t = e.count, n = e.count + i;
410
- return e.count = n, t === 0 && n !== 0 ? (e.node.emit(`unsettled:${e.name}`, e.count, !1), e.promise = new Promise((r) => e.resolve = r)) : t !== 0 && n === 0 && (e.node.emit(`settled:${e.name}`, e.count, !1), e.resolve()), e.node.emit(`count:${e.name}`, e.count, !1), e;
410
+ return e.count = n, t === 0 && n !== 0 ? (e.node.emit(`unsettled:${e.name}`, e.count, !1), e.promise = new Promise((l) => e.resolve = l)) : t !== 0 && n === 0 && (e.node.emit(`settled:${e.name}`, e.count, !1), e.resolve()), e.node.emit(`count:${e.name}`, e.count, !1), e;
411
411
  }
412
412
  function It(e, i) {
413
413
  return (t) => {
414
414
  for (const n in e) {
415
- const r = e[n];
416
- r.condition(t.payload) && Kt(r, i);
415
+ const l = e[n];
416
+ l.condition(t.payload) && Kt(l, i);
417
417
  }
418
418
  };
419
419
  }
420
420
  function Vt(e, i, t, n = !1) {
421
- for (const r in i) {
422
- const a = i[r].condition;
423
- n || t.ledger.count(r, a);
424
- const s = t.ledger.value(r) * (n ? -1 : 1);
421
+ for (const l in i) {
422
+ const r = i[l].condition;
423
+ n || t.ledger.count(l, r);
424
+ const s = t.ledger.value(l) * (n ? -1 : 1);
425
425
  if (e)
426
426
  do
427
- e.ledger.count(r, a, s), e = e.parent;
427
+ e.ledger.count(l, r, s), e = e.parent;
428
428
  while (e);
429
429
  }
430
430
  }
431
- const bt = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Map(), yt = Ut(), Kn = [];
431
+ const bt = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new Map(), yt = Ut(), Kn = [];
432
432
  function Hn(e) {
433
- e.props.id && (bt.set(e.props.id, e), Ee.set(e, e.props.id), yt(e, {
433
+ e.props.id && (bt.set(e.props.id, e), Me.set(e, e.props.id), yt(e, {
434
434
  payload: e,
435
435
  name: e.props.id,
436
436
  bubble: !1,
@@ -438,9 +438,9 @@ function Hn(e) {
438
438
  }));
439
439
  }
440
440
  function Zn(e) {
441
- if (Ee.has(e)) {
442
- const i = Ee.get(e);
443
- Ee.delete(e), bt.delete(i), yt(e, {
441
+ if (Me.has(e)) {
442
+ const i = Me.get(e);
443
+ Me.delete(e), bt.delete(i), yt(e, {
444
444
  payload: null,
445
445
  name: i,
446
446
  bubble: !1,
@@ -465,13 +465,13 @@ function Jn(e) {
465
465
  i.dispatchEvent(t);
466
466
  return;
467
467
  }
468
- Le(151, e);
468
+ Oe(151, e);
469
469
  }
470
470
  function Qn(e) {
471
471
  const i = (t) => {
472
472
  for (const n in t.store) {
473
- const r = t.store[n];
474
- r.type === "error" || r.type === "ui" && n === "incomplete" ? t.store.remove(n) : r.type === "state" && t.store.set({ ...r, value: !1 });
473
+ const l = t.store[n];
474
+ l.type === "error" || l.type === "ui" && n === "incomplete" ? t.store.remove(n) : l.type === "state" && t.store.set({ ...l, value: !1 });
475
475
  }
476
476
  };
477
477
  i(e), e.walk(i);
@@ -479,32 +479,32 @@ function Qn(e) {
479
479
  function Gn(e, i) {
480
480
  const t = typeof e == "string" ? Ht(e) : e;
481
481
  if (t) {
482
- const n = (a) => oe(a.props.initial) || (a.type === "group" ? {} : a.type === "list" ? [] : void 0);
483
- t._e.pause(t), t.input(oe(i) || n(t), !1), t.walk((a) => a.input(n(a), !1));
484
- const r = n(t);
485
- return t.input(typeof r == "object" ? oe(i) || Ce(r) : r, !1), t._e.play(t), Qn(t), t.emit("reset", t), t;
482
+ const n = (r) => ue(r.props.initial) || (r.type === "group" ? {} : r.type === "list" ? [] : void 0);
483
+ t._e.pause(t), t.input(ue(i) || n(t), !1), t.walk((r) => r.input(n(r), !1));
484
+ const l = n(t);
485
+ return t.input(typeof l == "object" ? ue(i) || Ie(l) : l, !1), t._e.play(t), Qn(t), t.emit("reset", t), t;
486
486
  }
487
- Le(152, e);
487
+ Oe(152, e);
488
488
  }
489
489
  const Xn = {
490
490
  delimiter: ".",
491
491
  delay: 0,
492
492
  locale: "en",
493
493
  rootClasses: (e) => ({ [`formkit-${Wt(e)}`]: !0 })
494
- }, Zt = Symbol("index"), rt = Symbol("removed"), lt = Symbol("moved"), Yt = Symbol("inserted");
494
+ }, Zt = Symbol("index"), at = Symbol("removed"), rt = Symbol("moved"), Yt = Symbol("inserted");
495
495
  function ei(e) {
496
496
  return e.type === "list" && Array.isArray(e._value);
497
497
  }
498
- function Ze(e) {
498
+ function Je(e) {
499
499
  return e && typeof e == "object" && e.__FKNode__ === !0;
500
500
  }
501
- const Me = (e, i, t) => {
502
- q(102, [e, t]);
501
+ const Re = (e, i, t) => {
502
+ N(102, [e, t]);
503
503
  }, ti = {
504
- _c: V(xi, Me, !1),
504
+ _c: V(wi, Re, !1),
505
505
  add: V(mi),
506
506
  addProps: V(di),
507
- address: V(ki, Me, !1),
507
+ address: V(Ci, Re, !1),
508
508
  at: V(Si),
509
509
  bubble: V(An),
510
510
  clearErrors: V(Ei),
@@ -516,7 +516,7 @@ const Me = (e, i, t) => {
516
516
  hydrate: V(oi),
517
517
  index: V($i, gi, !1),
518
518
  input: V(Qt),
519
- each: V(hi),
519
+ each: V(vi),
520
520
  emit: V(On),
521
521
  find: V(Ii),
522
522
  on: V(Pn),
@@ -524,23 +524,23 @@ const Me = (e, i, t) => {
524
524
  parent: V(!1, bi),
525
525
  plugins: V(!1),
526
526
  remove: V(yi),
527
- root: V(Li, Me, !1),
527
+ root: V(Li, Re, !1),
528
528
  reset: V(Pi),
529
529
  resetConfig: V(_i),
530
530
  setErrors: V(en),
531
531
  submit: V(Ai),
532
532
  t: V(Oi),
533
- use: V(ht),
534
- name: V(wi, !1, !1),
535
- walk: V(vi)
533
+ use: V(vt),
534
+ name: V(ki, !1, !1),
535
+ walk: V(hi)
536
536
  };
537
537
  function ni() {
538
538
  return new Map(Object.entries(ti));
539
539
  }
540
540
  function V(e, i, t = !0) {
541
541
  return {
542
- get: e ? (n, r) => t ? (...a) => e(n, r, ...a) : e(n, r) : !1,
543
- set: i !== void 0 ? i : Me.bind(null)
542
+ get: e ? (n, l) => t ? (...r) => e(n, l, ...r) : e(n, l) : !1,
543
+ set: i !== void 0 ? i : Re.bind(null)
544
544
  };
545
545
  }
546
546
  function ii() {
@@ -551,41 +551,41 @@ function ii() {
551
551
  }
552
552
  });
553
553
  }
554
- let ri = 0, li = 0;
555
- function ai(e) {
554
+ let li = 0, ai = 0;
555
+ function ri(e) {
556
556
  var i, t;
557
- return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Zt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++ri}`;
557
+ return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Zt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++li}`;
558
558
  }
559
559
  function Jt(e) {
560
- return e.type === "group" ? Ce(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? Ce(Array.isArray(e.value) ? e.value : []) : e.value;
560
+ return e.type === "group" ? Ie(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? Ie(Array.isArray(e.value) ? e.value : []) : e.value;
561
561
  }
562
562
  function Qt(e, i, t, n = !0) {
563
- return i._value = si(e, e.hook.input.dispatch(t)), e.emit("input", i._value), i.isSettled && e.disturb(), n ? (i._tmo && clearTimeout(i._tmo), i._tmo = setTimeout(De, e.props.delay, e, i)) : De(e, i), i.settled;
563
+ return i._value = si(e, e.hook.input.dispatch(t)), e.emit("input", i._value), i.isSettled && e.disturb(), n ? (i._tmo && clearTimeout(i._tmo), i._tmo = setTimeout(Be, e.props.delay, e, i)) : Be(e, i), i.settled;
564
564
  }
565
565
  function si(e, i) {
566
566
  switch (e.type) {
567
567
  case "input":
568
568
  break;
569
569
  case "group":
570
- (!i || typeof i != "object") && q(107, [e, i]);
570
+ (!i || typeof i != "object") && N(107, [e, i]);
571
571
  break;
572
572
  case "list":
573
- Array.isArray(i) || q(108, [e, i]);
573
+ Array.isArray(i) || N(108, [e, i]);
574
574
  break;
575
575
  }
576
576
  return i;
577
577
  }
578
- function De(e, i, t = !0, n = !0) {
578
+ function Be(e, i, t = !0, n = !0) {
579
579
  i._value = i.value = e.hook.commit.dispatch(i._value), e.type !== "input" && n && e.hydrate(), e.emit("commit", i.value), t && e.calm();
580
580
  }
581
581
  function Gt(e, { name: i, value: t, from: n }) {
582
582
  if (!Object.isFrozen(e._value)) {
583
583
  if (ei(e)) {
584
- const r = t === rt ? [] : t === lt && typeof n == "number" ? e._value.splice(n, 1) : [t];
585
- e._value.splice(i, t === lt || n === Yt ? 0 : 1, ...r);
584
+ const l = t === at ? [] : t === rt && typeof n == "number" ? e._value.splice(n, 1) : [t];
585
+ e._value.splice(i, t === rt || n === Yt ? 0 : 1, ...l);
586
586
  return;
587
587
  }
588
- t !== rt ? e._value[i] = t : delete e._value[i];
588
+ t !== at ? e._value[i] = t : delete e._value[i];
589
589
  }
590
590
  }
591
591
  function oi(e, i) {
@@ -593,8 +593,8 @@ function oi(e, i) {
593
593
  return i.children.forEach((n) => {
594
594
  if (typeof t == "object")
595
595
  if (n.name in t) {
596
- const r = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? Ce(t[n.name]) : t[n.name];
597
- n.input(r, !1);
596
+ const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? Ie(t[n.name]) : t[n.name];
597
+ n.input(l, !1);
598
598
  } else
599
599
  (e.type !== "list" || typeof n.name == "number") && Gt(i, { name: n.name, value: n.value }), t.__init || (n.type === "group" ? n.input({}, !1) : n.type === "list" ? n.input([], !1) : n.input(void 0, !1));
600
600
  }), e;
@@ -608,14 +608,14 @@ function ui(e, i) {
608
608
  function fi(e, i, t) {
609
609
  var n;
610
610
  if (t !== void 0 && e.type !== "input")
611
- return Gt(i, t), De(e, i, !0, !1);
611
+ return Gt(i, t), Be(e, i, !0, !1);
612
612
  i._d > 0 && i._d--, i._d === 0 && (i.isSettled = !0, e.emit("settled", !0, !1), e.parent && ((n = e.parent) === null || n === void 0 || n.calm({ name: e.name, value: i.value })), i._resolve && i._resolve(i.value));
613
613
  }
614
614
  function ci(e, i) {
615
615
  e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), Zn(e), i._value = i.value = void 0, e.emit("destroyed", e);
616
616
  }
617
617
  function pi(e, i, t) {
618
- i.type = t.type, i.props.definition = Se(t), i.value = i._value = Jt({
618
+ i.type = t.type, i.props.definition = xe(t), i.value = i._value = Jt({
619
619
  type: e.type,
620
620
  value: i.value
621
621
  }), t.forceTypeProp && (e.props.type && (e.props.originalType = e.props.type), i.props.type = t.forceTypeProp), t.family && (i.props.family = t.family), t.features && t.features.forEach((n) => n(e)), t.props && e.addProps(t.props), e.emit("defined", t);
@@ -623,14 +623,14 @@ function pi(e, i, t) {
623
623
  function di(e, i, t) {
624
624
  var n;
625
625
  if (e.props.attrs) {
626
- const r = { ...e.props.attrs };
626
+ const l = { ...e.props.attrs };
627
627
  e.props._emit = !1;
628
- for (const s in r) {
629
- const o = Pe(s);
630
- t.includes(o) && (e.props[o] = r[s], delete r[s]);
628
+ for (const s in l) {
629
+ const o = Ee(s);
630
+ t.includes(o) && (e.props[o] = l[s], delete l[s]);
631
631
  }
632
- const a = oe(i._value);
633
- e.props.initial = e.type !== "input" ? Ce(a) : a, e.props._emit = !0, e.props.attrs = r, e.props.definition && (e.props.definition.props = [
632
+ const r = ue(i._value);
633
+ e.props.initial = e.type !== "input" ? Ie(r) : r, e.props._emit = !0, e.props.attrs = l, e.props.definition && (e.props.definition.props = [
634
634
  ...((n = e.props.definition) === null || n === void 0 ? void 0 : n.props) || [],
635
635
  ...t
636
636
  ]);
@@ -638,7 +638,7 @@ function di(e, i, t) {
638
638
  return e.emit("added-props", t), e;
639
639
  }
640
640
  function mi(e, i, t, n) {
641
- if (e.type === "input" && q(100, e), t.parent && t.parent !== e && t.parent.remove(t), i.children.includes(t) || (n !== void 0 && e.type === "list" ? (i.children.splice(n, 0, t), Array.isArray(e.value) && e.value.length < i.children.length && e.disturb().calm({
641
+ if (e.type === "input" && N(100, e), t.parent && t.parent !== e && t.parent.remove(t), i.children.includes(t) || (n !== void 0 && e.type === "list" ? (i.children.splice(n, 0, t), Array.isArray(e.value) && e.value.length < i.children.length && e.disturb().calm({
642
642
  name: n,
643
643
  value: t.value,
644
644
  from: Yt
@@ -647,44 +647,44 @@ function mi(e, i, t, n) {
647
647
  return e.remove(t), t.parent.add(t), e;
648
648
  } else
649
649
  t.use(e.plugins);
650
- return De(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
650
+ return Be(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
651
651
  }
652
652
  function bi(e, i, t, n) {
653
- return Ze(n) ? (e.parent && e.parent !== n && e.parent.remove(e), i.parent = n, e.resetConfig(), n.children.includes(e) ? e.use(n.plugins) : n.add(e), !0) : n === null ? (i.parent = null, !0) : !1;
653
+ return Je(n) ? (e.parent && e.parent !== n && e.parent.remove(e), i.parent = n, e.resetConfig(), n.children.includes(e) ? e.use(n.plugins) : n.add(e), !0) : n === null ? (i.parent = null, !0) : !1;
654
654
  }
655
655
  function yi(e, i, t) {
656
656
  const n = i.children.indexOf(t);
657
657
  if (n !== -1) {
658
658
  t.isSettled && e.disturb(), i.children.splice(n, 1);
659
- let r = J(t.props.preserve), a = t.parent;
660
- for (; r === void 0 && a; )
661
- r = J(a.props.preserve), a = a.parent;
662
- r ? e.calm() : e.calm({
659
+ let l = Q(t.props.preserve), r = t.parent;
660
+ for (; l === void 0 && r; )
661
+ l = Q(r.props.preserve), r = r.parent;
662
+ l ? e.calm() : e.calm({
663
663
  name: e.type === "list" ? n : t.name,
664
- value: rt
664
+ value: at
665
665
  }), t.parent = null, t.config._rmn = t;
666
666
  }
667
667
  return e.ledger.unmerge(t), e;
668
668
  }
669
- function hi(e, i, t) {
669
+ function vi(e, i, t) {
670
670
  i.children.forEach((n) => t(n));
671
671
  }
672
- function vi(e, i, t, n = !1) {
673
- i.children.forEach((r) => {
674
- (t(r) !== !1 || !n) && r.walk(t, n);
672
+ function hi(e, i, t, n = !1) {
673
+ i.children.forEach((l) => {
674
+ (t(l) !== !1 || !n) && l.walk(t, n);
675
675
  });
676
676
  }
677
677
  function _i(e, i) {
678
678
  const t = e.parent || void 0;
679
679
  i.config = Xt(e.config._t, t), e.walk((n) => n.resetConfig());
680
680
  }
681
- function ht(e, i, t, n = !0, r = !0) {
682
- return Array.isArray(t) || t instanceof Set ? (t.forEach((a) => ht(e, i, a)), e) : (i.plugins.has(t) || (r && typeof t.library == "function" && t.library(e), n && t(e) !== !1 && (i.plugins.add(t), e.children.forEach((a) => a.use(t)))), e);
681
+ function vt(e, i, t, n = !0, l = !0) {
682
+ return Array.isArray(t) || t instanceof Set ? (t.forEach((r) => vt(e, i, r)), e) : (i.plugins.has(t) || (l && typeof t.library == "function" && t.library(e), n && t(e) !== !1 && (i.plugins.add(t), e.children.forEach((r) => r.use(t)))), e);
683
683
  }
684
684
  function gi(e, i, t, n) {
685
- if (Ze(e.parent)) {
686
- const r = e.parent.children, a = n >= r.length ? r.length - 1 : n < 0 ? 0 : n, s = r.indexOf(e);
687
- return s === -1 ? !1 : (r.splice(s, 1), r.splice(a, 0, e), e.parent.children = r, e.parent.type === "list" && e.parent.disturb().calm({ name: a, value: lt, from: s }), !0);
685
+ if (Je(e.parent)) {
686
+ const l = e.parent.children, r = n >= l.length ? l.length - 1 : n < 0 ? 0 : n, s = l.indexOf(e);
687
+ return s === -1 ? !1 : (l.splice(s, 1), l.splice(r, 0, e), e.parent.children = l, e.parent.type === "list" && e.parent.disturb().calm({ name: r, value: rt, from: s }), !0);
688
688
  }
689
689
  return !1;
690
690
  }
@@ -695,47 +695,47 @@ function $i(e) {
695
695
  }
696
696
  return -1;
697
697
  }
698
- function xi(e, i) {
698
+ function wi(e, i) {
699
699
  return i;
700
700
  }
701
- function wi(e, i) {
701
+ function ki(e, i) {
702
702
  var t;
703
703
  return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : i.name !== Zt ? i.name : e.index;
704
704
  }
705
- function ki(e, i) {
705
+ function Ci(e, i) {
706
706
  return i.parent ? i.parent.address.concat([e.name]) : [e.name];
707
707
  }
708
708
  function Si(e, i, t) {
709
709
  const n = typeof t == "string" ? t.split(e.config.delimiter) : t;
710
710
  if (!n.length)
711
711
  return;
712
- const r = n[0];
713
- let a = e.parent;
714
- for (a || (String(n[0]) === String(e.name) && n.shift(), a = e), r === "$parent" && n.shift(); a && n.length; ) {
712
+ const l = n[0];
713
+ let r = e.parent;
714
+ for (r || (String(n[0]) === String(e.name) && n.shift(), r = e), l === "$parent" && n.shift(); r && n.length; ) {
715
715
  const s = n.shift();
716
716
  switch (s) {
717
717
  case "$root":
718
- a = e.root;
718
+ r = e.root;
719
719
  break;
720
720
  case "$parent":
721
- a = a.parent;
721
+ r = r.parent;
722
722
  break;
723
723
  case "$self":
724
- a = e;
724
+ r = e;
725
725
  break;
726
726
  default:
727
- a = a.children.find((o) => String(o.name) === String(s)) || Ci(a, s);
727
+ r = r.children.find((o) => String(o.name) === String(s)) || xi(r, s);
728
728
  }
729
729
  }
730
- return a || void 0;
730
+ return r || void 0;
731
731
  }
732
- function Ci(e, i) {
732
+ function xi(e, i) {
733
733
  const t = String(i).match(/^(find)\((.*)\)$/);
734
734
  if (t) {
735
- const [, n, r] = t, a = r.split(",").map((s) => s.trim());
735
+ const [, n, l] = t, r = l.split(",").map((s) => s.trim());
736
736
  switch (n) {
737
737
  case "find":
738
- return e.find(a[0], a[1]);
738
+ return e.find(r[0], r[1]);
739
739
  default:
740
740
  return;
741
741
  }
@@ -745,12 +745,12 @@ function Ii(e, i, t, n) {
745
745
  return Vi(e, t, n);
746
746
  }
747
747
  function Vi(e, i, t = "name") {
748
- const n = typeof t == "string" ? (a) => a[t] == i : t, r = [e];
749
- for (; r.length; ) {
750
- const a = r.shift();
751
- if (n(a, i))
752
- return a;
753
- r.push(...a.children);
748
+ const n = typeof t == "string" ? (r) => r[t] == i : t, l = [e];
749
+ for (; l.length; ) {
750
+ const r = l.shift();
751
+ if (n(r, i))
752
+ return r;
753
+ l.push(...r.children);
754
754
  }
755
755
  }
756
756
  function Li(e) {
@@ -763,48 +763,48 @@ function Xt(e = {}, i) {
763
763
  let t;
764
764
  return new Proxy(e, {
765
765
  get(...n) {
766
- const r = n[1];
767
- if (r === "_t")
766
+ const l = n[1];
767
+ if (l === "_t")
768
768
  return e;
769
- const a = Reflect.get(...n);
770
- if (a !== void 0)
771
- return a;
769
+ const r = Reflect.get(...n);
770
+ if (r !== void 0)
771
+ return r;
772
772
  if (i) {
773
- const s = i.config[r];
773
+ const s = i.config[l];
774
774
  if (s !== void 0)
775
775
  return s;
776
776
  }
777
- if (e.rootConfig && typeof r == "string") {
778
- const s = e.rootConfig[r];
777
+ if (e.rootConfig && typeof l == "string") {
778
+ const s = e.rootConfig[l];
779
779
  if (s !== void 0)
780
780
  return s;
781
781
  }
782
- return r === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : Xn[r];
782
+ return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : Xn[l];
783
783
  },
784
784
  set(...n) {
785
- const r = n[1], a = n[2];
786
- if (r === "_n")
787
- return t = a, e.rootConfig && e.rootConfig._add(t), !0;
788
- if (r === "_rmn")
785
+ const l = n[1], r = n[2];
786
+ if (l === "_n")
787
+ return t = r, e.rootConfig && e.rootConfig._add(t), !0;
788
+ if (l === "_rmn")
789
789
  return e.rootConfig && e.rootConfig._rm(t), t = void 0, !0;
790
- if (!Ve(e[r], a, !1)) {
790
+ if (!Le(e[l], r, !1)) {
791
791
  const s = Reflect.set(...n);
792
- return t && (t.emit(`config:${r}`, a, !1), Lt(t, r, a), t.walk((o) => Lt(o, r, a), !0)), s;
792
+ return t && (t.emit(`config:${l}`, r, !1), Lt(t, l, r), t.walk((o) => Lt(o, l, r), !0)), s;
793
793
  }
794
794
  return !0;
795
795
  }
796
796
  });
797
797
  }
798
798
  function Oi(e, i, t, n = "ui") {
799
- const r = typeof t == "string" ? { key: t, value: t, type: n } : t, a = e.hook.text.dispatch(r);
800
- return e.emit("text", a, !1), a.value;
799
+ const l = typeof t == "string" ? { key: t, value: t, type: n } : t, r = e.hook.text.dispatch(l);
800
+ return e.emit("text", r, !1), r.value;
801
801
  }
802
802
  function Ai(e) {
803
803
  const i = e.name;
804
804
  do {
805
805
  if (e.props.isForm === !0)
806
806
  break;
807
- e.parent || q(106, i), e = e.parent;
807
+ e.parent || N(106, i), e = e.parent;
808
808
  } while (e);
809
809
  e.props.id && Jn(e.props.id);
810
810
  }
@@ -812,44 +812,44 @@ function Pi(e, i, t) {
812
812
  return Gn(e, t);
813
813
  }
814
814
  function en(e, i, t, n) {
815
- const r = `${e.name}-set`, a = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
816
- return Bn(e, a.localErrors, a.childErrors).forEach((s) => {
817
- e.store.apply(s, (o) => o.meta.source === r);
815
+ const l = `${e.name}-set`, r = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
816
+ return Bn(e, r.localErrors, r.childErrors).forEach((s) => {
817
+ e.store.apply(s, (o) => o.meta.source === l);
818
818
  }), e;
819
819
  }
820
820
  function Ei(e, i, t = !0, n) {
821
- return en(e, i, []), t && (n = n || `${e.name}-set`, e.walk((r) => {
822
- r.store.filter((a) => !(a.type === "error" && a.meta && a.meta.source === n));
821
+ return en(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
822
+ l.store.filter((r) => !(r.type === "error" && r.meta && r.meta.source === n));
823
823
  })), e;
824
824
  }
825
825
  function Mi(e) {
826
- return E(e.props, "id") || (e.props.id = `input_${li++}`), e;
826
+ return E(e.props, "id") || (e.props.id = `input_${ai++}`), e;
827
827
  }
828
828
  function Ri(e) {
829
829
  const i = {
830
- initial: typeof e == "object" ? oe(e) : e
830
+ initial: typeof e == "object" ? ue(e) : e
831
831
  };
832
832
  let t, n = !0;
833
833
  return new Proxy(i, {
834
- get(...r) {
835
- const [a, s] = r;
834
+ get(...l) {
835
+ const [r, s] = l;
836
836
  if (E(i, s))
837
- return Reflect.get(...r);
837
+ return Reflect.get(...l);
838
838
  if (t && typeof s == "string" && t.config[s] !== void 0)
839
839
  return t.config[s];
840
840
  },
841
- set(r, a, s, o) {
842
- if (a === "_n")
841
+ set(l, r, s, o) {
842
+ if (r === "_n")
843
843
  return t = s, !0;
844
- if (a === "_emit")
844
+ if (r === "_emit")
845
845
  return n = s, !0;
846
- const { prop: c, value: y } = t.hook.prop.dispatch({
847
- prop: a,
846
+ const { prop: u, value: b } = t.hook.prop.dispatch({
847
+ prop: r,
848
848
  value: s
849
849
  });
850
- if (!Ve(i[c], y, !1) || typeof y == "object") {
851
- const w = Reflect.set(r, c, y, o);
852
- return n && (t.emit("prop", { prop: c, value: y }), typeof c == "string" && t.emit(`prop:${c}`, y)), w;
850
+ if (!Le(i[u], b, !1) || typeof b == "object") {
851
+ const h = Reflect.set(l, u, b, o);
852
+ return n && (t.emit("prop", { prop: u, value: b }), typeof u == "string" && t.emit(`prop:${u}`, b)), h;
853
853
  }
854
854
  return !0;
855
855
  }
@@ -878,7 +878,7 @@ function Ti(e) {
878
878
  isCreated: !1,
879
879
  isSettled: !0,
880
880
  ledger: Un(),
881
- name: ai(e),
881
+ name: ri(e),
882
882
  parent: e.parent || null,
883
883
  plugins: /* @__PURE__ */ new Set(),
884
884
  props: Ri(i),
@@ -896,32 +896,32 @@ function Fi(e, i) {
896
896
  ...e.parent ? e.parent.plugins : []
897
897
  ])), i.plugins)
898
898
  for (const n of i.plugins)
899
- ht(e, e._c, n, !0, !1);
900
- return Mi(e), e.each((n) => e.add(n)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && q(100, e), Qt(e, e._c, e._value, !1), e.store.release(), !((t = i.props) === null || t === void 0) && t.id && Hn(e), e.emit("created", e), e.isCreated = !0, e;
899
+ vt(e, e._c, n, !0, !1);
900
+ return Mi(e), e.each((n) => e.add(n)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && N(100, e), Qt(e, e._c, e._value, !1), e.store.release(), !((t = i.props) === null || t === void 0) && t.id && Hn(e), e.emit("created", e), e.isCreated = !0, e;
901
901
  }
902
902
  function Di(e) {
903
903
  const i = e || {}, t = Ti(i), n = new Proxy(t, {
904
- get(...r) {
905
- const [, a] = r;
906
- if (a === "__FKNode__")
904
+ get(...l) {
905
+ const [, r] = l;
906
+ if (r === "__FKNode__")
907
907
  return !0;
908
- const s = t.traps.get(a);
909
- return s && s.get ? s.get(n, t) : Reflect.get(...r);
908
+ const s = t.traps.get(r);
909
+ return s && s.get ? s.get(n, t) : Reflect.get(...l);
910
910
  },
911
- set(...r) {
912
- const [, a, s] = r, o = t.traps.get(a);
913
- return o && o.set ? o.set(n, t, a, s) : Reflect.set(...r);
911
+ set(...l) {
912
+ const [, r, s] = l, o = t.traps.get(r);
913
+ return o && o.set ? o.set(n, t, r, s) : Reflect.set(...l);
914
914
  }
915
915
  });
916
916
  return Fi(n, i);
917
917
  }
918
- function at(e) {
918
+ function st(e) {
919
919
  return typeof e != "string" && E(e, "$el");
920
920
  }
921
- function st(e) {
921
+ function ot(e) {
922
922
  return typeof e != "string" && E(e, "$cmp");
923
923
  }
924
- function ce(e) {
924
+ function pe(e) {
925
925
  return !e || typeof e == "string" ? !1 : E(e, "if") && E(e, "then");
926
926
  }
927
927
  function Bi(e) {
@@ -934,137 +934,137 @@ function zi(e) {
934
934
  children: e
935
935
  };
936
936
  if (Bi(e)) {
937
- const { $formkit: i, for: t, if: n, children: r, bind: a, ...s } = e;
937
+ const { $formkit: i, for: t, if: n, children: l, bind: r, ...s } = e;
938
938
  return Object.assign({
939
939
  $cmp: "FormKit",
940
940
  props: { ...s, type: i }
941
- }, n ? { if: n } : {}, t ? { for: t } : {}, r ? { children: r } : {}, a ? { bind: a } : {});
941
+ }, n ? { if: n } : {}, t ? { for: t } : {}, l ? { children: l } : {}, r ? { bind: r } : {});
942
942
  }
943
943
  return e;
944
944
  }
945
- function Z(e) {
945
+ function Y(e) {
946
946
  let i;
947
- const t = /* @__PURE__ */ new Set(), n = function(u, f) {
948
- return typeof u == "function" ? u(f) : u;
949
- }, r = [
947
+ const t = /* @__PURE__ */ new Set(), n = function(f, c) {
948
+ return typeof f == "function" ? f(c) : f;
949
+ }, l = [
950
950
  {
951
- "&&": (p, u, f) => n(p, f) && n(u, f),
952
- "||": (p, u, f) => n(p, f) || n(u, f)
951
+ "&&": (p, f, c) => n(p, c) && n(f, c),
952
+ "||": (p, f, c) => n(p, c) || n(f, c)
953
953
  },
954
954
  {
955
- "===": (p, u, f) => n(p, f) === n(u, f),
956
- "!==": (p, u, f) => n(p, f) !== n(u, f),
957
- "==": (p, u, f) => n(p, f) == n(u, f),
958
- "!=": (p, u, f) => n(p, f) != n(u, f),
959
- ">=": (p, u, f) => n(p, f) >= n(u, f),
960
- "<=": (p, u, f) => n(p, f) <= n(u, f),
961
- ">": (p, u, f) => n(p, f) > n(u, f),
962
- "<": (p, u, f) => n(p, f) < n(u, f)
955
+ "===": (p, f, c) => n(p, c) === n(f, c),
956
+ "!==": (p, f, c) => n(p, c) !== n(f, c),
957
+ "==": (p, f, c) => n(p, c) == n(f, c),
958
+ "!=": (p, f, c) => n(p, c) != n(f, c),
959
+ ">=": (p, f, c) => n(p, c) >= n(f, c),
960
+ "<=": (p, f, c) => n(p, c) <= n(f, c),
961
+ ">": (p, f, c) => n(p, c) > n(f, c),
962
+ "<": (p, f, c) => n(p, c) < n(f, c)
963
963
  },
964
964
  {
965
- "+": (p, u, f) => n(p, f) + n(u, f),
966
- "-": (p, u, f) => n(p, f) - n(u, f)
965
+ "+": (p, f, c) => n(p, c) + n(f, c),
966
+ "-": (p, f, c) => n(p, c) - n(f, c)
967
967
  },
968
968
  {
969
- "*": (p, u, f) => n(p, f) * n(u, f),
970
- "/": (p, u, f) => n(p, f) / n(u, f),
971
- "%": (p, u, f) => n(p, f) % n(u, f)
972
- }
973
- ], a = r.reduce((p, u) => p.concat(Object.keys(u)), []), s = new Set(a.map((p) => p.charAt(0)));
974
- function o(p, u, f, g) {
975
- const k = p.filter((m) => m.startsWith(u));
976
- return k.length ? k.find((m) => g.length >= f + m.length && g.substring(f, f + m.length) === m ? m : !1) : !1;
977
- }
978
- function c(p, u, f = 1) {
979
- let g = f ? u.substring(p + 1).trim() : u.substring(0, p).trim();
980
- if (!g.length)
969
+ "*": (p, f, c) => n(p, c) * n(f, c),
970
+ "/": (p, f, c) => n(p, c) / n(f, c),
971
+ "%": (p, f, c) => n(p, c) % n(f, c)
972
+ }
973
+ ], r = l.reduce((p, f) => p.concat(Object.keys(f)), []), s = new Set(r.map((p) => p.charAt(0)));
974
+ function o(p, f, c, $) {
975
+ const C = p.filter((m) => m.startsWith(f));
976
+ return C.length ? C.find((m) => $.length >= c + m.length && $.substring(c, c + m.length) === m ? m : !1) : !1;
977
+ }
978
+ function u(p, f, c = 1) {
979
+ let $ = c ? f.substring(p + 1).trim() : f.substring(0, p).trim();
980
+ if (!$.length)
981
981
  return -1;
982
- if (!f) {
983
- const m = g.split("").reverse(), d = m.findIndex((b) => s.has(b));
984
- g = m.slice(d).join("");
982
+ if (!c) {
983
+ const m = $.split("").reverse(), d = m.findIndex((y) => s.has(y));
984
+ $ = m.slice(d).join("");
985
985
  }
986
- const k = g[0];
987
- return r.findIndex((m) => {
986
+ const C = $[0];
987
+ return l.findIndex((m) => {
988
988
  const d = Object.keys(m);
989
- return !!o(d, k, 0, g);
989
+ return !!o(d, C, 0, $);
990
990
  });
991
991
  }
992
- function y(p, u) {
993
- let f = "";
994
- const g = u.length;
995
- let k = 0;
996
- for (let m = p; m < g; m++) {
997
- const d = u.charAt(m);
992
+ function b(p, f) {
993
+ let c = "";
994
+ const $ = f.length;
995
+ let C = 0;
996
+ for (let m = p; m < $; m++) {
997
+ const d = f.charAt(m);
998
998
  if (d === "(")
999
- k++;
999
+ C++;
1000
1000
  else if (d === ")")
1001
- k--;
1002
- else if (k === 0 && d === " ")
1001
+ C--;
1002
+ else if (C === 0 && d === " ")
1003
1003
  continue;
1004
- if (k === 0 && o(a, d, m, u))
1005
- return [f, m - 1];
1006
- f += d;
1004
+ if (C === 0 && o(r, d, m, f))
1005
+ return [c, m - 1];
1006
+ c += d;
1007
1007
  }
1008
- return [f, u.length - 1];
1008
+ return [c, f.length - 1];
1009
1009
  }
1010
- function w(p, u = 0) {
1011
- const f = r[u], g = p.length, k = Object.keys(f);
1012
- let m = 0, d = !1, b = null, _ = "", C = null, L, M = "", I = "", T = "", B = "", H = 0;
1013
- const N = (R, K) => {
1014
- R ? T += K : _ += K;
1010
+ function h(p, f = 0) {
1011
+ const c = l[f], $ = p.length, C = Object.keys(c);
1012
+ let m = 0, d = !1, y = null, g = "", x = null, L, R = "", I = "", F = "", z = "", Z = 0;
1013
+ const K = (j, H) => {
1014
+ j ? F += H : g += H;
1015
1015
  };
1016
- for (let R = 0; R < g; R++)
1017
- if (M = I, I = p.charAt(R), (I === "'" || I === '"') && M !== "\\" && (m === 0 && !d || m && !B)) {
1018
- m ? B = I : d = I, N(m, I);
1016
+ for (let j = 0; j < $; j++)
1017
+ if (R = I, I = p.charAt(j), (I === "'" || I === '"') && R !== "\\" && (m === 0 && !d || m && !z)) {
1018
+ m ? z = I : d = I, K(m, I);
1019
1019
  continue;
1020
- } else if (d && (I !== d || M === "\\") || B && (I !== B || M === "\\")) {
1021
- N(m, I);
1020
+ } else if (d && (I !== d || R === "\\") || z && (I !== z || R === "\\")) {
1021
+ K(m, I);
1022
1022
  continue;
1023
1023
  } else if (d === I) {
1024
- d = !1, N(m, I);
1024
+ d = !1, K(m, I);
1025
1025
  continue;
1026
- } else if (B === I) {
1027
- B = !1, N(m, I);
1026
+ } else if (z === I) {
1027
+ z = !1, K(m, I);
1028
1028
  continue;
1029
1029
  } else {
1030
1030
  if (I === " ")
1031
1031
  continue;
1032
1032
  if (I === "(")
1033
- m === 0 ? H = R : T += I, m++;
1033
+ m === 0 ? Z = j : F += I, m++;
1034
1034
  else if (I === ")")
1035
1035
  if (m--, m === 0) {
1036
- const K = typeof _ == "string" && _.startsWith("$") ? _ : void 0, xt = K && p.charAt(R + 1) === ".";
1037
- let _e = "";
1038
- xt && ([_e, R] = y(R + 2, p));
1039
- const Ae = b ? u : c(H, p, 0), ge = c(R, p);
1040
- Ae === -1 && ge === -1 ? _ = v(T, -1, K, _e) : b && (Ae >= ge || ge === -1) && u === Ae ? (C = b.bind(null, v(T, -1, K, _e)), b = null, _ = "") : ge > Ae && u === ge ? _ = v(T, -1, K, _e) : _ += `(${T})${xt ? `.${_e}` : ""}`, T = "";
1036
+ const H = typeof g == "string" && g.startsWith("$") ? g : void 0, wt = H && p.charAt(j + 1) === ".";
1037
+ let ge = "";
1038
+ wt && ([ge, j] = b(j + 2, p));
1039
+ const Pe = y ? f : u(Z, p, 0), $e = u(j, p);
1040
+ Pe === -1 && $e === -1 ? g = _(F, -1, H, ge) : y && (Pe >= $e || $e === -1) && f === Pe ? (x = y.bind(null, _(F, -1, H, ge)), y = null, g = "") : $e > Pe && f === $e ? g = _(F, -1, H, ge) : g += `(${F})${wt ? `.${ge}` : ""}`, F = "";
1041
1041
  } else
1042
- T += I;
1043
- else if (m === 0 && (L = o(k, I, R, p))) {
1044
- R === 0 && q(103, [L, p]), R += L.length - 1, R === p.length - 1 && q(104, [L, p]), b ? _ && (C = b.bind(null, v(_, u)), b = f[L].bind(null, C), _ = "") : C ? (b = f[L].bind(null, v(C, u)), C = null) : (b = f[L].bind(null, v(_, u)), _ = "");
1042
+ F += I;
1043
+ else if (m === 0 && (L = o(C, I, j, p))) {
1044
+ j === 0 && N(103, [L, p]), j += L.length - 1, j === p.length - 1 && N(104, [L, p]), y ? g && (x = y.bind(null, _(g, f)), y = c[L].bind(null, x), g = "") : x ? (y = c[L].bind(null, _(x, f)), x = null) : (y = c[L].bind(null, _(g, f)), g = "");
1045
1045
  continue;
1046
1046
  } else
1047
- N(m, I);
1047
+ K(m, I);
1048
1048
  }
1049
- return _ && b && (b = b.bind(null, v(_, u))), b = !b && C ? C : b, !b && _ && (b = (R, K) => typeof R == "function" ? R(K) : R, b = b.bind(null, v(_, u))), !b && !_ && q(105, p), b;
1050
- }
1051
- function v(p, u, f, g) {
1052
- if (f) {
1053
- const k = v(f, r.length);
1054
- let m, d = g ? Z(`$${g}`) : !1;
1055
- if (typeof k == "function") {
1056
- const b = Vn(String(p)).map((_) => v(_, -1));
1057
- return (_) => {
1058
- const C = k(_);
1059
- return typeof C != "function" ? (Le(150, f), C) : (m = C(...b.map((L) => typeof L == "function" ? L(_) : L)), d && (d = d.provide((L) => {
1060
- const M = i(L);
1061
- return L.reduce((T, B) => {
1062
- if (B === g || (g == null ? void 0 : g.startsWith(`${B}(`))) {
1063
- const N = Ln(m, B);
1064
- T[B] = () => N;
1049
+ return g && y && (y = y.bind(null, _(g, f))), y = !y && x ? x : y, !y && g && (y = (j, H) => typeof j == "function" ? j(H) : j, y = y.bind(null, _(g, f))), !y && !g && N(105, p), y;
1050
+ }
1051
+ function _(p, f, c, $) {
1052
+ if (c) {
1053
+ const C = _(c, l.length);
1054
+ let m, d = $ ? Y(`$${$}`) : !1;
1055
+ if (typeof C == "function") {
1056
+ const y = Vn(String(p)).map((g) => _(g, -1));
1057
+ return (g) => {
1058
+ const x = C(g);
1059
+ return typeof x != "function" ? (Oe(150, c), x) : (m = x(...y.map((L) => typeof L == "function" ? L(g) : L)), d && (d = d.provide((L) => {
1060
+ const R = i(L);
1061
+ return L.reduce((F, z) => {
1062
+ if (z === $ || ($ == null ? void 0 : $.startsWith(`${z}(`))) {
1063
+ const K = Ln(m, z);
1064
+ F[z] = () => K;
1065
1065
  } else
1066
- T[B] = M[B];
1067
- return T;
1066
+ F[z] = R[z];
1067
+ return F;
1068
1068
  }, {});
1069
1069
  })), d ? d() : m);
1070
1070
  };
@@ -1076,33 +1076,33 @@ function Z(e) {
1076
1076
  return !1;
1077
1077
  if (p === "undefined")
1078
1078
  return;
1079
- if (Cn(p))
1079
+ if (xn(p))
1080
1080
  return In(p.substring(1, p.length - 1));
1081
1081
  if (!isNaN(+p))
1082
1082
  return Number(p);
1083
- if (u < r.length - 1)
1084
- return w(p, u + 1);
1083
+ if (f < l.length - 1)
1084
+ return h(p, f + 1);
1085
1085
  if (p.startsWith("$")) {
1086
- const k = p.substring(1);
1087
- return t.add(k), function(d) {
1088
- return k in d ? d[k]() : void 0;
1086
+ const C = p.substring(1);
1087
+ return t.add(C), function(d) {
1088
+ return C in d ? d[C]() : void 0;
1089
1089
  };
1090
1090
  }
1091
1091
  return p;
1092
1092
  }
1093
1093
  return p;
1094
1094
  }
1095
- const h = w(e.startsWith("$:") ? e.substring(2) : e), $ = Array.from(t);
1095
+ const v = h(e.startsWith("$:") ? e.substring(2) : e), w = Array.from(t);
1096
1096
  function S(p) {
1097
- return i = p, Object.assign(h.bind(null, p($)), {
1097
+ return i = p, Object.assign(v.bind(null, p(w)), {
1098
1098
  provide: S
1099
1099
  });
1100
1100
  }
1101
- return Object.assign(h, {
1101
+ return Object.assign(v, {
1102
1102
  provide: S
1103
1103
  });
1104
1104
  }
1105
- const Ot = "1.0.0-beta.15";
1105
+ const Ot = "0.16.4";
1106
1106
  function Wi(e) {
1107
1107
  let i = 1;
1108
1108
  return Array.isArray(e) ? e.map((t) => typeof t == "string" || typeof t == "number" ? {
@@ -1116,7 +1116,7 @@ function Wi(e) {
1116
1116
  value: t
1117
1117
  }));
1118
1118
  }
1119
- function ye(e, i) {
1119
+ function ve(e, i) {
1120
1120
  if (Array.isArray(e)) {
1121
1121
  for (const t of e)
1122
1122
  if (i == t.value)
@@ -1125,12 +1125,12 @@ function ye(e, i) {
1125
1125
  return i;
1126
1126
  }
1127
1127
  function he(e, i) {
1128
- return e == i ? !0 : be(e) && be(i) ? Ve(e, i) : !1;
1128
+ return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : ye(e) && ye(i) ? Le(e, i) : !1;
1129
1129
  }
1130
- function vt(e) {
1130
+ function ht(e) {
1131
1131
  e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value = Wi(i.value)), t(i)));
1132
1132
  }
1133
- const ae = x("outer", () => ({
1133
+ const se = k("outer", () => ({
1134
1134
  $el: "div",
1135
1135
  attrs: {
1136
1136
  key: "$id",
@@ -1147,16 +1147,16 @@ const ae = x("outer", () => ({
1147
1147
  "data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
1148
1148
  "data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
1149
1149
  }
1150
- }), !0), ee = x("inner", "div"), ve = x("wrapper", "div"), Oe = x("label", () => ({
1150
+ }), !0), te = k("inner", "div"), _e = k("wrapper", "div"), Ae = k("label", () => ({
1151
1151
  $el: "label",
1152
1152
  if: "$label",
1153
1153
  attrs: {
1154
1154
  for: "$id"
1155
1155
  }
1156
- })), te = x("messages", () => ({
1156
+ })), ne = k("messages", () => ({
1157
1157
  $el: "ul",
1158
1158
  if: "$defaultMessagePlacement && $fns.length($messages)"
1159
- })), ne = x("message", () => ({
1159
+ })), ie = k("message", () => ({
1160
1160
  $el: "li",
1161
1161
  for: ["message", "$messages"],
1162
1162
  attrs: {
@@ -1164,13 +1164,13 @@ const ae = x("outer", () => ({
1164
1164
  id: "$id + '-' + $message.key",
1165
1165
  "data-message-type": "$message.type"
1166
1166
  }
1167
- })), Q = x("prefix", null), G = x("suffix", null), X = x("help", () => ({
1167
+ })), G = k("prefix", null), X = k("suffix", null), ee = k("help", () => ({
1168
1168
  $el: "div",
1169
1169
  if: "$help",
1170
1170
  attrs: {
1171
1171
  id: '$: "help-" + $id'
1172
1172
  }
1173
- })), tn = x("fieldset", () => ({
1173
+ })), tn = k("fieldset", () => ({
1174
1174
  $el: "fieldset",
1175
1175
  attrs: {
1176
1176
  id: "$id",
@@ -1180,12 +1180,12 @@ const ae = x("outer", () => ({
1180
1180
  else: void 0
1181
1181
  }
1182
1182
  }
1183
- })), Be = x("decorator", () => ({
1183
+ })), ze = k("decorator", () => ({
1184
1184
  $el: "span",
1185
1185
  attrs: {
1186
1186
  "aria-hidden": "true"
1187
1187
  }
1188
- })), ze = x("input", () => ({
1188
+ })), We = k("input", () => ({
1189
1189
  $el: "input",
1190
1190
  bind: "$attrs",
1191
1191
  attrs: {
@@ -1211,16 +1211,16 @@ const ae = x("outer", () => ({
1211
1211
  }
1212
1212
  }
1213
1213
  }
1214
- })), nn = x("legend", () => ({
1214
+ })), nn = k("legend", () => ({
1215
1215
  $el: "legend",
1216
1216
  if: "$label"
1217
- })), rn = x("option", () => ({
1217
+ })), ln = k("option", () => ({
1218
1218
  $el: "li",
1219
1219
  for: ["option", "$options"],
1220
1220
  attrs: {
1221
1221
  "data-disabled": "$option.attrs.disabled || $disabled"
1222
1222
  }
1223
- })), ln = x("options", "ul"), We = x("wrapper", () => ({
1223
+ })), an = k("options", "ul"), Ue = k("wrapper", () => ({
1224
1224
  $el: "label",
1225
1225
  attrs: {
1226
1226
  "data-disabled": {
@@ -1234,13 +1234,13 @@ const ae = x("outer", () => ({
1234
1234
  else: "$fns.isChecked($option.value) || undefined"
1235
1235
  }
1236
1236
  }
1237
- })), an = x("optionHelp", () => ({
1237
+ })), rn = k("optionHelp", () => ({
1238
1238
  $el: "div",
1239
1239
  if: "$option.help",
1240
1240
  attrs: {
1241
1241
  id: '$: "help-" + $option.attrs.id'
1242
1242
  }
1243
- })), Ue = x("label", "span"), Ui = x("input", () => ({
1243
+ })), qe = k("label", "span"), Ui = k("input", () => ({
1244
1244
  $el: "button",
1245
1245
  bind: "$attrs",
1246
1246
  attrs: {
@@ -1249,7 +1249,7 @@ const ae = x("outer", () => ({
1249
1249
  name: "$node.name",
1250
1250
  id: "$id"
1251
1251
  }
1252
- })), qi = x("default", null), Ni = x("input", () => ({
1252
+ })), qi = k("default", null), Ni = k("input", () => ({
1253
1253
  $el: "input",
1254
1254
  bind: "$attrs",
1255
1255
  attrs: {
@@ -1261,10 +1261,10 @@ const ae = x("outer", () => ({
1261
1261
  id: "$id",
1262
1262
  "aria-describedby": "$describedBy"
1263
1263
  }
1264
- })), Ki = x("fileItem", () => ({
1264
+ })), Ki = k("fileItem", () => ({
1265
1265
  $el: "li",
1266
1266
  for: ["file", "$value"]
1267
- })), Hi = x("fileList", () => ({
1267
+ })), Hi = k("fileList", () => ({
1268
1268
  $el: "ul",
1269
1269
  if: "$value.length",
1270
1270
  attrs: {
@@ -1273,20 +1273,20 @@ const ae = x("outer", () => ({
1273
1273
  then: "true"
1274
1274
  }
1275
1275
  }
1276
- })), Zi = x("fileName", () => ({
1276
+ })), Zi = k("fileName", () => ({
1277
1277
  $el: "span",
1278
1278
  attrs: {
1279
1279
  class: "$classes.fileName"
1280
1280
  }
1281
- })), At = x("fileRemove", () => ({
1281
+ })), At = k("fileRemove", () => ({
1282
1282
  $el: "button",
1283
1283
  attrs: {
1284
1284
  onClick: "$handlers.resetFiles"
1285
1285
  }
1286
- })), Yi = x("noFiles", () => ({
1286
+ })), Yi = k("noFiles", () => ({
1287
1287
  $el: "span",
1288
1288
  if: "$value.length == 0"
1289
- })), Ji = x("form", () => ({
1289
+ })), Ji = k("form", () => ({
1290
1290
  $el: "form",
1291
1291
  bind: "$attrs",
1292
1292
  attrs: {
@@ -1295,10 +1295,10 @@ const ae = x("outer", () => ({
1295
1295
  onSubmit: "$handlers.submit",
1296
1296
  "data-loading": "$state.loading || undefined"
1297
1297
  }
1298
- }), !0), Qi = x("actions", () => ({
1298
+ }), !0), Qi = k("actions", () => ({
1299
1299
  $el: "div",
1300
1300
  if: "$actions"
1301
- })), Gi = x("submit", () => ({
1301
+ })), Gi = k("submit", () => ({
1302
1302
  $cmp: "FormKit",
1303
1303
  bind: "$submitAttrs",
1304
1304
  props: {
@@ -1306,7 +1306,7 @@ const ae = x("outer", () => ({
1306
1306
  disabled: "$disabled",
1307
1307
  label: "$submitLabel"
1308
1308
  }
1309
- })), sn = x("input", () => ({
1309
+ })), sn = k("input", () => ({
1310
1310
  $el: "input",
1311
1311
  bind: "$attrs",
1312
1312
  attrs: {
@@ -1319,7 +1319,7 @@ const ae = x("outer", () => ({
1319
1319
  id: "$id",
1320
1320
  "aria-describedby": "$describedBy"
1321
1321
  }
1322
- })), on = x("wrapper", null, !0), Xi = x("input", () => ({
1322
+ })), on = k("wrapper", null, !0), Xi = k("input", () => ({
1323
1323
  $el: "select",
1324
1324
  bind: "$attrs",
1325
1325
  attrs: {
@@ -1333,7 +1333,7 @@ const ae = x("outer", () => ({
1333
1333
  onBlur: "$handlers.blur",
1334
1334
  "aria-describedby": "$describedBy"
1335
1335
  }
1336
- })), er = x("option", () => ({
1336
+ })), el = k("option", () => ({
1337
1337
  $el: "option",
1338
1338
  for: ["option", "$options"],
1339
1339
  bind: "$option.attrs",
@@ -1342,12 +1342,12 @@ const ae = x("outer", () => ({
1342
1342
  value: "$option.value",
1343
1343
  selected: "$fns.isSelected($option)"
1344
1344
  }
1345
- })), tr = () => ({
1345
+ })), tl = () => ({
1346
1346
  $el: null,
1347
1347
  if: "$options.length",
1348
1348
  for: ["option", "$options"],
1349
1349
  children: "$slots.option"
1350
- }), nr = x("input", () => ({
1350
+ }), nl = k("input", () => ({
1351
1351
  $el: "textarea",
1352
1352
  bind: "$attrs",
1353
1353
  attrs: {
@@ -1360,7 +1360,7 @@ const ae = x("outer", () => ({
1360
1360
  "aria-describedby": "$describedBy"
1361
1361
  },
1362
1362
  children: "$initialValue"
1363
- })), z = (e, i) => x(`${e}Icon`, () => {
1363
+ })), W = (e, i) => k(`${e}Icon`, () => {
1364
1364
  const t = `_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;
1365
1365
  return {
1366
1366
  if: `$${e}Icon && $${t}`,
@@ -1379,44 +1379,46 @@ const ae = x("outer", () => ({
1379
1379
  function un(e) {
1380
1380
  return function(i, t) {
1381
1381
  return i.prop === "options" && Array.isArray(i.value) && (i.value = i.value.map((n) => {
1382
- var r;
1383
- return !((r = n.attrs) === null || r === void 0) && r.id ? n : He(n, {
1384
- attrs: { id: `${e.name}-option-${ct(String(n.value))}` }
1382
+ var l;
1383
+ return !((l = n.attrs) === null || l === void 0) && l.id ? n : Ye(n, {
1384
+ attrs: {
1385
+ id: `${e.name}-option-${ct(String(n.value))}`
1386
+ }
1385
1387
  });
1386
1388
  }), e.props.type === "checkbox" && !Array.isArray(e.value) && (e.isCreated ? e.input([], !1) : e.on("created", () => {
1387
1389
  Array.isArray(e.value) || e.input([], !1);
1388
1390
  }))), t(i);
1389
1391
  };
1390
1392
  }
1391
- function ir(e, i) {
1393
+ function il(e, i) {
1392
1394
  const t = i.target;
1393
1395
  if (t instanceof HTMLInputElement) {
1394
- const n = Array.isArray(e.props.options) ? ye(e.props.options, t.value) : t.value;
1395
- Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((r) => he(n, r)) ? e.input(e._value.filter((r) => !he(n, r))) : e.input([...e._value, n]) : e.input([n]) : t.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
1396
+ const n = Array.isArray(e.props.options) ? ve(e.props.options, t.value) : t.value;
1397
+ Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((l) => he(n, l)) ? e.input(e._value.filter((l) => !he(n, l))) : e.input([...e._value, n]) : e.input([n]) : t.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
1396
1398
  }
1397
1399
  }
1398
- function rr(e, i) {
1400
+ function ll(e, i) {
1399
1401
  var t, n;
1400
- return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Array.isArray(e._value) ? e._value.some((r) => he(ye(e.props.options, i), r)) : !1;
1402
+ return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Array.isArray(e._value) ? e._value.some((l) => he(ve(e.props.options, i), l)) : !1;
1401
1403
  }
1402
- function lr(e) {
1404
+ function al(e) {
1403
1405
  e.on("created", () => {
1404
1406
  var i, t;
1405
- !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = ir.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = rr.bind(null, e)), E(e.props, "onValue") || (e.props.onValue = !0), E(e.props, "offValue") || (e.props.offValue = !1);
1407
+ !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = il.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = ll.bind(null, e)), E(e.props, "onValue") || (e.props.onValue = !0), E(e.props, "offValue") || (e.props.offValue = !1);
1406
1408
  }), e.hook.prop(un(e));
1407
1409
  }
1408
- function Ye(e) {
1410
+ function Qe(e) {
1409
1411
  e.on("created", () => {
1410
- e.props.disabled = J(e.props.disabled);
1411
- }), e.hook.prop(({ prop: i, value: t }, n) => (t = i === "disabled" ? J(t) : t, n({ prop: i, value: t }))), e.on("prop:disabled", ({ payload: i }) => {
1412
- e.config.disabled = J(i);
1412
+ e.props.disabled = Q(e.props.disabled);
1413
+ }), e.hook.prop(({ prop: i, value: t }, n) => (t = i === "disabled" ? Q(t) : t, n({ prop: i, value: t }))), e.on("prop:disabled", ({ payload: i }) => {
1414
+ e.config.disabled = Q(i);
1413
1415
  }), e.on("created", () => {
1414
- e.config.disabled = J(e.props.disabled);
1416
+ e.config.disabled = Q(e.props.disabled);
1415
1417
  });
1416
1418
  }
1417
- function Re(e, i) {
1419
+ function je(e, i) {
1418
1420
  return (t) => {
1419
- t.store.set(re({
1421
+ t.store.set(ae({
1420
1422
  key: e,
1421
1423
  type: "ui",
1422
1424
  value: i || e,
@@ -1434,8 +1436,8 @@ function fn(e) {
1434
1436
  function Et(e, i) {
1435
1437
  i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && fn(i);
1436
1438
  }
1437
- function ar(e) {
1438
- Re("noFiles", "Select file")(e), Re("removeAll", "Remove all")(e), Re("remove")(e), Pt && (window._FormKit_File_Drop || (window.addEventListener("dragover", Et.bind(null, "dragover")), window.addEventListener("drop", Et.bind(null, "drop")), window.addEventListener("dragleave", fn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("created", () => {
1439
+ function rl(e) {
1440
+ je("noFiles", "Select file")(e), je("removeAll", "Remove all")(e), je("remove")(e), Pt && (window._FormKit_File_Drop || (window.addEventListener("dragover", Et.bind(null, "dragover")), window.addEventListener("drop", Et.bind(null, "drop")), window.addEventListener("dragleave", fn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("created", () => {
1439
1441
  Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (i) => {
1440
1442
  if (i.preventDefault(), e.input([]), e.props.id && Pt) {
1441
1443
  const t = document.getElementById(e.props.id);
@@ -1443,27 +1445,27 @@ function ar(e) {
1443
1445
  }
1444
1446
  }, e.context.handlers.files = (i) => {
1445
1447
  var t, n;
1446
- const r = [];
1448
+ const l = [];
1447
1449
  if (i.target instanceof HTMLInputElement && i.target.files) {
1448
- for (let a = 0; a < i.target.files.length; a++) {
1450
+ for (let r = 0; r < i.target.files.length; r++) {
1449
1451
  let s;
1450
- (s = i.target.files.item(a)) && r.push({ name: s.name, file: s });
1452
+ (s = i.target.files.item(r)) && l.push({ name: s.name, file: s });
1451
1453
  }
1452
- e.input(r);
1454
+ e.input(l);
1453
1455
  }
1454
- e.context && (e.context.files = r), typeof ((t = e.props.attrs) === null || t === void 0 ? void 0 : t.onChange) == "function" && ((n = e.props.attrs) === null || n === void 0 || n.onChange(i));
1456
+ e.context && (e.context.files = l), typeof ((t = e.props.attrs) === null || t === void 0 ? void 0 : t.onChange) == "function" && ((n = e.props.attrs) === null || n === void 0 || n.onChange(i));
1455
1457
  });
1456
1458
  });
1457
1459
  }
1458
- async function sr(e, i) {
1459
- if (i.preventDefault(), await e.settled, e.walk((t) => {
1460
- t.store.set(re({
1461
- key: "submitted",
1462
- value: !0,
1463
- visible: !1
1464
- }));
1465
- }), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
1466
- typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(re({
1460
+ async function sl(e, i) {
1461
+ i.preventDefault(), await e.settled;
1462
+ const t = (n) => n.store.set(ae({
1463
+ key: "submitted",
1464
+ value: !0,
1465
+ visible: !1
1466
+ }));
1467
+ if (e.walk(t), t(e), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
1468
+ typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(ae({
1467
1469
  blocking: !1,
1468
1470
  key: "incomplete",
1469
1471
  meta: {
@@ -1475,59 +1477,59 @@ async function sr(e, i) {
1475
1477
  value: e.props.incompleteMessage || "Form incomplete."
1476
1478
  }));
1477
1479
  else if (typeof e.props.onSubmit == "function") {
1478
- const t = e.props.onSubmit(e.hook.submit.dispatch(Se(e.value)), e);
1479
- if (t instanceof Promise) {
1480
- const n = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
1481
- n && (e.props.disabled = !0), e.store.set(re({
1480
+ const n = e.props.onSubmit(e.hook.submit.dispatch(xe(e.value)), e);
1481
+ if (n instanceof Promise) {
1482
+ const l = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
1483
+ l && (e.props.disabled = !0), e.store.set(ae({
1482
1484
  key: "loading",
1483
1485
  value: !0,
1484
1486
  visible: !1
1485
- })), await t, n && (e.props.disabled = !1), e.store.remove("loading");
1487
+ })), await n, l && (e.props.disabled = !1), e.store.remove("loading");
1486
1488
  }
1487
1489
  } else
1488
1490
  i.target instanceof HTMLFormElement && i.target.submit();
1489
1491
  }
1490
- function or(e) {
1492
+ function ol(e) {
1491
1493
  e.props.isForm = !0, e.on("created", () => {
1492
1494
  var i;
1493
- !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = sr.bind(null, e)), E(e.props, "actions") || (e.props.actions = !0);
1495
+ !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = sl.bind(null, e)), E(e.props, "actions") || (e.props.actions = !0);
1494
1496
  }), e.on("settled:blocking", () => e.store.remove("incomplete"));
1495
1497
  }
1496
- function ur(e) {
1498
+ function ul(e) {
1497
1499
  e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
1498
1500
  }
1499
- function fr(e) {
1501
+ function fl(e) {
1500
1502
  e.on("created", () => {
1501
1503
  e.context && (e.context.initialValue = e.value || "");
1502
1504
  });
1503
1505
  }
1504
- function cr(e, i) {
1505
- i.target instanceof HTMLInputElement && e.input(ye(e.props.options, i.target.value));
1506
+ function cl(e, i) {
1507
+ i.target instanceof HTMLInputElement && e.input(ve(e.props.options, i.target.value));
1506
1508
  }
1507
- function pr(e, i) {
1509
+ function pl(e, i) {
1508
1510
  var t, n;
1509
- return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, he(ye(e.props.options, i), e._value);
1511
+ return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, he(ve(e.props.options, i), e._value);
1510
1512
  }
1511
- function dr(e) {
1513
+ function dl(e) {
1512
1514
  e.on("created", () => {
1513
1515
  var i, t;
1514
- Array.isArray(e.props.options) || Le(350, e), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = cr.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = pr.bind(null, e));
1516
+ Array.isArray(e.props.options) || Oe(350, e), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = cl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = pl.bind(null, e));
1515
1517
  }), e.hook.prop(un(e));
1516
1518
  }
1517
- function mr(e, i) {
1519
+ function ml(e, i) {
1518
1520
  e.context && e.context.value;
1519
1521
  const t = "__original" in i ? i.__original : i.value;
1520
1522
  function n() {
1521
- return !e.props.options.some((r) => ("__original" in r ? r.__original : r.value) === null);
1523
+ return !e.props.options.some((l) => ("__original" in l ? l.__original : l.value) === null);
1522
1524
  }
1523
- return Array.isArray(e._value) ? e._value.some((r) => he(r, t)) : (e._value === void 0 || e._value === null && n()) && i.attrs && i.attrs["data-is-placeholder"] ? !0 : he(t, e._value);
1525
+ return Array.isArray(e._value) ? e._value.some((l) => he(l, t)) : (e._value === void 0 || e._value === null && n()) && i.attrs && i.attrs["data-is-placeholder"] ? !0 : he(t, e._value);
1524
1526
  }
1525
- async function br(e, i) {
1527
+ async function bl(e, i) {
1526
1528
  var t;
1527
1529
  typeof ((t = e.props.attrs) === null || t === void 0 ? void 0 : t.onChange) == "function" && (await new Promise((n) => setTimeout(n, 0)), await e.settled, e.props.attrs.onChange(i));
1528
1530
  }
1529
- function yr(e, i) {
1530
- const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((r) => ye(e.props.options, r.value)) : ye(e.props.options, t.value);
1531
+ function yl(e, i) {
1532
+ const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((l) => ve(e.props.options, l.value)) : ve(e.props.options, t.value);
1531
1533
  e.input(n);
1532
1534
  }
1533
1535
  function Mt(e, i) {
@@ -1544,167 +1546,167 @@ function Mt(e, i) {
1544
1546
  ...e
1545
1547
  ];
1546
1548
  }
1547
- function hr(e) {
1549
+ function vl(e) {
1548
1550
  e.on("created", () => {
1549
1551
  var i, t, n;
1550
- const r = J((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
1551
- !r && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: a, value: s }, o) => (a === "options" && (s = Mt(s, e.props.placeholder)), o({ prop: a, value: s }))), e.props.options = Mt(e.props.options, e.props.placeholder)), r ? e.value === void 0 && e.input([], !1) : e.context && !e.context.options && (e.props.attrs = Object.assign({}, e.props.attrs, {
1552
+ const l = Q((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
1553
+ !l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: r, value: s }, o) => (r === "options" && (s = Mt(s, e.props.placeholder)), o({ prop: r, value: s }))), e.props.options = Mt(e.props.options, e.props.placeholder)), l ? e.value === void 0 && e.input([], !1) : e.context && !e.context.options && (e.props.attrs = Object.assign({}, e.props.attrs, {
1552
1554
  value: e._value
1553
- }), e.on("input", ({ payload: a }) => {
1555
+ }), e.on("input", ({ payload: r }) => {
1554
1556
  e.props.attrs = Object.assign({}, e.props.attrs, {
1555
- value: a
1557
+ value: r
1556
1558
  });
1557
- })), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = yr.bind(null, e), e.context.handlers.onChange = br.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = mr.bind(null, e), e.context.fns.showPlaceholder = (a, s) => {
1559
+ })), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = yl.bind(null, e), e.context.handlers.onChange = bl.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = ml.bind(null, e), e.context.fns.showPlaceholder = (r, s) => {
1558
1560
  if (!Array.isArray(e.props.options))
1559
1561
  return !1;
1560
- const o = e.props.options.some((c) => {
1561
- if (c.attrs && "data-is-placeholder" in c.attrs)
1562
+ const o = e.props.options.some((u) => {
1563
+ if (u.attrs && "data-is-placeholder" in u.attrs)
1562
1564
  return !1;
1563
- const y = "__original" in c ? c.__original : c.value;
1564
- return Ve(a, y);
1565
+ const b = "__original" in u ? u.__original : u.value;
1566
+ return Le(r, b);
1565
1567
  });
1566
1568
  return s && !o ? !0 : void 0;
1567
1569
  });
1568
1570
  }), e.hook.input((i, t) => {
1569
- var n, r, a;
1570
- return !e.props.placeholder && i === void 0 && Array.isArray((n = e.props) === null || n === void 0 ? void 0 : n.options) && e.props.options.length && !J((a = (r = e.props) === null || r === void 0 ? void 0 : r.attrs) === null || a === void 0 ? void 0 : a.multiple) && (i = "__original" in e.props.options[0] ? e.props.options[0].__original : e.props.options[0].value), t(i);
1571
+ var n, l, r;
1572
+ return !e.props.placeholder && i === void 0 && Array.isArray((n = e.props) === null || n === void 0 ? void 0 : n.options) && e.props.options.length && !Q((r = (l = e.props) === null || l === void 0 ? void 0 : l.attrs) === null || r === void 0 ? void 0 : r.multiple) && (i = "__original" in e.props.options[0] ? e.props.options[0].__original : e.props.options[0].value), t(i);
1571
1573
  });
1572
1574
  }
1573
- function pe(e, i) {
1575
+ function de(e, i) {
1574
1576
  return (t) => {
1575
1577
  t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = `default:${i}`);
1576
1578
  };
1577
1579
  }
1578
- function qe(e) {
1580
+ function Ne(e) {
1579
1581
  return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
1580
1582
  }
1581
- function ot(e) {
1582
- return !!(ce(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1583
+ function ut(e) {
1584
+ return !!(pe(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1583
1585
  }
1584
- function $e(e, i = {}) {
1585
- return typeof e == "string" ? qe(i) || typeof i == "string" ? i : e : Array.isArray(e) ? qe(i) ? i : e : He(e, i);
1586
+ function we(e, i = {}) {
1587
+ return typeof e == "string" ? Ne(i) || typeof i == "string" ? i : e : Array.isArray(e) ? Ne(i) ? i : e : Ye(e, i);
1586
1588
  }
1587
- function vr(e) {
1588
- return ae(ve(Oe("$label"), ee(Q(), e(), G())), X("$help"), te(ne("$message.value")));
1589
+ function hl(e) {
1590
+ return se(_e(Ae("$label"), te(G(), e(), X())), ee("$help"), ne(ie("$message.value")));
1589
1591
  }
1590
- function x(e, i, t = !1) {
1592
+ function k(e, i, t = !1) {
1591
1593
  return (...n) => {
1592
- const r = (a) => {
1594
+ const l = (r) => {
1593
1595
  const s = !i || typeof i == "string" ? { $el: i } : i();
1594
- return (at(s) || st(s)) && (s.meta || (s.meta = { section: e }), n.length && !s.children && (s.children = [
1595
- ...n.map((o) => typeof o == "string" ? o : o(a))
1596
- ]), at(s) && (s.attrs = {
1596
+ return (st(s) || ot(s)) && (s.meta || (s.meta = { section: e }), n.length && !s.children && (s.children = [
1597
+ ...n.map((o) => typeof o == "string" ? o : o(r))
1598
+ ]), st(s) && (s.attrs = {
1597
1599
  class: `$classes.${e}`,
1598
1600
  ...s.attrs || {}
1599
1601
  })), {
1600
1602
  if: `$slots.${e}`,
1601
1603
  then: `$slots.${e}`,
1602
- else: e in a ? $e(s, a[e]) : s
1604
+ else: e in r ? we(s, r[e]) : s
1603
1605
  };
1604
1606
  };
1605
- return r._s = e, t ? cn(r) : r;
1607
+ return l._s = e, t ? cn(l) : l;
1606
1608
  };
1607
1609
  }
1608
1610
  function cn(e) {
1609
1611
  return (i) => [e(i)];
1610
1612
  }
1611
- function Y(e, i, t) {
1612
- const n = (r) => {
1613
- const a = i(r);
1614
- if (t || qe(a) && "if" in a || ot(a)) {
1613
+ function J(e, i, t) {
1614
+ const n = (l) => {
1615
+ const r = i(l);
1616
+ if (t || Ne(r) && "if" in r || ut(r)) {
1615
1617
  const s = {
1616
1618
  if: e,
1617
- then: a
1619
+ then: r
1618
1620
  };
1619
- return t && (s.else = t(r)), s;
1621
+ return t && (s.else = t(l)), s;
1620
1622
  } else
1621
- ot(a) ? Object.assign(a.else, { if: e }) : qe(a) && Object.assign(a, { if: e });
1622
- return a;
1623
+ ut(r) ? Object.assign(r.else, { if: e }) : Ne(r) && Object.assign(r, { if: e });
1624
+ return r;
1623
1625
  };
1624
- return n._s = Ke(), n;
1626
+ return n._s = Ze(), n;
1625
1627
  }
1626
- function je(e, i) {
1628
+ function Te(e, i) {
1627
1629
  const t = (n) => {
1628
- const r = e({});
1629
- return ot(r) ? (Array.isArray(r.else) || (r.else = $e($e(r.else, i), e._s ? n[e._s] : {})), r) : $e($e(r, i), e._s ? n[e._s] : {});
1630
+ const l = e({});
1631
+ return ut(l) ? (Array.isArray(l.else) || (l.else = we(we(l.else, i), e._s ? n[e._s] : {})), l) : we(we(l, i), e._s ? n[e._s] : {});
1630
1632
  };
1631
1633
  return t._s = e._s, t;
1632
1634
  }
1633
- function _r(e) {
1635
+ function _l(e) {
1634
1636
  return cn(e);
1635
1637
  }
1636
- ae(te(ne("$message.value")), ve(Ui(z("prefix"), Q(), qi("$label || $ui.submit.value"), G(), z("suffix"))), X("$help")), Re("submit");
1637
- ae(
1638
- Y(
1638
+ se(ne(ie("$message.value")), _e(Ui(W("prefix"), G(), qi("$label || $ui.submit.value"), X(), W("suffix"))), ee("$help")), je("submit");
1639
+ se(
1640
+ J(
1639
1641
  "$options == undefined",
1640
1642
  /**
1641
1643
  * Single checkbox structure.
1642
1644
  */
1643
- We(ee(Q(), ze(), Be(z("decorator")), G()), je(Ue("$label"), {
1645
+ Ue(te(G(), We(), ze(W("decorator")), X()), Te(qe("$label"), {
1644
1646
  if: "$label"
1645
1647
  })),
1646
1648
  /**
1647
1649
  * Multi checkbox structure.
1648
1650
  */
1649
- tn(nn("$label"), X("$help"), ln(rn(We(ee(Q(), je(ze(), {
1651
+ tn(nn("$label"), ee("$help"), an(ln(Ue(te(G(), Te(We(), {
1650
1652
  bind: "$option.attrs",
1651
1653
  attrs: {
1652
1654
  id: "$option.attrs.id",
1653
1655
  value: "$option.value",
1654
1656
  checked: "$fns.isChecked($option.value)"
1655
1657
  }
1656
- }), Be(z("decorator")), G()), je(Ue("$option.label"), {
1658
+ }), ze(W("decorator")), X()), Te(qe("$option.label"), {
1657
1659
  if: "$option.label"
1658
- })), an("$option.help"))))
1660
+ })), rn("$option.help"))))
1659
1661
  ),
1660
1662
  // Help text only goes under the input when it is a single.
1661
- Y("$options == undefined && $help", X("$help")),
1662
- te(ne("$message.value"))
1663
- ), pe("decorator", "checkboxDecorator");
1664
- ae(ve(Oe("$label"), ee(z("prefix", "label"), Q(), Ni(), Hi(Ki(z("fileItem"), Zi("$file.name"), Y("$value.length === 1", At(z("fileRemove"), "$ui.remove.value")))), Y("$value.length > 1", At("$ui.removeAll.value")), Yi(z("noFiles"), "$ui.noFiles.value"), G(), z("suffix"))), X("$help"), te(ne("$message.value"))), pe("fileItem", "fileItem"), pe("fileRemove", "fileRemove"), pe("noFiles", "noFiles");
1665
- Ji("$slots.default", te(ne("$message.value")), Qi(Gi()));
1663
+ J("$options == undefined && $help", ee("$help")),
1664
+ ne(ie("$message.value"))
1665
+ ), de("decorator", "checkboxDecorator");
1666
+ se(_e(Ae("$label"), te(W("prefix", "label"), G(), Ni(), Hi(Ki(W("fileItem"), Zi("$file.name"), J("$value.length === 1", At(W("fileRemove"), "$ui.remove.value")))), J("$value.length > 1", At("$ui.removeAll.value")), Yi(W("noFiles"), "$ui.noFiles.value"), X(), W("suffix"))), ee("$help"), ne(ie("$message.value"))), de("fileItem", "fileItem"), de("fileRemove", "fileRemove"), de("noFiles", "noFiles");
1667
+ Ji("$slots.default", ne(ie("$message.value")), Qi(Gi()));
1666
1668
  on("$slots.default");
1667
- _r(sn());
1669
+ _l(sn());
1668
1670
  on("$slots.default");
1669
- ae(
1670
- Y(
1671
+ se(
1672
+ J(
1671
1673
  "$options == undefined",
1672
1674
  /**
1673
1675
  * Single radio structure.
1674
1676
  */
1675
- We(ee(Q(), ze(), Be(z("decorator")), G()), Y("$label", Ue("$label"))),
1677
+ Ue(te(G(), We(), ze(W("decorator")), X()), J("$label", qe("$label"))),
1676
1678
  /**
1677
1679
  * Multi radio structure.
1678
1680
  */
1679
- tn(nn("$label"), X("$help"), ln(rn(We(ee(Q(), je(ze(), {
1681
+ tn(nn("$label"), ee("$help"), an(ln(Ue(te(G(), Te(We(), {
1680
1682
  bind: "$option.attrs",
1681
1683
  attrs: {
1682
1684
  id: "$option.attrs.id",
1683
1685
  value: "$option.value",
1684
1686
  checked: "$fns.isChecked($option.value)"
1685
1687
  }
1686
- }), Be(z("decorator")), G()), Y("$option.label", Ue("$option.label"))), an("$option.help"))))
1688
+ }), ze(W("decorator")), X()), J("$option.label", qe("$option.label"))), rn("$option.help"))))
1687
1689
  ),
1688
1690
  // Help text only goes under the input when it is a single.
1689
- Y("$options === undefined && $help", X("$help")),
1690
- te(ne("$message.value"))
1691
- ), pe("decorator", "radioDecorator");
1692
- ae(ve(Oe("$label"), ee(z("prefix"), Q(), Xi(Y("$slots.default", () => "$slots.default", Y("$slots.option", tr, er("$option.label")))), Y("$attrs.multiple !== undefined", () => "", z("select")), G(), z("suffix"))), X("$help"), te(ne("$message.value"))), pe("select", "select");
1693
- ae(ve(Oe("$label"), ee(z("prefix", "label"), Q(), nr(), G(), z("suffix"))), X("$help"), te(ne("$message.value")));
1694
- ae(ve(Oe("$label"), ee(z("prefix", "label"), Q(), sn(), G(), z("suffix"))), X("$help"), te(ne("$message.value")));
1695
- re({
1691
+ J("$options === undefined && $help", ee("$help")),
1692
+ ne(ie("$message.value"))
1693
+ ), de("decorator", "radioDecorator");
1694
+ se(_e(Ae("$label"), te(W("prefix"), G(), Xi(J("$slots.default", () => "$slots.default", J("$slots.option", tl, el("$option.label")))), J("$attrs.multiple !== undefined", () => "", W("select")), X(), W("suffix"))), ee("$help"), ne(ie("$message.value"))), de("select", "select");
1695
+ se(_e(Ae("$label"), te(W("prefix", "label"), G(), nl(), X(), W("suffix"))), ee("$help"), ne(ie("$message.value")));
1696
+ se(_e(Ae("$label"), te(W("prefix", "label"), G(), sn(), X(), W("suffix"))), ee("$help"), ne(ie("$message.value")));
1697
+ ae({
1696
1698
  type: "state",
1697
1699
  blocking: !0,
1698
1700
  visible: !1,
1699
1701
  value: !0,
1700
1702
  key: "validating"
1701
1703
  });
1702
- let Te;
1703
- const gr = new Promise((e) => {
1704
- }), Je = typeof window < "u" && typeof fetch < "u";
1705
- Te = Je ? getComputedStyle(document.documentElement) : void 0;
1706
- const xe = {}, Qe = {};
1707
- function Ge(e, i) {
1704
+ let Fe;
1705
+ const gl = new Promise((e) => {
1706
+ }), Ge = typeof window < "u" && typeof fetch < "u";
1707
+ Fe = Ge ? getComputedStyle(document.documentElement) : void 0;
1708
+ const ke = {}, Xe = {};
1709
+ function et(e, i) {
1708
1710
  return (t) => {
1709
1711
  if (typeof t == "boolean")
1710
1712
  return;
@@ -1714,40 +1716,40 @@ function Ge(e, i) {
1714
1716
  return;
1715
1717
  const n = t.startsWith("default:");
1716
1718
  t = n ? t.split(":")[1] : t;
1717
- const r = t in xe;
1718
- let a;
1719
- if (r)
1720
- return xe[t];
1721
- if (!Qe[t]) {
1722
- if (a = $r(t), a = Je && typeof a > "u" ? Promise.resolve(a) : a, a instanceof Promise)
1723
- Qe[t] = a.then((s) => !s && typeof t == "string" && !n ? a = typeof e == "function" ? e(t) : wr(t, i) : s).then((s) => (typeof t == "string" && (xe[n ? `default:${t}` : t] = s), s));
1724
- else if (typeof a == "string")
1725
- return xe[n ? `default:${t}` : t] = a, a;
1726
- }
1727
- return Qe[t];
1719
+ const l = t in ke;
1720
+ let r;
1721
+ if (l)
1722
+ return ke[t];
1723
+ if (!Xe[t]) {
1724
+ if (r = $l(t), r = Ge && typeof r > "u" ? Promise.resolve(r) : r, r instanceof Promise)
1725
+ Xe[t] = r.then((s) => !s && typeof t == "string" && !n ? r = typeof e == "function" ? e(t) : kl(t, i) : s).then((s) => (typeof t == "string" && (ke[n ? `default:${t}` : t] = s), s));
1726
+ else if (typeof r == "string")
1727
+ return ke[n ? `default:${t}` : t] = r, r;
1728
+ }
1729
+ return Xe[t];
1728
1730
  };
1729
1731
  }
1730
- function $r(e) {
1731
- if (Je)
1732
- return gr.then(() => xr(e));
1732
+ function $l(e) {
1733
+ if (Ge)
1734
+ return gl.then(() => wl(e));
1733
1735
  }
1734
- function xr(e) {
1735
- const i = Te == null ? void 0 : Te.getPropertyValue(`--fk-icon-${e}`);
1736
+ function wl(e) {
1737
+ const i = Fe == null ? void 0 : Fe.getPropertyValue(`--fk-icon-${e}`);
1736
1738
  if (i) {
1737
1739
  const t = atob(i);
1738
1740
  if (t.startsWith("<svg"))
1739
- return xe[e] = t, t;
1741
+ return ke[e] = t, t;
1740
1742
  }
1741
1743
  }
1742
- function wr(e, i) {
1744
+ function kl(e, i) {
1743
1745
  const t = Ot.startsWith("__") ? "latest" : Ot, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1744
- if (Je)
1745
- return fetch(`${n}`).then(async (r) => {
1746
- const a = await r.text();
1747
- if (a.startsWith("<svg"))
1748
- return a;
1749
- }).catch((r) => {
1750
- console.error(r);
1746
+ if (Ge)
1747
+ return fetch(`${n}`).then(async (l) => {
1748
+ const r = await l.text();
1749
+ if (r.startsWith("<svg"))
1750
+ return r;
1751
+ }).catch((l) => {
1752
+ console.error(l);
1751
1753
  });
1752
1754
  }
1753
1755
  let _t = !1;
@@ -1794,53 +1796,55 @@ const Rt = {
1794
1796
  * Deprecation warnings:
1795
1797
  */
1796
1798
  800: ({ data: e }) => `${e} is deprecated.`
1797
- }, kr = (e, i) => {
1799
+ }, Cl = (e, i) => {
1798
1800
  if (e.code in Rt) {
1799
1801
  const t = Rt[e.code];
1800
1802
  e.message = typeof t == "function" ? t(e) : t;
1801
1803
  }
1802
1804
  return i(e);
1803
1805
  };
1804
- _t || dt(kr);
1805
- const Sr = (e, i) => {
1806
+ _t || dt(Cl);
1807
+ const Sl = (e, i) => {
1806
1808
  if (e.code in jt) {
1807
1809
  const t = jt[e.code];
1808
1810
  e.message = typeof t == "function" ? t(e) : t;
1809
1811
  }
1810
1812
  return i(e);
1811
1813
  };
1812
- _t || mt(Sr);
1814
+ _t || mt(Sl);
1813
1815
  _t = !0;
1814
- const Xe = {};
1815
- let W;
1816
- const se = /* @__PURE__ */ new Map(), Cr = "__raw__", Ir = /[a-zA-Z0-9\-][cC]lass$/;
1817
- function Vr(e, i) {
1818
- const t = Ie(null);
1816
+ const tt = {};
1817
+ let U;
1818
+ const oe = /* @__PURE__ */ new Map(), xl = "__raw__", Il = /[a-zA-Z0-9\-][cC]lass$/;
1819
+ function Vl(e, i) {
1820
+ const t = Ve(null);
1819
1821
  if (e === "get") {
1820
- const r = {};
1821
- return t.value = Lr.bind(null, r), t;
1822
+ const l = {};
1823
+ return t.value = Ll.bind(null, l), t;
1822
1824
  }
1823
1825
  const n = e.split(".");
1824
- return ie(() => t.value = gt(i, n)), t;
1826
+ return le(() => {
1827
+ t.value = gt(He(i) ? i.value : i, n);
1828
+ }), t;
1825
1829
  }
1826
1830
  function gt(e, i) {
1827
1831
  if (Array.isArray(e)) {
1828
- for (const r of e) {
1829
- const a = r !== !1 && gt(r, i);
1830
- if (a !== void 0)
1831
- return a;
1832
+ for (const l of e) {
1833
+ const r = l !== !1 && gt(l, i);
1834
+ if (r !== void 0)
1835
+ return r;
1832
1836
  }
1833
1837
  return;
1834
1838
  }
1835
1839
  let t, n = e;
1836
- for (const r in i) {
1837
- const a = i[r];
1840
+ for (const l in i) {
1841
+ const r = i[l];
1838
1842
  if (typeof n != "object" || n === null) {
1839
1843
  t = void 0;
1840
1844
  break;
1841
1845
  }
1842
- const s = n[a];
1843
- if (Number(r) === i.length - 1 && s !== void 0) {
1846
+ const s = n[r];
1847
+ if (Number(l) === i.length - 1 && s !== void 0) {
1844
1848
  t = typeof s == "function" ? s.bind(n) : s;
1845
1849
  break;
1846
1850
  }
@@ -1848,195 +1852,195 @@ function gt(e, i) {
1848
1852
  }
1849
1853
  return t;
1850
1854
  }
1851
- function Lr(e, i) {
1855
+ function Ll(e, i) {
1852
1856
  if (typeof i != "string")
1853
- return Le(650);
1854
- if (i in e || (e[i] = Ie(void 0)), e[i].value === void 0) {
1857
+ return Oe(650);
1858
+ if (i in e || (e[i] = Ve(void 0)), e[i].value === void 0) {
1855
1859
  e[i].value = null;
1856
1860
  const t = Ht(i);
1857
1861
  t && (e[i].value = t.context), Yn(i, ({ payload: n }) => {
1858
- e[i].value = Ze(n) ? n.context : n;
1862
+ e[i].value = Je(n) ? n.context : n;
1859
1863
  });
1860
1864
  }
1861
1865
  return e[i].value;
1862
1866
  }
1863
1867
  function Tt(e, i) {
1864
- function t(v, h) {
1865
- const $ = w(Z(h.if), { if: !0 }), S = c(v, h.then), p = h.else ? c(v, h.else) : null;
1866
- return [$, S, p];
1867
- }
1868
- function n(v, h) {
1869
- var $, S;
1870
- const p = w(Z(v.if));
1871
- let u = () => h, f = () => h;
1872
- return typeof v.then == "object" ? f = r(v.then, void 0) : typeof v.then == "string" && (!(($ = v.then) === null || $ === void 0) && $.startsWith("$")) ? f = w(Z(v.then)) : f = () => v.then, E(v, "else") && (typeof v.else == "object" ? u = r(v.else) : typeof v.else == "string" && (!((S = v.else) === null || S === void 0) && S.startsWith("$")) ? u = w(Z(v.else)) : u = () => v.else), () => p() ? f() : u();
1873
- }
1874
- function r(v, h, $ = {}) {
1875
- const S = new Set(Object.keys(v || {})), p = h ? w(Z(h)) : () => ({}), u = [
1876
- (f) => {
1877
- const g = p();
1878
- for (const k in g)
1879
- S.has(k) || (f[k] = g[k]);
1868
+ function t(_, v) {
1869
+ const w = h(Y(v.if), { if: !0 }), S = u(_, v.then), p = v.else ? u(_, v.else) : null;
1870
+ return [w, S, p];
1871
+ }
1872
+ function n(_, v) {
1873
+ var w, S;
1874
+ const p = h(Y(_.if));
1875
+ let f = () => v, c = () => v;
1876
+ return typeof _.then == "object" ? c = l(_.then, void 0) : typeof _.then == "string" && (!((w = _.then) === null || w === void 0) && w.startsWith("$")) ? c = h(Y(_.then)) : c = () => _.then, E(_, "else") && (typeof _.else == "object" ? f = l(_.else) : typeof _.else == "string" && (!((S = _.else) === null || S === void 0) && S.startsWith("$")) ? f = h(Y(_.else)) : f = () => _.else), () => p() ? c() : f();
1877
+ }
1878
+ function l(_, v, w = {}) {
1879
+ const S = new Set(Object.keys(_ || {})), p = v ? h(Y(v)) : () => ({}), f = [
1880
+ (c) => {
1881
+ const $ = p();
1882
+ for (const C in $)
1883
+ S.has(C) || (c[C] = $[C]);
1880
1884
  }
1881
1885
  ];
1882
- if (v) {
1883
- if (ce(v))
1884
- return n(v, $);
1885
- for (let f in v) {
1886
- const g = v[f];
1887
- let k;
1888
- const m = typeof g == "string";
1889
- f.startsWith(Cr) ? (f = f.substring(7), k = () => g) : m && g.startsWith("$") && g.length > 1 && !(g.startsWith("$reset") && Ir.test(f)) ? k = w(Z(g)) : typeof g == "object" && ce(g) ? k = n(g, void 0) : typeof g == "object" && be(g) ? k = r(g) : k = () => g, u.push((d) => {
1890
- d[f] = k();
1886
+ if (_) {
1887
+ if (pe(_))
1888
+ return n(_, w);
1889
+ for (let c in _) {
1890
+ const $ = _[c];
1891
+ let C;
1892
+ const m = typeof $ == "string";
1893
+ c.startsWith(xl) ? (c = c.substring(7), C = () => $) : m && $.startsWith("$") && $.length > 1 && !($.startsWith("$reset") && Il.test(c)) ? C = h(Y($)) : typeof $ == "object" && pe($) ? C = n($, void 0) : typeof $ == "object" && ye($) ? C = l($) : C = () => $, f.push((d) => {
1894
+ d[c] = C();
1891
1895
  });
1892
1896
  }
1893
1897
  }
1894
1898
  return () => {
1895
- const f = Array.isArray(v) ? [] : {};
1896
- return u.forEach((g) => g(f)), f;
1899
+ const c = Array.isArray(_) ? [] : {};
1900
+ return f.forEach(($) => $(c)), c;
1897
1901
  };
1898
1902
  }
1899
- function a(v, h) {
1900
- let $ = null, S = () => null, p = !1, u = null, f = null, g = null, k = !1;
1901
- const m = zi(h);
1902
- if (at(m) ? ($ = m.$el, S = m.$el !== "text" ? r(m.attrs, m.bind) : () => null) : st(m) ? (typeof m.$cmp == "string" ? E(v, m.$cmp) ? $ = v[m.$cmp] : ($ = m.$cmp, k = !0) : $ = m.$cmp, S = r(m.props, m.bind)) : ce(m) && ([p, u, f] = t(v, m)), !ce(m) && "if" in m ? p = w(Z(m.if)) : !ce(m) && $ === null && (p = () => !0), "children" in m && m.children)
1903
+ function r(_, v) {
1904
+ let w = null, S = () => null, p = !1, f = null, c = null, $ = null, C = !1;
1905
+ const m = zi(v);
1906
+ if (st(m) ? (w = m.$el, S = m.$el !== "text" ? l(m.attrs, m.bind) : () => null) : ot(m) ? (typeof m.$cmp == "string" ? E(_, m.$cmp) ? w = _[m.$cmp] : (w = m.$cmp, C = !0) : w = m.$cmp, S = l(m.props, m.bind)) : pe(m) && ([p, f, c] = t(_, m)), !pe(m) && "if" in m ? p = h(Y(m.if)) : !pe(m) && w === null && (p = () => !0), "children" in m && m.children)
1903
1907
  if (typeof m.children == "string")
1904
1908
  if (m.children.startsWith("$slots."))
1905
- $ = $ === "text" ? "slot" : $, u = w(Z(m.children));
1909
+ w = w === "text" ? "slot" : w, f = h(Y(m.children));
1906
1910
  else if (m.children.startsWith("$") && m.children.length > 1) {
1907
- const d = w(Z(m.children));
1908
- u = () => String(d());
1911
+ const d = h(Y(m.children));
1912
+ f = () => String(d());
1909
1913
  } else
1910
- u = () => String(m.children);
1914
+ f = () => String(m.children);
1911
1915
  else if (Array.isArray(m.children))
1912
- u = c(v, m.children);
1916
+ f = u(_, m.children);
1913
1917
  else {
1914
- const [d, b, _] = t(v, m.children);
1915
- u = (C) => d && d() ? b && b(C) : _ && _(C);
1918
+ const [d, y, g] = t(_, m.children);
1919
+ f = (x) => d && d() ? y && y(x) : g && g(x);
1916
1920
  }
1917
- if (st(m))
1918
- if (u) {
1919
- const d = u;
1920
- u = (b) => ({
1921
- default(_, C) {
1922
- var L, M, I, T;
1923
- const B = W;
1924
- C && (W = C), _ && ((L = se.get(W)) === null || L === void 0 || L.unshift(_)), b && ((M = se.get(W)) === null || M === void 0 || M.unshift(b));
1925
- const H = d(b);
1926
- return _ && ((I = se.get(W)) === null || I === void 0 || I.shift()), b && ((T = se.get(W)) === null || T === void 0 || T.shift()), W = B, H;
1921
+ if (ot(m))
1922
+ if (f) {
1923
+ const d = f;
1924
+ f = (y) => ({
1925
+ default(g, x) {
1926
+ var L, R, I, F;
1927
+ const z = U;
1928
+ x && (U = x), g && ((L = oe.get(U)) === null || L === void 0 || L.unshift(g)), y && ((R = oe.get(U)) === null || R === void 0 || R.unshift(y));
1929
+ const Z = d(y);
1930
+ return g && ((I = oe.get(U)) === null || I === void 0 || I.shift()), y && ((F = oe.get(U)) === null || F === void 0 || F.shift()), U = z, Z;
1927
1931
  }
1928
- }), u.slot = !0;
1932
+ }), f.slot = !0;
1929
1933
  } else
1930
- u = () => ({});
1934
+ f = () => ({});
1931
1935
  if ("for" in m && m.for) {
1932
1936
  const d = m.for.length === 3 ? m.for[2] : m.for[1];
1933
- g = [
1934
- typeof d == "string" && d.startsWith("$") ? w(Z(d)) : () => d,
1937
+ $ = [
1938
+ typeof d == "string" && d.startsWith("$") ? h(Y(d)) : () => d,
1935
1939
  m.for[0],
1936
1940
  m.for.length === 3 ? String(m.for[1]) : null
1937
1941
  ];
1938
1942
  }
1939
- return [p, $, S, u, f, g, k];
1943
+ return [p, w, S, f, c, $, C];
1940
1944
  }
1941
- function s(v, h) {
1942
- const $ = v(h), S = W;
1943
- return Object.keys($).reduce((p, u) => {
1944
- const f = $ && $[u];
1945
- return p[u] = (g) => f && f(g, S) || null, p;
1945
+ function s(_, v) {
1946
+ const w = _(v), S = U;
1947
+ return Object.keys(w).reduce((p, f) => {
1948
+ const c = w && w[f];
1949
+ return p[f] = ($) => c && c($, S) || null, p;
1946
1950
  }, {});
1947
1951
  }
1948
- function o(v, h) {
1949
- const [$, S, p, u, f, g, k] = a(v, h);
1952
+ function o(_, v) {
1953
+ const [w, S, p, f, c, $, C] = r(_, v);
1950
1954
  let m = (d) => {
1951
- if ($ && S === null && u)
1952
- return $() ? u(d) : f && f(d);
1953
- if (S && (!$ || $())) {
1954
- if (S === "text" && u)
1955
- return xn(String(u()));
1956
- if (S === "slot" && u)
1957
- return u(d);
1958
- const b = k ? j(S) : S, _ = u != null && u.slot ? s(u, d) : null;
1959
- return we(b, p(), _ || (u ? u(d) : []));
1955
+ if (w && S === null && f)
1956
+ return w() ? f(d) : c && c(d);
1957
+ if (S && (!w || w())) {
1958
+ if (S === "text" && f)
1959
+ return wn(String(f()));
1960
+ if (S === "slot" && f)
1961
+ return f(d);
1962
+ const y = C ? T(S) : S, g = f != null && f.slot ? s(f, d) : null;
1963
+ return Ce(y, p(), g || (f ? f(d) : []));
1960
1964
  }
1961
- return typeof f == "function" ? f(d) : f;
1965
+ return typeof c == "function" ? c(d) : c;
1962
1966
  };
1963
- if (g) {
1964
- const d = m, [b, _, C] = g;
1967
+ if ($) {
1968
+ const d = m, [y, g, x] = $;
1965
1969
  m = () => {
1966
- const L = b(), M = isNaN(L) ? L : Array(Number(L)).fill(0).map((H, N) => N), I = [];
1967
- if (typeof M != "object")
1970
+ const L = y(), R = isNaN(L) ? L : Array(Number(L)).fill(0).map((Z, K) => K), I = [];
1971
+ if (typeof R != "object")
1968
1972
  return null;
1969
- const T = se.get(W) || [], B = Array.isArray(M);
1970
- for (const H in M) {
1971
- if (B && H in Array.prototype)
1973
+ const F = oe.get(U) || [], z = Array.isArray(R);
1974
+ for (const Z in R) {
1975
+ if (z && Z in Array.prototype)
1972
1976
  continue;
1973
- const N = Object.defineProperty({
1974
- ...T.reduce((R, K) => R.__idata ? { ...R, ...K } : K, {}),
1975
- [_]: M[H],
1976
- ...C !== null ? { [C]: B ? Number(H) : H } : {}
1977
+ const K = Object.defineProperty({
1978
+ ...F.reduce((j, H) => j.__idata ? { ...j, ...H } : H, {}),
1979
+ [g]: R[Z],
1980
+ ...x !== null ? { [x]: z ? Number(Z) : Z } : {}
1977
1981
  }, "__idata", { enumerable: !1, value: !0 });
1978
- T.unshift(N), I.push(d.bind(null, N)()), T.shift();
1982
+ F.unshift(K), I.push(d.bind(null, K)()), F.shift();
1979
1983
  }
1980
1984
  return I;
1981
1985
  };
1982
1986
  }
1983
1987
  return m;
1984
1988
  }
1985
- function c(v, h) {
1986
- if (Array.isArray(h)) {
1987
- const S = h.map(o.bind(null, v));
1988
- return (p) => S.map((u) => u(p));
1989
- }
1990
- const $ = o(v, h);
1991
- return (S) => $(S);
1992
- }
1993
- const y = [];
1994
- function w(v, h = {}) {
1995
- const $ = {};
1996
- return y.push((S, p) => {
1997
- $[p] = v.provide((u) => S(u, h));
1998
- }), () => $[W]();
1999
- }
2000
- return function(h, $) {
2001
- const S = JSON.stringify(i), [p, u] = E(Xe, S) ? Xe[S] : [c(e, i), y];
2002
- return Xe[S] = [p, u], u.forEach((f) => {
2003
- f(h, $);
2004
- }), () => (W = $, p());
1989
+ function u(_, v) {
1990
+ if (Array.isArray(v)) {
1991
+ const S = v.map(o.bind(null, _));
1992
+ return (p) => S.map((f) => f(p));
1993
+ }
1994
+ const w = o(_, v);
1995
+ return (S) => w(S);
1996
+ }
1997
+ const b = [];
1998
+ function h(_, v = {}) {
1999
+ const w = {};
2000
+ return b.push((S, p) => {
2001
+ w[p] = _.provide((f) => S(f, v));
2002
+ }), () => w[U]();
2003
+ }
2004
+ return function(v, w) {
2005
+ const S = JSON.stringify(i), [p, f] = E(tt, S) ? tt[S] : [u(e, i), b];
2006
+ return tt[S] = [p, f], f.forEach((c) => {
2007
+ c(v, w);
2008
+ }), () => (U = w, p());
2005
2009
  };
2006
2010
  }
2007
2011
  function pn(e, i) {
2008
- const t = se.get(W) || [];
2012
+ const t = oe.get(U) || [];
2009
2013
  let n;
2010
2014
  return t.length && (n = gt(t, e.split("."))), n === void 0 ? i : n;
2011
2015
  }
2012
- function Or(e, i) {
2016
+ function Ol(e, i) {
2013
2017
  return new Proxy(e, {
2014
2018
  get(...t) {
2015
2019
  let n;
2016
- const r = t[1];
2017
- if (typeof r == "string") {
2018
- const a = W;
2019
- W = i, n = pn(r, void 0), W = a;
2020
+ const l = t[1];
2021
+ if (typeof l == "string") {
2022
+ const r = U;
2023
+ U = i, n = pn(l, void 0), U = r;
2020
2024
  }
2021
2025
  return n !== void 0 ? n : Reflect.get(...t);
2022
2026
  }
2023
2027
  });
2024
2028
  }
2025
2029
  function Ft(e, i, t) {
2026
- return e((n, r = {}) => n.reduce((a, s) => {
2030
+ return e((n, l = {}) => n.reduce((r, s) => {
2027
2031
  if (s.startsWith("slots.")) {
2028
- const o = s.substring(6), c = () => i.slots && E(i.slots, o) && typeof i.slots[o] == "function";
2029
- if (r.if)
2030
- a[s] = c;
2032
+ const o = s.substring(6), u = () => i.slots && E(i.slots, o) && typeof i.slots[o] == "function";
2033
+ if (l.if)
2034
+ r[s] = u;
2031
2035
  else if (i.slots) {
2032
- const y = Or(i, t);
2033
- a[s] = () => c() ? i.slots[o](y) : null;
2036
+ const b = Ol(i, t);
2037
+ r[s] = () => u() ? i.slots[o](b) : null;
2034
2038
  }
2035
2039
  } else {
2036
- const o = Vr(s, i);
2037
- a[s] = () => pn(s, o.value);
2040
+ const o = Vl(s, i);
2041
+ r[s] = () => pn(s, o.value);
2038
2042
  }
2039
- return a;
2043
+ return r;
2040
2044
  }, {}), t);
2041
2045
  }
2042
2046
  let Dt = 0;
@@ -2059,18 +2063,18 @@ const dn = P({
2059
2063
  setup(e, i) {
2060
2064
  const t = zt();
2061
2065
  let n = Symbol(String(Dt++));
2062
- se.set(n, []);
2063
- let r = Tt(e.library, e.schema), a, s;
2064
- return de(() => e.schema, (o, c) => {
2065
- var y;
2066
- n = Symbol(String(Dt++)), r = Tt(e.library, e.schema), a = Ft(r, s, n), o === c && ((y = t == null ? void 0 : t.proxy) === null || y === void 0 ? void 0 : y.$forceUpdate)();
2067
- }, { deep: !0 }), ie(() => {
2066
+ oe.set(n, []);
2067
+ let l = Tt(e.library, e.schema), r, s;
2068
+ return me(() => e.schema, (o, u) => {
2069
+ var b;
2070
+ n = Symbol(String(Dt++)), l = Tt(e.library, e.schema), r = Ft(l, s, n), o === u && ((b = t == null ? void 0 : t.proxy) === null || b === void 0 ? void 0 : b.$forceUpdate)();
2071
+ }, { deep: !0 }), le(() => {
2068
2072
  s = Object.assign(yn(e.data), {
2069
2073
  slots: i.slots
2070
- }), a = Ft(r, s, n);
2071
- }), () => a();
2074
+ }), r = Ft(l, s, n);
2075
+ }), () => r();
2072
2076
  }
2073
- }), Ar = {
2077
+ }), Al = {
2074
2078
  config: {
2075
2079
  type: Object,
2076
2080
  default: {}
@@ -2138,9 +2142,9 @@ const dn = P({
2138
2142
  type: [String, Function],
2139
2143
  required: !1
2140
2144
  }
2141
- }, Pr = Ar, Ne = Symbol("FormKitParent");
2145
+ }, Pl = Al, Ke = Symbol("FormKitParent");
2142
2146
  P({
2143
- props: Pr,
2147
+ props: Pl,
2144
2148
  emits: {
2145
2149
  /* eslint-disable @typescript-eslint/no-unused-vars */
2146
2150
  input: (e, i) => !0,
@@ -2154,53 +2158,53 @@ P({
2154
2158
  },
2155
2159
  inheritAttrs: !1,
2156
2160
  setup(e, i) {
2157
- const t = Tr(e, i);
2158
- if (t.props.definition || q(600, t), t.props.definition.component)
2161
+ const t = Tl(e, i);
2162
+ if (t.props.definition || N(600, t), t.props.definition.component)
2159
2163
  return () => {
2160
2164
  var s;
2161
- return we((s = t.props.definition) === null || s === void 0 ? void 0 : s.component, {
2165
+ return Ce((s = t.props.definition) === null || s === void 0 ? void 0 : s.component, {
2162
2166
  context: t.context
2163
2167
  }, { ...i.slots });
2164
2168
  };
2165
- const n = Ie([]), r = () => {
2169
+ const n = Ve([]), l = () => {
2166
2170
  var s, o;
2167
- const c = (o = (s = t.props) === null || s === void 0 ? void 0 : s.definition) === null || o === void 0 ? void 0 : o.schema;
2168
- c || q(601, t), n.value = typeof c == "function" ? c({ ...e.sectionsSchema }) : c;
2171
+ const u = (o = (s = t.props) === null || s === void 0 ? void 0 : s.definition) === null || o === void 0 ? void 0 : o.schema;
2172
+ u || N(601, t), n.value = typeof u == "function" ? u({ ...e.sectionsSchema }) : u;
2169
2173
  };
2170
- r(), t.on("schema", r), i.emit("node", t);
2171
- const a = t.props.definition.library;
2172
- return i.expose({ node: t }), () => we(dn, { schema: n.value, data: t.context, library: a }, { ...i.slots });
2174
+ l(), t.on("schema", l), i.emit("node", t);
2175
+ const r = t.props.definition.library;
2176
+ return i.expose({ node: t }), () => Ce(dn, { schema: n.value, data: t.context, library: r }, { ...i.slots });
2173
2177
  }
2174
2178
  });
2175
- const mn = Symbol.for("FormKitOptions"), ut = Symbol();
2176
- function Er(e, i) {
2179
+ const mn = Symbol.for("FormKitOptions"), ft = Symbol();
2180
+ function El(e, i) {
2177
2181
  const t = {}, n = (s) => {
2178
2182
  for (const o of s)
2179
- o.__str in t && t[o.__str](), t[o.__str] = de(Rr.bind(null, e, o), a.bind(null, o), { deep: !1 });
2180
- }, a = Mr(e, i, n, (s) => {
2183
+ o.__str in t && t[o.__str](), t[o.__str] = me(Rl.bind(null, e, o), r.bind(null, o), { deep: !1 });
2184
+ }, r = Ml(e, i, n, (s) => {
2181
2185
  if (s.length)
2182
2186
  for (const o in t)
2183
2187
  `${o}`.startsWith(`${s.__str}.`) && (t[o](), delete t[o]);
2184
2188
  });
2185
2189
  n($t(e));
2186
2190
  }
2187
- function Mr(e, i, t, n) {
2188
- return (r) => {
2189
- const a = bn(e, r);
2190
- a !== ut && (r.__deep && n(r), typeof a == "object" && t($t(a, [r], ...r)), i(r, a, e));
2191
+ function Ml(e, i, t, n) {
2192
+ return (l) => {
2193
+ const r = bn(e, l);
2194
+ r !== ft && (l.__deep && n(l), typeof r == "object" && t($t(r, [l], ...l)), i(l, r, e));
2191
2195
  };
2192
2196
  }
2193
- function Rr(e, i) {
2197
+ function Rl(e, i) {
2194
2198
  const t = bn(e, i);
2195
2199
  return t && typeof t == "object" ? Object.keys(t) : t;
2196
2200
  }
2197
2201
  function bn(e, i) {
2198
- if (ft(e)) {
2202
+ if (He(e)) {
2199
2203
  if (i.length === 0)
2200
2204
  return e.value;
2201
2205
  e = e.value;
2202
2206
  }
2203
- return i.reduce((t, n) => t === ut ? t : t === null || typeof t != "object" ? ut : t[n], e);
2207
+ return i.reduce((t, n) => t === ft ? t : t === null || typeof t != "object" ? ft : t[n], e);
2204
2208
  }
2205
2209
  function $t(e, i = [], ...t) {
2206
2210
  if (e === null)
@@ -2209,7 +2213,7 @@ function $t(e, i = [], ...t) {
2209
2213
  const n = Object.defineProperty([], "__str", {
2210
2214
  value: ""
2211
2215
  });
2212
- if (e = ft(e) ? e.value : e, e && typeof e == "object")
2216
+ if (e = He(e) ? e.value : e, e && typeof e == "object")
2213
2217
  Object.defineProperty(n, "__deep", { value: !0 }), i.push(n);
2214
2218
  else
2215
2219
  return [n];
@@ -2217,24 +2221,24 @@ function $t(e, i = [], ...t) {
2217
2221
  if (e === null || typeof e != "object")
2218
2222
  return i;
2219
2223
  for (const n in e) {
2220
- const r = t.concat(n);
2221
- Object.defineProperty(r, "__str", { value: r.join(".") });
2222
- const a = e[n];
2223
- be(a) || Array.isArray(a) ? (i.push(Object.defineProperty(r, "__deep", { value: !0 })), i = i.concat($t(a, [], ...r))) : i.push(r);
2224
+ const l = t.concat(n);
2225
+ Object.defineProperty(l, "__str", { value: l.join(".") });
2226
+ const r = e[n];
2227
+ ye(r) || Array.isArray(r) ? (i.push(Object.defineProperty(l, "__deep", { value: !0 })), i = i.concat($t(r, [], ...l))) : i.push(l);
2224
2228
  }
2225
2229
  return i;
2226
2230
  }
2227
- function Fe(e) {
2228
- return e === null || typeof e != "object" || (wt(e) ? e = gn(e) : ft(e) && (e = wt(e.value) ? Fe(e.value) : e.value)), e;
2231
+ function De(e) {
2232
+ return e === null || typeof e != "object" || (kt(e) ? e = gn(e) : He(e) && (e = kt(e.value) ? De(e.value) : e.value)), e;
2229
2233
  }
2230
- const et = [
2234
+ const nt = [
2231
2235
  "help",
2232
2236
  "label",
2233
2237
  "ignore",
2234
2238
  "disabled",
2235
2239
  "preserve",
2236
2240
  /^preserve(-e|E)rrors/,
2237
- /^[a-z]+(?:-visibility|Visibility)$/,
2241
+ /^[a-z]+(?:-visibility|Visibility|-behavior|Behavior)$/,
2238
2242
  /^[a-zA-Z-]+(?:-class|Class)$/,
2239
2243
  "prefixIcon",
2240
2244
  "suffixIcon",
@@ -2242,137 +2246,137 @@ const et = [
2242
2246
  ];
2243
2247
  function Bt(e, i) {
2244
2248
  i.classes && Object.keys(i.classes).forEach((t) => {
2245
- typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], it(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
2249
+ typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], lt(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
2246
2250
  });
2247
2251
  }
2248
- function jr(e) {
2252
+ function jl(e) {
2249
2253
  return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, n) => {
2250
- const r = `on${n}`;
2251
- return r in e && typeof e[r] == "function" && (t[r] = e[r]), t;
2254
+ const l = `on${n}`;
2255
+ return l in e && typeof e[l] == "function" && (t[l] = e[l]), t;
2252
2256
  }, {}) : {};
2253
2257
  }
2254
- function Tr(e, i, t = {}) {
2258
+ function Tl(e, i, t = {}) {
2255
2259
  var n;
2256
- const r = Object.assign({}, ke(mn) || {}, t), a = zt(), s = jr(a == null ? void 0 : a.vnode.props), o = "modelValue" in ((n = a == null ? void 0 : a.vnode.props) !== null && n !== void 0 ? n : {}), c = e.modelValue !== void 0 ? e.modelValue : oe(i.attrs.value);
2257
- function y() {
2260
+ const l = Object.assign({}, Se(mn) || {}, t), r = zt(), s = jl(r == null ? void 0 : r.vnode.props), o = "modelValue" in ((n = r == null ? void 0 : r.vnode.props) !== null && n !== void 0 ? n : {}), u = e.modelValue !== void 0 ? e.modelValue : ue(i.attrs.value);
2261
+ function b() {
2258
2262
  const d = {
2259
- ...fe(e),
2263
+ ...ce(e),
2260
2264
  ...s
2261
- }, b = kt(fe(i.attrs), et);
2262
- b.key || (b.key = Ke()), d.attrs = b;
2263
- const _ = St(fe(i.attrs), et);
2264
- for (const L in _)
2265
- d[Pe(L)] = _[L];
2266
- const C = { props: {} };
2267
- return Bt(C, e), Object.assign(d, C.props), typeof d.type != "string" && (d.definition = d.type, delete d.type), d;
2268
- }
2269
- const w = y(), v = w.ignore ? null : e.parent || ke(Ne, null), h = Di(He(r || {}, {
2265
+ }, y = Ct(ce(i.attrs), nt);
2266
+ y.key || (y.key = Ze()), d.attrs = y;
2267
+ const g = St(ce(i.attrs), nt);
2268
+ for (const L in g)
2269
+ d[Ee(L)] = g[L];
2270
+ const x = { props: {} };
2271
+ return Bt(x, e), Object.assign(d, x.props), typeof d.type != "string" && (d.definition = d.type, delete d.type), d;
2272
+ }
2273
+ const h = b(), _ = h.ignore ? null : e.parent || Se(Ke, null), v = Di(Ye(l || {}, {
2270
2274
  name: e.name || void 0,
2271
- value: c,
2272
- parent: v,
2273
- plugins: (r.plugins || []).concat(e.plugins),
2275
+ value: u,
2276
+ parent: _,
2277
+ plugins: (l.plugins || []).concat(e.plugins),
2274
2278
  config: e.config,
2275
- props: w,
2279
+ props: h,
2276
2280
  index: e.index
2277
2281
  }, !1, !0));
2278
- h.props.definition || q(600, h);
2279
- const $ = Ie(new Set(h.props.definition.props || []));
2280
- h.on("added-props", ({ payload: d }) => {
2281
- Array.isArray(d) && d.forEach((b) => $.value.add(b));
2282
+ v.props.definition || N(600, v);
2283
+ const w = Ve(new Set(v.props.definition.props || []));
2284
+ v.on("added-props", ({ payload: d }) => {
2285
+ Array.isArray(d) && d.forEach((y) => w.value.add(y));
2282
2286
  });
2283
- const S = tt(() => et.concat([...$.value]).reduce((d, b) => (typeof b == "string" ? (d.push(Pe(b)), d.push(Wt(b))) : d.push(b), d), []));
2284
- ie(() => Bt(h, e));
2285
- const p = fe(e);
2287
+ const S = M(() => nt.concat([...w.value]).reduce((d, y) => (typeof y == "string" ? (d.push(Ee(y)), d.push(Wt(y))) : d.push(y), d), []));
2288
+ le(() => Bt(v, e));
2289
+ const p = ce(e);
2286
2290
  for (const d in p)
2287
- de(() => e[d], () => {
2288
- e[d] !== void 0 && (h.props[d] = e[d]);
2291
+ me(() => e[d], () => {
2292
+ e[d] !== void 0 && (v.props[d] = e[d]);
2289
2293
  });
2290
- const u = /* @__PURE__ */ new Set(), f = fe(i.attrs);
2291
- ie(() => {
2292
- g(St(f, S.value));
2294
+ const f = /* @__PURE__ */ new Set(), c = ce(i.attrs);
2295
+ le(() => {
2296
+ $(St(c, S.value));
2293
2297
  });
2294
- function g(d) {
2295
- u.forEach((b) => {
2296
- b(), u.delete(b);
2298
+ function $(d) {
2299
+ f.forEach((y) => {
2300
+ y(), f.delete(y);
2297
2301
  });
2298
- for (const b in d) {
2299
- const _ = Pe(b);
2300
- u.add(de(() => i.attrs[b], () => {
2301
- h.props[_] = i.attrs[b];
2302
+ for (const y in d) {
2303
+ const g = Ee(y);
2304
+ f.add(me(() => i.attrs[y], () => {
2305
+ v.props[g] = i.attrs[y];
2302
2306
  }));
2303
2307
  }
2304
2308
  }
2305
- if (ie(() => {
2306
- const d = kt(fe(i.attrs), S.value);
2307
- "multiple" in d && (d.multiple = J(d.multiple)), h.props.attrs = Object.assign({}, h.props.attrs || {}, d);
2308
- }), ie(() => {
2309
- const d = e.errors.map((b) => re({
2310
- key: ct(b),
2309
+ if (le(() => {
2310
+ const d = Ct(ce(i.attrs), S.value);
2311
+ "multiple" in d && (d.multiple = Q(d.multiple)), v.props.attrs = Object.assign({}, v.props.attrs || {}, d);
2312
+ }), le(() => {
2313
+ const d = e.errors.map((y) => ae({
2314
+ key: ct(y),
2311
2315
  type: "error",
2312
- value: b,
2316
+ value: y,
2313
2317
  meta: { source: "prop" }
2314
2318
  }));
2315
- h.store.apply(d, (b) => b.type === "error" && b.meta.source === "prop");
2316
- }), h.type !== "input") {
2317
- const d = `${h.name}-prop`;
2318
- ie(() => {
2319
- const b = Object.keys(e.inputErrors);
2320
- b.length || h.clearErrors(!0, d);
2321
- const _ = b.reduce((C, L) => {
2322
- let M = e.inputErrors[L];
2323
- return typeof M == "string" && (M = [M]), Array.isArray(M) && (C[L] = M.map((I) => re({
2319
+ v.store.apply(d, (y) => y.type === "error" && y.meta.source === "prop");
2320
+ }), v.type !== "input") {
2321
+ const d = `${v.name}-prop`;
2322
+ le(() => {
2323
+ const y = Object.keys(e.inputErrors);
2324
+ y.length || v.clearErrors(!0, d);
2325
+ const g = y.reduce((x, L) => {
2326
+ let R = e.inputErrors[L];
2327
+ return typeof R == "string" && (R = [R]), Array.isArray(R) && (x[L] = R.map((I) => ae({
2324
2328
  key: I,
2325
2329
  type: "error",
2326
2330
  value: I,
2327
2331
  meta: { source: d }
2328
- }))), C;
2332
+ }))), x;
2329
2333
  }, {});
2330
- h.store.apply(_, (C) => C.type === "error" && C.meta.source === d);
2334
+ v.store.apply(g, (x) => x.type === "error" && x.meta.source === d);
2331
2335
  });
2332
2336
  }
2333
- ie(() => Object.assign(h.config, e.config)), h.type !== "input" && hn(Ne, h);
2334
- let k;
2337
+ le(() => Object.assign(v.config, e.config)), v.type !== "input" && vn(Ke, v);
2338
+ let C;
2335
2339
  const m = /* @__PURE__ */ new WeakSet();
2336
- return h.on("modelUpdated", () => {
2337
- var d, b;
2338
- if (i.emit("inputRaw", (d = h.context) === null || d === void 0 ? void 0 : d.value, h), clearTimeout(k), k = setTimeout(i.emit, 20, "input", (b = h.context) === null || b === void 0 ? void 0 : b.value, h), o && h.context) {
2339
- const _ = Fe(h.context.value);
2340
- it(_) && Fe(e.modelValue) !== _ && m.add(_), i.emit("update:modelValue", _);
2341
- }
2342
- }), o && (Er(vn(e, "modelValue"), (d, b) => {
2343
- var _;
2344
- const C = Fe(b);
2345
- if (it(C) && m.has(C))
2346
- return m.delete(C);
2347
- d.length ? (_ = h.at(d)) === null || _ === void 0 || _.input(b, !1) : h.input(b, !1);
2348
- }), h.value !== c && h.emit("modelUpdated")), _n(() => h.destroy()), h;
2349
- }
2350
- let Fr = 1;
2351
- function Dr(e) {
2340
+ return v.on("modelUpdated", () => {
2341
+ var d, y;
2342
+ if (i.emit("inputRaw", (d = v.context) === null || d === void 0 ? void 0 : d.value, v), clearTimeout(C), C = setTimeout(i.emit, 20, "input", (y = v.context) === null || y === void 0 ? void 0 : y.value, v), o && v.context) {
2343
+ const g = De(v.context.value);
2344
+ lt(g) && De(e.modelValue) !== g && m.add(g), i.emit("update:modelValue", g);
2345
+ }
2346
+ }), o && (El(hn(e, "modelValue"), (d, y) => {
2347
+ var g;
2348
+ const x = De(y);
2349
+ if (lt(x) && m.has(x))
2350
+ return m.delete(x);
2351
+ d.length ? (g = v.at(d)) === null || g === void 0 || g.input(y, !1) : v.input(y, !1);
2352
+ }), v.value !== u && v.emit("modelUpdated")), _n(() => v.destroy()), v;
2353
+ }
2354
+ let Fl = 1;
2355
+ function Dl(e) {
2352
2356
  return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
2353
2357
  }
2354
- function D(e, i = {}) {
2358
+ function B(e, i = {}) {
2355
2359
  const t = {
2356
2360
  type: "input",
2357
2361
  ...i
2358
2362
  };
2359
2363
  let n;
2360
- if (Dr(e)) {
2361
- const r = `SchemaComponent${Fr++}`;
2362
- n = x("input", () => ({
2363
- $cmp: r,
2364
+ if (Dl(e)) {
2365
+ const l = `SchemaComponent${Fl++}`;
2366
+ n = k("input", () => ({
2367
+ $cmp: l,
2364
2368
  props: {
2365
2369
  context: "$node.context"
2366
2370
  }
2367
- })), t.library = { [r]: $n(e) };
2371
+ })), t.library = { [l]: $n(e) };
2368
2372
  } else
2369
- typeof e == "function" ? n = e : n = x("input", () => oe(e));
2370
- return t.schema = vr(n || "Schema undefined"), t;
2373
+ typeof e == "function" ? n = e : n = k("input", () => ue(e));
2374
+ return t.schema = hl(n || "Schema undefined"), t;
2371
2375
  }
2372
- const Br = x("messages", () => ({
2376
+ const Bl = k("messages", () => ({
2373
2377
  $el: "ul",
2374
2378
  if: "$fns.length($messages)"
2375
- }), !0), zr = x("message", () => ({
2379
+ }), !0), zl = k("message", () => ({
2376
2380
  $el: "li",
2377
2381
  for: ["message", "$messages"],
2378
2382
  attrs: {
@@ -2380,7 +2384,7 @@ const Br = x("messages", () => ({
2380
2384
  id: "$id + '-' + $message.key",
2381
2385
  "data-message-type": "$message.type"
2382
2386
  }
2383
- })), Wr = Br(zr("$message.value"));
2387
+ })), Wl = Bl(zl("$message.value"));
2384
2388
  P({
2385
2389
  props: {
2386
2390
  node: {
@@ -2397,22 +2401,22 @@ P({
2397
2401
  }
2398
2402
  },
2399
2403
  setup(e, i) {
2400
- const t = tt(() => e.node || ke(Ne, void 0));
2401
- de(t, () => {
2402
- var a;
2403
- !((a = t.value) === null || a === void 0) && a.context && !J(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
2404
+ const t = M(() => e.node || Se(Ke, void 0));
2405
+ me(t, () => {
2406
+ var r;
2407
+ !((r = t.value) === null || r === void 0) && r.context && !Q(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
2404
2408
  }, { immediate: !0 });
2405
- const n = Wr(e.sectionsSchema || {}), r = tt(() => {
2406
- var a, s, o, c, y, w;
2409
+ const n = Wl(e.sectionsSchema || {}), l = M(() => {
2410
+ var r, s, o, u, b, h;
2407
2411
  return {
2408
- messages: ((s = (a = t.value) === null || a === void 0 ? void 0 : a.context) === null || s === void 0 ? void 0 : s.messages) || {},
2409
- fns: ((c = (o = t.value) === null || o === void 0 ? void 0 : o.context) === null || c === void 0 ? void 0 : c.fns) || {},
2410
- classes: ((w = (y = t.value) === null || y === void 0 ? void 0 : y.context) === null || w === void 0 ? void 0 : w.classes) || {}
2412
+ messages: ((s = (r = t.value) === null || r === void 0 ? void 0 : r.context) === null || s === void 0 ? void 0 : s.messages) || {},
2413
+ fns: ((u = (o = t.value) === null || o === void 0 ? void 0 : o.context) === null || u === void 0 ? void 0 : u.fns) || {},
2414
+ classes: ((h = (b = t.value) === null || b === void 0 ? void 0 : b.context) === null || h === void 0 ? void 0 : h.classes) || {}
2411
2415
  };
2412
2416
  });
2413
2417
  return () => {
2414
- var a;
2415
- return !((a = t.value) === null || a === void 0) && a.context ? we(dn, { schema: n, data: r.value }, { ...i.slots }) : null;
2418
+ var r;
2419
+ return !((r = t.value) === null || r === void 0) && r.context ? Ce(dn, { schema: n, data: l.value }, { ...i.slots }) : null;
2416
2420
  };
2417
2421
  }
2418
2422
  });
@@ -2434,915 +2438,940 @@ P({
2434
2438
  },
2435
2439
  setup(e) {
2436
2440
  var i, t;
2437
- const n = Ie(void 0), r = ke(mn, {}), a = ke(Ne, null);
2441
+ const n = Ve(void 0), l = Se(mn, {}), r = Se(Ke, null);
2438
2442
  let s;
2439
2443
  function o() {
2440
2444
  if (!s || typeof s != "function")
2441
2445
  return;
2442
- const c = s(e.icon);
2443
- c instanceof Promise ? c.then((y) => {
2444
- n.value = y;
2445
- }) : n.value = c;
2446
+ const u = s(e.icon);
2447
+ u instanceof Promise ? u.then((b) => {
2448
+ n.value = b;
2449
+ }) : n.value = u;
2446
2450
  }
2447
2451
  if (e.iconLoader && typeof e.iconLoader == "function")
2448
- s = Ge(e.iconLoader);
2449
- else if (a && (!((i = a.props) === null || i === void 0) && i.iconLoader))
2450
- s = Ge(a.props.iconLoader);
2452
+ s = et(e.iconLoader);
2453
+ else if (r && (!((i = r.props) === null || i === void 0) && i.iconLoader))
2454
+ s = et(r.props.iconLoader);
2451
2455
  else if (e.iconLoaderUrl && typeof e.iconLoaderUrl == "function")
2452
- s = Ge(s, e.iconLoaderUrl);
2456
+ s = et(s, e.iconLoaderUrl);
2453
2457
  else {
2454
- const c = (t = r == null ? void 0 : r.plugins) === null || t === void 0 ? void 0 : t.find((y) => typeof y.iconHandler == "function");
2455
- c && (s = c.iconHandler);
2458
+ const u = (t = l == null ? void 0 : l.plugins) === null || t === void 0 ? void 0 : t.find((b) => typeof b.iconHandler == "function");
2459
+ u && (s = u.iconHandler);
2456
2460
  }
2457
- return de(() => e.icon, () => {
2461
+ return me(() => e.icon, () => {
2458
2462
  o();
2459
- }, { immediate: !0 }), () => e.icon && n.value ? we("span", {
2463
+ }, { immediate: !0 }), () => e.icon && n.value ? Ce("span", {
2460
2464
  class: "formkit-icon",
2461
2465
  innerHTML: n.value
2462
2466
  }) : null;
2463
2467
  }
2464
2468
  });
2465
- const Ur = /* @__PURE__ */ P({
2469
+ const Ul = /* @__PURE__ */ P({
2466
2470
  __name: "PrimeCalendar",
2467
2471
  props: {
2468
2472
  context: Object
2469
2473
  },
2470
2474
  setup(e) {
2471
2475
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2472
- function r(s) {
2476
+ function l(o) {
2473
2477
  t == null || t.node.input(t == null ? void 0 : t._value);
2474
2478
  }
2475
- function a(s) {
2476
- t == null || t.node.input(s);
2479
+ function r(o) {
2480
+ t == null || t.node.input(o);
2477
2481
  }
2478
- return (s, o) => {
2479
- const c = j("Calendar");
2482
+ const s = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2483
+ return (o, u) => {
2484
+ const b = T("Calendar");
2480
2485
  return O(), A("div", null, [
2481
- F(c, {
2482
- modelValue: l(t)._value,
2483
- "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
2486
+ D(b, {
2487
+ modelValue: a(t)._value,
2488
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2484
2489
  "input-id": i.context.id,
2485
- disabled: l(n)._disabled ?? !1,
2486
- readonly: l(n)._readonly ?? !1,
2487
- "input-style": l(n).style,
2488
- "input-class": l(n).class,
2489
- tabindex: l(n).tabindex,
2490
- "aria-label": l(n).ariaLabel,
2491
- "aria-labelledby": l(n).ariaLabelledby,
2492
- "date-format": l(n).dateFormat,
2493
- "selection-mode": l(n).selectionMode ?? "single",
2494
- inline: l(n).inline ?? !1,
2495
- "show-other-months": l(n).showOtherMonths ?? !0,
2496
- "select-other-months": l(n).selectOtherMonths ?? !1,
2497
- icon: l(n).icon,
2498
- "show-icon": l(t).showIcon,
2499
- "previous-icon": l(n).previousIcon ?? "pi pi-calendar",
2500
- "next-icon": l(n).nextIcon ?? "pi pi-chevron-right",
2501
- "increment-icon": l(n).incrementIcon ?? "pi pi-chevron-up",
2502
- "decrement-icon": l(n).decrementIcon ?? "pi pi-chevron-down",
2503
- "number-of-months": l(n).numberOfMonths ?? 1,
2504
- "responsive-options": l(n).responsiveOptions,
2505
- view: l(n).view ?? "date",
2506
- "touch-u-i": l(n).touchUI ?? !1,
2507
- "min-date": l(n).minDate,
2508
- "max-date": l(n).maxDate,
2509
- "disabled-dates": l(n).disabledDates,
2510
- "disabled-days": l(n).disabledDays,
2511
- "max-date-count": l(n).maxDateCount,
2512
- "show-on-focus": l(n).showOnFocus ?? !0,
2513
- "auto-z-index": l(n).autoZIndex ?? !0,
2514
- "base-z-index": l(n).baseZIndex ?? 0,
2515
- "show-button-bar": l(n).showButtonBar ?? !1,
2516
- "show-time": l(n).showTime ?? !1,
2517
- "time-only": l(n).timeOnly ?? !1,
2518
- "short-year-cutoff": l(n).shortYearCutoff ?? "+10",
2519
- "hour-format": l(n).hourFormat ?? "24",
2520
- "step-hour": l(n).stepHour ?? 1,
2521
- "step-minute": l(n).stepMinute ?? 1,
2522
- "step-second": l(n).stepSecond ?? 1,
2523
- "show-seconds": l(n).showSeconds ?? !1,
2524
- "hide-on-date-time-select": l(n).hideOnDateTimeSelect ?? !1,
2525
- "hide-on-range-selection": l(n).hideOnRangeSelection ?? !1,
2526
- "time-separator": l(n).timeSeparator ?? ":",
2527
- "show-week": l(n).showWeek ?? !1,
2528
- "manual-input": l(n).manualInput ?? !0,
2529
- "append-to": l(n).appendTo ?? "body",
2530
- "panel-style": l(n).panelStyle,
2531
- "panel-class": l(n).panelClass,
2532
- onDateSelect: a,
2533
- onInput: r
2490
+ disabled: a(n)._disabled ?? !1,
2491
+ readonly: a(n)._readonly ?? !1,
2492
+ "input-style": a(n).style,
2493
+ "input-class": a(s),
2494
+ tabindex: a(n).tabindex,
2495
+ "aria-label": a(n).ariaLabel,
2496
+ "aria-labelledby": a(n).ariaLabelledby,
2497
+ "date-format": a(n).dateFormat,
2498
+ "selection-mode": a(n).selectionMode ?? "single",
2499
+ inline: a(n).inline ?? !1,
2500
+ "show-other-months": a(n).showOtherMonths ?? !0,
2501
+ "select-other-months": a(n).selectOtherMonths ?? !1,
2502
+ icon: a(n).icon,
2503
+ "show-icon": a(t).showIcon,
2504
+ "previous-icon": a(n).previousIcon ?? "pi pi-chevron-left",
2505
+ "next-icon": a(n).nextIcon ?? "pi pi-chevron-right",
2506
+ "increment-icon": a(n).incrementIcon ?? "pi pi-chevron-up",
2507
+ "decrement-icon": a(n).decrementIcon ?? "pi pi-chevron-down",
2508
+ "number-of-months": a(n).numberOfMonths ?? 1,
2509
+ "responsive-options": a(n).responsiveOptions,
2510
+ view: a(n).view ?? "date",
2511
+ "touch-u-i": a(n).touchUI ?? !1,
2512
+ "min-date": a(n).minDate,
2513
+ "max-date": a(n).maxDate,
2514
+ "disabled-dates": a(n).disabledDates,
2515
+ "disabled-days": a(n).disabledDays,
2516
+ "max-date-count": a(n).maxDateCount,
2517
+ "show-on-focus": a(n).showOnFocus ?? !0,
2518
+ "auto-z-index": a(n).autoZIndex ?? !0,
2519
+ "base-z-index": a(n).baseZIndex ?? 0,
2520
+ "show-button-bar": a(n).showButtonBar ?? !1,
2521
+ "show-time": a(n).showTime ?? !1,
2522
+ "time-only": a(n).timeOnly ?? !1,
2523
+ "short-year-cutoff": a(n).shortYearCutoff ?? "+10",
2524
+ "hour-format": a(n).hourFormat ?? "24",
2525
+ "step-hour": a(n).stepHour ?? 1,
2526
+ "step-minute": a(n).stepMinute ?? 1,
2527
+ "step-second": a(n).stepSecond ?? 1,
2528
+ "show-seconds": a(n).showSeconds ?? !1,
2529
+ "hide-on-date-time-select": a(n).hideOnDateTimeSelect ?? !1,
2530
+ "hide-on-range-selection": a(n).hideOnRangeSelection ?? !1,
2531
+ "time-separator": a(n).timeSeparator ?? ":",
2532
+ "show-week": a(n).showWeek ?? !1,
2533
+ "manual-input": a(n).manualInput ?? !0,
2534
+ "append-to": a(n).appendTo ?? "body",
2535
+ "panel-style": a(n).panelStyle,
2536
+ "panel-class": a(n).panelClass,
2537
+ onDateSelect: r,
2538
+ onInput: l
2534
2539
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "date-format", "selection-mode", "inline", "show-other-months", "select-other-months", "icon", "show-icon", "previous-icon", "next-icon", "increment-icon", "decrement-icon", "number-of-months", "responsive-options", "view", "touch-u-i", "min-date", "max-date", "disabled-dates", "disabled-days", "max-date-count", "show-on-focus", "auto-z-index", "base-z-index", "show-button-bar", "show-time", "time-only", "short-year-cutoff", "hour-format", "step-hour", "step-minute", "step-second", "show-seconds", "hide-on-date-time-select", "hide-on-range-selection", "time-separator", "show-week", "manual-input", "append-to", "panel-style", "panel-class"])
2535
2540
  ]);
2536
2541
  };
2537
2542
  }
2538
- }), qr = {
2543
+ }), ql = {
2539
2544
  key: 0,
2540
2545
  class: "formkit-prime-left"
2541
- }, Nr = {
2546
+ }, Nl = {
2542
2547
  key: 1,
2543
2548
  class: "formkit-prime-right"
2544
- }, Kr = /* @__PURE__ */ P({
2549
+ }, Kl = /* @__PURE__ */ P({
2545
2550
  __name: "PrimeCheckbox",
2546
2551
  props: {
2547
2552
  context: Object
2548
2553
  },
2549
2554
  setup(e) {
2550
2555
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2551
- function r(a) {
2552
- var s;
2553
- t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
2556
+ function l(s) {
2557
+ var o;
2558
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2554
2559
  }
2555
- return (a, s) => {
2556
- const o = j("Checkbox");
2560
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2561
+ return (s, o) => {
2562
+ const u = T("Checkbox");
2557
2563
  return O(), A("div", null, [
2558
- l(t).attrs.labelLeft ? (O(), A("span", qr, me(l(t).attrs.labelLeft), 1)) : le("", !0),
2559
- F(o, {
2560
- modelValue: l(t)._value,
2561
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2562
- "input-id": l(t).id,
2563
- disabled: l(n)._disabled ?? !1,
2564
- readonly: l(n)._readonly ?? !1,
2565
- "input-style": l(n).style,
2566
- "input-class": l(n).class,
2567
- tabindex: l(n).tabindex,
2568
- "aria-label": l(n).ariaLabel,
2569
- "aria-labelledby": l(n).ariaLabelledby,
2570
- binary: l(n).binary ?? !0,
2571
- "true-value": l(n).trueValue ?? void 0,
2572
- "false-value": l(n).falseValue ?? void 0,
2573
- onInput: r
2564
+ a(t).attrs.labelLeft ? (O(), A("span", ql, be(a(t).attrs.labelLeft), 1)) : re("", !0),
2565
+ D(u, {
2566
+ modelValue: a(t)._value,
2567
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2568
+ "input-id": a(t).id,
2569
+ disabled: a(n)._disabled ?? !1,
2570
+ readonly: a(n)._readonly ?? !1,
2571
+ "input-style": a(n).style,
2572
+ "input-class": a(r),
2573
+ tabindex: a(n).tabindex,
2574
+ "aria-label": a(n).ariaLabel,
2575
+ "aria-labelledby": a(n).ariaLabelledby,
2576
+ binary: a(n).binary ?? !0,
2577
+ "true-value": a(n).trueValue ?? void 0,
2578
+ "false-value": a(n).falseValue ?? void 0,
2579
+ onInput: l
2574
2580
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value"]),
2575
- l(t).attrs.labelRight ? (O(), A("span", Nr, me(l(t).attrs.labelRight), 1)) : le("", !0)
2581
+ a(t).attrs.labelRight ? (O(), A("span", Nl, be(a(t).attrs.labelRight), 1)) : re("", !0)
2576
2582
  ]);
2577
2583
  };
2578
2584
  }
2579
- }), Hr = /* @__PURE__ */ P({
2585
+ }), Hl = /* @__PURE__ */ P({
2580
2586
  __name: "PrimeChips",
2581
2587
  props: {
2582
2588
  context: Object
2583
2589
  },
2584
2590
  setup(e) {
2585
2591
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2586
- function r(a) {
2587
- var s;
2588
- t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
2592
+ function l(s) {
2593
+ var o;
2594
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2589
2595
  }
2590
- return (a, s) => {
2591
- const o = j("Chips");
2596
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2597
+ return (s, o) => {
2598
+ const u = T("Chips");
2592
2599
  return O(), A("div", null, [
2593
- F(o, {
2594
- modelValue: l(t)._value,
2595
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2596
- "input-id": l(t).id,
2597
- disabled: l(n)._disabled ?? !1,
2598
- readonly: l(n)._readonly ?? !1,
2599
- "input-style": l(n).style,
2600
- "input-class": l(n).class,
2601
- tabindex: l(n).tabindex,
2602
- "aria-label": l(n).ariaLabel,
2603
- "aria-labelledby": l(n).ariaLabelledby,
2604
- "allow-duplicate": l(n).allowDuplicate ?? !0,
2605
- "add-on-blur": l(n).addOnBlur ?? !1,
2606
- max: l(n).max ?? void 0,
2607
- placeholder: l(n).placeholder,
2608
- separator: l(n).separator,
2609
- onAdd: r,
2610
- onRemove: r
2600
+ D(u, {
2601
+ modelValue: a(t)._value,
2602
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2603
+ "input-id": a(t).id,
2604
+ disabled: a(n)._disabled ?? !1,
2605
+ readonly: a(n)._readonly ?? !1,
2606
+ "input-style": a(n).style,
2607
+ "input-class": a(r),
2608
+ tabindex: a(n).tabindex,
2609
+ "aria-label": a(n).ariaLabel,
2610
+ "aria-labelledby": a(n).ariaLabelledby,
2611
+ "allow-duplicate": a(n).allowDuplicate ?? !0,
2612
+ "add-on-blur": a(n).addOnBlur ?? !1,
2613
+ max: a(n).max ?? void 0,
2614
+ placeholder: a(n).placeholder,
2615
+ separator: a(n).separator,
2616
+ onAdd: l,
2617
+ onRemove: l
2611
2618
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "allow-duplicate", "add-on-blur", "max", "placeholder", "separator"])
2612
2619
  ]);
2613
2620
  };
2614
2621
  }
2615
- }), Zr = /* @__PURE__ */ P({
2622
+ }), Zl = /* @__PURE__ */ P({
2616
2623
  __name: "PrimeColorPicker",
2617
2624
  props: {
2618
2625
  context: Object
2619
2626
  },
2620
2627
  setup(e) {
2621
2628
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2622
- function r(a) {
2629
+ function l(r) {
2623
2630
  var s;
2624
2631
  t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
2625
2632
  }
2626
- return (a, s) => {
2627
- const o = j("ColorPicker");
2633
+ return (r, s) => {
2634
+ const o = T("ColorPicker");
2628
2635
  return O(), A("div", null, [
2629
- F(o, {
2630
- modelValue: l(t)._value,
2631
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2632
- disabled: l(n)._disabled ?? !1,
2633
- readonly: l(n)._readonly ?? !1,
2634
- style: ue(l(n).style),
2635
- "panel-class": l(n).class,
2636
- tabindex: l(n).tabindex,
2637
- "aria-label": l(n).ariaLabel,
2638
- "aria-labelledby": l(n).ariaLabelledby,
2639
- "default-color": l(n).defaultColor ?? "ff0000",
2640
- inline: l(n).inline ?? !1,
2641
- format: l(n).format,
2642
- onChange: r
2636
+ D(o, {
2637
+ modelValue: a(t)._value,
2638
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => a(t)._value = u),
2639
+ disabled: a(n)._disabled ?? !1,
2640
+ readonly: a(n)._readonly ?? !1,
2641
+ style: fe(a(n).style),
2642
+ "panel-class": a(n).class,
2643
+ tabindex: a(n).tabindex,
2644
+ "aria-label": a(n).ariaLabel,
2645
+ "aria-labelledby": a(n).ariaLabelledby,
2646
+ "default-color": a(n).defaultColor ?? "ff0000",
2647
+ inline: a(n).inline ?? !1,
2648
+ format: a(n).format,
2649
+ onChange: l
2643
2650
  }, null, 8, ["modelValue", "disabled", "readonly", "style", "panel-class", "tabindex", "aria-label", "aria-labelledby", "default-color", "inline", "format"])
2644
2651
  ]);
2645
2652
  };
2646
2653
  }
2647
- }), Yr = /* @__PURE__ */ P({
2654
+ }), Yl = /* @__PURE__ */ P({
2648
2655
  __name: "PrimeDropdown",
2649
2656
  props: {
2650
2657
  context: Object
2651
2658
  },
2652
2659
  setup(e) {
2653
2660
  const t = e.context, n = t == null ? void 0 : t.attrs;
2654
- function r(s) {
2655
- t == null || t.handlers.blur(s.value);
2661
+ function l(o) {
2662
+ t == null || t.handlers.blur(o.value);
2656
2663
  }
2657
- function a(s) {
2658
- t == null || t.node.input(s.value);
2664
+ function r(o) {
2665
+ t == null || t.node.input(o.value);
2659
2666
  }
2660
- return (s, o) => {
2661
- const c = j("Dropdown");
2667
+ const s = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2668
+ return (o, u) => {
2669
+ const b = T("Dropdown");
2662
2670
  return O(), A("div", null, [
2663
- F(c, {
2664
- modelValue: l(t)._value,
2665
- "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
2666
- "input-id": l(t).id,
2667
- disabled: l(n)._disabled ?? !1,
2668
- readonly: l(n)._readonly ?? !1,
2669
- "input-style": l(n).style,
2670
- "input-class": l(n).class,
2671
- tabindex: l(n).tabindex,
2672
- "aria-label": l(n).ariaLabel,
2673
- "aria-labelledby": l(n).ariaLabelledby,
2674
- options: l(n).options,
2675
- "option-label": l(n).optionLabel ?? "label",
2676
- "option-value": l(n).optionValue ?? "value",
2677
- placeholder: l(n).placeholder,
2678
- filter: l(n).filter ?? !1,
2679
- "show-clear": l(n).showClear ?? !1,
2680
- onChange: a,
2681
- onBlur: r
2671
+ D(b, {
2672
+ modelValue: a(t)._value,
2673
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2674
+ "input-id": a(t).id,
2675
+ disabled: a(n)._disabled ?? !1,
2676
+ readonly: a(n)._readonly ?? !1,
2677
+ "input-style": a(s),
2678
+ "input-class": a(n).class,
2679
+ tabindex: a(n).tabindex,
2680
+ "aria-label": a(n).ariaLabel,
2681
+ "aria-labelledby": a(n).ariaLabelledby,
2682
+ options: a(n).options,
2683
+ "option-label": a(n).optionLabel ?? "label",
2684
+ "option-value": a(n).optionValue ?? "value",
2685
+ placeholder: a(n).placeholder,
2686
+ filter: a(n).filter ?? !1,
2687
+ "show-clear": a(n).showClear ?? !1,
2688
+ onChange: r,
2689
+ onBlur: l
2682
2690
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "placeholder", "filter", "show-clear"])
2683
2691
  ]);
2684
2692
  };
2685
2693
  }
2686
- }), Jr = /* @__PURE__ */ P({
2694
+ }), Jl = /* @__PURE__ */ P({
2687
2695
  __name: "PrimeEditor",
2688
2696
  props: {
2689
2697
  context: Object
2690
2698
  },
2691
2699
  setup(e) {
2692
2700
  const t = e.context, n = t == null ? void 0 : t.attrs;
2693
- function r(s) {
2694
- t == null || t.node.input(s.htmlValue);
2701
+ function l(o) {
2702
+ t == null || t.node.input(o.htmlValue);
2695
2703
  }
2696
- function a(s) {
2697
- s.range === null && (t == null || t.handlers.blur(s.htmlValue));
2704
+ function r(o) {
2705
+ o.range === null && (t == null || t.handlers.blur(o.htmlValue));
2698
2706
  }
2699
- return (s, o) => {
2700
- const c = j("Editor");
2707
+ const s = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2708
+ return (o, u) => {
2709
+ const b = T("Editor");
2701
2710
  return O(), A("div", null, [
2702
- F(c, {
2703
- id: l(t).id,
2704
- modelValue: l(t)._value,
2705
- "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
2706
- disabled: l(n)._disabled ?? !1,
2707
- readonly: l(n)._readonly ?? !1,
2708
- "editor-style": l(n).style,
2709
- class: U(l(n).class),
2710
- tabindex: l(n).tabindex,
2711
- "aria-label": l(n).ariaLabel,
2712
- "aria-labelledby": l(n).ariaLabelledby,
2713
- placeholder: l(n).placeholder,
2714
- formats: l(n).formats,
2715
- modules: l(n).modules,
2716
- onTextChange: r,
2717
- onSelectionChange: a
2711
+ D(b, {
2712
+ id: a(t).id,
2713
+ modelValue: a(t)._value,
2714
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2715
+ disabled: a(n)._disabled ?? !1,
2716
+ readonly: a(n)._readonly ?? !1,
2717
+ "editor-style": a(n).style,
2718
+ class: q(a(s)),
2719
+ tabindex: a(n).tabindex,
2720
+ "aria-label": a(n).ariaLabel,
2721
+ "aria-labelledby": a(n).ariaLabelledby,
2722
+ placeholder: a(n).placeholder,
2723
+ formats: a(n).formats,
2724
+ modules: a(n).modules,
2725
+ onTextChange: l,
2726
+ onSelectionChange: r
2718
2727
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "editor-style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "formats", "modules"])
2719
2728
  ]);
2720
2729
  };
2721
2730
  }
2722
- }), Qr = /* @__PURE__ */ P({
2731
+ }), Ql = /* @__PURE__ */ P({
2723
2732
  __name: "PrimeInputMask",
2724
2733
  props: {
2725
2734
  context: Object
2726
2735
  },
2727
2736
  setup(e) {
2728
2737
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2729
- function r(a) {
2730
- var s, o;
2731
- t == null || t.node.input((s = i.context) == null ? void 0 : s._value), t == null || t.handlers.blur((o = i.context) == null ? void 0 : o._value);
2738
+ function l(s) {
2739
+ var o, u;
2740
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value), t == null || t.handlers.blur((u = i.context) == null ? void 0 : u._value);
2732
2741
  }
2733
- return (a, s) => {
2734
- const o = j("InputMask");
2742
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2743
+ return (s, o) => {
2744
+ const u = T("InputMask");
2735
2745
  return O(), A("div", null, [
2736
- F(o, {
2737
- id: l(t).id,
2738
- modelValue: l(t)._value,
2739
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2740
- disabled: l(n)._disabled ?? !1,
2741
- readonly: l(n)._readonly ?? !1,
2742
- "editor-style": l(n).style,
2743
- class: U(l(n).class),
2744
- tabindex: l(n).tabindex,
2745
- "aria-label": l(n).ariaLabel,
2746
- "aria-labelledby": l(n).ariaLabelledby,
2747
- placeholder: l(n).placeholder,
2748
- mask: l(n).mask ?? void 0,
2749
- "slot-char": l(n).slotChar ?? "_",
2750
- "auto-clear": l(n).autoClear ?? !0,
2751
- unmask: l(n).unmask ?? !1,
2752
- onBlur: r
2746
+ D(u, {
2747
+ id: a(t).id,
2748
+ modelValue: a(t)._value,
2749
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2750
+ disabled: a(n)._disabled ?? !1,
2751
+ readonly: a(n)._readonly ?? !1,
2752
+ "editor-style": a(n).style,
2753
+ class: q(a(r)),
2754
+ tabindex: a(n).tabindex,
2755
+ "aria-label": a(n).ariaLabel,
2756
+ "aria-labelledby": a(n).ariaLabelledby,
2757
+ placeholder: a(n).placeholder,
2758
+ mask: a(n).mask ?? void 0,
2759
+ "slot-char": a(n).slotChar ?? "_",
2760
+ "auto-clear": a(n).autoClear ?? !0,
2761
+ unmask: a(n).unmask ?? !1,
2762
+ onBlur: l
2753
2763
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "editor-style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "mask", "slot-char", "auto-clear", "unmask"])
2754
2764
  ]);
2755
2765
  };
2756
2766
  }
2757
- }), Gr = /* @__PURE__ */ P({
2767
+ }), Gl = /* @__PURE__ */ P({
2758
2768
  __name: "PrimeInputNumber",
2759
2769
  props: {
2760
2770
  context: Object
2761
2771
  },
2762
2772
  setup(e) {
2763
2773
  const t = e.context, n = t == null ? void 0 : t.attrs;
2764
- function r(s) {
2765
- t == null || t.handlers.blur(s.value);
2774
+ function l(o) {
2775
+ t == null || t.handlers.blur(o.value);
2766
2776
  }
2767
- function a(s) {
2768
- t == null || t.node.input(s.value);
2777
+ function r(o) {
2778
+ t == null || t.node.input(o.value);
2769
2779
  }
2770
- return (s, o) => {
2771
- const c = j("InputNumber");
2780
+ const s = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2781
+ return (o, u) => {
2782
+ const b = T("InputNumber");
2772
2783
  return O(), A("div", null, [
2773
- F(c, {
2774
- modelValue: l(t)._value,
2775
- "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
2776
- "input-id": l(t).id,
2777
- disabled: l(n)._disabled ?? !1,
2778
- readonly: l(n)._readonly ?? !1,
2779
- "input-style": l(n).style,
2780
- "input-class": l(n).class,
2781
- tabindex: l(n).tabindex,
2782
- "aria-label": l(n).ariaLabel,
2783
- "aria-labelledby": l(n).ariaLabelledby,
2784
- placeholder: l(n).placeholder,
2785
- "use-grouping": l(n).useGrouping ?? !0,
2786
- "min-fraction-digits": l(n).minFractionDigits ?? void 0,
2787
- "max-fraction-digits": l(n).maxFractionDigits ?? void 0,
2788
- locale: l(n).locale ?? void 0,
2789
- mode: l(n).mode ?? void 0,
2790
- currency: l(n).currency ?? void 0,
2791
- prefix: l(n).prefix ?? void 0,
2792
- suffix: l(n).suffix ?? void 0,
2793
- "show-buttons": l(n).showButtons ?? void 0,
2794
- "button-layout": l(n).buttonLayout ?? "stacked",
2795
- step: l(n).step ?? void 0,
2796
- onInput: a,
2797
- onBlur: r
2784
+ D(b, {
2785
+ modelValue: a(t)._value,
2786
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2787
+ "input-id": a(t).id,
2788
+ disabled: a(n)._disabled ?? !1,
2789
+ readonly: a(n)._readonly ?? !1,
2790
+ "input-style": a(n).style,
2791
+ "input-class": a(s),
2792
+ tabindex: a(n).tabindex,
2793
+ "aria-label": a(n).ariaLabel,
2794
+ "aria-labelledby": a(n).ariaLabelledby,
2795
+ placeholder: a(n).placeholder,
2796
+ "use-grouping": a(n).useGrouping ?? !0,
2797
+ "min-fraction-digits": a(n).minFractionDigits ?? void 0,
2798
+ "max-fraction-digits": a(n).maxFractionDigits ?? void 0,
2799
+ locale: a(n).locale ?? void 0,
2800
+ mode: a(n).mode ?? void 0,
2801
+ currency: a(n).currency ?? void 0,
2802
+ prefix: a(n).prefix ?? void 0,
2803
+ suffix: a(n).suffix ?? void 0,
2804
+ "show-buttons": a(n).showButtons ?? void 0,
2805
+ "button-layout": a(n).buttonLayout ?? "stacked",
2806
+ step: a(n).step ?? void 0,
2807
+ onInput: r,
2808
+ onBlur: l
2798
2809
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "use-grouping", "min-fraction-digits", "max-fraction-digits", "locale", "mode", "currency", "prefix", "suffix", "show-buttons", "button-layout", "step"])
2799
2810
  ]);
2800
2811
  };
2801
2812
  }
2802
- }), Xr = {
2813
+ }), Xl = {
2803
2814
  key: 0,
2804
2815
  class: "formkit-prime-left"
2805
- }, el = {
2816
+ }, ea = {
2806
2817
  key: 1,
2807
2818
  class: "formkit-prime-right"
2808
- }, tl = /* @__PURE__ */ P({
2819
+ }, ta = /* @__PURE__ */ P({
2809
2820
  __name: "PrimeInputSwitch",
2810
2821
  props: {
2811
2822
  context: Object
2812
2823
  },
2813
2824
  setup(e) {
2814
2825
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2815
- function r(a) {
2816
- var s;
2817
- t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
2826
+ function l(s) {
2827
+ var o;
2828
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2818
2829
  }
2819
- return (a, s) => {
2820
- const o = j("InputSwitch");
2830
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2831
+ return (s, o) => {
2832
+ const u = T("InputSwitch");
2821
2833
  return O(), A("div", null, [
2822
- l(t).attrs.labelLeft ? (O(), A("span", Xr, me(l(t).attrs.labelLeft), 1)) : le("", !0),
2823
- F(o, {
2824
- modelValue: l(t)._value,
2825
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2826
- "input-id": l(t).id,
2827
- disabled: l(n)._disabled ?? !1,
2828
- readonly: l(n)._readonly ?? !1,
2829
- "input-style": l(n).style,
2830
- "input-class": l(n).class,
2831
- tabindex: l(n).tabindex,
2832
- "aria-label": l(n).ariaLabel,
2833
- "aria-labelledby": l(n).ariaLabelledby,
2834
- "true-value": l(n).trueValue ?? void 0,
2835
- "false-value": l(n).falseValue ?? void 0,
2836
- onInput: r
2834
+ a(t).attrs.labelLeft ? (O(), A("span", Xl, be(a(t).attrs.labelLeft), 1)) : re("", !0),
2835
+ D(u, {
2836
+ modelValue: a(t)._value,
2837
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2838
+ "input-id": a(t).id,
2839
+ disabled: a(n)._disabled ?? !1,
2840
+ readonly: a(n)._readonly ?? !1,
2841
+ "input-style": a(n).style,
2842
+ "input-class": a(r),
2843
+ tabindex: a(n).tabindex,
2844
+ "aria-label": a(n).ariaLabel,
2845
+ "aria-labelledby": a(n).ariaLabelledby,
2846
+ "true-value": a(n).trueValue ?? void 0,
2847
+ "false-value": a(n).falseValue ?? void 0,
2848
+ onInput: l
2837
2849
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value"]),
2838
- l(t).attrs.labelRight ? (O(), A("span", el, me(l(t).attrs.labelRight), 1)) : le("", !0)
2850
+ a(t).attrs.labelRight ? (O(), A("span", ea, be(a(t).attrs.labelRight), 1)) : re("", !0)
2839
2851
  ]);
2840
2852
  };
2841
2853
  }
2842
- }), nl = /* @__PURE__ */ P({
2854
+ }), na = /* @__PURE__ */ P({
2843
2855
  __name: "PrimeInputText",
2844
2856
  props: {
2845
2857
  context: Object
2846
2858
  },
2847
2859
  setup(e) {
2848
- const t = e.context, n = t == null ? void 0 : t.attrs, r = () => (t == null ? void 0 : t.iconLeft) && (t == null ? void 0 : t.iconLeft.length) > 0, a = () => (t == null ? void 0 : t.iconRight) && (t == null ? void 0 : t.iconRight.length) > 0, s = () => {
2849
- let y = "";
2850
- return r() && (y = `${y}p-input-icon-left `), a() && (y = `${y}p-input-icon-right `), y;
2851
- };
2852
- function o(y) {
2853
- t == null || t.handlers.blur(y.target.value);
2860
+ const t = e.context, n = t == null ? void 0 : t.attrs;
2861
+ function l() {
2862
+ return (t == null ? void 0 : t.iconLeft) && (t == null ? void 0 : t.iconLeft.length) > 0;
2863
+ }
2864
+ function r() {
2865
+ return (t == null ? void 0 : t.iconRight) && (t == null ? void 0 : t.iconRight.length) > 0;
2866
+ }
2867
+ function s() {
2868
+ let h = "";
2869
+ return l() && (h = `${h}p-input-icon-left `), r() && (h = `${h}p-input-icon-right `), h;
2870
+ }
2871
+ function o(h) {
2872
+ t == null || t.handlers.blur(h.target.value);
2854
2873
  }
2855
- function c(y) {
2856
- t == null || t.node.input(y.target.value);
2874
+ function u(h) {
2875
+ t == null || t.node.input(h.target.value);
2857
2876
  }
2858
- return (y, w) => {
2859
- const v = j("InputText");
2877
+ const b = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2878
+ return (h, _) => {
2879
+ const v = T("InputText");
2860
2880
  return O(), A("div", null, [
2861
- wn("span", {
2862
- class: U(s())
2881
+ kn("span", {
2882
+ class: q(s())
2863
2883
  }, [
2864
- r() ? (O(), A("i", {
2884
+ l() ? (O(), A("i", {
2865
2885
  key: 0,
2866
- class: U(l(t).iconLeft)
2867
- }, null, 2)) : le("", !0),
2868
- F(v, {
2869
- id: l(t).id,
2870
- modelValue: l(t)._value,
2871
- "onUpdate:modelValue": w[0] || (w[0] = (h) => l(t)._value = h),
2872
- disabled: l(n)._disabled ?? !1,
2873
- readonly: l(n)._readonly ?? !1,
2874
- style: ue(l(n).style),
2875
- class: U(l(n).class),
2876
- tabindex: l(n).tabindex,
2877
- "aria-label": l(n).ariaLabel,
2878
- "aria-labelledby": l(n).ariaLabelledby,
2879
- placeholder: l(n).placeholder,
2880
- onInput: c,
2886
+ class: q(a(t).iconLeft)
2887
+ }, null, 2)) : re("", !0),
2888
+ D(v, {
2889
+ id: a(t).id,
2890
+ modelValue: a(t)._value,
2891
+ "onUpdate:modelValue": _[0] || (_[0] = (w) => a(t)._value = w),
2892
+ disabled: a(n)._disabled ?? !1,
2893
+ readonly: a(n)._readonly ?? !1,
2894
+ style: fe(a(n).style),
2895
+ class: q(a(b)),
2896
+ tabindex: a(n).tabindex,
2897
+ "aria-label": a(n).ariaLabel,
2898
+ "aria-labelledby": a(n).ariaLabelledby,
2899
+ placeholder: a(n).placeholder,
2900
+ onInput: u,
2881
2901
  onBlur: o
2882
2902
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder"]),
2883
- a ? (O(), A("i", {
2903
+ r ? (O(), A("i", {
2884
2904
  key: 1,
2885
- class: U(l(t).iconRight)
2886
- }, null, 2)) : le("", !0)
2905
+ class: q(a(t).iconRight)
2906
+ }, null, 2)) : re("", !0)
2887
2907
  ], 2)
2888
2908
  ]);
2889
2909
  };
2890
2910
  }
2891
- }), il = /* @__PURE__ */ P({
2911
+ }), ia = /* @__PURE__ */ P({
2892
2912
  __name: "PrimeTextarea",
2893
2913
  props: {
2894
2914
  context: Object
2895
2915
  },
2896
2916
  setup(e) {
2897
2917
  const t = e.context, n = t == null ? void 0 : t.attrs;
2898
- function r(s) {
2899
- t == null || t.handlers.blur(s.target.value);
2918
+ function l(o) {
2919
+ t == null || t.handlers.blur(o.target.value);
2900
2920
  }
2901
- function a(s) {
2902
- t == null || t.node.input(s.target.value);
2921
+ function r(o) {
2922
+ t == null || t.node.input(o.target.value);
2903
2923
  }
2904
- return (s, o) => {
2905
- const c = j("Textarea");
2924
+ const s = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2925
+ return (o, u) => {
2926
+ const b = T("Textarea");
2906
2927
  return O(), A("div", null, [
2907
- F(c, {
2908
- id: l(t).id,
2909
- modelValue: l(t)._value,
2910
- "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
2911
- disabled: l(n)._disabled ?? !1,
2912
- readonly: l(n)._readonly ?? !1,
2913
- style: ue(l(n).style),
2914
- class: U(l(n).class),
2915
- tabindex: l(n).tabindex,
2916
- "aria-label": l(n).ariaLabel,
2917
- "aria-labelledby": l(n).ariaLabelledby,
2918
- placeholder: l(n).placeholder,
2919
- rows: l(t).rows ?? 3,
2920
- onInput: a,
2921
- onBlur: r
2928
+ D(b, {
2929
+ id: a(t).id,
2930
+ modelValue: a(t)._value,
2931
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2932
+ disabled: a(n)._disabled ?? !1,
2933
+ readonly: a(n)._readonly ?? !1,
2934
+ style: fe(a(n).style),
2935
+ class: q(a(s)),
2936
+ tabindex: a(n).tabindex,
2937
+ "aria-label": a(n).ariaLabel,
2938
+ "aria-labelledby": a(n).ariaLabelledby,
2939
+ placeholder: a(n).placeholder,
2940
+ rows: a(t).rows ?? 3,
2941
+ onInput: r,
2942
+ onBlur: l
2922
2943
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "rows"])
2923
2944
  ]);
2924
2945
  };
2925
2946
  }
2926
- }), rl = /* @__PURE__ */ P({
2947
+ }), la = /* @__PURE__ */ P({
2927
2948
  __name: "PrimeKnob",
2928
2949
  props: {
2929
2950
  context: Object
2930
2951
  },
2931
2952
  setup(e) {
2932
2953
  const t = e.context, n = t == null ? void 0 : t.attrs;
2933
- function r(a) {
2934
- t == null || t.node.input(a), t == null || t.handlers.blur(a);
2954
+ function l(r) {
2955
+ t == null || t.node.input(r), t == null || t.handlers.blur(r);
2935
2956
  }
2936
- return (a, s) => {
2937
- const o = j("Knob");
2957
+ return M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`), (r, s) => {
2958
+ const o = T("Knob");
2938
2959
  return O(), A("div", null, [
2939
- F(o, {
2940
- id: l(t).id,
2941
- modelValue: l(t)._value,
2942
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2943
- disabled: l(n)._disabled ?? !1,
2944
- readonly: l(n)._readonly ?? !1,
2945
- style: ue(l(n).style),
2946
- class: U(l(n).class),
2947
- tabindex: l(n).tabindex,
2948
- "aria-label": l(n).ariaLabel,
2949
- "aria-labelledby": l(n).ariaLabelledby,
2950
- min: l(n).min ?? 0,
2951
- max: l(n).max ?? 100,
2952
- step: l(n).step ?? void 0,
2953
- size: l(n).size ?? 100,
2954
- "stroke-width": l(n).strokeWidth ?? 14,
2955
- "show-value": l(n).showValue ?? !0,
2956
- "value-color": l(n).valueColor ?? void 0,
2957
- "range-color": l(n).rangeColor ?? void 0,
2958
- "text-color": l(n).textColor ?? void 0,
2959
- "value-template": l(n).valueTemplate ?? void 0,
2960
- onChange: r
2960
+ D(o, {
2961
+ id: a(t).id,
2962
+ modelValue: a(t)._value,
2963
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => a(t)._value = u),
2964
+ disabled: a(n)._disabled ?? !1,
2965
+ readonly: a(n)._readonly ?? !1,
2966
+ style: fe(a(n).style),
2967
+ class: q(r.styleClasss),
2968
+ tabindex: a(n).tabindex,
2969
+ "aria-label": a(n).ariaLabel,
2970
+ "aria-labelledby": a(n).ariaLabelledby,
2971
+ min: a(n).min ?? 0,
2972
+ max: a(n).max ?? 100,
2973
+ step: a(n).step ?? void 0,
2974
+ size: a(n).size ?? 100,
2975
+ "stroke-width": a(n).strokeWidth ?? 14,
2976
+ "show-value": a(n).showValue ?? !0,
2977
+ "value-color": a(n).valueColor ?? void 0,
2978
+ "range-color": a(n).rangeColor ?? void 0,
2979
+ "text-color": a(n).textColor ?? void 0,
2980
+ "value-template": a(n).valueTemplate ?? void 0,
2981
+ onChange: l
2961
2982
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "min", "max", "step", "size", "stroke-width", "show-value", "value-color", "range-color", "text-color", "value-template"])
2962
2983
  ]);
2963
2984
  };
2964
2985
  }
2965
- }), ll = /* @__PURE__ */ P({
2986
+ }), aa = /* @__PURE__ */ P({
2966
2987
  __name: "PrimeMultiSelect",
2967
2988
  props: {
2968
2989
  context: Object
2969
2990
  },
2970
2991
  setup(e) {
2971
2992
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
2972
- function r(a) {
2973
- var s;
2974
- t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
2993
+ function l(s) {
2994
+ var o;
2995
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
2975
2996
  }
2976
- return (a, s) => {
2977
- const o = j("MultiSelect");
2997
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
2998
+ return (s, o) => {
2999
+ const u = T("MultiSelect");
2978
3000
  return O(), A("div", null, [
2979
- F(o, {
2980
- modelValue: l(t)._value,
2981
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
2982
- "input-id": l(t).id,
2983
- disabled: l(n)._disabled ?? !1,
2984
- readonly: l(n)._readonly ?? !1,
2985
- "list-style": l(n).style,
2986
- class: U(l(n).class),
2987
- tabindex: l(n).tabindex,
2988
- "aria-label": l(n).ariaLabel,
2989
- "aria-labelledby": l(n).ariaLabelledby,
2990
- options: l(n).options,
2991
- "option-label": l(n).optionLabel ?? "label",
2992
- "option-value": l(n).optionValue ?? "value",
2993
- filter: l(n).filter ?? !1,
2994
- onChange: r
3001
+ D(u, {
3002
+ modelValue: a(t)._value,
3003
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3004
+ "input-id": a(t).id,
3005
+ disabled: a(n)._disabled ?? !1,
3006
+ readonly: a(n)._readonly ?? !1,
3007
+ "list-style": a(n).style,
3008
+ class: q(a(r)),
3009
+ tabindex: a(n).tabindex,
3010
+ "aria-label": a(n).ariaLabel,
3011
+ "aria-labelledby": a(n).ariaLabelledby,
3012
+ options: a(n).options,
3013
+ "option-label": a(n).optionLabel ?? "label",
3014
+ "option-value": a(n).optionValue ?? "value",
3015
+ filter: a(n).filter ?? !1,
3016
+ onChange: l
2995
3017
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "list-style", "class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "filter"])
2996
3018
  ]);
2997
3019
  };
2998
3020
  }
2999
- }), al = /* @__PURE__ */ P({
3021
+ }), ra = /* @__PURE__ */ P({
3000
3022
  __name: "PrimeListbox",
3001
3023
  props: {
3002
3024
  context: Object
3003
3025
  },
3004
3026
  setup(e) {
3005
3027
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3006
- function r(a) {
3007
- var s;
3008
- t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
3028
+ function l(s) {
3029
+ var o;
3030
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3009
3031
  }
3010
- return (a, s) => {
3011
- var c;
3012
- const o = j("Listbox");
3032
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
3033
+ return (s, o) => {
3034
+ var b;
3035
+ const u = T("Listbox");
3013
3036
  return O(), A("div", null, [
3014
- F(o, {
3015
- id: l(t).id,
3016
- modelValue: l(t)._value,
3017
- "onUpdate:modelValue": s[0] || (s[0] = (y) => l(t)._value = y),
3018
- disabled: l(n)._disabled ?? !1,
3019
- readonly: l(n)._readonly ?? !1,
3020
- "list-style": l(n).style,
3021
- class: U(l(n).class),
3022
- tabindex: l(n).tabindex,
3023
- "aria-label": l(n).ariaLabel,
3024
- "aria-labelledby": l(n).ariaLabelledby,
3025
- options: (c = l(n)) == null ? void 0 : c.options,
3026
- "option-label": l(n).optionLabel ?? "label",
3027
- "option-value": l(n).optionValue ?? "value",
3028
- multiple: l(n).multiple ?? !1,
3029
- filter: l(n).filter ?? !1,
3030
- "filter-icon": l(n).filterIcon,
3031
- "filter-placeholder": l(n).filterPlaceholder,
3032
- "filter-locale": l(n).filterLocale,
3033
- "filter-match-mode": l(n).filterMatchMode,
3034
- "auto-option-focus": l(n).autoOptionFocus ?? !0,
3035
- "select-on-focus": l(n).selectOnFocus ?? !1,
3036
- onChange: r
3037
+ D(u, {
3038
+ id: a(t).id,
3039
+ modelValue: a(t)._value,
3040
+ "onUpdate:modelValue": o[0] || (o[0] = (h) => a(t)._value = h),
3041
+ disabled: a(n)._disabled ?? !1,
3042
+ readonly: a(n)._readonly ?? !1,
3043
+ "list-style": a(n).style,
3044
+ class: q(a(r)),
3045
+ tabindex: a(n).tabindex,
3046
+ "aria-label": a(n).ariaLabel,
3047
+ "aria-labelledby": a(n).ariaLabelledby,
3048
+ options: (b = a(n)) == null ? void 0 : b.options,
3049
+ "option-label": a(n).optionLabel ?? "label",
3050
+ "option-value": a(n).optionValue ?? "value",
3051
+ multiple: a(n).multiple ?? !1,
3052
+ filter: a(n).filter ?? !1,
3053
+ "filter-icon": a(n).filterIcon,
3054
+ "filter-placeholder": a(n).filterPlaceholder,
3055
+ "filter-locale": a(n).filterLocale,
3056
+ "filter-match-mode": a(n).filterMatchMode,
3057
+ "auto-option-focus": a(n).autoOptionFocus ?? !0,
3058
+ "select-on-focus": a(n).selectOnFocus ?? !1,
3059
+ onChange: l
3037
3060
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "list-style", "class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "multiple", "filter", "filter-icon", "filter-placeholder", "filter-locale", "filter-match-mode", "auto-option-focus", "select-on-focus"])
3038
3061
  ]);
3039
3062
  };
3040
3063
  }
3041
- }), sl = /* @__PURE__ */ P({
3064
+ }), sa = /* @__PURE__ */ P({
3042
3065
  __name: "PrimePassword",
3043
3066
  props: {
3044
3067
  context: Object
3045
3068
  },
3046
3069
  setup(e) {
3047
3070
  const t = e.context, n = t == null ? void 0 : t.attrs;
3048
- function r(s) {
3049
- t == null || t.handlers.blur(s.target.value);
3071
+ function l(o) {
3072
+ t == null || t.handlers.blur(o.target.value);
3050
3073
  }
3051
- function a(s) {
3052
- t == null || t.node.input(s.target.value);
3074
+ function r(o) {
3075
+ t == null || t.node.input(o.target.value);
3053
3076
  }
3054
- return (s, o) => {
3055
- const c = j("Password");
3077
+ const s = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
3078
+ return (o, u) => {
3079
+ const b = T("Password");
3056
3080
  return O(), A("div", null, [
3057
- F(c, {
3058
- modelValue: l(t)._value,
3059
- "onUpdate:modelValue": o[0] || (o[0] = (y) => l(t)._value = y),
3060
- "input-id": l(t).id,
3061
- disabled: l(n)._disabled ?? !1,
3062
- readonly: l(n)._readonly ?? !1,
3063
- "input-style": l(n).style,
3064
- "input-class": l(n).class,
3065
- tabindex: l(n).tabindex,
3066
- "aria-label": l(n).ariaLabel,
3067
- "aria-labelledby": l(n).ariaLabelledby,
3068
- placeholder: l(n).placeholder,
3069
- "medium-regex": l(n).mediumRegex ?? "^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})",
3070
- "strong-regex": l(n).strongRegex ?? "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})",
3071
- "prompt-label": l(n).promptLabel,
3072
- "weak-label": l(n).weakLabel,
3073
- "medium-label": l(n).mediumLabel,
3074
- "strong-label": l(n).strongLabel,
3075
- "hide-icon": l(n).hideIcon ?? "pi pi-eye-slash",
3076
- "show-icon": l(n).showIcon ?? "pi pi-eye",
3077
- feedback: l(t).feedback ?? !1,
3078
- "toggle-mask": l(t).toggleMask ?? !1,
3079
- onInput: a,
3080
- onBlur: r
3081
+ D(b, {
3082
+ modelValue: a(t)._value,
3083
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
3084
+ "input-id": a(t).id,
3085
+ disabled: a(n)._disabled ?? !1,
3086
+ readonly: a(n)._readonly ?? !1,
3087
+ "input-style": a(n).style,
3088
+ "input-class": a(s),
3089
+ tabindex: a(n).tabindex,
3090
+ "aria-label": a(n).ariaLabel,
3091
+ "aria-labelledby": a(n).ariaLabelledby,
3092
+ placeholder: a(n).placeholder,
3093
+ "medium-regex": a(n).mediumRegex ?? "^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})",
3094
+ "strong-regex": a(n).strongRegex ?? "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})",
3095
+ "prompt-label": a(n).promptLabel,
3096
+ "weak-label": a(n).weakLabel,
3097
+ "medium-label": a(n).mediumLabel,
3098
+ "strong-label": a(n).strongLabel,
3099
+ "hide-icon": a(n).hideIcon ?? "pi pi-eye-slash",
3100
+ "show-icon": a(n).showIcon ?? "pi pi-eye",
3101
+ feedback: a(t).feedback ?? !1,
3102
+ "toggle-mask": a(t).toggleMask ?? !1,
3103
+ onInput: r,
3104
+ onBlur: l
3081
3105
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "medium-regex", "strong-regex", "prompt-label", "weak-label", "medium-label", "strong-label", "hide-icon", "show-icon", "feedback", "toggle-mask"])
3082
3106
  ]);
3083
3107
  };
3084
3108
  }
3085
- }), ol = /* @__PURE__ */ P({
3109
+ }), oa = /* @__PURE__ */ P({
3086
3110
  __name: "PrimeRating",
3087
3111
  props: {
3088
3112
  context: Object
3089
3113
  },
3090
3114
  setup(e) {
3091
3115
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3092
- function r(a) {
3093
- var s;
3094
- t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
3116
+ function l(s) {
3117
+ var o;
3118
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3095
3119
  }
3096
- return (a, s) => {
3097
- const o = j("Rating");
3120
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
3121
+ return (s, o) => {
3122
+ const u = T("Rating");
3098
3123
  return O(), A("div", null, [
3099
- F(o, {
3100
- id: l(t).id,
3101
- modelValue: l(t)._value,
3102
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
3103
- disabled: l(n)._disabled ?? !1,
3104
- readonly: l(n)._readonly ?? !1,
3105
- style: ue(l(n).style),
3106
- class: U(l(n).class),
3107
- tabindex: l(n).tabindex,
3108
- "aria-label": l(n).ariaLabel,
3109
- "aria-labelledby": l(n).ariaLabelledby,
3110
- stars: l(n).stars ?? 5,
3111
- cancel: l(n).cancel ?? !1,
3112
- "on-icon": l(n).onIcon ?? "pi pi-star-fill",
3113
- "off-icon": l(n).offIcon ?? "pi pi-star",
3114
- "cancel-icon": l(n).cancelIcon ?? "pi pi-ban",
3115
- onChange: r
3124
+ D(u, {
3125
+ id: a(t).id,
3126
+ modelValue: a(t)._value,
3127
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3128
+ disabled: a(n)._disabled ?? !1,
3129
+ readonly: a(n)._readonly ?? !1,
3130
+ style: fe(a(n).style),
3131
+ class: q(a(r)),
3132
+ tabindex: a(n).tabindex,
3133
+ "aria-label": a(n).ariaLabel,
3134
+ "aria-labelledby": a(n).ariaLabelledby,
3135
+ stars: a(n).stars ?? 5,
3136
+ cancel: a(n).cancel ?? !1,
3137
+ "on-icon": a(n).onIcon ?? "pi pi-star-fill",
3138
+ "off-icon": a(n).offIcon ?? "pi pi-star",
3139
+ "cancel-icon": a(n).cancelIcon ?? "pi pi-ban",
3140
+ onChange: l
3116
3141
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "stars", "cancel", "on-icon", "off-icon", "cancel-icon"])
3117
3142
  ]);
3118
3143
  };
3119
3144
  }
3120
- }), ul = /* @__PURE__ */ P({
3145
+ }), ua = /* @__PURE__ */ P({
3121
3146
  __name: "PrimeSlider",
3122
3147
  props: {
3123
3148
  context: Object
3124
3149
  },
3125
3150
  setup(e) {
3126
3151
  const t = e.context, n = t == null ? void 0 : t.attrs;
3127
- function r(a) {
3128
- t == null || t.node.input(a), t == null || t.handlers.blur(a);
3152
+ function l(s) {
3153
+ t == null || t.node.input(s), t == null || t.handlers.blur(s);
3129
3154
  }
3130
- return (a, s) => {
3131
- const o = j("Slider");
3155
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
3156
+ return (s, o) => {
3157
+ const u = T("Slider");
3132
3158
  return O(), A("div", null, [
3133
- F(o, {
3134
- id: l(t).id,
3135
- modelValue: l(t)._value,
3136
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
3137
- disabled: l(n)._disabled ?? !1,
3138
- readonly: l(n)._readonly ?? !1,
3139
- style: ue(l(n).style),
3140
- class: U(l(n).class),
3141
- tabindex: l(n).tabindex,
3142
- "aria-label": l(n).ariaLabel,
3143
- "aria-labelledby": l(n).ariaLabelledby,
3144
- min: l(n).min ?? 0,
3145
- max: l(n).max ?? 100,
3146
- step: l(n).step ?? void 0,
3147
- range: l(n).range ?? !1,
3148
- orientation: l(n).orientation ?? "horizontal",
3149
- onChange: r
3159
+ D(u, {
3160
+ id: a(t).id,
3161
+ modelValue: a(t)._value,
3162
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3163
+ disabled: a(n)._disabled ?? !1,
3164
+ readonly: a(n)._readonly ?? !1,
3165
+ style: fe(a(n).style),
3166
+ class: q(a(r)),
3167
+ tabindex: a(n).tabindex,
3168
+ "aria-label": a(n).ariaLabel,
3169
+ "aria-labelledby": a(n).ariaLabelledby,
3170
+ min: a(n).min ?? 0,
3171
+ max: a(n).max ?? 100,
3172
+ step: a(n).step ?? void 0,
3173
+ range: a(n).range ?? !1,
3174
+ orientation: a(n).orientation ?? "horizontal",
3175
+ onChange: l
3150
3176
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "min", "max", "step", "range", "orientation"])
3151
3177
  ]);
3152
3178
  };
3153
3179
  }
3154
- }), fl = /* @__PURE__ */ P({
3180
+ }), fa = /* @__PURE__ */ P({
3155
3181
  __name: "PrimeToggleButton",
3156
3182
  props: {
3157
3183
  context: Object
3158
3184
  },
3159
3185
  setup(e) {
3160
3186
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3161
- function r(a) {
3162
- var s;
3163
- t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
3187
+ function l(s) {
3188
+ var o;
3189
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3164
3190
  }
3165
- return (a, s) => {
3166
- const o = j("ToggleButton");
3191
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
3192
+ return (s, o) => {
3193
+ const u = T("ToggleButton");
3167
3194
  return O(), A("div", null, [
3168
- F(o, {
3169
- modelValue: l(t)._value,
3170
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
3171
- "input-id": l(t).id,
3172
- disabled: l(n)._disabled ?? !1,
3173
- readonly: l(n)._readonly ?? !1,
3174
- "input-style": l(n).style,
3175
- "input-class": l(n).class,
3176
- tabindex: l(n).tabindex,
3177
- "aria-label": l(n).ariaLabel,
3178
- "aria-labelledby": l(n).ariaLabelledby,
3179
- "on-label": l(n).onLabel ?? "Yes",
3180
- "off-label": l(n).offLabel ?? "No",
3181
- "on-icon": l(n).onIcon ?? "pi pi-check",
3182
- "off-icon": l(n).offIcon ?? "pi pi-times",
3183
- "icon-pos": l(n).iconPos ?? "left",
3184
- onChange: r
3195
+ D(u, {
3196
+ modelValue: a(t)._value,
3197
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3198
+ "input-id": a(t).id,
3199
+ disabled: a(n)._disabled ?? !1,
3200
+ readonly: a(n)._readonly ?? !1,
3201
+ "input-style": a(n).style,
3202
+ "input-class": a(r),
3203
+ tabindex: a(n).tabindex,
3204
+ "aria-label": a(n).ariaLabel,
3205
+ "aria-labelledby": a(n).ariaLabelledby,
3206
+ "on-label": a(n).onLabel ?? "Yes",
3207
+ "off-label": a(n).offLabel ?? "No",
3208
+ "on-icon": a(n).onIcon ?? "pi pi-check",
3209
+ "off-icon": a(n).offIcon ?? "pi pi-times",
3210
+ "icon-pos": a(n).iconPos ?? "left",
3211
+ onChange: l
3185
3212
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "on-label", "off-label", "on-icon", "off-icon", "icon-pos"])
3186
3213
  ]);
3187
3214
  };
3188
3215
  }
3189
- }), cl = /* @__PURE__ */ P({
3216
+ }), ca = /* @__PURE__ */ P({
3190
3217
  __name: "PrimeSelectButton",
3191
3218
  props: {
3192
3219
  context: Object
3193
3220
  },
3194
3221
  setup(e) {
3195
3222
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3196
- function r(a) {
3197
- var s;
3198
- t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
3223
+ function l(s) {
3224
+ var o;
3225
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3199
3226
  }
3200
- return (a, s) => {
3201
- const o = j("SelectButton");
3227
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
3228
+ return (s, o) => {
3229
+ const u = T("SelectButton");
3202
3230
  return O(), A("div", null, [
3203
- F(o, {
3204
- id: l(t).id,
3205
- modelValue: l(t)._value,
3206
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
3207
- disabled: l(n)._disabled ?? !1,
3208
- readonly: l(n)._readonly ?? !1,
3209
- style: ue(l(n).style),
3210
- class: U(l(n).class),
3211
- tabindex: l(n).tabindex,
3212
- "aria-label": l(n).ariaLabel,
3213
- "aria-labelledby": l(n).ariaLabelledby,
3214
- options: l(n).options,
3215
- "option-label": l(n).optionLabel ?? "label",
3216
- "option-value": l(n).optionValue ?? "value",
3217
- "option-disabled": l(n).optionDisabled,
3218
- multiple: l(n).multiple ?? !1,
3219
- unselectable: l(n).unselectable ?? !0,
3220
- "data-key": l(n).dataKey,
3221
- onChange: r
3231
+ D(u, {
3232
+ id: a(t).id,
3233
+ modelValue: a(t)._value,
3234
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3235
+ disabled: a(n)._disabled ?? !1,
3236
+ readonly: a(n)._readonly ?? !1,
3237
+ style: fe(a(n).style),
3238
+ class: q(a(r)),
3239
+ tabindex: a(n).tabindex,
3240
+ "aria-label": a(n).ariaLabel,
3241
+ "aria-labelledby": a(n).ariaLabelledby,
3242
+ options: a(n).options,
3243
+ "option-label": a(n).optionLabel ?? "label",
3244
+ "option-value": a(n).optionValue ?? "value",
3245
+ "option-disabled": a(n).optionDisabled,
3246
+ multiple: a(n).multiple ?? !1,
3247
+ unselectable: a(n).unselectable ?? !0,
3248
+ "data-key": a(n).dataKey,
3249
+ onChange: l
3222
3250
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "option-disabled", "multiple", "unselectable", "data-key"])
3223
3251
  ]);
3224
3252
  };
3225
3253
  }
3226
- }), pl = {
3254
+ }), pa = {
3227
3255
  key: 0,
3228
3256
  class: "formkit-prime-left"
3229
- }, dl = {
3257
+ }, da = {
3230
3258
  key: 1,
3231
3259
  class: "formkit-prime-right"
3232
- }, ml = /* @__PURE__ */ P({
3260
+ }, ma = /* @__PURE__ */ P({
3233
3261
  __name: "PrimeTriStateCheckbox",
3234
3262
  props: {
3235
3263
  context: Object
3236
3264
  },
3237
3265
  setup(e) {
3238
3266
  const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3239
- function r(a) {
3240
- var s;
3241
- t == null || t.node.input((s = i.context) == null ? void 0 : s._value);
3267
+ function l(s) {
3268
+ var o;
3269
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3242
3270
  }
3243
- return (a, s) => {
3244
- const o = j("TriStateCheckbox");
3271
+ const r = M(() => t != null && t.state.valid ? n == null ? void 0 : n.class : `${n == null ? void 0 : n.class} p-invalid`);
3272
+ return (s, o) => {
3273
+ const u = T("TriStateCheckbox");
3245
3274
  return O(), A("div", null, [
3246
- l(t).attrs.labelLeft ? (O(), A("span", pl, me(l(t).attrs.labelLeft), 1)) : le("", !0),
3247
- F(o, {
3248
- modelValue: l(t)._value,
3249
- "onUpdate:modelValue": s[0] || (s[0] = (c) => l(t)._value = c),
3250
- "input-id": l(t).id,
3251
- disabled: l(n)._disabled ?? !1,
3252
- readonly: l(n)._readonly ?? !1,
3253
- "input-style": l(n).style,
3254
- "input-class": l(n).class,
3255
- tabindex: l(n).tabindex,
3256
- "aria-label": l(n).ariaLabel,
3257
- "aria-labelledby": l(n).ariaLabelledby,
3258
- onClick: r
3275
+ a(t).attrs.labelLeft ? (O(), A("span", pa, be(a(t).attrs.labelLeft), 1)) : re("", !0),
3276
+ D(u, {
3277
+ modelValue: a(t)._value,
3278
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3279
+ "input-id": a(t).id,
3280
+ disabled: a(n)._disabled ?? !1,
3281
+ readonly: a(n)._readonly ?? !1,
3282
+ "input-style": a(n).style,
3283
+ "input-class": a(r),
3284
+ tabindex: a(n).tabindex,
3285
+ "aria-label": a(n).ariaLabel,
3286
+ "aria-labelledby": a(n).ariaLabelledby,
3287
+ onClick: l
3259
3288
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby"]),
3260
- l(t).attrs.labelRight ? (O(), A("span", dl, me(l(t).attrs.labelRight), 1)) : le("", !0)
3289
+ a(t).attrs.labelRight ? (O(), A("span", da, be(a(t).attrs.labelRight), 1)) : re("", !0)
3261
3290
  ]);
3262
3291
  };
3263
3292
  }
3264
- }), bl = D(nl, {
3293
+ }), ba = B(na, {
3265
3294
  props: ["iconRight", "iconLeft"]
3266
- }), yl = D(Gr, {
3295
+ }), ya = B(Gl, {
3267
3296
  props: ["iconRight", "iconLeft"]
3268
- }), hl = D(Qr, {
3297
+ }), va = B(Ql, {
3269
3298
  props: []
3270
- }), vl = D(sl, {
3299
+ }), ha = B(sa, {
3271
3300
  props: ["feedback", "toggleMask"]
3272
- }), _l = D(il, {
3301
+ }), _a = B(ia, {
3273
3302
  props: ["rows"]
3274
- }), gl = D(Kr, {
3303
+ }), ga = B(Kl, {
3275
3304
  props: []
3276
- }), $l = D(tl, {
3305
+ }), $a = B(ta, {
3277
3306
  props: []
3278
- }), xl = D(Jr, {
3307
+ }), wa = B(Jl, {
3279
3308
  props: []
3280
- }), wl = D(Yr, {
3309
+ }), ka = B(Yl, {
3281
3310
  props: []
3282
- }), kl = D(ll, {
3311
+ }), Ca = B(aa, {
3283
3312
  props: []
3284
- }), Sl = D(al, {
3313
+ }), Sa = B(ra, {
3285
3314
  props: []
3286
- }), Cl = D(Ur, {
3315
+ }), xa = B(Ul, {
3287
3316
  props: []
3288
- }), Il = D(ul, {
3317
+ }), Ia = B(ua, {
3289
3318
  props: []
3290
- }), Vl = D(ol, {
3319
+ }), Va = B(oa, {
3291
3320
  props: []
3292
- }), Ll = D(Hr, {
3321
+ }), La = B(Hl, {
3293
3322
  props: []
3294
- }), Ol = D(rl, {
3323
+ }), Oa = B(la, {
3295
3324
  props: []
3296
- }), Al = D(Zr, {
3325
+ }), Aa = B(Zl, {
3297
3326
  props: []
3298
- }), Pl = D(fl, {
3327
+ }), Pa = B(fa, {
3299
3328
  props: []
3300
- }), El = D(cl, {
3329
+ }), Ea = B(ca, {
3301
3330
  props: []
3302
- }), Ml = D(ml, {
3331
+ }), Ma = B(ma, {
3303
3332
  props: []
3304
- }), jl = {
3305
- primeInputText: bl,
3306
- primeInputNumber: yl,
3307
- primeInputMask: hl,
3308
- primePassword: vl,
3309
- primeCheckbox: gl,
3310
- primeInputSwitch: $l,
3311
- primeTextarea: _l,
3312
- primeEditor: xl,
3313
- primeDropdown: wl,
3314
- primeMultiSelect: kl,
3315
- primeCalendar: Cl,
3316
- primeSlider: Il,
3317
- primeChips: Ll,
3318
- primeKnob: Ol,
3319
- primeRating: Vl,
3320
- primeColorPicker: Al,
3321
- primeToggleButton: Pl,
3322
- primeListbox: Sl,
3323
- primeSelectButton: El,
3324
- primeTriStateCheckbox: Ml
3333
+ }), ja = {
3334
+ primeInputText: ba,
3335
+ primeInputNumber: ya,
3336
+ primeInputMask: va,
3337
+ primePassword: ha,
3338
+ primeCheckbox: ga,
3339
+ primeInputSwitch: $a,
3340
+ primeTextarea: _a,
3341
+ primeEditor: wa,
3342
+ primeDropdown: ka,
3343
+ primeMultiSelect: Ca,
3344
+ primeCalendar: xa,
3345
+ primeSlider: Ia,
3346
+ primeChips: La,
3347
+ primeKnob: Oa,
3348
+ primeRating: Va,
3349
+ primeColorPicker: Aa,
3350
+ primeToggleButton: Pa,
3351
+ primeListbox: Sa,
3352
+ primeSelectButton: Ea,
3353
+ primeTriStateCheckbox: Ma
3325
3354
  };
3326
3355
  export {
3327
- Cl as primeCalendarDefinition,
3328
- gl as primeCheckboxDefinition,
3329
- Ll as primeChipsDefinition,
3330
- Al as primeColorPickerDefinition,
3331
- wl as primeDropdownDefinition,
3332
- xl as primeEditorDefinition,
3333
- hl as primeInputMaskDefinition,
3334
- yl as primeInputNumberDefinition,
3335
- $l as primeInputSwitchDefinition,
3336
- bl as primeInputTextDefinition,
3337
- jl as primeInputs,
3338
- Ol as primeKnobDefinition,
3339
- Sl as primeListboxDefinition,
3340
- kl as primeMultiSelectDefinition,
3341
- vl as primePasswordDefinition,
3342
- Vl as primeRatingDefinition,
3343
- El as primeSelectButtonDefinition,
3344
- Il as primeSliderDefinition,
3345
- _l as primeTextareaDefinition,
3346
- Pl as primeToggleButtonDefinition,
3347
- Ml as primeTriStateCheckboxDefinition
3356
+ xa as primeCalendarDefinition,
3357
+ ga as primeCheckboxDefinition,
3358
+ La as primeChipsDefinition,
3359
+ Aa as primeColorPickerDefinition,
3360
+ ka as primeDropdownDefinition,
3361
+ wa as primeEditorDefinition,
3362
+ va as primeInputMaskDefinition,
3363
+ ya as primeInputNumberDefinition,
3364
+ $a as primeInputSwitchDefinition,
3365
+ ba as primeInputTextDefinition,
3366
+ ja as primeInputs,
3367
+ Oa as primeKnobDefinition,
3368
+ Sa as primeListboxDefinition,
3369
+ Ca as primeMultiSelectDefinition,
3370
+ ha as primePasswordDefinition,
3371
+ Va as primeRatingDefinition,
3372
+ Ea as primeSelectButtonDefinition,
3373
+ Ia as primeSliderDefinition,
3374
+ _a as primeTextareaDefinition,
3375
+ Pa as primeToggleButtonDefinition,
3376
+ Ma as primeTriStateCheckboxDefinition
3348
3377
  };