@sfxcode/formkit-primevue 1.2.5 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formkit-primevue.es.js +970 -870
- package/dist/formkit-primevue.umd.js +1 -1
- package/package.json +15 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as O, getCurrentInstance as st, watch as ce, watchEffect as te, reactive as $n, onUnmounted as wn, ref as Q, provide as Nt, h as de, computed as E, inject as pe, nextTick as kn, onMounted as Cn, toRef as Sn, onBeforeUnmount as Vn, markRaw as In, isRef as Ln, createTextVNode as Pn, resolveComponent as j, openBlock as P, createElementBlock as A, createVNode as T, unref as a, toDisplayString as me, createCommentVNode as re, normalizeStyle as ve, normalizeClass as U, createElementVNode as Wt, Fragment as An, renderList as On } from "vue";
|
|
2
|
+
const Ht = [
|
|
3
3
|
"__key",
|
|
4
4
|
"__init",
|
|
5
5
|
"__shim",
|
|
@@ -7,10 +7,10 @@ const Wt = [
|
|
|
7
7
|
"__index",
|
|
8
8
|
"__prevKey"
|
|
9
9
|
];
|
|
10
|
-
function
|
|
10
|
+
function Fe() {
|
|
11
11
|
return Math.random().toString(36).substring(2, 15);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function xn(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
|
}
|
|
@@ -26,7 +26,7 @@ function ue(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 Mn(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)
|
|
@@ -39,7 +39,7 @@ function ue(e, i, t = !0, n = ["__key"]) {
|
|
|
39
39
|
}
|
|
40
40
|
return !1;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Mn(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) {
|
|
@@ -95,7 +95,7 @@ function Qe(e, i, t = !1, n = !1) {
|
|
|
95
95
|
!F(l, s) && i[s] !== void 0 && (l[s] = i[s]);
|
|
96
96
|
return l;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function En(e) {
|
|
99
99
|
if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
|
|
100
100
|
return !1;
|
|
101
101
|
const i = e[0];
|
|
@@ -114,13 +114,13 @@ function Rn(e) {
|
|
|
114
114
|
}
|
|
115
115
|
return i;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function he(...e) {
|
|
118
118
|
return e.reduce((i, t) => {
|
|
119
119
|
const { value: n, name: l, modelValue: s, config: r, plugins: o, ...u } = t;
|
|
120
120
|
return Object.assign(i, u);
|
|
121
121
|
}, {});
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function jn(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 En(e) {
|
|
|
129
129
|
}
|
|
130
130
|
return t && i.push(t), i;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Vt(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 It(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]);
|
|
@@ -143,13 +143,13 @@ function Vt(e, i) {
|
|
|
143
143
|
n.some((s) => s.test(l)) && (t[l] = e[l]);
|
|
144
144
|
}), t;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function ze(e) {
|
|
147
147
|
return e.replace(/-([a-z0-9])/gi, (i, t) => t.toUpperCase());
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function qt(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 Fn(e, i = Ht) {
|
|
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)
|
|
@@ -157,7 +157,7 @@ function jn(e, i = Wt) {
|
|
|
157
157
|
}
|
|
158
158
|
return e;
|
|
159
159
|
}
|
|
160
|
-
function Re(e, i =
|
|
160
|
+
function Re(e, i = Ht) {
|
|
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;
|
|
@@ -169,10 +169,10 @@ function Re(e, i = Wt) {
|
|
|
169
169
|
});
|
|
170
170
|
return t;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function be(e) {
|
|
173
173
|
return typeof e == "object" ? Re(e) : e;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Tn(e, i) {
|
|
176
176
|
if (!e || typeof e != "object")
|
|
177
177
|
return null;
|
|
178
178
|
const t = i.split(".");
|
|
@@ -206,7 +206,7 @@ function Dn(e, i, t) {
|
|
|
206
206
|
});
|
|
207
207
|
return i;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Bn(e) {
|
|
210
210
|
let i = !1;
|
|
211
211
|
return (...t) => {
|
|
212
212
|
if (!i)
|
|
@@ -225,7 +225,7 @@ function mt() {
|
|
|
225
225
|
s > -1 && e.splice(s, 1);
|
|
226
226
|
}, t;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Zt() {
|
|
229
229
|
const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
230
230
|
let t;
|
|
231
231
|
const n = (l, s) => {
|
|
@@ -240,7 +240,7 @@ function qt() {
|
|
|
240
240
|
return n.flush = () => {
|
|
241
241
|
e.clear(), i.clear(), t == null || t.clear();
|
|
242
242
|
}, n.on = (l, s) => {
|
|
243
|
-
const [r, ...o] = l.split("."), u = s.receipt ||
|
|
243
|
+
const [r, ...o] = l.split("."), u = s.receipt || Fe(), p = {
|
|
244
244
|
modifiers: o,
|
|
245
245
|
event: r,
|
|
246
246
|
listener: s,
|
|
@@ -262,7 +262,7 @@ function qt() {
|
|
|
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 zn(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 Bn(e, i, t, n, l = !0, s) {
|
|
|
271
271
|
meta: s
|
|
272
272
|
}), e;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Un(e, i, t) {
|
|
275
275
|
return Xe(e.parent) && e.parent._e(e.parent, t), e;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function Kn(e, i, t, n) {
|
|
278
278
|
return i._e.on(t, n);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Nn(e, i, t) {
|
|
281
281
|
return i._e.off(t), e;
|
|
282
282
|
}
|
|
283
283
|
const bt = mt();
|
|
@@ -288,16 +288,16 @@ 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 Te(e, i = {}) {
|
|
292
292
|
yt.dispatch({ code: e, data: i });
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function q(e, i = {}) {
|
|
295
295
|
throw Error(bt.dispatch({ code: e, data: i }).message);
|
|
296
296
|
}
|
|
297
297
|
function oe(e, i) {
|
|
298
298
|
const t = {
|
|
299
299
|
blocking: !1,
|
|
300
|
-
key:
|
|
300
|
+
key: Fe(),
|
|
301
301
|
meta: {},
|
|
302
302
|
type: "state",
|
|
303
303
|
visible: !0,
|
|
@@ -305,32 +305,32 @@ function oe(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 Lt = {
|
|
309
|
+
apply: Yn,
|
|
310
|
+
set: Hn,
|
|
311
|
+
remove: Jt,
|
|
312
|
+
filter: Zn,
|
|
313
|
+
reduce: Jn,
|
|
314
|
+
release: Gn,
|
|
315
|
+
touch: qn
|
|
316
316
|
};
|
|
317
|
-
function
|
|
317
|
+
function Wn(e = !1) {
|
|
318
318
|
const i = {};
|
|
319
319
|
let t, n = e, l = [];
|
|
320
320
|
const s = /* @__PURE__ */ new Map();
|
|
321
321
|
let r;
|
|
322
322
|
const o = new Proxy(i, {
|
|
323
323
|
get(...u) {
|
|
324
|
-
const [p,
|
|
325
|
-
return
|
|
324
|
+
const [p, g] = u;
|
|
325
|
+
return g === "buffer" ? n : g === "_b" ? l : g === "_m" ? s : g === "_r" ? r : F(Lt, g) ? Lt[g].bind(null, i, o, t) : Reflect.get(...u);
|
|
326
326
|
},
|
|
327
|
-
set(u, p,
|
|
328
|
-
return p === "_n" ? (t =
|
|
327
|
+
set(u, p, g) {
|
|
328
|
+
return p === "_n" ? (t = g, r === "__n" && Yt(t, o), !0) : p === "_b" ? (l = g, !0) : p === "buffer" ? (n = g, !0) : p === "_r" ? (r = g, !0) : (q(101, t), !1);
|
|
329
329
|
}
|
|
330
330
|
});
|
|
331
331
|
return o;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function Hn(e, i, t, n) {
|
|
334
334
|
if (i.buffer)
|
|
335
335
|
return i._b.push([[n]]), i;
|
|
336
336
|
if (e[n.key] !== n) {
|
|
@@ -343,33 +343,33 @@ function Wn(e, i, t, n) {
|
|
|
343
343
|
}
|
|
344
344
|
return i;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function qn(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
|
|
352
|
+
function Jt(e, i, t, n) {
|
|
353
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 Zn(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) && Jt(e, i, t, s);
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Jn(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 Yn(e, i, t, n, l) {
|
|
373
373
|
if (Array.isArray(n)) {
|
|
374
374
|
if (i.buffer) {
|
|
375
375
|
i._b.push([n, l]);
|
|
@@ -380,10 +380,10 @@ function Jn(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) : Xn(t, i, s, n[s], l);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Qn(e, ...i) {
|
|
387
387
|
const t = `${e.name}-set`, n = (l) => oe({
|
|
388
388
|
key: dt(l),
|
|
389
389
|
type: "error",
|
|
@@ -401,12 +401,12 @@ function Yn(e, ...i) {
|
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Xn(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 = Yt(e, i)), (s = r.get(t)) === null || s === void 0 || s.push([n, l]);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Yt(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 Jt(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 Gn(e, i) {
|
|
419
419
|
i.buffer = !1, i._b.forEach(([t, n]) => i.apply(t, n)), i._b = [];
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function ei() {
|
|
422
422
|
const e = {};
|
|
423
423
|
let i;
|
|
424
424
|
return {
|
|
425
|
-
count: (...t) =>
|
|
425
|
+
count: (...t) => ti(i, e, ...t),
|
|
426
426
|
init(t) {
|
|
427
|
-
i = t, t.on("message-added.deep",
|
|
427
|
+
i = t, t.on("message-added.deep", Pt(e, 1)), t.on("message-removed.deep", Pt(e, -1));
|
|
428
428
|
},
|
|
429
|
-
merge: (t) =>
|
|
429
|
+
merge: (t) => At(i, e, t),
|
|
430
430
|
settled(t) {
|
|
431
431
|
return F(e, t) ? e[t].promise : Promise.resolve();
|
|
432
432
|
},
|
|
433
|
-
unmerge: (t) =>
|
|
433
|
+
unmerge: (t) => At(i, e, t, !0),
|
|
434
434
|
value(t) {
|
|
435
435
|
return F(e, t) ? e[t].count : 0;
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
if (n =
|
|
439
|
+
function ti(e, i, t, n, l = 0) {
|
|
440
|
+
if (n = ni(n || t), !F(i, t)) {
|
|
441
441
|
const s = {
|
|
442
442
|
condition: n,
|
|
443
443
|
count: 0,
|
|
@@ -452,24 +452,24 @@ function ei(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 Qt(i[t], l).promise;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function ni(e) {
|
|
458
458
|
return typeof e == "function" ? e : (i) => i.type === e;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Qt(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 Pt(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) && Qt(l, i);
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function At(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,19 +483,19 @@ function Pt(e, i, t, n = !1) {
|
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
const vt = /* @__PURE__ */ new Map(),
|
|
487
|
-
function
|
|
488
|
-
e.props.id && (vt.set(e.props.id, e),
|
|
486
|
+
const vt = /* @__PURE__ */ new Map(), Ue = /* @__PURE__ */ new Map(), ht = Zt(), ii = [];
|
|
487
|
+
function li(e) {
|
|
488
|
+
e.props.id && (vt.set(e.props.id, e), Ue.set(e, e.props.id), ht(e, {
|
|
489
489
|
payload: e,
|
|
490
490
|
name: e.props.id,
|
|
491
491
|
bubble: !1,
|
|
492
492
|
origin: e
|
|
493
493
|
}));
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
if (
|
|
497
|
-
const i =
|
|
498
|
-
|
|
495
|
+
function ai(e) {
|
|
496
|
+
if (Ue.has(e)) {
|
|
497
|
+
const i = Ue.get(e);
|
|
498
|
+
Ue.delete(e), vt.delete(i), ht(e, {
|
|
499
499
|
payload: null,
|
|
500
500
|
name: i,
|
|
501
501
|
bubble: !1,
|
|
@@ -503,26 +503,26 @@ function li(e) {
|
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Xt(e) {
|
|
507
507
|
return vt.get(e);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
|
|
509
|
+
function si(e, i) {
|
|
510
|
+
ii.push(ht.on(e, i));
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Ot(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 ri(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
|
+
Te(151, e);
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function oi(e) {
|
|
526
526
|
const i = (t) => {
|
|
527
527
|
for (const n in t.store) {
|
|
528
528
|
const l = t.store[n];
|
|
@@ -531,79 +531,79 @@ function ri(e) {
|
|
|
531
531
|
};
|
|
532
532
|
i(e), e.walk(i);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
const t = typeof e == "string" ?
|
|
534
|
+
function ui(e, i) {
|
|
535
|
+
const t = typeof e == "string" ? Xt(e) : e;
|
|
536
536
|
if (t) {
|
|
537
|
-
const n = (r) =>
|
|
537
|
+
const n = (r) => be(r.props.initial) || (r.type === "group" ? {} : r.type === "list" ? [] : void 0);
|
|
538
538
|
t._e.pause(t);
|
|
539
|
-
const l =
|
|
539
|
+
const l = be(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), oi(t), t.emit("reset", t), t;
|
|
545
545
|
}
|
|
546
|
-
|
|
546
|
+
Te(152, e);
|
|
547
547
|
}
|
|
548
|
-
const
|
|
548
|
+
const fi = {
|
|
549
549
|
delimiter: ".",
|
|
550
550
|
delay: 0,
|
|
551
551
|
locale: "en",
|
|
552
|
-
rootClasses: (e) => ({ [`formkit-${
|
|
553
|
-
},
|
|
554
|
-
function
|
|
552
|
+
rootClasses: (e) => ({ [`formkit-${qt(e)}`]: !0 })
|
|
553
|
+
}, Gt = Symbol("index"), ot = Symbol("removed"), ut = Symbol("moved"), en = Symbol("inserted");
|
|
554
|
+
function ci(e) {
|
|
555
555
|
return e.type === "list" && Array.isArray(e._value);
|
|
556
556
|
}
|
|
557
557
|
function Xe(e) {
|
|
558
558
|
return e && typeof e == "object" && e.__FKNode__ === !0;
|
|
559
559
|
}
|
|
560
|
-
const
|
|
561
|
-
|
|
562
|
-
},
|
|
563
|
-
_c: V(
|
|
564
|
-
add: V(
|
|
565
|
-
addProps: V(
|
|
566
|
-
address: V(Ri,
|
|
567
|
-
at: V(
|
|
568
|
-
bubble: V(
|
|
569
|
-
clearErrors: V(
|
|
570
|
-
calm: V(
|
|
560
|
+
const Ke = (e, i, t) => {
|
|
561
|
+
q(102, [e, t]);
|
|
562
|
+
}, pi = {
|
|
563
|
+
_c: V(Mi, Ke, !1),
|
|
564
|
+
add: V(Si),
|
|
565
|
+
addProps: V(Ci),
|
|
566
|
+
address: V(Ri, Ke, !1),
|
|
567
|
+
at: V(ji),
|
|
568
|
+
bubble: V(Un),
|
|
569
|
+
clearErrors: V(Ni),
|
|
570
|
+
calm: V($i),
|
|
571
571
|
config: V(!1),
|
|
572
|
-
define: V(
|
|
573
|
-
disturb: V(
|
|
574
|
-
destroy: V(
|
|
575
|
-
extend: V(
|
|
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,
|
|
572
|
+
define: V(ki),
|
|
573
|
+
disturb: V(gi),
|
|
574
|
+
destroy: V(wi),
|
|
575
|
+
extend: V(Hi),
|
|
576
|
+
hydrate: V(hi),
|
|
577
|
+
index: V(xi, Oi, !1),
|
|
578
|
+
input: V(ln),
|
|
579
|
+
each: V(Li),
|
|
580
|
+
emit: V(zn),
|
|
581
|
+
find: V(Ti),
|
|
582
|
+
on: V(Kn),
|
|
583
|
+
off: V(Nn),
|
|
584
|
+
parent: V(!1, Vi),
|
|
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(Ii),
|
|
587
|
+
root: V(Bi, Ke, !1),
|
|
588
|
+
reset: V(Ki),
|
|
589
|
+
resetConfig: V(Ai),
|
|
590
|
+
setErrors: V(rn),
|
|
591
|
+
submit: V(Ui),
|
|
592
|
+
t: V(zi),
|
|
593
593
|
use: V(_t),
|
|
594
|
-
name: V(
|
|
595
|
-
walk: V(
|
|
594
|
+
name: V(Ei, !1, !1),
|
|
595
|
+
walk: V(Pi)
|
|
596
596
|
};
|
|
597
|
-
function
|
|
598
|
-
return new Map(Object.entries(
|
|
597
|
+
function di() {
|
|
598
|
+
return new Map(Object.entries(pi));
|
|
599
599
|
}
|
|
600
600
|
function V(e, i, t = !0) {
|
|
601
601
|
return {
|
|
602
602
|
get: e ? (n, l) => t ? (...s) => e(n, l, ...s) : e(n, l) : !1,
|
|
603
|
-
set: i !== void 0 ? i :
|
|
603
|
+
set: i !== void 0 ? i : Ke.bind(null)
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function mi() {
|
|
607
607
|
const e = /* @__PURE__ */ new Map();
|
|
608
608
|
return new Proxy(e, {
|
|
609
609
|
get(i, t) {
|
|
@@ -611,46 +611,46 @@ function di() {
|
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
let
|
|
615
|
-
function
|
|
614
|
+
let tn = 0, bi = 0;
|
|
615
|
+
function yi(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" ? Gt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++tn}`;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function nn(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 ln(e, i, t, n = !0) {
|
|
623
|
+
return i._value = vi(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(We, e.props.delay, e, i)) : We(e, i), i.settled);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function vi(e, i) {
|
|
626
626
|
switch (e.type) {
|
|
627
627
|
case "input":
|
|
628
628
|
break;
|
|
629
629
|
case "group":
|
|
630
|
-
(!i || typeof i != "object") &&
|
|
630
|
+
(!i || typeof i != "object") && q(107, [e, i]);
|
|
631
631
|
break;
|
|
632
632
|
case "list":
|
|
633
|
-
Array.isArray(i) ||
|
|
633
|
+
Array.isArray(i) || q(108, [e, i]);
|
|
634
634
|
break;
|
|
635
635
|
}
|
|
636
636
|
return i;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function We(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 an(e, { name: i, value: t, from: n }) {
|
|
642
642
|
if (!Object.isFrozen(e._value)) {
|
|
643
|
-
if (
|
|
643
|
+
if (ci(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 === en ? 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 hi(e, i) {
|
|
652
652
|
const t = i._value;
|
|
653
|
-
return e.type === "list" && e.sync &&
|
|
653
|
+
return e.type === "list" && e.sync && _i(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];
|
|
@@ -658,10 +658,10 @@ function vi(e, i) {
|
|
|
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") && an(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 _i(e, i) {
|
|
665
665
|
const t = e._value;
|
|
666
666
|
if (!Array.isArray(t))
|
|
667
667
|
return;
|
|
@@ -690,50 +690,50 @@ function hi(e, i) {
|
|
|
690
690
|
n[u] = o, l.delete(o);
|
|
691
691
|
}
|
|
692
692
|
r.forEach((o, u) => {
|
|
693
|
-
n[o] =
|
|
693
|
+
n[o] = Yi({ 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 || Qi(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 gi(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 $i(e, i, t) {
|
|
710
710
|
var n;
|
|
711
711
|
if (t !== void 0 && e.type !== "input")
|
|
712
|
-
return
|
|
712
|
+
return an(i, t), We(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 wi(e, i) {
|
|
716
|
+
e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), ai(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 = Re(t), i.value = i._value =
|
|
721
|
+
function ki(e, i, t) {
|
|
722
|
+
i.type = t.type, i.props.definition = Re(t), i.value = i._value = nn({
|
|
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 Ci(e, i, t) {
|
|
728
728
|
var n;
|
|
729
729
|
if (e.props.attrs) {
|
|
730
730
|
const l = { ...e.props.attrs };
|
|
731
731
|
e.props._emit = !1;
|
|
732
732
|
for (const r in l) {
|
|
733
|
-
const o =
|
|
733
|
+
const o = ze(r);
|
|
734
734
|
t.includes(o) && (e.props[o] = l[r], delete l[r]);
|
|
735
735
|
}
|
|
736
|
-
const s =
|
|
736
|
+
const s = be(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 ki(e, i, t) {
|
|
|
741
741
|
}
|
|
742
742
|
return e.emit("added-props", t), e;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
745
|
-
if (e.type === "input" &&
|
|
744
|
+
function Si(e, i, t, n) {
|
|
745
|
+
if (e.type === "input" && q(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: en
|
|
752
752
|
});
|
|
753
753
|
} else
|
|
754
754
|
i.children.push(t);
|
|
@@ -759,12 +759,12 @@ function Ci(e, i, t, n) {
|
|
|
759
759
|
return e.remove(t), t.parent.add(t), e;
|
|
760
760
|
} else
|
|
761
761
|
t.use(e.plugins);
|
|
762
|
-
return
|
|
762
|
+
return We(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function Vi(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 Ii(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 Vi(e, i, t) {
|
|
|
778
778
|
}
|
|
779
779
|
return e.ledger.unmerge(t), e;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Li(e, i, t) {
|
|
782
782
|
i.children.forEach((n) => !("__FKP" in n) && t(n));
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function Pi(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 Li(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 Ai(e, i) {
|
|
793
793
|
const t = e.parent || void 0;
|
|
794
|
-
i.config =
|
|
794
|
+
i.config = sn(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 Oi(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 xi(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 Mi(e, i) {
|
|
814
814
|
return i;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function Ei(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 !== Gt ? i.name : e.index;
|
|
819
819
|
}
|
|
820
820
|
function Ri(e, i) {
|
|
821
821
|
return i.parent ? i.parent.address.concat([e.name]) : [e.name];
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function ji(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 Ei(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)) || Fi(s, r);
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
return s || void 0;
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function Fi(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,7 +856,7 @@ function ji(e, i) {
|
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function Ti(e, i, t, n) {
|
|
860
860
|
return Di(e, t, n);
|
|
861
861
|
}
|
|
862
862
|
function Di(e, i, t = "name") {
|
|
@@ -870,13 +870,13 @@ function Di(e, i, t = "name") {
|
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function Bi(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 sn(e = {}, i) {
|
|
880
880
|
let t;
|
|
881
881
|
return new Proxy(e, {
|
|
882
882
|
get(...n) {
|
|
@@ -896,7 +896,7 @@ function an(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 : fi[l];
|
|
900
900
|
},
|
|
901
901
|
set(...n) {
|
|
902
902
|
const l = n[1], s = n[2];
|
|
@@ -906,42 +906,42 @@ function an(e = {}, i) {
|
|
|
906
906
|
return e.rootConfig && e.rootConfig._rm(t), t = void 0, !0;
|
|
907
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), Ot(t, l, s), t.walk((o) => Ot(o, l, s), !1, !0)), r;
|
|
910
910
|
}
|
|
911
911
|
return !0;
|
|
912
912
|
}
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function zi(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 Ui(e) {
|
|
920
920
|
const i = e.name;
|
|
921
921
|
do {
|
|
922
922
|
if (e.props.isForm === !0)
|
|
923
923
|
break;
|
|
924
|
-
e.parent ||
|
|
924
|
+
e.parent || q(106, i), e = e.parent;
|
|
925
925
|
} while (e);
|
|
926
|
-
e.props.id &&
|
|
926
|
+
e.props.id && ri(e.props.id);
|
|
927
927
|
}
|
|
928
|
-
function
|
|
929
|
-
return
|
|
928
|
+
function Ki(e, i, t) {
|
|
929
|
+
return ui(e, t);
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function rn(e, i, t, n) {
|
|
932
932
|
const l = `${e.name}-set`, s = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
|
|
933
|
-
return
|
|
933
|
+
return Qn(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 Ni(e, i, t = !0, n) {
|
|
938
|
+
return rn(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
|
|
942
|
+
function Wi(e) {
|
|
943
943
|
const i = {
|
|
944
|
-
initial: typeof e == "object" ?
|
|
944
|
+
initial: typeof e == "object" ? be(e) : e
|
|
945
945
|
};
|
|
946
946
|
let t, n = !0;
|
|
947
947
|
return new Proxy(i, {
|
|
@@ -962,17 +962,17 @@ function Ni(e) {
|
|
|
962
962
|
value: r
|
|
963
963
|
});
|
|
964
964
|
if (!ue(i[u], p, !1) || typeof p == "object") {
|
|
965
|
-
const
|
|
966
|
-
return n && (t.emit("prop", { prop: u, value: p }), typeof u == "string" && t.emit(`prop:${u}`, p)),
|
|
965
|
+
const g = Reflect.set(l, u, p, o);
|
|
966
|
+
return n && (t.emit("prop", { prop: u, value: p }), typeof u == "string" && t.emit(`prop:${u}`, p)), g;
|
|
967
967
|
}
|
|
968
968
|
return !0;
|
|
969
969
|
}
|
|
970
970
|
});
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function Hi(e, i, t, n) {
|
|
973
973
|
return i.traps.set(t, n), e;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function qi(e, i) {
|
|
976
976
|
if (e.props.definition)
|
|
977
977
|
return e.define(e.props.definition);
|
|
978
978
|
for (const t of i) {
|
|
@@ -981,50 +981,50 @@ function Hi(e, i) {
|
|
|
981
981
|
typeof t.library == "function" && t.library(e);
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
const i =
|
|
984
|
+
function Zi(e) {
|
|
985
|
+
const i = nn(e), t = sn(e.config || {}, e.parent);
|
|
986
986
|
return {
|
|
987
987
|
_d: 0,
|
|
988
|
-
_e:
|
|
988
|
+
_e: Zt(),
|
|
989
989
|
uid: Symbol(),
|
|
990
990
|
_resolve: !1,
|
|
991
991
|
_tmo: !1,
|
|
992
992
|
_value: i,
|
|
993
|
-
children:
|
|
993
|
+
children: xn(e.children || []),
|
|
994
994
|
config: t,
|
|
995
|
-
hook:
|
|
995
|
+
hook: mi(),
|
|
996
996
|
isCreated: !1,
|
|
997
997
|
isSettled: !0,
|
|
998
|
-
ledger:
|
|
999
|
-
name:
|
|
998
|
+
ledger: ei(),
|
|
999
|
+
name: yi(e),
|
|
1000
1000
|
parent: e.parent || null,
|
|
1001
1001
|
plugins: /* @__PURE__ */ new Set(),
|
|
1002
|
-
props:
|
|
1002
|
+
props: Wi(i),
|
|
1003
1003
|
settled: Promise.resolve(i),
|
|
1004
|
-
store:
|
|
1004
|
+
store: Wn(!0),
|
|
1005
1005
|
sync: e.sync || !1,
|
|
1006
|
-
traps:
|
|
1006
|
+
traps: di(),
|
|
1007
1007
|
type: e.type || "input",
|
|
1008
1008
|
value: i
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function Ji(e, i) {
|
|
1012
1012
|
var t, n, l;
|
|
1013
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_${
|
|
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_${bi++}` }, (l = i.props) !== null && l !== void 0 ? l : {}), e.props._emit = !0, qi(e, /* @__PURE__ */ new Set([
|
|
1015
1015
|
...i.plugins || [],
|
|
1016
1016
|
...e.parent ? e.parent.plugins : []
|
|
1017
1017
|
])), i.plugins)
|
|
1018
1018
|
for (const r of i.plugins)
|
|
1019
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 &&
|
|
1020
|
+
return e.each((r) => e.add(r)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && q(100, e), ln(e, e._c, e._value, !1), e.store.release(), s && li(e), e.emit("created", e), e.isCreated = !0, e;
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function Yi(e) {
|
|
1023
1023
|
var i, t, n, l;
|
|
1024
1024
|
return {
|
|
1025
1025
|
__FKP: !0,
|
|
1026
1026
|
uid: Symbol(),
|
|
1027
|
-
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_${tn++}`,
|
|
1028
1028
|
value: (t = e == null ? void 0 : e.value) !== null && t !== void 0 ? t : null,
|
|
1029
1029
|
_value: (n = e == null ? void 0 : e.value) !== null && n !== void 0 ? n : null,
|
|
1030
1030
|
type: (l = e == null ? void 0 : e.type) !== null && l !== void 0 ? l : "input",
|
|
@@ -1036,11 +1036,11 @@ function Ji(e) {
|
|
|
1036
1036
|
isSettled: !0
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function Qi(e) {
|
|
1040
1040
|
return "__FKP" in e;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1043
|
-
const i = e || {}, t =
|
|
1042
|
+
function Xi(e) {
|
|
1043
|
+
const i = e || {}, t = Zi(i), n = new Proxy(t, {
|
|
1044
1044
|
get(...l) {
|
|
1045
1045
|
const [, s] = l;
|
|
1046
1046
|
if (s === "__FKNode__")
|
|
@@ -1053,7 +1053,7 @@ function Qi(e) {
|
|
|
1053
1053
|
return o && o.set ? o.set(n, t, s, r) : Reflect.set(...l);
|
|
1054
1054
|
}
|
|
1055
1055
|
});
|
|
1056
|
-
return
|
|
1056
|
+
return Ji(n, i);
|
|
1057
1057
|
}
|
|
1058
1058
|
function ft(e) {
|
|
1059
1059
|
return typeof e != "string" && F(e, "$el");
|
|
@@ -1061,19 +1061,19 @@ function ft(e) {
|
|
|
1061
1061
|
function ct(e) {
|
|
1062
1062
|
return typeof e != "string" && F(e, "$cmp");
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function _e(e) {
|
|
1065
1065
|
return !e || typeof e == "string" ? !1 : F(e, "if") && F(e, "then");
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function Gi(e) {
|
|
1068
1068
|
return typeof e != "string" && "$formkit" in e;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function el(e) {
|
|
1071
1071
|
if (typeof e == "string")
|
|
1072
1072
|
return {
|
|
1073
1073
|
$el: "text",
|
|
1074
1074
|
children: e
|
|
1075
1075
|
};
|
|
1076
|
-
if (
|
|
1076
|
+
if (Gi(e)) {
|
|
1077
1077
|
const { $formkit: i, for: t, if: n, children: l, bind: s, ...r } = e;
|
|
1078
1078
|
return Object.assign({
|
|
1079
1079
|
$cmp: "FormKit",
|
|
@@ -1088,164 +1088,164 @@ function J(e) {
|
|
|
1088
1088
|
return typeof d == "function" ? d(m) : d;
|
|
1089
1089
|
}, l = [
|
|
1090
1090
|
{
|
|
1091
|
-
"&&": (
|
|
1092
|
-
"||": (
|
|
1091
|
+
"&&": (f, d, m) => n(f, m) && n(d, m),
|
|
1092
|
+
"||": (f, d, m) => n(f, m) || n(d, m)
|
|
1093
1093
|
},
|
|
1094
1094
|
{
|
|
1095
|
-
"===": (
|
|
1096
|
-
"!==": (
|
|
1097
|
-
"==": (
|
|
1098
|
-
"!=": (
|
|
1099
|
-
">=": (
|
|
1100
|
-
"<=": (
|
|
1101
|
-
">": (
|
|
1102
|
-
"<": (
|
|
1095
|
+
"===": (f, d, m) => n(f, m) === n(d, m),
|
|
1096
|
+
"!==": (f, d, m) => n(f, m) !== n(d, m),
|
|
1097
|
+
"==": (f, d, m) => n(f, m) == n(d, m),
|
|
1098
|
+
"!=": (f, d, m) => n(f, m) != n(d, m),
|
|
1099
|
+
">=": (f, d, m) => n(f, m) >= n(d, m),
|
|
1100
|
+
"<=": (f, d, m) => n(f, m) <= n(d, m),
|
|
1101
|
+
">": (f, d, m) => n(f, m) > n(d, m),
|
|
1102
|
+
"<": (f, d, m) => n(f, m) < n(d, m)
|
|
1103
1103
|
},
|
|
1104
1104
|
{
|
|
1105
|
-
"+": (
|
|
1106
|
-
"-": (
|
|
1105
|
+
"+": (f, d, m) => n(f, m) + n(d, m),
|
|
1106
|
+
"-": (f, d, m) => n(f, m) - n(d, m)
|
|
1107
1107
|
},
|
|
1108
1108
|
{
|
|
1109
|
-
"*": (
|
|
1110
|
-
"/": (
|
|
1111
|
-
"%": (
|
|
1112
|
-
}
|
|
1113
|
-
], s = l.reduce((
|
|
1114
|
-
function o(
|
|
1115
|
-
const
|
|
1116
|
-
return
|
|
1117
|
-
}
|
|
1118
|
-
function u(
|
|
1119
|
-
let
|
|
1120
|
-
if (!
|
|
1109
|
+
"*": (f, d, m) => n(f, m) * n(d, m),
|
|
1110
|
+
"/": (f, d, m) => n(f, m) / n(d, m),
|
|
1111
|
+
"%": (f, d, m) => n(f, m) % n(d, m)
|
|
1112
|
+
}
|
|
1113
|
+
], s = l.reduce((f, d) => f.concat(Object.keys(d)), []), r = new Set(s.map((f) => f.charAt(0)));
|
|
1114
|
+
function o(f, d, m, h) {
|
|
1115
|
+
const $ = f.filter((_) => _.startsWith(d));
|
|
1116
|
+
return $.length ? $.find((_) => h.length >= m + _.length && h.substring(m, m + _.length) === _ ? _ : !1) : !1;
|
|
1117
|
+
}
|
|
1118
|
+
function u(f, d, m = 1) {
|
|
1119
|
+
let h = m ? d.substring(f + 1).trim() : d.substring(0, f).trim();
|
|
1120
|
+
if (!h.length)
|
|
1121
1121
|
return -1;
|
|
1122
1122
|
if (!m) {
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1123
|
+
const _ = h.split("").reverse(), k = _.findIndex((c) => r.has(c));
|
|
1124
|
+
h = _.slice(k).join("");
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1127
|
-
return l.findIndex((
|
|
1128
|
-
const
|
|
1129
|
-
return !!o(
|
|
1126
|
+
const $ = h[0];
|
|
1127
|
+
return l.findIndex((_) => {
|
|
1128
|
+
const k = Object.keys(_);
|
|
1129
|
+
return !!o(k, $, 0, h);
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
|
-
function p(
|
|
1132
|
+
function p(f, d) {
|
|
1133
1133
|
let m = "";
|
|
1134
|
-
const
|
|
1135
|
-
let
|
|
1136
|
-
for (let
|
|
1137
|
-
const
|
|
1138
|
-
if (
|
|
1139
|
-
|
|
1140
|
-
else if (
|
|
1141
|
-
|
|
1142
|
-
else if (
|
|
1134
|
+
const h = d.length;
|
|
1135
|
+
let $ = 0;
|
|
1136
|
+
for (let _ = f; _ < h; _++) {
|
|
1137
|
+
const k = d.charAt(_);
|
|
1138
|
+
if (k === "(")
|
|
1139
|
+
$++;
|
|
1140
|
+
else if (k === ")")
|
|
1141
|
+
$--;
|
|
1142
|
+
else if ($ === 0 && k === " ")
|
|
1143
1143
|
continue;
|
|
1144
|
-
if (
|
|
1145
|
-
return [m,
|
|
1146
|
-
m +=
|
|
1144
|
+
if ($ === 0 && o(s, k, _, d))
|
|
1145
|
+
return [m, _ - 1];
|
|
1146
|
+
m += k;
|
|
1147
1147
|
}
|
|
1148
1148
|
return [m, d.length - 1];
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
const m = l[d],
|
|
1152
|
-
let
|
|
1153
|
-
const
|
|
1154
|
-
|
|
1150
|
+
function g(f, d = 0) {
|
|
1151
|
+
const m = l[d], h = f.length, $ = Object.keys(m);
|
|
1152
|
+
let _ = 0, k = !1, c = null, b = "", C = null, L, B = "", S = "", R = "", x = "", N = 0;
|
|
1153
|
+
const Z = (M, W) => {
|
|
1154
|
+
M ? R += W : b += W;
|
|
1155
1155
|
};
|
|
1156
|
-
for (let
|
|
1157
|
-
if (B = S, S =
|
|
1158
|
-
|
|
1156
|
+
for (let M = 0; M < h; M++)
|
|
1157
|
+
if (B = S, S = f.charAt(M), (S === "'" || S === '"') && B !== "\\" && (_ === 0 && !k || _ && !x)) {
|
|
1158
|
+
_ ? x = S : k = S, Z(_, S);
|
|
1159
1159
|
continue;
|
|
1160
|
-
} else if (
|
|
1161
|
-
|
|
1160
|
+
} else if (k && (S !== k || B === "\\") || x && (S !== x || B === "\\")) {
|
|
1161
|
+
Z(_, S);
|
|
1162
1162
|
continue;
|
|
1163
|
-
} else if (
|
|
1164
|
-
|
|
1163
|
+
} else if (k === S) {
|
|
1164
|
+
k = !1, Z(_, S);
|
|
1165
1165
|
continue;
|
|
1166
|
-
} else if (
|
|
1167
|
-
|
|
1166
|
+
} else if (x === S) {
|
|
1167
|
+
x = !1, Z(_, S);
|
|
1168
1168
|
continue;
|
|
1169
1169
|
} else {
|
|
1170
1170
|
if (S === " ")
|
|
1171
1171
|
continue;
|
|
1172
1172
|
if (S === "(")
|
|
1173
|
-
|
|
1173
|
+
_ === 0 ? N = M : R += S, _++;
|
|
1174
1174
|
else if (S === ")")
|
|
1175
|
-
if (
|
|
1176
|
-
const W = typeof b == "string" && b.startsWith("$") ? b : void 0, Le = W &&
|
|
1175
|
+
if (_--, _ === 0) {
|
|
1176
|
+
const W = typeof b == "string" && b.startsWith("$") ? b : void 0, Le = W && f.charAt(M + 1) === ".";
|
|
1177
1177
|
let se = "";
|
|
1178
|
-
Le && ([se,
|
|
1179
|
-
const
|
|
1180
|
-
|
|
1178
|
+
Le && ([se, M] = p(M + 2, f));
|
|
1179
|
+
const Be = c ? d : u(N, f, 0), Pe = u(M, f);
|
|
1180
|
+
Be === -1 && Pe === -1 ? (b = I(R, -1, W, se), typeof b == "string" && (b = R)) : c && (Be >= Pe || Pe === -1) && d === Be ? (C = c.bind(null, I(R, -1, W, se)), c = null, b = "") : Pe > Be && d === Pe ? b = I(R, -1, W, se) : b += `(${R})${Le ? `.${se}` : ""}`, R = "";
|
|
1181
1181
|
} else
|
|
1182
1182
|
R += S;
|
|
1183
|
-
else if (
|
|
1184
|
-
|
|
1183
|
+
else if (_ === 0 && (L = o($, S, M, f))) {
|
|
1184
|
+
M === 0 && q(103, [L, f]), M += L.length - 1, M === f.length - 1 && q(104, [L, f]), c ? b && (C = c.bind(null, I(b, d)), c = m[L].bind(null, C), b = "") : C ? (c = m[L].bind(null, I(C, d)), C = null) : (c = m[L].bind(null, I(b, d)), b = "");
|
|
1185
1185
|
continue;
|
|
1186
1186
|
} else
|
|
1187
|
-
|
|
1187
|
+
Z(_, S);
|
|
1188
1188
|
}
|
|
1189
|
-
return b &&
|
|
1189
|
+
return b && c && (c = c.bind(null, I(b, d))), c = !c && C ? C : c, !c && b && (c = (M, W) => typeof M == "function" ? M(W) : M, c = c.bind(null, I(b, d))), !c && !b && q(105, f), c;
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function I(f, d, m, h) {
|
|
1192
1192
|
if (m) {
|
|
1193
|
-
const
|
|
1194
|
-
let
|
|
1195
|
-
if (typeof
|
|
1196
|
-
const
|
|
1193
|
+
const $ = I(m, l.length);
|
|
1194
|
+
let _, k = h ? J(`$${h}`) : !1;
|
|
1195
|
+
if (typeof $ == "function") {
|
|
1196
|
+
const c = jn(String(f)).map((b) => I(b, -1));
|
|
1197
1197
|
return (b) => {
|
|
1198
|
-
const
|
|
1199
|
-
return typeof
|
|
1200
|
-
const B = i(
|
|
1201
|
-
return
|
|
1202
|
-
if (
|
|
1203
|
-
const
|
|
1204
|
-
R[
|
|
1198
|
+
const C = $(b);
|
|
1199
|
+
return typeof C != "function" ? (Te(150, m), C) : (_ = C(...c.map((L) => typeof L == "function" ? L(b) : L)), k && (k = k.provide((L) => {
|
|
1200
|
+
const B = i(L);
|
|
1201
|
+
return L.reduce((R, x) => {
|
|
1202
|
+
if (x === h || (h == null ? void 0 : h.startsWith(`${x}(`))) {
|
|
1203
|
+
const Z = Tn(_, x);
|
|
1204
|
+
R[x] = () => Z;
|
|
1205
1205
|
} else
|
|
1206
|
-
R[
|
|
1206
|
+
R[x] = B[x];
|
|
1207
1207
|
return R;
|
|
1208
1208
|
}, {});
|
|
1209
|
-
})),
|
|
1209
|
+
})), k ? k() : _);
|
|
1210
1210
|
};
|
|
1211
1211
|
}
|
|
1212
|
-
} else if (typeof
|
|
1213
|
-
if (
|
|
1212
|
+
} else if (typeof f == "string") {
|
|
1213
|
+
if (f === "true")
|
|
1214
1214
|
return !0;
|
|
1215
|
-
if (
|
|
1215
|
+
if (f === "false")
|
|
1216
1216
|
return !1;
|
|
1217
|
-
if (
|
|
1217
|
+
if (f === "undefined")
|
|
1218
1218
|
return;
|
|
1219
|
-
if (
|
|
1220
|
-
return Rn(
|
|
1221
|
-
if (!isNaN(+
|
|
1222
|
-
return Number(
|
|
1219
|
+
if (En(f))
|
|
1220
|
+
return Rn(f.substring(1, f.length - 1));
|
|
1221
|
+
if (!isNaN(+f))
|
|
1222
|
+
return Number(f);
|
|
1223
1223
|
if (d < l.length - 1)
|
|
1224
|
-
return
|
|
1225
|
-
if (
|
|
1226
|
-
const
|
|
1227
|
-
return t.add(
|
|
1228
|
-
return
|
|
1224
|
+
return g(f, d + 1);
|
|
1225
|
+
if (f.startsWith("$")) {
|
|
1226
|
+
const $ = f.substring(1);
|
|
1227
|
+
return t.add($), function(k) {
|
|
1228
|
+
return $ in k ? k[$]() : void 0;
|
|
1229
1229
|
};
|
|
1230
1230
|
}
|
|
1231
|
-
return
|
|
1231
|
+
return f;
|
|
1232
1232
|
}
|
|
1233
|
-
return
|
|
1233
|
+
return f;
|
|
1234
1234
|
}
|
|
1235
|
-
const
|
|
1236
|
-
function
|
|
1237
|
-
return i =
|
|
1235
|
+
const H = g(e.startsWith("$:") ? e.substring(2) : e), v = Array.from(t);
|
|
1236
|
+
function y(f) {
|
|
1237
|
+
return i = f, Object.assign(
|
|
1238
1238
|
// @ts-ignore - @rollup/plugin-typescript doesn't like this
|
|
1239
|
-
|
|
1240
|
-
{ provide:
|
|
1239
|
+
H.bind(null, f(v)),
|
|
1240
|
+
{ provide: y }
|
|
1241
1241
|
);
|
|
1242
1242
|
}
|
|
1243
|
-
return Object.assign(
|
|
1244
|
-
provide:
|
|
1243
|
+
return Object.assign(H, {
|
|
1244
|
+
provide: y
|
|
1245
1245
|
});
|
|
1246
1246
|
}
|
|
1247
|
-
const
|
|
1248
|
-
function
|
|
1247
|
+
const xt = "1.0.0";
|
|
1248
|
+
function tl(e) {
|
|
1249
1249
|
let i = 1;
|
|
1250
1250
|
return Array.isArray(e) ? e.map((t) => typeof t == "string" || typeof t == "number" ? {
|
|
1251
1251
|
label: String(t),
|
|
@@ -1270,9 +1270,9 @@ function Ve(e, i) {
|
|
|
1270
1270
|
return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : ke(e) && ke(i) ? ue(e, i) : !1;
|
|
1271
1271
|
}
|
|
1272
1272
|
function gt(e) {
|
|
1273
|
-
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 = tl(i.value)), t(i)));
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1275
|
+
function w(e, i, t = !1) {
|
|
1276
1276
|
return (...n) => {
|
|
1277
1277
|
const l = (s) => {
|
|
1278
1278
|
const r = !i || typeof i == "string" ? { $el: i } : i();
|
|
@@ -1287,22 +1287,22 @@ function C(e, i, t = !1) {
|
|
|
1287
1287
|
else: e in s ? Ae(r, s[e]) : r
|
|
1288
1288
|
};
|
|
1289
1289
|
};
|
|
1290
|
-
return l._s = e, t ?
|
|
1290
|
+
return l._s = e, t ? nl(l) : l;
|
|
1291
1291
|
};
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function nl(e) {
|
|
1294
1294
|
return (i) => [e(i)];
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function He(e) {
|
|
1297
1297
|
return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
|
|
1298
1298
|
}
|
|
1299
1299
|
function Ae(e, i = {}) {
|
|
1300
|
-
return typeof e == "string" ?
|
|
1300
|
+
return typeof e == "string" ? He(i) || typeof i == "string" ? i : e : Array.isArray(e) ? He(i) ? i : e : Qe(e, i);
|
|
1301
1301
|
}
|
|
1302
|
-
const
|
|
1302
|
+
const il = w("actions", () => ({
|
|
1303
1303
|
$el: "div",
|
|
1304
1304
|
if: "$actions"
|
|
1305
|
-
})),
|
|
1305
|
+
})), qe = w("input", () => ({
|
|
1306
1306
|
$el: "input",
|
|
1307
1307
|
bind: "$attrs",
|
|
1308
1308
|
attrs: {
|
|
@@ -1328,19 +1328,19 @@ const nl = C("actions", () => ({
|
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
-
})),
|
|
1331
|
+
})), on = w("optionHelp", () => ({
|
|
1332
1332
|
$el: "div",
|
|
1333
1333
|
if: "$option.help",
|
|
1334
1334
|
attrs: {
|
|
1335
1335
|
id: '$: "help-" + $option.attrs.id'
|
|
1336
1336
|
}
|
|
1337
|
-
})),
|
|
1337
|
+
})), Mt = w("inner", "span"), Ze = w("label", "span"), un = w("option", () => ({
|
|
1338
1338
|
$el: "li",
|
|
1339
1339
|
for: ["option", "$options"],
|
|
1340
1340
|
attrs: {
|
|
1341
1341
|
"data-disabled": "$option.attrs.disabled || $disabled"
|
|
1342
1342
|
}
|
|
1343
|
-
})),
|
|
1343
|
+
})), fn = w("options", "ul"), Je = w("wrapper", () => ({
|
|
1344
1344
|
$el: "label",
|
|
1345
1345
|
attrs: {
|
|
1346
1346
|
"data-disabled": {
|
|
@@ -1354,7 +1354,7 @@ const nl = C("actions", () => ({
|
|
|
1354
1354
|
else: "$fns.isChecked($option.value) || undefined"
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
})),
|
|
1357
|
+
})), ll = w("input", () => ({
|
|
1358
1358
|
$el: "button",
|
|
1359
1359
|
bind: "$attrs",
|
|
1360
1360
|
attrs: {
|
|
@@ -1363,12 +1363,12 @@ const nl = C("actions", () => ({
|
|
|
1363
1363
|
name: "$node.name",
|
|
1364
1364
|
id: "$id"
|
|
1365
1365
|
}
|
|
1366
|
-
})),
|
|
1366
|
+
})), al = w("default", null), Ye = w("decorator", () => ({
|
|
1367
1367
|
$el: "span",
|
|
1368
1368
|
attrs: {
|
|
1369
1369
|
"aria-hidden": "true"
|
|
1370
1370
|
}
|
|
1371
|
-
})),
|
|
1371
|
+
})), cn = w("fieldset", () => ({
|
|
1372
1372
|
$el: "fieldset",
|
|
1373
1373
|
attrs: {
|
|
1374
1374
|
id: "$id",
|
|
@@ -1378,7 +1378,7 @@ const nl = C("actions", () => ({
|
|
|
1378
1378
|
else: void 0
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
|
-
})),
|
|
1381
|
+
})), sl = w("input", () => ({
|
|
1382
1382
|
$el: "input",
|
|
1383
1383
|
bind: "$attrs",
|
|
1384
1384
|
attrs: {
|
|
@@ -1390,10 +1390,10 @@ const nl = C("actions", () => ({
|
|
|
1390
1390
|
id: "$id",
|
|
1391
1391
|
"aria-describedby": "$describedBy"
|
|
1392
1392
|
}
|
|
1393
|
-
})),
|
|
1393
|
+
})), rl = w("fileItem", () => ({
|
|
1394
1394
|
$el: "li",
|
|
1395
1395
|
for: ["file", "$value"]
|
|
1396
|
-
})),
|
|
1396
|
+
})), ol = w("fileList", () => ({
|
|
1397
1397
|
$el: "ul",
|
|
1398
1398
|
if: "$value.length",
|
|
1399
1399
|
attrs: {
|
|
@@ -1402,17 +1402,18 @@ const nl = C("actions", () => ({
|
|
|
1402
1402
|
then: "true"
|
|
1403
1403
|
}
|
|
1404
1404
|
}
|
|
1405
|
-
})),
|
|
1405
|
+
})), ul = w("fileName", () => ({
|
|
1406
1406
|
$el: "span",
|
|
1407
1407
|
attrs: {
|
|
1408
1408
|
class: "$classes.fileName"
|
|
1409
1409
|
}
|
|
1410
|
-
})),
|
|
1410
|
+
})), Et = w("fileRemove", () => ({
|
|
1411
1411
|
$el: "button",
|
|
1412
1412
|
attrs: {
|
|
1413
|
+
type: "button",
|
|
1413
1414
|
onClick: "$handlers.resetFiles"
|
|
1414
1415
|
}
|
|
1415
|
-
})),
|
|
1416
|
+
})), fl = w("form", () => ({
|
|
1416
1417
|
$el: "form",
|
|
1417
1418
|
bind: "$attrs",
|
|
1418
1419
|
attrs: {
|
|
@@ -1421,13 +1422,13 @@ const nl = C("actions", () => ({
|
|
|
1421
1422
|
onSubmit: "$handlers.submit",
|
|
1422
1423
|
"data-loading": "$state.loading || undefined"
|
|
1423
1424
|
}
|
|
1424
|
-
})), $t =
|
|
1425
|
+
})), $t = w("wrapper", null, !0), X = w("help", () => ({
|
|
1425
1426
|
$el: "div",
|
|
1426
1427
|
if: "$help",
|
|
1427
1428
|
attrs: {
|
|
1428
1429
|
id: '$: "help-" + $id'
|
|
1429
1430
|
}
|
|
1430
|
-
})), z = (e, i) =>
|
|
1431
|
+
})), z = (e, i) => w(`${e}Icon`, () => {
|
|
1431
1432
|
const t = `_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;
|
|
1432
1433
|
return {
|
|
1433
1434
|
if: `$${e}Icon && $${t}`,
|
|
@@ -1442,16 +1443,16 @@ const nl = C("actions", () => ({
|
|
|
1442
1443
|
}
|
|
1443
1444
|
}
|
|
1444
1445
|
};
|
|
1445
|
-
})(),
|
|
1446
|
+
})(), ye = w("inner", "div"), De = w("label", () => ({
|
|
1446
1447
|
$el: "label",
|
|
1447
1448
|
if: "$label",
|
|
1448
1449
|
attrs: {
|
|
1449
1450
|
for: "$id"
|
|
1450
1451
|
}
|
|
1451
|
-
})),
|
|
1452
|
+
})), pn = w("legend", () => ({
|
|
1452
1453
|
$el: "legend",
|
|
1453
1454
|
if: "$label"
|
|
1454
|
-
})), le =
|
|
1455
|
+
})), le = w("message", () => ({
|
|
1455
1456
|
$el: "li",
|
|
1456
1457
|
for: ["message", "$messages"],
|
|
1457
1458
|
attrs: {
|
|
@@ -1459,13 +1460,13 @@ const nl = C("actions", () => ({
|
|
|
1459
1460
|
id: "$id + '-' + $message.key",
|
|
1460
1461
|
"data-message-type": "$message.type"
|
|
1461
1462
|
}
|
|
1462
|
-
})), ae =
|
|
1463
|
+
})), ae = w("messages", () => ({
|
|
1463
1464
|
$el: "ul",
|
|
1464
1465
|
if: "$defaultMessagePlacement && $fns.length($messages)"
|
|
1465
|
-
})),
|
|
1466
|
+
})), cl = w("noFiles", () => ({
|
|
1466
1467
|
$el: "span",
|
|
1467
1468
|
if: "$value.length == 0"
|
|
1468
|
-
})),
|
|
1469
|
+
})), pl = w("option", () => ({
|
|
1469
1470
|
$el: "option",
|
|
1470
1471
|
for: ["option", "$options"],
|
|
1471
1472
|
bind: "$option.attrs",
|
|
@@ -1474,12 +1475,12 @@ const nl = C("actions", () => ({
|
|
|
1474
1475
|
value: "$option.value",
|
|
1475
1476
|
selected: "$fns.isSelected($option)"
|
|
1476
1477
|
}
|
|
1477
|
-
})),
|
|
1478
|
+
})), dl = () => ({
|
|
1478
1479
|
$el: null,
|
|
1479
1480
|
if: "$options.length",
|
|
1480
1481
|
for: ["option", "$options"],
|
|
1481
1482
|
children: "$slots.option"
|
|
1482
|
-
}), fe =
|
|
1483
|
+
}), fe = w("outer", () => ({
|
|
1483
1484
|
$el: "div",
|
|
1484
1485
|
attrs: {
|
|
1485
1486
|
key: "$id",
|
|
@@ -1497,7 +1498,7 @@ const nl = C("actions", () => ({
|
|
|
1497
1498
|
"data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
|
|
1498
1499
|
"data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
|
|
1499
1500
|
}
|
|
1500
|
-
})),
|
|
1501
|
+
})), G = w("prefix", null), ml = w("input", () => ({
|
|
1501
1502
|
$el: "select",
|
|
1502
1503
|
bind: "$attrs",
|
|
1503
1504
|
attrs: {
|
|
@@ -1511,7 +1512,7 @@ const nl = C("actions", () => ({
|
|
|
1511
1512
|
onBlur: "$handlers.blur",
|
|
1512
1513
|
"aria-describedby": "$describedBy"
|
|
1513
1514
|
}
|
|
1514
|
-
})),
|
|
1515
|
+
})), bl = w("submit", () => ({
|
|
1515
1516
|
$cmp: "FormKit",
|
|
1516
1517
|
bind: "$submitAttrs",
|
|
1517
1518
|
props: {
|
|
@@ -1519,7 +1520,7 @@ const nl = C("actions", () => ({
|
|
|
1519
1520
|
disabled: "$disabled",
|
|
1520
1521
|
label: "$submitLabel"
|
|
1521
1522
|
}
|
|
1522
|
-
})),
|
|
1523
|
+
})), ee = w("suffix", null), dn = w("input", () => ({
|
|
1523
1524
|
$el: "input",
|
|
1524
1525
|
bind: "$attrs",
|
|
1525
1526
|
attrs: {
|
|
@@ -1532,7 +1533,7 @@ const nl = C("actions", () => ({
|
|
|
1532
1533
|
id: "$id",
|
|
1533
1534
|
"aria-describedby": "$describedBy"
|
|
1534
1535
|
}
|
|
1535
|
-
})),
|
|
1536
|
+
})), yl = w("input", () => ({
|
|
1536
1537
|
$el: "textarea",
|
|
1537
1538
|
bind: "$attrs",
|
|
1538
1539
|
attrs: {
|
|
@@ -1545,8 +1546,8 @@ const nl = C("actions", () => ({
|
|
|
1545
1546
|
"aria-describedby": "$describedBy"
|
|
1546
1547
|
},
|
|
1547
1548
|
children: "$initialValue"
|
|
1548
|
-
})), Ie =
|
|
1549
|
-
function
|
|
1549
|
+
})), Ie = w("wrapper", "div");
|
|
1550
|
+
function mn(e) {
|
|
1550
1551
|
return function(i, t) {
|
|
1551
1552
|
return i.prop === "options" && Array.isArray(i.value) && (i.value = i.value.map((n) => {
|
|
1552
1553
|
var l;
|
|
@@ -1560,24 +1561,24 @@ function dn(e) {
|
|
|
1560
1561
|
}))), t(i);
|
|
1561
1562
|
};
|
|
1562
1563
|
}
|
|
1563
|
-
function
|
|
1564
|
+
function vl(e, i) {
|
|
1564
1565
|
const t = i.target;
|
|
1565
1566
|
if (t instanceof HTMLInputElement) {
|
|
1566
1567
|
const n = Array.isArray(e.props.options) ? Se(e.props.options, t.value) : t.value;
|
|
1567
1568
|
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);
|
|
1568
1569
|
}
|
|
1569
1570
|
}
|
|
1570
|
-
function
|
|
1571
|
+
function hl(e, i) {
|
|
1571
1572
|
var t, n;
|
|
1572
1573
|
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;
|
|
1573
1574
|
}
|
|
1574
|
-
function
|
|
1575
|
+
function _l(e) {
|
|
1575
1576
|
e.on("created", () => {
|
|
1576
1577
|
var i, t;
|
|
1577
|
-
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked =
|
|
1578
|
-
}), e.hook.prop(
|
|
1578
|
+
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = vl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = hl.bind(null, e)), F(e.props, "onValue") || (e.props.onValue = !0), F(e.props, "offValue") || (e.props.offValue = !1);
|
|
1579
|
+
}), e.hook.prop(mn(e));
|
|
1579
1580
|
}
|
|
1580
|
-
function
|
|
1581
|
+
function ge(e, i) {
|
|
1581
1582
|
return (t) => {
|
|
1582
1583
|
t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = i.startsWith("<svg") ? i : `default:${i}`);
|
|
1583
1584
|
};
|
|
@@ -1589,7 +1590,7 @@ function wt(e) {
|
|
|
1589
1590
|
e.config.disabled = Y(i);
|
|
1590
1591
|
});
|
|
1591
1592
|
}
|
|
1592
|
-
function
|
|
1593
|
+
function Me(e, i) {
|
|
1593
1594
|
return (t) => {
|
|
1594
1595
|
t.store.set(oe({
|
|
1595
1596
|
key: e,
|
|
@@ -1603,14 +1604,14 @@ function ze(e, i) {
|
|
|
1603
1604
|
};
|
|
1604
1605
|
}
|
|
1605
1606
|
const tt = typeof window < "u";
|
|
1606
|
-
function
|
|
1607
|
+
function bn(e) {
|
|
1607
1608
|
e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
|
|
1608
1609
|
}
|
|
1609
1610
|
function Rt(e, i) {
|
|
1610
|
-
i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" &&
|
|
1611
|
+
i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && bn(i);
|
|
1611
1612
|
}
|
|
1612
|
-
function
|
|
1613
|
-
|
|
1613
|
+
function gl(e) {
|
|
1614
|
+
Me("noFiles", "Select file")(e), Me("removeAll", "Remove all")(e), Me("remove")(e), tt && (window._FormKit_File_Drop || (window.addEventListener("dragover", Rt.bind(null, "dragover")), window.addEventListener("drop", Rt.bind(null, "drop")), window.addEventListener("dragleave", bn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("reset", () => {
|
|
1614
1615
|
if (e.props.id && tt) {
|
|
1615
1616
|
const i = document.getElementById(e.props.id);
|
|
1616
1617
|
i && (i.value = "");
|
|
@@ -1619,7 +1620,7 @@ function _l(e) {
|
|
|
1619
1620
|
Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (i) => {
|
|
1620
1621
|
if (i.preventDefault(), e.input([]), e.props.id && tt) {
|
|
1621
1622
|
const t = document.getElementById(e.props.id);
|
|
1622
|
-
t && (t.value = "");
|
|
1623
|
+
t && (t.value = ""), t == null || t.focus();
|
|
1623
1624
|
}
|
|
1624
1625
|
}, e.context.handlers.files = (i) => {
|
|
1625
1626
|
var t, n;
|
|
@@ -1635,21 +1636,21 @@ function _l(e) {
|
|
|
1635
1636
|
});
|
|
1636
1637
|
});
|
|
1637
1638
|
}
|
|
1638
|
-
const
|
|
1639
|
+
const jt = oe({
|
|
1639
1640
|
key: "loading",
|
|
1640
1641
|
value: !0,
|
|
1641
1642
|
visible: !1
|
|
1642
1643
|
});
|
|
1643
|
-
async function
|
|
1644
|
+
async function $l(e, i) {
|
|
1644
1645
|
const t = Math.random();
|
|
1645
|
-
if (e.props._submitNonce = t, i.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(
|
|
1646
|
+
if (e.props._submitNonce = t, i.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(jt), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== t))
|
|
1646
1647
|
return;
|
|
1647
1648
|
const n = (l) => l.store.set(oe({
|
|
1648
1649
|
key: "submitted",
|
|
1649
1650
|
value: !0,
|
|
1650
1651
|
visible: !1
|
|
1651
1652
|
}));
|
|
1652
|
-
if (e.walk(n), n(e), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
|
|
1653
|
+
if (e.walk(n), n(e), e.emit("submit-raw"), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
|
|
1653
1654
|
typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(oe({
|
|
1654
1655
|
blocking: !1,
|
|
1655
1656
|
key: "incomplete",
|
|
@@ -1665,26 +1666,26 @@ async function gl(e, i) {
|
|
|
1665
1666
|
const l = e.props.onSubmit(e.hook.submit.dispatch(Re(e.value)), e);
|
|
1666
1667
|
if (l instanceof Promise) {
|
|
1667
1668
|
const s = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
|
|
1668
|
-
s && (e.props.disabled = !0), e.store.set(
|
|
1669
|
+
s && (e.props.disabled = !0), e.store.set(jt), await l, s && (e.props.disabled = !1), e.store.remove("loading");
|
|
1669
1670
|
}
|
|
1670
1671
|
} else
|
|
1671
1672
|
i.target instanceof HTMLFormElement && i.target.submit();
|
|
1672
1673
|
}
|
|
1673
|
-
function
|
|
1674
|
+
function wl(e) {
|
|
1674
1675
|
e.props.isForm = !0, e.ledger.count("validating", (i) => i.key === "validating"), e.on("created", () => {
|
|
1675
1676
|
var i;
|
|
1676
|
-
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit =
|
|
1677
|
+
!((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = $l.bind(null, e)), F(e.props, "actions") || (e.props.actions = !0);
|
|
1677
1678
|
}), e.on("settled:blocking", () => e.store.remove("incomplete"));
|
|
1678
1679
|
}
|
|
1679
|
-
function
|
|
1680
|
+
function kl(e) {
|
|
1680
1681
|
e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
|
|
1681
1682
|
}
|
|
1682
|
-
function
|
|
1683
|
+
function Cl(e) {
|
|
1683
1684
|
e.on("created", () => {
|
|
1684
1685
|
e.context && (e.context.initialValue = e.value || "");
|
|
1685
1686
|
});
|
|
1686
1687
|
}
|
|
1687
|
-
function
|
|
1688
|
+
function yn(e) {
|
|
1688
1689
|
if (typeof e.props.number > "u")
|
|
1689
1690
|
return;
|
|
1690
1691
|
const i = ["number", "range", "hidden"].includes(e.props.type);
|
|
@@ -1695,30 +1696,30 @@ function bn(e) {
|
|
|
1695
1696
|
return Number.isFinite(l) ? n(l) : n(i ? void 0 : t);
|
|
1696
1697
|
});
|
|
1697
1698
|
}
|
|
1698
|
-
function
|
|
1699
|
+
function Sl(e, i) {
|
|
1699
1700
|
i.target instanceof HTMLInputElement && e.input(Se(e.props.options, i.target.value));
|
|
1700
1701
|
}
|
|
1701
|
-
function
|
|
1702
|
+
function Vl(e, i) {
|
|
1702
1703
|
var t, n;
|
|
1703
1704
|
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);
|
|
1704
1705
|
}
|
|
1705
|
-
function
|
|
1706
|
+
function Il(e) {
|
|
1706
1707
|
e.on("created", () => {
|
|
1707
1708
|
var i, t;
|
|
1708
|
-
Array.isArray(e.props.options) ||
|
|
1709
|
+
Array.isArray(e.props.options) || Te(350, {
|
|
1709
1710
|
node: e,
|
|
1710
1711
|
inputType: "radio"
|
|
1711
|
-
}), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked =
|
|
1712
|
-
}), e.hook.prop(
|
|
1713
|
-
}
|
|
1714
|
-
let Il = 0;
|
|
1715
|
-
function Ll(e) {
|
|
1716
|
-
e.sync && e.plugins.add(Pl);
|
|
1712
|
+
}), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = Sl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = Vl.bind(null, e));
|
|
1713
|
+
}), e.hook.prop(mn(e));
|
|
1717
1714
|
}
|
|
1715
|
+
let Ll = 0;
|
|
1718
1716
|
function Pl(e) {
|
|
1719
|
-
e.
|
|
1717
|
+
e.sync && e.plugins.add(Al);
|
|
1718
|
+
}
|
|
1719
|
+
function Al(e) {
|
|
1720
|
+
e.props.type === "radio" && (e.props.altName = `${e.name}_${Ll++}`);
|
|
1720
1721
|
}
|
|
1721
|
-
function
|
|
1722
|
+
function Ol(e, i) {
|
|
1722
1723
|
e.context && e.context.value;
|
|
1723
1724
|
const t = "__original" in i ? i.__original : i.value;
|
|
1724
1725
|
function n() {
|
|
@@ -1726,15 +1727,15 @@ function Al(e, i) {
|
|
|
1726
1727
|
}
|
|
1727
1728
|
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);
|
|
1728
1729
|
}
|
|
1729
|
-
async function
|
|
1730
|
+
async function xl(e, i) {
|
|
1730
1731
|
var t;
|
|
1731
1732
|
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));
|
|
1732
1733
|
}
|
|
1733
|
-
function
|
|
1734
|
+
function Ml(e, i) {
|
|
1734
1735
|
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);
|
|
1735
1736
|
e.input(n);
|
|
1736
1737
|
}
|
|
1737
|
-
function
|
|
1738
|
+
function Ft(e, i) {
|
|
1738
1739
|
return e.some((t) => t.attrs && t.attrs["data-is-placeholder"]) ? e : [
|
|
1739
1740
|
{
|
|
1740
1741
|
label: i,
|
|
@@ -1748,17 +1749,17 @@ function jt(e, i) {
|
|
|
1748
1749
|
...e
|
|
1749
1750
|
];
|
|
1750
1751
|
}
|
|
1751
|
-
function
|
|
1752
|
+
function El(e) {
|
|
1752
1753
|
e.on("created", () => {
|
|
1753
1754
|
var i, t, n;
|
|
1754
1755
|
const l = Y((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
|
|
1755
|
-
!l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r =
|
|
1756
|
+
!l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r = Ft(r, e.props.placeholder)), o({ prop: s, value: r }))), e.props.options = Ft(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, {
|
|
1756
1757
|
value: e._value
|
|
1757
1758
|
}), e.on("input", ({ payload: s }) => {
|
|
1758
1759
|
e.props.attrs = Object.assign({}, e.props.attrs, {
|
|
1759
1760
|
value: s
|
|
1760
1761
|
});
|
|
1761
|
-
})), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput =
|
|
1762
|
+
})), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = Ml.bind(null, e), e.context.handlers.onChange = xl.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = Ol.bind(null, e), e.context.fns.showPlaceholder = (s, r) => {
|
|
1762
1763
|
if (!Array.isArray(e.props.options))
|
|
1763
1764
|
return !1;
|
|
1764
1765
|
const o = e.props.options.some((u) => {
|
|
@@ -1775,34 +1776,34 @@ function Ml(e) {
|
|
|
1775
1776
|
});
|
|
1776
1777
|
}
|
|
1777
1778
|
function pt(e) {
|
|
1778
|
-
return !!(
|
|
1779
|
+
return !!(_e(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
|
|
1779
1780
|
}
|
|
1780
1781
|
function Rl(e) {
|
|
1781
|
-
return fe(Ie(
|
|
1782
|
+
return fe(Ie(De("$label"), ye(G(), e(), ee())), X("$help"), ae(le("$message.value")));
|
|
1782
1783
|
}
|
|
1783
1784
|
function ie(e, i, t) {
|
|
1784
1785
|
const n = (l) => {
|
|
1785
1786
|
const s = i(l);
|
|
1786
|
-
if (t ||
|
|
1787
|
+
if (t || He(s) && "if" in s || pt(s)) {
|
|
1787
1788
|
const r = {
|
|
1788
1789
|
if: e,
|
|
1789
1790
|
then: s
|
|
1790
1791
|
};
|
|
1791
1792
|
return t && (r.else = t(l)), r;
|
|
1792
1793
|
} else
|
|
1793
|
-
pt(s) ? Object.assign(s.else, { if: e }) :
|
|
1794
|
+
pt(s) ? Object.assign(s.else, { if: e }) : He(s) && Object.assign(s, { if: e });
|
|
1794
1795
|
return s;
|
|
1795
1796
|
};
|
|
1796
|
-
return n._s =
|
|
1797
|
+
return n._s = Fe(), n;
|
|
1797
1798
|
}
|
|
1798
|
-
function
|
|
1799
|
+
function $e(e, i) {
|
|
1799
1800
|
const t = (n) => {
|
|
1800
1801
|
const l = e({});
|
|
1801
1802
|
return pt(l) ? (Array.isArray(l.else) || (l.else = Ae(Ae(l.else, i), e._s ? n[e._s] : {})), l) : Ae(Ae(l, i), e._s ? n[e._s] : {});
|
|
1802
1803
|
};
|
|
1803
1804
|
return t._s = e._s, t;
|
|
1804
1805
|
}
|
|
1805
|
-
const
|
|
1806
|
+
const jl = [
|
|
1806
1807
|
"classes",
|
|
1807
1808
|
"config",
|
|
1808
1809
|
"delay",
|
|
@@ -1831,38 +1832,38 @@ const El = [
|
|
|
1831
1832
|
"onSubmitInvalid",
|
|
1832
1833
|
"onSubmitRaw"
|
|
1833
1834
|
];
|
|
1834
|
-
fe(ae(le("$message.value")), Ie(
|
|
1835
|
+
fe(ae(le("$message.value")), Ie(ll(z("prefix"), G(), al("$label || $ui.submit.value"), ee(), z("suffix"))), X("$help")), Me("submit");
|
|
1835
1836
|
fe(
|
|
1836
1837
|
ie(
|
|
1837
1838
|
"$options == undefined",
|
|
1838
1839
|
/**
|
|
1839
1840
|
* Single checkbox structure.
|
|
1840
1841
|
*/
|
|
1841
|
-
|
|
1842
|
+
Je(Mt(G(), qe(), Ye(z("decorator")), ee()), $e(Ze("$label"), {
|
|
1842
1843
|
if: "$label"
|
|
1843
1844
|
})),
|
|
1844
1845
|
/**
|
|
1845
1846
|
* Multi checkbox structure.
|
|
1846
1847
|
*/
|
|
1847
|
-
|
|
1848
|
+
cn(pn("$label"), X("$help"), fn(un(Je(Mt(G(), $e(qe(), {
|
|
1848
1849
|
bind: "$option.attrs",
|
|
1849
1850
|
attrs: {
|
|
1850
1851
|
id: "$option.attrs.id",
|
|
1851
1852
|
value: "$option.value",
|
|
1852
1853
|
checked: "$fns.isChecked($option.value)"
|
|
1853
1854
|
}
|
|
1854
|
-
}),
|
|
1855
|
+
}), Ye(z("decorator")), ee()), $e(Ze("$option.label"), {
|
|
1855
1856
|
if: "$option.label"
|
|
1856
|
-
})),
|
|
1857
|
+
})), on("$option.help"))))
|
|
1857
1858
|
),
|
|
1858
1859
|
// Help text only goes under the input when it is a single.
|
|
1859
|
-
ie("$options == undefined && $help",
|
|
1860
|
+
ie("$options == undefined && $help", X("$help")),
|
|
1860
1861
|
ae(le("$message.value"))
|
|
1861
|
-
),
|
|
1862
|
-
fe(Ie(
|
|
1863
|
-
|
|
1862
|
+
), ge("decorator", "checkboxDecorator");
|
|
1863
|
+
fe(Ie(De("$label"), ye(z("prefix", "label"), G(), sl(), ol(rl(z("fileItem"), ul("$file.name"), ie("$value.length === 1", Et(z("fileRemove"), '$ui.remove.value + " " + $file.name')))), ie("$value.length > 1", Et("$ui.removeAll.value")), cl(z("noFiles"), "$ui.noFiles.value"), ee(), z("suffix"))), X("$help"), ae(le("$message.value"))), ge("fileItem", "fileItem"), ge("fileRemove", "fileRemove"), ge("noFiles", "noFiles");
|
|
1864
|
+
fl("$slots.default", ae(le("$message.value")), il(bl()));
|
|
1864
1865
|
$t("$slots.default");
|
|
1865
|
-
|
|
1866
|
+
dn();
|
|
1866
1867
|
$t("$slots.default");
|
|
1867
1868
|
$t();
|
|
1868
1869
|
fe(
|
|
@@ -1871,30 +1872,30 @@ fe(
|
|
|
1871
1872
|
/**
|
|
1872
1873
|
* Single radio structure.
|
|
1873
1874
|
*/
|
|
1874
|
-
|
|
1875
|
+
Je(ye(G(), qe(), Ye(z("decorator")), ee()), $e(Ze("$label"), {
|
|
1875
1876
|
if: "$label"
|
|
1876
1877
|
})),
|
|
1877
1878
|
/**
|
|
1878
1879
|
* Multi radio structure.
|
|
1879
1880
|
*/
|
|
1880
|
-
|
|
1881
|
+
cn(pn("$label"), X("$help"), fn(un(Je(ye(G(), $e(qe(), {
|
|
1881
1882
|
bind: "$option.attrs",
|
|
1882
1883
|
attrs: {
|
|
1883
1884
|
id: "$option.attrs.id",
|
|
1884
1885
|
value: "$option.value",
|
|
1885
1886
|
checked: "$fns.isChecked($option.value)"
|
|
1886
1887
|
}
|
|
1887
|
-
}),
|
|
1888
|
+
}), Ye(z("decorator")), ee()), $e(Ze("$option.label"), {
|
|
1888
1889
|
if: "$option.label"
|
|
1889
|
-
})),
|
|
1890
|
+
})), on("$option.help"))))
|
|
1890
1891
|
),
|
|
1891
1892
|
// Help text only goes under the input when it is a single.
|
|
1892
|
-
ie("$options == undefined && $help",
|
|
1893
|
+
ie("$options == undefined && $help", X("$help")),
|
|
1893
1894
|
ae(le("$message.value"))
|
|
1894
|
-
),
|
|
1895
|
-
fe(Ie(
|
|
1896
|
-
fe(Ie(
|
|
1897
|
-
fe(Ie(
|
|
1895
|
+
), ge("decorator", "radioDecorator");
|
|
1896
|
+
fe(Ie(De("$label"), ye(z("prefix"), G(), ml(ie("$slots.default", () => "$slots.default", ie("$slots.option", dl, pl("$option.label")))), ie("$attrs.multiple !== undefined", () => "", z("select")), ee(), z("suffix"))), X("$help"), ae(le("$message.value"))), ge("select", "select");
|
|
1897
|
+
fe(Ie(De("$label"), ye(z("prefix", "label"), G(), yl(), ee(), z("suffix"))), X("$help"), ae(le("$message.value")));
|
|
1898
|
+
fe(Ie(De("$label"), ye(z("prefix", "label"), G(), dn(), ee(), z("suffix"))), X("$help"), ae(le("$message.value")));
|
|
1898
1899
|
oe({
|
|
1899
1900
|
type: "state",
|
|
1900
1901
|
blocking: !0,
|
|
@@ -1902,10 +1903,10 @@ oe({
|
|
|
1902
1903
|
value: !0,
|
|
1903
1904
|
key: "validating"
|
|
1904
1905
|
});
|
|
1905
|
-
let
|
|
1906
|
-
const
|
|
1906
|
+
let Ne;
|
|
1907
|
+
const Fl = new Promise((e) => {
|
|
1907
1908
|
}), Ge = typeof window < "u" && typeof fetch < "u";
|
|
1908
|
-
|
|
1909
|
+
Ne = Ge ? getComputedStyle(document.documentElement) : void 0;
|
|
1909
1910
|
const Oe = {}, nt = {};
|
|
1910
1911
|
function it(e, i) {
|
|
1911
1912
|
return (t) => {
|
|
@@ -1920,28 +1921,28 @@ function it(e, i) {
|
|
|
1920
1921
|
if (l)
|
|
1921
1922
|
return Oe[t];
|
|
1922
1923
|
if (!nt[t]) {
|
|
1923
|
-
if (s =
|
|
1924
|
-
nt[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) :
|
|
1924
|
+
if (s = Tl(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
|
|
1925
|
+
nt[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) : Bl(t, i) : r).then((r) => (typeof t == "string" && (Oe[n ? `default:${t}` : t] = r), r));
|
|
1925
1926
|
else if (typeof s == "string")
|
|
1926
1927
|
return Oe[n ? `default:${t}` : t] = s, s;
|
|
1927
1928
|
}
|
|
1928
1929
|
return nt[t];
|
|
1929
1930
|
};
|
|
1930
1931
|
}
|
|
1931
|
-
function
|
|
1932
|
+
function Tl(e) {
|
|
1932
1933
|
if (Ge)
|
|
1933
|
-
return
|
|
1934
|
+
return Fl.then(() => Dl(e));
|
|
1934
1935
|
}
|
|
1935
1936
|
function Dl(e) {
|
|
1936
|
-
const i =
|
|
1937
|
+
const i = Ne == null ? void 0 : Ne.getPropertyValue(`--fk-icon-${e}`);
|
|
1937
1938
|
if (i) {
|
|
1938
1939
|
const t = atob(i);
|
|
1939
1940
|
if (t.startsWith("<svg"))
|
|
1940
1941
|
return Oe[e] = t, t;
|
|
1941
1942
|
}
|
|
1942
1943
|
}
|
|
1943
|
-
function
|
|
1944
|
-
const t =
|
|
1944
|
+
function Bl(e, i) {
|
|
1945
|
+
const t = xt.startsWith("__") ? "latest" : xt, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
|
|
1945
1946
|
if (Ge)
|
|
1946
1947
|
return fetch(`${n}`).then(async (l) => {
|
|
1947
1948
|
const s = await l.text();
|
|
@@ -1952,7 +1953,7 @@ function Tl(e, i) {
|
|
|
1952
1953
|
});
|
|
1953
1954
|
}
|
|
1954
1955
|
let kt = !1;
|
|
1955
|
-
const
|
|
1956
|
+
const Tt = {
|
|
1956
1957
|
/**
|
|
1957
1958
|
* FormKit errors:
|
|
1958
1959
|
*/
|
|
@@ -1995,40 +1996,40 @@ const Ft = {
|
|
|
1995
1996
|
* Deprecation warnings:
|
|
1996
1997
|
*/
|
|
1997
1998
|
800: ({ data: e }) => `${e} is deprecated.`
|
|
1998
|
-
},
|
|
1999
|
-
if (e.code in
|
|
2000
|
-
const t =
|
|
1999
|
+
}, zl = (e, i) => {
|
|
2000
|
+
if (e.code in Tt) {
|
|
2001
|
+
const t = Tt[e.code];
|
|
2001
2002
|
e.message = typeof t == "function" ? t(e) : t;
|
|
2002
2003
|
}
|
|
2003
2004
|
return i(e);
|
|
2004
2005
|
};
|
|
2005
|
-
kt || bt(
|
|
2006
|
-
const
|
|
2006
|
+
kt || bt(zl);
|
|
2007
|
+
const Ul = (e, i) => {
|
|
2007
2008
|
if (e.code in Dt) {
|
|
2008
2009
|
const t = Dt[e.code];
|
|
2009
2010
|
e.message = typeof t == "function" ? t(e) : t;
|
|
2010
2011
|
}
|
|
2011
2012
|
return i(e);
|
|
2012
2013
|
};
|
|
2013
|
-
kt || yt(
|
|
2014
|
+
kt || yt(Ul);
|
|
2014
2015
|
kt = !0;
|
|
2015
|
-
const
|
|
2016
|
-
function
|
|
2016
|
+
const Kl = typeof window > "u", lt = /* @__PURE__ */ new Map();
|
|
2017
|
+
function Nl(e, i) {
|
|
2017
2018
|
var t;
|
|
2018
|
-
!
|
|
2019
|
+
!Kl || !e || (lt.has(e) || lt.set(e, /* @__PURE__ */ new Set()), (t = lt.get(e)) === null || t === void 0 || t.add(i));
|
|
2019
2020
|
}
|
|
2020
|
-
const
|
|
2021
|
+
const vn = typeof window > "u", Ee = {}, we = {};
|
|
2021
2022
|
let K;
|
|
2022
|
-
const
|
|
2023
|
-
function
|
|
2024
|
-
const t =
|
|
2023
|
+
const ne = /* @__PURE__ */ new WeakMap(), Wl = "__raw__", Hl = /[a-zA-Z0-9\-][cC]lass$/;
|
|
2024
|
+
function ql(e, i) {
|
|
2025
|
+
const t = Q(null);
|
|
2025
2026
|
if (e === "get") {
|
|
2026
2027
|
const l = {};
|
|
2027
|
-
return t.value =
|
|
2028
|
+
return t.value = Zl.bind(null, l), t;
|
|
2028
2029
|
}
|
|
2029
2030
|
const n = e.split(".");
|
|
2030
|
-
return
|
|
2031
|
-
t.value = Ct(
|
|
2031
|
+
return te(() => {
|
|
2032
|
+
t.value = Ct(Ln(i) ? i.value : i, n);
|
|
2032
2033
|
}), t;
|
|
2033
2034
|
}
|
|
2034
2035
|
function Ct(e, i) {
|
|
@@ -2056,209 +2057,209 @@ function Ct(e, i) {
|
|
|
2056
2057
|
}
|
|
2057
2058
|
return t;
|
|
2058
2059
|
}
|
|
2059
|
-
function
|
|
2060
|
+
function Zl(e, i) {
|
|
2060
2061
|
if (typeof i != "string")
|
|
2061
|
-
return
|
|
2062
|
-
if (i in e || (e[i] =
|
|
2062
|
+
return Te(650);
|
|
2063
|
+
if (i in e || (e[i] = Q(void 0)), e[i].value === void 0) {
|
|
2063
2064
|
e[i].value = null;
|
|
2064
|
-
const t =
|
|
2065
|
-
t && (e[i].value = t.context),
|
|
2065
|
+
const t = Xt(i);
|
|
2066
|
+
t && (e[i].value = t.context), si(i, ({ payload: n }) => {
|
|
2066
2067
|
e[i].value = Xe(n) ? n.context : n;
|
|
2067
2068
|
});
|
|
2068
2069
|
}
|
|
2069
2070
|
return e[i].value;
|
|
2070
2071
|
}
|
|
2071
|
-
function
|
|
2072
|
-
function n(
|
|
2073
|
-
const
|
|
2074
|
-
return [
|
|
2075
|
-
}
|
|
2076
|
-
function l(
|
|
2077
|
-
var
|
|
2078
|
-
const m =
|
|
2079
|
-
let
|
|
2080
|
-
return typeof
|
|
2081
|
-
}
|
|
2082
|
-
function s(
|
|
2083
|
-
const d = new Set(Object.keys(
|
|
2084
|
-
(
|
|
2085
|
-
const
|
|
2086
|
-
for (const
|
|
2087
|
-
d.has(
|
|
2072
|
+
function Bt(e, i, t) {
|
|
2073
|
+
function n(v, y) {
|
|
2074
|
+
const f = I(J(y.if), { if: !0 }), d = p(v, y.then), m = y.else ? p(v, y.else) : null;
|
|
2075
|
+
return [f, d, m];
|
|
2076
|
+
}
|
|
2077
|
+
function l(v, y) {
|
|
2078
|
+
var f, d;
|
|
2079
|
+
const m = I(J(v.if));
|
|
2080
|
+
let h = () => y, $ = () => y;
|
|
2081
|
+
return typeof v.then == "object" ? $ = s(v.then, void 0) : typeof v.then == "string" && (!((f = v.then) === null || f === void 0) && f.startsWith("$")) ? $ = I(J(v.then)) : $ = () => v.then, F(v, "else") && (typeof v.else == "object" ? h = s(v.else) : typeof v.else == "string" && (!((d = v.else) === null || d === void 0) && d.startsWith("$")) ? h = I(J(v.else)) : h = () => v.else), () => m() ? $() : h();
|
|
2082
|
+
}
|
|
2083
|
+
function s(v, y, f = {}) {
|
|
2084
|
+
const d = new Set(Object.keys(v || {})), m = y ? I(J(y)) : () => ({}), h = [
|
|
2085
|
+
($) => {
|
|
2086
|
+
const _ = m();
|
|
2087
|
+
for (const k in _)
|
|
2088
|
+
d.has(k) || ($[k] = _[k]);
|
|
2088
2089
|
}
|
|
2089
2090
|
];
|
|
2090
|
-
if (
|
|
2091
|
-
if (
|
|
2092
|
-
return l(
|
|
2093
|
-
for (let
|
|
2094
|
-
const
|
|
2095
|
-
let
|
|
2096
|
-
const
|
|
2097
|
-
|
|
2098
|
-
b[
|
|
2091
|
+
if (v) {
|
|
2092
|
+
if (_e(v))
|
|
2093
|
+
return l(v, f);
|
|
2094
|
+
for (let $ in v) {
|
|
2095
|
+
const _ = v[$];
|
|
2096
|
+
let k;
|
|
2097
|
+
const c = typeof _ == "string";
|
|
2098
|
+
$.startsWith(Wl) ? ($ = $.substring(7), k = () => _) : c && _.startsWith("$") && _.length > 1 && !(_.startsWith("$reset") && Hl.test($)) ? k = I(J(_)) : typeof _ == "object" && _e(_) ? k = l(_, void 0) : typeof _ == "object" && ke(_) ? k = s(_) : k = () => _, h.push((b) => {
|
|
2099
|
+
b[$] = k();
|
|
2099
2100
|
});
|
|
2100
2101
|
}
|
|
2101
2102
|
}
|
|
2102
2103
|
return () => {
|
|
2103
|
-
const
|
|
2104
|
-
return
|
|
2104
|
+
const $ = Array.isArray(v) ? [] : {};
|
|
2105
|
+
return h.forEach((_) => _($)), $;
|
|
2105
2106
|
};
|
|
2106
2107
|
}
|
|
2107
|
-
function r(
|
|
2108
|
-
let
|
|
2109
|
-
const
|
|
2110
|
-
if (ft(
|
|
2111
|
-
if (typeof
|
|
2112
|
-
if (
|
|
2113
|
-
|
|
2114
|
-
else if (
|
|
2115
|
-
const b =
|
|
2116
|
-
|
|
2108
|
+
function r(v, y) {
|
|
2109
|
+
let f = null, d = () => null, m = !1, h = null, $ = null, _ = null, k = !1;
|
|
2110
|
+
const c = el(y);
|
|
2111
|
+
if (ft(c) ? (f = c.$el, d = c.$el !== "text" ? s(c.attrs, c.bind) : () => null) : ct(c) ? (typeof c.$cmp == "string" ? F(v, c.$cmp) ? f = v[c.$cmp] : (f = c.$cmp, k = !0) : f = c.$cmp, d = s(c.props, c.bind)) : _e(c) && ([m, h, $] = n(v, c)), !_e(c) && "if" in c ? m = I(J(c.if)) : !_e(c) && f === null && (m = () => !0), "children" in c && c.children)
|
|
2112
|
+
if (typeof c.children == "string")
|
|
2113
|
+
if (c.children.startsWith("$slots."))
|
|
2114
|
+
f = f === "text" ? "slot" : f, h = I(J(c.children));
|
|
2115
|
+
else if (c.children.startsWith("$") && c.children.length > 1) {
|
|
2116
|
+
const b = I(J(c.children));
|
|
2117
|
+
h = () => String(b());
|
|
2117
2118
|
} else
|
|
2118
|
-
|
|
2119
|
-
else if (Array.isArray(
|
|
2120
|
-
|
|
2119
|
+
h = () => String(c.children);
|
|
2120
|
+
else if (Array.isArray(c.children))
|
|
2121
|
+
h = p(v, c.children);
|
|
2121
2122
|
else {
|
|
2122
|
-
const [b,
|
|
2123
|
-
|
|
2123
|
+
const [b, C, L] = n(v, c.children);
|
|
2124
|
+
h = (B) => b && b() ? C && C(B) : L && L(B);
|
|
2124
2125
|
}
|
|
2125
|
-
if (ct(
|
|
2126
|
-
if (
|
|
2127
|
-
const b =
|
|
2128
|
-
|
|
2129
|
-
default(
|
|
2130
|
-
var S, R,
|
|
2131
|
-
const
|
|
2132
|
-
B && (K = B),
|
|
2133
|
-
const
|
|
2134
|
-
return
|
|
2126
|
+
if (ct(c))
|
|
2127
|
+
if (h) {
|
|
2128
|
+
const b = h;
|
|
2129
|
+
h = (C) => ({
|
|
2130
|
+
default(L, B) {
|
|
2131
|
+
var S, R, x, N;
|
|
2132
|
+
const Z = K;
|
|
2133
|
+
B && (K = B), L && ((S = ne.get(K)) === null || S === void 0 || S.unshift(L)), C && ((R = ne.get(K)) === null || R === void 0 || R.unshift(C));
|
|
2134
|
+
const M = b(C);
|
|
2135
|
+
return L && ((x = ne.get(K)) === null || x === void 0 || x.shift()), C && ((N = ne.get(K)) === null || N === void 0 || N.shift()), K = Z, M;
|
|
2135
2136
|
}
|
|
2136
|
-
}),
|
|
2137
|
+
}), h.slot = !0;
|
|
2137
2138
|
} else
|
|
2138
|
-
|
|
2139
|
-
if ("for" in
|
|
2140
|
-
const b =
|
|
2141
|
-
|
|
2142
|
-
typeof b == "string" && b.startsWith("$") ?
|
|
2143
|
-
|
|
2144
|
-
|
|
2139
|
+
h = () => ({});
|
|
2140
|
+
if ("for" in c && c.for) {
|
|
2141
|
+
const b = c.for.length === 3 ? c.for[2] : c.for[1];
|
|
2142
|
+
_ = [
|
|
2143
|
+
typeof b == "string" && b.startsWith("$") ? I(J(b)) : () => b,
|
|
2144
|
+
c.for[0],
|
|
2145
|
+
c.for.length === 3 ? String(c.for[1]) : null
|
|
2145
2146
|
];
|
|
2146
2147
|
}
|
|
2147
|
-
return [m,
|
|
2148
|
+
return [m, f, d, h, $, _, k];
|
|
2148
2149
|
}
|
|
2149
|
-
function o(
|
|
2150
|
-
const
|
|
2151
|
-
return Object.keys(
|
|
2152
|
-
const
|
|
2153
|
-
return m[
|
|
2150
|
+
function o(v, y) {
|
|
2151
|
+
const f = v(y), d = K;
|
|
2152
|
+
return Object.keys(f).reduce((m, h) => {
|
|
2153
|
+
const $ = f && f[h];
|
|
2154
|
+
return m[h] = (_) => $ && $(_, d) || null, m;
|
|
2154
2155
|
}, {});
|
|
2155
2156
|
}
|
|
2156
|
-
function u(
|
|
2157
|
-
const [
|
|
2158
|
-
let
|
|
2159
|
-
if (
|
|
2160
|
-
return
|
|
2161
|
-
if (d && (!
|
|
2162
|
-
if (d === "text" &&
|
|
2163
|
-
return
|
|
2164
|
-
if (d === "slot" &&
|
|
2165
|
-
return
|
|
2166
|
-
const
|
|
2167
|
-
return
|
|
2157
|
+
function u(v, y) {
|
|
2158
|
+
const [f, d, m, h, $, _, k] = r(v, y);
|
|
2159
|
+
let c = (b) => {
|
|
2160
|
+
if (f && d === null && h)
|
|
2161
|
+
return f() ? h(b) : $ && $(b);
|
|
2162
|
+
if (d && (!f || f())) {
|
|
2163
|
+
if (d === "text" && h)
|
|
2164
|
+
return Pn(String(h()));
|
|
2165
|
+
if (d === "slot" && h)
|
|
2166
|
+
return h(b);
|
|
2167
|
+
const C = k ? j(d) : d, L = h != null && h.slot ? o(h, b) : null;
|
|
2168
|
+
return de(C, m(), L || (h ? h(b) : []));
|
|
2168
2169
|
}
|
|
2169
|
-
return typeof
|
|
2170
|
+
return typeof $ == "function" ? $(b) : $;
|
|
2170
2171
|
};
|
|
2171
|
-
if (
|
|
2172
|
-
const b =
|
|
2173
|
-
|
|
2174
|
-
const S =
|
|
2172
|
+
if (_) {
|
|
2173
|
+
const b = c, [C, L, B] = _;
|
|
2174
|
+
c = () => {
|
|
2175
|
+
const S = C(), R = Number.isFinite(S) ? Array(Number(S)).fill(0).map((M, W) => W) : S, x = [];
|
|
2175
2176
|
if (typeof R != "object")
|
|
2176
2177
|
return null;
|
|
2177
|
-
const N =
|
|
2178
|
-
for (const
|
|
2179
|
-
if (
|
|
2178
|
+
const N = ne.get(K) || [], Z = Array.isArray(R);
|
|
2179
|
+
for (const M in R) {
|
|
2180
|
+
if (Z && M in Array.prototype)
|
|
2180
2181
|
continue;
|
|
2181
2182
|
const W = Object.defineProperty({
|
|
2182
2183
|
...N.reduce((Le, se) => Le.__idata ? { ...Le, ...se } : se, {}),
|
|
2183
|
-
[
|
|
2184
|
-
...B !== null ? { [B]:
|
|
2184
|
+
[L]: R[M],
|
|
2185
|
+
...B !== null ? { [B]: Z ? Number(M) : M } : {}
|
|
2185
2186
|
}, "__idata", { enumerable: !1, value: !0 });
|
|
2186
|
-
N.unshift(W),
|
|
2187
|
+
N.unshift(W), x.push(b.bind(null, W)()), N.shift();
|
|
2187
2188
|
}
|
|
2188
|
-
return
|
|
2189
|
+
return x;
|
|
2189
2190
|
};
|
|
2190
2191
|
}
|
|
2191
|
-
return
|
|
2192
|
+
return c;
|
|
2192
2193
|
}
|
|
2193
|
-
function p(
|
|
2194
|
-
if (Array.isArray(
|
|
2195
|
-
const d =
|
|
2196
|
-
return (m) => d.map((
|
|
2194
|
+
function p(v, y) {
|
|
2195
|
+
if (Array.isArray(y)) {
|
|
2196
|
+
const d = y.map(u.bind(null, v));
|
|
2197
|
+
return (m) => d.map((h) => h(m));
|
|
2197
2198
|
}
|
|
2198
|
-
const
|
|
2199
|
-
return (d) =>
|
|
2199
|
+
const f = u(v, y);
|
|
2200
|
+
return (d) => f(d);
|
|
2200
2201
|
}
|
|
2201
|
-
const
|
|
2202
|
-
function
|
|
2203
|
-
const
|
|
2204
|
-
return
|
|
2205
|
-
|
|
2206
|
-
}), () =>
|
|
2202
|
+
const g = [];
|
|
2203
|
+
function I(v, y = {}) {
|
|
2204
|
+
const f = /* @__PURE__ */ new WeakMap();
|
|
2205
|
+
return g.push((d, m) => {
|
|
2206
|
+
f.set(m, v.provide((h) => d(h, y)));
|
|
2207
|
+
}), () => f.get(K)();
|
|
2207
2208
|
}
|
|
2208
|
-
function
|
|
2209
|
-
var
|
|
2209
|
+
function H(v, y) {
|
|
2210
|
+
var f;
|
|
2210
2211
|
t ?? (t = JSON.stringify(i));
|
|
2211
|
-
const [d, m] = F(
|
|
2212
|
-
return
|
|
2213
|
-
|
|
2214
|
-
}), () => (K =
|
|
2212
|
+
const [d, m] = F(Ee, t) ? Ee[t] : [p(e, i), g];
|
|
2213
|
+
return vn || ((f = we[t]) !== null && f !== void 0 || (we[t] = 0), we[t]++, Ee[t] = [d, m]), m.forEach((h) => {
|
|
2214
|
+
h(v, y);
|
|
2215
|
+
}), () => (K = y, d());
|
|
2215
2216
|
}
|
|
2216
|
-
return
|
|
2217
|
+
return H;
|
|
2217
2218
|
}
|
|
2218
|
-
function
|
|
2219
|
-
const t =
|
|
2219
|
+
function hn(e, i) {
|
|
2220
|
+
const t = ne.get(K) || [];
|
|
2220
2221
|
let n;
|
|
2221
2222
|
return t.length && (n = Ct(t, e.split("."))), n === void 0 ? i : n;
|
|
2222
2223
|
}
|
|
2223
|
-
function
|
|
2224
|
+
function Jl(e, i) {
|
|
2224
2225
|
return new Proxy(e, {
|
|
2225
2226
|
get(...t) {
|
|
2226
2227
|
let n;
|
|
2227
2228
|
const l = t[1];
|
|
2228
2229
|
if (typeof l == "string") {
|
|
2229
2230
|
const s = K;
|
|
2230
|
-
K = i, n =
|
|
2231
|
+
K = i, n = hn(l, void 0), K = s;
|
|
2231
2232
|
}
|
|
2232
2233
|
return n !== void 0 ? n : Reflect.get(...t);
|
|
2233
2234
|
}
|
|
2234
2235
|
});
|
|
2235
2236
|
}
|
|
2236
|
-
function
|
|
2237
|
+
function zt(e, i, t) {
|
|
2237
2238
|
return e((n, l = {}) => n.reduce((s, r) => {
|
|
2238
2239
|
if (r.startsWith("slots.")) {
|
|
2239
2240
|
const o = r.substring(6), u = () => i.slots && F(i.slots, o) && typeof i.slots[o] == "function";
|
|
2240
2241
|
if (l.if)
|
|
2241
2242
|
s[r] = u;
|
|
2242
2243
|
else if (i.slots) {
|
|
2243
|
-
const p =
|
|
2244
|
+
const p = Jl(i, t);
|
|
2244
2245
|
s[r] = () => u() ? i.slots[o](p) : null;
|
|
2245
2246
|
}
|
|
2246
2247
|
} else {
|
|
2247
|
-
const o =
|
|
2248
|
-
s[r] = () =>
|
|
2248
|
+
const o = ql(r, i);
|
|
2249
|
+
s[r] = () => hn(r, o.value);
|
|
2249
2250
|
}
|
|
2250
2251
|
return s;
|
|
2251
2252
|
}, {}), t);
|
|
2252
2253
|
}
|
|
2253
|
-
function
|
|
2254
|
-
if (i ?? (i = JSON.stringify(e)),
|
|
2255
|
-
delete
|
|
2256
|
-
const [, n] =
|
|
2257
|
-
delete
|
|
2254
|
+
function Ut(e, i, t) {
|
|
2255
|
+
if (i ?? (i = JSON.stringify(e)), we[i]--, we[i] === 0) {
|
|
2256
|
+
delete we[i];
|
|
2257
|
+
const [, n] = Ee[i];
|
|
2258
|
+
delete Ee[i], n.length = 0;
|
|
2258
2259
|
}
|
|
2259
|
-
|
|
2260
|
+
ne.delete(t);
|
|
2260
2261
|
}
|
|
2261
|
-
const
|
|
2262
|
+
const St = O({
|
|
2262
2263
|
name: "FormKitSchema",
|
|
2263
2264
|
props: {
|
|
2264
2265
|
schema: {
|
|
@@ -2282,53 +2283,53 @@ const hn = M({
|
|
|
2282
2283
|
var t;
|
|
2283
2284
|
const n = st();
|
|
2284
2285
|
let l = {};
|
|
2285
|
-
|
|
2286
|
-
let s =
|
|
2287
|
-
|
|
2288
|
-
var
|
|
2289
|
-
const
|
|
2290
|
-
l = {},
|
|
2291
|
-
}, { deep: !0 }),
|
|
2286
|
+
ne.set(l, []);
|
|
2287
|
+
let s = Bt(e.library, e.schema, e.memoKey), r, o;
|
|
2288
|
+
vn || ce(() => e.schema, (p, g) => {
|
|
2289
|
+
var I;
|
|
2290
|
+
const H = l;
|
|
2291
|
+
l = {}, ne.set(l, []), s = Bt(e.library, e.schema, e.memoKey), r = zt(s, o, l), p === g && ((I = n == null ? void 0 : n.proxy) === null || I === void 0 ? void 0 : I.$forceUpdate)(), Ut(e.schema, e.memoKey, H);
|
|
2292
|
+
}, { deep: !0 }), te(() => {
|
|
2292
2293
|
var p;
|
|
2293
2294
|
o = Object.assign($n((p = e.data) !== null && p !== void 0 ? p : {}), {
|
|
2294
2295
|
slots: i.slots
|
|
2295
|
-
}), i.slots, r =
|
|
2296
|
+
}), i.slots, r = zt(s, o, l);
|
|
2296
2297
|
});
|
|
2297
2298
|
function u() {
|
|
2298
|
-
|
|
2299
|
+
Ut(e.schema, e.memoKey, l), o.node && o.node.destroy(), o.slots = null, o = null, r = null;
|
|
2299
2300
|
}
|
|
2300
|
-
return wn(u),
|
|
2301
|
+
return wn(u), Nl((t = st()) === null || t === void 0 ? void 0 : t.appContext.app, u), () => r ? r() : null;
|
|
2301
2302
|
}
|
|
2302
|
-
}),
|
|
2303
|
-
function
|
|
2304
|
-
const t =
|
|
2305
|
-
if (t.props.definition ||
|
|
2303
|
+
}), Yl = typeof window > "u", je = Symbol("FormKitParent");
|
|
2304
|
+
function Ql(e, i) {
|
|
2305
|
+
const t = ea(e, i);
|
|
2306
|
+
if (t.props.definition || q(600, t), t.props.definition.component)
|
|
2306
2307
|
return () => {
|
|
2307
2308
|
var o;
|
|
2308
|
-
return
|
|
2309
|
+
return de((o = t.props.definition) === null || o === void 0 ? void 0 : o.component, {
|
|
2309
2310
|
context: t.context
|
|
2310
2311
|
}, { ...i.slots });
|
|
2311
2312
|
};
|
|
2312
|
-
const n =
|
|
2313
|
+
const n = Q([]);
|
|
2313
2314
|
let l = t.props.definition.schemaMemoKey;
|
|
2314
2315
|
const s = () => {
|
|
2315
2316
|
var o, u;
|
|
2316
2317
|
const p = (u = (o = t.props) === null || o === void 0 ? void 0 : o.definition) === null || u === void 0 ? void 0 : u.schema;
|
|
2317
|
-
p ||
|
|
2318
|
+
p || q(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;
|
|
2318
2319
|
};
|
|
2319
|
-
s(),
|
|
2320
|
+
s(), Yl || t.on("schema", () => {
|
|
2320
2321
|
l += "♻️", s();
|
|
2321
2322
|
}), i.emit("node", t);
|
|
2322
2323
|
const r = t.props.definition.library;
|
|
2323
|
-
return i.expose({ node: t }), () =>
|
|
2324
|
+
return i.expose({ node: t }), () => de(St, { schema: n.value, data: t.context, library: r, memoKey: l }, { ...i.slots });
|
|
2324
2325
|
}
|
|
2325
|
-
|
|
2326
|
-
props:
|
|
2326
|
+
O(Ql, {
|
|
2327
|
+
props: jl,
|
|
2327
2328
|
inheritAttrs: !1
|
|
2328
2329
|
});
|
|
2329
2330
|
const _n = Symbol();
|
|
2330
|
-
|
|
2331
|
-
const t =
|
|
2331
|
+
O((e, i) => {
|
|
2332
|
+
const t = Q(null), n = Q(!1), l = Q(void 0), s = ce(t, (o) => {
|
|
2332
2333
|
let u = o, p = null;
|
|
2333
2334
|
for (; u = u == null ? void 0 : u.parentNode; )
|
|
2334
2335
|
if (p = u, p instanceof ShadowRoot || p instanceof Document) {
|
|
@@ -2337,13 +2338,13 @@ M((e, i) => {
|
|
|
2337
2338
|
}
|
|
2338
2339
|
s(), n.value = !0;
|
|
2339
2340
|
});
|
|
2340
|
-
|
|
2341
|
+
Nt(_n, l);
|
|
2341
2342
|
function r(o) {
|
|
2342
2343
|
l.value = o;
|
|
2343
2344
|
}
|
|
2344
|
-
return () => n.value && i.slots.default ? i.slots.default() :
|
|
2345
|
+
return () => n.value && i.slots.default ? i.slots.default() : de("template", { ref: t });
|
|
2345
2346
|
});
|
|
2346
|
-
const gn = Symbol.for("FormKitOptions"),
|
|
2347
|
+
const gn = Symbol.for("FormKitOptions"), Xl = typeof window < "u", at = [
|
|
2347
2348
|
"help",
|
|
2348
2349
|
"label",
|
|
2349
2350
|
"ignore",
|
|
@@ -2356,149 +2357,149 @@ const gn = Symbol.for("FormKitOptions"), Ql = typeof window < "u", at = [
|
|
|
2356
2357
|
"suffixIcon",
|
|
2357
2358
|
/^[a-zA-Z-]+(?:-icon|Icon)$/
|
|
2358
2359
|
];
|
|
2359
|
-
function
|
|
2360
|
+
function Kt(e, i) {
|
|
2360
2361
|
i.classes && Object.keys(i.classes).forEach((t) => {
|
|
2361
2362
|
typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], xe(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
|
|
2362
2363
|
});
|
|
2363
2364
|
}
|
|
2364
|
-
function
|
|
2365
|
+
function Gl(e) {
|
|
2365
2366
|
return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, n) => {
|
|
2366
2367
|
const l = `on${n}`;
|
|
2367
2368
|
return l in e && typeof e[l] == "function" && (t[l] = e[l]), t;
|
|
2368
2369
|
}, {}) : {};
|
|
2369
2370
|
}
|
|
2370
|
-
function
|
|
2371
|
+
function ea(e, i, t = {}) {
|
|
2371
2372
|
var n;
|
|
2372
|
-
const l = Object.assign({},
|
|
2373
|
+
const l = Object.assign({}, pe(gn) || {}, t), s = pe(_n, Q(Xl ? document : void 0)), r = st(), o = Gl(r == null ? void 0 : r.vnode.props), u = ["modelValue", "model-value"].some((c) => {
|
|
2373
2374
|
var b;
|
|
2374
|
-
return
|
|
2375
|
+
return c in ((b = r == null ? void 0 : r.vnode.props) !== null && b !== void 0 ? b : {});
|
|
2375
2376
|
});
|
|
2376
2377
|
let p = !1;
|
|
2377
|
-
|
|
2378
|
+
Cn(() => {
|
|
2378
2379
|
p = !0;
|
|
2379
2380
|
});
|
|
2380
|
-
const
|
|
2381
|
-
function
|
|
2382
|
-
var
|
|
2381
|
+
const g = e.modelValue !== void 0 ? e.modelValue : be(i.attrs.value);
|
|
2382
|
+
function I() {
|
|
2383
|
+
var c;
|
|
2383
2384
|
const b = {
|
|
2384
|
-
...
|
|
2385
|
+
...he(e),
|
|
2385
2386
|
...o,
|
|
2386
|
-
type: (
|
|
2387
|
+
type: (c = e.type) !== null && c !== void 0 ? c : "text",
|
|
2387
2388
|
__root: s.value,
|
|
2388
2389
|
__slots: i.slots
|
|
2389
|
-
},
|
|
2390
|
-
|
|
2391
|
-
const
|
|
2392
|
-
for (const S in
|
|
2393
|
-
b[
|
|
2390
|
+
}, C = Vt(he(i.attrs), at);
|
|
2391
|
+
C.key || (C.key = Fe()), b.attrs = C;
|
|
2392
|
+
const L = It(he(i.attrs), at);
|
|
2393
|
+
for (const S in L)
|
|
2394
|
+
b[ze(S)] = L[S];
|
|
2394
2395
|
const B = { props: {} };
|
|
2395
|
-
return
|
|
2396
|
+
return Kt(B, e), Object.assign(b, B.props), typeof b.type != "string" && (b.definition = b.type, delete b.type), b;
|
|
2396
2397
|
}
|
|
2397
|
-
const
|
|
2398
|
+
const H = I(), v = H.ignore ? null : e.parent || pe(je, null), y = Xi(Qe(l || {}, {
|
|
2398
2399
|
name: e.name || void 0,
|
|
2399
|
-
value:
|
|
2400
|
-
parent:
|
|
2400
|
+
value: g,
|
|
2401
|
+
parent: v,
|
|
2401
2402
|
plugins: (l.plugins || []).concat((n = e.plugins) !== null && n !== void 0 ? n : []),
|
|
2402
2403
|
config: e.config || {},
|
|
2403
|
-
props:
|
|
2404
|
+
props: H,
|
|
2404
2405
|
index: e.index,
|
|
2405
2406
|
sync: !!Y(i.attrs.sync || i.attrs.dynamic)
|
|
2406
2407
|
}, !1, !0));
|
|
2407
|
-
|
|
2408
|
-
const
|
|
2409
|
-
|
|
2410
|
-
Array.isArray(
|
|
2408
|
+
y.props.definition || q(600, y);
|
|
2409
|
+
const f = Q(new Set(y.props.definition.props || []));
|
|
2410
|
+
y.on("added-props", ({ payload: c }) => {
|
|
2411
|
+
Array.isArray(c) && c.forEach((b) => f.value.add(b));
|
|
2411
2412
|
});
|
|
2412
|
-
const d = E(() => at.concat([...
|
|
2413
|
-
|
|
2414
|
-
const m =
|
|
2415
|
-
for (const
|
|
2416
|
-
ce(() => e[
|
|
2417
|
-
e[
|
|
2413
|
+
const d = E(() => at.concat([...f.value]).reduce((c, b) => (typeof b == "string" ? (c.push(ze(b)), c.push(qt(b))) : c.push(b), c), []));
|
|
2414
|
+
te(() => Kt(y, e));
|
|
2415
|
+
const m = he(e);
|
|
2416
|
+
for (const c in m)
|
|
2417
|
+
ce(() => e[c], () => {
|
|
2418
|
+
e[c] !== void 0 && (y.props[c] = e[c]);
|
|
2418
2419
|
});
|
|
2419
|
-
|
|
2420
|
-
|
|
2420
|
+
te(() => {
|
|
2421
|
+
y.props.__root = s.value;
|
|
2421
2422
|
});
|
|
2422
|
-
const
|
|
2423
|
-
|
|
2424
|
-
|
|
2423
|
+
const h = /* @__PURE__ */ new Set(), $ = he(i.attrs);
|
|
2424
|
+
te(() => {
|
|
2425
|
+
_(It($, d.value));
|
|
2425
2426
|
});
|
|
2426
|
-
function
|
|
2427
|
-
|
|
2428
|
-
b(),
|
|
2427
|
+
function _(c) {
|
|
2428
|
+
h.forEach((b) => {
|
|
2429
|
+
b(), h.delete(b);
|
|
2429
2430
|
});
|
|
2430
|
-
for (const b in
|
|
2431
|
-
const
|
|
2432
|
-
|
|
2433
|
-
|
|
2431
|
+
for (const b in c) {
|
|
2432
|
+
const C = ze(b);
|
|
2433
|
+
h.add(ce(() => i.attrs[b], () => {
|
|
2434
|
+
y.props[C] = i.attrs[b];
|
|
2434
2435
|
}));
|
|
2435
2436
|
}
|
|
2436
2437
|
}
|
|
2437
|
-
if (
|
|
2438
|
-
const
|
|
2439
|
-
"multiple" in
|
|
2440
|
-
}),
|
|
2441
|
-
var
|
|
2442
|
-
const b = ((
|
|
2443
|
-
key: dt(
|
|
2438
|
+
if (te(() => {
|
|
2439
|
+
const c = Vt(he(i.attrs), d.value);
|
|
2440
|
+
"multiple" in c && (c.multiple = Y(c.multiple)), typeof c.onBlur == "function" && (c.onBlur = Bn(c.onBlur)), y.props.attrs = Object.assign({}, y.props.attrs || {}, c);
|
|
2441
|
+
}), te(() => {
|
|
2442
|
+
var c;
|
|
2443
|
+
const b = ((c = e.errors) !== null && c !== void 0 ? c : []).map((C) => oe({
|
|
2444
|
+
key: dt(C),
|
|
2444
2445
|
type: "error",
|
|
2445
|
-
value:
|
|
2446
|
+
value: C,
|
|
2446
2447
|
meta: { source: "prop" }
|
|
2447
2448
|
}));
|
|
2448
|
-
|
|
2449
|
-
}),
|
|
2450
|
-
const
|
|
2451
|
-
|
|
2449
|
+
y.store.apply(b, (C) => C.type === "error" && C.meta.source === "prop");
|
|
2450
|
+
}), y.type !== "input") {
|
|
2451
|
+
const c = `${y.name}-prop`;
|
|
2452
|
+
te(() => {
|
|
2452
2453
|
var b;
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2455
|
-
const B =
|
|
2456
|
-
let
|
|
2457
|
-
return typeof
|
|
2454
|
+
const C = (b = e.inputErrors) !== null && b !== void 0 ? b : {}, L = Object.keys(C);
|
|
2455
|
+
L.length || y.clearErrors(!0, c);
|
|
2456
|
+
const B = L.reduce((S, R) => {
|
|
2457
|
+
let x = C[R];
|
|
2458
|
+
return typeof x == "string" && (x = [x]), Array.isArray(x) && (S[R] = x.map((N) => oe({
|
|
2458
2459
|
key: N,
|
|
2459
2460
|
type: "error",
|
|
2460
2461
|
value: N,
|
|
2461
|
-
meta: { source:
|
|
2462
|
+
meta: { source: c }
|
|
2462
2463
|
}))), S;
|
|
2463
2464
|
}, {});
|
|
2464
|
-
|
|
2465
|
+
y.store.apply(B, (S) => S.type === "error" && S.meta.source === c);
|
|
2465
2466
|
});
|
|
2466
2467
|
}
|
|
2467
|
-
|
|
2468
|
-
let
|
|
2469
|
-
return
|
|
2470
|
-
var
|
|
2471
|
-
i.emit("inputRaw", (
|
|
2472
|
-
}), u && (ce(
|
|
2473
|
-
ue(
|
|
2474
|
-
}, { deep: !0 }),
|
|
2475
|
-
}
|
|
2476
|
-
let
|
|
2477
|
-
function
|
|
2468
|
+
te(() => Object.assign(y.config, e.config)), y.type !== "input" && Nt(je, y);
|
|
2469
|
+
let k;
|
|
2470
|
+
return y.on("modelUpdated", () => {
|
|
2471
|
+
var c, b;
|
|
2472
|
+
i.emit("inputRaw", (c = y.context) === null || c === void 0 ? void 0 : c.value, y), p && i.emit("input", (b = y.context) === null || b === void 0 ? void 0 : b.value, y), u && y.context && (k = be(y.value), i.emit("update:modelValue", Fn(y.value)));
|
|
2473
|
+
}), u && (ce(Sn(e, "modelValue"), (c) => {
|
|
2474
|
+
ue(k, c) || y.input(c, !1);
|
|
2475
|
+
}, { deep: !0 }), y.value !== g && y.emit("modelUpdated")), Vn(() => y.destroy()), y;
|
|
2476
|
+
}
|
|
2477
|
+
let ta = 1;
|
|
2478
|
+
function na(e) {
|
|
2478
2479
|
return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
|
|
2479
2480
|
}
|
|
2480
|
-
function
|
|
2481
|
+
function D(e, i = {}) {
|
|
2481
2482
|
const t = {
|
|
2482
2483
|
type: "input",
|
|
2483
2484
|
...i
|
|
2484
2485
|
};
|
|
2485
2486
|
let n;
|
|
2486
|
-
if (
|
|
2487
|
-
const l = `SchemaComponent${
|
|
2488
|
-
n =
|
|
2487
|
+
if (na(e)) {
|
|
2488
|
+
const l = `SchemaComponent${ta++}`;
|
|
2489
|
+
n = w("input", () => ({
|
|
2489
2490
|
$cmp: l,
|
|
2490
2491
|
props: {
|
|
2491
2492
|
context: "$node.context"
|
|
2492
2493
|
}
|
|
2493
|
-
})), t.library = { [l]:
|
|
2494
|
+
})), t.library = { [l]: In(e) };
|
|
2494
2495
|
} else
|
|
2495
|
-
typeof e == "function" ? n = e : n =
|
|
2496
|
+
typeof e == "function" ? n = e : n = w("input", () => be(e));
|
|
2496
2497
|
return t.schema = Rl(n || "Schema undefined"), t.schemaMemoKey || (t.schemaMemoKey = `${Math.random()}`), t;
|
|
2497
2498
|
}
|
|
2498
|
-
const
|
|
2499
|
+
const ia = w("messages", () => ({
|
|
2499
2500
|
$el: "ul",
|
|
2500
2501
|
if: "$fns.length($messages)"
|
|
2501
|
-
})),
|
|
2502
|
+
})), la = w("message", () => ({
|
|
2502
2503
|
$el: "li",
|
|
2503
2504
|
for: ["message", "$messages"],
|
|
2504
2505
|
attrs: {
|
|
@@ -2506,8 +2507,8 @@ const na = C("messages", () => ({
|
|
|
2506
2507
|
id: "$id + '-' + $message.key",
|
|
2507
2508
|
"data-message-type": "$message.type"
|
|
2508
2509
|
}
|
|
2509
|
-
})),
|
|
2510
|
-
|
|
2510
|
+
})), aa = ia(la("$message.value"));
|
|
2511
|
+
O({
|
|
2511
2512
|
props: {
|
|
2512
2513
|
node: {
|
|
2513
2514
|
type: Object,
|
|
@@ -2523,26 +2524,125 @@ M({
|
|
|
2523
2524
|
}
|
|
2524
2525
|
},
|
|
2525
2526
|
setup(e, i) {
|
|
2526
|
-
const t = E(() => e.node ||
|
|
2527
|
+
const t = E(() => e.node || pe(je, void 0));
|
|
2527
2528
|
ce(t, () => {
|
|
2528
2529
|
var s;
|
|
2529
2530
|
!((s = t.value) === null || s === void 0) && s.context && !Y(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
|
|
2530
2531
|
}, { immediate: !0 });
|
|
2531
|
-
const n =
|
|
2532
|
-
var s, r, o, u, p,
|
|
2532
|
+
const n = aa(e.sectionsSchema || {}), l = E(() => {
|
|
2533
|
+
var s, r, o, u, p, g;
|
|
2533
2534
|
return {
|
|
2534
2535
|
messages: ((r = (s = t.value) === null || s === void 0 ? void 0 : s.context) === null || r === void 0 ? void 0 : r.messages) || {},
|
|
2535
2536
|
fns: ((u = (o = t.value) === null || o === void 0 ? void 0 : o.context) === null || u === void 0 ? void 0 : u.fns) || {},
|
|
2536
|
-
classes: ((
|
|
2537
|
+
classes: ((g = (p = t.value) === null || p === void 0 ? void 0 : p.context) === null || g === void 0 ? void 0 : g.classes) || {}
|
|
2537
2538
|
};
|
|
2538
2539
|
});
|
|
2539
2540
|
return () => {
|
|
2540
2541
|
var s;
|
|
2541
|
-
return !((s = t.value) === null || s === void 0) && s.context ?
|
|
2542
|
+
return !((s = t.value) === null || s === void 0) && s.context ? de(St, { schema: n, data: l.value }, { ...i.slots }) : null;
|
|
2543
|
+
};
|
|
2544
|
+
}
|
|
2545
|
+
});
|
|
2546
|
+
const sa = w("summary", () => ({
|
|
2547
|
+
$el: "div",
|
|
2548
|
+
attrs: {
|
|
2549
|
+
"aria-live": "polite"
|
|
2550
|
+
}
|
|
2551
|
+
})), ra = w("summaryInner", () => ({
|
|
2552
|
+
$el: "div",
|
|
2553
|
+
if: "$summaries.length && $showSummaries"
|
|
2554
|
+
})), oa = w("messages", () => ({
|
|
2555
|
+
$el: "ul",
|
|
2556
|
+
if: "$summaries.length && $showSummaries"
|
|
2557
|
+
})), ua = w("message", () => ({
|
|
2558
|
+
$el: "li",
|
|
2559
|
+
for: ["summary", "$summaries"],
|
|
2560
|
+
attrs: {
|
|
2561
|
+
key: "$summary.key",
|
|
2562
|
+
"data-message-type": "$summary.type"
|
|
2563
|
+
}
|
|
2564
|
+
})), fa = w("summaryHeader", () => ({
|
|
2565
|
+
$el: "h2",
|
|
2566
|
+
attrs: {
|
|
2567
|
+
id: "$id"
|
|
2568
|
+
}
|
|
2569
|
+
})), ca = w("messageLink", () => ({
|
|
2570
|
+
$el: "a",
|
|
2571
|
+
attrs: {
|
|
2572
|
+
id: "$summary.key",
|
|
2573
|
+
href: '$: "#" + $summary.id',
|
|
2574
|
+
onClick: "$jumpLink"
|
|
2575
|
+
}
|
|
2576
|
+
})), pa = sa(ra(fa("$summaryHeader"), oa(ua(ca("$summary.message")))));
|
|
2577
|
+
O({
|
|
2578
|
+
props: {
|
|
2579
|
+
node: {
|
|
2580
|
+
type: Object,
|
|
2581
|
+
required: !1
|
|
2582
|
+
},
|
|
2583
|
+
sectionsSchema: {
|
|
2584
|
+
type: Object,
|
|
2585
|
+
default: {}
|
|
2586
|
+
}
|
|
2587
|
+
},
|
|
2588
|
+
emits: {
|
|
2589
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
2590
|
+
show: (e) => !0
|
|
2591
|
+
},
|
|
2592
|
+
setup(e, i) {
|
|
2593
|
+
var t, n;
|
|
2594
|
+
const l = `summary-${Fe()}`, s = E(() => e.node || pe(je, void 0));
|
|
2595
|
+
if (!s)
|
|
2596
|
+
throw new Error("FormKitSummary must have a FormKit parent or use the node prop.");
|
|
2597
|
+
const r = Q([]), o = Q(!1), u = E(() => {
|
|
2598
|
+
const v = [];
|
|
2599
|
+
return r.value.forEach((y) => {
|
|
2600
|
+
for (const f in y.messages) {
|
|
2601
|
+
const d = y.messages[f];
|
|
2602
|
+
typeof d.value == "string" && v.push({
|
|
2603
|
+
message: d.value,
|
|
2604
|
+
id: y.id,
|
|
2605
|
+
key: `${y.id}-${d.key}`,
|
|
2606
|
+
type: d.type
|
|
2607
|
+
});
|
|
2608
|
+
}
|
|
2609
|
+
}), v;
|
|
2610
|
+
}), p = () => {
|
|
2611
|
+
var v;
|
|
2612
|
+
r.value = [], (v = s.value) === null || v === void 0 || v.walk((y) => y.context && r.value.push(y.context));
|
|
2613
|
+
};
|
|
2614
|
+
(t = s.value) === null || t === void 0 || t.on("submit-raw", async () => {
|
|
2615
|
+
var v, y;
|
|
2616
|
+
p(), u.value.length !== 0 && (i.emit("show", u.value), o.value = !0, await kn(), typeof window < "u" && ((v = document.getElementById(l)) === null || v === void 0 || v.scrollIntoView({ behavior: "smooth" }), u.value[0] && ((y = document.getElementById(u.value[0].key)) === null || y === void 0 || y.focus())));
|
|
2617
|
+
}), (n = s.value) === null || n === void 0 || n.on("child", p);
|
|
2618
|
+
function g(v) {
|
|
2619
|
+
var y, f, d;
|
|
2620
|
+
if (v.target instanceof HTMLAnchorElement) {
|
|
2621
|
+
v.preventDefault();
|
|
2622
|
+
const m = (y = v.target.getAttribute("href")) === null || y === void 0 ? void 0 : y.substring(1);
|
|
2623
|
+
m && ((f = document.getElementById(m)) === null || f === void 0 || f.scrollIntoView({ behavior: "smooth" }), (d = document.getElementById(m)) === null || d === void 0 || d.focus());
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
Me("summaryHeader", "There were errors in your form.")(s.value);
|
|
2627
|
+
const I = pa(e.sectionsSchema || {}), H = E(() => {
|
|
2628
|
+
var v, y, f, d, m, h, $, _;
|
|
2629
|
+
return {
|
|
2630
|
+
id: l,
|
|
2631
|
+
fns: ((y = (v = s.value) === null || v === void 0 ? void 0 : v.context) === null || y === void 0 ? void 0 : y.fns) || {},
|
|
2632
|
+
classes: ((d = (f = s.value) === null || f === void 0 ? void 0 : f.context) === null || d === void 0 ? void 0 : d.classes) || {},
|
|
2633
|
+
summaries: u.value,
|
|
2634
|
+
showSummaries: o.value,
|
|
2635
|
+
summaryHeader: ((_ = ($ = (h = (m = s.value) === null || m === void 0 ? void 0 : m.context) === null || h === void 0 ? void 0 : h.ui) === null || $ === void 0 ? void 0 : $.summaryHeader) === null || _ === void 0 ? void 0 : _.value) || "",
|
|
2636
|
+
jumpLink: g
|
|
2637
|
+
};
|
|
2638
|
+
});
|
|
2639
|
+
return () => {
|
|
2640
|
+
var v;
|
|
2641
|
+
return !((v = s.value) === null || v === void 0) && v.context ? de(St, { schema: I, data: H.value }, { ...i.slots }) : null;
|
|
2542
2642
|
};
|
|
2543
2643
|
}
|
|
2544
2644
|
});
|
|
2545
|
-
|
|
2645
|
+
O({
|
|
2546
2646
|
name: "FormKitIcon",
|
|
2547
2647
|
props: {
|
|
2548
2648
|
icon: {
|
|
@@ -2560,7 +2660,7 @@ M({
|
|
|
2560
2660
|
},
|
|
2561
2661
|
setup(e) {
|
|
2562
2662
|
var i, t;
|
|
2563
|
-
const n =
|
|
2663
|
+
const n = Q(void 0), l = pe(gn, {}), s = pe(je, null);
|
|
2564
2664
|
let r;
|
|
2565
2665
|
function o() {
|
|
2566
2666
|
if (!r || typeof r != "function")
|
|
@@ -2582,13 +2682,13 @@ M({
|
|
|
2582
2682
|
}
|
|
2583
2683
|
return ce(() => e.icon, () => {
|
|
2584
2684
|
o();
|
|
2585
|
-
}, { immediate: !0 }), () => e.icon && n.value ?
|
|
2685
|
+
}, { immediate: !0 }), () => e.icon && n.value ? de("span", {
|
|
2586
2686
|
class: "formkit-icon",
|
|
2587
2687
|
innerHTML: n.value
|
|
2588
2688
|
}) : null;
|
|
2589
2689
|
}
|
|
2590
2690
|
});
|
|
2591
|
-
const
|
|
2691
|
+
const da = /* @__PURE__ */ O({
|
|
2592
2692
|
__name: "PrimeCalendar",
|
|
2593
2693
|
props: {
|
|
2594
2694
|
context: Object
|
|
@@ -2604,10 +2704,10 @@ const aa = /* @__PURE__ */ M({
|
|
|
2604
2704
|
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);
|
|
2605
2705
|
return (o, u) => {
|
|
2606
2706
|
const p = j("Calendar");
|
|
2607
|
-
return
|
|
2608
|
-
|
|
2707
|
+
return P(), A("div", null, [
|
|
2708
|
+
T(p, {
|
|
2609
2709
|
modelValue: a(t)._value,
|
|
2610
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2710
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
|
|
2611
2711
|
"input-id": i.context.id,
|
|
2612
2712
|
disabled: a(n)._disabled ?? !1,
|
|
2613
2713
|
readonly: a(n)._readonly ?? !1,
|
|
@@ -2663,13 +2763,13 @@ const aa = /* @__PURE__ */ M({
|
|
|
2663
2763
|
]);
|
|
2664
2764
|
};
|
|
2665
2765
|
}
|
|
2666
|
-
}),
|
|
2766
|
+
}), ma = {
|
|
2667
2767
|
key: 0,
|
|
2668
2768
|
class: "formkit-prime-left"
|
|
2669
|
-
},
|
|
2769
|
+
}, ba = {
|
|
2670
2770
|
key: 1,
|
|
2671
2771
|
class: "formkit-prime-right"
|
|
2672
|
-
},
|
|
2772
|
+
}, ya = /* @__PURE__ */ O({
|
|
2673
2773
|
__name: "PrimeCheckbox",
|
|
2674
2774
|
props: {
|
|
2675
2775
|
context: Object
|
|
@@ -2683,9 +2783,9 @@ const aa = /* @__PURE__ */ M({
|
|
|
2683
2783
|
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);
|
|
2684
2784
|
return (r, o) => {
|
|
2685
2785
|
const u = j("Checkbox");
|
|
2686
|
-
return
|
|
2687
|
-
a(t).attrs.labelLeft ? (
|
|
2688
|
-
|
|
2786
|
+
return P(), A("div", null, [
|
|
2787
|
+
a(t).attrs.labelLeft ? (P(), A("span", ma, me(a(t).attrs.labelLeft), 1)) : re("", !0),
|
|
2788
|
+
T(u, {
|
|
2689
2789
|
modelValue: a(t)._value,
|
|
2690
2790
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
2691
2791
|
"input-id": a(t).id,
|
|
@@ -2702,11 +2802,11 @@ const aa = /* @__PURE__ */ M({
|
|
|
2702
2802
|
pt: a(n).pt,
|
|
2703
2803
|
onInput: l
|
|
2704
2804
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value", "pt"]),
|
|
2705
|
-
a(t).attrs.labelRight ? (
|
|
2805
|
+
a(t).attrs.labelRight ? (P(), A("span", ba, me(a(t).attrs.labelRight), 1)) : re("", !0)
|
|
2706
2806
|
]);
|
|
2707
2807
|
};
|
|
2708
2808
|
}
|
|
2709
|
-
}),
|
|
2809
|
+
}), va = /* @__PURE__ */ O({
|
|
2710
2810
|
__name: "PrimeChips",
|
|
2711
2811
|
props: {
|
|
2712
2812
|
context: Object
|
|
@@ -2720,8 +2820,8 @@ const aa = /* @__PURE__ */ M({
|
|
|
2720
2820
|
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);
|
|
2721
2821
|
return (r, o) => {
|
|
2722
2822
|
const u = j("Chips");
|
|
2723
|
-
return
|
|
2724
|
-
|
|
2823
|
+
return P(), A("div", null, [
|
|
2824
|
+
T(u, {
|
|
2725
2825
|
modelValue: a(t)._value,
|
|
2726
2826
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
2727
2827
|
"input-id": a(t).id,
|
|
@@ -2744,7 +2844,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
2744
2844
|
]);
|
|
2745
2845
|
};
|
|
2746
2846
|
}
|
|
2747
|
-
}),
|
|
2847
|
+
}), ha = /* @__PURE__ */ O({
|
|
2748
2848
|
__name: "PrimeColorPicker",
|
|
2749
2849
|
props: {
|
|
2750
2850
|
context: Object
|
|
@@ -2757,13 +2857,13 @@ const aa = /* @__PURE__ */ M({
|
|
|
2757
2857
|
}
|
|
2758
2858
|
return (s, r) => {
|
|
2759
2859
|
const o = j("ColorPicker");
|
|
2760
|
-
return
|
|
2761
|
-
|
|
2860
|
+
return P(), A("div", null, [
|
|
2861
|
+
T(o, {
|
|
2762
2862
|
modelValue: a(t)._value,
|
|
2763
2863
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => a(t)._value = u),
|
|
2764
2864
|
disabled: a(n)._disabled ?? !1,
|
|
2765
2865
|
readonly: a(n)._readonly ?? !1,
|
|
2766
|
-
style:
|
|
2866
|
+
style: ve(a(n).style),
|
|
2767
2867
|
"panel-class": a(n).class,
|
|
2768
2868
|
tabindex: a(n).tabindex,
|
|
2769
2869
|
"aria-label": a(n).ariaLabel,
|
|
@@ -2777,7 +2877,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
2777
2877
|
]);
|
|
2778
2878
|
};
|
|
2779
2879
|
}
|
|
2780
|
-
}),
|
|
2880
|
+
}), _a = /* @__PURE__ */ O({
|
|
2781
2881
|
__name: "PrimeDropdown",
|
|
2782
2882
|
props: {
|
|
2783
2883
|
context: Object
|
|
@@ -2793,10 +2893,10 @@ const aa = /* @__PURE__ */ M({
|
|
|
2793
2893
|
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);
|
|
2794
2894
|
return (o, u) => {
|
|
2795
2895
|
const p = j("Dropdown");
|
|
2796
|
-
return
|
|
2797
|
-
|
|
2896
|
+
return P(), A("div", null, [
|
|
2897
|
+
T(p, {
|
|
2798
2898
|
modelValue: a(t)._value,
|
|
2799
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2899
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
|
|
2800
2900
|
"input-id": a(t).id,
|
|
2801
2901
|
disabled: a(n)._disabled ?? !1,
|
|
2802
2902
|
readonly: a(n)._readonly ?? !1,
|
|
@@ -2818,7 +2918,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
2818
2918
|
]);
|
|
2819
2919
|
};
|
|
2820
2920
|
}
|
|
2821
|
-
}),
|
|
2921
|
+
}), ga = /* @__PURE__ */ O({
|
|
2822
2922
|
__name: "PrimeEditor",
|
|
2823
2923
|
props: {
|
|
2824
2924
|
context: Object
|
|
@@ -2834,11 +2934,11 @@ const aa = /* @__PURE__ */ M({
|
|
|
2834
2934
|
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);
|
|
2835
2935
|
return (o, u) => {
|
|
2836
2936
|
const p = j("Editor");
|
|
2837
|
-
return
|
|
2838
|
-
|
|
2937
|
+
return P(), A("div", null, [
|
|
2938
|
+
T(p, {
|
|
2839
2939
|
id: a(t).id,
|
|
2840
2940
|
modelValue: a(t)._value,
|
|
2841
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2941
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
|
|
2842
2942
|
disabled: a(n)._disabled ?? !1,
|
|
2843
2943
|
readonly: a(n)._readonly ?? !1,
|
|
2844
2944
|
"editor-style": a(n).style,
|
|
@@ -2856,7 +2956,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
2856
2956
|
]);
|
|
2857
2957
|
};
|
|
2858
2958
|
}
|
|
2859
|
-
}),
|
|
2959
|
+
}), $a = /* @__PURE__ */ O({
|
|
2860
2960
|
__name: "PrimeInputMask",
|
|
2861
2961
|
props: {
|
|
2862
2962
|
context: Object
|
|
@@ -2870,8 +2970,8 @@ const aa = /* @__PURE__ */ M({
|
|
|
2870
2970
|
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);
|
|
2871
2971
|
return (r, o) => {
|
|
2872
2972
|
const u = j("InputMask");
|
|
2873
|
-
return
|
|
2874
|
-
|
|
2973
|
+
return P(), A("div", null, [
|
|
2974
|
+
T(u, {
|
|
2875
2975
|
id: a(t).id,
|
|
2876
2976
|
modelValue: a(t)._value,
|
|
2877
2977
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
@@ -2893,7 +2993,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
2893
2993
|
]);
|
|
2894
2994
|
};
|
|
2895
2995
|
}
|
|
2896
|
-
}),
|
|
2996
|
+
}), wa = /* @__PURE__ */ O({
|
|
2897
2997
|
__name: "PrimeInputNumber",
|
|
2898
2998
|
props: {
|
|
2899
2999
|
context: Object
|
|
@@ -2909,10 +3009,10 @@ const aa = /* @__PURE__ */ M({
|
|
|
2909
3009
|
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);
|
|
2910
3010
|
return (o, u) => {
|
|
2911
3011
|
const p = j("InputNumber");
|
|
2912
|
-
return
|
|
2913
|
-
|
|
3012
|
+
return P(), A("div", null, [
|
|
3013
|
+
T(p, {
|
|
2914
3014
|
modelValue: a(t)._value,
|
|
2915
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
3015
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
|
|
2916
3016
|
"input-id": a(t).id,
|
|
2917
3017
|
disabled: a(n)._disabled ?? !1,
|
|
2918
3018
|
readonly: a(n)._readonly ?? !1,
|
|
@@ -2940,13 +3040,13 @@ const aa = /* @__PURE__ */ M({
|
|
|
2940
3040
|
]);
|
|
2941
3041
|
};
|
|
2942
3042
|
}
|
|
2943
|
-
}),
|
|
3043
|
+
}), ka = {
|
|
2944
3044
|
key: 0,
|
|
2945
3045
|
class: "formkit-prime-left"
|
|
2946
|
-
},
|
|
3046
|
+
}, Ca = {
|
|
2947
3047
|
key: 1,
|
|
2948
3048
|
class: "formkit-prime-right"
|
|
2949
|
-
},
|
|
3049
|
+
}, Sa = /* @__PURE__ */ O({
|
|
2950
3050
|
__name: "PrimeInputSwitch",
|
|
2951
3051
|
props: {
|
|
2952
3052
|
context: Object
|
|
@@ -2960,11 +3060,11 @@ const aa = /* @__PURE__ */ M({
|
|
|
2960
3060
|
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);
|
|
2961
3061
|
return (r, o) => {
|
|
2962
3062
|
const u = j("InputSwitch");
|
|
2963
|
-
return
|
|
3063
|
+
return P(), A("div", {
|
|
2964
3064
|
class: U(a(n).option_class)
|
|
2965
3065
|
}, [
|
|
2966
|
-
a(t).attrs.labelLeft ? (
|
|
2967
|
-
|
|
3066
|
+
a(t).attrs.labelLeft ? (P(), A("span", ka, me(a(t).attrs.labelLeft), 1)) : re("", !0),
|
|
3067
|
+
T(u, {
|
|
2968
3068
|
modelValue: a(t)._value,
|
|
2969
3069
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
2970
3070
|
"input-id": a(t).id,
|
|
@@ -2980,11 +3080,11 @@ const aa = /* @__PURE__ */ M({
|
|
|
2980
3080
|
pt: a(n).pt,
|
|
2981
3081
|
onInput: l
|
|
2982
3082
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value", "pt"]),
|
|
2983
|
-
a(t).attrs.labelRight ? (
|
|
3083
|
+
a(t).attrs.labelRight ? (P(), A("span", Ca, me(a(t).attrs.labelRight), 1)) : re("", !0)
|
|
2984
3084
|
], 2);
|
|
2985
3085
|
};
|
|
2986
3086
|
}
|
|
2987
|
-
}),
|
|
3087
|
+
}), Va = /* @__PURE__ */ O({
|
|
2988
3088
|
__name: "PrimeInputText",
|
|
2989
3089
|
props: {
|
|
2990
3090
|
context: Object
|
|
@@ -2998,33 +3098,33 @@ const aa = /* @__PURE__ */ M({
|
|
|
2998
3098
|
return (t == null ? void 0 : t.iconRight) && (t == null ? void 0 : t.iconRight.length) > 0;
|
|
2999
3099
|
}
|
|
3000
3100
|
function r() {
|
|
3001
|
-
let
|
|
3002
|
-
return l() && (
|
|
3101
|
+
let g = "";
|
|
3102
|
+
return l() && (g = `${g}p-input-icon-left `), s() && (g = `${g}p-input-icon-right `), g;
|
|
3003
3103
|
}
|
|
3004
|
-
function o(
|
|
3005
|
-
t == null || t.handlers.blur(
|
|
3104
|
+
function o(g) {
|
|
3105
|
+
t == null || t.handlers.blur(g.target.value);
|
|
3006
3106
|
}
|
|
3007
|
-
function u(
|
|
3008
|
-
t == null || t.node.input(
|
|
3107
|
+
function u(g) {
|
|
3108
|
+
t == null || t.node.input(g.target.value);
|
|
3009
3109
|
}
|
|
3010
3110
|
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);
|
|
3011
|
-
return (
|
|
3012
|
-
const
|
|
3013
|
-
return
|
|
3014
|
-
|
|
3111
|
+
return (g, I) => {
|
|
3112
|
+
const H = j("InputText");
|
|
3113
|
+
return P(), A("div", null, [
|
|
3114
|
+
Wt("span", {
|
|
3015
3115
|
class: U(r())
|
|
3016
3116
|
}, [
|
|
3017
|
-
l() ? (
|
|
3117
|
+
l() ? (P(), A("i", {
|
|
3018
3118
|
key: 0,
|
|
3019
3119
|
class: U(a(t).iconLeft)
|
|
3020
3120
|
}, null, 2)) : re("", !0),
|
|
3021
|
-
|
|
3121
|
+
T(H, {
|
|
3022
3122
|
id: a(t).id,
|
|
3023
3123
|
modelValue: a(t)._value,
|
|
3024
|
-
"onUpdate:modelValue":
|
|
3124
|
+
"onUpdate:modelValue": I[0] || (I[0] = (v) => a(t)._value = v),
|
|
3025
3125
|
disabled: a(n)._disabled ?? !1,
|
|
3026
3126
|
readonly: a(n)._readonly ?? !1,
|
|
3027
|
-
style:
|
|
3127
|
+
style: ve(a(n).style),
|
|
3028
3128
|
class: U(a(p)),
|
|
3029
3129
|
tabindex: a(n).tabindex,
|
|
3030
3130
|
"aria-label": a(n).ariaLabel,
|
|
@@ -3034,7 +3134,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
3034
3134
|
onInput: u,
|
|
3035
3135
|
onBlur: o
|
|
3036
3136
|
}, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "pt"]),
|
|
3037
|
-
s ? (
|
|
3137
|
+
s ? (P(), A("i", {
|
|
3038
3138
|
key: 1,
|
|
3039
3139
|
class: U(a(t).iconRight)
|
|
3040
3140
|
}, null, 2)) : re("", !0)
|
|
@@ -3042,7 +3142,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
3042
3142
|
]);
|
|
3043
3143
|
};
|
|
3044
3144
|
}
|
|
3045
|
-
}),
|
|
3145
|
+
}), Ia = /* @__PURE__ */ O({
|
|
3046
3146
|
__name: "PrimeTextarea",
|
|
3047
3147
|
props: {
|
|
3048
3148
|
context: Object
|
|
@@ -3058,14 +3158,14 @@ const aa = /* @__PURE__ */ M({
|
|
|
3058
3158
|
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);
|
|
3059
3159
|
return (o, u) => {
|
|
3060
3160
|
const p = j("Textarea");
|
|
3061
|
-
return
|
|
3062
|
-
|
|
3161
|
+
return P(), A("div", null, [
|
|
3162
|
+
T(p, {
|
|
3063
3163
|
id: a(t).id,
|
|
3064
3164
|
modelValue: a(t)._value,
|
|
3065
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
3165
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
|
|
3066
3166
|
disabled: a(n)._disabled ?? !1,
|
|
3067
3167
|
readonly: a(n)._readonly ?? !1,
|
|
3068
|
-
style:
|
|
3168
|
+
style: ve(a(n).style),
|
|
3069
3169
|
class: U(a(r)),
|
|
3070
3170
|
tabindex: a(n).tabindex,
|
|
3071
3171
|
"aria-label": a(n).ariaLabel,
|
|
@@ -3079,7 +3179,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
3079
3179
|
]);
|
|
3080
3180
|
};
|
|
3081
3181
|
}
|
|
3082
|
-
}),
|
|
3182
|
+
}), La = /* @__PURE__ */ O({
|
|
3083
3183
|
__name: "PrimeKnob",
|
|
3084
3184
|
props: {
|
|
3085
3185
|
context: Object
|
|
@@ -3092,14 +3192,14 @@ const aa = /* @__PURE__ */ M({
|
|
|
3092
3192
|
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);
|
|
3093
3193
|
return (r, o) => {
|
|
3094
3194
|
const u = j("Knob");
|
|
3095
|
-
return
|
|
3096
|
-
|
|
3195
|
+
return P(), A("div", null, [
|
|
3196
|
+
T(u, {
|
|
3097
3197
|
id: a(t).id,
|
|
3098
3198
|
modelValue: a(t)._value,
|
|
3099
3199
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
3100
3200
|
disabled: a(n)._disabled ?? !1,
|
|
3101
3201
|
readonly: a(n)._readonly ?? !1,
|
|
3102
|
-
style:
|
|
3202
|
+
style: ve(a(n).style),
|
|
3103
3203
|
class: U(a(s)),
|
|
3104
3204
|
tabindex: a(n).tabindex,
|
|
3105
3205
|
"aria-label": a(n).ariaLabel,
|
|
@@ -3120,7 +3220,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
3120
3220
|
]);
|
|
3121
3221
|
};
|
|
3122
3222
|
}
|
|
3123
|
-
}),
|
|
3223
|
+
}), Pa = /* @__PURE__ */ O({
|
|
3124
3224
|
__name: "PrimeMultiSelect",
|
|
3125
3225
|
props: {
|
|
3126
3226
|
context: Object
|
|
@@ -3134,8 +3234,8 @@ const aa = /* @__PURE__ */ M({
|
|
|
3134
3234
|
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);
|
|
3135
3235
|
return (r, o) => {
|
|
3136
3236
|
const u = j("MultiSelect");
|
|
3137
|
-
return
|
|
3138
|
-
|
|
3237
|
+
return P(), A("div", null, [
|
|
3238
|
+
T(u, {
|
|
3139
3239
|
modelValue: a(t)._value,
|
|
3140
3240
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
3141
3241
|
"input-id": a(t).id,
|
|
@@ -3156,7 +3256,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
3156
3256
|
]);
|
|
3157
3257
|
};
|
|
3158
3258
|
}
|
|
3159
|
-
}),
|
|
3259
|
+
}), Aa = /* @__PURE__ */ O({
|
|
3160
3260
|
__name: "PrimeListbox",
|
|
3161
3261
|
props: {
|
|
3162
3262
|
context: Object
|
|
@@ -3171,11 +3271,11 @@ const aa = /* @__PURE__ */ M({
|
|
|
3171
3271
|
return (r, o) => {
|
|
3172
3272
|
var p;
|
|
3173
3273
|
const u = j("Listbox");
|
|
3174
|
-
return
|
|
3175
|
-
|
|
3274
|
+
return P(), A("div", null, [
|
|
3275
|
+
T(u, {
|
|
3176
3276
|
id: a(t).id,
|
|
3177
3277
|
modelValue: a(t)._value,
|
|
3178
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
3278
|
+
"onUpdate:modelValue": o[0] || (o[0] = (g) => a(t)._value = g),
|
|
3179
3279
|
disabled: a(n)._disabled ?? !1,
|
|
3180
3280
|
readonly: a(n)._readonly ?? !1,
|
|
3181
3281
|
"list-style": a(n).style,
|
|
@@ -3200,7 +3300,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
3200
3300
|
]);
|
|
3201
3301
|
};
|
|
3202
3302
|
}
|
|
3203
|
-
}),
|
|
3303
|
+
}), Oa = /* @__PURE__ */ O({
|
|
3204
3304
|
__name: "PrimePassword",
|
|
3205
3305
|
props: {
|
|
3206
3306
|
context: Object
|
|
@@ -3216,10 +3316,10 @@ const aa = /* @__PURE__ */ M({
|
|
|
3216
3316
|
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);
|
|
3217
3317
|
return (o, u) => {
|
|
3218
3318
|
const p = j("Password");
|
|
3219
|
-
return
|
|
3220
|
-
|
|
3319
|
+
return P(), A("div", null, [
|
|
3320
|
+
T(p, {
|
|
3221
3321
|
modelValue: a(t)._value,
|
|
3222
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
3322
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => a(t)._value = g),
|
|
3223
3323
|
"input-id": a(t).id,
|
|
3224
3324
|
disabled: a(n)._disabled ?? !1,
|
|
3225
3325
|
readonly: a(n)._readonly ?? !1,
|
|
@@ -3246,7 +3346,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
3246
3346
|
]);
|
|
3247
3347
|
};
|
|
3248
3348
|
}
|
|
3249
|
-
}),
|
|
3349
|
+
}), xa = ["for"], Ma = /* @__PURE__ */ O({
|
|
3250
3350
|
__name: "PrimeRadioButton",
|
|
3251
3351
|
props: {
|
|
3252
3352
|
context: Object
|
|
@@ -3260,16 +3360,16 @@ const aa = /* @__PURE__ */ M({
|
|
|
3260
3360
|
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);
|
|
3261
3361
|
return (r, o) => {
|
|
3262
3362
|
const u = j("RadioButton");
|
|
3263
|
-
return
|
|
3363
|
+
return P(), A("div", {
|
|
3264
3364
|
class: U(a(n).options_class)
|
|
3265
3365
|
}, [
|
|
3266
|
-
(
|
|
3366
|
+
(P(!0), A(An, null, On(a(n).options, (p) => (P(), A("div", {
|
|
3267
3367
|
key: p.value,
|
|
3268
3368
|
class: U(a(n).option_class)
|
|
3269
3369
|
}, [
|
|
3270
|
-
|
|
3370
|
+
T(u, {
|
|
3271
3371
|
modelValue: a(t)._value,
|
|
3272
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
3372
|
+
"onUpdate:modelValue": o[0] || (o[0] = (g) => a(t)._value = g),
|
|
3273
3373
|
name: a(n).name,
|
|
3274
3374
|
value: p.value,
|
|
3275
3375
|
"input-style": a(n).style,
|
|
@@ -3278,14 +3378,14 @@ const aa = /* @__PURE__ */ M({
|
|
|
3278
3378
|
onClick: l,
|
|
3279
3379
|
onChange: l
|
|
3280
3380
|
}, null, 8, ["modelValue", "name", "value", "input-style", "input-class", "pt"]),
|
|
3281
|
-
|
|
3381
|
+
Wt("label", {
|
|
3282
3382
|
for: p.value
|
|
3283
|
-
},
|
|
3383
|
+
}, me(p.label), 9, xa)
|
|
3284
3384
|
], 2))), 128))
|
|
3285
3385
|
], 2);
|
|
3286
3386
|
};
|
|
3287
3387
|
}
|
|
3288
|
-
}),
|
|
3388
|
+
}), Ea = /* @__PURE__ */ O({
|
|
3289
3389
|
__name: "PrimeRating",
|
|
3290
3390
|
props: {
|
|
3291
3391
|
context: Object
|
|
@@ -3299,14 +3399,14 @@ const aa = /* @__PURE__ */ M({
|
|
|
3299
3399
|
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);
|
|
3300
3400
|
return (r, o) => {
|
|
3301
3401
|
const u = j("Rating");
|
|
3302
|
-
return
|
|
3303
|
-
|
|
3402
|
+
return P(), A("div", null, [
|
|
3403
|
+
T(u, {
|
|
3304
3404
|
id: a(t).id,
|
|
3305
3405
|
modelValue: a(t)._value,
|
|
3306
3406
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
3307
3407
|
disabled: a(n)._disabled ?? !1,
|
|
3308
3408
|
readonly: a(n)._readonly ?? !1,
|
|
3309
|
-
style:
|
|
3409
|
+
style: ve(a(n).style),
|
|
3310
3410
|
class: U(a(s)),
|
|
3311
3411
|
tabindex: a(n).tabindex,
|
|
3312
3412
|
"aria-label": a(n).ariaLabel,
|
|
@@ -3322,7 +3422,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
3322
3422
|
]);
|
|
3323
3423
|
};
|
|
3324
3424
|
}
|
|
3325
|
-
}),
|
|
3425
|
+
}), Ra = /* @__PURE__ */ O({
|
|
3326
3426
|
__name: "PrimeSlider",
|
|
3327
3427
|
props: {
|
|
3328
3428
|
context: Object
|
|
@@ -3335,14 +3435,14 @@ const aa = /* @__PURE__ */ M({
|
|
|
3335
3435
|
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);
|
|
3336
3436
|
return (r, o) => {
|
|
3337
3437
|
const u = j("Slider");
|
|
3338
|
-
return
|
|
3339
|
-
|
|
3438
|
+
return P(), A("div", null, [
|
|
3439
|
+
T(u, {
|
|
3340
3440
|
id: a(t).id,
|
|
3341
3441
|
modelValue: a(t)._value,
|
|
3342
3442
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
3343
3443
|
disabled: a(n)._disabled ?? !1,
|
|
3344
3444
|
readonly: a(n)._readonly ?? !1,
|
|
3345
|
-
style:
|
|
3445
|
+
style: ve(a(n).style),
|
|
3346
3446
|
class: U(a(s)),
|
|
3347
3447
|
tabindex: a(n).tabindex,
|
|
3348
3448
|
"aria-label": a(n).ariaLabel,
|
|
@@ -3358,7 +3458,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
3358
3458
|
]);
|
|
3359
3459
|
};
|
|
3360
3460
|
}
|
|
3361
|
-
}),
|
|
3461
|
+
}), ja = /* @__PURE__ */ O({
|
|
3362
3462
|
__name: "PrimeToggleButton",
|
|
3363
3463
|
props: {
|
|
3364
3464
|
context: Object
|
|
@@ -3372,8 +3472,8 @@ const aa = /* @__PURE__ */ M({
|
|
|
3372
3472
|
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);
|
|
3373
3473
|
return (r, o) => {
|
|
3374
3474
|
const u = j("ToggleButton");
|
|
3375
|
-
return
|
|
3376
|
-
|
|
3475
|
+
return P(), A("div", null, [
|
|
3476
|
+
T(u, {
|
|
3377
3477
|
modelValue: a(t)._value,
|
|
3378
3478
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
3379
3479
|
"input-id": a(t).id,
|
|
@@ -3395,7 +3495,7 @@ const aa = /* @__PURE__ */ M({
|
|
|
3395
3495
|
]);
|
|
3396
3496
|
};
|
|
3397
3497
|
}
|
|
3398
|
-
}),
|
|
3498
|
+
}), Fa = /* @__PURE__ */ O({
|
|
3399
3499
|
__name: "PrimeSelectButton",
|
|
3400
3500
|
props: {
|
|
3401
3501
|
context: Object
|
|
@@ -3409,14 +3509,14 @@ const aa = /* @__PURE__ */ M({
|
|
|
3409
3509
|
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);
|
|
3410
3510
|
return (r, o) => {
|
|
3411
3511
|
const u = j("SelectButton");
|
|
3412
|
-
return
|
|
3413
|
-
|
|
3512
|
+
return P(), A("div", null, [
|
|
3513
|
+
T(u, {
|
|
3414
3514
|
id: a(t).id,
|
|
3415
3515
|
modelValue: a(t)._value,
|
|
3416
3516
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
3417
3517
|
disabled: a(n)._disabled ?? !1,
|
|
3418
3518
|
readonly: a(n)._readonly ?? !1,
|
|
3419
|
-
style:
|
|
3519
|
+
style: ve(a(n).style),
|
|
3420
3520
|
class: U(a(s)),
|
|
3421
3521
|
tabindex: a(n).tabindex,
|
|
3422
3522
|
"aria-label": a(n).ariaLabel,
|
|
@@ -3434,13 +3534,13 @@ const aa = /* @__PURE__ */ M({
|
|
|
3434
3534
|
]);
|
|
3435
3535
|
};
|
|
3436
3536
|
}
|
|
3437
|
-
}),
|
|
3537
|
+
}), Ta = {
|
|
3438
3538
|
key: 0,
|
|
3439
3539
|
class: "formkit-prime-left"
|
|
3440
|
-
},
|
|
3540
|
+
}, Da = {
|
|
3441
3541
|
key: 1,
|
|
3442
3542
|
class: "formkit-prime-right"
|
|
3443
|
-
},
|
|
3543
|
+
}, Ba = /* @__PURE__ */ O({
|
|
3444
3544
|
__name: "PrimeTriStateCheckbox",
|
|
3445
3545
|
props: {
|
|
3446
3546
|
context: Object
|
|
@@ -3454,9 +3554,9 @@ const aa = /* @__PURE__ */ M({
|
|
|
3454
3554
|
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);
|
|
3455
3555
|
return (r, o) => {
|
|
3456
3556
|
const u = j("TriStateCheckbox");
|
|
3457
|
-
return
|
|
3458
|
-
a(t).attrs.labelLeft ? (
|
|
3459
|
-
|
|
3557
|
+
return P(), A("div", null, [
|
|
3558
|
+
a(t).attrs.labelLeft ? (P(), A("span", Ta, me(a(t).attrs.labelLeft), 1)) : re("", !0),
|
|
3559
|
+
T(u, {
|
|
3460
3560
|
modelValue: a(t)._value,
|
|
3461
3561
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a(t)._value = p),
|
|
3462
3562
|
"input-id": a(t).id,
|
|
@@ -3470,96 +3570,96 @@ const aa = /* @__PURE__ */ M({
|
|
|
3470
3570
|
pt: a(n).pt,
|
|
3471
3571
|
onClick: l
|
|
3472
3572
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "pt"]),
|
|
3473
|
-
a(t).attrs.labelRight ? (
|
|
3573
|
+
a(t).attrs.labelRight ? (P(), A("span", Da, me(a(t).attrs.labelRight), 1)) : re("", !0)
|
|
3474
3574
|
]);
|
|
3475
3575
|
};
|
|
3476
3576
|
}
|
|
3477
|
-
}),
|
|
3577
|
+
}), za = D(Va, {
|
|
3478
3578
|
props: ["iconRight", "iconLeft"]
|
|
3479
|
-
}),
|
|
3579
|
+
}), Ua = D(wa, {
|
|
3480
3580
|
props: ["iconRight", "iconLeft"]
|
|
3481
|
-
}),
|
|
3581
|
+
}), Ka = D($a, {
|
|
3482
3582
|
props: []
|
|
3483
|
-
}),
|
|
3583
|
+
}), Na = D(Oa, {
|
|
3484
3584
|
props: ["feedback", "toggleMask"]
|
|
3485
|
-
}),
|
|
3585
|
+
}), Wa = D(Ia, {
|
|
3486
3586
|
props: ["rows"]
|
|
3487
|
-
}),
|
|
3587
|
+
}), Ha = D(ya, {
|
|
3488
3588
|
props: []
|
|
3489
|
-
}),
|
|
3589
|
+
}), qa = D(Sa, {
|
|
3490
3590
|
props: []
|
|
3491
|
-
}),
|
|
3591
|
+
}), Za = D(ga, {
|
|
3492
3592
|
props: []
|
|
3493
|
-
}),
|
|
3593
|
+
}), Ja = D(_a, {
|
|
3494
3594
|
props: []
|
|
3495
|
-
}),
|
|
3595
|
+
}), Ya = D(Pa, {
|
|
3496
3596
|
props: []
|
|
3497
|
-
}),
|
|
3597
|
+
}), Qa = D(Aa, {
|
|
3498
3598
|
props: []
|
|
3499
|
-
}),
|
|
3599
|
+
}), Xa = D(da, {
|
|
3500
3600
|
props: []
|
|
3501
|
-
}),
|
|
3601
|
+
}), Ga = D(Ra, {
|
|
3502
3602
|
props: []
|
|
3503
|
-
}),
|
|
3603
|
+
}), es = D(Ea, {
|
|
3504
3604
|
props: []
|
|
3505
|
-
}),
|
|
3605
|
+
}), ts = D(Ma, {
|
|
3506
3606
|
props: []
|
|
3507
|
-
}),
|
|
3607
|
+
}), ns = D(va, {
|
|
3508
3608
|
props: []
|
|
3509
|
-
}),
|
|
3609
|
+
}), is = D(La, {
|
|
3510
3610
|
props: []
|
|
3511
|
-
}),
|
|
3611
|
+
}), ls = D(ha, {
|
|
3512
3612
|
props: []
|
|
3513
|
-
}),
|
|
3613
|
+
}), as = D(ja, {
|
|
3514
3614
|
props: []
|
|
3515
|
-
}),
|
|
3615
|
+
}), ss = D(Fa, {
|
|
3516
3616
|
props: []
|
|
3517
|
-
}),
|
|
3617
|
+
}), rs = D(Ba, {
|
|
3518
3618
|
props: []
|
|
3519
|
-
}),
|
|
3520
|
-
primeInputText:
|
|
3521
|
-
primeInputNumber:
|
|
3522
|
-
primeInputMask:
|
|
3523
|
-
primePassword:
|
|
3524
|
-
primeCheckbox:
|
|
3525
|
-
primeInputSwitch:
|
|
3526
|
-
primeTextarea:
|
|
3527
|
-
primeEditor:
|
|
3528
|
-
primeDropdown:
|
|
3529
|
-
primeMultiSelect:
|
|
3530
|
-
primeCalendar:
|
|
3531
|
-
primeSlider:
|
|
3532
|
-
primeChips:
|
|
3533
|
-
primeKnob:
|
|
3534
|
-
primeRating:
|
|
3535
|
-
primeRadioButton:
|
|
3536
|
-
primeColorPicker:
|
|
3537
|
-
primeToggleButton:
|
|
3538
|
-
primeListbox:
|
|
3539
|
-
primeSelectButton:
|
|
3540
|
-
primeTriStateCheckbox:
|
|
3619
|
+
}), us = {
|
|
3620
|
+
primeInputText: za,
|
|
3621
|
+
primeInputNumber: Ua,
|
|
3622
|
+
primeInputMask: Ka,
|
|
3623
|
+
primePassword: Na,
|
|
3624
|
+
primeCheckbox: Ha,
|
|
3625
|
+
primeInputSwitch: qa,
|
|
3626
|
+
primeTextarea: Wa,
|
|
3627
|
+
primeEditor: Za,
|
|
3628
|
+
primeDropdown: Ja,
|
|
3629
|
+
primeMultiSelect: Ya,
|
|
3630
|
+
primeCalendar: Xa,
|
|
3631
|
+
primeSlider: Ga,
|
|
3632
|
+
primeChips: ns,
|
|
3633
|
+
primeKnob: is,
|
|
3634
|
+
primeRating: es,
|
|
3635
|
+
primeRadioButton: ts,
|
|
3636
|
+
primeColorPicker: ls,
|
|
3637
|
+
primeToggleButton: as,
|
|
3638
|
+
primeListbox: Qa,
|
|
3639
|
+
primeSelectButton: ss,
|
|
3640
|
+
primeTriStateCheckbox: rs
|
|
3541
3641
|
};
|
|
3542
3642
|
export {
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3643
|
+
Xa as primeCalendarDefinition,
|
|
3644
|
+
Ha as primeCheckboxDefinition,
|
|
3645
|
+
ns as primeChipsDefinition,
|
|
3646
|
+
ls as primeColorPickerDefinition,
|
|
3647
|
+
Ja as primeDropdownDefinition,
|
|
3648
|
+
Za as primeEditorDefinition,
|
|
3649
|
+
Ka as primeInputMaskDefinition,
|
|
3650
|
+
Ua as primeInputNumberDefinition,
|
|
3651
|
+
qa as primeInputSwitchDefinition,
|
|
3652
|
+
za as primeInputTextDefinition,
|
|
3653
|
+
us as primeInputs,
|
|
3654
|
+
is as primeKnobDefinition,
|
|
3655
|
+
Qa as primeListboxDefinition,
|
|
3656
|
+
Ya as primeMultiSelectDefinition,
|
|
3657
|
+
Na as primePasswordDefinition,
|
|
3658
|
+
ts as primeRadioButtonDefinition,
|
|
3659
|
+
es as primeRatingDefinition,
|
|
3660
|
+
ss as primeSelectButtonDefinition,
|
|
3661
|
+
Ga as primeSliderDefinition,
|
|
3662
|
+
Wa as primeTextareaDefinition,
|
|
3663
|
+
as as primeToggleButtonDefinition,
|
|
3664
|
+
rs as primeTriStateCheckboxDefinition
|
|
3565
3665
|
};
|