@solfacil/girassol 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/components.d.ts +2 -3
  2. package/dist/components.json +1 -1
  3. package/dist/girassol.es.js +2990 -973
  4. package/dist/girassol.umd.js +10 -6
  5. package/dist/style.css +1 -1
  6. package/dist/types/components/forms/inputs/index.d.ts +3 -0
  7. package/dist/types/components/forms/{input → inputs/input-core}/Input.vue.d.ts +47 -23
  8. package/dist/types/components/forms/{input → inputs/input-core}/input.spec.d.ts +0 -0
  9. package/dist/types/components/forms/{textfield/TextfieldPassword.vue.d.ts → inputs/input-password/InputPassword.vue.d.ts} +76 -23
  10. package/dist/types/components/forms/{textfield/textfield-password.spec.d.ts → inputs/input-password/input-password.spec.d.ts} +0 -0
  11. package/dist/types/components/forms/inputs/input-text/InputText.vue.d.ts +181 -0
  12. package/dist/types/components/forms/{textfield/textfield.spec.d.ts → inputs/input-text/input-text.spec.d.ts} +0 -0
  13. package/dist/types/components/forms/inputs/types.d.ts +24 -0
  14. package/dist/types/components/loader/CircleLoader.vue.d.ts +19 -8
  15. package/dist/types/composables/use-validate-field/index.d.ts +5 -0
  16. package/dist/types/composables/use-validate-field/types.d.ts +9 -0
  17. package/dist/types/index.d.ts +404 -207
  18. package/package.json +3 -2
  19. package/theme/solfacil/colors.ts +1 -1
  20. package/windi.config.ts +11 -11
  21. package/dist/theme/safelist.d.ts +0 -14
  22. package/dist/types/components/forms/input/index.d.ts +0 -2
  23. package/dist/types/components/forms/textfield/Textfield.vue.d.ts +0 -129
  24. package/dist/types/components/forms/textfield/index.d.ts +0 -3
@@ -1,28 +1,30 @@
1
- import { defineComponent as O, openBlock as s, createElementBlock as r, normalizeClass as k, createElementVNode as u, useSlots as Ye, computed as D, unref as $, renderSlot as m, createVNode as L, createCommentVNode as T, createBlock as H, withCtx as E, ref as V, toDisplayString as x, mergeProps as U, isRef as Ee, withDirectives as Y, vShow as X, vModelText as We, Fragment as j, renderList as Z, getCurrentScope as je, onScopeDispose as Ze, watch as Je, reactive as ie, withModifiers as q, createTextVNode as N, Transition as Me, normalizeStyle as ae, withKeys as K, onMounted as De, onUnmounted as Xe, render as Ne } from "vue";
2
- const _e = /* @__PURE__ */ u("path", {
1
+ import { defineComponent as U, openBlock as b, createElementBlock as O, normalizeClass as N, createElementVNode as S, toDisplayString as D, useSlots as on, computed as j, unref as c, renderSlot as M, createVNode as Y, createCommentVNode as W, createBlock as re, withCtx as oe, ref as z, onMounted as ft, provide as sn, isRef as Pe, watch as ie, getCurrentInstance as Je, onBeforeUnmount as un, toRef as ye, resolveDynamicComponent as jt, h as lt, inject as dn, reactive as Se, onUnmounted as Nt, nextTick as Be, warn as cn, watchEffect as qn, markRaw as Gn, mergeProps as pe, withDirectives as je, vShow as We, vModelText as Hn, Fragment as ze, renderList as Re, getCurrentScope as Kn, onScopeDispose as Qn, withModifiers as Oe, createTextVNode as ce, Transition as Lt, normalizeStyle as it, withKeys as xe, render as fn } from "vue";
2
+ const Wn = /* @__PURE__ */ S("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), et = [
6
- _e
7
- ], tt = /* @__PURE__ */ O({
5
+ }, null, -1), vn = /* @__PURE__ */ U({
8
6
  __name: "CircleLoader",
9
7
  props: {
10
- size: { default: "large" },
11
- dark: { type: Boolean }
8
+ size: { default: "lg" },
9
+ dark: { type: Boolean },
10
+ title: { default: "Carregando" }
12
11
  },
13
12
  setup(e) {
14
- return (n, t) => (s(), r("svg", {
15
- class: k(["sol-inner-loader", `-${e.size}`]),
13
+ return (t, n) => (b(), O("svg", {
14
+ class: N(["sol-inner-loader", `-${e.size}`]),
16
15
  viewBox: "0 0 32 32",
17
16
  fill: "none",
18
17
  xmlns: "http://www.w3.org/2000/svg"
19
- }, et, 2));
18
+ }, [
19
+ S("title", null, D(e.title), 1),
20
+ Wn
21
+ ], 2));
20
22
  }
21
23
  });
22
- const nt = ["data-testid", "disabled"], lt = { class: "icon -left" }, it = { class: "icon -right" }, at = {
24
+ const Yn = ["data-testid", "disabled"], Zn = { class: "icon -left" }, Jn = { class: "icon -right" }, Xn = {
23
25
  key: 0,
24
26
  class: "loading"
25
- }, _ = /* @__PURE__ */ O({
27
+ }, Ye = /* @__PURE__ */ U({
26
28
  __name: "Button",
27
29
  props: {
28
30
  id: null,
@@ -33,57 +35,57 @@ const nt = ["data-testid", "disabled"], lt = { class: "icon -left" }, it = { cla
33
35
  variant: { default: "primary" }
34
36
  },
35
37
  setup(e) {
36
- function n(a, o) {
37
- return a ? o : "";
38
+ function t(a, r) {
39
+ return a ? r : "";
38
40
  }
39
- const t = Ye(), i = D(
40
- () => !!(t != null && t.default) && (!!(t != null && t["icon-right"]) || !!(t != null && t["icon-left"]))
41
- ), l = D(
42
- () => !(t != null && t.default) && (!!(t != null && t["icon-right"]) || !!(t != null && t["icon-left"]))
41
+ const n = on(), i = j(
42
+ () => !!(n != null && n.default) && (!!(n != null && n["icon-right"]) || !!(n != null && n["icon-left"]))
43
+ ), l = j(
44
+ () => !(n != null && n.default) && (!!(n != null && n["icon-right"]) || !!(n != null && n["icon-left"]))
43
45
  );
44
- return (a, o) => (s(), r("button", {
46
+ return (a, r) => (b(), O("button", {
45
47
  "data-testid": `button-${e.id}`,
46
- class: k(["sol-button-core", `-${e.variant} -${e.size}
47
- ${n(e.loading, "-loading-helper")}
48
- ${n(e.onColor, "-on-color")}
49
- ${n($(i), "-has-icon")}
50
- ${n($(l), "-only-icon")}
48
+ class: N(["sol-button-core", `-${e.variant} -${e.size}
49
+ ${t(e.loading, "-loading-helper")}
50
+ ${t(e.onColor, "-on-color")}
51
+ ${t(c(i), "-has-icon")}
52
+ ${t(c(l), "-only-icon")}
51
53
  `]),
52
54
  type: "button",
53
55
  disabled: e.disabled || e.loading
54
56
  }, [
55
- u("div", lt, [
56
- m(a.$slots, "icon-left")
57
+ S("div", Zn, [
58
+ M(a.$slots, "icon-left")
57
59
  ]),
58
- m(a.$slots, "default"),
59
- u("div", it, [
60
- m(a.$slots, "icon-right")
60
+ M(a.$slots, "default"),
61
+ S("div", Jn, [
62
+ M(a.$slots, "icon-right")
61
63
  ]),
62
- e.loading ? (s(), r("div", at, [
63
- L(tt, {
64
+ e.loading ? (b(), O("div", Xn, [
65
+ Y(vn, {
64
66
  "data-testid": `button-loader-${e.id}`,
65
- size: e.size === "small" ? "small" : "medium",
67
+ size: e.size === "small" ? "sm" : "md",
66
68
  dark: e.onColor
67
69
  }, null, 8, ["data-testid", "size", "dark"])
68
- ])) : T("", !0)
69
- ], 10, nt));
70
+ ])) : W("", !0)
71
+ ], 10, Yn));
70
72
  }
71
73
  });
72
- const ot = {
74
+ const _n = {
73
75
  preserveAspectRatio: "xMidYMid meet",
74
76
  viewBox: "0 0 24 24",
75
77
  width: "1em",
76
78
  height: "1em"
77
- }, st = /* @__PURE__ */ u("path", {
79
+ }, el = /* @__PURE__ */ S("path", {
78
80
  fill: "currentColor",
79
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"
80
- }, null, -1), dt = [
81
- st
82
+ }, null, -1), tl = [
83
+ el
82
84
  ];
83
- function ct(e, n) {
84
- return s(), r("svg", ot, dt);
85
+ function nl(e, t) {
86
+ return b(), O("svg", _n, tl);
85
87
  }
86
- const rt = { name: "material-symbols-delete-outline", render: ct }, Re = /* @__PURE__ */ O({
88
+ const ll = { name: "material-symbols-delete-outline", render: nl }, hn = /* @__PURE__ */ U({
87
89
  __name: "ButtonDestructive",
88
90
  props: {
89
91
  id: null,
@@ -91,199 +93,2216 @@ const rt = { name: "material-symbols-delete-outline", render: ct }, Re = /* @__P
91
93
  loading: { type: Boolean }
92
94
  },
93
95
  setup(e) {
94
- return (n, t) => (s(), H(_, {
96
+ return (t, n) => (b(), re(Ye, {
95
97
  id: `destructive-${e.id}`,
96
98
  size: e.size,
97
99
  loading: e.loading,
98
100
  variant: "primary",
99
101
  class: "button-destructive"
100
102
  }, {
101
- "icon-left": E(() => [
102
- L($(rt))
103
+ "icon-left": oe(() => [
104
+ Y(c(ll))
103
105
  ]),
104
- default: E(() => [
105
- m(n.$slots, "default")
106
+ default: oe(() => [
107
+ M(t.$slots, "default")
106
108
  ]),
107
109
  _: 3
108
110
  }, 8, ["id", "size", "loading"]));
109
111
  }
110
112
  });
111
- _.install = (e) => {
112
- e.component("SolButton", _);
113
+ Ye.install = (e) => {
114
+ e.component("SolButton", Ye);
113
115
  };
114
- Re.install = (e) => {
115
- e.component("SolButton", _);
116
+ hn.install = (e) => {
117
+ e.component("SolButton", Ye);
116
118
  };
117
- const ut = ["id", "data-testid", "value"], W = /* @__PURE__ */ O({
119
+ const il = ["id", "data-testid", "value"], Dt = /* @__PURE__ */ U({
118
120
  __name: "Input",
119
121
  props: {
120
122
  id: null,
121
123
  modelValue: null,
122
- invert: { type: Boolean },
123
- error: { type: Boolean }
124
+ error: null,
125
+ size: { default: "md" },
126
+ hasFeedbackIcon: null
124
127
  },
125
128
  emits: ["update:modelValue"],
126
- setup(e, { expose: n, emit: t }) {
129
+ setup(e, { expose: t, emit: n }) {
127
130
  function i({ target: a }) {
128
- t("update:modelValue", a == null ? void 0 : a.value);
131
+ n("update:modelValue", a == null ? void 0 : a.value);
129
132
  }
130
- const l = V("");
131
- return n({
133
+ const l = z("");
134
+ return t({
132
135
  input: l
133
- }), (a, o) => (s(), r("input", {
136
+ }), (a, r) => (b(), O("input", {
134
137
  id: `input-${e.id}`,
135
138
  ref_key: "input",
136
139
  ref: l,
137
140
  "data-testid": `input-${e.id}`,
138
141
  value: e.modelValue,
139
- class: k(["sol-input-core", { "-invert": e.invert, "-error": e.error }]),
142
+ class: N(["sol-input-core", [`-${e.size}`, { "-error": e.error, "-feedback-icon": e.hasFeedbackIcon }]]),
140
143
  onInput: i
141
- }, null, 42, ut));
144
+ }, null, 42, il));
142
145
  }
143
146
  });
144
- W.install = (e) => {
145
- e.component("SolInput", W);
147
+ function al() {
148
+ return mn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
149
+ }
150
+ function mn() {
151
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
152
+ }
153
+ const rl = typeof Proxy == "function", ol = "devtools-plugin:setup", sl = "plugin:settings:set";
154
+ let Fe, wt;
155
+ function ul() {
156
+ var e;
157
+ return Fe !== void 0 || (typeof window < "u" && window.performance ? (Fe = !0, wt = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? (Fe = !0, wt = global.perf_hooks.performance) : Fe = !1), Fe;
158
+ }
159
+ function dl() {
160
+ return ul() ? wt.now() : Date.now();
161
+ }
162
+ class cl {
163
+ constructor(t, n) {
164
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
165
+ const i = {};
166
+ if (t.settings)
167
+ for (const r in t.settings) {
168
+ const o = t.settings[r];
169
+ i[r] = o.defaultValue;
170
+ }
171
+ const l = `__vue-devtools-plugin-settings__${t.id}`;
172
+ let a = Object.assign({}, i);
173
+ try {
174
+ const r = localStorage.getItem(l), o = JSON.parse(r);
175
+ Object.assign(a, o);
176
+ } catch {
177
+ }
178
+ this.fallbacks = {
179
+ getSettings() {
180
+ return a;
181
+ },
182
+ setSettings(r) {
183
+ try {
184
+ localStorage.setItem(l, JSON.stringify(r));
185
+ } catch {
186
+ }
187
+ a = r;
188
+ },
189
+ now() {
190
+ return dl();
191
+ }
192
+ }, n && n.on(sl, (r, o) => {
193
+ r === this.plugin.id && this.fallbacks.setSettings(o);
194
+ }), this.proxiedOn = new Proxy({}, {
195
+ get: (r, o) => this.target ? this.target.on[o] : (...s) => {
196
+ this.onQueue.push({
197
+ method: o,
198
+ args: s
199
+ });
200
+ }
201
+ }), this.proxiedTarget = new Proxy({}, {
202
+ get: (r, o) => this.target ? this.target[o] : o === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(o) ? (...s) => (this.targetQueue.push({
203
+ method: o,
204
+ args: s,
205
+ resolve: () => {
206
+ }
207
+ }), this.fallbacks[o](...s)) : (...s) => new Promise((u) => {
208
+ this.targetQueue.push({
209
+ method: o,
210
+ args: s,
211
+ resolve: u
212
+ });
213
+ })
214
+ });
215
+ }
216
+ async setRealTarget(t) {
217
+ this.target = t;
218
+ for (const n of this.onQueue)
219
+ this.target.on[n.method](...n.args);
220
+ for (const n of this.targetQueue)
221
+ n.resolve(await this.target[n.method](...n.args));
222
+ }
223
+ }
224
+ function fl(e, t) {
225
+ const n = e, i = mn(), l = al(), a = rl && n.enableEarlyProxy;
226
+ if (l && (i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
227
+ l.emit(ol, e, t);
228
+ else {
229
+ const r = a ? new cl(n, l) : null;
230
+ (i.__VUE_DEVTOOLS_PLUGINS__ = i.__VUE_DEVTOOLS_PLUGINS__ || []).push({
231
+ pluginDescriptor: n,
232
+ setupFn: t,
233
+ proxy: r
234
+ }), r && t(r.proxiedTarget);
235
+ }
236
+ }
237
+ /**
238
+ * vee-validate v4.6.6
239
+ * (c) 2022 Abdelrahman Awad
240
+ * @license MIT
241
+ */
242
+ function Ne(e) {
243
+ return typeof e == "function";
244
+ }
245
+ function Ge(e) {
246
+ return e == null;
247
+ }
248
+ const we = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
249
+ function yn(e) {
250
+ return Number(e) >= 0;
251
+ }
252
+ function vl(e) {
253
+ const t = parseFloat(e);
254
+ return isNaN(t) ? e : t;
255
+ }
256
+ const hl = {};
257
+ function ml(e) {
258
+ return hl[e];
259
+ }
260
+ const Ce = Symbol("vee-validate-form"), yl = Symbol("vee-validate-field-instance"), at = Symbol("Default empty value");
261
+ function kt(e) {
262
+ return Ne(e) && !!e.__locatorRef;
263
+ }
264
+ function He(e) {
265
+ return !!e && Ne(e.validate);
266
+ }
267
+ function Le(e) {
268
+ return e === "checkbox" || e === "radio";
269
+ }
270
+ function bl(e) {
271
+ return we(e) || Array.isArray(e);
272
+ }
273
+ function bn(e) {
274
+ return Array.isArray(e) ? e.length === 0 : we(e) && Object.keys(e).length === 0;
275
+ }
276
+ function vt(e) {
277
+ return /^\[.+\]$/i.test(e);
278
+ }
279
+ function gl(e) {
280
+ return gn(e) && e.multiple;
281
+ }
282
+ function gn(e) {
283
+ return e.tagName === "SELECT";
284
+ }
285
+ function $l(e, t) {
286
+ const n = ![!1, null, void 0, 0].includes(t.multiple) && !Number.isNaN(t.multiple);
287
+ return e === "select" && "multiple" in t && n;
288
+ }
289
+ function wl(e, t) {
290
+ return !$l(e, t) && t.type !== "file" && !Le(t.type);
291
+ }
292
+ function $n(e) {
293
+ return zt(e) && e.target && "submit" in e.target;
294
+ }
295
+ function zt(e) {
296
+ return e ? !!(typeof Event < "u" && Ne(Event) && e instanceof Event || e && e.srcElement) : !1;
297
+ }
298
+ function Qt(e, t) {
299
+ return t in e && e[t] !== at;
300
+ }
301
+ var Wt = function e(t, n) {
302
+ if (t === n)
303
+ return !0;
304
+ if (t && n && typeof t == "object" && typeof n == "object") {
305
+ if (t.constructor !== n.constructor)
306
+ return !1;
307
+ var i, l, a;
308
+ if (Array.isArray(t)) {
309
+ if (i = t.length, i != n.length)
310
+ return !1;
311
+ for (l = i; l-- !== 0; )
312
+ if (!e(t[l], n[l]))
313
+ return !1;
314
+ return !0;
315
+ }
316
+ if (t.constructor === RegExp)
317
+ return t.source === n.source && t.flags === n.flags;
318
+ if (t.valueOf !== Object.prototype.valueOf)
319
+ return t.valueOf() === n.valueOf();
320
+ if (t.toString !== Object.prototype.toString)
321
+ return t.toString() === n.toString();
322
+ if (a = Object.keys(t), i = a.length, i !== Object.keys(n).length)
323
+ return !1;
324
+ for (l = i; l-- !== 0; )
325
+ if (!Object.prototype.hasOwnProperty.call(n, a[l]))
326
+ return !1;
327
+ for (l = i; l-- !== 0; ) {
328
+ var r = a[l];
329
+ if (!e(t[r], n[r]))
330
+ return !1;
331
+ }
332
+ return !0;
333
+ }
334
+ return t !== t && n !== n;
335
+ };
336
+ function Rt(e) {
337
+ return vt(e) ? e.replace(/\[|\]/gi, "") : e;
338
+ }
339
+ function K(e, t, n) {
340
+ return e ? vt(t) ? e[Rt(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((l, a) => bl(l) && a in l ? l[a] : n, e) : n;
341
+ }
342
+ function $e(e, t, n) {
343
+ if (vt(t)) {
344
+ e[Rt(t)] = n;
345
+ return;
346
+ }
347
+ const i = t.split(/\.|\[(\d+)\]/).filter(Boolean);
348
+ let l = e;
349
+ for (let a = 0; a < i.length; a++) {
350
+ if (a === i.length - 1) {
351
+ l[i[a]] = n;
352
+ return;
353
+ }
354
+ (!(i[a] in l) || Ge(l[i[a]])) && (l[i[a]] = yn(i[a + 1]) ? [] : {}), l = l[i[a]];
355
+ }
356
+ }
357
+ function mt(e, t) {
358
+ if (Array.isArray(e) && yn(t)) {
359
+ e.splice(Number(t), 1);
360
+ return;
361
+ }
362
+ we(e) && delete e[t];
363
+ }
364
+ function yt(e, t) {
365
+ if (vt(t)) {
366
+ delete e[Rt(t)];
367
+ return;
368
+ }
369
+ const n = t.split(/\.|\[(\d+)\]/).filter(Boolean);
370
+ let i = e;
371
+ for (let a = 0; a < n.length; a++) {
372
+ if (a === n.length - 1) {
373
+ mt(i, n[a]);
374
+ break;
375
+ }
376
+ if (!(n[a] in i) || Ge(i[n[a]]))
377
+ break;
378
+ i = i[n[a]];
379
+ }
380
+ const l = n.map((a, r) => K(e, n.slice(0, r).join(".")));
381
+ for (let a = l.length - 1; a >= 0; a--)
382
+ if (!!bn(l[a])) {
383
+ if (a === 0) {
384
+ mt(e, n[0]);
385
+ continue;
386
+ }
387
+ mt(l[a - 1], n[a - 1]);
388
+ }
389
+ }
390
+ function _(e) {
391
+ return Object.keys(e);
392
+ }
393
+ function Xe(e, t = void 0) {
394
+ const n = Je();
395
+ return (n == null ? void 0 : n.provides[e]) || dn(e, t);
396
+ }
397
+ function bt(e) {
398
+ cn(`[vee-validate]: ${e}`);
399
+ }
400
+ function kl(e) {
401
+ return Array.isArray(e) ? e[0] : e;
402
+ }
403
+ function Ot(e, t, n) {
404
+ if (Array.isArray(e)) {
405
+ const i = [...e], l = i.findIndex((a) => Wt(a, t));
406
+ return l >= 0 ? i.splice(l, 1) : i.push(t), i;
407
+ }
408
+ return Wt(e, t) ? n : t;
409
+ }
410
+ function Ol(e, t) {
411
+ let n, i;
412
+ return function(...l) {
413
+ const a = this;
414
+ return n || (n = !0, setTimeout(() => n = !1, t), i = e.apply(a, l)), i;
415
+ };
416
+ }
417
+ function Yt(e, t = 0) {
418
+ let n = null, i = [];
419
+ return function(...l) {
420
+ return n && window.clearTimeout(n), n = window.setTimeout(() => {
421
+ const a = e(...l);
422
+ i.forEach((r) => r(a)), i = [];
423
+ }, t), new Promise((a) => i.push(a));
424
+ };
425
+ }
426
+ function Sl(e, t) {
427
+ return we(t) && t.number ? vl(e) : e;
428
+ }
429
+ const ht = (e, t, n) => t.slots.default ? typeof e == "string" || !e ? t.slots.default(n()) : {
430
+ default: () => {
431
+ var i, l;
432
+ return (l = (i = t.slots).default) === null || l === void 0 ? void 0 : l.call(i, n());
433
+ }
434
+ } : t.slots.default;
435
+ function gt(e) {
436
+ if (wn(e))
437
+ return e._value;
438
+ }
439
+ function wn(e) {
440
+ return "_value" in e;
441
+ }
442
+ function Ut(e) {
443
+ if (!zt(e))
444
+ return e;
445
+ const t = e.target;
446
+ if (Le(t.type) && wn(t))
447
+ return gt(t);
448
+ if (t.type === "file" && t.files) {
449
+ const n = Array.from(t.files);
450
+ return t.multiple ? n : n[0];
451
+ }
452
+ if (gl(t))
453
+ return Array.from(t.options).filter((n) => n.selected && !n.disabled).map(gt);
454
+ if (gn(t)) {
455
+ const n = Array.from(t.options).find((i) => i.selected);
456
+ return n ? gt(n) : t.value;
457
+ }
458
+ return t.value;
459
+ }
460
+ function kn(e) {
461
+ const t = {};
462
+ return Object.defineProperty(t, "_$$isNormalized", {
463
+ value: !0,
464
+ writable: !1,
465
+ enumerable: !1,
466
+ configurable: !1
467
+ }), e ? we(e) && e._$$isNormalized ? e : we(e) ? Object.keys(e).reduce((n, i) => {
468
+ const l = xl(e[i]);
469
+ return e[i] !== !1 && (n[i] = Zt(l)), n;
470
+ }, t) : typeof e != "string" ? t : e.split("|").reduce((n, i) => {
471
+ const l = pl(i);
472
+ return l.name && (n[l.name] = Zt(l.params)), n;
473
+ }, t) : t;
474
+ }
475
+ function xl(e) {
476
+ return e === !0 ? [] : Array.isArray(e) || we(e) ? e : [e];
477
+ }
478
+ function Zt(e) {
479
+ const t = (n) => typeof n == "string" && n[0] === "@" ? Cl(n.slice(1)) : n;
480
+ return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((n, i) => (n[i] = t(e[i]), n), {});
481
+ }
482
+ const pl = (e) => {
483
+ let t = [];
484
+ const n = e.split(":")[0];
485
+ return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), { name: n, params: t };
486
+ };
487
+ function Cl(e) {
488
+ const t = (n) => K(n, e) || n[e];
489
+ return t.__locatorRef = e, t;
490
+ }
491
+ function Vl(e) {
492
+ return Array.isArray(e) ? e.filter(kt) : _(e).filter((t) => kt(e[t])).map((t) => e[t]);
493
+ }
494
+ const Al = {
495
+ generateMessage: ({ field: e }) => `${e} is not valid.`,
496
+ bails: !0,
497
+ validateOnBlur: !0,
498
+ validateOnChange: !0,
499
+ validateOnInput: !1,
500
+ validateOnModelUpdate: !0
501
+ };
502
+ let Il = Object.assign({}, Al);
503
+ const qt = () => Il;
504
+ async function On(e, t, n = {}) {
505
+ const i = n == null ? void 0 : n.bails, l = {
506
+ name: (n == null ? void 0 : n.name) || "{field}",
507
+ rules: t,
508
+ bails: i != null ? i : !0,
509
+ formData: (n == null ? void 0 : n.values) || {}
510
+ }, r = (await El(l, e)).errors;
511
+ return {
512
+ errors: r,
513
+ valid: !r.length
514
+ };
515
+ }
516
+ async function El(e, t) {
517
+ if (He(e.rules))
518
+ return Fl(t, e.rules, { bails: e.bails });
519
+ if (Ne(e.rules) || Array.isArray(e.rules)) {
520
+ const r = {
521
+ field: e.name,
522
+ form: e.formData,
523
+ value: t
524
+ }, o = Array.isArray(e.rules) ? e.rules : [e.rules], s = o.length, u = [];
525
+ for (let v = 0; v < s; v++) {
526
+ const g = o[v], m = await g(t, r);
527
+ if (typeof m != "string" && m)
528
+ continue;
529
+ const F = typeof m == "string" ? m : Sn(r);
530
+ if (u.push(F), e.bails)
531
+ return {
532
+ errors: u
533
+ };
534
+ }
535
+ return {
536
+ errors: u
537
+ };
538
+ }
539
+ const n = Object.assign(Object.assign({}, e), { rules: kn(e.rules) }), i = [], l = Object.keys(n.rules), a = l.length;
540
+ for (let r = 0; r < a; r++) {
541
+ const o = l[r], s = await Bl(n, t, {
542
+ name: o,
543
+ params: n.rules[o]
544
+ });
545
+ if (s.error && (i.push(s.error), e.bails))
546
+ return {
547
+ errors: i
548
+ };
549
+ }
550
+ return {
551
+ errors: i
552
+ };
553
+ }
554
+ async function Fl(e, t, n) {
555
+ var i;
556
+ return {
557
+ errors: await t.validate(e, {
558
+ abortEarly: (i = n.bails) !== null && i !== void 0 ? i : !0
559
+ }).then(() => []).catch((a) => {
560
+ if (a.name === "ValidationError")
561
+ return a.errors;
562
+ throw a;
563
+ })
564
+ };
565
+ }
566
+ async function Bl(e, t, n) {
567
+ const i = ml(n.name);
568
+ if (!i)
569
+ throw new Error(`No such validator '${n.name}' exists.`);
570
+ const l = Tl(n.params, e.formData), a = {
571
+ field: e.name,
572
+ value: t,
573
+ form: e.formData,
574
+ rule: Object.assign(Object.assign({}, n), { params: l })
575
+ }, r = await i(t, l, a);
576
+ return typeof r == "string" ? {
577
+ error: r
578
+ } : {
579
+ error: r ? void 0 : Sn(a)
580
+ };
581
+ }
582
+ function Sn(e) {
583
+ const t = qt().generateMessage;
584
+ return t ? t(e) : "Field is invalid";
585
+ }
586
+ function Tl(e, t) {
587
+ const n = (i) => kt(i) ? i(t) : i;
588
+ return Array.isArray(e) ? e.map(n) : Object.keys(e).reduce((i, l) => (i[l] = n(e[l]), i), {});
589
+ }
590
+ async function Ml(e, t) {
591
+ const n = await e.validate(t, { abortEarly: !1 }).then(() => []).catch((a) => {
592
+ if (a.name !== "ValidationError")
593
+ throw a;
594
+ return a.inner || [];
595
+ }), i = {}, l = {};
596
+ for (const a of n) {
597
+ const r = a.errors;
598
+ i[a.path] = { valid: !r.length, errors: r }, r.length && (l[a.path] = r[0]);
599
+ }
600
+ return {
601
+ valid: !n.length,
602
+ results: i,
603
+ errors: l
604
+ };
605
+ }
606
+ async function Pl(e, t, n) {
607
+ const l = _(e).map(async (u) => {
608
+ var v, g, m;
609
+ const C = await On(K(t, u), e[u], {
610
+ name: ((v = n == null ? void 0 : n.names) === null || v === void 0 ? void 0 : v[u]) || u,
611
+ values: t,
612
+ bails: (m = (g = n == null ? void 0 : n.bailsMap) === null || g === void 0 ? void 0 : g[u]) !== null && m !== void 0 ? m : !0
613
+ });
614
+ return Object.assign(Object.assign({}, C), { path: u });
615
+ });
616
+ let a = !0;
617
+ const r = await Promise.all(l), o = {}, s = {};
618
+ for (const u of r)
619
+ o[u.path] = {
620
+ valid: u.valid,
621
+ errors: u.errors
622
+ }, u.valid || (a = !1, s[u.path] = u.errors[0]);
623
+ return {
624
+ valid: a,
625
+ results: o,
626
+ errors: s
627
+ };
628
+ }
629
+ function Jt(e, t, n) {
630
+ typeof n.value == "object" && (n.value = Q(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
631
+ }
632
+ function Q(e) {
633
+ if (typeof e != "object")
634
+ return e;
635
+ var t = 0, n, i, l, a = Object.prototype.toString.call(e);
636
+ if (a === "[object Object]" ? l = Object.create(e.__proto__ || null) : a === "[object Array]" ? l = Array(e.length) : a === "[object Set]" ? (l = /* @__PURE__ */ new Set(), e.forEach(function(r) {
637
+ l.add(Q(r));
638
+ })) : a === "[object Map]" ? (l = /* @__PURE__ */ new Map(), e.forEach(function(r, o) {
639
+ l.set(Q(o), Q(r));
640
+ })) : a === "[object Date]" ? l = new Date(+e) : a === "[object RegExp]" ? l = new RegExp(e.source, e.flags) : a === "[object DataView]" ? l = new e.constructor(Q(e.buffer)) : a === "[object ArrayBuffer]" ? l = e.slice(0) : a.slice(-6) === "Array]" && (l = new e.constructor(e)), l) {
641
+ for (i = Object.getOwnPropertySymbols(e); t < i.length; t++)
642
+ Jt(l, i[t], Object.getOwnPropertyDescriptor(e, i[t]));
643
+ for (t = 0, i = Object.getOwnPropertyNames(e); t < i.length; t++)
644
+ Object.hasOwnProperty.call(l, n = i[t]) && l[n] === e[n] || Jt(l, n, Object.getOwnPropertyDescriptor(e, n));
645
+ }
646
+ return l || e;
647
+ }
648
+ var de = function e(t, n) {
649
+ if (t === n)
650
+ return !0;
651
+ if (t && n && typeof t == "object" && typeof n == "object") {
652
+ if (t.constructor !== n.constructor)
653
+ return !1;
654
+ var i, l, a;
655
+ if (Array.isArray(t)) {
656
+ if (i = t.length, i != n.length)
657
+ return !1;
658
+ for (l = i; l-- !== 0; )
659
+ if (!e(t[l], n[l]))
660
+ return !1;
661
+ return !0;
662
+ }
663
+ if (t instanceof Map && n instanceof Map) {
664
+ if (t.size !== n.size)
665
+ return !1;
666
+ for (l of t.entries())
667
+ if (!n.has(l[0]))
668
+ return !1;
669
+ for (l of t.entries())
670
+ if (!e(l[1], n.get(l[0])))
671
+ return !1;
672
+ return !0;
673
+ }
674
+ if (t instanceof Set && n instanceof Set) {
675
+ if (t.size !== n.size)
676
+ return !1;
677
+ for (l of t.entries())
678
+ if (!n.has(l[0]))
679
+ return !1;
680
+ return !0;
681
+ }
682
+ if (ArrayBuffer.isView(t) && ArrayBuffer.isView(n)) {
683
+ if (i = t.length, i != n.length)
684
+ return !1;
685
+ for (l = i; l-- !== 0; )
686
+ if (t[l] !== n[l])
687
+ return !1;
688
+ return !0;
689
+ }
690
+ if (t.constructor === RegExp)
691
+ return t.source === n.source && t.flags === n.flags;
692
+ if (t.valueOf !== Object.prototype.valueOf)
693
+ return t.valueOf() === n.valueOf();
694
+ if (t.toString !== Object.prototype.toString)
695
+ return t.toString() === n.toString();
696
+ if (a = Object.keys(t), i = a.length, i !== Object.keys(n).length)
697
+ return !1;
698
+ for (l = i; l-- !== 0; )
699
+ if (!Object.prototype.hasOwnProperty.call(n, a[l]))
700
+ return !1;
701
+ for (l = i; l-- !== 0; ) {
702
+ var r = a[l];
703
+ if (!e(t[r], n[r]))
704
+ return !1;
705
+ }
706
+ return !0;
707
+ }
708
+ return t !== t && n !== n;
709
+ };
710
+ let Xt = 0;
711
+ function jl(e, t) {
712
+ const { value: n, initialValue: i, setInitialValue: l } = xn(e, t.modelValue, !t.standalone), { errorMessage: a, errors: r, setErrors: o } = Ll(e, !t.standalone), s = Nl(n, i, r), u = Xt >= Number.MAX_SAFE_INTEGER ? 0 : ++Xt;
713
+ function v(g) {
714
+ var m;
715
+ "value" in g && (n.value = g.value), "errors" in g && o(g.errors), "touched" in g && (s.touched = (m = g.touched) !== null && m !== void 0 ? m : s.touched), "initialValue" in g && l(g.initialValue);
716
+ }
717
+ return {
718
+ id: u,
719
+ path: e,
720
+ value: n,
721
+ initialValue: i,
722
+ meta: s,
723
+ errors: r,
724
+ errorMessage: a,
725
+ setState: v
726
+ };
727
+ }
728
+ function xn(e, t, n = !0) {
729
+ const i = n === !0 ? Xe(Ce, void 0) : void 0, l = z(c(t));
730
+ function a() {
731
+ return i ? K(i.meta.value.initialValues, c(e), c(l)) : c(l);
732
+ }
733
+ function r(v) {
734
+ if (!i) {
735
+ l.value = v;
736
+ return;
737
+ }
738
+ i.stageInitialValue(c(e), v, !0);
739
+ }
740
+ const o = j(a);
741
+ if (!i)
742
+ return {
743
+ value: z(a()),
744
+ initialValue: o,
745
+ setInitialValue: r
746
+ };
747
+ const s = t ? c(t) : K(i.values, c(e), c(o));
748
+ return i.stageInitialValue(c(e), s, !0), {
749
+ value: j({
750
+ get() {
751
+ return K(i.values, c(e));
752
+ },
753
+ set(v) {
754
+ i.setFieldValue(c(e), v);
755
+ }
756
+ }),
757
+ initialValue: o,
758
+ setInitialValue: r
759
+ };
760
+ }
761
+ function Nl(e, t, n) {
762
+ const i = Se({
763
+ touched: !1,
764
+ pending: !1,
765
+ valid: !0,
766
+ validated: !!c(n).length,
767
+ initialValue: j(() => c(t)),
768
+ dirty: j(() => !de(c(e), c(t)))
769
+ });
770
+ return ie(n, (l) => {
771
+ i.valid = !l.length;
772
+ }, {
773
+ immediate: !0,
774
+ flush: "sync"
775
+ }), i;
776
+ }
777
+ function Ll(e, t) {
778
+ const n = t ? Xe(Ce, void 0) : void 0;
779
+ function i(a) {
780
+ return a ? Array.isArray(a) ? a : [a] : [];
781
+ }
782
+ if (!n) {
783
+ const a = z([]);
784
+ return {
785
+ errors: a,
786
+ errorMessage: j(() => a.value[0]),
787
+ setErrors: (r) => {
788
+ a.value = i(r);
789
+ }
790
+ };
791
+ }
792
+ const l = j(() => n.errorBag.value[c(e)] || []);
793
+ return {
794
+ errors: l,
795
+ errorMessage: j(() => l.value[0]),
796
+ setErrors: (a) => {
797
+ n.setFieldErrorBag(c(e), i(a));
798
+ }
799
+ };
800
+ }
801
+ function pn(e) {
802
+ process.env.NODE_ENV !== "production" && fl({
803
+ id: "vee-validate-devtools-plugin",
804
+ label: "VeeValidate Plugin",
805
+ packageName: "vee-validate",
806
+ homepage: "https://vee-validate.logaretm.com/v4",
807
+ app: e,
808
+ logo: "https://vee-validate.logaretm.com/v4/logo.png"
809
+ }, Rl);
810
+ }
811
+ const Ke = {}, Qe = {};
812
+ let me;
813
+ const De = Ol(() => {
814
+ setTimeout(async () => {
815
+ await Be(), me == null || me.sendInspectorState(Te), me == null || me.sendInspectorTree(Te);
816
+ }, 100);
817
+ }, 100);
818
+ function Dl(e) {
819
+ const t = Je();
820
+ if (!me) {
821
+ const n = t == null ? void 0 : t.appContext.app;
822
+ if (!n)
823
+ return;
824
+ pn(n);
825
+ }
826
+ Ke[e.formId] = Object.assign({}, e), Ke[e.formId]._vm = t, Nt(() => {
827
+ delete Ke[e.formId], De();
828
+ }), De();
829
+ }
830
+ function zl(e) {
831
+ const t = Je();
832
+ if (!me) {
833
+ const n = t == null ? void 0 : t.appContext.app;
834
+ if (!n)
835
+ return;
836
+ pn(n);
837
+ }
838
+ Qe[e.id] = Object.assign({}, e), Qe[e.id]._vm = t, Nt(() => {
839
+ delete Qe[e.id], De();
840
+ }), De();
841
+ }
842
+ const Te = "vee-validate-inspector", le = {
843
+ error: 12405579,
844
+ success: 448379,
845
+ unknown: 5522283,
846
+ white: 16777215,
847
+ black: 0,
848
+ blue: 218007,
849
+ purple: 12157168,
850
+ orange: 16099682,
851
+ gray: 12304330
146
852
  };
147
- const ht = ["id", "data-testid"], ft = ["for"], mt = { class: "container-input" }, vt = ["id"], $t = ["id"], oe = /* @__PURE__ */ O({
148
- __name: "Textfield",
853
+ let he = null;
854
+ function Rl(e) {
855
+ me = e, e.addInspector({
856
+ id: Te,
857
+ icon: "rule",
858
+ label: "vee-validate",
859
+ noSelectionText: "Select a vee-validate node to inspect",
860
+ actions: [
861
+ {
862
+ icon: "done_outline",
863
+ tooltip: "Validate selected item",
864
+ action: async () => {
865
+ if (!he) {
866
+ console.error("There is not a valid selected vee-validate node or component");
867
+ return;
868
+ }
869
+ const t = await he.validate();
870
+ console.log(t);
871
+ }
872
+ },
873
+ {
874
+ icon: "delete_sweep",
875
+ tooltip: "Clear validation state of the selected item",
876
+ action: () => {
877
+ if (!he) {
878
+ console.error("There is not a valid selected vee-validate node or component");
879
+ return;
880
+ }
881
+ if ("id" in he) {
882
+ he.resetField();
883
+ return;
884
+ }
885
+ he.resetForm();
886
+ }
887
+ }
888
+ ]
889
+ }), e.on.getInspectorTree((t) => {
890
+ if (t.inspectorId !== Te)
891
+ return;
892
+ const n = Object.values(Ke), i = Object.values(Qe);
893
+ t.rootNodes = [
894
+ ...n.map(Ul),
895
+ ...i.map((l) => Gt(l))
896
+ ];
897
+ }), e.on.getInspectorState((t, n) => {
898
+ if (t.inspectorId !== Te || n.currentTab !== `custom-inspector:${Te}`)
899
+ return;
900
+ const { form: i, field: l, type: a } = ql(t.nodeId);
901
+ if (i && a === "form") {
902
+ t.state = Hl(i), he = i;
903
+ return;
904
+ }
905
+ if (l && a === "field") {
906
+ t.state = Gl(l), he = l;
907
+ return;
908
+ }
909
+ he = null;
910
+ });
911
+ }
912
+ function Ul(e) {
913
+ const { textColor: t, bgColor: n } = Vn(e), i = {};
914
+ Object.values(e.fieldsByPath.value).forEach((r) => {
915
+ const o = Array.isArray(r) ? r[0] : r;
916
+ !o || $e(i, c(o.name), Gt(o, e));
917
+ });
918
+ function l(r, o = []) {
919
+ const s = [...o].pop();
920
+ return "id" in r ? Object.assign(Object.assign({}, r), { label: s || r.label }) : we(r) ? {
921
+ id: `${o.join(".")}`,
922
+ label: s || "",
923
+ children: Object.keys(r).map((u) => l(r[u], [...o, u]))
924
+ } : Array.isArray(r) ? {
925
+ id: `${o.join(".")}`,
926
+ label: `${s}[]`,
927
+ children: r.map((u, v) => l(u, [...o, String(v)]))
928
+ } : { id: "", label: "", children: [] };
929
+ }
930
+ const { children: a } = l(i);
931
+ return {
932
+ id: Cn(e),
933
+ label: "Form",
934
+ children: a,
935
+ tags: [
936
+ {
937
+ label: "Form",
938
+ textColor: t,
939
+ backgroundColor: n
940
+ },
941
+ {
942
+ label: `${Object.keys(e.fieldsByPath.value).length} fields`,
943
+ textColor: le.white,
944
+ backgroundColor: le.unknown
945
+ }
946
+ ]
947
+ };
948
+ }
949
+ function Gt(e, t) {
950
+ const n = kl(e), { textColor: i, bgColor: l } = Vn(n), a = Array.isArray(e) && e.length > 1;
951
+ return {
952
+ id: Cn(t, n, !a),
953
+ label: c(n.name),
954
+ children: Array.isArray(e) ? e.map((r) => Gt(r, t)) : void 0,
955
+ tags: [
956
+ a ? void 0 : {
957
+ label: "Field",
958
+ textColor: i,
959
+ backgroundColor: l
960
+ },
961
+ t ? void 0 : {
962
+ label: "Standalone",
963
+ textColor: le.black,
964
+ backgroundColor: le.gray
965
+ },
966
+ !a && n.type === "checkbox" ? {
967
+ label: "Checkbox",
968
+ textColor: le.white,
969
+ backgroundColor: le.blue
970
+ } : void 0,
971
+ !a && n.type === "radio" ? {
972
+ label: "Radio",
973
+ textColor: le.white,
974
+ backgroundColor: le.purple
975
+ } : void 0,
976
+ a ? {
977
+ label: "Group",
978
+ textColor: le.black,
979
+ backgroundColor: le.orange
980
+ } : void 0
981
+ ].filter(Boolean)
982
+ };
983
+ }
984
+ function Cn(e, t, n = !0) {
985
+ const i = e ? c(t == null ? void 0 : t.name) : t == null ? void 0 : t.id, l = i ? e == null ? void 0 : e.fieldsByPath.value[i] : void 0;
986
+ let a;
987
+ n && t && Array.isArray(l) && (a = l.indexOf(t));
988
+ const r = { f: e == null ? void 0 : e.formId, ff: i, idx: a, type: t ? "field" : "form" };
989
+ return btoa(JSON.stringify(r));
990
+ }
991
+ function ql(e) {
992
+ try {
993
+ const t = JSON.parse(atob(e)), n = Ke[t.f];
994
+ if (!n && t.ff) {
995
+ const l = Qe[t.ff];
996
+ return l ? {
997
+ type: t.type,
998
+ field: l
999
+ } : {};
1000
+ }
1001
+ if (!n)
1002
+ return {};
1003
+ const i = n.fieldsByPath.value[t.ff];
1004
+ return {
1005
+ type: t.type,
1006
+ form: n,
1007
+ field: Array.isArray(i) ? i[t.idx || 0] : i
1008
+ };
1009
+ } catch {
1010
+ }
1011
+ return {};
1012
+ }
1013
+ function Gl(e) {
1014
+ const { errors: t, meta: n, value: i } = e;
1015
+ return {
1016
+ "Field state": [
1017
+ { key: "errors", value: t.value },
1018
+ {
1019
+ key: "initialValue",
1020
+ value: n.initialValue
1021
+ },
1022
+ {
1023
+ key: "currentValue",
1024
+ value: i.value
1025
+ },
1026
+ {
1027
+ key: "touched",
1028
+ value: n.touched
1029
+ },
1030
+ {
1031
+ key: "dirty",
1032
+ value: n.dirty
1033
+ },
1034
+ {
1035
+ key: "valid",
1036
+ value: n.valid
1037
+ }
1038
+ ]
1039
+ };
1040
+ }
1041
+ function Hl(e) {
1042
+ const { errorBag: t, meta: n, values: i, isSubmitting: l, submitCount: a } = e;
1043
+ return {
1044
+ "Form state": [
1045
+ {
1046
+ key: "submitCount",
1047
+ value: a.value
1048
+ },
1049
+ {
1050
+ key: "isSubmitting",
1051
+ value: l.value
1052
+ },
1053
+ {
1054
+ key: "touched",
1055
+ value: n.value.touched
1056
+ },
1057
+ {
1058
+ key: "dirty",
1059
+ value: n.value.dirty
1060
+ },
1061
+ {
1062
+ key: "valid",
1063
+ value: n.value.valid
1064
+ },
1065
+ {
1066
+ key: "initialValues",
1067
+ value: n.value.initialValues
1068
+ },
1069
+ {
1070
+ key: "currentValues",
1071
+ value: i
1072
+ },
1073
+ {
1074
+ key: "errors",
1075
+ value: _(t.value).reduce((r, o) => {
1076
+ var s;
1077
+ const u = (s = t.value[o]) === null || s === void 0 ? void 0 : s[0];
1078
+ return u && (r[o] = u), r;
1079
+ }, {})
1080
+ }
1081
+ ]
1082
+ };
1083
+ }
1084
+ function Vn(e) {
1085
+ const t = "id" in e ? e.meta.valid : e.meta.value.valid;
1086
+ return {
1087
+ bgColor: t ? le.success : le.error,
1088
+ textColor: t ? le.black : le.white
1089
+ };
1090
+ }
1091
+ function St(e, t, n) {
1092
+ return Le(n == null ? void 0 : n.type) ? Wl(e, t, n) : An(e, t, n);
1093
+ }
1094
+ function An(e, t, n) {
1095
+ const { initialValue: i, validateOnMount: l, bails: a, type: r, checkedValue: o, label: s, validateOnValueUpdate: u, uncheckedValue: v, standalone: g, keepValueOnUnmount: m, modelPropName: C, syncVModel: F } = Kl(c(e), n), E = g ? void 0 : Xe(Ce);
1096
+ let H = !1;
1097
+ const { id: J, value: R, initialValue: k, meta: f, setState: y, errors: $, errorMessage: p } = jl(e, {
1098
+ modelValue: i,
1099
+ standalone: g
1100
+ });
1101
+ F && Yl({ value: R, prop: C, handleChange: ne });
1102
+ const I = () => {
1103
+ f.touched = !0;
1104
+ }, L = j(() => {
1105
+ let w = c(t);
1106
+ const q = c(E == null ? void 0 : E.schema);
1107
+ return q && !He(q) && (w = Ql(q, c(e)) || w), He(w) || Ne(w) || Array.isArray(w) ? w : kn(w);
1108
+ });
1109
+ async function x(w) {
1110
+ var q, X;
1111
+ return E != null && E.validateSchema ? (q = (await E.validateSchema(w)).results[c(e)]) !== null && q !== void 0 ? q : { valid: !0, errors: [] } : On(R.value, L.value, {
1112
+ name: c(s) || c(e),
1113
+ values: (X = E == null ? void 0 : E.values) !== null && X !== void 0 ? X : {},
1114
+ bails: a
1115
+ });
1116
+ }
1117
+ async function V() {
1118
+ f.pending = !0, f.validated = !0;
1119
+ const w = await x("validated-only");
1120
+ return H && (w.valid = !0, w.errors = []), y({ errors: w.errors }), f.pending = !1, w;
1121
+ }
1122
+ async function P() {
1123
+ const w = await x("silent");
1124
+ return H && (w.valid = !0), f.valid = w.valid, w;
1125
+ }
1126
+ function G(w) {
1127
+ return !(w != null && w.mode) || (w == null ? void 0 : w.mode) === "force" || (w == null ? void 0 : w.mode) === "validated-only" ? V() : P();
1128
+ }
1129
+ function ne(w, q = !0) {
1130
+ const X = Ut(w);
1131
+ R.value = X, !u && q && V();
1132
+ }
1133
+ ft(() => {
1134
+ if (l)
1135
+ return V();
1136
+ (!E || !E.validateSchema) && P();
1137
+ });
1138
+ function ee(w) {
1139
+ f.touched = w;
1140
+ }
1141
+ let fe;
1142
+ function ae() {
1143
+ fe = ie(R, (w, q) => {
1144
+ if (de(w, q))
1145
+ return;
1146
+ (u ? V : P)();
1147
+ }, {
1148
+ deep: !0
1149
+ });
1150
+ }
1151
+ ae();
1152
+ function ke(w) {
1153
+ var q;
1154
+ fe == null || fe();
1155
+ const X = w && "value" in w ? w.value : k.value;
1156
+ y({
1157
+ value: Q(X),
1158
+ initialValue: Q(X),
1159
+ touched: (q = w == null ? void 0 : w.touched) !== null && q !== void 0 ? q : !1,
1160
+ errors: (w == null ? void 0 : w.errors) || []
1161
+ }), f.pending = !1, f.validated = !1, P(), Be(() => {
1162
+ ae();
1163
+ });
1164
+ }
1165
+ function be(w) {
1166
+ R.value = w;
1167
+ }
1168
+ function Ve(w) {
1169
+ y({ errors: Array.isArray(w) ? w : [w] });
1170
+ }
1171
+ const se = {
1172
+ id: J,
1173
+ name: e,
1174
+ label: s,
1175
+ value: R,
1176
+ meta: f,
1177
+ errors: $,
1178
+ errorMessage: p,
1179
+ type: r,
1180
+ checkedValue: o,
1181
+ uncheckedValue: v,
1182
+ bails: a,
1183
+ keepValueOnUnmount: m,
1184
+ resetField: ke,
1185
+ handleReset: () => ke(),
1186
+ validate: G,
1187
+ handleChange: ne,
1188
+ handleBlur: I,
1189
+ setState: y,
1190
+ setTouched: ee,
1191
+ setErrors: Ve,
1192
+ setValue: be
1193
+ };
1194
+ if (sn(yl, se), Pe(t) && typeof c(t) != "function" && ie(t, (w, q) => {
1195
+ de(w, q) || (f.validated ? V() : P());
1196
+ }, {
1197
+ deep: !0
1198
+ }), process.env.NODE_ENV !== "production" && (se._vm = Je(), ie(() => Object.assign(Object.assign({ errors: $.value }, f), { value: R.value }), De, {
1199
+ deep: !0
1200
+ }), E || zl(se)), !E)
1201
+ return se;
1202
+ E.register(se), un(() => {
1203
+ H = !0, E.unregister(se);
1204
+ });
1205
+ const et = j(() => {
1206
+ const w = L.value;
1207
+ return !w || Ne(w) || He(w) || Array.isArray(w) ? {} : Object.keys(w).reduce((q, X) => {
1208
+ const Ae = Vl(w[X]).map((ge) => ge.__locatorRef).reduce((ge, Ie) => {
1209
+ const tt = K(E.values, Ie) || E.values[Ie];
1210
+ return tt !== void 0 && (ge[Ie] = tt), ge;
1211
+ }, {});
1212
+ return Object.assign(q, Ae), q;
1213
+ }, {});
1214
+ });
1215
+ return ie(et, (w, q) => {
1216
+ if (!Object.keys(w).length)
1217
+ return;
1218
+ !de(w, q) && (f.validated ? V() : P());
1219
+ }), se;
1220
+ }
1221
+ function Kl(e, t) {
1222
+ const n = () => ({
1223
+ initialValue: void 0,
1224
+ validateOnMount: !1,
1225
+ bails: !0,
1226
+ rules: "",
1227
+ label: e,
1228
+ validateOnValueUpdate: !0,
1229
+ standalone: !1,
1230
+ keepValueOnUnmount: void 0,
1231
+ modelPropName: "modelValue",
1232
+ syncVModel: !0
1233
+ });
1234
+ if (!t)
1235
+ return n();
1236
+ const i = "valueProp" in t ? t.valueProp : t.checkedValue;
1237
+ return Object.assign(Object.assign(Object.assign({}, n()), t || {}), { checkedValue: i });
1238
+ }
1239
+ function Ql(e, t) {
1240
+ if (!!e)
1241
+ return e[t];
1242
+ }
1243
+ function Wl(e, t, n) {
1244
+ const i = n != null && n.standalone ? void 0 : Xe(Ce), l = n == null ? void 0 : n.checkedValue, a = n == null ? void 0 : n.uncheckedValue;
1245
+ function r(o) {
1246
+ const s = o.handleChange, u = j(() => {
1247
+ const g = c(o.value), m = c(l);
1248
+ return Array.isArray(g) ? g.findIndex((C) => de(C, m)) >= 0 : de(m, g);
1249
+ });
1250
+ function v(g, m = !0) {
1251
+ var C;
1252
+ if (u.value === ((C = g == null ? void 0 : g.target) === null || C === void 0 ? void 0 : C.checked))
1253
+ return;
1254
+ let F = Ut(g);
1255
+ i || (F = Ot(c(o.value), c(l), c(a))), s(F, m);
1256
+ }
1257
+ return Object.assign(Object.assign({}, o), {
1258
+ checked: u,
1259
+ checkedValue: l,
1260
+ uncheckedValue: a,
1261
+ handleChange: v
1262
+ });
1263
+ }
1264
+ return r(An(e, t, n));
1265
+ }
1266
+ function Yl({ prop: e, value: t, handleChange: n }) {
1267
+ const i = Je();
1268
+ if (!i) {
1269
+ process.env.NODE_ENV !== "production" && console.warn("Failed to setup model events because `useField` was not called in setup.");
1270
+ return;
1271
+ }
1272
+ const l = e || "modelValue", a = `update:${l}`;
1273
+ l in i.props && (ie(t, (r) => {
1274
+ de(r, _t(i, l)) || i.emit(a, r);
1275
+ }), ie(() => _t(i, l), (r) => {
1276
+ if (r === at && t.value === void 0)
1277
+ return;
1278
+ const o = r === at ? void 0 : r;
1279
+ de(o, Sl(t.value, i.props.modelModifiers)) || n(o);
1280
+ }));
1281
+ }
1282
+ function _t(e, t) {
1283
+ return e.props[t];
1284
+ }
1285
+ U({
1286
+ name: "Field",
1287
+ inheritAttrs: !1,
1288
+ props: {
1289
+ as: {
1290
+ type: [String, Object],
1291
+ default: void 0
1292
+ },
1293
+ name: {
1294
+ type: String,
1295
+ required: !0
1296
+ },
1297
+ rules: {
1298
+ type: [Object, String, Function],
1299
+ default: void 0
1300
+ },
1301
+ validateOnMount: {
1302
+ type: Boolean,
1303
+ default: !1
1304
+ },
1305
+ validateOnBlur: {
1306
+ type: Boolean,
1307
+ default: void 0
1308
+ },
1309
+ validateOnChange: {
1310
+ type: Boolean,
1311
+ default: void 0
1312
+ },
1313
+ validateOnInput: {
1314
+ type: Boolean,
1315
+ default: void 0
1316
+ },
1317
+ validateOnModelUpdate: {
1318
+ type: Boolean,
1319
+ default: void 0
1320
+ },
1321
+ bails: {
1322
+ type: Boolean,
1323
+ default: () => qt().bails
1324
+ },
1325
+ label: {
1326
+ type: String,
1327
+ default: void 0
1328
+ },
1329
+ uncheckedValue: {
1330
+ type: null,
1331
+ default: void 0
1332
+ },
1333
+ modelValue: {
1334
+ type: null,
1335
+ default: at
1336
+ },
1337
+ modelModifiers: {
1338
+ type: null,
1339
+ default: () => ({})
1340
+ },
1341
+ "onUpdate:modelValue": {
1342
+ type: null,
1343
+ default: void 0
1344
+ },
1345
+ standalone: {
1346
+ type: Boolean,
1347
+ default: !1
1348
+ },
1349
+ keepValue: {
1350
+ type: Boolean,
1351
+ default: void 0
1352
+ }
1353
+ },
1354
+ setup(e, t) {
1355
+ const n = ye(e, "rules"), i = ye(e, "name"), l = ye(e, "label"), a = ye(e, "uncheckedValue"), r = ye(e, "keepValue"), { errors: o, value: s, errorMessage: u, validate: v, handleChange: g, handleBlur: m, setTouched: C, resetField: F, handleReset: E, meta: H, checked: J, setErrors: R } = St(i, n, {
1356
+ validateOnMount: e.validateOnMount,
1357
+ bails: e.bails,
1358
+ standalone: e.standalone,
1359
+ type: t.attrs.type,
1360
+ initialValue: Jl(e, t),
1361
+ checkedValue: t.attrs.value,
1362
+ uncheckedValue: a,
1363
+ label: l,
1364
+ validateOnValueUpdate: !1,
1365
+ keepValueOnUnmount: r
1366
+ }), k = function(L, x = !0) {
1367
+ g(L, x), t.emit("update:modelValue", s.value);
1368
+ }, f = (I) => {
1369
+ Le(t.attrs.type) || (s.value = Ut(I));
1370
+ }, y = function(L) {
1371
+ f(L), t.emit("update:modelValue", s.value);
1372
+ }, $ = j(() => {
1373
+ const { validateOnInput: I, validateOnChange: L, validateOnBlur: x, validateOnModelUpdate: V } = Zl(e), P = [m, t.attrs.onBlur, x ? v : void 0].filter(Boolean), G = [(ae) => k(ae, I), t.attrs.onInput].filter(Boolean), ne = [(ae) => k(ae, L), t.attrs.onChange].filter(Boolean), ee = {
1374
+ name: e.name,
1375
+ onBlur: P,
1376
+ onInput: G,
1377
+ onChange: ne
1378
+ };
1379
+ ee["onUpdate:modelValue"] = (ae) => k(ae, V), Le(t.attrs.type) && J && (ee.checked = J.value);
1380
+ const fe = en(e, t);
1381
+ return wl(fe, t.attrs) && (ee.value = s.value), ee;
1382
+ });
1383
+ function p() {
1384
+ return {
1385
+ field: $.value,
1386
+ value: s.value,
1387
+ meta: H,
1388
+ errors: o.value,
1389
+ errorMessage: u.value,
1390
+ validate: v,
1391
+ resetField: F,
1392
+ handleChange: k,
1393
+ handleInput: y,
1394
+ handleReset: E,
1395
+ handleBlur: m,
1396
+ setTouched: C,
1397
+ setErrors: R
1398
+ };
1399
+ }
1400
+ return t.expose({
1401
+ setErrors: R,
1402
+ setTouched: C,
1403
+ reset: F,
1404
+ validate: v,
1405
+ handleChange: g
1406
+ }), () => {
1407
+ const I = jt(en(e, t)), L = ht(I, t, p);
1408
+ return I ? lt(I, Object.assign(Object.assign({}, t.attrs), $.value), L) : L;
1409
+ };
1410
+ }
1411
+ });
1412
+ function en(e, t) {
1413
+ let n = e.as || "";
1414
+ return !e.as && !t.slots.default && (n = "input"), n;
1415
+ }
1416
+ function Zl(e) {
1417
+ var t, n, i, l;
1418
+ const { validateOnInput: a, validateOnChange: r, validateOnBlur: o, validateOnModelUpdate: s } = qt();
1419
+ return {
1420
+ validateOnInput: (t = e.validateOnInput) !== null && t !== void 0 ? t : a,
1421
+ validateOnChange: (n = e.validateOnChange) !== null && n !== void 0 ? n : r,
1422
+ validateOnBlur: (i = e.validateOnBlur) !== null && i !== void 0 ? i : o,
1423
+ validateOnModelUpdate: (l = e.validateOnModelUpdate) !== null && l !== void 0 ? l : s
1424
+ };
1425
+ }
1426
+ function Jl(e, t) {
1427
+ return Le(t.attrs.type) ? Qt(e, "modelValue") ? e.modelValue : void 0 : Qt(e, "modelValue") ? e.modelValue : t.attrs.value;
1428
+ }
1429
+ let Xl = 0;
1430
+ function _l(e) {
1431
+ var t;
1432
+ const n = Xl++;
1433
+ let i = !1;
1434
+ const l = z({}), a = z(!1), r = z(0), o = [], s = Se(Q(c(e == null ? void 0 : e.initialValues) || {})), { errorBag: u, setErrorBag: v, setFieldErrorBag: g } = ni(e == null ? void 0 : e.initialErrors), m = j(() => _(u.value).reduce((d, h) => {
1435
+ const B = u.value[h];
1436
+ return B && B.length && (d[h] = B[0]), d;
1437
+ }, {}));
1438
+ function C(d) {
1439
+ const h = l.value[d];
1440
+ return Array.isArray(h) ? h[0] : h;
1441
+ }
1442
+ function F(d) {
1443
+ return !!l.value[d];
1444
+ }
1445
+ const E = j(() => _(l.value).reduce((d, h) => {
1446
+ const B = C(h);
1447
+ return B && (d[h] = c(B.label || B.name) || ""), d;
1448
+ }, {})), H = j(() => _(l.value).reduce((d, h) => {
1449
+ var B;
1450
+ const T = C(h);
1451
+ return T && (d[h] = (B = T.bails) !== null && B !== void 0 ? B : !0), d;
1452
+ }, {})), J = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), R = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: k, originalInitialValues: f, setInitialValues: y } = ti(l, s, e == null ? void 0 : e.initialValues), $ = ei(l, s, f, m), p = e == null ? void 0 : e.validationSchema, I = {
1453
+ formId: n,
1454
+ fieldsByPath: l,
1455
+ values: s,
1456
+ errorBag: u,
1457
+ errors: m,
1458
+ schema: p,
1459
+ submitCount: r,
1460
+ meta: $,
1461
+ isSubmitting: a,
1462
+ fieldArrays: o,
1463
+ keepValuesOnUnmount: R,
1464
+ validateSchema: c(p) ? zn : void 0,
1465
+ validate: X,
1466
+ register: w,
1467
+ unregister: q,
1468
+ setFieldErrorBag: g,
1469
+ validateField: Ae,
1470
+ setFieldValue: ne,
1471
+ setValues: ee,
1472
+ setErrors: G,
1473
+ setFieldError: P,
1474
+ setFieldTouched: ke,
1475
+ setTouched: be,
1476
+ resetForm: Ve,
1477
+ handleSubmit: ge,
1478
+ stageInitialValue: Nn,
1479
+ unsetInitialValue: tt,
1480
+ setFieldInitialValue: Ie,
1481
+ useFieldModel: ae
1482
+ };
1483
+ function L(d) {
1484
+ return Array.isArray(d);
1485
+ }
1486
+ function x(d, h) {
1487
+ return Array.isArray(d) ? d.forEach(h) : h(d);
1488
+ }
1489
+ function V(d) {
1490
+ Object.values(l.value).forEach((h) => {
1491
+ !h || x(h, d);
1492
+ });
1493
+ }
1494
+ function P(d, h) {
1495
+ g(d, h);
1496
+ }
1497
+ function G(d) {
1498
+ v(d);
1499
+ }
1500
+ function ne(d, h, { force: B } = { force: !1 }) {
1501
+ var T;
1502
+ const A = l.value[d], Z = Q(h);
1503
+ if (!A) {
1504
+ $e(s, d, Z);
1505
+ return;
1506
+ }
1507
+ if (L(A) && ((T = A[0]) === null || T === void 0 ? void 0 : T.type) === "checkbox" && !Array.isArray(h)) {
1508
+ const ve = Q(Ot(K(s, d) || [], h, void 0));
1509
+ $e(s, d, ve);
1510
+ return;
1511
+ }
1512
+ let te = h;
1513
+ !L(A) && A.type === "checkbox" && !B && !i && (te = Q(Ot(K(s, d), h, c(A.uncheckedValue)))), $e(s, d, te);
1514
+ }
1515
+ function ee(d) {
1516
+ _(s).forEach((h) => {
1517
+ delete s[h];
1518
+ }), _(d).forEach((h) => {
1519
+ ne(h, d[h]);
1520
+ }), o.forEach((h) => h && h.reset());
1521
+ }
1522
+ function fe(d) {
1523
+ const { value: h } = xn(d);
1524
+ return ie(h, () => {
1525
+ F(c(d)) || X({ mode: "validated-only" });
1526
+ }, {
1527
+ deep: !0
1528
+ }), h;
1529
+ }
1530
+ function ae(d) {
1531
+ return Array.isArray(d) ? d.map(fe) : fe(d);
1532
+ }
1533
+ function ke(d, h) {
1534
+ const B = l.value[d];
1535
+ B && x(B, (T) => T.setTouched(h));
1536
+ }
1537
+ function be(d) {
1538
+ _(d).forEach((h) => {
1539
+ ke(h, !!d[h]);
1540
+ });
1541
+ }
1542
+ function Ve(d) {
1543
+ i = !0, d != null && d.values ? (y(d.values), ee(d == null ? void 0 : d.values)) : (y(f.value), ee(f.value)), V((h) => h.resetField()), d != null && d.touched && be(d.touched), G((d == null ? void 0 : d.errors) || {}), r.value = (d == null ? void 0 : d.submitCount) || 0, Be(() => {
1544
+ i = !1;
1545
+ });
1546
+ }
1547
+ function se(d, h) {
1548
+ const B = Gn(d), T = h;
1549
+ if (!l.value[T]) {
1550
+ l.value[T] = B;
1551
+ return;
1552
+ }
1553
+ const A = l.value[T];
1554
+ A && !Array.isArray(A) && (l.value[T] = [A]), l.value[T] = [...l.value[T], B];
1555
+ }
1556
+ function et(d, h) {
1557
+ const B = h, T = l.value[B];
1558
+ if (!!T) {
1559
+ if (!L(T) && d.id === T.id) {
1560
+ delete l.value[B];
1561
+ return;
1562
+ }
1563
+ if (L(T)) {
1564
+ const A = T.findIndex((Z) => Z.id === d.id);
1565
+ if (A === -1)
1566
+ return;
1567
+ T.splice(A, 1), T.length || delete l.value[B];
1568
+ }
1569
+ }
1570
+ }
1571
+ function w(d) {
1572
+ const h = c(d.name);
1573
+ se(d, h), Pe(d.name) && ie(d.name, async (T, A) => {
1574
+ await Be(), et(d, A), se(d, T), (m.value[A] || m.value[T]) && (P(A, void 0), Ae(T)), await Be(), F(A) || yt(s, A);
1575
+ });
1576
+ const B = c(d.errorMessage);
1577
+ B && (J == null ? void 0 : J[h]) !== B && Ae(h), delete J[h];
1578
+ }
1579
+ function q(d) {
1580
+ const h = c(d.name), B = l.value[h], T = !!B && L(B);
1581
+ et(d, h), Be(() => {
1582
+ var A;
1583
+ const Z = (A = c(d.keepValueOnUnmount)) !== null && A !== void 0 ? A : c(R), te = K(s, h);
1584
+ if (T && (B === l.value[h] || !l.value[h]) && Array.isArray(te) && !Z) {
1585
+ const Ee = te.findIndex((ue) => de(ue, c(d.checkedValue)));
1586
+ if (Ee > -1) {
1587
+ const ue = [...te];
1588
+ ue.splice(Ee, 1), ne(h, ue, { force: !0 });
1589
+ }
1590
+ }
1591
+ if (!F(h)) {
1592
+ if (P(h, void 0), Z || T && !bn(K(s, h)))
1593
+ return;
1594
+ yt(s, h);
1595
+ }
1596
+ });
1597
+ }
1598
+ async function X(d) {
1599
+ if (V((A) => A.meta.validated = !0), I.validateSchema)
1600
+ return I.validateSchema((d == null ? void 0 : d.mode) || "force");
1601
+ const h = await Promise.all(Object.values(l.value).map((A) => {
1602
+ const Z = Array.isArray(A) ? A[0] : A;
1603
+ return Z ? Z.validate(d).then((te) => ({
1604
+ key: c(Z.name),
1605
+ valid: te.valid,
1606
+ errors: te.errors
1607
+ })) : Promise.resolve({ key: "", valid: !0, errors: [] });
1608
+ })), B = {}, T = {};
1609
+ for (const A of h)
1610
+ B[A.key] = {
1611
+ valid: A.valid,
1612
+ errors: A.errors
1613
+ }, A.errors.length && (T[A.key] = A.errors[0]);
1614
+ return {
1615
+ valid: h.every((A) => A.valid),
1616
+ results: B,
1617
+ errors: T
1618
+ };
1619
+ }
1620
+ async function Ae(d) {
1621
+ const h = l.value[d];
1622
+ return h ? Array.isArray(h) ? h.map((B) => B.validate())[0] : h.validate() : (cn(`field with name ${d} was not found`), Promise.resolve({ errors: [], valid: !0 }));
1623
+ }
1624
+ function ge(d, h) {
1625
+ return function(T) {
1626
+ return T instanceof Event && (T.preventDefault(), T.stopPropagation()), be(_(l.value).reduce((A, Z) => (A[Z] = !0, A), {})), a.value = !0, r.value++, X().then((A) => {
1627
+ if (A.valid && typeof d == "function")
1628
+ return d(Q(s), {
1629
+ evt: T,
1630
+ setErrors: G,
1631
+ setFieldError: P,
1632
+ setTouched: be,
1633
+ setFieldTouched: ke,
1634
+ setValues: ee,
1635
+ setFieldValue: ne,
1636
+ resetForm: Ve
1637
+ });
1638
+ !A.valid && typeof h == "function" && h({
1639
+ values: Q(s),
1640
+ evt: T,
1641
+ errors: A.errors,
1642
+ results: A.results
1643
+ });
1644
+ }).then((A) => (a.value = !1, A), (A) => {
1645
+ throw a.value = !1, A;
1646
+ });
1647
+ };
1648
+ }
1649
+ function Ie(d, h) {
1650
+ $e(k.value, d, Q(h));
1651
+ }
1652
+ function tt(d) {
1653
+ yt(k.value, d);
1654
+ }
1655
+ function Nn(d, h, B = !1) {
1656
+ $e(s, d, h), Ie(d, h), B && !(e != null && e.initialValues) && $e(f.value, d, Q(h));
1657
+ }
1658
+ async function Kt() {
1659
+ const d = c(p);
1660
+ return d ? He(d) ? await Ml(d, s) : await Pl(d, s, {
1661
+ names: E.value,
1662
+ bailsMap: H.value
1663
+ }) : { valid: !0, results: {}, errors: {} };
1664
+ }
1665
+ const Ln = Yt(Kt, 5), Dn = Yt(Kt, 5);
1666
+ async function zn(d) {
1667
+ const h = await (d === "silent" ? Ln() : Dn()), B = I.fieldsByPath.value || {}, T = _(I.errorBag.value);
1668
+ return [
1669
+ .../* @__PURE__ */ new Set([..._(h.results), ..._(B), ...T])
1670
+ ].reduce((Z, te) => {
1671
+ const ve = B[te], Ee = (h.results[te] || { errors: [] }).errors, ue = {
1672
+ errors: Ee,
1673
+ valid: !Ee.length
1674
+ };
1675
+ if (Z.results[te] = ue, ue.valid || (Z.errors[te] = ue.errors[0]), !ve)
1676
+ return P(te, Ee), Z;
1677
+ if (x(ve, (Ue) => Ue.meta.valid = ue.valid), d === "silent")
1678
+ return Z;
1679
+ const Un = Array.isArray(ve) ? ve.some((Ue) => Ue.meta.validated) : ve.meta.validated;
1680
+ return d === "validated-only" && !Un || x(ve, (Ue) => Ue.setState({ errors: ue.errors })), Z;
1681
+ }, { valid: h.valid, results: {}, errors: {} });
1682
+ }
1683
+ const Rn = ge((d, { evt: h }) => {
1684
+ $n(h) && h.target.submit();
1685
+ });
1686
+ return ft(() => {
1687
+ if (e != null && e.initialErrors && G(e.initialErrors), e != null && e.initialTouched && be(e.initialTouched), e != null && e.validateOnMount) {
1688
+ X();
1689
+ return;
1690
+ }
1691
+ I.validateSchema && I.validateSchema("silent");
1692
+ }), Pe(p) && ie(p, () => {
1693
+ var d;
1694
+ (d = I.validateSchema) === null || d === void 0 || d.call(I, "validated-only");
1695
+ }), sn(Ce, I), process.env.NODE_ENV !== "production" && (Dl(I), ie(() => Object.assign(Object.assign({ errors: u.value }, $.value), { values: s, isSubmitting: a.value, submitCount: r.value }), De, {
1696
+ deep: !0
1697
+ })), {
1698
+ errors: m,
1699
+ meta: $,
1700
+ values: s,
1701
+ isSubmitting: a,
1702
+ submitCount: r,
1703
+ validate: X,
1704
+ validateField: Ae,
1705
+ handleReset: () => Ve(),
1706
+ resetForm: Ve,
1707
+ handleSubmit: ge,
1708
+ submitForm: Rn,
1709
+ setFieldError: P,
1710
+ setErrors: G,
1711
+ setFieldValue: ne,
1712
+ setValues: ee,
1713
+ setFieldTouched: ke,
1714
+ setTouched: be,
1715
+ useFieldModel: ae
1716
+ };
1717
+ }
1718
+ function ei(e, t, n, i) {
1719
+ const l = {
1720
+ touched: "some",
1721
+ pending: "some",
1722
+ valid: "every"
1723
+ }, a = j(() => !de(t, c(n)));
1724
+ function r() {
1725
+ const s = Object.values(e.value).flat(1).filter(Boolean);
1726
+ return _(l).reduce((u, v) => {
1727
+ const g = l[v];
1728
+ return u[v] = s[g]((m) => m.meta[v]), u;
1729
+ }, {});
1730
+ }
1731
+ const o = Se(r());
1732
+ return qn(() => {
1733
+ const s = r();
1734
+ o.touched = s.touched, o.valid = s.valid, o.pending = s.pending;
1735
+ }), j(() => Object.assign(Object.assign({ initialValues: c(n) }, o), { valid: o.valid && !_(i.value).length, dirty: a.value }));
1736
+ }
1737
+ function ti(e, t, n) {
1738
+ const i = z(Q(c(n)) || {}), l = z(Q(c(n)) || {});
1739
+ function a(r, o = !1) {
1740
+ i.value = Q(r), l.value = Q(r), o && _(e.value).forEach((s) => {
1741
+ const u = e.value[s], v = Array.isArray(u) ? u.some((m) => m.meta.touched) : u == null ? void 0 : u.meta.touched;
1742
+ if (!u || v)
1743
+ return;
1744
+ const g = K(i.value, s);
1745
+ $e(t, s, Q(g));
1746
+ });
1747
+ }
1748
+ return Pe(n) && ie(n, (r) => {
1749
+ a(r, !0);
1750
+ }, {
1751
+ deep: !0
1752
+ }), {
1753
+ initialValues: i,
1754
+ originalInitialValues: l,
1755
+ setInitialValues: a
1756
+ };
1757
+ }
1758
+ function ni(e) {
1759
+ const t = z({});
1760
+ function n(a) {
1761
+ return Array.isArray(a) ? a : a ? [a] : [];
1762
+ }
1763
+ function i(a, r) {
1764
+ if (!r) {
1765
+ delete t.value[a];
1766
+ return;
1767
+ }
1768
+ t.value[a] = n(r);
1769
+ }
1770
+ function l(a) {
1771
+ t.value = _(a).reduce((r, o) => {
1772
+ const s = a[o];
1773
+ return s && (r[o] = n(s)), r;
1774
+ }, {});
1775
+ }
1776
+ return e && l(e), {
1777
+ errorBag: t,
1778
+ setErrorBag: l,
1779
+ setFieldErrorBag: i
1780
+ };
1781
+ }
1782
+ U({
1783
+ name: "Form",
1784
+ inheritAttrs: !1,
1785
+ props: {
1786
+ as: {
1787
+ type: String,
1788
+ default: "form"
1789
+ },
1790
+ validationSchema: {
1791
+ type: Object,
1792
+ default: void 0
1793
+ },
1794
+ initialValues: {
1795
+ type: Object,
1796
+ default: void 0
1797
+ },
1798
+ initialErrors: {
1799
+ type: Object,
1800
+ default: void 0
1801
+ },
1802
+ initialTouched: {
1803
+ type: Object,
1804
+ default: void 0
1805
+ },
1806
+ validateOnMount: {
1807
+ type: Boolean,
1808
+ default: !1
1809
+ },
1810
+ onSubmit: {
1811
+ type: Function,
1812
+ default: void 0
1813
+ },
1814
+ onInvalidSubmit: {
1815
+ type: Function,
1816
+ default: void 0
1817
+ },
1818
+ keepValues: {
1819
+ type: Boolean,
1820
+ default: !1
1821
+ }
1822
+ },
1823
+ setup(e, t) {
1824
+ const n = ye(e, "initialValues"), i = ye(e, "validationSchema"), l = ye(e, "keepValues"), { errors: a, values: r, meta: o, isSubmitting: s, submitCount: u, validate: v, validateField: g, handleReset: m, resetForm: C, handleSubmit: F, setErrors: E, setFieldError: H, setFieldValue: J, setValues: R, setFieldTouched: k, setTouched: f } = _l({
1825
+ validationSchema: i.value ? i : void 0,
1826
+ initialValues: n,
1827
+ initialErrors: e.initialErrors,
1828
+ initialTouched: e.initialTouched,
1829
+ validateOnMount: e.validateOnMount,
1830
+ keepValuesOnUnmount: l
1831
+ }), y = F((x, { evt: V }) => {
1832
+ $n(V) && V.target.submit();
1833
+ }, e.onInvalidSubmit), $ = e.onSubmit ? F(e.onSubmit, e.onInvalidSubmit) : y;
1834
+ function p(x) {
1835
+ zt(x) && x.preventDefault(), m(), typeof t.attrs.onReset == "function" && t.attrs.onReset();
1836
+ }
1837
+ function I(x, V) {
1838
+ return F(typeof x == "function" && !V ? x : V, e.onInvalidSubmit)(x);
1839
+ }
1840
+ function L() {
1841
+ return {
1842
+ meta: o.value,
1843
+ errors: a.value,
1844
+ values: r,
1845
+ isSubmitting: s.value,
1846
+ submitCount: u.value,
1847
+ validate: v,
1848
+ validateField: g,
1849
+ handleSubmit: I,
1850
+ handleReset: m,
1851
+ submitForm: y,
1852
+ setErrors: E,
1853
+ setFieldError: H,
1854
+ setFieldValue: J,
1855
+ setValues: R,
1856
+ setFieldTouched: k,
1857
+ setTouched: f,
1858
+ resetForm: C
1859
+ };
1860
+ }
1861
+ return t.expose({
1862
+ setFieldError: H,
1863
+ setErrors: E,
1864
+ setFieldValue: J,
1865
+ setValues: R,
1866
+ setFieldTouched: k,
1867
+ setTouched: f,
1868
+ resetForm: C,
1869
+ validate: v,
1870
+ validateField: g
1871
+ }), function() {
1872
+ const V = e.as === "form" ? e.as : jt(e.as), P = ht(V, t, L);
1873
+ if (!e.as)
1874
+ return P;
1875
+ const G = e.as === "form" ? {
1876
+ novalidate: !0
1877
+ } : {};
1878
+ return lt(V, Object.assign(Object.assign(Object.assign({}, G), t.attrs), { onSubmit: $, onReset: p }), P);
1879
+ };
1880
+ }
1881
+ });
1882
+ function li(e) {
1883
+ const t = Xe(Ce, void 0), n = z([]), i = () => {
1884
+ }, l = {
1885
+ fields: n,
1886
+ remove: i,
1887
+ push: i,
1888
+ swap: i,
1889
+ insert: i,
1890
+ update: i,
1891
+ replace: i,
1892
+ prepend: i,
1893
+ move: i
1894
+ };
1895
+ if (!t)
1896
+ return bt("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"), l;
1897
+ if (!c(e))
1898
+ return bt("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"), l;
1899
+ const a = t.fieldArrays.find((k) => c(k.path) === c(e));
1900
+ if (a)
1901
+ return a;
1902
+ let r = 0;
1903
+ function o() {
1904
+ const k = K(t == null ? void 0 : t.values, c(e), []) || [];
1905
+ n.value = k.map(u), s();
1906
+ }
1907
+ o();
1908
+ function s() {
1909
+ const k = n.value.length;
1910
+ for (let f = 0; f < k; f++) {
1911
+ const y = n.value[f];
1912
+ y.isFirst = f === 0, y.isLast = f === k - 1;
1913
+ }
1914
+ }
1915
+ function u(k) {
1916
+ const f = r++;
1917
+ return {
1918
+ key: f,
1919
+ value: j({
1920
+ get() {
1921
+ const $ = K(t == null ? void 0 : t.values, c(e), []) || [], p = n.value.findIndex((I) => I.key === f);
1922
+ return p === -1 ? k : $[p];
1923
+ },
1924
+ set($) {
1925
+ const p = n.value.findIndex((I) => I.key === f);
1926
+ if (p === -1) {
1927
+ bt("Attempting to update a non-existent array item");
1928
+ return;
1929
+ }
1930
+ E(p, $);
1931
+ }
1932
+ }),
1933
+ isFirst: !1,
1934
+ isLast: !1
1935
+ };
1936
+ }
1937
+ function v(k) {
1938
+ const f = c(e), y = K(t == null ? void 0 : t.values, f);
1939
+ if (!y || !Array.isArray(y))
1940
+ return;
1941
+ const $ = [...y];
1942
+ $.splice(k, 1), t == null || t.unsetInitialValue(f + `[${k}]`), t == null || t.setFieldValue(f, $), n.value.splice(k, 1), s();
1943
+ }
1944
+ function g(k) {
1945
+ const f = c(e), y = K(t == null ? void 0 : t.values, f), $ = Ge(y) ? [] : y;
1946
+ if (!Array.isArray($))
1947
+ return;
1948
+ const p = [...$];
1949
+ p.push(k), t == null || t.stageInitialValue(f + `[${p.length - 1}]`, k), t == null || t.setFieldValue(f, p), n.value.push(u(k)), s();
1950
+ }
1951
+ function m(k, f) {
1952
+ const y = c(e), $ = K(t == null ? void 0 : t.values, y);
1953
+ if (!Array.isArray($) || !(k in $) || !(f in $))
1954
+ return;
1955
+ const p = [...$], I = [...n.value], L = p[k];
1956
+ p[k] = p[f], p[f] = L;
1957
+ const x = I[k];
1958
+ I[k] = I[f], I[f] = x, t == null || t.setFieldValue(y, p), n.value = I, s();
1959
+ }
1960
+ function C(k, f) {
1961
+ const y = c(e), $ = K(t == null ? void 0 : t.values, y);
1962
+ if (!Array.isArray($) || $.length < k)
1963
+ return;
1964
+ const p = [...$], I = [...n.value];
1965
+ p.splice(k, 0, f), I.splice(k, 0, u(f)), t == null || t.setFieldValue(y, p), n.value = I, s();
1966
+ }
1967
+ function F(k) {
1968
+ const f = c(e);
1969
+ t == null || t.setFieldValue(f, k), o();
1970
+ }
1971
+ function E(k, f) {
1972
+ const y = c(e), $ = K(t == null ? void 0 : t.values, y);
1973
+ !Array.isArray($) || $.length - 1 < k || t == null || t.setFieldValue(`${y}[${k}]`, f);
1974
+ }
1975
+ function H(k) {
1976
+ const f = c(e), y = K(t == null ? void 0 : t.values, f), $ = Ge(y) ? [] : y;
1977
+ if (!Array.isArray($))
1978
+ return;
1979
+ const p = [k, ...$];
1980
+ t == null || t.stageInitialValue(f + `[${p.length - 1}]`, k), t == null || t.setFieldValue(f, p), n.value.unshift(u(k)), s();
1981
+ }
1982
+ function J(k, f) {
1983
+ const y = c(e), $ = K(t == null ? void 0 : t.values, y), p = Ge($) ? [] : [...$];
1984
+ if (!Array.isArray($) || !(k in $) || !(f in $))
1985
+ return;
1986
+ const I = [...n.value], L = I[k];
1987
+ I.splice(k, 1), I.splice(f, 0, L);
1988
+ const x = p[k];
1989
+ p.splice(k, 1), p.splice(f, 0, x), t == null || t.setFieldValue(y, p), n.value = I, s();
1990
+ }
1991
+ const R = {
1992
+ fields: n,
1993
+ remove: v,
1994
+ push: g,
1995
+ swap: m,
1996
+ insert: C,
1997
+ update: E,
1998
+ replace: F,
1999
+ prepend: H,
2000
+ move: J
2001
+ };
2002
+ return t.fieldArrays.push(Object.assign({ path: e, reset: o }, R)), un(() => {
2003
+ const k = t.fieldArrays.findIndex((f) => c(f.path) === c(e));
2004
+ k >= 0 && t.fieldArrays.splice(k, 1);
2005
+ }), R;
2006
+ }
2007
+ U({
2008
+ name: "FieldArray",
2009
+ inheritAttrs: !1,
2010
+ props: {
2011
+ name: {
2012
+ type: String,
2013
+ required: !0
2014
+ }
2015
+ },
2016
+ setup(e, t) {
2017
+ const { push: n, remove: i, swap: l, insert: a, replace: r, update: o, prepend: s, move: u, fields: v } = li(ye(e, "name"));
2018
+ function g() {
2019
+ return {
2020
+ fields: v.value,
2021
+ push: n,
2022
+ remove: i,
2023
+ swap: l,
2024
+ insert: a,
2025
+ update: o,
2026
+ replace: r,
2027
+ prepend: s,
2028
+ move: u
2029
+ };
2030
+ }
2031
+ return t.expose({
2032
+ push: n,
2033
+ remove: i,
2034
+ swap: l,
2035
+ insert: a,
2036
+ update: o,
2037
+ replace: r,
2038
+ prepend: s,
2039
+ move: u
2040
+ }), () => ht(void 0, t, g);
2041
+ }
2042
+ });
2043
+ U({
2044
+ name: "ErrorMessage",
2045
+ props: {
2046
+ as: {
2047
+ type: String,
2048
+ default: void 0
2049
+ },
2050
+ name: {
2051
+ type: String,
2052
+ required: !0
2053
+ }
2054
+ },
2055
+ setup(e, t) {
2056
+ const n = dn(Ce, void 0), i = j(() => n == null ? void 0 : n.errors.value[e.name]);
2057
+ function l() {
2058
+ return {
2059
+ message: i.value
2060
+ };
2061
+ }
2062
+ return () => {
2063
+ if (!i.value)
2064
+ return;
2065
+ const a = e.as ? jt(e.as) : e.as, r = ht(a, t, l), o = Object.assign({ role: "alert" }, t.attrs);
2066
+ return !a && (Array.isArray(r) || !r) && (r == null ? void 0 : r.length) ? r : (Array.isArray(r) || !r) && !(r != null && r.length) ? lt(a || "span", o, i.value) : lt(a, o, r);
2067
+ };
2068
+ }
2069
+ });
2070
+ function ii(e, t) {
2071
+ var i;
2072
+ const n = ((i = t == null ? void 0 : t.error) == null ? void 0 : i.value) !== null || (t == null ? void 0 : t.modelValue) !== void 0;
2073
+ return t != null && t.useFieldParent ? t == null ? void 0 : t.useFieldParent(e) : t != null && t.rules ? St(e, t == null ? void 0 : t.rules, t == null ? void 0 : t.opts) : n ? ai(t == null ? void 0 : t.error, t == null ? void 0 : t.modelValue) : St(e);
2074
+ }
2075
+ function ai(e, t) {
2076
+ return {
2077
+ value: z(t != null ? t : ""),
2078
+ errorMessage: e
2079
+ };
2080
+ }
2081
+ const ri = {
2082
+ preserveAspectRatio: "xMidYMid meet",
2083
+ viewBox: "0 0 24 24",
2084
+ width: "1em",
2085
+ height: "1em"
2086
+ }, oi = /* @__PURE__ */ S("path", {
2087
+ fill: "currentColor",
2088
+ d: "m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"
2089
+ }, null, -1), si = [
2090
+ oi
2091
+ ];
2092
+ function ui(e, t) {
2093
+ return b(), O("svg", ri, si);
2094
+ }
2095
+ const di = { name: "material-symbols-done", render: ui }, ci = ["id", "data-testid"], fi = ["for", "data-testid", "data-required"], vi = { class: "container-input" }, hi = ["id", "data-testid"], mi = {
2096
+ inheritAttrs: !1
2097
+ }, rt = /* @__PURE__ */ U({
2098
+ ...mi,
2099
+ __name: "InputText",
149
2100
  props: {
150
2101
  id: null,
2102
+ name: null,
151
2103
  class: null,
152
- modelValue: { default: "" },
153
- label: { default: "label" },
154
- hint: null,
155
- invert: { type: Boolean },
156
- error: null
2104
+ label: null,
2105
+ helperText: null,
2106
+ successText: null,
2107
+ loadingText: null,
2108
+ required: null,
2109
+ disabled: null,
2110
+ isSuccess: null,
2111
+ isLoading: null,
2112
+ size: { default: "md" },
2113
+ error: { default: null },
2114
+ modelValue: null,
2115
+ placeholder: null,
2116
+ useField: null,
2117
+ rules: null,
2118
+ opts: null
157
2119
  },
158
- emits: ["update:modelValue"],
159
- setup(e, { emit: n }) {
160
- const t = e, i = D({
161
- get: () => t.modelValue,
162
- set: (o) => {
163
- n("update:modelValue", o);
164
- }
2120
+ emits: ["input", "update:modelValue"],
2121
+ setup(e, { emit: t }) {
2122
+ const n = e, i = on(), l = j(() => !!(i != null && i.icon)), a = j(() => {
2123
+ var m;
2124
+ return (m = n.name) != null ? m : "";
2125
+ }), { value: r, errorMessage: o } = ii(a.value, {
2126
+ error: j(() => n.error),
2127
+ modelValue: n.modelValue,
2128
+ rules: n.rules,
2129
+ opts: n.opts,
2130
+ useFieldParent: n.useField
2131
+ }), s = j(
2132
+ () => !!n.loadingText || !!(o != null && o.value) || !!n.successText || !!n.helperText
2133
+ ), u = j(
2134
+ () => s.value ? `input-text-describe-${n.id}` : null
2135
+ ), v = j(() => {
2136
+ var m;
2137
+ return n.loadingText && n.isLoading ? { text: n.loadingText, type: "loading" } : (m = o == null ? void 0 : o.value) != null && m.length ? { text: o == null ? void 0 : o.value, type: "error" } : n.successText && n.isSuccess ? { text: n.successText, type: "success" } : { text: n.helperText, type: "helper" };
165
2138
  });
166
- function l(o, d) {
167
- return !!o && !d;
168
- }
169
- function a(o, d) {
170
- return d ? `error-${t.id}` : l(o, d) ? `hint-${t.id}` : null;
171
- }
172
- return (o, d) => {
173
- var c;
174
- return s(), r("div", {
175
- id: `textfield-${e.id}`,
176
- "data-testid": `textfield-${e.id}`,
177
- class: k([[`${(c = o.$props.class) != null ? c : ""}`, { "-invert": e.invert }], "sol-textfield-core"])
178
- }, [
179
- m(o.$slots, "label", {}, () => [
180
- e.label ? (s(), r("label", {
181
- key: 0,
182
- for: `input-${e.id}`,
183
- class: "label"
184
- }, [
185
- u("span", null, x(e.label), 1)
186
- ], 8, ft)) : T("", !0)
187
- ]),
188
- u("div", mt, [
189
- m(o.$slots, "default", {}, () => [
190
- L(W, U(o.$attrs, {
191
- id: e.id,
192
- modelValue: $(i),
193
- "onUpdate:modelValue": d[0] || (d[0] = (h) => Ee(i) ? i.value = h : null),
194
- "data-testid": `input-${e.id}`,
195
- class: [e.error && "-error", "input"],
196
- invert: e.invert,
197
- "aria-invalid": !!e.error,
198
- "aria-describedby": a(e.hint, e.error)
199
- }), null, 16, ["id", "modelValue", "data-testid", "class", "invert", "aria-invalid", "aria-describedby"])
200
- ]),
201
- m(o.$slots, "icon")
202
- ]),
203
- l(e.hint, e.error) ? (s(), r("span", {
2139
+ function g(m) {
2140
+ t("update:modelValue", m), t("input", m);
2141
+ }
2142
+ return (m, C) => (b(), O("div", {
2143
+ id: `input-text-${e.id}`,
2144
+ "data-testid": `input-text-${e.id}`,
2145
+ class: N([[`${m.$props.class}`, { "-disabled": e.disabled }], "sol-input-text-core"])
2146
+ }, [
2147
+ e.label ? (b(), O("label", {
2148
+ key: 0,
2149
+ for: `input-text-input-${e.id}`,
2150
+ "data-testid": `input-text-label-${e.id}`,
2151
+ class: N(["label", `-${e.size}`]),
2152
+ "data-required": e.required
2153
+ }, D(e.label), 11, fi)) : W("", !0),
2154
+ S("div", vi, [
2155
+ Y(Dt, pe(m.$attrs, {
2156
+ id: `text-input-${e.id}`,
2157
+ modelValue: c(r),
2158
+ "onUpdate:modelValue": [
2159
+ C[0] || (C[0] = (F) => Pe(r) ? r.value = F : null),
2160
+ g
2161
+ ],
2162
+ size: e.size,
2163
+ name: c(a),
2164
+ placeholder: e.placeholder,
2165
+ "data-required": e.required,
2166
+ "has-feedback-icon": c(l),
2167
+ error: !!c(o),
2168
+ disabled: e.disabled,
2169
+ "aria-invalid": !!c(o),
2170
+ "aria-describedby": c(u)
2171
+ }), null, 16, ["id", "modelValue", "size", "name", "placeholder", "data-required", "has-feedback-icon", "error", "disabled", "aria-invalid", "aria-describedby"]),
2172
+ e.isLoading ? (b(), re(vn, {
204
2173
  key: 0,
205
- id: `hint-${e.id}`,
206
- class: "hint"
207
- }, x(e.hint), 9, vt)) : e.error ? (s(), r("span", {
2174
+ class: N(["icon-position", `-${e.size}`]),
2175
+ title: "carregando",
2176
+ "aria-busy": e.isSuccess,
2177
+ size: e.size
2178
+ }, null, 8, ["aria-busy", "class", "size"])) : (b(), O("div", {
208
2179
  key: 1,
209
- id: `error-${e.id}`,
210
- class: "error"
211
- }, x(e.error), 9, $t)) : T("", !0)
212
- ], 10, ht);
213
- };
2180
+ class: N(["icon-position", `-${e.size}`])
2181
+ }, [
2182
+ e.isSuccess ? (b(), re(c(di), {
2183
+ key: 0,
2184
+ "aria-hidden": "true",
2185
+ class: "text-feedback-positive-pure"
2186
+ })) : M(m.$slots, "icon", { key: 1 })
2187
+ ], 2))
2188
+ ]),
2189
+ c(s) ? (b(), O("span", {
2190
+ key: 1,
2191
+ id: `input-text-describe-${e.id}`,
2192
+ "data-testid": `input-text-describe-${e.id}`,
2193
+ class: N(["message", `-${c(v).type}`])
2194
+ }, D(c(v).text), 11, hi)) : W("", !0)
2195
+ ], 10, ci));
214
2196
  }
215
2197
  });
216
- const bt = {
2198
+ const yi = {
217
2199
  preserveAspectRatio: "xMidYMid meet",
218
2200
  viewBox: "0 0 24 24",
219
2201
  width: "1em",
220
2202
  height: "1em"
221
- }, yt = /* @__PURE__ */ u("g", { fill: "currentColor" }, [
222
- /* @__PURE__ */ u("path", { d: "M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0z" }),
223
- /* @__PURE__ */ u("path", { d: "M21.894 11.553C19.736 7.236 15.904 5 12 5c-3.903 0-7.736 2.236-9.894 6.553a1 1 0 0 0 0 .894C4.264 16.764 8.096 19 12 19c3.903 0 7.736-2.236 9.894-6.553a1 1 0 0 0 0-.894zM12 17c-2.969 0-6.002-1.62-7.87-5C5.998 8.62 9.03 7 12 7c2.969 0 6.002 1.62 7.87 5c-1.868 3.38-4.901 5-7.87 5z" })
224
- ], -1), gt = [
225
- yt
2203
+ }, bi = /* @__PURE__ */ S("g", {
2204
+ fill: "none",
2205
+ stroke: "currentColor",
2206
+ "stroke-linecap": "round",
2207
+ "stroke-linejoin": "round",
2208
+ "stroke-width": "1.5"
2209
+ }, [
2210
+ /* @__PURE__ */ S("path", { d: "M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z" }),
2211
+ /* @__PURE__ */ S("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" })
2212
+ ], -1), gi = [
2213
+ bi
226
2214
  ];
227
- function wt(e, n) {
228
- return s(), r("svg", bt, gt);
2215
+ function $i(e, t) {
2216
+ return b(), O("svg", yi, gi);
229
2217
  }
230
- const kt = { name: "mi-eye", render: wt }, xt = {
2218
+ const wi = { name: "iconoir-eye-empty", render: $i }, ki = {
231
2219
  preserveAspectRatio: "xMidYMid meet",
232
2220
  viewBox: "0 0 24 24",
233
2221
  width: "1em",
234
2222
  height: "1em"
235
- }, St = /* @__PURE__ */ u("path", {
236
- fill: "currentColor",
237
- d: "M4.707 3.293a1 1 0 0 0-1.414 1.414l2.424 2.424c-1.43 1.076-2.678 2.554-3.611 4.422a1 1 0 0 0 0 .894C4.264 16.764 8.096 19 12 19c1.555 0 3.1-.355 4.53-1.055l2.763 2.762a1 1 0 0 0 1.414-1.414l-16-16zm10.307 13.135c-.98.383-2 .572-3.014.572c-2.969 0-6.002-1.62-7.87-5c.817-1.479 1.858-2.62 3.018-3.437l2.144 2.144a3 3 0 0 0 4.001 4.001l1.72 1.72zm3.538-2.532c.483-.556.926-1.187 1.318-1.896c-1.868-3.38-4.9-5-7.87-5c-.112 0-.224.002-.336.007L9.879 5.223A10.215 10.215 0 0 1 12 5c3.903 0 7.736 2.236 9.894 6.553a1 1 0 0 1 0 .894a13.106 13.106 0 0 1-1.925 2.865l-1.417-1.416z"
238
- }, null, -1), Ct = [
239
- St
2223
+ }, Oi = /* @__PURE__ */ S("g", {
2224
+ fill: "none",
2225
+ stroke: "currentColor",
2226
+ "stroke-linecap": "round",
2227
+ "stroke-linejoin": "round",
2228
+ "stroke-width": "1.5"
2229
+ }, [
2230
+ /* @__PURE__ */ S("path", { d: "m3 3l18 18M10.5 10.677a2 2 0 0 0 2.823 2.823" }),
2231
+ /* @__PURE__ */ S("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" })
2232
+ ], -1), Si = [
2233
+ Oi
240
2234
  ];
241
- function It(e, n) {
242
- return s(), r("svg", xt, Ct);
2235
+ function xi(e, t) {
2236
+ return b(), O("svg", ki, Si);
243
2237
  }
244
- const Bt = { name: "mi-eye-off", render: It }, Ot = ["aria-label"], $e = /* @__PURE__ */ O({
245
- __name: "TextfieldPassword",
2238
+ const pi = { name: "iconoir-eye-off", render: xi }, Ci = ["aria-label"], xt = /* @__PURE__ */ U({
2239
+ __name: "InputPassword",
246
2240
  props: {
247
- id: { default: "" },
248
- label: { default: "Sua senha" }
2241
+ id: null,
2242
+ label: null,
2243
+ name: { default: "password" },
2244
+ placeholder: { default: "Digite sua senha." },
2245
+ helperText: null,
2246
+ required: { default: !0 },
2247
+ disabled: null,
2248
+ size: null,
2249
+ error: null,
2250
+ modelValue: null,
2251
+ useField: null,
2252
+ rules: null,
2253
+ opts: null
249
2254
  },
250
2255
  setup(e) {
251
- const n = V(!1), t = D(
252
- () => n.value ? "text" : "password"
2256
+ const t = z(!1), n = j(
2257
+ () => t.value ? "text" : "password"
253
2258
  );
254
- return (i, l) => (s(), H(oe, {
255
- id: e.id,
256
- required: "",
257
- type: $(t),
2259
+ return (i, l) => (b(), re(rt, {
2260
+ id: `password-${e.id}`,
2261
+ type: c(n),
258
2262
  label: e.label,
259
- placeholder: "Insira sua senha"
2263
+ name: e.name,
2264
+ required: e.required,
2265
+ size: e.size,
2266
+ "helper-text": e.helperText,
2267
+ placeholder: e.placeholder,
2268
+ error: e.error,
2269
+ "model-value": e.modelValue,
2270
+ "use-field": e.useField,
2271
+ rules: e.rules,
2272
+ opts: e.opts
260
2273
  }, {
261
- icon: E(() => [
262
- u("button", {
2274
+ icon: oe(() => [
2275
+ S("button", {
263
2276
  type: "button",
264
2277
  "data-testid": "toggle-type-password",
265
- "aria-label": n.value ? "Hide password" : "Show password",
266
- onClick: l[0] || (l[0] = (a) => n.value = !n.value)
2278
+ "aria-label": t.value ? "Hide password" : "Show password",
2279
+ onClick: l[0] || (l[0] = (a) => t.value = !t.value)
267
2280
  }, [
268
- Y(L($(kt), { "aria-hidden": "true" }, null, 512), [
269
- [X, n.value]
2281
+ je(Y(c(wi), {
2282
+ class: "password-feedback-icon",
2283
+ "aria-hidden": "true"
2284
+ }, null, 512), [
2285
+ [We, t.value]
270
2286
  ]),
271
- Y(L($(Bt), { "aria-hidden": "true" }, null, 512), [
272
- [X, !n.value]
2287
+ je(Y(c(pi), {
2288
+ class: "password-feedback-icon",
2289
+ "aria-hidden": "true"
2290
+ }, null, 512), [
2291
+ [We, !t.value]
273
2292
  ])
274
- ], 8, Ot)
2293
+ ], 8, Ci)
275
2294
  ]),
276
2295
  _: 1
277
- }, 8, ["id", "type", "label"]));
2296
+ }, 8, ["id", "type", "label", "name", "required", "size", "helper-text", "placeholder", "error", "model-value", "use-field", "rules", "opts"]));
278
2297
  }
279
2298
  });
280
- oe.install = (e) => {
281
- e.component("SolTextfield", oe);
2299
+ rt.install = (e) => {
2300
+ e.component("SolInputText", rt);
282
2301
  };
283
- $e.install = (e) => {
284
- e.component("SolTextfieldPassword", $e);
2302
+ xt.install = (e) => {
2303
+ e.component("SolInputTextPassword", xt);
285
2304
  };
286
- const Mt = ["id", "data-testid"], Tt = ["for"], Lt = { class: "container-textarea" }, Pt = ["id", "data-testid", "invert", "aria-invalid", "aria-describedby"], Vt = ["id"], At = ["id"], be = /* @__PURE__ */ O({
2305
+ const Vi = ["id", "data-testid"], Ai = ["for"], Ii = { class: "container-textarea" }, Ei = ["id", "data-testid", "invert", "aria-invalid", "aria-describedby"], Fi = ["id"], Bi = ["id"], pt = /* @__PURE__ */ U({
287
2306
  __name: "Textarea",
288
2307
  props: {
289
2308
  id: null,
@@ -296,71 +2315,71 @@ const Mt = ["id", "data-testid"], Tt = ["for"], Lt = { class: "container-textare
296
2315
  error: null
297
2316
  },
298
2317
  emits: ["update:modelValue"],
299
- setup(e, { emit: n }) {
300
- const t = e, i = D({
301
- get: () => t.modelValue,
302
- set: (o) => {
303
- n("update:modelValue", o);
2318
+ setup(e, { emit: t }) {
2319
+ const n = e, i = j({
2320
+ get: () => n.modelValue,
2321
+ set: (r) => {
2322
+ t("update:modelValue", r);
304
2323
  }
305
2324
  });
306
- function l(o, d) {
307
- return !!o && !d;
2325
+ function l(r, o) {
2326
+ return !!r && !o;
308
2327
  }
309
- function a(o, d) {
310
- return d ? `error-${t.id}` : l(o, d) ? `hint-${t.id}` : null;
2328
+ function a(r, o) {
2329
+ return o ? `error-${n.id}` : l(r, o) ? `hint-${n.id}` : null;
311
2330
  }
312
- return (o, d) => {
313
- var c;
314
- return s(), r("div", {
2331
+ return (r, o) => {
2332
+ var s;
2333
+ return b(), O("div", {
315
2334
  id: `textarea-${e.id}`,
316
2335
  "data-testid": `textarea-${e.id}`,
317
- class: k([[`${(c = o.$props.class) != null ? c : ""}`, { "-invert": e.invert }], "sol-textarea-core"])
2336
+ class: N([[`${(s = r.$props.class) != null ? s : ""}`, { "-invert": e.invert }], "sol-textarea-core"])
318
2337
  }, [
319
- m(o.$slots, "label", {}, () => [
320
- e.label ? (s(), r("label", {
2338
+ M(r.$slots, "label", {}, () => [
2339
+ e.label ? (b(), O("label", {
321
2340
  key: 0,
322
2341
  for: `input-${e.id}`,
323
2342
  class: "label"
324
2343
  }, [
325
- u("span", null, x(e.label), 1)
326
- ], 8, Tt)) : T("", !0)
2344
+ S("span", null, D(e.label), 1)
2345
+ ], 8, Ai)) : W("", !0)
327
2346
  ]),
328
- u("div", Lt, [
329
- m(o.$slots, "default", {}, () => [
330
- Y(u("textarea", U(o.$attrs, {
2347
+ S("div", Ii, [
2348
+ M(r.$slots, "default", {}, () => [
2349
+ je(S("textarea", pe(r.$attrs, {
331
2350
  id: `input-${e.id}`,
332
- "onUpdate:modelValue": d[0] || (d[0] = (h) => Ee(i) ? i.value = h : null),
2351
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => Pe(i) ? i.value = u : null),
333
2352
  "data-testid": `input-${e.id}`,
334
2353
  class: [e.error && "-error", "textarea"],
335
2354
  invert: e.invert,
336
2355
  style: { resize: e.resize },
337
2356
  "aria-invalid": !!e.error,
338
2357
  "aria-describedby": a(e.hint, e.error)
339
- }), null, 16, Pt), [
340
- [We, $(i)]
2358
+ }), null, 16, Ei), [
2359
+ [Hn, c(i)]
341
2360
  ])
342
2361
  ])
343
2362
  ]),
344
- l(e.hint, e.error) ? (s(), r("span", {
2363
+ l(e.hint, e.error) ? (b(), O("span", {
345
2364
  key: 0,
346
2365
  id: `hint-${e.id}`,
347
2366
  class: "hint"
348
- }, x(e.hint), 9, Vt)) : e.error ? (s(), r("span", {
2367
+ }, D(e.hint), 9, Fi)) : e.error ? (b(), O("span", {
349
2368
  key: 1,
350
2369
  id: `error-${e.id}`,
351
2370
  class: "error"
352
- }, x(e.error), 9, At)) : T("", !0)
353
- ], 10, Mt);
2371
+ }, D(e.error), 9, Bi)) : W("", !0)
2372
+ ], 10, Vi);
354
2373
  };
355
2374
  }
356
2375
  });
357
- be.install = (e) => {
358
- e.component("SolTextarea", be);
2376
+ pt.install = (e) => {
2377
+ e.component("SolTextarea", pt);
359
2378
  };
360
- const zt = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], Dt = {
2379
+ const Ti = ["id", "data-testid", "checked", "value", "name"], Mi = ["for"], Pi = {
361
2380
  inheritAttrs: !1
362
- }, se = /* @__PURE__ */ O({
363
- ...Dt,
2381
+ }, ot = /* @__PURE__ */ U({
2382
+ ...Pi,
364
2383
  __name: "Radio",
365
2384
  props: {
366
2385
  id: null,
@@ -371,11 +2390,11 @@ const zt = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], Dt =
371
2390
  class: null
372
2391
  },
373
2392
  emits: ["change"],
374
- setup(e, { emit: n }) {
375
- return (t, i) => (s(), r("div", {
376
- class: k(["sol-radio-core", t.$props.class])
2393
+ setup(e, { emit: t }) {
2394
+ return (n, i) => (b(), O("div", {
2395
+ class: N(["sol-radio-core", n.$props.class])
377
2396
  }, [
378
- u("input", U(t.$attrs, {
2397
+ S("input", pe(n.$attrs, {
379
2398
  id: `radio-${e.name}-${e.id}`,
380
2399
  type: "radio",
381
2400
  class: "radio",
@@ -383,16 +2402,16 @@ const zt = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], Dt =
383
2402
  checked: e.checked,
384
2403
  value: e.value,
385
2404
  name: e.name,
386
- onChange: i[0] || (i[0] = (l) => n("change", e.value))
387
- }), null, 16, zt),
388
- u("label", {
2405
+ onChange: i[0] || (i[0] = (l) => t("change", e.value))
2406
+ }), null, 16, Ti),
2407
+ S("label", {
389
2408
  class: "label",
390
2409
  for: `radio-${e.name}-${e.id}`
391
- }, x(e.label), 9, Et)
2410
+ }, D(e.label), 9, Mi)
392
2411
  ], 2));
393
2412
  }
394
2413
  });
395
- const Nt = ["aria-labelledby"], Rt = ["id", "data-testid"], Ht = ["id", "data-testid"], pt = ["id", "data-testid"], ye = /* @__PURE__ */ O({
2414
+ const ji = ["aria-labelledby"], Ni = ["id", "data-testid"], Li = ["id", "data-testid"], Di = ["id", "data-testid"], Ct = /* @__PURE__ */ U({
396
2415
  __name: "RadioGroup",
397
2416
  props: {
398
2417
  id: null,
@@ -405,82 +2424,82 @@ const Nt = ["aria-labelledby"], Rt = ["id", "data-testid"], Ht = ["id", "data-te
405
2424
  direction: { default: "row" }
406
2425
  },
407
2426
  emits: ["change", "update:modelValue"],
408
- setup(e, { emit: n }) {
409
- const t = e;
410
- function i(d, c) {
411
- return !!d && !c;
2427
+ setup(e, { emit: t }) {
2428
+ const n = e;
2429
+ function i(o, s) {
2430
+ return !!o && !s;
412
2431
  }
413
- function l(d, c) {
414
- return c ? `radios-error-${t.id}` : i(d, c) ? `radios-hint-${t.id}` : null;
2432
+ function l(o, s) {
2433
+ return s ? `radios-error-${n.id}` : i(o, s) ? `radios-hint-${n.id}` : null;
415
2434
  }
416
- function a(d) {
417
- return (t == null ? void 0 : t.modelValue) === d;
2435
+ function a(o) {
2436
+ return (n == null ? void 0 : n.modelValue) === o;
418
2437
  }
419
- function o(d) {
420
- n("change", d.value), n("update:modelValue", d.value);
2438
+ function r(o) {
2439
+ t("change", o.value), t("update:modelValue", o.value);
421
2440
  }
422
- return (d, c) => (s(), r("fieldset", {
2441
+ return (o, s) => (b(), O("fieldset", {
423
2442
  class: "sol-radio-group-core",
424
2443
  "aria-labelledby": `radio-group-title-${e.id}`
425
2444
  }, [
426
- m(d.$slots, "title", {
2445
+ M(o.$slots, "title", {
427
2446
  id: `radio-group-title-${e.id}`
428
2447
  }, () => [
429
- u("legend", {
2448
+ S("legend", {
430
2449
  id: `radio-group-title-${e.id}`,
431
- class: k(["title", { "sr-only": e.hideTitle }]),
2450
+ class: N(["title", { "sr-only": e.hideTitle }]),
432
2451
  "data-testid": `radio-group-title-${e.id}`
433
- }, x(e.title), 11, Rt)
2452
+ }, D(e.title), 11, Ni)
434
2453
  ]),
435
- u("ul", {
436
- class: k(["container-radios", { "flex-col": e.direction === "column" }])
2454
+ S("ul", {
2455
+ class: N(["container-radios", { "flex-col": e.direction === "column" }])
437
2456
  }, [
438
- m(d.$slots, "default", {
2457
+ M(o.$slots, "default", {
439
2458
  radios: e.radios,
440
2459
  direction: e.direction
441
2460
  }, () => [
442
- (s(!0), r(j, null, Z(e.radios, (h, f) => {
443
- var I;
444
- return s(), r("li", { key: f }, [
445
- L(se, U(d.$attrs, {
446
- id: (I = h == null ? void 0 : h.id) != null ? I : `${h.value}`,
2461
+ (b(!0), O(ze, null, Re(e.radios, (u, v) => {
2462
+ var g;
2463
+ return b(), O("li", { key: v }, [
2464
+ Y(ot, pe(o.$attrs, {
2465
+ id: (g = u == null ? void 0 : u.id) != null ? g : `${u.value}`,
447
2466
  class: ["radio", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
448
- name: h.name,
449
- value: h.value,
450
- label: h.label,
451
- checked: a(h.value),
2467
+ name: u.name,
2468
+ value: u.value,
2469
+ label: u.label,
2470
+ checked: a(u.value),
452
2471
  "aria-invalid": !!e.error,
453
2472
  "aria-describedby": l(e.hint, e.error),
454
- onChange: (y) => o(h)
2473
+ onChange: (m) => r(u)
455
2474
  }), null, 16, ["id", "class", "name", "value", "label", "checked", "aria-invalid", "aria-describedby", "onChange"])
456
2475
  ]);
457
2476
  }), 128))
458
2477
  ])
459
2478
  ], 2),
460
- i(e.hint, e.error) ? (s(), r("p", {
2479
+ i(e.hint, e.error) ? (b(), O("p", {
461
2480
  key: 0,
462
2481
  id: `radios-hint-${e.id}`,
463
2482
  "data-testid": `radios-hint-${e.id}`,
464
2483
  class: "hint"
465
- }, x(e.hint), 9, Ht)) : e.error ? (s(), r("p", {
2484
+ }, D(e.hint), 9, Li)) : e.error ? (b(), O("p", {
466
2485
  key: 1,
467
2486
  id: `radios-error-${e.id}`,
468
2487
  "data-testid": `radios-error-${e.id}`,
469
2488
  class: "error"
470
- }, x(e.error), 9, pt)) : T("", !0)
471
- ], 8, Nt));
2489
+ }, D(e.error), 9, Di)) : W("", !0)
2490
+ ], 8, ji));
472
2491
  }
473
2492
  });
474
- se.install = (e) => {
475
- e.component("SolRadio", se);
2493
+ ot.install = (e) => {
2494
+ e.component("SolRadio", ot);
476
2495
  };
477
- ye.install = (e) => {
478
- e.component("SolRadioGroup", ye);
2496
+ Ct.install = (e) => {
2497
+ e.component("SolRadioGroup", Ct);
479
2498
  };
480
- const Ft = ["id", "indeterminate", "data-testid", "checked", "value", "name"], qt = ["for"], Kt = {
2499
+ const zi = ["id", "indeterminate", "data-testid", "checked", "value", "name"], Ri = ["for"], Ui = {
481
2500
  inheritAttrs: !1
482
- }, de = /* @__PURE__ */ O({
483
- ...Kt,
2501
+ }, st = /* @__PURE__ */ U({
2502
+ ...Ui,
484
2503
  __name: "Checkbox",
485
2504
  props: {
486
2505
  id: null,
@@ -492,11 +2511,11 @@ const Ft = ["id", "indeterminate", "data-testid", "checked", "value", "name"], q
492
2511
  indeterminate: { type: Boolean }
493
2512
  },
494
2513
  emits: ["change"],
495
- setup(e, { emit: n }) {
496
- return (t, i) => (s(), r("div", {
497
- class: k(["sol-checkbox-core", t.$props.class])
2514
+ setup(e, { emit: t }) {
2515
+ return (n, i) => (b(), O("div", {
2516
+ class: N(["sol-checkbox-core", n.$props.class])
498
2517
  }, [
499
- u("input", U(t.$attrs, {
2518
+ S("input", pe(n.$attrs, {
500
2519
  id: `checkbox-${e.name}-${e.id}`,
501
2520
  type: "checkbox",
502
2521
  indeterminate: e.indeterminate,
@@ -505,16 +2524,16 @@ const Ft = ["id", "indeterminate", "data-testid", "checked", "value", "name"], q
505
2524
  checked: e.checked,
506
2525
  value: e.value,
507
2526
  name: e.name,
508
- onChange: i[0] || (i[0] = (l) => n("change", e.value))
509
- }), null, 16, Ft),
510
- u("label", {
2527
+ onChange: i[0] || (i[0] = (l) => t("change", e.value))
2528
+ }), null, 16, zi),
2529
+ S("label", {
511
2530
  class: "label",
512
2531
  for: `checkbox-${e.name}-${e.id}`
513
- }, x(e.label), 9, qt)
2532
+ }, D(e.label), 9, Ri)
514
2533
  ], 2));
515
2534
  }
516
2535
  });
517
- const Ut = ["aria-labelledby"], Gt = ["id", "data-testid"], Qt = ["id", "data-testid"], Yt = ["id", "data-testid"], ge = /* @__PURE__ */ O({
2536
+ const qi = ["aria-labelledby"], Gi = ["id", "data-testid"], Hi = ["id", "data-testid"], Ki = ["id", "data-testid"], Vt = /* @__PURE__ */ U({
518
2537
  __name: "CheckboxGroup",
519
2538
  props: {
520
2539
  id: null,
@@ -527,86 +2546,86 @@ const Ut = ["aria-labelledby"], Gt = ["id", "data-testid"], Qt = ["id", "data-te
527
2546
  direction: { default: "row" }
528
2547
  },
529
2548
  emits: ["change", "update:modelValue"],
530
- setup(e, { emit: n }) {
531
- const t = e;
532
- function i(c, h) {
533
- return !!c && !h;
2549
+ setup(e, { emit: t }) {
2550
+ const n = e;
2551
+ function i(s, u) {
2552
+ return !!s && !u;
534
2553
  }
535
- function l(c, h) {
536
- return h ? `checkboxes-error-${t.id}` : i(c, h) ? `checkboxes-hint-${t.id}` : null;
2554
+ function l(s, u) {
2555
+ return u ? `checkboxes-error-${n.id}` : i(s, u) ? `checkboxes-hint-${n.id}` : null;
537
2556
  }
538
- function a(c) {
539
- var h;
540
- return (h = t == null ? void 0 : t.modelValue) == null ? void 0 : h.includes(c);
2557
+ function a(s) {
2558
+ var u;
2559
+ return (u = n == null ? void 0 : n.modelValue) == null ? void 0 : u.includes(s);
541
2560
  }
542
- function o(c) {
543
- return Array.isArray(t == null ? void 0 : t.modelValue) ? [...t.modelValue, c] : [c];
2561
+ function r(s) {
2562
+ return Array.isArray(n == null ? void 0 : n.modelValue) ? [...n.modelValue, s] : [s];
544
2563
  }
545
- function d(c) {
546
- var f;
547
- n("change", c.value);
548
- const h = a(c.value) ? (f = t.modelValue) == null ? void 0 : f.filter((I) => I !== c.value) : o(c.value);
549
- n("update:modelValue", h);
2564
+ function o(s) {
2565
+ var v;
2566
+ t("change", s.value);
2567
+ const u = a(s.value) ? (v = n.modelValue) == null ? void 0 : v.filter((g) => g !== s.value) : r(s.value);
2568
+ t("update:modelValue", u);
550
2569
  }
551
- return (c, h) => (s(), r("fieldset", {
2570
+ return (s, u) => (b(), O("fieldset", {
552
2571
  class: "sol-checkbox-group-core",
553
2572
  "aria-labelledby": `checkbox-group-title-${e.id}`
554
2573
  }, [
555
- m(c.$slots, "title", {
2574
+ M(s.$slots, "title", {
556
2575
  id: `checkbox-group-title-${e.id}`
557
2576
  }, () => [
558
- u("legend", {
2577
+ S("legend", {
559
2578
  id: `checkbox-group-title-${e.id}`,
560
- class: k(["title", { "sr-only": e.hideTitle }]),
2579
+ class: N(["title", { "sr-only": e.hideTitle }]),
561
2580
  "data-testid": `checkbox-group-title-${e.id}`
562
- }, x(e.title), 11, Gt)
2581
+ }, D(e.title), 11, Gi)
563
2582
  ]),
564
- u("ul", {
565
- class: k(["container-checkboxes", { "flex-col": e.direction === "column" }])
2583
+ S("ul", {
2584
+ class: N(["container-checkboxes", { "flex-col": e.direction === "column" }])
566
2585
  }, [
567
- m(c.$slots, "default", {
2586
+ M(s.$slots, "default", {
568
2587
  checkboxes: e.checkboxes,
569
2588
  direction: e.direction
570
2589
  }, () => [
571
- (s(!0), r(j, null, Z(e.checkboxes, (f, I) => {
572
- var y;
573
- return s(), r("li", { key: I }, [
574
- L(de, U(c.$attrs, {
575
- id: (y = f == null ? void 0 : f.id) != null ? y : `${f.value}`,
2590
+ (b(!0), O(ze, null, Re(e.checkboxes, (v, g) => {
2591
+ var m;
2592
+ return b(), O("li", { key: g }, [
2593
+ Y(st, pe(s.$attrs, {
2594
+ id: (m = v == null ? void 0 : v.id) != null ? m : `${v.value}`,
576
2595
  class: ["checkbox", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
577
- label: f.label,
578
- name: f.name,
579
- value: f.value,
580
- checked: a(f.value),
2596
+ label: v.label,
2597
+ name: v.name,
2598
+ value: v.value,
2599
+ checked: a(v.value),
581
2600
  "aria-invalid": !!e.error,
582
2601
  "aria-describedby": l(e.hint, e.error),
583
- onChange: (S) => d(f)
2602
+ onChange: (C) => o(v)
584
2603
  }), null, 16, ["id", "class", "label", "name", "value", "checked", "aria-invalid", "aria-describedby", "onChange"])
585
2604
  ]);
586
2605
  }), 128))
587
2606
  ])
588
2607
  ], 2),
589
- i(e.hint, e.error) ? (s(), r("p", {
2608
+ i(e.hint, e.error) ? (b(), O("p", {
590
2609
  key: 0,
591
2610
  id: `checkboxes-hint-${e.id}`,
592
2611
  "data-testid": `checkboxes-hint-${e.id}`,
593
2612
  class: "hint"
594
- }, x(e.hint), 9, Qt)) : e.error ? (s(), r("p", {
2613
+ }, D(e.hint), 9, Hi)) : e.error ? (b(), O("p", {
595
2614
  key: 1,
596
2615
  id: `checkboxes-error-${e.id}`,
597
2616
  "data-testid": `checkboxes-hint-${e.id}`,
598
2617
  class: "error"
599
- }, x(e.error), 9, Yt)) : T("", !0)
600
- ], 8, Ut));
2618
+ }, D(e.error), 9, Ki)) : W("", !0)
2619
+ ], 8, qi));
601
2620
  }
602
2621
  });
603
- de.install = (e) => {
604
- e.component("SolCheckbox", de);
2622
+ st.install = (e) => {
2623
+ e.component("SolCheckbox", st);
605
2624
  };
606
- ge.install = (e) => {
607
- e.component("SolCheckboxGroup", ge);
2625
+ Vt.install = (e) => {
2626
+ e.component("SolCheckboxGroup", Vt);
608
2627
  };
609
- const Wt = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"], jt = ["id", "for", "data-testid"], we = /* @__PURE__ */ O({
2628
+ const Qi = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"], Wi = ["id", "for", "data-testid"], At = /* @__PURE__ */ U({
610
2629
  __name: "Switch",
611
2630
  props: {
612
2631
  id: null,
@@ -620,11 +2639,11 @@ const Wt = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "
620
2639
  stretchLabel: { type: Boolean, default: !1 }
621
2640
  },
622
2641
  emits: ["change"],
623
- setup(e, { emit: n }) {
624
- return (t, i) => (s(), r("div", {
625
- class: k(["sol-switch-core", [t.$props.class, `-text-${e.textDirection}`, { "-stretch-label": e.stretchLabel }]])
2642
+ setup(e, { emit: t }) {
2643
+ return (n, i) => (b(), O("div", {
2644
+ class: N(["sol-switch-core", [n.$props.class, `-text-${e.textDirection}`, { "-stretch-label": e.stretchLabel }]])
626
2645
  }, [
627
- u("input", U(t.$attrs, {
2646
+ S("input", pe(n.$attrs, {
628
2647
  id: `switch-${e.name}-${e.id}`,
629
2648
  type: "checkbox",
630
2649
  class: "switch",
@@ -637,106 +2656,106 @@ const Wt = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "
637
2656
  name: e.name,
638
2657
  onChange: i[0] || (i[0] = (l) => {
639
2658
  var a;
640
- return n("change", (a = e.value) != null ? a : !!e.checked);
2659
+ return t("change", (a = e.value) != null ? a : !!e.checked);
641
2660
  })
642
- }), null, 16, Wt),
643
- u("label", {
2661
+ }), null, 16, Qi),
2662
+ S("label", {
644
2663
  id: `switch-label-${e.name}-${e.id}`,
645
- class: k(["label", `-${e.textDirection} ${e.hideLabel ? "sr-only" : ""}`]),
2664
+ class: N(["label", `-${e.textDirection} ${e.hideLabel ? "sr-only" : ""}`]),
646
2665
  for: `switch-${e.name}-${e.id}`,
647
2666
  "data-testid": `switch-label-${e.name}-${e.id}`
648
- }, x(e.label), 11, jt)
2667
+ }, D(e.label), 11, Wi)
649
2668
  ], 2));
650
2669
  }
651
2670
  });
652
- we.install = (e) => {
653
- e.component("SolSwitch", we);
2671
+ At.install = (e) => {
2672
+ e.component("SolSwitch", At);
654
2673
  };
655
- var Le;
656
- const te = typeof window < "u", Zt = (e) => typeof e == "string", ve = () => {
2674
+ var tn;
2675
+ const _e = typeof window < "u", Yi = (e) => typeof e == "string", $t = () => {
657
2676
  };
658
- te && ((Le = window == null ? void 0 : window.navigator) == null ? void 0 : Le.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
659
- function Jt(e) {
660
- return typeof e == "function" ? e() : $(e);
2677
+ _e && ((tn = window == null ? void 0 : window.navigator) == null ? void 0 : tn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
2678
+ function Zi(e) {
2679
+ return typeof e == "function" ? e() : c(e);
661
2680
  }
662
- function Xt(e) {
2681
+ function Ji(e) {
663
2682
  return e;
664
2683
  }
665
- function _t(e) {
666
- return je() ? (Ze(e), !0) : !1;
667
- }
668
- function J(e) {
669
- var n;
670
- const t = Jt(e);
671
- return (n = t == null ? void 0 : t.$el) != null ? n : t;
672
- }
673
- const He = te ? window : void 0;
674
- te && window.document;
675
- te && window.navigator;
676
- te && window.location;
677
- function le(...e) {
678
- let n, t, i, l;
679
- if (Zt(e[0]) ? ([t, i, l] = e, n = He) : [n, t, i, l] = e, !n)
680
- return ve;
681
- let a = ve;
682
- const o = Je(() => J(n), (c) => {
683
- a(), c && (c.addEventListener(t, i, l), a = () => {
684
- c.removeEventListener(t, i, l), a = ve;
2684
+ function Xi(e) {
2685
+ return Kn() ? (Qn(e), !0) : !1;
2686
+ }
2687
+ function qe(e) {
2688
+ var t;
2689
+ const n = Zi(e);
2690
+ return (t = n == null ? void 0 : n.$el) != null ? t : n;
2691
+ }
2692
+ const In = _e ? window : void 0;
2693
+ _e && window.document;
2694
+ _e && window.navigator;
2695
+ _e && window.location;
2696
+ function nt(...e) {
2697
+ let t, n, i, l;
2698
+ if (Yi(e[0]) ? ([n, i, l] = e, t = In) : [t, n, i, l] = e, !t)
2699
+ return $t;
2700
+ let a = $t;
2701
+ const r = ie(() => qe(t), (s) => {
2702
+ a(), s && (s.addEventListener(n, i, l), a = () => {
2703
+ s.removeEventListener(n, i, l), a = $t;
685
2704
  });
686
- }, { immediate: !0, flush: "post" }), d = () => {
687
- o(), a();
2705
+ }, { immediate: !0, flush: "post" }), o = () => {
2706
+ r(), a();
688
2707
  };
689
- return _t(d), d;
2708
+ return Xi(o), o;
690
2709
  }
691
- function Te(e, n, t = {}) {
692
- const { window: i = He, ignore: l, capture: a = !0, detectIframe: o = !1 } = t;
2710
+ function Ht(e, t, n = {}) {
2711
+ const { window: i = In, ignore: l, capture: a = !0, detectIframe: r = !1 } = n;
693
2712
  if (!i)
694
2713
  return;
695
- const d = V(!0);
696
- let c;
697
- const h = (y) => {
698
- i.clearTimeout(c);
699
- const S = J(e), B = y.composedPath();
700
- !S || S === y.target || B.includes(S) || !d.value || l && l.length > 0 && l.some((M) => {
701
- const R = J(M);
702
- return R && (y.target === R || B.includes(R));
703
- }) || n(y);
704
- }, f = [
705
- le(i, "click", h, { passive: !0, capture: a }),
706
- le(i, "pointerdown", (y) => {
707
- const S = J(e);
708
- d.value = !!S && !y.composedPath().includes(S);
2714
+ const o = z(!0);
2715
+ let s;
2716
+ const u = (m) => {
2717
+ i.clearTimeout(s);
2718
+ const C = qe(e), F = m.composedPath();
2719
+ !C || C === m.target || F.includes(C) || !o.value || l && l.length > 0 && l.some((E) => {
2720
+ const H = qe(E);
2721
+ return H && (m.target === H || F.includes(H));
2722
+ }) || t(m);
2723
+ }, v = [
2724
+ nt(i, "click", u, { passive: !0, capture: a }),
2725
+ nt(i, "pointerdown", (m) => {
2726
+ const C = qe(e);
2727
+ o.value = !!C && !m.composedPath().includes(C);
709
2728
  }, { passive: !0 }),
710
- le(i, "pointerup", (y) => {
711
- if (y.button === 0) {
712
- const S = y.composedPath();
713
- y.composedPath = () => S, c = i.setTimeout(() => h(y), 50);
2729
+ nt(i, "pointerup", (m) => {
2730
+ if (m.button === 0) {
2731
+ const C = m.composedPath();
2732
+ m.composedPath = () => C, s = i.setTimeout(() => u(m), 50);
714
2733
  }
715
2734
  }, { passive: !0 }),
716
- o && le(i, "blur", (y) => {
717
- var S;
718
- const B = J(e);
719
- ((S = document.activeElement) == null ? void 0 : S.tagName) === "IFRAME" && !(B != null && B.contains(document.activeElement)) && n(y);
2735
+ r && nt(i, "blur", (m) => {
2736
+ var C;
2737
+ const F = qe(e);
2738
+ ((C = document.activeElement) == null ? void 0 : C.tagName) === "IFRAME" && !(F != null && F.contains(document.activeElement)) && t(m);
720
2739
  })
721
2740
  ].filter(Boolean);
722
- return () => f.forEach((y) => y());
2741
+ return () => v.forEach((m) => m());
723
2742
  }
724
- const ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, xe = "__vueuse_ssr_handlers__";
725
- ke[xe] = ke[xe] || {};
726
- ke[xe];
727
- var Pe;
2743
+ const It = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Et = "__vueuse_ssr_handlers__";
2744
+ It[Et] = It[Et] || {};
2745
+ It[Et];
2746
+ var nn;
728
2747
  (function(e) {
729
2748
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
730
- })(Pe || (Pe = {}));
731
- var en = Object.defineProperty, Ve = Object.getOwnPropertySymbols, tn = Object.prototype.hasOwnProperty, nn = Object.prototype.propertyIsEnumerable, Ae = (e, n, t) => n in e ? en(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, ln = (e, n) => {
732
- for (var t in n || (n = {}))
733
- tn.call(n, t) && Ae(e, t, n[t]);
734
- if (Ve)
735
- for (var t of Ve(n))
736
- nn.call(n, t) && Ae(e, t, n[t]);
2749
+ })(nn || (nn = {}));
2750
+ var _i = Object.defineProperty, ln = Object.getOwnPropertySymbols, ea = Object.prototype.hasOwnProperty, ta = Object.prototype.propertyIsEnumerable, an = (e, t, n) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, na = (e, t) => {
2751
+ for (var n in t || (t = {}))
2752
+ ea.call(t, n) && an(e, n, t[n]);
2753
+ if (ln)
2754
+ for (var n of ln(t))
2755
+ ta.call(t, n) && an(e, n, t[n]);
737
2756
  return e;
738
2757
  };
739
- const an = {
2758
+ const la = {
740
2759
  easeInSine: [0.12, 0, 0.39, 0],
741
2760
  easeOutSine: [0.61, 1, 0.88, 1],
742
2761
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -762,27 +2781,27 @@ const an = {
762
2781
  easeOutBack: [0.34, 1.56, 0.64, 1],
763
2782
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
764
2783
  };
765
- ln({
766
- linear: Xt
767
- }, an);
768
- const on = {
2784
+ na({
2785
+ linear: Ji
2786
+ }, la);
2787
+ const ia = {
769
2788
  preserveAspectRatio: "xMidYMid meet",
770
2789
  viewBox: "0 0 24 24",
771
2790
  width: "1em",
772
2791
  height: "1em"
773
- }, sn = /* @__PURE__ */ u("path", {
2792
+ }, aa = /* @__PURE__ */ S("path", {
774
2793
  fill: "currentColor",
775
2794
  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"
776
- }, null, -1), dn = [
777
- sn
2795
+ }, null, -1), ra = [
2796
+ aa
778
2797
  ];
779
- function cn(e, n) {
780
- return s(), r("svg", on, dn);
2798
+ function oa(e, t) {
2799
+ return b(), O("svg", ia, ra);
781
2800
  }
782
- const pe = { name: "mi-search", render: cn }, rn = ["data-testid"], un = ["id", "for"], hn = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], fn = { class: "dropdown-container" }, mn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], vn = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], $n = {
2801
+ const En = { name: "mi-search", render: oa }, sa = ["data-testid"], ua = ["id", "for"], da = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], ca = { class: "dropdown-container" }, fa = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], va = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], ha = {
783
2802
  key: 0,
784
2803
  class: "no-data"
785
- }, bn = /* @__PURE__ */ N(" Sem dados "), Se = /* @__PURE__ */ O({
2804
+ }, ma = /* @__PURE__ */ ce(" Sem dados "), Ft = /* @__PURE__ */ U({
786
2805
  __name: "Dropdown",
787
2806
  props: {
788
2807
  id: null,
@@ -800,98 +2819,98 @@ const pe = { name: "mi-search", render: cn }, rn = ["data-testid"], un = ["id",
800
2819
  options: { default: () => [] }
801
2820
  },
802
2821
  emits: ["closeDropdown", "search", "update:selected"],
803
- setup(e, { emit: n }) {
804
- const t = e, i = V(), l = V(!1), a = V(""), o = D(
2822
+ setup(e, { emit: t }) {
2823
+ const n = e, i = z(), l = z(!1), a = z(""), r = j(
805
2824
  () => {
806
- var b;
807
- return t.fetchOnSearch ? t.options : (b = t.options) == null ? void 0 : b.filter(
808
- (v) => typeof v == "string" ? v.includes(a.value) : v.name.includes(a.value)
2825
+ var f;
2826
+ return n.fetchOnSearch ? n.options : (f = n.options) == null ? void 0 : f.filter(
2827
+ (y) => typeof y == "string" ? y.includes(a.value) : y.name.includes(a.value)
809
2828
  );
810
2829
  }
811
- ), d = D(
812
- () => Array.isArray(t.selected) ? t.selected.join(", ").trim() : t.selected
2830
+ ), o = j(
2831
+ () => Array.isArray(n.selected) ? n.selected.join(", ").trim() : n.selected
813
2832
  );
814
- Te(i, () => {
815
- l.value && f();
2833
+ Ht(i, () => {
2834
+ l.value && v();
816
2835
  });
817
- function c() {
818
- t.disabled || (l.value ? f() : h());
2836
+ function s() {
2837
+ n.disabled || (l.value ? v() : u());
819
2838
  }
820
- function h() {
2839
+ function u() {
821
2840
  l.value = !0;
822
2841
  }
823
- function f() {
824
- he(), n("closeDropdown");
2842
+ function v() {
2843
+ J(), t("closeDropdown");
825
2844
  }
826
- function I(b) {
827
- const v = new Set(t.selected);
828
- return v.has(b) ? v.delete(b) : v.add(b), [...v];
2845
+ function g(f) {
2846
+ const y = new Set(n.selected);
2847
+ return y.has(f) ? y.delete(f) : y.add(f), [...y];
829
2848
  }
830
- function y(b) {
831
- const v = typeof b == "string" ? b : b.value, C = t.isMultipleSelect ? I(v) : v;
832
- n("update:selected", C), t.closeOnSelect && !t.isMultipleSelect && f();
2849
+ function m(f) {
2850
+ const y = typeof f == "string" ? f : f.value, $ = n.isMultipleSelect ? g(y) : y;
2851
+ t("update:selected", $), n.closeOnSelect && !n.isMultipleSelect && v();
833
2852
  }
834
- function S(b) {
835
- return Array.isArray(t.selected) ? typeof b == "string" ? t.selected.includes(b) : t.selected.includes(b.value) : typeof b == "string" ? b === t.selected : b.value === t.selected;
2853
+ function C(f) {
2854
+ return Array.isArray(n.selected) ? typeof f == "string" ? n.selected.includes(f) : n.selected.includes(f.value) : typeof f == "string" ? f === n.selected : f.value === n.selected;
836
2855
  }
837
- const B = ie({
2856
+ const F = Se({
838
2857
  list: void 0,
839
2858
  search: void 0
840
- }), M = ie({
2859
+ }), E = Se({
841
2860
  id: "",
842
2861
  index: 0
843
2862
  });
844
- function R({ code: b }) {
845
- const v = (P) => {
846
- const F = P != null ? P : M.index;
847
- P !== void 0 && (M.index = P), setTimeout(() => {
848
- var g, w;
849
- const p = (g = B.list) == null ? void 0 : g.children[F];
850
- M.id = (w = p == null ? void 0 : p.id) != null ? w : "", p == null || p.focus();
2863
+ function H({ code: f }) {
2864
+ const y = (p) => {
2865
+ const I = p != null ? p : E.index;
2866
+ p !== void 0 && (E.index = p), setTimeout(() => {
2867
+ var x, V;
2868
+ const L = (x = F.list) == null ? void 0 : x.children[I];
2869
+ E.id = (V = L == null ? void 0 : L.id) != null ? V : "", L == null || L.focus();
851
2870
  }, 0);
852
- }, C = () => {
853
- var P;
854
- t.searchable && (M.index = 0, (P = B == null ? void 0 : B.search) == null || P.focus());
2871
+ }, $ = () => {
2872
+ var p;
2873
+ n.searchable && (E.index = 0, (p = F == null ? void 0 : F.search) == null || p.focus());
855
2874
  };
856
- switch (b) {
2875
+ switch (f) {
857
2876
  case "ArrowUp":
858
- return M.index > 0 && (M.index -= 1), v();
2877
+ return E.index > 0 && (E.index -= 1), y();
859
2878
  case "ArrowDown":
860
- return l.value ? (M.index < o.value.length - 1 && (M.index += 1), v()) : (h(), v(0));
2879
+ return l.value ? (E.index < r.value.length - 1 && (E.index += 1), y()) : (u(), y(0));
861
2880
  case "Home":
862
- return v(0);
2881
+ return y(0);
863
2882
  case "End":
864
- return v(t.options.length - 1);
2883
+ return y(n.options.length - 1);
865
2884
  case "Escape":
866
- return f();
2885
+ return v();
867
2886
  default:
868
- !["Enter", "NumpadEnter", "Space"].includes(b) && C();
2887
+ !["Enter", "NumpadEnter", "Space"].includes(f) && $();
869
2888
  }
870
2889
  }
871
- function he() {
872
- l.value = !1, M.index = 0, a.value = "";
2890
+ function J() {
2891
+ l.value = !1, E.index = 0, a.value = "";
873
2892
  }
874
- function G(b, v) {
875
- return typeof b == "string" ? b : b[v != null ? v : "value"];
2893
+ function R(f, y) {
2894
+ return typeof f == "string" ? f : f[y != null ? y : "value"];
876
2895
  }
877
- function ne(b, v) {
878
- B[b] = v != null ? v : void 0;
2896
+ function k(f, y) {
2897
+ F[f] = y != null ? y : void 0;
879
2898
  }
880
- return (b, v) => (s(), r("div", {
2899
+ return (f, y) => (b(), O("div", {
881
2900
  ref_key: "el",
882
2901
  ref: i,
883
- class: k(["sol-dropdown-core", { "-smaller": e.smallerWidth }]),
2902
+ class: N(["sol-dropdown-core", { "-smaller": e.smallerWidth }]),
884
2903
  "data-testid": `dropdown-${e.id}`,
885
- onKeydownPassive: R
2904
+ onKeydownPassive: H
886
2905
  }, [
887
- m(b.$slots, "label", {}, () => [
888
- u("label", {
2906
+ M(f.$slots, "label", {}, () => [
2907
+ S("label", {
889
2908
  id: `label-dropdown-${e.id}`,
890
- class: k(["label", { "-disabled": e.disabled, "sr-only": e.ariaLabel }]),
2909
+ class: N(["label", { "-disabled": e.disabled, "sr-only": e.ariaLabel }]),
891
2910
  for: `toggle-dropdown-${e.id}`
892
- }, x(e.label || e.ariaLabel), 11, un)
2911
+ }, D(e.label || e.ariaLabel), 11, ua)
893
2912
  ]),
894
- u("button", {
2913
+ S("button", {
895
2914
  id: `toggle-dropdown-${e.id}`,
896
2915
  disabled: e.disabled,
897
2916
  "data-testid": `toggle-dropdown-${e.id}`,
@@ -901,34 +2920,34 @@ const pe = { name: "mi-search", render: cn }, rn = ["data-testid"], un = ["id",
901
2920
  "aria-labelledby": `label-dropdown-${e.id}`,
902
2921
  "aria-label": e.ariaLabel,
903
2922
  "aria-controls": `dropdown-list-${e.id}`,
904
- onClick: q(c, ["stop"])
2923
+ onClick: Oe(s, ["stop"])
905
2924
  }, [
906
- m(b.$slots, "toggle-dropdown", {
907
- toggle: { open: h, close: f, toggleDropdown: c },
2925
+ M(f.$slots, "toggle-dropdown", {
2926
+ toggle: { open: u, close: v, toggleDropdown: s },
908
2927
  isOpen: l.value,
909
- select: y,
910
- selectedSanitized: $(d),
2928
+ select: m,
2929
+ selectedSanitized: c(o),
911
2930
  selected: e.selected
912
2931
  }, () => [
913
- N(x($(d) || "Selecione"), 1)
2932
+ ce(D(c(o) || "Selecione"), 1)
914
2933
  ])
915
- ], 8, hn),
916
- L(Me, {
2934
+ ], 8, da),
2935
+ Y(Lt, {
917
2936
  mode: "out-in",
918
2937
  name: "dropdown"
919
2938
  }, {
920
- default: E(() => [
921
- Y(u("div", fn, [
922
- e.searchable ? (s(), r("div", {
2939
+ default: oe(() => [
2940
+ je(S("div", ca, [
2941
+ e.searchable ? (b(), O("div", {
923
2942
  key: 0,
924
- class: k(["search-container", { "-loading": e.loading }])
2943
+ class: N(["search-container", { "-loading": e.loading }])
925
2944
  }, [
926
- m(b.$slots, "search", { filter: a.value }, () => [
927
- L(W, {
2945
+ M(f.$slots, "search", { filter: a.value }, () => [
2946
+ Y(Dt, {
928
2947
  id: `search-dropdown-${e.id}`,
929
- ref: (C) => ne("search", C == null ? void 0 : C.input),
2948
+ ref: ($) => k("search", $ == null ? void 0 : $.input),
930
2949
  modelValue: a.value,
931
- "onUpdate:modelValue": v[0] || (v[0] = (C) => a.value = C),
2950
+ "onUpdate:modelValue": y[0] || (y[0] = ($) => a.value = $),
932
2951
  "data-testid": `search-dropdown-${e.id}`,
933
2952
  role: "combobox",
934
2953
  class: "search",
@@ -938,24 +2957,24 @@ const pe = { name: "mi-search", render: cn }, rn = ["data-testid"], un = ["id",
938
2957
  "aria-haspopup": "listbox",
939
2958
  "aria-owns": `dropdown-list-${e.id}`,
940
2959
  "aria-controls": `dropdown-list-${e.id}`,
941
- "aria-activedescendant": M.id,
2960
+ "aria-activedescendant": E.id,
942
2961
  "aria-labelledby": `label-dropdown-${e.id}`,
943
- onClick: v[1] || (v[1] = q(() => {
2962
+ onClick: y[1] || (y[1] = Oe(() => {
944
2963
  }, ["stop"])),
945
- onInput: v[2] || (v[2] = (C) => {
946
- var P;
947
- return n("search", (P = C.target) == null ? void 0 : P.value);
2964
+ onInput: y[2] || (y[2] = ($) => {
2965
+ var p;
2966
+ return t("search", (p = $.target) == null ? void 0 : p.value);
948
2967
  })
949
2968
  }, null, 8, ["id", "modelValue", "data-testid", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
950
- L($(pe), {
2969
+ Y(c(En), {
951
2970
  "aria-hidden": "true",
952
2971
  class: "icon"
953
2972
  })
954
2973
  ])
955
- ], 2)) : T("", !0),
956
- u("ul", {
2974
+ ], 2)) : W("", !0),
2975
+ S("ul", {
957
2976
  id: `dropdown-list-${e.id}`,
958
- ref: (C) => ne("list", C),
2977
+ ref: ($) => k("list", $),
959
2978
  "data-testid": `dropdown-list-${e.id}`,
960
2979
  role: "listbox",
961
2980
  tabindex: "-1",
@@ -963,63 +2982,63 @@ const pe = { name: "mi-search", render: cn }, rn = ["data-testid"], un = ["id",
963
2982
  "aria-labelledby": `label-dropdown-${e.id}`,
964
2983
  class: "dropdown-list-core"
965
2984
  }, [
966
- (s(!0), r(j, null, Z($(o), (C, P) => (s(), r("li", {
967
- id: `option-${e.id}-${G(C, "value")}`,
968
- key: P,
969
- "data-testid": `option-${e.id}-${G(C, "value")}`,
2985
+ (b(!0), O(ze, null, Re(c(r), ($, p) => (b(), O("li", {
2986
+ id: `option-${e.id}-${R($, "value")}`,
2987
+ key: p,
2988
+ "data-testid": `option-${e.id}-${R($, "value")}`,
970
2989
  role: "option",
971
2990
  tabindex: "-1",
972
2991
  class: "dropdown-item",
973
- style: ae(`--item: ${P + 1}`),
974
- selected: S(C),
975
- "aria-selected": S(C),
976
- onClick: (F) => y(C),
2992
+ style: it(`--item: ${p + 1}`),
2993
+ selected: C($),
2994
+ "aria-selected": C($),
2995
+ onClick: (I) => m($),
977
2996
  onKeyup: [
978
- K((F) => y(C), ["enter"]),
979
- K((F) => y(C), ["space"])
2997
+ xe((I) => m($), ["enter"]),
2998
+ xe((I) => m($), ["space"])
980
2999
  ]
981
3000
  }, [
982
- m(b.$slots, "default", {
983
- text: G(C, "name"),
984
- option: C,
985
- isSelect: S
3001
+ M(f.$slots, "default", {
3002
+ text: R($, "name"),
3003
+ option: $,
3004
+ isSelect: C
986
3005
  }, () => [
987
- N(x(G(C, "name")), 1)
3006
+ ce(D(R($, "name")), 1)
988
3007
  ])
989
- ], 44, vn))), 128)),
990
- $(o).length ? T("", !0) : (s(), r("li", $n, [
991
- m(b.$slots, "no-data", {}, () => [
992
- bn
3008
+ ], 44, va))), 128)),
3009
+ c(r).length ? W("", !0) : (b(), O("li", ha, [
3010
+ M(f.$slots, "no-data", {}, () => [
3011
+ ma
993
3012
  ])
994
3013
  ]))
995
- ], 8, mn)
3014
+ ], 8, fa)
996
3015
  ], 512), [
997
- [X, l.value]
3016
+ [We, l.value]
998
3017
  ])
999
3018
  ]),
1000
3019
  _: 3
1001
3020
  })
1002
- ], 42, rn));
3021
+ ], 42, sa));
1003
3022
  }
1004
3023
  });
1005
- Se.install = (e) => {
1006
- e.component("SolDropdown", Se);
3024
+ Ft.install = (e) => {
3025
+ e.component("SolDropdown", Ft);
1007
3026
  };
1008
- const yn = {
3027
+ const ya = {
1009
3028
  preserveAspectRatio: "xMidYMid meet",
1010
3029
  viewBox: "0 0 24 24",
1011
3030
  width: "1em",
1012
3031
  height: "1em"
1013
- }, gn = /* @__PURE__ */ u("path", {
3032
+ }, ba = /* @__PURE__ */ S("path", {
1014
3033
  fill: "currentColor",
1015
3034
  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"
1016
- }, null, -1), wn = [
1017
- gn
3035
+ }, null, -1), ga = [
3036
+ ba
1018
3037
  ];
1019
- function kn(e, n) {
1020
- return s(), r("svg", yn, wn);
3038
+ function $a(e, t) {
3039
+ return b(), O("svg", ya, ga);
1021
3040
  }
1022
- const Fe = { name: "mi-close", render: kn }, xn = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"], Sn = ["id"], Cn = { class: "label" }, ce = /* @__PURE__ */ O({
3041
+ const Fn = { name: "mi-close", render: $a }, wa = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"], ka = ["id"], Oa = { class: "label" }, ut = /* @__PURE__ */ U({
1023
3042
  __name: "Chip",
1024
3043
  props: {
1025
3044
  id: null,
@@ -1029,59 +3048,59 @@ const Fe = { name: "mi-close", render: kn }, xn = ["id", "data-testid", "title",
1029
3048
  removable: { type: Boolean, default: !0 }
1030
3049
  },
1031
3050
  emits: ["close", "update:selected"],
1032
- setup(e, { emit: n }) {
1033
- const t = e;
3051
+ setup(e, { emit: t }) {
3052
+ const n = e;
1034
3053
  function i({ code: l }) {
1035
- if (!t.disabled)
3054
+ if (!n.disabled)
1036
3055
  switch (l) {
1037
3056
  case "Enter":
1038
3057
  case "NumpadEnter":
1039
3058
  case "Space":
1040
- return n("update:selected");
3059
+ return t("update:selected");
1041
3060
  case "Delete":
1042
3061
  case "Backspace":
1043
- return t.removable && n("close");
3062
+ return n.removable && t("close");
1044
3063
  default:
1045
3064
  return !1;
1046
3065
  }
1047
3066
  }
1048
- return (l, a) => (s(), r("div", {
3067
+ return (l, a) => (b(), O("div", {
1049
3068
  id: `chip-${e.id}`,
1050
3069
  "data-testid": `chip-${e.id}`,
1051
- class: k(["sol-chip-core", { "-selected": e.selected, "-disabled": e.disabled }]),
3070
+ class: N(["sol-chip-core", { "-selected": e.selected, "-disabled": e.disabled }]),
1052
3071
  tabindex: "0",
1053
3072
  title: e.label,
1054
3073
  "aria-describedby": `chip-description-${e.id}`,
1055
3074
  "aria-disabled": e.disabled,
1056
- onClick: a[1] || (a[1] = (o) => n("update:selected")),
1057
- onKeydown: q(i, ["self"])
3075
+ onClick: a[1] || (a[1] = (r) => t("update:selected")),
3076
+ onKeydown: Oe(i, ["self"])
1058
3077
  }, [
1059
- u("span", {
3078
+ S("span", {
1060
3079
  id: `chip-description-${e.id}`,
1061
3080
  "z-index": "-1",
1062
3081
  class: "sr-only"
1063
- }, "Press Delete or Backspace to remove this Chip", 8, Sn),
1064
- u("span", Cn, [
1065
- m(l.$slots, "default", {}, () => [
1066
- N(x(e.label), 1)
3082
+ }, "Press Delete or Backspace to remove this Chip", 8, ka),
3083
+ S("span", Oa, [
3084
+ M(l.$slots, "default", {}, () => [
3085
+ ce(D(e.label), 1)
1067
3086
  ])
1068
3087
  ]),
1069
- e.removable ? (s(), r("i", {
3088
+ e.removable ? (b(), O("i", {
1070
3089
  key: 0,
1071
3090
  role: "presentation",
1072
3091
  "aira-hidden": "true",
1073
3092
  class: "close",
1074
- onClick: a[0] || (a[0] = q((o) => n("close"), ["stop"]))
3093
+ onClick: a[0] || (a[0] = Oe((r) => t("close"), ["stop"]))
1075
3094
  }, [
1076
- L($(Fe), { class: "icon" })
1077
- ])) : T("", !0)
1078
- ], 42, xn));
3095
+ Y(c(Fn), { class: "icon" })
3096
+ ])) : W("", !0)
3097
+ ], 42, wa));
1079
3098
  }
1080
3099
  });
1081
- const In = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], Bn = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], On = {
3100
+ const Sa = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], xa = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], pa = {
1082
3101
  key: 0,
1083
3102
  class: "no-data"
1084
- }, Mn = /* @__PURE__ */ N(" Sem dados "), Tn = /* @__PURE__ */ O({
3103
+ }, Ca = /* @__PURE__ */ ce(" Sem dados "), Va = /* @__PURE__ */ U({
1085
3104
  __name: "ListOption",
1086
3105
  props: {
1087
3106
  id: null,
@@ -1090,11 +3109,11 @@ const In = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], Bn
1090
3109
  isSelected: null
1091
3110
  },
1092
3111
  emits: ["select"],
1093
- setup(e, { expose: n, emit: t }) {
1094
- const i = V("");
1095
- return n({
3112
+ setup(e, { expose: t, emit: n }) {
3113
+ const i = z("");
3114
+ return t({
1096
3115
  list: i
1097
- }), (l, a) => (s(), r("ul", {
3116
+ }), (l, a) => (b(), O("ul", {
1098
3117
  id: `select-list-${e.id}`,
1099
3118
  ref_key: "list",
1100
3119
  ref: i,
@@ -1105,119 +3124,119 @@ const In = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], Bn
1105
3124
  "aria-labelledby": `select-label-${e.id}`,
1106
3125
  class: "select-list-core"
1107
3126
  }, [
1108
- (s(!0), r(j, null, Z(e.options, (o, d) => (s(), r("li", {
1109
- id: `option-${e.id}-${o.value}`,
1110
- key: d,
1111
- "data-testid": `option-${e.id}-${o.value}`,
3127
+ (b(!0), O(ze, null, Re(e.options, (r, o) => (b(), O("li", {
3128
+ id: `option-${e.id}-${r.value}`,
3129
+ key: o,
3130
+ "data-testid": `option-${e.id}-${r.value}`,
1112
3131
  role: "option",
1113
3132
  tabindex: "-1",
1114
3133
  class: "select-option-item",
1115
- style: ae(`--item: ${d + 1}`),
1116
- selected: e.isSelected(o),
1117
- "aria-selected": e.isSelected(o),
1118
- onClick: (c) => t("select", o),
3134
+ style: it(`--item: ${o + 1}`),
3135
+ selected: e.isSelected(r),
3136
+ "aria-selected": e.isSelected(r),
3137
+ onClick: (s) => n("select", r),
1119
3138
  onKeyup: [
1120
- K((c) => t("select", o), ["enter"]),
1121
- K((c) => t("select", o), ["space"])
3139
+ xe((s) => n("select", r), ["enter"]),
3140
+ xe((s) => n("select", r), ["space"])
1122
3141
  ]
1123
3142
  }, [
1124
- m(l.$slots, "item-list", {
1125
- text: o.name,
1126
- value: o.value,
1127
- option: o,
1128
- isSelected: e.isSelected(o)
3143
+ M(l.$slots, "item-list", {
3144
+ text: r.name,
3145
+ value: r.value,
3146
+ option: r,
3147
+ isSelected: e.isSelected(r)
1129
3148
  }, () => [
1130
- N(x(o.name), 1)
3149
+ ce(D(r.name), 1)
1131
3150
  ])
1132
- ], 44, Bn))), 128)),
1133
- e.options.length ? T("", !0) : (s(), r("li", On, [
1134
- m(l.$slots, "no-data", {}, () => [
1135
- Mn
3151
+ ], 44, xa))), 128)),
3152
+ e.options.length ? W("", !0) : (b(), O("li", pa, [
3153
+ M(l.$slots, "no-data", {}, () => [
3154
+ Ca
1136
3155
  ])
1137
3156
  ]))
1138
- ], 8, In));
3157
+ ], 8, Sa));
1139
3158
  }
1140
3159
  });
1141
- const Ln = {
3160
+ const Aa = {
1142
3161
  preserveAspectRatio: "xMidYMid meet",
1143
3162
  viewBox: "0 0 24 24",
1144
3163
  width: "1em",
1145
3164
  height: "1em"
1146
- }, Pn = /* @__PURE__ */ u("path", {
3165
+ }, Ia = /* @__PURE__ */ S("path", {
1147
3166
  fill: "currentColor",
1148
3167
  d: "m17 10l-5 6l-5-6h10z"
1149
- }, null, -1), Vn = [
1150
- Pn
3168
+ }, null, -1), Ea = [
3169
+ Ia
1151
3170
  ];
1152
- function An(e, n) {
1153
- return s(), r("svg", Ln, Vn);
3171
+ function Fa(e, t) {
3172
+ return b(), O("svg", Aa, Ea);
1154
3173
  }
1155
- const zn = { name: "mi-caret-down", render: An };
1156
- function qe(e, n) {
1157
- function t({ code: i }) {
1158
- var o;
3174
+ const Ba = { name: "mi-caret-down", render: Fa };
3175
+ function Bn(e, t) {
3176
+ function n({ code: i }) {
3177
+ var r;
1159
3178
  const l = i;
1160
3179
  (() => {
1161
- if (!(n != null && n.fallback))
3180
+ if (!(t != null && t.fallback))
1162
3181
  return !1;
1163
- const d = (c) => Array.isArray(c) ? !c.includes(l) : l !== c;
1164
- return n != null && n.exclude ? !e.hasOwnProperty(l) && d(n.exclude) : !e.hasOwnProperty(l);
1165
- })() && (n == null || n.fallback()), e.hasOwnProperty(l) && ((o = e[l]) == null || o.call(e));
3182
+ const o = (s) => Array.isArray(s) ? !s.includes(l) : l !== s;
3183
+ return t != null && t.exclude ? !e.hasOwnProperty(l) && o(t.exclude) : !e.hasOwnProperty(l);
3184
+ })() && (t == null || t.fallback()), e.hasOwnProperty(l) && ((r = e[l]) == null || r.call(e));
1166
3185
  }
1167
3186
  return {
1168
- navigate: t
3187
+ navigate: n
1169
3188
  };
1170
3189
  }
1171
- function Ke({ target: e, query: n }) {
1172
- const t = ie({
3190
+ function Tn({ target: e, query: t }) {
3191
+ const n = Se({
1173
3192
  id: "",
1174
3193
  index: -1
1175
3194
  });
1176
- function i(f) {
1177
- const I = f != null ? f : t.index, y = e == null ? void 0 : e.value;
1178
- f !== void 0 && (t.index = f), setTimeout(() => {
1179
- var M;
1180
- const S = y.children[I], B = n && S.querySelector(n) ? S.querySelector(n) : S;
1181
- t.id = (M = S == null ? void 0 : S.id) != null ? M : "", B == null || B.focus();
3195
+ function i(v) {
3196
+ const g = v != null ? v : n.index, m = e == null ? void 0 : e.value;
3197
+ v !== void 0 && (n.index = v), setTimeout(() => {
3198
+ var E;
3199
+ const C = m.children[g], F = t && C.querySelector(t) ? C.querySelector(t) : C;
3200
+ n.id = (E = C == null ? void 0 : C.id) != null ? E : "", F == null || F.focus();
1182
3201
  }, 0);
1183
3202
  }
1184
3203
  function l() {
1185
- t.index > 0 && (t.index -= 1, i());
3204
+ n.index > 0 && (n.index -= 1, i());
1186
3205
  }
1187
- function a(f) {
1188
- t.index < f - 1 && (t.index += 1, i());
3206
+ function a(v) {
3207
+ n.index < v - 1 && (n.index += 1, i());
1189
3208
  }
1190
- function o() {
3209
+ function r() {
1191
3210
  i(0);
1192
3211
  }
1193
- function d(f) {
1194
- i(f - 1);
3212
+ function o(v) {
3213
+ i(v - 1);
1195
3214
  }
1196
- function c(f) {
1197
- return f.id ? f.id === t.id : f.index === t.index;
3215
+ function s(v) {
3216
+ return v.id ? v.id === n.id : v.index === n.index;
1198
3217
  }
1199
- function h() {
1200
- t.id = "", t.index = -1;
3218
+ function u() {
3219
+ n.id = "", n.index = -1;
1201
3220
  }
1202
3221
  return {
1203
- elementFocus: t,
1204
- isItemFocused: c,
1205
- resetStateFocus: h,
3222
+ elementFocus: n,
3223
+ isItemFocused: s,
3224
+ resetStateFocus: u,
1206
3225
  focusListItem: i,
1207
3226
  focusOnPreviousItem: l,
1208
3227
  focusOnNextItem: a,
1209
- focusOnFirstItem: o,
1210
- focusOnLastItem: d
3228
+ focusOnFirstItem: r,
3229
+ focusOnLastItem: o
1211
3230
  };
1212
3231
  }
1213
- const En = ["data-testid"], Dn = ["id"], Nn = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], Rn = {
3232
+ const Ta = ["data-testid"], Ma = ["id"], Pa = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], ja = {
1214
3233
  key: 0,
1215
3234
  class: "container-tags"
1216
- }, Hn = {
3235
+ }, Na = {
1217
3236
  key: 1,
1218
3237
  class: "mr-micro placeholder-inline",
1219
3238
  tabindex: "-1"
1220
- }, pn = { class: "error" }, Fn = { class: "select-options-container" }, Ce = /* @__PURE__ */ O({
3239
+ }, La = { class: "error" }, Da = { class: "select-options-container" }, Bt = /* @__PURE__ */ U({
1221
3240
  __name: "Select",
1222
3241
  props: {
1223
3242
  id: null,
@@ -1237,96 +3256,96 @@ const En = ["data-testid"], Dn = ["id"], Nn = ["id", "disabled", "data-testid",
1237
3256
  placeholder: { default: "placeholder" }
1238
3257
  },
1239
3258
  emits: ["closeDropdown", "search", "update:selected"],
1240
- setup(e, { emit: n }) {
1241
- const t = e, i = V(), l = V(!1), a = V(""), o = D(
3259
+ setup(e, { emit: t }) {
3260
+ const n = e, i = z(), l = z(!1), a = z(""), r = j(
1242
3261
  () => {
1243
- var g;
1244
- return t.fetchOnSearch ? t.options : (g = t.options) == null ? void 0 : g.filter((w) => w.name.includes(a.value));
3262
+ var x;
3263
+ return n.fetchOnSearch ? n.options : (x = n.options) == null ? void 0 : x.filter((V) => V.name.includes(a.value));
1245
3264
  }
1246
3265
  );
1247
- Te(i, () => {
1248
- l.value && h();
3266
+ Ht(i, () => {
3267
+ l.value && u();
1249
3268
  });
1250
- function d() {
1251
- t.disabled || (l.value ? h() : c());
3269
+ function o() {
3270
+ n.disabled || (l.value ? u() : s());
1252
3271
  }
1253
- function c() {
3272
+ function s() {
1254
3273
  l.value = !0;
1255
3274
  }
1256
- function h() {
1257
- P(), n("closeDropdown");
3275
+ function u() {
3276
+ p(), t("closeDropdown");
1258
3277
  }
1259
- function f(g) {
1260
- if (Array.isArray(t.selected)) {
1261
- const w = t.selected.findIndex(
1262
- ({ value: A }) => A === g.value
3278
+ function v(x) {
3279
+ if (Array.isArray(n.selected)) {
3280
+ const V = n.selected.findIndex(
3281
+ ({ value: P }) => P === x.value
1263
3282
  );
1264
- return w === -1 ? [...t.selected, g] : t.selected.filter((A, z) => z !== w);
3283
+ return V === -1 ? [...n.selected, x] : n.selected.filter((P, G) => G !== V);
1265
3284
  }
1266
- return [g];
3285
+ return [x];
1267
3286
  }
1268
- function I(g) {
1269
- t.multiple ? n("update:selected", f(g)) : n("update:selected", g), t.closeOnSelect && !t.multiple && h();
3287
+ function g(x) {
3288
+ n.multiple ? t("update:selected", v(x)) : t("update:selected", x), n.closeOnSelect && !n.multiple && u();
1270
3289
  }
1271
- function y(g) {
1272
- var w;
1273
- return Array.isArray(t.selected) ? t.selected.some(({ value: A }) => A === g.value) : g.value === ((w = t.selected) == null ? void 0 : w.value);
3290
+ function m(x) {
3291
+ var V;
3292
+ return Array.isArray(n.selected) ? n.selected.some(({ value: P }) => P === x.value) : x.value === ((V = n.selected) == null ? void 0 : V.value);
1274
3293
  }
1275
- const S = V(), B = V();
1276
- function M() {
1277
- var g;
1278
- t.searchable && (v(), (g = S.value) == null || g.focus());
3294
+ const C = z(), F = z();
3295
+ function E() {
3296
+ var x;
3297
+ n.searchable && (y(), (x = C.value) == null || x.focus());
1279
3298
  }
1280
3299
  const {
1281
- elementFocus: R,
1282
- focusOnFirstItem: he,
1283
- focusOnLastItem: G,
1284
- focusOnNextItem: ne,
1285
- focusOnPreviousItem: b,
1286
- resetStateFocus: v
1287
- } = Ke({ target: B }), { navigate: C } = qe({
1288
- Home: he,
1289
- End: () => G(t.options.length),
1290
- ArrowUp: b,
3300
+ elementFocus: H,
3301
+ focusOnFirstItem: J,
3302
+ focusOnLastItem: R,
3303
+ focusOnNextItem: k,
3304
+ focusOnPreviousItem: f,
3305
+ resetStateFocus: y
3306
+ } = Tn({ target: F }), { navigate: $ } = Bn({
3307
+ Home: J,
3308
+ End: () => R(n.options.length),
3309
+ ArrowUp: f,
1291
3310
  ArrowDown: () => {
1292
- !l.value && c(), ne(t.options.length);
3311
+ !l.value && s(), k(n.options.length);
1293
3312
  },
1294
- Escape: h
3313
+ Escape: u
1295
3314
  }, {
1296
- fallback: M,
3315
+ fallback: E,
1297
3316
  exclude: ["Enter", "NumpadEnter", "Space"]
1298
3317
  });
1299
- function P() {
1300
- l.value = !1, a.value = "", v();
3318
+ function p() {
3319
+ l.value = !1, a.value = "", y();
1301
3320
  }
1302
- function F(g) {
1303
- return (w) => {
1304
- g === "search" ? S.value = w == null ? void 0 : w.input : B.value = w == null ? void 0 : w.list;
3321
+ function I(x) {
3322
+ return (V) => {
3323
+ x === "search" ? C.value = V == null ? void 0 : V.input : F.value = V == null ? void 0 : V.list;
1305
3324
  };
1306
3325
  }
1307
- function p() {
1308
- var w;
1309
- const g = t.selected;
1310
- return (w = g == null ? void 0 : g.name) != null ? w : t.placeholder;
3326
+ function L() {
3327
+ var V;
3328
+ const x = n.selected;
3329
+ return (V = x == null ? void 0 : x.name) != null ? V : n.placeholder;
1311
3330
  }
1312
- return (g, w) => (s(), r("div", {
3331
+ return (x, V) => (b(), O("div", {
1313
3332
  ref_key: "el",
1314
3333
  ref: i,
1315
- class: k(["sol-select-core", { "-smaller": e.smallerWidth }]),
3334
+ class: N(["sol-select-core", { "-smaller": e.smallerWidth }]),
1316
3335
  "data-testid": `select-${e.id}`,
1317
- onKeydownPassive: w[3] || (w[3] = (...A) => $(C) && $(C)(...A))
3336
+ onKeydownPassive: V[3] || (V[3] = (...P) => c($) && c($)(...P))
1318
3337
  }, [
1319
- m(g.$slots, "label", {
3338
+ M(x.$slots, "label", {
1320
3339
  id: `select-label-${e.id}`,
1321
3340
  for: `select-toggle-${e.id}`
1322
3341
  }, () => [
1323
- e.label ? (s(), r("label", {
3342
+ e.label ? (b(), O("label", {
1324
3343
  key: 0,
1325
3344
  id: `select-label-${e.id}`,
1326
- class: k(["label", { "-disabled": e.disabled }])
1327
- }, x(e.label), 11, Dn)) : T("", !0)
3345
+ class: N(["label", { "-disabled": e.disabled }])
3346
+ }, D(e.label), 11, Ma)) : W("", !0)
1328
3347
  ]),
1329
- u("button", {
3348
+ S("button", {
1330
3349
  id: `select-toggle-${e.id}`,
1331
3350
  disabled: e.disabled,
1332
3351
  "data-testid": `select-toggle-${e.id}`,
@@ -1336,51 +3355,51 @@ const En = ["data-testid"], Dn = ["id"], Nn = ["id", "disabled", "data-testid",
1336
3355
  "aria-labelledby": `select-label-${e.id}`,
1337
3356
  "aria-label": e.ariaLabel,
1338
3357
  "aria-controls": `select-list-${e.id}`,
1339
- onClick: q(d, ["stop"])
3358
+ onClick: Oe(o, ["stop"])
1340
3359
  }, [
1341
- m(g.$slots, "toggle-dropdown", {
1342
- toggle: { open: c, close: h, toggleDropdown: d },
3360
+ M(x.$slots, "toggle-dropdown", {
3361
+ toggle: { open: s, close: u, toggleDropdown: o },
1343
3362
  isOpen: l.value,
1344
- select: I,
3363
+ select: g,
1345
3364
  selected: e.selected
1346
3365
  }, () => {
1347
- var A;
3366
+ var P;
1348
3367
  return [
1349
- e.multiple && Array.isArray(e.selected) && ((A = e.selected) == null ? void 0 : A.length) ? (s(), r("div", Rn, [
1350
- (s(!0), r(j, null, Z(e.selected, (z, fe) => (s(), H(ce, {
1351
- id: z.value,
1352
- key: fe,
1353
- label: z.name,
1354
- onClick: q((me) => I(z), ["stop"]),
1355
- onClose: (me) => I(z)
3368
+ e.multiple && Array.isArray(e.selected) && ((P = e.selected) == null ? void 0 : P.length) ? (b(), O("div", ja, [
3369
+ (b(!0), O(ze, null, Re(e.selected, (G, ne) => (b(), re(ut, {
3370
+ id: G.value,
3371
+ key: ne,
3372
+ label: G.name,
3373
+ onClick: Oe((ee) => g(G), ["stop"]),
3374
+ onClose: (ee) => g(G)
1356
3375
  }, null, 8, ["id", "label", "onClick", "onClose"]))), 128))
1357
- ])) : (s(), r("span", Hn, x(p()), 1)),
1358
- L($(zn), {
3376
+ ])) : (b(), O("span", Na, D(L()), 1)),
3377
+ Y(c(Ba), {
1359
3378
  "aria-hidden": "true",
1360
3379
  tabindex: "-1",
1361
- class: k(["icon", { "-open": l.value }])
3380
+ class: N(["icon", { "-open": l.value }])
1362
3381
  }, null, 8, ["class"])
1363
3382
  ];
1364
3383
  })
1365
- ], 8, Nn),
1366
- u("span", pn, x(e.error), 1),
1367
- L(Me, {
3384
+ ], 8, Pa),
3385
+ S("span", La, D(e.error), 1),
3386
+ Y(Lt, {
1368
3387
  mode: "out-in",
1369
3388
  name: "dropdown"
1370
3389
  }, {
1371
- default: E(() => [
1372
- Y(u("div", Fn, [
1373
- m(g.$slots, "search", {}, () => [
1374
- e.searchable ? (s(), r("div", {
3390
+ default: oe(() => [
3391
+ je(S("div", Da, [
3392
+ M(x.$slots, "search", {}, () => [
3393
+ e.searchable ? (b(), O("div", {
1375
3394
  key: 0,
1376
- class: k(["search-container", { "-loading": e.loading }])
3395
+ class: N(["search-container", { "-loading": e.loading }])
1377
3396
  }, [
1378
- m(g.$slots, "search", { filter: a.value }, () => [
1379
- L(W, {
3397
+ M(x.$slots, "search", { filter: a.value }, () => [
3398
+ Y(Dt, {
1380
3399
  id: `select-search-${e.id}`,
1381
- ref: F("search"),
3400
+ ref: I("search"),
1382
3401
  modelValue: a.value,
1383
- "onUpdate:modelValue": w[0] || (w[0] = (A) => a.value = A),
3402
+ "onUpdate:modelValue": V[0] || (V[0] = (P) => a.value = P),
1384
3403
  "data-testid": `select-search-${e.id}`,
1385
3404
  role: "combobox",
1386
3405
  class: "search",
@@ -1390,73 +3409,73 @@ const En = ["data-testid"], Dn = ["id"], Nn = ["id", "disabled", "data-testid",
1390
3409
  "aria-haspopup": "listbox",
1391
3410
  "aria-owns": `select-list-${e.id}`,
1392
3411
  "aria-controls": `select-list-${e.id}`,
1393
- "aria-activedescendant": $(R).id,
3412
+ "aria-activedescendant": c(H).id,
1394
3413
  "aria-labelledby": `select-label-${e.id}`,
1395
- onClick: w[1] || (w[1] = q(() => {
3414
+ onClick: V[1] || (V[1] = Oe(() => {
1396
3415
  }, ["stop"])),
1397
- onInput: w[2] || (w[2] = (A) => {
1398
- var z;
1399
- return n("search", (z = A.target) == null ? void 0 : z.value);
3416
+ onInput: V[2] || (V[2] = (P) => {
3417
+ var G;
3418
+ return t("search", (G = P.target) == null ? void 0 : G.value);
1400
3419
  })
1401
3420
  }, null, 8, ["id", "modelValue", "data-testid", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
1402
- L($(pe), {
3421
+ Y(c(En), {
1403
3422
  "aria-hidden": "true",
1404
3423
  class: "icon"
1405
3424
  })
1406
3425
  ])
1407
- ], 2)) : T("", !0),
1408
- L(Tn, {
3426
+ ], 2)) : W("", !0),
3427
+ Y(Va, {
1409
3428
  id: e.id,
1410
- ref: F("list"),
1411
- options: $(o),
3429
+ ref: I("list"),
3430
+ options: c(r),
1412
3431
  multiple: e.multiple,
1413
- "is-selected": y,
1414
- onSelect: I
3432
+ "is-selected": m,
3433
+ onSelect: g
1415
3434
  }, {
1416
- "item-list": E(({ text: A, value: z, option: fe, isSelected: me }) => [
1417
- m(g.$slots, "default", {
1418
- text: A,
1419
- value: z,
1420
- option: fe,
1421
- isSelected: me
3435
+ "item-list": oe(({ text: P, value: G, option: ne, isSelected: ee }) => [
3436
+ M(x.$slots, "default", {
3437
+ text: P,
3438
+ value: G,
3439
+ option: ne,
3440
+ isSelected: ee
1422
3441
  })
1423
3442
  ]),
1424
- "no-data": E(() => [
1425
- m(g.$slots, "no-data")
3443
+ "no-data": oe(() => [
3444
+ M(x.$slots, "no-data")
1426
3445
  ]),
1427
3446
  _: 3
1428
3447
  }, 8, ["id", "options", "multiple"])
1429
3448
  ])
1430
3449
  ], 512), [
1431
- [X, l.value]
3450
+ [We, l.value]
1432
3451
  ])
1433
3452
  ]),
1434
3453
  _: 3
1435
3454
  })
1436
- ], 42, En));
3455
+ ], 42, Ta));
1437
3456
  }
1438
3457
  });
1439
- Ce.install = (e) => {
1440
- e.component("SolSelect", Ce);
3458
+ Bt.install = (e) => {
3459
+ e.component("SolSelect", Bt);
1441
3460
  };
1442
- ce.install = (e) => {
1443
- e.component("SolChip", ce);
3461
+ ut.install = (e) => {
3462
+ e.component("SolChip", ut);
1444
3463
  };
1445
- const qn = {
3464
+ const za = {
1446
3465
  preserveAspectRatio: "xMidYMid meet",
1447
3466
  viewBox: "0 0 24 24",
1448
3467
  width: "1em",
1449
3468
  height: "1em"
1450
- }, Kn = /* @__PURE__ */ u("path", {
3469
+ }, Ra = /* @__PURE__ */ S("path", {
1451
3470
  fill: "currentColor",
1452
3471
  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"
1453
- }, null, -1), Un = [
1454
- Kn
3472
+ }, null, -1), Ua = [
3473
+ Ra
1455
3474
  ];
1456
- function Gn(e, n) {
1457
- return s(), r("svg", qn, Un);
3475
+ function qa(e, t) {
3476
+ return b(), O("svg", za, Ua);
1458
3477
  }
1459
- const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render: Gn }, Qn = ["id", "data-testid", "aria-disabled"], Yn = ["data-testid", "tabindex"], Wn = { class: "container-title" }, jn = { class: "icon" }, Zn = ["data-testid"], Ie = /* @__PURE__ */ O({
3478
+ const Mn = { name: "material-symbols-keyboard-arrow-down-rounded", render: qa }, Ga = ["id", "data-testid", "aria-disabled"], Ha = ["data-testid", "tabindex"], Ka = { class: "container-title" }, Qa = { class: "icon" }, Wa = ["data-testid"], Tt = /* @__PURE__ */ U({
1460
3479
  __name: "Accordion",
1461
3480
  props: {
1462
3481
  id: null,
@@ -1465,43 +3484,43 @@ const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render: Gn },
1465
3484
  disabled: { type: Boolean }
1466
3485
  },
1467
3486
  setup(e) {
1468
- return (n, t) => (s(), r("details", {
3487
+ return (t, n) => (b(), O("details", {
1469
3488
  id: `accordion-${e.id}`,
1470
3489
  "data-testid": `accordion-${e.id}`,
1471
- class: k(["sol-accordion-core", { "-on-color": e.onColor, "-disabled": e.disabled }]),
3490
+ class: N(["sol-accordion-core", { "-on-color": e.onColor, "-disabled": e.disabled }]),
1472
3491
  "aria-disabled": e.disabled
1473
3492
  }, [
1474
- u("summary", {
3493
+ S("summary", {
1475
3494
  "data-testid": `accordion-title-${e.id}`,
1476
3495
  class: "summary",
1477
3496
  tabindex: e.disabled ? -1 : 0
1478
3497
  }, [
1479
- u("div", Wn, [
1480
- u("span", jn, [
1481
- m(n.$slots, "icon")
3498
+ S("div", Ka, [
3499
+ S("span", Qa, [
3500
+ M(t.$slots, "icon")
1482
3501
  ]),
1483
- m(n.$slots, "title", {}, () => [
1484
- N(x(e.title), 1)
3502
+ M(t.$slots, "title", {}, () => [
3503
+ ce(D(e.title), 1)
1485
3504
  ])
1486
3505
  ]),
1487
- L($(Ue), {
3506
+ Y(c(Mn), {
1488
3507
  class: "icon",
1489
3508
  "aria-hidden": "true"
1490
3509
  })
1491
- ], 8, Yn),
1492
- u("div", {
3510
+ ], 8, Ha),
3511
+ S("div", {
1493
3512
  "data-testid": `accordion-content-${e.id}`,
1494
3513
  class: "accordion-content"
1495
3514
  }, [
1496
- m(n.$slots, "default")
1497
- ], 8, Zn)
1498
- ], 10, Qn));
3515
+ M(t.$slots, "default")
3516
+ ], 8, Wa)
3517
+ ], 10, Ga));
1499
3518
  }
1500
3519
  });
1501
- Ie.install = (e) => {
1502
- e.component("SolAccordion", Ie);
3520
+ Tt.install = (e) => {
3521
+ e.component("SolAccordion", Tt);
1503
3522
  };
1504
- const Jn = ["id", "data-testid"], Xn = ["id", "aria-expanded"], _n = ["id", "data-testid", "aria-labelledby"], re = /* @__PURE__ */ O({
3523
+ const Ya = ["id", "data-testid"], Za = ["id", "aria-expanded"], Ja = ["id", "data-testid", "aria-labelledby"], dt = /* @__PURE__ */ U({
1505
3524
  __name: "Menu",
1506
3525
  props: {
1507
3526
  id: null,
@@ -1509,77 +3528,77 @@ const Jn = ["id", "data-testid"], Xn = ["id", "aria-expanded"], _n = ["id", "dat
1509
3528
  position: { default: "bottom" }
1510
3529
  },
1511
3530
  setup(e) {
1512
- const n = V();
1513
- Te(n, () => {
1514
- I();
3531
+ const t = z();
3532
+ Ht(t, () => {
3533
+ g();
1515
3534
  });
1516
- const t = V(!1), i = V(), l = D(
3535
+ const n = z(!1), i = z(), l = j(
1517
3536
  () => i.value ? i.value.childElementCount : 0
1518
3537
  ), {
1519
3538
  resetStateFocus: a,
1520
- focusOnPreviousItem: o,
1521
- focusOnNextItem: d,
1522
- focusOnFirstItem: c,
1523
- focusOnLastItem: h
1524
- } = Ke({ target: i, query: '[role="menuitem"]' }), { navigate: f } = qe({
1525
- Home: c,
1526
- End: () => h(l.value),
1527
- ArrowUp: o,
3539
+ focusOnPreviousItem: r,
3540
+ focusOnNextItem: o,
3541
+ focusOnFirstItem: s,
3542
+ focusOnLastItem: u
3543
+ } = Tn({ target: i, query: '[role="menuitem"]' }), { navigate: v } = Bn({
3544
+ Home: s,
3545
+ End: () => u(l.value),
3546
+ ArrowUp: r,
1528
3547
  ArrowDown: () => {
1529
- !t.value && y(), d(l.value);
3548
+ !n.value && m(), o(l.value);
1530
3549
  },
1531
- Escape: I
3550
+ Escape: g
1532
3551
  });
1533
- function I() {
1534
- t.value = !1, a();
3552
+ function g() {
3553
+ n.value = !1, a();
1535
3554
  }
1536
- function y() {
1537
- t.value = !0;
3555
+ function m() {
3556
+ n.value = !0;
1538
3557
  }
1539
- function S() {
1540
- t.value ? I() : y();
3558
+ function C() {
3559
+ n.value ? g() : m();
1541
3560
  }
1542
- return (B, M) => (s(), r("div", {
3561
+ return (F, E) => (b(), O("div", {
1543
3562
  id: `menu-${e.id}`,
1544
3563
  ref_key: "el",
1545
- ref: n,
3564
+ ref: t,
1546
3565
  "data-testid": `menu-${e.id}`,
1547
- class: k([`-${e.position}`, "sol-menu-core"]),
1548
- onKeyupPassive: M[0] || (M[0] = (...R) => $(f) && $(f)(...R))
3566
+ class: N([`-${e.position}`, "sol-menu-core"]),
3567
+ onKeyupPassive: E[0] || (E[0] = (...H) => c(v) && c(v)(...H))
1549
3568
  }, [
1550
- u("button", {
3569
+ S("button", {
1551
3570
  id: `menu-button-${e.id}`,
1552
3571
  type: "button",
1553
3572
  role: "menuitem",
1554
3573
  class: "toggle-menu",
1555
3574
  "aria-haspopup": "true",
1556
- "aria-expanded": t.value,
1557
- onClick: S
3575
+ "aria-expanded": n.value,
3576
+ onClick: C
1558
3577
  }, [
1559
- m(B.$slots, "label", { isOpen: t.value }, () => [
1560
- N(x(e.label), 1)
3578
+ M(F.$slots, "label", { isOpen: n.value }, () => [
3579
+ ce(D(e.label), 1)
1561
3580
  ])
1562
- ], 8, Xn),
1563
- Y(u("menu", {
3581
+ ], 8, Za),
3582
+ je(S("menu", {
1564
3583
  id: `menu-container-${e.id}`,
1565
3584
  ref_key: "menu",
1566
3585
  ref: i,
1567
3586
  "data-testid": `menu-container-${e.id}`,
1568
3587
  role: "menu",
1569
3588
  "aria-labelledby": `menu-button-${e.id}`,
1570
- class: k(["menu", { "-open": t.value }])
3589
+ class: N(["menu", { "-open": n.value }])
1571
3590
  }, [
1572
- m(B.$slots, "default", { close: I })
1573
- ], 10, _n), [
1574
- [X, t.value]
3591
+ M(F.$slots, "default", { close: g })
3592
+ ], 10, Ja), [
3593
+ [We, n.value]
1575
3594
  ])
1576
- ], 42, Jn));
3595
+ ], 42, Ya));
1577
3596
  }
1578
3597
  });
1579
- re.install = (e) => {
1580
- e.component("SolMenu", re);
3598
+ dt.install = (e) => {
3599
+ e.component("SolMenu", dt);
1581
3600
  };
1582
- const el = ["id"], tl = ["href", "target"], ue = /* @__PURE__ */ O({
3601
+ const Xa = ["id"], _a = ["href", "target"], ct = /* @__PURE__ */ U({
1583
3602
  __name: "MenuItemLink",
1584
3603
  props: {
1585
3604
  id: null,
@@ -1590,42 +3609,42 @@ const el = ["id"], tl = ["href", "target"], ue = /* @__PURE__ */ O({
1590
3609
  external: null
1591
3610
  },
1592
3611
  emits: ["clicked"],
1593
- setup(e, { emit: n }) {
1594
- return (t, i) => {
3612
+ setup(e, { emit: t }) {
3613
+ return (n, i) => {
1595
3614
  var l;
1596
- return s(), r("li", {
3615
+ return b(), O("li", {
1597
3616
  id: `menu-item-link-${e.id}`,
1598
3617
  class: "sol-menuitem-link-core",
1599
3618
  tabindex: "-1",
1600
3619
  role: "none",
1601
- onClick: i[0] || (i[0] = (a) => n("clicked")),
3620
+ onClick: i[0] || (i[0] = (a) => t("clicked")),
1602
3621
  onKeyup: [
1603
- i[1] || (i[1] = K((a) => n("clicked"), ["enter"])),
1604
- i[2] || (i[2] = K((a) => n("clicked"), ["space"]))
3622
+ i[1] || (i[1] = xe((a) => t("clicked"), ["enter"])),
3623
+ i[2] || (i[2] = xe((a) => t("clicked"), ["space"]))
1605
3624
  ]
1606
3625
  }, [
1607
- m(t.$slots, "default", {
3626
+ M(n.$slots, "default", {
1608
3627
  id: (l = e.linkId) != null ? l : e.id,
1609
3628
  active: e.active,
1610
3629
  link: e.link,
1611
3630
  text: e.text,
1612
3631
  external: e.external
1613
3632
  }, () => [
1614
- u("a", {
3633
+ S("a", {
1615
3634
  role: "menuitem",
1616
- class: k({ "-active": e.active }),
3635
+ class: N({ "-active": e.active }),
1617
3636
  href: e.link,
1618
3637
  target: e.external ? "_blank" : "_parent"
1619
- }, x(e.text), 11, tl)
3638
+ }, D(e.text), 11, _a)
1620
3639
  ])
1621
- ], 40, el);
3640
+ ], 40, Xa);
1622
3641
  };
1623
3642
  }
1624
3643
  });
1625
- ue.install = (e) => {
1626
- e.component("SolMenuItemLink", ue);
3644
+ ct.install = (e) => {
3645
+ e.component("SolMenuItemLink", ct);
1627
3646
  };
1628
- const nl = { class: "label-container" }, ll = { class: "label" }, Be = /* @__PURE__ */ O({
3647
+ const er = { class: "label-container" }, tr = { class: "label" }, Mt = /* @__PURE__ */ U({
1629
3648
  __name: "MenuNavigationLinks",
1630
3649
  props: {
1631
3650
  id: null,
@@ -1633,26 +3652,26 @@ const nl = { class: "label-container" }, ll = { class: "label" }, Be = /* @__PUR
1633
3652
  linkItems: null
1634
3653
  },
1635
3654
  setup(e) {
1636
- return (n, t) => (s(), H(re, {
3655
+ return (t, n) => (b(), re(dt, {
1637
3656
  id: `navigation-${e.id}`,
1638
3657
  class: "sol-menu-navigation-links-core"
1639
3658
  }, {
1640
- label: E(({ isOpen: i }) => [
1641
- m(n.$slots, "label", { isOpen: i }, () => [
1642
- u("div", nl, [
1643
- u("span", ll, x(e.label), 1),
1644
- L($(Ue), {
1645
- class: k(["icon", { "-opened": i }]),
3659
+ label: oe(({ isOpen: i }) => [
3660
+ M(t.$slots, "label", { isOpen: i }, () => [
3661
+ S("div", er, [
3662
+ S("span", tr, D(e.label), 1),
3663
+ Y(c(Mn), {
3664
+ class: N(["icon", { "-opened": i }]),
1646
3665
  "aria-hidden": "true"
1647
3666
  }, null, 8, ["class"])
1648
3667
  ])
1649
3668
  ])
1650
3669
  ]),
1651
- default: E(({ close: i }) => [
1652
- (s(!0), r(j, null, Z(e.linkItems, (l, a) => {
1653
- var o;
1654
- return s(), H(ue, {
1655
- id: `${e.id}-${(o = l == null ? void 0 : l.id) != null ? o : l.text}`,
3670
+ default: oe(({ close: i }) => [
3671
+ (b(!0), O(ze, null, Re(e.linkItems, (l, a) => {
3672
+ var r;
3673
+ return b(), re(ct, {
3674
+ id: `${e.id}-${(r = l == null ? void 0 : l.id) != null ? r : l.text}`,
1656
3675
  key: a,
1657
3676
  "link-id": l.id,
1658
3677
  text: l.text,
@@ -1661,11 +3680,11 @@ const nl = { class: "label-container" }, ll = { class: "label" }, Be = /* @__PUR
1661
3680
  active: l.active,
1662
3681
  onClicked: i
1663
3682
  }, {
1664
- default: E(() => {
1665
- var d;
3683
+ default: oe(() => {
3684
+ var o;
1666
3685
  return [
1667
- m(n.$slots, "default", {
1668
- id: (d = l.id) != null ? d : e.id,
3686
+ M(t.$slots, "default", {
3687
+ id: (o = l.id) != null ? o : e.id,
1669
3688
  active: l.active,
1670
3689
  link: l.link,
1671
3690
  text: l.text,
@@ -1681,10 +3700,10 @@ const nl = { class: "label-container" }, ll = { class: "label" }, Be = /* @__PUR
1681
3700
  }, 8, ["id"]));
1682
3701
  }
1683
3702
  });
1684
- Be.install = (e) => {
1685
- e.component("SolMenuNavigationLinks", Be);
3703
+ Mt.install = (e) => {
3704
+ e.component("SolMenuNavigationLinks", Mt);
1686
3705
  };
1687
- const Ge = 12, Q = {
3706
+ const Pn = 12, Me = {
1688
3707
  type: "success",
1689
3708
  timeout: 5e3,
1690
3709
  showIcon: !0,
@@ -1692,41 +3711,41 @@ const Ge = 12, Q = {
1692
3711
  position: "top-right",
1693
3712
  hideProgressBar: !1
1694
3713
  };
1695
- function il(e, n) {
1696
- const t = ie({
3714
+ function nr(e, t) {
3715
+ const n = Se({
1697
3716
  id: null,
1698
3717
  intervalId: null,
1699
3718
  startTime: 0,
1700
- remaining: n
1701
- }), i = V(100);
3719
+ remaining: t
3720
+ }), i = z(100);
1702
3721
  function l() {
1703
- clearInterval(t.intervalId), clearTimeout(t.id), t.remaining -= Date.now() - t.startTime;
3722
+ clearInterval(n.intervalId), clearTimeout(n.id), n.remaining -= Date.now() - n.startTime;
1704
3723
  }
1705
3724
  function a() {
1706
- t.startTime = Date.now(), clearTimeout(t.id), t.intervalId = setInterval(() => {
3725
+ n.startTime = Date.now(), clearTimeout(n.id), n.intervalId = setInterval(() => {
1707
3726
  i.value--;
1708
- }, n / 100 - 5), t.id = setTimeout(e, t.remaining);
3727
+ }, t / 100 - 5), n.id = setTimeout(e, n.remaining);
1709
3728
  }
1710
- function o() {
1711
- clearInterval(t.intervalId), clearTimeout(t.id), i.value = 100;
3729
+ function r() {
3730
+ clearInterval(n.intervalId), clearTimeout(n.id), i.value = 100;
1712
3731
  }
1713
- return De(() => {
1714
- if (n <= 0)
3732
+ return ft(() => {
3733
+ if (t <= 0)
1715
3734
  return !1;
1716
- }), Xe(() => {
1717
- o();
3735
+ }), Nt(() => {
3736
+ r();
1718
3737
  }), {
1719
3738
  start: a,
1720
3739
  stop: l,
1721
- clear: o,
3740
+ clear: r,
1722
3741
  progress: i
1723
3742
  };
1724
3743
  }
1725
- function al(e) {
3744
+ function lr(e) {
1726
3745
  return {
1727
- stylePosition: D(() => {
1728
- const { position: t, offset: i } = e();
1729
- switch (t) {
3746
+ stylePosition: j(() => {
3747
+ const { position: n, offset: i } = e();
3748
+ switch (n) {
1730
3749
  case "top-left":
1731
3750
  return {
1732
3751
  left: "0",
@@ -1767,163 +3786,163 @@ function al(e) {
1767
3786
  })
1768
3787
  };
1769
3788
  }
1770
- var Qe = /* @__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))(Qe || {});
1771
- const ol = {
3789
+ var jn = /* @__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))(jn || {});
3790
+ const ir = {
1772
3791
  preserveAspectRatio: "xMidYMid meet",
1773
3792
  viewBox: "0 0 24 24",
1774
3793
  width: "1em",
1775
3794
  height: "1em"
1776
- }, sl = /* @__PURE__ */ u("path", {
3795
+ }, ar = /* @__PURE__ */ S("path", {
1777
3796
  fill: "currentColor",
1778
3797
  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"
1779
- }, null, -1), dl = [
1780
- sl
3798
+ }, null, -1), rr = [
3799
+ ar
1781
3800
  ];
1782
- function cl(e, n) {
1783
- return s(), r("svg", ol, dl);
3801
+ function or(e, t) {
3802
+ return b(), O("svg", ir, rr);
1784
3803
  }
1785
- const rl = { name: "mi-circle-check", render: cl }, ul = {
3804
+ const sr = { name: "mi-circle-check", render: or }, ur = {
1786
3805
  preserveAspectRatio: "xMidYMid meet",
1787
3806
  viewBox: "0 0 24 24",
1788
3807
  width: "1em",
1789
3808
  height: "1em"
1790
- }, hl = /* @__PURE__ */ u("path", {
3809
+ }, dr = /* @__PURE__ */ S("path", {
1791
3810
  fill: "currentColor",
1792
3811
  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"
1793
- }, null, -1), fl = [
1794
- hl
3812
+ }, null, -1), cr = [
3813
+ dr
1795
3814
  ];
1796
- function ml(e, n) {
1797
- return s(), r("svg", ul, fl);
3815
+ function fr(e, t) {
3816
+ return b(), O("svg", ur, cr);
1798
3817
  }
1799
- const vl = { name: "mi-circle-error", render: ml }, $l = {
3818
+ const vr = { name: "mi-circle-error", render: fr }, hr = {
1800
3819
  preserveAspectRatio: "xMidYMid meet",
1801
3820
  viewBox: "0 0 24 24",
1802
3821
  width: "1em",
1803
3822
  height: "1em"
1804
- }, bl = /* @__PURE__ */ u("g", { fill: "currentColor" }, [
1805
- /* @__PURE__ */ u("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" }),
1806
- /* @__PURE__ */ u("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" })
1807
- ], -1), yl = [
1808
- bl
3823
+ }, mr = /* @__PURE__ */ S("g", { fill: "currentColor" }, [
3824
+ /* @__PURE__ */ S("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" }),
3825
+ /* @__PURE__ */ S("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" })
3826
+ ], -1), yr = [
3827
+ mr
1809
3828
  ];
1810
- function gl(e, n) {
1811
- return s(), r("svg", $l, yl);
3829
+ function br(e, t) {
3830
+ return b(), O("svg", hr, yr);
1812
3831
  }
1813
- const wl = { name: "mi-circle-warning", render: gl }, kl = ["id", "data-testid"], xl = { class: "content-wrapper" }, Sl = {
3832
+ const gr = { name: "mi-circle-warning", render: br }, $r = ["id", "data-testid"], wr = { class: "content-wrapper" }, kr = {
1814
3833
  key: 0,
1815
3834
  class: "icon-container",
1816
3835
  "aria-hidden": "true"
1817
- }, Cl = { class: "content" }, Il = {
3836
+ }, Or = { class: "content" }, Sr = {
1818
3837
  key: 0,
1819
3838
  class: "description"
1820
- }, Bl = ["data-testid"], Ol = /* @__PURE__ */ O({
3839
+ }, xr = ["data-testid"], pr = /* @__PURE__ */ U({
1821
3840
  __name: "Toast",
1822
3841
  props: {
1823
3842
  id: null,
1824
- type: { default: Q.type },
3843
+ type: { default: Me.type },
1825
3844
  visible: { type: Boolean, default: !1 },
1826
3845
  title: null,
1827
3846
  description: null,
1828
3847
  timeout: null,
1829
- hideProgressBar: { type: Boolean, default: Q.hideProgressBar },
1830
- showIcon: { type: Boolean, default: Q.showIcon },
3848
+ hideProgressBar: { type: Boolean, default: Me.hideProgressBar },
3849
+ showIcon: { type: Boolean, default: Me.showIcon },
1831
3850
  offset: { default: 0 },
1832
3851
  onClose: null,
1833
3852
  onCloseHandler: null,
1834
- position: { default: Q.position }
3853
+ position: { default: Me.position }
1835
3854
  },
1836
3855
  setup(e) {
1837
- const n = e, { start: t, stop: i, progress: l } = il(() => {
1838
- var h;
1839
- (h = n.onCloseHandler) == null || h.call(n);
1840
- }, n.timeout), { stylePosition: a } = al(() => ({
1841
- offset: n.offset,
1842
- position: n.position
1843
- })), o = D(() => n.title && n.description);
1844
- function d() {
1845
- n.timeout > 0 && i();
1846
- }
1847
- function c() {
1848
- t();
1849
- }
1850
- return De(() => {
1851
- t();
1852
- }), (h, f) => (s(), H(Me, {
1853
- name: $(Qe)[e.position],
3856
+ const t = e, { start: n, stop: i, progress: l } = nr(() => {
3857
+ var u;
3858
+ (u = t.onCloseHandler) == null || u.call(t);
3859
+ }, t.timeout), { stylePosition: a } = lr(() => ({
3860
+ offset: t.offset,
3861
+ position: t.position
3862
+ })), r = j(() => t.title && t.description);
3863
+ function o() {
3864
+ t.timeout > 0 && i();
3865
+ }
3866
+ function s() {
3867
+ n();
3868
+ }
3869
+ return ft(() => {
3870
+ n();
3871
+ }), (u, v) => (b(), re(Lt, {
3872
+ name: c(jn)[e.position],
1854
3873
  type: "animation"
1855
3874
  }, {
1856
- default: E(() => [
1857
- e.visible ? (s(), r("div", {
3875
+ default: oe(() => [
3876
+ e.visible ? (b(), O("div", {
1858
3877
  key: 0,
1859
3878
  id: `toast-${e.type}-${e.id}`,
1860
3879
  role: "status",
1861
3880
  "data-testid": `toast-${e.type}-${e.id}`,
1862
- style: ae($(a)),
1863
- class: k(["sol-toast-core", [`-${e.type}`, { "-multiline": $(o) }]]),
1864
- onKeyup: f[1] || (f[1] = K(
1865
- (...I) => e.onCloseHandler && e.onCloseHandler(...I),
3881
+ style: it(c(a)),
3882
+ class: N(["sol-toast-core", [`-${e.type}`, { "-multiline": c(r) }]]),
3883
+ onKeyup: v[1] || (v[1] = xe(
3884
+ (...g) => e.onCloseHandler && e.onCloseHandler(...g),
1866
3885
  ["esc"]
1867
3886
  )),
1868
- onMouseenter: d,
1869
- onMouseleave: c,
1870
- onFocusin: d,
1871
- onFocusout: c
3887
+ onMouseenter: o,
3888
+ onMouseleave: s,
3889
+ onFocusin: o,
3890
+ onFocusout: s
1872
3891
  }, [
1873
- u("section", xl, [
1874
- e.showIcon ? (s(), r("div", Sl, [
1875
- m(h.$slots, "icon-status", { type: e.type }, () => [
1876
- e.type === "success" ? (s(), H($(rl), {
3892
+ S("section", wr, [
3893
+ e.showIcon ? (b(), O("div", kr, [
3894
+ M(u.$slots, "icon-status", { type: e.type }, () => [
3895
+ e.type === "success" ? (b(), re(c(sr), {
1877
3896
  key: 0,
1878
3897
  class: "icon"
1879
- })) : T("", !0),
1880
- e.type === "info" ? (s(), H($(wl), {
3898
+ })) : W("", !0),
3899
+ e.type === "info" ? (b(), re(c(gr), {
1881
3900
  key: 1,
1882
3901
  class: "icon"
1883
- })) : T("", !0),
1884
- e.type === "danger" ? (s(), H($(vl), {
3902
+ })) : W("", !0),
3903
+ e.type === "danger" ? (b(), re(c(vr), {
1885
3904
  key: 2,
1886
3905
  class: "icon"
1887
- })) : T("", !0)
3906
+ })) : W("", !0)
1888
3907
  ])
1889
- ])) : T("", !0),
1890
- u("div", Cl, [
1891
- u("p", {
1892
- class: k(["title", { "-multiline": $(o) }])
3908
+ ])) : W("", !0),
3909
+ S("div", Or, [
3910
+ S("p", {
3911
+ class: N(["title", { "-multiline": c(r) }])
1893
3912
  }, [
1894
- m(h.$slots, "title", {}, () => [
1895
- N(x(e.title), 1)
3913
+ M(u.$slots, "title", {}, () => [
3914
+ ce(D(e.title), 1)
1896
3915
  ])
1897
3916
  ], 2),
1898
- e.description ? (s(), r("p", Il, [
1899
- m(h.$slots, "description", {}, () => [
1900
- N(x(e.description), 1)
3917
+ e.description ? (b(), O("p", Sr, [
3918
+ M(u.$slots, "description", {}, () => [
3919
+ ce(D(e.description), 1)
1901
3920
  ])
1902
- ])) : T("", !0)
3921
+ ])) : W("", !0)
1903
3922
  ])
1904
3923
  ]),
1905
- u("button", {
3924
+ S("button", {
1906
3925
  type: "button",
1907
- class: k(["close", { "-multiline": $(o) }]),
3926
+ class: N(["close", { "-multiline": c(r) }]),
1908
3927
  "data-testid": `toast-close-button-${e.type}-${e.id}`,
1909
3928
  "aria-label": "close notification",
1910
- onClick: f[0] || (f[0] = (...I) => e.onCloseHandler && e.onCloseHandler(...I))
3929
+ onClick: v[0] || (v[0] = (...g) => e.onCloseHandler && e.onCloseHandler(...g))
1911
3930
  }, [
1912
- L($(Fe), { class: "icon" })
1913
- ], 10, Bl),
1914
- e.hideProgressBar ? T("", !0) : (s(), r("div", {
3931
+ Y(c(Fn), { class: "icon" })
3932
+ ], 10, xr),
3933
+ e.hideProgressBar ? W("", !0) : (b(), O("div", {
1915
3934
  key: 0,
1916
3935
  class: "progressbar",
1917
3936
  "aria-hidden": "true",
1918
- style: ae({ width: `${$(l)}%` })
3937
+ style: it({ width: `${c(l)}%` })
1919
3938
  }, null, 4))
1920
- ], 46, kl)) : T("", !0)
3939
+ ], 46, $r)) : W("", !0)
1921
3940
  ]),
1922
3941
  _: 3
1923
3942
  }, 8, ["name"]));
1924
3943
  }
1925
3944
  });
1926
- const ee = {
3945
+ const Ze = {
1927
3946
  "top-left": [],
1928
3947
  "top-right": [],
1929
3948
  "top-center": [],
@@ -1931,137 +3950,135 @@ const ee = {
1931
3950
  "bottom-right": [],
1932
3951
  "bottom-center": []
1933
3952
  };
1934
- function zl() {
3953
+ function Br() {
1935
3954
  let e = 0;
1936
- function n() {
1937
- Object.entries(ee).forEach(([i, l]) => {
3955
+ function t() {
3956
+ Object.entries(Ze).forEach(([i, l]) => {
1938
3957
  l.length && l.forEach((a) => {
1939
- var d;
1940
- const o = (d = a.toastVNode.props) == null ? void 0 : d.id;
1941
- Oe(o, i);
3958
+ var o;
3959
+ const r = (o = a.toastVNode.props) == null ? void 0 : o.id;
3960
+ Pt(r, i);
1942
3961
  });
1943
3962
  });
1944
3963
  }
1945
3964
  return {
1946
3965
  createToast: (i, l) => {
1947
- const a = e++, o = l ? Ml(l) : Q;
1948
- return l != null && l.showOneToast && n(), Tl(a, o, typeof i == "string" ? { title: i } : i), {
1949
- close: () => Oe(a, o.position)
3966
+ const a = e++, r = l ? Cr(l) : Me;
3967
+ return l != null && l.showOneToast && t(), Vr(a, r, typeof i == "string" ? { title: i } : i), {
3968
+ close: () => Pt(a, r.position)
1950
3969
  };
1951
3970
  },
1952
- clearAllToasts: n
3971
+ clearAllToasts: t
1953
3972
  };
1954
3973
  }
1955
- function Ml(e) {
1956
- const n = {
1957
- ...Q,
3974
+ function Cr(e) {
3975
+ const t = {
3976
+ ...Me,
1958
3977
  ...e,
1959
3978
  showIcon: e.showIcon
1960
3979
  };
1961
- return n.hideProgressBar = !!(n.timeout && (n == null ? void 0 : n.timeout) <= 0), e.hideProgressBar && (n.hideProgressBar = e.hideProgressBar), n;
3980
+ return t.hideProgressBar = !!(t.timeout && (t == null ? void 0 : t.timeout) <= 0), e.hideProgressBar && (t.hideProgressBar = e.hideProgressBar), t;
1962
3981
  }
1963
- function Tl(e, n, t) {
3982
+ function Vr(e, t, n) {
1964
3983
  setTimeout(() => {
1965
- const i = Pl(n, ee, Ge), l = document.createElement("div");
3984
+ const i = Ir(t, Ze, Pn), l = document.createElement("div");
1966
3985
  document.body.appendChild(l);
1967
- const a = L(
1968
- Ol,
1969
- Ll(n, e, i, Oe, t)
3986
+ const a = Y(
3987
+ pr,
3988
+ Ar(t, e, i, Pt, n)
1970
3989
  );
1971
- Ne(a, l), ee[n.position].push({ toastVNode: a, container: l }), a.component && (a.component.props.visible = !0);
3990
+ fn(a, l), Ze[t.position].push({ toastVNode: a, container: l }), a.component && (a.component.props.visible = !0);
1972
3991
  }, 1);
1973
3992
  }
1974
- function Ll(e, n, t, i, l) {
3993
+ function Ar(e, t, n, i, l) {
1975
3994
  return {
1976
3995
  ...e,
1977
3996
  ...l,
1978
- id: n,
1979
- offset: t,
3997
+ id: t,
3998
+ offset: n,
1980
3999
  visible: !1,
1981
4000
  onCloseHandler() {
1982
- i(n, e.position ? e.position : "top-right");
4001
+ i(t, e.position ? e.position : "top-right");
1983
4002
  }
1984
4003
  };
1985
4004
  }
1986
- function Pl(e, n, t) {
4005
+ function Ir(e, t, n) {
1987
4006
  if (!e.position)
1988
4007
  throw new Error("no position");
1989
- return n[e.position].reduce((i, { toastVNode: l }) => (i += l.el.offsetHeight + t || 0, i), t);
4008
+ return t[e.position].reduce((i, { toastVNode: l }) => (i += l.el.offsetHeight + n || 0, i), n);
1990
4009
  }
1991
- function Vl(e, n, t, i) {
1992
- for (let l = e; l < n.length; l++) {
1993
- const { toastVNode: a } = n[l];
4010
+ function Er(e, t, n, i) {
4011
+ for (let l = e; l < t.length; l++) {
4012
+ const { toastVNode: a } = t[l];
1994
4013
  if (!a.el)
1995
4014
  return;
1996
- const o = t.split("-")[0] || "top", d = parseInt(a.el.style[o], 10) - i - Ge;
4015
+ const r = n.split("-")[0] || "top", o = parseInt(a.el.style[r], 10) - i - Pn;
1997
4016
  if (!a.component)
1998
4017
  return;
1999
- a.component.props.offset = d;
4018
+ a.component.props.offset = o;
2000
4019
  }
2001
4020
  }
2002
- function Oe(e, n) {
2003
- var c;
2004
- const t = ee[n], i = t.findIndex(
2005
- ({ toastVNode: h }) => {
2006
- var f;
2007
- return e === ((f = h == null ? void 0 : h.props) == null ? void 0 : f.id);
4021
+ function Pt(e, t) {
4022
+ var s;
4023
+ const n = Ze[t], i = n.findIndex(
4024
+ ({ toastVNode: u }) => {
4025
+ var v;
4026
+ return e === ((v = u == null ? void 0 : u.props) == null ? void 0 : v.id);
2008
4027
  }
2009
4028
  );
2010
4029
  if (i === -1)
2011
4030
  return;
2012
- const { container: l, toastVNode: a } = t[i], o = (c = a == null ? void 0 : a.el) == null ? void 0 : c.offsetHeight;
2013
- if (ee[n].splice(i, 1), Vl(i, t, n, o), !a.component)
4031
+ const { container: l, toastVNode: a } = n[i], r = (s = a == null ? void 0 : a.el) == null ? void 0 : s.offsetHeight;
4032
+ if (Ze[t].splice(i, 1), Er(i, n, t, r), !a.component)
2014
4033
  return;
2015
- const d = a.component.props;
2016
- d.visible = !1, d.onClose && d.onClose(), setTimeout(() => {
2017
- Ne(null, l), document.body.removeChild(l);
4034
+ const o = a.component.props;
4035
+ o.visible = !1, o.onClose && o.onClose(), setTimeout(() => {
4036
+ fn(null, l), document.body.removeChild(l);
2018
4037
  }, 1e3);
2019
4038
  }
2020
4039
  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");
2021
- const ze = {
2022
- SolButton: _,
2023
- SolButtonDestructive: Re,
2024
- SolInput: W,
2025
- SolTextarea: be,
2026
- SolTextfield: oe,
2027
- SolTextfieldPassword: $e,
2028
- SolRadio: se,
2029
- SolRadioGroup: ye,
2030
- SolCheckbox: de,
2031
- SolCheckboxGroup: ge,
2032
- SolSwitch: we,
2033
- SolDropdown: Se,
2034
- SolSelect: Ce,
2035
- SolChip: ce,
2036
- SolAccordion: Ie,
2037
- SolMenu: re,
2038
- SolMenuItemLink: ue,
2039
- SolMenuNavigationLinks: Be
4040
+ const rn = {
4041
+ SolButton: Ye,
4042
+ SolButtonDestructive: hn,
4043
+ SolTextarea: pt,
4044
+ SolInputText: rt,
4045
+ SolInputTextPassword: xt,
4046
+ SolRadio: ot,
4047
+ SolRadioGroup: Ct,
4048
+ SolCheckbox: st,
4049
+ SolCheckboxGroup: Vt,
4050
+ SolSwitch: At,
4051
+ SolDropdown: Ft,
4052
+ SolSelect: Bt,
4053
+ SolChip: ut,
4054
+ SolAccordion: Tt,
4055
+ SolMenu: dt,
4056
+ SolMenuItemLink: ct,
4057
+ SolMenuNavigationLinks: Mt
2040
4058
  };
2041
- function El(e) {
2042
- for (const n in ze)
2043
- e.component(n, ze[n]);
4059
+ function Tr(e) {
4060
+ for (const t in rn)
4061
+ e.component(t, rn[t]);
2044
4062
  }
2045
4063
  export {
2046
- Ie as SolAccordion,
2047
- _ as SolButton,
2048
- Re as SolButtonDestructive,
2049
- de as SolCheckbox,
2050
- ge as SolCheckboxGroup,
2051
- ce as SolChip,
2052
- Se as SolDropdown,
2053
- W as SolInput,
2054
- re as SolMenu,
2055
- ue as SolMenuItemLink,
2056
- Be as SolMenuNavigationLinks,
2057
- se as SolRadio,
2058
- ye as SolRadioGroup,
2059
- Ce as SolSelect,
2060
- we as SolSwitch,
2061
- be as SolTextarea,
2062
- oe as SolTextfield,
2063
- $e as SolTextfieldPassword,
2064
- ze as components,
2065
- El as install,
2066
- zl as useToast
4064
+ Tt as SolAccordion,
4065
+ Ye as SolButton,
4066
+ hn as SolButtonDestructive,
4067
+ st as SolCheckbox,
4068
+ Vt as SolCheckboxGroup,
4069
+ ut as SolChip,
4070
+ Ft as SolDropdown,
4071
+ rt as SolInputText,
4072
+ xt as SolInputTextPassword,
4073
+ dt as SolMenu,
4074
+ ct as SolMenuItemLink,
4075
+ Mt as SolMenuNavigationLinks,
4076
+ ot as SolRadio,
4077
+ Ct as SolRadioGroup,
4078
+ Bt as SolSelect,
4079
+ At as SolSwitch,
4080
+ pt as SolTextarea,
4081
+ rn as components,
4082
+ Tr as install,
4083
+ Br as useToast
2067
4084
  };