@solfacil/girassol 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.d.ts +1 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +533 -510
- package/dist/girassol.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/components/informations/tag/Tag.vue.d.ts +43 -0
- package/dist/types/components/informations/tag/index.d.ts +2 -0
- package/dist/types/components/informations/tag/tag.spec.d.ts +1 -0
- package/dist/types/index.d.ts +58 -1
- package/package.json +1 -1
package/dist/girassol.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as R, openBlock as y, createElementBlock as k, normalizeClass as M, createElementVNode as w, toDisplayString as _, useSlots as hn, computed as S, unref as u, renderSlot as N, createVNode as X, createCommentVNode as W, createBlock as ue, withCtx as ge, ref as z, withDirectives as Oe, onMounted as ft, provide as yn, isRef as Be, watch as se, getCurrentInstance as Ye, onBeforeUnmount as bn, toRef as be, resolveDynamicComponent as qt, h as at, inject as gn, reactive as We, onUnmounted as Ut, nextTick as Te, warn as $n, watchEffect as el, markRaw as tl, mergeProps as Se, vShow as Ge, createTextVNode as Pe, vModelText as nl, Fragment as Je, renderList as Xe, getCurrentScope as ll, onScopeDispose as il, withModifiers as ze, normalizeStyle as Ot, withKeys as He, Transition as pn, render as kn } from "vue";
|
|
2
|
+
const al = /* @__PURE__ */ w("path", {
|
|
3
3
|
class: "path",
|
|
4
4
|
d: "M16.0008 1.5C17.905 1.5 19.7905 1.87506 21.5497 2.60375C23.3089 3.33244 24.9074 4.4005 26.2538 5.74695C27.6003 7.0934 28.6684 8.69187 29.397 10.4511C30.1257 12.2103 30.5008 14.0958 30.5008 16C30.5008 17.9042 30.1257 19.7897 29.397 21.5489C28.6684 23.3081 27.6003 24.9066 26.2538 26.2531C24.9074 27.5995 23.3089 28.6676 21.5497 29.3963C19.7905 30.1249 17.905 30.5 16.0008 30.5C14.0966 30.5 12.2111 30.1249 10.4519 29.3963C8.69266 28.6676 7.09419 27.5995 5.74774 26.253C4.4013 24.9066 3.33323 23.3081 2.60454 21.5489C1.87585 19.7897 1.50079 17.9042 1.50079 16C1.5008 14.0958 1.87585 12.2103 2.60454 10.4511C3.33324 8.69187 4.4013 7.0934 5.74775 5.74695C7.0942 4.4005 8.69267 3.33244 10.4519 2.60375C12.2111 1.87505 14.0966 1.5 16.0008 1.5L16.0008 1.5Z"
|
|
5
|
-
}, null, -1),
|
|
5
|
+
}, null, -1), wn = /* @__PURE__ */ R({
|
|
6
6
|
__name: "CircleLoader",
|
|
7
7
|
props: {
|
|
8
8
|
size: { default: "lg" },
|
|
@@ -16,15 +16,15 @@ const il = /* @__PURE__ */ w("path", {
|
|
|
16
16
|
fill: "none",
|
|
17
17
|
xmlns: "http://www.w3.org/2000/svg"
|
|
18
18
|
}, [
|
|
19
|
-
w("title", null,
|
|
20
|
-
|
|
19
|
+
w("title", null, _(e.title), 1),
|
|
20
|
+
al
|
|
21
21
|
], 2));
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
const
|
|
24
|
+
const rl = ["data-testid", "disabled"], ol = { class: "icon -left" }, sl = { class: "icon -right" }, ul = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "loading"
|
|
27
|
-
}, Qe = /* @__PURE__ */
|
|
27
|
+
}, Qe = /* @__PURE__ */ R({
|
|
28
28
|
__name: "Button",
|
|
29
29
|
props: {
|
|
30
30
|
id: null,
|
|
@@ -38,7 +38,7 @@ const al = ["data-testid", "disabled"], rl = { class: "icon -left" }, ol = { cla
|
|
|
38
38
|
function t(a, r) {
|
|
39
39
|
return a ? r : "";
|
|
40
40
|
}
|
|
41
|
-
const n =
|
|
41
|
+
const n = hn(), l = S(
|
|
42
42
|
() => !!(n != null && n.default) && (!!(n != null && n["icon-right"]) || !!(n != null && n["icon-left"]))
|
|
43
43
|
), i = S(
|
|
44
44
|
() => !(n != null && n.default) && (!!(n != null && n["icon-right"]) || !!(n != null && n["icon-left"]))
|
|
@@ -54,38 +54,38 @@ const al = ["data-testid", "disabled"], rl = { class: "icon -left" }, ol = { cla
|
|
|
54
54
|
type: "button",
|
|
55
55
|
disabled: e.disabled || e.loading
|
|
56
56
|
}, [
|
|
57
|
-
w("div",
|
|
57
|
+
w("div", ol, [
|
|
58
58
|
N(a.$slots, "icon-left")
|
|
59
59
|
]),
|
|
60
60
|
N(a.$slots, "default"),
|
|
61
|
-
w("div",
|
|
61
|
+
w("div", sl, [
|
|
62
62
|
N(a.$slots, "icon-right")
|
|
63
63
|
]),
|
|
64
|
-
e.loading ? (y(), k("div",
|
|
65
|
-
X(
|
|
64
|
+
e.loading ? (y(), k("div", ul, [
|
|
65
|
+
X(wn, {
|
|
66
66
|
"data-testid": `button-loader-${e.id}`,
|
|
67
67
|
size: e.size === "small" ? "sm" : "md",
|
|
68
68
|
dark: e.onColor
|
|
69
69
|
}, null, 8, ["data-testid", "size", "dark"])
|
|
70
70
|
])) : W("", !0)
|
|
71
|
-
], 10,
|
|
71
|
+
], 10, rl));
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
-
const
|
|
74
|
+
const cl = {
|
|
75
75
|
preserveAspectRatio: "xMidYMid meet",
|
|
76
76
|
viewBox: "0 0 24 24",
|
|
77
77
|
width: "1em",
|
|
78
78
|
height: "1em"
|
|
79
|
-
},
|
|
79
|
+
}, dl = /* @__PURE__ */ w("path", {
|
|
80
80
|
fill: "currentColor",
|
|
81
81
|
d: "M7 21q-.825 0-1.412-.587Q5 19.825 5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413Q17.825 21 17 21ZM17 6H7v13h10ZM9 17h2V8H9Zm4 0h2V8h-2ZM7 6v13Z"
|
|
82
|
-
}, null, -1),
|
|
83
|
-
|
|
82
|
+
}, null, -1), fl = [
|
|
83
|
+
dl
|
|
84
84
|
];
|
|
85
|
-
function
|
|
86
|
-
return y(), k("svg",
|
|
85
|
+
function vl(e, t) {
|
|
86
|
+
return y(), k("svg", cl, fl);
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const ml = { name: "material-symbols-delete-outline", render: vl }, On = /* @__PURE__ */ R({
|
|
89
89
|
__name: "ButtonDestructive",
|
|
90
90
|
props: {
|
|
91
91
|
id: null,
|
|
@@ -101,7 +101,7 @@ const vl = { name: "material-symbols-delete-outline", render: fl }, wn = /* @__P
|
|
|
101
101
|
class: "button-destructive"
|
|
102
102
|
}, {
|
|
103
103
|
"icon-left": ge(() => [
|
|
104
|
-
X(u(
|
|
104
|
+
X(u(ml))
|
|
105
105
|
]),
|
|
106
106
|
default: ge(() => [
|
|
107
107
|
N(t.$slots, "default")
|
|
@@ -113,7 +113,7 @@ const vl = { name: "material-symbols-delete-outline", render: fl }, wn = /* @__P
|
|
|
113
113
|
Qe.install = (e) => {
|
|
114
114
|
e.component("SolButton", Qe);
|
|
115
115
|
};
|
|
116
|
-
|
|
116
|
+
On.install = (e) => {
|
|
117
117
|
e.component("SolButton", Qe);
|
|
118
118
|
};
|
|
119
119
|
/*!
|
|
@@ -121,20 +121,20 @@ wn.install = (e) => {
|
|
|
121
121
|
* (c) 2019-2021 Alexander Shabunevich
|
|
122
122
|
* Released under the MIT License.
|
|
123
123
|
*/
|
|
124
|
-
function
|
|
124
|
+
function hl(e, t) {
|
|
125
125
|
if (!(e instanceof t))
|
|
126
126
|
throw new TypeError("Cannot call a class as a function");
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function yl(e, t) {
|
|
129
129
|
for (var n = 0; n < t.length; n++) {
|
|
130
130
|
var l = t[n];
|
|
131
131
|
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(e, l.key, l);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function bl(e, t, n) {
|
|
135
135
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Jt(e, t) {
|
|
138
138
|
var n = Object.keys(e);
|
|
139
139
|
if (Object.getOwnPropertySymbols) {
|
|
140
140
|
var l = Object.getOwnPropertySymbols(e);
|
|
@@ -147,28 +147,28 @@ function Wt(e, t) {
|
|
|
147
147
|
function it(e) {
|
|
148
148
|
for (var t = 1; t < arguments.length; t++) {
|
|
149
149
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
150
|
-
t % 2 ?
|
|
151
|
-
|
|
152
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
150
|
+
t % 2 ? Jt(Object(n), !0).forEach(function(l) {
|
|
151
|
+
bl(e, l, n[l]);
|
|
152
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Jt(Object(n)).forEach(function(l) {
|
|
153
153
|
Object.defineProperty(e, l, Object.getOwnPropertyDescriptor(n, l));
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
return e;
|
|
157
157
|
}
|
|
158
|
-
var
|
|
159
|
-
function
|
|
160
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
161
|
-
return
|
|
158
|
+
var Sn = { "#": { pattern: /[0-9]/ }, X: { pattern: /[0-9a-zA-Z]/ }, S: { pattern: /[a-zA-Z]/ }, A: { pattern: /[a-zA-Z]/, uppercase: !0 }, a: { pattern: /[a-zA-Z]/, lowercase: !0 }, "!": { escape: !0 }, "*": { repeat: !0 } };
|
|
159
|
+
function Xt(e, t) {
|
|
160
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Sn, l = !(arguments.length > 3 && arguments[3] !== void 0) || arguments[3];
|
|
161
|
+
return xn(t).length > 1 ? gl(t)(e, t, n, l) : St(e, t, n, l);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function xn(e) {
|
|
164
164
|
try {
|
|
165
165
|
return JSON.parse(e);
|
|
166
166
|
} catch {
|
|
167
167
|
return [e];
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
var t =
|
|
170
|
+
function gl(e) {
|
|
171
|
+
var t = xn(e).sort(function(l, i) {
|
|
172
172
|
return l.length - i.length;
|
|
173
173
|
});
|
|
174
174
|
return function(l, i, a) {
|
|
@@ -192,7 +192,7 @@ function St(e, t, n) {
|
|
|
192
192
|
for (var l = !(arguments.length > 3 && arguments[3] !== void 0) || arguments[3], i = 0, a = 0, r = "", o = ""; i < t.length && a < e.length; ) {
|
|
193
193
|
var s = t[i], c = e[a], f = n[s];
|
|
194
194
|
if (f && f.pattern)
|
|
195
|
-
f.pattern.test(c) && (r +=
|
|
195
|
+
f.pattern.test(c) && (r += $l(c, f), i++, l && t[i] && (n[t[i]] ? n[t[i]] && n[t[i]].escape && (r += t[i + 1], i += 2) : (r += t[i], i++))), a++;
|
|
196
196
|
else if (f && f.repeat) {
|
|
197
197
|
var m = n[t[i - 1]];
|
|
198
198
|
m && !m.pattern.test(c) ? i++ : i--;
|
|
@@ -209,33 +209,33 @@ function St(e, t, n) {
|
|
|
209
209
|
}
|
|
210
210
|
return r + o;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function $l(e, t) {
|
|
213
213
|
return t.transform && (e = t.transform(e)), t.uppercase ? e.toLocaleUpperCase() : t.lowercase ? e.toLocaleLowerCase() : e;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function en(e) {
|
|
216
216
|
return e instanceof HTMLInputElement ? e : e.querySelector("input") || e;
|
|
217
217
|
}
|
|
218
218
|
function xt(e) {
|
|
219
219
|
return Object.prototype.toString.call(e) === "[object String]";
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var pl = function() {
|
|
222
222
|
function e(l) {
|
|
223
223
|
var i = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
224
|
-
if (
|
|
224
|
+
if (hl(this, e), !l)
|
|
225
225
|
throw new Error("Maska: no element for mask");
|
|
226
226
|
if (a.preprocessor != null && typeof a.preprocessor != "function")
|
|
227
227
|
throw new Error("Maska: preprocessor must be a function");
|
|
228
228
|
if (a.tokens)
|
|
229
229
|
for (var r in a.tokens)
|
|
230
230
|
a.tokens[r] = it({}, a.tokens[r]), a.tokens[r].pattern && xt(a.tokens[r].pattern) && (a.tokens[r].pattern = new RegExp(a.tokens[r].pattern));
|
|
231
|
-
this._opts = { mask: a.mask, tokens: it(it({},
|
|
231
|
+
this._opts = { mask: a.mask, tokens: it(it({}, Sn), a.tokens), preprocessor: a.preprocessor }, this._el = xt(l) ? document.querySelectorAll(l) : l.length ? l : [l], this.inputEvent = function(o) {
|
|
232
232
|
return i.updateValue(o.target, o);
|
|
233
233
|
}, this.init();
|
|
234
234
|
}
|
|
235
235
|
var t, n;
|
|
236
236
|
return t = e, (n = [{ key: "init", value: function() {
|
|
237
237
|
for (var l = this, i = function(r) {
|
|
238
|
-
var o =
|
|
238
|
+
var o = en(l._el[r]);
|
|
239
239
|
!l._opts.mask || o.dataset.mask && o.dataset.mask === l._opts.mask || (o.dataset.mask = l._opts.mask), setTimeout(function() {
|
|
240
240
|
return l.updateValue(o);
|
|
241
241
|
}, 0), o.dataset.maskInited || (o.dataset.maskInited = !0, o.addEventListener("input", l.inputEvent), o.addEventListener("beforeinput", l.beforeInput));
|
|
@@ -243,7 +243,7 @@ var $l = function() {
|
|
|
243
243
|
i(a);
|
|
244
244
|
} }, { key: "destroy", value: function() {
|
|
245
245
|
for (var l = 0; l < this._el.length; l++) {
|
|
246
|
-
var i =
|
|
246
|
+
var i = en(this._el[l]);
|
|
247
247
|
i.removeEventListener("input", this.inputEvent), i.removeEventListener("beforeinput", this.beforeInput), delete i.dataset.mask, delete i.dataset.maskInited;
|
|
248
248
|
}
|
|
249
249
|
} }, { key: "updateValue", value: function(l, i) {
|
|
@@ -252,9 +252,9 @@ var $l = function() {
|
|
|
252
252
|
if (!l.value && !a || !l.dataset.mask)
|
|
253
253
|
return l.dataset.maskRawValue = "", void this.dispatch("maska", l, i);
|
|
254
254
|
var r = l.selectionEnd, o = l.value, s = o[r - 1];
|
|
255
|
-
l.dataset.maskRawValue =
|
|
255
|
+
l.dataset.maskRawValue = Xt(l.value, l.dataset.mask, this._opts.tokens, !1);
|
|
256
256
|
var c = l.value;
|
|
257
|
-
this._opts.preprocessor && (c = this._opts.preprocessor(c)), l.value =
|
|
257
|
+
this._opts.preprocessor && (c = this._opts.preprocessor(c)), l.value = Xt(c, l.dataset.mask, this._opts.tokens), i && i.inputType === "insertText" && r === o.length && (r = l.value.length), function(f, m, v) {
|
|
258
258
|
for (; m && m < f.value.length && f.value.charAt(m - 1) !== v; )
|
|
259
259
|
m++;
|
|
260
260
|
(f.type ? f.type.match(/^(text|search|password|tel|url)$/i) : !f.type) && f === document.activeElement && (f.setSelectionRange(m, m), setTimeout(function() {
|
|
@@ -269,30 +269,30 @@ var $l = function() {
|
|
|
269
269
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, s = document.createEvent("Event");
|
|
270
270
|
return s.initEvent(r, !0, !0), o && (s.inputType = o), s;
|
|
271
271
|
}(l, a && a.inputType || null));
|
|
272
|
-
} }]) &&
|
|
273
|
-
}(), bt,
|
|
272
|
+
} }]) && yl(t.prototype, n), e;
|
|
273
|
+
}(), bt, Cn = (bt = /* @__PURE__ */ new WeakMap(), function(e, t) {
|
|
274
274
|
t.value && (bt.has(e) && !function(n) {
|
|
275
275
|
return !(xt(n.value) && n.value === n.oldValue || Array.isArray(n.value) && JSON.stringify(n.value) === JSON.stringify(n.oldValue) || n.value && n.value.mask && n.oldValue && n.oldValue.mask && n.value.mask === n.oldValue.mask);
|
|
276
|
-
}(t) || bt.set(e, new
|
|
276
|
+
}(t) || bt.set(e, new pl(e, function(n) {
|
|
277
277
|
var l = {};
|
|
278
278
|
return n.mask ? (l.mask = Array.isArray(n.mask) ? JSON.stringify(n.mask) : n.mask, l.tokens = n.tokens ? it({}, n.tokens) : {}, l.preprocessor = n.preprocessor) : l.mask = Array.isArray(n) ? JSON.stringify(n) : n, l;
|
|
279
279
|
}(t.value))));
|
|
280
280
|
});
|
|
281
|
-
function
|
|
282
|
-
e.directive("maska",
|
|
281
|
+
function kl(e) {
|
|
282
|
+
e.directive("maska", Cn);
|
|
283
283
|
}
|
|
284
|
-
typeof window < "u" && window.Vue && window.Vue.use && window.Vue.use(
|
|
285
|
-
const
|
|
284
|
+
typeof window < "u" && window.Vue && window.Vue.use && window.Vue.use(kl);
|
|
285
|
+
const wl = {
|
|
286
286
|
CPF: "###.###.###-##",
|
|
287
287
|
CNPJ: "##.###.###/#####-##",
|
|
288
288
|
CPF_CNPJ: ["###.###.###-##", "##.###.###/#####-##"],
|
|
289
289
|
MobilePhoneDDD: "(##) # ####-####"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
292
|
-
const t =
|
|
291
|
+
function Ol(e) {
|
|
292
|
+
const t = Cn, n = S(() => {
|
|
293
293
|
if (e != null && e.hasOwnProperty("preset")) {
|
|
294
294
|
const { preset: l } = e;
|
|
295
|
-
return
|
|
295
|
+
return wl[l];
|
|
296
296
|
}
|
|
297
297
|
return e;
|
|
298
298
|
});
|
|
@@ -301,7 +301,7 @@ function wl(e) {
|
|
|
301
301
|
maskValue: n
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const Sl = ["id", "data-testid", "value"], In = /* @__PURE__ */ R({
|
|
305
305
|
__name: "Input",
|
|
306
306
|
props: {
|
|
307
307
|
id: null,
|
|
@@ -313,7 +313,7 @@ const Ol = ["id", "data-testid", "value"], Cn = /* @__PURE__ */ _({
|
|
|
313
313
|
},
|
|
314
314
|
emits: ["update:modelValue"],
|
|
315
315
|
setup(e, { expose: t, emit: n }) {
|
|
316
|
-
const l = e, { maskValue: i, vMask: a } =
|
|
316
|
+
const l = e, { maskValue: i, vMask: a } = Ol(l.mask);
|
|
317
317
|
function r({ target: s }) {
|
|
318
318
|
n("update:modelValue", s == null ? void 0 : s.value);
|
|
319
319
|
}
|
|
@@ -328,27 +328,27 @@ const Ol = ["id", "data-testid", "value"], Cn = /* @__PURE__ */ _({
|
|
|
328
328
|
value: e.modelValue,
|
|
329
329
|
class: M(["sol-input-core", [`-${e.size}`, { "-error": e.error, "-feedback-icon": e.hasFeedbackIcon }]]),
|
|
330
330
|
onInput: r
|
|
331
|
-
}, null, 42,
|
|
331
|
+
}, null, 42, Sl)), [
|
|
332
332
|
[u(a), u(i)]
|
|
333
333
|
]);
|
|
334
334
|
}
|
|
335
335
|
});
|
|
336
|
-
function
|
|
337
|
-
return
|
|
336
|
+
function xl() {
|
|
337
|
+
return An().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function An() {
|
|
340
340
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
341
341
|
}
|
|
342
|
-
const
|
|
342
|
+
const Cl = typeof Proxy == "function", Il = "devtools-plugin:setup", Al = "plugin:settings:set";
|
|
343
343
|
let Ee, Ct;
|
|
344
|
-
function
|
|
344
|
+
function El() {
|
|
345
345
|
var e;
|
|
346
346
|
return Ee !== void 0 || (typeof window < "u" && window.performance ? (Ee = !0, Ct = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? (Ee = !0, Ct = global.perf_hooks.performance) : Ee = !1), Ee;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
return
|
|
348
|
+
function Tl() {
|
|
349
|
+
return El() ? Ct.now() : Date.now();
|
|
350
350
|
}
|
|
351
|
-
class
|
|
351
|
+
class Fl {
|
|
352
352
|
constructor(t, n) {
|
|
353
353
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
354
354
|
const l = {};
|
|
@@ -376,9 +376,9 @@ class Tl {
|
|
|
376
376
|
a = r;
|
|
377
377
|
},
|
|
378
378
|
now() {
|
|
379
|
-
return
|
|
379
|
+
return Tl();
|
|
380
380
|
}
|
|
381
|
-
}, n && n.on(
|
|
381
|
+
}, n && n.on(Al, (r, o) => {
|
|
382
382
|
r === this.plugin.id && this.fallbacks.setSettings(o);
|
|
383
383
|
}), this.proxiedOn = new Proxy({}, {
|
|
384
384
|
get: (r, o) => this.target ? this.target.on[o] : (...s) => {
|
|
@@ -410,12 +410,12 @@ class Tl {
|
|
|
410
410
|
n.resolve(await this.target[n.method](...n.args));
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
const n = e, l =
|
|
413
|
+
function Vl(e, t) {
|
|
414
|
+
const n = e, l = An(), i = xl(), a = Cl && n.enableEarlyProxy;
|
|
415
415
|
if (i && (l.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
416
|
-
i.emit(
|
|
416
|
+
i.emit(Il, e, t);
|
|
417
417
|
else {
|
|
418
|
-
const r = a ? new
|
|
418
|
+
const r = a ? new Fl(n, i) : null;
|
|
419
419
|
(l.__VUE_DEVTOOLS_PLUGINS__ = l.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
420
420
|
pluginDescriptor: n,
|
|
421
421
|
setupFn: t,
|
|
@@ -431,63 +431,63 @@ function Fl(e, t) {
|
|
|
431
431
|
function Me(e) {
|
|
432
432
|
return typeof e == "function";
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function _e(e) {
|
|
435
435
|
return e == null;
|
|
436
436
|
}
|
|
437
437
|
const ke = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
|
|
438
|
-
function
|
|
438
|
+
function En(e) {
|
|
439
439
|
return Number(e) >= 0;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Bl(e) {
|
|
442
442
|
const t = parseFloat(e);
|
|
443
443
|
return isNaN(t) ? e : t;
|
|
444
444
|
}
|
|
445
|
-
const
|
|
446
|
-
function
|
|
447
|
-
return
|
|
445
|
+
const Pl = {};
|
|
446
|
+
function Ml(e) {
|
|
447
|
+
return Pl[e];
|
|
448
448
|
}
|
|
449
|
-
const xe = Symbol("vee-validate-form"),
|
|
449
|
+
const xe = Symbol("vee-validate-form"), jl = Symbol("vee-validate-field-instance"), rt = Symbol("Default empty value");
|
|
450
450
|
function It(e) {
|
|
451
451
|
return Me(e) && !!e.__locatorRef;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Re(e) {
|
|
454
454
|
return !!e && Me(e.validate);
|
|
455
455
|
}
|
|
456
456
|
function je(e) {
|
|
457
457
|
return e === "checkbox" || e === "radio";
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function Nl(e) {
|
|
460
460
|
return ke(e) || Array.isArray(e);
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function Tn(e) {
|
|
463
463
|
return Array.isArray(e) ? e.length === 0 : ke(e) && Object.keys(e).length === 0;
|
|
464
464
|
}
|
|
465
465
|
function vt(e) {
|
|
466
466
|
return /^\[.+\]$/i.test(e);
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
return
|
|
468
|
+
function Ll(e) {
|
|
469
|
+
return Fn(e) && e.multiple;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Fn(e) {
|
|
472
472
|
return e.tagName === "SELECT";
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Dl(e, t) {
|
|
475
475
|
const n = ![!1, null, void 0, 0].includes(t.multiple) && !Number.isNaN(t.multiple);
|
|
476
476
|
return e === "select" && "multiple" in t && n;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
479
|
-
return !
|
|
478
|
+
function zl(e, t) {
|
|
479
|
+
return !Dl(e, t) && t.type !== "file" && !je(t.type);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
return
|
|
481
|
+
function Vn(e) {
|
|
482
|
+
return Gt(e) && e.target && "submit" in e.target;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Gt(e) {
|
|
485
485
|
return e ? !!(typeof Event < "u" && Me(Event) && e instanceof Event || e && e.srcElement) : !1;
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function tn(e, t) {
|
|
488
488
|
return t in e && e[t] !== rt;
|
|
489
489
|
}
|
|
490
|
-
var
|
|
490
|
+
var nn = function e(t, n) {
|
|
491
491
|
if (t === n)
|
|
492
492
|
return !0;
|
|
493
493
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -522,15 +522,15 @@ var tn = function e(t, n) {
|
|
|
522
522
|
}
|
|
523
523
|
return t !== t && n !== n;
|
|
524
524
|
};
|
|
525
|
-
function
|
|
525
|
+
function Ht(e) {
|
|
526
526
|
return vt(e) ? e.replace(/\[|\]/gi, "") : e;
|
|
527
527
|
}
|
|
528
528
|
function Q(e, t, n) {
|
|
529
|
-
return e ? vt(t) ? e[
|
|
529
|
+
return e ? vt(t) ? e[Ht(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i, a) => Nl(i) && a in i ? i[a] : n, e) : n;
|
|
530
530
|
}
|
|
531
531
|
function pe(e, t, n) {
|
|
532
532
|
if (vt(t)) {
|
|
533
|
-
e[
|
|
533
|
+
e[Ht(t)] = n;
|
|
534
534
|
return;
|
|
535
535
|
}
|
|
536
536
|
const l = t.split(/\.|\[(\d+)\]/).filter(Boolean);
|
|
@@ -540,11 +540,11 @@ function pe(e, t, n) {
|
|
|
540
540
|
i[l[a]] = n;
|
|
541
541
|
return;
|
|
542
542
|
}
|
|
543
|
-
(!(l[a] in i) ||
|
|
543
|
+
(!(l[a] in i) || _e(i[l[a]])) && (i[l[a]] = En(l[a + 1]) ? [] : {}), i = i[l[a]];
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
function gt(e, t) {
|
|
547
|
-
if (Array.isArray(e) &&
|
|
547
|
+
if (Array.isArray(e) && En(t)) {
|
|
548
548
|
e.splice(Number(t), 1);
|
|
549
549
|
return;
|
|
550
550
|
}
|
|
@@ -552,7 +552,7 @@ function gt(e, t) {
|
|
|
552
552
|
}
|
|
553
553
|
function $t(e, t) {
|
|
554
554
|
if (vt(t)) {
|
|
555
|
-
delete e[
|
|
555
|
+
delete e[Ht(t)];
|
|
556
556
|
return;
|
|
557
557
|
}
|
|
558
558
|
const n = t.split(/\.|\[(\d+)\]/).filter(Boolean);
|
|
@@ -562,13 +562,13 @@ function $t(e, t) {
|
|
|
562
562
|
gt(l, n[a]);
|
|
563
563
|
break;
|
|
564
564
|
}
|
|
565
|
-
if (!(n[a] in l) ||
|
|
565
|
+
if (!(n[a] in l) || _e(l[n[a]]))
|
|
566
566
|
break;
|
|
567
567
|
l = l[n[a]];
|
|
568
568
|
}
|
|
569
569
|
const i = n.map((a, r) => Q(e, n.slice(0, r).join(".")));
|
|
570
570
|
for (let a = i.length - 1; a >= 0; a--)
|
|
571
|
-
if (!!
|
|
571
|
+
if (!!Tn(i[a])) {
|
|
572
572
|
if (a === 0) {
|
|
573
573
|
gt(e, n[0]);
|
|
574
574
|
continue;
|
|
@@ -581,20 +581,20 @@ function ee(e) {
|
|
|
581
581
|
}
|
|
582
582
|
function et(e, t = void 0) {
|
|
583
583
|
const n = Ye();
|
|
584
|
-
return (n == null ? void 0 : n.provides[e]) ||
|
|
584
|
+
return (n == null ? void 0 : n.provides[e]) || gn(e, t);
|
|
585
585
|
}
|
|
586
586
|
function pt(e) {
|
|
587
|
-
|
|
587
|
+
$n(`[vee-validate]: ${e}`);
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function _l(e) {
|
|
590
590
|
return Array.isArray(e) ? e[0] : e;
|
|
591
591
|
}
|
|
592
592
|
function At(e, t, n) {
|
|
593
593
|
if (Array.isArray(e)) {
|
|
594
|
-
const l = [...e], i = l.findIndex((a) =>
|
|
594
|
+
const l = [...e], i = l.findIndex((a) => nn(a, t));
|
|
595
595
|
return i >= 0 ? l.splice(i, 1) : l.push(t), l;
|
|
596
596
|
}
|
|
597
|
-
return
|
|
597
|
+
return nn(e, t) ? n : t;
|
|
598
598
|
}
|
|
599
599
|
function Rl(e, t) {
|
|
600
600
|
let n, l;
|
|
@@ -603,7 +603,7 @@ function Rl(e, t) {
|
|
|
603
603
|
return n || (n = !0, setTimeout(() => n = !1, t), l = e.apply(a, i)), l;
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function ln(e, t = 0) {
|
|
607
607
|
let n = null, l = [];
|
|
608
608
|
return function(...i) {
|
|
609
609
|
return n && window.clearTimeout(n), n = window.setTimeout(() => {
|
|
@@ -612,8 +612,8 @@ function nn(e, t = 0) {
|
|
|
612
612
|
}, t), new Promise((a) => l.push(a));
|
|
613
613
|
};
|
|
614
614
|
}
|
|
615
|
-
function
|
|
616
|
-
return ke(t) && t.number ?
|
|
615
|
+
function ql(e, t) {
|
|
616
|
+
return ke(t) && t.number ? Bl(e) : e;
|
|
617
617
|
}
|
|
618
618
|
function Et(e, t) {
|
|
619
619
|
let n;
|
|
@@ -631,31 +631,31 @@ const mt = (e, t, n) => t.slots.default ? typeof e == "string" || !e ? t.slots.d
|
|
|
631
631
|
}
|
|
632
632
|
} : t.slots.default;
|
|
633
633
|
function kt(e) {
|
|
634
|
-
if (
|
|
634
|
+
if (Bn(e))
|
|
635
635
|
return e._value;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Bn(e) {
|
|
638
638
|
return "_value" in e;
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
if (!
|
|
640
|
+
function Qt(e) {
|
|
641
|
+
if (!Gt(e))
|
|
642
642
|
return e;
|
|
643
643
|
const t = e.target;
|
|
644
|
-
if (je(t.type) &&
|
|
644
|
+
if (je(t.type) && Bn(t))
|
|
645
645
|
return kt(t);
|
|
646
646
|
if (t.type === "file" && t.files) {
|
|
647
647
|
const n = Array.from(t.files);
|
|
648
648
|
return t.multiple ? n : n[0];
|
|
649
649
|
}
|
|
650
|
-
if (
|
|
650
|
+
if (Ll(t))
|
|
651
651
|
return Array.from(t.options).filter((n) => n.selected && !n.disabled).map(kt);
|
|
652
|
-
if (
|
|
652
|
+
if (Fn(t)) {
|
|
653
653
|
const n = Array.from(t.options).find((l) => l.selected);
|
|
654
654
|
return n ? kt(n) : t.value;
|
|
655
655
|
}
|
|
656
656
|
return t.value;
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Pn(e) {
|
|
659
659
|
const t = {};
|
|
660
660
|
return Object.defineProperty(t, "_$$isNormalized", {
|
|
661
661
|
value: !0,
|
|
@@ -663,33 +663,33 @@ function Bn(e) {
|
|
|
663
663
|
enumerable: !1,
|
|
664
664
|
configurable: !1
|
|
665
665
|
}), e ? ke(e) && e._$$isNormalized ? e : ke(e) ? Object.keys(e).reduce((n, l) => {
|
|
666
|
-
const i =
|
|
667
|
-
return e[l] !== !1 && (n[l] =
|
|
666
|
+
const i = Ul(e[l]);
|
|
667
|
+
return e[l] !== !1 && (n[l] = an(i)), n;
|
|
668
668
|
}, t) : typeof e != "string" ? t : e.split("|").reduce((n, l) => {
|
|
669
|
-
const i =
|
|
670
|
-
return i.name && (n[i.name] =
|
|
669
|
+
const i = Gl(l);
|
|
670
|
+
return i.name && (n[i.name] = an(i.params)), n;
|
|
671
671
|
}, t) : t;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Ul(e) {
|
|
674
674
|
return e === !0 ? [] : Array.isArray(e) || ke(e) ? e : [e];
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
const t = (n) => typeof n == "string" && n[0] === "@" ?
|
|
676
|
+
function an(e) {
|
|
677
|
+
const t = (n) => typeof n == "string" && n[0] === "@" ? Hl(n.slice(1)) : n;
|
|
678
678
|
return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((n, l) => (n[l] = t(e[l]), n), {});
|
|
679
679
|
}
|
|
680
|
-
const
|
|
680
|
+
const Gl = (e) => {
|
|
681
681
|
let t = [];
|
|
682
682
|
const n = e.split(":")[0];
|
|
683
683
|
return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), { name: n, params: t };
|
|
684
684
|
};
|
|
685
|
-
function
|
|
685
|
+
function Hl(e) {
|
|
686
686
|
const t = (n) => Q(n, e) || n[e];
|
|
687
687
|
return t.__locatorRef = e, t;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Ql(e) {
|
|
690
690
|
return Array.isArray(e) ? e.filter(It) : ee(e).filter((t) => It(e[t])).map((t) => e[t]);
|
|
691
691
|
}
|
|
692
|
-
const
|
|
692
|
+
const Kl = {
|
|
693
693
|
generateMessage: ({ field: e }) => `${e} is not valid.`,
|
|
694
694
|
bails: !0,
|
|
695
695
|
validateOnBlur: !0,
|
|
@@ -697,23 +697,23 @@ const Ql = {
|
|
|
697
697
|
validateOnInput: !1,
|
|
698
698
|
validateOnModelUpdate: !0
|
|
699
699
|
};
|
|
700
|
-
let
|
|
701
|
-
const
|
|
702
|
-
async function
|
|
700
|
+
let Zl = Object.assign({}, Kl);
|
|
701
|
+
const Kt = () => Zl;
|
|
702
|
+
async function Mn(e, t, n = {}) {
|
|
703
703
|
const l = n == null ? void 0 : n.bails, i = {
|
|
704
704
|
name: (n == null ? void 0 : n.name) || "{field}",
|
|
705
705
|
rules: t,
|
|
706
706
|
bails: l != null ? l : !0,
|
|
707
707
|
formData: (n == null ? void 0 : n.values) || {}
|
|
708
|
-
}, r = (await
|
|
708
|
+
}, r = (await Yl(i, e)).errors;
|
|
709
709
|
return {
|
|
710
710
|
errors: r,
|
|
711
711
|
valid: !r.length
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
async function
|
|
715
|
-
if (
|
|
716
|
-
return
|
|
714
|
+
async function Yl(e, t) {
|
|
715
|
+
if (Re(e.rules))
|
|
716
|
+
return Wl(t, e.rules, { bails: e.bails });
|
|
717
717
|
if (Me(e.rules) || Array.isArray(e.rules)) {
|
|
718
718
|
const r = {
|
|
719
719
|
field: e.name,
|
|
@@ -724,7 +724,7 @@ async function Zl(e, t) {
|
|
|
724
724
|
const m = o[f], v = await m(t, r);
|
|
725
725
|
if (typeof v != "string" && v)
|
|
726
726
|
continue;
|
|
727
|
-
const O = typeof v == "string" ? v :
|
|
727
|
+
const O = typeof v == "string" ? v : jn(r);
|
|
728
728
|
if (c.push(O), e.bails)
|
|
729
729
|
return {
|
|
730
730
|
errors: c
|
|
@@ -734,9 +734,9 @@ async function Zl(e, t) {
|
|
|
734
734
|
errors: c
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
|
-
const n = Object.assign(Object.assign({}, e), { rules:
|
|
737
|
+
const n = Object.assign(Object.assign({}, e), { rules: Pn(e.rules) }), l = [], i = Object.keys(n.rules), a = i.length;
|
|
738
738
|
for (let r = 0; r < a; r++) {
|
|
739
|
-
const o = i[r], s = await
|
|
739
|
+
const o = i[r], s = await Jl(n, t, {
|
|
740
740
|
name: o,
|
|
741
741
|
params: n.rules[o]
|
|
742
742
|
});
|
|
@@ -749,7 +749,7 @@ async function Zl(e, t) {
|
|
|
749
749
|
errors: l
|
|
750
750
|
};
|
|
751
751
|
}
|
|
752
|
-
async function
|
|
752
|
+
async function Wl(e, t, n) {
|
|
753
753
|
var l;
|
|
754
754
|
return {
|
|
755
755
|
errors: await t.validate(e, {
|
|
@@ -761,11 +761,11 @@ async function Yl(e, t, n) {
|
|
|
761
761
|
})
|
|
762
762
|
};
|
|
763
763
|
}
|
|
764
|
-
async function
|
|
765
|
-
const l =
|
|
764
|
+
async function Jl(e, t, n) {
|
|
765
|
+
const l = Ml(n.name);
|
|
766
766
|
if (!l)
|
|
767
767
|
throw new Error(`No such validator '${n.name}' exists.`);
|
|
768
|
-
const i =
|
|
768
|
+
const i = Xl(n.params, e.formData), a = {
|
|
769
769
|
field: e.name,
|
|
770
770
|
value: t,
|
|
771
771
|
form: e.formData,
|
|
@@ -774,18 +774,18 @@ async function Wl(e, t, n) {
|
|
|
774
774
|
return typeof r == "string" ? {
|
|
775
775
|
error: r
|
|
776
776
|
} : {
|
|
777
|
-
error: r ? void 0 :
|
|
777
|
+
error: r ? void 0 : jn(a)
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
const t =
|
|
780
|
+
function jn(e) {
|
|
781
|
+
const t = Kt().generateMessage;
|
|
782
782
|
return t ? t(e) : "Field is invalid";
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function Xl(e, t) {
|
|
785
785
|
const n = (l) => It(l) ? l(t) : l;
|
|
786
786
|
return Array.isArray(e) ? e.map(n) : Object.keys(e).reduce((l, i) => (l[i] = n(e[i]), l), {});
|
|
787
787
|
}
|
|
788
|
-
async function
|
|
788
|
+
async function ei(e, t) {
|
|
789
789
|
const n = await e.validate(t, { abortEarly: !1 }).then(() => []).catch((a) => {
|
|
790
790
|
if (a.name !== "ValidationError")
|
|
791
791
|
throw a;
|
|
@@ -801,10 +801,10 @@ async function Xl(e, t) {
|
|
|
801
801
|
errors: i
|
|
802
802
|
};
|
|
803
803
|
}
|
|
804
|
-
async function
|
|
804
|
+
async function ti(e, t, n) {
|
|
805
805
|
const i = ee(e).map(async (c) => {
|
|
806
806
|
var f, m, v;
|
|
807
|
-
const b = await
|
|
807
|
+
const b = await Mn(Q(t, c), e[c], {
|
|
808
808
|
name: ((f = n == null ? void 0 : n.names) === null || f === void 0 ? void 0 : f[c]) || c,
|
|
809
809
|
values: t,
|
|
810
810
|
bails: (v = (m = n == null ? void 0 : n.bailsMap) === null || m === void 0 ? void 0 : m[c]) !== null && v !== void 0 ? v : !0
|
|
@@ -824,7 +824,7 @@ async function ei(e, t, n) {
|
|
|
824
824
|
errors: s
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function rn(e, t, n) {
|
|
828
828
|
typeof n.value == "object" && (n.value = Z(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
|
|
829
829
|
}
|
|
830
830
|
function Z(e) {
|
|
@@ -837,9 +837,9 @@ function Z(e) {
|
|
|
837
837
|
i.set(Z(o), Z(r));
|
|
838
838
|
})) : a === "[object Date]" ? i = new Date(+e) : a === "[object RegExp]" ? i = new RegExp(e.source, e.flags) : a === "[object DataView]" ? i = new e.constructor(Z(e.buffer)) : a === "[object ArrayBuffer]" ? i = e.slice(0) : a.slice(-6) === "Array]" && (i = new e.constructor(e)), i) {
|
|
839
839
|
for (l = Object.getOwnPropertySymbols(e); t < l.length; t++)
|
|
840
|
-
|
|
840
|
+
rn(i, l[t], Object.getOwnPropertyDescriptor(e, l[t]));
|
|
841
841
|
for (t = 0, l = Object.getOwnPropertyNames(e); t < l.length; t++)
|
|
842
|
-
Object.hasOwnProperty.call(i, n = l[t]) && i[n] === e[n] ||
|
|
842
|
+
Object.hasOwnProperty.call(i, n = l[t]) && i[n] === e[n] || rn(i, n, Object.getOwnPropertyDescriptor(e, n));
|
|
843
843
|
}
|
|
844
844
|
return i || e;
|
|
845
845
|
}
|
|
@@ -905,9 +905,9 @@ var de = function e(t, n) {
|
|
|
905
905
|
}
|
|
906
906
|
return t !== t && n !== n;
|
|
907
907
|
};
|
|
908
|
-
let
|
|
909
|
-
function
|
|
910
|
-
const { value: n, initialValue: l, setInitialValue: i } =
|
|
908
|
+
let on = 0;
|
|
909
|
+
function ni(e, t) {
|
|
910
|
+
const { value: n, initialValue: l, setInitialValue: i } = Nn(e, t.modelValue, !t.standalone), { errorMessage: a, errors: r, setErrors: o } = ii(e, !t.standalone), s = li(n, l, r), c = on >= Number.MAX_SAFE_INTEGER ? 0 : ++on;
|
|
911
911
|
function f(m) {
|
|
912
912
|
var v;
|
|
913
913
|
"value" in m && (n.value = m.value), "errors" in m && o(m.errors), "touched" in m && (s.touched = (v = m.touched) !== null && v !== void 0 ? v : s.touched), "initialValue" in m && i(m.initialValue);
|
|
@@ -923,7 +923,7 @@ function ti(e, t) {
|
|
|
923
923
|
setState: f
|
|
924
924
|
};
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function Nn(e, t, n = !0) {
|
|
927
927
|
const l = n === !0 ? et(xe, void 0) : void 0, i = z(u(t));
|
|
928
928
|
function a() {
|
|
929
929
|
return l ? Q(l.meta.value.initialValues, u(e), u(i)) : u(i);
|
|
@@ -956,7 +956,7 @@ function jn(e, t, n = !0) {
|
|
|
956
956
|
setInitialValue: r
|
|
957
957
|
};
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function li(e, t, n) {
|
|
960
960
|
const l = We({
|
|
961
961
|
touched: !1,
|
|
962
962
|
pending: !1,
|
|
@@ -972,7 +972,7 @@ function ni(e, t, n) {
|
|
|
972
972
|
flush: "sync"
|
|
973
973
|
}), l;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function ii(e, t) {
|
|
976
976
|
const n = t ? et(xe, void 0) : void 0;
|
|
977
977
|
function l(a) {
|
|
978
978
|
return a ? Array.isArray(a) ? a : [a] : [];
|
|
@@ -996,15 +996,15 @@ function li(e, t) {
|
|
|
996
996
|
}
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
process.env.NODE_ENV !== "production" &&
|
|
999
|
+
function Ln(e) {
|
|
1000
|
+
process.env.NODE_ENV !== "production" && Vl({
|
|
1001
1001
|
id: "vee-validate-devtools-plugin",
|
|
1002
1002
|
label: "VeeValidate Plugin",
|
|
1003
1003
|
packageName: "vee-validate",
|
|
1004
1004
|
homepage: "https://vee-validate.logaretm.com/v4",
|
|
1005
1005
|
app: e,
|
|
1006
1006
|
logo: "https://vee-validate.logaretm.com/v4/logo.png"
|
|
1007
|
-
},
|
|
1007
|
+
}, oi);
|
|
1008
1008
|
}
|
|
1009
1009
|
const qe = {}, Ue = {};
|
|
1010
1010
|
let ye;
|
|
@@ -1013,27 +1013,27 @@ const Ne = Rl(() => {
|
|
|
1013
1013
|
await Te(), ye == null || ye.sendInspectorState(Fe), ye == null || ye.sendInspectorTree(Fe);
|
|
1014
1014
|
}, 100);
|
|
1015
1015
|
}, 100);
|
|
1016
|
-
function
|
|
1016
|
+
function ai(e) {
|
|
1017
1017
|
const t = Ye();
|
|
1018
1018
|
if (!ye) {
|
|
1019
1019
|
const n = t == null ? void 0 : t.appContext.app;
|
|
1020
1020
|
if (!n)
|
|
1021
1021
|
return;
|
|
1022
|
-
|
|
1022
|
+
Ln(n);
|
|
1023
1023
|
}
|
|
1024
|
-
qe[e.formId] = Object.assign({}, e), qe[e.formId]._vm = t,
|
|
1024
|
+
qe[e.formId] = Object.assign({}, e), qe[e.formId]._vm = t, Ut(() => {
|
|
1025
1025
|
delete qe[e.formId], Ne();
|
|
1026
1026
|
}), Ne();
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function ri(e) {
|
|
1029
1029
|
const t = Ye();
|
|
1030
1030
|
if (!ye) {
|
|
1031
1031
|
const n = t == null ? void 0 : t.appContext.app;
|
|
1032
1032
|
if (!n)
|
|
1033
1033
|
return;
|
|
1034
|
-
|
|
1034
|
+
Ln(n);
|
|
1035
1035
|
}
|
|
1036
|
-
Ue[e.id] = Object.assign({}, e), Ue[e.id]._vm = t,
|
|
1036
|
+
Ue[e.id] = Object.assign({}, e), Ue[e.id]._vm = t, Ut(() => {
|
|
1037
1037
|
delete Ue[e.id], Ne();
|
|
1038
1038
|
}), Ne();
|
|
1039
1039
|
}
|
|
@@ -1049,7 +1049,7 @@ const Fe = "vee-validate-inspector", re = {
|
|
|
1049
1049
|
gray: 12304330
|
|
1050
1050
|
};
|
|
1051
1051
|
let he = null;
|
|
1052
|
-
function
|
|
1052
|
+
function oi(e) {
|
|
1053
1053
|
ye = e, e.addInspector({
|
|
1054
1054
|
id: Fe,
|
|
1055
1055
|
icon: "rule",
|
|
@@ -1089,29 +1089,29 @@ function ri(e) {
|
|
|
1089
1089
|
return;
|
|
1090
1090
|
const n = Object.values(qe), l = Object.values(Ue);
|
|
1091
1091
|
t.rootNodes = [
|
|
1092
|
-
...n.map(
|
|
1093
|
-
...l.map((i) =>
|
|
1092
|
+
...n.map(si),
|
|
1093
|
+
...l.map((i) => Zt(i))
|
|
1094
1094
|
];
|
|
1095
1095
|
}), e.on.getInspectorState((t, n) => {
|
|
1096
1096
|
if (t.inspectorId !== Fe || n.currentTab !== `custom-inspector:${Fe}`)
|
|
1097
1097
|
return;
|
|
1098
|
-
const { form: l, field: i, type: a } =
|
|
1098
|
+
const { form: l, field: i, type: a } = ui(t.nodeId);
|
|
1099
1099
|
if (l && a === "form") {
|
|
1100
|
-
t.state =
|
|
1100
|
+
t.state = di(l), he = l;
|
|
1101
1101
|
return;
|
|
1102
1102
|
}
|
|
1103
1103
|
if (i && a === "field") {
|
|
1104
|
-
t.state =
|
|
1104
|
+
t.state = ci(i), he = i;
|
|
1105
1105
|
return;
|
|
1106
1106
|
}
|
|
1107
1107
|
he = null;
|
|
1108
1108
|
});
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1111
|
-
const { textColor: t, bgColor: n } =
|
|
1110
|
+
function si(e) {
|
|
1111
|
+
const { textColor: t, bgColor: n } = zn(e), l = {};
|
|
1112
1112
|
Object.values(e.fieldsByPath.value).forEach((r) => {
|
|
1113
1113
|
const o = Array.isArray(r) ? r[0] : r;
|
|
1114
|
-
!o || pe(l, u(o.name),
|
|
1114
|
+
!o || pe(l, u(o.name), Zt(o, e));
|
|
1115
1115
|
});
|
|
1116
1116
|
function i(r, o = []) {
|
|
1117
1117
|
const s = [...o].pop();
|
|
@@ -1127,7 +1127,7 @@ function oi(e) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
const { children: a } = i(l);
|
|
1129
1129
|
return {
|
|
1130
|
-
id:
|
|
1130
|
+
id: Dn(e),
|
|
1131
1131
|
label: "Form",
|
|
1132
1132
|
children: a,
|
|
1133
1133
|
tags: [
|
|
@@ -1144,12 +1144,12 @@ function oi(e) {
|
|
|
1144
1144
|
]
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
const n =
|
|
1147
|
+
function Zt(e, t) {
|
|
1148
|
+
const n = _l(e), { textColor: l, bgColor: i } = zn(n), a = Array.isArray(e) && e.length > 1;
|
|
1149
1149
|
return {
|
|
1150
|
-
id:
|
|
1150
|
+
id: Dn(t, n, !a),
|
|
1151
1151
|
label: u(n.name),
|
|
1152
|
-
children: Array.isArray(e) ? e.map((r) =>
|
|
1152
|
+
children: Array.isArray(e) ? e.map((r) => Zt(r, t)) : void 0,
|
|
1153
1153
|
tags: [
|
|
1154
1154
|
a ? void 0 : {
|
|
1155
1155
|
label: "Field",
|
|
@@ -1179,14 +1179,14 @@ function Kt(e, t) {
|
|
|
1179
1179
|
].filter(Boolean)
|
|
1180
1180
|
};
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function Dn(e, t, n = !0) {
|
|
1183
1183
|
const l = e ? u(t == null ? void 0 : t.name) : t == null ? void 0 : t.id, i = l ? e == null ? void 0 : e.fieldsByPath.value[l] : void 0;
|
|
1184
1184
|
let a;
|
|
1185
1185
|
n && t && Array.isArray(i) && (a = i.indexOf(t));
|
|
1186
1186
|
const r = { f: e == null ? void 0 : e.formId, ff: l, idx: a, type: t ? "field" : "form" };
|
|
1187
1187
|
return btoa(JSON.stringify(r));
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function ui(e) {
|
|
1190
1190
|
try {
|
|
1191
1191
|
const t = JSON.parse(atob(e)), n = qe[t.f];
|
|
1192
1192
|
if (!n && t.ff) {
|
|
@@ -1208,7 +1208,7 @@ function si(e) {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
return {};
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function ci(e) {
|
|
1212
1212
|
const { errors: t, meta: n, value: l } = e;
|
|
1213
1213
|
return {
|
|
1214
1214
|
"Field state": [
|
|
@@ -1236,7 +1236,7 @@ function ui(e) {
|
|
|
1236
1236
|
]
|
|
1237
1237
|
};
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function di(e) {
|
|
1240
1240
|
const { errorBag: t, meta: n, values: l, isSubmitting: i, submitCount: a } = e;
|
|
1241
1241
|
return {
|
|
1242
1242
|
"Form state": [
|
|
@@ -1279,7 +1279,7 @@ function ci(e) {
|
|
|
1279
1279
|
]
|
|
1280
1280
|
};
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function zn(e) {
|
|
1283
1283
|
const t = "id" in e ? e.meta.valid : e.meta.value.valid;
|
|
1284
1284
|
return {
|
|
1285
1285
|
bgColor: t ? re.success : re.error,
|
|
@@ -1287,26 +1287,26 @@ function Dn(e) {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
}
|
|
1289
1289
|
function Tt(e, t, n) {
|
|
1290
|
-
return je(n == null ? void 0 : n.type) ?
|
|
1290
|
+
return je(n == null ? void 0 : n.type) ? mi(e, t, n) : _n(e, t, n);
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1293
|
-
const { initialValue: l, validateOnMount: i, bails: a, type: r, checkedValue: o, label: s, validateOnValueUpdate: c, uncheckedValue: f, standalone: m, keepValueOnUnmount: v, modelPropName: b, syncVModel: O } =
|
|
1292
|
+
function _n(e, t, n) {
|
|
1293
|
+
const { initialValue: l, validateOnMount: i, bails: a, type: r, checkedValue: o, label: s, validateOnValueUpdate: c, uncheckedValue: f, standalone: m, keepValueOnUnmount: v, modelPropName: b, syncVModel: O } = fi(u(e), n), C = m ? void 0 : et(xe);
|
|
1294
1294
|
let L = !1;
|
|
1295
|
-
const { id: J, value: H, initialValue: p, meta: g, setState: V, errors: A, errorMessage: B } =
|
|
1295
|
+
const { id: J, value: H, initialValue: p, meta: g, setState: V, errors: A, errorMessage: B } = ni(e, {
|
|
1296
1296
|
modelValue: l,
|
|
1297
1297
|
standalone: m
|
|
1298
1298
|
});
|
|
1299
|
-
O &&
|
|
1299
|
+
O && hi({ value: H, prop: b, handleChange: fe });
|
|
1300
1300
|
const P = () => {
|
|
1301
1301
|
g.touched = !0;
|
|
1302
1302
|
}, U = S(() => {
|
|
1303
1303
|
let $ = u(t);
|
|
1304
1304
|
const D = u(C == null ? void 0 : C.schema);
|
|
1305
|
-
return D && !
|
|
1305
|
+
return D && !Re(D) && ($ = vi(D, u(e)) || $), Re($) || Me($) || Array.isArray($) ? $ : Pn($);
|
|
1306
1306
|
});
|
|
1307
1307
|
async function q($) {
|
|
1308
1308
|
var D, ne;
|
|
1309
|
-
return C != null && C.validateSchema ? (D = (await C.validateSchema($)).results[u(e)]) !== null && D !== void 0 ? D : { valid: !0, errors: [] } :
|
|
1309
|
+
return C != null && C.validateSchema ? (D = (await C.validateSchema($)).results[u(e)]) !== null && D !== void 0 ? D : { valid: !0, errors: [] } : Mn(H.value, U.value, {
|
|
1310
1310
|
name: u(s) || u(e),
|
|
1311
1311
|
values: (ne = C == null ? void 0 : C.values) !== null && ne !== void 0 ? ne : {},
|
|
1312
1312
|
bails: a
|
|
@@ -1317,7 +1317,7 @@ function zn(e, t, n) {
|
|
|
1317
1317
|
return ($ == null ? void 0 : $.mode) === "silent" ? K() : j();
|
|
1318
1318
|
}
|
|
1319
1319
|
function fe($, D = !0) {
|
|
1320
|
-
const ne =
|
|
1320
|
+
const ne = Qt($);
|
|
1321
1321
|
H.value = ne, !c && D && j();
|
|
1322
1322
|
}
|
|
1323
1323
|
ft(() => {
|
|
@@ -1381,21 +1381,21 @@ function zn(e, t, n) {
|
|
|
1381
1381
|
setErrors: Ce,
|
|
1382
1382
|
setValue: ie
|
|
1383
1383
|
};
|
|
1384
|
-
if (
|
|
1384
|
+
if (yn(jl, ae), Be(t) && typeof u(t) != "function" && se(t, ($, D) => {
|
|
1385
1385
|
de($, D) || (g.validated ? j() : K());
|
|
1386
1386
|
}, {
|
|
1387
1387
|
deep: !0
|
|
1388
1388
|
}), process.env.NODE_ENV !== "production" && (ae._vm = Ye(), se(() => Object.assign(Object.assign({ errors: A.value }, g), { value: H.value }), Ne, {
|
|
1389
1389
|
deep: !0
|
|
1390
|
-
}), C ||
|
|
1390
|
+
}), C || ri(ae)), !C)
|
|
1391
1391
|
return ae;
|
|
1392
|
-
C.register(ae),
|
|
1392
|
+
C.register(ae), bn(() => {
|
|
1393
1393
|
L = !0, C.unregister(ae);
|
|
1394
1394
|
});
|
|
1395
1395
|
const $e = S(() => {
|
|
1396
1396
|
const $ = U.value;
|
|
1397
|
-
return !$ || Me($) ||
|
|
1398
|
-
const ht =
|
|
1397
|
+
return !$ || Me($) || Re($) || Array.isArray($) ? {} : Object.keys($).reduce((D, ne) => {
|
|
1398
|
+
const ht = Ql($[ne]).map((Ie) => Ie.__locatorRef).reduce((Ie, ve) => {
|
|
1399
1399
|
const we = Q(C.values, ve) || C.values[ve];
|
|
1400
1400
|
return we !== void 0 && (Ie[ve] = we), Ie;
|
|
1401
1401
|
}, {});
|
|
@@ -1408,7 +1408,7 @@ function zn(e, t, n) {
|
|
|
1408
1408
|
!de($, D) && (g.validated ? j() : K());
|
|
1409
1409
|
}), ae;
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function fi(e, t) {
|
|
1412
1412
|
const n = () => ({
|
|
1413
1413
|
initialValue: void 0,
|
|
1414
1414
|
validateOnMount: !1,
|
|
@@ -1426,11 +1426,11 @@ function di(e, t) {
|
|
|
1426
1426
|
const l = "valueProp" in t ? t.valueProp : t.checkedValue;
|
|
1427
1427
|
return Object.assign(Object.assign(Object.assign({}, n()), t || {}), { checkedValue: l });
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function vi(e, t) {
|
|
1430
1430
|
if (!!e)
|
|
1431
1431
|
return e[t];
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function mi(e, t, n) {
|
|
1434
1434
|
const l = n != null && n.standalone ? void 0 : et(xe), i = n == null ? void 0 : n.checkedValue, a = n == null ? void 0 : n.uncheckedValue;
|
|
1435
1435
|
function r(o) {
|
|
1436
1436
|
const s = o.handleChange, c = S(() => {
|
|
@@ -1441,7 +1441,7 @@ function vi(e, t, n) {
|
|
|
1441
1441
|
var b;
|
|
1442
1442
|
if (c.value === ((b = m == null ? void 0 : m.target) === null || b === void 0 ? void 0 : b.checked))
|
|
1443
1443
|
return;
|
|
1444
|
-
let O =
|
|
1444
|
+
let O = Qt(m);
|
|
1445
1445
|
l || (O = At(u(o.value), u(i), u(a))), s(O, v);
|
|
1446
1446
|
}
|
|
1447
1447
|
return Object.assign(Object.assign({}, o), {
|
|
@@ -1451,9 +1451,9 @@ function vi(e, t, n) {
|
|
|
1451
1451
|
handleChange: f
|
|
1452
1452
|
});
|
|
1453
1453
|
}
|
|
1454
|
-
return r(
|
|
1454
|
+
return r(_n(e, t, n));
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1456
|
+
function hi({ prop: e, value: t, handleChange: n }) {
|
|
1457
1457
|
const l = Ye();
|
|
1458
1458
|
if (!l) {
|
|
1459
1459
|
process.env.NODE_ENV !== "production" && console.warn("Failed to setup model events because `useField` was not called in setup.");
|
|
@@ -1461,18 +1461,18 @@ function mi({ prop: e, value: t, handleChange: n }) {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
const i = e || "modelValue", a = `update:${i}`;
|
|
1463
1463
|
i in l.props && (se(t, (r) => {
|
|
1464
|
-
de(r,
|
|
1465
|
-
}), se(() =>
|
|
1464
|
+
de(r, sn(l, i)) || l.emit(a, r);
|
|
1465
|
+
}), se(() => sn(l, i), (r) => {
|
|
1466
1466
|
if (r === rt && t.value === void 0)
|
|
1467
1467
|
return;
|
|
1468
1468
|
const o = r === rt ? void 0 : r;
|
|
1469
|
-
de(o,
|
|
1469
|
+
de(o, ql(t.value, l.props.modelModifiers)) || n(o);
|
|
1470
1470
|
}));
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function sn(e, t) {
|
|
1473
1473
|
return e.props[t];
|
|
1474
1474
|
}
|
|
1475
|
-
|
|
1475
|
+
R({
|
|
1476
1476
|
name: "Field",
|
|
1477
1477
|
inheritAttrs: !1,
|
|
1478
1478
|
props: {
|
|
@@ -1510,7 +1510,7 @@ _({
|
|
|
1510
1510
|
},
|
|
1511
1511
|
bails: {
|
|
1512
1512
|
type: Boolean,
|
|
1513
|
-
default: () =>
|
|
1513
|
+
default: () => Kt().bails
|
|
1514
1514
|
},
|
|
1515
1515
|
label: {
|
|
1516
1516
|
type: String,
|
|
@@ -1547,7 +1547,7 @@ _({
|
|
|
1547
1547
|
bails: e.bails,
|
|
1548
1548
|
standalone: e.standalone,
|
|
1549
1549
|
type: t.attrs.type,
|
|
1550
|
-
initialValue:
|
|
1550
|
+
initialValue: bi(e, t),
|
|
1551
1551
|
checkedValue: t.attrs.value,
|
|
1552
1552
|
uncheckedValue: a,
|
|
1553
1553
|
label: i,
|
|
@@ -1556,19 +1556,19 @@ _({
|
|
|
1556
1556
|
}), p = function(U, q = !0) {
|
|
1557
1557
|
m(U, q), t.emit("update:modelValue", s.value);
|
|
1558
1558
|
}, g = (P) => {
|
|
1559
|
-
je(t.attrs.type) || (s.value =
|
|
1559
|
+
je(t.attrs.type) || (s.value = Qt(P));
|
|
1560
1560
|
}, V = function(U) {
|
|
1561
1561
|
g(U), t.emit("update:modelValue", s.value);
|
|
1562
1562
|
}, A = S(() => {
|
|
1563
|
-
const { validateOnInput: P, validateOnChange: U, validateOnBlur: q, validateOnModelUpdate: j } =
|
|
1563
|
+
const { validateOnInput: P, validateOnChange: U, validateOnBlur: q, validateOnModelUpdate: j } = yi(e), K = [v, t.attrs.onBlur, q ? f : void 0].filter(Boolean), oe = [(E) => p(E, P), t.attrs.onInput].filter(Boolean), fe = [(E) => p(E, U), t.attrs.onChange].filter(Boolean), te = {
|
|
1564
1564
|
name: e.name,
|
|
1565
1565
|
onBlur: K,
|
|
1566
1566
|
onInput: oe,
|
|
1567
1567
|
onChange: fe
|
|
1568
1568
|
};
|
|
1569
1569
|
te["onUpdate:modelValue"] = (E) => p(E, j), je(t.attrs.type) && J && (te.checked = J.value);
|
|
1570
|
-
const I =
|
|
1571
|
-
return
|
|
1570
|
+
const I = un(e, t);
|
|
1571
|
+
return zl(I, t.attrs) && (te.value = s.value), te;
|
|
1572
1572
|
});
|
|
1573
1573
|
function B() {
|
|
1574
1574
|
return {
|
|
@@ -1594,18 +1594,18 @@ _({
|
|
|
1594
1594
|
validate: f,
|
|
1595
1595
|
handleChange: m
|
|
1596
1596
|
}), () => {
|
|
1597
|
-
const P =
|
|
1597
|
+
const P = qt(un(e, t)), U = mt(P, t, B);
|
|
1598
1598
|
return P ? at(P, Object.assign(Object.assign({}, t.attrs), A.value), U) : U;
|
|
1599
1599
|
};
|
|
1600
1600
|
}
|
|
1601
1601
|
});
|
|
1602
|
-
function
|
|
1602
|
+
function un(e, t) {
|
|
1603
1603
|
let n = e.as || "";
|
|
1604
1604
|
return !e.as && !t.slots.default && (n = "input"), n;
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function yi(e) {
|
|
1607
1607
|
var t, n, l, i;
|
|
1608
|
-
const { validateOnInput: a, validateOnChange: r, validateOnBlur: o, validateOnModelUpdate: s } =
|
|
1608
|
+
const { validateOnInput: a, validateOnChange: r, validateOnBlur: o, validateOnModelUpdate: s } = Kt();
|
|
1609
1609
|
return {
|
|
1610
1610
|
validateOnInput: (t = e.validateOnInput) !== null && t !== void 0 ? t : a,
|
|
1611
1611
|
validateOnChange: (n = e.validateOnChange) !== null && n !== void 0 ? n : r,
|
|
@@ -1613,15 +1613,15 @@ function hi(e) {
|
|
|
1613
1613
|
validateOnModelUpdate: (i = e.validateOnModelUpdate) !== null && i !== void 0 ? i : s
|
|
1614
1614
|
};
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1617
|
-
return je(t.attrs.type) ?
|
|
1616
|
+
function bi(e, t) {
|
|
1617
|
+
return je(t.attrs.type) ? tn(e, "modelValue") ? e.modelValue : void 0 : tn(e, "modelValue") ? e.modelValue : t.attrs.value;
|
|
1618
1618
|
}
|
|
1619
|
-
let
|
|
1620
|
-
function
|
|
1619
|
+
let gi = 0;
|
|
1620
|
+
function $i(e) {
|
|
1621
1621
|
var t;
|
|
1622
|
-
const n =
|
|
1622
|
+
const n = gi++;
|
|
1623
1623
|
let l = !1;
|
|
1624
|
-
const i = z({}), a = z(!1), r = z(0), o = [], s = We(Z(u(e == null ? void 0 : e.initialValues) || {})), { errorBag: c, setErrorBag: f, setFieldErrorBag: m } =
|
|
1624
|
+
const i = z({}), a = z(!1), r = z(0), o = [], s = We(Z(u(e == null ? void 0 : e.initialValues) || {})), { errorBag: c, setErrorBag: f, setFieldErrorBag: m } = wi(e == null ? void 0 : e.initialErrors), v = S(() => ee(c.value).reduce((d, h) => {
|
|
1625
1625
|
const T = c.value[h];
|
|
1626
1626
|
return T && T.length && (d[h] = T[0]), d;
|
|
1627
1627
|
}, {}));
|
|
@@ -1639,7 +1639,7 @@ function gi(e) {
|
|
|
1639
1639
|
var T;
|
|
1640
1640
|
const F = b(h);
|
|
1641
1641
|
return F && (d[h] = (T = F.bails) !== null && T !== void 0 ? T : !0), d;
|
|
1642
|
-
}, {})), J = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), H = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: p, originalInitialValues: g, setInitialValues: V } =
|
|
1642
|
+
}, {})), J = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), H = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: p, originalInitialValues: g, setInitialValues: V } = ki(i, s, e == null ? void 0 : e.initialValues), A = pi(i, s, g, v), B = e == null ? void 0 : e.validationSchema, P = ln(Wt, 5), U = ln(Wt, 5), q = Et(async (d) => await d === "silent" ? P() : U(), (d, [h]) => {
|
|
1643
1643
|
const T = j.fieldsByPath.value || {}, F = ee(j.errorBag.value);
|
|
1644
1644
|
return [
|
|
1645
1645
|
.../* @__PURE__ */ new Set([...ee(d.results), ...ee(T), ...F])
|
|
@@ -1652,8 +1652,8 @@ function gi(e) {
|
|
|
1652
1652
|
return te(le, Ae), Y;
|
|
1653
1653
|
if (oe(me, (Le) => Le.meta.valid = ce.valid), h === "silent")
|
|
1654
1654
|
return Y;
|
|
1655
|
-
const
|
|
1656
|
-
return h === "validated-only" && !
|
|
1655
|
+
const Xn = Array.isArray(me) ? me.some((Le) => Le.meta.validated) : me.meta.validated;
|
|
1656
|
+
return h === "validated-only" && !Xn || oe(me, (Le) => Le.setState({ errors: ce.errors })), Y;
|
|
1657
1657
|
}, { valid: d.valid, results: {}, errors: {} });
|
|
1658
1658
|
}), j = {
|
|
1659
1659
|
formId: n,
|
|
@@ -1681,9 +1681,9 @@ function gi(e) {
|
|
|
1681
1681
|
setTouched: $e,
|
|
1682
1682
|
resetForm: $,
|
|
1683
1683
|
handleSubmit: yt,
|
|
1684
|
-
stageInitialValue:
|
|
1685
|
-
unsetInitialValue:
|
|
1686
|
-
setFieldInitialValue:
|
|
1684
|
+
stageInitialValue: Wn,
|
|
1685
|
+
unsetInitialValue: Yn,
|
|
1686
|
+
setFieldInitialValue: Yt,
|
|
1687
1687
|
useFieldModel: Ce
|
|
1688
1688
|
};
|
|
1689
1689
|
function K(d) {
|
|
@@ -1726,7 +1726,7 @@ function gi(e) {
|
|
|
1726
1726
|
}), o.forEach((h) => h && h.reset());
|
|
1727
1727
|
}
|
|
1728
1728
|
function ie(d) {
|
|
1729
|
-
const { value: h } =
|
|
1729
|
+
const { value: h } = Nn(d);
|
|
1730
1730
|
return se(h, () => {
|
|
1731
1731
|
O(u(d)) || ve({ mode: "validated-only" });
|
|
1732
1732
|
}, {
|
|
@@ -1751,7 +1751,7 @@ function gi(e) {
|
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|
|
1753
1753
|
function D(d, h) {
|
|
1754
|
-
const T =
|
|
1754
|
+
const T = tl(d), F = h;
|
|
1755
1755
|
if (!i.value[F]) {
|
|
1756
1756
|
i.value[F] = T;
|
|
1757
1757
|
return;
|
|
@@ -1795,7 +1795,7 @@ function gi(e) {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
1797
|
if (!O(h)) {
|
|
1798
|
-
if (te(h, void 0), Y || F && !
|
|
1798
|
+
if (te(h, void 0), Y || F && !Tn(Q(s, h)))
|
|
1799
1799
|
return;
|
|
1800
1800
|
$t(s, h);
|
|
1801
1801
|
}
|
|
@@ -1825,7 +1825,7 @@ function gi(e) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
async function we(d) {
|
|
1827
1827
|
const h = i.value[d];
|
|
1828
|
-
return h ? Array.isArray(h) ? h.map((T) => T.validate())[0] : h.validate() : (
|
|
1828
|
+
return h ? Array.isArray(h) ? h.map((T) => T.validate())[0] : h.validate() : ($n(`field with name ${d} was not found`), Promise.resolve({ errors: [], valid: !0 }));
|
|
1829
1829
|
}
|
|
1830
1830
|
function yt(d, h) {
|
|
1831
1831
|
return function(F) {
|
|
@@ -1852,24 +1852,24 @@ function gi(e) {
|
|
|
1852
1852
|
});
|
|
1853
1853
|
};
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function Yt(d, h) {
|
|
1856
1856
|
pe(p.value, d, Z(h));
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function Yn(d) {
|
|
1859
1859
|
$t(p.value, d);
|
|
1860
1860
|
}
|
|
1861
|
-
function
|
|
1862
|
-
pe(s, d, h),
|
|
1861
|
+
function Wn(d, h, T = !1) {
|
|
1862
|
+
pe(s, d, h), Yt(d, h), T && !(e != null && e.initialValues) && pe(g.value, d, Z(h));
|
|
1863
1863
|
}
|
|
1864
|
-
async function
|
|
1864
|
+
async function Wt() {
|
|
1865
1865
|
const d = u(B);
|
|
1866
|
-
return d ?
|
|
1866
|
+
return d ? Re(d) ? await ei(d, s) : await ti(d, s, {
|
|
1867
1867
|
names: C.value,
|
|
1868
1868
|
bailsMap: L.value
|
|
1869
1869
|
}) : { valid: !0, results: {}, errors: {} };
|
|
1870
1870
|
}
|
|
1871
|
-
const
|
|
1872
|
-
|
|
1871
|
+
const Jn = yt((d, { evt: h }) => {
|
|
1872
|
+
Vn(h) && h.target.submit();
|
|
1873
1873
|
});
|
|
1874
1874
|
return ft(() => {
|
|
1875
1875
|
if (e != null && e.initialErrors && I(e.initialErrors), e != null && e.initialTouched && $e(e.initialTouched), e != null && e.validateOnMount) {
|
|
@@ -1880,7 +1880,7 @@ function gi(e) {
|
|
|
1880
1880
|
}), Be(B) && se(B, () => {
|
|
1881
1881
|
var d;
|
|
1882
1882
|
(d = j.validateSchema) === null || d === void 0 || d.call(j, "validated-only");
|
|
1883
|
-
}),
|
|
1883
|
+
}), yn(xe, j), process.env.NODE_ENV !== "production" && (ai(j), se(() => Object.assign(Object.assign({ errors: c.value }, A.value), { values: s, isSubmitting: a.value, submitCount: r.value }), Ne, {
|
|
1884
1884
|
deep: !0
|
|
1885
1885
|
})), {
|
|
1886
1886
|
errors: v,
|
|
@@ -1893,7 +1893,7 @@ function gi(e) {
|
|
|
1893
1893
|
handleReset: () => $(),
|
|
1894
1894
|
resetForm: $,
|
|
1895
1895
|
handleSubmit: yt,
|
|
1896
|
-
submitForm:
|
|
1896
|
+
submitForm: Jn,
|
|
1897
1897
|
setFieldError: te,
|
|
1898
1898
|
setErrors: I,
|
|
1899
1899
|
setFieldValue: E,
|
|
@@ -1903,7 +1903,7 @@ function gi(e) {
|
|
|
1903
1903
|
useFieldModel: Ce
|
|
1904
1904
|
};
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function pi(e, t, n, l) {
|
|
1907
1907
|
const i = {
|
|
1908
1908
|
touched: "some",
|
|
1909
1909
|
pending: "some",
|
|
@@ -1917,12 +1917,12 @@ function $i(e, t, n, l) {
|
|
|
1917
1917
|
}, {});
|
|
1918
1918
|
}
|
|
1919
1919
|
const o = We(r());
|
|
1920
|
-
return
|
|
1920
|
+
return el(() => {
|
|
1921
1921
|
const s = r();
|
|
1922
1922
|
o.touched = s.touched, o.valid = s.valid, o.pending = s.pending;
|
|
1923
1923
|
}), S(() => Object.assign(Object.assign({ initialValues: u(n) }, o), { valid: o.valid && !ee(l.value).length, dirty: a.value }));
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1925
|
+
function ki(e, t, n) {
|
|
1926
1926
|
const l = z(Z(u(n)) || {}), i = z(Z(u(n)) || {});
|
|
1927
1927
|
function a(r, o = !1) {
|
|
1928
1928
|
l.value = Z(r), i.value = Z(r), o && ee(e.value).forEach((s) => {
|
|
@@ -1943,7 +1943,7 @@ function pi(e, t, n) {
|
|
|
1943
1943
|
setInitialValues: a
|
|
1944
1944
|
};
|
|
1945
1945
|
}
|
|
1946
|
-
function
|
|
1946
|
+
function wi(e) {
|
|
1947
1947
|
const t = z({});
|
|
1948
1948
|
function n(a) {
|
|
1949
1949
|
return Array.isArray(a) ? a : a ? [a] : [];
|
|
@@ -1967,7 +1967,7 @@ function ki(e) {
|
|
|
1967
1967
|
setFieldErrorBag: l
|
|
1968
1968
|
};
|
|
1969
1969
|
}
|
|
1970
|
-
|
|
1970
|
+
R({
|
|
1971
1971
|
name: "Form",
|
|
1972
1972
|
inheritAttrs: !1,
|
|
1973
1973
|
props: {
|
|
@@ -2009,7 +2009,7 @@ _({
|
|
|
2009
2009
|
}
|
|
2010
2010
|
},
|
|
2011
2011
|
setup(e, t) {
|
|
2012
|
-
const n = be(e, "initialValues"), l = be(e, "validationSchema"), i = be(e, "keepValues"), { errors: a, values: r, meta: o, isSubmitting: s, submitCount: c, validate: f, validateField: m, handleReset: v, resetForm: b, handleSubmit: O, setErrors: C, setFieldError: L, setFieldValue: J, setValues: H, setFieldTouched: p, setTouched: g } =
|
|
2012
|
+
const n = be(e, "initialValues"), l = be(e, "validationSchema"), i = be(e, "keepValues"), { errors: a, values: r, meta: o, isSubmitting: s, submitCount: c, validate: f, validateField: m, handleReset: v, resetForm: b, handleSubmit: O, setErrors: C, setFieldError: L, setFieldValue: J, setValues: H, setFieldTouched: p, setTouched: g } = $i({
|
|
2013
2013
|
validationSchema: l.value ? l : void 0,
|
|
2014
2014
|
initialValues: n,
|
|
2015
2015
|
initialErrors: e.initialErrors,
|
|
@@ -2017,10 +2017,10 @@ _({
|
|
|
2017
2017
|
validateOnMount: e.validateOnMount,
|
|
2018
2018
|
keepValuesOnUnmount: i
|
|
2019
2019
|
}), V = O((q, { evt: j }) => {
|
|
2020
|
-
|
|
2020
|
+
Vn(j) && j.target.submit();
|
|
2021
2021
|
}, e.onInvalidSubmit), A = e.onSubmit ? O(e.onSubmit, e.onInvalidSubmit) : V;
|
|
2022
2022
|
function B(q) {
|
|
2023
|
-
|
|
2023
|
+
Gt(q) && q.preventDefault(), v(), typeof t.attrs.onReset == "function" && t.attrs.onReset();
|
|
2024
2024
|
}
|
|
2025
2025
|
function P(q, j) {
|
|
2026
2026
|
return O(typeof q == "function" && !j ? q : j, e.onInvalidSubmit)(q);
|
|
@@ -2057,7 +2057,7 @@ _({
|
|
|
2057
2057
|
validate: f,
|
|
2058
2058
|
validateField: m
|
|
2059
2059
|
}), function() {
|
|
2060
|
-
const j = e.as === "form" ? e.as :
|
|
2060
|
+
const j = e.as === "form" ? e.as : qt(e.as), K = mt(j, t, U);
|
|
2061
2061
|
if (!e.as)
|
|
2062
2062
|
return K;
|
|
2063
2063
|
const oe = e.as === "form" ? {
|
|
@@ -2067,7 +2067,7 @@ _({
|
|
|
2067
2067
|
};
|
|
2068
2068
|
}
|
|
2069
2069
|
});
|
|
2070
|
-
function
|
|
2070
|
+
function Oi(e) {
|
|
2071
2071
|
const t = et(xe, void 0), n = z([]), l = () => {
|
|
2072
2072
|
}, i = {
|
|
2073
2073
|
fields: n,
|
|
@@ -2130,7 +2130,7 @@ function wi(e) {
|
|
|
2130
2130
|
A.splice(p, 1), t == null || t.unsetInitialValue(g + `[${p}]`), t == null || t.setFieldValue(g, A), n.value.splice(p, 1), s();
|
|
2131
2131
|
}
|
|
2132
2132
|
function m(p) {
|
|
2133
|
-
const g = u(e), V = Q(t == null ? void 0 : t.values, g), A =
|
|
2133
|
+
const g = u(e), V = Q(t == null ? void 0 : t.values, g), A = _e(V) ? [] : V;
|
|
2134
2134
|
if (!Array.isArray(A))
|
|
2135
2135
|
return;
|
|
2136
2136
|
const B = [...A];
|
|
@@ -2161,14 +2161,14 @@ function wi(e) {
|
|
|
2161
2161
|
!Array.isArray(A) || A.length - 1 < p || t == null || t.setFieldValue(`${V}[${p}]`, g);
|
|
2162
2162
|
}
|
|
2163
2163
|
function L(p) {
|
|
2164
|
-
const g = u(e), V = Q(t == null ? void 0 : t.values, g), A =
|
|
2164
|
+
const g = u(e), V = Q(t == null ? void 0 : t.values, g), A = _e(V) ? [] : V;
|
|
2165
2165
|
if (!Array.isArray(A))
|
|
2166
2166
|
return;
|
|
2167
2167
|
const B = [p, ...A];
|
|
2168
2168
|
t == null || t.stageInitialValue(g + `[${B.length - 1}]`, p), t == null || t.setFieldValue(g, B), n.value.unshift(c(p)), s();
|
|
2169
2169
|
}
|
|
2170
2170
|
function J(p, g) {
|
|
2171
|
-
const V = u(e), A = Q(t == null ? void 0 : t.values, V), B =
|
|
2171
|
+
const V = u(e), A = Q(t == null ? void 0 : t.values, V), B = _e(A) ? [] : [...A];
|
|
2172
2172
|
if (!Array.isArray(A) || !(p in A) || !(g in A))
|
|
2173
2173
|
return;
|
|
2174
2174
|
const P = [...n.value], U = P[p];
|
|
@@ -2187,12 +2187,12 @@ function wi(e) {
|
|
|
2187
2187
|
prepend: L,
|
|
2188
2188
|
move: J
|
|
2189
2189
|
};
|
|
2190
|
-
return t.fieldArrays.push(Object.assign({ path: e, reset: o }, H)),
|
|
2190
|
+
return t.fieldArrays.push(Object.assign({ path: e, reset: o }, H)), bn(() => {
|
|
2191
2191
|
const p = t.fieldArrays.findIndex((g) => u(g.path) === u(e));
|
|
2192
2192
|
p >= 0 && t.fieldArrays.splice(p, 1);
|
|
2193
2193
|
}), H;
|
|
2194
2194
|
}
|
|
2195
|
-
|
|
2195
|
+
R({
|
|
2196
2196
|
name: "FieldArray",
|
|
2197
2197
|
inheritAttrs: !1,
|
|
2198
2198
|
props: {
|
|
@@ -2202,7 +2202,7 @@ _({
|
|
|
2202
2202
|
}
|
|
2203
2203
|
},
|
|
2204
2204
|
setup(e, t) {
|
|
2205
|
-
const { push: n, remove: l, swap: i, insert: a, replace: r, update: o, prepend: s, move: c, fields: f } =
|
|
2205
|
+
const { push: n, remove: l, swap: i, insert: a, replace: r, update: o, prepend: s, move: c, fields: f } = Oi(be(e, "name"));
|
|
2206
2206
|
function m() {
|
|
2207
2207
|
return {
|
|
2208
2208
|
fields: f.value,
|
|
@@ -2228,7 +2228,7 @@ _({
|
|
|
2228
2228
|
}), () => mt(void 0, t, m);
|
|
2229
2229
|
}
|
|
2230
2230
|
});
|
|
2231
|
-
|
|
2231
|
+
R({
|
|
2232
2232
|
name: "ErrorMessage",
|
|
2233
2233
|
props: {
|
|
2234
2234
|
as: {
|
|
@@ -2241,7 +2241,7 @@ _({
|
|
|
2241
2241
|
}
|
|
2242
2242
|
},
|
|
2243
2243
|
setup(e, t) {
|
|
2244
|
-
const n =
|
|
2244
|
+
const n = gn(xe, void 0), l = S(() => n == null ? void 0 : n.errors.value[e.name]);
|
|
2245
2245
|
function i() {
|
|
2246
2246
|
return {
|
|
2247
2247
|
message: l.value
|
|
@@ -2250,7 +2250,7 @@ _({
|
|
|
2250
2250
|
return () => {
|
|
2251
2251
|
if (!l.value)
|
|
2252
2252
|
return;
|
|
2253
|
-
const a = e.as ?
|
|
2253
|
+
const a = e.as ? qt(e.as) : e.as, r = mt(a, t, i), o = Object.assign({ role: "alert" }, t.attrs);
|
|
2254
2254
|
return !a && (Array.isArray(r) || !r) && (r == null ? void 0 : r.length) ? r : (Array.isArray(r) || !r) && !(r != null && r.length) ? at(a || "span", o, l.value) : at(a, o, r);
|
|
2255
2255
|
};
|
|
2256
2256
|
}
|
|
@@ -2258,38 +2258,38 @@ _({
|
|
|
2258
2258
|
function tt(e, t) {
|
|
2259
2259
|
var r, o, s, c;
|
|
2260
2260
|
const n = (t == null ? void 0 : t.component) === "input" && (((r = t == null ? void 0 : t.error) == null ? void 0 : r.value) !== null || (t == null ? void 0 : t.modelValue) !== void 0), l = (t == null ? void 0 : t.component) === "radio" && (((o = t == null ? void 0 : t.error) == null ? void 0 : o.value) !== null || (t == null ? void 0 : t.modelValue) !== void 0), i = (t == null ? void 0 : t.component) === "checkbox" && (((s = t == null ? void 0 : t.error) == null ? void 0 : s.value) !== null || (t == null ? void 0 : t.modelValue) !== void 0), a = (t == null ? void 0 : t.component) === "select" && (((c = t == null ? void 0 : t.error) == null ? void 0 : c.value) !== null || (t == null ? void 0 : t.selected) !== void 0);
|
|
2261
|
-
return t != null && t.useFieldParent ? t == null ? void 0 : t.useFieldParent(e) : t != null && t.rules ? Tt(e, t == null ? void 0 : t.rules, t == null ? void 0 : t.opts) : a ?
|
|
2261
|
+
return t != null && t.useFieldParent ? t == null ? void 0 : t.useFieldParent(e) : t != null && t.rules ? Tt(e, t == null ? void 0 : t.rules, t == null ? void 0 : t.opts) : a ? xi(t == null ? void 0 : t.error, t == null ? void 0 : t.selected) : n || l || i ? Si(t == null ? void 0 : t.error, t == null ? void 0 : t.modelValue) : Tt(e);
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function Si(e, t) {
|
|
2264
2264
|
return {
|
|
2265
2265
|
value: z(t != null ? t : ""),
|
|
2266
2266
|
errorMessage: e
|
|
2267
2267
|
};
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function xi(e, t) {
|
|
2270
2270
|
return {
|
|
2271
2271
|
value: z(t),
|
|
2272
2272
|
errorMessage: e
|
|
2273
2273
|
};
|
|
2274
2274
|
}
|
|
2275
|
-
const
|
|
2275
|
+
const Ci = {
|
|
2276
2276
|
preserveAspectRatio: "xMidYMid meet",
|
|
2277
2277
|
viewBox: "0 0 24 24",
|
|
2278
2278
|
width: "1em",
|
|
2279
2279
|
height: "1em"
|
|
2280
|
-
},
|
|
2280
|
+
}, Ii = /* @__PURE__ */ w("path", {
|
|
2281
2281
|
fill: "currentColor",
|
|
2282
2282
|
d: "m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"
|
|
2283
|
-
}, null, -1),
|
|
2284
|
-
|
|
2283
|
+
}, null, -1), Ai = [
|
|
2284
|
+
Ii
|
|
2285
2285
|
];
|
|
2286
|
-
function
|
|
2287
|
-
return y(), k("svg",
|
|
2286
|
+
function Ei(e, t) {
|
|
2287
|
+
return y(), k("svg", Ci, Ai);
|
|
2288
2288
|
}
|
|
2289
|
-
const
|
|
2289
|
+
const Ti = { name: "material-symbols-done", render: Ei }, Fi = ["id", "data-testid"], Vi = ["for", "data-testid", "data-required"], Bi = { class: "container-input" }, Pi = ["id", "data-testid"], Mi = {
|
|
2290
2290
|
inheritAttrs: !1
|
|
2291
|
-
}, ot = /* @__PURE__ */
|
|
2292
|
-
...
|
|
2291
|
+
}, ot = /* @__PURE__ */ R({
|
|
2292
|
+
...Mi,
|
|
2293
2293
|
__name: "InputText",
|
|
2294
2294
|
props: {
|
|
2295
2295
|
id: null,
|
|
@@ -2314,7 +2314,7 @@ const Ei = { name: "material-symbols-done", render: Ai }, Ti = ["id", "data-test
|
|
|
2314
2314
|
},
|
|
2315
2315
|
emits: ["update:modelValue"],
|
|
2316
2316
|
setup(e, { emit: t }) {
|
|
2317
|
-
const n = e, l =
|
|
2317
|
+
const n = e, l = hn(), i = S(() => !!(l != null && l.icon)), a = S(() => {
|
|
2318
2318
|
var v;
|
|
2319
2319
|
return (v = n.name) != null ? v : "";
|
|
2320
2320
|
}), { value: r, errorMessage: o } = tt(a.value, {
|
|
@@ -2346,9 +2346,9 @@ const Ei = { name: "material-symbols-done", render: Ai }, Ti = ["id", "data-test
|
|
|
2346
2346
|
"data-testid": `input-text-label-${e.id}`,
|
|
2347
2347
|
class: M(["label", `-${e.size}`]),
|
|
2348
2348
|
"data-required": e.required
|
|
2349
|
-
},
|
|
2350
|
-
w("div",
|
|
2351
|
-
X(
|
|
2349
|
+
}, _(e.label), 11, Vi)) : W("", !0),
|
|
2350
|
+
w("div", Bi, [
|
|
2351
|
+
X(In, Se(v.$attrs, {
|
|
2352
2352
|
id: `text-input-${e.id}`,
|
|
2353
2353
|
modelValue: u(r),
|
|
2354
2354
|
"onUpdate:modelValue": [
|
|
@@ -2366,7 +2366,7 @@ const Ei = { name: "material-symbols-done", render: Ai }, Ti = ["id", "data-test
|
|
|
2366
2366
|
"aria-invalid": !!u(o),
|
|
2367
2367
|
"aria-describedby": u(c)
|
|
2368
2368
|
}), null, 16, ["id", "modelValue", "size", "name", "mask", "placeholder", "data-required", "has-feedback-icon", "error", "disabled", "aria-invalid", "aria-describedby"]),
|
|
2369
|
-
e.isLoading ? (y(), ue(
|
|
2369
|
+
e.isLoading ? (y(), ue(wn, {
|
|
2370
2370
|
key: 0,
|
|
2371
2371
|
class: M(["icon-position", `-${e.size}`]),
|
|
2372
2372
|
title: "carregando",
|
|
@@ -2376,7 +2376,7 @@ const Ei = { name: "material-symbols-done", render: Ai }, Ti = ["id", "data-test
|
|
|
2376
2376
|
key: 1,
|
|
2377
2377
|
class: M(["icon-position", `-${e.size}`])
|
|
2378
2378
|
}, [
|
|
2379
|
-
e.isSuccess ? (y(), ue(u(
|
|
2379
|
+
e.isSuccess ? (y(), ue(u(Ti), {
|
|
2380
2380
|
key: 0,
|
|
2381
2381
|
"aria-hidden": "true",
|
|
2382
2382
|
class: "text-feedback-positive-pure"
|
|
@@ -2388,16 +2388,16 @@ const Ei = { name: "material-symbols-done", render: Ai }, Ti = ["id", "data-test
|
|
|
2388
2388
|
id: `input-text-describe-${e.id}`,
|
|
2389
2389
|
"data-testid": `input-text-describe-${e.id}`,
|
|
2390
2390
|
class: M(["message", `-${u(f).type}`])
|
|
2391
|
-
},
|
|
2392
|
-
], 10,
|
|
2391
|
+
}, _(u(f).text), 11, Pi)) : W("", !0)
|
|
2392
|
+
], 10, Fi));
|
|
2393
2393
|
}
|
|
2394
2394
|
});
|
|
2395
|
-
const
|
|
2395
|
+
const ji = {
|
|
2396
2396
|
preserveAspectRatio: "xMidYMid meet",
|
|
2397
2397
|
viewBox: "0 0 24 24",
|
|
2398
2398
|
width: "1em",
|
|
2399
2399
|
height: "1em"
|
|
2400
|
-
},
|
|
2400
|
+
}, Ni = /* @__PURE__ */ w("g", {
|
|
2401
2401
|
fill: "none",
|
|
2402
2402
|
stroke: "currentColor",
|
|
2403
2403
|
"stroke-linecap": "round",
|
|
@@ -2406,13 +2406,13 @@ const Mi = {
|
|
|
2406
2406
|
}, [
|
|
2407
2407
|
/* @__PURE__ */ w("path", { d: "M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z" }),
|
|
2408
2408
|
/* @__PURE__ */ w("path", { d: "M21 12c-1.889 2.991-5.282 6-9 6s-7.111-3.009-9-6c2.299-2.842 4.992-6 9-6s6.701 3.158 9 6Z" })
|
|
2409
|
-
], -1),
|
|
2410
|
-
|
|
2409
|
+
], -1), Li = [
|
|
2410
|
+
Ni
|
|
2411
2411
|
];
|
|
2412
|
-
function
|
|
2413
|
-
return y(), k("svg",
|
|
2412
|
+
function Di(e, t) {
|
|
2413
|
+
return y(), k("svg", ji, Li);
|
|
2414
2414
|
}
|
|
2415
|
-
const
|
|
2415
|
+
const zi = { name: "iconoir-eye-empty", render: Di }, _i = {
|
|
2416
2416
|
preserveAspectRatio: "xMidYMid meet",
|
|
2417
2417
|
viewBox: "0 0 24 24",
|
|
2418
2418
|
width: "1em",
|
|
@@ -2426,13 +2426,13 @@ const Di = { name: "iconoir-eye-empty", render: Li }, zi = {
|
|
|
2426
2426
|
}, [
|
|
2427
2427
|
/* @__PURE__ */ w("path", { d: "m3 3l18 18M10.5 10.677a2 2 0 0 0 2.823 2.823" }),
|
|
2428
2428
|
/* @__PURE__ */ w("path", { d: "M7.362 7.561C5.68 8.74 4.279 10.42 3 12c1.889 2.991 5.282 6 9 6c1.55 0 3.043-.523 4.395-1.35M12 6c4.008 0 6.701 3.158 9 6a15.66 15.66 0 0 1-1.078 1.5" })
|
|
2429
|
-
], -1),
|
|
2429
|
+
], -1), qi = [
|
|
2430
2430
|
Ri
|
|
2431
2431
|
];
|
|
2432
|
-
function
|
|
2433
|
-
return y(), k("svg",
|
|
2432
|
+
function Ui(e, t) {
|
|
2433
|
+
return y(), k("svg", _i, qi);
|
|
2434
2434
|
}
|
|
2435
|
-
const
|
|
2435
|
+
const Gi = { name: "iconoir-eye-off", render: Ui }, Hi = ["aria-label"], Ft = /* @__PURE__ */ R({
|
|
2436
2436
|
__name: "InputPassword",
|
|
2437
2437
|
props: {
|
|
2438
2438
|
id: null,
|
|
@@ -2475,25 +2475,25 @@ const Ui = { name: "iconoir-eye-off", render: qi }, Gi = ["aria-label"], Ft = /*
|
|
|
2475
2475
|
"aria-label": t.value ? "Hide password" : "Show password",
|
|
2476
2476
|
onClick: i[0] || (i[0] = (a) => t.value = !t.value)
|
|
2477
2477
|
}, [
|
|
2478
|
-
Oe(X(u(
|
|
2478
|
+
Oe(X(u(zi), {
|
|
2479
2479
|
class: "password-feedback-icon",
|
|
2480
2480
|
"aria-hidden": "true"
|
|
2481
2481
|
}, null, 512), [
|
|
2482
2482
|
[Ge, t.value]
|
|
2483
2483
|
]),
|
|
2484
|
-
Oe(X(u(
|
|
2484
|
+
Oe(X(u(Gi), {
|
|
2485
2485
|
class: "password-feedback-icon",
|
|
2486
2486
|
"aria-hidden": "true"
|
|
2487
2487
|
}, null, 512), [
|
|
2488
2488
|
[Ge, !t.value]
|
|
2489
2489
|
])
|
|
2490
|
-
], 8,
|
|
2490
|
+
], 8, Hi)
|
|
2491
2491
|
]),
|
|
2492
2492
|
_: 1
|
|
2493
2493
|
}, 8, ["id", "type", "label", "name", "required", "size", "helper-text", "placeholder", "error", "model-value", "use-field", "rules", "opts"]));
|
|
2494
2494
|
}
|
|
2495
2495
|
});
|
|
2496
|
-
const
|
|
2496
|
+
const Qi = ["id", "data-testid"], Ki = ["id", "data-testid", "for", "data-required"], Zi = ["id", "data-testid", "data-required", "placeholder", "aria-invalid", "aria-describedby"], Yi = ["id", "data-testid"], Vt = /* @__PURE__ */ R({
|
|
2497
2497
|
__name: "InputTextarea",
|
|
2498
2498
|
props: {
|
|
2499
2499
|
id: null,
|
|
@@ -2549,9 +2549,9 @@ const Hi = ["id", "data-testid"], Qi = ["id", "data-testid", "for", "data-requir
|
|
|
2549
2549
|
class: "label",
|
|
2550
2550
|
"data-required": e.required
|
|
2551
2551
|
}, [
|
|
2552
|
-
w("span", null,
|
|
2553
|
-
], 8,
|
|
2554
|
-
Pe(" " +
|
|
2552
|
+
w("span", null, _(e.label), 1)
|
|
2553
|
+
], 8, Ki)) : W("", !0),
|
|
2554
|
+
Pe(" " + _(u(i)) + " ", 1),
|
|
2555
2555
|
Oe(w("textarea", Se(f.$attrs, {
|
|
2556
2556
|
id: `input-textarea-input-${e.id}`,
|
|
2557
2557
|
"onUpdate:modelValue": m[0] || (m[0] = (b) => Be(i) ? i.value = b : null),
|
|
@@ -2564,16 +2564,16 @@ const Hi = ["id", "data-testid"], Qi = ["id", "data-testid", "for", "data-requir
|
|
|
2564
2564
|
"aria-invalid": !!u(a),
|
|
2565
2565
|
"aria-describedby": u(o),
|
|
2566
2566
|
onInput: c
|
|
2567
|
-
}), null, 16,
|
|
2568
|
-
[
|
|
2567
|
+
}), null, 16, Zi), [
|
|
2568
|
+
[nl, u(i)]
|
|
2569
2569
|
]),
|
|
2570
2570
|
u(r) ? (y(), k("span", {
|
|
2571
2571
|
key: 1,
|
|
2572
2572
|
id: `input-textarea-describe-${e.id}`,
|
|
2573
2573
|
"data-testid": `input-textarea-describe-${e.id}`,
|
|
2574
2574
|
class: M(["message", `-${u(s).type}`])
|
|
2575
|
-
},
|
|
2576
|
-
], 10,
|
|
2575
|
+
}, _(u(s).text), 11, Yi)) : W("", !0)
|
|
2576
|
+
], 10, Qi);
|
|
2577
2577
|
};
|
|
2578
2578
|
}
|
|
2579
2579
|
});
|
|
@@ -2586,10 +2586,10 @@ Ft.install = (e) => {
|
|
|
2586
2586
|
Vt.install = (e) => {
|
|
2587
2587
|
e.component("SolInputTextarea", Vt);
|
|
2588
2588
|
};
|
|
2589
|
-
const
|
|
2589
|
+
const Wi = ["id", "data-testid", "checked", "value", "name"], Ji = ["for"], Xi = {
|
|
2590
2590
|
inheritAttrs: !1
|
|
2591
|
-
}, st = /* @__PURE__ */
|
|
2592
|
-
...
|
|
2591
|
+
}, st = /* @__PURE__ */ R({
|
|
2592
|
+
...Xi,
|
|
2593
2593
|
__name: "Radio",
|
|
2594
2594
|
props: {
|
|
2595
2595
|
id: null,
|
|
@@ -2613,15 +2613,15 @@ const Yi = ["id", "data-testid", "checked", "value", "name"], Wi = ["for"], Ji =
|
|
|
2613
2613
|
value: e.value,
|
|
2614
2614
|
name: e.name,
|
|
2615
2615
|
onChange: l[0] || (l[0] = (i) => t("change", e.value))
|
|
2616
|
-
}), null, 16,
|
|
2616
|
+
}), null, 16, Wi),
|
|
2617
2617
|
w("label", {
|
|
2618
2618
|
class: "label",
|
|
2619
2619
|
for: `radio-${e.name}-${e.id}`
|
|
2620
|
-
},
|
|
2620
|
+
}, _(e.label), 9, Ji)
|
|
2621
2621
|
], 2));
|
|
2622
2622
|
}
|
|
2623
2623
|
});
|
|
2624
|
-
const
|
|
2624
|
+
const ea = ["id", "data-testid", "aria-labelledby"], ta = ["id", "data-testid"], na = ["id", "data-testid"], Bt = /* @__PURE__ */ R({
|
|
2625
2625
|
__name: "RadioGroup",
|
|
2626
2626
|
props: {
|
|
2627
2627
|
id: null,
|
|
@@ -2676,7 +2676,7 @@ const Xi = ["id", "data-testid", "aria-labelledby"], ea = ["id", "data-testid"],
|
|
|
2676
2676
|
id: `radio-group-title-${e.id}`,
|
|
2677
2677
|
class: M(["title", { "sr-only": e.hideTitle }]),
|
|
2678
2678
|
"data-testid": `radio-group-title-${e.id}`
|
|
2679
|
-
},
|
|
2679
|
+
}, _(e.title), 11, ta)
|
|
2680
2680
|
]),
|
|
2681
2681
|
w("ul", {
|
|
2682
2682
|
class: M(["container-radios", { "flex-col": e.direction === "column" }])
|
|
@@ -2709,8 +2709,8 @@ const Xi = ["id", "data-testid", "aria-labelledby"], ea = ["id", "data-testid"],
|
|
|
2709
2709
|
id: `radios-describe-${e.id}`,
|
|
2710
2710
|
"data-testid": `radios-describe-${e.id}`,
|
|
2711
2711
|
class: M(["message", `-${u(s).type}`])
|
|
2712
|
-
},
|
|
2713
|
-
], 8,
|
|
2712
|
+
}, _(u(s).text), 11, na)) : W("", !0)
|
|
2713
|
+
], 8, ea));
|
|
2714
2714
|
}
|
|
2715
2715
|
});
|
|
2716
2716
|
st.install = (e) => {
|
|
@@ -2719,10 +2719,10 @@ st.install = (e) => {
|
|
|
2719
2719
|
Bt.install = (e) => {
|
|
2720
2720
|
e.component("SolRadioGroup", Bt);
|
|
2721
2721
|
};
|
|
2722
|
-
const
|
|
2722
|
+
const la = ["id", "indeterminate", "data-testid", "checked", "value", "name"], ia = ["for"], aa = {
|
|
2723
2723
|
inheritAttrs: !1
|
|
2724
|
-
}, Ke = /* @__PURE__ */
|
|
2725
|
-
...
|
|
2724
|
+
}, Ke = /* @__PURE__ */ R({
|
|
2725
|
+
...aa,
|
|
2726
2726
|
__name: "Checkbox",
|
|
2727
2727
|
props: {
|
|
2728
2728
|
id: null,
|
|
@@ -2748,15 +2748,15 @@ const na = ["id", "indeterminate", "data-testid", "checked", "value", "name"], l
|
|
|
2748
2748
|
value: e.value,
|
|
2749
2749
|
name: e.name,
|
|
2750
2750
|
onChange: l[0] || (l[0] = (i) => t("change", e.value))
|
|
2751
|
-
}), null, 16,
|
|
2751
|
+
}), null, 16, la),
|
|
2752
2752
|
w("label", {
|
|
2753
2753
|
class: "label",
|
|
2754
2754
|
for: `checkbox-${e.name}-${e.id}`
|
|
2755
|
-
},
|
|
2755
|
+
}, _(e.label), 9, ia)
|
|
2756
2756
|
], 2));
|
|
2757
2757
|
}
|
|
2758
2758
|
});
|
|
2759
|
-
const
|
|
2759
|
+
const ra = ["id", "data-testid", "aria-labelledby"], oa = ["id", "data-testid"], sa = ["id", "data-testid"], Pt = /* @__PURE__ */ R({
|
|
2760
2760
|
__name: "CheckboxGroup",
|
|
2761
2761
|
props: {
|
|
2762
2762
|
id: null,
|
|
@@ -2817,7 +2817,7 @@ const aa = ["id", "data-testid", "aria-labelledby"], ra = ["id", "data-testid"],
|
|
|
2817
2817
|
id: `checkbox-group-title-${e.id}`,
|
|
2818
2818
|
class: M(["title", { "sr-only": e.hideTitle }]),
|
|
2819
2819
|
"data-testid": `checkbox-group-title-${e.id}`
|
|
2820
|
-
},
|
|
2820
|
+
}, _(e.title), 11, oa)
|
|
2821
2821
|
]),
|
|
2822
2822
|
w("ul", {
|
|
2823
2823
|
class: M(["container-checkboxes", { "flex-col": e.direction === "column" }])
|
|
@@ -2850,8 +2850,8 @@ const aa = ["id", "data-testid", "aria-labelledby"], ra = ["id", "data-testid"],
|
|
|
2850
2850
|
id: `checkboxes-describe-${e.id}`,
|
|
2851
2851
|
"data-testid": `checkboxes-describe-${e.id}`,
|
|
2852
2852
|
class: M(["message", `-${u(s).type}`])
|
|
2853
|
-
},
|
|
2854
|
-
], 8,
|
|
2853
|
+
}, _(u(s).text), 11, sa)) : W("", !0)
|
|
2854
|
+
], 8, ra));
|
|
2855
2855
|
}
|
|
2856
2856
|
});
|
|
2857
2857
|
Ke.install = (e) => {
|
|
@@ -2860,7 +2860,7 @@ Ke.install = (e) => {
|
|
|
2860
2860
|
Pt.install = (e) => {
|
|
2861
2861
|
e.component("SolCheckboxGroup", Pt);
|
|
2862
2862
|
};
|
|
2863
|
-
const
|
|
2863
|
+
const ua = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"], ca = ["id", "for", "data-testid"], Mt = /* @__PURE__ */ R({
|
|
2864
2864
|
__name: "Switch",
|
|
2865
2865
|
props: {
|
|
2866
2866
|
id: null,
|
|
@@ -2893,35 +2893,35 @@ const sa = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "
|
|
|
2893
2893
|
var a;
|
|
2894
2894
|
return t("change", (a = e.value) != null ? a : !!e.checked);
|
|
2895
2895
|
})
|
|
2896
|
-
}), null, 16,
|
|
2896
|
+
}), null, 16, ua),
|
|
2897
2897
|
w("label", {
|
|
2898
2898
|
id: `switch-label-${e.name}-${e.id}`,
|
|
2899
2899
|
class: M(["label", `-${e.textDirection} ${e.hideLabel ? "sr-only" : ""}`]),
|
|
2900
2900
|
for: `switch-${e.name}-${e.id}`,
|
|
2901
2901
|
"data-testid": `switch-label-${e.name}-${e.id}`
|
|
2902
|
-
},
|
|
2902
|
+
}, _(e.label), 11, ca)
|
|
2903
2903
|
], 2));
|
|
2904
2904
|
}
|
|
2905
2905
|
});
|
|
2906
2906
|
Mt.install = (e) => {
|
|
2907
2907
|
e.component("SolSwitch", Mt);
|
|
2908
2908
|
};
|
|
2909
|
-
var
|
|
2910
|
-
const nt = typeof window < "u",
|
|
2909
|
+
var cn;
|
|
2910
|
+
const nt = typeof window < "u", da = (e) => typeof e == "string", wt = () => {
|
|
2911
2911
|
};
|
|
2912
|
-
nt && ((
|
|
2913
|
-
function
|
|
2912
|
+
nt && ((cn = window == null ? void 0 : window.navigator) == null ? void 0 : cn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
2913
|
+
function fa(e) {
|
|
2914
2914
|
return typeof e == "function" ? e() : u(e);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function va(e) {
|
|
2917
2917
|
return e;
|
|
2918
2918
|
}
|
|
2919
|
-
function
|
|
2920
|
-
return
|
|
2919
|
+
function ma(e) {
|
|
2920
|
+
return ll() ? (il(e), !0) : !1;
|
|
2921
2921
|
}
|
|
2922
2922
|
function De(e) {
|
|
2923
2923
|
var t;
|
|
2924
|
-
const n =
|
|
2924
|
+
const n = fa(e);
|
|
2925
2925
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
2926
2926
|
}
|
|
2927
2927
|
const Rn = nt ? window : void 0;
|
|
@@ -2930,7 +2930,7 @@ nt && window.navigator;
|
|
|
2930
2930
|
nt && window.location;
|
|
2931
2931
|
function lt(...e) {
|
|
2932
2932
|
let t, n, l, i;
|
|
2933
|
-
if (
|
|
2933
|
+
if (da(e[0]) ? ([n, l, i] = e, t = Rn) : [t, n, l, i] = e, !t)
|
|
2934
2934
|
return wt;
|
|
2935
2935
|
let a = wt;
|
|
2936
2936
|
const r = se(() => De(t), (s) => {
|
|
@@ -2940,9 +2940,9 @@ function lt(...e) {
|
|
|
2940
2940
|
}, { immediate: !0, flush: "post" }), o = () => {
|
|
2941
2941
|
r(), a();
|
|
2942
2942
|
};
|
|
2943
|
-
return
|
|
2943
|
+
return ma(o), o;
|
|
2944
2944
|
}
|
|
2945
|
-
function
|
|
2945
|
+
function qn(e, t, n = {}) {
|
|
2946
2946
|
const { window: l = Rn, ignore: i, capture: a = !0, detectIframe: r = !1 } = n;
|
|
2947
2947
|
if (!l)
|
|
2948
2948
|
return;
|
|
@@ -2978,19 +2978,19 @@ function _n(e, t, n = {}) {
|
|
|
2978
2978
|
const jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Nt = "__vueuse_ssr_handlers__";
|
|
2979
2979
|
jt[Nt] = jt[Nt] || {};
|
|
2980
2980
|
jt[Nt];
|
|
2981
|
-
var
|
|
2981
|
+
var dn;
|
|
2982
2982
|
(function(e) {
|
|
2983
2983
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
2984
|
-
})(
|
|
2985
|
-
var
|
|
2984
|
+
})(dn || (dn = {}));
|
|
2985
|
+
var ha = Object.defineProperty, fn = Object.getOwnPropertySymbols, ya = Object.prototype.hasOwnProperty, ba = Object.prototype.propertyIsEnumerable, vn = (e, t, n) => t in e ? ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ga = (e, t) => {
|
|
2986
2986
|
for (var n in t || (t = {}))
|
|
2987
|
-
|
|
2988
|
-
if (
|
|
2989
|
-
for (var n of
|
|
2990
|
-
|
|
2987
|
+
ya.call(t, n) && vn(e, n, t[n]);
|
|
2988
|
+
if (fn)
|
|
2989
|
+
for (var n of fn(t))
|
|
2990
|
+
ba.call(t, n) && vn(e, n, t[n]);
|
|
2991
2991
|
return e;
|
|
2992
2992
|
};
|
|
2993
|
-
const
|
|
2993
|
+
const $a = {
|
|
2994
2994
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
2995
2995
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
2996
2996
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -3016,24 +3016,24 @@ const ga = {
|
|
|
3016
3016
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
3017
3017
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
3018
3018
|
};
|
|
3019
|
-
|
|
3020
|
-
linear:
|
|
3021
|
-
},
|
|
3022
|
-
const
|
|
3019
|
+
ga({
|
|
3020
|
+
linear: va
|
|
3021
|
+
}, $a);
|
|
3022
|
+
const pa = {
|
|
3023
3023
|
preserveAspectRatio: "xMidYMid meet",
|
|
3024
3024
|
viewBox: "0 0 24 24",
|
|
3025
3025
|
width: "1em",
|
|
3026
3026
|
height: "1em"
|
|
3027
|
-
},
|
|
3027
|
+
}, ka = /* @__PURE__ */ w("path", {
|
|
3028
3028
|
fill: "currentColor",
|
|
3029
3029
|
d: "M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12L5.293 6.707a1 1 0 0 1 0-1.414z"
|
|
3030
|
-
}, null, -1),
|
|
3031
|
-
|
|
3030
|
+
}, null, -1), wa = [
|
|
3031
|
+
ka
|
|
3032
3032
|
];
|
|
3033
|
-
function
|
|
3034
|
-
return y(), k("svg",
|
|
3033
|
+
function Oa(e, t) {
|
|
3034
|
+
return y(), k("svg", pa, wa);
|
|
3035
3035
|
}
|
|
3036
|
-
const
|
|
3036
|
+
const Un = { name: "mi-close", render: Oa }, Sa = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"], xa = ["id"], Ca = { class: "label" }, ut = /* @__PURE__ */ R({
|
|
3037
3037
|
__name: "Chip",
|
|
3038
3038
|
props: {
|
|
3039
3039
|
id: null,
|
|
@@ -3074,10 +3074,10 @@ const qn = { name: "mi-close", render: wa }, Oa = ["id", "data-testid", "title",
|
|
|
3074
3074
|
id: `chip-description-${e.id}`,
|
|
3075
3075
|
"z-index": "-1",
|
|
3076
3076
|
class: "sr-only"
|
|
3077
|
-
}, "Press Delete or Backspace to remove this Chip", 8,
|
|
3078
|
-
w("span",
|
|
3077
|
+
}, "Press Delete or Backspace to remove this Chip", 8, xa),
|
|
3078
|
+
w("span", Ca, [
|
|
3079
3079
|
N(i.$slots, "default", {}, () => [
|
|
3080
|
-
Pe(
|
|
3080
|
+
Pe(_(e.label), 1)
|
|
3081
3081
|
])
|
|
3082
3082
|
]),
|
|
3083
3083
|
e.removable ? (y(), k("i", {
|
|
@@ -3087,29 +3087,29 @@ const qn = { name: "mi-close", render: wa }, Oa = ["id", "data-testid", "title",
|
|
|
3087
3087
|
class: "close",
|
|
3088
3088
|
onClick: a[0] || (a[0] = ze((r) => t("close"), ["stop"]))
|
|
3089
3089
|
}, [
|
|
3090
|
-
X(u(
|
|
3090
|
+
X(u(Un), { class: "icon" })
|
|
3091
3091
|
])) : W("", !0)
|
|
3092
|
-
], 42,
|
|
3092
|
+
], 42, Sa));
|
|
3093
3093
|
}
|
|
3094
3094
|
});
|
|
3095
|
-
const
|
|
3095
|
+
const Ia = {
|
|
3096
3096
|
preserveAspectRatio: "xMidYMid meet",
|
|
3097
3097
|
viewBox: "0 0 24 24",
|
|
3098
3098
|
width: "1em",
|
|
3099
3099
|
height: "1em"
|
|
3100
|
-
},
|
|
3100
|
+
}, Aa = /* @__PURE__ */ w("path", {
|
|
3101
3101
|
fill: "currentColor",
|
|
3102
3102
|
d: "m19.6 21l-6.3-6.3q-.75.6-1.725.95Q10.6 16 9.5 16q-2.725 0-4.612-1.887Q3 12.225 3 9.5q0-2.725 1.888-4.613Q6.775 3 9.5 3t4.613 1.887Q16 6.775 16 9.5q0 1.1-.35 2.075q-.35.975-.95 1.725l6.3 6.3ZM9.5 14q1.875 0 3.188-1.312Q14 11.375 14 9.5q0-1.875-1.312-3.188Q11.375 5 9.5 5Q7.625 5 6.312 6.312Q5 7.625 5 9.5q0 1.875 1.312 3.188Q7.625 14 9.5 14Z"
|
|
3103
|
-
}, null, -1),
|
|
3104
|
-
|
|
3103
|
+
}, null, -1), Ea = [
|
|
3104
|
+
Aa
|
|
3105
3105
|
];
|
|
3106
|
-
function
|
|
3107
|
-
return y(), k("svg",
|
|
3106
|
+
function Ta(e, t) {
|
|
3107
|
+
return y(), k("svg", Ia, Ea);
|
|
3108
3108
|
}
|
|
3109
|
-
const
|
|
3109
|
+
const Fa = { name: "material-symbols-search", render: Ta }, Va = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], Ba = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], Pa = { key: 1 }, Ma = {
|
|
3110
3110
|
key: 0,
|
|
3111
3111
|
class: "no-data"
|
|
3112
|
-
},
|
|
3112
|
+
}, ja = /* @__PURE__ */ w("p", null, "Sem resultado para essa busca", -1), Na = /* @__PURE__ */ R({
|
|
3113
3113
|
__name: "ListOption",
|
|
3114
3114
|
props: {
|
|
3115
3115
|
id: null,
|
|
@@ -3158,47 +3158,47 @@ const Ta = { name: "material-symbols-search", render: Ea }, Fa = ["id", "data-te
|
|
|
3158
3158
|
checked: e.isSelected(r),
|
|
3159
3159
|
label: r.name,
|
|
3160
3160
|
name: e.name
|
|
3161
|
-
}, null, 8, ["id", "value", "checked", "label", "name"])) : (y(), k("span",
|
|
3162
|
-
], 44,
|
|
3163
|
-
e.options.length ? W("", !0) : (y(), k("li",
|
|
3161
|
+
}, null, 8, ["id", "value", "checked", "label", "name"])) : (y(), k("span", Pa, _(r.name), 1))
|
|
3162
|
+
], 44, Ba))), 128)),
|
|
3163
|
+
e.options.length ? W("", !0) : (y(), k("li", Ma, [
|
|
3164
3164
|
N(i.$slots, "no-data", {}, () => [
|
|
3165
|
-
X(u(
|
|
3166
|
-
|
|
3165
|
+
X(u(Fa), { class: "icon" }),
|
|
3166
|
+
ja
|
|
3167
3167
|
])
|
|
3168
3168
|
]))
|
|
3169
|
-
], 8,
|
|
3169
|
+
], 8, Va));
|
|
3170
3170
|
}
|
|
3171
3171
|
});
|
|
3172
|
-
const
|
|
3172
|
+
const La = {
|
|
3173
3173
|
preserveAspectRatio: "xMidYMid meet",
|
|
3174
3174
|
viewBox: "0 0 24 24",
|
|
3175
3175
|
width: "1em",
|
|
3176
3176
|
height: "1em"
|
|
3177
|
-
},
|
|
3177
|
+
}, Da = /* @__PURE__ */ w("path", {
|
|
3178
3178
|
fill: "currentColor",
|
|
3179
3179
|
d: "M10 4a6 6 0 1 0 0 12a6 6 0 0 0 0-12zm-8 6a8 8 0 1 1 14.32 4.906l5.387 5.387a1 1 0 0 1-1.414 1.414l-5.387-5.387A8 8 0 0 1 2 10z"
|
|
3180
|
-
}, null, -1),
|
|
3181
|
-
|
|
3180
|
+
}, null, -1), za = [
|
|
3181
|
+
Da
|
|
3182
3182
|
];
|
|
3183
|
-
function
|
|
3184
|
-
return y(), k("svg",
|
|
3183
|
+
function _a(e, t) {
|
|
3184
|
+
return y(), k("svg", La, za);
|
|
3185
3185
|
}
|
|
3186
|
-
const Ra = { name: "mi-search", render:
|
|
3186
|
+
const Ra = { name: "mi-search", render: _a }, qa = {
|
|
3187
3187
|
preserveAspectRatio: "xMidYMid meet",
|
|
3188
3188
|
viewBox: "0 0 24 24",
|
|
3189
3189
|
width: "1em",
|
|
3190
3190
|
height: "1em"
|
|
3191
|
-
},
|
|
3191
|
+
}, Ua = /* @__PURE__ */ w("path", {
|
|
3192
3192
|
fill: "currentColor",
|
|
3193
3193
|
d: "m17 10l-5 6l-5-6h10z"
|
|
3194
|
-
}, null, -1),
|
|
3195
|
-
|
|
3194
|
+
}, null, -1), Ga = [
|
|
3195
|
+
Ua
|
|
3196
3196
|
];
|
|
3197
|
-
function
|
|
3198
|
-
return y(), k("svg",
|
|
3197
|
+
function Ha(e, t) {
|
|
3198
|
+
return y(), k("svg", qa, Ga);
|
|
3199
3199
|
}
|
|
3200
|
-
const
|
|
3201
|
-
function
|
|
3200
|
+
const Qa = { name: "mi-caret-down", render: Ha };
|
|
3201
|
+
function Gn(e, t) {
|
|
3202
3202
|
function n({ code: l }) {
|
|
3203
3203
|
var r;
|
|
3204
3204
|
const i = l;
|
|
@@ -3213,7 +3213,7 @@ function Un(e, t) {
|
|
|
3213
3213
|
navigate: n
|
|
3214
3214
|
};
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function Hn({ target: e, query: t }) {
|
|
3217
3217
|
const n = We({
|
|
3218
3218
|
id: "",
|
|
3219
3219
|
index: -1
|
|
@@ -3255,10 +3255,10 @@ function Gn({ target: e, query: t }) {
|
|
|
3255
3255
|
focusOnLastItem: o
|
|
3256
3256
|
};
|
|
3257
3257
|
}
|
|
3258
|
-
const
|
|
3258
|
+
const Ka = ["data-testid"], Za = ["id", "data-testid", "data-required"], Ya = ["id", "data-testid", "disabled", "aria-expanded", "aria-labelledby", "aria-label", "aria-invalid", "aria-describedby", "aria-controls", "onClick"], Wa = {
|
|
3259
3259
|
key: 0,
|
|
3260
3260
|
class: "container-tags"
|
|
3261
|
-
},
|
|
3261
|
+
}, Ja = ["data-testid"], Xa = ["id", "data-testid"], er = { class: "select-options-container" }, tr = /* @__PURE__ */ w("hr", { class: "text-neutral-high-medium" }, null, -1), Lt = /* @__PURE__ */ R({
|
|
3262
3262
|
__name: "Select",
|
|
3263
3263
|
props: {
|
|
3264
3264
|
id: null,
|
|
@@ -3291,7 +3291,7 @@ const Qa = ["data-testid"], Ka = ["id", "data-testid", "data-required"], Za = ["
|
|
|
3291
3291
|
return n.fetchOnSearch ? n.options : (I = n.options) == null ? void 0 : I.filter((E) => new RegExp(a.value, "gi").test(E.name));
|
|
3292
3292
|
}
|
|
3293
3293
|
);
|
|
3294
|
-
|
|
3294
|
+
qn(l, () => {
|
|
3295
3295
|
i.value && v();
|
|
3296
3296
|
});
|
|
3297
3297
|
const o = S(() => {
|
|
@@ -3343,7 +3343,7 @@ const Qa = ["data-testid"], Ka = ["id", "data-testid", "data-required"], Za = ["
|
|
|
3343
3343
|
focusOnNextItem: A,
|
|
3344
3344
|
focusOnPreviousItem: B,
|
|
3345
3345
|
resetStateFocus: P
|
|
3346
|
-
} =
|
|
3346
|
+
} = Hn({ target: J }), { navigate: U } = Gn({
|
|
3347
3347
|
Home: g,
|
|
3348
3348
|
End: () => V(n.options.length),
|
|
3349
3349
|
ArrowUp: B,
|
|
@@ -3393,7 +3393,7 @@ const Qa = ["data-testid"], Ka = ["id", "data-testid", "data-required"], Za = ["
|
|
|
3393
3393
|
"data-testid": `select-label-${e.id}`,
|
|
3394
3394
|
"data-required": e.required,
|
|
3395
3395
|
class: M(["label", { "-disabled": e.disabled }])
|
|
3396
|
-
},
|
|
3396
|
+
}, _(e.label), 11, Za)) : W("", !0)
|
|
3397
3397
|
]),
|
|
3398
3398
|
w("button", {
|
|
3399
3399
|
id: `select-toggle-${e.id}`,
|
|
@@ -3418,7 +3418,7 @@ const Qa = ["data-testid"], Ka = ["id", "data-testid", "data-required"], Za = ["
|
|
|
3418
3418
|
}, () => {
|
|
3419
3419
|
var G;
|
|
3420
3420
|
return [
|
|
3421
|
-
e.multiple && Array.isArray(u(s)) && ((G = u(s)) == null ? void 0 : G.length) ? (y(), k("div",
|
|
3421
|
+
e.multiple && Array.isArray(u(s)) && ((G = u(s)) == null ? void 0 : G.length) ? (y(), k("div", Wa, [
|
|
3422
3422
|
(y(!0), k(Je, null, Xe(u(s), (ie, Ce) => (y(), ue(ut, {
|
|
3423
3423
|
id: `select-value-selected-${e.id}-${ie.value}`,
|
|
3424
3424
|
key: Ce,
|
|
@@ -3431,35 +3431,35 @@ const Qa = ["data-testid"], Ka = ["id", "data-testid", "data-required"], Za = ["
|
|
|
3431
3431
|
"data-testid": `select-value-selected-${e.id}`,
|
|
3432
3432
|
class: "",
|
|
3433
3433
|
tabindex: "-1"
|
|
3434
|
-
},
|
|
3435
|
-
X(u(
|
|
3434
|
+
}, _(K()), 9, Ja)),
|
|
3435
|
+
X(u(Qa), {
|
|
3436
3436
|
"aria-hidden": "true",
|
|
3437
3437
|
tabindex: "-1",
|
|
3438
3438
|
class: M(["icon", { "-open": i.value }])
|
|
3439
3439
|
}, null, 8, ["class"])
|
|
3440
3440
|
];
|
|
3441
3441
|
})
|
|
3442
|
-
], 8,
|
|
3442
|
+
], 8, Ya),
|
|
3443
3443
|
u(oe) ? Oe((y(), k("span", {
|
|
3444
3444
|
key: 0,
|
|
3445
3445
|
id: `select-describe-${e.id}`,
|
|
3446
3446
|
"data-testid": `select-describe-${e.id}`,
|
|
3447
3447
|
class: M(["message", `-${u(te).type}`])
|
|
3448
|
-
},
|
|
3448
|
+
}, _(u(te).text), 11, Xa)), [
|
|
3449
3449
|
[Ge, !i.value]
|
|
3450
3450
|
]) : W("", !0),
|
|
3451
|
-
X(
|
|
3451
|
+
X(pn, {
|
|
3452
3452
|
mode: "out-in",
|
|
3453
3453
|
name: "dropdown"
|
|
3454
3454
|
}, {
|
|
3455
3455
|
default: ge(() => [
|
|
3456
|
-
Oe(w("div",
|
|
3456
|
+
Oe(w("div", er, [
|
|
3457
3457
|
N(I.$slots, "search", {}, () => [
|
|
3458
3458
|
e.searchable ? (y(), k("div", {
|
|
3459
3459
|
key: 0,
|
|
3460
3460
|
class: M(["search-container", { "-loading": e.loading }])
|
|
3461
3461
|
}, [
|
|
3462
|
-
X(
|
|
3462
|
+
X(In, {
|
|
3463
3463
|
id: `select-search-${e.id}`,
|
|
3464
3464
|
ref: j("search"),
|
|
3465
3465
|
modelValue: a.value,
|
|
@@ -3487,8 +3487,8 @@ const Qa = ["data-testid"], Ka = ["id", "data-testid", "data-required"], Za = ["
|
|
|
3487
3487
|
class: "icon"
|
|
3488
3488
|
})
|
|
3489
3489
|
], 2)) : W("", !0),
|
|
3490
|
-
|
|
3491
|
-
X(
|
|
3490
|
+
tr,
|
|
3491
|
+
X(Na, {
|
|
3492
3492
|
id: e.id,
|
|
3493
3493
|
ref: j("list"),
|
|
3494
3494
|
options: u(r),
|
|
@@ -3509,7 +3509,7 @@ const Qa = ["data-testid"], Ka = ["id", "data-testid", "data-required"], Za = ["
|
|
|
3509
3509
|
]),
|
|
3510
3510
|
_: 3
|
|
3511
3511
|
})
|
|
3512
|
-
], 42,
|
|
3512
|
+
], 42, Ka));
|
|
3513
3513
|
}
|
|
3514
3514
|
});
|
|
3515
3515
|
Lt.install = (e) => {
|
|
@@ -3518,21 +3518,42 @@ Lt.install = (e) => {
|
|
|
3518
3518
|
ut.install = (e) => {
|
|
3519
3519
|
e.component("SolChip", ut);
|
|
3520
3520
|
};
|
|
3521
|
-
const
|
|
3521
|
+
const nr = ["id", "data-testid", "title"], Dt = /* @__PURE__ */ R({
|
|
3522
|
+
__name: "Tag",
|
|
3523
|
+
props: {
|
|
3524
|
+
id: null,
|
|
3525
|
+
text: { default: "default" },
|
|
3526
|
+
variant: { default: "fill" },
|
|
3527
|
+
size: { default: "small" },
|
|
3528
|
+
type: { default: "neutral" }
|
|
3529
|
+
},
|
|
3530
|
+
setup(e) {
|
|
3531
|
+
return (t, n) => (y(), k("div", {
|
|
3532
|
+
id: `tag-${e.id}`,
|
|
3533
|
+
"data-testid": `tag-${e.id}`,
|
|
3534
|
+
class: M(["sol-tag-core", `-${e.size} -${e.variant} -${e.type}`]),
|
|
3535
|
+
title: e.text
|
|
3536
|
+
}, _(e.text), 11, nr));
|
|
3537
|
+
}
|
|
3538
|
+
});
|
|
3539
|
+
Dt.install = (e) => {
|
|
3540
|
+
e.component("SolTag", Dt);
|
|
3541
|
+
};
|
|
3542
|
+
const lr = {
|
|
3522
3543
|
preserveAspectRatio: "xMidYMid meet",
|
|
3523
3544
|
viewBox: "0 0 24 24",
|
|
3524
3545
|
width: "1em",
|
|
3525
3546
|
height: "1em"
|
|
3526
|
-
},
|
|
3547
|
+
}, ir = /* @__PURE__ */ w("path", {
|
|
3527
3548
|
fill: "currentColor",
|
|
3528
3549
|
d: "M12 14.975q-.2 0-.387-.075q-.188-.075-.313-.2l-4.6-4.6q-.275-.275-.275-.7q0-.425.275-.7q.275-.275.7-.275q.425 0 .7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275q.425 0 .7.275q.275.275.275.7q0 .425-.275.7l-4.6 4.6q-.15.15-.325.212q-.175.063-.375.063Z"
|
|
3529
|
-
}, null, -1),
|
|
3530
|
-
|
|
3550
|
+
}, null, -1), ar = [
|
|
3551
|
+
ir
|
|
3531
3552
|
];
|
|
3532
|
-
function
|
|
3533
|
-
return y(), k("svg",
|
|
3553
|
+
function rr(e, t) {
|
|
3554
|
+
return y(), k("svg", lr, ar);
|
|
3534
3555
|
}
|
|
3535
|
-
const
|
|
3556
|
+
const Qn = { name: "material-symbols-keyboard-arrow-down-rounded", render: rr }, or = ["id", "data-testid", "aria-disabled"], sr = ["data-testid", "tabindex"], ur = { class: "container-title" }, cr = { class: "icon" }, dr = ["data-testid"], zt = /* @__PURE__ */ R({
|
|
3536
3557
|
__name: "Accordion",
|
|
3537
3558
|
props: {
|
|
3538
3559
|
id: null,
|
|
@@ -3552,32 +3573,32 @@ const Hn = { name: "material-symbols-keyboard-arrow-down-rounded", render: ir },
|
|
|
3552
3573
|
class: "summary",
|
|
3553
3574
|
tabindex: e.disabled ? -1 : 0
|
|
3554
3575
|
}, [
|
|
3555
|
-
w("div",
|
|
3556
|
-
w("span",
|
|
3576
|
+
w("div", ur, [
|
|
3577
|
+
w("span", cr, [
|
|
3557
3578
|
N(t.$slots, "icon")
|
|
3558
3579
|
]),
|
|
3559
3580
|
N(t.$slots, "title", {}, () => [
|
|
3560
|
-
Pe(
|
|
3581
|
+
Pe(_(e.title), 1)
|
|
3561
3582
|
])
|
|
3562
3583
|
]),
|
|
3563
|
-
X(u(
|
|
3584
|
+
X(u(Qn), {
|
|
3564
3585
|
class: "icon",
|
|
3565
3586
|
"aria-hidden": "true"
|
|
3566
3587
|
})
|
|
3567
|
-
], 8,
|
|
3588
|
+
], 8, sr),
|
|
3568
3589
|
w("div", {
|
|
3569
3590
|
"data-testid": `accordion-content-${e.id}`,
|
|
3570
3591
|
class: "accordion-content"
|
|
3571
3592
|
}, [
|
|
3572
3593
|
N(t.$slots, "default")
|
|
3573
|
-
], 8,
|
|
3574
|
-
], 10,
|
|
3594
|
+
], 8, dr)
|
|
3595
|
+
], 10, or));
|
|
3575
3596
|
}
|
|
3576
3597
|
});
|
|
3577
|
-
|
|
3578
|
-
e.component("SolAccordion",
|
|
3598
|
+
zt.install = (e) => {
|
|
3599
|
+
e.component("SolAccordion", zt);
|
|
3579
3600
|
};
|
|
3580
|
-
const
|
|
3601
|
+
const fr = ["id", "data-testid"], vr = ["id", "aria-expanded"], mr = ["id", "data-testid", "aria-labelledby"], ct = /* @__PURE__ */ R({
|
|
3581
3602
|
__name: "Menu",
|
|
3582
3603
|
props: {
|
|
3583
3604
|
id: null,
|
|
@@ -3586,7 +3607,7 @@ const cr = ["id", "data-testid"], dr = ["id", "aria-expanded"], fr = ["id", "dat
|
|
|
3586
3607
|
},
|
|
3587
3608
|
setup(e) {
|
|
3588
3609
|
const t = z();
|
|
3589
|
-
|
|
3610
|
+
qn(t, () => {
|
|
3590
3611
|
m();
|
|
3591
3612
|
});
|
|
3592
3613
|
const n = z(!1), l = z(), i = S(
|
|
@@ -3597,7 +3618,7 @@ const cr = ["id", "data-testid"], dr = ["id", "aria-expanded"], fr = ["id", "dat
|
|
|
3597
3618
|
focusOnNextItem: o,
|
|
3598
3619
|
focusOnFirstItem: s,
|
|
3599
3620
|
focusOnLastItem: c
|
|
3600
|
-
} =
|
|
3621
|
+
} = Hn({ target: l, query: '[role="menuitem"]' }), { navigate: f } = Gn({
|
|
3601
3622
|
Home: s,
|
|
3602
3623
|
End: () => c(i.value),
|
|
3603
3624
|
ArrowUp: r,
|
|
@@ -3633,9 +3654,9 @@ const cr = ["id", "data-testid"], dr = ["id", "aria-expanded"], fr = ["id", "dat
|
|
|
3633
3654
|
onClick: b
|
|
3634
3655
|
}, [
|
|
3635
3656
|
N(O.$slots, "label", { isOpen: n.value }, () => [
|
|
3636
|
-
Pe(
|
|
3657
|
+
Pe(_(e.label), 1)
|
|
3637
3658
|
])
|
|
3638
|
-
], 8,
|
|
3659
|
+
], 8, vr),
|
|
3639
3660
|
Oe(w("menu", {
|
|
3640
3661
|
id: `menu-container-${e.id}`,
|
|
3641
3662
|
ref_key: "menu",
|
|
@@ -3646,16 +3667,16 @@ const cr = ["id", "data-testid"], dr = ["id", "aria-expanded"], fr = ["id", "dat
|
|
|
3646
3667
|
class: M(["menu", { "-open": n.value }])
|
|
3647
3668
|
}, [
|
|
3648
3669
|
N(O.$slots, "default", { close: m })
|
|
3649
|
-
], 10,
|
|
3670
|
+
], 10, mr), [
|
|
3650
3671
|
[Ge, n.value]
|
|
3651
3672
|
])
|
|
3652
|
-
], 42,
|
|
3673
|
+
], 42, fr));
|
|
3653
3674
|
}
|
|
3654
3675
|
});
|
|
3655
3676
|
ct.install = (e) => {
|
|
3656
3677
|
e.component("SolMenu", ct);
|
|
3657
3678
|
};
|
|
3658
|
-
const
|
|
3679
|
+
const hr = ["id"], yr = ["href", "target"], dt = /* @__PURE__ */ R({
|
|
3659
3680
|
__name: "MenuItemLink",
|
|
3660
3681
|
props: {
|
|
3661
3682
|
id: null,
|
|
@@ -3692,16 +3713,16 @@ const vr = ["id"], mr = ["href", "target"], dt = /* @__PURE__ */ _({
|
|
|
3692
3713
|
class: M({ "-active": e.active }),
|
|
3693
3714
|
href: e.link,
|
|
3694
3715
|
target: e.external ? "_blank" : "_parent"
|
|
3695
|
-
},
|
|
3716
|
+
}, _(e.text), 11, yr)
|
|
3696
3717
|
])
|
|
3697
|
-
], 40,
|
|
3718
|
+
], 40, hr);
|
|
3698
3719
|
};
|
|
3699
3720
|
}
|
|
3700
3721
|
});
|
|
3701
3722
|
dt.install = (e) => {
|
|
3702
3723
|
e.component("SolMenuItemLink", dt);
|
|
3703
3724
|
};
|
|
3704
|
-
const
|
|
3725
|
+
const br = { class: "label-container" }, gr = { class: "label" }, _t = /* @__PURE__ */ R({
|
|
3705
3726
|
__name: "MenuNavigationLinks",
|
|
3706
3727
|
props: {
|
|
3707
3728
|
id: null,
|
|
@@ -3715,9 +3736,9 @@ const hr = { class: "label-container" }, yr = { class: "label" }, zt = /* @__PUR
|
|
|
3715
3736
|
}, {
|
|
3716
3737
|
label: ge(({ isOpen: l }) => [
|
|
3717
3738
|
N(t.$slots, "label", { isOpen: l }, () => [
|
|
3718
|
-
w("div",
|
|
3719
|
-
w("span",
|
|
3720
|
-
X(u(
|
|
3739
|
+
w("div", br, [
|
|
3740
|
+
w("span", gr, _(e.label), 1),
|
|
3741
|
+
X(u(Qn), {
|
|
3721
3742
|
class: M(["icon", { "-opened": l }]),
|
|
3722
3743
|
"aria-hidden": "true"
|
|
3723
3744
|
}, null, 8, ["class"])
|
|
@@ -3757,10 +3778,10 @@ const hr = { class: "label-container" }, yr = { class: "label" }, zt = /* @__PUR
|
|
|
3757
3778
|
}, 8, ["id"]));
|
|
3758
3779
|
}
|
|
3759
3780
|
});
|
|
3760
|
-
|
|
3761
|
-
e.component("SolMenuNavigationLinks",
|
|
3781
|
+
_t.install = (e) => {
|
|
3782
|
+
e.component("SolMenuNavigationLinks", _t);
|
|
3762
3783
|
};
|
|
3763
|
-
const
|
|
3784
|
+
const Kn = 12, Ve = {
|
|
3764
3785
|
type: "success",
|
|
3765
3786
|
timeout: 5e3,
|
|
3766
3787
|
showIcon: !0,
|
|
@@ -3768,7 +3789,7 @@ const Qn = 12, Ve = {
|
|
|
3768
3789
|
position: "top-right",
|
|
3769
3790
|
hideProgressBar: !1
|
|
3770
3791
|
};
|
|
3771
|
-
function
|
|
3792
|
+
function $r(e, t) {
|
|
3772
3793
|
const n = We({
|
|
3773
3794
|
id: null,
|
|
3774
3795
|
intervalId: null,
|
|
@@ -3789,7 +3810,7 @@ function br(e, t) {
|
|
|
3789
3810
|
return ft(() => {
|
|
3790
3811
|
if (t <= 0)
|
|
3791
3812
|
return !1;
|
|
3792
|
-
}),
|
|
3813
|
+
}), Ut(() => {
|
|
3793
3814
|
r();
|
|
3794
3815
|
}), {
|
|
3795
3816
|
start: a,
|
|
@@ -3798,7 +3819,7 @@ function br(e, t) {
|
|
|
3798
3819
|
progress: l
|
|
3799
3820
|
};
|
|
3800
3821
|
}
|
|
3801
|
-
function
|
|
3822
|
+
function pr(e) {
|
|
3802
3823
|
return {
|
|
3803
3824
|
stylePosition: S(() => {
|
|
3804
3825
|
const { position: n, offset: l } = e();
|
|
@@ -3843,57 +3864,57 @@ function gr(e) {
|
|
|
3843
3864
|
})
|
|
3844
3865
|
};
|
|
3845
3866
|
}
|
|
3846
|
-
var
|
|
3847
|
-
const
|
|
3867
|
+
var Zn = /* @__PURE__ */ ((e) => (e["top-left"] = "bounce-left", e["top-right"] = "bounce-right", e["top-center"] = "bounce-down", e["bottom-left"] = "bounce-left", e["bottom-center"] = "bounce-up", e["bottom-right"] = "bounce-right", e))(Zn || {});
|
|
3868
|
+
const kr = {
|
|
3848
3869
|
preserveAspectRatio: "xMidYMid meet",
|
|
3849
3870
|
viewBox: "0 0 24 24",
|
|
3850
3871
|
width: "1em",
|
|
3851
3872
|
height: "1em"
|
|
3852
|
-
},
|
|
3873
|
+
}, wr = /* @__PURE__ */ w("path", {
|
|
3853
3874
|
fill: "currentColor",
|
|
3854
3875
|
d: "M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12zm14.664-3.247a1 1 0 0 1 .083 1.411l-5.333 6a1 1 0 0 1-1.495 0l-2.666-3a1 1 0 0 1 1.494-1.328l1.92 2.159l4.586-5.16a1 1 0 0 1 1.411-.082z"
|
|
3855
|
-
}, null, -1),
|
|
3856
|
-
|
|
3876
|
+
}, null, -1), Or = [
|
|
3877
|
+
wr
|
|
3857
3878
|
];
|
|
3858
|
-
function
|
|
3859
|
-
return y(), k("svg",
|
|
3879
|
+
function Sr(e, t) {
|
|
3880
|
+
return y(), k("svg", kr, Or);
|
|
3860
3881
|
}
|
|
3861
|
-
const
|
|
3882
|
+
const xr = { name: "mi-circle-check", render: Sr }, Cr = {
|
|
3862
3883
|
preserveAspectRatio: "xMidYMid meet",
|
|
3863
3884
|
viewBox: "0 0 24 24",
|
|
3864
3885
|
width: "1em",
|
|
3865
3886
|
height: "1em"
|
|
3866
|
-
},
|
|
3887
|
+
}, Ir = /* @__PURE__ */ w("path", {
|
|
3867
3888
|
fill: "currentColor",
|
|
3868
3889
|
d: "M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12zm5.793-4.207a1 1 0 0 1 1.414 0L12 10.586l2.793-2.793a1 1 0 1 1 1.414 1.414L13.414 12l2.793 2.793a1 1 0 0 1-1.414 1.414L12 13.414l-2.793 2.793a1 1 0 0 1-1.414-1.414L10.586 12L7.793 9.207a1 1 0 0 1 0-1.414z"
|
|
3869
|
-
}, null, -1),
|
|
3870
|
-
|
|
3890
|
+
}, null, -1), Ar = [
|
|
3891
|
+
Ir
|
|
3871
3892
|
];
|
|
3872
|
-
function
|
|
3873
|
-
return y(), k("svg",
|
|
3893
|
+
function Er(e, t) {
|
|
3894
|
+
return y(), k("svg", Cr, Ar);
|
|
3874
3895
|
}
|
|
3875
|
-
const
|
|
3896
|
+
const Tr = { name: "mi-circle-error", render: Er }, Fr = {
|
|
3876
3897
|
preserveAspectRatio: "xMidYMid meet",
|
|
3877
3898
|
viewBox: "0 0 24 24",
|
|
3878
3899
|
width: "1em",
|
|
3879
3900
|
height: "1em"
|
|
3880
|
-
},
|
|
3901
|
+
}, Vr = /* @__PURE__ */ w("g", { fill: "currentColor" }, [
|
|
3881
3902
|
/* @__PURE__ */ w("path", { d: "M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12z" }),
|
|
3882
3903
|
/* @__PURE__ */ w("path", { d: "M12 14a1 1 0 0 1-1-1V7a1 1 0 1 1 2 0v6a1 1 0 0 1-1 1zm-1.5 2.5a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0z" })
|
|
3883
|
-
], -1),
|
|
3884
|
-
|
|
3904
|
+
], -1), Br = [
|
|
3905
|
+
Vr
|
|
3885
3906
|
];
|
|
3886
|
-
function
|
|
3887
|
-
return y(), k("svg",
|
|
3907
|
+
function Pr(e, t) {
|
|
3908
|
+
return y(), k("svg", Fr, Br);
|
|
3888
3909
|
}
|
|
3889
|
-
const
|
|
3910
|
+
const Mr = { name: "mi-circle-warning", render: Pr }, jr = ["id", "data-testid"], Nr = { class: "content-wrapper" }, Lr = {
|
|
3890
3911
|
key: 0,
|
|
3891
3912
|
class: "icon-container",
|
|
3892
3913
|
"aria-hidden": "true"
|
|
3893
|
-
},
|
|
3914
|
+
}, Dr = { class: "content" }, zr = {
|
|
3894
3915
|
key: 0,
|
|
3895
3916
|
class: "description"
|
|
3896
|
-
},
|
|
3917
|
+
}, _r = ["data-testid"], Rr = /* @__PURE__ */ R({
|
|
3897
3918
|
__name: "Toast",
|
|
3898
3919
|
props: {
|
|
3899
3920
|
id: null,
|
|
@@ -3910,10 +3931,10 @@ const Br = { name: "mi-circle-warning", render: Vr }, Pr = ["id", "data-testid"]
|
|
|
3910
3931
|
position: { default: Ve.position }
|
|
3911
3932
|
},
|
|
3912
3933
|
setup(e) {
|
|
3913
|
-
const t = e, { start: n, stop: l, progress: i } =
|
|
3934
|
+
const t = e, { start: n, stop: l, progress: i } = $r(() => {
|
|
3914
3935
|
var c;
|
|
3915
3936
|
(c = t.onCloseHandler) == null || c.call(t);
|
|
3916
|
-
}, t.timeout), { stylePosition: a } =
|
|
3937
|
+
}, t.timeout), { stylePosition: a } = pr(() => ({
|
|
3917
3938
|
offset: t.offset,
|
|
3918
3939
|
position: t.position
|
|
3919
3940
|
})), r = S(() => t.title && t.description);
|
|
@@ -3925,8 +3946,8 @@ const Br = { name: "mi-circle-warning", render: Vr }, Pr = ["id", "data-testid"]
|
|
|
3925
3946
|
}
|
|
3926
3947
|
return ft(() => {
|
|
3927
3948
|
n();
|
|
3928
|
-
}), (c, f) => (y(), ue(
|
|
3929
|
-
name: u(
|
|
3949
|
+
}), (c, f) => (y(), ue(pn, {
|
|
3950
|
+
name: u(Zn)[e.position],
|
|
3930
3951
|
type: "animation"
|
|
3931
3952
|
}, {
|
|
3932
3953
|
default: ge(() => [
|
|
@@ -3946,34 +3967,34 @@ const Br = { name: "mi-circle-warning", render: Vr }, Pr = ["id", "data-testid"]
|
|
|
3946
3967
|
onFocusin: o,
|
|
3947
3968
|
onFocusout: s
|
|
3948
3969
|
}, [
|
|
3949
|
-
w("section",
|
|
3950
|
-
e.showIcon ? (y(), k("div",
|
|
3970
|
+
w("section", Nr, [
|
|
3971
|
+
e.showIcon ? (y(), k("div", Lr, [
|
|
3951
3972
|
N(c.$slots, "icon-status", { type: e.type }, () => [
|
|
3952
|
-
e.type === "success" ? (y(), ue(u(
|
|
3973
|
+
e.type === "success" ? (y(), ue(u(xr), {
|
|
3953
3974
|
key: 0,
|
|
3954
3975
|
class: "icon"
|
|
3955
3976
|
})) : W("", !0),
|
|
3956
|
-
e.type === "info" ? (y(), ue(u(
|
|
3977
|
+
e.type === "info" ? (y(), ue(u(Mr), {
|
|
3957
3978
|
key: 1,
|
|
3958
3979
|
class: "icon"
|
|
3959
3980
|
})) : W("", !0),
|
|
3960
|
-
e.type === "danger" ? (y(), ue(u(
|
|
3981
|
+
e.type === "danger" ? (y(), ue(u(Tr), {
|
|
3961
3982
|
key: 2,
|
|
3962
3983
|
class: "icon"
|
|
3963
3984
|
})) : W("", !0)
|
|
3964
3985
|
])
|
|
3965
3986
|
])) : W("", !0),
|
|
3966
|
-
w("div",
|
|
3987
|
+
w("div", Dr, [
|
|
3967
3988
|
w("p", {
|
|
3968
3989
|
class: M(["title", { "-multiline": u(r) }])
|
|
3969
3990
|
}, [
|
|
3970
3991
|
N(c.$slots, "title", {}, () => [
|
|
3971
|
-
Pe(
|
|
3992
|
+
Pe(_(e.title), 1)
|
|
3972
3993
|
])
|
|
3973
3994
|
], 2),
|
|
3974
|
-
e.description ? (y(), k("p",
|
|
3995
|
+
e.description ? (y(), k("p", zr, [
|
|
3975
3996
|
N(c.$slots, "description", {}, () => [
|
|
3976
|
-
Pe(
|
|
3997
|
+
Pe(_(e.description), 1)
|
|
3977
3998
|
])
|
|
3978
3999
|
])) : W("", !0)
|
|
3979
4000
|
])
|
|
@@ -3985,15 +4006,15 @@ const Br = { name: "mi-circle-warning", render: Vr }, Pr = ["id", "data-testid"]
|
|
|
3985
4006
|
"aria-label": "close notification",
|
|
3986
4007
|
onClick: f[0] || (f[0] = (...m) => e.onCloseHandler && e.onCloseHandler(...m))
|
|
3987
4008
|
}, [
|
|
3988
|
-
X(u(
|
|
3989
|
-
], 10,
|
|
4009
|
+
X(u(Un), { class: "icon" })
|
|
4010
|
+
], 10, _r),
|
|
3990
4011
|
e.hideProgressBar ? W("", !0) : (y(), k("div", {
|
|
3991
4012
|
key: 0,
|
|
3992
4013
|
class: "progressbar",
|
|
3993
4014
|
"aria-hidden": "true",
|
|
3994
4015
|
style: Ot({ width: `${u(i)}%` })
|
|
3995
4016
|
}, null, 4))
|
|
3996
|
-
], 46,
|
|
4017
|
+
], 46, jr)) : W("", !0)
|
|
3997
4018
|
]),
|
|
3998
4019
|
_: 3
|
|
3999
4020
|
}, 8, ["name"]));
|
|
@@ -4007,7 +4028,7 @@ const Ze = {
|
|
|
4007
4028
|
"bottom-right": [],
|
|
4008
4029
|
"bottom-center": []
|
|
4009
4030
|
};
|
|
4010
|
-
function
|
|
4031
|
+
function Zr() {
|
|
4011
4032
|
let e = 0;
|
|
4012
4033
|
function t() {
|
|
4013
4034
|
Object.entries(Ze).forEach(([l, i]) => {
|
|
@@ -4020,15 +4041,15 @@ function Qr() {
|
|
|
4020
4041
|
}
|
|
4021
4042
|
return {
|
|
4022
4043
|
createToast: (l, i) => {
|
|
4023
|
-
const a = e++, r = i ?
|
|
4024
|
-
return i != null && i.showOneToast && t(),
|
|
4044
|
+
const a = e++, r = i ? qr(i) : Ve;
|
|
4045
|
+
return i != null && i.showOneToast && t(), Ur(a, r, typeof l == "string" ? { title: l } : l), {
|
|
4025
4046
|
close: () => Rt(a, r.position)
|
|
4026
4047
|
};
|
|
4027
4048
|
},
|
|
4028
4049
|
clearAllToasts: t
|
|
4029
4050
|
};
|
|
4030
4051
|
}
|
|
4031
|
-
function
|
|
4052
|
+
function qr(e) {
|
|
4032
4053
|
const t = {
|
|
4033
4054
|
...Ve,
|
|
4034
4055
|
...e,
|
|
@@ -4036,18 +4057,18 @@ function Rr(e) {
|
|
|
4036
4057
|
};
|
|
4037
4058
|
return t.hideProgressBar = !!(t.timeout && (t == null ? void 0 : t.timeout) <= 0), e.hideProgressBar && (t.hideProgressBar = e.hideProgressBar), t;
|
|
4038
4059
|
}
|
|
4039
|
-
function
|
|
4060
|
+
function Ur(e, t, n) {
|
|
4040
4061
|
setTimeout(() => {
|
|
4041
|
-
const l =
|
|
4062
|
+
const l = Hr(t, Ze, Kn), i = document.createElement("div");
|
|
4042
4063
|
document.body.appendChild(i);
|
|
4043
4064
|
const a = X(
|
|
4044
|
-
|
|
4045
|
-
|
|
4065
|
+
Rr,
|
|
4066
|
+
Gr(t, e, l, Rt, n)
|
|
4046
4067
|
);
|
|
4047
|
-
|
|
4068
|
+
kn(a, i), Ze[t.position].push({ toastVNode: a, container: i }), a.component && (a.component.props.visible = !0);
|
|
4048
4069
|
}, 1);
|
|
4049
4070
|
}
|
|
4050
|
-
function
|
|
4071
|
+
function Gr(e, t, n, l, i) {
|
|
4051
4072
|
return {
|
|
4052
4073
|
...e,
|
|
4053
4074
|
...i,
|
|
@@ -4059,17 +4080,17 @@ function qr(e, t, n, l, i) {
|
|
|
4059
4080
|
}
|
|
4060
4081
|
};
|
|
4061
4082
|
}
|
|
4062
|
-
function
|
|
4083
|
+
function Hr(e, t, n) {
|
|
4063
4084
|
if (!e.position)
|
|
4064
4085
|
throw new Error("no position");
|
|
4065
4086
|
return t[e.position].reduce((l, { toastVNode: i }) => (l += i.el.offsetHeight + n || 0, l), n);
|
|
4066
4087
|
}
|
|
4067
|
-
function
|
|
4088
|
+
function Qr(e, t, n, l) {
|
|
4068
4089
|
for (let i = e; i < t.length; i++) {
|
|
4069
4090
|
const { toastVNode: a } = t[i];
|
|
4070
4091
|
if (!a.el)
|
|
4071
4092
|
return;
|
|
4072
|
-
const r = n.split("-")[0] || "top", o = parseInt(a.el.style[r], 10) - l -
|
|
4093
|
+
const r = n.split("-")[0] || "top", o = parseInt(a.el.style[r], 10) - l - Kn;
|
|
4073
4094
|
if (!a.component)
|
|
4074
4095
|
return;
|
|
4075
4096
|
a.component.props.offset = o;
|
|
@@ -4086,17 +4107,17 @@ function Rt(e, t) {
|
|
|
4086
4107
|
if (l === -1)
|
|
4087
4108
|
return;
|
|
4088
4109
|
const { container: i, toastVNode: a } = n[l], r = (s = a == null ? void 0 : a.el) == null ? void 0 : s.offsetHeight;
|
|
4089
|
-
if (Ze[t].splice(l, 1),
|
|
4110
|
+
if (Ze[t].splice(l, 1), Qr(l, n, t, r), !a.component)
|
|
4090
4111
|
return;
|
|
4091
4112
|
const o = a.component.props;
|
|
4092
4113
|
o.visible = !1, o.onClose && o.onClose(), setTimeout(() => {
|
|
4093
|
-
|
|
4114
|
+
kn(null, i), document.body.removeChild(i);
|
|
4094
4115
|
}, 1e3);
|
|
4095
4116
|
}
|
|
4096
4117
|
console.log("%c\u{1F33B}[Girassol]\u{1F33B}", "padding: 8px;background: #212121;color: gold; font-family: 'Fira code'; font-weight: bold; font-size: 1.2rem");
|
|
4097
|
-
const
|
|
4118
|
+
const mn = {
|
|
4098
4119
|
SolButton: Qe,
|
|
4099
|
-
SolButtonDestructive:
|
|
4120
|
+
SolButtonDestructive: On,
|
|
4100
4121
|
SolInputTextarea: Vt,
|
|
4101
4122
|
SolInputText: ot,
|
|
4102
4123
|
SolInputTextPassword: Ft,
|
|
@@ -4107,19 +4128,20 @@ const vn = {
|
|
|
4107
4128
|
SolSwitch: Mt,
|
|
4108
4129
|
SolSelect: Lt,
|
|
4109
4130
|
SolChip: ut,
|
|
4110
|
-
|
|
4131
|
+
SolTag: Dt,
|
|
4132
|
+
SolAccordion: zt,
|
|
4111
4133
|
SolMenu: ct,
|
|
4112
4134
|
SolMenuItemLink: dt,
|
|
4113
|
-
SolMenuNavigationLinks:
|
|
4135
|
+
SolMenuNavigationLinks: _t
|
|
4114
4136
|
};
|
|
4115
|
-
function
|
|
4116
|
-
for (const t in
|
|
4117
|
-
e.component(t,
|
|
4137
|
+
function Yr(e) {
|
|
4138
|
+
for (const t in mn)
|
|
4139
|
+
e.component(t, mn[t]);
|
|
4118
4140
|
}
|
|
4119
4141
|
export {
|
|
4120
|
-
|
|
4142
|
+
zt as SolAccordion,
|
|
4121
4143
|
Qe as SolButton,
|
|
4122
|
-
|
|
4144
|
+
On as SolButtonDestructive,
|
|
4123
4145
|
Ke as SolCheckbox,
|
|
4124
4146
|
Pt as SolCheckboxGroup,
|
|
4125
4147
|
ut as SolChip,
|
|
@@ -4128,12 +4150,13 @@ export {
|
|
|
4128
4150
|
Vt as SolInputTextarea,
|
|
4129
4151
|
ct as SolMenu,
|
|
4130
4152
|
dt as SolMenuItemLink,
|
|
4131
|
-
|
|
4153
|
+
_t as SolMenuNavigationLinks,
|
|
4132
4154
|
st as SolRadio,
|
|
4133
4155
|
Bt as SolRadioGroup,
|
|
4134
4156
|
Lt as SolSelect,
|
|
4135
4157
|
Mt as SolSwitch,
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4158
|
+
Dt as SolTag,
|
|
4159
|
+
mn as components,
|
|
4160
|
+
Yr as install,
|
|
4161
|
+
Zr as useToast
|
|
4139
4162
|
};
|