@sfxcode/formkit-primevue 1.4.4 → 1.5.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.
Files changed (33) hide show
  1. package/dist/formkit/PrimeAutoComplete.vue.d.ts +6 -0
  2. package/dist/formkit/PrimeCalendar.vue.d.ts +6 -0
  3. package/dist/formkit/PrimeCheckbox.vue.d.ts +6 -0
  4. package/dist/formkit/PrimeChips.vue.d.ts +6 -0
  5. package/dist/formkit/PrimeColorPicker.vue.d.ts +6 -0
  6. package/dist/formkit/PrimeDropdown.vue.d.ts +6 -0
  7. package/dist/formkit/PrimeEditor.vue.d.ts +6 -0
  8. package/dist/formkit/PrimeInputMask.vue.d.ts +6 -0
  9. package/dist/formkit/PrimeInputNumber.vue.d.ts +6 -0
  10. package/dist/formkit/PrimeInputSwitch.vue.d.ts +6 -0
  11. package/dist/formkit/PrimeInputText.vue.d.ts +6 -0
  12. package/dist/formkit/PrimeKnob.vue.d.ts +6 -0
  13. package/dist/formkit/PrimeListbox.vue.d.ts +6 -0
  14. package/dist/formkit/PrimeMultiSelect.vue.d.ts +6 -0
  15. package/dist/formkit/PrimePassword.vue.d.ts +6 -0
  16. package/dist/formkit/PrimeRadioButton.vue.d.ts +6 -0
  17. package/dist/formkit/PrimeRating.vue.d.ts +6 -0
  18. package/dist/formkit/PrimeSelectButton.vue.d.ts +6 -0
  19. package/dist/formkit/PrimeSlider.vue.d.ts +6 -0
  20. package/dist/formkit/PrimeTextarea.vue.d.ts +6 -0
  21. package/dist/formkit/PrimeToggleButton.vue.d.ts +6 -0
  22. package/dist/formkit/PrimeTriStateCheckbox.vue.d.ts +6 -0
  23. package/dist/formkit/index.d.ts +47 -0
  24. package/dist/formkit-primevue.es.js +1931 -0
  25. package/dist/formkit-primevue.umd.js +1 -0
  26. package/dist/index.d.ts +1 -0
  27. package/dist/main.d.ts +1 -0
  28. package/dist/manifest.json +7 -0
  29. package/dist/modules/formkit.d.ts +3 -0
  30. package/dist/modules/primevue.d.ts +2 -0
  31. package/dist/sass/formkit-primevue.scss +122 -0
  32. package/dist/types.d.ts +2 -0
  33. package/package.json +18 -17
@@ -0,0 +1,1931 @@
1
+ import { markRaw as pe, defineComponent as y, computed as d, ref as de, resolveComponent as _, openBlock as m, createElementBlock as b, createVNode as v, unref as l, toDisplayString as V, createCommentVNode as w, normalizeStyle as C, normalizeClass as g, createElementVNode as J, Fragment as fe, renderList as ce } from "vue";
2
+ const me = [
3
+ "__key",
4
+ "__init",
5
+ "__shim",
6
+ "__original",
7
+ "__index",
8
+ "__prevKey"
9
+ ];
10
+ function Q() {
11
+ return Math.random().toString(36).substring(2, 15);
12
+ }
13
+ function P(a, s) {
14
+ return Object.prototype.hasOwnProperty.call(a, s);
15
+ }
16
+ function M(a, s, e = !0, t = ["__key"]) {
17
+ if (a === s)
18
+ return !0;
19
+ if (typeof s == "object" && typeof a == "object") {
20
+ if (a instanceof Map || a instanceof Set)
21
+ return !1;
22
+ if (a instanceof Date && s instanceof Date)
23
+ return a.getTime() === s.getTime();
24
+ if (a instanceof RegExp && s instanceof RegExp)
25
+ return be(a, s);
26
+ if (a === null || s === null || Object.keys(a).length !== Object.keys(s).length)
27
+ return !1;
28
+ for (const i of t)
29
+ if ((i in a || i in s) && a[i] !== s[i])
30
+ return !1;
31
+ for (const i in a)
32
+ if (!(i in s) || a[i] !== s[i] && !e || e && !M(a[i], s[i], e, t))
33
+ return !1;
34
+ return !0;
35
+ }
36
+ return !1;
37
+ }
38
+ function be(a, s) {
39
+ return a.source === s.source && a.flags.split("").sort().join("") === s.flags.split("").sort().join("");
40
+ }
41
+ function A(a) {
42
+ const s = typeof a;
43
+ if (s === "number")
44
+ return !1;
45
+ if (a === void 0)
46
+ return !0;
47
+ if (s === "string")
48
+ return a === "";
49
+ if (s === "object") {
50
+ if (a === null)
51
+ return !0;
52
+ for (const e in a)
53
+ return !1;
54
+ return !(a instanceof RegExp || a instanceof Date);
55
+ }
56
+ return !1;
57
+ }
58
+ function j(a) {
59
+ return Object.prototype.toString.call(a) === "[object Object]";
60
+ }
61
+ function O(a) {
62
+ return j(a) || Array.isArray(a);
63
+ }
64
+ function K(a) {
65
+ if (j(a) === !1 || a.__FKNode__ || a.__POJO__ === !1)
66
+ return !1;
67
+ const s = a.constructor;
68
+ if (s === void 0)
69
+ return !0;
70
+ const e = s.prototype;
71
+ return !(j(e) === !1 || e.hasOwnProperty("isPrototypeOf") === !1);
72
+ }
73
+ // @__NO_SIDE_EFFECTS__
74
+ function X(a, s, e = !1, t = !1) {
75
+ if (s === null)
76
+ return null;
77
+ const i = {};
78
+ if (typeof s == "string")
79
+ return s;
80
+ for (const r in a)
81
+ if (P(s, r) && (s[r] !== void 0 || !t)) {
82
+ if (e && Array.isArray(a[r]) && Array.isArray(s[r])) {
83
+ i[r] = a[r].concat(s[r]);
84
+ continue;
85
+ }
86
+ if (s[r] === void 0)
87
+ continue;
88
+ K(a[r]) && K(s[r]) ? i[r] = /* @__PURE__ */ X(a[r], s[r], e, t) : i[r] = s[r];
89
+ } else
90
+ i[r] = a[r];
91
+ for (const r in s)
92
+ !P(i, r) && s[r] !== void 0 && (i[r] = s[r]);
93
+ return i;
94
+ }
95
+ function ye(a) {
96
+ return a.replace(/-([a-z0-9])/gi, (s, e) => e.toUpperCase());
97
+ }
98
+ function _e(a) {
99
+ return a.replace(/([a-z0-9])([A-Z])/g, (s, e, t) => e + "-" + t.toLowerCase()).replace(" ", "-").toLowerCase();
100
+ }
101
+ function D(a, s = me) {
102
+ if (a === null || a instanceof RegExp || a instanceof Date || a instanceof Map || a instanceof Set || typeof File == "function" && a instanceof File)
103
+ return a;
104
+ let e;
105
+ Array.isArray(a) ? e = a.map((t) => typeof t == "object" ? D(t, s) : t) : e = Object.keys(a).reduce((t, i) => (t[i] = typeof a[i] == "object" ? D(a[i], s) : a[i], t), {});
106
+ for (const t of s)
107
+ t in a && Object.defineProperty(e, t, {
108
+ enumerable: !1,
109
+ value: a[t]
110
+ });
111
+ return e;
112
+ }
113
+ function R(a) {
114
+ return typeof a == "object" ? D(a) : a;
115
+ }
116
+ function Z(a) {
117
+ return a !== void 0 && a !== "false" && a !== !1 ? !0 : void 0;
118
+ }
119
+ function L(a) {
120
+ return Object.isFrozen(a) ? a : Object.defineProperty(a, "__init", {
121
+ enumerable: !1,
122
+ value: !0
123
+ });
124
+ }
125
+ function ve(a) {
126
+ return a.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]/g, " ").trim().replace(/\s+/g, "-");
127
+ }
128
+ function G() {
129
+ const a = [];
130
+ let s = 0;
131
+ const e = (i) => a.push(i), t = (i) => {
132
+ const r = a[s];
133
+ return typeof r == "function" ? r(i, (o) => (s++, t(o))) : (s = 0, i);
134
+ };
135
+ return e.dispatch = t, e.unshift = (i) => a.unshift(i), e.remove = (i) => {
136
+ const r = a.indexOf(i);
137
+ r > -1 && a.splice(r, 1);
138
+ }, e;
139
+ }
140
+ function he() {
141
+ const a = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
142
+ let e;
143
+ const t = (i, r) => {
144
+ if (e) {
145
+ e.set(r.name, [i, r]);
146
+ return;
147
+ }
148
+ a.has(r.name) && a.get(r.name).forEach((o) => {
149
+ (r.origin === i || o.modifiers.includes("deep")) && o.listener(r);
150
+ }), r.bubble && i.bubble(r);
151
+ };
152
+ return t.flush = () => {
153
+ a.clear(), s.clear(), e == null || e.clear();
154
+ }, t.on = (i, r) => {
155
+ const [o, ...n] = i.split("."), u = r.receipt || Q(), p = {
156
+ modifiers: n,
157
+ event: o,
158
+ listener: r,
159
+ receipt: u
160
+ };
161
+ return a.has(o) ? a.get(o).push(p) : a.set(o, [p]), s.has(u) ? s.get(u).push(o) : s.set(u, [o]), u;
162
+ }, t.off = (i) => {
163
+ var r;
164
+ s.has(i) && ((r = s.get(i)) === null || r === void 0 || r.forEach((o) => {
165
+ const n = a.get(o);
166
+ Array.isArray(n) && a.set(o, n.filter((u) => u.receipt !== i));
167
+ }), s.delete(i));
168
+ }, t.pause = (i) => {
169
+ e || (e = /* @__PURE__ */ new Map()), i && i.walk((r) => r._e.pause());
170
+ }, t.play = (i) => {
171
+ if (!e)
172
+ return;
173
+ const r = e;
174
+ e = void 0, r.forEach(([o, n]) => t(o, n)), i && i.walk((o) => o._e.play());
175
+ }, t;
176
+ }
177
+ function ge(a, s, e, t, i = !0, r) {
178
+ return s._e(a, {
179
+ payload: t,
180
+ name: e,
181
+ bubble: i,
182
+ origin: a,
183
+ meta: r
184
+ }), a;
185
+ }
186
+ function $e(a, s, e) {
187
+ return B(a.parent) && a.parent._e(a.parent, e), a;
188
+ }
189
+ function ke(a, s, e, t) {
190
+ return s._e.on(e, t);
191
+ }
192
+ function we(a, s, e) {
193
+ return s._e.off(e), a;
194
+ }
195
+ const ee = G();
196
+ ee((a, s) => (a.message || (a.message = `E${a.code}`), s(a)));
197
+ const te = G();
198
+ te((a, s) => {
199
+ a.message || (a.message = `W${a.code}`);
200
+ const e = s(a);
201
+ return console && typeof console.warn == "function" && console.warn(e.message), e;
202
+ });
203
+ function ae(a, s = {}) {
204
+ te.dispatch({ code: a, data: s });
205
+ }
206
+ function I(a, s = {}) {
207
+ throw Error(ee.dispatch({ code: a, data: s }).message);
208
+ }
209
+ function U(a, s) {
210
+ const e = {
211
+ blocking: !1,
212
+ key: Q(),
213
+ meta: {},
214
+ type: "state",
215
+ visible: !0,
216
+ ...a
217
+ };
218
+ return s && e.value && e.meta.localize !== !1 && (e.value = s.t(e), e.meta.locale = s.config.locale), e;
219
+ }
220
+ function Ce(a, ...s) {
221
+ const e = `${a.name}-set`, t = (i) => U({
222
+ key: ve(i),
223
+ type: "error",
224
+ value: i,
225
+ meta: { source: e, autoClear: !0 }
226
+ });
227
+ return s.filter((i) => !!i).map((i) => {
228
+ if (typeof i == "string" && (i = [i]), Array.isArray(i))
229
+ return i.map((r) => t(r));
230
+ {
231
+ const r = {};
232
+ for (const o in i)
233
+ Array.isArray(i[o]) ? r[o] = i[o].map((n) => t(n)) : r[o] = [t(i[o])];
234
+ return r;
235
+ }
236
+ });
237
+ }
238
+ const le = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), Ve = he();
239
+ function Le(a) {
240
+ if (T.has(a)) {
241
+ const s = T.get(a);
242
+ T.delete(a), le.delete(s), Ve(a, {
243
+ payload: null,
244
+ name: s,
245
+ bubble: !1,
246
+ origin: a
247
+ });
248
+ }
249
+ }
250
+ function Ie(a) {
251
+ return le.get(a);
252
+ }
253
+ function H(a, s, e) {
254
+ let t = !0;
255
+ return s in a.config._t ? t = !1 : a.emit(`config:${s}`, e, !1), s in a.props || (a.emit("prop", { prop: s, value: e }), a.emit(`prop:${s}`, e)), t;
256
+ }
257
+ function Oe(a) {
258
+ const s = document.getElementById(a);
259
+ if (s instanceof HTMLFormElement) {
260
+ const e = new Event("submit", { cancelable: !0, bubbles: !0 });
261
+ s.dispatchEvent(e);
262
+ return;
263
+ }
264
+ ae(151, a);
265
+ }
266
+ function Se(a) {
267
+ const s = (e) => {
268
+ for (const t in e.store) {
269
+ const i = e.store[t];
270
+ i.type === "error" || i.type === "ui" && t === "incomplete" ? e.store.remove(t) : i.type === "state" && e.store.set({ ...i, value: !1 });
271
+ }
272
+ };
273
+ s(a), a.walk(s);
274
+ }
275
+ function Pe(a, s) {
276
+ const e = typeof a == "string" ? Ie(a) : a;
277
+ if (e) {
278
+ const t = (o) => R(o.props.initial) || (o.type === "group" ? {} : o.type === "list" ? [] : void 0);
279
+ e._e.pause(e);
280
+ const i = R(s);
281
+ return s && !A(s) && (e.props.initial = O(i) ? L(i) : i, e.props._init = e.props.initial), e.input(t(e), !1), e.walk((o) => {
282
+ o.type === "list" && o.sync || o.input(t(o), !1);
283
+ }), e.input(A(i) && i ? i : t(e), !1), e.type !== "input" && s && !A(s) && O(s) && e.walk((o) => {
284
+ o.props.initial = O(o.value) ? L(o.value) : o.value, o.props._init = o.props.initial;
285
+ }), e._e.play(e), Se(e), e.emit("reset", e), e;
286
+ }
287
+ ae(152, a);
288
+ }
289
+ const De = {
290
+ delimiter: ".",
291
+ delay: 0,
292
+ locale: "en",
293
+ rootClasses: (a) => ({ [`formkit-${_e(a)}`]: !0 })
294
+ }, Re = Symbol("index"), F = Symbol("removed"), z = Symbol("moved"), se = Symbol("inserted");
295
+ function Ee(a) {
296
+ return a.type === "list" && Array.isArray(a._value);
297
+ }
298
+ function B(a) {
299
+ return a && typeof a == "object" && a.__FKNode__ === !0;
300
+ }
301
+ const S = (a, s, e) => {
302
+ I(102, [a, e]);
303
+ };
304
+ c(Ge, S, !1), c(Ze), c(Ke), c(tt, S, !1), c(at), c($e), c(dt), c(Be), c(!1), c(xe), c(Ue), c(Ne), c(ft), c(Fe), c(Xe, Qe, !1), c(Te), c(We), c(ge), c(st), c(ke), c(we), c(!1, He), c(!1), c(qe), c(it, S, !1), c(pt), c(Je), c(re), c(ut), c(ot), c(ie), c(et, !1, !1), c(Ye);
305
+ function c(a, s, e = !0) {
306
+ return {
307
+ get: a ? (t, i) => e ? (...r) => a(t, i, ...r) : a(t, i) : !1,
308
+ set: s !== void 0 ? s : S.bind(null)
309
+ };
310
+ }
311
+ let Me = 0;
312
+ function Ae(a) {
313
+ return a.type === "group" ? L(a.value && typeof a.value == "object" && !Array.isArray(a.value) ? a.value : {}) : a.type === "list" ? L(Array.isArray(a.value) ? a.value : []) : a.value;
314
+ }
315
+ function Te(a, s, e, t = !0) {
316
+ return s._value = je(a, a.hook.input.dispatch(e)), a.emit("input", s._value), a.isCreated && a.type === "input" && M(s._value, s.value) ? (a.emit("commitRaw", s.value), s.settled) : (s.isSettled && a.disturb(), t ? (s._tmo && clearTimeout(s._tmo), s._tmo = setTimeout(E, a.props.delay, a, s)) : E(a, s), s.settled);
317
+ }
318
+ function je(a, s) {
319
+ switch (a.type) {
320
+ case "input":
321
+ break;
322
+ case "group":
323
+ (!s || typeof s != "object") && I(107, [a, s]);
324
+ break;
325
+ case "list":
326
+ Array.isArray(s) || I(108, [a, s]);
327
+ break;
328
+ }
329
+ return s;
330
+ }
331
+ function E(a, s, e = !0, t = !0) {
332
+ s._value = s.value = a.hook.commit.dispatch(s._value), a.type !== "input" && t && a.hydrate(), a.emit("commitRaw", s.value), a.emit("commit", s.value), e && a.calm();
333
+ }
334
+ function ne(a, { name: s, value: e, from: t }) {
335
+ if (!Object.isFrozen(a._value)) {
336
+ if (Ee(a)) {
337
+ const i = e === F ? [] : e === z && typeof t == "number" ? a._value.splice(t, 1) : [e];
338
+ a._value.splice(s, e === z || t === se ? 0 : 1, ...i);
339
+ return;
340
+ }
341
+ e !== F ? a._value[s] = e : delete a._value[s];
342
+ }
343
+ }
344
+ function Fe(a, s) {
345
+ const e = s._value;
346
+ return a.type === "list" && a.sync && ze(a, s), s.children.forEach((t) => {
347
+ if (typeof e == "object")
348
+ if (t.name in e) {
349
+ const i = t.type !== "input" || e[t.name] && typeof e[t.name] == "object" ? L(e[t.name]) : e[t.name];
350
+ if (!t.isSettled || !O(i) && M(i, t._value))
351
+ return;
352
+ t.input(i, !1);
353
+ } else
354
+ (a.type !== "list" || typeof t.name == "number") && ne(s, { name: t.name, value: t.value }), e.__init || (t.type === "group" ? t.input({}, !1) : t.type === "list" ? t.input([], !1) : t.input(void 0, !1));
355
+ }), a;
356
+ }
357
+ function ze(a, s) {
358
+ const e = a._value;
359
+ if (!Array.isArray(e))
360
+ return;
361
+ const t = [], i = new Set(s.children), r = /* @__PURE__ */ new Map();
362
+ e.forEach((n, u) => {
363
+ if (s.children[u] && s.children[u]._value === n)
364
+ t.push(s.children[u]), i.delete(s.children[u]);
365
+ else {
366
+ t.push(null);
367
+ const p = r.get(n) || [];
368
+ p.push(u), r.set(n, p);
369
+ }
370
+ }), i.size && r.size && i.forEach((n) => {
371
+ if (r.has(n._value)) {
372
+ const u = r.get(n._value), p = u.shift();
373
+ t[p] = n, i.delete(n), u.length || r.delete(n._value);
374
+ }
375
+ });
376
+ const o = [];
377
+ for (r.forEach((n) => {
378
+ o.push(...n);
379
+ }); i.size && o.length; ) {
380
+ const n = i.values().next().value, u = o.shift();
381
+ if (u === void 0)
382
+ break;
383
+ t[u] = n, i.delete(n);
384
+ }
385
+ o.forEach((n, u) => {
386
+ t[n] = ct({ value: u });
387
+ }), i.size && i.forEach((n) => {
388
+ if (!("__FKP" in n)) {
389
+ const u = n._c.parent;
390
+ if (!u || mt(u))
391
+ return;
392
+ u.ledger.unmerge(n), n._c.parent = null, n.destroy();
393
+ }
394
+ }), s.children = t;
395
+ }
396
+ function Ue(a, s) {
397
+ var e;
398
+ return s._d <= 0 && (s.isSettled = !1, a.emit("settled", !1, !1), s.settled = new Promise((t) => {
399
+ s._resolve = t;
400
+ }), a.parent && ((e = a.parent) === null || e === void 0 || e.disturb())), s._d++, a;
401
+ }
402
+ function Be(a, s, e) {
403
+ var t;
404
+ if (e !== void 0 && a.type !== "input")
405
+ return ne(s, e), E(a, s, !0, !1);
406
+ s._d > 0 && s._d--, s._d === 0 && (s.isSettled = !0, a.emit("settled", !0, !1), a.parent && ((t = a.parent) === null || t === void 0 || t.calm({ name: a.name, value: s.value })), s._resolve && s._resolve(s.value));
407
+ }
408
+ function Ne(a, s) {
409
+ a.emit("destroying", a), a.store.filter(() => !1), a.parent && (a.parent.emit("childRemoved", a), a.parent.remove(a)), Le(a), a.emit("destroyed", a), s._e.flush(), s._value = s.value = void 0;
410
+ for (const e in s.context)
411
+ delete s.context[e];
412
+ s.plugins.clear(), s.context = null;
413
+ }
414
+ function xe(a, s, e) {
415
+ s.type = e.type, s.props.definition = D(e), s.value = s._value = Ae({
416
+ type: a.type,
417
+ value: s.value
418
+ }), e.forceTypeProp && (a.props.type && (a.props.originalType = a.props.type), s.props.type = e.forceTypeProp), e.family && (s.props.family = e.family), e.features && e.features.forEach((t) => t(a)), e.props && a.addProps(e.props), a.emit("defined", e);
419
+ }
420
+ function Ke(a, s, e) {
421
+ var t;
422
+ if (a.props.attrs) {
423
+ const i = { ...a.props.attrs };
424
+ a.props._emit = !1;
425
+ for (const o in i) {
426
+ const n = ye(o);
427
+ e.includes(n) && (a.props[n] = i[o], delete i[o]);
428
+ }
429
+ const r = R(s._value);
430
+ a.props.initial = a.type !== "input" ? L(r) : r, a.props._emit = !0, a.props.attrs = i, a.props.definition && (a.props.definition.props = [
431
+ ...((t = a.props.definition) === null || t === void 0 ? void 0 : t.props) || [],
432
+ ...e
433
+ ]);
434
+ }
435
+ return a.emit("added-props", e), a;
436
+ }
437
+ function Ze(a, s, e, t) {
438
+ if (a.type === "input" && I(100, a), e.parent && e.parent !== a && e.parent.remove(e), !s.children.includes(e)) {
439
+ if (t !== void 0 && a.type === "list") {
440
+ const i = s.children[t];
441
+ i && "__FKP" in i ? (e._c.uid = i.uid, s.children.splice(t, 1, e)) : s.children.splice(t, 0, e), Array.isArray(a.value) && a.value.length < s.children.length && a.disturb().calm({
442
+ name: t,
443
+ value: e.value,
444
+ from: se
445
+ });
446
+ } else
447
+ s.children.push(e);
448
+ e.isSettled || a.disturb();
449
+ }
450
+ if (e.parent !== a) {
451
+ if (e.parent = a, e.parent !== a)
452
+ return a.remove(e), e.parent.add(e), a;
453
+ } else
454
+ e.use(a.plugins);
455
+ return E(a, s, !1), a.ledger.merge(e), a.emit("child", e), a;
456
+ }
457
+ function He(a, s, e, t) {
458
+ return B(t) ? (a.parent && a.parent !== t && a.parent.remove(a), s.parent = t, a.resetConfig(), t.children.includes(a) ? a.use(t.plugins) : t.add(a), !0) : t === null ? (s.parent = null, !0) : !1;
459
+ }
460
+ function qe(a, s, e) {
461
+ const t = s.children.indexOf(e);
462
+ if (t !== -1) {
463
+ e.isSettled && a.disturb(), s.children.splice(t, 1);
464
+ let i = Z(e.props.preserve), r = e.parent;
465
+ for (; i === void 0 && r; )
466
+ i = Z(r.props.preserve), r = r.parent;
467
+ i ? a.calm() : a.calm({
468
+ name: a.type === "list" ? t : e.name,
469
+ value: F
470
+ }), e.parent = null, e.config._rmn = e;
471
+ }
472
+ return a.ledger.unmerge(e), a;
473
+ }
474
+ function We(a, s, e) {
475
+ s.children.forEach((t) => !("__FKP" in t) && e(t));
476
+ }
477
+ function Ye(a, s, e, t = !1, i = !1) {
478
+ s.children.some((r) => {
479
+ if ("__FKP" in r)
480
+ return !1;
481
+ const o = e(r);
482
+ return t && o === !1 ? !0 : i && o === !1 ? !1 : r.walk(e, t, i);
483
+ });
484
+ }
485
+ function Je(a, s) {
486
+ const e = a.parent || void 0;
487
+ s.config = rt(a.config._t, e), a.walk((t) => t.resetConfig());
488
+ }
489
+ function ie(a, s, e, t = !0, i = !0) {
490
+ return Array.isArray(e) || e instanceof Set ? (e.forEach((r) => ie(a, s, r)), a) : (s.plugins.has(e) || (i && typeof e.library == "function" && e.library(a), t && e(a) !== !1 && (s.plugins.add(e), a.children.forEach((r) => r.use(e)))), a);
491
+ }
492
+ function Qe(a, s, e, t) {
493
+ if (B(a.parent)) {
494
+ const i = a.parent.children, r = t >= i.length ? i.length - 1 : t < 0 ? 0 : t, o = i.indexOf(a);
495
+ return o === -1 ? !1 : (i.splice(o, 1), i.splice(r, 0, a), a.parent.children = i, a.parent.type === "list" && a.parent.disturb().calm({ name: r, value: z, from: o }), !0);
496
+ }
497
+ return !1;
498
+ }
499
+ function Xe(a) {
500
+ if (a.parent) {
501
+ const s = [...a.parent.children].indexOf(a);
502
+ return s === -1 ? a.parent.children.length : s;
503
+ }
504
+ return -1;
505
+ }
506
+ function Ge(a, s) {
507
+ return s;
508
+ }
509
+ function et(a, s) {
510
+ var e;
511
+ return ((e = a.parent) === null || e === void 0 ? void 0 : e.type) === "list" ? a.index : s.name !== Re ? s.name : a.index;
512
+ }
513
+ function tt(a, s) {
514
+ return s.parent ? s.parent.address.concat([a.name]) : [a.name];
515
+ }
516
+ function at(a, s, e) {
517
+ const t = typeof e == "string" ? e.split(a.config.delimiter) : e;
518
+ if (!t.length)
519
+ return;
520
+ const i = t[0];
521
+ let r = a.parent;
522
+ for (r || (String(t[0]) === String(a.name) && t.shift(), r = a), i === "$parent" && t.shift(); r && t.length; ) {
523
+ const o = t.shift();
524
+ switch (o) {
525
+ case "$root":
526
+ r = a.root;
527
+ break;
528
+ case "$parent":
529
+ r = r.parent;
530
+ break;
531
+ case "$self":
532
+ r = a;
533
+ break;
534
+ default:
535
+ r = r.children.find((n) => !("__FKP" in n) && String(n.name) === String(o)) || lt(r, o);
536
+ }
537
+ }
538
+ return r || void 0;
539
+ }
540
+ function lt(a, s) {
541
+ const e = String(s).match(/^(find)\((.*)\)$/);
542
+ if (e) {
543
+ const [, t, i] = e, r = i.split(",").map((o) => o.trim());
544
+ switch (t) {
545
+ case "find":
546
+ return a.find(r[0], r[1]);
547
+ default:
548
+ return;
549
+ }
550
+ }
551
+ }
552
+ function st(a, s, e, t) {
553
+ return nt(a, e, t);
554
+ }
555
+ function nt(a, s, e = "name") {
556
+ const t = typeof e == "string" ? (r) => r[e] == s : e, i = [a];
557
+ for (; i.length; ) {
558
+ const r = i.shift();
559
+ if (!("__FKP" in r)) {
560
+ if (t(r, s))
561
+ return r;
562
+ i.push(...r.children);
563
+ }
564
+ }
565
+ }
566
+ function it(a) {
567
+ let s = a;
568
+ for (; s.parent; )
569
+ s = s.parent;
570
+ return s;
571
+ }
572
+ function rt(a = {}, s) {
573
+ let e;
574
+ return new Proxy(a, {
575
+ get(...t) {
576
+ const i = t[1];
577
+ if (i === "_t")
578
+ return a;
579
+ const r = Reflect.get(...t);
580
+ if (r !== void 0)
581
+ return r;
582
+ if (s) {
583
+ const o = s.config[i];
584
+ if (o !== void 0)
585
+ return o;
586
+ }
587
+ if (a.rootConfig && typeof i == "string") {
588
+ const o = a.rootConfig[i];
589
+ if (o !== void 0)
590
+ return o;
591
+ }
592
+ return i === "delay" && (e == null ? void 0 : e.type) === "input" ? 20 : De[i];
593
+ },
594
+ set(...t) {
595
+ const i = t[1], r = t[2];
596
+ if (i === "_n")
597
+ return e = r, a.rootConfig && a.rootConfig._add(e), !0;
598
+ if (i === "_rmn")
599
+ return a.rootConfig && a.rootConfig._rm(e), e = void 0, !0;
600
+ if (!M(a[i], r, !1)) {
601
+ const o = Reflect.set(...t);
602
+ return e && (e.emit(`config:${i}`, r, !1), H(e, i, r), e.walk((n) => H(n, i, r), !1, !0)), o;
603
+ }
604
+ return !0;
605
+ }
606
+ });
607
+ }
608
+ function ot(a, s, e, t = "ui") {
609
+ const i = typeof e == "string" ? { key: e, value: e, type: t } : e, r = a.hook.text.dispatch(i);
610
+ return a.emit("text", r, !1), r.value;
611
+ }
612
+ function ut(a) {
613
+ const s = a.name;
614
+ do {
615
+ if (a.props.isForm === !0)
616
+ break;
617
+ a.parent || I(106, s), a = a.parent;
618
+ } while (a);
619
+ a.props.id && Oe(a.props.id);
620
+ }
621
+ function pt(a, s, e) {
622
+ return Pe(a, e);
623
+ }
624
+ function re(a, s, e, t) {
625
+ const i = `${a.name}-set`, r = a.hook.setErrors.dispatch({ localErrors: e, childErrors: t });
626
+ return Ce(a, r.localErrors, r.childErrors).forEach((o) => {
627
+ a.store.apply(o, (n) => n.meta.source === i);
628
+ }), a;
629
+ }
630
+ function dt(a, s, e = !0, t) {
631
+ return re(a, s, []), e && (t = t || `${a.name}-set`, a.walk((i) => {
632
+ i.store.filter((r) => !(r.type === "error" && r.meta && r.meta.source === t));
633
+ })), a;
634
+ }
635
+ function ft(a, s, e, t) {
636
+ return s.traps.set(e, t), a;
637
+ }
638
+ function ct(a) {
639
+ var s, e, t, i;
640
+ return {
641
+ __FKP: !0,
642
+ uid: Symbol(),
643
+ name: (s = a == null ? void 0 : a.name) !== null && s !== void 0 ? s : `p_${Me++}`,
644
+ value: (e = a == null ? void 0 : a.value) !== null && e !== void 0 ? e : null,
645
+ _value: (t = a == null ? void 0 : a.value) !== null && t !== void 0 ? t : null,
646
+ type: (i = a == null ? void 0 : a.type) !== null && i !== void 0 ? i : "input",
647
+ use: () => {
648
+ },
649
+ input(r) {
650
+ return this._value = r, this.value = r, Promise.resolve();
651
+ },
652
+ isSettled: !0
653
+ };
654
+ }
655
+ function mt(a) {
656
+ return "__FKP" in a;
657
+ }
658
+ function q(a) {
659
+ return typeof a != "string" && P(a, "$el");
660
+ }
661
+ function bt(a) {
662
+ return typeof a != "string" && P(a, "$cmp");
663
+ }
664
+ // @__NO_SIDE_EFFECTS__
665
+ function $(a, s, e = !1) {
666
+ return (...t) => {
667
+ const i = (r) => {
668
+ const o = !s || typeof s == "string" ? { $el: s } : s();
669
+ return (q(o) || bt(o)) && (o.meta || (o.meta = { section: a }), t.length && !o.children && (o.children = [
670
+ ...t.map((n) => typeof n == "function" ? n(r) : n)
671
+ ]), q(o) && (o.attrs = {
672
+ class: `$classes.${a}`,
673
+ ...o.attrs || {}
674
+ })), {
675
+ if: `$slots.${a}`,
676
+ then: `$slots.${a}`,
677
+ else: a in r ? /* @__PURE__ */ _t(o, r[a]) : o
678
+ };
679
+ };
680
+ return i._s = a, e ? /* @__PURE__ */ yt(i) : i;
681
+ };
682
+ }
683
+ // @__NO_SIDE_EFFECTS__
684
+ function yt(a) {
685
+ return (s) => [a(s)];
686
+ }
687
+ function W(a) {
688
+ return typeof a == "object" && ("$el" in a || "$cmp" in a || "$formkit" in a);
689
+ }
690
+ // @__NO_SIDE_EFFECTS__
691
+ function _t(a, s = {}) {
692
+ return typeof a == "string" ? W(s) || typeof s == "string" ? s : a : Array.isArray(a) ? W(s) ? s : a : /* @__PURE__ */ X(a, s);
693
+ }
694
+ const vt = /* @__PURE__ */ $("help", () => ({
695
+ $el: "div",
696
+ if: "$help",
697
+ attrs: {
698
+ id: '$: "help-" + $id'
699
+ }
700
+ })), Y = (a, s) => (/* @__PURE__ */ $(`${a}Icon`, () => {
701
+ const e = `_raw${a.charAt(0).toUpperCase()}${a.slice(1)}Icon`;
702
+ return {
703
+ if: `$${a}Icon && $${e}`,
704
+ $el: `${s || "span"}`,
705
+ attrs: {
706
+ class: `$classes.${a}Icon + " " + $classes.icon`,
707
+ innerHTML: `$${e}`,
708
+ onClick: `$handlers.iconClick(${a})`,
709
+ for: {
710
+ if: `${s === "label"}`,
711
+ then: "$id"
712
+ }
713
+ }
714
+ };
715
+ }))(), ht = /* @__PURE__ */ $("inner", "div"), gt = /* @__PURE__ */ $("label", () => ({
716
+ $el: "label",
717
+ if: "$label",
718
+ attrs: {
719
+ for: "$id"
720
+ }
721
+ })), $t = /* @__PURE__ */ $("message", () => ({
722
+ $el: "li",
723
+ for: ["message", "$messages"],
724
+ attrs: {
725
+ key: "$message.key",
726
+ id: "$id + '-' + $message.key",
727
+ "data-message-type": "$message.type"
728
+ }
729
+ })), kt = /* @__PURE__ */ $("messages", () => ({
730
+ $el: "ul",
731
+ if: "$defaultMessagePlacement && $fns.length($messages)"
732
+ })), wt = /* @__PURE__ */ $("outer", () => ({
733
+ $el: "div",
734
+ attrs: {
735
+ key: "$id",
736
+ "data-family": "$family || undefined",
737
+ "data-type": "$type",
738
+ "data-multiple": '$attrs.multiple || ($type != "select" && $options != undefined) || undefined',
739
+ "data-has-multiple": "$_hasMultipleFiles",
740
+ "data-disabled": '$: ($disabled !== "false" && $disabled) || undefined',
741
+ "data-empty": "$state.empty || undefined",
742
+ "data-complete": "$state.complete || undefined",
743
+ "data-invalid": "$state.valid === false && $state.validationVisible || undefined",
744
+ "data-errors": "$state.errors || undefined",
745
+ "data-submitted": "$state.submitted || undefined",
746
+ "data-prefix-icon": "$_rawPrefixIcon !== undefined || undefined",
747
+ "data-suffix-icon": "$_rawSuffixIcon !== undefined || undefined",
748
+ "data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
749
+ "data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
750
+ }
751
+ })), Ct = /* @__PURE__ */ $("prefix", null), Vt = /* @__PURE__ */ $("suffix", null), Lt = /* @__PURE__ */ $("wrapper", "div");
752
+ U({
753
+ key: "loading",
754
+ value: !0,
755
+ visible: !1
756
+ });
757
+ // @__NO_SIDE_EFFECTS__
758
+ function It(a) {
759
+ return /* @__PURE__ */ wt(/* @__PURE__ */ Lt(/* @__PURE__ */ gt("$label"), /* @__PURE__ */ ht(/* @__PURE__ */ Y("prefix"), /* @__PURE__ */ Ct(), a(), /* @__PURE__ */ Vt(), /* @__PURE__ */ Y("suffix"))), /* @__PURE__ */ vt("$help"), /* @__PURE__ */ kt(/* @__PURE__ */ $t("$message.value")));
760
+ }
761
+ U({
762
+ type: "state",
763
+ blocking: !0,
764
+ visible: !1,
765
+ value: !0,
766
+ key: "validating"
767
+ });
768
+ let Ot = 1;
769
+ function St(a) {
770
+ return typeof a == "function" && a.length === 2 || typeof a == "object" && !Array.isArray(a) && !("$el" in a) && !("$cmp" in a) && !("if" in a);
771
+ }
772
+ function h(a, s = {}) {
773
+ const e = {
774
+ type: "input",
775
+ ...s
776
+ };
777
+ let t;
778
+ if (St(a)) {
779
+ const i = `SchemaComponent${Ot++}`;
780
+ t = /* @__PURE__ */ $("input", () => ({
781
+ $cmp: i,
782
+ props: {
783
+ context: "$node.context"
784
+ }
785
+ })), e.library = { [i]: pe(a) };
786
+ } else
787
+ typeof a == "function" ? t = a : t = /* @__PURE__ */ $("input", () => R(a));
788
+ return e.schema = /* @__PURE__ */ It(t || "Schema undefined"), e.schemaMemoKey || (e.schemaMemoKey = `${Math.random()}`), e;
789
+ }
790
+ const Pt = { class: "p-formkit" }, Dt = /* @__PURE__ */ y({
791
+ __name: "PrimeAutoComplete",
792
+ props: {
793
+ context: Object
794
+ },
795
+ setup(a) {
796
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs), i = de([]);
797
+ function r(n) {
798
+ i.value = t.value.complete(n.query);
799
+ }
800
+ function o(n) {
801
+ var u;
802
+ e == null || e.node.input((u = s.context) == null ? void 0 : u._value);
803
+ }
804
+ return d(() => {
805
+ var n, u;
806
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(n = t.value) == null ? void 0 : n.class} p-invalid` : (u = t.value) == null ? void 0 : u.class;
807
+ }), (n, u) => {
808
+ var f;
809
+ const p = _("AutoComplete");
810
+ return m(), b("div", Pt, [
811
+ v(p, {
812
+ id: l(e).id,
813
+ modelValue: l(e)._value,
814
+ "onUpdate:modelValue": u[0] || (u[0] = (k) => l(e)._value = k),
815
+ disabled: l(t)._disabled ?? !1,
816
+ tabindex: l(t).tabindex,
817
+ "aria-label": l(t).ariaLabel,
818
+ "aria-labelledby": l(t).ariaLabelledby,
819
+ suggestions: l(i),
820
+ dropdown: ((f = l(t)) == null ? void 0 : f.dropdown) ?? !1,
821
+ multiple: l(t).multiple ?? !1,
822
+ pt: l(t).pt,
823
+ "pt-options": l(t).ptOptions,
824
+ unstyled: l(t).unstyled ?? !1,
825
+ onComplete: r,
826
+ onChange: o
827
+ }, null, 8, ["id", "modelValue", "disabled", "tabindex", "aria-label", "aria-labelledby", "suggestions", "dropdown", "multiple", "pt", "pt-options", "unstyled"])
828
+ ]);
829
+ };
830
+ }
831
+ }), Rt = { class: "p-formkit" }, Et = /* @__PURE__ */ y({
832
+ __name: "PrimeCalendar",
833
+ props: {
834
+ context: Object
835
+ },
836
+ setup(a) {
837
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
838
+ function i(u) {
839
+ e == null || e.node.input(e == null ? void 0 : e._value);
840
+ }
841
+ function r(u) {
842
+ e == null || e.node.input(u);
843
+ }
844
+ function o(u) {
845
+ e == null || e.handlers.blur(u.value);
846
+ }
847
+ const n = d(() => {
848
+ var u, p;
849
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(u = t.value) == null ? void 0 : u.class} p-invalid` : (p = t.value) == null ? void 0 : p.class;
850
+ });
851
+ return (u, p) => {
852
+ const f = _("Calendar");
853
+ return m(), b("div", Rt, [
854
+ v(f, {
855
+ modelValue: l(e)._value,
856
+ "onUpdate:modelValue": p[0] || (p[0] = (k) => l(e)._value = k),
857
+ "input-id": s.context.id,
858
+ disabled: l(t)._disabled ?? !1,
859
+ readonly: l(t)._readonly ?? !1,
860
+ "input-style": l(t).style,
861
+ "input-class": l(n),
862
+ tabindex: l(t).tabindex,
863
+ "aria-label": l(t).ariaLabel,
864
+ "aria-labelledby": l(t).ariaLabelledby,
865
+ "date-format": l(t).dateFormat,
866
+ placeholder: l(t).placeholder,
867
+ "selection-mode": l(t).selectionMode ?? "single",
868
+ inline: l(t).inline ?? !1,
869
+ "show-other-months": l(t).showOtherMonths ?? !0,
870
+ "select-other-months": l(t).selectOtherMonths ?? !1,
871
+ icon: l(t).icon,
872
+ "show-icon": l(e).showIcon,
873
+ "previous-icon": l(t).previousIcon ?? "pi pi-chevron-left",
874
+ "next-icon": l(t).nextIcon ?? "pi pi-chevron-right",
875
+ "increment-icon": l(t).incrementIcon ?? "pi pi-chevron-up",
876
+ "decrement-icon": l(t).decrementIcon ?? "pi pi-chevron-down",
877
+ "number-of-months": l(t).numberOfMonths ?? 1,
878
+ "responsive-options": l(t).responsiveOptions,
879
+ view: l(t).view ?? "date",
880
+ "touch-u-i": l(t).touchUI ?? !1,
881
+ "min-date": l(t).minDate,
882
+ "max-date": l(t).maxDate,
883
+ "disabled-dates": l(t).disabledDates,
884
+ "disabled-days": l(t).disabledDays,
885
+ "max-date-count": l(t).maxDateCount,
886
+ "show-on-focus": l(t).showOnFocus ?? !0,
887
+ "auto-z-index": l(t).autoZIndex ?? !0,
888
+ "base-z-index": l(t).baseZIndex ?? 0,
889
+ "show-button-bar": l(t).showButtonBar ?? !1,
890
+ "show-time": l(t).showTime ?? !1,
891
+ "time-only": l(t).timeOnly ?? !1,
892
+ "short-year-cutoff": l(t).shortYearCutoff ?? "+10",
893
+ "hour-format": l(t).hourFormat ?? "24",
894
+ "step-hour": l(t).stepHour ?? 1,
895
+ "step-minute": l(t).stepMinute ?? 1,
896
+ "step-second": l(t).stepSecond ?? 1,
897
+ "show-seconds": l(t).showSeconds ?? !1,
898
+ "hide-on-date-time-select": l(t).hideOnDateTimeSelect ?? !1,
899
+ "hide-on-range-selection": l(t).hideOnRangeSelection ?? !1,
900
+ "time-separator": l(t).timeSeparator ?? ":",
901
+ "show-week": l(t).showWeek ?? !1,
902
+ "manual-input": l(t).manualInput ?? !0,
903
+ "append-to": l(t).appendTo ?? "body",
904
+ "panel-style": l(t).panelStyle,
905
+ "panel-class": l(t).panelClass,
906
+ pt: l(t).pt,
907
+ "pt-options": l(t).ptOptions,
908
+ unstyled: l(t).unstyled ?? !1,
909
+ onDateSelect: r,
910
+ onInput: i,
911
+ onBlur: o
912
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "date-format", "placeholder", "selection-mode", "inline", "show-other-months", "select-other-months", "icon", "show-icon", "previous-icon", "next-icon", "increment-icon", "decrement-icon", "number-of-months", "responsive-options", "view", "touch-u-i", "min-date", "max-date", "disabled-dates", "disabled-days", "max-date-count", "show-on-focus", "auto-z-index", "base-z-index", "show-button-bar", "show-time", "time-only", "short-year-cutoff", "hour-format", "step-hour", "step-minute", "step-second", "show-seconds", "hide-on-date-time-select", "hide-on-range-selection", "time-separator", "show-week", "manual-input", "append-to", "panel-style", "panel-class", "pt", "pt-options", "unstyled"])
913
+ ]);
914
+ };
915
+ }
916
+ }), Mt = { class: "p-formkit" }, At = {
917
+ key: 0,
918
+ class: "formkit-prime-left"
919
+ }, Tt = {
920
+ key: 1,
921
+ class: "formkit-prime-right"
922
+ }, jt = /* @__PURE__ */ y({
923
+ __name: "PrimeCheckbox",
924
+ props: {
925
+ context: Object
926
+ },
927
+ setup(a) {
928
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
929
+ function i(o) {
930
+ var n;
931
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value);
932
+ }
933
+ const r = d(() => {
934
+ var o, n;
935
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
936
+ });
937
+ return (o, n) => {
938
+ const u = _("Checkbox");
939
+ return m(), b("div", Mt, [
940
+ l(e).attrs.labelLeft ? (m(), b("span", At, V(l(e).attrs.labelLeft), 1)) : w("", !0),
941
+ v(u, {
942
+ modelValue: l(e)._value,
943
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l(e)._value = p),
944
+ "input-id": l(e).id,
945
+ disabled: l(t)._disabled ?? !1,
946
+ readonly: l(t)._readonly ?? !1,
947
+ "input-style": l(t).style,
948
+ "input-class": l(r),
949
+ tabindex: l(t).tabindex,
950
+ "aria-label": l(t).ariaLabel,
951
+ "aria-labelledby": l(t).ariaLabelledby,
952
+ binary: l(t).binary ?? !0,
953
+ "true-value": l(t).trueValue ?? void 0,
954
+ "false-value": l(t).falseValue ?? void 0,
955
+ pt: l(t).pt,
956
+ "pt-options": l(t).ptOptions,
957
+ unstyled: l(t).unstyled ?? !1,
958
+ onInput: i
959
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value", "pt", "pt-options", "unstyled"]),
960
+ l(e).attrs.labelRight ? (m(), b("span", Tt, V(l(e).attrs.labelRight), 1)) : w("", !0)
961
+ ]);
962
+ };
963
+ }
964
+ }), Ft = { class: "p-formkit" }, zt = /* @__PURE__ */ y({
965
+ __name: "PrimeChips",
966
+ props: {
967
+ context: Object
968
+ },
969
+ setup(a) {
970
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
971
+ function i(o) {
972
+ var n;
973
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value);
974
+ }
975
+ const r = d(() => {
976
+ var o, n;
977
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
978
+ });
979
+ return (o, n) => {
980
+ const u = _("Chips");
981
+ return m(), b("div", Ft, [
982
+ v(u, {
983
+ modelValue: l(e)._value,
984
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l(e)._value = p),
985
+ "input-id": l(e).id,
986
+ disabled: l(t)._disabled ?? !1,
987
+ readonly: l(t)._readonly ?? !1,
988
+ "input-style": l(t).style,
989
+ "input-class": l(r),
990
+ tabindex: l(t).tabindex,
991
+ "aria-label": l(t).ariaLabel,
992
+ "aria-labelledby": l(t).ariaLabelledby,
993
+ "allow-duplicate": l(t).allowDuplicate ?? !0,
994
+ "add-on-blur": l(t).addOnBlur ?? !1,
995
+ max: l(t).max ?? void 0,
996
+ placeholder: l(t).placeholder,
997
+ separator: l(t).separator,
998
+ pt: l(t).pt,
999
+ "pt-options": l(t).ptOptions,
1000
+ unstyled: l(t).unstyled ?? !1,
1001
+ onAdd: i,
1002
+ onRemove: i
1003
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "allow-duplicate", "add-on-blur", "max", "placeholder", "separator", "pt", "pt-options", "unstyled"])
1004
+ ]);
1005
+ };
1006
+ }
1007
+ }), Ut = { class: "p-formkit" }, Bt = /* @__PURE__ */ y({
1008
+ __name: "PrimeColorPicker",
1009
+ props: {
1010
+ context: Object
1011
+ },
1012
+ setup(a) {
1013
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
1014
+ function i(r) {
1015
+ var o;
1016
+ e == null || e.node.input((o = s.context) == null ? void 0 : o._value);
1017
+ }
1018
+ return (r, o) => {
1019
+ const n = _("ColorPicker");
1020
+ return m(), b("div", Ut, [
1021
+ v(n, {
1022
+ modelValue: l(e)._value,
1023
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => l(e)._value = u),
1024
+ disabled: l(t)._disabled ?? !1,
1025
+ readonly: l(t)._readonly ?? !1,
1026
+ style: C(l(t).style),
1027
+ "panel-class": l(t).class,
1028
+ tabindex: l(t).tabindex,
1029
+ "aria-label": l(t).ariaLabel,
1030
+ "aria-labelledby": l(t).ariaLabelledby,
1031
+ "default-color": l(t).defaultColor ?? "ff0000",
1032
+ inline: l(t).inline ?? !1,
1033
+ format: l(t).format,
1034
+ pt: l(t).pt,
1035
+ "pt-options": l(t).ptOptions,
1036
+ unstyled: l(t).unstyled ?? !1,
1037
+ onChange: i
1038
+ }, null, 8, ["modelValue", "disabled", "readonly", "style", "panel-class", "tabindex", "aria-label", "aria-labelledby", "default-color", "inline", "format", "pt", "pt-options", "unstyled"])
1039
+ ]);
1040
+ };
1041
+ }
1042
+ }), Nt = { class: "p-formkit" }, xt = /* @__PURE__ */ y({
1043
+ __name: "PrimeDropdown",
1044
+ props: {
1045
+ context: Object
1046
+ },
1047
+ setup(a) {
1048
+ const e = a.context, t = d(() => e == null ? void 0 : e.attrs);
1049
+ function i(n) {
1050
+ e == null || e.handlers.blur(n.value);
1051
+ }
1052
+ function r(n) {
1053
+ e == null || e.node.input(n.value);
1054
+ }
1055
+ const o = d(() => {
1056
+ var n, u;
1057
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(n = t.value) == null ? void 0 : n.class} p-invalid` : (u = t.value) == null ? void 0 : u.class;
1058
+ });
1059
+ return (n, u) => {
1060
+ const p = _("Dropdown");
1061
+ return m(), b("div", Nt, [
1062
+ v(p, {
1063
+ modelValue: l(e)._value,
1064
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => l(e)._value = f),
1065
+ "input-id": l(e).id,
1066
+ disabled: l(t)._disabled ?? !1,
1067
+ readonly: l(t)._readonly ?? !1,
1068
+ style: C(l(t).style),
1069
+ class: g(l(o)),
1070
+ "input-style": l(t).style,
1071
+ "input-class": l(o),
1072
+ tabindex: l(t).tabindex,
1073
+ "aria-label": l(t).ariaLabel,
1074
+ "aria-labelledby": l(t).ariaLabelledby,
1075
+ options: l(t).options,
1076
+ "option-label": l(t).optionLabel ?? "label",
1077
+ "option-value": l(t).optionValue ?? "value",
1078
+ placeholder: l(t).placeholder,
1079
+ filter: l(t).filter ?? !1,
1080
+ "show-clear": l(t).showClear ?? !1,
1081
+ pt: l(t).pt,
1082
+ "pt-options": l(t).ptOptions,
1083
+ unstyled: l(t).unstyled ?? !1,
1084
+ onChange: r,
1085
+ onBlur: i
1086
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "style", "class", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "placeholder", "filter", "show-clear", "pt", "pt-options", "unstyled"])
1087
+ ]);
1088
+ };
1089
+ }
1090
+ }), Kt = { class: "p-formkit" }, Zt = /* @__PURE__ */ y({
1091
+ __name: "PrimeEditor",
1092
+ props: {
1093
+ context: Object
1094
+ },
1095
+ setup(a) {
1096
+ const e = a.context, t = d(() => e == null ? void 0 : e.attrs);
1097
+ function i(n) {
1098
+ e == null || e.node.input(n.htmlValue);
1099
+ }
1100
+ function r(n) {
1101
+ n.range === null && (e == null || e.handlers.blur(n.htmlValue));
1102
+ }
1103
+ const o = d(() => {
1104
+ var n, u;
1105
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(n = t.value) == null ? void 0 : n.class} p-invalid` : (u = t.value) == null ? void 0 : u.class;
1106
+ });
1107
+ return (n, u) => {
1108
+ const p = _("Editor");
1109
+ return m(), b("div", Kt, [
1110
+ v(p, {
1111
+ id: l(e).id,
1112
+ modelValue: l(e)._value,
1113
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => l(e)._value = f),
1114
+ disabled: l(t)._disabled ?? !1,
1115
+ readonly: l(t)._readonly ?? !1,
1116
+ "editor-style": l(t).style,
1117
+ class: g(l(o)),
1118
+ tabindex: l(t).tabindex,
1119
+ "aria-label": l(t).ariaLabel,
1120
+ "aria-labelledby": l(t).ariaLabelledby,
1121
+ placeholder: l(t).placeholder,
1122
+ formats: l(t).formats,
1123
+ modules: l(t).modules,
1124
+ pt: l(t).pt,
1125
+ "pt-options": l(t).ptOptions,
1126
+ unstyled: l(t).unstyled ?? !1,
1127
+ onTextChange: i,
1128
+ onSelectionChange: r
1129
+ }, null, 8, ["id", "modelValue", "disabled", "readonly", "editor-style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "formats", "modules", "pt", "pt-options", "unstyled"])
1130
+ ]);
1131
+ };
1132
+ }
1133
+ }), Ht = { class: "p-formkit" }, qt = /* @__PURE__ */ y({
1134
+ __name: "PrimeInputMask",
1135
+ props: {
1136
+ context: Object
1137
+ },
1138
+ setup(a) {
1139
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
1140
+ function i(o) {
1141
+ var n, u;
1142
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value), e == null || e.handlers.blur((u = s.context) == null ? void 0 : u._value);
1143
+ }
1144
+ const r = d(() => {
1145
+ var o, n;
1146
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
1147
+ });
1148
+ return (o, n) => {
1149
+ const u = _("InputMask");
1150
+ return m(), b("div", Ht, [
1151
+ v(u, {
1152
+ id: l(e).id,
1153
+ modelValue: l(e)._value,
1154
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l(e)._value = p),
1155
+ disabled: l(t)._disabled ?? !1,
1156
+ readonly: l(t)._readonly ?? !1,
1157
+ "editor-style": l(t).style,
1158
+ class: g(l(r)),
1159
+ tabindex: l(t).tabindex,
1160
+ "aria-label": l(t).ariaLabel,
1161
+ "aria-labelledby": l(t).ariaLabelledby,
1162
+ placeholder: l(t).placeholder,
1163
+ mask: l(t).mask ?? void 0,
1164
+ "slot-char": l(t).slotChar ?? "_",
1165
+ "auto-clear": l(t).autoClear ?? !0,
1166
+ unmask: l(t).unmask ?? !1,
1167
+ pt: l(t).pt,
1168
+ "pt-options": l(t).ptOptions,
1169
+ unstyled: l(t).unstyled ?? !1,
1170
+ onBlur: i
1171
+ }, null, 8, ["id", "modelValue", "disabled", "readonly", "editor-style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "mask", "slot-char", "auto-clear", "unmask", "pt", "pt-options", "unstyled"])
1172
+ ]);
1173
+ };
1174
+ }
1175
+ }), Wt = { class: "p-formkit" }, Yt = /* @__PURE__ */ y({
1176
+ __name: "PrimeInputNumber",
1177
+ props: {
1178
+ context: Object
1179
+ },
1180
+ setup(a) {
1181
+ const e = a.context, t = d(() => e == null ? void 0 : e.attrs);
1182
+ function i(n) {
1183
+ e == null || e.handlers.blur(n.value);
1184
+ }
1185
+ function r(n) {
1186
+ e == null || e.node.input(n.value);
1187
+ }
1188
+ const o = d(() => {
1189
+ var n, u;
1190
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(n = t.value) == null ? void 0 : n.class} p-invalid` : (u = t.value) == null ? void 0 : u.class;
1191
+ });
1192
+ return (n, u) => {
1193
+ const p = _("InputNumber");
1194
+ return m(), b("div", Wt, [
1195
+ v(p, {
1196
+ modelValue: l(e)._value,
1197
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => l(e)._value = f),
1198
+ "input-id": l(e).id,
1199
+ disabled: l(t)._disabled ?? !1,
1200
+ readonly: l(t)._readonly ?? !1,
1201
+ "input-style": l(t).style,
1202
+ "input-class": l(o),
1203
+ tabindex: l(t).tabindex,
1204
+ "aria-label": l(t).ariaLabel,
1205
+ "aria-labelledby": l(t).ariaLabelledby,
1206
+ placeholder: l(t).placeholder,
1207
+ "use-grouping": l(t).useGrouping ?? !0,
1208
+ "min-fraction-digits": l(t).minFractionDigits ?? void 0,
1209
+ "max-fraction-digits": l(t).maxFractionDigits ?? void 0,
1210
+ locale: l(t).locale ?? void 0,
1211
+ mode: l(t).mode ?? void 0,
1212
+ currency: l(t).currency ?? void 0,
1213
+ prefix: l(t).prefix ?? void 0,
1214
+ suffix: l(t).suffix ?? void 0,
1215
+ "show-buttons": l(t).showButtons ?? void 0,
1216
+ "button-layout": l(t).buttonLayout ?? "stacked",
1217
+ step: l(t).step ?? void 0,
1218
+ pt: l(t).pt,
1219
+ "pt-options": l(t).ptOptions,
1220
+ unstyled: l(t).unstyled ?? !1,
1221
+ onInput: r,
1222
+ onBlur: i
1223
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "use-grouping", "min-fraction-digits", "max-fraction-digits", "locale", "mode", "currency", "prefix", "suffix", "show-buttons", "button-layout", "step", "pt", "pt-options", "unstyled"])
1224
+ ]);
1225
+ };
1226
+ }
1227
+ }), Jt = {
1228
+ key: 0,
1229
+ class: "formkit-prime-left"
1230
+ }, Qt = {
1231
+ key: 1,
1232
+ class: "formkit-prime-right"
1233
+ }, Xt = /* @__PURE__ */ y({
1234
+ __name: "PrimeInputSwitch",
1235
+ props: {
1236
+ context: Object
1237
+ },
1238
+ setup(a) {
1239
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
1240
+ function i(o) {
1241
+ var n;
1242
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value);
1243
+ }
1244
+ const r = d(() => {
1245
+ var o, n;
1246
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
1247
+ });
1248
+ return (o, n) => {
1249
+ const u = _("InputSwitch");
1250
+ return m(), b("div", {
1251
+ class: g([l(t).option_class, "p-formkit"])
1252
+ }, [
1253
+ l(e).attrs.labelLeft ? (m(), b("span", Jt, V(l(e).attrs.labelLeft), 1)) : w("", !0),
1254
+ v(u, {
1255
+ modelValue: l(e)._value,
1256
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l(e)._value = p),
1257
+ "input-id": l(e).id,
1258
+ disabled: l(t)._disabled ?? !1,
1259
+ readonly: l(t)._readonly ?? !1,
1260
+ "input-style": l(t).style,
1261
+ "input-class": l(r),
1262
+ tabindex: l(t).tabindex,
1263
+ "aria-label": l(t).ariaLabel,
1264
+ "aria-labelledby": l(t).ariaLabelledby,
1265
+ "true-value": l(t).trueValue ?? void 0,
1266
+ "false-value": l(t).falseValue ?? void 0,
1267
+ pt: l(t).pt,
1268
+ "pt-options": l(t).ptOptions,
1269
+ unstyled: l(t).unstyled ?? !1,
1270
+ onInput: i
1271
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value", "pt", "pt-options", "unstyled"]),
1272
+ l(e).attrs.labelRight ? (m(), b("span", Qt, V(l(e).attrs.labelRight), 1)) : w("", !0)
1273
+ ], 2);
1274
+ };
1275
+ }
1276
+ }), Gt = { class: "p-formkit" }, ea = /* @__PURE__ */ y({
1277
+ __name: "PrimeInputText",
1278
+ props: {
1279
+ context: Object
1280
+ },
1281
+ setup(a) {
1282
+ const e = a.context, t = d(() => e == null ? void 0 : e.attrs);
1283
+ function i() {
1284
+ return (e == null ? void 0 : e.iconLeft) && (e == null ? void 0 : e.iconLeft.length) > 0;
1285
+ }
1286
+ function r() {
1287
+ return (e == null ? void 0 : e.iconRight) && (e == null ? void 0 : e.iconRight.length) > 0;
1288
+ }
1289
+ function o() {
1290
+ let f = "";
1291
+ return i() && (f = `p-formkit-icon ${f}p-input-icon-left `), r() && (f = `p-formkit-icon ${f}p-input-icon-right `), f;
1292
+ }
1293
+ function n(f) {
1294
+ e == null || e.handlers.blur(f.target.value);
1295
+ }
1296
+ function u(f) {
1297
+ e == null || e.node.input(f.target.value);
1298
+ }
1299
+ const p = d(() => {
1300
+ var f, k;
1301
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(f = t.value) == null ? void 0 : f.class} p-invalid` : (k = t.value) == null ? void 0 : k.class;
1302
+ });
1303
+ return (f, k) => {
1304
+ var N, x;
1305
+ const oe = _("InputText");
1306
+ return m(), b("div", Gt, [
1307
+ J("span", {
1308
+ class: g(o())
1309
+ }, [
1310
+ i() ? (m(), b("i", {
1311
+ key: 0,
1312
+ class: g((N = l(e)) == null ? void 0 : N.iconLeft)
1313
+ }, null, 2)) : w("", !0),
1314
+ v(oe, {
1315
+ id: l(e).id,
1316
+ modelValue: l(e)._value,
1317
+ "onUpdate:modelValue": k[0] || (k[0] = (ue) => l(e)._value = ue),
1318
+ disabled: l(t)._disabled ?? !1,
1319
+ readonly: l(t)._readonly ?? !1,
1320
+ style: C(l(t).style),
1321
+ class: g(l(p)),
1322
+ tabindex: l(t).tabindex,
1323
+ "aria-label": l(t).ariaLabel,
1324
+ "aria-labelledby": l(t).ariaLabelledby,
1325
+ placeholder: l(t).placeholder,
1326
+ pt: l(t).pt,
1327
+ "pt-options": l(t).ptOptions,
1328
+ unstyled: l(t).unstyled ?? !1,
1329
+ onInput: u,
1330
+ onBlur: n
1331
+ }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "pt", "pt-options", "unstyled"]),
1332
+ r() ? (m(), b("i", {
1333
+ key: 1,
1334
+ class: g((x = l(e)) == null ? void 0 : x.iconRight)
1335
+ }, null, 2)) : w("", !0)
1336
+ ], 2)
1337
+ ]);
1338
+ };
1339
+ }
1340
+ }), ta = { class: "p-formkit" }, aa = /* @__PURE__ */ y({
1341
+ __name: "PrimeTextarea",
1342
+ props: {
1343
+ context: Object
1344
+ },
1345
+ setup(a) {
1346
+ const e = a.context, t = d(() => e == null ? void 0 : e.attrs);
1347
+ function i(n) {
1348
+ e == null || e.handlers.blur(n.target.value);
1349
+ }
1350
+ function r(n) {
1351
+ e == null || e.node.input(n.target.value);
1352
+ }
1353
+ const o = d(() => {
1354
+ var n, u;
1355
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(n = t.value) == null ? void 0 : n.class} p-invalid` : (u = t.value) == null ? void 0 : u.class;
1356
+ });
1357
+ return (n, u) => {
1358
+ const p = _("Textarea");
1359
+ return m(), b("div", ta, [
1360
+ v(p, {
1361
+ id: l(e).id,
1362
+ modelValue: l(e)._value,
1363
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => l(e)._value = f),
1364
+ disabled: l(t)._disabled ?? !1,
1365
+ readonly: l(t)._readonly ?? !1,
1366
+ style: C(l(t).style),
1367
+ class: g(l(o)),
1368
+ tabindex: l(t).tabindex,
1369
+ "aria-label": l(t).ariaLabel,
1370
+ "aria-labelledby": l(t).ariaLabelledby,
1371
+ placeholder: l(t).placeholder,
1372
+ rows: l(e).rows ?? 3,
1373
+ pt: l(t).pt,
1374
+ "pt-options": l(t).ptOptions,
1375
+ unstyled: l(t).unstyled ?? !1,
1376
+ onInput: r,
1377
+ onBlur: i
1378
+ }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "rows", "pt", "pt-options", "unstyled"])
1379
+ ]);
1380
+ };
1381
+ }
1382
+ }), la = { class: "p-formkit" }, sa = /* @__PURE__ */ y({
1383
+ __name: "PrimeKnob",
1384
+ props: {
1385
+ context: Object
1386
+ },
1387
+ setup(a) {
1388
+ const e = a.context, t = d(() => e == null ? void 0 : e.attrs);
1389
+ function i(n) {
1390
+ e == null || e.node.input(n), e == null || e.handlers.blur(n);
1391
+ }
1392
+ function r(n) {
1393
+ e == null || e.node.input(n);
1394
+ }
1395
+ const o = d(() => {
1396
+ var n, u;
1397
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(n = t.value) == null ? void 0 : n.class} p-invalid` : (u = t.value) == null ? void 0 : u.class;
1398
+ });
1399
+ return (n, u) => {
1400
+ const p = _("Knob");
1401
+ return m(), b("div", la, [
1402
+ v(p, {
1403
+ id: l(e).id,
1404
+ modelValue: l(e)._value,
1405
+ "onUpdate:modelValue": [
1406
+ u[0] || (u[0] = (f) => l(e)._value = f),
1407
+ r
1408
+ ],
1409
+ disabled: l(t)._disabled ?? !1,
1410
+ readonly: l(t)._readonly ?? !1,
1411
+ style: C(l(t).style),
1412
+ class: g(l(o)),
1413
+ tabindex: l(t).tabindex,
1414
+ "aria-label": l(t).ariaLabel,
1415
+ "aria-labelledby": l(t).ariaLabelledby,
1416
+ min: l(t).min ?? 0,
1417
+ max: l(t).max ?? 100,
1418
+ step: l(t).step ?? void 0,
1419
+ size: l(t).size ?? 100,
1420
+ "stroke-width": l(t).strokeWidth ?? 14,
1421
+ "show-value": l(t).showValue ?? !0,
1422
+ "value-color": l(t).valueColor ?? void 0,
1423
+ "range-color": l(t).rangeColor ?? void 0,
1424
+ "text-color": l(t).textColor ?? void 0,
1425
+ "value-template": l(t).valueTemplate ?? void 0,
1426
+ pt: l(t).pt,
1427
+ "pt-options": l(t).ptOptions,
1428
+ unstyled: l(t).unstyled ?? !1,
1429
+ onChange: i
1430
+ }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "min", "max", "step", "size", "stroke-width", "show-value", "value-color", "range-color", "text-color", "value-template", "pt", "pt-options", "unstyled"])
1431
+ ]);
1432
+ };
1433
+ }
1434
+ }), na = { class: "p-formkit" }, ia = /* @__PURE__ */ y({
1435
+ __name: "PrimeMultiSelect",
1436
+ props: {
1437
+ context: Object
1438
+ },
1439
+ setup(a) {
1440
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
1441
+ function i(o) {
1442
+ var n;
1443
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value);
1444
+ }
1445
+ const r = d(() => {
1446
+ var o, n;
1447
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
1448
+ });
1449
+ return (o, n) => {
1450
+ const u = _("MultiSelect");
1451
+ return m(), b("div", na, [
1452
+ v(u, {
1453
+ modelValue: l(e)._value,
1454
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l(e)._value = p),
1455
+ "input-id": l(e).id,
1456
+ disabled: l(t)._disabled ?? !1,
1457
+ readonly: l(t)._readonly ?? !1,
1458
+ "list-style": l(t).style,
1459
+ class: g(l(r)),
1460
+ tabindex: l(t).tabindex,
1461
+ "aria-label": l(t).ariaLabel,
1462
+ "aria-labelledby": l(t).ariaLabelledby,
1463
+ placeholder: l(t).placeholder,
1464
+ options: l(t).options,
1465
+ "option-label": l(t).optionLabel ?? "label",
1466
+ "option-value": l(t).optionValue ?? "value",
1467
+ filter: l(t).filter ?? !1,
1468
+ display: l(t).display,
1469
+ "max-selected-labels": l(t).maxSelectedLabels,
1470
+ "selected-items-label": l(t).selectedItemsLabel,
1471
+ "selection-limit": l(t).selectionLimit,
1472
+ "show-toggle-all": l(t).showToggleAll,
1473
+ pt: l(t).pt,
1474
+ "pt-options": l(t).ptOptions,
1475
+ unstyled: l(t).unstyled ?? !1,
1476
+ onChange: i
1477
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "list-style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "options", "option-label", "option-value", "filter", "display", "max-selected-labels", "selected-items-label", "selection-limit", "show-toggle-all", "pt", "pt-options", "unstyled"])
1478
+ ]);
1479
+ };
1480
+ }
1481
+ }), ra = { class: "p-formkit" }, oa = /* @__PURE__ */ y({
1482
+ __name: "PrimeListbox",
1483
+ props: {
1484
+ context: Object
1485
+ },
1486
+ setup(a) {
1487
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
1488
+ function i(o) {
1489
+ var n;
1490
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value);
1491
+ }
1492
+ const r = d(() => {
1493
+ var o, n;
1494
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
1495
+ });
1496
+ return (o, n) => {
1497
+ var p;
1498
+ const u = _("Listbox");
1499
+ return m(), b("div", ra, [
1500
+ v(u, {
1501
+ id: l(e).id,
1502
+ modelValue: l(e)._value,
1503
+ "onUpdate:modelValue": n[0] || (n[0] = (f) => l(e)._value = f),
1504
+ disabled: l(t)._disabled ?? !1,
1505
+ readonly: l(t)._readonly ?? !1,
1506
+ "list-style": l(t).style,
1507
+ class: g(l(r)),
1508
+ tabindex: l(t).tabindex,
1509
+ "aria-label": l(t).ariaLabel,
1510
+ "aria-labelledby": l(t).ariaLabelledby,
1511
+ options: (p = l(t)) == null ? void 0 : p.options,
1512
+ "option-label": l(t).optionLabel ?? "label",
1513
+ "option-value": l(t).optionValue ?? "value",
1514
+ multiple: l(t).multiple ?? !1,
1515
+ filter: l(t).filter ?? !1,
1516
+ "filter-icon": l(t).filterIcon,
1517
+ "filter-placeholder": l(t).filterPlaceholder,
1518
+ "filter-locale": l(t).filterLocale,
1519
+ "filter-match-mode": l(t).filterMatchMode,
1520
+ "auto-option-focus": l(t).autoOptionFocus ?? !0,
1521
+ "select-on-focus": l(t).selectOnFocus ?? !1,
1522
+ pt: l(t).pt,
1523
+ "pt-options": l(t).ptOptions,
1524
+ unstyled: l(t).unstyled ?? !1,
1525
+ onChange: i
1526
+ }, null, 8, ["id", "modelValue", "disabled", "readonly", "list-style", "class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "multiple", "filter", "filter-icon", "filter-placeholder", "filter-locale", "filter-match-mode", "auto-option-focus", "select-on-focus", "pt", "pt-options", "unstyled"])
1527
+ ]);
1528
+ };
1529
+ }
1530
+ }), ua = { class: "p-formkit" }, pa = /* @__PURE__ */ y({
1531
+ __name: "PrimePassword",
1532
+ props: {
1533
+ context: Object
1534
+ },
1535
+ setup(a) {
1536
+ const e = a.context, t = d(() => e == null ? void 0 : e.attrs);
1537
+ function i(n) {
1538
+ e == null || e.handlers.blur(n.target.value);
1539
+ }
1540
+ function r(n) {
1541
+ e == null || e.node.input(n.target.value);
1542
+ }
1543
+ const o = d(() => {
1544
+ var n, u;
1545
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(n = t.value) == null ? void 0 : n.class} p-invalid` : (u = t.value) == null ? void 0 : u.class;
1546
+ });
1547
+ return (n, u) => {
1548
+ const p = _("Password");
1549
+ return m(), b("div", ua, [
1550
+ v(p, {
1551
+ modelValue: l(e)._value,
1552
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => l(e)._value = f),
1553
+ "input-id": l(e).id,
1554
+ disabled: l(t)._disabled ?? !1,
1555
+ readonly: l(t)._readonly ?? !1,
1556
+ "input-style": l(t).style,
1557
+ "input-class": l(o),
1558
+ tabindex: l(t).tabindex,
1559
+ "aria-label": l(t).ariaLabel,
1560
+ "aria-labelledby": l(t).ariaLabelledby,
1561
+ placeholder: l(t).placeholder,
1562
+ "medium-regex": l(t).mediumRegex ?? "^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})",
1563
+ "strong-regex": l(t).strongRegex ?? "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})",
1564
+ "prompt-label": l(t).promptLabel,
1565
+ "weak-label": l(t).weakLabel,
1566
+ "medium-label": l(t).mediumLabel,
1567
+ "strong-label": l(t).strongLabel,
1568
+ "hide-icon": l(t).hideIcon ?? "pi pi-eye-slash",
1569
+ "show-icon": l(t).showIcon ?? "pi pi-eye",
1570
+ feedback: l(e).feedback ?? !1,
1571
+ "toggle-mask": l(e).toggleMask ?? !1,
1572
+ pt: l(t).pt,
1573
+ "pt-options": l(t).ptOptions,
1574
+ unstyled: l(t).unstyled ?? !1,
1575
+ onInput: r,
1576
+ onBlur: i
1577
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "medium-regex", "strong-regex", "prompt-label", "weak-label", "medium-label", "strong-label", "hide-icon", "show-icon", "feedback", "toggle-mask", "pt", "pt-options", "unstyled"])
1578
+ ]);
1579
+ };
1580
+ }
1581
+ }), da = ["for"], fa = /* @__PURE__ */ y({
1582
+ __name: "PrimeRadioButton",
1583
+ props: {
1584
+ context: Object
1585
+ },
1586
+ setup(a) {
1587
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
1588
+ function i(o) {
1589
+ var n;
1590
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value);
1591
+ }
1592
+ const r = d(() => {
1593
+ var o, n;
1594
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
1595
+ });
1596
+ return (o, n) => {
1597
+ const u = _("RadioButton");
1598
+ return m(), b("div", {
1599
+ class: g([l(t).options_class, "p-formkit"])
1600
+ }, [
1601
+ (m(!0), b(fe, null, ce(l(t).options, (p) => (m(), b("div", {
1602
+ key: p.value,
1603
+ class: g(l(t).option_class)
1604
+ }, [
1605
+ v(u, {
1606
+ modelValue: l(e)._value,
1607
+ "onUpdate:modelValue": n[0] || (n[0] = (f) => l(e)._value = f),
1608
+ name: l(t).name,
1609
+ value: p.value,
1610
+ "input-style": l(t).style,
1611
+ "input-class": l(r),
1612
+ pt: l(t).pt,
1613
+ "pt-options": l(t).ptOptions,
1614
+ unstyled: l(t).unstyled ?? !1,
1615
+ onClick: i,
1616
+ onChange: i
1617
+ }, null, 8, ["modelValue", "name", "value", "input-style", "input-class", "pt", "pt-options", "unstyled"]),
1618
+ J("label", {
1619
+ for: p.value
1620
+ }, V(p.label), 9, da)
1621
+ ], 2))), 128))
1622
+ ], 2);
1623
+ };
1624
+ }
1625
+ }), ca = { class: "p-formkit" }, ma = /* @__PURE__ */ y({
1626
+ __name: "PrimeRating",
1627
+ props: {
1628
+ context: Object
1629
+ },
1630
+ setup(a) {
1631
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
1632
+ function i(o) {
1633
+ var n;
1634
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value);
1635
+ }
1636
+ const r = d(() => {
1637
+ var o, n;
1638
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
1639
+ });
1640
+ return (o, n) => {
1641
+ const u = _("Rating");
1642
+ return m(), b("div", ca, [
1643
+ v(u, {
1644
+ id: l(e).id,
1645
+ modelValue: l(e)._value,
1646
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l(e)._value = p),
1647
+ disabled: l(t)._disabled ?? !1,
1648
+ readonly: l(t)._readonly ?? !1,
1649
+ style: C(l(t).style),
1650
+ class: g(l(r)),
1651
+ tabindex: l(t).tabindex,
1652
+ "aria-label": l(t).ariaLabel,
1653
+ "aria-labelledby": l(t).ariaLabelledby,
1654
+ stars: l(t).stars ?? 5,
1655
+ cancel: l(t).cancel ?? !1,
1656
+ "on-icon": l(t).onIcon ?? "pi pi-star-fill",
1657
+ "off-icon": l(t).offIcon ?? "pi pi-star",
1658
+ "cancel-icon": l(t).cancelIcon ?? "pi pi-ban",
1659
+ pt: l(t).pt,
1660
+ "pt-options": l(t).ptOptions,
1661
+ unstyled: l(t).unstyled ?? !1,
1662
+ onChange: i
1663
+ }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "stars", "cancel", "on-icon", "off-icon", "cancel-icon", "pt", "pt-options", "unstyled"])
1664
+ ]);
1665
+ };
1666
+ }
1667
+ }), ba = { class: "p-formkit" }, ya = /* @__PURE__ */ y({
1668
+ __name: "PrimeSlider",
1669
+ props: {
1670
+ context: Object
1671
+ },
1672
+ setup(a) {
1673
+ const e = a.context, t = d(() => e == null ? void 0 : e.attrs);
1674
+ function i(o) {
1675
+ e == null || e.node.input(o), e == null || e.handlers.blur(o);
1676
+ }
1677
+ const r = d(() => {
1678
+ var o, n;
1679
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
1680
+ });
1681
+ return (o, n) => {
1682
+ const u = _("Slider");
1683
+ return m(), b("div", ba, [
1684
+ v(u, {
1685
+ id: l(e).id,
1686
+ modelValue: l(e)._value,
1687
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l(e)._value = p),
1688
+ disabled: l(t)._disabled ?? !1,
1689
+ readonly: l(t)._readonly ?? !1,
1690
+ style: C(l(t).style),
1691
+ class: g(l(r)),
1692
+ tabindex: l(t).tabindex,
1693
+ "aria-label": l(t).ariaLabel,
1694
+ "aria-labelledby": l(t).ariaLabelledby,
1695
+ min: l(t).min ?? 0,
1696
+ max: l(t).max ?? 100,
1697
+ step: l(t).step ?? void 0,
1698
+ range: l(t).range ?? !1,
1699
+ orientation: l(t).orientation ?? "horizontal",
1700
+ pt: l(t).pt,
1701
+ "pt-options": l(t).ptOptions,
1702
+ unstyled: l(t).unstyled ?? !1,
1703
+ onChange: i
1704
+ }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "min", "max", "step", "range", "orientation", "pt", "pt-options", "unstyled"])
1705
+ ]);
1706
+ };
1707
+ }
1708
+ }), _a = { class: "p-formkit" }, va = /* @__PURE__ */ y({
1709
+ __name: "PrimeToggleButton",
1710
+ props: {
1711
+ context: Object
1712
+ },
1713
+ setup(a) {
1714
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
1715
+ function i(o) {
1716
+ var n;
1717
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value);
1718
+ }
1719
+ const r = d(() => {
1720
+ var o, n;
1721
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
1722
+ });
1723
+ return (o, n) => {
1724
+ const u = _("ToggleButton");
1725
+ return m(), b("div", _a, [
1726
+ v(u, {
1727
+ modelValue: l(e)._value,
1728
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l(e)._value = p),
1729
+ "input-id": l(e).id,
1730
+ disabled: l(t)._disabled ?? !1,
1731
+ readonly: l(t)._readonly ?? !1,
1732
+ "input-style": l(t).style,
1733
+ "input-class": l(r),
1734
+ tabindex: l(t).tabindex,
1735
+ "aria-label": l(t).ariaLabel,
1736
+ "aria-labelledby": l(t).ariaLabelledby,
1737
+ "on-label": l(t).onLabel ?? "Yes",
1738
+ "off-label": l(t).offLabel ?? "No",
1739
+ "on-icon": l(t).onIcon ?? "pi pi-check",
1740
+ "off-icon": l(t).offIcon ?? "pi pi-times",
1741
+ "icon-pos": l(t).iconPos ?? "left",
1742
+ pt: l(t).pt,
1743
+ "pt-options": l(t).ptOptions,
1744
+ unstyled: l(t).unstyled ?? !1,
1745
+ onChange: i
1746
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "on-label", "off-label", "on-icon", "off-icon", "icon-pos", "pt", "pt-options", "unstyled"])
1747
+ ]);
1748
+ };
1749
+ }
1750
+ }), ha = { class: "p-formkit" }, ga = /* @__PURE__ */ y({
1751
+ __name: "PrimeSelectButton",
1752
+ props: {
1753
+ context: Object
1754
+ },
1755
+ setup(a) {
1756
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
1757
+ function i(o) {
1758
+ var n;
1759
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value);
1760
+ }
1761
+ const r = d(() => {
1762
+ var o, n;
1763
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
1764
+ });
1765
+ return (o, n) => {
1766
+ const u = _("SelectButton");
1767
+ return m(), b("div", ha, [
1768
+ v(u, {
1769
+ id: l(e).id,
1770
+ modelValue: l(e)._value,
1771
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l(e)._value = p),
1772
+ disabled: l(t)._disabled ?? !1,
1773
+ readonly: l(t)._readonly ?? !1,
1774
+ style: C(l(t).style),
1775
+ class: g(l(r)),
1776
+ tabindex: l(t).tabindex,
1777
+ "aria-label": l(t).ariaLabel,
1778
+ "aria-labelledby": l(t).ariaLabelledby,
1779
+ options: l(t).options,
1780
+ "option-label": l(t).optionLabel ?? "label",
1781
+ "option-value": l(t).optionValue ?? "value",
1782
+ "option-disabled": l(t).optionDisabled,
1783
+ multiple: l(t).multiple ?? !1,
1784
+ unselectable: l(t).unselectable ?? !0,
1785
+ "data-key": l(t).dataKey,
1786
+ pt: l(t).pt,
1787
+ "pt-options": l(t).ptOptions,
1788
+ unstyled: l(t).unstyled ?? !1,
1789
+ onChange: i
1790
+ }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "option-disabled", "multiple", "unselectable", "data-key", "pt", "pt-options", "unstyled"])
1791
+ ]);
1792
+ };
1793
+ }
1794
+ }), $a = { class: "p-formkit" }, ka = {
1795
+ key: 0,
1796
+ class: "formkit-prime-left"
1797
+ }, wa = {
1798
+ key: 1,
1799
+ class: "formkit-prime-right"
1800
+ }, Ca = /* @__PURE__ */ y({
1801
+ __name: "PrimeTriStateCheckbox",
1802
+ props: {
1803
+ context: Object
1804
+ },
1805
+ setup(a) {
1806
+ const s = a, e = s.context, t = d(() => e == null ? void 0 : e.attrs);
1807
+ function i(o) {
1808
+ var n;
1809
+ e == null || e.node.input((n = s.context) == null ? void 0 : n._value);
1810
+ }
1811
+ const r = d(() => {
1812
+ var o, n;
1813
+ return e != null && e.state.validationVisible && !(e != null && e.state.valid) ? `${(o = t.value) == null ? void 0 : o.class} p-invalid` : (n = t.value) == null ? void 0 : n.class;
1814
+ });
1815
+ return (o, n) => {
1816
+ const u = _("TriStateCheckbox");
1817
+ return m(), b("div", $a, [
1818
+ l(e).attrs.labelLeft ? (m(), b("span", ka, V(l(e).attrs.labelLeft), 1)) : w("", !0),
1819
+ v(u, {
1820
+ modelValue: l(e)._value,
1821
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l(e)._value = p),
1822
+ "input-id": l(e).id,
1823
+ disabled: l(t)._disabled ?? !1,
1824
+ readonly: l(t)._readonly ?? !1,
1825
+ "input-style": l(t).style,
1826
+ "input-class": l(r),
1827
+ tabindex: l(t).tabindex,
1828
+ "aria-label": l(t).ariaLabel,
1829
+ "aria-labelledby": l(t).ariaLabelledby,
1830
+ pt: l(t).pt,
1831
+ "pt-options": l(t).ptOptions,
1832
+ unstyled: l(t).unstyled ?? !1,
1833
+ onClick: i
1834
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "pt", "pt-options", "unstyled"]),
1835
+ l(e).attrs.labelRight ? (m(), b("span", wa, V(l(e).attrs.labelRight), 1)) : w("", !0)
1836
+ ]);
1837
+ };
1838
+ }
1839
+ }), Va = h(Dt, {
1840
+ props: []
1841
+ }), La = h(ea, {
1842
+ props: ["iconRight", "iconLeft"]
1843
+ }), Ia = h(Yt, {
1844
+ props: ["iconRight", "iconLeft"]
1845
+ }), Oa = h(qt, {
1846
+ props: []
1847
+ }), Sa = h(pa, {
1848
+ props: ["feedback", "toggleMask"]
1849
+ }), Pa = h(aa, {
1850
+ props: ["rows"]
1851
+ }), Da = h(jt, {
1852
+ props: []
1853
+ }), Ra = h(Xt, {
1854
+ props: []
1855
+ }), Ea = h(Zt, {
1856
+ props: []
1857
+ }), Ma = h(xt, {
1858
+ props: []
1859
+ }), Aa = h(ia, {
1860
+ props: []
1861
+ }), Ta = h(oa, {
1862
+ props: []
1863
+ }), ja = h(Et, {
1864
+ props: []
1865
+ }), Fa = h(ya, {
1866
+ props: []
1867
+ }), za = h(ma, {
1868
+ props: []
1869
+ }), Ua = h(fa, {
1870
+ props: []
1871
+ }), Ba = h(zt, {
1872
+ props: []
1873
+ }), Na = h(sa, {
1874
+ props: []
1875
+ }), xa = h(Bt, {
1876
+ props: []
1877
+ }), Ka = h(va, {
1878
+ props: []
1879
+ }), Za = h(ga, {
1880
+ props: []
1881
+ }), Ha = h(Ca, {
1882
+ props: []
1883
+ }), Wa = {
1884
+ primeAutoComplete: Va,
1885
+ primeInputText: La,
1886
+ primeInputNumber: Ia,
1887
+ primeInputMask: Oa,
1888
+ primePassword: Sa,
1889
+ primeCheckbox: Da,
1890
+ primeInputSwitch: Ra,
1891
+ primeTextarea: Pa,
1892
+ primeEditor: Ea,
1893
+ primeDropdown: Ma,
1894
+ primeMultiSelect: Aa,
1895
+ primeCalendar: ja,
1896
+ primeSlider: Fa,
1897
+ primeChips: Ba,
1898
+ primeKnob: Na,
1899
+ primeRating: za,
1900
+ primeRadioButton: Ua,
1901
+ primeColorPicker: xa,
1902
+ primeToggleButton: Ka,
1903
+ primeListbox: Ta,
1904
+ primeSelectButton: Za,
1905
+ primeTriStateCheckbox: Ha
1906
+ };
1907
+ export {
1908
+ Va as primeAutoCompleteDefinition,
1909
+ ja as primeCalendarDefinition,
1910
+ Da as primeCheckboxDefinition,
1911
+ Ba as primeChipsDefinition,
1912
+ xa as primeColorPickerDefinition,
1913
+ Ma as primeDropdownDefinition,
1914
+ Ea as primeEditorDefinition,
1915
+ Oa as primeInputMaskDefinition,
1916
+ Ia as primeInputNumberDefinition,
1917
+ Ra as primeInputSwitchDefinition,
1918
+ La as primeInputTextDefinition,
1919
+ Wa as primeInputs,
1920
+ Na as primeKnobDefinition,
1921
+ Ta as primeListboxDefinition,
1922
+ Aa as primeMultiSelectDefinition,
1923
+ Sa as primePasswordDefinition,
1924
+ Ua as primeRadioButtonDefinition,
1925
+ za as primeRatingDefinition,
1926
+ Za as primeSelectButtonDefinition,
1927
+ Fa as primeSliderDefinition,
1928
+ Pa as primeTextareaDefinition,
1929
+ Ka as primeToggleButtonDefinition,
1930
+ Ha as primeTriStateCheckboxDefinition
1931
+ };