@sfxcode/formkit-primevue 1.4.1 → 1.4.2
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/README.md
CHANGED
|
@@ -35,6 +35,7 @@ You can use it or take it as base for your own styling.
|
|
|
35
35
|
- All inputs are wrapped in a div with a **p-formkit** class
|
|
36
36
|
- Most Prime Components have access to class / styles attributes
|
|
37
37
|
- PT and PTOptions are available ([https://primevue.org/passthrough/](https://primevue.org/passthrough/))
|
|
38
|
+
- [Styling](https://formkit-primevue.netlify.app/demo/styling), [Grid](https://formkit-primevue.netlify.app/demo/grid) and [PT](https://formkit-primevue.netlify.app/demo/passThrough) demo available
|
|
38
39
|
|
|
39
40
|
## Showcases
|
|
40
41
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { markRaw as oe, defineComponent as b, ref as ue, computed as h, resolveComponent as y, openBlock as f, createElementBlock as c, createVNode as _, unref as l, toDisplayString as
|
|
1
|
+
import { markRaw as oe, defineComponent as b, ref as ue, computed as h, resolveComponent as y, openBlock as f, createElementBlock as c, createVNode as _, unref as l, toDisplayString as C, createCommentVNode as k, normalizeStyle as w, normalizeClass as g, createElementVNode as W, Fragment as pe, renderList as de } from "vue";
|
|
2
2
|
const fe = [
|
|
3
3
|
"__key",
|
|
4
4
|
"__init",
|
|
@@ -853,6 +853,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
853
853
|
"aria-label": l(e).ariaLabel,
|
|
854
854
|
"aria-labelledby": l(e).ariaLabelledby,
|
|
855
855
|
"date-format": l(e).dateFormat,
|
|
856
|
+
placeholder: l(e).placeholder,
|
|
856
857
|
"selection-mode": l(e).selectionMode ?? "single",
|
|
857
858
|
inline: l(e).inline ?? !1,
|
|
858
859
|
"show-other-months": l(e).showOtherMonths ?? !0,
|
|
@@ -897,7 +898,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
897
898
|
unstyled: l(e).unstyled ?? !1,
|
|
898
899
|
onDateSelect: s,
|
|
899
900
|
onInput: i
|
|
900
|
-
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "date-format", "selection-mode", "inline", "show-other-months", "select-other-months", "icon", "show-icon", "previous-icon", "next-icon", "increment-icon", "decrement-icon", "number-of-months", "responsive-options", "view", "touch-u-i", "min-date", "max-date", "disabled-dates", "disabled-days", "max-date-count", "show-on-focus", "auto-z-index", "base-z-index", "show-button-bar", "show-time", "time-only", "short-year-cutoff", "hour-format", "step-hour", "step-minute", "step-second", "show-seconds", "hide-on-date-time-select", "hide-on-range-selection", "time-separator", "show-week", "manual-input", "append-to", "panel-style", "panel-class", "pt", "pt-options", "unstyled"])
|
|
901
|
+
}, 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"])
|
|
901
902
|
]);
|
|
902
903
|
};
|
|
903
904
|
}
|
|
@@ -922,7 +923,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
922
923
|
return (o, r) => {
|
|
923
924
|
const u = y("Checkbox");
|
|
924
925
|
return f(), c("div", Rt, [
|
|
925
|
-
l(t).attrs.labelLeft ? (f(), c("span", Et,
|
|
926
|
+
l(t).attrs.labelLeft ? (f(), c("span", Et, C(l(t).attrs.labelLeft), 1)) : k("", !0),
|
|
926
927
|
_(u, {
|
|
927
928
|
modelValue: l(t)._value,
|
|
928
929
|
"onUpdate:modelValue": r[0] || (r[0] = (p) => l(t)._value = p),
|
|
@@ -942,7 +943,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
942
943
|
unstyled: l(e).unstyled ?? !1,
|
|
943
944
|
onInput: i
|
|
944
945
|
}, 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"]),
|
|
945
|
-
l(t).attrs.labelRight ? (f(), c("span", Mt,
|
|
946
|
+
l(t).attrs.labelRight ? (f(), c("span", Mt, C(l(t).attrs.labelRight), 1)) : k("", !0)
|
|
946
947
|
]);
|
|
947
948
|
};
|
|
948
949
|
}
|
|
@@ -1005,7 +1006,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1005
1006
|
"onUpdate:modelValue": o[0] || (o[0] = (u) => l(t)._value = u),
|
|
1006
1007
|
disabled: l(e)._disabled ?? !1,
|
|
1007
1008
|
readonly: l(e)._readonly ?? !1,
|
|
1008
|
-
style:
|
|
1009
|
+
style: w(l(e).style),
|
|
1009
1010
|
"panel-class": l(e).class,
|
|
1010
1011
|
tabindex: l(e).tabindex,
|
|
1011
1012
|
"aria-label": l(e).ariaLabel,
|
|
@@ -1044,8 +1045,10 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1044
1045
|
"input-id": l(t).id,
|
|
1045
1046
|
disabled: l(e)._disabled ?? !1,
|
|
1046
1047
|
readonly: l(e)._readonly ?? !1,
|
|
1047
|
-
|
|
1048
|
-
|
|
1048
|
+
style: w(l(e).style),
|
|
1049
|
+
class: g(l(o)),
|
|
1050
|
+
"input-style": l(e).style,
|
|
1051
|
+
"input-class": l(o),
|
|
1049
1052
|
tabindex: l(e).tabindex,
|
|
1050
1053
|
"aria-label": l(e).ariaLabel,
|
|
1051
1054
|
"aria-labelledby": l(e).ariaLabelledby,
|
|
@@ -1060,7 +1063,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1060
1063
|
unstyled: l(e).unstyled ?? !1,
|
|
1061
1064
|
onChange: s,
|
|
1062
1065
|
onBlur: i
|
|
1063
|
-
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "options", "option-label", "option-value", "placeholder", "filter", "show-clear", "pt", "pt-options", "unstyled"])
|
|
1066
|
+
}, 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"])
|
|
1064
1067
|
]);
|
|
1065
1068
|
};
|
|
1066
1069
|
}
|
|
@@ -1215,7 +1218,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1215
1218
|
return f(), c("div", {
|
|
1216
1219
|
class: g([l(e).option_class, "p-formkit"])
|
|
1217
1220
|
}, [
|
|
1218
|
-
l(t).attrs.labelLeft ? (f(), c("span", Wt,
|
|
1221
|
+
l(t).attrs.labelLeft ? (f(), c("span", Wt, C(l(t).attrs.labelLeft), 1)) : k("", !0),
|
|
1219
1222
|
_(u, {
|
|
1220
1223
|
modelValue: l(t)._value,
|
|
1221
1224
|
"onUpdate:modelValue": r[0] || (r[0] = (p) => l(t)._value = p),
|
|
@@ -1234,7 +1237,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1234
1237
|
unstyled: l(e).unstyled ?? !1,
|
|
1235
1238
|
onInput: i
|
|
1236
1239
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value", "pt", "pt-options", "unstyled"]),
|
|
1237
|
-
l(t).attrs.labelRight ? (f(), c("span", Yt,
|
|
1240
|
+
l(t).attrs.labelRight ? (f(), c("span", Yt, C(l(t).attrs.labelRight), 1)) : k("", !0)
|
|
1238
1241
|
], 2);
|
|
1239
1242
|
};
|
|
1240
1243
|
}
|
|
@@ -1278,7 +1281,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1278
1281
|
"onUpdate:modelValue": I[0] || (I[0] = (re) => l(t)._value = re),
|
|
1279
1282
|
disabled: l(e)._disabled ?? !1,
|
|
1280
1283
|
readonly: l(e)._readonly ?? !1,
|
|
1281
|
-
style:
|
|
1284
|
+
style: w(l(e).style),
|
|
1282
1285
|
class: g(l(p)),
|
|
1283
1286
|
tabindex: l(e).tabindex,
|
|
1284
1287
|
"aria-label": l(e).ariaLabel,
|
|
@@ -1321,7 +1324,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1321
1324
|
"onUpdate:modelValue": u[0] || (u[0] = (m) => l(t)._value = m),
|
|
1322
1325
|
disabled: l(e)._disabled ?? !1,
|
|
1323
1326
|
readonly: l(e)._readonly ?? !1,
|
|
1324
|
-
style:
|
|
1327
|
+
style: w(l(e).style),
|
|
1325
1328
|
class: g(l(o)),
|
|
1326
1329
|
tabindex: l(e).tabindex,
|
|
1327
1330
|
"aria-label": l(e).ariaLabel,
|
|
@@ -1363,7 +1366,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1363
1366
|
],
|
|
1364
1367
|
disabled: l(e)._disabled ?? !1,
|
|
1365
1368
|
readonly: l(e)._readonly ?? !1,
|
|
1366
|
-
style:
|
|
1369
|
+
style: w(l(e).style),
|
|
1367
1370
|
class: g(l(o)),
|
|
1368
1371
|
tabindex: l(e).tabindex,
|
|
1369
1372
|
"aria-label": l(e).ariaLabel,
|
|
@@ -1560,7 +1563,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1560
1563
|
}, null, 8, ["modelValue", "name", "value", "input-style", "input-class", "pt", "pt-options", "unstyled"]),
|
|
1561
1564
|
W("label", {
|
|
1562
1565
|
for: p.value
|
|
1563
|
-
},
|
|
1566
|
+
}, C(p.label), 9, ua)
|
|
1564
1567
|
], 2))), 128))
|
|
1565
1568
|
], 2);
|
|
1566
1569
|
};
|
|
@@ -1586,7 +1589,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1586
1589
|
"onUpdate:modelValue": r[0] || (r[0] = (p) => l(t)._value = p),
|
|
1587
1590
|
disabled: l(e)._disabled ?? !1,
|
|
1588
1591
|
readonly: l(e)._readonly ?? !1,
|
|
1589
|
-
style:
|
|
1592
|
+
style: w(l(e).style),
|
|
1590
1593
|
class: g(l(s)),
|
|
1591
1594
|
tabindex: l(e).tabindex,
|
|
1592
1595
|
"aria-label": l(e).ariaLabel,
|
|
@@ -1624,7 +1627,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1624
1627
|
"onUpdate:modelValue": r[0] || (r[0] = (p) => l(t)._value = p),
|
|
1625
1628
|
disabled: l(e)._disabled ?? !1,
|
|
1626
1629
|
readonly: l(e)._readonly ?? !1,
|
|
1627
|
-
style:
|
|
1630
|
+
style: w(l(e).style),
|
|
1628
1631
|
class: g(l(s)),
|
|
1629
1632
|
tabindex: l(e).tabindex,
|
|
1630
1633
|
"aria-label": l(e).ariaLabel,
|
|
@@ -1702,7 +1705,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1702
1705
|
"onUpdate:modelValue": r[0] || (r[0] = (p) => l(t)._value = p),
|
|
1703
1706
|
disabled: l(e)._disabled ?? !1,
|
|
1704
1707
|
readonly: l(e)._readonly ?? !1,
|
|
1705
|
-
style:
|
|
1708
|
+
style: w(l(e).style),
|
|
1706
1709
|
class: g(l(s)),
|
|
1707
1710
|
tabindex: l(e).tabindex,
|
|
1708
1711
|
"aria-label": l(e).ariaLabel,
|
|
@@ -1743,7 +1746,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1743
1746
|
return (o, r) => {
|
|
1744
1747
|
const u = y("TriStateCheckbox");
|
|
1745
1748
|
return f(), c("div", ha, [
|
|
1746
|
-
l(t).attrs.labelLeft ? (f(), c("span", ga,
|
|
1749
|
+
l(t).attrs.labelLeft ? (f(), c("span", ga, C(l(t).attrs.labelLeft), 1)) : k("", !0),
|
|
1747
1750
|
_(u, {
|
|
1748
1751
|
modelValue: l(t)._value,
|
|
1749
1752
|
"onUpdate:modelValue": r[0] || (r[0] = (p) => l(t)._value = p),
|
|
@@ -1760,7 +1763,7 @@ const Ot = { class: "p-formkit" }, St = /* @__PURE__ */ b({
|
|
|
1760
1763
|
unstyled: l(e).unstyled ?? !1,
|
|
1761
1764
|
onClick: i
|
|
1762
1765
|
}, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "pt", "pt-options", "unstyled"]),
|
|
1763
|
-
l(t).attrs.labelRight ? (f(), c("span", $a,
|
|
1766
|
+
l(t).attrs.labelRight ? (f(), c("span", $a, C(l(t).attrs.labelRight), 1)) : k("", !0)
|
|
1764
1767
|
]);
|
|
1765
1768
|
};
|
|
1766
1769
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(c,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(c=typeof globalThis<"u"?globalThis:c||self,t(c["formkit-primevue"]={},c.Vue))})(this,function(c,t){"use strict";const he=["__key","__init","__shim","__original","__index","__prevKey"];function N(){return Math.random().toString(36).substring(2,15)}function h(l,a){return Object.prototype.hasOwnProperty.call(l,a)}function g(l,a,n=!0,e=["__key"]){if(l===a)return!0;if(typeof a=="object"&&typeof l=="object"){if(l instanceof Map||l instanceof Set)return!1;if(l instanceof Date&&a instanceof Date)return l.getTime()===a.getTime();if(l instanceof RegExp&&a instanceof RegExp)return ge(l,a);if(l===null||a===null||Object.keys(l).length!==Object.keys(a).length)return!1;for(const r of e)if((r in l||r in a)&&l[r]!==a[r])return!1;for(const r in l)if(!(r in a)||l[r]!==a[r]&&!n||n&&!g(l[r],a[r],n,e))return!1;return!0}return!1}function ge(l,a){return l.source===a.source&&l.flags.split("").sort().join("")===a.flags.split("").sort().join("")}function S(l){const a=typeof l;if(a==="number")return!1;if(l===void 0)return!0;if(a==="string")return l==="";if(a==="object"){if(l===null)return!0;for(const n in l)return!1;return!(l instanceof RegExp||l instanceof Date)}return!1}function L(l){return Object.prototype.toString.call(l)==="[object Object]"}function k(l){return L(l)||Array.isArray(l)}function z(l){if(L(l)===!1||l.__FKNode__||l.__POJO__===!1)return!1;const a=l.constructor;if(a===void 0)return!0;const n=a.prototype;return!(L(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}function R(l,a,n=!1,e=!1){if(a===null)return null;const r={};if(typeof a=="string")return a;for(const i in l)if(h(a,i)&&(a[i]!==void 0||!e)){if(n&&Array.isArray(l[i])&&Array.isArray(a[i])){r[i]=l[i].concat(a[i]);continue}if(a[i]===void 0)continue;z(l[i])&&z(a[i])?r[i]=R(l[i],a[i],n,e):r[i]=a[i]}else r[i]=l[i];for(const i in a)!h(r,i)&&a[i]!==void 0&&(r[i]=a[i]);return r}function ke(l){return l.replace(/-([a-z0-9])/gi,(a,n)=>n.toUpperCase())}function Ce(l){return l.replace(/([a-z0-9])([A-Z])/g,(a,n,e)=>n+"-"+e.toLowerCase()).replace(" ","-").toLowerCase()}function C(l,a=he){if(l===null||l instanceof RegExp||l instanceof Date||l instanceof Map||l instanceof Set||typeof File=="function"&&l instanceof File)return l;let n;Array.isArray(l)?n=l.map(e=>typeof e=="object"?C(e,a):e):n=Object.keys(l).reduce((e,r)=>(e[r]=typeof l[r]=="object"?C(l[r],a):l[r],e),{});for(const e of a)e in l&&Object.defineProperty(n,e,{enumerable:!1,value:l[e]});return n}function $(l){return typeof l=="object"?C(l):l}function M(l){return l!==void 0&&l!=="false"&&l!==!1?!0:void 0}function y(l){return Object.isFrozen(l)?l:Object.defineProperty(l,"__init",{enumerable:!1,value:!0})}function $e(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function T(){const l=[];let a=0;const n=r=>l.push(r),e=r=>{const i=l[a];return typeof i=="function"?i(r,o=>(a++,e(o))):(a=0,r)};return n.dispatch=e,n.unshift=r=>l.unshift(r),n.remove=r=>{const i=l.indexOf(r);i>-1&&l.splice(i,1)},n}function Ve(){const l=new Map,a=new Map;let n;const e=(r,i)=>{if(n){n.set(i.name,[r,i]);return}l.has(i.name)&&l.get(i.name).forEach(o=>{(i.origin===r||o.modifiers.includes("deep"))&&o.listener(i)}),i.bubble&&r.bubble(i)};return e.flush=()=>{l.clear(),a.clear(),n==null||n.clear()},e.on=(r,i)=>{const[o,...s]=r.split("."),f=i.receipt||N(),p={modifiers:s,event:o,listener:i,receipt:f};return l.has(o)?l.get(o).push(p):l.set(o,[p]),a.has(f)?a.get(f).push(o):a.set(f,[o]),f},e.off=r=>{var i;a.has(r)&&((i=a.get(r))===null||i===void 0||i.forEach(o=>{const s=l.get(o);Array.isArray(s)&&l.set(o,s.filter(f=>f.receipt!==r))}),a.delete(r))},e.pause=r=>{n||(n=new Map),r&&r.walk(i=>i._e.pause())},e.play=r=>{if(!n)return;const i=n;n=void 0,i.forEach(([o,s])=>e(o,s)),r&&r.walk(o=>o._e.play())},e}function we(l,a,n,e,r=!0,i){return a._e(l,{payload:e,name:n,bubble:r,origin:l,meta:i}),l}function Be(l,a,n){return P(l.parent)&&l.parent._e(l.parent,n),l}function Se(l,a,n,e){return a._e.on(n,e)}function Le(l,a,n){return a._e.off(n),l}const A=T();A((l,a)=>(l.message||(l.message=`E${l.code}`),a(l)));const j=T();j((l,a)=>{l.message||(l.message=`W${l.code}`);const n=a(l);return console&&typeof console.warn=="function"&&console.warn(n.message),n});function F(l,a={}){j.dispatch({code:l,data:a})}function _(l,a={}){throw Error(A.dispatch({code:l,data:a}).message)}function I(l,a){const n={blocking:!1,key:N(),meta:{},type:"state",visible:!0,...l};return a&&n.value&&n.meta.localize!==!1&&(n.value=a.t(n),n.meta.locale=a.config.locale),n}function Ie(l,...a){const n=`${l.name}-set`,e=r=>I({key:$e(r),type:"error",value:r,meta:{source:n,autoClear:!0}});return a.filter(r=>!!r).map(r=>{if(typeof r=="string"&&(r=[r]),Array.isArray(r))return r.map(i=>e(i));{const i={};for(const o in r)Array.isArray(r[o])?i[o]=r[o].map(s=>e(s)):i[o]=[e(r[o])];return i}})}const U=new Map,D=new Map,De=Ve();function Ee(l){if(D.has(l)){const a=D.get(l);D.delete(l),U.delete(a),De(l,{payload:null,name:a,bubble:!1,origin:l})}}function Oe(l){return U.get(l)}function K(l,a,n){let e=!0;return a in l.config._t?e=!1:l.emit(`config:${a}`,n,!1),a in l.props||(l.emit("prop",{prop:a,value:n}),l.emit(`prop:${a}`,n)),e}function Pe(l){const a=document.getElementById(l);if(a instanceof HTMLFormElement){const n=new Event("submit",{cancelable:!0,bubbles:!0});a.dispatchEvent(n);return}F(151,l)}function Ne(l){const a=n=>{for(const e in n.store){const r=n.store[e];r.type==="error"||r.type==="ui"&&e==="incomplete"?n.store.remove(e):r.type==="state"&&n.store.set({...r,value:!1})}};a(l),l.walk(a)}function ze(l,a){const n=typeof l=="string"?Oe(l):l;if(n){const e=o=>$(o.props.initial)||(o.type==="group"?{}:o.type==="list"?[]:void 0);n._e.pause(n);const r=$(a);return a&&!S(a)&&(n.props.initial=k(r)?y(r):r,n.props._init=n.props.initial),n.input(e(n),!1),n.walk(o=>{o.type==="list"&&o.sync||o.input(e(o),!1)}),n.input(S(r)&&r?r:e(n),!1),n.type!=="input"&&a&&!S(a)&&k(a)&&n.walk(o=>{o.props.initial=k(o.value)?y(o.value):o.value,o.props._init=n.props.initial}),n._e.play(n),Ne(n),n.emit("reset",n),n}F(152,l)}const Re={delimiter:".",delay:0,locale:"en",rootClasses:l=>({[`formkit-${Ce(l)}`]:!0})},Me=Symbol("index"),E=Symbol("removed"),O=Symbol("moved"),Z=Symbol("inserted");function Te(l){return l.type==="list"&&Array.isArray(l._value)}function P(l){return l&&typeof l=="object"&&l.__FKNode__===!0}const V=(l,a,n)=>{_(102,[l,n])};d(ln,V,!1),d(Je),d(xe),d(rn,V,!1),d(sn),d(Be),d(yn),d(qe),d(!1),d(Ye),d(He),d(We),d(_n),d(Ke),d(tn,nn,!1),d(Fe),d(Ge),d(we),d(fn),d(Se),d(Le),d(!1,Qe),d(!1),d(Xe),d(dn,V,!1),d(bn),d(en),d(W),d(mn),d(cn),d(q),d(an,!1,!1),d(ve);function d(l,a,n=!0){return{get:l?(e,r)=>n?(...i)=>l(e,r,...i):l(e,r):!1,set:a!==void 0?a:V.bind(null)}}let Ae=0;function je(l){return l.type==="group"?y(l.value&&typeof l.value=="object"&&!Array.isArray(l.value)?l.value:{}):l.type==="list"?y(Array.isArray(l.value)?l.value:[]):l.value}function Fe(l,a,n,e=!0){return a._value=Ue(l,l.hook.input.dispatch(n)),l.emit("input",a._value),l.isCreated&&l.type==="input"&&g(a._value,a.value)?(l.emit("commitRaw",a.value),a.settled):(a.isSettled&&l.disturb(),e?(a._tmo&&clearTimeout(a._tmo),a._tmo=setTimeout(w,l.props.delay,l,a)):w(l,a),a.settled)}function Ue(l,a){switch(l.type){case"input":break;case"group":(!a||typeof a!="object")&&_(107,[l,a]);break;case"list":Array.isArray(a)||_(108,[l,a]);break}return a}function w(l,a,n=!0,e=!0){a._value=a.value=l.hook.commit.dispatch(a._value),l.type!=="input"&&e&&l.hydrate(),l.emit("commitRaw",a.value),l.emit("commit",a.value),n&&l.calm()}function H(l,{name:a,value:n,from:e}){if(!Object.isFrozen(l._value)){if(Te(l)){const r=n===E?[]:n===O&&typeof e=="number"?l._value.splice(e,1):[n];l._value.splice(a,n===O||e===Z?0:1,...r);return}n!==E?l._value[a]=n:delete l._value[a]}}function Ke(l,a){const n=a._value;return l.type==="list"&&l.sync&&Ze(l,a),a.children.forEach(e=>{if(typeof n=="object")if(e.name in n){const r=e.type!=="input"||n[e.name]&&typeof n[e.name]=="object"?y(n[e.name]):n[e.name];if(!e.isSettled||!k(r)&&g(r,e._value))return;e.input(r,!1)}else(l.type!=="list"||typeof e.name=="number")&&H(a,{name:e.name,value:e.value}),n.__init||(e.type==="group"?e.input({},!1):e.type==="list"?e.input([],!1):e.input(void 0,!1))}),l}function Ze(l,a){const n=l._value;if(!Array.isArray(n))return;const e=[],r=new Set(a.children),i=new Map;n.forEach((s,f)=>{if(a.children[f]&&a.children[f]._value===s)e.push(a.children[f]),r.delete(a.children[f]);else{e.push(null);const p=i.get(s)||[];p.push(f),i.set(s,p)}}),r.size&&i.size&&r.forEach(s=>{if(i.has(s._value)){const f=i.get(s._value),p=f.shift();e[p]=s,r.delete(s),f.length||i.delete(s._value)}});const o=[];for(i.forEach(s=>{o.push(...s)});r.size&&o.length;){const s=r.values().next().value,f=o.shift();if(f===void 0)break;e[f]=s,r.delete(s)}o.forEach((s,f)=>{e[s]=hn({value:f})}),r.size&&r.forEach(s=>{if(!("__FKP"in s)){const f=s._c.parent;if(!f||gn(f))return;f.ledger.unmerge(s),s._c.parent=null,s.destroy()}}),a.children=e}function He(l,a){var n;return a._d<=0&&(a.isSettled=!1,l.emit("settled",!1,!1),a.settled=new Promise(e=>{a._resolve=e}),l.parent&&((n=l.parent)===null||n===void 0||n.disturb())),a._d++,l}function qe(l,a,n){var e;if(n!==void 0&&l.type!=="input")return H(a,n),w(l,a,!0,!1);a._d>0&&a._d--,a._d===0&&(a.isSettled=!0,l.emit("settled",!0,!1),l.parent&&((e=l.parent)===null||e===void 0||e.calm({name:l.name,value:a.value})),a._resolve&&a._resolve(a.value))}function We(l,a){l.emit("destroying",l),l.store.filter(()=>!1),l.parent&&(l.parent.emit("childRemoved",l),l.parent.remove(l)),Ee(l),l.emit("destroyed",l),a._e.flush(),a._value=a.value=void 0;for(const n in a.context)delete a.context[n];a.plugins.clear(),a.context=null}function Ye(l,a,n){a.type=n.type,a.props.definition=C(n),a.value=a._value=je({type:l.type,value:a.value}),n.forceTypeProp&&(l.props.type&&(l.props.originalType=l.props.type),a.props.type=n.forceTypeProp),n.family&&(a.props.family=n.family),n.features&&n.features.forEach(e=>e(l)),n.props&&l.addProps(n.props),l.emit("defined",n)}function xe(l,a,n){var e;if(l.props.attrs){const r={...l.props.attrs};l.props._emit=!1;for(const o in r){const s=ke(o);n.includes(s)&&(l.props[s]=r[o],delete r[o])}const i=$(a._value);l.props.initial=l.type!=="input"?y(i):i,l.props._emit=!0,l.props.attrs=r,l.props.definition&&(l.props.definition.props=[...((e=l.props.definition)===null||e===void 0?void 0:e.props)||[],...n])}return l.emit("added-props",n),l}function Je(l,a,n,e){if(l.type==="input"&&_(100,l),n.parent&&n.parent!==l&&n.parent.remove(n),!a.children.includes(n)){if(e!==void 0&&l.type==="list"){const r=a.children[e];r&&"__FKP"in r?(n._c.uid=r.uid,a.children.splice(e,1,n)):a.children.splice(e,0,n),Array.isArray(l.value)&&l.value.length<a.children.length&&l.disturb().calm({name:e,value:n.value,from:Z})}else a.children.push(n);n.isSettled||l.disturb()}if(n.parent!==l){if(n.parent=l,n.parent!==l)return l.remove(n),n.parent.add(n),l}else n.use(l.plugins);return w(l,a,!1),l.ledger.merge(n),l.emit("child",n),l}function Qe(l,a,n,e){return P(e)?(l.parent&&l.parent!==e&&l.parent.remove(l),a.parent=e,l.resetConfig(),e.children.includes(l)?l.use(e.plugins):e.add(l),!0):e===null?(a.parent=null,!0):!1}function Xe(l,a,n){const e=a.children.indexOf(n);if(e!==-1){n.isSettled&&l.disturb(),a.children.splice(e,1);let r=M(n.props.preserve),i=n.parent;for(;r===void 0&&i;)r=M(i.props.preserve),i=i.parent;r?l.calm():l.calm({name:l.type==="list"?e:n.name,value:E}),n.parent=null,n.config._rmn=n}return l.ledger.unmerge(n),l}function Ge(l,a,n){a.children.forEach(e=>!("__FKP"in e)&&n(e))}function ve(l,a,n,e=!1,r=!1){a.children.some(i=>{if("__FKP"in i)return!1;const o=n(i);return e&&o===!1?!0:r&&o===!1?!1:i.walk(n,e,r)})}function en(l,a){const n=l.parent||void 0;a.config=un(l.config._t,n),l.walk(e=>e.resetConfig())}function q(l,a,n,e=!0,r=!0){return Array.isArray(n)||n instanceof Set?(n.forEach(i=>q(l,a,i)),l):(a.plugins.has(n)||(r&&typeof n.library=="function"&&n.library(l),e&&n(l)!==!1&&(a.plugins.add(n),l.children.forEach(i=>i.use(n)))),l)}function nn(l,a,n,e){if(P(l.parent)){const r=l.parent.children,i=e>=r.length?r.length-1:e<0?0:e,o=r.indexOf(l);return o===-1?!1:(r.splice(o,1),r.splice(i,0,l),l.parent.children=r,l.parent.type==="list"&&l.parent.disturb().calm({name:i,value:O,from:o}),!0)}return!1}function tn(l){if(l.parent){const a=[...l.parent.children].indexOf(l);return a===-1?l.parent.children.length:a}return-1}function ln(l,a){return a}function an(l,a){var n;return((n=l.parent)===null||n===void 0?void 0:n.type)==="list"?l.index:a.name!==Me?a.name:l.index}function rn(l,a){return a.parent?a.parent.address.concat([l.name]):[l.name]}function sn(l,a,n){const e=typeof n=="string"?n.split(l.config.delimiter):n;if(!e.length)return;const r=e[0];let i=l.parent;for(i||(String(e[0])===String(l.name)&&e.shift(),i=l),r==="$parent"&&e.shift();i&&e.length;){const o=e.shift();switch(o){case"$root":i=l.root;break;case"$parent":i=i.parent;break;case"$self":i=l;break;default:i=i.children.find(s=>!("__FKP"in s)&&String(s.name)===String(o))||on(i,o)}}return i||void 0}function on(l,a){const n=String(a).match(/^(find)\((.*)\)$/);if(n){const[,e,r]=n,i=r.split(",").map(o=>o.trim());switch(e){case"find":return l.find(i[0],i[1]);default:return}}}function fn(l,a,n,e){return pn(l,n,e)}function pn(l,a,n="name"){const e=typeof n=="string"?i=>i[n]==a:n,r=[l];for(;r.length;){const i=r.shift();if(!("__FKP"in i)){if(e(i,a))return i;r.push(...i.children)}}}function dn(l){let a=l;for(;a.parent;)a=a.parent;return a}function un(l={},a){let n;return new Proxy(l,{get(...e){const r=e[1];if(r==="_t")return l;const i=Reflect.get(...e);if(i!==void 0)return i;if(a){const o=a.config[r];if(o!==void 0)return o}if(l.rootConfig&&typeof r=="string"){const o=l.rootConfig[r];if(o!==void 0)return o}return r==="delay"&&(n==null?void 0:n.type)==="input"?20:Re[r]},set(...e){const r=e[1],i=e[2];if(r==="_n")return n=i,l.rootConfig&&l.rootConfig._add(n),!0;if(r==="_rmn")return l.rootConfig&&l.rootConfig._rm(n),n=void 0,!0;if(!g(l[r],i,!1)){const o=Reflect.set(...e);return n&&(n.emit(`config:${r}`,i,!1),K(n,r,i),n.walk(s=>K(s,r,i),!1,!0)),o}return!0}})}function cn(l,a,n,e="ui"){const r=typeof n=="string"?{key:n,value:n,type:e}:n,i=l.hook.text.dispatch(r);return l.emit("text",i,!1),i.value}function mn(l){const a=l.name;do{if(l.props.isForm===!0)break;l.parent||_(106,a),l=l.parent}while(l);l.props.id&&Pe(l.props.id)}function bn(l,a,n){return ze(l,n)}function W(l,a,n,e){const r=`${l.name}-set`,i=l.hook.setErrors.dispatch({localErrors:n,childErrors:e});return Ie(l,i.localErrors,i.childErrors).forEach(o=>{l.store.apply(o,s=>s.meta.source===r)}),l}function yn(l,a,n=!0,e){return W(l,a,[]),n&&(e=e||`${l.name}-set`,l.walk(r=>{r.store.filter(i=>!(i.type==="error"&&i.meta&&i.meta.source===e))})),l}function _n(l,a,n,e){return a.traps.set(n,e),l}function hn(l){var a,n,e,r;return{__FKP:!0,uid:Symbol(),name:(a=l==null?void 0:l.name)!==null&&a!==void 0?a:`p_${Ae++}`,value:(n=l==null?void 0:l.value)!==null&&n!==void 0?n:null,_value:(e=l==null?void 0:l.value)!==null&&e!==void 0?e:null,type:(r=l==null?void 0:l.type)!==null&&r!==void 0?r:"input",use:()=>{},input(i){return this._value=i,this.value=i,Promise.resolve()},isSettled:!0}}function gn(l){return"__FKP"in l}function Y(l){return typeof l!="string"&&h(l,"$el")}function kn(l){return typeof l!="string"&&h(l,"$cmp")}function b(l,a,n=!1){return(...e)=>{const r=i=>{const o=!a||typeof a=="string"?{$el:a}:a();return(Y(o)||kn(o))&&(o.meta||(o.meta={section:l}),e.length&&!o.children&&(o.children=[...e.map(s=>typeof s=="function"?s(i):s)]),Y(o)&&(o.attrs={class:`$classes.${l}`,...o.attrs||{}})),{if:`$slots.${l}`,then:`$slots.${l}`,else:l in i?$n(o,i[l]):o}};return r._s=l,n?Cn(r):r}}function Cn(l){return a=>[l(a)]}function x(l){return typeof l=="object"&&("$el"in l||"$cmp"in l||"$formkit"in l)}function $n(l,a={}){return typeof l=="string"?x(a)||typeof a=="string"?a:l:Array.isArray(l)?x(a)?a:l:R(l,a)}const Vn=b("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}})),J=(l,a)=>b(`${l}Icon`,()=>{const n=`_raw${l.charAt(0).toUpperCase()}${l.slice(1)}Icon`;return{if:`$${l}Icon && $${n}`,$el:`${a||"span"}`,attrs:{class:`$classes.${l}Icon + " " + $classes.icon`,innerHTML:`$${n}`,onClick:`$handlers.iconClick(${l})`,for:{if:`${a==="label"}`,then:"$id"}}}})(),wn=b("inner","div"),Bn=b("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),Sn=b("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Ln=b("messages",()=>({$el:"ul",if:"$defaultMessagePlacement && $fns.length($messages)"})),In=b("outer",()=>({$el:"div",attrs:{key:"$id","data-family":"$family || undefined","data-type":"$type","data-multiple":'$attrs.multiple || ($type != "select" && $options != undefined) || undefined',"data-disabled":'$: ($disabled !== "false" && $disabled) || undefined',"data-empty":"$state.empty || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-prefix-icon":"$_rawPrefixIcon !== undefined || undefined","data-suffix-icon":"$_rawSuffixIcon !== undefined || undefined","data-prefix-icon-click":"$onPrefixIconClick !== undefined || undefined","data-suffix-icon-click":"$onSuffixIconClick !== undefined || undefined"}})),Dn=b("prefix",null),En=b("suffix",null),On=b("wrapper","div");I({key:"loading",value:!0,visible:!1});function Pn(l){return In(On(Bn("$label"),wn(J("prefix"),Dn(),l(),En(),J("suffix"))),Vn("$help"),Ln(Sn("$message.value")))}I({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let Nn=1;function zn(l){return typeof l=="function"&&l.length===2||typeof l=="object"&&!Array.isArray(l)&&!("$el"in l)&&!("$cmp"in l)&&!("if"in l)}function m(l,a={}){const n={type:"input",...a};let e;if(zn(l)){const r=`SchemaComponent${Nn++}`;e=b("input",()=>({$cmp:r,props:{context:"$node.context"}})),n.library={[r]:t.markRaw(l)}}else typeof l=="function"?e=l:e=b("input",()=>$(l));return n.schema=Pn(e||"Schema undefined"),n.schemaMemoKey||(n.schemaMemoKey=`${Math.random()}`),n}const Rn={class:"p-formkit"},Mn=t.defineComponent({__name:"PrimeAutoComplete",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs,r=t.ref([]);function i(s){r.value=e.complete(s.query)}function o(s){var f;n==null||n.node.input((f=a.context)==null?void 0:f._value)}return t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class),(s,f)=>{var u;const p=t.resolveComponent("AutoComplete");return t.openBlock(),t.createElementBlock("div",Rn,[t.createVNode(p,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=B=>t.unref(n)._value=B),disabled:t.unref(e)._disabled??!1,tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,suggestions:t.unref(r),dropdown:((u=t.unref(e))==null?void 0:u.dropdown)??!1,multiple:t.unref(e).multiple??!1,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onComplete:i,onChange:o},null,8,["id","modelValue","disabled","tabindex","aria-label","aria-labelledby","suggestions","dropdown","multiple","pt","pt-options","unstyled"])])}}}),Tn={class:"p-formkit"},An=t.defineComponent({__name:"PrimeCalendar",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.node.input(n==null?void 0:n._value)}function i(s){n==null||n.node.input(s)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Calendar");return t.openBlock(),t.createElementBlock("div",Tn,[t.createVNode(p,{modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),"input-id":a.context.id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(o),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,"date-format":t.unref(e).dateFormat,"selection-mode":t.unref(e).selectionMode??"single",inline:t.unref(e).inline??!1,"show-other-months":t.unref(e).showOtherMonths??!0,"select-other-months":t.unref(e).selectOtherMonths??!1,icon:t.unref(e).icon,"show-icon":t.unref(n).showIcon,"previous-icon":t.unref(e).previousIcon??"pi pi-chevron-left","next-icon":t.unref(e).nextIcon??"pi pi-chevron-right","increment-icon":t.unref(e).incrementIcon??"pi pi-chevron-up","decrement-icon":t.unref(e).decrementIcon??"pi pi-chevron-down","number-of-months":t.unref(e).numberOfMonths??1,"responsive-options":t.unref(e).responsiveOptions,view:t.unref(e).view??"date","touch-u-i":t.unref(e).touchUI??!1,"min-date":t.unref(e).minDate,"max-date":t.unref(e).maxDate,"disabled-dates":t.unref(e).disabledDates,"disabled-days":t.unref(e).disabledDays,"max-date-count":t.unref(e).maxDateCount,"show-on-focus":t.unref(e).showOnFocus??!0,"auto-z-index":t.unref(e).autoZIndex??!0,"base-z-index":t.unref(e).baseZIndex??0,"show-button-bar":t.unref(e).showButtonBar??!1,"show-time":t.unref(e).showTime??!1,"time-only":t.unref(e).timeOnly??!1,"short-year-cutoff":t.unref(e).shortYearCutoff??"+10","hour-format":t.unref(e).hourFormat??"24","step-hour":t.unref(e).stepHour??1,"step-minute":t.unref(e).stepMinute??1,"step-second":t.unref(e).stepSecond??1,"show-seconds":t.unref(e).showSeconds??!1,"hide-on-date-time-select":t.unref(e).hideOnDateTimeSelect??!1,"hide-on-range-selection":t.unref(e).hideOnRangeSelection??!1,"time-separator":t.unref(e).timeSeparator??":","show-week":t.unref(e).showWeek??!1,"manual-input":t.unref(e).manualInput??!0,"append-to":t.unref(e).appendTo??"body","panel-style":t.unref(e).panelStyle,"panel-class":t.unref(e).panelClass,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onDateSelect:i,onInput:r},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","date-format","selection-mode","inline","show-other-months","select-other-months","icon","show-icon","previous-icon","next-icon","increment-icon","decrement-icon","number-of-months","responsive-options","view","touch-u-i","min-date","max-date","disabled-dates","disabled-days","max-date-count","show-on-focus","auto-z-index","base-z-index","show-button-bar","show-time","time-only","short-year-cutoff","hour-format","step-hour","step-minute","step-second","show-seconds","hide-on-date-time-select","hide-on-range-selection","time-separator","show-week","manual-input","append-to","panel-style","panel-class","pt","pt-options","unstyled"])])}}}),jn={class:"p-formkit"},Fn={key:0,class:"formkit-prime-left"},Un={key:1,class:"formkit-prime-right"},Kn=t.defineComponent({__name:"PrimeCheckbox",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("Checkbox");return t.openBlock(),t.createElementBlock("div",jn,[t.unref(n).attrs.labelLeft?(t.openBlock(),t.createElementBlock("span",Fn,t.toDisplayString(t.unref(n).attrs.labelLeft),1)):t.createCommentVNode("",!0),t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(i),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,binary:t.unref(e).binary??!0,"true-value":t.unref(e).trueValue??void 0,"false-value":t.unref(e).falseValue??void 0,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:r},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"]),t.unref(n).attrs.labelRight?(t.openBlock(),t.createElementBlock("span",Un,t.toDisplayString(t.unref(n).attrs.labelRight),1)):t.createCommentVNode("",!0)])}}}),Zn={class:"p-formkit"},Hn=t.defineComponent({__name:"PrimeChips",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("Chips");return t.openBlock(),t.createElementBlock("div",Zn,[t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(i),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,"allow-duplicate":t.unref(e).allowDuplicate??!0,"add-on-blur":t.unref(e).addOnBlur??!1,max:t.unref(e).max??void 0,placeholder:t.unref(e).placeholder,separator:t.unref(e).separator,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onAdd:r,onRemove:r},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"])])}}}),qn={class:"p-formkit"},Wn=t.defineComponent({__name:"PrimeColorPicker",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(i){var o;n==null||n.node.input((o=a.context)==null?void 0:o._value)}return(i,o)=>{const s=t.resolveComponent("ColorPicker");return t.openBlock(),t.createElementBlock("div",qn,[t.createVNode(s,{modelValue:t.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=f=>t.unref(n)._value=f),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),"panel-class":t.unref(e).class,tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,"default-color":t.unref(e).defaultColor??"ff0000",inline:t.unref(e).inline??!1,format:t.unref(e).format,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},null,8,["modelValue","disabled","readonly","style","panel-class","tabindex","aria-label","aria-labelledby","default-color","inline","format","pt","pt-options","unstyled"])])}}}),Yn={class:"p-formkit"},xn=t.defineComponent({__name:"PrimeDropdown",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.handlers.blur(s.value)}function i(s){n==null||n.node.input(s.value)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Dropdown");return t.openBlock(),t.createElementBlock("div",Yn,[t.createVNode(p,{modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(o),"input-class":t.unref(e).class,tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,options:t.unref(e).options,"option-label":t.unref(e).optionLabel??"label","option-value":t.unref(e).optionValue??"value",placeholder:t.unref(e).placeholder,filter:t.unref(e).filter??!1,"show-clear":t.unref(e).showClear??!1,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:i,onBlur:r},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","options","option-label","option-value","placeholder","filter","show-clear","pt","pt-options","unstyled"])])}}}),Jn={class:"p-formkit"},Qn=t.defineComponent({__name:"PrimeEditor",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.node.input(s.htmlValue)}function i(s){s.range===null&&(n==null||n.handlers.blur(s.htmlValue))}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Jn,[t.createVNode(p,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"editor-style":t.unref(e).style,class:t.normalizeClass(t.unref(o)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,formats:t.unref(e).formats,modules:t.unref(e).modules,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onTextChange:r,onSelectionChange:i},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","formats","modules","pt","pt-options","unstyled"])])}}}),Xn={class:"p-formkit"},Gn=t.defineComponent({__name:"PrimeInputMask",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s,f;n==null||n.node.input((s=a.context)==null?void 0:s._value),n==null||n.handlers.blur((f=a.context)==null?void 0:f._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("InputMask");return t.openBlock(),t.createElementBlock("div",Xn,[t.createVNode(f,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"editor-style":t.unref(e).style,class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,mask:t.unref(e).mask??void 0,"slot-char":t.unref(e).slotChar??"_","auto-clear":t.unref(e).autoClear??!0,unmask:t.unref(e).unmask??!1,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onBlur:r},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"])])}}}),vn={class:"p-formkit"},et=t.defineComponent({__name:"PrimeInputNumber",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.handlers.blur(s.value)}function i(s){n==null||n.node.input(s.value)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("InputNumber");return t.openBlock(),t.createElementBlock("div",vn,[t.createVNode(p,{modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(o),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,"use-grouping":t.unref(e).useGrouping??!0,"min-fraction-digits":t.unref(e).minFractionDigits??void 0,"max-fraction-digits":t.unref(e).maxFractionDigits??void 0,locale:t.unref(e).locale??void 0,mode:t.unref(e).mode??void 0,currency:t.unref(e).currency??void 0,prefix:t.unref(e).prefix??void 0,suffix:t.unref(e).suffix??void 0,"show-buttons":t.unref(e).showButtons??void 0,"button-layout":t.unref(e).buttonLayout??"stacked",step:t.unref(e).step??void 0,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:i,onBlur:r},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"])])}}}),nt={key:0,class:"formkit-prime-left"},tt={key:1,class:"formkit-prime-right"},lt=t.defineComponent({__name:"PrimeInputSwitch",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("InputSwitch");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(e).option_class,"p-formkit"])},[t.unref(n).attrs.labelLeft?(t.openBlock(),t.createElementBlock("span",nt,t.toDisplayString(t.unref(n).attrs.labelLeft),1)):t.createCommentVNode("",!0),t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(i),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,"true-value":t.unref(e).trueValue??void 0,"false-value":t.unref(e).falseValue??void 0,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:r},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","true-value","false-value","pt","pt-options","unstyled"]),t.unref(n).attrs.labelRight?(t.openBlock(),t.createElementBlock("span",tt,t.toDisplayString(t.unref(n).attrs.labelRight),1)):t.createCommentVNode("",!0)],2)}}}),at={class:"p-formkit"},rt=t.defineComponent({__name:"PrimeInputText",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(){return(n==null?void 0:n.iconLeft)&&(n==null?void 0:n.iconLeft.length)>0}function i(){return(n==null?void 0:n.iconRight)&&(n==null?void 0:n.iconRight.length)>0}function o(){let u="";return r()&&(u=`${u}p-input-icon-left `),i()&&(u=`${u}p-input-icon-right `),u}function s(u){n==null||n.handlers.blur(u.target.value)}function f(u){n==null||n.node.input(u.target.value)}const p=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(u,B)=>{const Ot=t.resolveComponent("InputText");return t.openBlock(),t.createElementBlock("div",at,[t.createElementVNode("span",{class:t.normalizeClass(["p-formkit-icon",o()])},[r()?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(t.unref(n).iconLeft)},null,2)):t.createCommentVNode("",!0),t.createVNode(Ot,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":B[0]||(B[0]=Pt=>t.unref(n)._value=Pt),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(p)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:f,onBlur:s},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","pt","pt-options","unstyled"]),i?(t.openBlock(),t.createElementBlock("i",{key:1,class:t.normalizeClass(t.unref(n).iconRight)},null,2)):t.createCommentVNode("",!0)],2)])}}}),it={class:"p-formkit"},st=t.defineComponent({__name:"PrimeTextarea",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.handlers.blur(s.target.value)}function i(s){n==null||n.node.input(s.target.value)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Textarea");return t.openBlock(),t.createElementBlock("div",it,[t.createVNode(p,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(o)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,rows:t.unref(n).rows??3,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:i,onBlur:r},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","rows","pt","pt-options","unstyled"])])}}}),ot={class:"p-formkit"},ft=t.defineComponent({__name:"PrimeKnob",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.node.input(s),n==null||n.handlers.blur(s)}function i(s){n==null||n.node.input(s)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Knob");return t.openBlock(),t.createElementBlock("div",ot,[t.createVNode(p,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":[f[0]||(f[0]=u=>t.unref(n)._value=u),i],disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(o)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,min:t.unref(e).min??0,max:t.unref(e).max??100,step:t.unref(e).step??void 0,size:t.unref(e).size??100,"stroke-width":t.unref(e).strokeWidth??14,"show-value":t.unref(e).showValue??!0,"value-color":t.unref(e).valueColor??void 0,"range-color":t.unref(e).rangeColor??void 0,"text-color":t.unref(e).textColor??void 0,"value-template":t.unref(e).valueTemplate??void 0,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),pt={class:"p-formkit"},dt=t.defineComponent({__name:"PrimeMultiSelect",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("MultiSelect");return t.openBlock(),t.createElementBlock("div",pt,[t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"list-style":t.unref(e).style,class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,options:t.unref(e).options,"option-label":t.unref(e).optionLabel??"label","option-value":t.unref(e).optionValue??"value",filter:t.unref(e).filter??!1,display:t.unref(e).display,"max-selected-labels":t.unref(e).maxSelectedLabels,"selected-items-label":t.unref(e).selectedItemsLabel,"selection-limit":t.unref(e).selectionLimit,"show-toggle-all":t.unref(e).showToggleAll,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),ut={class:"p-formkit"},ct=t.defineComponent({__name:"PrimeListbox",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{var p;const f=t.resolveComponent("Listbox");return t.openBlock(),t.createElementBlock("div",ut,[t.createVNode(f,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=u=>t.unref(n)._value=u),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"list-style":t.unref(e).style,class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,options:(p=t.unref(e))==null?void 0:p.options,"option-label":t.unref(e).optionLabel??"label","option-value":t.unref(e).optionValue??"value",multiple:t.unref(e).multiple??!1,filter:t.unref(e).filter??!1,"filter-icon":t.unref(e).filterIcon,"filter-placeholder":t.unref(e).filterPlaceholder,"filter-locale":t.unref(e).filterLocale,"filter-match-mode":t.unref(e).filterMatchMode,"auto-option-focus":t.unref(e).autoOptionFocus??!0,"select-on-focus":t.unref(e).selectOnFocus??!1,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),mt={class:"p-formkit"},bt=t.defineComponent({__name:"PrimePassword",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.handlers.blur(s.target.value)}function i(s){n==null||n.node.input(s.target.value)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Password");return t.openBlock(),t.createElementBlock("div",mt,[t.createVNode(p,{modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(o),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,"medium-regex":t.unref(e).mediumRegex??"^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})","strong-regex":t.unref(e).strongRegex??"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})","prompt-label":t.unref(e).promptLabel,"weak-label":t.unref(e).weakLabel,"medium-label":t.unref(e).mediumLabel,"strong-label":t.unref(e).strongLabel,"hide-icon":t.unref(e).hideIcon??"pi pi-eye-slash","show-icon":t.unref(e).showIcon??"pi pi-eye",feedback:t.unref(n).feedback??!1,"toggle-mask":t.unref(n).toggleMask??!1,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:i,onBlur:r},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"])])}}}),yt=["for"],_t=t.defineComponent({__name:"PrimeRadioButton",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("RadioButton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(e).options_class,"p-formkit"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e).options,p=>(t.openBlock(),t.createElementBlock("div",{key:p.value,class:t.normalizeClass(t.unref(e).option_class)},[t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=u=>t.unref(n)._value=u),name:t.unref(e).name,value:p.value,"input-style":t.unref(e).style,"input-class":t.unref(i),pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onClick:r,onChange:r},null,8,["modelValue","name","value","input-style","input-class","pt","pt-options","unstyled"]),t.createElementVNode("label",{for:p.value},t.toDisplayString(p.label),9,yt)],2))),128))],2)}}}),ht={class:"p-formkit"},gt=t.defineComponent({__name:"PrimeRating",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("Rating");return t.openBlock(),t.createElementBlock("div",ht,[t.createVNode(f,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,stars:t.unref(e).stars??5,cancel:t.unref(e).cancel??!1,"on-icon":t.unref(e).onIcon??"pi pi-star-fill","off-icon":t.unref(e).offIcon??"pi pi-star","cancel-icon":t.unref(e).cancelIcon??"pi pi-ban",pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),kt={class:"p-formkit"},Ct=t.defineComponent({__name:"PrimeSlider",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(o){n==null||n.node.input(o),n==null||n.handlers.blur(o)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("Slider");return t.openBlock(),t.createElementBlock("div",kt,[t.createVNode(f,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,min:t.unref(e).min??0,max:t.unref(e).max??100,step:t.unref(e).step??void 0,range:t.unref(e).range??!1,orientation:t.unref(e).orientation??"horizontal",pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","min","max","step","range","orientation","pt","pt-options","unstyled"])])}}}),$t={class:"p-formkit"},Vt=t.defineComponent({__name:"PrimeToggleButton",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("ToggleButton");return t.openBlock(),t.createElementBlock("div",$t,[t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(i),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,"on-label":t.unref(e).onLabel??"Yes","off-label":t.unref(e).offLabel??"No","on-icon":t.unref(e).onIcon??"pi pi-check","off-icon":t.unref(e).offIcon??"pi pi-times","icon-pos":t.unref(e).iconPos??"left",pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),wt={class:"p-formkit"},Bt=t.defineComponent({__name:"PrimeSelectButton",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("SelectButton");return t.openBlock(),t.createElementBlock("div",wt,[t.createVNode(f,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,options:t.unref(e).options,"option-label":t.unref(e).optionLabel??"label","option-value":t.unref(e).optionValue??"value","option-disabled":t.unref(e).optionDisabled,multiple:t.unref(e).multiple??!1,unselectable:t.unref(e).unselectable??!0,"data-key":t.unref(e).dataKey,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),St={class:"p-formkit"},Lt={key:0,class:"formkit-prime-left"},It={key:1,class:"formkit-prime-right"},Dt=t.defineComponent({__name:"PrimeTriStateCheckbox",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("TriStateCheckbox");return t.openBlock(),t.createElementBlock("div",St,[t.unref(n).attrs.labelLeft?(t.openBlock(),t.createElementBlock("span",Lt,t.toDisplayString(t.unref(n).attrs.labelLeft),1)):t.createCommentVNode("",!0),t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(i),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onClick:r},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","pt","pt-options","unstyled"]),t.unref(n).attrs.labelRight?(t.openBlock(),t.createElementBlock("span",It,t.toDisplayString(t.unref(n).attrs.labelRight),1)):t.createCommentVNode("",!0)])}}}),Q=m(Mn,{props:[]}),X=m(rt,{props:["iconRight","iconLeft"]}),G=m(et,{props:["iconRight","iconLeft"]}),v=m(Gn,{props:[]}),ee=m(bt,{props:["feedback","toggleMask"]}),ne=m(st,{props:["rows"]}),te=m(Kn,{props:[]}),le=m(lt,{props:[]}),ae=m(Qn,{props:[]}),re=m(xn,{props:[]}),ie=m(dt,{props:[]}),se=m(ct,{props:[]}),oe=m(An,{props:[]}),fe=m(Ct,{props:[]}),pe=m(gt,{props:[]}),de=m(_t,{props:[]}),ue=m(Hn,{props:[]}),ce=m(ft,{props:[]}),me=m(Wn,{props:[]}),be=m(Vt,{props:[]}),ye=m(Bt,{props:[]}),_e=m(Dt,{props:[]}),Et={primeAutoComplete:Q,primeInputText:X,primeInputNumber:G,primeInputMask:v,primePassword:ee,primeCheckbox:te,primeInputSwitch:le,primeTextarea:ne,primeEditor:ae,primeDropdown:re,primeMultiSelect:ie,primeCalendar:oe,primeSlider:fe,primeChips:ue,primeKnob:ce,primeRating:pe,primeRadioButton:de,primeColorPicker:me,primeToggleButton:be,primeListbox:se,primeSelectButton:ye,primeTriStateCheckbox:_e};c.primeAutoCompleteDefinition=Q,c.primeCalendarDefinition=oe,c.primeCheckboxDefinition=te,c.primeChipsDefinition=ue,c.primeColorPickerDefinition=me,c.primeDropdownDefinition=re,c.primeEditorDefinition=ae,c.primeInputMaskDefinition=v,c.primeInputNumberDefinition=G,c.primeInputSwitchDefinition=le,c.primeInputTextDefinition=X,c.primeInputs=Et,c.primeKnobDefinition=ce,c.primeListboxDefinition=se,c.primeMultiSelectDefinition=ie,c.primePasswordDefinition=ee,c.primeRadioButtonDefinition=de,c.primeRatingDefinition=pe,c.primeSelectButtonDefinition=ye,c.primeSliderDefinition=fe,c.primeTextareaDefinition=ne,c.primeToggleButtonDefinition=be,c.primeTriStateCheckboxDefinition=_e,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(c,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(c=typeof globalThis<"u"?globalThis:c||self,t(c["formkit-primevue"]={},c.Vue))})(this,function(c,t){"use strict";const he=["__key","__init","__shim","__original","__index","__prevKey"];function N(){return Math.random().toString(36).substring(2,15)}function h(l,a){return Object.prototype.hasOwnProperty.call(l,a)}function g(l,a,n=!0,e=["__key"]){if(l===a)return!0;if(typeof a=="object"&&typeof l=="object"){if(l instanceof Map||l instanceof Set)return!1;if(l instanceof Date&&a instanceof Date)return l.getTime()===a.getTime();if(l instanceof RegExp&&a instanceof RegExp)return ge(l,a);if(l===null||a===null||Object.keys(l).length!==Object.keys(a).length)return!1;for(const r of e)if((r in l||r in a)&&l[r]!==a[r])return!1;for(const r in l)if(!(r in a)||l[r]!==a[r]&&!n||n&&!g(l[r],a[r],n,e))return!1;return!0}return!1}function ge(l,a){return l.source===a.source&&l.flags.split("").sort().join("")===a.flags.split("").sort().join("")}function S(l){const a=typeof l;if(a==="number")return!1;if(l===void 0)return!0;if(a==="string")return l==="";if(a==="object"){if(l===null)return!0;for(const n in l)return!1;return!(l instanceof RegExp||l instanceof Date)}return!1}function L(l){return Object.prototype.toString.call(l)==="[object Object]"}function k(l){return L(l)||Array.isArray(l)}function z(l){if(L(l)===!1||l.__FKNode__||l.__POJO__===!1)return!1;const a=l.constructor;if(a===void 0)return!0;const n=a.prototype;return!(L(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}function R(l,a,n=!1,e=!1){if(a===null)return null;const r={};if(typeof a=="string")return a;for(const i in l)if(h(a,i)&&(a[i]!==void 0||!e)){if(n&&Array.isArray(l[i])&&Array.isArray(a[i])){r[i]=l[i].concat(a[i]);continue}if(a[i]===void 0)continue;z(l[i])&&z(a[i])?r[i]=R(l[i],a[i],n,e):r[i]=a[i]}else r[i]=l[i];for(const i in a)!h(r,i)&&a[i]!==void 0&&(r[i]=a[i]);return r}function ke(l){return l.replace(/-([a-z0-9])/gi,(a,n)=>n.toUpperCase())}function Ce(l){return l.replace(/([a-z0-9])([A-Z])/g,(a,n,e)=>n+"-"+e.toLowerCase()).replace(" ","-").toLowerCase()}function C(l,a=he){if(l===null||l instanceof RegExp||l instanceof Date||l instanceof Map||l instanceof Set||typeof File=="function"&&l instanceof File)return l;let n;Array.isArray(l)?n=l.map(e=>typeof e=="object"?C(e,a):e):n=Object.keys(l).reduce((e,r)=>(e[r]=typeof l[r]=="object"?C(l[r],a):l[r],e),{});for(const e of a)e in l&&Object.defineProperty(n,e,{enumerable:!1,value:l[e]});return n}function $(l){return typeof l=="object"?C(l):l}function M(l){return l!==void 0&&l!=="false"&&l!==!1?!0:void 0}function y(l){return Object.isFrozen(l)?l:Object.defineProperty(l,"__init",{enumerable:!1,value:!0})}function $e(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function T(){const l=[];let a=0;const n=r=>l.push(r),e=r=>{const i=l[a];return typeof i=="function"?i(r,o=>(a++,e(o))):(a=0,r)};return n.dispatch=e,n.unshift=r=>l.unshift(r),n.remove=r=>{const i=l.indexOf(r);i>-1&&l.splice(i,1)},n}function Ve(){const l=new Map,a=new Map;let n;const e=(r,i)=>{if(n){n.set(i.name,[r,i]);return}l.has(i.name)&&l.get(i.name).forEach(o=>{(i.origin===r||o.modifiers.includes("deep"))&&o.listener(i)}),i.bubble&&r.bubble(i)};return e.flush=()=>{l.clear(),a.clear(),n==null||n.clear()},e.on=(r,i)=>{const[o,...s]=r.split("."),f=i.receipt||N(),p={modifiers:s,event:o,listener:i,receipt:f};return l.has(o)?l.get(o).push(p):l.set(o,[p]),a.has(f)?a.get(f).push(o):a.set(f,[o]),f},e.off=r=>{var i;a.has(r)&&((i=a.get(r))===null||i===void 0||i.forEach(o=>{const s=l.get(o);Array.isArray(s)&&l.set(o,s.filter(f=>f.receipt!==r))}),a.delete(r))},e.pause=r=>{n||(n=new Map),r&&r.walk(i=>i._e.pause())},e.play=r=>{if(!n)return;const i=n;n=void 0,i.forEach(([o,s])=>e(o,s)),r&&r.walk(o=>o._e.play())},e}function we(l,a,n,e,r=!0,i){return a._e(l,{payload:e,name:n,bubble:r,origin:l,meta:i}),l}function Be(l,a,n){return P(l.parent)&&l.parent._e(l.parent,n),l}function Se(l,a,n,e){return a._e.on(n,e)}function Le(l,a,n){return a._e.off(n),l}const A=T();A((l,a)=>(l.message||(l.message=`E${l.code}`),a(l)));const j=T();j((l,a)=>{l.message||(l.message=`W${l.code}`);const n=a(l);return console&&typeof console.warn=="function"&&console.warn(n.message),n});function F(l,a={}){j.dispatch({code:l,data:a})}function _(l,a={}){throw Error(A.dispatch({code:l,data:a}).message)}function I(l,a){const n={blocking:!1,key:N(),meta:{},type:"state",visible:!0,...l};return a&&n.value&&n.meta.localize!==!1&&(n.value=a.t(n),n.meta.locale=a.config.locale),n}function Ie(l,...a){const n=`${l.name}-set`,e=r=>I({key:$e(r),type:"error",value:r,meta:{source:n,autoClear:!0}});return a.filter(r=>!!r).map(r=>{if(typeof r=="string"&&(r=[r]),Array.isArray(r))return r.map(i=>e(i));{const i={};for(const o in r)Array.isArray(r[o])?i[o]=r[o].map(s=>e(s)):i[o]=[e(r[o])];return i}})}const U=new Map,D=new Map,De=Ve();function Ee(l){if(D.has(l)){const a=D.get(l);D.delete(l),U.delete(a),De(l,{payload:null,name:a,bubble:!1,origin:l})}}function Oe(l){return U.get(l)}function K(l,a,n){let e=!0;return a in l.config._t?e=!1:l.emit(`config:${a}`,n,!1),a in l.props||(l.emit("prop",{prop:a,value:n}),l.emit(`prop:${a}`,n)),e}function Pe(l){const a=document.getElementById(l);if(a instanceof HTMLFormElement){const n=new Event("submit",{cancelable:!0,bubbles:!0});a.dispatchEvent(n);return}F(151,l)}function Ne(l){const a=n=>{for(const e in n.store){const r=n.store[e];r.type==="error"||r.type==="ui"&&e==="incomplete"?n.store.remove(e):r.type==="state"&&n.store.set({...r,value:!1})}};a(l),l.walk(a)}function ze(l,a){const n=typeof l=="string"?Oe(l):l;if(n){const e=o=>$(o.props.initial)||(o.type==="group"?{}:o.type==="list"?[]:void 0);n._e.pause(n);const r=$(a);return a&&!S(a)&&(n.props.initial=k(r)?y(r):r,n.props._init=n.props.initial),n.input(e(n),!1),n.walk(o=>{o.type==="list"&&o.sync||o.input(e(o),!1)}),n.input(S(r)&&r?r:e(n),!1),n.type!=="input"&&a&&!S(a)&&k(a)&&n.walk(o=>{o.props.initial=k(o.value)?y(o.value):o.value,o.props._init=n.props.initial}),n._e.play(n),Ne(n),n.emit("reset",n),n}F(152,l)}const Re={delimiter:".",delay:0,locale:"en",rootClasses:l=>({[`formkit-${Ce(l)}`]:!0})},Me=Symbol("index"),E=Symbol("removed"),O=Symbol("moved"),Z=Symbol("inserted");function Te(l){return l.type==="list"&&Array.isArray(l._value)}function P(l){return l&&typeof l=="object"&&l.__FKNode__===!0}const V=(l,a,n)=>{_(102,[l,n])};d(ln,V,!1),d(Je),d(xe),d(rn,V,!1),d(sn),d(Be),d(yn),d(qe),d(!1),d(Ye),d(He),d(We),d(_n),d(Ke),d(tn,nn,!1),d(Fe),d(Ge),d(we),d(fn),d(Se),d(Le),d(!1,Qe),d(!1),d(Xe),d(dn,V,!1),d(bn),d(en),d(W),d(mn),d(cn),d(q),d(an,!1,!1),d(ve);function d(l,a,n=!0){return{get:l?(e,r)=>n?(...i)=>l(e,r,...i):l(e,r):!1,set:a!==void 0?a:V.bind(null)}}let Ae=0;function je(l){return l.type==="group"?y(l.value&&typeof l.value=="object"&&!Array.isArray(l.value)?l.value:{}):l.type==="list"?y(Array.isArray(l.value)?l.value:[]):l.value}function Fe(l,a,n,e=!0){return a._value=Ue(l,l.hook.input.dispatch(n)),l.emit("input",a._value),l.isCreated&&l.type==="input"&&g(a._value,a.value)?(l.emit("commitRaw",a.value),a.settled):(a.isSettled&&l.disturb(),e?(a._tmo&&clearTimeout(a._tmo),a._tmo=setTimeout(w,l.props.delay,l,a)):w(l,a),a.settled)}function Ue(l,a){switch(l.type){case"input":break;case"group":(!a||typeof a!="object")&&_(107,[l,a]);break;case"list":Array.isArray(a)||_(108,[l,a]);break}return a}function w(l,a,n=!0,e=!0){a._value=a.value=l.hook.commit.dispatch(a._value),l.type!=="input"&&e&&l.hydrate(),l.emit("commitRaw",a.value),l.emit("commit",a.value),n&&l.calm()}function H(l,{name:a,value:n,from:e}){if(!Object.isFrozen(l._value)){if(Te(l)){const r=n===E?[]:n===O&&typeof e=="number"?l._value.splice(e,1):[n];l._value.splice(a,n===O||e===Z?0:1,...r);return}n!==E?l._value[a]=n:delete l._value[a]}}function Ke(l,a){const n=a._value;return l.type==="list"&&l.sync&&Ze(l,a),a.children.forEach(e=>{if(typeof n=="object")if(e.name in n){const r=e.type!=="input"||n[e.name]&&typeof n[e.name]=="object"?y(n[e.name]):n[e.name];if(!e.isSettled||!k(r)&&g(r,e._value))return;e.input(r,!1)}else(l.type!=="list"||typeof e.name=="number")&&H(a,{name:e.name,value:e.value}),n.__init||(e.type==="group"?e.input({},!1):e.type==="list"?e.input([],!1):e.input(void 0,!1))}),l}function Ze(l,a){const n=l._value;if(!Array.isArray(n))return;const e=[],r=new Set(a.children),i=new Map;n.forEach((s,f)=>{if(a.children[f]&&a.children[f]._value===s)e.push(a.children[f]),r.delete(a.children[f]);else{e.push(null);const p=i.get(s)||[];p.push(f),i.set(s,p)}}),r.size&&i.size&&r.forEach(s=>{if(i.has(s._value)){const f=i.get(s._value),p=f.shift();e[p]=s,r.delete(s),f.length||i.delete(s._value)}});const o=[];for(i.forEach(s=>{o.push(...s)});r.size&&o.length;){const s=r.values().next().value,f=o.shift();if(f===void 0)break;e[f]=s,r.delete(s)}o.forEach((s,f)=>{e[s]=hn({value:f})}),r.size&&r.forEach(s=>{if(!("__FKP"in s)){const f=s._c.parent;if(!f||gn(f))return;f.ledger.unmerge(s),s._c.parent=null,s.destroy()}}),a.children=e}function He(l,a){var n;return a._d<=0&&(a.isSettled=!1,l.emit("settled",!1,!1),a.settled=new Promise(e=>{a._resolve=e}),l.parent&&((n=l.parent)===null||n===void 0||n.disturb())),a._d++,l}function qe(l,a,n){var e;if(n!==void 0&&l.type!=="input")return H(a,n),w(l,a,!0,!1);a._d>0&&a._d--,a._d===0&&(a.isSettled=!0,l.emit("settled",!0,!1),l.parent&&((e=l.parent)===null||e===void 0||e.calm({name:l.name,value:a.value})),a._resolve&&a._resolve(a.value))}function We(l,a){l.emit("destroying",l),l.store.filter(()=>!1),l.parent&&(l.parent.emit("childRemoved",l),l.parent.remove(l)),Ee(l),l.emit("destroyed",l),a._e.flush(),a._value=a.value=void 0;for(const n in a.context)delete a.context[n];a.plugins.clear(),a.context=null}function Ye(l,a,n){a.type=n.type,a.props.definition=C(n),a.value=a._value=je({type:l.type,value:a.value}),n.forceTypeProp&&(l.props.type&&(l.props.originalType=l.props.type),a.props.type=n.forceTypeProp),n.family&&(a.props.family=n.family),n.features&&n.features.forEach(e=>e(l)),n.props&&l.addProps(n.props),l.emit("defined",n)}function xe(l,a,n){var e;if(l.props.attrs){const r={...l.props.attrs};l.props._emit=!1;for(const o in r){const s=ke(o);n.includes(s)&&(l.props[s]=r[o],delete r[o])}const i=$(a._value);l.props.initial=l.type!=="input"?y(i):i,l.props._emit=!0,l.props.attrs=r,l.props.definition&&(l.props.definition.props=[...((e=l.props.definition)===null||e===void 0?void 0:e.props)||[],...n])}return l.emit("added-props",n),l}function Je(l,a,n,e){if(l.type==="input"&&_(100,l),n.parent&&n.parent!==l&&n.parent.remove(n),!a.children.includes(n)){if(e!==void 0&&l.type==="list"){const r=a.children[e];r&&"__FKP"in r?(n._c.uid=r.uid,a.children.splice(e,1,n)):a.children.splice(e,0,n),Array.isArray(l.value)&&l.value.length<a.children.length&&l.disturb().calm({name:e,value:n.value,from:Z})}else a.children.push(n);n.isSettled||l.disturb()}if(n.parent!==l){if(n.parent=l,n.parent!==l)return l.remove(n),n.parent.add(n),l}else n.use(l.plugins);return w(l,a,!1),l.ledger.merge(n),l.emit("child",n),l}function Qe(l,a,n,e){return P(e)?(l.parent&&l.parent!==e&&l.parent.remove(l),a.parent=e,l.resetConfig(),e.children.includes(l)?l.use(e.plugins):e.add(l),!0):e===null?(a.parent=null,!0):!1}function Xe(l,a,n){const e=a.children.indexOf(n);if(e!==-1){n.isSettled&&l.disturb(),a.children.splice(e,1);let r=M(n.props.preserve),i=n.parent;for(;r===void 0&&i;)r=M(i.props.preserve),i=i.parent;r?l.calm():l.calm({name:l.type==="list"?e:n.name,value:E}),n.parent=null,n.config._rmn=n}return l.ledger.unmerge(n),l}function Ge(l,a,n){a.children.forEach(e=>!("__FKP"in e)&&n(e))}function ve(l,a,n,e=!1,r=!1){a.children.some(i=>{if("__FKP"in i)return!1;const o=n(i);return e&&o===!1?!0:r&&o===!1?!1:i.walk(n,e,r)})}function en(l,a){const n=l.parent||void 0;a.config=un(l.config._t,n),l.walk(e=>e.resetConfig())}function q(l,a,n,e=!0,r=!0){return Array.isArray(n)||n instanceof Set?(n.forEach(i=>q(l,a,i)),l):(a.plugins.has(n)||(r&&typeof n.library=="function"&&n.library(l),e&&n(l)!==!1&&(a.plugins.add(n),l.children.forEach(i=>i.use(n)))),l)}function nn(l,a,n,e){if(P(l.parent)){const r=l.parent.children,i=e>=r.length?r.length-1:e<0?0:e,o=r.indexOf(l);return o===-1?!1:(r.splice(o,1),r.splice(i,0,l),l.parent.children=r,l.parent.type==="list"&&l.parent.disturb().calm({name:i,value:O,from:o}),!0)}return!1}function tn(l){if(l.parent){const a=[...l.parent.children].indexOf(l);return a===-1?l.parent.children.length:a}return-1}function ln(l,a){return a}function an(l,a){var n;return((n=l.parent)===null||n===void 0?void 0:n.type)==="list"?l.index:a.name!==Me?a.name:l.index}function rn(l,a){return a.parent?a.parent.address.concat([l.name]):[l.name]}function sn(l,a,n){const e=typeof n=="string"?n.split(l.config.delimiter):n;if(!e.length)return;const r=e[0];let i=l.parent;for(i||(String(e[0])===String(l.name)&&e.shift(),i=l),r==="$parent"&&e.shift();i&&e.length;){const o=e.shift();switch(o){case"$root":i=l.root;break;case"$parent":i=i.parent;break;case"$self":i=l;break;default:i=i.children.find(s=>!("__FKP"in s)&&String(s.name)===String(o))||on(i,o)}}return i||void 0}function on(l,a){const n=String(a).match(/^(find)\((.*)\)$/);if(n){const[,e,r]=n,i=r.split(",").map(o=>o.trim());switch(e){case"find":return l.find(i[0],i[1]);default:return}}}function fn(l,a,n,e){return pn(l,n,e)}function pn(l,a,n="name"){const e=typeof n=="string"?i=>i[n]==a:n,r=[l];for(;r.length;){const i=r.shift();if(!("__FKP"in i)){if(e(i,a))return i;r.push(...i.children)}}}function dn(l){let a=l;for(;a.parent;)a=a.parent;return a}function un(l={},a){let n;return new Proxy(l,{get(...e){const r=e[1];if(r==="_t")return l;const i=Reflect.get(...e);if(i!==void 0)return i;if(a){const o=a.config[r];if(o!==void 0)return o}if(l.rootConfig&&typeof r=="string"){const o=l.rootConfig[r];if(o!==void 0)return o}return r==="delay"&&(n==null?void 0:n.type)==="input"?20:Re[r]},set(...e){const r=e[1],i=e[2];if(r==="_n")return n=i,l.rootConfig&&l.rootConfig._add(n),!0;if(r==="_rmn")return l.rootConfig&&l.rootConfig._rm(n),n=void 0,!0;if(!g(l[r],i,!1)){const o=Reflect.set(...e);return n&&(n.emit(`config:${r}`,i,!1),K(n,r,i),n.walk(s=>K(s,r,i),!1,!0)),o}return!0}})}function cn(l,a,n,e="ui"){const r=typeof n=="string"?{key:n,value:n,type:e}:n,i=l.hook.text.dispatch(r);return l.emit("text",i,!1),i.value}function mn(l){const a=l.name;do{if(l.props.isForm===!0)break;l.parent||_(106,a),l=l.parent}while(l);l.props.id&&Pe(l.props.id)}function bn(l,a,n){return ze(l,n)}function W(l,a,n,e){const r=`${l.name}-set`,i=l.hook.setErrors.dispatch({localErrors:n,childErrors:e});return Ie(l,i.localErrors,i.childErrors).forEach(o=>{l.store.apply(o,s=>s.meta.source===r)}),l}function yn(l,a,n=!0,e){return W(l,a,[]),n&&(e=e||`${l.name}-set`,l.walk(r=>{r.store.filter(i=>!(i.type==="error"&&i.meta&&i.meta.source===e))})),l}function _n(l,a,n,e){return a.traps.set(n,e),l}function hn(l){var a,n,e,r;return{__FKP:!0,uid:Symbol(),name:(a=l==null?void 0:l.name)!==null&&a!==void 0?a:`p_${Ae++}`,value:(n=l==null?void 0:l.value)!==null&&n!==void 0?n:null,_value:(e=l==null?void 0:l.value)!==null&&e!==void 0?e:null,type:(r=l==null?void 0:l.type)!==null&&r!==void 0?r:"input",use:()=>{},input(i){return this._value=i,this.value=i,Promise.resolve()},isSettled:!0}}function gn(l){return"__FKP"in l}function Y(l){return typeof l!="string"&&h(l,"$el")}function kn(l){return typeof l!="string"&&h(l,"$cmp")}function b(l,a,n=!1){return(...e)=>{const r=i=>{const o=!a||typeof a=="string"?{$el:a}:a();return(Y(o)||kn(o))&&(o.meta||(o.meta={section:l}),e.length&&!o.children&&(o.children=[...e.map(s=>typeof s=="function"?s(i):s)]),Y(o)&&(o.attrs={class:`$classes.${l}`,...o.attrs||{}})),{if:`$slots.${l}`,then:`$slots.${l}`,else:l in i?$n(o,i[l]):o}};return r._s=l,n?Cn(r):r}}function Cn(l){return a=>[l(a)]}function x(l){return typeof l=="object"&&("$el"in l||"$cmp"in l||"$formkit"in l)}function $n(l,a={}){return typeof l=="string"?x(a)||typeof a=="string"?a:l:Array.isArray(l)?x(a)?a:l:R(l,a)}const Vn=b("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}})),J=(l,a)=>b(`${l}Icon`,()=>{const n=`_raw${l.charAt(0).toUpperCase()}${l.slice(1)}Icon`;return{if:`$${l}Icon && $${n}`,$el:`${a||"span"}`,attrs:{class:`$classes.${l}Icon + " " + $classes.icon`,innerHTML:`$${n}`,onClick:`$handlers.iconClick(${l})`,for:{if:`${a==="label"}`,then:"$id"}}}})(),wn=b("inner","div"),Bn=b("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),Sn=b("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Ln=b("messages",()=>({$el:"ul",if:"$defaultMessagePlacement && $fns.length($messages)"})),In=b("outer",()=>({$el:"div",attrs:{key:"$id","data-family":"$family || undefined","data-type":"$type","data-multiple":'$attrs.multiple || ($type != "select" && $options != undefined) || undefined',"data-disabled":'$: ($disabled !== "false" && $disabled) || undefined',"data-empty":"$state.empty || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-prefix-icon":"$_rawPrefixIcon !== undefined || undefined","data-suffix-icon":"$_rawSuffixIcon !== undefined || undefined","data-prefix-icon-click":"$onPrefixIconClick !== undefined || undefined","data-suffix-icon-click":"$onSuffixIconClick !== undefined || undefined"}})),Dn=b("prefix",null),En=b("suffix",null),On=b("wrapper","div");I({key:"loading",value:!0,visible:!1});function Pn(l){return In(On(Bn("$label"),wn(J("prefix"),Dn(),l(),En(),J("suffix"))),Vn("$help"),Ln(Sn("$message.value")))}I({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let Nn=1;function zn(l){return typeof l=="function"&&l.length===2||typeof l=="object"&&!Array.isArray(l)&&!("$el"in l)&&!("$cmp"in l)&&!("if"in l)}function m(l,a={}){const n={type:"input",...a};let e;if(zn(l)){const r=`SchemaComponent${Nn++}`;e=b("input",()=>({$cmp:r,props:{context:"$node.context"}})),n.library={[r]:t.markRaw(l)}}else typeof l=="function"?e=l:e=b("input",()=>$(l));return n.schema=Pn(e||"Schema undefined"),n.schemaMemoKey||(n.schemaMemoKey=`${Math.random()}`),n}const Rn={class:"p-formkit"},Mn=t.defineComponent({__name:"PrimeAutoComplete",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs,r=t.ref([]);function i(s){r.value=e.complete(s.query)}function o(s){var f;n==null||n.node.input((f=a.context)==null?void 0:f._value)}return t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class),(s,f)=>{var u;const p=t.resolveComponent("AutoComplete");return t.openBlock(),t.createElementBlock("div",Rn,[t.createVNode(p,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=B=>t.unref(n)._value=B),disabled:t.unref(e)._disabled??!1,tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,suggestions:t.unref(r),dropdown:((u=t.unref(e))==null?void 0:u.dropdown)??!1,multiple:t.unref(e).multiple??!1,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onComplete:i,onChange:o},null,8,["id","modelValue","disabled","tabindex","aria-label","aria-labelledby","suggestions","dropdown","multiple","pt","pt-options","unstyled"])])}}}),Tn={class:"p-formkit"},An=t.defineComponent({__name:"PrimeCalendar",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.node.input(n==null?void 0:n._value)}function i(s){n==null||n.node.input(s)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Calendar");return t.openBlock(),t.createElementBlock("div",Tn,[t.createVNode(p,{modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),"input-id":a.context.id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(o),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,"date-format":t.unref(e).dateFormat,placeholder:t.unref(e).placeholder,"selection-mode":t.unref(e).selectionMode??"single",inline:t.unref(e).inline??!1,"show-other-months":t.unref(e).showOtherMonths??!0,"select-other-months":t.unref(e).selectOtherMonths??!1,icon:t.unref(e).icon,"show-icon":t.unref(n).showIcon,"previous-icon":t.unref(e).previousIcon??"pi pi-chevron-left","next-icon":t.unref(e).nextIcon??"pi pi-chevron-right","increment-icon":t.unref(e).incrementIcon??"pi pi-chevron-up","decrement-icon":t.unref(e).decrementIcon??"pi pi-chevron-down","number-of-months":t.unref(e).numberOfMonths??1,"responsive-options":t.unref(e).responsiveOptions,view:t.unref(e).view??"date","touch-u-i":t.unref(e).touchUI??!1,"min-date":t.unref(e).minDate,"max-date":t.unref(e).maxDate,"disabled-dates":t.unref(e).disabledDates,"disabled-days":t.unref(e).disabledDays,"max-date-count":t.unref(e).maxDateCount,"show-on-focus":t.unref(e).showOnFocus??!0,"auto-z-index":t.unref(e).autoZIndex??!0,"base-z-index":t.unref(e).baseZIndex??0,"show-button-bar":t.unref(e).showButtonBar??!1,"show-time":t.unref(e).showTime??!1,"time-only":t.unref(e).timeOnly??!1,"short-year-cutoff":t.unref(e).shortYearCutoff??"+10","hour-format":t.unref(e).hourFormat??"24","step-hour":t.unref(e).stepHour??1,"step-minute":t.unref(e).stepMinute??1,"step-second":t.unref(e).stepSecond??1,"show-seconds":t.unref(e).showSeconds??!1,"hide-on-date-time-select":t.unref(e).hideOnDateTimeSelect??!1,"hide-on-range-selection":t.unref(e).hideOnRangeSelection??!1,"time-separator":t.unref(e).timeSeparator??":","show-week":t.unref(e).showWeek??!1,"manual-input":t.unref(e).manualInput??!0,"append-to":t.unref(e).appendTo??"body","panel-style":t.unref(e).panelStyle,"panel-class":t.unref(e).panelClass,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onDateSelect:i,onInput:r},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"])])}}}),jn={class:"p-formkit"},Fn={key:0,class:"formkit-prime-left"},Un={key:1,class:"formkit-prime-right"},Kn=t.defineComponent({__name:"PrimeCheckbox",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("Checkbox");return t.openBlock(),t.createElementBlock("div",jn,[t.unref(n).attrs.labelLeft?(t.openBlock(),t.createElementBlock("span",Fn,t.toDisplayString(t.unref(n).attrs.labelLeft),1)):t.createCommentVNode("",!0),t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(i),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,binary:t.unref(e).binary??!0,"true-value":t.unref(e).trueValue??void 0,"false-value":t.unref(e).falseValue??void 0,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:r},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"]),t.unref(n).attrs.labelRight?(t.openBlock(),t.createElementBlock("span",Un,t.toDisplayString(t.unref(n).attrs.labelRight),1)):t.createCommentVNode("",!0)])}}}),Zn={class:"p-formkit"},Hn=t.defineComponent({__name:"PrimeChips",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("Chips");return t.openBlock(),t.createElementBlock("div",Zn,[t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(i),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,"allow-duplicate":t.unref(e).allowDuplicate??!0,"add-on-blur":t.unref(e).addOnBlur??!1,max:t.unref(e).max??void 0,placeholder:t.unref(e).placeholder,separator:t.unref(e).separator,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onAdd:r,onRemove:r},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"])])}}}),qn={class:"p-formkit"},Wn=t.defineComponent({__name:"PrimeColorPicker",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(i){var o;n==null||n.node.input((o=a.context)==null?void 0:o._value)}return(i,o)=>{const s=t.resolveComponent("ColorPicker");return t.openBlock(),t.createElementBlock("div",qn,[t.createVNode(s,{modelValue:t.unref(n)._value,"onUpdate:modelValue":o[0]||(o[0]=f=>t.unref(n)._value=f),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),"panel-class":t.unref(e).class,tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,"default-color":t.unref(e).defaultColor??"ff0000",inline:t.unref(e).inline??!1,format:t.unref(e).format,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},null,8,["modelValue","disabled","readonly","style","panel-class","tabindex","aria-label","aria-labelledby","default-color","inline","format","pt","pt-options","unstyled"])])}}}),Yn={class:"p-formkit"},xn=t.defineComponent({__name:"PrimeDropdown",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.handlers.blur(s.value)}function i(s){n==null||n.node.input(s.value)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Dropdown");return t.openBlock(),t.createElementBlock("div",Yn,[t.createVNode(p,{modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(o)),"input-style":t.unref(e).style,"input-class":t.unref(o),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,options:t.unref(e).options,"option-label":t.unref(e).optionLabel??"label","option-value":t.unref(e).optionValue??"value",placeholder:t.unref(e).placeholder,filter:t.unref(e).filter??!1,"show-clear":t.unref(e).showClear??!1,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:i,onBlur:r},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"])])}}}),Jn={class:"p-formkit"},Qn=t.defineComponent({__name:"PrimeEditor",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.node.input(s.htmlValue)}function i(s){s.range===null&&(n==null||n.handlers.blur(s.htmlValue))}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Jn,[t.createVNode(p,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"editor-style":t.unref(e).style,class:t.normalizeClass(t.unref(o)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,formats:t.unref(e).formats,modules:t.unref(e).modules,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onTextChange:r,onSelectionChange:i},null,8,["id","modelValue","disabled","readonly","editor-style","class","tabindex","aria-label","aria-labelledby","placeholder","formats","modules","pt","pt-options","unstyled"])])}}}),Xn={class:"p-formkit"},Gn=t.defineComponent({__name:"PrimeInputMask",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s,f;n==null||n.node.input((s=a.context)==null?void 0:s._value),n==null||n.handlers.blur((f=a.context)==null?void 0:f._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("InputMask");return t.openBlock(),t.createElementBlock("div",Xn,[t.createVNode(f,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"editor-style":t.unref(e).style,class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,mask:t.unref(e).mask??void 0,"slot-char":t.unref(e).slotChar??"_","auto-clear":t.unref(e).autoClear??!0,unmask:t.unref(e).unmask??!1,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onBlur:r},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"])])}}}),vn={class:"p-formkit"},et=t.defineComponent({__name:"PrimeInputNumber",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.handlers.blur(s.value)}function i(s){n==null||n.node.input(s.value)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("InputNumber");return t.openBlock(),t.createElementBlock("div",vn,[t.createVNode(p,{modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(o),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,"use-grouping":t.unref(e).useGrouping??!0,"min-fraction-digits":t.unref(e).minFractionDigits??void 0,"max-fraction-digits":t.unref(e).maxFractionDigits??void 0,locale:t.unref(e).locale??void 0,mode:t.unref(e).mode??void 0,currency:t.unref(e).currency??void 0,prefix:t.unref(e).prefix??void 0,suffix:t.unref(e).suffix??void 0,"show-buttons":t.unref(e).showButtons??void 0,"button-layout":t.unref(e).buttonLayout??"stacked",step:t.unref(e).step??void 0,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:i,onBlur:r},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"])])}}}),nt={key:0,class:"formkit-prime-left"},tt={key:1,class:"formkit-prime-right"},lt=t.defineComponent({__name:"PrimeInputSwitch",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("InputSwitch");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(e).option_class,"p-formkit"])},[t.unref(n).attrs.labelLeft?(t.openBlock(),t.createElementBlock("span",nt,t.toDisplayString(t.unref(n).attrs.labelLeft),1)):t.createCommentVNode("",!0),t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(i),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,"true-value":t.unref(e).trueValue??void 0,"false-value":t.unref(e).falseValue??void 0,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:r},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","true-value","false-value","pt","pt-options","unstyled"]),t.unref(n).attrs.labelRight?(t.openBlock(),t.createElementBlock("span",tt,t.toDisplayString(t.unref(n).attrs.labelRight),1)):t.createCommentVNode("",!0)],2)}}}),at={class:"p-formkit"},rt=t.defineComponent({__name:"PrimeInputText",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(){return(n==null?void 0:n.iconLeft)&&(n==null?void 0:n.iconLeft.length)>0}function i(){return(n==null?void 0:n.iconRight)&&(n==null?void 0:n.iconRight.length)>0}function o(){let u="";return r()&&(u=`${u}p-input-icon-left `),i()&&(u=`${u}p-input-icon-right `),u}function s(u){n==null||n.handlers.blur(u.target.value)}function f(u){n==null||n.node.input(u.target.value)}const p=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(u,B)=>{const Ot=t.resolveComponent("InputText");return t.openBlock(),t.createElementBlock("div",at,[t.createElementVNode("span",{class:t.normalizeClass(["p-formkit-icon",o()])},[r()?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(t.unref(n).iconLeft)},null,2)):t.createCommentVNode("",!0),t.createVNode(Ot,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":B[0]||(B[0]=Pt=>t.unref(n)._value=Pt),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(p)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:f,onBlur:s},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","pt","pt-options","unstyled"]),i?(t.openBlock(),t.createElementBlock("i",{key:1,class:t.normalizeClass(t.unref(n).iconRight)},null,2)):t.createCommentVNode("",!0)],2)])}}}),it={class:"p-formkit"},st=t.defineComponent({__name:"PrimeTextarea",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.handlers.blur(s.target.value)}function i(s){n==null||n.node.input(s.target.value)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Textarea");return t.openBlock(),t.createElementBlock("div",it,[t.createVNode(p,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(o)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,rows:t.unref(n).rows??3,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:i,onBlur:r},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","placeholder","rows","pt","pt-options","unstyled"])])}}}),ot={class:"p-formkit"},ft=t.defineComponent({__name:"PrimeKnob",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.node.input(s),n==null||n.handlers.blur(s)}function i(s){n==null||n.node.input(s)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Knob");return t.openBlock(),t.createElementBlock("div",ot,[t.createVNode(p,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":[f[0]||(f[0]=u=>t.unref(n)._value=u),i],disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(o)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,min:t.unref(e).min??0,max:t.unref(e).max??100,step:t.unref(e).step??void 0,size:t.unref(e).size??100,"stroke-width":t.unref(e).strokeWidth??14,"show-value":t.unref(e).showValue??!0,"value-color":t.unref(e).valueColor??void 0,"range-color":t.unref(e).rangeColor??void 0,"text-color":t.unref(e).textColor??void 0,"value-template":t.unref(e).valueTemplate??void 0,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),pt={class:"p-formkit"},dt=t.defineComponent({__name:"PrimeMultiSelect",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("MultiSelect");return t.openBlock(),t.createElementBlock("div",pt,[t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"list-style":t.unref(e).style,class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,options:t.unref(e).options,"option-label":t.unref(e).optionLabel??"label","option-value":t.unref(e).optionValue??"value",filter:t.unref(e).filter??!1,display:t.unref(e).display,"max-selected-labels":t.unref(e).maxSelectedLabels,"selected-items-label":t.unref(e).selectedItemsLabel,"selection-limit":t.unref(e).selectionLimit,"show-toggle-all":t.unref(e).showToggleAll,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),ut={class:"p-formkit"},ct=t.defineComponent({__name:"PrimeListbox",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{var p;const f=t.resolveComponent("Listbox");return t.openBlock(),t.createElementBlock("div",ut,[t.createVNode(f,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=u=>t.unref(n)._value=u),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"list-style":t.unref(e).style,class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,options:(p=t.unref(e))==null?void 0:p.options,"option-label":t.unref(e).optionLabel??"label","option-value":t.unref(e).optionValue??"value",multiple:t.unref(e).multiple??!1,filter:t.unref(e).filter??!1,"filter-icon":t.unref(e).filterIcon,"filter-placeholder":t.unref(e).filterPlaceholder,"filter-locale":t.unref(e).filterLocale,"filter-match-mode":t.unref(e).filterMatchMode,"auto-option-focus":t.unref(e).autoOptionFocus??!0,"select-on-focus":t.unref(e).selectOnFocus??!1,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),mt={class:"p-formkit"},bt=t.defineComponent({__name:"PrimePassword",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(s){n==null||n.handlers.blur(s.target.value)}function i(s){n==null||n.node.input(s.target.value)}const o=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(s,f)=>{const p=t.resolveComponent("Password");return t.openBlock(),t.createElementBlock("div",mt,[t.createVNode(p,{modelValue:t.unref(n)._value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.unref(n)._value=u),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(o),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,placeholder:t.unref(e).placeholder,"medium-regex":t.unref(e).mediumRegex??"^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})","strong-regex":t.unref(e).strongRegex??"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})","prompt-label":t.unref(e).promptLabel,"weak-label":t.unref(e).weakLabel,"medium-label":t.unref(e).mediumLabel,"strong-label":t.unref(e).strongLabel,"hide-icon":t.unref(e).hideIcon??"pi pi-eye-slash","show-icon":t.unref(e).showIcon??"pi pi-eye",feedback:t.unref(n).feedback??!1,"toggle-mask":t.unref(n).toggleMask??!1,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onInput:i,onBlur:r},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"])])}}}),yt=["for"],_t=t.defineComponent({__name:"PrimeRadioButton",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("RadioButton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(e).options_class,"p-formkit"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e).options,p=>(t.openBlock(),t.createElementBlock("div",{key:p.value,class:t.normalizeClass(t.unref(e).option_class)},[t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=u=>t.unref(n)._value=u),name:t.unref(e).name,value:p.value,"input-style":t.unref(e).style,"input-class":t.unref(i),pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onClick:r,onChange:r},null,8,["modelValue","name","value","input-style","input-class","pt","pt-options","unstyled"]),t.createElementVNode("label",{for:p.value},t.toDisplayString(p.label),9,yt)],2))),128))],2)}}}),ht={class:"p-formkit"},gt=t.defineComponent({__name:"PrimeRating",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("Rating");return t.openBlock(),t.createElementBlock("div",ht,[t.createVNode(f,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,stars:t.unref(e).stars??5,cancel:t.unref(e).cancel??!1,"on-icon":t.unref(e).onIcon??"pi pi-star-fill","off-icon":t.unref(e).offIcon??"pi pi-star","cancel-icon":t.unref(e).cancelIcon??"pi pi-ban",pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),kt={class:"p-formkit"},Ct=t.defineComponent({__name:"PrimeSlider",props:{context:Object},setup(l){const n=l.context,e=n==null?void 0:n.attrs;function r(o){n==null||n.node.input(o),n==null||n.handlers.blur(o)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("Slider");return t.openBlock(),t.createElementBlock("div",kt,[t.createVNode(f,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,min:t.unref(e).min??0,max:t.unref(e).max??100,step:t.unref(e).step??void 0,range:t.unref(e).range??!1,orientation:t.unref(e).orientation??"horizontal",pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},null,8,["id","modelValue","disabled","readonly","style","class","tabindex","aria-label","aria-labelledby","min","max","step","range","orientation","pt","pt-options","unstyled"])])}}}),$t={class:"p-formkit"},Vt=t.defineComponent({__name:"PrimeToggleButton",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("ToggleButton");return t.openBlock(),t.createElementBlock("div",$t,[t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(i),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,"on-label":t.unref(e).onLabel??"Yes","off-label":t.unref(e).offLabel??"No","on-icon":t.unref(e).onIcon??"pi pi-check","off-icon":t.unref(e).offIcon??"pi pi-times","icon-pos":t.unref(e).iconPos??"left",pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),wt={class:"p-formkit"},Bt=t.defineComponent({__name:"PrimeSelectButton",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("SelectButton");return t.openBlock(),t.createElementBlock("div",wt,[t.createVNode(f,{id:t.unref(n).id,modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,style:t.normalizeStyle(t.unref(e).style),class:t.normalizeClass(t.unref(i)),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,options:t.unref(e).options,"option-label":t.unref(e).optionLabel??"label","option-value":t.unref(e).optionValue??"value","option-disabled":t.unref(e).optionDisabled,multiple:t.unref(e).multiple??!1,unselectable:t.unref(e).unselectable??!0,"data-key":t.unref(e).dataKey,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onChange:r},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"])])}}}),St={class:"p-formkit"},Lt={key:0,class:"formkit-prime-left"},It={key:1,class:"formkit-prime-right"},Dt=t.defineComponent({__name:"PrimeTriStateCheckbox",props:{context:Object},setup(l){const a=l,n=a.context,e=n==null?void 0:n.attrs;function r(o){var s;n==null||n.node.input((s=a.context)==null?void 0:s._value)}const i=t.computed(()=>n!=null&&n.state.validationVisible&&!(n!=null&&n.state.valid)?`${e==null?void 0:e.class} p-invalid`:e==null?void 0:e.class);return(o,s)=>{const f=t.resolveComponent("TriStateCheckbox");return t.openBlock(),t.createElementBlock("div",St,[t.unref(n).attrs.labelLeft?(t.openBlock(),t.createElementBlock("span",Lt,t.toDisplayString(t.unref(n).attrs.labelLeft),1)):t.createCommentVNode("",!0),t.createVNode(f,{modelValue:t.unref(n)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>t.unref(n)._value=p),"input-id":t.unref(n).id,disabled:t.unref(e)._disabled??!1,readonly:t.unref(e)._readonly??!1,"input-style":t.unref(e).style,"input-class":t.unref(i),tabindex:t.unref(e).tabindex,"aria-label":t.unref(e).ariaLabel,"aria-labelledby":t.unref(e).ariaLabelledby,pt:t.unref(e).pt,"pt-options":t.unref(e).ptOptions,unstyled:t.unref(e).unstyled??!1,onClick:r},null,8,["modelValue","input-id","disabled","readonly","input-style","input-class","tabindex","aria-label","aria-labelledby","pt","pt-options","unstyled"]),t.unref(n).attrs.labelRight?(t.openBlock(),t.createElementBlock("span",It,t.toDisplayString(t.unref(n).attrs.labelRight),1)):t.createCommentVNode("",!0)])}}}),Q=m(Mn,{props:[]}),X=m(rt,{props:["iconRight","iconLeft"]}),G=m(et,{props:["iconRight","iconLeft"]}),v=m(Gn,{props:[]}),ee=m(bt,{props:["feedback","toggleMask"]}),ne=m(st,{props:["rows"]}),te=m(Kn,{props:[]}),le=m(lt,{props:[]}),ae=m(Qn,{props:[]}),re=m(xn,{props:[]}),ie=m(dt,{props:[]}),se=m(ct,{props:[]}),oe=m(An,{props:[]}),fe=m(Ct,{props:[]}),pe=m(gt,{props:[]}),de=m(_t,{props:[]}),ue=m(Hn,{props:[]}),ce=m(ft,{props:[]}),me=m(Wn,{props:[]}),be=m(Vt,{props:[]}),ye=m(Bt,{props:[]}),_e=m(Dt,{props:[]}),Et={primeAutoComplete:Q,primeInputText:X,primeInputNumber:G,primeInputMask:v,primePassword:ee,primeCheckbox:te,primeInputSwitch:le,primeTextarea:ne,primeEditor:ae,primeDropdown:re,primeMultiSelect:ie,primeCalendar:oe,primeSlider:fe,primeChips:ue,primeKnob:ce,primeRating:pe,primeRadioButton:de,primeColorPicker:me,primeToggleButton:be,primeListbox:se,primeSelectButton:ye,primeTriStateCheckbox:_e};c.primeAutoCompleteDefinition=Q,c.primeCalendarDefinition=oe,c.primeCheckboxDefinition=te,c.primeChipsDefinition=ue,c.primeColorPickerDefinition=me,c.primeDropdownDefinition=re,c.primeEditorDefinition=ae,c.primeInputMaskDefinition=v,c.primeInputNumberDefinition=G,c.primeInputSwitchDefinition=le,c.primeInputTextDefinition=X,c.primeInputs=Et,c.primeKnobDefinition=ce,c.primeListboxDefinition=se,c.primeMultiSelectDefinition=ie,c.primePasswordDefinition=ee,c.primeRadioButtonDefinition=de,c.primeRatingDefinition=pe,c.primeSelectButtonDefinition=ye,c.primeSliderDefinition=fe,c.primeTextareaDefinition=ne,c.primeToggleButtonDefinition=be,c.primeTriStateCheckboxDefinition=_e,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/sfxcode/formkit-primevue",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"eslint": "^8.51.0",
|
|
56
56
|
"json-editor-vue": "^0.10.19",
|
|
57
57
|
"quill": "^1.3.7",
|
|
58
|
-
"sass": "^1.69.
|
|
58
|
+
"sass": "^1.69.4",
|
|
59
59
|
"tslib": "^2.6.2",
|
|
60
60
|
"typescript": "^5.2.2",
|
|
61
61
|
"unocss": "^0.56.5",
|
|
62
62
|
"unplugin-auto-import": "^0.16.6",
|
|
63
63
|
"unplugin-vue-components": "^0.25.2",
|
|
64
|
-
"vanilla-jsoneditor": "^0.18.
|
|
64
|
+
"vanilla-jsoneditor": "^0.18.10",
|
|
65
65
|
"vite": "^4.4.11",
|
|
66
66
|
"vite-plugin-dts": "^3.6.0",
|
|
67
67
|
"vite-plugin-eslint": "^1.8.1",
|