@sfxcode/formkit-primevue 1.2.4 → 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 +761 -743
- package/dist/formkit-primevue.umd.js +1 -1
- package/package.json +16 -16
|
@@ -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,24 +452,24 @@ 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
|
|
472
|
+
function Pt(e, i, t, n = !1) {
|
|
473
473
|
const l = e;
|
|
474
474
|
for (const s in i) {
|
|
475
475
|
const r = i[s].condition;
|
|
@@ -483,8 +483,8 @@ function Lt(e, i, t, n = !1) {
|
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
const vt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), ht =
|
|
487
|
-
function
|
|
486
|
+
const vt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), ht = qt(), ni = [];
|
|
487
|
+
function ii(e) {
|
|
488
488
|
e.props.id && (vt.set(e.props.id, e), Te.set(e, e.props.id), ht(e, {
|
|
489
489
|
payload: e,
|
|
490
490
|
name: e.props.id,
|
|
@@ -492,7 +492,7 @@ function ti(e) {
|
|
|
492
492
|
origin: e
|
|
493
493
|
}));
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function li(e) {
|
|
496
496
|
if (Te.has(e)) {
|
|
497
497
|
const i = Te.get(e);
|
|
498
498
|
Te.delete(e), vt.delete(i), ht(e, {
|
|
@@ -503,26 +503,26 @@ function ni(e) {
|
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Qt(e) {
|
|
507
507
|
return vt.get(e);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
|
|
509
|
+
function ai(e, i) {
|
|
510
|
+
ni.push(ht.on(e, i));
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function At(e, i, t) {
|
|
513
513
|
let n = !0;
|
|
514
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;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function si(e) {
|
|
517
517
|
const i = document.getElementById(e);
|
|
518
518
|
if (i instanceof HTMLFormElement) {
|
|
519
519
|
const t = new Event("submit", { cancelable: !0, bubbles: !0 });
|
|
520
520
|
i.dispatchEvent(t);
|
|
521
521
|
return;
|
|
522
522
|
}
|
|
523
|
-
|
|
523
|
+
Ee(151, e);
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function ri(e) {
|
|
526
526
|
const i = (t) => {
|
|
527
527
|
for (const n in t.store) {
|
|
528
528
|
const l = t.store[n];
|
|
@@ -531,27 +531,27 @@ function ai(e) {
|
|
|
531
531
|
};
|
|
532
532
|
i(e), e.walk(i);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
const t = typeof e == "string" ?
|
|
534
|
+
function oi(e, i) {
|
|
535
|
+
const t = typeof e == "string" ? Qt(e) : e;
|
|
536
536
|
if (t) {
|
|
537
|
-
const n = (r) =>
|
|
537
|
+
const n = (r) => de(r.props.initial) || (r.type === "group" ? {} : r.type === "list" ? [] : void 0);
|
|
538
538
|
t._e.pause(t);
|
|
539
|
-
const l =
|
|
539
|
+
const l = de(i);
|
|
540
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) => {
|
|
541
541
|
r.type === "list" && r.sync || r.input(n(r), !1);
|
|
542
542
|
}), t.input(et(l) && l ? l : n(t), !1), t.type !== "input" && i && !et(i) && xe(i) && t.walk((r) => {
|
|
543
543
|
r.props.initial = xe(r.value) ? Ce(r.value) : r.value, r.props._init = t.props.initial;
|
|
544
|
-
}), t._e.play(t),
|
|
544
|
+
}), t._e.play(t), ri(t), t.emit("reset", t), t;
|
|
545
545
|
}
|
|
546
|
-
|
|
546
|
+
Ee(152, e);
|
|
547
547
|
}
|
|
548
|
-
const
|
|
548
|
+
const ui = {
|
|
549
549
|
delimiter: ".",
|
|
550
550
|
delay: 0,
|
|
551
551
|
locale: "en",
|
|
552
|
-
rootClasses: (e) => ({ [`formkit-${
|
|
553
|
-
},
|
|
554
|
-
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) {
|
|
555
555
|
return e.type === "list" && Array.isArray(e._value);
|
|
556
556
|
}
|
|
557
557
|
function Xe(e) {
|
|
@@ -559,43 +559,43 @@ function Xe(e) {
|
|
|
559
559
|
}
|
|
560
560
|
const Be = (e, i, t) => {
|
|
561
561
|
H(102, [e, t]);
|
|
562
|
-
},
|
|
563
|
-
_c: V(
|
|
564
|
-
add: V(
|
|
565
|
-
addProps: V(
|
|
566
|
-
address: V(
|
|
567
|
-
at: V(
|
|
568
|
-
bubble: V(
|
|
569
|
-
clearErrors: V(
|
|
570
|
-
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),
|
|
571
571
|
config: V(!1),
|
|
572
|
-
define: V(
|
|
573
|
-
disturb: V(
|
|
574
|
-
destroy: V(
|
|
572
|
+
define: V(wi),
|
|
573
|
+
disturb: V(_i),
|
|
574
|
+
destroy: V($i),
|
|
575
575
|
extend: V(Wi),
|
|
576
|
-
hydrate: V(
|
|
577
|
-
index: V(
|
|
578
|
-
input: V(
|
|
579
|
-
each: V(
|
|
580
|
-
emit: V(
|
|
581
|
-
find: V(
|
|
582
|
-
on: V(
|
|
583
|
-
off: V(
|
|
584
|
-
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),
|
|
585
585
|
plugins: V(!1),
|
|
586
|
-
remove: V(
|
|
587
|
-
root: V(
|
|
588
|
-
reset: V(
|
|
589
|
-
resetConfig: V(
|
|
590
|
-
setErrors: V(
|
|
591
|
-
submit: V(
|
|
592
|
-
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),
|
|
593
593
|
use: V(_t),
|
|
594
|
-
name: V(
|
|
595
|
-
walk: V(
|
|
594
|
+
name: V(Mi, !1, !1),
|
|
595
|
+
walk: V(Li)
|
|
596
596
|
};
|
|
597
|
-
function
|
|
598
|
-
return new Map(Object.entries(
|
|
597
|
+
function pi() {
|
|
598
|
+
return new Map(Object.entries(ci));
|
|
599
599
|
}
|
|
600
600
|
function V(e, i, t = !0) {
|
|
601
601
|
return {
|
|
@@ -603,7 +603,7 @@ function V(e, i, t = !0) {
|
|
|
603
603
|
set: i !== void 0 ? i : Be.bind(null)
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function di() {
|
|
607
607
|
const e = /* @__PURE__ */ new Map();
|
|
608
608
|
return new Proxy(e, {
|
|
609
609
|
get(i, t) {
|
|
@@ -611,18 +611,18 @@ function ci() {
|
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
let
|
|
615
|
-
function
|
|
614
|
+
let en = 0, mi = 0;
|
|
615
|
+
function bi(e) {
|
|
616
616
|
var i, t;
|
|
617
|
-
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}`;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function tn(e) {
|
|
620
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;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
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);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function yi(e, i) {
|
|
626
626
|
switch (e.type) {
|
|
627
627
|
case "input":
|
|
628
628
|
break;
|
|
@@ -638,30 +638,30 @@ function mi(e, i) {
|
|
|
638
638
|
function Ke(e, i, t = !0, n = !0) {
|
|
639
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();
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function ln(e, { name: i, value: t, from: n }) {
|
|
642
642
|
if (!Object.isFrozen(e._value)) {
|
|
643
|
-
if (
|
|
643
|
+
if (fi(e)) {
|
|
644
644
|
const l = t === ot ? [] : t === ut && typeof n == "number" ? e._value.splice(n, 1) : [t];
|
|
645
|
-
e._value.splice(i, t === ut || n ===
|
|
645
|
+
e._value.splice(i, t === ut || n === Gt ? 0 : 1, ...l);
|
|
646
646
|
return;
|
|
647
647
|
}
|
|
648
648
|
t !== ot ? e._value[i] = t : delete e._value[i];
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function vi(e, i) {
|
|
652
652
|
const t = i._value;
|
|
653
|
-
return e.type === "list" && e.sync &&
|
|
653
|
+
return e.type === "list" && e.sync && hi(e, i), i.children.forEach((n) => {
|
|
654
654
|
if (typeof t == "object")
|
|
655
655
|
if (n.name in t) {
|
|
656
656
|
const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? Ce(t[n.name]) : t[n.name];
|
|
657
|
-
if (!n.isSettled || !xe(l) &&
|
|
657
|
+
if (!n.isSettled || !xe(l) && ue(l, n._value))
|
|
658
658
|
return;
|
|
659
659
|
n.input(l, !1);
|
|
660
660
|
} else
|
|
661
|
-
(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));
|
|
662
662
|
}), e;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function hi(e, i) {
|
|
665
665
|
const t = e._value;
|
|
666
666
|
if (!Array.isArray(t))
|
|
667
667
|
return;
|
|
@@ -690,41 +690,41 @@ function yi(e, i) {
|
|
|
690
690
|
n[u] = o, l.delete(o);
|
|
691
691
|
}
|
|
692
692
|
r.forEach((o, u) => {
|
|
693
|
-
n[o] =
|
|
693
|
+
n[o] = Ji({ value: u });
|
|
694
694
|
}), l.size && l.forEach((o) => {
|
|
695
695
|
if (!("__FKP" in o)) {
|
|
696
696
|
const u = o._c.parent;
|
|
697
|
-
if (!u ||
|
|
697
|
+
if (!u || Yi(u))
|
|
698
698
|
return;
|
|
699
699
|
u.ledger.unmerge(o), o._c.parent = null, o.destroy();
|
|
700
700
|
}
|
|
701
701
|
}), i.children = n;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function _i(e, i) {
|
|
704
704
|
var t;
|
|
705
705
|
return i._d <= 0 && (i.isSettled = !1, e.emit("settled", !1, !1), i.settled = new Promise((n) => {
|
|
706
706
|
i._resolve = n;
|
|
707
707
|
}), e.parent && ((t = e.parent) === null || t === void 0 || t.disturb())), i._d++, e;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function gi(e, i, t) {
|
|
710
710
|
var n;
|
|
711
711
|
if (t !== void 0 && e.type !== "input")
|
|
712
|
-
return
|
|
712
|
+
return ln(i, t), Ke(e, i, !0, !1);
|
|
713
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));
|
|
714
714
|
}
|
|
715
|
-
function
|
|
716
|
-
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;
|
|
717
717
|
for (const t in i.context)
|
|
718
718
|
delete i.context[t];
|
|
719
719
|
i.plugins.clear(), i.context = null;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
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({
|
|
723
723
|
type: e.type,
|
|
724
724
|
value: i.value
|
|
725
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);
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function ki(e, i, t) {
|
|
728
728
|
var n;
|
|
729
729
|
if (e.props.attrs) {
|
|
730
730
|
const l = { ...e.props.attrs };
|
|
@@ -733,7 +733,7 @@ function $i(e, i, t) {
|
|
|
733
733
|
const o = De(r);
|
|
734
734
|
t.includes(o) && (e.props[o] = l[r], delete l[r]);
|
|
735
735
|
}
|
|
736
|
-
const s =
|
|
736
|
+
const s = de(i._value);
|
|
737
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 = [
|
|
738
738
|
...((n = e.props.definition) === null || n === void 0 ? void 0 : n.props) || [],
|
|
739
739
|
...t
|
|
@@ -741,14 +741,14 @@ function $i(e, i, t) {
|
|
|
741
741
|
}
|
|
742
742
|
return e.emit("added-props", t), e;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ci(e, i, t, n) {
|
|
745
745
|
if (e.type === "input" && H(100, e), t.parent && t.parent !== e && t.parent.remove(t), !i.children.includes(t)) {
|
|
746
746
|
if (n !== void 0 && e.type === "list") {
|
|
747
747
|
const l = i.children[n];
|
|
748
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({
|
|
749
749
|
name: n,
|
|
750
750
|
value: t.value,
|
|
751
|
-
from:
|
|
751
|
+
from: Gt
|
|
752
752
|
});
|
|
753
753
|
} else
|
|
754
754
|
i.children.push(t);
|
|
@@ -761,10 +761,10 @@ function wi(e, i, t, n) {
|
|
|
761
761
|
t.use(e.plugins);
|
|
762
762
|
return Ke(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function Si(e, i, t, n) {
|
|
765
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;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function Vi(e, i, t) {
|
|
768
768
|
const n = i.children.indexOf(t);
|
|
769
769
|
if (n !== -1) {
|
|
770
770
|
t.isSettled && e.disturb(), i.children.splice(n, 1);
|
|
@@ -778,10 +778,10 @@ function Ci(e, i, t) {
|
|
|
778
778
|
}
|
|
779
779
|
return e.ledger.unmerge(t), e;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Ii(e, i, t) {
|
|
782
782
|
i.children.forEach((n) => !("__FKP" in n) && t(n));
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function Li(e, i, t, n = !1, l = !1) {
|
|
785
785
|
i.children.some((s) => {
|
|
786
786
|
if ("__FKP" in s)
|
|
787
787
|
return !1;
|
|
@@ -789,38 +789,38 @@ function Vi(e, i, t, n = !1, l = !1) {
|
|
|
789
789
|
return n && r === !1 ? !0 : l && r === !1 ? !1 : s.walk(t, n, l);
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Pi(e, i) {
|
|
793
793
|
const t = e.parent || void 0;
|
|
794
|
-
i.config =
|
|
794
|
+
i.config = an(e.config._t, t), e.walk((n) => n.resetConfig());
|
|
795
795
|
}
|
|
796
796
|
function _t(e, i, t, n = !0, l = !0) {
|
|
797
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);
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function Ai(e, i, t, n) {
|
|
800
800
|
if (Xe(e.parent)) {
|
|
801
801
|
const l = e.parent.children, s = n >= l.length ? l.length - 1 : n < 0 ? 0 : n, r = l.indexOf(e);
|
|
802
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);
|
|
803
803
|
}
|
|
804
804
|
return !1;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Oi(e) {
|
|
807
807
|
if (e.parent) {
|
|
808
808
|
const i = [...e.parent.children].indexOf(e);
|
|
809
809
|
return i === -1 ? e.parent.children.length : i;
|
|
810
810
|
}
|
|
811
811
|
return -1;
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function xi(e, i) {
|
|
814
814
|
return i;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function Mi(e, i) {
|
|
817
817
|
var t;
|
|
818
|
-
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;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Ri(e, i) {
|
|
821
821
|
return i.parent ? i.parent.address.concat([e.name]) : [e.name];
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function Ei(e, i, t) {
|
|
824
824
|
const n = typeof t == "string" ? t.split(e.config.delimiter) : t;
|
|
825
825
|
if (!n.length)
|
|
826
826
|
return;
|
|
@@ -839,12 +839,12 @@ function Mi(e, i, t) {
|
|
|
839
839
|
s = e;
|
|
840
840
|
break;
|
|
841
841
|
default:
|
|
842
|
-
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);
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
return s || void 0;
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function ji(e, i) {
|
|
848
848
|
const t = String(i).match(/^(find)\((.*)\)$/);
|
|
849
849
|
if (t) {
|
|
850
850
|
const [, n, l] = t, s = l.split(",").map((r) => r.trim());
|
|
@@ -856,10 +856,10 @@ function Ei(e, i) {
|
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
-
function
|
|
860
|
-
return
|
|
859
|
+
function Fi(e, i, t, n) {
|
|
860
|
+
return Di(e, t, n);
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function Di(e, i, t = "name") {
|
|
863
863
|
const n = typeof t == "string" ? (s) => s[t] == i : t, l = [e];
|
|
864
864
|
for (; l.length; ) {
|
|
865
865
|
const s = l.shift();
|
|
@@ -870,13 +870,13 @@ function ji(e, i, t = "name") {
|
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function Ti(e) {
|
|
874
874
|
let i = e;
|
|
875
875
|
for (; i.parent; )
|
|
876
876
|
i = i.parent;
|
|
877
877
|
return i;
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function an(e = {}, i) {
|
|
880
880
|
let t;
|
|
881
881
|
return new Proxy(e, {
|
|
882
882
|
get(...n) {
|
|
@@ -896,7 +896,7 @@ function nn(e = {}, i) {
|
|
|
896
896
|
if (r !== void 0)
|
|
897
897
|
return r;
|
|
898
898
|
}
|
|
899
|
-
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];
|
|
900
900
|
},
|
|
901
901
|
set(...n) {
|
|
902
902
|
const l = n[1], s = n[2];
|
|
@@ -904,53 +904,50 @@ function nn(e = {}, i) {
|
|
|
904
904
|
return t = s, e.rootConfig && e.rootConfig._add(t), !0;
|
|
905
905
|
if (l === "_rmn")
|
|
906
906
|
return e.rootConfig && e.rootConfig._rm(t), t = void 0, !0;
|
|
907
|
-
if (!
|
|
907
|
+
if (!ue(e[l], s, !1)) {
|
|
908
908
|
const r = Reflect.set(...n);
|
|
909
|
-
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;
|
|
910
910
|
}
|
|
911
911
|
return !0;
|
|
912
912
|
}
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function Bi(e, i, t, n = "ui") {
|
|
916
916
|
const l = typeof t == "string" ? { key: t, value: t, type: n } : t, s = e.hook.text.dispatch(l);
|
|
917
917
|
return e.emit("text", s, !1), s.value;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function zi(e) {
|
|
920
920
|
const i = e.name;
|
|
921
921
|
do {
|
|
922
922
|
if (e.props.isForm === !0)
|
|
923
923
|
break;
|
|
924
924
|
e.parent || H(106, i), e = e.parent;
|
|
925
925
|
} while (e);
|
|
926
|
-
e.props.id &&
|
|
926
|
+
e.props.id && si(e.props.id);
|
|
927
927
|
}
|
|
928
|
-
function
|
|
929
|
-
return
|
|
928
|
+
function Ui(e, i, t) {
|
|
929
|
+
return oi(e, t);
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function sn(e, i, t, n) {
|
|
932
932
|
const l = `${e.name}-set`, s = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
|
|
933
|
-
return
|
|
933
|
+
return Yn(e, s.localErrors, s.childErrors).forEach((r) => {
|
|
934
934
|
e.store.apply(r, (o) => o.meta.source === l);
|
|
935
935
|
}), e;
|
|
936
936
|
}
|
|
937
|
-
function
|
|
938
|
-
return
|
|
937
|
+
function Ki(e, i, t = !0, n) {
|
|
938
|
+
return sn(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
|
|
939
939
|
l.store.filter((s) => !(s.type === "error" && s.meta && s.meta.source === n));
|
|
940
940
|
})), e;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
943
|
-
return j(e.props, "id") || (e.props.id = `input_${pi++}`), e;
|
|
944
|
-
}
|
|
945
|
-
function Ki(e) {
|
|
942
|
+
function Ni(e) {
|
|
946
943
|
const i = {
|
|
947
|
-
initial: typeof e == "object" ?
|
|
944
|
+
initial: typeof e == "object" ? de(e) : e
|
|
948
945
|
};
|
|
949
946
|
let t, n = !0;
|
|
950
947
|
return new Proxy(i, {
|
|
951
948
|
get(...l) {
|
|
952
949
|
const [s, r] = l;
|
|
953
|
-
if (
|
|
950
|
+
if (F(i, r))
|
|
954
951
|
return Reflect.get(...l);
|
|
955
952
|
if (t && typeof r == "string" && t.config[r] !== void 0)
|
|
956
953
|
return t.config[r];
|
|
@@ -964,7 +961,7 @@ function Ki(e) {
|
|
|
964
961
|
prop: s,
|
|
965
962
|
value: r
|
|
966
963
|
});
|
|
967
|
-
if (!
|
|
964
|
+
if (!ue(i[u], p, !1) || typeof p == "object") {
|
|
968
965
|
const _ = Reflect.set(l, u, p, o);
|
|
969
966
|
return n && (t.emit("prop", { prop: u, value: p }), typeof u == "string" && t.emit(`prop:${u}`, p)), _;
|
|
970
967
|
}
|
|
@@ -975,7 +972,7 @@ function Ki(e) {
|
|
|
975
972
|
function Wi(e, i, t, n) {
|
|
976
973
|
return i.traps.set(t, n), e;
|
|
977
974
|
}
|
|
978
|
-
function
|
|
975
|
+
function Hi(e, i) {
|
|
979
976
|
if (e.props.definition)
|
|
980
977
|
return e.define(e.props.definition);
|
|
981
978
|
for (const t of i) {
|
|
@@ -984,49 +981,50 @@ function Ni(e, i) {
|
|
|
984
981
|
typeof t.library == "function" && t.library(e);
|
|
985
982
|
}
|
|
986
983
|
}
|
|
987
|
-
function
|
|
988
|
-
const i =
|
|
984
|
+
function qi(e) {
|
|
985
|
+
const i = tn(e), t = an(e.config || {}, e.parent);
|
|
989
986
|
return {
|
|
990
987
|
_d: 0,
|
|
991
|
-
_e:
|
|
988
|
+
_e: qt(),
|
|
992
989
|
uid: Symbol(),
|
|
993
990
|
_resolve: !1,
|
|
994
991
|
_tmo: !1,
|
|
995
992
|
_value: i,
|
|
996
|
-
children:
|
|
993
|
+
children: On(e.children || []),
|
|
997
994
|
config: t,
|
|
998
|
-
hook:
|
|
995
|
+
hook: di(),
|
|
999
996
|
isCreated: !1,
|
|
1000
997
|
isSettled: !0,
|
|
1001
|
-
ledger:
|
|
1002
|
-
name:
|
|
998
|
+
ledger: Gn(),
|
|
999
|
+
name: bi(e),
|
|
1003
1000
|
parent: e.parent || null,
|
|
1004
1001
|
plugins: /* @__PURE__ */ new Set(),
|
|
1005
|
-
props:
|
|
1002
|
+
props: Ni(i),
|
|
1006
1003
|
settled: Promise.resolve(i),
|
|
1007
|
-
store:
|
|
1004
|
+
store: Nn(!0),
|
|
1008
1005
|
sync: e.sync || !1,
|
|
1009
|
-
traps:
|
|
1006
|
+
traps: pi(),
|
|
1010
1007
|
type: e.type || "input",
|
|
1011
1008
|
value: i
|
|
1012
1009
|
};
|
|
1013
1010
|
}
|
|
1014
|
-
function
|
|
1015
|
-
var t;
|
|
1016
|
-
|
|
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([
|
|
1017
1015
|
...i.plugins || [],
|
|
1018
1016
|
...e.parent ? e.parent.plugins : []
|
|
1019
1017
|
])), i.plugins)
|
|
1020
|
-
for (const
|
|
1021
|
-
_t(e, e._c,
|
|
1022
|
-
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;
|
|
1023
1021
|
}
|
|
1024
|
-
function
|
|
1022
|
+
function Ji(e) {
|
|
1025
1023
|
var i, t, n, l;
|
|
1026
1024
|
return {
|
|
1027
1025
|
__FKP: !0,
|
|
1028
1026
|
uid: Symbol(),
|
|
1029
|
-
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++}`,
|
|
1030
1028
|
value: (t = e == null ? void 0 : e.value) !== null && t !== void 0 ? t : null,
|
|
1031
1029
|
_value: (n = e == null ? void 0 : e.value) !== null && n !== void 0 ? n : null,
|
|
1032
1030
|
type: (l = e == null ? void 0 : e.type) !== null && l !== void 0 ? l : "input",
|
|
@@ -1038,11 +1036,11 @@ function Zi(e) {
|
|
|
1038
1036
|
isSettled: !0
|
|
1039
1037
|
};
|
|
1040
1038
|
}
|
|
1041
|
-
function
|
|
1039
|
+
function Yi(e) {
|
|
1042
1040
|
return "__FKP" in e;
|
|
1043
1041
|
}
|
|
1044
|
-
function
|
|
1045
|
-
const i = e || {}, t =
|
|
1042
|
+
function Qi(e) {
|
|
1043
|
+
const i = e || {}, t = qi(i), n = new Proxy(t, {
|
|
1046
1044
|
get(...l) {
|
|
1047
1045
|
const [, s] = l;
|
|
1048
1046
|
if (s === "__FKNode__")
|
|
@@ -1055,27 +1053,27 @@ function Yi(e) {
|
|
|
1055
1053
|
return o && o.set ? o.set(n, t, s, r) : Reflect.set(...l);
|
|
1056
1054
|
}
|
|
1057
1055
|
});
|
|
1058
|
-
return
|
|
1056
|
+
return Zi(n, i);
|
|
1059
1057
|
}
|
|
1060
1058
|
function ft(e) {
|
|
1061
|
-
return typeof e != "string" &&
|
|
1059
|
+
return typeof e != "string" && F(e, "$el");
|
|
1062
1060
|
}
|
|
1063
1061
|
function ct(e) {
|
|
1064
|
-
return typeof e != "string" &&
|
|
1062
|
+
return typeof e != "string" && F(e, "$cmp");
|
|
1065
1063
|
}
|
|
1066
1064
|
function ve(e) {
|
|
1067
|
-
return !e || typeof e == "string" ? !1 :
|
|
1065
|
+
return !e || typeof e == "string" ? !1 : F(e, "if") && F(e, "then");
|
|
1068
1066
|
}
|
|
1069
|
-
function
|
|
1067
|
+
function Xi(e) {
|
|
1070
1068
|
return typeof e != "string" && "$formkit" in e;
|
|
1071
1069
|
}
|
|
1072
|
-
function
|
|
1070
|
+
function Gi(e) {
|
|
1073
1071
|
if (typeof e == "string")
|
|
1074
1072
|
return {
|
|
1075
1073
|
$el: "text",
|
|
1076
1074
|
children: e
|
|
1077
1075
|
};
|
|
1078
|
-
if (
|
|
1076
|
+
if (Xi(e)) {
|
|
1079
1077
|
const { $formkit: i, for: t, if: n, children: l, bind: s, ...r } = e;
|
|
1080
1078
|
return Object.assign({
|
|
1081
1079
|
$cmp: "FormKit",
|
|
@@ -1151,62 +1149,62 @@ function J(e) {
|
|
|
1151
1149
|
}
|
|
1152
1150
|
function _(c, d = 0) {
|
|
1153
1151
|
const m = l[d], y = c.length, g = Object.keys(m);
|
|
1154
|
-
let v = 0, w = !1, f = null, b = "", k = null, I, B = "",
|
|
1155
|
-
const q = (x,
|
|
1156
|
-
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;
|
|
1157
1155
|
};
|
|
1158
1156
|
for (let x = 0; x < y; x++)
|
|
1159
|
-
if (B =
|
|
1160
|
-
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);
|
|
1161
1159
|
continue;
|
|
1162
|
-
} else if (w && (
|
|
1163
|
-
q(v,
|
|
1160
|
+
} else if (w && (S !== w || B === "\\") || O && (S !== O || B === "\\")) {
|
|
1161
|
+
q(v, S);
|
|
1164
1162
|
continue;
|
|
1165
|
-
} else if (w ===
|
|
1166
|
-
w = !1, q(v,
|
|
1163
|
+
} else if (w === S) {
|
|
1164
|
+
w = !1, q(v, S);
|
|
1167
1165
|
continue;
|
|
1168
|
-
} else if (O ===
|
|
1169
|
-
O = !1, q(v,
|
|
1166
|
+
} else if (O === S) {
|
|
1167
|
+
O = !1, q(v, S);
|
|
1170
1168
|
continue;
|
|
1171
1169
|
} else {
|
|
1172
|
-
if (
|
|
1170
|
+
if (S === " ")
|
|
1173
1171
|
continue;
|
|
1174
|
-
if (
|
|
1175
|
-
v === 0 ?
|
|
1176
|
-
else if (
|
|
1172
|
+
if (S === "(")
|
|
1173
|
+
v === 0 ? N = x : R += S, v++;
|
|
1174
|
+
else if (S === ")")
|
|
1177
1175
|
if (v--, v === 0) {
|
|
1178
|
-
const
|
|
1179
|
-
let
|
|
1180
|
-
Le && ([
|
|
1181
|
-
const Fe = f ? d : u(
|
|
1182
|
-
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 = "";
|
|
1183
1181
|
} else
|
|
1184
|
-
|
|
1185
|
-
else if (v === 0 && (I = o(g,
|
|
1182
|
+
R += S;
|
|
1183
|
+
else if (v === 0 && (I = o(g, S, x, c))) {
|
|
1186
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 = "");
|
|
1187
1185
|
continue;
|
|
1188
1186
|
} else
|
|
1189
|
-
q(v,
|
|
1187
|
+
q(v, S);
|
|
1190
1188
|
}
|
|
1191
|
-
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;
|
|
1192
1190
|
}
|
|
1193
1191
|
function A(c, d, m, y) {
|
|
1194
1192
|
if (m) {
|
|
1195
1193
|
const g = A(m, l.length);
|
|
1196
1194
|
let v, w = y ? J(`$${y}`) : !1;
|
|
1197
1195
|
if (typeof g == "function") {
|
|
1198
|
-
const f =
|
|
1196
|
+
const f = En(String(c)).map((b) => A(b, -1));
|
|
1199
1197
|
return (b) => {
|
|
1200
1198
|
const k = g(b);
|
|
1201
|
-
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) => {
|
|
1202
1200
|
const B = i(I);
|
|
1203
|
-
return I.reduce((
|
|
1201
|
+
return I.reduce((R, O) => {
|
|
1204
1202
|
if (O === y || (y == null ? void 0 : y.startsWith(`${O}(`))) {
|
|
1205
|
-
const q =
|
|
1206
|
-
|
|
1203
|
+
const q = Fn(v, O);
|
|
1204
|
+
R[O] = () => q;
|
|
1207
1205
|
} else
|
|
1208
|
-
|
|
1209
|
-
return
|
|
1206
|
+
R[O] = B[O];
|
|
1207
|
+
return R;
|
|
1210
1208
|
}, {});
|
|
1211
1209
|
})), w ? w() : v);
|
|
1212
1210
|
};
|
|
@@ -1218,8 +1216,8 @@ function J(e) {
|
|
|
1218
1216
|
return !1;
|
|
1219
1217
|
if (c === "undefined")
|
|
1220
1218
|
return;
|
|
1221
|
-
if (
|
|
1222
|
-
return
|
|
1219
|
+
if (Mn(c))
|
|
1220
|
+
return Rn(c.substring(1, c.length - 1));
|
|
1223
1221
|
if (!isNaN(+c))
|
|
1224
1222
|
return Number(c);
|
|
1225
1223
|
if (d < l.length - 1)
|
|
@@ -1246,8 +1244,8 @@ function J(e) {
|
|
|
1246
1244
|
provide: h
|
|
1247
1245
|
});
|
|
1248
1246
|
}
|
|
1249
|
-
const
|
|
1250
|
-
function
|
|
1247
|
+
const Ot = "0.19.0";
|
|
1248
|
+
function el(e) {
|
|
1251
1249
|
let i = 1;
|
|
1252
1250
|
return Array.isArray(e) ? e.map((t) => typeof t == "string" || typeof t == "number" ? {
|
|
1253
1251
|
label: String(t),
|
|
@@ -1269,12 +1267,12 @@ function Se(e, i) {
|
|
|
1269
1267
|
return i;
|
|
1270
1268
|
}
|
|
1271
1269
|
function Ve(e, i) {
|
|
1272
|
-
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;
|
|
1273
1271
|
}
|
|
1274
1272
|
function gt(e) {
|
|
1275
|
-
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)));
|
|
1276
1274
|
}
|
|
1277
|
-
function
|
|
1275
|
+
function C(e, i, t = !1) {
|
|
1278
1276
|
return (...n) => {
|
|
1279
1277
|
const l = (s) => {
|
|
1280
1278
|
const r = !i || typeof i == "string" ? { $el: i } : i();
|
|
@@ -1289,75 +1287,22 @@ function S(e, i, t = !1) {
|
|
|
1289
1287
|
else: e in s ? Ae(r, s[e]) : r
|
|
1290
1288
|
};
|
|
1291
1289
|
};
|
|
1292
|
-
return l._s = e, t ?
|
|
1290
|
+
return l._s = e, t ? tl(l) : l;
|
|
1293
1291
|
};
|
|
1294
1292
|
}
|
|
1295
|
-
function
|
|
1293
|
+
function tl(e) {
|
|
1296
1294
|
return (i) => [e(i)];
|
|
1297
1295
|
}
|
|
1298
|
-
function
|
|
1296
|
+
function Ne(e) {
|
|
1299
1297
|
return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
|
|
1300
1298
|
}
|
|
1301
1299
|
function Ae(e, i = {}) {
|
|
1302
|
-
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);
|
|
1303
1301
|
}
|
|
1304
|
-
const
|
|
1305
|
-
$el: "div",
|
|
1306
|
-
attrs: {
|
|
1307
|
-
key: "$id",
|
|
1308
|
-
"data-family": "$family || undefined",
|
|
1309
|
-
"data-type": "$type",
|
|
1310
|
-
"data-multiple": '$attrs.multiple || ($type != "select" && $options != undefined) || undefined',
|
|
1311
|
-
"data-disabled": '$: ($disabled !== "false" && $disabled) || undefined',
|
|
1312
|
-
"data-empty": "$state.empty || undefined",
|
|
1313
|
-
"data-complete": "$state.complete || undefined",
|
|
1314
|
-
"data-invalid": "$state.valid === false && $state.validationVisible || undefined",
|
|
1315
|
-
"data-errors": "$state.errors || undefined",
|
|
1316
|
-
"data-submitted": "$state.submitted || undefined",
|
|
1317
|
-
"data-prefix-icon": "$_rawPrefixIcon !== undefined || undefined",
|
|
1318
|
-
"data-suffix-icon": "$_rawSuffixIcon !== undefined || undefined",
|
|
1319
|
-
"data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
|
|
1320
|
-
"data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
|
|
1321
|
-
}
|
|
1322
|
-
})), le = S("inner", "div"), Ie = S("wrapper", "div"), je = S("label", () => ({
|
|
1323
|
-
$el: "label",
|
|
1324
|
-
if: "$label",
|
|
1325
|
-
attrs: {
|
|
1326
|
-
for: "$id"
|
|
1327
|
-
}
|
|
1328
|
-
})), ae = S("messages", () => ({
|
|
1329
|
-
$el: "ul",
|
|
1330
|
-
if: "$defaultMessagePlacement && $fns.length($messages)"
|
|
1331
|
-
})), se = S("message", () => ({
|
|
1332
|
-
$el: "li",
|
|
1333
|
-
for: ["message", "$messages"],
|
|
1334
|
-
attrs: {
|
|
1335
|
-
key: "$message.key",
|
|
1336
|
-
id: "$id + '-' + $message.key",
|
|
1337
|
-
"data-message-type": "$message.type"
|
|
1338
|
-
}
|
|
1339
|
-
})), Q = S("prefix", null), X = S("suffix", null), G = S("help", () => ({
|
|
1302
|
+
const nl = C("actions", () => ({
|
|
1340
1303
|
$el: "div",
|
|
1341
|
-
if: "$
|
|
1342
|
-
|
|
1343
|
-
id: '$: "help-" + $id'
|
|
1344
|
-
}
|
|
1345
|
-
})), an = S("fieldset", () => ({
|
|
1346
|
-
$el: "fieldset",
|
|
1347
|
-
attrs: {
|
|
1348
|
-
id: "$id",
|
|
1349
|
-
"aria-describedby": {
|
|
1350
|
-
if: "$help",
|
|
1351
|
-
then: '$: "help-" + $id',
|
|
1352
|
-
else: void 0
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
})), Ne = S("decorator", () => ({
|
|
1356
|
-
$el: "span",
|
|
1357
|
-
attrs: {
|
|
1358
|
-
"aria-hidden": "true"
|
|
1359
|
-
}
|
|
1360
|
-
})), He = S("input", () => ({
|
|
1304
|
+
if: "$actions"
|
|
1305
|
+
})), We = C("input", () => ({
|
|
1361
1306
|
$el: "input",
|
|
1362
1307
|
bind: "$attrs",
|
|
1363
1308
|
attrs: {
|
|
@@ -1383,16 +1328,19 @@ const ce = S("outer", () => ({
|
|
|
1383
1328
|
}
|
|
1384
1329
|
}
|
|
1385
1330
|
}
|
|
1386
|
-
})),
|
|
1387
|
-
$el: "
|
|
1388
|
-
if: "$
|
|
1389
|
-
|
|
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", () => ({
|
|
1390
1338
|
$el: "li",
|
|
1391
1339
|
for: ["option", "$options"],
|
|
1392
1340
|
attrs: {
|
|
1393
1341
|
"data-disabled": "$option.attrs.disabled || $disabled"
|
|
1394
1342
|
}
|
|
1395
|
-
})),
|
|
1343
|
+
})), un = C("options", "ul"), qe = C("wrapper", () => ({
|
|
1396
1344
|
$el: "label",
|
|
1397
1345
|
attrs: {
|
|
1398
1346
|
"data-disabled": {
|
|
@@ -1406,13 +1354,7 @@ const ce = S("outer", () => ({
|
|
|
1406
1354
|
else: "$fns.isChecked($option.value) || undefined"
|
|
1407
1355
|
}
|
|
1408
1356
|
}
|
|
1409
|
-
})),
|
|
1410
|
-
$el: "div",
|
|
1411
|
-
if: "$option.help",
|
|
1412
|
-
attrs: {
|
|
1413
|
-
id: '$: "help-" + $option.attrs.id'
|
|
1414
|
-
}
|
|
1415
|
-
})), Ze = S("label", "span"), tl = S("input", () => ({
|
|
1357
|
+
})), il = C("input", () => ({
|
|
1416
1358
|
$el: "button",
|
|
1417
1359
|
bind: "$attrs",
|
|
1418
1360
|
attrs: {
|
|
@@ -1421,7 +1363,22 @@ const ce = S("outer", () => ({
|
|
|
1421
1363
|
name: "$node.name",
|
|
1422
1364
|
id: "$id"
|
|
1423
1365
|
}
|
|
1424
|
-
})),
|
|
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", () => ({
|
|
1425
1382
|
$el: "input",
|
|
1426
1383
|
bind: "$attrs",
|
|
1427
1384
|
attrs: {
|
|
@@ -1433,10 +1390,10 @@ const ce = S("outer", () => ({
|
|
|
1433
1390
|
id: "$id",
|
|
1434
1391
|
"aria-describedby": "$describedBy"
|
|
1435
1392
|
}
|
|
1436
|
-
})),
|
|
1393
|
+
})), sl = C("fileItem", () => ({
|
|
1437
1394
|
$el: "li",
|
|
1438
1395
|
for: ["file", "$value"]
|
|
1439
|
-
})),
|
|
1396
|
+
})), rl = C("fileList", () => ({
|
|
1440
1397
|
$el: "ul",
|
|
1441
1398
|
if: "$value.length",
|
|
1442
1399
|
attrs: {
|
|
@@ -1445,20 +1402,17 @@ const ce = S("outer", () => ({
|
|
|
1445
1402
|
then: "true"
|
|
1446
1403
|
}
|
|
1447
1404
|
}
|
|
1448
|
-
})),
|
|
1405
|
+
})), ol = C("fileName", () => ({
|
|
1449
1406
|
$el: "span",
|
|
1450
1407
|
attrs: {
|
|
1451
1408
|
class: "$classes.fileName"
|
|
1452
1409
|
}
|
|
1453
|
-
})),
|
|
1410
|
+
})), Mt = C("fileRemove", () => ({
|
|
1454
1411
|
$el: "button",
|
|
1455
1412
|
attrs: {
|
|
1456
1413
|
onClick: "$handlers.resetFiles"
|
|
1457
1414
|
}
|
|
1458
|
-
})),
|
|
1459
|
-
$el: "span",
|
|
1460
|
-
if: "$value.length == 0"
|
|
1461
|
-
})), ol = S("form", () => ({
|
|
1415
|
+
})), ul = C("form", () => ({
|
|
1462
1416
|
$el: "form",
|
|
1463
1417
|
bind: "$attrs",
|
|
1464
1418
|
attrs: {
|
|
@@ -1467,10 +1421,97 @@ const ce = S("outer", () => ({
|
|
|
1467
1421
|
onSubmit: "$handlers.submit",
|
|
1468
1422
|
"data-loading": "$state.loading || undefined"
|
|
1469
1423
|
}
|
|
1470
|
-
})),
|
|
1424
|
+
})), $t = C("wrapper", null, !0), Q = C("help", () => ({
|
|
1471
1425
|
$el: "div",
|
|
1472
|
-
if: "$
|
|
1473
|
-
|
|
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", () => ({
|
|
1474
1515
|
$cmp: "FormKit",
|
|
1475
1516
|
bind: "$submitAttrs",
|
|
1476
1517
|
props: {
|
|
@@ -1478,7 +1519,7 @@ const ce = S("outer", () => ({
|
|
|
1478
1519
|
disabled: "$disabled",
|
|
1479
1520
|
label: "$submitLabel"
|
|
1480
1521
|
}
|
|
1481
|
-
})),
|
|
1522
|
+
})), G = C("suffix", null), pn = C("input", () => ({
|
|
1482
1523
|
$el: "input",
|
|
1483
1524
|
bind: "$attrs",
|
|
1484
1525
|
attrs: {
|
|
@@ -1491,35 +1532,7 @@ const ce = S("outer", () => ({
|
|
|
1491
1532
|
id: "$id",
|
|
1492
1533
|
"aria-describedby": "$describedBy"
|
|
1493
1534
|
}
|
|
1494
|
-
})),
|
|
1495
|
-
$el: "select",
|
|
1496
|
-
bind: "$attrs",
|
|
1497
|
-
attrs: {
|
|
1498
|
-
id: "$id",
|
|
1499
|
-
"data-placeholder": "$fns.showPlaceholder($_value, $placeholder)",
|
|
1500
|
-
disabled: "$disabled",
|
|
1501
|
-
class: "$classes.input",
|
|
1502
|
-
name: "$node.name",
|
|
1503
|
-
onChange: "$handlers.onChange",
|
|
1504
|
-
onInput: "$handlers.selectInput",
|
|
1505
|
-
onBlur: "$handlers.blur",
|
|
1506
|
-
"aria-describedby": "$describedBy"
|
|
1507
|
-
}
|
|
1508
|
-
})), pl = S("option", () => ({
|
|
1509
|
-
$el: "option",
|
|
1510
|
-
for: ["option", "$options"],
|
|
1511
|
-
bind: "$option.attrs",
|
|
1512
|
-
attrs: {
|
|
1513
|
-
class: "$classes.option",
|
|
1514
|
-
value: "$option.value",
|
|
1515
|
-
selected: "$fns.isSelected($option)"
|
|
1516
|
-
}
|
|
1517
|
-
})), dl = () => ({
|
|
1518
|
-
$el: null,
|
|
1519
|
-
if: "$options.length",
|
|
1520
|
-
for: ["option", "$options"],
|
|
1521
|
-
children: "$slots.option"
|
|
1522
|
-
}), ml = S("input", () => ({
|
|
1535
|
+
})), bl = C("input", () => ({
|
|
1523
1536
|
$el: "textarea",
|
|
1524
1537
|
bind: "$attrs",
|
|
1525
1538
|
attrs: {
|
|
@@ -1532,29 +1545,14 @@ const ce = S("outer", () => ({
|
|
|
1532
1545
|
"aria-describedby": "$describedBy"
|
|
1533
1546
|
},
|
|
1534
1547
|
children: "$initialValue"
|
|
1535
|
-
})),
|
|
1536
|
-
|
|
1537
|
-
return {
|
|
1538
|
-
if: `$${e}Icon && $${t}`,
|
|
1539
|
-
$el: `${i || "span"}`,
|
|
1540
|
-
attrs: {
|
|
1541
|
-
class: `$classes.${e}Icon + " " + $classes.icon`,
|
|
1542
|
-
innerHTML: `$${t}`,
|
|
1543
|
-
onClick: `$handlers.iconClick(${e})`,
|
|
1544
|
-
for: {
|
|
1545
|
-
if: `${i === "label"}`,
|
|
1546
|
-
then: "$id"
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
};
|
|
1550
|
-
})();
|
|
1551
|
-
function pn(e) {
|
|
1548
|
+
})), Ie = C("wrapper", "div");
|
|
1549
|
+
function dn(e) {
|
|
1552
1550
|
return function(i, t) {
|
|
1553
1551
|
return i.prop === "options" && Array.isArray(i.value) && (i.value = i.value.map((n) => {
|
|
1554
1552
|
var l;
|
|
1555
1553
|
return !((l = n.attrs) === null || l === void 0) && l.id ? n : Qe(n, {
|
|
1556
1554
|
attrs: {
|
|
1557
|
-
id: `${e.
|
|
1555
|
+
id: `${e.props.id}-option-${dt(String(n.value))}`
|
|
1558
1556
|
}
|
|
1559
1557
|
});
|
|
1560
1558
|
}), e.props.type === "checkbox" && !Array.isArray(e.value) && (e.isCreated ? e.input([], !1) : e.on("created", () => {
|
|
@@ -1562,24 +1560,29 @@ function pn(e) {
|
|
|
1562
1560
|
}))), t(i);
|
|
1563
1561
|
};
|
|
1564
1562
|
}
|
|
1565
|
-
function
|
|
1563
|
+
function yl(e, i) {
|
|
1566
1564
|
const t = i.target;
|
|
1567
1565
|
if (t instanceof HTMLInputElement) {
|
|
1568
1566
|
const n = Array.isArray(e.props.options) ? Se(e.props.options, t.value) : t.value;
|
|
1569
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);
|
|
1570
1568
|
}
|
|
1571
1569
|
}
|
|
1572
|
-
function
|
|
1570
|
+
function vl(e, i) {
|
|
1573
1571
|
var t, n;
|
|
1574
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;
|
|
1575
1573
|
}
|
|
1576
|
-
function
|
|
1574
|
+
function hl(e) {
|
|
1577
1575
|
e.on("created", () => {
|
|
1578
1576
|
var i, t;
|
|
1579
|
-
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked =
|
|
1580
|
-
}), 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
|
+
};
|
|
1581
1584
|
}
|
|
1582
|
-
function
|
|
1585
|
+
function wt(e) {
|
|
1583
1586
|
e.on("created", () => {
|
|
1584
1587
|
"disabled" in e.props && (e.props.disabled = Y(e.props.disabled), e.config.disabled = Y(e.props.disabled));
|
|
1585
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 }) => {
|
|
@@ -1588,7 +1591,7 @@ function $t(e) {
|
|
|
1588
1591
|
}
|
|
1589
1592
|
function ze(e, i) {
|
|
1590
1593
|
return (t) => {
|
|
1591
|
-
t.store.set(
|
|
1594
|
+
t.store.set(oe({
|
|
1592
1595
|
key: e,
|
|
1593
1596
|
type: "ui",
|
|
1594
1597
|
value: i || e,
|
|
@@ -1600,14 +1603,14 @@ function ze(e, i) {
|
|
|
1600
1603
|
};
|
|
1601
1604
|
}
|
|
1602
1605
|
const tt = typeof window < "u";
|
|
1603
|
-
function
|
|
1606
|
+
function mn(e) {
|
|
1604
1607
|
e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
|
|
1605
1608
|
}
|
|
1606
|
-
function
|
|
1607
|
-
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);
|
|
1608
1611
|
}
|
|
1609
|
-
function
|
|
1610
|
-
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", () => {
|
|
1611
1614
|
if (e.props.id && tt) {
|
|
1612
1615
|
const i = document.getElementById(e.props.id);
|
|
1613
1616
|
i && (i.value = "");
|
|
@@ -1632,22 +1635,22 @@ function hl(e) {
|
|
|
1632
1635
|
});
|
|
1633
1636
|
});
|
|
1634
1637
|
}
|
|
1635
|
-
const
|
|
1638
|
+
const Et = oe({
|
|
1636
1639
|
key: "loading",
|
|
1637
1640
|
value: !0,
|
|
1638
1641
|
visible: !1
|
|
1639
1642
|
});
|
|
1640
|
-
async function
|
|
1643
|
+
async function gl(e, i) {
|
|
1641
1644
|
const t = Math.random();
|
|
1642
|
-
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))
|
|
1643
1646
|
return;
|
|
1644
|
-
const n = (l) => l.store.set(
|
|
1647
|
+
const n = (l) => l.store.set(oe({
|
|
1645
1648
|
key: "submitted",
|
|
1646
1649
|
value: !0,
|
|
1647
1650
|
visible: !1
|
|
1648
1651
|
}));
|
|
1649
1652
|
if (e.walk(n), n(e), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
|
|
1650
|
-
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({
|
|
1651
1654
|
blocking: !1,
|
|
1652
1655
|
key: "incomplete",
|
|
1653
1656
|
meta: {
|
|
@@ -1659,45 +1662,63 @@ async function _l(e, i) {
|
|
|
1659
1662
|
value: e.props.incompleteMessage || "Form incomplete."
|
|
1660
1663
|
}));
|
|
1661
1664
|
else if (typeof e.props.onSubmit == "function") {
|
|
1662
|
-
const l = e.props.onSubmit(e.hook.submit.dispatch(
|
|
1665
|
+
const l = e.props.onSubmit(e.hook.submit.dispatch(Re(e.value)), e);
|
|
1663
1666
|
if (l instanceof Promise) {
|
|
1664
1667
|
const s = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
|
|
1665
|
-
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");
|
|
1666
1669
|
}
|
|
1667
1670
|
} else
|
|
1668
1671
|
i.target instanceof HTMLFormElement && i.target.submit();
|
|
1669
1672
|
}
|
|
1670
|
-
function
|
|
1673
|
+
function $l(e) {
|
|
1671
1674
|
e.props.isForm = !0, e.ledger.count("validating", (i) => i.key === "validating"), e.on("created", () => {
|
|
1672
1675
|
var i;
|
|
1673
|
-
!((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);
|
|
1674
1677
|
}), e.on("settled:blocking", () => e.store.remove("incomplete"));
|
|
1675
1678
|
}
|
|
1676
|
-
function
|
|
1679
|
+
function wl(e) {
|
|
1677
1680
|
e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
|
|
1678
1681
|
}
|
|
1679
|
-
function
|
|
1682
|
+
function kl(e) {
|
|
1680
1683
|
e.on("created", () => {
|
|
1681
1684
|
e.context && (e.context.initialValue = e.value || "");
|
|
1682
1685
|
});
|
|
1683
1686
|
}
|
|
1684
|
-
function
|
|
1685
|
-
|
|
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
|
+
});
|
|
1686
1697
|
}
|
|
1687
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) {
|
|
1688
1702
|
var t, n;
|
|
1689
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);
|
|
1690
1704
|
}
|
|
1691
|
-
function
|
|
1705
|
+
function Vl(e) {
|
|
1692
1706
|
e.on("created", () => {
|
|
1693
1707
|
var i, t;
|
|
1694
|
-
Array.isArray(e.props.options) ||
|
|
1708
|
+
Array.isArray(e.props.options) || Ee(350, {
|
|
1695
1709
|
node: e,
|
|
1696
1710
|
inputType: "radio"
|
|
1697
|
-
}), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked =
|
|
1698
|
-
}), 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++}`);
|
|
1699
1720
|
}
|
|
1700
|
-
function
|
|
1721
|
+
function Al(e, i) {
|
|
1701
1722
|
e.context && e.context.value;
|
|
1702
1723
|
const t = "__original" in i ? i.__original : i.value;
|
|
1703
1724
|
function n() {
|
|
@@ -1705,15 +1726,15 @@ function Vl(e, i) {
|
|
|
1705
1726
|
}
|
|
1706
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);
|
|
1707
1728
|
}
|
|
1708
|
-
async function
|
|
1729
|
+
async function Ol(e, i) {
|
|
1709
1730
|
var t;
|
|
1710
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));
|
|
1711
1732
|
}
|
|
1712
|
-
function
|
|
1733
|
+
function xl(e, i) {
|
|
1713
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);
|
|
1714
1735
|
e.input(n);
|
|
1715
1736
|
}
|
|
1716
|
-
function
|
|
1737
|
+
function jt(e, i) {
|
|
1717
1738
|
return e.some((t) => t.attrs && t.attrs["data-is-placeholder"]) ? e : [
|
|
1718
1739
|
{
|
|
1719
1740
|
label: i,
|
|
@@ -1727,24 +1748,24 @@ function Et(e, i) {
|
|
|
1727
1748
|
...e
|
|
1728
1749
|
];
|
|
1729
1750
|
}
|
|
1730
|
-
function
|
|
1751
|
+
function Ml(e) {
|
|
1731
1752
|
e.on("created", () => {
|
|
1732
1753
|
var i, t, n;
|
|
1733
1754
|
const l = Y((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
|
|
1734
|
-
!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, {
|
|
1735
1756
|
value: e._value
|
|
1736
1757
|
}), e.on("input", ({ payload: s }) => {
|
|
1737
1758
|
e.props.attrs = Object.assign({}, e.props.attrs, {
|
|
1738
1759
|
value: s
|
|
1739
1760
|
});
|
|
1740
|
-
})), !((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) => {
|
|
1741
1762
|
if (!Array.isArray(e.props.options))
|
|
1742
1763
|
return !1;
|
|
1743
1764
|
const o = e.props.options.some((u) => {
|
|
1744
1765
|
if (u.attrs && "data-is-placeholder" in u.attrs)
|
|
1745
1766
|
return !1;
|
|
1746
1767
|
const p = "__original" in u ? u.__original : u.value;
|
|
1747
|
-
return
|
|
1768
|
+
return ue(s, p);
|
|
1748
1769
|
});
|
|
1749
1770
|
return r && !o ? !0 : void 0;
|
|
1750
1771
|
});
|
|
@@ -1753,28 +1774,23 @@ function Pl(e) {
|
|
|
1753
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);
|
|
1754
1775
|
});
|
|
1755
1776
|
}
|
|
1756
|
-
function _e(e, i) {
|
|
1757
|
-
return (t) => {
|
|
1758
|
-
t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = i.startsWith("<svg") ? i : `default:${i}`);
|
|
1759
|
-
};
|
|
1760
|
-
}
|
|
1761
1777
|
function pt(e) {
|
|
1762
1778
|
return !!(ve(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
|
|
1763
1779
|
}
|
|
1764
|
-
function
|
|
1765
|
-
return
|
|
1780
|
+
function Rl(e) {
|
|
1781
|
+
return fe(Ie(je("$label"), me(X(), e(), G())), Q("$help"), ae(le("$message.value")));
|
|
1766
1782
|
}
|
|
1767
1783
|
function ie(e, i, t) {
|
|
1768
1784
|
const n = (l) => {
|
|
1769
1785
|
const s = i(l);
|
|
1770
|
-
if (t ||
|
|
1786
|
+
if (t || Ne(s) && "if" in s || pt(s)) {
|
|
1771
1787
|
const r = {
|
|
1772
1788
|
if: e,
|
|
1773
1789
|
then: s
|
|
1774
1790
|
};
|
|
1775
1791
|
return t && (r.else = t(l)), r;
|
|
1776
1792
|
} else
|
|
1777
|
-
pt(s) ? Object.assign(s.else, { if: e }) :
|
|
1793
|
+
pt(s) ? Object.assign(s.else, { if: e }) : Ne(s) && Object.assign(s, { if: e });
|
|
1778
1794
|
return s;
|
|
1779
1795
|
};
|
|
1780
1796
|
return n._s = Ye(), n;
|
|
@@ -1786,7 +1802,7 @@ function ge(e, i) {
|
|
|
1786
1802
|
};
|
|
1787
1803
|
return t._s = e._s, t;
|
|
1788
1804
|
}
|
|
1789
|
-
const
|
|
1805
|
+
const El = [
|
|
1790
1806
|
"classes",
|
|
1791
1807
|
"config",
|
|
1792
1808
|
"delay",
|
|
@@ -1797,6 +1813,7 @@ const Ol = [
|
|
|
1797
1813
|
"modelValue",
|
|
1798
1814
|
"onUpdate:modelValue",
|
|
1799
1815
|
"name",
|
|
1816
|
+
"number",
|
|
1800
1817
|
"parent",
|
|
1801
1818
|
"plugins",
|
|
1802
1819
|
"sectionsSchema",
|
|
@@ -1814,70 +1831,71 @@ const Ol = [
|
|
|
1814
1831
|
"onSubmitInvalid",
|
|
1815
1832
|
"onSubmitRaw"
|
|
1816
1833
|
];
|
|
1817
|
-
|
|
1818
|
-
|
|
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(
|
|
1819
1836
|
ie(
|
|
1820
1837
|
"$options == undefined",
|
|
1821
1838
|
/**
|
|
1822
1839
|
* Single checkbox structure.
|
|
1823
1840
|
*/
|
|
1824
|
-
qe(
|
|
1841
|
+
qe(xt(X(), We(), Ze(z("decorator")), G()), ge(He("$label"), {
|
|
1825
1842
|
if: "$label"
|
|
1826
1843
|
})),
|
|
1827
1844
|
/**
|
|
1828
1845
|
* Multi checkbox structure.
|
|
1829
1846
|
*/
|
|
1830
|
-
|
|
1847
|
+
fn(cn("$label"), Q("$help"), un(on(qe(xt(X(), ge(We(), {
|
|
1831
1848
|
bind: "$option.attrs",
|
|
1832
1849
|
attrs: {
|
|
1833
1850
|
id: "$option.attrs.id",
|
|
1834
1851
|
value: "$option.value",
|
|
1835
1852
|
checked: "$fns.isChecked($option.value)"
|
|
1836
1853
|
}
|
|
1837
|
-
}),
|
|
1854
|
+
}), Ze(z("decorator")), G()), ge(He("$option.label"), {
|
|
1838
1855
|
if: "$option.label"
|
|
1839
|
-
})),
|
|
1856
|
+
})), rn("$option.help"))))
|
|
1840
1857
|
),
|
|
1841
1858
|
// Help text only goes under the input when it is a single.
|
|
1842
|
-
ie("$options == undefined && $help",
|
|
1843
|
-
ae(
|
|
1859
|
+
ie("$options == undefined && $help", Q("$help")),
|
|
1860
|
+
ae(le("$message.value"))
|
|
1844
1861
|
), _e("decorator", "checkboxDecorator");
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
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(
|
|
1851
1869
|
ie(
|
|
1852
1870
|
"$options == undefined",
|
|
1853
1871
|
/**
|
|
1854
1872
|
* Single radio structure.
|
|
1855
1873
|
*/
|
|
1856
|
-
qe(
|
|
1874
|
+
qe(me(X(), We(), Ze(z("decorator")), G()), ge(He("$label"), {
|
|
1857
1875
|
if: "$label"
|
|
1858
1876
|
})),
|
|
1859
1877
|
/**
|
|
1860
1878
|
* Multi radio structure.
|
|
1861
1879
|
*/
|
|
1862
|
-
|
|
1880
|
+
fn(cn("$label"), Q("$help"), un(on(qe(me(X(), ge(We(), {
|
|
1863
1881
|
bind: "$option.attrs",
|
|
1864
1882
|
attrs: {
|
|
1865
1883
|
id: "$option.attrs.id",
|
|
1866
1884
|
value: "$option.value",
|
|
1867
1885
|
checked: "$fns.isChecked($option.value)"
|
|
1868
1886
|
}
|
|
1869
|
-
}),
|
|
1887
|
+
}), Ze(z("decorator")), G()), ge(He("$option.label"), {
|
|
1870
1888
|
if: "$option.label"
|
|
1871
|
-
})),
|
|
1889
|
+
})), rn("$option.help"))))
|
|
1872
1890
|
),
|
|
1873
1891
|
// Help text only goes under the input when it is a single.
|
|
1874
|
-
ie("$options == undefined && $help",
|
|
1875
|
-
ae(
|
|
1892
|
+
ie("$options == undefined && $help", Q("$help")),
|
|
1893
|
+
ae(le("$message.value"))
|
|
1876
1894
|
), _e("decorator", "radioDecorator");
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
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({
|
|
1881
1899
|
type: "state",
|
|
1882
1900
|
blocking: !0,
|
|
1883
1901
|
visible: !1,
|
|
@@ -1885,7 +1903,7 @@ ue({
|
|
|
1885
1903
|
key: "validating"
|
|
1886
1904
|
});
|
|
1887
1905
|
let Ue;
|
|
1888
|
-
const
|
|
1906
|
+
const jl = new Promise((e) => {
|
|
1889
1907
|
}), Ge = typeof window < "u" && typeof fetch < "u";
|
|
1890
1908
|
Ue = Ge ? getComputedStyle(document.documentElement) : void 0;
|
|
1891
1909
|
const Oe = {}, nt = {};
|
|
@@ -1902,19 +1920,19 @@ function it(e, i) {
|
|
|
1902
1920
|
if (l)
|
|
1903
1921
|
return Oe[t];
|
|
1904
1922
|
if (!nt[t]) {
|
|
1905
|
-
if (s =
|
|
1906
|
-
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));
|
|
1907
1925
|
else if (typeof s == "string")
|
|
1908
1926
|
return Oe[n ? `default:${t}` : t] = s, s;
|
|
1909
1927
|
}
|
|
1910
1928
|
return nt[t];
|
|
1911
1929
|
};
|
|
1912
1930
|
}
|
|
1913
|
-
function
|
|
1931
|
+
function Fl(e) {
|
|
1914
1932
|
if (Ge)
|
|
1915
|
-
return
|
|
1933
|
+
return jl.then(() => Dl(e));
|
|
1916
1934
|
}
|
|
1917
|
-
function
|
|
1935
|
+
function Dl(e) {
|
|
1918
1936
|
const i = Ue == null ? void 0 : Ue.getPropertyValue(`--fk-icon-${e}`);
|
|
1919
1937
|
if (i) {
|
|
1920
1938
|
const t = atob(i);
|
|
@@ -1922,8 +1940,8 @@ function El(e) {
|
|
|
1922
1940
|
return Oe[e] = t, t;
|
|
1923
1941
|
}
|
|
1924
1942
|
}
|
|
1925
|
-
function
|
|
1926
|
-
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`;
|
|
1927
1945
|
if (Ge)
|
|
1928
1946
|
return fetch(`${n}`).then(async (l) => {
|
|
1929
1947
|
const s = await l.text();
|
|
@@ -1933,8 +1951,8 @@ function Rl(e, i) {
|
|
|
1933
1951
|
console.error(l);
|
|
1934
1952
|
});
|
|
1935
1953
|
}
|
|
1936
|
-
let
|
|
1937
|
-
const
|
|
1954
|
+
let kt = !1;
|
|
1955
|
+
const Ft = {
|
|
1938
1956
|
/**
|
|
1939
1957
|
* FormKit errors:
|
|
1940
1958
|
*/
|
|
@@ -1956,7 +1974,7 @@ const Rt = {
|
|
|
1956
1974
|
*/
|
|
1957
1975
|
600: ({ data: e }) => `Unknown input type${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} ("${e.name}")`,
|
|
1958
1976
|
601: ({ data: e }) => `Input definition${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} is missing a schema or component property (${e.name}).`
|
|
1959
|
-
},
|
|
1977
|
+
}, Dt = {
|
|
1960
1978
|
/**
|
|
1961
1979
|
* Core warnings:
|
|
1962
1980
|
*/
|
|
@@ -1977,46 +1995,46 @@ const Rt = {
|
|
|
1977
1995
|
* Deprecation warnings:
|
|
1978
1996
|
*/
|
|
1979
1997
|
800: ({ data: e }) => `${e} is deprecated.`
|
|
1980
|
-
},
|
|
1981
|
-
if (e.code in
|
|
1982
|
-
const t =
|
|
1998
|
+
}, Bl = (e, i) => {
|
|
1999
|
+
if (e.code in Ft) {
|
|
2000
|
+
const t = Ft[e.code];
|
|
1983
2001
|
e.message = typeof t == "function" ? t(e) : t;
|
|
1984
2002
|
}
|
|
1985
2003
|
return i(e);
|
|
1986
2004
|
};
|
|
1987
|
-
|
|
1988
|
-
const
|
|
1989
|
-
if (e.code in
|
|
1990
|
-
const t =
|
|
2005
|
+
kt || bt(Bl);
|
|
2006
|
+
const zl = (e, i) => {
|
|
2007
|
+
if (e.code in Dt) {
|
|
2008
|
+
const t = Dt[e.code];
|
|
1991
2009
|
e.message = typeof t == "function" ? t(e) : t;
|
|
1992
2010
|
}
|
|
1993
2011
|
return i(e);
|
|
1994
2012
|
};
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
const
|
|
1998
|
-
function
|
|
2013
|
+
kt || yt(zl);
|
|
2014
|
+
kt = !0;
|
|
2015
|
+
const Ul = typeof window > "u", lt = /* @__PURE__ */ new Map();
|
|
2016
|
+
function Kl(e, i) {
|
|
1999
2017
|
var t;
|
|
2000
|
-
!
|
|
2018
|
+
!Ul || !e || (lt.has(e) || lt.set(e, /* @__PURE__ */ new Set()), (t = lt.get(e)) === null || t === void 0 || t.add(i));
|
|
2001
2019
|
}
|
|
2002
|
-
const
|
|
2020
|
+
const yn = typeof window > "u", Me = {}, $e = {};
|
|
2003
2021
|
let K;
|
|
2004
|
-
const te = /* @__PURE__ */ new WeakMap(),
|
|
2005
|
-
function
|
|
2022
|
+
const te = /* @__PURE__ */ new WeakMap(), Nl = "__raw__", Wl = /[a-zA-Z0-9\-][cC]lass$/;
|
|
2023
|
+
function Hl(e, i) {
|
|
2006
2024
|
const t = ne(null);
|
|
2007
2025
|
if (e === "get") {
|
|
2008
2026
|
const l = {};
|
|
2009
|
-
return t.value =
|
|
2027
|
+
return t.value = ql.bind(null, l), t;
|
|
2010
2028
|
}
|
|
2011
2029
|
const n = e.split(".");
|
|
2012
2030
|
return ee(() => {
|
|
2013
|
-
t.value =
|
|
2031
|
+
t.value = Ct(In(i) ? i.value : i, n);
|
|
2014
2032
|
}), t;
|
|
2015
2033
|
}
|
|
2016
|
-
function
|
|
2034
|
+
function Ct(e, i) {
|
|
2017
2035
|
if (Array.isArray(e)) {
|
|
2018
2036
|
for (const l of e) {
|
|
2019
|
-
const s = l !== !1 &&
|
|
2037
|
+
const s = l !== !1 && Ct(l, i);
|
|
2020
2038
|
if (s !== void 0)
|
|
2021
2039
|
return s;
|
|
2022
2040
|
}
|
|
@@ -2038,19 +2056,19 @@ function kt(e, i) {
|
|
|
2038
2056
|
}
|
|
2039
2057
|
return t;
|
|
2040
2058
|
}
|
|
2041
|
-
function
|
|
2059
|
+
function ql(e, i) {
|
|
2042
2060
|
if (typeof i != "string")
|
|
2043
|
-
return
|
|
2061
|
+
return Ee(650);
|
|
2044
2062
|
if (i in e || (e[i] = ne(void 0)), e[i].value === void 0) {
|
|
2045
2063
|
e[i].value = null;
|
|
2046
|
-
const t =
|
|
2047
|
-
t && (e[i].value = t.context),
|
|
2064
|
+
const t = Qt(i);
|
|
2065
|
+
t && (e[i].value = t.context), ai(i, ({ payload: n }) => {
|
|
2048
2066
|
e[i].value = Xe(n) ? n.context : n;
|
|
2049
2067
|
});
|
|
2050
2068
|
}
|
|
2051
2069
|
return e[i].value;
|
|
2052
2070
|
}
|
|
2053
|
-
function
|
|
2071
|
+
function Tt(e, i, t) {
|
|
2054
2072
|
function n($, h) {
|
|
2055
2073
|
const c = A(J(h.if), { if: !0 }), d = p($, h.then), m = h.else ? p($, h.else) : null;
|
|
2056
2074
|
return [c, d, m];
|
|
@@ -2059,7 +2077,7 @@ function Ft(e, i, t) {
|
|
|
2059
2077
|
var c, d;
|
|
2060
2078
|
const m = A(J($.if));
|
|
2061
2079
|
let y = () => h, g = () => h;
|
|
2062
|
-
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();
|
|
2063
2081
|
}
|
|
2064
2082
|
function s($, h, c = {}) {
|
|
2065
2083
|
const d = new Set(Object.keys($ || {})), m = h ? A(J(h)) : () => ({}), y = [
|
|
@@ -2076,7 +2094,7 @@ function Ft(e, i, t) {
|
|
|
2076
2094
|
const v = $[g];
|
|
2077
2095
|
let w;
|
|
2078
2096
|
const f = typeof v == "string";
|
|
2079
|
-
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) => {
|
|
2080
2098
|
b[g] = w();
|
|
2081
2099
|
});
|
|
2082
2100
|
}
|
|
@@ -2088,8 +2106,8 @@ function Ft(e, i, t) {
|
|
|
2088
2106
|
}
|
|
2089
2107
|
function r($, h) {
|
|
2090
2108
|
let c = null, d = () => null, m = !1, y = null, g = null, v = null, w = !1;
|
|
2091
|
-
const f =
|
|
2092
|
-
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)
|
|
2093
2111
|
if (typeof f.children == "string")
|
|
2094
2112
|
if (f.children.startsWith("$slots."))
|
|
2095
2113
|
c = c === "text" ? "slot" : c, y = A(J(f.children));
|
|
@@ -2109,11 +2127,11 @@ function Ft(e, i, t) {
|
|
|
2109
2127
|
const b = y;
|
|
2110
2128
|
y = (k) => ({
|
|
2111
2129
|
default(I, B) {
|
|
2112
|
-
var
|
|
2130
|
+
var S, R, O, N;
|
|
2113
2131
|
const q = K;
|
|
2114
|
-
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));
|
|
2115
2133
|
const x = b(k);
|
|
2116
|
-
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;
|
|
2117
2135
|
}
|
|
2118
2136
|
}), y.slot = !0;
|
|
2119
2137
|
} else
|
|
@@ -2142,10 +2160,10 @@ function Ft(e, i, t) {
|
|
|
2142
2160
|
return c() ? y(b) : g && g(b);
|
|
2143
2161
|
if (d && (!c || c())) {
|
|
2144
2162
|
if (d === "text" && y)
|
|
2145
|
-
return
|
|
2163
|
+
return Ln(String(y()));
|
|
2146
2164
|
if (d === "slot" && y)
|
|
2147
2165
|
return y(b);
|
|
2148
|
-
const k = w ?
|
|
2166
|
+
const k = w ? j(d) : d, I = y != null && y.slot ? o(y, b) : null;
|
|
2149
2167
|
return we(k, m(), I || (y ? y(b) : []));
|
|
2150
2168
|
}
|
|
2151
2169
|
return typeof g == "function" ? g(b) : g;
|
|
@@ -2153,19 +2171,19 @@ function Ft(e, i, t) {
|
|
|
2153
2171
|
if (v) {
|
|
2154
2172
|
const b = f, [k, I, B] = v;
|
|
2155
2173
|
f = () => {
|
|
2156
|
-
const
|
|
2157
|
-
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")
|
|
2158
2176
|
return null;
|
|
2159
|
-
const
|
|
2160
|
-
for (const x in
|
|
2177
|
+
const N = te.get(K) || [], q = Array.isArray(R);
|
|
2178
|
+
for (const x in R) {
|
|
2161
2179
|
if (q && x in Array.prototype)
|
|
2162
2180
|
continue;
|
|
2163
|
-
const
|
|
2164
|
-
...
|
|
2165
|
-
[I]:
|
|
2181
|
+
const W = Object.defineProperty({
|
|
2182
|
+
...N.reduce((Le, se) => Le.__idata ? { ...Le, ...se } : se, {}),
|
|
2183
|
+
[I]: R[x],
|
|
2166
2184
|
...B !== null ? { [B]: q ? Number(x) : x } : {}
|
|
2167
2185
|
}, "__idata", { enumerable: !1, value: !0 });
|
|
2168
|
-
|
|
2186
|
+
N.unshift(W), O.push(b.bind(null, W)()), N.shift();
|
|
2169
2187
|
}
|
|
2170
2188
|
return O;
|
|
2171
2189
|
};
|
|
@@ -2190,49 +2208,49 @@ function Ft(e, i, t) {
|
|
|
2190
2208
|
function Z($, h) {
|
|
2191
2209
|
var c;
|
|
2192
2210
|
t ?? (t = JSON.stringify(i));
|
|
2193
|
-
const [d, m] =
|
|
2194
|
-
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) => {
|
|
2195
2213
|
y($, h);
|
|
2196
2214
|
}), () => (K = h, d());
|
|
2197
2215
|
}
|
|
2198
2216
|
return Z;
|
|
2199
2217
|
}
|
|
2200
|
-
function
|
|
2218
|
+
function vn(e, i) {
|
|
2201
2219
|
const t = te.get(K) || [];
|
|
2202
2220
|
let n;
|
|
2203
|
-
return t.length && (n =
|
|
2221
|
+
return t.length && (n = Ct(t, e.split("."))), n === void 0 ? i : n;
|
|
2204
2222
|
}
|
|
2205
|
-
function
|
|
2223
|
+
function Zl(e, i) {
|
|
2206
2224
|
return new Proxy(e, {
|
|
2207
2225
|
get(...t) {
|
|
2208
2226
|
let n;
|
|
2209
2227
|
const l = t[1];
|
|
2210
2228
|
if (typeof l == "string") {
|
|
2211
2229
|
const s = K;
|
|
2212
|
-
K = i, n =
|
|
2230
|
+
K = i, n = vn(l, void 0), K = s;
|
|
2213
2231
|
}
|
|
2214
2232
|
return n !== void 0 ? n : Reflect.get(...t);
|
|
2215
2233
|
}
|
|
2216
2234
|
});
|
|
2217
2235
|
}
|
|
2218
|
-
function
|
|
2236
|
+
function Bt(e, i, t) {
|
|
2219
2237
|
return e((n, l = {}) => n.reduce((s, r) => {
|
|
2220
2238
|
if (r.startsWith("slots.")) {
|
|
2221
|
-
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";
|
|
2222
2240
|
if (l.if)
|
|
2223
2241
|
s[r] = u;
|
|
2224
2242
|
else if (i.slots) {
|
|
2225
|
-
const p =
|
|
2243
|
+
const p = Zl(i, t);
|
|
2226
2244
|
s[r] = () => u() ? i.slots[o](p) : null;
|
|
2227
2245
|
}
|
|
2228
2246
|
} else {
|
|
2229
|
-
const o =
|
|
2230
|
-
s[r] = () =>
|
|
2247
|
+
const o = Hl(r, i);
|
|
2248
|
+
s[r] = () => vn(r, o.value);
|
|
2231
2249
|
}
|
|
2232
2250
|
return s;
|
|
2233
2251
|
}, {}), t);
|
|
2234
2252
|
}
|
|
2235
|
-
function
|
|
2253
|
+
function zt(e, i, t) {
|
|
2236
2254
|
if (i ?? (i = JSON.stringify(e)), $e[i]--, $e[i] === 0) {
|
|
2237
2255
|
delete $e[i];
|
|
2238
2256
|
const [, n] = Me[i];
|
|
@@ -2240,7 +2258,7 @@ function Tt(e, i, t) {
|
|
|
2240
2258
|
}
|
|
2241
2259
|
te.delete(t);
|
|
2242
2260
|
}
|
|
2243
|
-
const
|
|
2261
|
+
const hn = M({
|
|
2244
2262
|
name: "FormKitSchema",
|
|
2245
2263
|
props: {
|
|
2246
2264
|
schema: {
|
|
@@ -2265,25 +2283,25 @@ const yn = M({
|
|
|
2265
2283
|
const n = st();
|
|
2266
2284
|
let l = {};
|
|
2267
2285
|
te.set(l, []);
|
|
2268
|
-
let s =
|
|
2269
|
-
|
|
2286
|
+
let s = Tt(e.library, e.schema, e.memoKey), r, o;
|
|
2287
|
+
yn || ce(() => e.schema, (p, _) => {
|
|
2270
2288
|
var A;
|
|
2271
2289
|
const Z = l;
|
|
2272
|
-
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);
|
|
2273
2291
|
}, { deep: !0 }), ee(() => {
|
|
2274
2292
|
var p;
|
|
2275
|
-
o = Object.assign(
|
|
2293
|
+
o = Object.assign($n((p = e.data) !== null && p !== void 0 ? p : {}), {
|
|
2276
2294
|
slots: i.slots
|
|
2277
|
-
}), i.slots, r =
|
|
2295
|
+
}), i.slots, r = Bt(s, o, l);
|
|
2278
2296
|
});
|
|
2279
2297
|
function u() {
|
|
2280
|
-
|
|
2298
|
+
zt(e.schema, e.memoKey, l), o.node && o.node.destroy(), o.slots = null, o = null, r = null;
|
|
2281
2299
|
}
|
|
2282
|
-
return
|
|
2300
|
+
return wn(u), Kl((t = st()) === null || t === void 0 ? void 0 : t.appContext.app, u), () => r ? r() : null;
|
|
2283
2301
|
}
|
|
2284
|
-
}),
|
|
2285
|
-
function
|
|
2286
|
-
const t =
|
|
2302
|
+
}), Jl = typeof window > "u", Je = Symbol("FormKitParent");
|
|
2303
|
+
function Yl(e, i) {
|
|
2304
|
+
const t = Gl(e, i);
|
|
2287
2305
|
if (t.props.definition || H(600, t), t.props.definition.component)
|
|
2288
2306
|
return () => {
|
|
2289
2307
|
var o;
|
|
@@ -2298,19 +2316,19 @@ function Hl(e, i) {
|
|
|
2298
2316
|
const p = (u = (o = t.props) === null || o === void 0 ? void 0 : o.definition) === null || u === void 0 ? void 0 : u.schema;
|
|
2299
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;
|
|
2300
2318
|
};
|
|
2301
|
-
s(),
|
|
2319
|
+
s(), Jl || t.on("schema", () => {
|
|
2302
2320
|
l += "♻️", s();
|
|
2303
2321
|
}), i.emit("node", t);
|
|
2304
2322
|
const r = t.props.definition.library;
|
|
2305
|
-
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 });
|
|
2306
2324
|
}
|
|
2307
|
-
M(
|
|
2308
|
-
props:
|
|
2325
|
+
M(Yl, {
|
|
2326
|
+
props: El,
|
|
2309
2327
|
inheritAttrs: !1
|
|
2310
2328
|
});
|
|
2311
|
-
const
|
|
2329
|
+
const _n = Symbol();
|
|
2312
2330
|
M((e, i) => {
|
|
2313
|
-
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) => {
|
|
2314
2332
|
let u = o, p = null;
|
|
2315
2333
|
for (; u = u == null ? void 0 : u.parentNode; )
|
|
2316
2334
|
if (p = u, p instanceof ShadowRoot || p instanceof Document) {
|
|
@@ -2319,13 +2337,13 @@ M((e, i) => {
|
|
|
2319
2337
|
}
|
|
2320
2338
|
s(), n.value = !0;
|
|
2321
2339
|
});
|
|
2322
|
-
|
|
2340
|
+
Kt(_n, l);
|
|
2323
2341
|
function r(o) {
|
|
2324
2342
|
l.value = o;
|
|
2325
2343
|
}
|
|
2326
2344
|
return () => n.value && i.slots.default ? i.slots.default() : we("template", { ref: t });
|
|
2327
2345
|
});
|
|
2328
|
-
const
|
|
2346
|
+
const gn = Symbol.for("FormKitOptions"), Ql = typeof window < "u", at = [
|
|
2329
2347
|
"help",
|
|
2330
2348
|
"label",
|
|
2331
2349
|
"ignore",
|
|
@@ -2338,28 +2356,28 @@ const hn = Symbol.for("FormKitOptions"), ql = typeof window < "u", at = [
|
|
|
2338
2356
|
"suffixIcon",
|
|
2339
2357
|
/^[a-zA-Z-]+(?:-icon|Icon)$/
|
|
2340
2358
|
];
|
|
2341
|
-
function
|
|
2359
|
+
function Ut(e, i) {
|
|
2342
2360
|
i.classes && Object.keys(i.classes).forEach((t) => {
|
|
2343
2361
|
typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], xe(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
|
|
2344
2362
|
});
|
|
2345
2363
|
}
|
|
2346
|
-
function
|
|
2364
|
+
function Xl(e) {
|
|
2347
2365
|
return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, n) => {
|
|
2348
2366
|
const l = `on${n}`;
|
|
2349
2367
|
return l in e && typeof e[l] == "function" && (t[l] = e[l]), t;
|
|
2350
2368
|
}, {}) : {};
|
|
2351
2369
|
}
|
|
2352
|
-
function
|
|
2370
|
+
function Gl(e, i, t = {}) {
|
|
2353
2371
|
var n;
|
|
2354
|
-
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) => {
|
|
2355
2373
|
var b;
|
|
2356
2374
|
return f in ((b = r == null ? void 0 : r.vnode.props) !== null && b !== void 0 ? b : {});
|
|
2357
2375
|
});
|
|
2358
2376
|
let p = !1;
|
|
2359
|
-
|
|
2377
|
+
kn(() => {
|
|
2360
2378
|
p = !0;
|
|
2361
2379
|
});
|
|
2362
|
-
const _ = e.modelValue !== void 0 ? e.modelValue :
|
|
2380
|
+
const _ = e.modelValue !== void 0 ? e.modelValue : de(i.attrs.value);
|
|
2363
2381
|
function A() {
|
|
2364
2382
|
var f;
|
|
2365
2383
|
const b = {
|
|
@@ -2368,15 +2386,15 @@ function Jl(e, i, t = {}) {
|
|
|
2368
2386
|
type: (f = e.type) !== null && f !== void 0 ? f : "text",
|
|
2369
2387
|
__root: s.value,
|
|
2370
2388
|
__slots: i.slots
|
|
2371
|
-
}, k =
|
|
2389
|
+
}, k = St(ye(i.attrs), at);
|
|
2372
2390
|
k.key || (k.key = Ye()), b.attrs = k;
|
|
2373
|
-
const I =
|
|
2374
|
-
for (const
|
|
2375
|
-
b[De(
|
|
2391
|
+
const I = Vt(ye(i.attrs), at);
|
|
2392
|
+
for (const S in I)
|
|
2393
|
+
b[De(S)] = I[S];
|
|
2376
2394
|
const B = { props: {} };
|
|
2377
|
-
return
|
|
2395
|
+
return Ut(B, e), Object.assign(b, B.props), typeof b.type != "string" && (b.definition = b.type, delete b.type), b;
|
|
2378
2396
|
}
|
|
2379
|
-
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 || {}, {
|
|
2380
2398
|
name: e.name || void 0,
|
|
2381
2399
|
value: _,
|
|
2382
2400
|
parent: $,
|
|
@@ -2391,11 +2409,11 @@ function Jl(e, i, t = {}) {
|
|
|
2391
2409
|
h.on("added-props", ({ payload: f }) => {
|
|
2392
2410
|
Array.isArray(f) && f.forEach((b) => c.value.add(b));
|
|
2393
2411
|
});
|
|
2394
|
-
const d =
|
|
2395
|
-
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));
|
|
2396
2414
|
const m = ye(e);
|
|
2397
2415
|
for (const f in m)
|
|
2398
|
-
|
|
2416
|
+
ce(() => e[f], () => {
|
|
2399
2417
|
e[f] !== void 0 && (h.props[f] = e[f]);
|
|
2400
2418
|
});
|
|
2401
2419
|
ee(() => {
|
|
@@ -2403,7 +2421,7 @@ function Jl(e, i, t = {}) {
|
|
|
2403
2421
|
});
|
|
2404
2422
|
const y = /* @__PURE__ */ new Set(), g = ye(i.attrs);
|
|
2405
2423
|
ee(() => {
|
|
2406
|
-
v(
|
|
2424
|
+
v(Vt(g, d.value));
|
|
2407
2425
|
});
|
|
2408
2426
|
function v(f) {
|
|
2409
2427
|
y.forEach((b) => {
|
|
@@ -2411,17 +2429,17 @@ function Jl(e, i, t = {}) {
|
|
|
2411
2429
|
});
|
|
2412
2430
|
for (const b in f) {
|
|
2413
2431
|
const k = De(b);
|
|
2414
|
-
y.add(
|
|
2432
|
+
y.add(ce(() => i.attrs[b], () => {
|
|
2415
2433
|
h.props[k] = i.attrs[b];
|
|
2416
2434
|
}));
|
|
2417
2435
|
}
|
|
2418
2436
|
}
|
|
2419
2437
|
if (ee(() => {
|
|
2420
|
-
const f =
|
|
2421
|
-
"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);
|
|
2422
2440
|
}), ee(() => {
|
|
2423
2441
|
var f;
|
|
2424
|
-
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({
|
|
2425
2443
|
key: dt(k),
|
|
2426
2444
|
type: "error",
|
|
2427
2445
|
value: k,
|
|
@@ -2434,29 +2452,29 @@ function Jl(e, i, t = {}) {
|
|
|
2434
2452
|
var b;
|
|
2435
2453
|
const k = (b = e.inputErrors) !== null && b !== void 0 ? b : {}, I = Object.keys(k);
|
|
2436
2454
|
I.length || h.clearErrors(!0, f);
|
|
2437
|
-
const B = I.reduce((
|
|
2438
|
-
let O = k[
|
|
2439
|
-
return typeof O == "string" && (O = [O]), Array.isArray(O) && (
|
|
2440
|
-
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,
|
|
2441
2459
|
type: "error",
|
|
2442
|
-
value:
|
|
2460
|
+
value: N,
|
|
2443
2461
|
meta: { source: f }
|
|
2444
|
-
}))),
|
|
2462
|
+
}))), S;
|
|
2445
2463
|
}, {});
|
|
2446
|
-
h.store.apply(B, (
|
|
2464
|
+
h.store.apply(B, (S) => S.type === "error" && S.meta.source === f);
|
|
2447
2465
|
});
|
|
2448
2466
|
}
|
|
2449
|
-
ee(() => Object.assign(h.config, e.config)), h.type !== "input" &&
|
|
2467
|
+
ee(() => Object.assign(h.config, e.config)), h.type !== "input" && Kt(Je, h);
|
|
2450
2468
|
let w;
|
|
2451
2469
|
return h.on("modelUpdated", () => {
|
|
2452
2470
|
var f, b;
|
|
2453
|
-
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 =
|
|
2454
|
-
}), u && (
|
|
2455
|
-
|
|
2456
|
-
}, { 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;
|
|
2457
2475
|
}
|
|
2458
|
-
let
|
|
2459
|
-
function
|
|
2476
|
+
let ea = 1;
|
|
2477
|
+
function ta(e) {
|
|
2460
2478
|
return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
|
|
2461
2479
|
}
|
|
2462
2480
|
function T(e, i = {}) {
|
|
@@ -2465,22 +2483,22 @@ function T(e, i = {}) {
|
|
|
2465
2483
|
...i
|
|
2466
2484
|
};
|
|
2467
2485
|
let n;
|
|
2468
|
-
if (
|
|
2469
|
-
const l = `SchemaComponent${
|
|
2470
|
-
n =
|
|
2486
|
+
if (ta(e)) {
|
|
2487
|
+
const l = `SchemaComponent${ea++}`;
|
|
2488
|
+
n = C("input", () => ({
|
|
2471
2489
|
$cmp: l,
|
|
2472
2490
|
props: {
|
|
2473
2491
|
context: "$node.context"
|
|
2474
2492
|
}
|
|
2475
|
-
})), t.library = { [l]:
|
|
2493
|
+
})), t.library = { [l]: Vn(e) };
|
|
2476
2494
|
} else
|
|
2477
|
-
typeof e == "function" ? n = e : n =
|
|
2478
|
-
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;
|
|
2479
2497
|
}
|
|
2480
|
-
const
|
|
2498
|
+
const na = C("messages", () => ({
|
|
2481
2499
|
$el: "ul",
|
|
2482
2500
|
if: "$fns.length($messages)"
|
|
2483
|
-
})),
|
|
2501
|
+
})), ia = C("message", () => ({
|
|
2484
2502
|
$el: "li",
|
|
2485
2503
|
for: ["message", "$messages"],
|
|
2486
2504
|
attrs: {
|
|
@@ -2488,7 +2506,7 @@ const Xl = S("messages", () => ({
|
|
|
2488
2506
|
id: "$id + '-' + $message.key",
|
|
2489
2507
|
"data-message-type": "$message.type"
|
|
2490
2508
|
}
|
|
2491
|
-
})),
|
|
2509
|
+
})), la = na(ia("$message.value"));
|
|
2492
2510
|
M({
|
|
2493
2511
|
props: {
|
|
2494
2512
|
node: {
|
|
@@ -2505,12 +2523,12 @@ M({
|
|
|
2505
2523
|
}
|
|
2506
2524
|
},
|
|
2507
2525
|
setup(e, i) {
|
|
2508
|
-
const t =
|
|
2509
|
-
|
|
2526
|
+
const t = E(() => e.node || he(Je, void 0));
|
|
2527
|
+
ce(t, () => {
|
|
2510
2528
|
var s;
|
|
2511
2529
|
!((s = t.value) === null || s === void 0) && s.context && !Y(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
|
|
2512
2530
|
}, { immediate: !0 });
|
|
2513
|
-
const n =
|
|
2531
|
+
const n = la(e.sectionsSchema || {}), l = E(() => {
|
|
2514
2532
|
var s, r, o, u, p, _;
|
|
2515
2533
|
return {
|
|
2516
2534
|
messages: ((r = (s = t.value) === null || s === void 0 ? void 0 : s.context) === null || r === void 0 ? void 0 : r.messages) || {},
|
|
@@ -2520,7 +2538,7 @@ M({
|
|
|
2520
2538
|
});
|
|
2521
2539
|
return () => {
|
|
2522
2540
|
var s;
|
|
2523
|
-
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;
|
|
2524
2542
|
};
|
|
2525
2543
|
}
|
|
2526
2544
|
});
|
|
@@ -2542,7 +2560,7 @@ M({
|
|
|
2542
2560
|
},
|
|
2543
2561
|
setup(e) {
|
|
2544
2562
|
var i, t;
|
|
2545
|
-
const n = ne(void 0), l = he(
|
|
2563
|
+
const n = ne(void 0), l = he(gn, {}), s = he(Je, null);
|
|
2546
2564
|
let r;
|
|
2547
2565
|
function o() {
|
|
2548
2566
|
if (!r || typeof r != "function")
|
|
@@ -2562,7 +2580,7 @@ M({
|
|
|
2562
2580
|
const u = (t = l == null ? void 0 : l.plugins) === null || t === void 0 ? void 0 : t.find((p) => typeof p.iconHandler == "function");
|
|
2563
2581
|
u && (r = u.iconHandler);
|
|
2564
2582
|
}
|
|
2565
|
-
return
|
|
2583
|
+
return ce(() => e.icon, () => {
|
|
2566
2584
|
o();
|
|
2567
2585
|
}, { immediate: !0 }), () => e.icon && n.value ? we("span", {
|
|
2568
2586
|
class: "formkit-icon",
|
|
@@ -2570,7 +2588,7 @@ M({
|
|
|
2570
2588
|
}) : null;
|
|
2571
2589
|
}
|
|
2572
2590
|
});
|
|
2573
|
-
const
|
|
2591
|
+
const aa = /* @__PURE__ */ M({
|
|
2574
2592
|
__name: "PrimeCalendar",
|
|
2575
2593
|
props: {
|
|
2576
2594
|
context: Object
|
|
@@ -2583,9 +2601,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2583
2601
|
function s(o) {
|
|
2584
2602
|
t == null || t.node.input(o);
|
|
2585
2603
|
}
|
|
2586
|
-
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);
|
|
2587
2605
|
return (o, u) => {
|
|
2588
|
-
const p =
|
|
2606
|
+
const p = j("Calendar");
|
|
2589
2607
|
return L(), P("div", null, [
|
|
2590
2608
|
D(p, {
|
|
2591
2609
|
modelValue: a(t)._value,
|
|
@@ -2645,13 +2663,13 @@ const ta = /* @__PURE__ */ M({
|
|
|
2645
2663
|
]);
|
|
2646
2664
|
};
|
|
2647
2665
|
}
|
|
2648
|
-
}),
|
|
2666
|
+
}), sa = {
|
|
2649
2667
|
key: 0,
|
|
2650
2668
|
class: "formkit-prime-left"
|
|
2651
|
-
},
|
|
2669
|
+
}, ra = {
|
|
2652
2670
|
key: 1,
|
|
2653
2671
|
class: "formkit-prime-right"
|
|
2654
|
-
},
|
|
2672
|
+
}, oa = /* @__PURE__ */ M({
|
|
2655
2673
|
__name: "PrimeCheckbox",
|
|
2656
2674
|
props: {
|
|
2657
2675
|
context: Object
|
|
@@ -2662,11 +2680,11 @@ const ta = /* @__PURE__ */ M({
|
|
|
2662
2680
|
var o;
|
|
2663
2681
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
2664
2682
|
}
|
|
2665
|
-
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);
|
|
2666
2684
|
return (r, o) => {
|
|
2667
|
-
const u =
|
|
2685
|
+
const u = j("Checkbox");
|
|
2668
2686
|
return L(), P("div", null, [
|
|
2669
|
-
a(t).attrs.labelLeft ? (L(), P("span",
|
|
2687
|
+
a(t).attrs.labelLeft ? (L(), P("span", sa, pe(a(t).attrs.labelLeft), 1)) : re("", !0),
|
|
2670
2688
|
D(u, {
|
|
2671
2689
|
modelValue: a(t)._value,
|
|
2672
2690
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -2684,11 +2702,11 @@ const ta = /* @__PURE__ */ M({
|
|
|
2684
2702
|
pt: a(n).pt,
|
|
2685
2703
|
onInput: l
|
|
2686
2704
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value", "pt"]),
|
|
2687
|
-
a(t).attrs.labelRight ? (L(), P("span",
|
|
2705
|
+
a(t).attrs.labelRight ? (L(), P("span", ra, pe(a(t).attrs.labelRight), 1)) : re("", !0)
|
|
2688
2706
|
]);
|
|
2689
2707
|
};
|
|
2690
2708
|
}
|
|
2691
|
-
}),
|
|
2709
|
+
}), ua = /* @__PURE__ */ M({
|
|
2692
2710
|
__name: "PrimeChips",
|
|
2693
2711
|
props: {
|
|
2694
2712
|
context: Object
|
|
@@ -2699,9 +2717,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2699
2717
|
var o;
|
|
2700
2718
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
2701
2719
|
}
|
|
2702
|
-
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);
|
|
2703
2721
|
return (r, o) => {
|
|
2704
|
-
const u =
|
|
2722
|
+
const u = j("Chips");
|
|
2705
2723
|
return L(), P("div", null, [
|
|
2706
2724
|
D(u, {
|
|
2707
2725
|
modelValue: a(t)._value,
|
|
@@ -2726,7 +2744,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2726
2744
|
]);
|
|
2727
2745
|
};
|
|
2728
2746
|
}
|
|
2729
|
-
}),
|
|
2747
|
+
}), fa = /* @__PURE__ */ M({
|
|
2730
2748
|
__name: "PrimeColorPicker",
|
|
2731
2749
|
props: {
|
|
2732
2750
|
context: Object
|
|
@@ -2738,7 +2756,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2738
2756
|
t == null || t.node.input((r = i.context) == null ? void 0 : r._value);
|
|
2739
2757
|
}
|
|
2740
2758
|
return (s, r) => {
|
|
2741
|
-
const o =
|
|
2759
|
+
const o = j("ColorPicker");
|
|
2742
2760
|
return L(), P("div", null, [
|
|
2743
2761
|
D(o, {
|
|
2744
2762
|
modelValue: a(t)._value,
|
|
@@ -2759,7 +2777,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2759
2777
|
]);
|
|
2760
2778
|
};
|
|
2761
2779
|
}
|
|
2762
|
-
}),
|
|
2780
|
+
}), ca = /* @__PURE__ */ M({
|
|
2763
2781
|
__name: "PrimeDropdown",
|
|
2764
2782
|
props: {
|
|
2765
2783
|
context: Object
|
|
@@ -2772,9 +2790,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2772
2790
|
function s(o) {
|
|
2773
2791
|
t == null || t.node.input(o.value);
|
|
2774
2792
|
}
|
|
2775
|
-
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);
|
|
2776
2794
|
return (o, u) => {
|
|
2777
|
-
const p =
|
|
2795
|
+
const p = j("Dropdown");
|
|
2778
2796
|
return L(), P("div", null, [
|
|
2779
2797
|
D(p, {
|
|
2780
2798
|
modelValue: a(t)._value,
|
|
@@ -2800,7 +2818,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2800
2818
|
]);
|
|
2801
2819
|
};
|
|
2802
2820
|
}
|
|
2803
|
-
}),
|
|
2821
|
+
}), pa = /* @__PURE__ */ M({
|
|
2804
2822
|
__name: "PrimeEditor",
|
|
2805
2823
|
props: {
|
|
2806
2824
|
context: Object
|
|
@@ -2813,9 +2831,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2813
2831
|
function s(o) {
|
|
2814
2832
|
o.range === null && (t == null || t.handlers.blur(o.htmlValue));
|
|
2815
2833
|
}
|
|
2816
|
-
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);
|
|
2817
2835
|
return (o, u) => {
|
|
2818
|
-
const p =
|
|
2836
|
+
const p = j("Editor");
|
|
2819
2837
|
return L(), P("div", null, [
|
|
2820
2838
|
D(p, {
|
|
2821
2839
|
id: a(t).id,
|
|
@@ -2838,7 +2856,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2838
2856
|
]);
|
|
2839
2857
|
};
|
|
2840
2858
|
}
|
|
2841
|
-
}),
|
|
2859
|
+
}), da = /* @__PURE__ */ M({
|
|
2842
2860
|
__name: "PrimeInputMask",
|
|
2843
2861
|
props: {
|
|
2844
2862
|
context: Object
|
|
@@ -2849,9 +2867,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2849
2867
|
var o, u;
|
|
2850
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);
|
|
2851
2869
|
}
|
|
2852
|
-
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);
|
|
2853
2871
|
return (r, o) => {
|
|
2854
|
-
const u =
|
|
2872
|
+
const u = j("InputMask");
|
|
2855
2873
|
return L(), P("div", null, [
|
|
2856
2874
|
D(u, {
|
|
2857
2875
|
id: a(t).id,
|
|
@@ -2875,7 +2893,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
2875
2893
|
]);
|
|
2876
2894
|
};
|
|
2877
2895
|
}
|
|
2878
|
-
}),
|
|
2896
|
+
}), ma = /* @__PURE__ */ M({
|
|
2879
2897
|
__name: "PrimeInputNumber",
|
|
2880
2898
|
props: {
|
|
2881
2899
|
context: Object
|
|
@@ -2888,9 +2906,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
2888
2906
|
function s(o) {
|
|
2889
2907
|
t == null || t.node.input(o.value);
|
|
2890
2908
|
}
|
|
2891
|
-
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);
|
|
2892
2910
|
return (o, u) => {
|
|
2893
|
-
const p =
|
|
2911
|
+
const p = j("InputNumber");
|
|
2894
2912
|
return L(), P("div", null, [
|
|
2895
2913
|
D(p, {
|
|
2896
2914
|
modelValue: a(t)._value,
|
|
@@ -2922,13 +2940,13 @@ const ta = /* @__PURE__ */ M({
|
|
|
2922
2940
|
]);
|
|
2923
2941
|
};
|
|
2924
2942
|
}
|
|
2925
|
-
}),
|
|
2943
|
+
}), ba = {
|
|
2926
2944
|
key: 0,
|
|
2927
2945
|
class: "formkit-prime-left"
|
|
2928
|
-
},
|
|
2946
|
+
}, ya = {
|
|
2929
2947
|
key: 1,
|
|
2930
2948
|
class: "formkit-prime-right"
|
|
2931
|
-
},
|
|
2949
|
+
}, va = /* @__PURE__ */ M({
|
|
2932
2950
|
__name: "PrimeInputSwitch",
|
|
2933
2951
|
props: {
|
|
2934
2952
|
context: Object
|
|
@@ -2939,13 +2957,13 @@ const ta = /* @__PURE__ */ M({
|
|
|
2939
2957
|
var o;
|
|
2940
2958
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
2941
2959
|
}
|
|
2942
|
-
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);
|
|
2943
2961
|
return (r, o) => {
|
|
2944
|
-
const u =
|
|
2962
|
+
const u = j("InputSwitch");
|
|
2945
2963
|
return L(), P("div", {
|
|
2946
2964
|
class: U(a(n).option_class)
|
|
2947
2965
|
}, [
|
|
2948
|
-
a(t).attrs.labelLeft ? (L(), P("span",
|
|
2966
|
+
a(t).attrs.labelLeft ? (L(), P("span", ba, pe(a(t).attrs.labelLeft), 1)) : re("", !0),
|
|
2949
2967
|
D(u, {
|
|
2950
2968
|
modelValue: a(t)._value,
|
|
2951
2969
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -2962,11 +2980,11 @@ const ta = /* @__PURE__ */ M({
|
|
|
2962
2980
|
pt: a(n).pt,
|
|
2963
2981
|
onInput: l
|
|
2964
2982
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value", "pt"]),
|
|
2965
|
-
a(t).attrs.labelRight ? (L(), P("span",
|
|
2983
|
+
a(t).attrs.labelRight ? (L(), P("span", ya, pe(a(t).attrs.labelRight), 1)) : re("", !0)
|
|
2966
2984
|
], 2);
|
|
2967
2985
|
};
|
|
2968
2986
|
}
|
|
2969
|
-
}),
|
|
2987
|
+
}), ha = /* @__PURE__ */ M({
|
|
2970
2988
|
__name: "PrimeInputText",
|
|
2971
2989
|
props: {
|
|
2972
2990
|
context: Object
|
|
@@ -2989,17 +3007,17 @@ const ta = /* @__PURE__ */ M({
|
|
|
2989
3007
|
function u(_) {
|
|
2990
3008
|
t == null || t.node.input(_.target.value);
|
|
2991
3009
|
}
|
|
2992
|
-
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);
|
|
2993
3011
|
return (_, A) => {
|
|
2994
|
-
const Z =
|
|
3012
|
+
const Z = j("InputText");
|
|
2995
3013
|
return L(), P("div", null, [
|
|
2996
|
-
|
|
3014
|
+
Nt("span", {
|
|
2997
3015
|
class: U(r())
|
|
2998
3016
|
}, [
|
|
2999
3017
|
l() ? (L(), P("i", {
|
|
3000
3018
|
key: 0,
|
|
3001
3019
|
class: U(a(t).iconLeft)
|
|
3002
|
-
}, null, 2)) :
|
|
3020
|
+
}, null, 2)) : re("", !0),
|
|
3003
3021
|
D(Z, {
|
|
3004
3022
|
id: a(t).id,
|
|
3005
3023
|
modelValue: a(t)._value,
|
|
@@ -3019,12 +3037,12 @@ const ta = /* @__PURE__ */ M({
|
|
|
3019
3037
|
s ? (L(), P("i", {
|
|
3020
3038
|
key: 1,
|
|
3021
3039
|
class: U(a(t).iconRight)
|
|
3022
|
-
}, null, 2)) :
|
|
3040
|
+
}, null, 2)) : re("", !0)
|
|
3023
3041
|
], 2)
|
|
3024
3042
|
]);
|
|
3025
3043
|
};
|
|
3026
3044
|
}
|
|
3027
|
-
}),
|
|
3045
|
+
}), _a = /* @__PURE__ */ M({
|
|
3028
3046
|
__name: "PrimeTextarea",
|
|
3029
3047
|
props: {
|
|
3030
3048
|
context: Object
|
|
@@ -3037,9 +3055,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3037
3055
|
function s(o) {
|
|
3038
3056
|
t == null || t.node.input(o.target.value);
|
|
3039
3057
|
}
|
|
3040
|
-
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);
|
|
3041
3059
|
return (o, u) => {
|
|
3042
|
-
const p =
|
|
3060
|
+
const p = j("Textarea");
|
|
3043
3061
|
return L(), P("div", null, [
|
|
3044
3062
|
D(p, {
|
|
3045
3063
|
id: a(t).id,
|
|
@@ -3061,7 +3079,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3061
3079
|
]);
|
|
3062
3080
|
};
|
|
3063
3081
|
}
|
|
3064
|
-
}),
|
|
3082
|
+
}), ga = /* @__PURE__ */ M({
|
|
3065
3083
|
__name: "PrimeKnob",
|
|
3066
3084
|
props: {
|
|
3067
3085
|
context: Object
|
|
@@ -3071,9 +3089,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3071
3089
|
function l(r) {
|
|
3072
3090
|
t == null || t.node.input(r), t == null || t.handlers.blur(r);
|
|
3073
3091
|
}
|
|
3074
|
-
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);
|
|
3075
3093
|
return (r, o) => {
|
|
3076
|
-
const u =
|
|
3094
|
+
const u = j("Knob");
|
|
3077
3095
|
return L(), P("div", null, [
|
|
3078
3096
|
D(u, {
|
|
3079
3097
|
id: a(t).id,
|
|
@@ -3102,7 +3120,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3102
3120
|
]);
|
|
3103
3121
|
};
|
|
3104
3122
|
}
|
|
3105
|
-
}),
|
|
3123
|
+
}), $a = /* @__PURE__ */ M({
|
|
3106
3124
|
__name: "PrimeMultiSelect",
|
|
3107
3125
|
props: {
|
|
3108
3126
|
context: Object
|
|
@@ -3113,9 +3131,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3113
3131
|
var o;
|
|
3114
3132
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3115
3133
|
}
|
|
3116
|
-
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);
|
|
3117
3135
|
return (r, o) => {
|
|
3118
|
-
const u =
|
|
3136
|
+
const u = j("MultiSelect");
|
|
3119
3137
|
return L(), P("div", null, [
|
|
3120
3138
|
D(u, {
|
|
3121
3139
|
modelValue: a(t)._value,
|
|
@@ -3138,7 +3156,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3138
3156
|
]);
|
|
3139
3157
|
};
|
|
3140
3158
|
}
|
|
3141
|
-
}),
|
|
3159
|
+
}), wa = /* @__PURE__ */ M({
|
|
3142
3160
|
__name: "PrimeListbox",
|
|
3143
3161
|
props: {
|
|
3144
3162
|
context: Object
|
|
@@ -3149,10 +3167,10 @@ const ta = /* @__PURE__ */ M({
|
|
|
3149
3167
|
var o;
|
|
3150
3168
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3151
3169
|
}
|
|
3152
|
-
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);
|
|
3153
3171
|
return (r, o) => {
|
|
3154
3172
|
var p;
|
|
3155
|
-
const u =
|
|
3173
|
+
const u = j("Listbox");
|
|
3156
3174
|
return L(), P("div", null, [
|
|
3157
3175
|
D(u, {
|
|
3158
3176
|
id: a(t).id,
|
|
@@ -3182,7 +3200,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3182
3200
|
]);
|
|
3183
3201
|
};
|
|
3184
3202
|
}
|
|
3185
|
-
}),
|
|
3203
|
+
}), ka = /* @__PURE__ */ M({
|
|
3186
3204
|
__name: "PrimePassword",
|
|
3187
3205
|
props: {
|
|
3188
3206
|
context: Object
|
|
@@ -3195,9 +3213,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3195
3213
|
function s(o) {
|
|
3196
3214
|
t == null || t.node.input(o.target.value);
|
|
3197
3215
|
}
|
|
3198
|
-
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);
|
|
3199
3217
|
return (o, u) => {
|
|
3200
|
-
const p =
|
|
3218
|
+
const p = j("Password");
|
|
3201
3219
|
return L(), P("div", null, [
|
|
3202
3220
|
D(p, {
|
|
3203
3221
|
modelValue: a(t)._value,
|
|
@@ -3228,7 +3246,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3228
3246
|
]);
|
|
3229
3247
|
};
|
|
3230
3248
|
}
|
|
3231
|
-
}),
|
|
3249
|
+
}), Ca = ["for"], Sa = /* @__PURE__ */ M({
|
|
3232
3250
|
__name: "PrimeRadioButton",
|
|
3233
3251
|
props: {
|
|
3234
3252
|
context: Object
|
|
@@ -3239,13 +3257,13 @@ const ta = /* @__PURE__ */ M({
|
|
|
3239
3257
|
var o;
|
|
3240
3258
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3241
3259
|
}
|
|
3242
|
-
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);
|
|
3243
3261
|
return (r, o) => {
|
|
3244
|
-
const u =
|
|
3262
|
+
const u = j("RadioButton");
|
|
3245
3263
|
return L(), P("div", {
|
|
3246
3264
|
class: U(a(n).options_class)
|
|
3247
3265
|
}, [
|
|
3248
|
-
(L(!0), P(
|
|
3266
|
+
(L(!0), P(Pn, null, An(a(n).options, (p) => (L(), P("div", {
|
|
3249
3267
|
key: p.value,
|
|
3250
3268
|
class: U(a(n).option_class)
|
|
3251
3269
|
}, [
|
|
@@ -3260,14 +3278,14 @@ const ta = /* @__PURE__ */ M({
|
|
|
3260
3278
|
onClick: l,
|
|
3261
3279
|
onChange: l
|
|
3262
3280
|
}, null, 8, ["modelValue", "name", "value", "input-style", "input-class", "pt"]),
|
|
3263
|
-
|
|
3281
|
+
Nt("label", {
|
|
3264
3282
|
for: p.value
|
|
3265
|
-
},
|
|
3283
|
+
}, pe(p.label), 9, Ca)
|
|
3266
3284
|
], 2))), 128))
|
|
3267
3285
|
], 2);
|
|
3268
3286
|
};
|
|
3269
3287
|
}
|
|
3270
|
-
}),
|
|
3288
|
+
}), Va = /* @__PURE__ */ M({
|
|
3271
3289
|
__name: "PrimeRating",
|
|
3272
3290
|
props: {
|
|
3273
3291
|
context: Object
|
|
@@ -3278,9 +3296,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3278
3296
|
var o;
|
|
3279
3297
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3280
3298
|
}
|
|
3281
|
-
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);
|
|
3282
3300
|
return (r, o) => {
|
|
3283
|
-
const u =
|
|
3301
|
+
const u = j("Rating");
|
|
3284
3302
|
return L(), P("div", null, [
|
|
3285
3303
|
D(u, {
|
|
3286
3304
|
id: a(t).id,
|
|
@@ -3304,7 +3322,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3304
3322
|
]);
|
|
3305
3323
|
};
|
|
3306
3324
|
}
|
|
3307
|
-
}),
|
|
3325
|
+
}), Ia = /* @__PURE__ */ M({
|
|
3308
3326
|
__name: "PrimeSlider",
|
|
3309
3327
|
props: {
|
|
3310
3328
|
context: Object
|
|
@@ -3314,9 +3332,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3314
3332
|
function l(r) {
|
|
3315
3333
|
t == null || t.node.input(r), t == null || t.handlers.blur(r);
|
|
3316
3334
|
}
|
|
3317
|
-
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);
|
|
3318
3336
|
return (r, o) => {
|
|
3319
|
-
const u =
|
|
3337
|
+
const u = j("Slider");
|
|
3320
3338
|
return L(), P("div", null, [
|
|
3321
3339
|
D(u, {
|
|
3322
3340
|
id: a(t).id,
|
|
@@ -3340,7 +3358,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3340
3358
|
]);
|
|
3341
3359
|
};
|
|
3342
3360
|
}
|
|
3343
|
-
}),
|
|
3361
|
+
}), La = /* @__PURE__ */ M({
|
|
3344
3362
|
__name: "PrimeToggleButton",
|
|
3345
3363
|
props: {
|
|
3346
3364
|
context: Object
|
|
@@ -3351,9 +3369,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3351
3369
|
var o;
|
|
3352
3370
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3353
3371
|
}
|
|
3354
|
-
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);
|
|
3355
3373
|
return (r, o) => {
|
|
3356
|
-
const u =
|
|
3374
|
+
const u = j("ToggleButton");
|
|
3357
3375
|
return L(), P("div", null, [
|
|
3358
3376
|
D(u, {
|
|
3359
3377
|
modelValue: a(t)._value,
|
|
@@ -3377,7 +3395,7 @@ const ta = /* @__PURE__ */ M({
|
|
|
3377
3395
|
]);
|
|
3378
3396
|
};
|
|
3379
3397
|
}
|
|
3380
|
-
}),
|
|
3398
|
+
}), Pa = /* @__PURE__ */ M({
|
|
3381
3399
|
__name: "PrimeSelectButton",
|
|
3382
3400
|
props: {
|
|
3383
3401
|
context: Object
|
|
@@ -3388,9 +3406,9 @@ const ta = /* @__PURE__ */ M({
|
|
|
3388
3406
|
var o;
|
|
3389
3407
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3390
3408
|
}
|
|
3391
|
-
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);
|
|
3392
3410
|
return (r, o) => {
|
|
3393
|
-
const u =
|
|
3411
|
+
const u = j("SelectButton");
|
|
3394
3412
|
return L(), P("div", null, [
|
|
3395
3413
|
D(u, {
|
|
3396
3414
|
id: a(t).id,
|
|
@@ -3416,13 +3434,13 @@ const ta = /* @__PURE__ */ M({
|
|
|
3416
3434
|
]);
|
|
3417
3435
|
};
|
|
3418
3436
|
}
|
|
3419
|
-
}),
|
|
3437
|
+
}), Aa = {
|
|
3420
3438
|
key: 0,
|
|
3421
3439
|
class: "formkit-prime-left"
|
|
3422
|
-
},
|
|
3440
|
+
}, Oa = {
|
|
3423
3441
|
key: 1,
|
|
3424
3442
|
class: "formkit-prime-right"
|
|
3425
|
-
},
|
|
3443
|
+
}, xa = /* @__PURE__ */ M({
|
|
3426
3444
|
__name: "PrimeTriStateCheckbox",
|
|
3427
3445
|
props: {
|
|
3428
3446
|
context: Object
|
|
@@ -3433,11 +3451,11 @@ const ta = /* @__PURE__ */ M({
|
|
|
3433
3451
|
var o;
|
|
3434
3452
|
t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
|
|
3435
3453
|
}
|
|
3436
|
-
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);
|
|
3437
3455
|
return (r, o) => {
|
|
3438
|
-
const u =
|
|
3456
|
+
const u = j("TriStateCheckbox");
|
|
3439
3457
|
return L(), P("div", null, [
|
|
3440
|
-
a(t).attrs.labelLeft ? (L(), P("span",
|
|
3458
|
+
a(t).attrs.labelLeft ? (L(), P("span", Aa, pe(a(t).attrs.labelLeft), 1)) : re("", !0),
|
|
3441
3459
|
D(u, {
|
|
3442
3460
|
modelValue: a(t)._value,
|
|
3443
3461
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -3452,96 +3470,96 @@ const ta = /* @__PURE__ */ M({
|
|
|
3452
3470
|
pt: a(n).pt,
|
|
3453
3471
|
onClick: l
|
|
3454
3472
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "pt"]),
|
|
3455
|
-
a(t).attrs.labelRight ? (L(), P("span",
|
|
3473
|
+
a(t).attrs.labelRight ? (L(), P("span", Oa, pe(a(t).attrs.labelRight), 1)) : re("", !0)
|
|
3456
3474
|
]);
|
|
3457
3475
|
};
|
|
3458
3476
|
}
|
|
3459
|
-
}),
|
|
3477
|
+
}), Ma = T(ha, {
|
|
3460
3478
|
props: ["iconRight", "iconLeft"]
|
|
3461
|
-
}),
|
|
3479
|
+
}), Ra = T(ma, {
|
|
3462
3480
|
props: ["iconRight", "iconLeft"]
|
|
3463
|
-
}),
|
|
3481
|
+
}), Ea = T(da, {
|
|
3464
3482
|
props: []
|
|
3465
|
-
}),
|
|
3483
|
+
}), ja = T(ka, {
|
|
3466
3484
|
props: ["feedback", "toggleMask"]
|
|
3467
|
-
}),
|
|
3485
|
+
}), Fa = T(_a, {
|
|
3468
3486
|
props: ["rows"]
|
|
3469
|
-
}),
|
|
3487
|
+
}), Da = T(oa, {
|
|
3470
3488
|
props: []
|
|
3471
|
-
}),
|
|
3489
|
+
}), Ta = T(va, {
|
|
3472
3490
|
props: []
|
|
3473
|
-
}),
|
|
3491
|
+
}), Ba = T(pa, {
|
|
3474
3492
|
props: []
|
|
3475
|
-
}),
|
|
3493
|
+
}), za = T(ca, {
|
|
3476
3494
|
props: []
|
|
3477
|
-
}),
|
|
3495
|
+
}), Ua = T($a, {
|
|
3478
3496
|
props: []
|
|
3479
|
-
}),
|
|
3497
|
+
}), Ka = T(wa, {
|
|
3480
3498
|
props: []
|
|
3481
|
-
}),
|
|
3499
|
+
}), Na = T(aa, {
|
|
3482
3500
|
props: []
|
|
3483
|
-
}),
|
|
3501
|
+
}), Wa = T(Ia, {
|
|
3484
3502
|
props: []
|
|
3485
|
-
}),
|
|
3503
|
+
}), Ha = T(Va, {
|
|
3486
3504
|
props: []
|
|
3487
|
-
}),
|
|
3505
|
+
}), qa = T(Sa, {
|
|
3488
3506
|
props: []
|
|
3489
|
-
}),
|
|
3507
|
+
}), Za = T(ua, {
|
|
3490
3508
|
props: []
|
|
3491
|
-
}),
|
|
3509
|
+
}), Ja = T(ga, {
|
|
3492
3510
|
props: []
|
|
3493
|
-
}),
|
|
3511
|
+
}), Ya = T(fa, {
|
|
3494
3512
|
props: []
|
|
3495
|
-
}),
|
|
3513
|
+
}), Qa = T(La, {
|
|
3496
3514
|
props: []
|
|
3497
|
-
}),
|
|
3515
|
+
}), Xa = T(Pa, {
|
|
3498
3516
|
props: []
|
|
3499
|
-
}),
|
|
3517
|
+
}), Ga = T(xa, {
|
|
3500
3518
|
props: []
|
|
3501
|
-
}),
|
|
3502
|
-
primeInputText:
|
|
3503
|
-
primeInputNumber:
|
|
3504
|
-
primeInputMask:
|
|
3505
|
-
primePassword:
|
|
3506
|
-
primeCheckbox:
|
|
3507
|
-
primeInputSwitch:
|
|
3508
|
-
primeTextarea:
|
|
3509
|
-
primeEditor:
|
|
3510
|
-
primeDropdown:
|
|
3511
|
-
primeMultiSelect:
|
|
3512
|
-
primeCalendar:
|
|
3513
|
-
primeSlider:
|
|
3514
|
-
primeChips:
|
|
3515
|
-
primeKnob:
|
|
3516
|
-
primeRating:
|
|
3517
|
-
primeRadioButton:
|
|
3518
|
-
primeColorPicker:
|
|
3519
|
-
primeToggleButton:
|
|
3520
|
-
primeListbox:
|
|
3521
|
-
primeSelectButton:
|
|
3522
|
-
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
|
|
3523
3541
|
};
|
|
3524
3542
|
export {
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
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
|
|
3547
3565
|
};
|