@sfxcode/formkit-primevue 0.5.1 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/formkit-primevue.es.js +363 -42
- package/dist/formkit-primevue.umd.js +12 -1
- package/dist/index.d.ts +3 -0
- package/dist/index_form.json +28 -0
- package/dist/sass/formkit-prime-inputs.scss +29 -23
- package/package.json +25 -26
package/README.md
CHANGED
|
@@ -2736,7 +2736,7 @@ function createInput(schemaOrComponent, definitionOptions = {}) {
|
|
|
2736
2736
|
definition.schema = useSchema(schema || "Schema undefined");
|
|
2737
2737
|
return definition;
|
|
2738
2738
|
}
|
|
2739
|
-
const _sfc_main$
|
|
2739
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2740
2740
|
name: "PrimeInputText",
|
|
2741
2741
|
props: {
|
|
2742
2742
|
context: Object
|
|
@@ -2774,10 +2774,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2774
2774
|
id: unref(context).id,
|
|
2775
2775
|
modelValue: unref(context)._value,
|
|
2776
2776
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context)._value = $event),
|
|
2777
|
-
placeholder: unref(context).attrs.placeholder,
|
|
2778
2777
|
class: normalizeClass(unref(context).attrs.class),
|
|
2778
|
+
placeholder: unref(context).attrs.placeholder,
|
|
2779
2779
|
onInput: handleInput
|
|
2780
|
-
}, null, 8, ["id", "modelValue", "
|
|
2780
|
+
}, null, 8, ["id", "modelValue", "class", "placeholder"]),
|
|
2781
2781
|
hasRightIcon ? (openBlock(), createElementBlock("i", {
|
|
2782
2782
|
key: 1,
|
|
2783
2783
|
class: normalizeClass(unref(context).iconRight)
|
|
@@ -2786,7 +2786,252 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2786
2786
|
};
|
|
2787
2787
|
}
|
|
2788
2788
|
});
|
|
2789
|
-
|
|
2789
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2790
|
+
var consola_browser = { exports: {} };
|
|
2791
|
+
(function(module, exports) {
|
|
2792
|
+
!function(t, e) {
|
|
2793
|
+
module.exports = e();
|
|
2794
|
+
}(commonjsGlobal, function() {
|
|
2795
|
+
function t(t2, e2) {
|
|
2796
|
+
if (!(t2 instanceof e2))
|
|
2797
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2798
|
+
}
|
|
2799
|
+
function e(t2, e2) {
|
|
2800
|
+
for (var r2 = 0; r2 < e2.length; r2++) {
|
|
2801
|
+
var o2 = e2[r2];
|
|
2802
|
+
o2.enumerable = o2.enumerable || false, o2.configurable = true, "value" in o2 && (o2.writable = true), Object.defineProperty(t2, o2.key, o2);
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
function r(t2, r2, o2) {
|
|
2806
|
+
return r2 && e(t2.prototype, r2), o2 && e(t2, o2), t2;
|
|
2807
|
+
}
|
|
2808
|
+
function o(t2, e2, r2) {
|
|
2809
|
+
return e2 in t2 ? Object.defineProperty(t2, e2, { value: r2, enumerable: true, configurable: true, writable: true }) : t2[e2] = r2, t2;
|
|
2810
|
+
}
|
|
2811
|
+
function n(t2, e2) {
|
|
2812
|
+
var r2 = Object.keys(t2);
|
|
2813
|
+
if (Object.getOwnPropertySymbols) {
|
|
2814
|
+
var o2 = Object.getOwnPropertySymbols(t2);
|
|
2815
|
+
e2 && (o2 = o2.filter(function(e3) {
|
|
2816
|
+
return Object.getOwnPropertyDescriptor(t2, e3).enumerable;
|
|
2817
|
+
})), r2.push.apply(r2, o2);
|
|
2818
|
+
}
|
|
2819
|
+
return r2;
|
|
2820
|
+
}
|
|
2821
|
+
function s(t2) {
|
|
2822
|
+
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
2823
|
+
var r2 = arguments[e2] != null ? arguments[e2] : {};
|
|
2824
|
+
e2 % 2 ? n(Object(r2), true).forEach(function(e3) {
|
|
2825
|
+
o(t2, e3, r2[e3]);
|
|
2826
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(r2)) : n(Object(r2)).forEach(function(e3) {
|
|
2827
|
+
Object.defineProperty(t2, e3, Object.getOwnPropertyDescriptor(r2, e3));
|
|
2828
|
+
});
|
|
2829
|
+
}
|
|
2830
|
+
return t2;
|
|
2831
|
+
}
|
|
2832
|
+
function i2(t2) {
|
|
2833
|
+
return function(t3) {
|
|
2834
|
+
if (Array.isArray(t3))
|
|
2835
|
+
return l(t3);
|
|
2836
|
+
}(t2) || function(t3) {
|
|
2837
|
+
if (typeof Symbol != "undefined" && Symbol.iterator in Object(t3))
|
|
2838
|
+
return Array.from(t3);
|
|
2839
|
+
}(t2) || a(t2) || function() {
|
|
2840
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2841
|
+
}();
|
|
2842
|
+
}
|
|
2843
|
+
function a(t2, e2) {
|
|
2844
|
+
if (t2) {
|
|
2845
|
+
if (typeof t2 == "string")
|
|
2846
|
+
return l(t2, e2);
|
|
2847
|
+
var r2 = Object.prototype.toString.call(t2).slice(8, -1);
|
|
2848
|
+
return r2 === "Object" && t2.constructor && (r2 = t2.constructor.name), r2 === "Map" || r2 === "Set" ? Array.from(t2) : r2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r2) ? l(t2, e2) : void 0;
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
function l(t2, e2) {
|
|
2852
|
+
(e2 == null || e2 > t2.length) && (e2 = t2.length);
|
|
2853
|
+
for (var r2 = 0, o2 = new Array(e2); r2 < e2; r2++)
|
|
2854
|
+
o2[r2] = t2[r2];
|
|
2855
|
+
return o2;
|
|
2856
|
+
}
|
|
2857
|
+
function u(t2) {
|
|
2858
|
+
if (typeof Symbol == "undefined" || t2[Symbol.iterator] == null) {
|
|
2859
|
+
if (Array.isArray(t2) || (t2 = a(t2))) {
|
|
2860
|
+
var e2 = 0, r2 = function() {
|
|
2861
|
+
};
|
|
2862
|
+
return { s: r2, n: function() {
|
|
2863
|
+
return e2 >= t2.length ? { done: true } : { done: false, value: t2[e2++] };
|
|
2864
|
+
}, e: function(t3) {
|
|
2865
|
+
throw t3;
|
|
2866
|
+
}, f: r2 };
|
|
2867
|
+
}
|
|
2868
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2869
|
+
}
|
|
2870
|
+
var o2, n2, s2 = true, i3 = false;
|
|
2871
|
+
return { s: function() {
|
|
2872
|
+
o2 = t2[Symbol.iterator]();
|
|
2873
|
+
}, n: function() {
|
|
2874
|
+
var t3 = o2.next();
|
|
2875
|
+
return s2 = t3.done, t3;
|
|
2876
|
+
}, e: function(t3) {
|
|
2877
|
+
i3 = true, n2 = t3;
|
|
2878
|
+
}, f: function() {
|
|
2879
|
+
try {
|
|
2880
|
+
s2 || o2.return == null || o2.return();
|
|
2881
|
+
} finally {
|
|
2882
|
+
if (i3)
|
|
2883
|
+
throw n2;
|
|
2884
|
+
}
|
|
2885
|
+
} };
|
|
2886
|
+
}
|
|
2887
|
+
var c = {};
|
|
2888
|
+
c[c.Fatal = 0] = "Fatal", c[c.Error = 0] = "Error", c[c.Warn = 1] = "Warn", c[c.Log = 2] = "Log", c[c.Info = 3] = "Info", c[c.Success = 3] = "Success", c[c.Debug = 4] = "Debug", c[c.Trace = 5] = "Trace", c[c.Silent = -1 / 0] = "Silent", c[c.Verbose = 1 / 0] = "Verbose";
|
|
2889
|
+
var f = { silent: { level: -1 }, fatal: { level: c.Fatal }, error: { level: c.Error }, warn: { level: c.Warn }, log: { level: c.Log }, info: { level: c.Info }, success: { level: c.Success }, debug: { level: c.Debug }, trace: { level: c.Trace }, verbose: { level: c.Trace }, ready: { level: c.Info }, start: { level: c.Info } };
|
|
2890
|
+
function h2(t2) {
|
|
2891
|
+
return e2 = t2, Object.prototype.toString.call(e2) === "[object Object]" && (!(!t2.message && !t2.args) && !t2.stack);
|
|
2892
|
+
var e2;
|
|
2893
|
+
}
|
|
2894
|
+
var p = false, y = [], d = function() {
|
|
2895
|
+
function e2() {
|
|
2896
|
+
var r2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2897
|
+
for (var o2 in t(this, e2), this._reporters = r2.reporters || [], this._types = r2.types || f, this.level = r2.level !== void 0 ? r2.level : 3, this._defaults = r2.defaults || {}, this._async = r2.async !== void 0 ? r2.async : void 0, this._stdout = r2.stdout, this._stderr = r2.stderr, this._mockFn = r2.mockFn, this._throttle = r2.throttle || 1e3, this._throttleMin = r2.throttleMin || 5, this._types) {
|
|
2898
|
+
var n2 = s(s({ type: o2 }, this._types[o2]), this._defaults);
|
|
2899
|
+
this[o2] = this._wrapLogFn(n2), this[o2].raw = this._wrapLogFn(n2, true);
|
|
2900
|
+
}
|
|
2901
|
+
this._mockFn && this.mockTypes(), this._lastLogSerialized = void 0, this._lastLog = void 0, this._lastLogTime = void 0, this._lastLogCount = 0, this._throttleTimeout = void 0;
|
|
2902
|
+
}
|
|
2903
|
+
return r(e2, [{ key: "create", value: function(t2) {
|
|
2904
|
+
return new e2(Object.assign({ reporters: this._reporters, level: this.level, types: this._types, defaults: this._defaults, stdout: this._stdout, stderr: this._stderr, mockFn: this._mockFn }, t2));
|
|
2905
|
+
} }, { key: "withDefaults", value: function(t2) {
|
|
2906
|
+
return this.create({ defaults: Object.assign({}, this._defaults, t2) });
|
|
2907
|
+
} }, { key: "withTag", value: function(t2) {
|
|
2908
|
+
return this.withDefaults({ tag: this._defaults.tag ? this._defaults.tag + ":" + t2 : t2 });
|
|
2909
|
+
} }, { key: "addReporter", value: function(t2) {
|
|
2910
|
+
return this._reporters.push(t2), this;
|
|
2911
|
+
} }, { key: "removeReporter", value: function(t2) {
|
|
2912
|
+
if (t2) {
|
|
2913
|
+
var e3 = this._reporters.indexOf(t2);
|
|
2914
|
+
if (e3 >= 0)
|
|
2915
|
+
return this._reporters.splice(e3, 1);
|
|
2916
|
+
} else
|
|
2917
|
+
this._reporters.splice(0);
|
|
2918
|
+
return this;
|
|
2919
|
+
} }, { key: "setReporters", value: function(t2) {
|
|
2920
|
+
return this._reporters = Array.isArray(t2) ? t2 : [t2], this;
|
|
2921
|
+
} }, { key: "wrapAll", value: function() {
|
|
2922
|
+
this.wrapConsole(), this.wrapStd();
|
|
2923
|
+
} }, { key: "restoreAll", value: function() {
|
|
2924
|
+
this.restoreConsole(), this.restoreStd();
|
|
2925
|
+
} }, { key: "wrapConsole", value: function() {
|
|
2926
|
+
for (var t2 in this._types)
|
|
2927
|
+
console["__" + t2] || (console["__" + t2] = console[t2]), console[t2] = this[t2].raw;
|
|
2928
|
+
} }, { key: "restoreConsole", value: function() {
|
|
2929
|
+
for (var t2 in this._types)
|
|
2930
|
+
console["__" + t2] && (console[t2] = console["__" + t2], delete console["__" + t2]);
|
|
2931
|
+
} }, { key: "wrapStd", value: function() {
|
|
2932
|
+
this._wrapStream(this.stdout, "log"), this._wrapStream(this.stderr, "log");
|
|
2933
|
+
} }, { key: "_wrapStream", value: function(t2, e3) {
|
|
2934
|
+
var r2 = this;
|
|
2935
|
+
t2 && (t2.__write || (t2.__write = t2.write), t2.write = function(t3) {
|
|
2936
|
+
r2[e3].raw(String(t3).trim());
|
|
2937
|
+
});
|
|
2938
|
+
} }, { key: "restoreStd", value: function() {
|
|
2939
|
+
this._restoreStream(this.stdout), this._restoreStream(this.stderr);
|
|
2940
|
+
} }, { key: "_restoreStream", value: function(t2) {
|
|
2941
|
+
t2 && t2.__write && (t2.write = t2.__write, delete t2.__write);
|
|
2942
|
+
} }, { key: "pauseLogs", value: function() {
|
|
2943
|
+
p = true;
|
|
2944
|
+
} }, { key: "resumeLogs", value: function() {
|
|
2945
|
+
p = false;
|
|
2946
|
+
var t2, e3 = u(y.splice(0));
|
|
2947
|
+
try {
|
|
2948
|
+
for (e3.s(); !(t2 = e3.n()).done; ) {
|
|
2949
|
+
var r2 = t2.value;
|
|
2950
|
+
r2[0]._logFn(r2[1], r2[2]);
|
|
2951
|
+
}
|
|
2952
|
+
} catch (t3) {
|
|
2953
|
+
e3.e(t3);
|
|
2954
|
+
} finally {
|
|
2955
|
+
e3.f();
|
|
2956
|
+
}
|
|
2957
|
+
} }, { key: "mockTypes", value: function(t2) {
|
|
2958
|
+
if (this._mockFn = t2 || this._mockFn, typeof this._mockFn == "function")
|
|
2959
|
+
for (var e3 in this._types)
|
|
2960
|
+
this[e3] = this._mockFn(e3, this._types[e3]) || this[e3], this[e3].raw = this[e3];
|
|
2961
|
+
} }, { key: "_wrapLogFn", value: function(t2, e3) {
|
|
2962
|
+
var r2 = this;
|
|
2963
|
+
return function() {
|
|
2964
|
+
for (var o2 = arguments.length, n2 = new Array(o2), s2 = 0; s2 < o2; s2++)
|
|
2965
|
+
n2[s2] = arguments[s2];
|
|
2966
|
+
if (!p)
|
|
2967
|
+
return r2._logFn(t2, n2, e3);
|
|
2968
|
+
y.push([r2, t2, n2, e3]);
|
|
2969
|
+
};
|
|
2970
|
+
} }, { key: "_logFn", value: function(t2, e3, r2) {
|
|
2971
|
+
var o2 = this;
|
|
2972
|
+
if (t2.level > this.level)
|
|
2973
|
+
return !!this._async && Promise.resolve(false);
|
|
2974
|
+
var n2 = Object.assign({ date: new Date(), args: [] }, t2);
|
|
2975
|
+
!r2 && e3.length === 1 && h2(e3[0]) ? Object.assign(n2, e3[0]) : n2.args = Array.from(e3), n2.message && (n2.args.unshift(n2.message), delete n2.message), n2.additional && (Array.isArray(n2.additional) || (n2.additional = n2.additional.split("\n")), n2.args.push("\n" + n2.additional.join("\n")), delete n2.additional), n2.type = typeof n2.type == "string" ? n2.type.toLowerCase() : "", n2.tag = typeof n2.tag == "string" ? n2.tag.toLowerCase() : "";
|
|
2976
|
+
var a2 = function() {
|
|
2977
|
+
var t3 = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], e4 = o2._lastLogCount - o2._throttleMin;
|
|
2978
|
+
if (o2._lastLog && e4 > 0) {
|
|
2979
|
+
var r3 = i2(o2._lastLog.args);
|
|
2980
|
+
e4 > 1 && r3.push("(repeated ".concat(e4, " times)")), o2._log(s(s({}, o2._lastLog), {}, { args: r3 })), o2._lastLogCount = 1;
|
|
2981
|
+
}
|
|
2982
|
+
if (t3) {
|
|
2983
|
+
if (o2._lastLog = n2, o2._async)
|
|
2984
|
+
return o2._logAsync(n2);
|
|
2985
|
+
o2._log(n2);
|
|
2986
|
+
}
|
|
2987
|
+
};
|
|
2988
|
+
clearTimeout(this._throttleTimeout);
|
|
2989
|
+
var l2 = this._lastLogTime ? n2.date - this._lastLogTime : 0;
|
|
2990
|
+
if (this._lastLogTime = n2.date, l2 < this._throttle)
|
|
2991
|
+
try {
|
|
2992
|
+
var u2 = JSON.stringify([n2.type, n2.tag, n2.args]), c2 = this._lastLogSerialized === u2;
|
|
2993
|
+
if (this._lastLogSerialized = u2, c2 && (this._lastLogCount++, this._lastLogCount > this._throttleMin))
|
|
2994
|
+
return void (this._throttleTimeout = setTimeout(a2, this._throttle));
|
|
2995
|
+
} catch (t3) {
|
|
2996
|
+
}
|
|
2997
|
+
a2(true);
|
|
2998
|
+
} }, { key: "_log", value: function(t2) {
|
|
2999
|
+
var e3, r2 = u(this._reporters);
|
|
3000
|
+
try {
|
|
3001
|
+
for (r2.s(); !(e3 = r2.n()).done; ) {
|
|
3002
|
+
e3.value.log(t2, { async: false, stdout: this.stdout, stderr: this.stderr });
|
|
3003
|
+
}
|
|
3004
|
+
} catch (t3) {
|
|
3005
|
+
r2.e(t3);
|
|
3006
|
+
} finally {
|
|
3007
|
+
r2.f();
|
|
3008
|
+
}
|
|
3009
|
+
} }, { key: "_logAsync", value: function(t2) {
|
|
3010
|
+
var e3 = this;
|
|
3011
|
+
return Promise.all(this._reporters.map(function(r2) {
|
|
3012
|
+
return r2.log(t2, { async: true, stdout: e3.stdout, stderr: e3.stderr });
|
|
3013
|
+
}));
|
|
3014
|
+
} }, { key: "stdout", get: function() {
|
|
3015
|
+
return this._stdout || console._stdout;
|
|
3016
|
+
} }, { key: "stderr", get: function() {
|
|
3017
|
+
return this._stderr || console._stderr;
|
|
3018
|
+
} }]), e2;
|
|
3019
|
+
}();
|
|
3020
|
+
d.prototype.add = d.prototype.addReporter, d.prototype.remove = d.prototype.removeReporter, d.prototype.clear = d.prototype.removeReporter, d.prototype.withScope = d.prototype.withTag, d.prototype.mock = d.prototype.mockTypes, d.prototype.pause = d.prototype.pauseLogs, d.prototype.resume = d.prototype.resumeLogs;
|
|
3021
|
+
var v, g = function() {
|
|
3022
|
+
function e2(r2) {
|
|
3023
|
+
t(this, e2), this.options = Object.assign({}, r2), this.defaultColor = "#7f8c8d", this.levelColorMap = { 0: "#c0392b", 1: "#f39c12", 3: "#00BCD4" }, this.typeColorMap = { success: "#2ecc71" };
|
|
3024
|
+
}
|
|
3025
|
+
return r(e2, [{ key: "log", value: function(t2) {
|
|
3026
|
+
var e3 = t2.level < 1 ? console.__error || console.error : t2.level === 1 && console.warn ? console.__warn || console.warn : console.__log || console.log, r2 = t2.type !== "log" ? t2.type : "", o2 = t2.tag ? t2.tag : "", n2 = this.typeColorMap[t2.type] || this.levelColorMap[t2.level] || this.defaultColor, s2 = "\n background: ".concat(n2, ";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "), a2 = "%c".concat([o2, r2].filter(Boolean).join(":"));
|
|
3027
|
+
typeof t2.args[0] == "string" ? e3.apply(void 0, ["".concat(a2, "%c ").concat(t2.args[0]), s2, ""].concat(i2(t2.args.slice(1)))) : e3.apply(void 0, [a2, s2].concat(i2(t2.args)));
|
|
3028
|
+
} }]), e2;
|
|
3029
|
+
}();
|
|
3030
|
+
return typeof window != "undefined" && window.consola || ((v = new d({ reporters: [new g()] })).Consola = d, v.LogLevel = c, v.BrowserReporter = g, v);
|
|
3031
|
+
});
|
|
3032
|
+
})(consola_browser);
|
|
3033
|
+
var consola = consola_browser.exports;
|
|
3034
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2790
3035
|
name: "PrimeInputNumber",
|
|
2791
3036
|
props: {
|
|
2792
3037
|
context: Object
|
|
@@ -2795,24 +3040,65 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2795
3040
|
const props2 = __props;
|
|
2796
3041
|
const context = props2.context;
|
|
2797
3042
|
function handleInput(e) {
|
|
2798
|
-
|
|
3043
|
+
consola.error(e);
|
|
3044
|
+
context == null ? void 0 : context.node.input(e.value);
|
|
2799
3045
|
}
|
|
2800
3046
|
return (_ctx, _cache) => {
|
|
2801
|
-
var _a;
|
|
3047
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
2802
3048
|
const _component_InputNumber = resolveComponent("InputNumber");
|
|
2803
3049
|
return openBlock(), createBlock(_component_InputNumber, {
|
|
2804
3050
|
id: unref(context).id,
|
|
2805
3051
|
modelValue: unref(context)._value,
|
|
2806
3052
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context)._value = $event),
|
|
2807
|
-
rows: (_a = unref(context).rows) != null ? _a : 3,
|
|
2808
3053
|
placeholder: unref(context).attrs.placeholder,
|
|
2809
3054
|
class: normalizeClass(unref(context).attrs.class),
|
|
3055
|
+
"use-grouping": (_a = unref(context).attrs.useGrouping) != null ? _a : true,
|
|
3056
|
+
"min-fraction-digits": (_b = unref(context).attrs.minFractionDigits) != null ? _b : void 0,
|
|
3057
|
+
"max-fraction-digits": (_c = unref(context).attrs.maxFractionDigits) != null ? _c : void 0,
|
|
3058
|
+
locale: (_d = unref(context).attrs.locale) != null ? _d : void 0,
|
|
3059
|
+
mode: (_e = unref(context).attrs.mode) != null ? _e : void 0,
|
|
3060
|
+
currency: (_f = unref(context).attrs.currency) != null ? _f : void 0,
|
|
3061
|
+
prefix: (_g = unref(context).attrs.prefix) != null ? _g : void 0,
|
|
3062
|
+
suffix: (_h = unref(context).attrs.suffix) != null ? _h : void 0,
|
|
3063
|
+
"show-buttons": (_i = unref(context).attrs.showButtons) != null ? _i : void 0,
|
|
3064
|
+
"button-layout": (_j = unref(context).attrs.buttonLayout) != null ? _j : "stacked",
|
|
3065
|
+
step: (_k = unref(context).attrs.step) != null ? _k : void 0,
|
|
2810
3066
|
onInput: handleInput
|
|
2811
|
-
}, null, 8, ["id", "modelValue", "
|
|
3067
|
+
}, null, 8, ["id", "modelValue", "placeholder", "class", "use-grouping", "min-fraction-digits", "max-fraction-digits", "locale", "mode", "currency", "prefix", "suffix", "show-buttons", "button-layout", "step"]);
|
|
2812
3068
|
};
|
|
2813
3069
|
}
|
|
2814
3070
|
});
|
|
2815
|
-
const _sfc_main$
|
|
3071
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
3072
|
+
name: "PrimeInputMask",
|
|
3073
|
+
props: {
|
|
3074
|
+
context: Object
|
|
3075
|
+
},
|
|
3076
|
+
setup(__props) {
|
|
3077
|
+
const props2 = __props;
|
|
3078
|
+
const context = props2.context;
|
|
3079
|
+
function handleInput(e) {
|
|
3080
|
+
var _a;
|
|
3081
|
+
context == null ? void 0 : context.node.input((_a = props2.context) == null ? void 0 : _a._value);
|
|
3082
|
+
}
|
|
3083
|
+
return (_ctx, _cache) => {
|
|
3084
|
+
var _a, _b, _c, _d;
|
|
3085
|
+
const _component_InputMask = resolveComponent("InputMask");
|
|
3086
|
+
return openBlock(), createBlock(_component_InputMask, {
|
|
3087
|
+
id: unref(context).id,
|
|
3088
|
+
modelValue: unref(context)._value,
|
|
3089
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context)._value = $event),
|
|
3090
|
+
class: normalizeClass(unref(context).attrs.class),
|
|
3091
|
+
placeholder: unref(context).attrs.placeholder,
|
|
3092
|
+
mask: (_a = unref(context).attrs.mask) != null ? _a : void 0,
|
|
3093
|
+
"slot-char": (_b = unref(context).attrs.slotChar) != null ? _b : "_",
|
|
3094
|
+
"auto-clear": (_c = unref(context).attrs.autoClear) != null ? _c : true,
|
|
3095
|
+
unmask: (_d = unref(context).attrs.unmask) != null ? _d : false,
|
|
3096
|
+
onBlur: handleInput
|
|
3097
|
+
}, null, 8, ["id", "modelValue", "class", "placeholder", "mask", "slot-char", "auto-clear", "unmask"]);
|
|
3098
|
+
};
|
|
3099
|
+
}
|
|
3100
|
+
});
|
|
3101
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2816
3102
|
name: "PrimePassword",
|
|
2817
3103
|
props: {
|
|
2818
3104
|
context: Object
|
|
@@ -2830,16 +3116,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2830
3116
|
id: unref(context).id,
|
|
2831
3117
|
modelValue: unref(context)._value,
|
|
2832
3118
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context)._value = $event),
|
|
3119
|
+
class: normalizeClass(unref(context).attrs.class),
|
|
2833
3120
|
placeholder: unref(context).attrs.placeholder,
|
|
2834
3121
|
feedback: (_b = (_a = unref(context)) == null ? void 0 : _a.feedback) != null ? _b : true,
|
|
2835
3122
|
"toggle-mask": (_d = (_c = unref(context)) == null ? void 0 : _c.toggleMask) != null ? _d : false,
|
|
2836
|
-
class: normalizeClass(unref(context).attrs.class),
|
|
2837
3123
|
onInput: handleInput
|
|
2838
|
-
}, null, 8, ["id", "modelValue", "placeholder", "feedback", "toggle-mask"
|
|
3124
|
+
}, null, 8, ["id", "modelValue", "class", "placeholder", "feedback", "toggle-mask"]);
|
|
2839
3125
|
};
|
|
2840
3126
|
}
|
|
2841
3127
|
});
|
|
2842
|
-
const _sfc_main$
|
|
3128
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2843
3129
|
name: "PrimeInputTextArea",
|
|
2844
3130
|
props: {
|
|
2845
3131
|
context: Object
|
|
@@ -2857,11 +3143,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2857
3143
|
id: unref(context).id,
|
|
2858
3144
|
modelValue: unref(context)._value,
|
|
2859
3145
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context)._value = $event),
|
|
2860
|
-
rows: (_a = unref(context).rows) != null ? _a : 3,
|
|
2861
|
-
placeholder: unref(context).attrs.placeholder,
|
|
2862
3146
|
class: normalizeClass(unref(context).attrs.class),
|
|
3147
|
+
placeholder: unref(context).attrs.placeholder,
|
|
3148
|
+
rows: (_a = unref(context).rows) != null ? _a : 3,
|
|
2863
3149
|
onInput: handleInput
|
|
2864
|
-
}, null, 8, ["id", "modelValue", "
|
|
3150
|
+
}, null, 8, ["id", "modelValue", "class", "placeholder", "rows"]);
|
|
2865
3151
|
};
|
|
2866
3152
|
}
|
|
2867
3153
|
});
|
|
@@ -2873,7 +3159,7 @@ const _hoisted_2$1 = {
|
|
|
2873
3159
|
key: 1,
|
|
2874
3160
|
class: "formkit-prime-right"
|
|
2875
3161
|
};
|
|
2876
|
-
const _sfc_main$
|
|
3162
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2877
3163
|
name: "PrimeCheckBox",
|
|
2878
3164
|
props: {
|
|
2879
3165
|
context: Object
|
|
@@ -2892,11 +3178,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2892
3178
|
id: unref(context).id,
|
|
2893
3179
|
modelValue: unref(context)._value,
|
|
2894
3180
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context)._value = $event),
|
|
3181
|
+
class: normalizeClass(unref(context).attrs.class),
|
|
2895
3182
|
placeholder: unref(context).attrs.placeholder,
|
|
2896
3183
|
binary: true,
|
|
2897
|
-
class: normalizeClass(unref(context).attrs.class),
|
|
2898
3184
|
onInput: handleInput
|
|
2899
|
-
}, null, 8, ["id", "modelValue", "
|
|
3185
|
+
}, null, 8, ["id", "modelValue", "class", "placeholder"]),
|
|
2900
3186
|
unref(context).attrs.labelRight ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(unref(context).attrs.labelRight), 1)) : createCommentVNode("", true)
|
|
2901
3187
|
], 64);
|
|
2902
3188
|
};
|
|
@@ -2910,7 +3196,7 @@ const _hoisted_2 = {
|
|
|
2910
3196
|
key: 1,
|
|
2911
3197
|
class: "formkit-prime-right"
|
|
2912
3198
|
};
|
|
2913
|
-
const _sfc_main$
|
|
3199
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2914
3200
|
name: "PrimeInputSwitch",
|
|
2915
3201
|
props: {
|
|
2916
3202
|
context: Object
|
|
@@ -2931,17 +3217,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2931
3217
|
id: unref(context).id,
|
|
2932
3218
|
modelValue: unref(context)._value,
|
|
2933
3219
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context)._value = $event),
|
|
3220
|
+
class: normalizeClass(unref(context).attrs.class),
|
|
2934
3221
|
"true-value": (_a = unref(context).attrs.trueValue) != null ? _a : void 0,
|
|
2935
3222
|
"false-value": (_b = unref(context).attrs.falseValue) != null ? _b : void 0,
|
|
2936
|
-
class: normalizeClass(unref(context).attrs.class),
|
|
2937
3223
|
onInput: handleInput
|
|
2938
|
-
}, null, 8, ["id", "modelValue", "true-value", "false-value"
|
|
3224
|
+
}, null, 8, ["id", "modelValue", "class", "true-value", "false-value"]),
|
|
2939
3225
|
unref(context).attrs.labelRight ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref(context).attrs.labelRight), 1)) : createCommentVNode("", true)
|
|
2940
3226
|
], 64);
|
|
2941
3227
|
};
|
|
2942
3228
|
}
|
|
2943
3229
|
});
|
|
2944
|
-
const _sfc_main$
|
|
3230
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2945
3231
|
name: "PrimeEditor",
|
|
2946
3232
|
props: {
|
|
2947
3233
|
context: Object
|
|
@@ -2964,7 +3250,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2964
3250
|
};
|
|
2965
3251
|
}
|
|
2966
3252
|
});
|
|
2967
|
-
const _sfc_main$
|
|
3253
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2968
3254
|
name: "PrimeDropdown",
|
|
2969
3255
|
props: {
|
|
2970
3256
|
context: Object
|
|
@@ -2982,19 +3268,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2982
3268
|
id: unref(context).id,
|
|
2983
3269
|
modelValue: unref(context)._value,
|
|
2984
3270
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context)._value = $event),
|
|
3271
|
+
class: normalizeClass(unref(context).attrs.class),
|
|
2985
3272
|
options: (_b = (_a = unref(context)) == null ? void 0 : _a.attrs) == null ? void 0 : _b.options,
|
|
2986
3273
|
"option-label": "label",
|
|
2987
3274
|
"option-value": "value",
|
|
2988
3275
|
placeholder: unref(context).attrs.placeholder,
|
|
2989
3276
|
filter: (_c = unref(context).attrs.filter) != null ? _c : false,
|
|
2990
3277
|
"show-clear": (_d = unref(context).attrs.showClear) != null ? _d : false,
|
|
2991
|
-
class: normalizeClass(unref(context).attrs.class),
|
|
2992
3278
|
onChange: handleInput
|
|
2993
|
-
}, null, 8, ["id", "modelValue", "options", "placeholder", "filter", "show-clear"
|
|
3279
|
+
}, null, 8, ["id", "modelValue", "class", "options", "placeholder", "filter", "show-clear"]);
|
|
2994
3280
|
};
|
|
2995
3281
|
}
|
|
2996
3282
|
});
|
|
2997
|
-
const _sfc_main$
|
|
3283
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2998
3284
|
name: "PrimeMultiSelect",
|
|
2999
3285
|
props: {
|
|
3000
3286
|
context: Object
|
|
@@ -3013,18 +3299,18 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3013
3299
|
id: unref(context).id,
|
|
3014
3300
|
modelValue: unref(context)._value,
|
|
3015
3301
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context)._value = $event),
|
|
3302
|
+
class: normalizeClass(unref(context).attrs.class),
|
|
3016
3303
|
options: (_b = (_a = unref(context)) == null ? void 0 : _a.attrs) == null ? void 0 : _b.options,
|
|
3017
3304
|
"option-label": "label",
|
|
3018
3305
|
"option-value": "value",
|
|
3019
3306
|
placeholder: unref(context).attrs.placeholder,
|
|
3020
3307
|
filter: (_c = unref(context).attrs.filter) != null ? _c : false,
|
|
3021
|
-
class: normalizeClass(unref(context).attrs.class),
|
|
3022
3308
|
onChange: handleInput
|
|
3023
|
-
}, null, 8, ["id", "modelValue", "
|
|
3309
|
+
}, null, 8, ["id", "modelValue", "class", "options", "placeholder", "filter"]);
|
|
3024
3310
|
};
|
|
3025
3311
|
}
|
|
3026
3312
|
});
|
|
3027
|
-
const _sfc_main$
|
|
3313
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
3028
3314
|
name: "PrimeCalendar",
|
|
3029
3315
|
props: {
|
|
3030
3316
|
context: Object
|
|
@@ -3054,7 +3340,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3054
3340
|
};
|
|
3055
3341
|
}
|
|
3056
3342
|
});
|
|
3057
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3343
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
3058
3344
|
name: "PrimeSlider",
|
|
3059
3345
|
props: {
|
|
3060
3346
|
context: Object
|
|
@@ -3082,42 +3368,77 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3082
3368
|
};
|
|
3083
3369
|
}
|
|
3084
3370
|
});
|
|
3085
|
-
const
|
|
3371
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3372
|
+
name: "PrimeRating",
|
|
3373
|
+
props: {
|
|
3374
|
+
context: Object
|
|
3375
|
+
},
|
|
3376
|
+
setup(__props) {
|
|
3377
|
+
const props2 = __props;
|
|
3378
|
+
const context = props2.context;
|
|
3379
|
+
function handleInput(e) {
|
|
3380
|
+
var _a;
|
|
3381
|
+
context == null ? void 0 : context.node.input((_a = props2.context) == null ? void 0 : _a._value);
|
|
3382
|
+
}
|
|
3383
|
+
return (_ctx, _cache) => {
|
|
3384
|
+
var _a, _b, _c, _d;
|
|
3385
|
+
const _component_Rating = resolveComponent("Rating");
|
|
3386
|
+
return openBlock(), createBlock(_component_Rating, {
|
|
3387
|
+
id: unref(context).id,
|
|
3388
|
+
modelValue: unref(context)._value,
|
|
3389
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context)._value = $event),
|
|
3390
|
+
disabled: (_a = unref(context).attrs.disabled) != null ? _a : false,
|
|
3391
|
+
readonly: (_b = unref(context).attrs.readonly) != null ? _b : false,
|
|
3392
|
+
stars: (_c = unref(context).attrs.stars) != null ? _c : 5,
|
|
3393
|
+
cancel: (_d = unref(context).attrs.cancel) != null ? _d : false,
|
|
3394
|
+
onChange: handleInput
|
|
3395
|
+
}, null, 8, ["id", "modelValue", "disabled", "readonly", "stars", "cancel"]);
|
|
3396
|
+
};
|
|
3397
|
+
}
|
|
3398
|
+
});
|
|
3399
|
+
const primeInputTextDefinition = createInput(_sfc_main$c, {
|
|
3086
3400
|
props: ["iconRight", "iconLeft"]
|
|
3087
3401
|
});
|
|
3088
|
-
const primeInputNumberDefinition = createInput(_sfc_main$
|
|
3402
|
+
const primeInputNumberDefinition = createInput(_sfc_main$b, {
|
|
3089
3403
|
props: ["iconRight", "iconLeft"]
|
|
3090
3404
|
});
|
|
3091
|
-
const
|
|
3405
|
+
const primeInputMaskDefinition = createInput(_sfc_main$a, {
|
|
3406
|
+
props: []
|
|
3407
|
+
});
|
|
3408
|
+
const primePasswordDefinition = createInput(_sfc_main$9, {
|
|
3092
3409
|
props: ["feedback", "toggleMask"]
|
|
3093
3410
|
});
|
|
3094
|
-
const primeInputTextAreaDefinition = createInput(_sfc_main$
|
|
3411
|
+
const primeInputTextAreaDefinition = createInput(_sfc_main$8, {
|
|
3095
3412
|
props: ["rows"]
|
|
3096
3413
|
});
|
|
3097
|
-
const primeCheckBoxDefinition = createInput(_sfc_main$
|
|
3414
|
+
const primeCheckBoxDefinition = createInput(_sfc_main$7, {
|
|
3415
|
+
props: []
|
|
3416
|
+
});
|
|
3417
|
+
const primeInputSwitchDefinition = createInput(_sfc_main$6, {
|
|
3098
3418
|
props: []
|
|
3099
3419
|
});
|
|
3100
|
-
const
|
|
3420
|
+
const primeEditorDefinition = createInput(_sfc_main$5, {
|
|
3101
3421
|
props: []
|
|
3102
3422
|
});
|
|
3103
|
-
const
|
|
3423
|
+
const primeDropdownDefinition = createInput(_sfc_main$4, {
|
|
3104
3424
|
props: []
|
|
3105
3425
|
});
|
|
3106
|
-
const
|
|
3426
|
+
const primeMultiSelectDefinition = createInput(_sfc_main$3, {
|
|
3107
3427
|
props: []
|
|
3108
3428
|
});
|
|
3109
|
-
const
|
|
3429
|
+
const primeCalendarDefinition = createInput(_sfc_main$2, {
|
|
3110
3430
|
props: []
|
|
3111
3431
|
});
|
|
3112
|
-
const
|
|
3432
|
+
const primeSliderDefinition = createInput(_sfc_main$1, {
|
|
3113
3433
|
props: []
|
|
3114
3434
|
});
|
|
3115
|
-
const
|
|
3435
|
+
const primeRatingDefinition = createInput(_sfc_main, {
|
|
3116
3436
|
props: []
|
|
3117
3437
|
});
|
|
3118
3438
|
const primeInputs = {
|
|
3119
3439
|
primeInputText: primeInputTextDefinition,
|
|
3120
3440
|
primeInputNumber: primeInputNumberDefinition,
|
|
3441
|
+
primeInputMask: primeInputMaskDefinition,
|
|
3121
3442
|
primePassword: primePasswordDefinition,
|
|
3122
3443
|
primeCheckBox: primeCheckBoxDefinition,
|
|
3123
3444
|
primeInputSwitch: primeInputSwitchDefinition,
|
|
@@ -3128,4 +3449,4 @@ const primeInputs = {
|
|
|
3128
3449
|
primeCalendar: primeCalendarDefinition,
|
|
3129
3450
|
primeSlider: primeSliderDefinition
|
|
3130
3451
|
};
|
|
3131
|
-
export { primeCalendarDefinition, primeCheckBoxDefinition, primeDropdownDefinition, primeEditorDefinition, primeInputNumberDefinition, primeInputSwitchDefinition, primeInputTextAreaDefinition, primeInputTextDefinition, primeInputs, primeMultiSelectDefinition, primePasswordDefinition, primeSliderDefinition };
|
|
3452
|
+
export { primeCalendarDefinition, primeCheckBoxDefinition, primeDropdownDefinition, primeEditorDefinition, primeInputMaskDefinition, primeInputNumberDefinition, primeInputSwitchDefinition, primeInputTextAreaDefinition, primeInputTextDefinition, primeInputs, primeMultiSelectDefinition, primePasswordDefinition, primeRatingDefinition, primeSliderDefinition };
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
(function(k,o){typeof exports=="object"&&typeof module!="undefined"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(k=typeof globalThis!="undefined"?globalThis:k||self,o(k["formkit-primevue"]={},k.Vue))})(this,function(k,o){"use strict";var Ar=Object.defineProperty,Ir=Object.defineProperties;var jr=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Ct=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable;var wt=(k,o,R)=>o in k?Ar(k,o,{enumerable:!0,configurable:!0,writable:!0,value:R}):k[o]=R,T=(k,o)=>{for(var R in o||(o={}))Ct.call(o,R)&&wt(k,R,o[R]);if(ce)for(var R of ce(o))kt.call(o,R)&&wt(k,R,o[R]);return k},pe=(k,o)=>Ir(k,jr(o));var Ie=(k,o)=>{var R={};for(var F in k)Ct.call(k,F)&&o.indexOf(F)<0&&(R[F]=k[F]);if(k!=null&&ce)for(var F of ce(k))o.indexOf(F)<0&&kt.call(k,F)&&(R[F]=k[F]);return R};function R(){return Math.random().toString(36).substring(2,15)}function F(e,n){const t=e instanceof Set?e:new Set(e);return n&&n.forEach(r=>t.add(r)),[...t]}function j(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function de(e,n,t=!0,r=["__key"]){if(e===n)return!0;if(typeof n=="object"&&typeof e=="object"){if(e instanceof Map||e instanceof Set||e instanceof Date||e===null||n===null||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i of r)if((i in e||i in n)&&e[i]!==n[i])return!1;for(const i in e)if(!(i in n)||e[i]!==n[i]&&!t||t&&!de(e[i],n[i],t,r))return!1;return!0}return!1}function me(e){return Object.prototype.toString.call(e)==="[object Object]"}function ye(e){return me(e)||Array.isArray(e)}function ee(e){if(me(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(me(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)}function te(e,n,t=!1,r=!1){if(n===null)return null;const i={};if(typeof n=="string")return n;for(const s in e)if(j(n,s)&&(n[s]!==void 0||!r)){if(t&&Array.isArray(e[s])&&Array.isArray(n[s])){i[s]=e[s].concat(n[s]);continue}if(n[s]===void 0)continue;ee(e[s])&&ee(n[s])?i[s]=te(e[s],n[s],t,r):i[s]=n[s]}else i[s]=e[s];for(const s in n)!j(i,s)&&n[s]!==void 0&&(i[s]=n[s]);return i}function St(e){if(e[0]!=='"'&&e[0]!=="'"||e[0]!==e[e.length-1])return!1;const n=e[0];for(let t=1;t<e.length;t++)if(e[t]===n&&(t===1||e[t-1]!=="\\")&&t!==e.length-1)return!1;return!0}function vt(e){if(!e.length)return"";let n="",t="";for(let r=0;r<e.length;r++){const i=e.charAt(r);(i!=="\\"||t==="\\")&&(n+=i),t=i}return n}function H(...e){return e.reduce((n,t)=>{const _=t,{value:r,name:i,modelValue:s,config:l,plugins:f}=_,y=Ie(_,["value","name","modelValue","config","plugins"]);return Object.assign(n,y)},{})}function Ot(e){const n=[];let t="",r=0,i="",s="";for(let l=0;l<e.length;l++){const f=e.charAt(l);f===i&&s!=="\\"?i="":(f==="'"||f==='"')&&!i&&s!=="\\"?i=f:f==="("&&!i?r++:f===")"&&!i&&r--,f===","&&!i&&r===0?(n.push(t),t=""):(f!==" "||i)&&(t+=f),s=f}return t&&n.push(t),n}function je(e,n){const t={},r=n.filter(s=>s instanceof RegExp),i=new Set(n);for(const s in e)!i.has(s)&&!r.some(l=>l.test(s))&&(t[s]=e[s]);return t}function Ne(e,n){const t={},r=n.filter(i=>i instanceof RegExp);return n.forEach(i=>{i instanceof RegExp||(t[i]=e[i])}),Object.keys(e).forEach(i=>{r.some(s=>s.test(i))&&(t[i]=e[i])}),t}function ne(e){return e.replace(/-([a-z0-9])/gi,(n,t)=>t.toUpperCase())}function Re(e){return e.replace(/([a-z0-9])([A-Z])/g,(n,t,r)=>t+"-"+r.toLowerCase()).replace(" ","-").toLowerCase()}function J(e,n=["__key","__init"]){if(e===null||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||typeof File=="function"&&e instanceof File)return e;let t;Array.isArray(e)?t=e.map(r=>typeof r=="object"?J(r,n):r):t=Object.keys(e).reduce((r,i)=>(r[i]=typeof e[i]=="object"?J(e[i],n):e[i],r),{});for(const r of n)r in e&&Object.defineProperty(t,r,{enumerable:!1,value:e[r]});return t}function Z(e){return typeof e=="object"?J(e):e}function Vt(e,n){if(!e||typeof e!="object")return null;const t=n.split(".");let r=e;for(const i in t){const s=t[i];if(j(r,s)&&(r=r[s]),+i===t.length-1)return r;if(!r||typeof r!="object")return null}return null}function Me(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function Q(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function Te(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function he(){const e=[];let n=0;const t=i=>e.push(i),r=i=>{const s=e[n];return typeof s=="function"?s(i,l=>(n++,r(l===void 0?i:l))):(n=0,i)};return t.dispatch=r,t.unshift=i=>e.unshift(i),t.remove=i=>{const s=e.indexOf(i);s>-1&&e.splice(s,1)},t}function Be(){const e=new Map,n=new Map;let t;const r=(i,s)=>{if(t){t.set(s.name,[i,s]);return}e.has(s.name)&&e.get(s.name).forEach(l=>{(s.origin===i||l.modifiers.includes("deep"))&&l.listener(s)}),s.bubble&&i.bubble(s)};return r.on=(i,s)=>{const[l,...f]=i.split("."),y=s.receipt||R(),_={modifiers:f,event:l,listener:s,receipt:y};return e.has(l)?e.get(l).push(_):e.set(l,[_]),n.has(y)?n.get(y).push(l):n.set(y,[l]),y},r.off=i=>{var s;n.has(i)&&((s=n.get(i))===null||s===void 0||s.forEach(l=>{const f=e.get(l);Array.isArray(f)&&e.set(l,f.filter(y=>y.receipt!==i))}),n.delete(i))},r.pause=i=>{t||(t=new Map),i&&i.walk(s=>s._e.pause())},r.play=i=>{if(!t)return;const s=t;t=void 0,s.forEach(([l,f])=>r(l,f)),i&&i.walk(l=>l._e.play())},r}function Et(e,n,t,r,i=!0){return n._e(e,{payload:r,name:t,bubble:i,origin:e}),e}function Pt(e,n,t){return oe(e.parent)&&e.parent._e(e.parent,t),e}function At(e,n,t,r){return n._e.on(t,r)}function It(e,n,t){return n._e.off(t),e}const ge=he();ge((e,n)=>(e.message||(e.message=String(`E${e.code}`)),n(e)));const _e=he();_e((e,n)=>{e.message||(e.message=String(`W${e.code}`));const t=n(e);return console&&typeof console.warn=="function"&&console.warn(t.message),t});function re(e,n={}){_e.dispatch({code:e,data:n})}function D(e,n={}){throw Error(ge.dispatch({code:e,data:n}).message)}function ie(e,n){const t=T({blocking:!1,key:R(),meta:{},type:"state",visible:!0},e);return n&&t.value&&t.meta.localize!==!1&&(t.value=n.t(t),t.meta.locale=n.config.locale),t}const De={apply:Bt,set:Nt,remove:Fe,filter:Mt,reduce:Tt,release:zt,touch:Rt};function jt(e=!1){const n={};let t,r=e,i=[];const s=new Map;let l;const f=new Proxy(n,{get(...y){const[_,$]=y;return $==="buffer"?r:$==="_b"?i:$==="_m"?s:$==="_r"?l:j(De,$)?De[$].bind(null,n,f,t):Reflect.get(...y)},set(y,_,$){return _==="_n"?(t=$,l==="__n"&&ze(t,f),!0):_==="_b"?(i=$,!0):_==="buffer"?(r=$,!0):_==="_r"?(l=$,!0):(D(101,t),!1)}});return f}function Nt(e,n,t,r){if(n.buffer)return n._b.push([[r]]),n;if(e[r.key]!==r){if(typeof r.value=="string"&&r.meta.localize!==!1){const s=r.value;r.value=t.t(r),r.value!==s&&(r.meta.locale=t.props.locale)}const i=`message-${j(e,r.key)?"updated":"added"}`;e[r.key]=Object.freeze(t.hook.message.dispatch(r)),t.emit(i,r)}return n}function Rt(e,n){for(const t in e){const r=T({},e[t]);n.set(r)}}function Fe(e,n,t,r){if(j(e,r)){const i=e[r];delete e[r],t.emit("message-removed",i)}return n.buffer===!0&&(n._b=n._b.filter(i=>(i[0]=i[0].filter(s=>s.key!==r),i[1]||i[0].length))),n}function Mt(e,n,t,r,i){for(const s in e){const l=e[s];(!i||l.type===i)&&!r(l)&&Fe(e,n,t,s)}}function Tt(e,n,t,r,i){for(const s in e){const l=e[s];i=r(i,l)}return i}function Bt(e,n,t,r,i){if(Array.isArray(r)){if(n.buffer){n._b.push([r,i]);return}const s=new Set(r.map(l=>(n.set(l),l.key)));typeof i=="string"?n.filter(l=>l.type!==i||s.has(l.key)):typeof i=="function"&&n.filter(l=>!i(l)||s.has(l.key))}else for(const s in r){const l=t.at(s);l?l.store.apply(r[s],i):Ft(t,n,s,r[s],i)}}function Dt(e,...n){const t=`${e.name}-set`,r=i=>ie({key:Te(i),type:"error",value:i,meta:{source:t,autoClear:!0}});return n.filter(i=>!!i).map(i=>{if(typeof i=="string"&&(i=[i]),Array.isArray(i))return i.map(s=>r(s));{const s={};for(const l in i)Array.isArray(i[l])?s[l]=i[l].map(f=>r(f)):s[l]=[r(i[l])];return s}})}function Ft(e,n,t,r,i){var s;const l=n._m;l.has(t)||l.set(t,[]),n._r||(n._r=ze(e,n)),(s=l.get(t))===null||s===void 0||s.push([r,i])}function ze(e,n){return e.on("child.deep",({payload:t})=>{n._m.forEach((r,i)=>{e.at(i)===t&&(r.forEach(([s,l])=>{t.store.apply(s,l)}),n._m.delete(i))}),n._m.size===0&&n._r&&(e.off(n._r),n._r=void 0)})}function zt(e,n){n.buffer=!1,n._b.forEach(([t,r])=>n.apply(t,r)),n._b=[]}function Wt(){const e={};let n;return{count:(...t)=>Lt(n,e,...t),init(t){n=t,t.on("message-added.deep",Le(e,1)),t.on("message-removed.deep",Le(e,-1))},merge:t=>qe(n,e,t),settled(t){return j(e,t)?e[t].promise:Promise.resolve()},unmerge:t=>qe(n,e,t,!0),value(t){return j(e,t)?e[t].count:0}}}function Lt(e,n,t,r,i=0){if(r=qt(r||t),!j(n,t)){const s={condition:r,count:0,name:t,node:e,promise:Promise.resolve(),resolve:()=>{}};n[t]=s,i=e.store.reduce((l,f)=>l+s.condition(f)*1,i),e.each(l=>{l.ledger.count(s.name,s.condition),i+=l.ledger.value(s.name)})}return We(n[t],i).promise}function qt(e){return typeof e=="function"?e:n=>n.type===e}function We(e,n){const t=e.count,r=e.count+n;return e.count=r,t===0&&r!==0?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise(i=>e.resolve=i)):t!==0&&r===0&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function Le(e,n){return t=>{for(const r in e){const i=e[r];i.condition(t.payload)&&We(i,n)}}}function qe(e,n,t,r=!1){for(const i in n){const s=n[i].condition;r||t.ledger.count(i,s);const l=t.ledger.value(i)*(r?-1:1);if(!!e)do e.ledger.count(i,s,l),e=e.parent;while(e)}}const be=new Map,se=new Map,$e=Be(),Kt=[];function xt(e){e.props.id&&(be.set(e.props.id,e),se.set(e,e.props.id),$e(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function Ut(e){if(se.has(e)){const n=se.get(e);se.delete(e),be.delete(n),$e(e,{payload:null,name:n,bubble:!1,origin:e})}}function Ke(e){return be.get(e)}function Ht(e,n){Kt.push($e.on(e,n))}function xe(e,n,t){let r=!0;return n in e.config._t?r=!1:e.emit(`config:${n}`,t,!1),n in e.props||(e.emit("prop",{prop:n,value:t}),e.emit(`prop:${n}`,t)),r}function Zt(e){const n=document.getElementById(e);if(n instanceof HTMLFormElement){const t=new Event("submit",{cancelable:!0,bubbles:!0});n.dispatchEvent(t);return}re(151,e)}function Jt(e){const n=t=>{for(const r in t.store){const i=t.store[r];i.type==="error"||i.type==="ui"&&r==="incomplete"?t.store.remove(r):i.type==="state"&&t.store.set(pe(T({},i),{value:!1}))}};n(e),e.walk(n)}function Qt(e,n){const t=typeof e=="string"?Ke(e):e;if(t){const r=s=>Z(s.props.initial)||(s.type==="group"?{}:s.type==="list"?[]:void 0);t._e.pause(t),t.input(Z(n)||r(t),!1),t.walk(s=>s.input(r(s),!1));const i=r(t);return t.input(typeof i=="object"?Z(n)||Q(i):i,!1),t._e.play(t),Jt(t),t.emit("reset",t),t}re(152,e)}const Yt={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${Re(e)}`]:!0})},Ue=Symbol("index"),we=Symbol("removed"),Ce=Symbol("moved"),He=Symbol("inserted");function Xt(e){return e.type==="list"&&Array.isArray(e._value)}function oe(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const le=(e,n,t)=>{D(102,[e,t])},Gt={_c:v(wn,le,!1),add:v(dn),addProps:v(pn),address:v(kn,le,!1),at:v(Sn),bubble:v(Pt),clearErrors:v(jn),calm:v(fn),config:v(!1),define:v(cn),disturb:v(an),destroy:v(un),hydrate:v(ln),index:v($n,bn,!1),input:v(Je),each:v(hn),emit:v(Et),find:v(On),on:v(At),off:v(It),parent:v(!1,mn),plugins:v(!1),remove:v(yn),root:v(En,le,!1),reset:v(In),resetConfig:v(_n),setErrors:v(Xe),submit:v(An),t:v(Pn),use:v(ke),name:v(Cn,!1,!1),walk:v(gn)};function en(){return new Map(Object.entries(Gt))}function v(e,n,t=!0){return{get:e?(r,i)=>t?(...s)=>e(r,i,...s):e(r,i):!1,set:n!==void 0?n:le.bind(null)}}function tn(){const e=new Map;return new Proxy(e,{get(n,t){return e.has(t)||e.set(t,he()),e.get(t)}})}let nn=0,rn=0;function sn(e){var n,t;return((n=e.parent)===null||n===void 0?void 0:n.type)==="list"?Ue:e.name||`${((t=e.props)===null||t===void 0?void 0:t.type)||"input"}_${++nn}`}function Ze(e){return e.type==="group"?Q(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?Q(Array.isArray(e.value)?e.value:[]):e.value===null?"":e.value}function Je(e,n,t,r=!0){return n._value=on(e,e.hook.input.dispatch(t)),e.emit("input",n._value),n.isSettled&&e.disturb(),r?(n._tmo&&clearTimeout(n._tmo),n._tmo=setTimeout(ae,e.props.delay,e,n)):ae(e,n),n.settled}function on(e,n){switch(e.type){case"input":break;case"group":(!n||typeof n!="object")&&D(107,[e,n]);break;case"list":Array.isArray(n)||D(108,[e,n]);break}return n}function ae(e,n,t=!0,r=!0){n._value=n.value=e.hook.commit.dispatch(n._value),e.type!=="input"&&r&&e.hydrate(),e.emit("commit",n.value),t&&e.calm()}function Qe(e,{name:n,value:t,from:r}){if(!Object.isFrozen(e._value)){if(Xt(e)){const i=t===we?[]:t===Ce&&typeof r=="number"?e._value.splice(r,1):[t];e._value.splice(n,t===Ce||r===He?0:1,...i);return}t!==we?e._value[n]=t:delete e._value[n]}}function ln(e,n){const t=n._value;return n.children.forEach(r=>{if(typeof t=="object")if(r.name in t){const i=r.type!=="input"||t[r.name]&&typeof t[r.name]=="object"?Q(t[r.name]):t[r.name];r.input(i,!1)}else(e.type!=="list"||typeof r.name=="number")&&Qe(n,{name:r.name,value:r.value}),t.__init||(r.type==="group"?r.input({},!1):r.type==="list"?r.input([],!1):r.input(void 0,!1))}),e}function an(e,n){var t;return n._d<=0&&(n.isSettled=!1,e.emit("settled",!1,!1),n.settled=new Promise(r=>{n._resolve=r}),e.parent&&((t=e.parent)===null||t===void 0||t.disturb())),n._d++,e}function fn(e,n,t){var r;if(t!==void 0&&e.type!=="input")return Qe(n,t),ae(e,n,!0,!1);n._d>0&&n._d--,n._d===0&&(n.isSettled=!0,e.emit("settled",!0,!1),e.parent&&((r=e.parent)===null||r===void 0||r.calm({name:e.name,value:n.value})),n._resolve&&n._resolve(n.value))}function un(e,n){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&e.parent.remove(e),Ut(e),n._value=n.value=void 0,e.emit("destroyed",e)}function cn(e,n,t){n.type=t.type,n.props.definition=J(t),n.value=n._value=Ze({type:e.type,value:n.value}),t.features&&t.features.forEach(r=>r(e)),t.props&&e.addProps(t.props),e.emit("defined",t)}function pn(e,n,t){var r;if(e.props.attrs){const i=T({},e.props.attrs);e.props._emit=!1;for(const l in i){const f=ne(l);t.includes(f)&&(e.props[f]=i[l],delete i[l])}const s=Z(n._value);e.props.initial=e.type!=="input"?Q(s):s,e.props._emit=!0,e.props.attrs=i,e.props.definition&&(e.props.definition.props=[...((r=e.props.definition)===null||r===void 0?void 0:r.props)||[],...t])}return e.emit("added-props",t),e}function dn(e,n,t,r){if(e.type==="input"&&D(100,e),t.parent&&t.parent!==e&&t.parent.remove(t),n.children.includes(t)||(r!==void 0&&e.type==="list"?(n.children.splice(r,0,t),Array.isArray(e.value)&&e.value.length<n.children.length&&e.disturb().calm({name:r,value:t.value,from:He})):n.children.push(t),t.isSettled||e.disturb()),t.parent!==e){if(t.parent=e,t.parent!==e)return e.remove(t),t.parent.add(t),e}else t.use(e.plugins);return ae(e,n,!1),e.ledger.merge(t),e.emit("child",t),e}function mn(e,n,t,r){return oe(r)?(e.parent&&e.parent!==r&&e.parent.remove(e),n.parent=r,e.resetConfig(),r.children.includes(e)?e.use(r.plugins):r.add(e),!0):r===null?(n.parent=null,!0):!1}function yn(e,n,t){const r=n.children.indexOf(t);if(r!==-1){t.isSettled&&e.disturb(),n.children.splice(r,1);let i=Me(t.props.preserve),s=t.parent;for(;i===void 0&&s;)i=Me(s.props.preserve),s=s.parent;i?e.calm():e.calm({name:e.type==="list"?r:t.name,value:we}),t.parent=null,t.config._rmn=t}return e.ledger.unmerge(t),e}function hn(e,n,t){n.children.forEach(r=>t(r))}function gn(e,n,t,r=!1){n.children.forEach(i=>{(t(i)!==!1||!r)&&i.walk(t)})}function _n(e,n){const t=e.parent||void 0;n.config=Ye(e.config._t,t),e.walk(r=>r.resetConfig())}function ke(e,n,t,r=!0,i=!0){return Array.isArray(t)||t instanceof Set?(t.forEach(s=>ke(e,n,s)),e):(n.plugins.has(t)||(i&&typeof t.library=="function"&&t.library(e),r&&t(e)!==!1&&(n.plugins.add(t),e.children.forEach(s=>s.use(t)))),e)}function bn(e,n,t,r){if(oe(e.parent)){const i=e.parent.children,s=r>=i.length?i.length-1:r<0?0:r,l=i.indexOf(e);return l===-1?!1:(i.splice(l,1),i.splice(s,0,e),e.parent.children=i,e.parent.type==="list"&&e.parent.disturb().calm({name:s,value:Ce,from:l}),!0)}return!1}function $n(e){if(e.parent){const n=[...e.parent.children].indexOf(e);return n===-1?e.parent.children.length:n}return-1}function wn(e,n){return n}function Cn(e,n){var t;return((t=e.parent)===null||t===void 0?void 0:t.type)==="list"?e.index:n.name!==Ue?n.name:e.index}function kn(e,n){return n.parent?n.parent.address.concat([e.name]):[e.name]}function Sn(e,n,t){const r=typeof t=="string"?t.split(e.config.delimiter):t;if(!r.length)return;const i=r[0];let s=e.parent;for(s||(String(r[0])===String(e.name)&&r.shift(),s=e),i==="$parent"&&r.shift();s&&r.length;){const l=r.shift();switch(l){case"$root":s=e.root;break;case"$parent":s=s.parent;break;case"$self":s=e;break;default:s=s.children.find(f=>String(f.name)===String(l))||vn(s,l)}}return s||void 0}function vn(e,n){const t=String(n).match(/^(find)\((.*)\)$/);if(t){const[,r,i]=t,s=i.split(",").map(l=>l.trim());switch(r){case"find":return e.find(s[0],s[1]);default:return}}}function On(e,n,t,r){return Vn(e,t,r)}function Vn(e,n,t="name"){const r=typeof t=="string"?s=>s[t]==n:t,i=[e];for(;i.length;){const s=i.shift();if(r(s,n))return s;i.push(...s.children)}}function En(e){let n=e;for(;n.parent;)n=n.parent;return n}function Ye(e={},n){let t;return new Proxy(e,{get(...r){const i=r[1];if(i==="_t")return e;const s=Reflect.get(...r);if(s!==void 0)return s;if(n){const l=n.config[i];if(l!==void 0)return l}if(e.rootConfig&&typeof i=="string"){const l=e.rootConfig[i];if(l!==void 0)return l}return i==="delay"&&(t==null?void 0:t.type)==="input"?20:Yt[i]},set(...r){const i=r[1],s=r[2];if(i==="_n")return t=s,e.rootConfig&&e.rootConfig._add(t),!0;if(i==="_rmn")return e.rootConfig&&e.rootConfig._rm(t),t=void 0,!0;if(!de(e[i],s,!1)){const l=Reflect.set(...r);return t&&(t.emit(`config:${i}`,s,!1),xe(t,i,s),t.walk(f=>xe(f,i,s),!0)),l}return!0}})}function Pn(e,n,t,r="ui"){const i=typeof t=="string"?{key:t,value:t,type:r}:t,s=e.hook.text.dispatch(i);return e.emit("text",s,!1),s.value}function An(e){const n=e.name;do{if(e.props.isForm===!0)break;e.parent||D(106,n),e=e.parent}while(e);e.props.id&&Zt(e.props.id)}function In(e,n,t){return Qt(e,t)}function Xe(e,n,t,r){const i=`${e.name}-set`;return Dt(e,t,r).forEach(s=>{e.store.apply(s,l=>l.meta.source===i)}),e}function jn(e,n,t=!0){if(Xe(e,n,[]),t){const r=`${e.name}-set`;e.walk(i=>{i.store.filter(s=>!(s.type==="error"&&s.meta&&s.meta.source===r))})}return e}function Nn(e){return j(e.props,"id")||(e.props.id=`input_${rn++}`),e}function Rn(e){const n={initial:typeof e=="object"?Z(e):e};let t,r=!0;return new Proxy(n,{get(...i){const[s,l]=i;if(j(n,l))return Reflect.get(...i);if(t&&typeof l=="string"&&t.config[l]!==void 0)return t.config[l]},set(i,s,l,f){if(s==="_n")return t=l,!0;if(s==="_emit")return r=l,!0;const{prop:y,value:_}=t.hook.prop.dispatch({prop:s,value:l});if(!de(n[y],_,!1)||typeof _=="object"){const $=Reflect.set(i,y,_,f);return r&&(t.emit("prop",{prop:y,value:_}),typeof y=="string"&&t.emit(`prop:${y}`,_)),$}return!0}})}function Mn(e,n){if(e.props.definition)return e.define(e.props.definition);for(const t of n){if(e.props.definition)return;typeof t.library=="function"&&t.library(e)}}function Tn(e){const n=Ze(e),t=Ye(e.config||{},e.parent);return{_d:0,_e:Be(),_resolve:!1,_tmo:!1,_value:n,children:F(e.children||[]),config:t,hook:tn(),isCreated:!1,isSettled:!0,ledger:Wt(),name:sn(e),parent:e.parent||null,plugins:new Set,props:Rn(n),settled:Promise.resolve(n),store:jt(!0),traps:en(),type:e.type||"input",value:n}}function Bn(e,n){var t;if(e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,n.props&&Object.assign(e.props,n.props),e.props._emit=!0,Mn(e,new Set([...n.plugins||[],...e.parent?e.parent.plugins:[]])),n.plugins)for(const r of n.plugins)ke(e,e._c,r,!0,!1);return Nn(e),e.each(r=>e.add(r)),e.parent&&e.parent.add(e,n.index),e.type==="input"&&e.children.length&&D(100,e),Je(e,e._c,e._value,!1),e.store.release(),!((t=n.props)===null||t===void 0)&&t.id&&xt(e),e.emit("created",e),e.isCreated=!0,e}function Dn(e){const n=e||{},t=Tn(n),r=new Proxy(t,{get(...i){const[,s]=i;if(s==="__FKNode__")return!0;const l=t.traps.get(s);return l&&l.get?l.get(r,t):Reflect.get(...i)},set(...i){const[,s,l]=i,f=t.traps.get(s);return f&&f.set?f.set(r,t,s,l):Reflect.set(...i)}});return Bn(r,n)}function Fn(e){return typeof e!="string"&&j(e,"$el")}function Ge(e){return typeof e!="string"&&j(e,"$cmp")}function Y(e){return!e||typeof e=="string"?!1:j(e,"if")&&j(e,"then")}function zn(e){return typeof e!="string"&&"$formkit"in e}function Wn(e){if(typeof e=="string")return{$el:"text",children:e};if(zn(e)){const n=e,{$formkit:t,for:r,if:i,children:s,key:l,bind:f}=n,y=Ie(n,["$formkit","for","if","children","key","bind"]);return Object.assign({$cmp:"FormKit",props:pe(T({},y),{type:t})},i?{if:i}:{},r?{for:r}:{},s?{children:s}:{},l?{key:l}:{},f?{bind:f}:{})}return e}function z(e){let n;const t=new Set,r=function(u,c){return typeof u=="function"?u(c):u},i=[{"&&":(p,u,c)=>r(p,c)&&r(u,c),"||":(p,u,c)=>r(p,c)||r(u,c)},{"===":(p,u,c)=>r(p,c)===r(u,c),"!==":(p,u,c)=>r(p,c)!==r(u,c),"==":(p,u,c)=>r(p,c)==r(u,c),"!=":(p,u,c)=>r(p,c)!=r(u,c),">=":(p,u,c)=>r(p,c)>=r(u,c),"<=":(p,u,c)=>r(p,c)<=r(u,c),">":(p,u,c)=>r(p,c)>r(u,c),"<":(p,u,c)=>r(p,c)<r(u,c)},{"+":(p,u,c)=>r(p,c)+r(u,c),"-":(p,u,c)=>r(p,c)-r(u,c)},{"*":(p,u,c)=>r(p,c)*r(u,c),"/":(p,u,c)=>r(p,c)/r(u,c),"%":(p,u,c)=>r(p,c)%r(u,c)}],s=i.reduce((p,u)=>p.concat(Object.keys(u)),[]),l=new Set(s.map(p=>p.charAt(0)));function f(p,u,c,g){const C=p.filter(a=>a.startsWith(u));return C.length?C.find(a=>g.length>=c+a.length&&g.substring(c,c+a.length)===a?a:!1):!1}function y(p,u,c=1){let g=c?u.substring(p+1).trim():u.substring(0,p).trim();if(!g.length)return-1;if(!c){const a=g.split("").reverse(),m=a.findIndex(h=>l.has(h));g=a.slice(m).join("")}const C=g[0];return i.findIndex(a=>{const m=Object.keys(a);return!!f(m,C,0,g)})}function _(p,u){let c="";const g=u.length;let C=0;for(let a=p;a<g;a++){const m=u.charAt(a);if(m==="(")C++;else if(m===")")C--;else if(C===0&&m===" ")continue;if(C===0&&f(s,m,a,u))return[c,a-1];c+=m}return[c,u.length-1]}function $(p,u=0){const c=i[u],g=p.length,C=Object.keys(c);let a=0,m=!1,h=null,b="",P=null,E,M="",V="",I="",N="",L=0;const q=(A,x)=>{A?I+=x:b+=x};for(let A=0;A<g;A++)if(M=V,V=p.charAt(A),(V==="'"||V==='"')&&M!=="\\"&&(a===0&&!m||a&&!N)){a?N=V:m=V,q(a,V);continue}else if(m&&(V!==m||M==="\\")||N&&(V!==N||M==="\\")){q(a,V);continue}else if(m===V){m=!1,q(a,V);continue}else if(N===V){N=!1,q(a,V);continue}else{if(V===" ")continue;if(V==="(")a===0?L=A:I+=V,a++;else if(V===")")if(a--,a===0){const x=typeof b=="string"&&b.startsWith("$")?b:void 0,$t=x&&p.charAt(A+1)===".";let X="";$t&&([X,A]=_(A+2,p));const ue=h?u:y(L,p,0),G=y(A,p);ue===-1&&G===-1?b=d(I,-1,x,X):h&&(ue>=G||G===-1)&&u===ue?(P=h.bind(null,d(I,-1,x,X)),h=null,b=""):G>ue&&u===G?b=d(I,-1,x,X):b+=`(${I})${$t?`.${X}`:""}`,I=""}else I+=V;else if(a===0&&(E=f(C,V,A,p))){A===0&&D(103,[E,p]),A+=E.length-1,A===p.length-1&&D(104,[E,p]),h?b&&(P=h.bind(null,d(b,u)),h=c[E].bind(null,P),b=""):P?(h=c[E].bind(null,d(P,u)),P=null):(h=c[E].bind(null,d(b,u)),b="");continue}else q(a,V)}return b&&h&&(h=h.bind(null,d(b,u))),h=!h&&P?P:h,!h&&b&&(h=(A,x)=>typeof A=="function"?A(x):A,h=h.bind(null,d(b,u))),!h&&!b&&D(105,p),h}function d(p,u,c,g){if(c){const C=d(c,i.length);let a,m=g?z(`$${g}`):!1;if(typeof C=="function"){const h=Ot(String(p)).map(b=>d(b,-1));return b=>{const P=C(b);return typeof P!="function"?(re(150,c),P):(a=P(...h.map(E=>typeof E=="function"?E(b):E)),m&&(m=m.provide(E=>{const M=n(E);return E.reduce((I,N)=>{if(N===g||(g==null?void 0:g.startsWith(`${N}(`))){const q=Vt(a,N);I[N]=()=>q}else I[N]=M[N];return I},{})})),m?m():a)}}}else if(typeof p=="string"){if(p==="true")return!0;if(p==="false")return!1;if(p==="undefined")return;if(St(p))return vt(p.substring(1,p.length-1));if(!isNaN(+p))return Number(p);if(u<i.length-1)return $(p,u+1);if(p.startsWith("$")){const C=p.substring(1);return t.add(C),function(m){return C in m?m[C]():void 0}}return p}return p}const O=$(e.startsWith("$:")?e.substring(2):e),w=Array.from(t);function S(p){return n=p,Object.assign(O.bind(null,p(w)),{provide:S})}return Object.assign(O,{provide:S})}const Ln=K("outer",()=>({$el:"div",attrs:{class:"$classes.outer","data-type":"$type","data-multiple":"$attrs.multiple","data-disabled":"$disabled || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined"}})),qn=K("wrapper",()=>({$el:"div",attrs:{class:"$classes.wrapper"}})),Kn=K("inner",()=>({$el:"div",attrs:{class:"$classes.inner"}})),xn=(e={},n=[],t="help",r="$help")=>({if:`$slots.${t}`,then:`$slots.${t}`,else:te({$el:"div",attrs:{id:`$: "help-" + ${t=="optionHelp"?"$option.attrs.id":"$id"}`,class:`$classes.${t}`},if:r,children:n},e)}),Un=K("messages",()=>({$el:"ul",if:"$fns.length($messages)",attrs:{class:"$classes.messages","aria-live":'$type === "form" && "assertive" || "polite"'}})),Hn=K("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",class:"$classes.message",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Zn=K("prefix",()=>({$el:null})),Jn=K("suffix",()=>({$el:null}));function Se(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function Qn(e,n={}){return typeof e=="string"?Se(n)||typeof n=="string"?n:e:Array.isArray(e)?Se(n)?n:e:te(e,n)}function K(e,n){return(t={},r=void 0)=>{const i=typeof n=="function"?n(r):typeof n=="object"?J(n):n;Se(i)&&!("children"in i)&&r&&(Array.isArray(r)?r.length&&(i.children=r):i.children=[r]);const l=Qn(i,t);return{if:`$slots.${e}`,then:`$slots.${e}`,else:Array.isArray(l)?l:[l]}}}function Yn(e){return(n={})=>{const t=K("input",e)(n.input);return[Ln(n.outer,[qn(n.wrapper,[Xn(n.label,"$label"),Kn(n.inner,[Zn(n.prefix),...Array.isArray(t)?t:[t],Jn(n.suffix)])]),xn(n.help,"$help"),Un(n.messages,[Hn(n.message,"$message.value")])])]}}const Xn=K("label",()=>({$el:"label",if:"$label",attrs:{for:"$id",class:"$classes.label"}}));ie({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let ve=!1;const et={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,n]})=>`You cannot directly assign node.${n} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,n]})=>`Schema expressions cannot end with an operator (${e} in "${n}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,n]})=>`Cannot set ${e.name} to non object value: ${n}`,108:({data:[e,n]})=>`Cannot set ${e.name} to non array value: ${n}`,600:({data:e})=>`Unknown input type${typeof e.props.type=="string"?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${typeof e.props.type=="string"?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},tt={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:e})=>`Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`};ve||ge((e,n)=>{if(e.code in et){const t=et[e.code];e.message=typeof t=="function"?t(e):t}return n(e)}),ve||_e((e,n)=>{if(e.code in tt){const t=tt[e.code];e.message=typeof t=="function"?t(e):t}return n(e)}),ve=!0;const Oe={};let B;const U=new Map,Gn="__raw__",er=/[a-zA-Z0-9\-][cC]lass$/;function tr(e,n){const t=o.ref(null);if(e==="get"){const i={};return t.value=nr.bind(null,i),t}const r=e.split(".");return o.watchEffect(()=>t.value=Ve(n,r)),t}function Ve(e,n){if(Array.isArray(e)){for(const r of e){const i=r!==!1&&Ve(r,n);if(i!==void 0)return i}return}let t;return n.reduce((r,i,s,l)=>{if(typeof r!="object")return t=void 0,l.splice(1);const f=r[i];return s===n.length-1&&f!==void 0&&(t=f),r[i]},e),t}function nr(e,n){if(typeof n!="string")return re(650);if(n in e||(e[n]=o.ref(void 0)),e[n].value===void 0){e[n].value=null;const t=Ke(n);t&&(e[n].value=t.context),Ht(n,({payload:r})=>{e[n].value=oe(r)?r.context:r})}return e[n].value}function nt(e,n){function t(d,O){const w=$(z(O.if),{if:!0}),S=y(d,O.then),p=O.else?y(d,O.else):null;return[w,S,p]}function r(d,O){var w,S;const p=$(z(d.if));let u=()=>O,c=()=>O;return typeof d.then=="object"?c=i(d.then,void 0):typeof d.then=="string"&&((w=d.then)===null||w===void 0?void 0:w.startsWith("$"))?c=$(z(d.then)):c=()=>d.then,j(d,"else")&&(typeof d.else=="object"?u=i(d.else):typeof d.else=="string"&&((S=d.else)===null||S===void 0?void 0:S.startsWith("$"))?u=$(z(d.else)):u=()=>d.else),()=>p()?c():u()}function i(d,O,w={}){const S=new Set(Object.keys(d||{})),p=O?$(z(O)):()=>({}),u=[c=>{const g=p();for(const C in g)S.has(C)||(c[C]=g[C])}];if(d){if(Y(d))return r(d,w);for(let c in d){const g=d[c];let C;const a=typeof g=="string";c.startsWith(Gn)?(c=c.substring(7),C=()=>g):a&&g.startsWith("$")&&g.length>1&&!(g.startsWith("$reset")&&er.test(c))?C=$(z(g)):typeof g=="object"&&Y(g)?C=r(g,void 0):typeof g=="object"&&ee(g)?C=i(g):C=()=>g,u.push(m=>{m[c]=C()})}}return()=>{const c={};return u.forEach(g=>g(c)),c}}function s(d,O){let w=null,S=()=>null,p=!1,u=null,c=null,g=null,C=!1;const a=Wn(O);if(Fn(a)?(w=a.$el,S=a.$el!=="text"?i(a.attrs,a.bind):()=>null):Ge(a)?(typeof a.$cmp=="string"?j(d,a.$cmp)?w=d[a.$cmp]:(w=a.$cmp,C=!0):w=a.$cmp,S=i(a.props,a.bind)):Y(a)&&([p,u,c]=t(d,a)),!Y(a)&&"if"in a?p=$(z(a.if)):!Y(a)&&w===null&&(p=()=>!0),"children"in a&&a.children)if(typeof a.children=="string")if(a.children.startsWith("$slots."))w=w==="text"?"slot":w,u=$(z(a.children));else if(a.children.startsWith("$")&&a.children.length>1){const m=$(z(a.children));u=()=>String(m())}else u=()=>String(a.children);else if(Array.isArray(a.children))u=y(d,a.children);else{const[m,h,b]=t(d,a.children);u=P=>m&&m()?h&&h(P):b&&b(P)}if(Ge(a))if(u){const m=u;u=h=>({default(b,P){var E,M,V,I;const N=B;P&&(B=P),b&&((E=U.get(B))===null||E===void 0||E.unshift(b)),h&&((M=U.get(B))===null||M===void 0||M.unshift(h));const L=m(h);return b&&((V=U.get(B))===null||V===void 0||V.shift()),h&&((I=U.get(B))===null||I===void 0||I.shift()),B=N,L}}),u.slot=!0}else u=()=>({});if("for"in a&&a.for){const m=a.for.length===3?a.for[2]:a.for[1];g=[typeof m=="string"&&m.startsWith("$")?$(z(m)):()=>m,a.for[0],a.for.length===3?String(a.for[1]):null]}return[p,w,S,u,c,g,C]}function l(d,O){const w=d(O),S=B;return Object.keys(w).reduce((p,u)=>{const c=w&&w[u];return p[u]=g=>c&&c(g,S)||null,p},{})}function f(d,O){const[w,S,p,u,c,g,C]=s(d,O);let a=m=>{if(w&&S===null&&u)return w()?u(m):c&&c(m);if(S&&(!w||w())){if(S==="text"&&u)return o.createTextVNode(String(u()));if(S==="slot"&&u)return u(m);const h=C?o.resolveComponent(S):S,b=u!=null&&u.slot?l(u,m):null;return o.h(h,p(),b||(u?u(m):[]))}return typeof c=="function"?c(m):c};if(g){const m=a,[h,b,P]=g;a=()=>{const E=h(),M=isNaN(E)?E:Array(Number(E)).fill(0).map((N,L)=>L),V=[];if(typeof M!="object")return null;const I=U.get(B)||[];for(const N in M){const L=Object.defineProperty(T(pe(T({},I.reduce((q,A)=>q.__idata?T(T({},q),A):A,{})),{[b]:M[N]}),P!==null?{[P]:N}:{}),"__idata",{enumerable:!1,value:!0});I.unshift(L),V.push(m.bind(null,L)()),I.shift()}return V}}return a}function y(d,O){if(Array.isArray(O)){const S=O.map(f.bind(null,d));return p=>S.map(u=>u(p))}const w=f(d,O);return S=>w(S)}const _=[];function $(d,O={}){const w={};return _.push((S,p)=>{w[p]=d.provide(u=>S(u,O))}),()=>w[B]()}return function(O,w){const S=JSON.stringify(n),[p,u]=j(Oe,S)?Oe[S]:[y(e,n),_];return Oe[S]=[p,u],u.forEach(c=>{c(O,w)}),()=>(B=w,p())}}function rt(e,n){const t=U.get(B)||[];let r;return t.length&&(r=Ve(t,e.split("."))),r===void 0?n:r}function rr(e,n){return new Proxy(e,{get(...t){let r;const i=t[1];if(typeof i=="string"){const s=B;B=n,r=rt(i,void 0),B=s}return r!==void 0?r:Reflect.get(...t)}})}function it(e,n,t){return e((r,i={})=>r.reduce((s,l)=>{if(l.startsWith("slots.")){const y=l.substring(6),_=n.slots&&j(n.slots,y);if(i.if)s[l]=()=>_;else if(n.slots&&_){const $=rr(n,t);return s[l]=()=>n.slots[y]($),s}}const f=tr(l,n);return s[l]=()=>rt(l,f.value),s},{}),t)}let st=0;const ir=o.defineComponent({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})}},setup(e,n){const t=o.getCurrentInstance();let r=Symbol(String(st++));U.set(r,[]);let i=nt(e.library,e.schema),s,l;return o.watch(()=>e.schema,(f,y)=>{var _;r=Symbol(String(st++)),i=nt(e.library,e.schema),s=it(i,l,r),f===y&&((_=t==null?void 0:t.proxy)===null||_===void 0?void 0:_.$forceUpdate)()},{deep:!0}),o.watchEffect(()=>{l=Object.assign(o.reactive(e.data),{slots:n.slots}),s=it(i,l,r)}),()=>s()}}),sr={config:{type:Object,default:{}},classes:{type:Object,required:!1},delay:{type:Number,required:!1},errors:{type:Array,default:[]},inputErrors:{type:Object,default:()=>({})},index:{type:Number,required:!1},id:{type:String,required:!1},modelValue:{required:!1},name:{type:String,required:!1},parent:{type:Object,required:!1},plugins:{type:Array,default:[]},sectionsSchema:{type:Object,default:{}},type:{type:[String,Object],default:"text"},validation:{type:[String,Array],required:!1},validationMessages:{type:Object,required:!1},validationRules:{type:Object,required:!1},validationLabel:{type:[String,Function],required:!1}},ot=Symbol("FormKitParent");o.defineComponent({props:sr,emits:{input:(e,n)=>!0,inputRaw:(e,n)=>!0,"update:modelValue":e=>!0,node:e=>!!e,submit:(e,n)=>!0,submitRaw:(e,n)=>!0},inheritAttrs:!1,setup(e,n){const t=cr(e,n);if(t.props.definition||D(600,t),t.props.definition.component)return()=>{var l;return o.h((l=t.props.definition)===null||l===void 0?void 0:l.component,{context:t.context},T({},n.slots))};const r=o.ref([]),i=()=>{var l,f;const y=(f=(l=t.props)===null||l===void 0?void 0:l.definition)===null||f===void 0?void 0:f.schema;y||D(601,t),r.value=typeof y=="function"?y(T({},e.sectionsSchema)):y};i(),t.on("schema",i),n.emit("node",t);const s=t.props.definition.library;return n.expose({node:t}),()=>o.h(ir,{schema:r.value,data:t.context,library:s},T({},n.slots))}});const or=Symbol.for("FormKitOptions"),Ee=Symbol();function lr(e,n){const t={},r=l=>{for(const f of l)f.__str in t&&t[f.__str](),t[f.__str]=o.watch(fr.bind(null,e,f),s.bind(null,f),{deep:!1})},s=ar(e,n,r,l=>{if(!!l.length)for(const f in t)`${f}`.startsWith(`${l.__str}.`)&&(t[f](),delete t[f])});r(Pe(e))}function ar(e,n,t,r){return i=>{const s=lt(e,i);s!==Ee&&(i.__deep&&r(i),typeof s=="object"&&t(Pe(s,[i],...i)),n(i,s,e))}}function fr(e,n){const t=lt(e,n);return t&&typeof t=="object"?Object.keys(t):t}function lt(e,n){if(o.isRef(e)){if(n.length===0)return e.value;e=e.value}return n.reduce((t,r)=>t===Ee?t:t===null||typeof t!="object"?Ee:t[r],e)}function Pe(e,n=[],...t){if(e===null)return n;if(!t.length){const r=Object.defineProperty([],"__str",{value:""});if(e=o.isRef(e)?e.value:e,e&&typeof e=="object")Object.defineProperty(r,"__deep",{value:!0}),n.push(r);else return[r]}if(e===null||typeof e!="object")return n;for(const r in e){const i=t.concat(r);Object.defineProperty(i,"__str",{value:i.join(".")});const s=e[r];ee(s)||Array.isArray(s)?(n.push(Object.defineProperty(i,"__deep",{value:!0})),n=n.concat(Pe(s,[],...i))):n.push(i)}return n}function fe(e){return e===null||typeof e!="object"||(o.isReactive(e)?e=o.toRaw(e):o.isRef(e)&&(e=o.isReactive(e.value)?fe(e.value):e.value)),e}const Ae=["help","label","ignore","disabled","preserve",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility)$/,/^[a-zA-Z-]+(?:-class|Class)$/];function at(e,n){n.classes&&Object.keys(n.classes).forEach(t=>{typeof t=="string"&&(e.props[`_${t}Class`]=n.classes[t],ye(n.classes[t])&&t==="inner"&&Object.values(n.classes[t]))})}function ur(e){return e?["Submit","SubmitRaw"].reduce((t,r)=>{const i=`on${r}`;return i in e&&typeof e[i]=="function"&&(t[i]=e[i]),t},{}):{}}function cr(e,n,t={}){const r=Object.assign({},o.inject(or)||{},t),i=o.getCurrentInstance(),s=ur(i==null?void 0:i.vnode.props),l=e.modelValue!==void 0,f=e.modelValue!==void 0?e.modelValue:Z(n.attrs.value);function y(){const a=T(T({},H(e)),s),m=je(H(n.attrs),Ae);a.attrs=m;const h=Ne(H(n.attrs),Ae);for(const P in h)a[ne(P)]=h[P];const b={props:{}};return at(b,e),Object.assign(a,b.props),typeof a.type!="string"&&(a.definition=a.type,delete a.type),a}const _=y(),$=_.ignore?null:e.parent||o.inject(ot,null),d=Dn(te(r||{},{name:e.name||void 0,value:f,parent:$,plugins:(r.plugins||[]).concat(e.plugins),config:e.config,props:_,index:e.index},!1,!0));d.props.definition||D(600,d);const O=o.ref(new Set(d.props.definition.props||[]));d.on("added-props",({payload:a})=>{Array.isArray(a)&&a.forEach(m=>O.value.add(m))});const w=o.computed(()=>Ae.concat([...O.value]).reduce((a,m)=>(typeof m=="string"?(a.push(ne(m)),a.push(Re(m))):a.push(m),a),[]));o.watchEffect(()=>at(d,e));const S=H(e);for(const a in S)o.watch(()=>e[a],()=>{e[a]!==void 0&&(d.props[a]=e[a])});const p=new Set,u=H(n.attrs);o.watchEffect(()=>{c(Ne(u,w.value))});function c(a){p.forEach(m=>{m(),p.delete(m)});for(const m in a){const h=ne(m);p.add(o.watch(()=>n.attrs[m],()=>{d.props[h]=n.attrs[m]}))}}if(o.watchEffect(()=>{const a=je(H(n.attrs),w.value);d.props.attrs=Object.assign({},d.props.attrs||{},a)}),o.watchEffect(()=>{const a=e.errors.map(m=>ie({key:Te(m),type:"error",value:m,meta:{source:"prop"}}));d.store.apply(a,m=>m.type==="error"&&m.meta.source==="prop")}),d.type!=="input"){const a=`${d.name}-prop`;o.watchEffect(()=>{const h=Object.keys(e.inputErrors).reduce((b,P)=>{let E=e.inputErrors[P];return typeof E=="string"&&(E=[E]),Array.isArray(E)&&(b[P]=E.map(M=>ie({key:M,type:"error",value:M,meta:{source:a}}))),b},{});d.store.apply(h,b=>b.type==="error"&&b.meta.source===a)})}o.watchEffect(()=>Object.assign(d.config,e.config)),d.type!=="input"&&o.provide(ot,d);let g;const C=new WeakSet;return d.on("modelUpdated",()=>{var a,m;if(n.emit("inputRaw",(a=d.context)===null||a===void 0?void 0:a.value,d),clearTimeout(g),g=setTimeout(n.emit,20,"input",(m=d.context)===null||m===void 0?void 0:m.value,d),l&&d.context){const h=fe(d.context.value);ye(h)&&fe(e.modelValue)!==h&&C.add(h),n.emit("update:modelValue",h)}}),l&&lr(o.toRef(e,"modelValue"),(a,m)=>{var h;const b=fe(m);if(ye(b)&&C.has(b))return C.delete(b);a.length?(h=d.at(a))===null||h===void 0||h.input(m,!1):d.input(m,!1)}),o.onUnmounted(()=>d.destroy()),d}let pr=1;function dr(e){return typeof e=="function"&&e.length===2||typeof e=="object"&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function W(e,n={}){const t=T({type:"input"},n);let r;if(dr(e)){const i=`SchemaComponent${pr++}`;r=()=>({$cmp:i,props:{context:"$node.context"}}),t.library={[i]:o.markRaw(e)}}else r=e;return t.schema=Yn(r||"Schema undefined"),t}const mr=o.defineComponent({name:"PrimeInputText",props:{context:Object},setup(e){const t=e.context,r=()=>(t==null?void 0:t.iconLeft)&&(t==null?void 0:t.iconLeft.length)>0,i=()=>(t==null?void 0:t.iconRight)&&(t==null?void 0:t.iconRight.length)>0,s=()=>{let f="";return r()&&(f=`${f}p-input-icon-left `),i()&&(f=`${f}p-input-icon-right `),f};function l(f){t==null||t.node.input(f.target.value)}return(f,y)=>{const _=o.resolveComponent("InputText");return o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(s())},[r()?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(o.unref(t).iconLeft)},null,2)):o.createCommentVNode("",!0),o.createVNode(_,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":y[0]||(y[0]=$=>o.unref(t)._value=$),placeholder:o.unref(t).attrs.placeholder,class:o.normalizeClass(o.unref(t).attrs.class),onInput:l},null,8,["id","modelValue","placeholder","class"]),i?(o.openBlock(),o.createElementBlock("i",{key:1,class:o.normalizeClass(o.unref(t).iconRight)},null,2)):o.createCommentVNode("",!0)],2)}}}),yr=o.defineComponent({name:"PrimeInputNumber",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.target.value)}return(i,s)=>{var f;const l=o.resolveComponent("InputNumber");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=y=>o.unref(t)._value=y),rows:(f=o.unref(t).rows)!=null?f:3,placeholder:o.unref(t).attrs.placeholder,class:o.normalizeClass(o.unref(t).attrs.class),onInput:r},null,8,["id","modelValue","rows","placeholder","class"])}}}),hr=o.defineComponent({name:"PrimePassword",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.target.value)}return(i,s)=>{var f,y,_,$;const l=o.resolveComponent("Password");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=d=>o.unref(t)._value=d),placeholder:o.unref(t).attrs.placeholder,feedback:(y=(f=o.unref(t))==null?void 0:f.feedback)!=null?y:!0,"toggle-mask":($=(_=o.unref(t))==null?void 0:_.toggleMask)!=null?$:!1,class:o.normalizeClass(o.unref(t).attrs.class),onInput:r},null,8,["id","modelValue","placeholder","feedback","toggle-mask","class"])}}}),gr=o.defineComponent({name:"PrimeInputTextArea",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.target.value)}return(i,s)=>{var f;const l=o.resolveComponent("Textarea");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=y=>o.unref(t)._value=y),rows:(f=o.unref(t).rows)!=null?f:3,placeholder:o.unref(t).attrs.placeholder,class:o.normalizeClass(o.unref(t).attrs.class),onInput:r},null,8,["id","modelValue","rows","placeholder","class"])}}}),_r={key:0,class:"formkit-prime-left"},br={key:1,class:"formkit-prime-right"},$r=o.defineComponent({name:"PrimeCheckBox",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i)}return(i,s)=>{const l=o.resolveComponent("Checkbox");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(t).attrs.labelLeft?(o.openBlock(),o.createElementBlock("span",_r,o.toDisplayString(o.unref(t).attrs.labelLeft),1)):o.createCommentVNode("",!0),o.createVNode(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=f=>o.unref(t)._value=f),placeholder:o.unref(t).attrs.placeholder,binary:!0,class:o.normalizeClass(o.unref(t).attrs.class),onInput:r},null,8,["id","modelValue","placeholder","class"]),o.unref(t).attrs.labelRight?(o.openBlock(),o.createElementBlock("span",br,o.toDisplayString(o.unref(t).attrs.labelRight),1)):o.createCommentVNode("",!0)],64)}}}),wr={key:0,class:"formkit-prime-left"},Cr={key:1,class:"formkit-prime-right"},kr=o.defineComponent({name:"PrimeInputSwitch",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var f,y;const l=o.resolveComponent("InputSwitch");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(t).attrs.labelLeft?(o.openBlock(),o.createElementBlock("span",wr,o.toDisplayString(o.unref(t).attrs.labelLeft),1)):o.createCommentVNode("",!0),o.createVNode(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=_=>o.unref(t)._value=_),"true-value":(f=o.unref(t).attrs.trueValue)!=null?f:void 0,"false-value":(y=o.unref(t).attrs.falseValue)!=null?y:void 0,class:o.normalizeClass(o.unref(t).attrs.class),onInput:r},null,8,["id","modelValue","true-value","false-value","class"]),o.unref(t).attrs.labelRight?(o.openBlock(),o.createElementBlock("span",Cr,o.toDisplayString(o.unref(t).attrs.labelRight),1)):o.createCommentVNode("",!0)],64)}}}),Sr=o.defineComponent({name:"PrimeEditor",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.htmlValue)}return(i,s)=>{const l=o.resolveComponent("Editor");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=f=>o.unref(t)._value=f),placeholder:o.unref(t).attrs.placeholder,onTextChange:r},null,8,["id","modelValue","placeholder"])}}}),vr=o.defineComponent({name:"PrimeDropdown",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.value)}return(i,s)=>{var f,y,_,$;const l=o.resolveComponent("Dropdown");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=d=>o.unref(t)._value=d),options:(y=(f=o.unref(t))==null?void 0:f.attrs)==null?void 0:y.options,"option-label":"label","option-value":"value",placeholder:o.unref(t).attrs.placeholder,filter:(_=o.unref(t).attrs.filter)!=null?_:!1,"show-clear":($=o.unref(t).attrs.showClear)!=null?$:!1,class:o.normalizeClass(o.unref(t).attrs.class),onChange:r},null,8,["id","modelValue","options","placeholder","filter","show-clear","class"])}}}),Or=o.defineComponent({name:"PrimeMultiSelect",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var f,y,_;const l=o.resolveComponent("MultiSelect");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=$=>o.unref(t)._value=$),options:(y=(f=o.unref(t))==null?void 0:f.attrs)==null?void 0:y.options,"option-label":"label","option-value":"value",placeholder:o.unref(t).attrs.placeholder,filter:(_=o.unref(t).attrs.filter)!=null?_:!1,class:o.normalizeClass(o.unref(t).attrs.class),onChange:r},null,8,["id","modelValue","options","placeholder","filter","class"])}}}),Vr=o.defineComponent({name:"PrimeCalendar",props:{context:Object},setup(e){const n=e,t=n.context;function r(s){t==null||t.node.input(t==null?void 0:t._value)}function i(s){t==null||t.node.input(s)}return(s,l)=>{const f=o.resolveComponent("Calendar");return o.openBlock(),o.createBlock(f,{id:n.context.id,modelValue:o.unref(t)._value,"onUpdate:modelValue":l[0]||(l[0]=y=>o.unref(t)._value=y),class:o.normalizeClass(o.unref(t).attrs.class),"date-format":o.unref(t).attrs.dateFormat,"show-icon":o.unref(t).attrs.showIcon,icon:o.unref(t).attrs.icon,onDateSelect:i,onInput:r},null,8,["id","modelValue","class","date-format","show-icon","icon"])}}}),Er=o.defineComponent({name:"PrimeSlider",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var f,y,_,$;const l=o.resolveComponent("Slider");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=d=>o.unref(t)._value=d),min:(f=o.unref(t).attrs.min)!=null?f:0,max:(y=o.unref(t).attrs.max)!=null?y:100,step:(_=o.unref(t).attrs.step)!=null?_:void 0,range:($=o.unref(t).attrs.range)!=null?$:!1,onChange:r},null,8,["id","modelValue","min","max","step","range"])}}}),ft=W(mr,{props:["iconRight","iconLeft"]}),ut=W(yr,{props:["iconRight","iconLeft"]}),ct=W(hr,{props:["feedback","toggleMask"]}),pt=W(gr,{props:["rows"]}),dt=W($r,{props:[]}),mt=W(kr,{props:[]}),yt=W(Sr,{props:[]}),ht=W(vr,{props:[]}),gt=W(Or,{props:[]}),_t=W(Vr,{props:[]}),bt=W(Er,{props:[]}),Pr={primeInputText:ft,primeInputNumber:ut,primePassword:ct,primeCheckBox:dt,primeInputSwitch:mt,primeInputTextArea:pt,primeEditor:yt,primeDropdown:ht,primeMultiSelect:gt,primeCalendar:_t,primeSlider:bt};k.primeCalendarDefinition=_t,k.primeCheckBoxDefinition=dt,k.primeDropdownDefinition=ht,k.primeEditorDefinition=yt,k.primeInputNumberDefinition=ut,k.primeInputSwitchDefinition=mt,k.primeInputTextAreaDefinition=pt,k.primeInputTextDefinition=ft,k.primeInputs=Pr,k.primeMultiSelectDefinition=gt,k.primePasswordDefinition=ct,k.primeSliderDefinition=bt,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(A,o){typeof exports=="object"&&typeof module!="undefined"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(A=typeof globalThis!="undefined"?globalThis:A||self,o(A["formkit-primevue"]={},A.Vue))})(this,function(A,o){"use strict";var Dr=Object.defineProperty,Fr=Object.defineProperties;var Br=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Ct=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable;var kt=(A,o,M)=>o in A?Dr(A,o,{enumerable:!0,configurable:!0,writable:!0,value:M}):A[o]=M,R=(A,o)=>{for(var M in o||(o={}))Ct.call(o,M)&&kt(A,M,o[M]);if(ce)for(var M of ce(o))St.call(o,M)&&kt(A,M,o[M]);return A},pe=(A,o)=>Fr(A,Br(o));var Pe=(A,o)=>{var M={};for(var z in A)Ct.call(A,z)&&o.indexOf(z)<0&&(M[z]=A[z]);if(A!=null&&ce)for(var z of ce(A))o.indexOf(z)<0&&St.call(A,z)&&(M[z]=A[z]);return M};function M(){return Math.random().toString(36).substring(2,15)}function z(e,n){const t=e instanceof Set?e:new Set(e);return n&&n.forEach(r=>t.add(r)),[...t]}function L(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function de(e,n,t=!0,r=["__key"]){if(e===n)return!0;if(typeof n=="object"&&typeof e=="object"){if(e instanceof Map||e instanceof Set||e instanceof Date||e===null||n===null||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i of r)if((i in e||i in n)&&e[i]!==n[i])return!1;for(const i in e)if(!(i in n)||e[i]!==n[i]&&!t||t&&!de(e[i],n[i],t,r))return!1;return!0}return!1}function me(e){return Object.prototype.toString.call(e)==="[object Object]"}function ye(e){return me(e)||Array.isArray(e)}function ee(e){if(me(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(me(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)}function te(e,n,t=!1,r=!1){if(n===null)return null;const i={};if(typeof n=="string")return n;for(const s in e)if(L(n,s)&&(n[s]!==void 0||!r)){if(t&&Array.isArray(e[s])&&Array.isArray(n[s])){i[s]=e[s].concat(n[s]);continue}if(n[s]===void 0)continue;ee(e[s])&&ee(n[s])?i[s]=te(e[s],n[s],t,r):i[s]=n[s]}else i[s]=e[s];for(const s in n)!L(i,s)&&n[s]!==void 0&&(i[s]=n[s]);return i}function Ot(e){if(e[0]!=='"'&&e[0]!=="'"||e[0]!==e[e.length-1])return!1;const n=e[0];for(let t=1;t<e.length;t++)if(e[t]===n&&(t===1||e[t-1]!=="\\")&&t!==e.length-1)return!1;return!0}function Vt(e){if(!e.length)return"";let n="",t="";for(let r=0;r<e.length;r++){const i=e.charAt(r);(i!=="\\"||t==="\\")&&(n+=i),t=i}return n}function H(...e){return e.reduce((n,t)=>{const w=t,{value:r,name:i,modelValue:s,config:f,plugins:p}=w,g=Pe(w,["value","name","modelValue","config","plugins"]);return Object.assign(n,g)},{})}function At(e){const n=[];let t="",r=0,i="",s="";for(let f=0;f<e.length;f++){const p=e.charAt(f);p===i&&s!=="\\"?i="":(p==="'"||p==='"')&&!i&&s!=="\\"?i=p:p==="("&&!i?r++:p===")"&&!i&&r--,p===","&&!i&&r===0?(n.push(t),t=""):(p!==" "||i)&&(t+=p),s=p}return t&&n.push(t),n}function je(e,n){const t={},r=n.filter(s=>s instanceof RegExp),i=new Set(n);for(const s in e)!i.has(s)&&!r.some(f=>f.test(s))&&(t[s]=e[s]);return t}function Te(e,n){const t={},r=n.filter(i=>i instanceof RegExp);return n.forEach(i=>{i instanceof RegExp||(t[i]=e[i])}),Object.keys(e).forEach(i=>{r.some(s=>s.test(i))&&(t[i]=e[i])}),t}function ne(e){return e.replace(/-([a-z0-9])/gi,(n,t)=>t.toUpperCase())}function Le(e){return e.replace(/([a-z0-9])([A-Z])/g,(n,t,r)=>t+"-"+r.toLowerCase()).replace(" ","-").toLowerCase()}function Z(e,n=["__key","__init"]){if(e===null||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||typeof File=="function"&&e instanceof File)return e;let t;Array.isArray(e)?t=e.map(r=>typeof r=="object"?Z(r,n):r):t=Object.keys(e).reduce((r,i)=>(r[i]=typeof e[i]=="object"?Z(e[i],n):e[i],r),{});for(const r of n)r in e&&Object.defineProperty(t,r,{enumerable:!1,value:e[r]});return t}function J(e){return typeof e=="object"?Z(e):e}function It(e,n){if(!e||typeof e!="object")return null;const t=n.split(".");let r=e;for(const i in t){const s=t[i];if(L(r,s)&&(r=r[s]),+i===t.length-1)return r;if(!r||typeof r!="object")return null}return null}function Me(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function Q(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function Re(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function he(){const e=[];let n=0;const t=i=>e.push(i),r=i=>{const s=e[n];return typeof s=="function"?s(i,f=>(n++,r(f===void 0?i:f))):(n=0,i)};return t.dispatch=r,t.unshift=i=>e.unshift(i),t.remove=i=>{const s=e.indexOf(i);s>-1&&e.splice(s,1)},t}function De(){const e=new Map,n=new Map;let t;const r=(i,s)=>{if(t){t.set(s.name,[i,s]);return}e.has(s.name)&&e.get(s.name).forEach(f=>{(s.origin===i||f.modifiers.includes("deep"))&&f.listener(s)}),s.bubble&&i.bubble(s)};return r.on=(i,s)=>{const[f,...p]=i.split("."),g=s.receipt||M(),w={modifiers:p,event:f,listener:s,receipt:g};return e.has(f)?e.get(f).push(w):e.set(f,[w]),n.has(g)?n.get(g).push(f):n.set(g,[f]),g},r.off=i=>{var s;n.has(i)&&((s=n.get(i))===null||s===void 0||s.forEach(f=>{const p=e.get(f);Array.isArray(p)&&e.set(f,p.filter(g=>g.receipt!==i))}),n.delete(i))},r.pause=i=>{t||(t=new Map),i&&i.walk(s=>s._e.pause())},r.play=i=>{if(!t)return;const s=t;t=void 0,s.forEach(([f,p])=>r(f,p)),i&&i.walk(f=>f._e.play())},r}function Et(e,n,t,r,i=!0){return n._e(e,{payload:r,name:t,bubble:i,origin:e}),e}function Pt(e,n,t){return oe(e.parent)&&e.parent._e(e.parent,t),e}function jt(e,n,t,r){return n._e.on(t,r)}function Tt(e,n,t){return n._e.off(t),e}const ge=he();ge((e,n)=>(e.message||(e.message=String(`E${e.code}`)),n(e)));const _e=he();_e((e,n)=>{e.message||(e.message=String(`W${e.code}`));const t=n(e);return console&&typeof console.warn=="function"&&console.warn(t.message),t});function re(e,n={}){_e.dispatch({code:e,data:n})}function B(e,n={}){throw Error(ge.dispatch({code:e,data:n}).message)}function ie(e,n){const t=R({blocking:!1,key:M(),meta:{},type:"state",visible:!0},e);return n&&t.value&&t.meta.localize!==!1&&(t.value=n.t(t),t.meta.locale=n.config.locale),t}const Fe={apply:Bt,set:Mt,remove:Be,filter:Dt,reduce:Ft,release:zt,touch:Rt};function Lt(e=!1){const n={};let t,r=e,i=[];const s=new Map;let f;const p=new Proxy(n,{get(...g){const[w,v]=g;return v==="buffer"?r:v==="_b"?i:v==="_m"?s:v==="_r"?f:L(Fe,v)?Fe[v].bind(null,n,p,t):Reflect.get(...g)},set(g,w,v){return w==="_n"?(t=v,f==="__n"&&Ne(t,p),!0):w==="_b"?(i=v,!0):w==="buffer"?(r=v,!0):w==="_r"?(f=v,!0):(B(101,t),!1)}});return p}function Mt(e,n,t,r){if(n.buffer)return n._b.push([[r]]),n;if(e[r.key]!==r){if(typeof r.value=="string"&&r.meta.localize!==!1){const s=r.value;r.value=t.t(r),r.value!==s&&(r.meta.locale=t.props.locale)}const i=`message-${L(e,r.key)?"updated":"added"}`;e[r.key]=Object.freeze(t.hook.message.dispatch(r)),t.emit(i,r)}return n}function Rt(e,n){for(const t in e){const r=R({},e[t]);n.set(r)}}function Be(e,n,t,r){if(L(e,r)){const i=e[r];delete e[r],t.emit("message-removed",i)}return n.buffer===!0&&(n._b=n._b.filter(i=>(i[0]=i[0].filter(s=>s.key!==r),i[1]||i[0].length))),n}function Dt(e,n,t,r,i){for(const s in e){const f=e[s];(!i||f.type===i)&&!r(f)&&Be(e,n,t,s)}}function Ft(e,n,t,r,i){for(const s in e){const f=e[s];i=r(i,f)}return i}function Bt(e,n,t,r,i){if(Array.isArray(r)){if(n.buffer){n._b.push([r,i]);return}const s=new Set(r.map(f=>(n.set(f),f.key)));typeof i=="string"?n.filter(f=>f.type!==i||s.has(f.key)):typeof i=="function"&&n.filter(f=>!i(f)||s.has(f.key))}else for(const s in r){const f=t.at(s);f?f.store.apply(r[s],i):xt(t,n,s,r[s],i)}}function Nt(e,...n){const t=`${e.name}-set`,r=i=>ie({key:Re(i),type:"error",value:i,meta:{source:t,autoClear:!0}});return n.filter(i=>!!i).map(i=>{if(typeof i=="string"&&(i=[i]),Array.isArray(i))return i.map(s=>r(s));{const s={};for(const f in i)Array.isArray(i[f])?s[f]=i[f].map(p=>r(p)):s[f]=[r(i[f])];return s}})}function xt(e,n,t,r,i){var s;const f=n._m;f.has(t)||f.set(t,[]),n._r||(n._r=Ne(e,n)),(s=f.get(t))===null||s===void 0||s.push([r,i])}function Ne(e,n){return e.on("child.deep",({payload:t})=>{n._m.forEach((r,i)=>{e.at(i)===t&&(r.forEach(([s,f])=>{t.store.apply(s,f)}),n._m.delete(i))}),n._m.size===0&&n._r&&(e.off(n._r),n._r=void 0)})}function zt(e,n){n.buffer=!1,n._b.forEach(([t,r])=>n.apply(t,r)),n._b=[]}function Wt(){const e={};let n;return{count:(...t)=>qt(n,e,...t),init(t){n=t,t.on("message-added.deep",ze(e,1)),t.on("message-removed.deep",ze(e,-1))},merge:t=>We(n,e,t),settled(t){return L(e,t)?e[t].promise:Promise.resolve()},unmerge:t=>We(n,e,t,!0),value(t){return L(e,t)?e[t].count:0}}}function qt(e,n,t,r,i=0){if(r=Ut(r||t),!L(n,t)){const s={condition:r,count:0,name:t,node:e,promise:Promise.resolve(),resolve:()=>{}};n[t]=s,i=e.store.reduce((f,p)=>f+s.condition(p)*1,i),e.each(f=>{f.ledger.count(s.name,s.condition),i+=f.ledger.value(s.name)})}return xe(n[t],i).promise}function Ut(e){return typeof e=="function"?e:n=>n.type===e}function xe(e,n){const t=e.count,r=e.count+n;return e.count=r,t===0&&r!==0?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise(i=>e.resolve=i)):t!==0&&r===0&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function ze(e,n){return t=>{for(const r in e){const i=e[r];i.condition(t.payload)&&xe(i,n)}}}function We(e,n,t,r=!1){for(const i in n){const s=n[i].condition;r||t.ledger.count(i,s);const f=t.ledger.value(i)*(r?-1:1);if(!!e)do e.ledger.count(i,s,f),e=e.parent;while(e)}}const be=new Map,se=new Map,we=De(),Kt=[];function Ht(e){e.props.id&&(be.set(e.props.id,e),se.set(e,e.props.id),we(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function Jt(e){if(se.has(e)){const n=se.get(e);se.delete(e),be.delete(n),we(e,{payload:null,name:n,bubble:!1,origin:e})}}function qe(e){return be.get(e)}function Zt(e,n){Kt.push(we.on(e,n))}function Ue(e,n,t){let r=!0;return n in e.config._t?r=!1:e.emit(`config:${n}`,t,!1),n in e.props||(e.emit("prop",{prop:n,value:t}),e.emit(`prop:${n}`,t)),r}function Qt(e){const n=document.getElementById(e);if(n instanceof HTMLFormElement){const t=new Event("submit",{cancelable:!0,bubbles:!0});n.dispatchEvent(t);return}re(151,e)}function Yt(e){const n=t=>{for(const r in t.store){const i=t.store[r];i.type==="error"||i.type==="ui"&&r==="incomplete"?t.store.remove(r):i.type==="state"&&t.store.set(pe(R({},i),{value:!1}))}};n(e),e.walk(n)}function Gt(e,n){const t=typeof e=="string"?qe(e):e;if(t){const r=s=>J(s.props.initial)||(s.type==="group"?{}:s.type==="list"?[]:void 0);t._e.pause(t),t.input(J(n)||r(t),!1),t.walk(s=>s.input(r(s),!1));const i=r(t);return t.input(typeof i=="object"?J(n)||Q(i):i,!1),t._e.play(t),Yt(t),t.emit("reset",t),t}re(152,e)}const Xt={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${Le(e)}`]:!0})},Ke=Symbol("index"),ve=Symbol("removed"),$e=Symbol("moved"),He=Symbol("inserted");function en(e){return e.type==="list"&&Array.isArray(e._value)}function oe(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const ae=(e,n,t)=>{B(102,[e,t])},tn={_c:I(kn,ae,!1),add:I(yn),addProps:I(mn),address:I(Sn,ae,!1),at:I(On),bubble:I(Pt),clearErrors:I(Ln),calm:I(cn),config:I(!1),define:I(dn),disturb:I(un),destroy:I(pn),hydrate:I(fn),index:I($n,vn,!1),input:I(Ze),each:I(_n),emit:I(Et),find:I(An),on:I(jt),off:I(Tt),parent:I(!1,hn),plugins:I(!1),remove:I(gn),root:I(En,ae,!1),reset:I(Tn),resetConfig:I(wn),setErrors:I(Ge),submit:I(jn),t:I(Pn),use:I(ke),name:I(Cn,!1,!1),walk:I(bn)};function nn(){return new Map(Object.entries(tn))}function I(e,n,t=!0){return{get:e?(r,i)=>t?(...s)=>e(r,i,...s):e(r,i):!1,set:n!==void 0?n:ae.bind(null)}}function rn(){const e=new Map;return new Proxy(e,{get(n,t){return e.has(t)||e.set(t,he()),e.get(t)}})}let sn=0,on=0;function an(e){var n,t;return((n=e.parent)===null||n===void 0?void 0:n.type)==="list"?Ke:e.name||`${((t=e.props)===null||t===void 0?void 0:t.type)||"input"}_${++sn}`}function Je(e){return e.type==="group"?Q(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?Q(Array.isArray(e.value)?e.value:[]):e.value===null?"":e.value}function Ze(e,n,t,r=!0){return n._value=ln(e,e.hook.input.dispatch(t)),e.emit("input",n._value),n.isSettled&&e.disturb(),r?(n._tmo&&clearTimeout(n._tmo),n._tmo=setTimeout(le,e.props.delay,e,n)):le(e,n),n.settled}function ln(e,n){switch(e.type){case"input":break;case"group":(!n||typeof n!="object")&&B(107,[e,n]);break;case"list":Array.isArray(n)||B(108,[e,n]);break}return n}function le(e,n,t=!0,r=!0){n._value=n.value=e.hook.commit.dispatch(n._value),e.type!=="input"&&r&&e.hydrate(),e.emit("commit",n.value),t&&e.calm()}function Qe(e,{name:n,value:t,from:r}){if(!Object.isFrozen(e._value)){if(en(e)){const i=t===ve?[]:t===$e&&typeof r=="number"?e._value.splice(r,1):[t];e._value.splice(n,t===$e||r===He?0:1,...i);return}t!==ve?e._value[n]=t:delete e._value[n]}}function fn(e,n){const t=n._value;return n.children.forEach(r=>{if(typeof t=="object")if(r.name in t){const i=r.type!=="input"||t[r.name]&&typeof t[r.name]=="object"?Q(t[r.name]):t[r.name];r.input(i,!1)}else(e.type!=="list"||typeof r.name=="number")&&Qe(n,{name:r.name,value:r.value}),t.__init||(r.type==="group"?r.input({},!1):r.type==="list"?r.input([],!1):r.input(void 0,!1))}),e}function un(e,n){var t;return n._d<=0&&(n.isSettled=!1,e.emit("settled",!1,!1),n.settled=new Promise(r=>{n._resolve=r}),e.parent&&((t=e.parent)===null||t===void 0||t.disturb())),n._d++,e}function cn(e,n,t){var r;if(t!==void 0&&e.type!=="input")return Qe(n,t),le(e,n,!0,!1);n._d>0&&n._d--,n._d===0&&(n.isSettled=!0,e.emit("settled",!0,!1),e.parent&&((r=e.parent)===null||r===void 0||r.calm({name:e.name,value:n.value})),n._resolve&&n._resolve(n.value))}function pn(e,n){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&e.parent.remove(e),Jt(e),n._value=n.value=void 0,e.emit("destroyed",e)}function dn(e,n,t){n.type=t.type,n.props.definition=Z(t),n.value=n._value=Je({type:e.type,value:n.value}),t.features&&t.features.forEach(r=>r(e)),t.props&&e.addProps(t.props),e.emit("defined",t)}function mn(e,n,t){var r;if(e.props.attrs){const i=R({},e.props.attrs);e.props._emit=!1;for(const f in i){const p=ne(f);t.includes(p)&&(e.props[p]=i[f],delete i[f])}const s=J(n._value);e.props.initial=e.type!=="input"?Q(s):s,e.props._emit=!0,e.props.attrs=i,e.props.definition&&(e.props.definition.props=[...((r=e.props.definition)===null||r===void 0?void 0:r.props)||[],...t])}return e.emit("added-props",t),e}function yn(e,n,t,r){if(e.type==="input"&&B(100,e),t.parent&&t.parent!==e&&t.parent.remove(t),n.children.includes(t)||(r!==void 0&&e.type==="list"?(n.children.splice(r,0,t),Array.isArray(e.value)&&e.value.length<n.children.length&&e.disturb().calm({name:r,value:t.value,from:He})):n.children.push(t),t.isSettled||e.disturb()),t.parent!==e){if(t.parent=e,t.parent!==e)return e.remove(t),t.parent.add(t),e}else t.use(e.plugins);return le(e,n,!1),e.ledger.merge(t),e.emit("child",t),e}function hn(e,n,t,r){return oe(r)?(e.parent&&e.parent!==r&&e.parent.remove(e),n.parent=r,e.resetConfig(),r.children.includes(e)?e.use(r.plugins):r.add(e),!0):r===null?(n.parent=null,!0):!1}function gn(e,n,t){const r=n.children.indexOf(t);if(r!==-1){t.isSettled&&e.disturb(),n.children.splice(r,1);let i=Me(t.props.preserve),s=t.parent;for(;i===void 0&&s;)i=Me(s.props.preserve),s=s.parent;i?e.calm():e.calm({name:e.type==="list"?r:t.name,value:ve}),t.parent=null,t.config._rmn=t}return e.ledger.unmerge(t),e}function _n(e,n,t){n.children.forEach(r=>t(r))}function bn(e,n,t,r=!1){n.children.forEach(i=>{(t(i)!==!1||!r)&&i.walk(t)})}function wn(e,n){const t=e.parent||void 0;n.config=Ye(e.config._t,t),e.walk(r=>r.resetConfig())}function ke(e,n,t,r=!0,i=!0){return Array.isArray(t)||t instanceof Set?(t.forEach(s=>ke(e,n,s)),e):(n.plugins.has(t)||(i&&typeof t.library=="function"&&t.library(e),r&&t(e)!==!1&&(n.plugins.add(t),e.children.forEach(s=>s.use(t)))),e)}function vn(e,n,t,r){if(oe(e.parent)){const i=e.parent.children,s=r>=i.length?i.length-1:r<0?0:r,f=i.indexOf(e);return f===-1?!1:(i.splice(f,1),i.splice(s,0,e),e.parent.children=i,e.parent.type==="list"&&e.parent.disturb().calm({name:s,value:$e,from:f}),!0)}return!1}function $n(e){if(e.parent){const n=[...e.parent.children].indexOf(e);return n===-1?e.parent.children.length:n}return-1}function kn(e,n){return n}function Cn(e,n){var t;return((t=e.parent)===null||t===void 0?void 0:t.type)==="list"?e.index:n.name!==Ke?n.name:e.index}function Sn(e,n){return n.parent?n.parent.address.concat([e.name]):[e.name]}function On(e,n,t){const r=typeof t=="string"?t.split(e.config.delimiter):t;if(!r.length)return;const i=r[0];let s=e.parent;for(s||(String(r[0])===String(e.name)&&r.shift(),s=e),i==="$parent"&&r.shift();s&&r.length;){const f=r.shift();switch(f){case"$root":s=e.root;break;case"$parent":s=s.parent;break;case"$self":s=e;break;default:s=s.children.find(p=>String(p.name)===String(f))||Vn(s,f)}}return s||void 0}function Vn(e,n){const t=String(n).match(/^(find)\((.*)\)$/);if(t){const[,r,i]=t,s=i.split(",").map(f=>f.trim());switch(r){case"find":return e.find(s[0],s[1]);default:return}}}function An(e,n,t,r){return In(e,t,r)}function In(e,n,t="name"){const r=typeof t=="string"?s=>s[t]==n:t,i=[e];for(;i.length;){const s=i.shift();if(r(s,n))return s;i.push(...s.children)}}function En(e){let n=e;for(;n.parent;)n=n.parent;return n}function Ye(e={},n){let t;return new Proxy(e,{get(...r){const i=r[1];if(i==="_t")return e;const s=Reflect.get(...r);if(s!==void 0)return s;if(n){const f=n.config[i];if(f!==void 0)return f}if(e.rootConfig&&typeof i=="string"){const f=e.rootConfig[i];if(f!==void 0)return f}return i==="delay"&&(t==null?void 0:t.type)==="input"?20:Xt[i]},set(...r){const i=r[1],s=r[2];if(i==="_n")return t=s,e.rootConfig&&e.rootConfig._add(t),!0;if(i==="_rmn")return e.rootConfig&&e.rootConfig._rm(t),t=void 0,!0;if(!de(e[i],s,!1)){const f=Reflect.set(...r);return t&&(t.emit(`config:${i}`,s,!1),Ue(t,i,s),t.walk(p=>Ue(p,i,s),!0)),f}return!0}})}function Pn(e,n,t,r="ui"){const i=typeof t=="string"?{key:t,value:t,type:r}:t,s=e.hook.text.dispatch(i);return e.emit("text",s,!1),s.value}function jn(e){const n=e.name;do{if(e.props.isForm===!0)break;e.parent||B(106,n),e=e.parent}while(e);e.props.id&&Qt(e.props.id)}function Tn(e,n,t){return Gt(e,t)}function Ge(e,n,t,r){const i=`${e.name}-set`;return Nt(e,t,r).forEach(s=>{e.store.apply(s,f=>f.meta.source===i)}),e}function Ln(e,n,t=!0){if(Ge(e,n,[]),t){const r=`${e.name}-set`;e.walk(i=>{i.store.filter(s=>!(s.type==="error"&&s.meta&&s.meta.source===r))})}return e}function Mn(e){return L(e.props,"id")||(e.props.id=`input_${on++}`),e}function Rn(e){const n={initial:typeof e=="object"?J(e):e};let t,r=!0;return new Proxy(n,{get(...i){const[s,f]=i;if(L(n,f))return Reflect.get(...i);if(t&&typeof f=="string"&&t.config[f]!==void 0)return t.config[f]},set(i,s,f,p){if(s==="_n")return t=f,!0;if(s==="_emit")return r=f,!0;const{prop:g,value:w}=t.hook.prop.dispatch({prop:s,value:f});if(!de(n[g],w,!1)||typeof w=="object"){const v=Reflect.set(i,g,w,p);return r&&(t.emit("prop",{prop:g,value:w}),typeof g=="string"&&t.emit(`prop:${g}`,w)),v}return!0}})}function Dn(e,n){if(e.props.definition)return e.define(e.props.definition);for(const t of n){if(e.props.definition)return;typeof t.library=="function"&&t.library(e)}}function Fn(e){const n=Je(e),t=Ye(e.config||{},e.parent);return{_d:0,_e:De(),_resolve:!1,_tmo:!1,_value:n,children:z(e.children||[]),config:t,hook:rn(),isCreated:!1,isSettled:!0,ledger:Wt(),name:an(e),parent:e.parent||null,plugins:new Set,props:Rn(n),settled:Promise.resolve(n),store:Lt(!0),traps:nn(),type:e.type||"input",value:n}}function Bn(e,n){var t;if(e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,n.props&&Object.assign(e.props,n.props),e.props._emit=!0,Dn(e,new Set([...n.plugins||[],...e.parent?e.parent.plugins:[]])),n.plugins)for(const r of n.plugins)ke(e,e._c,r,!0,!1);return Mn(e),e.each(r=>e.add(r)),e.parent&&e.parent.add(e,n.index),e.type==="input"&&e.children.length&&B(100,e),Ze(e,e._c,e._value,!1),e.store.release(),!((t=n.props)===null||t===void 0)&&t.id&&Ht(e),e.emit("created",e),e.isCreated=!0,e}function Nn(e){const n=e||{},t=Fn(n),r=new Proxy(t,{get(...i){const[,s]=i;if(s==="__FKNode__")return!0;const f=t.traps.get(s);return f&&f.get?f.get(r,t):Reflect.get(...i)},set(...i){const[,s,f]=i,p=t.traps.get(s);return p&&p.set?p.set(r,t,s,f):Reflect.set(...i)}});return Bn(r,n)}function xn(e){return typeof e!="string"&&L(e,"$el")}function Xe(e){return typeof e!="string"&&L(e,"$cmp")}function Y(e){return!e||typeof e=="string"?!1:L(e,"if")&&L(e,"then")}function zn(e){return typeof e!="string"&&"$formkit"in e}function Wn(e){if(typeof e=="string")return{$el:"text",children:e};if(zn(e)){const n=e,{$formkit:t,for:r,if:i,children:s,key:f,bind:p}=n,g=Pe(n,["$formkit","for","if","children","key","bind"]);return Object.assign({$cmp:"FormKit",props:pe(R({},g),{type:t})},i?{if:i}:{},r?{for:r}:{},s?{children:s}:{},f?{key:f}:{},p?{bind:p}:{})}return e}function W(e){let n;const t=new Set,r=function(d,c){return typeof d=="function"?d(c):d},i=[{"&&":(m,d,c)=>r(m,c)&&r(d,c),"||":(m,d,c)=>r(m,c)||r(d,c)},{"===":(m,d,c)=>r(m,c)===r(d,c),"!==":(m,d,c)=>r(m,c)!==r(d,c),"==":(m,d,c)=>r(m,c)==r(d,c),"!=":(m,d,c)=>r(m,c)!=r(d,c),">=":(m,d,c)=>r(m,c)>=r(d,c),"<=":(m,d,c)=>r(m,c)<=r(d,c),">":(m,d,c)=>r(m,c)>r(d,c),"<":(m,d,c)=>r(m,c)<r(d,c)},{"+":(m,d,c)=>r(m,c)+r(d,c),"-":(m,d,c)=>r(m,c)-r(d,c)},{"*":(m,d,c)=>r(m,c)*r(d,c),"/":(m,d,c)=>r(m,c)/r(d,c),"%":(m,d,c)=>r(m,c)%r(d,c)}],s=i.reduce((m,d)=>m.concat(Object.keys(d)),[]),f=new Set(s.map(m=>m.charAt(0)));function p(m,d,c,$){const S=m.filter(l=>l.startsWith(d));return S.length?S.find(l=>$.length>=c+l.length&&$.substring(c,c+l.length)===l?l:!1):!1}function g(m,d,c=1){let $=c?d.substring(m+1).trim():d.substring(0,m).trim();if(!$.length)return-1;if(!c){const l=$.split("").reverse(),a=l.findIndex(u=>f.has(u));$=l.slice(a).join("")}const S=$[0];return i.findIndex(l=>{const a=Object.keys(l);return!!p(a,S,0,$)})}function w(m,d){let c="";const $=d.length;let S=0;for(let l=m;l<$;l++){const a=d.charAt(l);if(a==="(")S++;else if(a===")")S--;else if(S===0&&a===" ")continue;if(S===0&&p(s,a,l,d))return[c,l-1];c+=a}return[c,d.length-1]}function v(m,d=0){const c=i[d],$=m.length,S=Object.keys(c);let l=0,a=!1,u=null,y="",k=null,b,E="",O="",j="",T="",x=0;const F=(P,U)=>{P?j+=U:y+=U};for(let P=0;P<$;P++)if(E=O,O=m.charAt(P),(O==="'"||O==='"')&&E!=="\\"&&(l===0&&!a||l&&!T)){l?T=O:a=O,F(l,O);continue}else if(a&&(O!==a||E==="\\")||T&&(O!==T||E==="\\")){F(l,O);continue}else if(a===O){a=!1,F(l,O);continue}else if(T===O){T=!1,F(l,O);continue}else{if(O===" ")continue;if(O==="(")l===0?x=P:j+=O,l++;else if(O===")")if(l--,l===0){const U=typeof y=="string"&&y.startsWith("$")?y:void 0,$t=U&&m.charAt(P+1)===".";let G="";$t&&([G,P]=w(P+2,m));const ue=u?d:g(x,m,0),X=g(P,m);ue===-1&&X===-1?y=h(j,-1,U,G):u&&(ue>=X||X===-1)&&d===ue?(k=u.bind(null,h(j,-1,U,G)),u=null,y=""):X>ue&&d===X?y=h(j,-1,U,G):y+=`(${j})${$t?`.${G}`:""}`,j=""}else j+=O;else if(l===0&&(b=p(S,O,P,m))){P===0&&B(103,[b,m]),P+=b.length-1,P===m.length-1&&B(104,[b,m]),u?y&&(k=u.bind(null,h(y,d)),u=c[b].bind(null,k),y=""):k?(u=c[b].bind(null,h(k,d)),k=null):(u=c[b].bind(null,h(y,d)),y="");continue}else F(l,O)}return y&&u&&(u=u.bind(null,h(y,d))),u=!u&&k?k:u,!u&&y&&(u=(P,U)=>typeof P=="function"?P(U):P,u=u.bind(null,h(y,d))),!u&&!y&&B(105,m),u}function h(m,d,c,$){if(c){const S=h(c,i.length);let l,a=$?W(`$${$}`):!1;if(typeof S=="function"){const u=At(String(m)).map(y=>h(y,-1));return y=>{const k=S(y);return typeof k!="function"?(re(150,c),k):(l=k(...u.map(b=>typeof b=="function"?b(y):b)),a&&(a=a.provide(b=>{const E=n(b);return b.reduce((j,T)=>{if(T===$||($==null?void 0:$.startsWith(`${T}(`))){const F=It(l,T);j[T]=()=>F}else j[T]=E[T];return j},{})})),a?a():l)}}}else if(typeof m=="string"){if(m==="true")return!0;if(m==="false")return!1;if(m==="undefined")return;if(Ot(m))return Vt(m.substring(1,m.length-1));if(!isNaN(+m))return Number(m);if(d<i.length-1)return v(m,d+1);if(m.startsWith("$")){const S=m.substring(1);return t.add(S),function(a){return S in a?a[S]():void 0}}return m}return m}const _=v(e.startsWith("$:")?e.substring(2):e),C=Array.from(t);function V(m){return n=m,Object.assign(_.bind(null,m(C)),{provide:V})}return Object.assign(_,{provide:V})}const qn=q("outer",()=>({$el:"div",attrs:{class:"$classes.outer","data-type":"$type","data-multiple":"$attrs.multiple","data-disabled":"$disabled || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined"}})),Un=q("wrapper",()=>({$el:"div",attrs:{class:"$classes.wrapper"}})),Kn=q("inner",()=>({$el:"div",attrs:{class:"$classes.inner"}})),Hn=(e={},n=[],t="help",r="$help")=>({if:`$slots.${t}`,then:`$slots.${t}`,else:te({$el:"div",attrs:{id:`$: "help-" + ${t=="optionHelp"?"$option.attrs.id":"$id"}`,class:`$classes.${t}`},if:r,children:n},e)}),Jn=q("messages",()=>({$el:"ul",if:"$fns.length($messages)",attrs:{class:"$classes.messages","aria-live":'$type === "form" && "assertive" || "polite"'}})),Zn=q("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",class:"$classes.message",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Qn=q("prefix",()=>({$el:null})),Yn=q("suffix",()=>({$el:null}));function Ce(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function Gn(e,n={}){return typeof e=="string"?Ce(n)||typeof n=="string"?n:e:Array.isArray(e)?Ce(n)?n:e:te(e,n)}function q(e,n){return(t={},r=void 0)=>{const i=typeof n=="function"?n(r):typeof n=="object"?Z(n):n;Ce(i)&&!("children"in i)&&r&&(Array.isArray(r)?r.length&&(i.children=r):i.children=[r]);const f=Gn(i,t);return{if:`$slots.${e}`,then:`$slots.${e}`,else:Array.isArray(f)?f:[f]}}}function Xn(e){return(n={})=>{const t=q("input",e)(n.input);return[qn(n.outer,[Un(n.wrapper,[er(n.label,"$label"),Kn(n.inner,[Qn(n.prefix),...Array.isArray(t)?t:[t],Yn(n.suffix)])]),Hn(n.help,"$help"),Jn(n.messages,[Zn(n.message,"$message.value")])])]}}const er=q("label",()=>({$el:"label",if:"$label",attrs:{for:"$id",class:"$classes.label"}}));ie({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let Se=!1;const et={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,n]})=>`You cannot directly assign node.${n} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,n]})=>`Schema expressions cannot end with an operator (${e} in "${n}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,n]})=>`Cannot set ${e.name} to non object value: ${n}`,108:({data:[e,n]})=>`Cannot set ${e.name} to non array value: ${n}`,600:({data:e})=>`Unknown input type${typeof e.props.type=="string"?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${typeof e.props.type=="string"?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},tt={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:e})=>`Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`};Se||ge((e,n)=>{if(e.code in et){const t=et[e.code];e.message=typeof t=="function"?t(e):t}return n(e)}),Se||_e((e,n)=>{if(e.code in tt){const t=tt[e.code];e.message=typeof t=="function"?t(e):t}return n(e)}),Se=!0;const Oe={};let D;const K=new Map,tr="__raw__",nr=/[a-zA-Z0-9\-][cC]lass$/;function rr(e,n){const t=o.ref(null);if(e==="get"){const i={};return t.value=ir.bind(null,i),t}const r=e.split(".");return o.watchEffect(()=>t.value=Ve(n,r)),t}function Ve(e,n){if(Array.isArray(e)){for(const r of e){const i=r!==!1&&Ve(r,n);if(i!==void 0)return i}return}let t;return n.reduce((r,i,s,f)=>{if(typeof r!="object")return t=void 0,f.splice(1);const p=r[i];return s===n.length-1&&p!==void 0&&(t=p),r[i]},e),t}function ir(e,n){if(typeof n!="string")return re(650);if(n in e||(e[n]=o.ref(void 0)),e[n].value===void 0){e[n].value=null;const t=qe(n);t&&(e[n].value=t.context),Zt(n,({payload:r})=>{e[n].value=oe(r)?r.context:r})}return e[n].value}function nt(e,n){function t(h,_){const C=v(W(_.if),{if:!0}),V=g(h,_.then),m=_.else?g(h,_.else):null;return[C,V,m]}function r(h,_){var C,V;const m=v(W(h.if));let d=()=>_,c=()=>_;return typeof h.then=="object"?c=i(h.then,void 0):typeof h.then=="string"&&((C=h.then)===null||C===void 0?void 0:C.startsWith("$"))?c=v(W(h.then)):c=()=>h.then,L(h,"else")&&(typeof h.else=="object"?d=i(h.else):typeof h.else=="string"&&((V=h.else)===null||V===void 0?void 0:V.startsWith("$"))?d=v(W(h.else)):d=()=>h.else),()=>m()?c():d()}function i(h,_,C={}){const V=new Set(Object.keys(h||{})),m=_?v(W(_)):()=>({}),d=[c=>{const $=m();for(const S in $)V.has(S)||(c[S]=$[S])}];if(h){if(Y(h))return r(h,C);for(let c in h){const $=h[c];let S;const l=typeof $=="string";c.startsWith(tr)?(c=c.substring(7),S=()=>$):l&&$.startsWith("$")&&$.length>1&&!($.startsWith("$reset")&&nr.test(c))?S=v(W($)):typeof $=="object"&&Y($)?S=r($,void 0):typeof $=="object"&&ee($)?S=i($):S=()=>$,d.push(a=>{a[c]=S()})}}return()=>{const c={};return d.forEach($=>$(c)),c}}function s(h,_){let C=null,V=()=>null,m=!1,d=null,c=null,$=null,S=!1;const l=Wn(_);if(xn(l)?(C=l.$el,V=l.$el!=="text"?i(l.attrs,l.bind):()=>null):Xe(l)?(typeof l.$cmp=="string"?L(h,l.$cmp)?C=h[l.$cmp]:(C=l.$cmp,S=!0):C=l.$cmp,V=i(l.props,l.bind)):Y(l)&&([m,d,c]=t(h,l)),!Y(l)&&"if"in l?m=v(W(l.if)):!Y(l)&&C===null&&(m=()=>!0),"children"in l&&l.children)if(typeof l.children=="string")if(l.children.startsWith("$slots."))C=C==="text"?"slot":C,d=v(W(l.children));else if(l.children.startsWith("$")&&l.children.length>1){const a=v(W(l.children));d=()=>String(a())}else d=()=>String(l.children);else if(Array.isArray(l.children))d=g(h,l.children);else{const[a,u,y]=t(h,l.children);d=k=>a&&a()?u&&u(k):y&&y(k)}if(Xe(l))if(d){const a=d;d=u=>({default(y,k){var b,E,O,j;const T=D;k&&(D=k),y&&((b=K.get(D))===null||b===void 0||b.unshift(y)),u&&((E=K.get(D))===null||E===void 0||E.unshift(u));const x=a(u);return y&&((O=K.get(D))===null||O===void 0||O.shift()),u&&((j=K.get(D))===null||j===void 0||j.shift()),D=T,x}}),d.slot=!0}else d=()=>({});if("for"in l&&l.for){const a=l.for.length===3?l.for[2]:l.for[1];$=[typeof a=="string"&&a.startsWith("$")?v(W(a)):()=>a,l.for[0],l.for.length===3?String(l.for[1]):null]}return[m,C,V,d,c,$,S]}function f(h,_){const C=h(_),V=D;return Object.keys(C).reduce((m,d)=>{const c=C&&C[d];return m[d]=$=>c&&c($,V)||null,m},{})}function p(h,_){const[C,V,m,d,c,$,S]=s(h,_);let l=a=>{if(C&&V===null&&d)return C()?d(a):c&&c(a);if(V&&(!C||C())){if(V==="text"&&d)return o.createTextVNode(String(d()));if(V==="slot"&&d)return d(a);const u=S?o.resolveComponent(V):V,y=d!=null&&d.slot?f(d,a):null;return o.h(u,m(),y||(d?d(a):[]))}return typeof c=="function"?c(a):c};if($){const a=l,[u,y,k]=$;l=()=>{const b=u(),E=isNaN(b)?b:Array(Number(b)).fill(0).map((T,x)=>x),O=[];if(typeof E!="object")return null;const j=K.get(D)||[];for(const T in E){const x=Object.defineProperty(R(pe(R({},j.reduce((F,P)=>F.__idata?R(R({},F),P):P,{})),{[y]:E[T]}),k!==null?{[k]:T}:{}),"__idata",{enumerable:!1,value:!0});j.unshift(x),O.push(a.bind(null,x)()),j.shift()}return O}}return l}function g(h,_){if(Array.isArray(_)){const V=_.map(p.bind(null,h));return m=>V.map(d=>d(m))}const C=p(h,_);return V=>C(V)}const w=[];function v(h,_={}){const C={};return w.push((V,m)=>{C[m]=h.provide(d=>V(d,_))}),()=>C[D]()}return function(_,C){const V=JSON.stringify(n),[m,d]=L(Oe,V)?Oe[V]:[g(e,n),w];return Oe[V]=[m,d],d.forEach(c=>{c(_,C)}),()=>(D=C,m())}}function rt(e,n){const t=K.get(D)||[];let r;return t.length&&(r=Ve(t,e.split("."))),r===void 0?n:r}function sr(e,n){return new Proxy(e,{get(...t){let r;const i=t[1];if(typeof i=="string"){const s=D;D=n,r=rt(i,void 0),D=s}return r!==void 0?r:Reflect.get(...t)}})}function it(e,n,t){return e((r,i={})=>r.reduce((s,f)=>{if(f.startsWith("slots.")){const g=f.substring(6),w=n.slots&&L(n.slots,g);if(i.if)s[f]=()=>w;else if(n.slots&&w){const v=sr(n,t);return s[f]=()=>n.slots[g](v),s}}const p=rr(f,n);return s[f]=()=>rt(f,p.value),s},{}),t)}let st=0;const or=o.defineComponent({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})}},setup(e,n){const t=o.getCurrentInstance();let r=Symbol(String(st++));K.set(r,[]);let i=nt(e.library,e.schema),s,f;return o.watch(()=>e.schema,(p,g)=>{var w;r=Symbol(String(st++)),i=nt(e.library,e.schema),s=it(i,f,r),p===g&&((w=t==null?void 0:t.proxy)===null||w===void 0?void 0:w.$forceUpdate)()},{deep:!0}),o.watchEffect(()=>{f=Object.assign(o.reactive(e.data),{slots:n.slots}),s=it(i,f,r)}),()=>s()}}),ar={config:{type:Object,default:{}},classes:{type:Object,required:!1},delay:{type:Number,required:!1},errors:{type:Array,default:[]},inputErrors:{type:Object,default:()=>({})},index:{type:Number,required:!1},id:{type:String,required:!1},modelValue:{required:!1},name:{type:String,required:!1},parent:{type:Object,required:!1},plugins:{type:Array,default:[]},sectionsSchema:{type:Object,default:{}},type:{type:[String,Object],default:"text"},validation:{type:[String,Array],required:!1},validationMessages:{type:Object,required:!1},validationRules:{type:Object,required:!1},validationLabel:{type:[String,Function],required:!1}},ot=Symbol("FormKitParent");o.defineComponent({props:ar,emits:{input:(e,n)=>!0,inputRaw:(e,n)=>!0,"update:modelValue":e=>!0,node:e=>!!e,submit:(e,n)=>!0,submitRaw:(e,n)=>!0},inheritAttrs:!1,setup(e,n){const t=dr(e,n);if(t.props.definition||B(600,t),t.props.definition.component)return()=>{var f;return o.h((f=t.props.definition)===null||f===void 0?void 0:f.component,{context:t.context},R({},n.slots))};const r=o.ref([]),i=()=>{var f,p;const g=(p=(f=t.props)===null||f===void 0?void 0:f.definition)===null||p===void 0?void 0:p.schema;g||B(601,t),r.value=typeof g=="function"?g(R({},e.sectionsSchema)):g};i(),t.on("schema",i),n.emit("node",t);const s=t.props.definition.library;return n.expose({node:t}),()=>o.h(or,{schema:r.value,data:t.context,library:s},R({},n.slots))}});const lr=Symbol.for("FormKitOptions"),Ae=Symbol();function fr(e,n){const t={},r=f=>{for(const p of f)p.__str in t&&t[p.__str](),t[p.__str]=o.watch(cr.bind(null,e,p),s.bind(null,p),{deep:!1})},s=ur(e,n,r,f=>{if(!!f.length)for(const p in t)`${p}`.startsWith(`${f.__str}.`)&&(t[p](),delete t[p])});r(Ie(e))}function ur(e,n,t,r){return i=>{const s=at(e,i);s!==Ae&&(i.__deep&&r(i),typeof s=="object"&&t(Ie(s,[i],...i)),n(i,s,e))}}function cr(e,n){const t=at(e,n);return t&&typeof t=="object"?Object.keys(t):t}function at(e,n){if(o.isRef(e)){if(n.length===0)return e.value;e=e.value}return n.reduce((t,r)=>t===Ae?t:t===null||typeof t!="object"?Ae:t[r],e)}function Ie(e,n=[],...t){if(e===null)return n;if(!t.length){const r=Object.defineProperty([],"__str",{value:""});if(e=o.isRef(e)?e.value:e,e&&typeof e=="object")Object.defineProperty(r,"__deep",{value:!0}),n.push(r);else return[r]}if(e===null||typeof e!="object")return n;for(const r in e){const i=t.concat(r);Object.defineProperty(i,"__str",{value:i.join(".")});const s=e[r];ee(s)||Array.isArray(s)?(n.push(Object.defineProperty(i,"__deep",{value:!0})),n=n.concat(Ie(s,[],...i))):n.push(i)}return n}function fe(e){return e===null||typeof e!="object"||(o.isReactive(e)?e=o.toRaw(e):o.isRef(e)&&(e=o.isReactive(e.value)?fe(e.value):e.value)),e}const Ee=["help","label","ignore","disabled","preserve",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility)$/,/^[a-zA-Z-]+(?:-class|Class)$/];function lt(e,n){n.classes&&Object.keys(n.classes).forEach(t=>{typeof t=="string"&&(e.props[`_${t}Class`]=n.classes[t],ye(n.classes[t])&&t==="inner"&&Object.values(n.classes[t]))})}function pr(e){return e?["Submit","SubmitRaw"].reduce((t,r)=>{const i=`on${r}`;return i in e&&typeof e[i]=="function"&&(t[i]=e[i]),t},{}):{}}function dr(e,n,t={}){const r=Object.assign({},o.inject(lr)||{},t),i=o.getCurrentInstance(),s=pr(i==null?void 0:i.vnode.props),f=e.modelValue!==void 0,p=e.modelValue!==void 0?e.modelValue:J(n.attrs.value);function g(){const l=R(R({},H(e)),s),a=je(H(n.attrs),Ee);l.attrs=a;const u=Te(H(n.attrs),Ee);for(const k in u)l[ne(k)]=u[k];const y={props:{}};return lt(y,e),Object.assign(l,y.props),typeof l.type!="string"&&(l.definition=l.type,delete l.type),l}const w=g(),v=w.ignore?null:e.parent||o.inject(ot,null),h=Nn(te(r||{},{name:e.name||void 0,value:p,parent:v,plugins:(r.plugins||[]).concat(e.plugins),config:e.config,props:w,index:e.index},!1,!0));h.props.definition||B(600,h);const _=o.ref(new Set(h.props.definition.props||[]));h.on("added-props",({payload:l})=>{Array.isArray(l)&&l.forEach(a=>_.value.add(a))});const C=o.computed(()=>Ee.concat([..._.value]).reduce((l,a)=>(typeof a=="string"?(l.push(ne(a)),l.push(Le(a))):l.push(a),l),[]));o.watchEffect(()=>lt(h,e));const V=H(e);for(const l in V)o.watch(()=>e[l],()=>{e[l]!==void 0&&(h.props[l]=e[l])});const m=new Set,d=H(n.attrs);o.watchEffect(()=>{c(Te(d,C.value))});function c(l){m.forEach(a=>{a(),m.delete(a)});for(const a in l){const u=ne(a);m.add(o.watch(()=>n.attrs[a],()=>{h.props[u]=n.attrs[a]}))}}if(o.watchEffect(()=>{const l=je(H(n.attrs),C.value);h.props.attrs=Object.assign({},h.props.attrs||{},l)}),o.watchEffect(()=>{const l=e.errors.map(a=>ie({key:Re(a),type:"error",value:a,meta:{source:"prop"}}));h.store.apply(l,a=>a.type==="error"&&a.meta.source==="prop")}),h.type!=="input"){const l=`${h.name}-prop`;o.watchEffect(()=>{const u=Object.keys(e.inputErrors).reduce((y,k)=>{let b=e.inputErrors[k];return typeof b=="string"&&(b=[b]),Array.isArray(b)&&(y[k]=b.map(E=>ie({key:E,type:"error",value:E,meta:{source:l}}))),y},{});h.store.apply(u,y=>y.type==="error"&&y.meta.source===l)})}o.watchEffect(()=>Object.assign(h.config,e.config)),h.type!=="input"&&o.provide(ot,h);let $;const S=new WeakSet;return h.on("modelUpdated",()=>{var l,a;if(n.emit("inputRaw",(l=h.context)===null||l===void 0?void 0:l.value,h),clearTimeout($),$=setTimeout(n.emit,20,"input",(a=h.context)===null||a===void 0?void 0:a.value,h),f&&h.context){const u=fe(h.context.value);ye(u)&&fe(e.modelValue)!==u&&S.add(u),n.emit("update:modelValue",u)}}),f&&fr(o.toRef(e,"modelValue"),(l,a)=>{var u;const y=fe(a);if(ye(y)&&S.has(y))return S.delete(y);l.length?(u=h.at(l))===null||u===void 0||u.input(a,!1):h.input(a,!1)}),o.onUnmounted(()=>h.destroy()),h}let mr=1;function yr(e){return typeof e=="function"&&e.length===2||typeof e=="object"&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function N(e,n={}){const t=R({type:"input"},n);let r;if(yr(e)){const i=`SchemaComponent${mr++}`;r=()=>({$cmp:i,props:{context:"$node.context"}}),t.library={[i]:o.markRaw(e)}}else r=e;return t.schema=Xn(r||"Schema undefined"),t}const hr=o.defineComponent({name:"PrimeInputText",props:{context:Object},setup(e){const t=e.context,r=()=>(t==null?void 0:t.iconLeft)&&(t==null?void 0:t.iconLeft.length)>0,i=()=>(t==null?void 0:t.iconRight)&&(t==null?void 0:t.iconRight.length)>0,s=()=>{let p="";return r()&&(p=`${p}p-input-icon-left `),i()&&(p=`${p}p-input-icon-right `),p};function f(p){t==null||t.node.input(p.target.value)}return(p,g)=>{const w=o.resolveComponent("InputText");return o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(s())},[r()?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(o.unref(t).iconLeft)},null,2)):o.createCommentVNode("",!0),o.createVNode(w,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":g[0]||(g[0]=v=>o.unref(t)._value=v),class:o.normalizeClass(o.unref(t).attrs.class),placeholder:o.unref(t).attrs.placeholder,onInput:f},null,8,["id","modelValue","class","placeholder"]),i?(o.openBlock(),o.createElementBlock("i",{key:1,class:o.normalizeClass(o.unref(t).iconRight)},null,2)):o.createCommentVNode("",!0)],2)}}});var gr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ft={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(gr,function(){function t(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function r(l,a){for(var u=0;u<a.length;u++){var y=a[u];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(l,y.key,y)}}function i(l,a,u){return a&&r(l.prototype,a),u&&r(l,u),l}function s(l,a,u){return a in l?Object.defineProperty(l,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[a]=u,l}function f(l,a){var u=Object.keys(l);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(l);a&&(y=y.filter(function(k){return Object.getOwnPropertyDescriptor(l,k).enumerable})),u.push.apply(u,y)}return u}function p(l){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{};a%2?f(Object(u),!0).forEach(function(y){s(l,y,u[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(u)):f(Object(u)).forEach(function(y){Object.defineProperty(l,y,Object.getOwnPropertyDescriptor(u,y))})}return l}function g(l){return function(a){if(Array.isArray(a))return v(a)}(l)||function(a){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(a))return Array.from(a)}(l)||w(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function w(l,a){if(l){if(typeof l=="string")return v(l,a);var u=Object.prototype.toString.call(l).slice(8,-1);return u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set"?Array.from(l):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?v(l,a):void 0}}function v(l,a){(a==null||a>l.length)&&(a=l.length);for(var u=0,y=new Array(a);u<a;u++)y[u]=l[u];return y}function h(l){if(typeof Symbol=="undefined"||l[Symbol.iterator]==null){if(Array.isArray(l)||(l=w(l))){var a=0,u=function(){};return{s:u,n:function(){return a>=l.length?{done:!0}:{done:!1,value:l[a++]}},e:function(O){throw O},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y,k,b=!0,E=!1;return{s:function(){y=l[Symbol.iterator]()},n:function(){var O=y.next();return b=O.done,O},e:function(O){E=!0,k=O},f:function(){try{b||y.return==null||y.return()}finally{if(E)throw k}}}}var _={};_[_.Fatal=0]="Fatal",_[_.Error=0]="Error",_[_.Warn=1]="Warn",_[_.Log=2]="Log",_[_.Info=3]="Info",_[_.Success=3]="Success",_[_.Debug=4]="Debug",_[_.Trace=5]="Trace",_[_.Silent=-1/0]="Silent",_[_.Verbose=1/0]="Verbose";var C={silent:{level:-1},fatal:{level:_.Fatal},error:{level:_.Error},warn:{level:_.Warn},log:{level:_.Log},info:{level:_.Info},success:{level:_.Success},debug:{level:_.Debug},trace:{level:_.Trace},verbose:{level:_.Trace},ready:{level:_.Info},start:{level:_.Info}};function V(l){return a=l,Object.prototype.toString.call(a)==="[object Object]"&&!(!l.message&&!l.args)&&!l.stack;var a}var m=!1,d=[],c=function(){function l(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var u in t(this,l),this._reporters=a.reporters||[],this._types=a.types||C,this.level=a.level!==void 0?a.level:3,this._defaults=a.defaults||{},this._async=a.async!==void 0?a.async:void 0,this._stdout=a.stdout,this._stderr=a.stderr,this._mockFn=a.mockFn,this._throttle=a.throttle||1e3,this._throttleMin=a.throttleMin||5,this._types){var y=p(p({type:u},this._types[u]),this._defaults);this[u]=this._wrapLogFn(y),this[u].raw=this._wrapLogFn(y,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}return i(l,[{key:"create",value:function(a){return new l(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},a))}},{key:"withDefaults",value:function(a){return this.create({defaults:Object.assign({},this._defaults,a)})}},{key:"withTag",value:function(a){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+a:a})}},{key:"addReporter",value:function(a){return this._reporters.push(a),this}},{key:"removeReporter",value:function(a){if(a){var u=this._reporters.indexOf(a);if(u>=0)return this._reporters.splice(u,1)}else this._reporters.splice(0);return this}},{key:"setReporters",value:function(a){return this._reporters=Array.isArray(a)?a:[a],this}},{key:"wrapAll",value:function(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function(){for(var a in this._types)console["__"+a]||(console["__"+a]=console[a]),console[a]=this[a].raw}},{key:"restoreConsole",value:function(){for(var a in this._types)console["__"+a]&&(console[a]=console["__"+a],delete console["__"+a])}},{key:"wrapStd",value:function(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}},{key:"_wrapStream",value:function(a,u){var y=this;a&&(a.__write||(a.__write=a.write),a.write=function(k){y[u].raw(String(k).trim())})}},{key:"restoreStd",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:"_restoreStream",value:function(a){a&&a.__write&&(a.write=a.__write,delete a.__write)}},{key:"pauseLogs",value:function(){m=!0}},{key:"resumeLogs",value:function(){m=!1;var a,u=h(d.splice(0));try{for(u.s();!(a=u.n()).done;){var y=a.value;y[0]._logFn(y[1],y[2])}}catch(k){u.e(k)}finally{u.f()}}},{key:"mockTypes",value:function(a){if(this._mockFn=a||this._mockFn,typeof this._mockFn=="function")for(var u in this._types)this[u]=this._mockFn(u,this._types[u])||this[u],this[u].raw=this[u]}},{key:"_wrapLogFn",value:function(a,u){var y=this;return function(){for(var k=arguments.length,b=new Array(k),E=0;E<k;E++)b[E]=arguments[E];if(!m)return y._logFn(a,b,u);d.push([y,a,b,u])}}},{key:"_logFn",value:function(a,u,y){var k=this;if(a.level>this.level)return!!this._async&&Promise.resolve(!1);var b=Object.assign({date:new Date,args:[]},a);!y&&u.length===1&&V(u[0])?Object.assign(b,u[0]):b.args=Array.from(u),b.message&&(b.args.unshift(b.message),delete b.message),b.additional&&(Array.isArray(b.additional)||(b.additional=b.additional.split(`
|
|
4
|
+
`)),b.args.push(`
|
|
5
|
+
`+b.additional.join(`
|
|
6
|
+
`)),delete b.additional),b.type=typeof b.type=="string"?b.type.toLowerCase():"",b.tag=typeof b.tag=="string"?b.tag.toLowerCase():"";var E=function(){var x=arguments.length>0&&arguments[0]!==void 0&&arguments[0],F=k._lastLogCount-k._throttleMin;if(k._lastLog&&F>0){var P=g(k._lastLog.args);F>1&&P.push("(repeated ".concat(F," times)")),k._log(p(p({},k._lastLog),{},{args:P})),k._lastLogCount=1}if(x){if(k._lastLog=b,k._async)return k._logAsync(b);k._log(b)}};clearTimeout(this._throttleTimeout);var O=this._lastLogTime?b.date-this._lastLogTime:0;if(this._lastLogTime=b.date,O<this._throttle)try{var j=JSON.stringify([b.type,b.tag,b.args]),T=this._lastLogSerialized===j;if(this._lastLogSerialized=j,T&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(E,this._throttle))}catch{}E(!0)}},{key:"_log",value:function(a){var u,y=h(this._reporters);try{for(y.s();!(u=y.n()).done;)u.value.log(a,{async:!1,stdout:this.stdout,stderr:this.stderr})}catch(k){y.e(k)}finally{y.f()}}},{key:"_logAsync",value:function(a){var u=this;return Promise.all(this._reporters.map(function(y){return y.log(a,{async:!0,stdout:u.stdout,stderr:u.stderr})}))}},{key:"stdout",get:function(){return this._stdout||console._stdout}},{key:"stderr",get:function(){return this._stderr||console._stderr}}]),l}();c.prototype.add=c.prototype.addReporter,c.prototype.remove=c.prototype.removeReporter,c.prototype.clear=c.prototype.removeReporter,c.prototype.withScope=c.prototype.withTag,c.prototype.mock=c.prototype.mockTypes,c.prototype.pause=c.prototype.pauseLogs,c.prototype.resume=c.prototype.resumeLogs;var $,S=function(){function l(a){t(this,l),this.options=Object.assign({},a),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}return i(l,[{key:"log",value:function(a){var u=a.level<1?console.__error||console.error:a.level===1&&console.warn?console.__warn||console.warn:console.__log||console.log,y=a.type!=="log"?a.type:"",k=a.tag?a.tag:"",b=this.typeColorMap[a.type]||this.levelColorMap[a.level]||this.defaultColor,E=`
|
|
7
|
+
background: `.concat(b,`;
|
|
8
|
+
border-radius: 0.5em;
|
|
9
|
+
color: white;
|
|
10
|
+
font-weight: bold;
|
|
11
|
+
padding: 2px 0.5em;
|
|
12
|
+
`),O="%c".concat([k,y].filter(Boolean).join(":"));typeof a.args[0]=="string"?u.apply(void 0,["".concat(O,"%c ").concat(a.args[0]),E,""].concat(g(a.args.slice(1)))):u.apply(void 0,[O,E].concat(g(a.args)))}}]),l}();return typeof window!="undefined"&&window.consola||(($=new c({reporters:[new S]})).Consola=c,$.LogLevel=_,$.BrowserReporter=S,$)})})(ft);var _r=ft.exports;const br=o.defineComponent({name:"PrimeInputNumber",props:{context:Object},setup(e){const t=e.context;function r(i){_r.error(i),t==null||t.node.input(i.value)}return(i,s)=>{var p,g,w,v,h,_,C,V,m,d,c;const f=o.resolveComponent("InputNumber");return o.openBlock(),o.createBlock(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=$=>o.unref(t)._value=$),placeholder:o.unref(t).attrs.placeholder,class:o.normalizeClass(o.unref(t).attrs.class),"use-grouping":(p=o.unref(t).attrs.useGrouping)!=null?p:!0,"min-fraction-digits":(g=o.unref(t).attrs.minFractionDigits)!=null?g:void 0,"max-fraction-digits":(w=o.unref(t).attrs.maxFractionDigits)!=null?w:void 0,locale:(v=o.unref(t).attrs.locale)!=null?v:void 0,mode:(h=o.unref(t).attrs.mode)!=null?h:void 0,currency:(_=o.unref(t).attrs.currency)!=null?_:void 0,prefix:(C=o.unref(t).attrs.prefix)!=null?C:void 0,suffix:(V=o.unref(t).attrs.suffix)!=null?V:void 0,"show-buttons":(m=o.unref(t).attrs.showButtons)!=null?m:void 0,"button-layout":(d=o.unref(t).attrs.buttonLayout)!=null?d:"stacked",step:(c=o.unref(t).attrs.step)!=null?c:void 0,onInput:r},null,8,["id","modelValue","placeholder","class","use-grouping","min-fraction-digits","max-fraction-digits","locale","mode","currency","prefix","suffix","show-buttons","button-layout","step"])}}}),wr=o.defineComponent({name:"PrimeInputMask",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var p,g,w,v;const f=o.resolveComponent("InputMask");return o.openBlock(),o.createBlock(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=h=>o.unref(t)._value=h),class:o.normalizeClass(o.unref(t).attrs.class),placeholder:o.unref(t).attrs.placeholder,mask:(p=o.unref(t).attrs.mask)!=null?p:void 0,"slot-char":(g=o.unref(t).attrs.slotChar)!=null?g:"_","auto-clear":(w=o.unref(t).attrs.autoClear)!=null?w:!0,unmask:(v=o.unref(t).attrs.unmask)!=null?v:!1,onBlur:r},null,8,["id","modelValue","class","placeholder","mask","slot-char","auto-clear","unmask"])}}}),vr=o.defineComponent({name:"PrimePassword",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.target.value)}return(i,s)=>{var p,g,w,v;const f=o.resolveComponent("Password");return o.openBlock(),o.createBlock(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=h=>o.unref(t)._value=h),class:o.normalizeClass(o.unref(t).attrs.class),placeholder:o.unref(t).attrs.placeholder,feedback:(g=(p=o.unref(t))==null?void 0:p.feedback)!=null?g:!0,"toggle-mask":(v=(w=o.unref(t))==null?void 0:w.toggleMask)!=null?v:!1,onInput:r},null,8,["id","modelValue","class","placeholder","feedback","toggle-mask"])}}}),$r=o.defineComponent({name:"PrimeInputTextArea",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.target.value)}return(i,s)=>{var p;const f=o.resolveComponent("Textarea");return o.openBlock(),o.createBlock(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=g=>o.unref(t)._value=g),class:o.normalizeClass(o.unref(t).attrs.class),placeholder:o.unref(t).attrs.placeholder,rows:(p=o.unref(t).rows)!=null?p:3,onInput:r},null,8,["id","modelValue","class","placeholder","rows"])}}}),kr={key:0,class:"formkit-prime-left"},Cr={key:1,class:"formkit-prime-right"},Sr=o.defineComponent({name:"PrimeCheckBox",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i)}return(i,s)=>{const f=o.resolveComponent("Checkbox");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(t).attrs.labelLeft?(o.openBlock(),o.createElementBlock("span",kr,o.toDisplayString(o.unref(t).attrs.labelLeft),1)):o.createCommentVNode("",!0),o.createVNode(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>o.unref(t)._value=p),class:o.normalizeClass(o.unref(t).attrs.class),placeholder:o.unref(t).attrs.placeholder,binary:!0,onInput:r},null,8,["id","modelValue","class","placeholder"]),o.unref(t).attrs.labelRight?(o.openBlock(),o.createElementBlock("span",Cr,o.toDisplayString(o.unref(t).attrs.labelRight),1)):o.createCommentVNode("",!0)],64)}}}),Or={key:0,class:"formkit-prime-left"},Vr={key:1,class:"formkit-prime-right"},Ar=o.defineComponent({name:"PrimeInputSwitch",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var p,g;const f=o.resolveComponent("InputSwitch");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(t).attrs.labelLeft?(o.openBlock(),o.createElementBlock("span",Or,o.toDisplayString(o.unref(t).attrs.labelLeft),1)):o.createCommentVNode("",!0),o.createVNode(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=w=>o.unref(t)._value=w),class:o.normalizeClass(o.unref(t).attrs.class),"true-value":(p=o.unref(t).attrs.trueValue)!=null?p:void 0,"false-value":(g=o.unref(t).attrs.falseValue)!=null?g:void 0,onInput:r},null,8,["id","modelValue","class","true-value","false-value"]),o.unref(t).attrs.labelRight?(o.openBlock(),o.createElementBlock("span",Vr,o.toDisplayString(o.unref(t).attrs.labelRight),1)):o.createCommentVNode("",!0)],64)}}}),Ir=o.defineComponent({name:"PrimeEditor",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.htmlValue)}return(i,s)=>{const f=o.resolveComponent("Editor");return o.openBlock(),o.createBlock(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=p=>o.unref(t)._value=p),placeholder:o.unref(t).attrs.placeholder,onTextChange:r},null,8,["id","modelValue","placeholder"])}}}),Er=o.defineComponent({name:"PrimeDropdown",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.value)}return(i,s)=>{var p,g,w,v;const f=o.resolveComponent("Dropdown");return o.openBlock(),o.createBlock(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=h=>o.unref(t)._value=h),class:o.normalizeClass(o.unref(t).attrs.class),options:(g=(p=o.unref(t))==null?void 0:p.attrs)==null?void 0:g.options,"option-label":"label","option-value":"value",placeholder:o.unref(t).attrs.placeholder,filter:(w=o.unref(t).attrs.filter)!=null?w:!1,"show-clear":(v=o.unref(t).attrs.showClear)!=null?v:!1,onChange:r},null,8,["id","modelValue","class","options","placeholder","filter","show-clear"])}}}),Pr=o.defineComponent({name:"PrimeMultiSelect",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var p,g,w;const f=o.resolveComponent("MultiSelect");return o.openBlock(),o.createBlock(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=v=>o.unref(t)._value=v),class:o.normalizeClass(o.unref(t).attrs.class),options:(g=(p=o.unref(t))==null?void 0:p.attrs)==null?void 0:g.options,"option-label":"label","option-value":"value",placeholder:o.unref(t).attrs.placeholder,filter:(w=o.unref(t).attrs.filter)!=null?w:!1,onChange:r},null,8,["id","modelValue","class","options","placeholder","filter"])}}}),jr=o.defineComponent({name:"PrimeCalendar",props:{context:Object},setup(e){const n=e,t=n.context;function r(s){t==null||t.node.input(t==null?void 0:t._value)}function i(s){t==null||t.node.input(s)}return(s,f)=>{const p=o.resolveComponent("Calendar");return o.openBlock(),o.createBlock(p,{id:n.context.id,modelValue:o.unref(t)._value,"onUpdate:modelValue":f[0]||(f[0]=g=>o.unref(t)._value=g),class:o.normalizeClass(o.unref(t).attrs.class),"date-format":o.unref(t).attrs.dateFormat,"show-icon":o.unref(t).attrs.showIcon,icon:o.unref(t).attrs.icon,onDateSelect:i,onInput:r},null,8,["id","modelValue","class","date-format","show-icon","icon"])}}}),Tr=o.defineComponent({name:"PrimeSlider",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var p,g,w,v;const f=o.resolveComponent("Slider");return o.openBlock(),o.createBlock(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=h=>o.unref(t)._value=h),min:(p=o.unref(t).attrs.min)!=null?p:0,max:(g=o.unref(t).attrs.max)!=null?g:100,step:(w=o.unref(t).attrs.step)!=null?w:void 0,range:(v=o.unref(t).attrs.range)!=null?v:!1,onChange:r},null,8,["id","modelValue","min","max","step","range"])}}}),Lr=o.defineComponent({name:"PrimeRating",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var p,g,w,v;const f=o.resolveComponent("Rating");return o.openBlock(),o.createBlock(f,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=h=>o.unref(t)._value=h),disabled:(p=o.unref(t).attrs.disabled)!=null?p:!1,readonly:(g=o.unref(t).attrs.readonly)!=null?g:!1,stars:(w=o.unref(t).attrs.stars)!=null?w:5,cancel:(v=o.unref(t).attrs.cancel)!=null?v:!1,onChange:r},null,8,["id","modelValue","disabled","readonly","stars","cancel"])}}}),ut=N(hr,{props:["iconRight","iconLeft"]}),ct=N(br,{props:["iconRight","iconLeft"]}),pt=N(wr,{props:[]}),dt=N(vr,{props:["feedback","toggleMask"]}),mt=N($r,{props:["rows"]}),yt=N(Sr,{props:[]}),ht=N(Ar,{props:[]}),gt=N(Ir,{props:[]}),_t=N(Er,{props:[]}),bt=N(Pr,{props:[]}),wt=N(jr,{props:[]}),vt=N(Tr,{props:[]}),Mr=N(Lr,{props:[]}),Rr={primeInputText:ut,primeInputNumber:ct,primeInputMask:pt,primePassword:dt,primeCheckBox:yt,primeInputSwitch:ht,primeInputTextArea:mt,primeEditor:gt,primeDropdown:_t,primeMultiSelect:bt,primeCalendar:wt,primeSlider:vt};A.primeCalendarDefinition=wt,A.primeCheckBoxDefinition=yt,A.primeDropdownDefinition=_t,A.primeEditorDefinition=gt,A.primeInputMaskDefinition=pt,A.primeInputNumberDefinition=ct,A.primeInputSwitchDefinition=ht,A.primeInputTextAreaDefinition=mt,A.primeInputTextDefinition=ut,A.primeInputs=Rr,A.primeMultiSelectDefinition=bt,A.primePasswordDefinition=dt,A.primeRatingDefinition=Mr,A.primeSliderDefinition=vt,Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FormKitTypeDefinition } from '@formkit/core';
|
|
2
2
|
export declare const primeInputTextDefinition: FormKitTypeDefinition;
|
|
3
3
|
export declare const primeInputNumberDefinition: FormKitTypeDefinition;
|
|
4
|
+
export declare const primeInputMaskDefinition: FormKitTypeDefinition;
|
|
4
5
|
export declare const primePasswordDefinition: FormKitTypeDefinition;
|
|
5
6
|
export declare const primeInputTextAreaDefinition: FormKitTypeDefinition;
|
|
6
7
|
export declare const primeCheckBoxDefinition: FormKitTypeDefinition;
|
|
@@ -10,9 +11,11 @@ export declare const primeDropdownDefinition: FormKitTypeDefinition;
|
|
|
10
11
|
export declare const primeMultiSelectDefinition: FormKitTypeDefinition;
|
|
11
12
|
export declare const primeCalendarDefinition: FormKitTypeDefinition;
|
|
12
13
|
export declare const primeSliderDefinition: FormKitTypeDefinition;
|
|
14
|
+
export declare const primeRatingDefinition: FormKitTypeDefinition;
|
|
13
15
|
export declare const primeInputs: {
|
|
14
16
|
primeInputText: FormKitTypeDefinition;
|
|
15
17
|
primeInputNumber: FormKitTypeDefinition;
|
|
18
|
+
primeInputMask: FormKitTypeDefinition;
|
|
16
19
|
primePassword: FormKitTypeDefinition;
|
|
17
20
|
primeCheckBox: FormKitTypeDefinition;
|
|
18
21
|
primeInputSwitch: FormKitTypeDefinition;
|
package/dist/index_form.json
CHANGED
|
@@ -108,6 +108,20 @@
|
|
|
108
108
|
"name": "cookie_notice",
|
|
109
109
|
"label": "Cookie notice frequency",
|
|
110
110
|
"value": "hourly",
|
|
111
|
+
"options":[
|
|
112
|
+
{
|
|
113
|
+
"label": "Every page load",
|
|
114
|
+
"value": "refresh"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"label": "Ever hour",
|
|
118
|
+
"value": "hourly"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"label": "Every day",
|
|
122
|
+
"value": "daily"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
111
125
|
"showClear": false,
|
|
112
126
|
"filter": false,
|
|
113
127
|
"help": "How often should we display a cookie notice?",
|
|
@@ -120,6 +134,20 @@
|
|
|
120
134
|
"value": [
|
|
121
135
|
"hourly"
|
|
122
136
|
],
|
|
137
|
+
"options": [
|
|
138
|
+
{
|
|
139
|
+
"label": "Every page load",
|
|
140
|
+
"value": "refresh"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"label": "Ever hour",
|
|
144
|
+
"value": "hourly"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"label": "Every Single day",
|
|
148
|
+
"value": "daily"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
123
151
|
"showClear": true,
|
|
124
152
|
"filter": true,
|
|
125
153
|
"help": "How often should we display a cookie notice?",
|
|
@@ -1,45 +1,49 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
.formkit-inner {
|
|
2
|
+
.p-inputtext {
|
|
3
|
+
width: 300px;
|
|
4
|
+
}
|
|
4
5
|
|
|
5
|
-
.p-slider {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
.p-slider {
|
|
7
|
+
width: 300px;
|
|
8
|
+
margin-top: 10px;
|
|
8
9
|
|
|
9
|
-
}
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
.p-calendar {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
.p-calendar {
|
|
13
|
+
.p-inputtext {
|
|
14
|
+
width: 150px;
|
|
15
|
+
}
|
|
14
16
|
}
|
|
15
|
-
}
|
|
16
17
|
|
|
17
|
-
.p-dropdown {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
.p-dropdown {
|
|
19
|
+
.p-inputtext {
|
|
20
|
+
width: 250px;
|
|
21
|
+
}
|
|
20
22
|
}
|
|
21
|
-
}
|
|
22
23
|
|
|
23
|
-
.p-multiselect {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
.p-multiselect {
|
|
25
|
+
.p-multiselect-label {
|
|
26
|
+
width: 250px;
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
|
-
}
|
|
28
29
|
|
|
29
|
-
.p-editor-container
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
.p-editor-container {
|
|
31
|
+
width: 300px;
|
|
32
|
+
height: 250px;
|
|
33
|
+
margin-bottom: 90px;
|
|
34
|
+
}
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
.formkit-outer[data-type="primeInputSwitch"], .formkit-outer[data-type="primeCheckBox"] {
|
|
36
38
|
.formkit-inner {
|
|
37
39
|
width: 300px;
|
|
40
|
+
|
|
38
41
|
.formkit-prime-right {
|
|
39
42
|
margin-left: 10px;
|
|
40
43
|
font-weight: bold;
|
|
41
44
|
font-size: 0.75rem;
|
|
42
45
|
}
|
|
46
|
+
|
|
43
47
|
.formkit-prime-left {
|
|
44
48
|
margin-right: 10px;
|
|
45
49
|
font-weight: bold;
|
|
@@ -47,3 +51,5 @@
|
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
}
|
|
54
|
+
|
|
55
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/sfxcode/formkit-primevue",
|
|
@@ -33,43 +33,42 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@formkit/
|
|
37
|
-
"@formkit/themes": "^1.0.0-beta.8",
|
|
38
|
-
"@formkit/vue": "^1.0.0-beta.8",
|
|
36
|
+
"@formkit/vue": "^1.0.0-beta.9",
|
|
39
37
|
"primeicons": "^5.0.0",
|
|
40
|
-
"primevue": "^3.
|
|
41
|
-
"quill": "^1.3.7"
|
|
42
|
-
"vue": "^3.2.36"
|
|
38
|
+
"primevue": "^3.15.0",
|
|
39
|
+
"quill": "^1.3.7"
|
|
43
40
|
},
|
|
44
41
|
"devDependencies": {
|
|
45
|
-
"@antfu/eslint-config": "^0.
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@typescript-eslint/
|
|
42
|
+
"@antfu/eslint-config": "^0.25.2",
|
|
43
|
+
"@formkit/i18n": "^1.0.0-beta.9",
|
|
44
|
+
"@types/node": "^18.0.0",
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^5.30.1",
|
|
46
|
+
"@typescript-eslint/parser": "^5.30.1",
|
|
49
47
|
"@vitejs/plugin-vue": "^2.3.3",
|
|
50
|
-
"@vue/babel-preset-app": "^5.0.
|
|
51
|
-
"@vue/compiler-sfc": "^3.2.
|
|
52
|
-
"@vue/server-renderer": "^3.2.
|
|
48
|
+
"@vue/babel-preset-app": "^5.0.6",
|
|
49
|
+
"@vue/compiler-sfc": "^3.2.37",
|
|
50
|
+
"@vue/server-renderer": "^3.2.37",
|
|
53
51
|
"@vue/test-utils": "^2.0.0",
|
|
54
52
|
"@vuedx/typecheck": "~0.7.5",
|
|
55
53
|
"@vuedx/typescript-plugin-vue": "~0.7.5",
|
|
56
|
-
"@vueuse/core": "^8.5
|
|
54
|
+
"@vueuse/core": "^8.7.5",
|
|
57
55
|
"@vueuse/head": "~0.7.6",
|
|
58
|
-
"chart.js": "^3.
|
|
56
|
+
"chart.js": "^3.8.0",
|
|
59
57
|
"consola": "^2.15.3",
|
|
60
58
|
"eslint": "latest",
|
|
61
|
-
"sass": "^1.
|
|
59
|
+
"sass": "^1.53.0",
|
|
62
60
|
"tslib": "^2.4.0",
|
|
63
|
-
"typescript": "^4.
|
|
64
|
-
"unplugin-auto-import": "^0.
|
|
65
|
-
"unplugin-vue-components": "^0.
|
|
66
|
-
"vite": "^2.9.
|
|
67
|
-
"vite-plugin-dts": "^1.
|
|
61
|
+
"typescript": "^4.7.4",
|
|
62
|
+
"unplugin-auto-import": "^0.9.2",
|
|
63
|
+
"unplugin-vue-components": "^0.21.0",
|
|
64
|
+
"vite": "^2.9.13",
|
|
65
|
+
"vite-plugin-dts": "^1.2.0",
|
|
68
66
|
"vite-plugin-eslint": "^1.6.1",
|
|
69
|
-
"vite-plugin-pages": "^0.
|
|
70
|
-
"vite-ssg": "^0.20.
|
|
71
|
-
"vue
|
|
72
|
-
"vue-
|
|
67
|
+
"vite-plugin-pages": "^0.25.0",
|
|
68
|
+
"vite-ssg": "^0.20.2",
|
|
69
|
+
"vue": "^3.2.37",
|
|
70
|
+
"vue-router": "^4.0.16",
|
|
71
|
+
"vue-tsc": "^0.38.2"
|
|
73
72
|
},
|
|
74
73
|
"scripts": {
|
|
75
74
|
"dev": "vite",
|