@sfxcode/formkit-primevue 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formkit-primevue.es.js +770 -749
- package/dist/formkit-primevue.umd.js +1 -1
- package/package.json +17 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as M, getCurrentInstance as st, watch as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as M, getCurrentInstance as st, watch as ce, watchEffect as ee, reactive as $n, onUnmounted as wn, ref as ne, provide as Kt, h as we, computed as E, inject as he, onMounted as kn, toRef as Cn, onBeforeUnmount as Sn, markRaw as Vn, isRef as In, createTextVNode as Ln, resolveComponent as j, openBlock as L, createElementBlock as P, createVNode as D, unref as a, toDisplayString as pe, createCommentVNode as re, normalizeStyle as be, normalizeClass as U, createElementVNode as Nt, Fragment as Pn, renderList as An } from "vue";
|
|
2
|
+
const Wt = [
|
|
3
3
|
"__key",
|
|
4
4
|
"__init",
|
|
5
5
|
"__shim",
|
|
@@ -10,14 +10,14 @@ const Kt = [
|
|
|
10
10
|
function Ye() {
|
|
11
11
|
return Math.random().toString(36).substring(2, 15);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function On(e, i) {
|
|
14
14
|
const t = e instanceof Set ? e : new Set(e);
|
|
15
15
|
return i && i.forEach((n) => t.add(n)), [...t];
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function F(e, i) {
|
|
18
18
|
return Object.prototype.hasOwnProperty.call(e, i);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function ue(e, i, t = !0, n = ["__key"]) {
|
|
21
21
|
if (e === i)
|
|
22
22
|
return !0;
|
|
23
23
|
if (typeof i == "object" && typeof e == "object") {
|
|
@@ -26,20 +26,20 @@ function fe(e, i, t = !0, n = ["__key"]) {
|
|
|
26
26
|
if (e instanceof Date && i instanceof Date)
|
|
27
27
|
return e.getTime() === i.getTime();
|
|
28
28
|
if (e instanceof RegExp && i instanceof RegExp)
|
|
29
|
-
return
|
|
29
|
+
return xn(e, i);
|
|
30
30
|
if (e === null || i === null || Object.keys(e).length !== Object.keys(i).length)
|
|
31
31
|
return !1;
|
|
32
32
|
for (const l of n)
|
|
33
33
|
if ((l in e || l in i) && e[l] !== i[l])
|
|
34
34
|
return !1;
|
|
35
35
|
for (const l in e)
|
|
36
|
-
if (!(l in i) || e[l] !== i[l] && !t || t && !
|
|
36
|
+
if (!(l in i) || e[l] !== i[l] && !t || t && !ue(e[l], i[l], t, n))
|
|
37
37
|
return !1;
|
|
38
38
|
return !0;
|
|
39
39
|
}
|
|
40
40
|
return !1;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function xn(e, i) {
|
|
43
43
|
return e.source === i.source && e.flags.split("").sort().join("") === i.flags.split("").sort().join("");
|
|
44
44
|
}
|
|
45
45
|
function et(e) {
|
|
@@ -81,7 +81,7 @@ function Qe(e, i, t = !1, n = !1) {
|
|
|
81
81
|
if (typeof i == "string")
|
|
82
82
|
return i;
|
|
83
83
|
for (const s in e)
|
|
84
|
-
if (
|
|
84
|
+
if (F(i, s) && (i[s] !== void 0 || !n)) {
|
|
85
85
|
if (t && Array.isArray(e[s]) && Array.isArray(i[s])) {
|
|
86
86
|
l[s] = e[s].concat(i[s]);
|
|
87
87
|
continue;
|
|
@@ -92,10 +92,10 @@ function Qe(e, i, t = !1, n = !1) {
|
|
|
92
92
|
} else
|
|
93
93
|
l[s] = e[s];
|
|
94
94
|
for (const s in i)
|
|
95
|
-
!
|
|
95
|
+
!F(l, s) && i[s] !== void 0 && (l[s] = i[s]);
|
|
96
96
|
return l;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Mn(e) {
|
|
99
99
|
if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
|
|
100
100
|
return !1;
|
|
101
101
|
const i = e[0];
|
|
@@ -104,7 +104,7 @@ function On(e) {
|
|
|
104
104
|
return !1;
|
|
105
105
|
return !0;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Rn(e) {
|
|
108
108
|
if (!e.length)
|
|
109
109
|
return "";
|
|
110
110
|
let i = "", t = "";
|
|
@@ -120,7 +120,7 @@ function ye(...e) {
|
|
|
120
120
|
return Object.assign(i, u);
|
|
121
121
|
}, {});
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function En(e) {
|
|
124
124
|
const i = [];
|
|
125
125
|
let t = "", n = 0, l = "", s = "";
|
|
126
126
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -129,13 +129,13 @@ function Mn(e) {
|
|
|
129
129
|
}
|
|
130
130
|
return t && i.push(t), i;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function St(e, i) {
|
|
133
133
|
const t = {}, n = i.filter((s) => s instanceof RegExp), l = new Set(i);
|
|
134
134
|
for (const s in e)
|
|
135
135
|
!l.has(s) && !n.some((r) => r.test(s)) && (t[s] = e[s]);
|
|
136
136
|
return t;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Vt(e, i) {
|
|
139
139
|
const t = {}, n = i.filter((l) => l instanceof RegExp);
|
|
140
140
|
return i.forEach((l) => {
|
|
141
141
|
l instanceof RegExp || (t[l] = e[l]);
|
|
@@ -146,22 +146,22 @@ function St(e, i) {
|
|
|
146
146
|
function De(e) {
|
|
147
147
|
return e.replace(/-([a-z0-9])/gi, (i, t) => t.toUpperCase());
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Ht(e) {
|
|
150
150
|
return e.replace(/([a-z0-9])([A-Z])/g, (i, t, n) => t + "-" + n.toLowerCase()).replace(" ", "-").toLowerCase();
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function jn(e, i = Wt) {
|
|
153
153
|
if (e !== null && typeof e == "object") {
|
|
154
154
|
let t;
|
|
155
155
|
if (Array.isArray(e) ? t = [...e] : ke(e) && (t = { ...e }), t)
|
|
156
|
-
return
|
|
156
|
+
return Dn(e, t, i), t;
|
|
157
157
|
}
|
|
158
158
|
return e;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Re(e, i = Wt) {
|
|
161
161
|
if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
|
|
162
162
|
return e;
|
|
163
163
|
let t;
|
|
164
|
-
Array.isArray(e) ? t = e.map((n) => typeof n == "object" ?
|
|
164
|
+
Array.isArray(e) ? t = e.map((n) => typeof n == "object" ? Re(n, i) : n) : t = Object.keys(e).reduce((n, l) => (n[l] = typeof e[l] == "object" ? Re(e[l], i) : e[l], n), {});
|
|
165
165
|
for (const n of i)
|
|
166
166
|
n in e && Object.defineProperty(t, n, {
|
|
167
167
|
enumerable: !1,
|
|
@@ -169,17 +169,17 @@ function Ee(e, i = Kt) {
|
|
|
169
169
|
});
|
|
170
170
|
return t;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
return typeof e == "object" ?
|
|
172
|
+
function de(e) {
|
|
173
|
+
return typeof e == "object" ? Re(e) : e;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Fn(e, i) {
|
|
176
176
|
if (!e || typeof e != "object")
|
|
177
177
|
return null;
|
|
178
178
|
const t = i.split(".");
|
|
179
179
|
let n = e;
|
|
180
180
|
for (const l in t) {
|
|
181
181
|
const s = t[l];
|
|
182
|
-
if (
|
|
182
|
+
if (F(n, s) && (n = n[s]), +l === t.length - 1)
|
|
183
183
|
return n;
|
|
184
184
|
if (!n || typeof n != "object")
|
|
185
185
|
return null;
|
|
@@ -198,7 +198,7 @@ function Ce(e) {
|
|
|
198
198
|
function dt(e) {
|
|
199
199
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]/g, " ").trim().replace(/\s+/g, "-");
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Dn(e, i, t) {
|
|
202
202
|
for (const n of t)
|
|
203
203
|
n in e && Object.defineProperty(i, n, {
|
|
204
204
|
enumerable: !1,
|
|
@@ -206,7 +206,7 @@ function jn(e, i, t) {
|
|
|
206
206
|
});
|
|
207
207
|
return i;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Tn(e) {
|
|
210
210
|
let i = !1;
|
|
211
211
|
return (...t) => {
|
|
212
212
|
if (!i)
|
|
@@ -218,14 +218,14 @@ function mt() {
|
|
|
218
218
|
let i = 0;
|
|
219
219
|
const t = (l) => e.push(l), n = (l) => {
|
|
220
220
|
const s = e[i];
|
|
221
|
-
return typeof s == "function" ? s(l, (r) => (i++, n(r
|
|
221
|
+
return typeof s == "function" ? s(l, (r) => (i++, n(r))) : (i = 0, l);
|
|
222
222
|
};
|
|
223
223
|
return t.dispatch = n, t.unshift = (l) => e.unshift(l), t.remove = (l) => {
|
|
224
224
|
const s = e.indexOf(l);
|
|
225
225
|
s > -1 && e.splice(s, 1);
|
|
226
226
|
}, t;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function qt() {
|
|
229
229
|
const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
230
230
|
let t;
|
|
231
231
|
const n = (l, s) => {
|
|
@@ -262,7 +262,7 @@ function Nt() {
|
|
|
262
262
|
t = void 0, s.forEach(([r, o]) => n(r, o)), l && l.walk((r) => r._e.play());
|
|
263
263
|
}, n;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Bn(e, i, t, n, l = !0, s) {
|
|
266
266
|
return i._e(e, {
|
|
267
267
|
payload: n,
|
|
268
268
|
name: t,
|
|
@@ -271,13 +271,13 @@ function Dn(e, i, t, n, l = !0, s) {
|
|
|
271
271
|
meta: s
|
|
272
272
|
}), e;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function zn(e, i, t) {
|
|
275
275
|
return Xe(e.parent) && e.parent._e(e.parent, t), e;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function Un(e, i, t, n) {
|
|
278
278
|
return i._e.on(t, n);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Kn(e, i, t) {
|
|
281
281
|
return i._e.off(t), e;
|
|
282
282
|
}
|
|
283
283
|
const bt = mt();
|
|
@@ -288,13 +288,13 @@ yt((e, i) => {
|
|
|
288
288
|
const t = i(e);
|
|
289
289
|
return console && typeof console.warn == "function" && console.warn(t.message), t;
|
|
290
290
|
});
|
|
291
|
-
function
|
|
291
|
+
function Ee(e, i = {}) {
|
|
292
292
|
yt.dispatch({ code: e, data: i });
|
|
293
293
|
}
|
|
294
294
|
function H(e, i = {}) {
|
|
295
295
|
throw Error(bt.dispatch({ code: e, data: i }).message);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function oe(e, i) {
|
|
298
298
|
const t = {
|
|
299
299
|
blocking: !1,
|
|
300
300
|
key: Ye(),
|
|
@@ -305,16 +305,16 @@ function ue(e, i) {
|
|
|
305
305
|
};
|
|
306
306
|
return i && t.value && t.meta.localize !== !1 && (t.value = i.t(t), t.meta.locale = i.config.locale), t;
|
|
307
307
|
}
|
|
308
|
-
const
|
|
309
|
-
apply:
|
|
310
|
-
set:
|
|
311
|
-
remove:
|
|
312
|
-
filter:
|
|
313
|
-
reduce:
|
|
314
|
-
release:
|
|
315
|
-
touch:
|
|
308
|
+
const It = {
|
|
309
|
+
apply: Jn,
|
|
310
|
+
set: Wn,
|
|
311
|
+
remove: Zt,
|
|
312
|
+
filter: qn,
|
|
313
|
+
reduce: Zn,
|
|
314
|
+
release: Xn,
|
|
315
|
+
touch: Hn
|
|
316
316
|
};
|
|
317
|
-
function
|
|
317
|
+
function Nn(e = !1) {
|
|
318
318
|
const i = {};
|
|
319
319
|
let t, n = e, l = [];
|
|
320
320
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -322,15 +322,15 @@ function Un(e = !1) {
|
|
|
322
322
|
const o = new Proxy(i, {
|
|
323
323
|
get(...u) {
|
|
324
324
|
const [p, _] = u;
|
|
325
|
-
return _ === "buffer" ? n : _ === "_b" ? l : _ === "_m" ? s : _ === "_r" ? r :
|
|
325
|
+
return _ === "buffer" ? n : _ === "_b" ? l : _ === "_m" ? s : _ === "_r" ? r : F(It, _) ? It[_].bind(null, i, o, t) : Reflect.get(...u);
|
|
326
326
|
},
|
|
327
327
|
set(u, p, _) {
|
|
328
|
-
return p === "_n" ? (t = _, r === "__n" &&
|
|
328
|
+
return p === "_n" ? (t = _, r === "__n" && Jt(t, o), !0) : p === "_b" ? (l = _, !0) : p === "buffer" ? (n = _, !0) : p === "_r" ? (r = _, !0) : (H(101, t), !1);
|
|
329
329
|
}
|
|
330
330
|
});
|
|
331
331
|
return o;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function Wn(e, i, t, n) {
|
|
334
334
|
if (i.buffer)
|
|
335
335
|
return i._b.push([[n]]), i;
|
|
336
336
|
if (e[n.key] !== n) {
|
|
@@ -338,38 +338,38 @@ function Kn(e, i, t, n) {
|
|
|
338
338
|
const s = n.value;
|
|
339
339
|
n.value = t.t(n), n.value !== s && (n.meta.locale = t.props.locale);
|
|
340
340
|
}
|
|
341
|
-
const l = `message-${
|
|
341
|
+
const l = `message-${F(e, n.key) ? "updated" : "added"}`;
|
|
342
342
|
e[n.key] = Object.freeze(t.hook.message.dispatch(n)), t.emit(l, n);
|
|
343
343
|
}
|
|
344
344
|
return i;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Hn(e, i) {
|
|
347
347
|
for (const t in e) {
|
|
348
348
|
const n = { ...e[t] };
|
|
349
349
|
i.set(n);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
function
|
|
353
|
-
if (
|
|
352
|
+
function Zt(e, i, t, n) {
|
|
353
|
+
if (F(e, n)) {
|
|
354
354
|
const l = e[n];
|
|
355
355
|
delete e[n], t.emit("message-removed", l);
|
|
356
356
|
}
|
|
357
357
|
return i.buffer === !0 && (i._b = i._b.filter((l) => (l[0] = l[0].filter((s) => s.key !== n), l[1] || l[0].length))), i;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function qn(e, i, t, n, l) {
|
|
360
360
|
for (const s in e) {
|
|
361
361
|
const r = e[s];
|
|
362
|
-
(!l || r.type === l) && !n(r) &&
|
|
362
|
+
(!l || r.type === l) && !n(r) && Zt(e, i, t, s);
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Zn(e, i, t, n, l) {
|
|
366
366
|
for (const s in e) {
|
|
367
367
|
const r = e[s];
|
|
368
368
|
l = n(l, r);
|
|
369
369
|
}
|
|
370
370
|
return l;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Jn(e, i, t, n, l) {
|
|
373
373
|
if (Array.isArray(n)) {
|
|
374
374
|
if (i.buffer) {
|
|
375
375
|
i._b.push([n, l]);
|
|
@@ -380,11 +380,11 @@ function qn(e, i, t, n, l) {
|
|
|
380
380
|
} else
|
|
381
381
|
for (const s in n) {
|
|
382
382
|
const r = t.at(s);
|
|
383
|
-
r ? r.store.apply(n[s], l) :
|
|
383
|
+
r ? r.store.apply(n[s], l) : Qn(t, i, s, n[s], l);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
const t = `${e.name}-set`, n = (l) =>
|
|
386
|
+
function Yn(e, ...i) {
|
|
387
|
+
const t = `${e.name}-set`, n = (l) => oe({
|
|
388
388
|
key: dt(l),
|
|
389
389
|
type: "error",
|
|
390
390
|
value: l,
|
|
@@ -401,12 +401,12 @@ function Zn(e, ...i) {
|
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Qn(e, i, t, n, l) {
|
|
405
405
|
var s;
|
|
406
406
|
const r = i._m;
|
|
407
|
-
r.has(t) || r.set(t, []), i._r || (i._r =
|
|
407
|
+
r.has(t) || r.set(t, []), i._r || (i._r = Jt(e, i)), (s = r.get(t)) === null || s === void 0 || s.push([n, l]);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Jt(e, i) {
|
|
410
410
|
return e.on("child.deep", ({ payload: t }) => {
|
|
411
411
|
i._m.forEach((n, l) => {
|
|
412
412
|
e.at(l) === t && (n.forEach(([s, r]) => {
|
|
@@ -415,29 +415,29 @@ function qt(e, i) {
|
|
|
415
415
|
}), i._m.size === 0 && i._r && (e.off(i._r), i._r = void 0);
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Xn(e, i) {
|
|
419
419
|
i.buffer = !1, i._b.forEach(([t, n]) => i.apply(t, n)), i._b = [];
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Gn() {
|
|
422
422
|
const e = {};
|
|
423
423
|
let i;
|
|
424
424
|
return {
|
|
425
|
-
count: (...t) =>
|
|
425
|
+
count: (...t) => ei(i, e, ...t),
|
|
426
426
|
init(t) {
|
|
427
|
-
i = t, t.on("message-added.deep",
|
|
427
|
+
i = t, t.on("message-added.deep", Lt(e, 1)), t.on("message-removed.deep", Lt(e, -1));
|
|
428
428
|
},
|
|
429
|
-
merge: (t) =>
|
|
429
|
+
merge: (t) => Pt(i, e, t),
|
|
430
430
|
settled(t) {
|
|
431
|
-
return
|
|
431
|
+
return F(e, t) ? e[t].promise : Promise.resolve();
|
|
432
432
|
},
|
|
433
|
-
unmerge: (t) =>
|
|
433
|
+
unmerge: (t) => Pt(i, e, t, !0),
|
|
434
434
|
value(t) {
|
|
435
|
-
return
|
|
435
|
+
return F(e, t) ? e[t].count : 0;
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
if (n =
|
|
439
|
+
function ei(e, i, t, n, l = 0) {
|
|
440
|
+
if (n = ti(n || t), !F(i, t)) {
|
|
441
441
|
const s = {
|
|
442
442
|
condition: n,
|
|
443
443
|
count: 0,
|
|
@@ -452,36 +452,39 @@ function Xn(e, i, t, n, l = 0) {
|
|
|
452
452
|
r.ledger.count(s.name, s.condition), l += r.ledger.value(s.name);
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
|
-
return
|
|
455
|
+
return Yt(i[t], l).promise;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function ti(e) {
|
|
458
458
|
return typeof e == "function" ? e : (i) => i.type === e;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Yt(e, i) {
|
|
461
461
|
const t = e.count, n = e.count + i;
|
|
462
462
|
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;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Lt(e, i) {
|
|
465
465
|
return (t) => {
|
|
466
466
|
for (const n in e) {
|
|
467
467
|
const l = e[n];
|
|
468
|
-
l.condition(t.payload) &&
|
|
468
|
+
l.condition(t.payload) && Yt(l, i);
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
472
|
+
function Pt(e, i, t, n = !1) {
|
|
473
|
+
const l = e;
|
|
474
|
+
for (const s in i) {
|
|
475
|
+
const r = i[s].condition;
|
|
476
|
+
n || t.ledger.count(s, r);
|
|
477
|
+
const o = t.ledger.value(s) * (n ? -1 : 1);
|
|
478
|
+
if (e) {
|
|
478
479
|
do
|
|
479
|
-
e.ledger.count(
|
|
480
|
+
e.ledger.count(s, r, o), e = e.parent;
|
|
480
481
|
while (e);
|
|
482
|
+
e = l;
|
|
483
|
+
}
|
|
481
484
|
}
|
|
482
485
|
}
|
|
483
|
-
const vt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), ht =
|
|
484
|
-
function
|
|
486
|
+
const vt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), ht = qt(), ni = [];
|
|
487
|
+
function ii(e) {
|
|
485
488
|
e.props.id && (vt.set(e.props.id, e), Te.set(e, e.props.id), ht(e, {
|
|
486
489
|
payload: e,
|
|
487
490
|
name: e.props.id,
|
|
@@ -489,7 +492,7 @@ function ti(e) {
|
|
|
489
492
|
origin: e
|
|
490
493
|
}));
|
|
491
494
|
}
|
|
492
|
-
function
|
|
495
|
+
function li(e) {
|
|
493
496
|
if (Te.has(e)) {
|
|
494
497
|
const i = Te.get(e);
|
|
495
498
|
Te.delete(e), vt.delete(i), ht(e, {
|
|
@@ -500,26 +503,26 @@ function ni(e) {
|
|
|
500
503
|
});
|
|
501
504
|
}
|
|
502
505
|
}
|
|
503
|
-
function
|
|
506
|
+
function Qt(e) {
|
|
504
507
|
return vt.get(e);
|
|
505
508
|
}
|
|
506
|
-
function
|
|
507
|
-
|
|
509
|
+
function ai(e, i) {
|
|
510
|
+
ni.push(ht.on(e, i));
|
|
508
511
|
}
|
|
509
|
-
function
|
|
512
|
+
function At(e, i, t) {
|
|
510
513
|
let n = !0;
|
|
511
514
|
return i in e.config._t ? n = !1 : e.emit(`config:${i}`, t, !1), i in e.props || (e.emit("prop", { prop: i, value: t }), e.emit(`prop:${i}`, t)), n;
|
|
512
515
|
}
|
|
513
|
-
function
|
|
516
|
+
function si(e) {
|
|
514
517
|
const i = document.getElementById(e);
|
|
515
518
|
if (i instanceof HTMLFormElement) {
|
|
516
519
|
const t = new Event("submit", { cancelable: !0, bubbles: !0 });
|
|
517
520
|
i.dispatchEvent(t);
|
|
518
521
|
return;
|
|
519
522
|
}
|
|
520
|
-
|
|
523
|
+
Ee(151, e);
|
|
521
524
|
}
|
|
522
|
-
function
|
|
525
|
+
function ri(e) {
|
|
523
526
|
const i = (t) => {
|
|
524
527
|
for (const n in t.store) {
|
|
525
528
|
const l = t.store[n];
|
|
@@ -528,27 +531,27 @@ function ai(e) {
|
|
|
528
531
|
};
|
|
529
532
|
i(e), e.walk(i);
|
|
530
533
|
}
|
|
531
|
-
function
|
|
532
|
-
const t = typeof e == "string" ?
|
|
534
|
+
function oi(e, i) {
|
|
535
|
+
const t = typeof e == "string" ? Qt(e) : e;
|
|
533
536
|
if (t) {
|
|
534
|
-
const n = (r) =>
|
|
537
|
+
const n = (r) => de(r.props.initial) || (r.type === "group" ? {} : r.type === "list" ? [] : void 0);
|
|
535
538
|
t._e.pause(t);
|
|
536
|
-
const l =
|
|
539
|
+
const l = de(i);
|
|
537
540
|
return i && !et(i) && (t.props.initial = xe(l) ? Ce(l) : l, t.props._init = t.props.initial), t.input(n(t), !1), t.walk((r) => {
|
|
538
541
|
r.type === "list" && r.sync || r.input(n(r), !1);
|
|
539
542
|
}), t.input(et(l) && l ? l : n(t), !1), t.type !== "input" && i && !et(i) && xe(i) && t.walk((r) => {
|
|
540
543
|
r.props.initial = xe(r.value) ? Ce(r.value) : r.value, r.props._init = t.props.initial;
|
|
541
|
-
}), t._e.play(t),
|
|
544
|
+
}), t._e.play(t), ri(t), t.emit("reset", t), t;
|
|
542
545
|
}
|
|
543
|
-
|
|
546
|
+
Ee(152, e);
|
|
544
547
|
}
|
|
545
|
-
const
|
|
548
|
+
const ui = {
|
|
546
549
|
delimiter: ".",
|
|
547
550
|
delay: 0,
|
|
548
551
|
locale: "en",
|
|
549
|
-
rootClasses: (e) => ({ [`formkit-${
|
|
550
|
-
},
|
|
551
|
-
function
|
|
552
|
+
rootClasses: (e) => ({ [`formkit-${Ht(e)}`]: !0 })
|
|
553
|
+
}, Xt = Symbol("index"), ot = Symbol("removed"), ut = Symbol("moved"), Gt = Symbol("inserted");
|
|
554
|
+
function fi(e) {
|
|
552
555
|
return e.type === "list" && Array.isArray(e._value);
|
|
553
556
|
}
|
|
554
557
|
function Xe(e) {
|
|
@@ -556,43 +559,43 @@ function Xe(e) {
|
|
|
556
559
|
}
|
|
557
560
|
const Be = (e, i, t) => {
|
|
558
561
|
H(102, [e, t]);
|
|
559
|
-
},
|
|
560
|
-
_c: V(
|
|
561
|
-
add: V(
|
|
562
|
-
addProps: V(
|
|
563
|
-
address: V(
|
|
564
|
-
at: V(
|
|
565
|
-
bubble: V(
|
|
566
|
-
clearErrors: V(
|
|
567
|
-
calm: V(
|
|
562
|
+
}, ci = {
|
|
563
|
+
_c: V(xi, Be, !1),
|
|
564
|
+
add: V(Ci),
|
|
565
|
+
addProps: V(ki),
|
|
566
|
+
address: V(Ri, Be, !1),
|
|
567
|
+
at: V(Ei),
|
|
568
|
+
bubble: V(zn),
|
|
569
|
+
clearErrors: V(Ki),
|
|
570
|
+
calm: V(gi),
|
|
568
571
|
config: V(!1),
|
|
569
|
-
define: V(
|
|
570
|
-
disturb: V(
|
|
571
|
-
destroy: V(
|
|
572
|
+
define: V(wi),
|
|
573
|
+
disturb: V(_i),
|
|
574
|
+
destroy: V($i),
|
|
572
575
|
extend: V(Wi),
|
|
573
|
-
hydrate: V(
|
|
574
|
-
index: V(
|
|
575
|
-
input: V(
|
|
576
|
-
each: V(
|
|
577
|
-
emit: V(
|
|
578
|
-
find: V(
|
|
579
|
-
on: V(
|
|
580
|
-
off: V(
|
|
581
|
-
parent: V(!1,
|
|
576
|
+
hydrate: V(vi),
|
|
577
|
+
index: V(Oi, Ai, !1),
|
|
578
|
+
input: V(nn),
|
|
579
|
+
each: V(Ii),
|
|
580
|
+
emit: V(Bn),
|
|
581
|
+
find: V(Fi),
|
|
582
|
+
on: V(Un),
|
|
583
|
+
off: V(Kn),
|
|
584
|
+
parent: V(!1, Si),
|
|
582
585
|
plugins: V(!1),
|
|
583
|
-
remove: V(
|
|
584
|
-
root: V(
|
|
585
|
-
reset: V(
|
|
586
|
-
resetConfig: V(
|
|
587
|
-
setErrors: V(
|
|
588
|
-
submit: V(
|
|
589
|
-
t: V(
|
|
586
|
+
remove: V(Vi),
|
|
587
|
+
root: V(Ti, Be, !1),
|
|
588
|
+
reset: V(Ui),
|
|
589
|
+
resetConfig: V(Pi),
|
|
590
|
+
setErrors: V(sn),
|
|
591
|
+
submit: V(zi),
|
|
592
|
+
t: V(Bi),
|
|
590
593
|
use: V(_t),
|
|
591
|
-
name: V(
|
|
592
|
-
walk: V(
|
|
594
|
+
name: V(Mi, !1, !1),
|
|
595
|
+
walk: V(Li)
|
|
593
596
|
};
|
|
594
|
-
function
|
|
595
|
-
return new Map(Object.entries(
|
|
597
|
+
function pi() {
|
|
598
|
+
return new Map(Object.entries(ci));
|
|
596
599
|
}
|
|
597
600
|
function V(e, i, t = !0) {
|
|
598
601
|
return {
|
|
@@ -600,7 +603,7 @@ function V(e, i, t = !0) {
|
|
|
600
603
|
set: i !== void 0 ? i : Be.bind(null)
|
|
601
604
|
};
|
|
602
605
|
}
|
|
603
|
-
function
|
|
606
|
+
function di() {
|
|
604
607
|
const e = /* @__PURE__ */ new Map();
|
|
605
608
|
return new Proxy(e, {
|
|
606
609
|
get(i, t) {
|
|
@@ -608,18 +611,18 @@ function ci() {
|
|
|
608
611
|
}
|
|
609
612
|
});
|
|
610
613
|
}
|
|
611
|
-
let
|
|
612
|
-
function
|
|
614
|
+
let en = 0, mi = 0;
|
|
615
|
+
function bi(e) {
|
|
613
616
|
var i, t;
|
|
614
|
-
return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ?
|
|
617
|
+
return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Xt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++en}`;
|
|
615
618
|
}
|
|
616
|
-
function
|
|
619
|
+
function tn(e) {
|
|
617
620
|
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;
|
|
618
621
|
}
|
|
619
|
-
function
|
|
620
|
-
return i._value =
|
|
622
|
+
function nn(e, i, t, n = !0) {
|
|
623
|
+
return i._value = yi(e, e.hook.input.dispatch(t)), e.emit("input", i._value), e.isCreated && e.type === "input" && ue(i._value, i.value) ? (e.emit("commitRaw", i.value), i.settled) : (i.isSettled && e.disturb(), n ? (i._tmo && clearTimeout(i._tmo), i._tmo = setTimeout(Ke, e.props.delay, e, i)) : Ke(e, i), i.settled);
|
|
621
624
|
}
|
|
622
|
-
function
|
|
625
|
+
function yi(e, i) {
|
|
623
626
|
switch (e.type) {
|
|
624
627
|
case "input":
|
|
625
628
|
break;
|
|
@@ -635,30 +638,30 @@ function mi(e, i) {
|
|
|
635
638
|
function Ke(e, i, t = !0, n = !0) {
|
|
636
639
|
i._value = i.value = e.hook.commit.dispatch(i._value), e.type !== "input" && n && e.hydrate(), e.emit("commitRaw", i.value), e.emit("commit", i.value), t && e.calm();
|
|
637
640
|
}
|
|
638
|
-
function
|
|
641
|
+
function ln(e, { name: i, value: t, from: n }) {
|
|
639
642
|
if (!Object.isFrozen(e._value)) {
|
|
640
|
-
if (
|
|
643
|
+
if (fi(e)) {
|
|
641
644
|
const l = t === ot ? [] : t === ut && typeof n == "number" ? e._value.splice(n, 1) : [t];
|
|
642
|
-
e._value.splice(i, t === ut || n ===
|
|
645
|
+
e._value.splice(i, t === ut || n === Gt ? 0 : 1, ...l);
|
|
643
646
|
return;
|
|
644
647
|
}
|
|
645
648
|
t !== ot ? e._value[i] = t : delete e._value[i];
|
|
646
649
|
}
|
|
647
650
|
}
|
|
648
|
-
function
|
|
651
|
+
function vi(e, i) {
|
|
649
652
|
const t = i._value;
|
|
650
|
-
return e.type === "list" && e.sync &&
|
|
653
|
+
return e.type === "list" && e.sync && hi(e, i), i.children.forEach((n) => {
|
|
651
654
|
if (typeof t == "object")
|
|
652
655
|
if (n.name in t) {
|
|
653
656
|
const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? Ce(t[n.name]) : t[n.name];
|
|
654
|
-
if (!n.isSettled || !xe(l) &&
|
|
657
|
+
if (!n.isSettled || !xe(l) && ue(l, n._value))
|
|
655
658
|
return;
|
|
656
659
|
n.input(l, !1);
|
|
657
660
|
} else
|
|
658
|
-
(e.type !== "list" || typeof n.name == "number") &&
|
|
661
|
+
(e.type !== "list" || typeof n.name == "number") && ln(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));
|
|
659
662
|
}), e;
|
|
660
663
|
}
|
|
661
|
-
function
|
|
664
|
+
function hi(e, i) {
|
|
662
665
|
const t = e._value;
|
|
663
666
|
if (!Array.isArray(t))
|
|
664
667
|
return;
|
|
@@ -687,41 +690,41 @@ function yi(e, i) {
|
|
|
687
690
|
n[u] = o, l.delete(o);
|
|
688
691
|
}
|
|
689
692
|
r.forEach((o, u) => {
|
|
690
|
-
n[o] =
|
|
693
|
+
n[o] = Ji({ value: u });
|
|
691
694
|
}), l.size && l.forEach((o) => {
|
|
692
695
|
if (!("__FKP" in o)) {
|
|
693
696
|
const u = o._c.parent;
|
|
694
|
-
if (!u ||
|
|
697
|
+
if (!u || Yi(u))
|
|
695
698
|
return;
|
|
696
699
|
u.ledger.unmerge(o), o._c.parent = null, o.destroy();
|
|
697
700
|
}
|
|
698
701
|
}), i.children = n;
|
|
699
702
|
}
|
|
700
|
-
function
|
|
703
|
+
function _i(e, i) {
|
|
701
704
|
var t;
|
|
702
705
|
return i._d <= 0 && (i.isSettled = !1, e.emit("settled", !1, !1), i.settled = new Promise((n) => {
|
|
703
706
|
i._resolve = n;
|
|
704
707
|
}), e.parent && ((t = e.parent) === null || t === void 0 || t.disturb())), i._d++, e;
|
|
705
708
|
}
|
|
706
|
-
function
|
|
709
|
+
function gi(e, i, t) {
|
|
707
710
|
var n;
|
|
708
711
|
if (t !== void 0 && e.type !== "input")
|
|
709
|
-
return
|
|
712
|
+
return ln(i, t), Ke(e, i, !0, !1);
|
|
710
713
|
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));
|
|
711
714
|
}
|
|
712
|
-
function
|
|
713
|
-
e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)),
|
|
715
|
+
function $i(e, i) {
|
|
716
|
+
e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), li(e), e.emit("destroyed", e), i._e.flush(), i._value = i.value = void 0;
|
|
714
717
|
for (const t in i.context)
|
|
715
718
|
delete i.context[t];
|
|
716
719
|
i.plugins.clear(), i.context = null;
|
|
717
720
|
}
|
|
718
|
-
function
|
|
719
|
-
i.type = t.type, i.props.definition =
|
|
721
|
+
function wi(e, i, t) {
|
|
722
|
+
i.type = t.type, i.props.definition = Re(t), i.value = i._value = tn({
|
|
720
723
|
type: e.type,
|
|
721
724
|
value: i.value
|
|
722
725
|
}), 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);
|
|
723
726
|
}
|
|
724
|
-
function
|
|
727
|
+
function ki(e, i, t) {
|
|
725
728
|
var n;
|
|
726
729
|
if (e.props.attrs) {
|
|
727
730
|
const l = { ...e.props.attrs };
|
|
@@ -730,7 +733,7 @@ function $i(e, i, t) {
|
|
|
730
733
|
const o = De(r);
|
|
731
734
|
t.includes(o) && (e.props[o] = l[r], delete l[r]);
|
|
732
735
|
}
|
|
733
|
-
const s =
|
|
736
|
+
const s = de(i._value);
|
|
734
737
|
e.props.initial = e.type !== "input" ? Ce(s) : s, e.props._emit = !0, e.props.attrs = l, e.props.definition && (e.props.definition.props = [
|
|
735
738
|
...((n = e.props.definition) === null || n === void 0 ? void 0 : n.props) || [],
|
|
736
739
|
...t
|
|
@@ -738,14 +741,14 @@ function $i(e, i, t) {
|
|
|
738
741
|
}
|
|
739
742
|
return e.emit("added-props", t), e;
|
|
740
743
|
}
|
|
741
|
-
function
|
|
744
|
+
function Ci(e, i, t, n) {
|
|
742
745
|
if (e.type === "input" && H(100, e), t.parent && t.parent !== e && t.parent.remove(t), !i.children.includes(t)) {
|
|
743
746
|
if (n !== void 0 && e.type === "list") {
|
|
744
747
|
const l = i.children[n];
|
|
745
748
|
l && "__FKP" in l ? (t._c.uid = l.uid, i.children.splice(n, 1, t)) : i.children.splice(n, 0, t), Array.isArray(e.value) && e.value.length < i.children.length && e.disturb().calm({
|
|
746
749
|
name: n,
|
|
747
750
|
value: t.value,
|
|
748
|
-
from:
|
|
751
|
+
from: Gt
|
|
749
752
|
});
|
|
750
753
|
} else
|
|
751
754
|
i.children.push(t);
|
|
@@ -758,10 +761,10 @@ function wi(e, i, t, n) {
|
|
|
758
761
|
t.use(e.plugins);
|
|
759
762
|
return Ke(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
|
|
760
763
|
}
|
|
761
|
-
function
|
|
764
|
+
function Si(e, i, t, n) {
|
|
762
765
|
return Xe(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;
|
|
763
766
|
}
|
|
764
|
-
function
|
|
767
|
+
function Vi(e, i, t) {
|
|
765
768
|
const n = i.children.indexOf(t);
|
|
766
769
|
if (n !== -1) {
|
|
767
770
|
t.isSettled && e.disturb(), i.children.splice(n, 1);
|
|
@@ -775,10 +778,10 @@ function Ci(e, i, t) {
|
|
|
775
778
|
}
|
|
776
779
|
return e.ledger.unmerge(t), e;
|
|
777
780
|
}
|
|
778
|
-
function
|
|
781
|
+
function Ii(e, i, t) {
|
|
779
782
|
i.children.forEach((n) => !("__FKP" in n) && t(n));
|
|
780
783
|
}
|
|
781
|
-
function
|
|
784
|
+
function Li(e, i, t, n = !1, l = !1) {
|
|
782
785
|
i.children.some((s) => {
|
|
783
786
|
if ("__FKP" in s)
|
|
784
787
|
return !1;
|
|
@@ -786,38 +789,38 @@ function Vi(e, i, t, n = !1, l = !1) {
|
|
|
786
789
|
return n && r === !1 ? !0 : l && r === !1 ? !1 : s.walk(t, n, l);
|
|
787
790
|
});
|
|
788
791
|
}
|
|
789
|
-
function
|
|
792
|
+
function Pi(e, i) {
|
|
790
793
|
const t = e.parent || void 0;
|
|
791
|
-
i.config =
|
|
794
|
+
i.config = an(e.config._t, t), e.walk((n) => n.resetConfig());
|
|
792
795
|
}
|
|
793
796
|
function _t(e, i, t, n = !0, l = !0) {
|
|
794
797
|
return Array.isArray(t) || t instanceof Set ? (t.forEach((s) => _t(e, i, s)), e) : (i.plugins.has(t) || (l && typeof t.library == "function" && t.library(e), n && t(e) !== !1 && (i.plugins.add(t), e.children.forEach((s) => s.use(t)))), e);
|
|
795
798
|
}
|
|
796
|
-
function
|
|
799
|
+
function Ai(e, i, t, n) {
|
|
797
800
|
if (Xe(e.parent)) {
|
|
798
801
|
const l = e.parent.children, s = n >= l.length ? l.length - 1 : n < 0 ? 0 : n, r = l.indexOf(e);
|
|
799
802
|
return r === -1 ? !1 : (l.splice(r, 1), l.splice(s, 0, e), e.parent.children = l, e.parent.type === "list" && e.parent.disturb().calm({ name: s, value: ut, from: r }), !0);
|
|
800
803
|
}
|
|
801
804
|
return !1;
|
|
802
805
|
}
|
|
803
|
-
function
|
|
806
|
+
function Oi(e) {
|
|
804
807
|
if (e.parent) {
|
|
805
808
|
const i = [...e.parent.children].indexOf(e);
|
|
806
809
|
return i === -1 ? e.parent.children.length : i;
|
|
807
810
|
}
|
|
808
811
|
return -1;
|
|
809
812
|
}
|
|
810
|
-
function
|
|
813
|
+
function xi(e, i) {
|
|
811
814
|
return i;
|
|
812
815
|
}
|
|
813
|
-
function
|
|
816
|
+
function Mi(e, i) {
|
|
814
817
|
var t;
|
|
815
|
-
return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : i.name !==
|
|
818
|
+
return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : i.name !== Xt ? i.name : e.index;
|
|
816
819
|
}
|
|
817
|
-
function
|
|
820
|
+
function Ri(e, i) {
|
|
818
821
|
return i.parent ? i.parent.address.concat([e.name]) : [e.name];
|
|
819
822
|
}
|
|
820
|
-
function
|
|
823
|
+
function Ei(e, i, t) {
|
|
821
824
|
const n = typeof t == "string" ? t.split(e.config.delimiter) : t;
|
|
822
825
|
if (!n.length)
|
|
823
826
|
return;
|
|
@@ -836,12 +839,12 @@ function Mi(e, i, t) {
|
|
|
836
839
|
s = e;
|
|
837
840
|
break;
|
|
838
841
|
default:
|
|
839
|
-
s = s.children.find((o) => !("__FKP" in o) && String(o.name) === String(r)) ||
|
|
842
|
+
s = s.children.find((o) => !("__FKP" in o) && String(o.name) === String(r)) || ji(s, r);
|
|
840
843
|
}
|
|
841
844
|
}
|
|
842
845
|
return s || void 0;
|
|
843
846
|
}
|
|
844
|
-
function
|
|
847
|
+
function ji(e, i) {
|
|
845
848
|
const t = String(i).match(/^(find)\((.*)\)$/);
|
|
846
849
|
if (t) {
|
|
847
850
|
const [, n, l] = t, s = l.split(",").map((r) => r.trim());
|
|
@@ -853,10 +856,10 @@ function Ei(e, i) {
|
|
|
853
856
|
}
|
|
854
857
|
}
|
|
855
858
|
}
|
|
856
|
-
function
|
|
857
|
-
return
|
|
859
|
+
function Fi(e, i, t, n) {
|
|
860
|
+
return Di(e, t, n);
|
|
858
861
|
}
|
|
859
|
-
function
|
|
862
|
+
function Di(e, i, t = "name") {
|
|
860
863
|
const n = typeof t == "string" ? (s) => s[t] == i : t, l = [e];
|
|
861
864
|
for (; l.length; ) {
|
|
862
865
|
const s = l.shift();
|
|
@@ -867,13 +870,13 @@ function ji(e, i, t = "name") {
|
|
|
867
870
|
}
|
|
868
871
|
}
|
|
869
872
|
}
|
|
870
|
-
function
|
|
873
|
+
function Ti(e) {
|
|
871
874
|
let i = e;
|
|
872
875
|
for (; i.parent; )
|
|
873
876
|
i = i.parent;
|
|
874
877
|
return i;
|
|
875
878
|
}
|
|
876
|
-
function
|
|
879
|
+
function an(e = {}, i) {
|
|
877
880
|
let t;
|
|
878
881
|
return new Proxy(e, {
|
|
879
882
|
get(...n) {
|
|
@@ -893,7 +896,7 @@ function nn(e = {}, i) {
|
|
|
893
896
|
if (r !== void 0)
|
|
894
897
|
return r;
|
|
895
898
|
}
|
|
896
|
-
return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 :
|
|
899
|
+
return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : ui[l];
|
|
897
900
|
},
|
|
898
901
|
set(...n) {
|
|
899
902
|
const l = n[1], s = n[2];
|
|
@@ -901,53 +904,50 @@ function nn(e = {}, i) {
|
|
|
901
904
|
return t = s, e.rootConfig && e.rootConfig._add(t), !0;
|
|
902
905
|
if (l === "_rmn")
|
|
903
906
|
return e.rootConfig && e.rootConfig._rm(t), t = void 0, !0;
|
|
904
|
-
if (!
|
|
907
|
+
if (!ue(e[l], s, !1)) {
|
|
905
908
|
const r = Reflect.set(...n);
|
|
906
|
-
return t && (t.emit(`config:${l}`, s, !1),
|
|
909
|
+
return t && (t.emit(`config:${l}`, s, !1), At(t, l, s), t.walk((o) => At(o, l, s), !1, !0)), r;
|
|
907
910
|
}
|
|
908
911
|
return !0;
|
|
909
912
|
}
|
|
910
913
|
});
|
|
911
914
|
}
|
|
912
|
-
function
|
|
915
|
+
function Bi(e, i, t, n = "ui") {
|
|
913
916
|
const l = typeof t == "string" ? { key: t, value: t, type: n } : t, s = e.hook.text.dispatch(l);
|
|
914
917
|
return e.emit("text", s, !1), s.value;
|
|
915
918
|
}
|
|
916
|
-
function
|
|
919
|
+
function zi(e) {
|
|
917
920
|
const i = e.name;
|
|
918
921
|
do {
|
|
919
922
|
if (e.props.isForm === !0)
|
|
920
923
|
break;
|
|
921
924
|
e.parent || H(106, i), e = e.parent;
|
|
922
925
|
} while (e);
|
|
923
|
-
e.props.id &&
|
|
926
|
+
e.props.id && si(e.props.id);
|
|
924
927
|
}
|
|
925
|
-
function
|
|
926
|
-
return
|
|
928
|
+
function Ui(e, i, t) {
|
|
929
|
+
return oi(e, t);
|
|
927
930
|
}
|
|
928
|
-
function
|
|
931
|
+
function sn(e, i, t, n) {
|
|
929
932
|
const l = `${e.name}-set`, s = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
|
|
930
|
-
return
|
|
933
|
+
return Yn(e, s.localErrors, s.childErrors).forEach((r) => {
|
|
931
934
|
e.store.apply(r, (o) => o.meta.source === l);
|
|
932
935
|
}), e;
|
|
933
936
|
}
|
|
934
|
-
function
|
|
935
|
-
return
|
|
937
|
+
function Ki(e, i, t = !0, n) {
|
|
938
|
+
return sn(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
|
|
936
939
|
l.store.filter((s) => !(s.type === "error" && s.meta && s.meta.source === n));
|
|
937
940
|
})), e;
|
|
938
941
|
}
|
|
939
|
-
function
|
|
940
|
-
return j(e.props, "id") || (e.props.id = `input_${pi++}`), e;
|
|
941
|
-
}
|
|
942
|
-
function Ki(e) {
|
|
942
|
+
function Ni(e) {
|
|
943
943
|
const i = {
|
|
944
|
-
initial: typeof e == "object" ?
|
|
944
|
+
initial: typeof e == "object" ? de(e) : e
|
|
945
945
|
};
|
|
946
946
|
let t, n = !0;
|
|
947
947
|
return new Proxy(i, {
|
|
948
948
|
get(...l) {
|
|
949
949
|
const [s, r] = l;
|
|
950
|
-
if (
|
|
950
|
+
if (F(i, r))
|
|
951
951
|
return Reflect.get(...l);
|
|
952
952
|
if (t && typeof r == "string" && t.config[r] !== void 0)
|
|
953
953
|
return t.config[r];
|
|
@@ -961,7 +961,7 @@ function Ki(e) {
|
|
|
961
961
|
prop: s,
|
|
962
962
|
value: r
|
|
963
963
|
});
|
|
964
|
-
if (!
|
|
964
|
+
if (!ue(i[u], p, !1) || typeof p == "object") {
|
|
965
965
|
const _ = Reflect.set(l, u, p, o);
|
|
966
966
|
return n && (t.emit("prop", { prop: u, value: p }), typeof u == "string" && t.emit(`prop:${u}`, p)), _;
|
|
967
967
|
}
|
|
@@ -972,7 +972,7 @@ function Ki(e) {
|
|
|
972
972
|
function Wi(e, i, t, n) {
|
|
973
973
|
return i.traps.set(t, n), e;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function Hi(e, i) {
|
|
976
976
|
if (e.props.definition)
|
|
977
977
|
return e.define(e.props.definition);
|
|
978
978
|
for (const t of i) {
|
|
@@ -981,49 +981,50 @@ function Ni(e, i) {
|
|
|
981
981
|
typeof t.library == "function" && t.library(e);
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
const i =
|
|
984
|
+
function qi(e) {
|
|
985
|
+
const i = tn(e), t = an(e.config || {}, e.parent);
|
|
986
986
|
return {
|
|
987
987
|
_d: 0,
|
|
988
|
-
_e:
|
|
988
|
+
_e: qt(),
|
|
989
989
|
uid: Symbol(),
|
|
990
990
|
_resolve: !1,
|
|
991
991
|
_tmo: !1,
|
|
992
992
|
_value: i,
|
|
993
|
-
children:
|
|
993
|
+
children: On(e.children || []),
|
|
994
994
|
config: t,
|
|
995
|
-
hook:
|
|
995
|
+
hook: di(),
|
|
996
996
|
isCreated: !1,
|
|
997
997
|
isSettled: !0,
|
|
998
|
-
ledger:
|
|
999
|
-
name:
|
|
998
|
+
ledger: Gn(),
|
|
999
|
+
name: bi(e),
|
|
1000
1000
|
parent: e.parent || null,
|
|
1001
1001
|
plugins: /* @__PURE__ */ new Set(),
|
|
1002
|
-
props:
|
|
1002
|
+
props: Ni(i),
|
|
1003
1003
|
settled: Promise.resolve(i),
|
|
1004
|
-
store:
|
|
1004
|
+
store: Nn(!0),
|
|
1005
1005
|
sync: e.sync || !1,
|
|
1006
|
-
traps:
|
|
1006
|
+
traps: pi(),
|
|
1007
1007
|
type: e.type || "input",
|
|
1008
1008
|
value: i
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
var t;
|
|
1013
|
-
|
|
1011
|
+
function Zi(e, i) {
|
|
1012
|
+
var t, n, l;
|
|
1013
|
+
const s = (t = i.props) === null || t === void 0 ? void 0 : t.id;
|
|
1014
|
+
if (s || (n = i.props) === null || n === void 0 || delete n.id, e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, Object.assign(e.props, s ? {} : { id: `input_${mi++}` }, (l = i.props) !== null && l !== void 0 ? l : {}), e.props._emit = !0, Hi(e, /* @__PURE__ */ new Set([
|
|
1014
1015
|
...i.plugins || [],
|
|
1015
1016
|
...e.parent ? e.parent.plugins : []
|
|
1016
1017
|
])), i.plugins)
|
|
1017
|
-
for (const
|
|
1018
|
-
_t(e, e._c,
|
|
1019
|
-
return
|
|
1018
|
+
for (const r of i.plugins)
|
|
1019
|
+
_t(e, e._c, r, !0, !1);
|
|
1020
|
+
return e.each((r) => e.add(r)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && H(100, e), nn(e, e._c, e._value, !1), e.store.release(), s && ii(e), e.emit("created", e), e.isCreated = !0, e;
|
|
1020
1021
|
}
|
|
1021
|
-
function
|
|
1022
|
+
function Ji(e) {
|
|
1022
1023
|
var i, t, n, l;
|
|
1023
1024
|
return {
|
|
1024
1025
|
__FKP: !0,
|
|
1025
1026
|
uid: Symbol(),
|
|
1026
|
-
name: (i = e == null ? void 0 : e.name) !== null && i !== void 0 ? i : `p_${
|
|
1027
|
+
name: (i = e == null ? void 0 : e.name) !== null && i !== void 0 ? i : `p_${en++}`,
|
|
1027
1028
|
value: (t = e == null ? void 0 : e.value) !== null && t !== void 0 ? t : null,
|
|
1028
1029
|
_value: (n = e == null ? void 0 : e.value) !== null && n !== void 0 ? n : null,
|
|
1029
1030
|
type: (l = e == null ? void 0 : e.type) !== null && l !== void 0 ? l : "input",
|
|
@@ -1035,11 +1036,11 @@ function Zi(e) {
|
|
|
1035
1036
|
isSettled: !0
|
|
1036
1037
|
};
|
|
1037
1038
|
}
|
|
1038
|
-
function
|
|
1039
|
+
function Yi(e) {
|
|
1039
1040
|
return "__FKP" in e;
|
|
1040
1041
|
}
|
|
1041
|
-
function
|
|
1042
|
-
const i = e || {}, t =
|
|
1042
|
+
function Qi(e) {
|
|
1043
|
+
const i = e || {}, t = qi(i), n = new Proxy(t, {
|
|
1043
1044
|
get(...l) {
|
|
1044
1045
|
const [, s] = l;
|
|
1045
1046
|
if (s === "__FKNode__")
|
|
@@ -1052,27 +1053,27 @@ function Yi(e) {
|
|
|
1052
1053
|
return o && o.set ? o.set(n, t, s, r) : Reflect.set(...l);
|
|
1053
1054
|
}
|
|
1054
1055
|
});
|
|
1055
|
-
return
|
|
1056
|
+
return Zi(n, i);
|
|
1056
1057
|
}
|
|
1057
1058
|
function ft(e) {
|
|
1058
|
-
return typeof e != "string" &&
|
|
1059
|
+
return typeof e != "string" && F(e, "$el");
|
|
1059
1060
|
}
|
|
1060
1061
|
function ct(e) {
|
|
1061
|
-
return typeof e != "string" &&
|
|
1062
|
+
return typeof e != "string" && F(e, "$cmp");
|
|
1062
1063
|
}
|
|
1063
1064
|
function ve(e) {
|
|
1064
|
-
return !e || typeof e == "string" ? !1 :
|
|
1065
|
+
return !e || typeof e == "string" ? !1 : F(e, "if") && F(e, "then");
|
|
1065
1066
|
}
|
|
1066
|
-
function
|
|
1067
|
+
function Xi(e) {
|
|
1067
1068
|
return typeof e != "string" && "$formkit" in e;
|
|
1068
1069
|
}
|
|
1069
|
-
function
|
|
1070
|
+
function Gi(e) {
|
|
1070
1071
|
if (typeof e == "string")
|
|
1071
1072
|
return {
|
|
1072
1073
|
$el: "text",
|
|
1073
1074
|
children: e
|
|
1074
1075
|
};
|
|
1075
|
-
if (
|
|
1076
|
+
if (Xi(e)) {
|
|
1076
1077
|
const { $formkit: i, for: t, if: n, children: l, bind: s, ...r } = e;
|
|
1077
1078
|
return Object.assign({
|
|
1078
1079
|
$cmp: "FormKit",
|
|
@@ -1148,62 +1149,62 @@ function J(e) {
|
|
|
1148
1149
|
}
|
|
1149
1150
|
function _(c, d = 0) {
|
|
1150
1151
|
const m = l[d], y = c.length, g = Object.keys(m);
|
|
1151
|
-
let v = 0, w = !1, f = null, b = "", k = null, I, B = "",
|
|
1152
|
-
const q = (x,
|
|
1153
|
-
x ?
|
|
1152
|
+
let v = 0, w = !1, f = null, b = "", k = null, I, B = "", S = "", R = "", O = "", N = 0;
|
|
1153
|
+
const q = (x, W) => {
|
|
1154
|
+
x ? R += W : b += W;
|
|
1154
1155
|
};
|
|
1155
1156
|
for (let x = 0; x < y; x++)
|
|
1156
|
-
if (B =
|
|
1157
|
-
v ? O =
|
|
1157
|
+
if (B = S, S = c.charAt(x), (S === "'" || S === '"') && B !== "\\" && (v === 0 && !w || v && !O)) {
|
|
1158
|
+
v ? O = S : w = S, q(v, S);
|
|
1158
1159
|
continue;
|
|
1159
|
-
} else if (w && (
|
|
1160
|
-
q(v,
|
|
1160
|
+
} else if (w && (S !== w || B === "\\") || O && (S !== O || B === "\\")) {
|
|
1161
|
+
q(v, S);
|
|
1161
1162
|
continue;
|
|
1162
|
-
} else if (w ===
|
|
1163
|
-
w = !1, q(v,
|
|
1163
|
+
} else if (w === S) {
|
|
1164
|
+
w = !1, q(v, S);
|
|
1164
1165
|
continue;
|
|
1165
|
-
} else if (O ===
|
|
1166
|
-
O = !1, q(v,
|
|
1166
|
+
} else if (O === S) {
|
|
1167
|
+
O = !1, q(v, S);
|
|
1167
1168
|
continue;
|
|
1168
1169
|
} else {
|
|
1169
|
-
if (
|
|
1170
|
+
if (S === " ")
|
|
1170
1171
|
continue;
|
|
1171
|
-
if (
|
|
1172
|
-
v === 0 ?
|
|
1173
|
-
else if (
|
|
1172
|
+
if (S === "(")
|
|
1173
|
+
v === 0 ? N = x : R += S, v++;
|
|
1174
|
+
else if (S === ")")
|
|
1174
1175
|
if (v--, v === 0) {
|
|
1175
|
-
const
|
|
1176
|
-
let
|
|
1177
|
-
Le && ([
|
|
1178
|
-
const Fe = f ? d : u(
|
|
1179
|
-
Fe === -1 && Pe === -1 ? (b = A(
|
|
1176
|
+
const W = typeof b == "string" && b.startsWith("$") ? b : void 0, Le = W && c.charAt(x + 1) === ".";
|
|
1177
|
+
let se = "";
|
|
1178
|
+
Le && ([se, x] = p(x + 2, c));
|
|
1179
|
+
const Fe = f ? d : u(N, c, 0), Pe = u(x, c);
|
|
1180
|
+
Fe === -1 && Pe === -1 ? (b = A(R, -1, W, se), typeof b == "string" && (b = R)) : f && (Fe >= Pe || Pe === -1) && d === Fe ? (k = f.bind(null, A(R, -1, W, se)), f = null, b = "") : Pe > Fe && d === Pe ? b = A(R, -1, W, se) : b += `(${R})${Le ? `.${se}` : ""}`, R = "";
|
|
1180
1181
|
} else
|
|
1181
|
-
|
|
1182
|
-
else if (v === 0 && (I = o(g,
|
|
1182
|
+
R += S;
|
|
1183
|
+
else if (v === 0 && (I = o(g, S, x, c))) {
|
|
1183
1184
|
x === 0 && H(103, [I, c]), x += I.length - 1, x === c.length - 1 && H(104, [I, c]), f ? b && (k = f.bind(null, A(b, d)), f = m[I].bind(null, k), b = "") : k ? (f = m[I].bind(null, A(k, d)), k = null) : (f = m[I].bind(null, A(b, d)), b = "");
|
|
1184
1185
|
continue;
|
|
1185
1186
|
} else
|
|
1186
|
-
q(v,
|
|
1187
|
+
q(v, S);
|
|
1187
1188
|
}
|
|
1188
|
-
return b && f && (f = f.bind(null, A(b, d))), f = !f && k ? k : f, !f && b && (f = (x,
|
|
1189
|
+
return b && f && (f = f.bind(null, A(b, d))), f = !f && k ? k : f, !f && b && (f = (x, W) => typeof x == "function" ? x(W) : x, f = f.bind(null, A(b, d))), !f && !b && H(105, c), f;
|
|
1189
1190
|
}
|
|
1190
1191
|
function A(c, d, m, y) {
|
|
1191
1192
|
if (m) {
|
|
1192
1193
|
const g = A(m, l.length);
|
|
1193
1194
|
let v, w = y ? J(`$${y}`) : !1;
|
|
1194
1195
|
if (typeof g == "function") {
|
|
1195
|
-
const f =
|
|
1196
|
+
const f = En(String(c)).map((b) => A(b, -1));
|
|
1196
1197
|
return (b) => {
|
|
1197
1198
|
const k = g(b);
|
|
1198
|
-
return typeof k != "function" ? (
|
|
1199
|
+
return typeof k != "function" ? (Ee(150, m), k) : (v = k(...f.map((I) => typeof I == "function" ? I(b) : I)), w && (w = w.provide((I) => {
|
|
1199
1200
|
const B = i(I);
|
|
1200
|
-
return I.reduce((
|
|
1201
|
+
return I.reduce((R, O) => {
|
|
1201
1202
|
if (O === y || (y == null ? void 0 : y.startsWith(`${O}(`))) {
|
|
1202
|
-
const q =
|
|
1203
|
-
|
|
1203
|
+
const q = Fn(v, O);
|
|
1204
|
+
R[O] = () => q;
|
|
1204
1205
|
} else
|
|
1205
|
-
|
|
1206
|
-
return
|
|
1206
|
+
R[O] = B[O];
|
|
1207
|
+
return R;
|
|
1207
1208
|
}, {});
|
|
1208
1209
|
})), w ? w() : v);
|
|
1209
1210
|
};
|
|
@@ -1215,8 +1216,8 @@ function J(e) {
|
|
|
1215
1216
|
return !1;
|
|
1216
1217
|
if (c === "undefined")
|
|
1217
1218
|
return;
|
|
1218
|
-
if (
|
|
1219
|
-
return
|
|
1219
|
+
if (Mn(c))
|
|
1220
|
+
return Rn(c.substring(1, c.length - 1));
|
|
1220
1221
|
if (!isNaN(+c))
|
|
1221
1222
|
return Number(c);
|
|
1222
1223
|
if (d < l.length - 1)
|
|
@@ -1243,8 +1244,8 @@ function J(e) {
|
|
|
1243
1244
|
provide: h
|
|
1244
1245
|
});
|
|
1245
1246
|
}
|
|
1246
|
-
const
|
|
1247
|
-
function
|
|
1247
|
+
const Ot = "0.19.0";
|
|
1248
|
+
function el(e) {
|
|
1248
1249
|
let i = 1;
|
|
1249
1250
|
return Array.isArray(e) ? e.map((t) => typeof t == "string" || typeof t == "number" ? {
|
|
1250
1251
|
label: String(t),
|
|
@@ -1266,12 +1267,12 @@ function Se(e, i) {
|
|
|
1266
1267
|
return i;
|
|
1267
1268
|
}
|
|
1268
1269
|
function Ve(e, i) {
|
|
1269
|
-
return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : ke(e) && ke(i) ?
|
|
1270
|
+
return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : ke(e) && ke(i) ? ue(e, i) : !1;
|
|
1270
1271
|
}
|
|
1271
1272
|
function gt(e) {
|
|
1272
|
-
e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value =
|
|
1273
|
+
e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value = el(i.value)), t(i)));
|
|
1273
1274
|
}
|
|
1274
|
-
function
|
|
1275
|
+
function C(e, i, t = !1) {
|
|
1275
1276
|
return (...n) => {
|
|
1276
1277
|
const l = (s) => {
|
|
1277
1278
|
const r = !i || typeof i == "string" ? { $el: i } : i();
|
|
@@ -1286,75 +1287,22 @@ function S(e, i, t = !1) {
|
|
|
1286
1287
|
else: e in s ? Ae(r, s[e]) : r
|
|
1287
1288
|
};
|
|
1288
1289
|
};
|
|
1289
|
-
return l._s = e, t ?
|
|
1290
|
+
return l._s = e, t ? tl(l) : l;
|
|
1290
1291
|
};
|
|
1291
1292
|
}
|
|
1292
|
-
function
|
|
1293
|
+
function tl(e) {
|
|
1293
1294
|
return (i) => [e(i)];
|
|
1294
1295
|
}
|
|
1295
|
-
function
|
|
1296
|
+
function Ne(e) {
|
|
1296
1297
|
return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
|
|
1297
1298
|
}
|
|
1298
1299
|
function Ae(e, i = {}) {
|
|
1299
|
-
return typeof e == "string" ?
|
|
1300
|
+
return typeof e == "string" ? Ne(i) || typeof i == "string" ? i : e : Array.isArray(e) ? Ne(i) ? i : e : Qe(e, i);
|
|
1300
1301
|
}
|
|
1301
|
-
const
|
|
1302
|
-
$el: "div",
|
|
1303
|
-
attrs: {
|
|
1304
|
-
key: "$id",
|
|
1305
|
-
"data-family": "$family || undefined",
|
|
1306
|
-
"data-type": "$type",
|
|
1307
|
-
"data-multiple": '$attrs.multiple || ($type != "select" && $options != undefined) || undefined',
|
|
1308
|
-
"data-disabled": '$: ($disabled !== "false" && $disabled) || undefined',
|
|
1309
|
-
"data-empty": "$state.empty || undefined",
|
|
1310
|
-
"data-complete": "$state.complete || undefined",
|
|
1311
|
-
"data-invalid": "$state.valid === false && $state.validationVisible || undefined",
|
|
1312
|
-
"data-errors": "$state.errors || undefined",
|
|
1313
|
-
"data-submitted": "$state.submitted || undefined",
|
|
1314
|
-
"data-prefix-icon": "$_rawPrefixIcon !== undefined || undefined",
|
|
1315
|
-
"data-suffix-icon": "$_rawSuffixIcon !== undefined || undefined",
|
|
1316
|
-
"data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
|
|
1317
|
-
"data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
|
|
1318
|
-
}
|
|
1319
|
-
})), le = S("inner", "div"), Ie = S("wrapper", "div"), je = S("label", () => ({
|
|
1320
|
-
$el: "label",
|
|
1321
|
-
if: "$label",
|
|
1322
|
-
attrs: {
|
|
1323
|
-
for: "$id"
|
|
1324
|
-
}
|
|
1325
|
-
})), ae = S("messages", () => ({
|
|
1326
|
-
$el: "ul",
|
|
1327
|
-
if: "$defaultMessagePlacement && $fns.length($messages)"
|
|
1328
|
-
})), se = S("message", () => ({
|
|
1329
|
-
$el: "li",
|
|
1330
|
-
for: ["message", "$messages"],
|
|
1331
|
-
attrs: {
|
|
1332
|
-
key: "$message.key",
|
|
1333
|
-
id: "$id + '-' + $message.key",
|
|
1334
|
-
"data-message-type": "$message.type"
|
|
1335
|
-
}
|
|
1336
|
-
})), Q = S("prefix", null), X = S("suffix", null), G = S("help", () => ({
|
|
1302
|
+
const nl = C("actions", () => ({
|
|
1337
1303
|
$el: "div",
|
|
1338
|
-
if: "$
|
|
1339
|
-
|
|
1340
|
-
id: '$: "help-" + $id'
|
|
1341
|
-
}
|
|
1342
|
-
})), an = S("fieldset", () => ({
|
|
1343
|
-
$el: "fieldset",
|
|
1344
|
-
attrs: {
|
|
1345
|
-
id: "$id",
|
|
1346
|
-
"aria-describedby": {
|
|
1347
|
-
if: "$help",
|
|
1348
|
-
then: '$: "help-" + $id',
|
|
1349
|
-
else: void 0
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
})), Ne = S("decorator", () => ({
|
|
1353
|
-
$el: "span",
|
|
1354
|
-
attrs: {
|
|
1355
|
-
"aria-hidden": "true"
|
|
1356
|
-
}
|
|
1357
|
-
})), He = S("input", () => ({
|
|
1304
|
+
if: "$actions"
|
|
1305
|
+
})), We = C("input", () => ({
|
|
1358
1306
|
$el: "input",
|
|
1359
1307
|
bind: "$attrs",
|
|
1360
1308
|
attrs: {
|
|
@@ -1380,16 +1328,19 @@ const ce = S("outer", () => ({
|
|
|
1380
1328
|
}
|
|
1381
1329
|
}
|
|
1382
1330
|
}
|
|
1383
|
-
})),
|
|
1384
|
-
$el: "
|
|
1385
|
-
if: "$
|
|
1386
|
-
|
|
1331
|
+
})), rn = C("optionHelp", () => ({
|
|
1332
|
+
$el: "div",
|
|
1333
|
+
if: "$option.help",
|
|
1334
|
+
attrs: {
|
|
1335
|
+
id: '$: "help-" + $option.attrs.id'
|
|
1336
|
+
}
|
|
1337
|
+
})), xt = C("inner", "span"), He = C("label", "span"), on = C("option", () => ({
|
|
1387
1338
|
$el: "li",
|
|
1388
1339
|
for: ["option", "$options"],
|
|
1389
1340
|
attrs: {
|
|
1390
1341
|
"data-disabled": "$option.attrs.disabled || $disabled"
|
|
1391
1342
|
}
|
|
1392
|
-
})),
|
|
1343
|
+
})), un = C("options", "ul"), qe = C("wrapper", () => ({
|
|
1393
1344
|
$el: "label",
|
|
1394
1345
|
attrs: {
|
|
1395
1346
|
"data-disabled": {
|
|
@@ -1403,13 +1354,7 @@ const ce = S("outer", () => ({
|
|
|
1403
1354
|
else: "$fns.isChecked($option.value) || undefined"
|
|
1404
1355
|
}
|
|
1405
1356
|
}
|
|
1406
|
-
})),
|
|
1407
|
-
$el: "div",
|
|
1408
|
-
if: "$option.help",
|
|
1409
|
-
attrs: {
|
|
1410
|
-
id: '$: "help-" + $option.attrs.id'
|
|
1411
|
-
}
|
|
1412
|
-
})), Ze = S("label", "span"), tl = S("input", () => ({
|
|
1357
|
+
})), il = C("input", () => ({
|
|
1413
1358
|
$el: "button",
|
|
1414
1359
|
bind: "$attrs",
|
|
1415
1360
|
attrs: {
|
|
@@ -1418,7 +1363,22 @@ const ce = S("outer", () => ({
|
|
|
1418
1363
|
name: "$node.name",
|
|
1419
1364
|
id: "$id"
|
|
1420
1365
|
}
|
|
1421
|
-
})),
|
|
1366
|
+
})), ll = C("default", null), Ze = C("decorator", () => ({
|
|
1367
|
+
$el: "span",
|
|
1368
|
+
attrs: {
|
|
1369
|
+
"aria-hidden": "true"
|
|
1370
|
+
}
|
|
1371
|
+
})), fn = C("fieldset", () => ({
|
|
1372
|
+
$el: "fieldset",
|
|
1373
|
+
attrs: {
|
|
1374
|
+
id: "$id",
|
|
1375
|
+
"aria-describedby": {
|
|
1376
|
+
if: "$help",
|
|
1377
|
+
then: '$: "help-" + $id',
|
|
1378
|
+
else: void 0
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
})), al = C("input", () => ({
|
|
1422
1382
|
$el: "input",
|
|
1423
1383
|
bind: "$attrs",
|
|
1424
1384
|
attrs: {
|
|
@@ -1430,10 +1390,10 @@ const ce = S("outer", () => ({
|
|
|
1430
1390
|
id: "$id",
|
|
1431
1391
|
"aria-describedby": "$describedBy"
|
|
1432
1392
|
}
|
|
1433
|
-
})),
|
|
1393
|
+
})), sl = C("fileItem", () => ({
|
|
1434
1394
|
$el: "li",
|
|
1435
1395
|
for: ["file", "$value"]
|
|
1436
|
-
})),
|
|
1396
|
+
})), rl = C("fileList", () => ({
|
|
1437
1397
|
$el: "ul",
|
|
1438
1398
|
if: "$value.length",
|
|
1439
1399
|
attrs: {
|
|
@@ -1442,20 +1402,17 @@ const ce = S("outer", () => ({
|
|
|
1442
1402
|
then: "true"
|
|
1443
1403
|
}
|
|
1444
1404
|
}
|
|
1445
|
-
})),
|
|
1405
|
+
})), ol = C("fileName", () => ({
|
|
1446
1406
|
$el: "span",
|
|
1447
1407
|
attrs: {
|
|
1448
1408
|
class: "$classes.fileName"
|
|
1449
1409
|
}
|
|
1450
|
-
})),
|
|
1410
|
+
})), Mt = C("fileRemove", () => ({
|
|
1451
1411
|
$el: "button",
|
|
1452
1412
|
attrs: {
|
|
1453
1413
|
onClick: "$handlers.resetFiles"
|
|
1454
1414
|
}
|
|
1455
|
-
})),
|
|
1456
|
-
$el: "span",
|
|
1457
|
-
if: "$value.length == 0"
|
|
1458
|
-
})), ol = S("form", () => ({
|
|
1415
|
+
})), ul = C("form", () => ({
|
|
1459
1416
|
$el: "form",
|
|
1460
1417
|
bind: "$attrs",
|
|
1461
1418
|
attrs: {
|
|
@@ -1464,10 +1421,97 @@ const ce = S("outer", () => ({
|
|
|
1464
1421
|
onSubmit: "$handlers.submit",
|
|
1465
1422
|
"data-loading": "$state.loading || undefined"
|
|
1466
1423
|
}
|
|
1467
|
-
})),
|
|
1424
|
+
})), $t = C("wrapper", null, !0), Q = C("help", () => ({
|
|
1468
1425
|
$el: "div",
|
|
1469
|
-
if: "$
|
|
1470
|
-
|
|
1426
|
+
if: "$help",
|
|
1427
|
+
attrs: {
|
|
1428
|
+
id: '$: "help-" + $id'
|
|
1429
|
+
}
|
|
1430
|
+
})), z = (e, i) => C(`${e}Icon`, () => {
|
|
1431
|
+
const t = `_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;
|
|
1432
|
+
return {
|
|
1433
|
+
if: `$${e}Icon && $${t}`,
|
|
1434
|
+
$el: `${i || "span"}`,
|
|
1435
|
+
attrs: {
|
|
1436
|
+
class: `$classes.${e}Icon + " " + $classes.icon`,
|
|
1437
|
+
innerHTML: `$${t}`,
|
|
1438
|
+
onClick: `$handlers.iconClick(${e})`,
|
|
1439
|
+
for: {
|
|
1440
|
+
if: `${i === "label"}`,
|
|
1441
|
+
then: "$id"
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1445
|
+
})(), me = C("inner", "div"), je = C("label", () => ({
|
|
1446
|
+
$el: "label",
|
|
1447
|
+
if: "$label",
|
|
1448
|
+
attrs: {
|
|
1449
|
+
for: "$id"
|
|
1450
|
+
}
|
|
1451
|
+
})), cn = C("legend", () => ({
|
|
1452
|
+
$el: "legend",
|
|
1453
|
+
if: "$label"
|
|
1454
|
+
})), le = C("message", () => ({
|
|
1455
|
+
$el: "li",
|
|
1456
|
+
for: ["message", "$messages"],
|
|
1457
|
+
attrs: {
|
|
1458
|
+
key: "$message.key",
|
|
1459
|
+
id: "$id + '-' + $message.key",
|
|
1460
|
+
"data-message-type": "$message.type"
|
|
1461
|
+
}
|
|
1462
|
+
})), ae = C("messages", () => ({
|
|
1463
|
+
$el: "ul",
|
|
1464
|
+
if: "$defaultMessagePlacement && $fns.length($messages)"
|
|
1465
|
+
})), fl = C("noFiles", () => ({
|
|
1466
|
+
$el: "span",
|
|
1467
|
+
if: "$value.length == 0"
|
|
1468
|
+
})), cl = C("option", () => ({
|
|
1469
|
+
$el: "option",
|
|
1470
|
+
for: ["option", "$options"],
|
|
1471
|
+
bind: "$option.attrs",
|
|
1472
|
+
attrs: {
|
|
1473
|
+
class: "$classes.option",
|
|
1474
|
+
value: "$option.value",
|
|
1475
|
+
selected: "$fns.isSelected($option)"
|
|
1476
|
+
}
|
|
1477
|
+
})), pl = () => ({
|
|
1478
|
+
$el: null,
|
|
1479
|
+
if: "$options.length",
|
|
1480
|
+
for: ["option", "$options"],
|
|
1481
|
+
children: "$slots.option"
|
|
1482
|
+
}), fe = C("outer", () => ({
|
|
1483
|
+
$el: "div",
|
|
1484
|
+
attrs: {
|
|
1485
|
+
key: "$id",
|
|
1486
|
+
"data-family": "$family || undefined",
|
|
1487
|
+
"data-type": "$type",
|
|
1488
|
+
"data-multiple": '$attrs.multiple || ($type != "select" && $options != undefined) || undefined',
|
|
1489
|
+
"data-disabled": '$: ($disabled !== "false" && $disabled) || undefined',
|
|
1490
|
+
"data-empty": "$state.empty || undefined",
|
|
1491
|
+
"data-complete": "$state.complete || undefined",
|
|
1492
|
+
"data-invalid": "$state.valid === false && $state.validationVisible || undefined",
|
|
1493
|
+
"data-errors": "$state.errors || undefined",
|
|
1494
|
+
"data-submitted": "$state.submitted || undefined",
|
|
1495
|
+
"data-prefix-icon": "$_rawPrefixIcon !== undefined || undefined",
|
|
1496
|
+
"data-suffix-icon": "$_rawSuffixIcon !== undefined || undefined",
|
|
1497
|
+
"data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
|
|
1498
|
+
"data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
|
|
1499
|
+
}
|
|
1500
|
+
})), X = C("prefix", null), dl = C("input", () => ({
|
|
1501
|
+
$el: "select",
|
|
1502
|
+
bind: "$attrs",
|
|
1503
|
+
attrs: {
|
|
1504
|
+
id: "$id",
|
|
1505
|
+
"data-placeholder": "$fns.showPlaceholder($_value, $placeholder)",
|
|
1506
|
+
disabled: "$disabled",
|
|
1507
|
+
class: "$classes.input",
|
|
1508
|
+
name: "$node.name",
|
|
1509
|
+
onChange: "$handlers.onChange",
|
|
1510
|
+
onInput: "$handlers.selectInput",
|
|
1511
|
+
onBlur: "$handlers.blur",
|
|
1512
|
+
"aria-describedby": "$describedBy"
|
|
1513
|
+
}
|
|
1514
|
+
})), ml = C("submit", () => ({
|
|
1471
1515
|
$cmp: "FormKit",
|
|
1472
1516
|
bind: "$submitAttrs",
|
|
1473
1517
|
props: {
|
|
@@ -1475,7 +1519,7 @@ const ce = S("outer", () => ({
|
|
|
1475
1519
|
disabled: "$disabled",
|
|
1476
1520
|
label: "$submitLabel"
|
|
1477
1521
|
}
|
|
1478
|
-
})),
|
|
1522
|
+
})), G = C("suffix", null), pn = C("input", () => ({
|
|
1479
1523
|
$el: "input",
|
|
1480
1524
|
bind: "$attrs",
|
|
1481
1525
|
attrs: {
|
|
@@ -1488,35 +1532,7 @@ const ce = S("outer", () => ({
|
|
|
1488
1532
|
id: "$id",
|
|
1489
1533
|
"aria-describedby": "$describedBy"
|
|
1490
1534
|
}
|
|
1491
|
-
})),
|
|
1492
|
-
$el: "select",
|
|
1493
|
-
bind: "$attrs",
|
|
1494
|
-
attrs: {
|
|
1495
|
-
id: "$id",
|
|
1496
|
-
"data-placeholder": "$fns.showPlaceholder($_value, $placeholder)",
|
|
1497
|
-
disabled: "$disabled",
|
|
1498
|
-
class: "$classes.input",
|
|
1499
|
-
name: "$node.name",
|
|
1500
|
-
onChange: "$handlers.onChange",
|
|
1501
|
-
onInput: "$handlers.selectInput",
|
|
1502
|
-
onBlur: "$handlers.blur",
|
|
1503
|
-
"aria-describedby": "$describedBy"
|
|
1504
|
-
}
|
|
1505
|
-
})), pl = S("option", () => ({
|
|
1506
|
-
$el: "option",
|
|
1507
|
-
for: ["option", "$options"],
|
|
1508
|
-
bind: "$option.attrs",
|
|
1509
|
-
attrs: {
|
|
1510
|
-
class: "$classes.option",
|
|
1511
|
-
value: "$option.value",
|
|
1512
|
-
selected: "$fns.isSelected($option)"
|
|
1513
|
-
}
|
|
1514
|
-
})), dl = () => ({
|
|
1515
|
-
$el: null,
|
|
1516
|
-
if: "$options.length",
|
|
1517
|
-
for: ["option", "$options"],
|
|
1518
|
-
children: "$slots.option"
|
|
1519
|
-
}), ml = S("input", () => ({
|
|
1535
|
+
})), bl = C("input", () => ({
|
|
1520
1536
|
$el: "textarea",
|
|
1521
1537
|
bind: "$attrs",
|
|
1522
1538
|
attrs: {
|
|
@@ -1529,29 +1545,14 @@ const ce = S("outer", () => ({
|
|
|
1529
1545
|
"aria-describedby": "$describedBy"
|
|
1530
1546
|
},
|
|
1531
1547
|
children: "$initialValue"
|
|
1532
|
-
})),
|
|
1533
|
-
|
|
1534
|
-
return {
|
|
1535
|
-
if: `$${e}Icon && $${t}`,
|
|
1536
|
-
$el: `${i || "span"}`,
|
|
1537
|
-
attrs: {
|
|
1538
|
-
class: `$classes.${e}Icon + " " + $classes.icon`,
|
|
1539
|
-
innerHTML: `$${t}`,
|
|
1540
|
-
onClick: `$handlers.iconClick(${e})`,
|
|
1541
|
-
for: {
|
|
1542
|
-
if: `${i === "label"}`,
|
|
1543
|
-
then: "$id"
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
|
-
})();
|
|
1548
|
-
function pn(e) {
|
|
1548
|
+
})), Ie = C("wrapper", "div");
|
|
1549
|
+
function dn(e) {
|
|
1549
1550
|
return function(i, t) {
|
|
1550
1551
|
return i.prop === "options" && Array.isArray(i.value) && (i.value = i.value.map((n) => {
|
|
1551
1552
|
var l;
|
|
1552
1553
|
return !((l = n.attrs) === null || l === void 0) && l.id ? n : Qe(n, {
|
|
1553
1554
|
attrs: {
|
|
1554
|
-
id: `${e.
|
|
1555
|
+
id: `${e.props.id}-option-${dt(String(n.value))}`
|
|
1555
1556
|
}
|
|
1556
1557
|
});
|
|
1557
1558
|
}), e.props.type === "checkbox" && !Array.isArray(e.value) && (e.isCreated ? e.input([], !1) : e.on("created", () => {
|
|
@@ -1559,24 +1560,29 @@ function pn(e) {
|
|
|
1559
1560
|
}))), t(i);
|
|
1560
1561
|
};
|
|
1561
1562
|
}
|
|
1562
|
-
function
|
|
1563
|
+
function yl(e, i) {
|
|
1563
1564
|
const t = i.target;
|
|
1564
1565
|
if (t instanceof HTMLInputElement) {
|
|
1565
1566
|
const n = Array.isArray(e.props.options) ? Se(e.props.options, t.value) : t.value;
|
|
1566
1567
|
Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((l) => Ve(n, l)) ? e.input(e._value.filter((l) => !Ve(n, l))) : e.input([...e._value, n]) : e.input([n]) : t.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
|
|
1567
1568
|
}
|
|
1568
1569
|
}
|
|
1569
|
-
function
|
|
1570
|
+
function vl(e, i) {
|
|
1570
1571
|
var t, n;
|
|
1571
1572
|
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) => Ve(Se(e.props.options, i), l)) : !1;
|
|
1572
1573
|
}
|
|
1573
|
-
function
|
|
1574
|
+
function hl(e) {
|
|
1574
1575
|
e.on("created", () => {
|
|
1575
1576
|
var i, t;
|
|
1576
|
-
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked =
|
|
1577
|
-
}), e.hook.prop(
|
|
1577
|
+
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = yl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = vl.bind(null, e)), F(e.props, "onValue") || (e.props.onValue = !0), F(e.props, "offValue") || (e.props.offValue = !1);
|
|
1578
|
+
}), e.hook.prop(dn(e));
|
|
1579
|
+
}
|
|
1580
|
+
function _e(e, i) {
|
|
1581
|
+
return (t) => {
|
|
1582
|
+
t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = i.startsWith("<svg") ? i : `default:${i}`);
|
|
1583
|
+
};
|
|
1578
1584
|
}
|
|
1579
|
-
function
|
|
1585
|
+
function wt(e) {
|
|
1580
1586
|
e.on("created", () => {
|
|
1581
1587
|
"disabled" in e.props && (e.props.disabled = Y(e.props.disabled), e.config.disabled = Y(e.props.disabled));
|
|
1582
1588
|
}), e.hook.prop(({ prop: i, value: t }, n) => (t = i === "disabled" ? Y(t) : t, n({ prop: i, value: t }))), e.on("prop:disabled", ({ payload: i }) => {
|
|
@@ -1585,7 +1591,7 @@ function $t(e) {
|
|
|
1585
1591
|
}
|
|
1586
1592
|
function ze(e, i) {
|
|
1587
1593
|
return (t) => {
|
|
1588
|
-
t.store.set(
|
|
1594
|
+
t.store.set(oe({
|
|
1589
1595
|
key: e,
|
|
1590
1596
|
type: "ui",
|
|
1591
1597
|
value: i || e,
|
|
@@ -1597,14 +1603,14 @@ function ze(e, i) {
|
|
|
1597
1603
|
};
|
|
1598
1604
|
}
|
|
1599
1605
|
const tt = typeof window < "u";
|
|
1600
|
-
function
|
|
1606
|
+
function mn(e) {
|
|
1601
1607
|
e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
|
|
1602
1608
|
}
|
|
1603
|
-
function
|
|
1604
|
-
i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" &&
|
|
1609
|
+
function Rt(e, i) {
|
|
1610
|
+
i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && mn(i);
|
|
1605
1611
|
}
|
|
1606
|
-
function
|
|
1607
|
-
ze("noFiles", "Select file")(e), ze("removeAll", "Remove all")(e), ze("remove")(e), tt && (window._FormKit_File_Drop || (window.addEventListener("dragover",
|
|
1612
|
+
function _l(e) {
|
|
1613
|
+
ze("noFiles", "Select file")(e), ze("removeAll", "Remove all")(e), ze("remove")(e), tt && (window._FormKit_File_Drop || (window.addEventListener("dragover", Rt.bind(null, "dragover")), window.addEventListener("drop", Rt.bind(null, "drop")), window.addEventListener("dragleave", mn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("reset", () => {
|
|
1608
1614
|
if (e.props.id && tt) {
|
|
1609
1615
|
const i = document.getElementById(e.props.id);
|
|
1610
1616
|
i && (i.value = "");
|
|
@@ -1629,22 +1635,22 @@ function hl(e) {
|
|
|
1629
1635
|
});
|
|
1630
1636
|
});
|
|
1631
1637
|
}
|
|
1632
|
-
const
|
|
1638
|
+
const Et = oe({
|
|
1633
1639
|
key: "loading",
|
|
1634
1640
|
value: !0,
|
|
1635
1641
|
visible: !1
|
|
1636
1642
|
});
|
|
1637
|
-
async function
|
|
1643
|
+
async function gl(e, i) {
|
|
1638
1644
|
const t = Math.random();
|
|
1639
|
-
if (e.props._submitNonce = t, i.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(
|
|
1645
|
+
if (e.props._submitNonce = t, i.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(Et), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== t))
|
|
1640
1646
|
return;
|
|
1641
|
-
const n = (l) => l.store.set(
|
|
1647
|
+
const n = (l) => l.store.set(oe({
|
|
1642
1648
|
key: "submitted",
|
|
1643
1649
|
value: !0,
|
|
1644
1650
|
visible: !1
|
|
1645
1651
|
}));
|
|
1646
1652
|
if (e.walk(n), n(e), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
|
|
1647
|
-
typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(
|
|
1653
|
+
typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(oe({
|
|
1648
1654
|
blocking: !1,
|
|
1649
1655
|
key: "incomplete",
|
|
1650
1656
|
meta: {
|
|
@@ -1656,45 +1662,63 @@ async function _l(e, i) {
|
|
|
1656
1662
|
value: e.props.incompleteMessage || "Form incomplete."
|
|
1657
1663
|
}));
|
|
1658
1664
|
else if (typeof e.props.onSubmit == "function") {
|
|
1659
|
-
const l = e.props.onSubmit(e.hook.submit.dispatch(
|
|
1665
|
+
const l = e.props.onSubmit(e.hook.submit.dispatch(Re(e.value)), e);
|
|
1660
1666
|
if (l instanceof Promise) {
|
|
1661
1667
|
const s = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
|
|
1662
|
-
s && (e.props.disabled = !0), e.store.set(
|
|
1668
|
+
s && (e.props.disabled = !0), e.store.set(Et), await l, s && (e.props.disabled = !1), e.store.remove("loading");
|
|
1663
1669
|
}
|
|
1664
1670
|
} else
|
|
1665
1671
|
i.target instanceof HTMLFormElement && i.target.submit();
|
|
1666
1672
|
}
|
|
1667
|
-
function
|
|
1673
|
+
function $l(e) {
|
|
1668
1674
|
e.props.isForm = !0, e.ledger.count("validating", (i) => i.key === "validating"), e.on("created", () => {
|
|
1669
1675
|
var i;
|
|
1670
|
-
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit =
|
|
1676
|
+
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = gl.bind(null, e)), F(e.props, "actions") || (e.props.actions = !0);
|
|
1671
1677
|
}), e.on("settled:blocking", () => e.store.remove("incomplete"));
|
|
1672
1678
|
}
|
|
1673
|
-
function
|
|
1679
|
+
function wl(e) {
|
|
1674
1680
|
e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
|
|
1675
1681
|
}
|
|
1676
|
-
function
|
|
1682
|
+
function kl(e) {
|
|
1677
1683
|
e.on("created", () => {
|
|
1678
1684
|
e.context && (e.context.initialValue = e.value || "");
|
|
1679
1685
|
});
|
|
1680
1686
|
}
|
|
1681
|
-
function
|
|
1682
|
-
|
|
1687
|
+
function bn(e) {
|
|
1688
|
+
if (typeof e.props.number > "u")
|
|
1689
|
+
return;
|
|
1690
|
+
const i = ["number", "range", "hidden"].includes(e.props.type);
|
|
1691
|
+
e.hook.input((t, n) => {
|
|
1692
|
+
if (t === "")
|
|
1693
|
+
return n(void 0);
|
|
1694
|
+
const l = e.props.number === "integer" ? parseInt(t) : parseFloat(t);
|
|
1695
|
+
return Number.isFinite(l) ? n(l) : n(i ? void 0 : t);
|
|
1696
|
+
});
|
|
1683
1697
|
}
|
|
1684
1698
|
function Cl(e, i) {
|
|
1699
|
+
i.target instanceof HTMLInputElement && e.input(Se(e.props.options, i.target.value));
|
|
1700
|
+
}
|
|
1701
|
+
function Sl(e, i) {
|
|
1685
1702
|
var t, n;
|
|
1686
1703
|
return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Ve(Se(e.props.options, i), e._value);
|
|
1687
1704
|
}
|
|
1688
|
-
function
|
|
1705
|
+
function Vl(e) {
|
|
1689
1706
|
e.on("created", () => {
|
|
1690
1707
|
var i, t;
|
|
1691
|
-
Array.isArray(e.props.options) ||
|
|
1708
|
+
Array.isArray(e.props.options) || Ee(350, {
|
|
1692
1709
|
node: e,
|
|
1693
1710
|
inputType: "radio"
|
|
1694
|
-
}), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked =
|
|
1695
|
-
}), e.hook.prop(
|
|
1711
|
+
}), !((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 = Sl.bind(null, e));
|
|
1712
|
+
}), e.hook.prop(dn(e));
|
|
1713
|
+
}
|
|
1714
|
+
let Il = 0;
|
|
1715
|
+
function Ll(e) {
|
|
1716
|
+
e.sync && e.plugins.add(Pl);
|
|
1717
|
+
}
|
|
1718
|
+
function Pl(e) {
|
|
1719
|
+
e.props.type === "radio" && (e.props.altName = `${e.name}_${Il++}`);
|
|
1696
1720
|
}
|
|
1697
|
-
function
|
|
1721
|
+
function Al(e, i) {
|
|
1698
1722
|
e.context && e.context.value;
|
|
1699
1723
|
const t = "__original" in i ? i.__original : i.value;
|
|
1700
1724
|
function n() {
|
|
@@ -1702,15 +1726,15 @@ function Vl(e, i) {
|
|
|
1702
1726
|
}
|
|
1703
1727
|
return Array.isArray(e._value) ? e._value.some((l) => Ve(l, t)) : (e._value === void 0 || e._value === null && n()) && i.attrs && i.attrs["data-is-placeholder"] ? !0 : Ve(t, e._value);
|
|
1704
1728
|
}
|
|
1705
|
-
async function
|
|
1729
|
+
async function Ol(e, i) {
|
|
1706
1730
|
var t;
|
|
1707
1731
|
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));
|
|
1708
1732
|
}
|
|
1709
|
-
function
|
|
1733
|
+
function xl(e, i) {
|
|
1710
1734
|
const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((l) => Se(e.props.options, l.value)) : Se(e.props.options, t.value);
|
|
1711
1735
|
e.input(n);
|
|
1712
1736
|
}
|
|
1713
|
-
function
|
|
1737
|
+
function jt(e, i) {
|
|
1714
1738
|
return e.some((t) => t.attrs && t.attrs["data-is-placeholder"]) ? e : [
|
|
1715
1739
|
{
|
|
1716
1740
|
label: i,
|
|
@@ -1724,24 +1748,24 @@ function Et(e, i) {
|
|
|
1724
1748
|
...e
|
|
1725
1749
|
];
|
|
1726
1750
|
}
|
|
1727
|
-
function
|
|
1751
|
+
function Ml(e) {
|
|
1728
1752
|
e.on("created", () => {
|
|
1729
1753
|
var i, t, n;
|
|
1730
1754
|
const l = Y((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
|
|
1731
|
-
!l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r =
|
|
1755
|
+
!l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r = jt(r, e.props.placeholder)), o({ prop: s, value: r }))), e.props.options = jt(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, {
|
|
1732
1756
|
value: e._value
|
|
1733
1757
|
}), e.on("input", ({ payload: s }) => {
|
|
1734
1758
|
e.props.attrs = Object.assign({}, e.props.attrs, {
|
|
1735
1759
|
value: s
|
|
1736
1760
|
});
|
|
1737
|
-
})), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput =
|
|
1761
|
+
})), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = xl.bind(null, e), e.context.handlers.onChange = Ol.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = Al.bind(null, e), e.context.fns.showPlaceholder = (s, r) => {
|
|
1738
1762
|
if (!Array.isArray(e.props.options))
|
|
1739
1763
|
return !1;
|
|
1740
1764
|
const o = e.props.options.some((u) => {
|
|
1741
1765
|
if (u.attrs && "data-is-placeholder" in u.attrs)
|
|
1742
1766
|
return !1;
|
|
1743
1767
|
const p = "__original" in u ? u.__original : u.value;
|
|
1744
|
-
return
|
|
1768
|
+
return ue(s, p);
|
|
1745
1769
|
});
|
|
1746
1770
|
return r && !o ? !0 : void 0;
|
|
1747
1771
|
});
|
|
@@ -1750,28 +1774,23 @@ function Pl(e) {
|
|
|
1750
1774
|
return !e.props.placeholder && i === void 0 && Array.isArray((n = e.props) === null || n === void 0 ? void 0 : n.options) && e.props.options.length && !Y((s = (l = e.props) === null || l === void 0 ? void 0 : l.attrs) === null || s === void 0 ? void 0 : s.multiple) && (i = "__original" in e.props.options[0] ? e.props.options[0].__original : e.props.options[0].value), t(i);
|
|
1751
1775
|
});
|
|
1752
1776
|
}
|
|
1753
|
-
function _e(e, i) {
|
|
1754
|
-
return (t) => {
|
|
1755
|
-
t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = i.startsWith("<svg") ? i : `default:${i}`);
|
|
1756
|
-
};
|
|
1757
|
-
}
|
|
1758
1777
|
function pt(e) {
|
|
1759
1778
|
return !!(ve(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
|
|
1760
1779
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return
|
|
1780
|
+
function Rl(e) {
|
|
1781
|
+
return fe(Ie(je("$label"), me(X(), e(), G())), Q("$help"), ae(le("$message.value")));
|
|
1763
1782
|
}
|
|
1764
1783
|
function ie(e, i, t) {
|
|
1765
1784
|
const n = (l) => {
|
|
1766
1785
|
const s = i(l);
|
|
1767
|
-
if (t ||
|
|
1786
|
+
if (t || Ne(s) && "if" in s || pt(s)) {
|
|
1768
1787
|
const r = {
|
|
1769
1788
|
if: e,
|
|
1770
1789
|
then: s
|
|
1771
1790
|
};
|
|
1772
1791
|
return t && (r.else = t(l)), r;
|
|
1773
1792
|
} else
|
|
1774
|
-
pt(s) ? Object.assign(s.else, { if: e }) :
|
|
1793
|
+
pt(s) ? Object.assign(s.else, { if: e }) : Ne(s) && Object.assign(s, { if: e });
|
|
1775
1794
|
return s;
|
|
1776
1795
|
};
|
|
1777
1796
|
return n._s = Ye(), n;
|
|
@@ -1783,7 +1802,7 @@ function ge(e, i) {
|
|
|
1783
1802
|
};
|
|
1784
1803
|
return t._s = e._s, t;
|
|
1785
1804
|
}
|
|
1786
|
-
const
|
|
1805
|
+
const El = [
|
|
1787
1806
|
"classes",
|
|
1788
1807
|
"config",
|
|
1789
1808
|
"delay",
|
|
@@ -1794,6 +1813,7 @@ const Ol = [
|
|
|
1794
1813
|
"modelValue",
|
|
1795
1814
|
"onUpdate:modelValue",
|
|
1796
1815
|
"name",
|
|
1816
|
+
"number",
|
|
1797
1817
|
"parent",
|
|
1798
1818
|
"plugins",
|
|
1799
1819
|
"sectionsSchema",
|
|
@@ -1811,70 +1831,71 @@ const Ol = [
|
|
|
1811
1831
|
"onSubmitInvalid",
|
|
1812
1832
|
"onSubmitRaw"
|
|
1813
1833
|
];
|
|
1814
|
-
|
|
1815
|
-
|
|
1834
|
+
fe(ae(le("$message.value")), Ie(il(z("prefix"), X(), ll("$label || $ui.submit.value"), G(), z("suffix"))), Q("$help")), ze("submit");
|
|
1835
|
+
fe(
|
|
1816
1836
|
ie(
|
|
1817
1837
|
"$options == undefined",
|
|
1818
1838
|
/**
|
|
1819
1839
|
* Single checkbox structure.
|
|
1820
1840
|
*/
|
|
1821
|
-
qe(
|
|
1841
|
+
qe(xt(X(), We(), Ze(z("decorator")), G()), ge(He("$label"), {
|
|
1822
1842
|
if: "$label"
|
|
1823
1843
|
})),
|
|
1824
1844
|
/**
|
|
1825
1845
|
* Multi checkbox structure.
|
|
1826
1846
|
*/
|
|
1827
|
-
|
|
1847
|
+
fn(cn("$label"), Q("$help"), un(on(qe(xt(X(), ge(We(), {
|
|
1828
1848
|
bind: "$option.attrs",
|
|
1829
1849
|
attrs: {
|
|
1830
1850
|
id: "$option.attrs.id",
|
|
1831
1851
|
value: "$option.value",
|
|
1832
1852
|
checked: "$fns.isChecked($option.value)"
|
|
1833
1853
|
}
|
|
1834
|
-
}),
|
|
1854
|
+
}), Ze(z("decorator")), G()), ge(He("$option.label"), {
|
|
1835
1855
|
if: "$option.label"
|
|
1836
|
-
})),
|
|
1856
|
+
})), rn("$option.help"))))
|
|
1837
1857
|
),
|
|
1838
1858
|
// Help text only goes under the input when it is a single.
|
|
1839
|
-
ie("$options == undefined && $help",
|
|
1840
|
-
ae(
|
|
1859
|
+
ie("$options == undefined && $help", Q("$help")),
|
|
1860
|
+
ae(le("$message.value"))
|
|
1841
1861
|
), _e("decorator", "checkboxDecorator");
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1862
|
+
fe(Ie(je("$label"), me(z("prefix", "label"), X(), al(), rl(sl(z("fileItem"), ol("$file.name"), ie("$value.length === 1", Mt(z("fileRemove"), "$ui.remove.value")))), ie("$value.length > 1", Mt("$ui.removeAll.value")), fl(z("noFiles"), "$ui.noFiles.value"), G(), z("suffix"))), Q("$help"), ae(le("$message.value"))), _e("fileItem", "fileItem"), _e("fileRemove", "fileRemove"), _e("noFiles", "noFiles");
|
|
1863
|
+
ul("$slots.default", ae(le("$message.value")), nl(ml()));
|
|
1864
|
+
$t("$slots.default");
|
|
1865
|
+
pn();
|
|
1866
|
+
$t("$slots.default");
|
|
1867
|
+
$t();
|
|
1868
|
+
fe(
|
|
1848
1869
|
ie(
|
|
1849
1870
|
"$options == undefined",
|
|
1850
1871
|
/**
|
|
1851
1872
|
* Single radio structure.
|
|
1852
1873
|
*/
|
|
1853
|
-
qe(
|
|
1874
|
+
qe(me(X(), We(), Ze(z("decorator")), G()), ge(He("$label"), {
|
|
1854
1875
|
if: "$label"
|
|
1855
1876
|
})),
|
|
1856
1877
|
/**
|
|
1857
1878
|
* Multi radio structure.
|
|
1858
1879
|
*/
|
|
1859
|
-
|
|
1880
|
+
fn(cn("$label"), Q("$help"), un(on(qe(me(X(), ge(We(), {
|
|
1860
1881
|
bind: "$option.attrs",
|
|
1861
1882
|
attrs: {
|
|
1862
1883
|
id: "$option.attrs.id",
|
|
1863
1884
|
value: "$option.value",
|
|
1864
1885
|
checked: "$fns.isChecked($option.value)"
|
|
1865
1886
|
}
|
|
1866
|
-
}),
|
|
1887
|
+
}), Ze(z("decorator")), G()), ge(He("$option.label"), {
|
|
1867
1888
|
if: "$option.label"
|
|
1868
|
-
})),
|
|
1889
|
+
})), rn("$option.help"))))
|
|
1869
1890
|
),
|
|
1870
1891
|
// Help text only goes under the input when it is a single.
|
|
1871
|
-
ie("$options == undefined && $help",
|
|
1872
|
-
ae(
|
|
1892
|
+
ie("$options == undefined && $help", Q("$help")),
|
|
1893
|
+
ae(le("$message.value"))
|
|
1873
1894
|
), _e("decorator", "radioDecorator");
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1895
|
+
fe(Ie(je("$label"), me(z("prefix"), X(), dl(ie("$slots.default", () => "$slots.default", ie("$slots.option", pl, cl("$option.label")))), ie("$attrs.multiple !== undefined", () => "", z("select")), G(), z("suffix"))), Q("$help"), ae(le("$message.value"))), _e("select", "select");
|
|
1896
|
+
fe(Ie(je("$label"), me(z("prefix", "label"), X(), bl(), G(), z("suffix"))), Q("$help"), ae(le("$message.value")));
|
|
1897
|
+
fe(Ie(je("$label"), me(z("prefix", "label"), X(), pn(), G(), z("suffix"))), Q("$help"), ae(le("$message.value")));
|
|
1898
|
+
oe({
|
|
1878
1899
|
type: "state",
|
|
1879
1900
|
blocking: !0,
|
|
1880
1901
|
visible: !1,
|
|
@@ -1882,7 +1903,7 @@ ue({
|
|
|
1882
1903
|
key: "validating"
|
|
1883
1904
|
});
|
|
1884
1905
|
let Ue;
|
|
1885
|
-
const
|
|
1906
|
+
const jl = new Promise((e) => {
|
|
1886
1907
|
}), Ge = typeof window < "u" && typeof fetch < "u";
|
|
1887
1908
|
Ue = Ge ? getComputedStyle(document.documentElement) : void 0;
|
|
1888
1909
|
const Oe = {}, nt = {};
|
|
@@ -1899,19 +1920,19 @@ function it(e, i) {
|
|
|
1899
1920
|
if (l)
|
|
1900
1921
|
return Oe[t];
|
|
1901
1922
|
if (!nt[t]) {
|
|
1902
|
-
if (s =
|
|
1903
|
-
nt[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) :
|
|
1923
|
+
if (s = Fl(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
|
|
1924
|
+
nt[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) : Tl(t, i) : r).then((r) => (typeof t == "string" && (Oe[n ? `default:${t}` : t] = r), r));
|
|
1904
1925
|
else if (typeof s == "string")
|
|
1905
1926
|
return Oe[n ? `default:${t}` : t] = s, s;
|
|
1906
1927
|
}
|
|
1907
1928
|
return nt[t];
|
|
1908
1929
|
};
|
|
1909
1930
|
}
|
|
1910
|
-
function
|
|
1931
|
+
function Fl(e) {
|
|
1911
1932
|
if (Ge)
|
|
1912
|
-
return
|
|
1933
|
+
return jl.then(() => Dl(e));
|
|
1913
1934
|
}
|
|
1914
|
-
function
|
|
1935
|
+
function Dl(e) {
|
|
1915
1936
|
const i = Ue == null ? void 0 : Ue.getPropertyValue(`--fk-icon-${e}`);
|
|
1916
1937
|
if (i) {
|
|
1917
1938
|
const t = atob(i);
|
|
@@ -1919,8 +1940,8 @@ function El(e) {
|
|
|
1919
1940
|
return Oe[e] = t, t;
|
|
1920
1941
|
}
|
|
1921
1942
|
}
|
|
1922
|
-
function
|
|
1923
|
-
const t =
|
|
1943
|
+
function Tl(e, i) {
|
|
1944
|
+
const t = Ot.startsWith("__") ? "latest" : Ot, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
|
|
1924
1945
|
if (Ge)
|
|
1925
1946
|
return fetch(`${n}`).then(async (l) => {
|
|
1926
1947
|
const s = await l.text();
|
|
@@ -1930,8 +1951,8 @@ function Rl(e, i) {
|
|
|
1930
1951
|
console.error(l);
|
|
1931
1952
|
});
|
|
1932
1953
|
}
|
|
1933
|
-
let
|
|
1934
|
-
const
|
|
1954
|
+
let kt = !1;
|
|
1955
|
+
const Ft = {
|
|
1935
1956
|
/**
|
|
1936
1957
|
* FormKit errors:
|
|
1937
1958
|
*/
|
|
@@ -1953,7 +1974,7 @@ const Rt = {
|
|
|
1953
1974
|
*/
|
|
1954
1975
|
600: ({ data: e }) => `Unknown input type${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} ("${e.name}")`,
|
|
1955
1976
|
601: ({ data: e }) => `Input definition${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} is missing a schema or component property (${e.name}).`
|
|
1956
|
-
},
|
|
1977
|
+
}, Dt = {
|
|
1957
1978
|
/**
|
|
1958
1979
|
* Core warnings:
|
|
1959
1980
|
*/
|
|
@@ -1974,46 +1995,46 @@ const Rt = {
|
|
|
1974
1995
|
* Deprecation warnings:
|
|
1975
1996
|
*/
|
|
1976
1997
|
800: ({ data: e }) => `${e} is deprecated.`
|
|
1977
|
-
},
|
|
1978
|
-
if (e.code in
|
|
1979
|
-
const t =
|
|
1998
|
+
}, Bl = (e, i) => {
|
|
1999
|
+
if (e.code in Ft) {
|
|
2000
|
+
const t = Ft[e.code];
|
|
1980
2001
|
e.message = typeof t == "function" ? t(e) : t;
|
|
1981
2002
|
}
|
|
1982
2003
|
return i(e);
|
|
1983
2004
|
};
|
|
1984
|
-
|
|
1985
|
-
const
|
|
1986
|
-
if (e.code in
|
|
1987
|
-
const t =
|
|
2005
|
+
kt || bt(Bl);
|
|
2006
|
+
const zl = (e, i) => {
|
|
2007
|
+
if (e.code in Dt) {
|
|
2008
|
+
const t = Dt[e.code];
|
|
1988
2009
|
e.message = typeof t == "function" ? t(e) : t;
|
|
1989
2010
|
}
|
|
1990
2011
|
return i(e);
|
|
1991
2012
|
};
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
const
|
|
1995
|
-
function
|
|
2013
|
+
kt || yt(zl);
|
|
2014
|
+
kt = !0;
|
|
2015
|
+
const Ul = typeof window > "u", lt = /* @__PURE__ */ new Map();
|
|
2016
|
+
function Kl(e, i) {
|
|
1996
2017
|
var t;
|
|
1997
|
-
!
|
|
2018
|
+
!Ul || !e || (lt.has(e) || lt.set(e, /* @__PURE__ */ new Set()), (t = lt.get(e)) === null || t === void 0 || t.add(i));
|
|
1998
2019
|
}
|
|
1999
|
-
const
|
|
2020
|
+
const yn = typeof window > "u", Me = {}, $e = {};
|
|
2000
2021
|
let K;
|
|
2001
|
-
const te = /* @__PURE__ */ new WeakMap(),
|
|
2002
|
-
function
|
|
2022
|
+
const te = /* @__PURE__ */ new WeakMap(), Nl = "__raw__", Wl = /[a-zA-Z0-9\-][cC]lass$/;
|
|
2023
|
+
function Hl(e, i) {
|
|
2003
2024
|
const t = ne(null);
|
|
2004
2025
|
if (e === "get") {
|
|
2005
2026
|
const l = {};
|
|
2006
|
-
return t.value =
|
|
2027
|
+
return t.value = ql.bind(null, l), t;
|
|
2007
2028
|
}
|
|
2008
2029
|
const n = e.split(".");
|
|
2009
2030
|
return ee(() => {
|
|
2010
|
-
t.value =
|
|
2031
|
+
t.value = Ct(In(i) ? i.value : i, n);
|
|
2011
2032
|
}), t;
|
|
2012
2033
|
}
|
|
2013
|
-
function
|
|
2034
|
+
function Ct(e, i) {
|
|
2014
2035
|
if (Array.isArray(e)) {
|
|
2015
2036
|
for (const l of e) {
|
|
2016
|
-
const s = l !== !1 &&
|
|
2037
|
+
const s = l !== !1 && Ct(l, i);
|
|
2017
2038
|
if (s !== void 0)
|
|
2018
2039
|
return s;
|
|
2019
2040
|
}
|
|
@@ -2035,19 +2056,19 @@ function kt(e, i) {
|
|
|
2035
2056
|
}
|
|
2036
2057
|
return t;
|
|
2037
2058
|
}
|
|
2038
|
-
function
|
|
2059
|
+
function ql(e, i) {
|
|
2039
2060
|
if (typeof i != "string")
|
|
2040
|
-
return
|
|
2061
|
+
return Ee(650);
|
|
2041
2062
|
if (i in e || (e[i] = ne(void 0)), e[i].value === void 0) {
|
|
2042
2063
|
e[i].value = null;
|
|
2043
|
-
const t =
|
|
2044
|
-
t && (e[i].value = t.context),
|
|
2064
|
+
const t = Qt(i);
|
|
2065
|
+
t && (e[i].value = t.context), ai(i, ({ payload: n }) => {
|
|
2045
2066
|
e[i].value = Xe(n) ? n.context : n;
|
|
2046
2067
|
});
|
|
2047
2068
|
}
|
|
2048
2069
|
return e[i].value;
|
|
2049
2070
|
}
|
|
2050
|
-
function
|
|
2071
|
+
function Tt(e, i, t) {
|
|
2051
2072
|
function n($, h) {
|
|
2052
2073
|
const c = A(J(h.if), { if: !0 }), d = p($, h.then), m = h.else ? p($, h.else) : null;
|
|
2053
2074
|
return [c, d, m];
|
|
@@ -2056,7 +2077,7 @@ function Ft(e, i, t) {
|
|
|
2056
2077
|
var c, d;
|
|
2057
2078
|
const m = A(J($.if));
|
|
2058
2079
|
let y = () => h, g = () => h;
|
|
2059
|
-
return typeof $.then == "object" ? g = s($.then, void 0) : typeof $.then == "string" && (!((c = $.then) === null || c === void 0) && c.startsWith("$")) ? g = A(J($.then)) : g = () => $.then,
|
|
2080
|
+
return typeof $.then == "object" ? g = s($.then, void 0) : typeof $.then == "string" && (!((c = $.then) === null || c === void 0) && c.startsWith("$")) ? g = A(J($.then)) : g = () => $.then, F($, "else") && (typeof $.else == "object" ? y = s($.else) : typeof $.else == "string" && (!((d = $.else) === null || d === void 0) && d.startsWith("$")) ? y = A(J($.else)) : y = () => $.else), () => m() ? g() : y();
|
|
2060
2081
|
}
|
|
2061
2082
|
function s($, h, c = {}) {
|
|
2062
2083
|
const d = new Set(Object.keys($ || {})), m = h ? A(J(h)) : () => ({}), y = [
|
|
@@ -2073,7 +2094,7 @@ function Ft(e, i, t) {
|
|
|
2073
2094
|
const v = $[g];
|
|
2074
2095
|
let w;
|
|
2075
2096
|
const f = typeof v == "string";
|
|
2076
|
-
g.startsWith(
|
|
2097
|
+
g.startsWith(Nl) ? (g = g.substring(7), w = () => v) : f && v.startsWith("$") && v.length > 1 && !(v.startsWith("$reset") && Wl.test(g)) ? w = A(J(v)) : typeof v == "object" && ve(v) ? w = l(v, void 0) : typeof v == "object" && ke(v) ? w = s(v) : w = () => v, y.push((b) => {
|
|
2077
2098
|
b[g] = w();
|
|
2078
2099
|
});
|
|
2079
2100
|
}
|
|
@@ -2085,8 +2106,8 @@ function Ft(e, i, t) {
|
|
|
2085
2106
|
}
|
|
2086
2107
|
function r($, h) {
|
|
2087
2108
|
let c = null, d = () => null, m = !1, y = null, g = null, v = null, w = !1;
|
|
2088
|
-
const f =
|
|
2089
|
-
if (ft(f) ? (c = f.$el, d = f.$el !== "text" ? s(f.attrs, f.bind) : () => null) : ct(f) ? (typeof f.$cmp == "string" ?
|
|
2109
|
+
const f = Gi(h);
|
|
2110
|
+
if (ft(f) ? (c = f.$el, d = f.$el !== "text" ? s(f.attrs, f.bind) : () => null) : ct(f) ? (typeof f.$cmp == "string" ? F($, f.$cmp) ? c = $[f.$cmp] : (c = f.$cmp, w = !0) : c = f.$cmp, d = s(f.props, f.bind)) : ve(f) && ([m, y, g] = n($, f)), !ve(f) && "if" in f ? m = A(J(f.if)) : !ve(f) && c === null && (m = () => !0), "children" in f && f.children)
|
|
2090
2111
|
if (typeof f.children == "string")
|
|
2091
2112
|
if (f.children.startsWith("$slots."))
|
|
2092
2113
|
c = c === "text" ? "slot" : c, y = A(J(f.children));
|
|
@@ -2106,11 +2127,11 @@ function Ft(e, i, t) {
|
|
|
2106
2127
|
const b = y;
|
|
2107
2128
|
y = (k) => ({
|
|
2108
2129
|
default(I, B) {
|
|
2109
|
-
var
|
|
2130
|
+
var S, R, O, N;
|
|
2110
2131
|
const q = K;
|
|
2111
|
-
B && (K = B), I && ((
|
|
2132
|
+
B && (K = B), I && ((S = te.get(K)) === null || S === void 0 || S.unshift(I)), k && ((R = te.get(K)) === null || R === void 0 || R.unshift(k));
|
|
2112
2133
|
const x = b(k);
|
|
2113
|
-
return I && ((O = te.get(K)) === null || O === void 0 || O.shift()), k && ((
|
|
2134
|
+
return I && ((O = te.get(K)) === null || O === void 0 || O.shift()), k && ((N = te.get(K)) === null || N === void 0 || N.shift()), K = q, x;
|
|
2114
2135
|
}
|
|
2115
2136
|
}), y.slot = !0;
|
|
2116
2137
|
} else
|
|
@@ -2139,10 +2160,10 @@ function Ft(e, i, t) {
|
|
|
2139
2160
|
return c() ? y(b) : g && g(b);
|
|
2140
2161
|
if (d && (!c || c())) {
|
|
2141
2162
|
if (d === "text" && y)
|
|
2142
|
-
return
|
|
2163
|
+
return Ln(String(y()));
|
|
2143
2164
|
if (d === "slot" && y)
|
|
2144
2165
|
return y(b);
|
|
2145
|
-
const k = w ?
|
|
2166
|
+
const k = w ? j(d) : d, I = y != null && y.slot ? o(y, b) : null;
|
|
2146
2167
|
return we(k, m(), I || (y ? y(b) : []));
|
|
2147
2168
|
}
|
|
2148
2169
|
return typeof g == "function" ? g(b) : g;
|
|
@@ -2150,19 +2171,19 @@ function Ft(e, i, t) {
|
|
|
2150
2171
|
if (v) {
|
|
2151
2172
|
const b = f, [k, I, B] = v;
|
|
2152
2173
|
f = () => {
|
|
2153
|
-
const
|
|
2154
|
-
if (typeof
|
|
2174
|
+
const S = k(), R = Number.isFinite(S) ? Array(Number(S)).fill(0).map((x, W) => W) : S, O = [];
|
|
2175
|
+
if (typeof R != "object")
|
|
2155
2176
|
return null;
|
|
2156
|
-
const
|
|
2157
|
-
for (const x in
|
|
2177
|
+
const N = te.get(K) || [], q = Array.isArray(R);
|
|
2178
|
+
for (const x in R) {
|
|
2158
2179
|
if (q && x in Array.prototype)
|
|
2159
2180
|
continue;
|
|
2160
|
-
const
|
|
2161
|
-
...
|
|
2162
|
-
[I]:
|
|
2181
|
+
const W = Object.defineProperty({
|
|
2182
|
+
...N.reduce((Le, se) => Le.__idata ? { ...Le, ...se } : se, {}),
|
|
2183
|
+
[I]: R[x],
|
|
2163
2184
|
...B !== null ? { [B]: q ? Number(x) : x } : {}
|
|
2164
2185
|
}, "__idata", { enumerable: !1, value: !0 });
|
|
2165
|
-
|
|
2186
|
+
N.unshift(W), O.push(b.bind(null, W)()), N.shift();
|
|
2166
2187
|
}
|
|
2167
2188
|
return O;
|
|
2168
2189
|
};
|
|
@@ -2187,49 +2208,49 @@ function Ft(e, i, t) {
|
|
|
2187
2208
|
function Z($, h) {
|
|
2188
2209
|
var c;
|
|
2189
2210
|
t ?? (t = JSON.stringify(i));
|
|
2190
|
-
const [d, m] =
|
|
2191
|
-
return
|
|
2211
|
+
const [d, m] = F(Me, t) ? Me[t] : [p(e, i), _];
|
|
2212
|
+
return yn || ((c = $e[t]) !== null && c !== void 0 || ($e[t] = 0), $e[t]++, Me[t] = [d, m]), m.forEach((y) => {
|
|
2192
2213
|
y($, h);
|
|
2193
2214
|
}), () => (K = h, d());
|
|
2194
2215
|
}
|
|
2195
2216
|
return Z;
|
|
2196
2217
|
}
|
|
2197
|
-
function
|
|
2218
|
+
function vn(e, i) {
|
|
2198
2219
|
const t = te.get(K) || [];
|
|
2199
2220
|
let n;
|
|
2200
|
-
return t.length && (n =
|
|
2221
|
+
return t.length && (n = Ct(t, e.split("."))), n === void 0 ? i : n;
|
|
2201
2222
|
}
|
|
2202
|
-
function
|
|
2223
|
+
function Zl(e, i) {
|
|
2203
2224
|
return new Proxy(e, {
|
|
2204
2225
|
get(...t) {
|
|
2205
2226
|
let n;
|
|
2206
2227
|
const l = t[1];
|
|
2207
2228
|
if (typeof l == "string") {
|
|
2208
2229
|
const s = K;
|
|
2209
|
-
K = i, n =
|
|
2230
|
+
K = i, n = vn(l, void 0), K = s;
|
|
2210
2231
|
}
|
|
2211
2232
|
return n !== void 0 ? n : Reflect.get(...t);
|
|
2212
2233
|
}
|
|
2213
2234
|
});
|
|
2214
2235
|
}
|
|
2215
|
-
function
|
|
2236
|
+
function Bt(e, i, t) {
|
|
2216
2237
|
return e((n, l = {}) => n.reduce((s, r) => {
|
|
2217
2238
|
if (r.startsWith("slots.")) {
|
|
2218
|
-
const o = r.substring(6), u = () => i.slots &&
|
|
2239
|
+
const o = r.substring(6), u = () => i.slots && F(i.slots, o) && typeof i.slots[o] == "function";
|
|
2219
2240
|
if (l.if)
|
|
2220
2241
|
s[r] = u;
|
|
2221
2242
|
else if (i.slots) {
|
|
2222
|
-
const p =
|
|
2243
|
+
const p = Zl(i, t);
|
|
2223
2244
|
s[r] = () => u() ? i.slots[o](p) : null;
|
|
2224
2245
|
}
|
|
2225
2246
|
} else {
|
|
2226
|
-
const o =
|
|
2227
|
-
s[r] = () =>
|
|
2247
|
+
const o = Hl(r, i);
|
|
2248
|
+
s[r] = () => vn(r, o.value);
|
|
2228
2249
|
}
|
|
2229
2250
|
return s;
|
|
2230
2251
|
}, {}), t);
|
|
2231
2252
|
}
|
|
2232
|
-
function
|
|
2253
|
+
function zt(e, i, t) {
|
|
2233
2254
|
if (i ?? (i = JSON.stringify(e)), $e[i]--, $e[i] === 0) {
|
|
2234
2255
|
delete $e[i];
|
|
2235
2256
|
const [, n] = Me[i];
|
|
@@ -2237,7 +2258,7 @@ function Tt(e, i, t) {
|
|
|
2237
2258
|
}
|
|
2238
2259
|
te.delete(t);
|
|
2239
2260
|
}
|
|
2240
|
-
const
|
|
2261
|
+
const hn = M({
|
|
2241
2262
|
name: "FormKitSchema",
|
|
2242
2263
|
props: {
|
|
2243
2264
|
schema: {
|
|
@@ -2262,25 +2283,25 @@ const yn = M({
|
|
|
2262
2283
|
const n = st();
|
|
2263
2284
|
let l = {};
|
|
2264
2285
|
te.set(l, []);
|
|
2265
|
-
let s =
|
|
2266
|
-
|
|
2286
|
+
let s = Tt(e.library, e.schema, e.memoKey), r, o;
|
|
2287
|
+
yn || ce(() => e.schema, (p, _) => {
|
|
2267
2288
|
var A;
|
|
2268
2289
|
const Z = l;
|
|
2269
|
-
l = {}, te.set(l, []), s =
|
|
2290
|
+
l = {}, te.set(l, []), s = Tt(e.library, e.schema, e.memoKey), r = Bt(s, o, l), p === _ && ((A = n == null ? void 0 : n.proxy) === null || A === void 0 ? void 0 : A.$forceUpdate)(), zt(e.schema, e.memoKey, Z);
|
|
2270
2291
|
}, { deep: !0 }), ee(() => {
|
|
2271
2292
|
var p;
|
|
2272
|
-
o = Object.assign(
|
|
2293
|
+
o = Object.assign($n((p = e.data) !== null && p !== void 0 ? p : {}), {
|
|
2273
2294
|
slots: i.slots
|
|
2274
|
-
}), i.slots, r =
|
|
2295
|
+
}), i.slots, r = Bt(s, o, l);
|
|
2275
2296
|
});
|
|
2276
2297
|
function u() {
|
|
2277
|
-
|
|
2298
|
+
zt(e.schema, e.memoKey, l), o.node && o.node.destroy(), o.slots = null, o = null, r = null;
|
|
2278
2299
|
}
|
|
2279
|
-
return
|
|
2300
|
+
return wn(u), Kl((t = st()) === null || t === void 0 ? void 0 : t.appContext.app, u), () => r ? r() : null;
|
|
2280
2301
|
}
|
|
2281
|
-
}),
|
|
2282
|
-
function
|
|
2283
|
-
const t =
|
|
2302
|
+
}), Jl = typeof window > "u", Je = Symbol("FormKitParent");
|
|
2303
|
+
function Yl(e, i) {
|
|
2304
|
+
const t = Gl(e, i);
|
|
2284
2305
|
if (t.props.definition || H(600, t), t.props.definition.component)
|
|
2285
2306
|
return () => {
|
|
2286
2307
|
var o;
|
|
@@ -2295,19 +2316,19 @@ function Hl(e, i) {
|
|
|
2295
2316
|
const p = (u = (o = t.props) === null || o === void 0 ? void 0 : o.definition) === null || u === void 0 ? void 0 : u.schema;
|
|
2296
2317
|
p || H(601, t), typeof p == "function" ? (n.value = p({ ...e.sectionsSchema }), (l && e.sectionsSchema || "memoKey" in p && typeof p.memoKey == "string") && (l = (l ?? (p == null ? void 0 : p.memoKey)) + JSON.stringify(e.sectionsSchema))) : n.value = p;
|
|
2297
2318
|
};
|
|
2298
|
-
s(),
|
|
2319
|
+
s(), Jl || t.on("schema", () => {
|
|
2299
2320
|
l += "♻️", s();
|
|
2300
2321
|
}), i.emit("node", t);
|
|
2301
2322
|
const r = t.props.definition.library;
|
|
2302
|
-
return i.expose({ node: t }), () => we(
|
|
2323
|
+
return i.expose({ node: t }), () => we(hn, { schema: n.value, data: t.context, library: r, memoKey: l }, { ...i.slots });
|
|
2303
2324
|
}
|
|
2304
|
-
M(
|
|
2305
|
-
props:
|
|
2325
|
+
M(Yl, {
|
|
2326
|
+
props: El,
|
|
2306
2327
|
inheritAttrs: !1
|
|
2307
2328
|
});
|
|
2308
|
-
const
|
|
2329
|
+
const _n = Symbol();
|
|
2309
2330
|
M((e, i) => {
|
|
2310
|
-
const t = ne(null), n = ne(!1), l = ne(void 0), s =
|
|
2331
|
+
const t = ne(null), n = ne(!1), l = ne(void 0), s = ce(t, (o) => {
|
|
2311
2332
|
let u = o, p = null;
|
|
2312
2333
|
for (; u = u == null ? void 0 : u.parentNode; )
|
|
2313
2334
|
if (p = u, p instanceof ShadowRoot || p instanceof Document) {
|
|
@@ -2316,13 +2337,13 @@ M((e, i) => {
|
|
|
2316
2337
|
}
|
|
2317
2338
|
s(), n.value = !0;
|
|
2318
2339
|
});
|
|
2319
|
-
|
|
2340
|
+
Kt(_n, l);
|
|
2320
2341
|
function r(o) {
|
|
2321
2342
|
l.value = o;
|
|
2322
2343
|
}
|
|
2323
2344
|
return () => n.value && i.slots.default ? i.slots.default() : we("template", { ref: t });
|
|
2324
2345
|
});
|
|
2325
|
-
const
|
|
2346
|
+
const gn = Symbol.for("FormKitOptions"), Ql = typeof window < "u", at = [
|
|
2326
2347
|
"help",
|
|
2327
2348
|
"label",
|
|
2328
2349
|
"ignore",
|
|
@@ -2335,28 +2356,28 @@ const hn = Symbol.for("FormKitOptions"), ql = typeof window < "u", at = [
|
|
|
2335
2356
|
"suffixIcon",
|
|
2336
2357
|
/^[a-zA-Z-]+(?:-icon|Icon)$/
|
|
2337
2358
|
];
|
|
2338
|
-
function
|
|
2359
|
+
function Ut(e, i) {
|
|
2339
2360
|
i.classes && Object.keys(i.classes).forEach((t) => {
|
|
2340
2361
|
typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], xe(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
|
|
2341
2362
|
});
|
|
2342
2363
|
}
|
|
2343
|
-
function
|
|
2364
|
+
function Xl(e) {
|
|
2344
2365
|
return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, n) => {
|
|
2345
2366
|
const l = `on${n}`;
|
|
2346
2367
|
return l in e && typeof e[l] == "function" && (t[l] = e[l]), t;
|
|
2347
2368
|
}, {}) : {};
|
|
2348
2369
|
}
|
|
2349
|
-
function
|
|
2370
|
+
function Gl(e, i, t = {}) {
|
|
2350
2371
|
var n;
|
|
2351
|
-
const l = Object.assign({}, he(
|
|
2372
|
+
const l = Object.assign({}, he(gn) || {}, t), s = he(_n, ne(Ql ? document : void 0)), r = st(), o = Xl(r == null ? void 0 : r.vnode.props), u = ["modelValue", "model-value"].some((f) => {
|
|
2352
2373
|
var b;
|
|
2353
2374
|
return f in ((b = r == null ? void 0 : r.vnode.props) !== null && b !== void 0 ? b : {});
|
|
2354
2375
|
});
|
|
2355
2376
|
let p = !1;
|
|
2356
|
-
|
|
2377
|
+
kn(() => {
|
|
2357
2378
|
p = !0;
|
|
2358
2379
|
});
|
|
2359
|
-
const _ = e.modelValue !== void 0 ? e.modelValue :
|
|
2380
|
+
const _ = e.modelValue !== void 0 ? e.modelValue : de(i.attrs.value);
|
|
2360
2381
|
function A() {
|
|
2361
2382
|
var f;
|
|
2362
2383
|
const b = {
|
|
@@ -2365,15 +2386,15 @@ function Jl(e, i, t = {}) {
|
|
|
2365
2386
|
type: (f = e.type) !== null && f !== void 0 ? f : "text",
|
|
2366
2387
|
__root: s.value,
|
|
2367
2388
|
__slots: i.slots
|
|
2368
|
-
}, k =
|
|
2389
|
+
}, k = St(ye(i.attrs), at);
|
|
2369
2390
|
k.key || (k.key = Ye()), b.attrs = k;
|
|
2370
|
-
const I =
|
|
2371
|
-
for (const
|
|
2372
|
-
b[De(
|
|
2391
|
+
const I = Vt(ye(i.attrs), at);
|
|
2392
|
+
for (const S in I)
|
|
2393
|
+
b[De(S)] = I[S];
|
|
2373
2394
|
const B = { props: {} };
|
|
2374
|
-
return
|
|
2395
|
+
return Ut(B, e), Object.assign(b, B.props), typeof b.type != "string" && (b.definition = b.type, delete b.type), b;
|
|
2375
2396
|
}
|
|
2376
|
-
const Z = A(), $ = Z.ignore ? null : e.parent || he(Je, null), h =
|
|
2397
|
+
const Z = A(), $ = Z.ignore ? null : e.parent || he(Je, null), h = Qi(Qe(l || {}, {
|
|
2377
2398
|
name: e.name || void 0,
|
|
2378
2399
|
value: _,
|
|
2379
2400
|
parent: $,
|
|
@@ -2388,11 +2409,11 @@ function Jl(e, i, t = {}) {
|
|
|
2388
2409
|
h.on("added-props", ({ payload: f }) => {
|
|
2389
2410
|
Array.isArray(f) && f.forEach((b) => c.value.add(b));
|
|
2390
2411
|
});
|
|
2391
|
-
const d =
|
|
2392
|
-
ee(() =>
|
|
2412
|
+
const d = E(() => at.concat([...c.value]).reduce((f, b) => (typeof b == "string" ? (f.push(De(b)), f.push(Ht(b))) : f.push(b), f), []));
|
|
2413
|
+
ee(() => Ut(h, e));
|
|
2393
2414
|
const m = ye(e);
|
|
2394
2415
|
for (const f in m)
|
|
2395
|
-
|
|
2416
|
+
ce(() => e[f], () => {
|
|
2396
2417
|
e[f] !== void 0 && (h.props[f] = e[f]);
|
|
2397
2418
|
});
|
|
2398
2419
|
ee(() => {
|
|
@@ -2400,7 +2421,7 @@ function Jl(e, i, t = {}) {
|
|
|
2400
2421
|
});
|
|
2401
2422
|
const y = /* @__PURE__ */ new Set(), g = ye(i.attrs);
|
|
2402
2423
|
ee(() => {
|
|
2403
|
-
v(
|
|
2424
|
+
v(Vt(g, d.value));
|
|
2404
2425
|
});
|
|
2405
2426
|
function v(f) {
|
|
2406
2427
|
y.forEach((b) => {
|
|
@@ -2408,17 +2429,17 @@ function Jl(e, i, t = {}) {
|
|
|
2408
2429
|
});
|
|
2409
2430
|
for (const b in f) {
|
|
2410
2431
|
const k = De(b);
|
|
2411
|
-
y.add(
|
|
2432
|
+
y.add(ce(() => i.attrs[b], () => {
|
|
2412
2433
|
h.props[k] = i.attrs[b];
|
|
2413
2434
|
}));
|
|
2414
2435
|
}
|
|
2415
2436
|
}
|
|
2416
2437
|
if (ee(() => {
|
|
2417
|
-
const f =
|
|
2418
|
-
"multiple" in f && (f.multiple = Y(f.multiple)), typeof f.onBlur == "function" && (f.onBlur =
|
|
2438
|
+
const f = St(ye(i.attrs), d.value);
|
|
2439
|
+
"multiple" in f && (f.multiple = Y(f.multiple)), typeof f.onBlur == "function" && (f.onBlur = Tn(f.onBlur)), h.props.attrs = Object.assign({}, h.props.attrs || {}, f);
|
|
2419
2440
|
}), ee(() => {
|
|
2420
2441
|
var f;
|
|
2421
|
-
const b = ((f = e.errors) !== null && f !== void 0 ? f : []).map((k) =>
|
|
2442
|
+
const b = ((f = e.errors) !== null && f !== void 0 ? f : []).map((k) => oe({
|
|
2422
2443
|
key: dt(k),
|
|
2423
2444
|
type: "error",
|
|
2424
2445
|
value: k,
|
|
@@ -2431,29 +2452,29 @@ function Jl(e, i, t = {}) {
|
|
|
2431
2452
|
var b;
|
|
2432
2453
|
const k = (b = e.inputErrors) !== null && b !== void 0 ? b : {}, I = Object.keys(k);
|
|
2433
2454
|
I.length || h.clearErrors(!0, f);
|
|
2434
|
-
const B = I.reduce((
|
|
2435
|
-
let O = k[
|
|
2436
|
-
return typeof O == "string" && (O = [O]), Array.isArray(O) && (
|
|
2437
|
-
key:
|
|
2455
|
+
const B = I.reduce((S, R) => {
|
|
2456
|
+
let O = k[R];
|
|
2457
|
+
return typeof O == "string" && (O = [O]), Array.isArray(O) && (S[R] = O.map((N) => oe({
|
|
2458
|
+
key: N,
|
|
2438
2459
|
type: "error",
|
|
2439
|
-
value:
|
|
2460
|
+
value: N,
|
|
2440
2461
|
meta: { source: f }
|
|
2441
|
-
}))),
|
|
2462
|
+
}))), S;
|
|
2442
2463
|
}, {});
|
|
2443
|
-
h.store.apply(B, (
|
|
2464
|
+
h.store.apply(B, (S) => S.type === "error" && S.meta.source === f);
|
|
2444
2465
|
});
|
|
2445
2466
|
}
|
|
2446
|
-
ee(() => Object.assign(h.config, e.config)), h.type !== "input" &&
|
|
2467
|
+
ee(() => Object.assign(h.config, e.config)), h.type !== "input" && Kt(Je, h);
|
|
2447
2468
|
let w;
|
|
2448
2469
|
return h.on("modelUpdated", () => {
|
|
2449
2470
|
var f, b;
|
|
2450
|
-
i.emit("inputRaw", (f = h.context) === null || f === void 0 ? void 0 : f.value, h), p && i.emit("input", (b = h.context) === null || b === void 0 ? void 0 : b.value, h), u && h.context && (w =
|
|
2451
|
-
}), u && (
|
|
2452
|
-
|
|
2453
|
-
}, { deep: !0 }), h.value !== _ && h.emit("modelUpdated")),
|
|
2471
|
+
i.emit("inputRaw", (f = h.context) === null || f === void 0 ? void 0 : f.value, h), p && i.emit("input", (b = h.context) === null || b === void 0 ? void 0 : b.value, h), u && h.context && (w = de(h.value), i.emit("update:modelValue", jn(h.value)));
|
|
2472
|
+
}), u && (ce(Cn(e, "modelValue"), (f) => {
|
|
2473
|
+
ue(w, f) || h.input(f, !1);
|
|
2474
|
+
}, { deep: !0 }), h.value !== _ && h.emit("modelUpdated")), Sn(() => h.destroy()), h;
|
|
2454
2475
|
}
|
|
2455
|
-
let
|
|
2456
|
-
function
|
|
2476
|
+
let ea = 1;
|
|
2477
|
+
function ta(e) {
|
|
2457
2478
|
return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
|
|
2458
2479
|
}
|
|
2459
2480
|
function T(e, i = {}) {
|
|
@@ -2462,22 +2483,22 @@ function T(e, i = {}) {
|
|
|
2462
2483
|
...i
|
|
2463
2484
|
};
|
|
2464
2485
|
let n;
|
|
2465
|
-
if (
|
|
2466
|
-
const l = `SchemaComponent${
|
|
2467
|
-
n =
|
|
2486
|
+
if (ta(e)) {
|
|
2487
|
+
const l = `SchemaComponent${ea++}`;
|
|
2488
|
+
n = C("input", () => ({
|
|
2468
2489
|
$cmp: l,
|
|
2469
2490
|
props: {
|
|
2470
2491
|
context: "$node.context"
|
|
2471
2492
|
}
|
|
2472
|
-
})), t.library = { [l]:
|
|
2493
|
+
})), t.library = { [l]: Vn(e) };
|
|
2473
2494
|
} else
|
|
2474
|
-
typeof e == "function" ? n = e : n =
|
|
2475
|
-
return t.schema =
|
|
2495
|
+
typeof e == "function" ? n = e : n = C("input", () => de(e));
|
|
2496
|
+
return t.schema = Rl(n || "Schema undefined"), t.schemaMemoKey || (t.schemaMemoKey = `${Math.random()}`), t;
|
|
2476
2497
|
}
|
|
2477
|
-
const
|
|
2498
|
+
const na = C("messages", () => ({
|
|
2478
2499
|
$el: "ul",
|
|
2479
2500
|
if: "$fns.length($messages)"
|
|
2480
|
-
})),
|
|
2501
|
+
})), ia = C("message", () => ({
|
|
2481
2502
|
$el: "li",
|
|
2482
2503
|
for: ["message", "$messages"],
|
|
2483
2504
|
attrs: {
|
|
@@ -2485,7 +2506,7 @@ const Xl = S("messages", () => ({
|
|
|
2485
2506
|
id: "$id + '-' + $message.key",
|
|
2486
2507
|
"data-message-type": "$message.type"
|
|
2487
2508
|
}
|
|
2488
|
-
})),
|
|
2509
|
+
})), la = na(ia("$message.value"));
|
|
2489
2510
|
M({
|
|
2490
2511
|
props: {
|
|
2491
2512
|
node: {
|
|
@@ -2502,12 +2523,12 @@ M({
|
|
|
2502
2523
|
}
|
|
2503
2524
|
},
|
|
2504
2525
|
setup(e, i) {
|
|
2505
|
-
const t =
|
|
2506
|
-
|
|
2526
|
+
const t = E(() => e.node || he(Je, void 0));
|
|
2527
|
+
ce(t, () => {
|
|
2507
2528
|
var s;
|
|
2508
2529
|
!((s = t.value) === null || s === void 0) && s.context && !Y(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
|
|
2509
2530
|
}, { immediate: !0 });
|
|
2510
|
-
const n =
|
|
2531
|
+
const n = la(e.sectionsSchema || {}), l = E(() => {
|
|
2511
2532
|
var s, r, o, u, p, _;
|
|
2512
2533
|
return {
|
|
2513
2534
|
messages: ((r = (s = t.value) === null || s === void 0 ? void 0 : s.context) === null || r === void 0 ? void 0 : r.messages) || {},
|
|
@@ -2517,7 +2538,7 @@ M({
|
|
|
2517
2538
|
});
|
|
2518
2539
|
return () => {
|
|
2519
2540
|
var s;
|
|
2520
|
-
return !((s = t.value) === null || s === void 0) && s.context ? we(
|
|
2541
|
+
return !((s = t.value) === null || s === void 0) && s.context ? we(hn, { schema: n, data: l.value }, { ...i.slots }) : null;
|
|
2521
2542
|
};
|
|
2522
2543
|
}
|
|
2523
2544
|
});
|
|
@@ -2539,7 +2560,7 @@ M({
|
|
|
2539
2560
|
},
|
|
2540
2561
|
setup(e) {
|
|
2541
2562
|
var i, t;
|
|
2542
|
-
const n = ne(void 0), l = he(
|
|
2563
|
+
const n = ne(void 0), l = he(gn, {}), s = he(Je, null);
|
|
2543
2564
|
let r;
|
|
2544
2565
|
function o() {
|
|
2545
2566
|
if (!r || typeof r != "function")
|
|
@@ -2559,7 +2580,7 @@ M({
|
|
|
2559
2580
|
const u = (t = l == null ? void 0 : l.plugins) === null || t === void 0 ? void 0 : t.find((p) => typeof p.iconHandler == "function");
|
|
2560
2581
|
u && (r = u.iconHandler);
|
|
2561
2582
|
}
|
|
2562
|
-
return
|
|
2583
|
+
return ce(() => e.icon, () => {
|
|
2563
2584
|
o();
|
|
2564
2585
|
}, { immediate: !0 }), () => e.icon && n.value ? we("span", {
|
|
2565
2586
|
class: "formkit-icon",
|
|
@@ -2567,7 +2588,7 @@ M({
|
|
|
2567
2588
|
}) : null;
|
|
2568
2589
|
}
|
|
2569
2590
|
});
|
|
2570
|
-
const
|
|
2591
|
+
const aa = /* @__PURE__ */ M({
|
|
2571
2592
|
__name: "PrimeCalendar",
|
|
2572
2593
|
props: {
|
|
2573
2594
|
context: Object
|
|
@@ -2580,9 +2601,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2580
2601
|
function s(o) {
|
|
2581
2602
|
t == null || t.node.input(o);
|
|
2582
2603
|
}
|
|
2583
|
-
const r =
|
|
2604
|
+
const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2584
2605
|
return (o, u) => {
|
|
2585
|
-
const p =
|
|
2606
|
+
const p = j("Calendar");
|
|
2586
2607
|
return L(), P("div", null, [
|
|
2587
2608
|
D(p, {
|
|
2588
2609
|
modelValue: a(t)._value,
|
|
@@ -2642,13 +2663,13 @@ const ta = /* @__PURE__ */ M({
|
|
|
2642
2663
|
]);
|
|
2643
2664
|
};
|
|
2644
2665
|
}
|
|
2645
|
-
}),
|
|
2666
|
+
}), sa = {
|
|
2646
2667
|
key: 0,
|
|
2647
2668
|
class: "formkit-prime-left"
|
|
2648
|
-
},
|
|
2669
|
+
}, ra = {
|
|
2649
2670
|
key: 1,
|
|
2650
2671
|
class: "formkit-prime-right"
|
|
2651
|
-
},
|
|
2672
|
+
}, oa = /* @__PURE__ */ M({
|
|
2652
2673
|
__name: "PrimeCheckbox",
|
|
2653
2674
|
props: {
|
|
2654
2675
|
context: Object
|
|
@@ -2659,11 +2680,11 @@ const ta = /* @__PURE__ */ M({
|
|
|
2659
2680
|
var o;
|
|
2660
2681
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
2661
2682
|
}
|
|
2662
|
-
const s =
|
|
2683
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2663
2684
|
return (r, o) => {
|
|
2664
|
-
const u =
|
|
2685
|
+
const u = j("Checkbox");
|
|
2665
2686
|
return L(), P("div", null, [
|
|
2666
|
-
a(t).attrs.labelLeft ? (L(), P("span",
|
|
2687
|
+
a(t).attrs.labelLeft ? (L(), P("span", sa, pe(a(t).attrs.labelLeft), 1)) : re("", !0),
|
|
2667
2688
|
D(u, {
|
|
2668
2689
|
modelValue: a(t)._value,
|
|
2669
2690
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -2681,11 +2702,11 @@ const ta = /* @__PURE__ */ M({
|
|
|
2681
2702
|
pt: a(n).pt,
|
|
2682
2703
|
onInput: l
|
|
2683
2704
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value", "pt"]),
|
|
2684
|
-
a(t).attrs.labelRight ? (L(), P("span",
|
|
2705
|
+
a(t).attrs.labelRight ? (L(), P("span", ra, pe(a(t).attrs.labelRight), 1)) : re("", !0)
|
|
2685
2706
|
]);
|
|
2686
2707
|
};
|
|
2687
2708
|
}
|
|
2688
|
-
}),
|
|
2709
|
+
}), ua = /* @__PURE__ */ M({
|
|
2689
2710
|
__name: "PrimeChips",
|
|
2690
2711
|
props: {
|
|
2691
2712
|
context: Object
|
|
@@ -2696,9 +2717,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2696
2717
|
var o;
|
|
2697
2718
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
2698
2719
|
}
|
|
2699
|
-
const s =
|
|
2720
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2700
2721
|
return (r, o) => {
|
|
2701
|
-
const u =
|
|
2722
|
+
const u = j("Chips");
|
|
2702
2723
|
return L(), P("div", null, [
|
|
2703
2724
|
D(u, {
|
|
2704
2725
|
modelValue: a(t)._value,
|
|
@@ -2723,7 +2744,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2723
2744
|
]);
|
|
2724
2745
|
};
|
|
2725
2746
|
}
|
|
2726
|
-
}),
|
|
2747
|
+
}), fa = /* @__PURE__ */ M({
|
|
2727
2748
|
__name: "PrimeColorPicker",
|
|
2728
2749
|
props: {
|
|
2729
2750
|
context: Object
|
|
@@ -2735,7 +2756,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2735
2756
|
t == null || t.node.input((r = i.context) == null ? void 0 : r._value);
|
|
2736
2757
|
}
|
|
2737
2758
|
return (s, r) => {
|
|
2738
|
-
const o =
|
|
2759
|
+
const o = j("ColorPicker");
|
|
2739
2760
|
return L(), P("div", null, [
|
|
2740
2761
|
D(o, {
|
|
2741
2762
|
modelValue: a(t)._value,
|
|
@@ -2756,7 +2777,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2756
2777
|
]);
|
|
2757
2778
|
};
|
|
2758
2779
|
}
|
|
2759
|
-
}),
|
|
2780
|
+
}), ca = /* @__PURE__ */ M({
|
|
2760
2781
|
__name: "PrimeDropdown",
|
|
2761
2782
|
props: {
|
|
2762
2783
|
context: Object
|
|
@@ -2769,9 +2790,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2769
2790
|
function s(o) {
|
|
2770
2791
|
t == null || t.node.input(o.value);
|
|
2771
2792
|
}
|
|
2772
|
-
const r =
|
|
2793
|
+
const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2773
2794
|
return (o, u) => {
|
|
2774
|
-
const p =
|
|
2795
|
+
const p = j("Dropdown");
|
|
2775
2796
|
return L(), P("div", null, [
|
|
2776
2797
|
D(p, {
|
|
2777
2798
|
modelValue: a(t)._value,
|
|
@@ -2797,7 +2818,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2797
2818
|
]);
|
|
2798
2819
|
};
|
|
2799
2820
|
}
|
|
2800
|
-
}),
|
|
2821
|
+
}), pa = /* @__PURE__ */ M({
|
|
2801
2822
|
__name: "PrimeEditor",
|
|
2802
2823
|
props: {
|
|
2803
2824
|
context: Object
|
|
@@ -2810,9 +2831,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2810
2831
|
function s(o) {
|
|
2811
2832
|
o.range === null && (t == null || t.handlers.blur(o.htmlValue));
|
|
2812
2833
|
}
|
|
2813
|
-
const r =
|
|
2834
|
+
const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2814
2835
|
return (o, u) => {
|
|
2815
|
-
const p =
|
|
2836
|
+
const p = j("Editor");
|
|
2816
2837
|
return L(), P("div", null, [
|
|
2817
2838
|
D(p, {
|
|
2818
2839
|
id: a(t).id,
|
|
@@ -2835,7 +2856,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2835
2856
|
]);
|
|
2836
2857
|
};
|
|
2837
2858
|
}
|
|
2838
|
-
}),
|
|
2859
|
+
}), da = /* @__PURE__ */ M({
|
|
2839
2860
|
__name: "PrimeInputMask",
|
|
2840
2861
|
props: {
|
|
2841
2862
|
context: Object
|
|
@@ -2846,9 +2867,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2846
2867
|
var o, u;
|
|
2847
2868
|
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);
|
|
2848
2869
|
}
|
|
2849
|
-
const s =
|
|
2870
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2850
2871
|
return (r, o) => {
|
|
2851
|
-
const u =
|
|
2872
|
+
const u = j("InputMask");
|
|
2852
2873
|
return L(), P("div", null, [
|
|
2853
2874
|
D(u, {
|
|
2854
2875
|
id: a(t).id,
|
|
@@ -2872,7 +2893,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2872
2893
|
]);
|
|
2873
2894
|
};
|
|
2874
2895
|
}
|
|
2875
|
-
}),
|
|
2896
|
+
}), ma = /* @__PURE__ */ M({
|
|
2876
2897
|
__name: "PrimeInputNumber",
|
|
2877
2898
|
props: {
|
|
2878
2899
|
context: Object
|
|
@@ -2885,9 +2906,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2885
2906
|
function s(o) {
|
|
2886
2907
|
t == null || t.node.input(o.value);
|
|
2887
2908
|
}
|
|
2888
|
-
const r =
|
|
2909
|
+
const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2889
2910
|
return (o, u) => {
|
|
2890
|
-
const p =
|
|
2911
|
+
const p = j("InputNumber");
|
|
2891
2912
|
return L(), P("div", null, [
|
|
2892
2913
|
D(p, {
|
|
2893
2914
|
modelValue: a(t)._value,
|
|
@@ -2919,13 +2940,13 @@ const ta = /* @__PURE__ */ M({
|
|
|
2919
2940
|
]);
|
|
2920
2941
|
};
|
|
2921
2942
|
}
|
|
2922
|
-
}),
|
|
2943
|
+
}), ba = {
|
|
2923
2944
|
key: 0,
|
|
2924
2945
|
class: "formkit-prime-left"
|
|
2925
|
-
},
|
|
2946
|
+
}, ya = {
|
|
2926
2947
|
key: 1,
|
|
2927
2948
|
class: "formkit-prime-right"
|
|
2928
|
-
},
|
|
2949
|
+
}, va = /* @__PURE__ */ M({
|
|
2929
2950
|
__name: "PrimeInputSwitch",
|
|
2930
2951
|
props: {
|
|
2931
2952
|
context: Object
|
|
@@ -2936,13 +2957,13 @@ const ta = /* @__PURE__ */ M({
|
|
|
2936
2957
|
var o;
|
|
2937
2958
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
2938
2959
|
}
|
|
2939
|
-
const s =
|
|
2960
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2940
2961
|
return (r, o) => {
|
|
2941
|
-
const u =
|
|
2962
|
+
const u = j("InputSwitch");
|
|
2942
2963
|
return L(), P("div", {
|
|
2943
2964
|
class: U(a(n).option_class)
|
|
2944
2965
|
}, [
|
|
2945
|
-
a(t).attrs.labelLeft ? (L(), P("span",
|
|
2966
|
+
a(t).attrs.labelLeft ? (L(), P("span", ba, pe(a(t).attrs.labelLeft), 1)) : re("", !0),
|
|
2946
2967
|
D(u, {
|
|
2947
2968
|
modelValue: a(t)._value,
|
|
2948
2969
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -2959,11 +2980,11 @@ const ta = /* @__PURE__ */ M({
|
|
|
2959
2980
|
pt: a(n).pt,
|
|
2960
2981
|
onInput: l
|
|
2961
2982
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value", "pt"]),
|
|
2962
|
-
a(t).attrs.labelRight ? (L(), P("span",
|
|
2983
|
+
a(t).attrs.labelRight ? (L(), P("span", ya, pe(a(t).attrs.labelRight), 1)) : re("", !0)
|
|
2963
2984
|
], 2);
|
|
2964
2985
|
};
|
|
2965
2986
|
}
|
|
2966
|
-
}),
|
|
2987
|
+
}), ha = /* @__PURE__ */ M({
|
|
2967
2988
|
__name: "PrimeInputText",
|
|
2968
2989
|
props: {
|
|
2969
2990
|
context: Object
|
|
@@ -2986,17 +3007,17 @@ const ta = /* @__PURE__ */ M({
|
|
|
2986
3007
|
function u(_) {
|
|
2987
3008
|
t == null || t.node.input(_.target.value);
|
|
2988
3009
|
}
|
|
2989
|
-
const p =
|
|
3010
|
+
const p = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
2990
3011
|
return (_, A) => {
|
|
2991
|
-
const Z =
|
|
3012
|
+
const Z = j("InputText");
|
|
2992
3013
|
return L(), P("div", null, [
|
|
2993
|
-
|
|
3014
|
+
Nt("span", {
|
|
2994
3015
|
class: U(r())
|
|
2995
3016
|
}, [
|
|
2996
3017
|
l() ? (L(), P("i", {
|
|
2997
3018
|
key: 0,
|
|
2998
3019
|
class: U(a(t).iconLeft)
|
|
2999
|
-
}, null, 2)) :
|
|
3020
|
+
}, null, 2)) : re("", !0),
|
|
3000
3021
|
D(Z, {
|
|
3001
3022
|
id: a(t).id,
|
|
3002
3023
|
modelValue: a(t)._value,
|
|
@@ -3016,12 +3037,12 @@ const ta = /* @__PURE__ */ M({
|
|
|
3016
3037
|
s ? (L(), P("i", {
|
|
3017
3038
|
key: 1,
|
|
3018
3039
|
class: U(a(t).iconRight)
|
|
3019
|
-
}, null, 2)) :
|
|
3040
|
+
}, null, 2)) : re("", !0)
|
|
3020
3041
|
], 2)
|
|
3021
3042
|
]);
|
|
3022
3043
|
};
|
|
3023
3044
|
}
|
|
3024
|
-
}),
|
|
3045
|
+
}), _a = /* @__PURE__ */ M({
|
|
3025
3046
|
__name: "PrimeTextarea",
|
|
3026
3047
|
props: {
|
|
3027
3048
|
context: Object
|
|
@@ -3034,9 +3055,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3034
3055
|
function s(o) {
|
|
3035
3056
|
t == null || t.node.input(o.target.value);
|
|
3036
3057
|
}
|
|
3037
|
-
const r =
|
|
3058
|
+
const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3038
3059
|
return (o, u) => {
|
|
3039
|
-
const p =
|
|
3060
|
+
const p = j("Textarea");
|
|
3040
3061
|
return L(), P("div", null, [
|
|
3041
3062
|
D(p, {
|
|
3042
3063
|
id: a(t).id,
|
|
@@ -3058,7 +3079,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3058
3079
|
]);
|
|
3059
3080
|
};
|
|
3060
3081
|
}
|
|
3061
|
-
}),
|
|
3082
|
+
}), ga = /* @__PURE__ */ M({
|
|
3062
3083
|
__name: "PrimeKnob",
|
|
3063
3084
|
props: {
|
|
3064
3085
|
context: Object
|
|
@@ -3068,9 +3089,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3068
3089
|
function l(r) {
|
|
3069
3090
|
t == null || t.node.input(r), t == null || t.handlers.blur(r);
|
|
3070
3091
|
}
|
|
3071
|
-
const s =
|
|
3092
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3072
3093
|
return (r, o) => {
|
|
3073
|
-
const u =
|
|
3094
|
+
const u = j("Knob");
|
|
3074
3095
|
return L(), P("div", null, [
|
|
3075
3096
|
D(u, {
|
|
3076
3097
|
id: a(t).id,
|
|
@@ -3099,7 +3120,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3099
3120
|
]);
|
|
3100
3121
|
};
|
|
3101
3122
|
}
|
|
3102
|
-
}),
|
|
3123
|
+
}), $a = /* @__PURE__ */ M({
|
|
3103
3124
|
__name: "PrimeMultiSelect",
|
|
3104
3125
|
props: {
|
|
3105
3126
|
context: Object
|
|
@@ -3110,9 +3131,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3110
3131
|
var o;
|
|
3111
3132
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3112
3133
|
}
|
|
3113
|
-
const s =
|
|
3134
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3114
3135
|
return (r, o) => {
|
|
3115
|
-
const u =
|
|
3136
|
+
const u = j("MultiSelect");
|
|
3116
3137
|
return L(), P("div", null, [
|
|
3117
3138
|
D(u, {
|
|
3118
3139
|
modelValue: a(t)._value,
|
|
@@ -3135,7 +3156,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3135
3156
|
]);
|
|
3136
3157
|
};
|
|
3137
3158
|
}
|
|
3138
|
-
}),
|
|
3159
|
+
}), wa = /* @__PURE__ */ M({
|
|
3139
3160
|
__name: "PrimeListbox",
|
|
3140
3161
|
props: {
|
|
3141
3162
|
context: Object
|
|
@@ -3146,10 +3167,10 @@ const ta = /* @__PURE__ */ M({
|
|
|
3146
3167
|
var o;
|
|
3147
3168
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3148
3169
|
}
|
|
3149
|
-
const s =
|
|
3170
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3150
3171
|
return (r, o) => {
|
|
3151
3172
|
var p;
|
|
3152
|
-
const u =
|
|
3173
|
+
const u = j("Listbox");
|
|
3153
3174
|
return L(), P("div", null, [
|
|
3154
3175
|
D(u, {
|
|
3155
3176
|
id: a(t).id,
|
|
@@ -3179,7 +3200,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3179
3200
|
]);
|
|
3180
3201
|
};
|
|
3181
3202
|
}
|
|
3182
|
-
}),
|
|
3203
|
+
}), ka = /* @__PURE__ */ M({
|
|
3183
3204
|
__name: "PrimePassword",
|
|
3184
3205
|
props: {
|
|
3185
3206
|
context: Object
|
|
@@ -3192,9 +3213,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3192
3213
|
function s(o) {
|
|
3193
3214
|
t == null || t.node.input(o.target.value);
|
|
3194
3215
|
}
|
|
3195
|
-
const r =
|
|
3216
|
+
const r = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3196
3217
|
return (o, u) => {
|
|
3197
|
-
const p =
|
|
3218
|
+
const p = j("Password");
|
|
3198
3219
|
return L(), P("div", null, [
|
|
3199
3220
|
D(p, {
|
|
3200
3221
|
modelValue: a(t)._value,
|
|
@@ -3225,7 +3246,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3225
3246
|
]);
|
|
3226
3247
|
};
|
|
3227
3248
|
}
|
|
3228
|
-
}),
|
|
3249
|
+
}), Ca = ["for"], Sa = /* @__PURE__ */ M({
|
|
3229
3250
|
__name: "PrimeRadioButton",
|
|
3230
3251
|
props: {
|
|
3231
3252
|
context: Object
|
|
@@ -3236,13 +3257,13 @@ const ta = /* @__PURE__ */ M({
|
|
|
3236
3257
|
var o;
|
|
3237
3258
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3238
3259
|
}
|
|
3239
|
-
const s =
|
|
3260
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3240
3261
|
return (r, o) => {
|
|
3241
|
-
const u =
|
|
3262
|
+
const u = j("RadioButton");
|
|
3242
3263
|
return L(), P("div", {
|
|
3243
3264
|
class: U(a(n).options_class)
|
|
3244
3265
|
}, [
|
|
3245
|
-
(L(!0), P(
|
|
3266
|
+
(L(!0), P(Pn, null, An(a(n).options, (p) => (L(), P("div", {
|
|
3246
3267
|
key: p.value,
|
|
3247
3268
|
class: U(a(n).option_class)
|
|
3248
3269
|
}, [
|
|
@@ -3257,14 +3278,14 @@ const ta = /* @__PURE__ */ M({
|
|
|
3257
3278
|
onClick: l,
|
|
3258
3279
|
onChange: l
|
|
3259
3280
|
}, null, 8, ["modelValue", "name", "value", "input-style", "input-class", "pt"]),
|
|
3260
|
-
|
|
3281
|
+
Nt("label", {
|
|
3261
3282
|
for: p.value
|
|
3262
|
-
},
|
|
3283
|
+
}, pe(p.label), 9, Ca)
|
|
3263
3284
|
], 2))), 128))
|
|
3264
3285
|
], 2);
|
|
3265
3286
|
};
|
|
3266
3287
|
}
|
|
3267
|
-
}),
|
|
3288
|
+
}), Va = /* @__PURE__ */ M({
|
|
3268
3289
|
__name: "PrimeRating",
|
|
3269
3290
|
props: {
|
|
3270
3291
|
context: Object
|
|
@@ -3275,9 +3296,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3275
3296
|
var o;
|
|
3276
3297
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3277
3298
|
}
|
|
3278
|
-
const s =
|
|
3299
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3279
3300
|
return (r, o) => {
|
|
3280
|
-
const u =
|
|
3301
|
+
const u = j("Rating");
|
|
3281
3302
|
return L(), P("div", null, [
|
|
3282
3303
|
D(u, {
|
|
3283
3304
|
id: a(t).id,
|
|
@@ -3301,7 +3322,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3301
3322
|
]);
|
|
3302
3323
|
};
|
|
3303
3324
|
}
|
|
3304
|
-
}),
|
|
3325
|
+
}), Ia = /* @__PURE__ */ M({
|
|
3305
3326
|
__name: "PrimeSlider",
|
|
3306
3327
|
props: {
|
|
3307
3328
|
context: Object
|
|
@@ -3311,9 +3332,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3311
3332
|
function l(r) {
|
|
3312
3333
|
t == null || t.node.input(r), t == null || t.handlers.blur(r);
|
|
3313
3334
|
}
|
|
3314
|
-
const s =
|
|
3335
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3315
3336
|
return (r, o) => {
|
|
3316
|
-
const u =
|
|
3337
|
+
const u = j("Slider");
|
|
3317
3338
|
return L(), P("div", null, [
|
|
3318
3339
|
D(u, {
|
|
3319
3340
|
id: a(t).id,
|
|
@@ -3337,7 +3358,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3337
3358
|
]);
|
|
3338
3359
|
};
|
|
3339
3360
|
}
|
|
3340
|
-
}),
|
|
3361
|
+
}), La = /* @__PURE__ */ M({
|
|
3341
3362
|
__name: "PrimeToggleButton",
|
|
3342
3363
|
props: {
|
|
3343
3364
|
context: Object
|
|
@@ -3348,9 +3369,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3348
3369
|
var o;
|
|
3349
3370
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3350
3371
|
}
|
|
3351
|
-
const s =
|
|
3372
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3352
3373
|
return (r, o) => {
|
|
3353
|
-
const u =
|
|
3374
|
+
const u = j("ToggleButton");
|
|
3354
3375
|
return L(), P("div", null, [
|
|
3355
3376
|
D(u, {
|
|
3356
3377
|
modelValue: a(t)._value,
|
|
@@ -3374,7 +3395,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3374
3395
|
]);
|
|
3375
3396
|
};
|
|
3376
3397
|
}
|
|
3377
|
-
}),
|
|
3398
|
+
}), Pa = /* @__PURE__ */ M({
|
|
3378
3399
|
__name: "PrimeSelectButton",
|
|
3379
3400
|
props: {
|
|
3380
3401
|
context: Object
|
|
@@ -3385,9 +3406,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3385
3406
|
var o;
|
|
3386
3407
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3387
3408
|
}
|
|
3388
|
-
const s =
|
|
3409
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3389
3410
|
return (r, o) => {
|
|
3390
|
-
const u =
|
|
3411
|
+
const u = j("SelectButton");
|
|
3391
3412
|
return L(), P("div", null, [
|
|
3392
3413
|
D(u, {
|
|
3393
3414
|
id: a(t).id,
|
|
@@ -3413,13 +3434,13 @@ const ta = /* @__PURE__ */ M({
|
|
|
3413
3434
|
]);
|
|
3414
3435
|
};
|
|
3415
3436
|
}
|
|
3416
|
-
}),
|
|
3437
|
+
}), Aa = {
|
|
3417
3438
|
key: 0,
|
|
3418
3439
|
class: "formkit-prime-left"
|
|
3419
|
-
},
|
|
3440
|
+
}, Oa = {
|
|
3420
3441
|
key: 1,
|
|
3421
3442
|
class: "formkit-prime-right"
|
|
3422
|
-
},
|
|
3443
|
+
}, xa = /* @__PURE__ */ M({
|
|
3423
3444
|
__name: "PrimeTriStateCheckbox",
|
|
3424
3445
|
props: {
|
|
3425
3446
|
context: Object
|
|
@@ -3430,11 +3451,11 @@ const ta = /* @__PURE__ */ M({
|
|
|
3430
3451
|
var o;
|
|
3431
3452
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3432
3453
|
}
|
|
3433
|
-
const s =
|
|
3454
|
+
const s = E(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
|
|
3434
3455
|
return (r, o) => {
|
|
3435
|
-
const u =
|
|
3456
|
+
const u = j("TriStateCheckbox");
|
|
3436
3457
|
return L(), P("div", null, [
|
|
3437
|
-
a(t).attrs.labelLeft ? (L(), P("span",
|
|
3458
|
+
a(t).attrs.labelLeft ? (L(), P("span", Aa, pe(a(t).attrs.labelLeft), 1)) : re("", !0),
|
|
3438
3459
|
D(u, {
|
|
3439
3460
|
modelValue: a(t)._value,
|
|
3440
3461
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -3449,96 +3470,96 @@ const ta = /* @__PURE__ */ M({
|
|
|
3449
3470
|
pt: a(n).pt,
|
|
3450
3471
|
onClick: l
|
|
3451
3472
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "pt"]),
|
|
3452
|
-
a(t).attrs.labelRight ? (L(), P("span",
|
|
3473
|
+
a(t).attrs.labelRight ? (L(), P("span", Oa, pe(a(t).attrs.labelRight), 1)) : re("", !0)
|
|
3453
3474
|
]);
|
|
3454
3475
|
};
|
|
3455
3476
|
}
|
|
3456
|
-
}),
|
|
3477
|
+
}), Ma = T(ha, {
|
|
3457
3478
|
props: ["iconRight", "iconLeft"]
|
|
3458
|
-
}),
|
|
3479
|
+
}), Ra = T(ma, {
|
|
3459
3480
|
props: ["iconRight", "iconLeft"]
|
|
3460
|
-
}),
|
|
3481
|
+
}), Ea = T(da, {
|
|
3461
3482
|
props: []
|
|
3462
|
-
}),
|
|
3483
|
+
}), ja = T(ka, {
|
|
3463
3484
|
props: ["feedback", "toggleMask"]
|
|
3464
|
-
}),
|
|
3485
|
+
}), Fa = T(_a, {
|
|
3465
3486
|
props: ["rows"]
|
|
3466
|
-
}),
|
|
3487
|
+
}), Da = T(oa, {
|
|
3467
3488
|
props: []
|
|
3468
|
-
}),
|
|
3489
|
+
}), Ta = T(va, {
|
|
3469
3490
|
props: []
|
|
3470
|
-
}),
|
|
3491
|
+
}), Ba = T(pa, {
|
|
3471
3492
|
props: []
|
|
3472
|
-
}),
|
|
3493
|
+
}), za = T(ca, {
|
|
3473
3494
|
props: []
|
|
3474
|
-
}),
|
|
3495
|
+
}), Ua = T($a, {
|
|
3475
3496
|
props: []
|
|
3476
|
-
}),
|
|
3497
|
+
}), Ka = T(wa, {
|
|
3477
3498
|
props: []
|
|
3478
|
-
}),
|
|
3499
|
+
}), Na = T(aa, {
|
|
3479
3500
|
props: []
|
|
3480
|
-
}),
|
|
3501
|
+
}), Wa = T(Ia, {
|
|
3481
3502
|
props: []
|
|
3482
|
-
}),
|
|
3503
|
+
}), Ha = T(Va, {
|
|
3483
3504
|
props: []
|
|
3484
|
-
}),
|
|
3505
|
+
}), qa = T(Sa, {
|
|
3485
3506
|
props: []
|
|
3486
|
-
}),
|
|
3507
|
+
}), Za = T(ua, {
|
|
3487
3508
|
props: []
|
|
3488
|
-
}),
|
|
3509
|
+
}), Ja = T(ga, {
|
|
3489
3510
|
props: []
|
|
3490
|
-
}),
|
|
3511
|
+
}), Ya = T(fa, {
|
|
3491
3512
|
props: []
|
|
3492
|
-
}),
|
|
3513
|
+
}), Qa = T(La, {
|
|
3493
3514
|
props: []
|
|
3494
|
-
}),
|
|
3515
|
+
}), Xa = T(Pa, {
|
|
3495
3516
|
props: []
|
|
3496
|
-
}),
|
|
3517
|
+
}), Ga = T(xa, {
|
|
3497
3518
|
props: []
|
|
3498
|
-
}),
|
|
3499
|
-
primeInputText:
|
|
3500
|
-
primeInputNumber:
|
|
3501
|
-
primeInputMask:
|
|
3502
|
-
primePassword:
|
|
3503
|
-
primeCheckbox:
|
|
3504
|
-
primeInputSwitch:
|
|
3505
|
-
primeTextarea:
|
|
3506
|
-
primeEditor:
|
|
3507
|
-
primeDropdown:
|
|
3508
|
-
primeMultiSelect:
|
|
3509
|
-
primeCalendar:
|
|
3510
|
-
primeSlider:
|
|
3511
|
-
primeChips:
|
|
3512
|
-
primeKnob:
|
|
3513
|
-
primeRating:
|
|
3514
|
-
primeRadioButton:
|
|
3515
|
-
primeColorPicker:
|
|
3516
|
-
primeToggleButton:
|
|
3517
|
-
primeListbox:
|
|
3518
|
-
primeSelectButton:
|
|
3519
|
-
primeTriStateCheckbox:
|
|
3519
|
+
}), ts = {
|
|
3520
|
+
primeInputText: Ma,
|
|
3521
|
+
primeInputNumber: Ra,
|
|
3522
|
+
primeInputMask: Ea,
|
|
3523
|
+
primePassword: ja,
|
|
3524
|
+
primeCheckbox: Da,
|
|
3525
|
+
primeInputSwitch: Ta,
|
|
3526
|
+
primeTextarea: Fa,
|
|
3527
|
+
primeEditor: Ba,
|
|
3528
|
+
primeDropdown: za,
|
|
3529
|
+
primeMultiSelect: Ua,
|
|
3530
|
+
primeCalendar: Na,
|
|
3531
|
+
primeSlider: Wa,
|
|
3532
|
+
primeChips: Za,
|
|
3533
|
+
primeKnob: Ja,
|
|
3534
|
+
primeRating: Ha,
|
|
3535
|
+
primeRadioButton: qa,
|
|
3536
|
+
primeColorPicker: Ya,
|
|
3537
|
+
primeToggleButton: Qa,
|
|
3538
|
+
primeListbox: Ka,
|
|
3539
|
+
primeSelectButton: Xa,
|
|
3540
|
+
primeTriStateCheckbox: Ga
|
|
3520
3541
|
};
|
|
3521
3542
|
export {
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3543
|
+
Na as primeCalendarDefinition,
|
|
3544
|
+
Da as primeCheckboxDefinition,
|
|
3545
|
+
Za as primeChipsDefinition,
|
|
3546
|
+
Ya as primeColorPickerDefinition,
|
|
3547
|
+
za as primeDropdownDefinition,
|
|
3548
|
+
Ba as primeEditorDefinition,
|
|
3549
|
+
Ea as primeInputMaskDefinition,
|
|
3550
|
+
Ra as primeInputNumberDefinition,
|
|
3551
|
+
Ta as primeInputSwitchDefinition,
|
|
3552
|
+
Ma as primeInputTextDefinition,
|
|
3553
|
+
ts as primeInputs,
|
|
3554
|
+
Ja as primeKnobDefinition,
|
|
3555
|
+
Ka as primeListboxDefinition,
|
|
3556
|
+
Ua as primeMultiSelectDefinition,
|
|
3557
|
+
ja as primePasswordDefinition,
|
|
3558
|
+
qa as primeRadioButtonDefinition,
|
|
3559
|
+
Ha as primeRatingDefinition,
|
|
3560
|
+
Xa as primeSelectButtonDefinition,
|
|
3561
|
+
Wa as primeSliderDefinition,
|
|
3562
|
+
Fa as primeTextareaDefinition,
|
|
3563
|
+
Qa as primeToggleButtonDefinition,
|
|
3564
|
+
Ga as primeTriStateCheckboxDefinition
|
|
3544
3565
|
};
|