@solfacil/girassol 0.2.12 → 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 (36) hide show
  1. package/dist/components.d.ts +2 -3
  2. package/dist/components.json +1 -1
  3. package/dist/girassol.es.js +3010 -985
  4. package/dist/girassol.umd.js +10 -6
  5. package/dist/style.css +1 -1
  6. package/dist/types/components/forms/button/{Button.vue.d.ts → button/Button.vue.d.ts} +0 -0
  7. package/dist/types/components/forms/button/{button.spec.d.ts → button/button.spec.d.ts} +0 -0
  8. package/dist/types/components/forms/button/{ButtonDestructive.vue.d.ts → button-destructive/ButtonDestructive.vue.d.ts} +0 -0
  9. package/dist/types/components/forms/button/index.d.ts +2 -2
  10. package/dist/types/components/forms/checkbox/{Checkbox.vue.d.ts → checkbox/Checkbox.vue.d.ts} +12 -8
  11. package/dist/types/components/forms/checkbox/{checkbox.spec.d.ts → checkbox/checkbox.spec.d.ts} +0 -0
  12. package/dist/types/components/forms/checkbox/{CheckboxGroup.vue.d.ts → checkbox-group/CheckboxGroup.vue.d.ts} +12 -12
  13. package/dist/types/components/forms/checkbox/{checkbox-group.spec.d.ts → checkbox-group/checkbox-group.spec.d.ts} +0 -0
  14. package/dist/types/components/forms/checkbox/index.d.ts +2 -2
  15. package/dist/types/components/forms/checkbox/{checkbox-type.d.ts → type.d.ts} +1 -0
  16. package/dist/types/components/forms/inputs/index.d.ts +3 -0
  17. package/dist/types/components/forms/{input → inputs/input-core}/Input.vue.d.ts +47 -23
  18. package/dist/types/components/forms/{input → inputs/input-core}/input.spec.d.ts +0 -0
  19. package/dist/types/components/forms/{textfield/TextfieldPassword.vue.d.ts → inputs/input-password/InputPassword.vue.d.ts} +76 -23
  20. package/dist/types/components/forms/{textfield/textfield-password.spec.d.ts → inputs/input-password/input-password.spec.d.ts} +0 -0
  21. package/dist/types/components/forms/inputs/input-text/InputText.vue.d.ts +181 -0
  22. package/dist/types/components/forms/{textfield/textfield.spec.d.ts → inputs/input-text/input-text.spec.d.ts} +0 -0
  23. package/dist/types/components/forms/inputs/types.d.ts +24 -0
  24. package/dist/types/components/forms/switch/Switch.vue.d.ts +52 -22
  25. package/dist/types/components/loader/CircleLoader.vue.d.ts +19 -8
  26. package/dist/types/components/menus/menu/Menu.vue.d.ts +7 -7
  27. package/dist/types/composables/use-validate-field/index.d.ts +5 -0
  28. package/dist/types/composables/use-validate-field/types.d.ts +9 -0
  29. package/dist/types/index.d.ts +544 -302
  30. package/package.json +22 -19
  31. package/theme/solfacil/colors.ts +1 -1
  32. package/windi.config.ts +11 -11
  33. package/dist/theme/safelist.d.ts +0 -14
  34. package/dist/types/components/forms/input/index.d.ts +0 -2
  35. package/dist/types/components/forms/textfield/Textfield.vue.d.ts +0 -129
  36. 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 p, unref as $, renderSlot as m, createVNode as L, createCommentVNode as T, createBlock as R, withCtx as E, ref as z, 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 D, Transition as Me, normalizeStyle as ae, withKeys as K, onMounted as pe, onUnmounted as Xe, render as De } 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 = p(
40
- () => !!(t != null && t.default) && (!!(t != null && t["icon-right"]) || !!(t != null && t["icon-left"]))
41
- ), l = p(
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 }, Ne = /* @__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 }, Ne = /* @__P
91
93
  loading: { type: Boolean }
92
94
  },
93
95
  setup(e) {
94
- return (n, t) => (s(), R(_, {
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
- Ne.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
133
  const l = z("");
131
- return n({
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;
146
709
  };
147
- const ht = ["id", "data-testid"], ft = ["for"], mt = { class: "container-input" }, vt = ["id"], $t = ["id"], oe = /* @__PURE__ */ O({
148
- __name: "Textfield",
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
852
+ };
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 = p({
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 = z(!1), t = p(
252
- () => n.value ? "text" : "password"
2256
+ const t = z(!1), n = j(
2257
+ () => t.value ? "text" : "password"
253
2258
  );
254
- return (i, l) => (s(), R(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"], zt = ["id"], Vt = ["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 = p({
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, zt)) : 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, Vt)) : 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 At = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], pt = {
2379
+ const Ti = ["id", "data-testid", "checked", "value", "name"], Mi = ["for"], Pi = {
361
2380
  inheritAttrs: !1
362
- }, se = /* @__PURE__ */ O({
363
- ...pt,
2381
+ }, ot = /* @__PURE__ */ U({
2382
+ ...Pi,
364
2383
  __name: "Radio",
365
2384
  props: {
366
2385
  id: null,
@@ -371,11 +2390,11 @@ const At = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], pt =
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 At = ["id", "data-testid", "checked", "value", "name"], Et = ["for"], pt =
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, At),
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 Dt = ["aria-labelledby"], Nt = ["id", "data-testid"], Rt = ["id", "data-testid"], Ht = ["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,79 +2424,82 @@ const Dt = ["aria-labelledby"], Nt = ["id", "data-testid"], Rt = ["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 ? `error-${t.id}` : i(d, c) ? `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, Nt)
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, Rt)) : 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, Ht)) : T("", !0)
471
- ], 8, Dt));
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", "data-testid", "checked", "value", "name"], qt = ["for"], de = /* @__PURE__ */ O({
2499
+ const zi = ["id", "indeterminate", "data-testid", "checked", "value", "name"], Ri = ["for"], Ui = {
2500
+ inheritAttrs: !1
2501
+ }, st = /* @__PURE__ */ U({
2502
+ ...Ui,
481
2503
  __name: "Checkbox",
482
2504
  props: {
483
2505
  id: null,
@@ -485,31 +2507,33 @@ const Ft = ["id", "data-testid", "checked", "value", "name"], qt = ["for"], de =
485
2507
  value: null,
486
2508
  label: null,
487
2509
  checked: null,
488
- class: null
2510
+ class: null,
2511
+ indeterminate: { type: Boolean }
489
2512
  },
490
2513
  emits: ["change"],
491
- setup(e, { emit: n }) {
492
- return (t, i) => (s(), r("div", {
493
- 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])
494
2517
  }, [
495
- u("input", U(t.$attrs, {
2518
+ S("input", pe(n.$attrs, {
496
2519
  id: `checkbox-${e.name}-${e.id}`,
497
2520
  type: "checkbox",
2521
+ indeterminate: e.indeterminate,
498
2522
  class: "checkbox",
499
2523
  "data-testid": `checkbox-${e.name}-${e.id}`,
500
2524
  checked: e.checked,
501
2525
  value: e.value,
502
2526
  name: e.name,
503
- onChange: i[0] || (i[0] = (l) => n("change", e.value))
504
- }), null, 16, Ft),
505
- u("label", {
2527
+ onChange: i[0] || (i[0] = (l) => t("change", e.value))
2528
+ }), null, 16, zi),
2529
+ S("label", {
506
2530
  class: "label",
507
2531
  for: `checkbox-${e.name}-${e.id}`
508
- }, x(e.label), 9, qt)
2532
+ }, D(e.label), 9, Ri)
509
2533
  ], 2));
510
2534
  }
511
2535
  });
512
- const Kt = ["aria-labelledby"], Ut = ["id", "data-testid"], Gt = ["id"], Qt = ["id"], ge = /* @__PURE__ */ O({
2536
+ const qi = ["aria-labelledby"], Gi = ["id", "data-testid"], Hi = ["id", "data-testid"], Ki = ["id", "data-testid"], Vt = /* @__PURE__ */ U({
513
2537
  __name: "CheckboxGroup",
514
2538
  props: {
515
2539
  id: null,
@@ -522,84 +2546,86 @@ const Kt = ["aria-labelledby"], Ut = ["id", "data-testid"], Gt = ["id"], Qt = ["
522
2546
  direction: { default: "row" }
523
2547
  },
524
2548
  emits: ["change", "update:modelValue"],
525
- setup(e, { emit: n }) {
526
- const t = e;
527
- function i(c, h) {
528
- return !!c && !h;
2549
+ setup(e, { emit: t }) {
2550
+ const n = e;
2551
+ function i(s, u) {
2552
+ return !!s && !u;
529
2553
  }
530
- function l(c, h) {
531
- return h ? `error-${t.id}` : i(c, h) ? `hint-${t.id}` : null;
2554
+ function l(s, u) {
2555
+ return u ? `checkboxes-error-${n.id}` : i(s, u) ? `checkboxes-hint-${n.id}` : null;
532
2556
  }
533
- function a(c) {
534
- var h;
535
- 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);
536
2560
  }
537
- function o(c) {
538
- 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];
539
2563
  }
540
- function d(c) {
541
- var f;
542
- n("change", c.value);
543
- const h = a(c.value) ? (f = t.modelValue) == null ? void 0 : f.filter((I) => I !== c.value) : o(c.value);
544
- 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);
545
2569
  }
546
- return (c, h) => (s(), r("fieldset", {
2570
+ return (s, u) => (b(), O("fieldset", {
547
2571
  class: "sol-checkbox-group-core",
548
2572
  "aria-labelledby": `checkbox-group-title-${e.id}`
549
2573
  }, [
550
- m(c.$slots, "title", {
2574
+ M(s.$slots, "title", {
551
2575
  id: `checkbox-group-title-${e.id}`
552
2576
  }, () => [
553
- u("legend", {
2577
+ S("legend", {
554
2578
  id: `checkbox-group-title-${e.id}`,
555
- class: k(["title", { "sr-only": e.hideTitle }]),
2579
+ class: N(["title", { "sr-only": e.hideTitle }]),
556
2580
  "data-testid": `checkbox-group-title-${e.id}`
557
- }, x(e.title), 11, Ut)
2581
+ }, D(e.title), 11, Gi)
558
2582
  ]),
559
- u("ul", {
560
- class: k(["container-checkboxes", { "flex-col": e.direction === "column" }])
2583
+ S("ul", {
2584
+ class: N(["container-checkboxes", { "flex-col": e.direction === "column" }])
561
2585
  }, [
562
- m(c.$slots, "default", {
2586
+ M(s.$slots, "default", {
563
2587
  checkboxes: e.checkboxes,
564
2588
  direction: e.direction
565
2589
  }, () => [
566
- (s(!0), r(j, null, Z(e.checkboxes, (f, I) => {
567
- var y;
568
- return s(), r("li", { key: I }, [
569
- L(de, U(c.$attrs, {
570
- 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}`,
571
2595
  class: ["checkbox", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
572
- label: f.label,
573
- name: f.name,
574
- value: f.value,
575
- checked: a(f.value),
2596
+ label: v.label,
2597
+ name: v.name,
2598
+ value: v.value,
2599
+ checked: a(v.value),
576
2600
  "aria-invalid": !!e.error,
577
2601
  "aria-describedby": l(e.hint, e.error),
578
- onChange: (S) => d(f)
2602
+ onChange: (C) => o(v)
579
2603
  }), null, 16, ["id", "class", "label", "name", "value", "checked", "aria-invalid", "aria-describedby", "onChange"])
580
2604
  ]);
581
2605
  }), 128))
582
2606
  ])
583
2607
  ], 2),
584
- i(e.hint, e.error) ? (s(), r("p", {
2608
+ i(e.hint, e.error) ? (b(), O("p", {
585
2609
  key: 0,
586
- id: `hint-${e.id}`,
2610
+ id: `checkboxes-hint-${e.id}`,
2611
+ "data-testid": `checkboxes-hint-${e.id}`,
587
2612
  class: "hint"
588
- }, x(e.hint), 9, Gt)) : e.error ? (s(), r("p", {
2613
+ }, D(e.hint), 9, Hi)) : e.error ? (b(), O("p", {
589
2614
  key: 1,
590
- id: `error-${e.id}`,
2615
+ id: `checkboxes-error-${e.id}`,
2616
+ "data-testid": `checkboxes-hint-${e.id}`,
591
2617
  class: "error"
592
- }, x(e.error), 9, Qt)) : T("", !0)
593
- ], 8, Kt));
2618
+ }, D(e.error), 9, Ki)) : W("", !0)
2619
+ ], 8, qi));
594
2620
  }
595
2621
  });
596
- de.install = (e) => {
597
- e.component("SolCheckbox", de);
2622
+ st.install = (e) => {
2623
+ e.component("SolCheckbox", st);
598
2624
  };
599
- ge.install = (e) => {
600
- e.component("SolCheckboxGroup", ge);
2625
+ Vt.install = (e) => {
2626
+ e.component("SolCheckboxGroup", Vt);
601
2627
  };
602
- const Yt = ["id", "for", "data-testid"], Wt = { class: "switch-container" }, jt = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"], Zt = /* @__PURE__ */ u("span", { class: "ellipse" }, null, -1), we = /* @__PURE__ */ O({
2628
+ const Qi = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"], Wi = ["id", "for", "data-testid"], At = /* @__PURE__ */ U({
603
2629
  __name: "Switch",
604
2630
  props: {
605
2631
  id: null,
@@ -608,127 +2634,128 @@ const Yt = ["id", "for", "data-testid"], Wt = { class: "switch-container" }, jt
608
2634
  label: null,
609
2635
  checked: { type: Boolean },
610
2636
  class: null,
2637
+ textDirection: { default: "left" },
611
2638
  hideLabel: { type: Boolean },
612
- horizontalLabel: { type: Boolean }
2639
+ stretchLabel: { type: Boolean, default: !1 }
613
2640
  },
614
2641
  emits: ["change"],
615
- setup(e, { emit: n }) {
616
- return (t, i) => (s(), r("div", {
617
- class: k(["sol-switch-core", [t.$props.class, { "-horizontal": e.horizontalLabel }]])
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 }]])
618
2645
  }, [
619
- u("label", {
2646
+ S("input", pe(n.$attrs, {
2647
+ id: `switch-${e.name}-${e.id}`,
2648
+ type: "checkbox",
2649
+ class: "switch",
2650
+ role: "switch",
2651
+ "aria-checked": e.checked,
2652
+ "aria-labelledby": `switch-label-${e.name}-${e.id}`,
2653
+ "data-testid": `switch-${e.name}-${e.id}`,
2654
+ checked: e.checked,
2655
+ value: e.value,
2656
+ name: e.name,
2657
+ onChange: i[0] || (i[0] = (l) => {
2658
+ var a;
2659
+ return t("change", (a = e.value) != null ? a : !!e.checked);
2660
+ })
2661
+ }), null, 16, Qi),
2662
+ S("label", {
620
2663
  id: `switch-label-${e.name}-${e.id}`,
621
- class: k(["label", { "mb-1": !e.horizontalLabel, "sr-only": e.hideLabel }]),
2664
+ class: N(["label", `-${e.textDirection} ${e.hideLabel ? "sr-only" : ""}`]),
622
2665
  for: `switch-${e.name}-${e.id}`,
623
2666
  "data-testid": `switch-label-${e.name}-${e.id}`
624
- }, x(e.label), 11, Yt),
625
- u("div", Wt, [
626
- u("input", U(t.$attrs, {
627
- id: `switch-${e.name}-${e.id}`,
628
- type: "checkbox",
629
- class: "switch",
630
- role: "switch",
631
- "aria-checked": e.checked,
632
- "aria-labelledby": `switch-label-${e.name}-${e.id}`,
633
- "data-testid": `switch-${e.name}-${e.id}`,
634
- checked: e.checked,
635
- value: e.value,
636
- name: e.name,
637
- onChange: i[0] || (i[0] = (l) => n("change", e.value))
638
- }), null, 16, jt),
639
- Zt
640
- ])
2667
+ }, D(e.label), 11, Wi)
641
2668
  ], 2));
642
2669
  }
643
2670
  });
644
- we.install = (e) => {
645
- e.component("SolSwitch", we);
2671
+ At.install = (e) => {
2672
+ e.component("SolSwitch", At);
646
2673
  };
647
- var Le;
648
- const te = typeof window < "u", Jt = (e) => typeof e == "string", ve = () => {
2674
+ var tn;
2675
+ const _e = typeof window < "u", Yi = (e) => typeof e == "string", $t = () => {
649
2676
  };
650
- te && ((Le = window == null ? void 0 : window.navigator) == null ? void 0 : Le.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
651
- function Xt(e) {
652
- 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);
653
2680
  }
654
- function _t(e) {
2681
+ function Ji(e) {
655
2682
  return e;
656
2683
  }
657
- function en(e) {
658
- return je() ? (Ze(e), !0) : !1;
659
- }
660
- function J(e) {
661
- var n;
662
- const t = Xt(e);
663
- return (n = t == null ? void 0 : t.$el) != null ? n : t;
664
- }
665
- const Re = te ? window : void 0;
666
- te && window.document;
667
- te && window.navigator;
668
- te && window.location;
669
- function le(...e) {
670
- let n, t, i, l;
671
- if (Jt(e[0]) ? ([t, i, l] = e, n = Re) : [n, t, i, l] = e, !n)
672
- return ve;
673
- let a = ve;
674
- const o = Je(() => J(n), (c) => {
675
- a(), c && (c.addEventListener(t, i, l), a = () => {
676
- 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;
677
2704
  });
678
- }, { immediate: !0, flush: "post" }), d = () => {
679
- o(), a();
2705
+ }, { immediate: !0, flush: "post" }), o = () => {
2706
+ r(), a();
680
2707
  };
681
- return en(d), d;
2708
+ return Xi(o), o;
682
2709
  }
683
- function Te(e, n, t = {}) {
684
- const { window: i = Re, 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;
685
2712
  if (!i)
686
2713
  return;
687
- const d = z(!0);
688
- let c;
689
- const h = (y) => {
690
- i.clearTimeout(c);
691
- const S = J(e), B = y.composedPath();
692
- !S || S === y.target || B.includes(S) || !d.value || l && l.length > 0 && l.some((M) => {
693
- const N = J(M);
694
- return N && (y.target === N || B.includes(N));
695
- }) || n(y);
696
- }, f = [
697
- le(i, "click", h, { passive: !0, capture: a }),
698
- le(i, "pointerdown", (y) => {
699
- const S = J(e);
700
- 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);
701
2728
  }, { passive: !0 }),
702
- le(i, "pointerup", (y) => {
703
- if (y.button === 0) {
704
- const S = y.composedPath();
705
- 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);
706
2733
  }
707
2734
  }, { passive: !0 }),
708
- o && le(i, "blur", (y) => {
709
- var S;
710
- const B = J(e);
711
- ((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);
712
2739
  })
713
2740
  ].filter(Boolean);
714
- return () => f.forEach((y) => y());
2741
+ return () => v.forEach((m) => m());
715
2742
  }
716
- const ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, xe = "__vueuse_ssr_handlers__";
717
- ke[xe] = ke[xe] || {};
718
- ke[xe];
719
- 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;
720
2747
  (function(e) {
721
2748
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
722
- })(Pe || (Pe = {}));
723
- var tn = Object.defineProperty, ze = Object.getOwnPropertySymbols, nn = Object.prototype.hasOwnProperty, ln = Object.prototype.propertyIsEnumerable, Ve = (e, n, t) => n in e ? tn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, an = (e, n) => {
724
- for (var t in n || (n = {}))
725
- nn.call(n, t) && Ve(e, t, n[t]);
726
- if (ze)
727
- for (var t of ze(n))
728
- ln.call(n, t) && Ve(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]);
729
2756
  return e;
730
2757
  };
731
- const on = {
2758
+ const la = {
732
2759
  easeInSine: [0.12, 0, 0.39, 0],
733
2760
  easeOutSine: [0.61, 1, 0.88, 1],
734
2761
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -754,27 +2781,27 @@ const on = {
754
2781
  easeOutBack: [0.34, 1.56, 0.64, 1],
755
2782
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
756
2783
  };
757
- an({
758
- linear: _t
759
- }, on);
760
- const sn = {
2784
+ na({
2785
+ linear: Ji
2786
+ }, la);
2787
+ const ia = {
761
2788
  preserveAspectRatio: "xMidYMid meet",
762
2789
  viewBox: "0 0 24 24",
763
2790
  width: "1em",
764
2791
  height: "1em"
765
- }, dn = /* @__PURE__ */ u("path", {
2792
+ }, aa = /* @__PURE__ */ S("path", {
766
2793
  fill: "currentColor",
767
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"
768
- }, null, -1), cn = [
769
- dn
2795
+ }, null, -1), ra = [
2796
+ aa
770
2797
  ];
771
- function rn(e, n) {
772
- return s(), r("svg", sn, cn);
2798
+ function oa(e, t) {
2799
+ return b(), O("svg", ia, ra);
773
2800
  }
774
- const He = { name: "mi-search", render: rn }, un = ["data-testid"], hn = ["id", "for"], fn = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], mn = { class: "dropdown-container" }, vn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], $n = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], bn = {
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 = {
775
2802
  key: 0,
776
2803
  class: "no-data"
777
- }, yn = /* @__PURE__ */ D(" Sem dados "), Se = /* @__PURE__ */ O({
2804
+ }, ma = /* @__PURE__ */ ce(" Sem dados "), Ft = /* @__PURE__ */ U({
778
2805
  __name: "Dropdown",
779
2806
  props: {
780
2807
  id: null,
@@ -792,98 +2819,98 @@ const He = { name: "mi-search", render: rn }, un = ["data-testid"], hn = ["id",
792
2819
  options: { default: () => [] }
793
2820
  },
794
2821
  emits: ["closeDropdown", "search", "update:selected"],
795
- setup(e, { emit: n }) {
796
- const t = e, i = z(), l = z(!1), a = z(""), o = p(
2822
+ setup(e, { emit: t }) {
2823
+ const n = e, i = z(), l = z(!1), a = z(""), r = j(
797
2824
  () => {
798
- var b;
799
- return t.fetchOnSearch ? t.options : (b = t.options) == null ? void 0 : b.filter(
800
- (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)
801
2828
  );
802
2829
  }
803
- ), d = p(
804
- () => Array.isArray(t.selected) ? t.selected.join(", ").trim() : t.selected
2830
+ ), o = j(
2831
+ () => Array.isArray(n.selected) ? n.selected.join(", ").trim() : n.selected
805
2832
  );
806
- Te(i, () => {
807
- l.value && f();
2833
+ Ht(i, () => {
2834
+ l.value && v();
808
2835
  });
809
- function c() {
810
- t.disabled || (l.value ? f() : h());
2836
+ function s() {
2837
+ n.disabled || (l.value ? v() : u());
811
2838
  }
812
- function h() {
2839
+ function u() {
813
2840
  l.value = !0;
814
2841
  }
815
- function f() {
816
- he(), n("closeDropdown");
2842
+ function v() {
2843
+ J(), t("closeDropdown");
817
2844
  }
818
- function I(b) {
819
- const v = new Set(t.selected);
820
- 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];
821
2848
  }
822
- function y(b) {
823
- const v = typeof b == "string" ? b : b.value, C = t.isMultipleSelect ? I(v) : v;
824
- 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();
825
2852
  }
826
- function S(b) {
827
- 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;
828
2855
  }
829
- const B = ie({
2856
+ const F = Se({
830
2857
  list: void 0,
831
2858
  search: void 0
832
- }), M = ie({
2859
+ }), E = Se({
833
2860
  id: "",
834
2861
  index: 0
835
2862
  });
836
- function N({ code: b }) {
837
- const v = (P) => {
838
- const F = P != null ? P : M.index;
839
- P !== void 0 && (M.index = P), setTimeout(() => {
840
- var g, w;
841
- const H = (g = B.list) == null ? void 0 : g.children[F];
842
- M.id = (w = H == null ? void 0 : H.id) != null ? w : "", H == null || H.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();
843
2870
  }, 0);
844
- }, C = () => {
845
- var P;
846
- 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());
847
2874
  };
848
- switch (b) {
2875
+ switch (f) {
849
2876
  case "ArrowUp":
850
- return M.index > 0 && (M.index -= 1), v();
2877
+ return E.index > 0 && (E.index -= 1), y();
851
2878
  case "ArrowDown":
852
- 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));
853
2880
  case "Home":
854
- return v(0);
2881
+ return y(0);
855
2882
  case "End":
856
- return v(t.options.length - 1);
2883
+ return y(n.options.length - 1);
857
2884
  case "Escape":
858
- return f();
2885
+ return v();
859
2886
  default:
860
- !["Enter", "NumpadEnter", "Space"].includes(b) && C();
2887
+ !["Enter", "NumpadEnter", "Space"].includes(f) && $();
861
2888
  }
862
2889
  }
863
- function he() {
864
- l.value = !1, M.index = 0, a.value = "";
2890
+ function J() {
2891
+ l.value = !1, E.index = 0, a.value = "";
865
2892
  }
866
- function G(b, v) {
867
- 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"];
868
2895
  }
869
- function ne(b, v) {
870
- B[b] = v != null ? v : void 0;
2896
+ function k(f, y) {
2897
+ F[f] = y != null ? y : void 0;
871
2898
  }
872
- return (b, v) => (s(), r("div", {
2899
+ return (f, y) => (b(), O("div", {
873
2900
  ref_key: "el",
874
2901
  ref: i,
875
- class: k(["sol-dropdown-core", { "-smaller": e.smallerWidth }]),
2902
+ class: N(["sol-dropdown-core", { "-smaller": e.smallerWidth }]),
876
2903
  "data-testid": `dropdown-${e.id}`,
877
- onKeydownPassive: N
2904
+ onKeydownPassive: H
878
2905
  }, [
879
- m(b.$slots, "label", {}, () => [
880
- u("label", {
2906
+ M(f.$slots, "label", {}, () => [
2907
+ S("label", {
881
2908
  id: `label-dropdown-${e.id}`,
882
- class: k(["label", { "-disabled": e.disabled, "sr-only": e.ariaLabel }]),
2909
+ class: N(["label", { "-disabled": e.disabled, "sr-only": e.ariaLabel }]),
883
2910
  for: `toggle-dropdown-${e.id}`
884
- }, x(e.label || e.ariaLabel), 11, hn)
2911
+ }, D(e.label || e.ariaLabel), 11, ua)
885
2912
  ]),
886
- u("button", {
2913
+ S("button", {
887
2914
  id: `toggle-dropdown-${e.id}`,
888
2915
  disabled: e.disabled,
889
2916
  "data-testid": `toggle-dropdown-${e.id}`,
@@ -893,34 +2920,34 @@ const He = { name: "mi-search", render: rn }, un = ["data-testid"], hn = ["id",
893
2920
  "aria-labelledby": `label-dropdown-${e.id}`,
894
2921
  "aria-label": e.ariaLabel,
895
2922
  "aria-controls": `dropdown-list-${e.id}`,
896
- onClick: q(c, ["stop"])
2923
+ onClick: Oe(s, ["stop"])
897
2924
  }, [
898
- m(b.$slots, "toggle-dropdown", {
899
- toggle: { open: h, close: f, toggleDropdown: c },
2925
+ M(f.$slots, "toggle-dropdown", {
2926
+ toggle: { open: u, close: v, toggleDropdown: s },
900
2927
  isOpen: l.value,
901
- select: y,
902
- selectedSanitized: $(d),
2928
+ select: m,
2929
+ selectedSanitized: c(o),
903
2930
  selected: e.selected
904
2931
  }, () => [
905
- D(x($(d) || "Selecione"), 1)
2932
+ ce(D(c(o) || "Selecione"), 1)
906
2933
  ])
907
- ], 8, fn),
908
- L(Me, {
2934
+ ], 8, da),
2935
+ Y(Lt, {
909
2936
  mode: "out-in",
910
2937
  name: "dropdown"
911
2938
  }, {
912
- default: E(() => [
913
- Y(u("div", mn, [
914
- e.searchable ? (s(), r("div", {
2939
+ default: oe(() => [
2940
+ je(S("div", ca, [
2941
+ e.searchable ? (b(), O("div", {
915
2942
  key: 0,
916
- class: k(["search-container", { "-loading": e.loading }])
2943
+ class: N(["search-container", { "-loading": e.loading }])
917
2944
  }, [
918
- m(b.$slots, "search", { filter: a.value }, () => [
919
- L(W, {
2945
+ M(f.$slots, "search", { filter: a.value }, () => [
2946
+ Y(Dt, {
920
2947
  id: `search-dropdown-${e.id}`,
921
- ref: (C) => ne("search", C == null ? void 0 : C.input),
2948
+ ref: ($) => k("search", $ == null ? void 0 : $.input),
922
2949
  modelValue: a.value,
923
- "onUpdate:modelValue": v[0] || (v[0] = (C) => a.value = C),
2950
+ "onUpdate:modelValue": y[0] || (y[0] = ($) => a.value = $),
924
2951
  "data-testid": `search-dropdown-${e.id}`,
925
2952
  role: "combobox",
926
2953
  class: "search",
@@ -930,24 +2957,24 @@ const He = { name: "mi-search", render: rn }, un = ["data-testid"], hn = ["id",
930
2957
  "aria-haspopup": "listbox",
931
2958
  "aria-owns": `dropdown-list-${e.id}`,
932
2959
  "aria-controls": `dropdown-list-${e.id}`,
933
- "aria-activedescendant": M.id,
2960
+ "aria-activedescendant": E.id,
934
2961
  "aria-labelledby": `label-dropdown-${e.id}`,
935
- onClick: v[1] || (v[1] = q(() => {
2962
+ onClick: y[1] || (y[1] = Oe(() => {
936
2963
  }, ["stop"])),
937
- onInput: v[2] || (v[2] = (C) => {
938
- var P;
939
- 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);
940
2967
  })
941
2968
  }, null, 8, ["id", "modelValue", "data-testid", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
942
- L($(He), {
2969
+ Y(c(En), {
943
2970
  "aria-hidden": "true",
944
2971
  class: "icon"
945
2972
  })
946
2973
  ])
947
- ], 2)) : T("", !0),
948
- u("ul", {
2974
+ ], 2)) : W("", !0),
2975
+ S("ul", {
949
2976
  id: `dropdown-list-${e.id}`,
950
- ref: (C) => ne("list", C),
2977
+ ref: ($) => k("list", $),
951
2978
  "data-testid": `dropdown-list-${e.id}`,
952
2979
  role: "listbox",
953
2980
  tabindex: "-1",
@@ -955,63 +2982,63 @@ const He = { name: "mi-search", render: rn }, un = ["data-testid"], hn = ["id",
955
2982
  "aria-labelledby": `label-dropdown-${e.id}`,
956
2983
  class: "dropdown-list-core"
957
2984
  }, [
958
- (s(!0), r(j, null, Z($(o), (C, P) => (s(), r("li", {
959
- id: `option-${e.id}-${G(C, "value")}`,
960
- key: P,
961
- "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")}`,
962
2989
  role: "option",
963
2990
  tabindex: "-1",
964
2991
  class: "dropdown-item",
965
- style: ae(`--item: ${P + 1}`),
966
- selected: S(C),
967
- "aria-selected": S(C),
968
- onClick: (F) => y(C),
2992
+ style: it(`--item: ${p + 1}`),
2993
+ selected: C($),
2994
+ "aria-selected": C($),
2995
+ onClick: (I) => m($),
969
2996
  onKeyup: [
970
- K((F) => y(C), ["enter"]),
971
- K((F) => y(C), ["space"])
2997
+ xe((I) => m($), ["enter"]),
2998
+ xe((I) => m($), ["space"])
972
2999
  ]
973
3000
  }, [
974
- m(b.$slots, "default", {
975
- text: G(C, "name"),
976
- option: C,
977
- isSelect: S
3001
+ M(f.$slots, "default", {
3002
+ text: R($, "name"),
3003
+ option: $,
3004
+ isSelect: C
978
3005
  }, () => [
979
- D(x(G(C, "name")), 1)
3006
+ ce(D(R($, "name")), 1)
980
3007
  ])
981
- ], 44, $n))), 128)),
982
- $(o).length ? T("", !0) : (s(), r("li", bn, [
983
- m(b.$slots, "no-data", {}, () => [
984
- yn
3008
+ ], 44, va))), 128)),
3009
+ c(r).length ? W("", !0) : (b(), O("li", ha, [
3010
+ M(f.$slots, "no-data", {}, () => [
3011
+ ma
985
3012
  ])
986
3013
  ]))
987
- ], 8, vn)
3014
+ ], 8, fa)
988
3015
  ], 512), [
989
- [X, l.value]
3016
+ [We, l.value]
990
3017
  ])
991
3018
  ]),
992
3019
  _: 3
993
3020
  })
994
- ], 42, un));
3021
+ ], 42, sa));
995
3022
  }
996
3023
  });
997
- Se.install = (e) => {
998
- e.component("SolDropdown", Se);
3024
+ Ft.install = (e) => {
3025
+ e.component("SolDropdown", Ft);
999
3026
  };
1000
- const gn = {
3027
+ const ya = {
1001
3028
  preserveAspectRatio: "xMidYMid meet",
1002
3029
  viewBox: "0 0 24 24",
1003
3030
  width: "1em",
1004
3031
  height: "1em"
1005
- }, wn = /* @__PURE__ */ u("path", {
3032
+ }, ba = /* @__PURE__ */ S("path", {
1006
3033
  fill: "currentColor",
1007
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"
1008
- }, null, -1), kn = [
1009
- wn
3035
+ }, null, -1), ga = [
3036
+ ba
1010
3037
  ];
1011
- function xn(e, n) {
1012
- return s(), r("svg", gn, kn);
3038
+ function $a(e, t) {
3039
+ return b(), O("svg", ya, ga);
1013
3040
  }
1014
- const Fe = { name: "mi-close", render: xn }, Sn = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"], Cn = ["id"], In = { 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({
1015
3042
  __name: "Chip",
1016
3043
  props: {
1017
3044
  id: null,
@@ -1021,59 +3048,59 @@ const Fe = { name: "mi-close", render: xn }, Sn = ["id", "data-testid", "title",
1021
3048
  removable: { type: Boolean, default: !0 }
1022
3049
  },
1023
3050
  emits: ["close", "update:selected"],
1024
- setup(e, { emit: n }) {
1025
- const t = e;
3051
+ setup(e, { emit: t }) {
3052
+ const n = e;
1026
3053
  function i({ code: l }) {
1027
- if (!t.disabled)
3054
+ if (!n.disabled)
1028
3055
  switch (l) {
1029
3056
  case "Enter":
1030
3057
  case "NumpadEnter":
1031
3058
  case "Space":
1032
- return n("update:selected");
3059
+ return t("update:selected");
1033
3060
  case "Delete":
1034
3061
  case "Backspace":
1035
- return t.removable && n("close");
3062
+ return n.removable && t("close");
1036
3063
  default:
1037
3064
  return !1;
1038
3065
  }
1039
3066
  }
1040
- return (l, a) => (s(), r("div", {
3067
+ return (l, a) => (b(), O("div", {
1041
3068
  id: `chip-${e.id}`,
1042
3069
  "data-testid": `chip-${e.id}`,
1043
- class: k(["sol-chip-core", { "-selected": e.selected, "-disabled": e.disabled }]),
3070
+ class: N(["sol-chip-core", { "-selected": e.selected, "-disabled": e.disabled }]),
1044
3071
  tabindex: "0",
1045
3072
  title: e.label,
1046
3073
  "aria-describedby": `chip-description-${e.id}`,
1047
3074
  "aria-disabled": e.disabled,
1048
- onClick: a[1] || (a[1] = (o) => n("update:selected")),
1049
- onKeydown: q(i, ["self"])
3075
+ onClick: a[1] || (a[1] = (r) => t("update:selected")),
3076
+ onKeydown: Oe(i, ["self"])
1050
3077
  }, [
1051
- u("span", {
3078
+ S("span", {
1052
3079
  id: `chip-description-${e.id}`,
1053
3080
  "z-index": "-1",
1054
3081
  class: "sr-only"
1055
- }, "Press Delete or Backspace to remove this Chip", 8, Cn),
1056
- u("span", In, [
1057
- m(l.$slots, "default", {}, () => [
1058
- D(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)
1059
3086
  ])
1060
3087
  ]),
1061
- e.removable ? (s(), r("i", {
3088
+ e.removable ? (b(), O("i", {
1062
3089
  key: 0,
1063
3090
  role: "presentation",
1064
3091
  "aira-hidden": "true",
1065
3092
  class: "close",
1066
- onClick: a[0] || (a[0] = q((o) => n("close"), ["stop"]))
3093
+ onClick: a[0] || (a[0] = Oe((r) => t("close"), ["stop"]))
1067
3094
  }, [
1068
- L($(Fe), { class: "icon" })
1069
- ])) : T("", !0)
1070
- ], 42, Sn));
3095
+ Y(c(Fn), { class: "icon" })
3096
+ ])) : W("", !0)
3097
+ ], 42, wa));
1071
3098
  }
1072
3099
  });
1073
- const Bn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], On = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], Mn = {
3100
+ const Sa = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], xa = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], pa = {
1074
3101
  key: 0,
1075
3102
  class: "no-data"
1076
- }, Tn = /* @__PURE__ */ D(" Sem dados "), Ln = /* @__PURE__ */ O({
3103
+ }, Ca = /* @__PURE__ */ ce(" Sem dados "), Va = /* @__PURE__ */ U({
1077
3104
  __name: "ListOption",
1078
3105
  props: {
1079
3106
  id: null,
@@ -1082,11 +3109,11 @@ const Bn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], On
1082
3109
  isSelected: null
1083
3110
  },
1084
3111
  emits: ["select"],
1085
- setup(e, { expose: n, emit: t }) {
3112
+ setup(e, { expose: t, emit: n }) {
1086
3113
  const i = z("");
1087
- return n({
3114
+ return t({
1088
3115
  list: i
1089
- }), (l, a) => (s(), r("ul", {
3116
+ }), (l, a) => (b(), O("ul", {
1090
3117
  id: `select-list-${e.id}`,
1091
3118
  ref_key: "list",
1092
3119
  ref: i,
@@ -1097,119 +3124,119 @@ const Bn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], On
1097
3124
  "aria-labelledby": `select-label-${e.id}`,
1098
3125
  class: "select-list-core"
1099
3126
  }, [
1100
- (s(!0), r(j, null, Z(e.options, (o, d) => (s(), r("li", {
1101
- id: `option-${e.id}-${o.value}`,
1102
- key: d,
1103
- "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}`,
1104
3131
  role: "option",
1105
3132
  tabindex: "-1",
1106
3133
  class: "select-option-item",
1107
- style: ae(`--item: ${d + 1}`),
1108
- selected: e.isSelected(o),
1109
- "aria-selected": e.isSelected(o),
1110
- 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),
1111
3138
  onKeyup: [
1112
- K((c) => t("select", o), ["enter"]),
1113
- K((c) => t("select", o), ["space"])
3139
+ xe((s) => n("select", r), ["enter"]),
3140
+ xe((s) => n("select", r), ["space"])
1114
3141
  ]
1115
3142
  }, [
1116
- m(l.$slots, "item-list", {
1117
- text: o.name,
1118
- value: o.value,
1119
- option: o,
1120
- 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)
1121
3148
  }, () => [
1122
- D(x(o.name), 1)
3149
+ ce(D(r.name), 1)
1123
3150
  ])
1124
- ], 44, On))), 128)),
1125
- e.options.length ? T("", !0) : (s(), r("li", Mn, [
1126
- m(l.$slots, "no-data", {}, () => [
1127
- Tn
3151
+ ], 44, xa))), 128)),
3152
+ e.options.length ? W("", !0) : (b(), O("li", pa, [
3153
+ M(l.$slots, "no-data", {}, () => [
3154
+ Ca
1128
3155
  ])
1129
3156
  ]))
1130
- ], 8, Bn));
3157
+ ], 8, Sa));
1131
3158
  }
1132
3159
  });
1133
- const Pn = {
3160
+ const Aa = {
1134
3161
  preserveAspectRatio: "xMidYMid meet",
1135
3162
  viewBox: "0 0 24 24",
1136
3163
  width: "1em",
1137
3164
  height: "1em"
1138
- }, zn = /* @__PURE__ */ u("path", {
3165
+ }, Ia = /* @__PURE__ */ S("path", {
1139
3166
  fill: "currentColor",
1140
3167
  d: "m17 10l-5 6l-5-6h10z"
1141
- }, null, -1), Vn = [
1142
- zn
3168
+ }, null, -1), Ea = [
3169
+ Ia
1143
3170
  ];
1144
- function An(e, n) {
1145
- return s(), r("svg", Pn, Vn);
3171
+ function Fa(e, t) {
3172
+ return b(), O("svg", Aa, Ea);
1146
3173
  }
1147
- const En = { name: "mi-caret-down", render: An };
1148
- function qe(e, n) {
1149
- function t({ code: i }) {
1150
- var o;
3174
+ const Ba = { name: "mi-caret-down", render: Fa };
3175
+ function Bn(e, t) {
3176
+ function n({ code: i }) {
3177
+ var r;
1151
3178
  const l = i;
1152
3179
  (() => {
1153
- if (!(n != null && n.fallback))
3180
+ if (!(t != null && t.fallback))
1154
3181
  return !1;
1155
- const d = (c) => Array.isArray(c) ? !c.includes(l) : l !== c;
1156
- return n != null && n.exclude ? !e.hasOwnProperty(l) && d(n.exclude) : !e.hasOwnProperty(l);
1157
- })() && (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));
1158
3185
  }
1159
3186
  return {
1160
- navigate: t
3187
+ navigate: n
1161
3188
  };
1162
3189
  }
1163
- function Ke({ target: e, query: n }) {
1164
- const t = ie({
3190
+ function Tn({ target: e, query: t }) {
3191
+ const n = Se({
1165
3192
  id: "",
1166
3193
  index: -1
1167
3194
  });
1168
- function i(f) {
1169
- const I = f != null ? f : t.index, y = e == null ? void 0 : e.value;
1170
- f !== void 0 && (t.index = f), setTimeout(() => {
1171
- var M;
1172
- const S = y.children[I], B = n && S.querySelector(n) ? S.querySelector(n) : S;
1173
- 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();
1174
3201
  }, 0);
1175
3202
  }
1176
3203
  function l() {
1177
- t.index > 0 && (t.index -= 1, i());
3204
+ n.index > 0 && (n.index -= 1, i());
1178
3205
  }
1179
- function a(f) {
1180
- t.index < f - 1 && (t.index += 1, i());
3206
+ function a(v) {
3207
+ n.index < v - 1 && (n.index += 1, i());
1181
3208
  }
1182
- function o() {
3209
+ function r() {
1183
3210
  i(0);
1184
3211
  }
1185
- function d(f) {
1186
- i(f - 1);
3212
+ function o(v) {
3213
+ i(v - 1);
1187
3214
  }
1188
- function c(f) {
1189
- 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;
1190
3217
  }
1191
- function h() {
1192
- t.id = "", t.index = -1;
3218
+ function u() {
3219
+ n.id = "", n.index = -1;
1193
3220
  }
1194
3221
  return {
1195
- elementFocus: t,
1196
- isItemFocused: c,
1197
- resetStateFocus: h,
3222
+ elementFocus: n,
3223
+ isItemFocused: s,
3224
+ resetStateFocus: u,
1198
3225
  focusListItem: i,
1199
3226
  focusOnPreviousItem: l,
1200
3227
  focusOnNextItem: a,
1201
- focusOnFirstItem: o,
1202
- focusOnLastItem: d
3228
+ focusOnFirstItem: r,
3229
+ focusOnLastItem: o
1203
3230
  };
1204
3231
  }
1205
- const pn = ["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 = {
1206
3233
  key: 0,
1207
3234
  class: "container-tags"
1208
- }, Hn = {
3235
+ }, Na = {
1209
3236
  key: 1,
1210
3237
  class: "mr-micro placeholder-inline",
1211
3238
  tabindex: "-1"
1212
- }, Fn = { class: "error" }, qn = { class: "select-options-container" }, Ce = /* @__PURE__ */ O({
3239
+ }, La = { class: "error" }, Da = { class: "select-options-container" }, Bt = /* @__PURE__ */ U({
1213
3240
  __name: "Select",
1214
3241
  props: {
1215
3242
  id: null,
@@ -1229,96 +3256,96 @@ const pn = ["data-testid"], Dn = ["id"], Nn = ["id", "disabled", "data-testid",
1229
3256
  placeholder: { default: "placeholder" }
1230
3257
  },
1231
3258
  emits: ["closeDropdown", "search", "update:selected"],
1232
- setup(e, { emit: n }) {
1233
- const t = e, i = z(), l = z(!1), a = z(""), o = p(
3259
+ setup(e, { emit: t }) {
3260
+ const n = e, i = z(), l = z(!1), a = z(""), r = j(
1234
3261
  () => {
1235
- var g;
1236
- 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));
1237
3264
  }
1238
3265
  );
1239
- Te(i, () => {
1240
- l.value && h();
3266
+ Ht(i, () => {
3267
+ l.value && u();
1241
3268
  });
1242
- function d() {
1243
- t.disabled || (l.value ? h() : c());
3269
+ function o() {
3270
+ n.disabled || (l.value ? u() : s());
1244
3271
  }
1245
- function c() {
3272
+ function s() {
1246
3273
  l.value = !0;
1247
3274
  }
1248
- function h() {
1249
- P(), n("closeDropdown");
3275
+ function u() {
3276
+ p(), t("closeDropdown");
1250
3277
  }
1251
- function f(g) {
1252
- if (Array.isArray(t.selected)) {
1253
- const w = t.selected.findIndex(
1254
- ({ value: V }) => V === g.value
3278
+ function v(x) {
3279
+ if (Array.isArray(n.selected)) {
3280
+ const V = n.selected.findIndex(
3281
+ ({ value: P }) => P === x.value
1255
3282
  );
1256
- return w === -1 ? [...t.selected, g] : t.selected.filter((V, A) => A !== w);
3283
+ return V === -1 ? [...n.selected, x] : n.selected.filter((P, G) => G !== V);
1257
3284
  }
1258
- return [g];
3285
+ return [x];
1259
3286
  }
1260
- function I(g) {
1261
- 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();
1262
3289
  }
1263
- function y(g) {
1264
- var w;
1265
- return Array.isArray(t.selected) ? t.selected.some(({ value: V }) => V === 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);
1266
3293
  }
1267
- const S = z(), B = z();
1268
- function M() {
1269
- var g;
1270
- 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());
1271
3298
  }
1272
3299
  const {
1273
- elementFocus: N,
1274
- focusOnFirstItem: he,
1275
- focusOnLastItem: G,
1276
- focusOnNextItem: ne,
1277
- focusOnPreviousItem: b,
1278
- resetStateFocus: v
1279
- } = Ke({ target: B }), { navigate: C } = qe({
1280
- Home: he,
1281
- End: () => G(t.options.length),
1282
- 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,
1283
3310
  ArrowDown: () => {
1284
- !l.value && c(), ne(t.options.length);
3311
+ !l.value && s(), k(n.options.length);
1285
3312
  },
1286
- Escape: h
3313
+ Escape: u
1287
3314
  }, {
1288
- fallback: M,
3315
+ fallback: E,
1289
3316
  exclude: ["Enter", "NumpadEnter", "Space"]
1290
3317
  });
1291
- function P() {
1292
- l.value = !1, a.value = "", v();
3318
+ function p() {
3319
+ l.value = !1, a.value = "", y();
1293
3320
  }
1294
- function F(g) {
1295
- return (w) => {
1296
- 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;
1297
3324
  };
1298
3325
  }
1299
- function H() {
1300
- var w;
1301
- const g = t.selected;
1302
- 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;
1303
3330
  }
1304
- return (g, w) => (s(), r("div", {
3331
+ return (x, V) => (b(), O("div", {
1305
3332
  ref_key: "el",
1306
3333
  ref: i,
1307
- class: k(["sol-select-core", { "-smaller": e.smallerWidth }]),
3334
+ class: N(["sol-select-core", { "-smaller": e.smallerWidth }]),
1308
3335
  "data-testid": `select-${e.id}`,
1309
- onKeydownPassive: w[3] || (w[3] = (...V) => $(C) && $(C)(...V))
3336
+ onKeydownPassive: V[3] || (V[3] = (...P) => c($) && c($)(...P))
1310
3337
  }, [
1311
- m(g.$slots, "label", {
3338
+ M(x.$slots, "label", {
1312
3339
  id: `select-label-${e.id}`,
1313
3340
  for: `select-toggle-${e.id}`
1314
3341
  }, () => [
1315
- e.label ? (s(), r("label", {
3342
+ e.label ? (b(), O("label", {
1316
3343
  key: 0,
1317
3344
  id: `select-label-${e.id}`,
1318
- class: k(["label", { "-disabled": e.disabled }])
1319
- }, x(e.label), 11, Dn)) : T("", !0)
3345
+ class: N(["label", { "-disabled": e.disabled }])
3346
+ }, D(e.label), 11, Ma)) : W("", !0)
1320
3347
  ]),
1321
- u("button", {
3348
+ S("button", {
1322
3349
  id: `select-toggle-${e.id}`,
1323
3350
  disabled: e.disabled,
1324
3351
  "data-testid": `select-toggle-${e.id}`,
@@ -1328,51 +3355,51 @@ const pn = ["data-testid"], Dn = ["id"], Nn = ["id", "disabled", "data-testid",
1328
3355
  "aria-labelledby": `select-label-${e.id}`,
1329
3356
  "aria-label": e.ariaLabel,
1330
3357
  "aria-controls": `select-list-${e.id}`,
1331
- onClick: q(d, ["stop"])
3358
+ onClick: Oe(o, ["stop"])
1332
3359
  }, [
1333
- m(g.$slots, "toggle-dropdown", {
1334
- toggle: { open: c, close: h, toggleDropdown: d },
3360
+ M(x.$slots, "toggle-dropdown", {
3361
+ toggle: { open: s, close: u, toggleDropdown: o },
1335
3362
  isOpen: l.value,
1336
- select: I,
3363
+ select: g,
1337
3364
  selected: e.selected
1338
3365
  }, () => {
1339
- var V;
3366
+ var P;
1340
3367
  return [
1341
- e.multiple && Array.isArray(e.selected) && ((V = e.selected) == null ? void 0 : V.length) ? (s(), r("div", Rn, [
1342
- (s(!0), r(j, null, Z(e.selected, (A, fe) => (s(), R(ce, {
1343
- id: A.value,
1344
- key: fe,
1345
- label: A.name,
1346
- onClick: q((me) => I(A), ["stop"]),
1347
- onClose: (me) => I(A)
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)
1348
3375
  }, null, 8, ["id", "label", "onClick", "onClose"]))), 128))
1349
- ])) : (s(), r("span", Hn, x(H()), 1)),
1350
- L($(En), {
3376
+ ])) : (b(), O("span", Na, D(L()), 1)),
3377
+ Y(c(Ba), {
1351
3378
  "aria-hidden": "true",
1352
3379
  tabindex: "-1",
1353
- class: k(["icon", { "-open": l.value }])
3380
+ class: N(["icon", { "-open": l.value }])
1354
3381
  }, null, 8, ["class"])
1355
3382
  ];
1356
3383
  })
1357
- ], 8, Nn),
1358
- u("span", Fn, x(e.error), 1),
1359
- L(Me, {
3384
+ ], 8, Pa),
3385
+ S("span", La, D(e.error), 1),
3386
+ Y(Lt, {
1360
3387
  mode: "out-in",
1361
3388
  name: "dropdown"
1362
3389
  }, {
1363
- default: E(() => [
1364
- Y(u("div", qn, [
1365
- m(g.$slots, "search", {}, () => [
1366
- e.searchable ? (s(), r("div", {
3390
+ default: oe(() => [
3391
+ je(S("div", Da, [
3392
+ M(x.$slots, "search", {}, () => [
3393
+ e.searchable ? (b(), O("div", {
1367
3394
  key: 0,
1368
- class: k(["search-container", { "-loading": e.loading }])
3395
+ class: N(["search-container", { "-loading": e.loading }])
1369
3396
  }, [
1370
- m(g.$slots, "search", { filter: a.value }, () => [
1371
- L(W, {
3397
+ M(x.$slots, "search", { filter: a.value }, () => [
3398
+ Y(Dt, {
1372
3399
  id: `select-search-${e.id}`,
1373
- ref: F("search"),
3400
+ ref: I("search"),
1374
3401
  modelValue: a.value,
1375
- "onUpdate:modelValue": w[0] || (w[0] = (V) => a.value = V),
3402
+ "onUpdate:modelValue": V[0] || (V[0] = (P) => a.value = P),
1376
3403
  "data-testid": `select-search-${e.id}`,
1377
3404
  role: "combobox",
1378
3405
  class: "search",
@@ -1382,73 +3409,73 @@ const pn = ["data-testid"], Dn = ["id"], Nn = ["id", "disabled", "data-testid",
1382
3409
  "aria-haspopup": "listbox",
1383
3410
  "aria-owns": `select-list-${e.id}`,
1384
3411
  "aria-controls": `select-list-${e.id}`,
1385
- "aria-activedescendant": $(N).id,
3412
+ "aria-activedescendant": c(H).id,
1386
3413
  "aria-labelledby": `select-label-${e.id}`,
1387
- onClick: w[1] || (w[1] = q(() => {
3414
+ onClick: V[1] || (V[1] = Oe(() => {
1388
3415
  }, ["stop"])),
1389
- onInput: w[2] || (w[2] = (V) => {
1390
- var A;
1391
- return n("search", (A = V.target) == null ? void 0 : A.value);
3416
+ onInput: V[2] || (V[2] = (P) => {
3417
+ var G;
3418
+ return t("search", (G = P.target) == null ? void 0 : G.value);
1392
3419
  })
1393
3420
  }, null, 8, ["id", "modelValue", "data-testid", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
1394
- L($(He), {
3421
+ Y(c(En), {
1395
3422
  "aria-hidden": "true",
1396
3423
  class: "icon"
1397
3424
  })
1398
3425
  ])
1399
- ], 2)) : T("", !0),
1400
- L(Ln, {
3426
+ ], 2)) : W("", !0),
3427
+ Y(Va, {
1401
3428
  id: e.id,
1402
- ref: F("list"),
1403
- options: $(o),
3429
+ ref: I("list"),
3430
+ options: c(r),
1404
3431
  multiple: e.multiple,
1405
- "is-selected": y,
1406
- onSelect: I
3432
+ "is-selected": m,
3433
+ onSelect: g
1407
3434
  }, {
1408
- "item-list": E(({ text: V, value: A, option: fe, isSelected: me }) => [
1409
- m(g.$slots, "default", {
1410
- text: V,
1411
- value: A,
1412
- option: fe,
1413
- 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
1414
3441
  })
1415
3442
  ]),
1416
- "no-data": E(() => [
1417
- m(g.$slots, "no-data")
3443
+ "no-data": oe(() => [
3444
+ M(x.$slots, "no-data")
1418
3445
  ]),
1419
3446
  _: 3
1420
3447
  }, 8, ["id", "options", "multiple"])
1421
3448
  ])
1422
3449
  ], 512), [
1423
- [X, l.value]
3450
+ [We, l.value]
1424
3451
  ])
1425
3452
  ]),
1426
3453
  _: 3
1427
3454
  })
1428
- ], 42, pn));
3455
+ ], 42, Ta));
1429
3456
  }
1430
3457
  });
1431
- Ce.install = (e) => {
1432
- e.component("SolSelect", Ce);
3458
+ Bt.install = (e) => {
3459
+ e.component("SolSelect", Bt);
1433
3460
  };
1434
- ce.install = (e) => {
1435
- e.component("SolChip", ce);
3461
+ ut.install = (e) => {
3462
+ e.component("SolChip", ut);
1436
3463
  };
1437
- const Kn = {
3464
+ const za = {
1438
3465
  preserveAspectRatio: "xMidYMid meet",
1439
3466
  viewBox: "0 0 24 24",
1440
3467
  width: "1em",
1441
3468
  height: "1em"
1442
- }, Un = /* @__PURE__ */ u("path", {
3469
+ }, Ra = /* @__PURE__ */ S("path", {
1443
3470
  fill: "currentColor",
1444
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"
1445
- }, null, -1), Gn = [
1446
- Un
3472
+ }, null, -1), Ua = [
3473
+ Ra
1447
3474
  ];
1448
- function Qn(e, n) {
1449
- return s(), r("svg", Kn, Gn);
3475
+ function qa(e, t) {
3476
+ return b(), O("svg", za, Ua);
1450
3477
  }
1451
- const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render: Qn }, Yn = ["id", "data-testid", "aria-disabled"], Wn = ["data-testid", "tabindex"], jn = { class: "container-title" }, Zn = { class: "icon" }, Jn = ["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({
1452
3479
  __name: "Accordion",
1453
3480
  props: {
1454
3481
  id: null,
@@ -1457,43 +3484,43 @@ const Ue = { name: "material-symbols-keyboard-arrow-down-rounded", render: Qn },
1457
3484
  disabled: { type: Boolean }
1458
3485
  },
1459
3486
  setup(e) {
1460
- return (n, t) => (s(), r("details", {
3487
+ return (t, n) => (b(), O("details", {
1461
3488
  id: `accordion-${e.id}`,
1462
3489
  "data-testid": `accordion-${e.id}`,
1463
- 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 }]),
1464
3491
  "aria-disabled": e.disabled
1465
3492
  }, [
1466
- u("summary", {
3493
+ S("summary", {
1467
3494
  "data-testid": `accordion-title-${e.id}`,
1468
3495
  class: "summary",
1469
3496
  tabindex: e.disabled ? -1 : 0
1470
3497
  }, [
1471
- u("div", jn, [
1472
- u("span", Zn, [
1473
- m(n.$slots, "icon")
3498
+ S("div", Ka, [
3499
+ S("span", Qa, [
3500
+ M(t.$slots, "icon")
1474
3501
  ]),
1475
- m(n.$slots, "title", {}, () => [
1476
- D(x(e.title), 1)
3502
+ M(t.$slots, "title", {}, () => [
3503
+ ce(D(e.title), 1)
1477
3504
  ])
1478
3505
  ]),
1479
- L($(Ue), {
3506
+ Y(c(Mn), {
1480
3507
  class: "icon",
1481
3508
  "aria-hidden": "true"
1482
3509
  })
1483
- ], 8, Wn),
1484
- u("div", {
3510
+ ], 8, Ha),
3511
+ S("div", {
1485
3512
  "data-testid": `accordion-content-${e.id}`,
1486
3513
  class: "accordion-content"
1487
3514
  }, [
1488
- m(n.$slots, "default")
1489
- ], 8, Jn)
1490
- ], 10, Yn));
3515
+ M(t.$slots, "default")
3516
+ ], 8, Wa)
3517
+ ], 10, Ga));
1491
3518
  }
1492
3519
  });
1493
- Ie.install = (e) => {
1494
- e.component("SolAccordion", Ie);
3520
+ Tt.install = (e) => {
3521
+ e.component("SolAccordion", Tt);
1495
3522
  };
1496
- const Xn = ["id", "data-testid"], _n = ["id", "aria-expanded"], el = ["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({
1497
3524
  __name: "Menu",
1498
3525
  props: {
1499
3526
  id: null,
@@ -1501,77 +3528,77 @@ const Xn = ["id", "data-testid"], _n = ["id", "aria-expanded"], el = ["id", "dat
1501
3528
  position: { default: "bottom" }
1502
3529
  },
1503
3530
  setup(e) {
1504
- const n = z();
1505
- Te(n, () => {
1506
- I();
3531
+ const t = z();
3532
+ Ht(t, () => {
3533
+ g();
1507
3534
  });
1508
- const t = z(!1), i = z(), l = p(
3535
+ const n = z(!1), i = z(), l = j(
1509
3536
  () => i.value ? i.value.childElementCount : 0
1510
3537
  ), {
1511
3538
  resetStateFocus: a,
1512
- focusOnPreviousItem: o,
1513
- focusOnNextItem: d,
1514
- focusOnFirstItem: c,
1515
- focusOnLastItem: h
1516
- } = Ke({ target: i, query: '[role="menuitem"]' }), { navigate: f } = qe({
1517
- Home: c,
1518
- End: () => h(l.value),
1519
- 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,
1520
3547
  ArrowDown: () => {
1521
- !t.value && y(), d(l.value);
3548
+ !n.value && m(), o(l.value);
1522
3549
  },
1523
- Escape: I
3550
+ Escape: g
1524
3551
  });
1525
- function I() {
1526
- t.value = !1, a();
3552
+ function g() {
3553
+ n.value = !1, a();
1527
3554
  }
1528
- function y() {
1529
- t.value = !0;
3555
+ function m() {
3556
+ n.value = !0;
1530
3557
  }
1531
- function S() {
1532
- t.value ? I() : y();
3558
+ function C() {
3559
+ n.value ? g() : m();
1533
3560
  }
1534
- return (B, M) => (s(), r("div", {
3561
+ return (F, E) => (b(), O("div", {
1535
3562
  id: `menu-${e.id}`,
1536
3563
  ref_key: "el",
1537
- ref: n,
3564
+ ref: t,
1538
3565
  "data-testid": `menu-${e.id}`,
1539
- class: k([`-${e.position}`, "sol-menu-core"]),
1540
- onKeyupPassive: M[0] || (M[0] = (...N) => $(f) && $(f)(...N))
3566
+ class: N([`-${e.position}`, "sol-menu-core"]),
3567
+ onKeyupPassive: E[0] || (E[0] = (...H) => c(v) && c(v)(...H))
1541
3568
  }, [
1542
- u("button", {
3569
+ S("button", {
1543
3570
  id: `menu-button-${e.id}`,
1544
3571
  type: "button",
1545
3572
  role: "menuitem",
1546
3573
  class: "toggle-menu",
1547
3574
  "aria-haspopup": "true",
1548
- "aria-expanded": t.value,
1549
- onClick: S
3575
+ "aria-expanded": n.value,
3576
+ onClick: C
1550
3577
  }, [
1551
- m(B.$slots, "label", { isOpen: t.value }, () => [
1552
- D(x(e.label), 1)
3578
+ M(F.$slots, "label", { isOpen: n.value }, () => [
3579
+ ce(D(e.label), 1)
1553
3580
  ])
1554
- ], 8, _n),
1555
- Y(u("menu", {
3581
+ ], 8, Za),
3582
+ je(S("menu", {
1556
3583
  id: `menu-container-${e.id}`,
1557
3584
  ref_key: "menu",
1558
3585
  ref: i,
1559
3586
  "data-testid": `menu-container-${e.id}`,
1560
3587
  role: "menu",
1561
3588
  "aria-labelledby": `menu-button-${e.id}`,
1562
- class: k(["menu", { "-open": t.value }])
3589
+ class: N(["menu", { "-open": n.value }])
1563
3590
  }, [
1564
- m(B.$slots, "default", { close: I })
1565
- ], 10, el), [
1566
- [X, t.value]
3591
+ M(F.$slots, "default", { close: g })
3592
+ ], 10, Ja), [
3593
+ [We, n.value]
1567
3594
  ])
1568
- ], 42, Xn));
3595
+ ], 42, Ya));
1569
3596
  }
1570
3597
  });
1571
- re.install = (e) => {
1572
- e.component("SolMenu", re);
3598
+ dt.install = (e) => {
3599
+ e.component("SolMenu", dt);
1573
3600
  };
1574
- const tl = ["id"], nl = ["href", "target"], ue = /* @__PURE__ */ O({
3601
+ const Xa = ["id"], _a = ["href", "target"], ct = /* @__PURE__ */ U({
1575
3602
  __name: "MenuItemLink",
1576
3603
  props: {
1577
3604
  id: null,
@@ -1582,42 +3609,42 @@ const tl = ["id"], nl = ["href", "target"], ue = /* @__PURE__ */ O({
1582
3609
  external: null
1583
3610
  },
1584
3611
  emits: ["clicked"],
1585
- setup(e, { emit: n }) {
1586
- return (t, i) => {
3612
+ setup(e, { emit: t }) {
3613
+ return (n, i) => {
1587
3614
  var l;
1588
- return s(), r("li", {
3615
+ return b(), O("li", {
1589
3616
  id: `menu-item-link-${e.id}`,
1590
3617
  class: "sol-menuitem-link-core",
1591
3618
  tabindex: "-1",
1592
3619
  role: "none",
1593
- onClick: i[0] || (i[0] = (a) => n("clicked")),
3620
+ onClick: i[0] || (i[0] = (a) => t("clicked")),
1594
3621
  onKeyup: [
1595
- i[1] || (i[1] = K((a) => n("clicked"), ["enter"])),
1596
- 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"]))
1597
3624
  ]
1598
3625
  }, [
1599
- m(t.$slots, "default", {
3626
+ M(n.$slots, "default", {
1600
3627
  id: (l = e.linkId) != null ? l : e.id,
1601
3628
  active: e.active,
1602
3629
  link: e.link,
1603
3630
  text: e.text,
1604
3631
  external: e.external
1605
3632
  }, () => [
1606
- u("a", {
3633
+ S("a", {
1607
3634
  role: "menuitem",
1608
- class: k({ "-active": e.active }),
3635
+ class: N({ "-active": e.active }),
1609
3636
  href: e.link,
1610
3637
  target: e.external ? "_blank" : "_parent"
1611
- }, x(e.text), 11, nl)
3638
+ }, D(e.text), 11, _a)
1612
3639
  ])
1613
- ], 40, tl);
3640
+ ], 40, Xa);
1614
3641
  };
1615
3642
  }
1616
3643
  });
1617
- ue.install = (e) => {
1618
- e.component("SolMenuItemLink", ue);
3644
+ ct.install = (e) => {
3645
+ e.component("SolMenuItemLink", ct);
1619
3646
  };
1620
- const ll = { class: "label-container" }, il = { class: "label" }, Be = /* @__PURE__ */ O({
3647
+ const er = { class: "label-container" }, tr = { class: "label" }, Mt = /* @__PURE__ */ U({
1621
3648
  __name: "MenuNavigationLinks",
1622
3649
  props: {
1623
3650
  id: null,
@@ -1625,26 +3652,26 @@ const ll = { class: "label-container" }, il = { class: "label" }, Be = /* @__PUR
1625
3652
  linkItems: null
1626
3653
  },
1627
3654
  setup(e) {
1628
- return (n, t) => (s(), R(re, {
3655
+ return (t, n) => (b(), re(dt, {
1629
3656
  id: `navigation-${e.id}`,
1630
3657
  class: "sol-menu-navigation-links-core"
1631
3658
  }, {
1632
- label: E(({ isOpen: i }) => [
1633
- m(n.$slots, "label", { isOpen: i }, () => [
1634
- u("div", ll, [
1635
- u("span", il, x(e.label), 1),
1636
- L($(Ue), {
1637
- 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 }]),
1638
3665
  "aria-hidden": "true"
1639
3666
  }, null, 8, ["class"])
1640
3667
  ])
1641
3668
  ])
1642
3669
  ]),
1643
- default: E(({ close: i }) => [
1644
- (s(!0), r(j, null, Z(e.linkItems, (l, a) => {
1645
- var o;
1646
- return s(), R(ue, {
1647
- 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}`,
1648
3675
  key: a,
1649
3676
  "link-id": l.id,
1650
3677
  text: l.text,
@@ -1653,11 +3680,11 @@ const ll = { class: "label-container" }, il = { class: "label" }, Be = /* @__PUR
1653
3680
  active: l.active,
1654
3681
  onClicked: i
1655
3682
  }, {
1656
- default: E(() => {
1657
- var d;
3683
+ default: oe(() => {
3684
+ var o;
1658
3685
  return [
1659
- m(n.$slots, "default", {
1660
- id: (d = l.id) != null ? d : e.id,
3686
+ M(t.$slots, "default", {
3687
+ id: (o = l.id) != null ? o : e.id,
1661
3688
  active: l.active,
1662
3689
  link: l.link,
1663
3690
  text: l.text,
@@ -1673,10 +3700,10 @@ const ll = { class: "label-container" }, il = { class: "label" }, Be = /* @__PUR
1673
3700
  }, 8, ["id"]));
1674
3701
  }
1675
3702
  });
1676
- Be.install = (e) => {
1677
- e.component("SolMenuNavigationLinks", Be);
3703
+ Mt.install = (e) => {
3704
+ e.component("SolMenuNavigationLinks", Mt);
1678
3705
  };
1679
- const Ge = 12, Q = {
3706
+ const Pn = 12, Me = {
1680
3707
  type: "success",
1681
3708
  timeout: 5e3,
1682
3709
  showIcon: !0,
@@ -1684,41 +3711,41 @@ const Ge = 12, Q = {
1684
3711
  position: "top-right",
1685
3712
  hideProgressBar: !1
1686
3713
  };
1687
- function al(e, n) {
1688
- const t = ie({
3714
+ function nr(e, t) {
3715
+ const n = Se({
1689
3716
  id: null,
1690
3717
  intervalId: null,
1691
3718
  startTime: 0,
1692
- remaining: n
3719
+ remaining: t
1693
3720
  }), i = z(100);
1694
3721
  function l() {
1695
- 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;
1696
3723
  }
1697
3724
  function a() {
1698
- t.startTime = Date.now(), clearTimeout(t.id), t.intervalId = setInterval(() => {
3725
+ n.startTime = Date.now(), clearTimeout(n.id), n.intervalId = setInterval(() => {
1699
3726
  i.value--;
1700
- }, n / 100 - 5), t.id = setTimeout(e, t.remaining);
3727
+ }, t / 100 - 5), n.id = setTimeout(e, n.remaining);
1701
3728
  }
1702
- function o() {
1703
- clearInterval(t.intervalId), clearTimeout(t.id), i.value = 100;
3729
+ function r() {
3730
+ clearInterval(n.intervalId), clearTimeout(n.id), i.value = 100;
1704
3731
  }
1705
- return pe(() => {
1706
- if (n <= 0)
3732
+ return ft(() => {
3733
+ if (t <= 0)
1707
3734
  return !1;
1708
- }), Xe(() => {
1709
- o();
3735
+ }), Nt(() => {
3736
+ r();
1710
3737
  }), {
1711
3738
  start: a,
1712
3739
  stop: l,
1713
- clear: o,
3740
+ clear: r,
1714
3741
  progress: i
1715
3742
  };
1716
3743
  }
1717
- function ol(e) {
3744
+ function lr(e) {
1718
3745
  return {
1719
- stylePosition: p(() => {
1720
- const { position: t, offset: i } = e();
1721
- switch (t) {
3746
+ stylePosition: j(() => {
3747
+ const { position: n, offset: i } = e();
3748
+ switch (n) {
1722
3749
  case "top-left":
1723
3750
  return {
1724
3751
  left: "0",
@@ -1759,163 +3786,163 @@ function ol(e) {
1759
3786
  })
1760
3787
  };
1761
3788
  }
1762
- 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 || {});
1763
- const sl = {
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 = {
1764
3791
  preserveAspectRatio: "xMidYMid meet",
1765
3792
  viewBox: "0 0 24 24",
1766
3793
  width: "1em",
1767
3794
  height: "1em"
1768
- }, dl = /* @__PURE__ */ u("path", {
3795
+ }, ar = /* @__PURE__ */ S("path", {
1769
3796
  fill: "currentColor",
1770
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"
1771
- }, null, -1), cl = [
1772
- dl
3798
+ }, null, -1), rr = [
3799
+ ar
1773
3800
  ];
1774
- function rl(e, n) {
1775
- return s(), r("svg", sl, cl);
3801
+ function or(e, t) {
3802
+ return b(), O("svg", ir, rr);
1776
3803
  }
1777
- const ul = { name: "mi-circle-check", render: rl }, hl = {
3804
+ const sr = { name: "mi-circle-check", render: or }, ur = {
1778
3805
  preserveAspectRatio: "xMidYMid meet",
1779
3806
  viewBox: "0 0 24 24",
1780
3807
  width: "1em",
1781
3808
  height: "1em"
1782
- }, fl = /* @__PURE__ */ u("path", {
3809
+ }, dr = /* @__PURE__ */ S("path", {
1783
3810
  fill: "currentColor",
1784
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"
1785
- }, null, -1), ml = [
1786
- fl
3812
+ }, null, -1), cr = [
3813
+ dr
1787
3814
  ];
1788
- function vl(e, n) {
1789
- return s(), r("svg", hl, ml);
3815
+ function fr(e, t) {
3816
+ return b(), O("svg", ur, cr);
1790
3817
  }
1791
- const $l = { name: "mi-circle-error", render: vl }, bl = {
3818
+ const vr = { name: "mi-circle-error", render: fr }, hr = {
1792
3819
  preserveAspectRatio: "xMidYMid meet",
1793
3820
  viewBox: "0 0 24 24",
1794
3821
  width: "1em",
1795
3822
  height: "1em"
1796
- }, yl = /* @__PURE__ */ u("g", { fill: "currentColor" }, [
1797
- /* @__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" }),
1798
- /* @__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" })
1799
- ], -1), gl = [
1800
- yl
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
1801
3828
  ];
1802
- function wl(e, n) {
1803
- return s(), r("svg", bl, gl);
3829
+ function br(e, t) {
3830
+ return b(), O("svg", hr, yr);
1804
3831
  }
1805
- const kl = { name: "mi-circle-warning", render: wl }, xl = ["id", "data-testid"], Sl = { class: "content-wrapper" }, Cl = {
3832
+ const gr = { name: "mi-circle-warning", render: br }, $r = ["id", "data-testid"], wr = { class: "content-wrapper" }, kr = {
1806
3833
  key: 0,
1807
3834
  class: "icon-container",
1808
3835
  "aria-hidden": "true"
1809
- }, Il = { class: "content" }, Bl = {
3836
+ }, Or = { class: "content" }, Sr = {
1810
3837
  key: 0,
1811
3838
  class: "description"
1812
- }, Ol = ["data-testid"], Ml = /* @__PURE__ */ O({
3839
+ }, xr = ["data-testid"], pr = /* @__PURE__ */ U({
1813
3840
  __name: "Toast",
1814
3841
  props: {
1815
3842
  id: null,
1816
- type: { default: Q.type },
3843
+ type: { default: Me.type },
1817
3844
  visible: { type: Boolean, default: !1 },
1818
3845
  title: null,
1819
3846
  description: null,
1820
3847
  timeout: null,
1821
- hideProgressBar: { type: Boolean, default: Q.hideProgressBar },
1822
- showIcon: { type: Boolean, default: Q.showIcon },
3848
+ hideProgressBar: { type: Boolean, default: Me.hideProgressBar },
3849
+ showIcon: { type: Boolean, default: Me.showIcon },
1823
3850
  offset: { default: 0 },
1824
3851
  onClose: null,
1825
3852
  onCloseHandler: null,
1826
- position: { default: Q.position }
3853
+ position: { default: Me.position }
1827
3854
  },
1828
3855
  setup(e) {
1829
- const n = e, { start: t, stop: i, progress: l } = al(() => {
1830
- var h;
1831
- (h = n.onCloseHandler) == null || h.call(n);
1832
- }, n.timeout), { stylePosition: a } = ol(() => ({
1833
- offset: n.offset,
1834
- position: n.position
1835
- })), o = p(() => n.title && n.description);
1836
- function d() {
1837
- n.timeout > 0 && i();
1838
- }
1839
- function c() {
1840
- t();
1841
- }
1842
- return pe(() => {
1843
- t();
1844
- }), (h, f) => (s(), R(Me, {
1845
- 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],
1846
3873
  type: "animation"
1847
3874
  }, {
1848
- default: E(() => [
1849
- e.visible ? (s(), r("div", {
3875
+ default: oe(() => [
3876
+ e.visible ? (b(), O("div", {
1850
3877
  key: 0,
1851
3878
  id: `toast-${e.type}-${e.id}`,
1852
3879
  role: "status",
1853
3880
  "data-testid": `toast-${e.type}-${e.id}`,
1854
- style: ae($(a)),
1855
- class: k(["sol-toast-core", [`-${e.type}`, { "-multiline": $(o) }]]),
1856
- onKeyup: f[1] || (f[1] = K(
1857
- (...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),
1858
3885
  ["esc"]
1859
3886
  )),
1860
- onMouseenter: d,
1861
- onMouseleave: c,
1862
- onFocusin: d,
1863
- onFocusout: c
3887
+ onMouseenter: o,
3888
+ onMouseleave: s,
3889
+ onFocusin: o,
3890
+ onFocusout: s
1864
3891
  }, [
1865
- u("section", Sl, [
1866
- e.showIcon ? (s(), r("div", Cl, [
1867
- m(h.$slots, "icon-status", { type: e.type }, () => [
1868
- e.type === "success" ? (s(), R($(ul), {
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), {
1869
3896
  key: 0,
1870
3897
  class: "icon"
1871
- })) : T("", !0),
1872
- e.type === "info" ? (s(), R($(kl), {
3898
+ })) : W("", !0),
3899
+ e.type === "info" ? (b(), re(c(gr), {
1873
3900
  key: 1,
1874
3901
  class: "icon"
1875
- })) : T("", !0),
1876
- e.type === "danger" ? (s(), R($($l), {
3902
+ })) : W("", !0),
3903
+ e.type === "danger" ? (b(), re(c(vr), {
1877
3904
  key: 2,
1878
3905
  class: "icon"
1879
- })) : T("", !0)
3906
+ })) : W("", !0)
1880
3907
  ])
1881
- ])) : T("", !0),
1882
- u("div", Il, [
1883
- u("p", {
1884
- class: k(["title", { "-multiline": $(o) }])
3908
+ ])) : W("", !0),
3909
+ S("div", Or, [
3910
+ S("p", {
3911
+ class: N(["title", { "-multiline": c(r) }])
1885
3912
  }, [
1886
- m(h.$slots, "title", {}, () => [
1887
- D(x(e.title), 1)
3913
+ M(u.$slots, "title", {}, () => [
3914
+ ce(D(e.title), 1)
1888
3915
  ])
1889
3916
  ], 2),
1890
- e.description ? (s(), r("p", Bl, [
1891
- m(h.$slots, "description", {}, () => [
1892
- D(x(e.description), 1)
3917
+ e.description ? (b(), O("p", Sr, [
3918
+ M(u.$slots, "description", {}, () => [
3919
+ ce(D(e.description), 1)
1893
3920
  ])
1894
- ])) : T("", !0)
3921
+ ])) : W("", !0)
1895
3922
  ])
1896
3923
  ]),
1897
- u("button", {
3924
+ S("button", {
1898
3925
  type: "button",
1899
- class: k(["close", { "-multiline": $(o) }]),
3926
+ class: N(["close", { "-multiline": c(r) }]),
1900
3927
  "data-testid": `toast-close-button-${e.type}-${e.id}`,
1901
3928
  "aria-label": "close notification",
1902
- onClick: f[0] || (f[0] = (...I) => e.onCloseHandler && e.onCloseHandler(...I))
3929
+ onClick: v[0] || (v[0] = (...g) => e.onCloseHandler && e.onCloseHandler(...g))
1903
3930
  }, [
1904
- L($(Fe), { class: "icon" })
1905
- ], 10, Ol),
1906
- e.hideProgressBar ? T("", !0) : (s(), r("div", {
3931
+ Y(c(Fn), { class: "icon" })
3932
+ ], 10, xr),
3933
+ e.hideProgressBar ? W("", !0) : (b(), O("div", {
1907
3934
  key: 0,
1908
3935
  class: "progressbar",
1909
3936
  "aria-hidden": "true",
1910
- style: ae({ width: `${$(l)}%` })
3937
+ style: it({ width: `${c(l)}%` })
1911
3938
  }, null, 4))
1912
- ], 46, xl)) : T("", !0)
3939
+ ], 46, $r)) : W("", !0)
1913
3940
  ]),
1914
3941
  _: 3
1915
3942
  }, 8, ["name"]));
1916
3943
  }
1917
3944
  });
1918
- const ee = {
3945
+ const Ze = {
1919
3946
  "top-left": [],
1920
3947
  "top-right": [],
1921
3948
  "top-center": [],
@@ -1923,137 +3950,135 @@ const ee = {
1923
3950
  "bottom-right": [],
1924
3951
  "bottom-center": []
1925
3952
  };
1926
- function El() {
3953
+ function Br() {
1927
3954
  let e = 0;
1928
- function n() {
1929
- Object.entries(ee).forEach(([i, l]) => {
3955
+ function t() {
3956
+ Object.entries(Ze).forEach(([i, l]) => {
1930
3957
  l.length && l.forEach((a) => {
1931
- var d;
1932
- const o = (d = a.toastVNode.props) == null ? void 0 : d.id;
1933
- Oe(o, i);
3958
+ var o;
3959
+ const r = (o = a.toastVNode.props) == null ? void 0 : o.id;
3960
+ Pt(r, i);
1934
3961
  });
1935
3962
  });
1936
3963
  }
1937
3964
  return {
1938
3965
  createToast: (i, l) => {
1939
- const a = e++, o = l ? Tl(l) : Q;
1940
- return l != null && l.showOneToast && n(), Ll(a, o, typeof i == "string" ? { title: i } : i), {
1941
- 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)
1942
3969
  };
1943
3970
  },
1944
- clearAllToasts: n
3971
+ clearAllToasts: t
1945
3972
  };
1946
3973
  }
1947
- function Tl(e) {
1948
- const n = {
1949
- ...Q,
3974
+ function Cr(e) {
3975
+ const t = {
3976
+ ...Me,
1950
3977
  ...e,
1951
3978
  showIcon: e.showIcon
1952
3979
  };
1953
- 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;
1954
3981
  }
1955
- function Ll(e, n, t) {
3982
+ function Vr(e, t, n) {
1956
3983
  setTimeout(() => {
1957
- const i = zl(n, ee, Ge), l = document.createElement("div");
3984
+ const i = Ir(t, Ze, Pn), l = document.createElement("div");
1958
3985
  document.body.appendChild(l);
1959
- const a = L(
1960
- Ml,
1961
- Pl(n, e, i, Oe, t)
3986
+ const a = Y(
3987
+ pr,
3988
+ Ar(t, e, i, Pt, n)
1962
3989
  );
1963
- De(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);
1964
3991
  }, 1);
1965
3992
  }
1966
- function Pl(e, n, t, i, l) {
3993
+ function Ar(e, t, n, i, l) {
1967
3994
  return {
1968
3995
  ...e,
1969
3996
  ...l,
1970
- id: n,
1971
- offset: t,
3997
+ id: t,
3998
+ offset: n,
1972
3999
  visible: !1,
1973
4000
  onCloseHandler() {
1974
- i(n, e.position ? e.position : "top-right");
4001
+ i(t, e.position ? e.position : "top-right");
1975
4002
  }
1976
4003
  };
1977
4004
  }
1978
- function zl(e, n, t) {
4005
+ function Ir(e, t, n) {
1979
4006
  if (!e.position)
1980
4007
  throw new Error("no position");
1981
- 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);
1982
4009
  }
1983
- function Vl(e, n, t, i) {
1984
- for (let l = e; l < n.length; l++) {
1985
- 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];
1986
4013
  if (!a.el)
1987
4014
  return;
1988
- 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;
1989
4016
  if (!a.component)
1990
4017
  return;
1991
- a.component.props.offset = d;
4018
+ a.component.props.offset = o;
1992
4019
  }
1993
4020
  }
1994
- function Oe(e, n) {
1995
- var c;
1996
- const t = ee[n], i = t.findIndex(
1997
- ({ toastVNode: h }) => {
1998
- var f;
1999
- 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);
2000
4027
  }
2001
4028
  );
2002
4029
  if (i === -1)
2003
4030
  return;
2004
- const { container: l, toastVNode: a } = t[i], o = (c = a == null ? void 0 : a.el) == null ? void 0 : c.offsetHeight;
2005
- 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)
2006
4033
  return;
2007
- const d = a.component.props;
2008
- d.visible = !1, d.onClose && d.onClose(), setTimeout(() => {
2009
- De(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);
2010
4037
  }, 1e3);
2011
4038
  }
2012
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");
2013
- const Ae = {
2014
- SolButton: _,
2015
- SolButtonDestructive: Ne,
2016
- SolInput: W,
2017
- SolTextarea: be,
2018
- SolTextfield: oe,
2019
- SolTextfieldPassword: $e,
2020
- SolRadio: se,
2021
- SolRadioGroup: ye,
2022
- SolCheckbox: de,
2023
- SolCheckboxGroup: ge,
2024
- SolSwitch: we,
2025
- SolDropdown: Se,
2026
- SolSelect: Ce,
2027
- SolChip: ce,
2028
- SolAccordion: Ie,
2029
- SolMenu: re,
2030
- SolMenuItemLink: ue,
2031
- 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
2032
4058
  };
2033
- function pl(e) {
2034
- for (const n in Ae)
2035
- e.component(n, Ae[n]);
4059
+ function Tr(e) {
4060
+ for (const t in rn)
4061
+ e.component(t, rn[t]);
2036
4062
  }
2037
4063
  export {
2038
- Ie as SolAccordion,
2039
- _ as SolButton,
2040
- Ne as SolButtonDestructive,
2041
- de as SolCheckbox,
2042
- ge as SolCheckboxGroup,
2043
- ce as SolChip,
2044
- Se as SolDropdown,
2045
- W as SolInput,
2046
- re as SolMenu,
2047
- ue as SolMenuItemLink,
2048
- Be as SolMenuNavigationLinks,
2049
- se as SolRadio,
2050
- ye as SolRadioGroup,
2051
- Ce as SolSelect,
2052
- we as SolSwitch,
2053
- be as SolTextarea,
2054
- oe as SolTextfield,
2055
- $e as SolTextfieldPassword,
2056
- Ae as components,
2057
- pl as install,
2058
- El 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
2059
4084
  };