@solfacil/girassol 0.2.4 → 0.2.7

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 (31) hide show
  1. package/dist/components.d.ts +3 -0
  2. package/dist/components.json +1 -1
  3. package/dist/girassol.es.js +1083 -808
  4. package/dist/girassol.umd.js +6 -6
  5. package/dist/style.css +1 -1
  6. package/dist/theme/solfacil/index.d.ts +2 -1
  7. package/dist/theme/solfacil/miscs.d.ts +124 -0
  8. package/dist/theme/solfacil/screens.d.ts +11 -0
  9. package/dist/theme/solfacil/spacing.d.ts +28 -18
  10. package/dist/types/components/informations/chip/Chip.vue.d.ts +1 -1
  11. package/dist/types/components/menus/menu/Menu.vue.d.ts +114 -0
  12. package/dist/types/components/menus/menu/index.d.ts +2 -0
  13. package/dist/types/components/menus/menu/menu.spec.d.ts +1 -0
  14. package/dist/types/components/menus/menu-item/menu-item-link/MenuItemLink.vue.d.ts +88 -0
  15. package/dist/types/components/menus/menu-item/menu-item-link/index.d.ts +2 -0
  16. package/dist/types/components/menus/menu-item/menu-item-link/types.d.ts +6 -0
  17. package/dist/types/components/menus/menu-navigation-links/MenuNavigationLinks.vue.d.ts +83 -0
  18. package/dist/types/components/menus/menu-navigation-links/index.d.ts +2 -0
  19. package/dist/types/composables/use-navigate/index.d.ts +20 -0
  20. package/dist/types/composables/use-navigate/types.d.ts +19 -0
  21. package/dist/types/composables/use-toast/Toast.vue.d.ts +4 -4
  22. package/dist/types/index.d.ts +385 -26
  23. package/package.json +11 -11
  24. package/theme/safelist.ts +2 -0
  25. package/theme/solfacil/index.ts +3 -1
  26. package/theme/solfacil/miscs.ts +12 -1
  27. package/theme/solfacil/screens.ts +5 -0
  28. package/theme/solfacil/spacing.ts +27 -50
  29. package/theme/solfacil/utilities.ts +11 -0
  30. package/vite.config.ts +2 -1
  31. package/windi.config.ts +5 -2
@@ -1,28 +1,28 @@
1
- import { defineComponent as V, openBlock as s, createElementBlock as r, normalizeClass as S, createElementVNode as h, useSlots as Oe, computed as E, unref as g, renderSlot as y, createVNode as M, createCommentVNode as T, createBlock as p, withCtx as D, ref as I, toDisplayString as x, mergeProps as N, isRef as Be, withDirectives as W, vShow as le, vModelText as De, Fragment as J, renderList as X, getCurrentScope as Re, onScopeDispose as pe, watch as He, reactive as Z, withModifiers as H, createTextVNode as O, Transition as we, normalizeStyle as ne, withKeys as j, onMounted as Te, onUnmounted as Ne, render as Me } from "vue";
2
- const Ue = /* @__PURE__ */ h("path", {
1
+ import { defineComponent as I, openBlock as s, createElementBlock as c, normalizeClass as k, createElementVNode as u, useSlots as Qe, computed as D, unref as $, renderSlot as m, createVNode as L, createCommentVNode as T, createBlock as N, withCtx as p, ref as z, toDisplayString as S, mergeProps as U, isRef as Ee, withDirectives as Y, vShow as X, vModelText as Ye, Fragment as j, renderList as Z, getCurrentScope as We, onScopeDispose as je, watch as Ze, reactive as ae, withModifiers as q, createTextVNode as R, Transition as Me, normalizeStyle as oe, withKeys as _, onMounted as pe, onUnmounted as Je, render as De } from "vue";
2
+ const Xe = /* @__PURE__ */ u("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), Ge = [
6
- Ue
7
- ], Fe = /* @__PURE__ */ V({
5
+ }, null, -1), _e = [
6
+ Xe
7
+ ], et = /* @__PURE__ */ I({
8
8
  __name: "CircleLoader",
9
9
  props: {
10
10
  size: { default: "large" },
11
11
  dark: { type: Boolean }
12
12
  },
13
13
  setup(e) {
14
- return (l, t) => (s(), r("svg", {
15
- class: S(["sol-inner-loader", `-${e.size}`]),
14
+ return (n, t) => (s(), c("svg", {
15
+ class: k(["sol-inner-loader", `-${e.size}`]),
16
16
  viewBox: "0 0 32 32",
17
17
  fill: "none",
18
18
  xmlns: "http://www.w3.org/2000/svg"
19
- }, Ge, 2));
19
+ }, _e, 2));
20
20
  }
21
21
  });
22
- const Ke = ["data-testid", "disabled"], Ye = { class: "icon -left" }, We = { class: "icon -right" }, Ze = {
22
+ const tt = ["data-testid", "disabled"], nt = { class: "icon -left" }, lt = { class: "icon -right" }, it = {
23
23
  key: 0,
24
24
  class: "loading"
25
- }, q = /* @__PURE__ */ V({
25
+ }, ee = /* @__PURE__ */ I({
26
26
  __name: "Button",
27
27
  props: {
28
28
  id: null,
@@ -33,57 +33,57 @@ const Ke = ["data-testid", "disabled"], Ye = { class: "icon -left" }, We = { cla
33
33
  variant: { default: "primary" }
34
34
  },
35
35
  setup(e) {
36
- function l(a, o) {
36
+ function n(a, o) {
37
37
  return a ? o : "";
38
38
  }
39
- const t = Oe(), i = E(
39
+ const t = Qe(), l = D(
40
40
  () => !!(t != null && t.default) && (!!(t != null && t["icon-right"]) || !!(t != null && t["icon-left"]))
41
- ), n = E(
41
+ ), i = D(
42
42
  () => !(t != null && t.default) && (!!(t != null && t["icon-right"]) || !!(t != null && t["icon-left"]))
43
43
  );
44
- return (a, o) => (s(), r("button", {
44
+ return (a, o) => (s(), c("button", {
45
45
  "data-testid": `button-${e.id}`,
46
- class: S(["sol-button-core", `-${e.variant} -${e.size}
47
- ${l(e.loading, "-loading-helper")}
48
- ${l(e.onColor, "-on-color")}
49
- ${l(g(i), "-has-icon")}
50
- ${l(g(n), "-only-icon")}
46
+ class: k(["sol-button-core", `-${e.variant} -${e.size}
47
+ ${n(e.loading, "-loading-helper")}
48
+ ${n(e.onColor, "-on-color")}
49
+ ${n($(l), "-has-icon")}
50
+ ${n($(i), "-only-icon")}
51
51
  `]),
52
52
  type: "button",
53
53
  disabled: e.disabled || e.loading
54
54
  }, [
55
- h("div", Ye, [
56
- y(a.$slots, "icon-left")
55
+ u("div", nt, [
56
+ m(a.$slots, "icon-left")
57
57
  ]),
58
- y(a.$slots, "default"),
59
- h("div", We, [
60
- y(a.$slots, "icon-right")
58
+ m(a.$slots, "default"),
59
+ u("div", lt, [
60
+ m(a.$slots, "icon-right")
61
61
  ]),
62
- e.loading ? (s(), r("div", Ze, [
63
- M(Fe, {
62
+ e.loading ? (s(), c("div", it, [
63
+ L(et, {
64
64
  "data-testid": `button-loader-${e.id}`,
65
65
  size: e.size === "small" ? "small" : "medium",
66
66
  dark: e.onColor
67
67
  }, null, 8, ["data-testid", "size", "dark"])
68
68
  ])) : T("", !0)
69
- ], 10, Ke));
69
+ ], 10, tt));
70
70
  }
71
71
  });
72
- const je = {
72
+ const at = {
73
73
  preserveAspectRatio: "xMidYMid meet",
74
74
  viewBox: "0 0 24 24",
75
75
  width: "1em",
76
76
  height: "1em"
77
- }, qe = /* @__PURE__ */ h("path", {
77
+ }, ot = /* @__PURE__ */ u("path", {
78
78
  fill: "currentColor",
79
79
  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), Qe = [
81
- qe
80
+ }, null, -1), st = [
81
+ ot
82
82
  ];
83
- function Je(e, l) {
84
- return s(), r("svg", je, Qe);
83
+ function dt(e, n) {
84
+ return s(), c("svg", at, st);
85
85
  }
86
- const Xe = { name: "material-symbols-delete-outline", render: Je }, ze = /* @__PURE__ */ V({
86
+ const ct = { name: "material-symbols-delete-outline", render: dt }, Re = /* @__PURE__ */ I({
87
87
  __name: "ButtonDestructive",
88
88
  props: {
89
89
  id: null,
@@ -91,30 +91,30 @@ const Xe = { name: "material-symbols-delete-outline", render: Je }, ze = /* @__P
91
91
  loading: { type: Boolean }
92
92
  },
93
93
  setup(e) {
94
- return (l, t) => (s(), p(q, {
94
+ return (n, t) => (s(), N(ee, {
95
95
  id: `destructive-${e.id}`,
96
96
  size: e.size,
97
97
  loading: e.loading,
98
98
  variant: "primary",
99
99
  class: "button-destructive"
100
100
  }, {
101
- "icon-left": D(() => [
102
- M(g(Xe))
101
+ "icon-left": p(() => [
102
+ L($(ct))
103
103
  ]),
104
- default: D(() => [
105
- y(l.$slots, "default")
104
+ default: p(() => [
105
+ m(n.$slots, "default")
106
106
  ]),
107
107
  _: 3
108
108
  }, 8, ["id", "size", "loading"]));
109
109
  }
110
110
  });
111
- q.install = (e) => {
112
- e.component("SolButton", q);
111
+ ee.install = (e) => {
112
+ e.component("SolButton", ee);
113
113
  };
114
- ze.install = (e) => {
115
- e.component("SolButton", q);
114
+ Re.install = (e) => {
115
+ e.component("SolButton", ee);
116
116
  };
117
- const _e = ["id", "data-testid", "value"], F = /* @__PURE__ */ V({
117
+ const rt = ["id", "data-testid", "value"], W = /* @__PURE__ */ I({
118
118
  __name: "Input",
119
119
  props: {
120
120
  id: null,
@@ -123,28 +123,28 @@ const _e = ["id", "data-testid", "value"], F = /* @__PURE__ */ V({
123
123
  error: { type: Boolean }
124
124
  },
125
125
  emits: ["update:modelValue"],
126
- setup(e, { expose: l, emit: t }) {
127
- function i({ target: a }) {
126
+ setup(e, { expose: n, emit: t }) {
127
+ function l({ target: a }) {
128
128
  t("update:modelValue", a == null ? void 0 : a.value);
129
129
  }
130
- const n = I("");
131
- return l({
132
- input: n
133
- }), (a, o) => (s(), r("input", {
130
+ const i = z("");
131
+ return n({
132
+ input: i
133
+ }), (a, o) => (s(), c("input", {
134
134
  id: `input-${e.id}`,
135
135
  ref_key: "input",
136
- ref: n,
136
+ ref: i,
137
137
  "data-testid": `input-${e.id}`,
138
138
  value: e.modelValue,
139
- class: S(["sol-input-core", { "-invert": e.invert, "-error": e.error }]),
140
- onInput: i
141
- }, null, 42, _e));
139
+ class: k(["sol-input-core", { "-invert": e.invert, "-error": e.error }]),
140
+ onInput: l
141
+ }, null, 42, rt));
142
142
  }
143
143
  });
144
- F.install = (e) => {
145
- e.component("SolInput", F);
144
+ W.install = (e) => {
145
+ e.component("SolInput", W);
146
146
  };
147
- const et = ["id", "data-testid"], tt = ["for"], lt = { class: "container-input" }, nt = ["id"], it = ["id"], ie = /* @__PURE__ */ V({
147
+ const ut = ["id", "data-testid"], ht = ["for"], ft = { class: "container-input" }, mt = ["id"], vt = ["id"], se = /* @__PURE__ */ I({
148
148
  __name: "Textfield",
149
149
  props: {
150
150
  id: null,
@@ -156,41 +156,41 @@ const et = ["id", "data-testid"], tt = ["for"], lt = { class: "container-input"
156
156
  error: null
157
157
  },
158
158
  emits: ["update:modelValue"],
159
- setup(e, { emit: l }) {
160
- const t = e, i = E({
159
+ setup(e, { emit: n }) {
160
+ const t = e, l = D({
161
161
  get: () => t.modelValue,
162
162
  set: (o) => {
163
- l("update:modelValue", o);
163
+ n("update:modelValue", o);
164
164
  }
165
165
  });
166
- function n(o, c) {
167
- return !!o && !c;
166
+ function i(o, d) {
167
+ return !!o && !d;
168
168
  }
169
- function a(o, c) {
170
- return c ? `error-${t.id}` : n(o, c) ? `hint-${t.id}` : null;
169
+ function a(o, d) {
170
+ return d ? `error-${t.id}` : i(o, d) ? `hint-${t.id}` : null;
171
171
  }
172
- return (o, c) => {
173
- var u;
174
- return s(), r("div", {
172
+ return (o, d) => {
173
+ var r;
174
+ return s(), c("div", {
175
175
  id: `textfield-${e.id}`,
176
176
  "data-testid": `textfield-${e.id}`,
177
- class: S([[`${(u = o.$props.class) != null ? u : ""}`, { "-invert": e.invert }], "sol-textfield-core"])
177
+ class: k([[`${(r = o.$props.class) != null ? r : ""}`, { "-invert": e.invert }], "sol-textfield-core"])
178
178
  }, [
179
- y(o.$slots, "label", {}, () => [
180
- e.label ? (s(), r("label", {
179
+ m(o.$slots, "label", {}, () => [
180
+ e.label ? (s(), c("label", {
181
181
  key: 0,
182
182
  for: `input-${e.id}`,
183
183
  class: "label"
184
184
  }, [
185
- h("span", null, x(e.label), 1)
186
- ], 8, tt)) : T("", !0)
185
+ u("span", null, S(e.label), 1)
186
+ ], 8, ht)) : T("", !0)
187
187
  ]),
188
- h("div", lt, [
189
- y(o.$slots, "default", {}, () => [
190
- M(F, N(o.$attrs, {
188
+ u("div", ft, [
189
+ m(o.$slots, "default", {}, () => [
190
+ L(W, U(o.$attrs, {
191
191
  id: e.id,
192
- modelValue: g(i),
193
- "onUpdate:modelValue": c[0] || (c[0] = (f) => Be(i) ? i.value = f : null),
192
+ modelValue: $(l),
193
+ "onUpdate:modelValue": d[0] || (d[0] = (h) => Ee(l) ? l.value = h : null),
194
194
  "data-testid": `input-${e.id}`,
195
195
  class: [e.error && "-error", "input"],
196
196
  invert: e.invert,
@@ -198,92 +198,92 @@ const et = ["id", "data-testid"], tt = ["for"], lt = { class: "container-input"
198
198
  "aria-describedby": a(e.hint, e.error)
199
199
  }), null, 16, ["id", "modelValue", "data-testid", "class", "invert", "aria-invalid", "aria-describedby"])
200
200
  ]),
201
- y(o.$slots, "icon")
201
+ m(o.$slots, "icon")
202
202
  ]),
203
- n(e.hint, e.error) ? (s(), r("span", {
203
+ i(e.hint, e.error) ? (s(), c("span", {
204
204
  key: 0,
205
205
  id: `hint-${e.id}`,
206
206
  class: "hint"
207
- }, x(e.hint), 9, nt)) : e.error ? (s(), r("span", {
207
+ }, S(e.hint), 9, mt)) : e.error ? (s(), c("span", {
208
208
  key: 1,
209
209
  id: `error-${e.id}`,
210
210
  class: "error"
211
- }, x(e.error), 9, it)) : T("", !0)
212
- ], 10, et);
211
+ }, S(e.error), 9, vt)) : T("", !0)
212
+ ], 10, ut);
213
213
  };
214
214
  }
215
215
  });
216
- const at = {
216
+ const $t = {
217
217
  preserveAspectRatio: "xMidYMid meet",
218
218
  viewBox: "0 0 24 24",
219
219
  width: "1em",
220
220
  height: "1em"
221
- }, ot = /* @__PURE__ */ h("g", { fill: "currentColor" }, [
222
- /* @__PURE__ */ h("path", { d: "M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0z" }),
223
- /* @__PURE__ */ h("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), st = [
225
- ot
221
+ }, bt = /* @__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), yt = [
225
+ bt
226
226
  ];
227
- function dt(e, l) {
228
- return s(), r("svg", at, st);
227
+ function gt(e, n) {
228
+ return s(), c("svg", $t, yt);
229
229
  }
230
- const ct = { name: "mi-eye", render: dt }, rt = {
230
+ const wt = { name: "mi-eye", render: gt }, xt = {
231
231
  preserveAspectRatio: "xMidYMid meet",
232
232
  viewBox: "0 0 24 24",
233
233
  width: "1em",
234
234
  height: "1em"
235
- }, ut = /* @__PURE__ */ h("path", {
235
+ }, kt = /* @__PURE__ */ u("path", {
236
236
  fill: "currentColor",
237
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), ht = [
239
- ut
238
+ }, null, -1), St = [
239
+ kt
240
240
  ];
241
- function ft(e, l) {
242
- return s(), r("svg", rt, ht);
241
+ function Ct(e, n) {
242
+ return s(), c("svg", xt, St);
243
243
  }
244
- const mt = { name: "mi-eye-off", render: ft }, $t = ["aria-label"], ce = /* @__PURE__ */ V({
244
+ const Bt = { name: "mi-eye-off", render: Ct }, It = ["aria-label"], $e = /* @__PURE__ */ I({
245
245
  __name: "TextfieldPassword",
246
246
  props: {
247
247
  id: { default: "" },
248
248
  label: { default: "Sua senha" }
249
249
  },
250
250
  setup(e) {
251
- const l = I(!1), t = E(
252
- () => l.value ? "text" : "password"
251
+ const n = z(!1), t = D(
252
+ () => n.value ? "text" : "password"
253
253
  );
254
- return (i, n) => (s(), p(ie, {
254
+ return (l, i) => (s(), N(se, {
255
255
  id: e.id,
256
256
  required: "",
257
- type: g(t),
257
+ type: $(t),
258
258
  label: e.label,
259
259
  placeholder: "Insira sua senha"
260
260
  }, {
261
- icon: D(() => [
262
- h("button", {
261
+ icon: p(() => [
262
+ u("button", {
263
263
  type: "button",
264
264
  "data-testid": "toggle-type-password",
265
- "aria-label": l.value ? "Hide password" : "Show password",
266
- onClick: n[0] || (n[0] = (a) => l.value = !l.value)
265
+ "aria-label": n.value ? "Hide password" : "Show password",
266
+ onClick: i[0] || (i[0] = (a) => n.value = !n.value)
267
267
  }, [
268
- W(M(g(ct), { "aria-hidden": "true" }, null, 512), [
269
- [le, l.value]
268
+ Y(L($(wt), { "aria-hidden": "true" }, null, 512), [
269
+ [X, n.value]
270
270
  ]),
271
- W(M(g(mt), { "aria-hidden": "true" }, null, 512), [
272
- [le, !l.value]
271
+ Y(L($(Bt), { "aria-hidden": "true" }, null, 512), [
272
+ [X, !n.value]
273
273
  ])
274
- ], 8, $t)
274
+ ], 8, It)
275
275
  ]),
276
276
  _: 1
277
277
  }, 8, ["id", "type", "label"]));
278
278
  }
279
279
  });
280
- ie.install = (e) => {
281
- e.component("SolTextfield", ie);
280
+ se.install = (e) => {
281
+ e.component("SolTextfield", se);
282
282
  };
283
- ce.install = (e) => {
284
- e.component("SolTextfieldPassword", ce);
283
+ $e.install = (e) => {
284
+ e.component("SolTextfieldPassword", $e);
285
285
  };
286
- const vt = ["id", "data-testid"], bt = ["for"], yt = { class: "container-textarea" }, gt = ["id", "data-testid", "invert", "aria-invalid", "aria-describedby"], wt = ["id"], xt = ["id"], re = /* @__PURE__ */ V({
286
+ const Ot = ["id", "data-testid"], Mt = ["for"], Tt = { class: "container-textarea" }, Lt = ["id", "data-testid", "invert", "aria-invalid", "aria-describedby"], Pt = ["id"], zt = ["id"], be = /* @__PURE__ */ I({
287
287
  __name: "Textarea",
288
288
  props: {
289
289
  id: null,
@@ -296,68 +296,68 @@ const vt = ["id", "data-testid"], bt = ["for"], yt = { class: "container-textare
296
296
  error: null
297
297
  },
298
298
  emits: ["update:modelValue"],
299
- setup(e, { emit: l }) {
300
- const t = e, i = E({
299
+ setup(e, { emit: n }) {
300
+ const t = e, l = D({
301
301
  get: () => t.modelValue,
302
302
  set: (o) => {
303
- l("update:modelValue", o);
303
+ n("update:modelValue", o);
304
304
  }
305
305
  });
306
- function n(o, c) {
307
- return !!o && !c;
306
+ function i(o, d) {
307
+ return !!o && !d;
308
308
  }
309
- function a(o, c) {
310
- return c ? `error-${t.id}` : n(o, c) ? `hint-${t.id}` : null;
309
+ function a(o, d) {
310
+ return d ? `error-${t.id}` : i(o, d) ? `hint-${t.id}` : null;
311
311
  }
312
- return (o, c) => {
313
- var u;
314
- return s(), r("div", {
312
+ return (o, d) => {
313
+ var r;
314
+ return s(), c("div", {
315
315
  id: `textarea-${e.id}`,
316
316
  "data-testid": `textarea-${e.id}`,
317
- class: S([[`${(u = o.$props.class) != null ? u : ""}`, { "-invert": e.invert }], "sol-textarea-core"])
317
+ class: k([[`${(r = o.$props.class) != null ? r : ""}`, { "-invert": e.invert }], "sol-textarea-core"])
318
318
  }, [
319
- y(o.$slots, "label", {}, () => [
320
- e.label ? (s(), r("label", {
319
+ m(o.$slots, "label", {}, () => [
320
+ e.label ? (s(), c("label", {
321
321
  key: 0,
322
322
  for: `input-${e.id}`,
323
323
  class: "label"
324
324
  }, [
325
- h("span", null, x(e.label), 1)
326
- ], 8, bt)) : T("", !0)
325
+ u("span", null, S(e.label), 1)
326
+ ], 8, Mt)) : T("", !0)
327
327
  ]),
328
- h("div", yt, [
329
- y(o.$slots, "default", {}, () => [
330
- W(h("textarea", N(o.$attrs, {
328
+ u("div", Tt, [
329
+ m(o.$slots, "default", {}, () => [
330
+ Y(u("textarea", U(o.$attrs, {
331
331
  id: `input-${e.id}`,
332
- "onUpdate:modelValue": c[0] || (c[0] = (f) => Be(i) ? i.value = f : null),
332
+ "onUpdate:modelValue": d[0] || (d[0] = (h) => Ee(l) ? l.value = h : null),
333
333
  "data-testid": `input-${e.id}`,
334
334
  class: [e.error && "-error", "textarea"],
335
335
  invert: e.invert,
336
336
  style: { resize: e.resize },
337
337
  "aria-invalid": !!e.error,
338
338
  "aria-describedby": a(e.hint, e.error)
339
- }), null, 16, gt), [
340
- [De, g(i)]
339
+ }), null, 16, Lt), [
340
+ [Ye, $(l)]
341
341
  ])
342
342
  ])
343
343
  ]),
344
- n(e.hint, e.error) ? (s(), r("span", {
344
+ i(e.hint, e.error) ? (s(), c("span", {
345
345
  key: 0,
346
346
  id: `hint-${e.id}`,
347
347
  class: "hint"
348
- }, x(e.hint), 9, wt)) : e.error ? (s(), r("span", {
348
+ }, S(e.hint), 9, Pt)) : e.error ? (s(), c("span", {
349
349
  key: 1,
350
350
  id: `error-${e.id}`,
351
351
  class: "error"
352
- }, x(e.error), 9, xt)) : T("", !0)
353
- ], 10, vt);
352
+ }, S(e.error), 9, zt)) : T("", !0)
353
+ ], 10, Ot);
354
354
  };
355
355
  }
356
356
  });
357
- re.install = (e) => {
358
- e.component("SolTextarea", re);
357
+ be.install = (e) => {
358
+ e.component("SolTextarea", be);
359
359
  };
360
- const St = ["id", "data-testid", "checked", "value", "name"], Ct = ["for"], ae = /* @__PURE__ */ V({
360
+ const Vt = ["id", "data-testid", "checked", "value", "name"], At = ["for"], de = /* @__PURE__ */ I({
361
361
  __name: "Radio",
362
362
  props: {
363
363
  id: null,
@@ -368,11 +368,11 @@ const St = ["id", "data-testid", "checked", "value", "name"], Ct = ["for"], ae =
368
368
  class: null
369
369
  },
370
370
  emits: ["change"],
371
- setup(e, { emit: l }) {
372
- return (t, i) => (s(), r("div", {
373
- class: S(["sol-radio-core", t.$props.class])
371
+ setup(e, { emit: n }) {
372
+ return (t, l) => (s(), c("div", {
373
+ class: k(["sol-radio-core", t.$props.class])
374
374
  }, [
375
- h("input", N(t.$attrs, {
375
+ u("input", U(t.$attrs, {
376
376
  id: `radio-${e.name}-${e.id}`,
377
377
  type: "radio",
378
378
  class: "radio",
@@ -380,16 +380,16 @@ const St = ["id", "data-testid", "checked", "value", "name"], Ct = ["for"], ae =
380
380
  checked: e.checked,
381
381
  value: e.value,
382
382
  name: e.name,
383
- onChange: i[0] || (i[0] = (n) => l("change", e.value))
384
- }), null, 16, St),
385
- h("label", {
383
+ onChange: l[0] || (l[0] = (i) => n("change", e.value))
384
+ }), null, 16, Vt),
385
+ u("label", {
386
386
  class: "label",
387
387
  for: `radio-${e.name}-${e.id}`
388
- }, x(e.label), 9, Ct)
388
+ }, S(e.label), 9, At)
389
389
  ], 2));
390
390
  }
391
391
  });
392
- const kt = ["aria-labelledby"], Bt = ["id", "data-testid"], Tt = ["id"], Mt = ["id"], ue = /* @__PURE__ */ V({
392
+ const Et = ["aria-labelledby"], pt = ["id", "data-testid"], Dt = ["id"], Rt = ["id"], ye = /* @__PURE__ */ I({
393
393
  __name: "RadioGroup",
394
394
  props: {
395
395
  id: null,
@@ -402,77 +402,77 @@ const kt = ["aria-labelledby"], Bt = ["id", "data-testid"], Tt = ["id"], Mt = ["
402
402
  direction: { default: "row" }
403
403
  },
404
404
  emits: ["change", "update:modelValue"],
405
- setup(e, { emit: l }) {
405
+ setup(e, { emit: n }) {
406
406
  const t = e;
407
- function i(c, u) {
408
- return !!c && !u;
407
+ function l(d, r) {
408
+ return !!d && !r;
409
409
  }
410
- function n(c, u) {
411
- return u ? `error-${t.id}` : i(c, u) ? `hint-${t.id}` : null;
410
+ function i(d, r) {
411
+ return r ? `error-${t.id}` : l(d, r) ? `hint-${t.id}` : null;
412
412
  }
413
- function a(c) {
414
- return (t == null ? void 0 : t.modelValue) === c;
413
+ function a(d) {
414
+ return (t == null ? void 0 : t.modelValue) === d;
415
415
  }
416
- function o(c) {
417
- l("change", c.value), l("update:modelValue", c.value);
416
+ function o(d) {
417
+ n("change", d.value), n("update:modelValue", d.value);
418
418
  }
419
- return (c, u) => (s(), r("fieldset", {
419
+ return (d, r) => (s(), c("fieldset", {
420
420
  class: "sol-radio-group-core",
421
421
  "aria-labelledby": `radio-group-title-${e.id}`
422
422
  }, [
423
- y(c.$slots, "title", {
423
+ m(d.$slots, "title", {
424
424
  id: `radio-group-title-${e.id}`
425
425
  }, () => [
426
- h("legend", {
426
+ u("legend", {
427
427
  id: `radio-group-title-${e.id}`,
428
- class: S(["title", { "sr-only": e.hideTitle }]),
428
+ class: k(["title", { "sr-only": e.hideTitle }]),
429
429
  "data-testid": `radio-group-title-${e.id}`
430
- }, x(e.title), 11, Bt)
430
+ }, S(e.title), 11, pt)
431
431
  ]),
432
- h("ul", {
433
- class: S(["container-radios", { "flex-col": e.direction === "column" }])
432
+ u("ul", {
433
+ class: k(["container-radios", { "flex-col": e.direction === "column" }])
434
434
  }, [
435
- y(c.$slots, "default", {
435
+ m(d.$slots, "default", {
436
436
  radios: e.radios,
437
437
  direction: e.direction
438
438
  }, () => [
439
- (s(!0), r(J, null, X(e.radios, (f, v) => {
440
- var z;
441
- return s(), r("li", { key: v }, [
442
- M(ae, N(c.$attrs, {
443
- id: (z = f == null ? void 0 : f.id) != null ? z : `${f.value}`,
439
+ (s(!0), c(j, null, Z(e.radios, (h, f) => {
440
+ var B;
441
+ return s(), c("li", { key: f }, [
442
+ L(de, U(d.$attrs, {
443
+ id: (B = h == null ? void 0 : h.id) != null ? B : `${h.value}`,
444
444
  class: ["radio", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
445
- name: f.name,
446
- value: f.value,
447
- label: f.label,
448
- checked: a(f.value),
445
+ name: h.name,
446
+ value: h.value,
447
+ label: h.label,
448
+ checked: a(h.value),
449
449
  "aria-invalid": !!e.error,
450
- "aria-describedby": n(e.hint, e.error),
451
- onChange: (w) => o(f)
450
+ "aria-describedby": i(e.hint, e.error),
451
+ onChange: (y) => o(h)
452
452
  }), null, 16, ["id", "class", "name", "value", "label", "checked", "aria-invalid", "aria-describedby", "onChange"])
453
453
  ]);
454
454
  }), 128))
455
455
  ])
456
456
  ], 2),
457
- i(e.hint, e.error) ? (s(), r("p", {
457
+ l(e.hint, e.error) ? (s(), c("p", {
458
458
  key: 0,
459
459
  id: `hint-${e.id}`,
460
460
  class: "hint"
461
- }, x(e.hint), 9, Tt)) : e.error ? (s(), r("p", {
461
+ }, S(e.hint), 9, Dt)) : e.error ? (s(), c("p", {
462
462
  key: 1,
463
463
  id: `error-${e.id}`,
464
464
  class: "error"
465
- }, x(e.error), 9, Mt)) : T("", !0)
466
- ], 8, kt));
465
+ }, S(e.error), 9, Rt)) : T("", !0)
466
+ ], 8, Et));
467
467
  }
468
468
  });
469
- ae.install = (e) => {
470
- e.component("SolRadio", ae);
469
+ de.install = (e) => {
470
+ e.component("SolRadio", de);
471
471
  };
472
- ue.install = (e) => {
473
- e.component("SolRadioGroup", ue);
472
+ ye.install = (e) => {
473
+ e.component("SolRadioGroup", ye);
474
474
  };
475
- const zt = ["id", "data-testid", "checked", "value", "name"], Vt = ["for"], oe = /* @__PURE__ */ V({
475
+ const Nt = ["id", "data-testid", "checked", "value", "name"], Ht = ["for"], ce = /* @__PURE__ */ I({
476
476
  __name: "Checkbox",
477
477
  props: {
478
478
  id: null,
@@ -483,11 +483,11 @@ const zt = ["id", "data-testid", "checked", "value", "name"], Vt = ["for"], oe =
483
483
  class: null
484
484
  },
485
485
  emits: ["change"],
486
- setup(e, { emit: l }) {
487
- return (t, i) => (s(), r("div", {
488
- class: S(["sol-checkbox-core", t.$props.class])
486
+ setup(e, { emit: n }) {
487
+ return (t, l) => (s(), c("div", {
488
+ class: k(["sol-checkbox-core", t.$props.class])
489
489
  }, [
490
- h("input", N(t.$attrs, {
490
+ u("input", U(t.$attrs, {
491
491
  id: `checkbox-${e.name}-${e.id}`,
492
492
  type: "checkbox",
493
493
  class: "checkbox",
@@ -495,16 +495,16 @@ const zt = ["id", "data-testid", "checked", "value", "name"], Vt = ["for"], oe =
495
495
  checked: e.checked,
496
496
  value: e.value,
497
497
  name: e.name,
498
- onChange: i[0] || (i[0] = (n) => l("change", e.value))
499
- }), null, 16, zt),
500
- h("label", {
498
+ onChange: l[0] || (l[0] = (i) => n("change", e.value))
499
+ }), null, 16, Nt),
500
+ u("label", {
501
501
  class: "label",
502
502
  for: `checkbox-${e.name}-${e.id}`
503
- }, x(e.label), 9, Vt)
503
+ }, S(e.label), 9, Ht)
504
504
  ], 2));
505
505
  }
506
506
  });
507
- const Lt = ["aria-labelledby"], At = ["id", "data-testid"], It = ["id"], Et = ["id"], he = /* @__PURE__ */ V({
507
+ const Ft = ["aria-labelledby"], qt = ["id", "data-testid"], Ut = ["id"], Kt = ["id"], ge = /* @__PURE__ */ I({
508
508
  __name: "CheckboxGroup",
509
509
  props: {
510
510
  id: null,
@@ -517,84 +517,84 @@ const Lt = ["aria-labelledby"], At = ["id", "data-testid"], It = ["id"], Et = ["
517
517
  direction: { default: "row" }
518
518
  },
519
519
  emits: ["change", "update:modelValue"],
520
- setup(e, { emit: l }) {
520
+ setup(e, { emit: n }) {
521
521
  const t = e;
522
- function i(u, f) {
523
- return !!u && !f;
522
+ function l(r, h) {
523
+ return !!r && !h;
524
524
  }
525
- function n(u, f) {
526
- return f ? `error-${t.id}` : i(u, f) ? `hint-${t.id}` : null;
525
+ function i(r, h) {
526
+ return h ? `error-${t.id}` : l(r, h) ? `hint-${t.id}` : null;
527
527
  }
528
- function a(u) {
529
- var f;
530
- return (f = t == null ? void 0 : t.modelValue) == null ? void 0 : f.includes(u);
528
+ function a(r) {
529
+ var h;
530
+ return (h = t == null ? void 0 : t.modelValue) == null ? void 0 : h.includes(r);
531
531
  }
532
- function o(u) {
533
- return Array.isArray(t == null ? void 0 : t.modelValue) ? [...t.modelValue, u] : [u];
532
+ function o(r) {
533
+ return Array.isArray(t == null ? void 0 : t.modelValue) ? [...t.modelValue, r] : [r];
534
534
  }
535
- function c(u) {
536
- var v;
537
- l("change", u.value);
538
- const f = a(u.value) ? (v = t.modelValue) == null ? void 0 : v.filter((z) => z !== u.value) : o(u.value);
539
- l("update:modelValue", f);
535
+ function d(r) {
536
+ var f;
537
+ n("change", r.value);
538
+ const h = a(r.value) ? (f = t.modelValue) == null ? void 0 : f.filter((B) => B !== r.value) : o(r.value);
539
+ n("update:modelValue", h);
540
540
  }
541
- return (u, f) => (s(), r("fieldset", {
541
+ return (r, h) => (s(), c("fieldset", {
542
542
  class: "sol-checkbox-group-core",
543
543
  "aria-labelledby": `checkbox-group-title-${e.id}`
544
544
  }, [
545
- y(u.$slots, "title", {
545
+ m(r.$slots, "title", {
546
546
  id: `checkbox-group-title-${e.id}`
547
547
  }, () => [
548
- h("legend", {
548
+ u("legend", {
549
549
  id: `checkbox-group-title-${e.id}`,
550
- class: S(["title", { "sr-only": e.hideTitle }]),
550
+ class: k(["title", { "sr-only": e.hideTitle }]),
551
551
  "data-testid": `checkbox-group-title-${e.id}`
552
- }, x(e.title), 11, At)
552
+ }, S(e.title), 11, qt)
553
553
  ]),
554
- h("ul", {
555
- class: S(["container-checkboxes", { "flex-col": e.direction === "column" }])
554
+ u("ul", {
555
+ class: k(["container-checkboxes", { "flex-col": e.direction === "column" }])
556
556
  }, [
557
- y(u.$slots, "default", {
557
+ m(r.$slots, "default", {
558
558
  checkboxes: e.checkboxes,
559
559
  direction: e.direction
560
560
  }, () => [
561
- (s(!0), r(J, null, X(e.checkboxes, (v, z) => {
562
- var w;
563
- return s(), r("li", { key: z }, [
564
- M(oe, N(u.$attrs, {
565
- id: (w = v == null ? void 0 : v.id) != null ? w : `${v.value}`,
561
+ (s(!0), c(j, null, Z(e.checkboxes, (f, B) => {
562
+ var y;
563
+ return s(), c("li", { key: B }, [
564
+ L(ce, U(r.$attrs, {
565
+ id: (y = f == null ? void 0 : f.id) != null ? y : `${f.value}`,
566
566
  class: ["checkbox", { "mb-micro": e.direction === "column", "mr-micro": e.direction === "row" }],
567
- label: v.label,
568
- name: v.name,
569
- value: v.value,
570
- checked: a(v.value),
567
+ label: f.label,
568
+ name: f.name,
569
+ value: f.value,
570
+ checked: a(f.value),
571
571
  "aria-invalid": !!e.error,
572
- "aria-describedby": n(e.hint, e.error),
573
- onChange: (C) => c(v)
572
+ "aria-describedby": i(e.hint, e.error),
573
+ onChange: (w) => d(f)
574
574
  }), null, 16, ["id", "class", "label", "name", "value", "checked", "aria-invalid", "aria-describedby", "onChange"])
575
575
  ]);
576
576
  }), 128))
577
577
  ])
578
578
  ], 2),
579
- i(e.hint, e.error) ? (s(), r("p", {
579
+ l(e.hint, e.error) ? (s(), c("p", {
580
580
  key: 0,
581
581
  id: `hint-${e.id}`,
582
582
  class: "hint"
583
- }, x(e.hint), 9, It)) : e.error ? (s(), r("p", {
583
+ }, S(e.hint), 9, Ut)) : e.error ? (s(), c("p", {
584
584
  key: 1,
585
585
  id: `error-${e.id}`,
586
586
  class: "error"
587
- }, x(e.error), 9, Et)) : T("", !0)
588
- ], 8, Lt));
587
+ }, S(e.error), 9, Kt)) : T("", !0)
588
+ ], 8, Ft));
589
589
  }
590
590
  });
591
- oe.install = (e) => {
592
- e.component("SolCheckbox", oe);
591
+ ce.install = (e) => {
592
+ e.component("SolCheckbox", ce);
593
593
  };
594
- he.install = (e) => {
595
- e.component("SolCheckboxGroup", he);
594
+ ge.install = (e) => {
595
+ e.component("SolCheckboxGroup", ge);
596
596
  };
597
- const Pt = ["id", "for", "data-testid"], Ot = { class: "switch-container" }, Dt = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"], Rt = /* @__PURE__ */ h("span", { class: "ellipse" }, null, -1), fe = /* @__PURE__ */ V({
597
+ const Gt = ["id", "for", "data-testid"], Qt = { class: "switch-container" }, Yt = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"], Wt = /* @__PURE__ */ u("span", { class: "ellipse" }, null, -1), we = /* @__PURE__ */ I({
598
598
  __name: "Switch",
599
599
  props: {
600
600
  id: null,
@@ -607,18 +607,18 @@ const Pt = ["id", "for", "data-testid"], Ot = { class: "switch-container" }, Dt
607
607
  horizontalLabel: { type: Boolean }
608
608
  },
609
609
  emits: ["change"],
610
- setup(e, { emit: l }) {
611
- return (t, i) => (s(), r("div", {
612
- class: S(["sol-switch-core", [t.$props.class, { "-horizontal": e.horizontalLabel }]])
610
+ setup(e, { emit: n }) {
611
+ return (t, l) => (s(), c("div", {
612
+ class: k(["sol-switch-core", [t.$props.class, { "-horizontal": e.horizontalLabel }]])
613
613
  }, [
614
- h("label", {
614
+ u("label", {
615
615
  id: `switch-label-${e.name}-${e.id}`,
616
- class: S(["label", { "mb-1": !e.horizontalLabel, "sr-only": e.hideLabel }]),
616
+ class: k(["label", { "mb-1": !e.horizontalLabel, "sr-only": e.hideLabel }]),
617
617
  for: `switch-${e.name}-${e.id}`,
618
618
  "data-testid": `switch-label-${e.name}-${e.id}`
619
- }, x(e.label), 11, Pt),
620
- h("div", Ot, [
621
- h("input", N(t.$attrs, {
619
+ }, S(e.label), 11, Gt),
620
+ u("div", Qt, [
621
+ u("input", U(t.$attrs, {
622
622
  id: `switch-${e.name}-${e.id}`,
623
623
  type: "checkbox",
624
624
  class: "switch",
@@ -629,107 +629,147 @@ const Pt = ["id", "for", "data-testid"], Ot = { class: "switch-container" }, Dt
629
629
  checked: e.checked,
630
630
  value: e.value,
631
631
  name: e.name,
632
- onChange: i[0] || (i[0] = (n) => l("change", e.value))
633
- }), null, 16, Dt),
634
- Rt
632
+ onChange: l[0] || (l[0] = (i) => n("change", e.value))
633
+ }), null, 16, Yt),
634
+ Wt
635
635
  ])
636
636
  ], 2));
637
637
  }
638
638
  });
639
- fe.install = (e) => {
640
- e.component("SolSwitch", fe);
639
+ we.install = (e) => {
640
+ e.component("SolSwitch", we);
641
641
  };
642
- var Se;
643
- const _ = typeof window < "u", pt = (e) => typeof e == "string", de = () => {
642
+ var Le;
643
+ const ne = typeof window < "u", jt = (e) => typeof e == "string", ve = () => {
644
644
  };
645
- _ && ((Se = window == null ? void 0 : window.navigator) == null ? void 0 : Se.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
646
- function Ht(e) {
647
- return typeof e == "function" ? e() : g(e);
645
+ ne && ((Le = window == null ? void 0 : window.navigator) == null ? void 0 : Le.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
646
+ function Zt(e) {
647
+ return typeof e == "function" ? e() : $(e);
648
648
  }
649
- function Nt(e) {
650
- return Re() ? (pe(e), !0) : !1;
649
+ function Jt(e) {
650
+ return e;
651
651
  }
652
- function Y(e) {
653
- var l;
654
- const t = Ht(e);
655
- return (l = t == null ? void 0 : t.$el) != null ? l : t;
652
+ function Xt(e) {
653
+ return We() ? (je(e), !0) : !1;
656
654
  }
657
- const Ve = _ ? window : void 0;
658
- _ && window.document;
659
- _ && window.navigator;
660
- _ && window.location;
661
- function te(...e) {
662
- let l, t, i, n;
663
- if (pt(e[0]) ? ([t, i, n] = e, l = Ve) : [l, t, i, n] = e, !l)
664
- return de;
665
- let a = de;
666
- const o = He(() => Y(l), (u) => {
667
- a(), u && (u.addEventListener(t, i, n), a = () => {
668
- u.removeEventListener(t, i, n), a = de;
655
+ function J(e) {
656
+ var n;
657
+ const t = Zt(e);
658
+ return (n = t == null ? void 0 : t.$el) != null ? n : t;
659
+ }
660
+ const Ne = ne ? window : void 0;
661
+ ne && window.document;
662
+ ne && window.navigator;
663
+ ne && window.location;
664
+ function ie(...e) {
665
+ let n, t, l, i;
666
+ if (jt(e[0]) ? ([t, l, i] = e, n = Ne) : [n, t, l, i] = e, !n)
667
+ return ve;
668
+ let a = ve;
669
+ const o = Ze(() => J(n), (r) => {
670
+ a(), r && (r.addEventListener(t, l, i), a = () => {
671
+ r.removeEventListener(t, l, i), a = ve;
669
672
  });
670
- }, { immediate: !0, flush: "post" }), c = () => {
673
+ }, { immediate: !0, flush: "post" }), d = () => {
671
674
  o(), a();
672
675
  };
673
- return Nt(c), c;
676
+ return Xt(d), d;
674
677
  }
675
- function Le(e, l, t = {}) {
676
- const { window: i = Ve, ignore: n, capture: a = !0, detectIframe: o = !1 } = t;
677
- if (!i)
678
+ function Te(e, n, t = {}) {
679
+ const { window: l = Ne, ignore: i, capture: a = !0, detectIframe: o = !1 } = t;
680
+ if (!l)
678
681
  return;
679
- const c = I(!0);
680
- let u;
681
- const f = (w) => {
682
- i.clearTimeout(u);
683
- const C = Y(e), k = w.composedPath();
684
- !C || C === w.target || k.includes(C) || !c.value || n && n.length > 0 && n.some((A) => {
685
- const R = Y(A);
686
- return R && (w.target === R || k.includes(R));
687
- }) || l(w);
688
- }, v = [
689
- te(i, "click", f, { passive: !0, capture: a }),
690
- te(i, "pointerdown", (w) => {
691
- const C = Y(e);
692
- c.value = !!C && !w.composedPath().includes(C);
682
+ const d = z(!0);
683
+ let r;
684
+ const h = (y) => {
685
+ l.clearTimeout(r);
686
+ const w = J(e), O = y.composedPath();
687
+ !w || w === y.target || O.includes(w) || !d.value || i && i.length > 0 && i.some((M) => {
688
+ const A = J(M);
689
+ return A && (y.target === A || O.includes(A));
690
+ }) || n(y);
691
+ }, f = [
692
+ ie(l, "click", h, { passive: !0, capture: a }),
693
+ ie(l, "pointerdown", (y) => {
694
+ const w = J(e);
695
+ d.value = !!w && !y.composedPath().includes(w);
693
696
  }, { passive: !0 }),
694
- te(i, "pointerup", (w) => {
695
- if (w.button === 0) {
696
- const C = w.composedPath();
697
- w.composedPath = () => C, u = i.setTimeout(() => f(w), 50);
697
+ ie(l, "pointerup", (y) => {
698
+ if (y.button === 0) {
699
+ const w = y.composedPath();
700
+ y.composedPath = () => w, r = l.setTimeout(() => h(y), 50);
698
701
  }
699
702
  }, { passive: !0 }),
700
- o && te(i, "blur", (w) => {
701
- var C;
702
- const k = Y(e);
703
- ((C = document.activeElement) == null ? void 0 : C.tagName) === "IFRAME" && !(k != null && k.contains(document.activeElement)) && l(w);
703
+ o && ie(l, "blur", (y) => {
704
+ var w;
705
+ const O = J(e);
706
+ ((w = document.activeElement) == null ? void 0 : w.tagName) === "IFRAME" && !(O != null && O.contains(document.activeElement)) && n(y);
704
707
  })
705
708
  ].filter(Boolean);
706
- return () => v.forEach((w) => w());
709
+ return () => f.forEach((y) => y());
707
710
  }
708
- const me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $e = "__vueuse_ssr_handlers__";
709
- me[$e] = me[$e] || {};
710
- me[$e];
711
- var Ce;
711
+ const xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ke = "__vueuse_ssr_handlers__";
712
+ xe[ke] = xe[ke] || {};
713
+ xe[ke];
714
+ var Pe;
712
715
  (function(e) {
713
716
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
714
- })(Ce || (Ce = {}));
715
- const Ut = {
717
+ })(Pe || (Pe = {}));
718
+ var _t = Object.defineProperty, ze = Object.getOwnPropertySymbols, en = Object.prototype.hasOwnProperty, tn = Object.prototype.propertyIsEnumerable, Ve = (e, n, t) => n in e ? _t(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, nn = (e, n) => {
719
+ for (var t in n || (n = {}))
720
+ en.call(n, t) && Ve(e, t, n[t]);
721
+ if (ze)
722
+ for (var t of ze(n))
723
+ tn.call(n, t) && Ve(e, t, n[t]);
724
+ return e;
725
+ };
726
+ const ln = {
727
+ easeInSine: [0.12, 0, 0.39, 0],
728
+ easeOutSine: [0.61, 1, 0.88, 1],
729
+ easeInOutSine: [0.37, 0, 0.63, 1],
730
+ easeInQuad: [0.11, 0, 0.5, 0],
731
+ easeOutQuad: [0.5, 1, 0.89, 1],
732
+ easeInOutQuad: [0.45, 0, 0.55, 1],
733
+ easeInCubic: [0.32, 0, 0.67, 0],
734
+ easeOutCubic: [0.33, 1, 0.68, 1],
735
+ easeInOutCubic: [0.65, 0, 0.35, 1],
736
+ easeInQuart: [0.5, 0, 0.75, 0],
737
+ easeOutQuart: [0.25, 1, 0.5, 1],
738
+ easeInOutQuart: [0.76, 0, 0.24, 1],
739
+ easeInQuint: [0.64, 0, 0.78, 0],
740
+ easeOutQuint: [0.22, 1, 0.36, 1],
741
+ easeInOutQuint: [0.83, 0, 0.17, 1],
742
+ easeInExpo: [0.7, 0, 0.84, 0],
743
+ easeOutExpo: [0.16, 1, 0.3, 1],
744
+ easeInOutExpo: [0.87, 0, 0.13, 1],
745
+ easeInCirc: [0.55, 0, 1, 0.45],
746
+ easeOutCirc: [0, 0.55, 0.45, 1],
747
+ easeInOutCirc: [0.85, 0, 0.15, 1],
748
+ easeInBack: [0.36, 0, 0.66, -0.56],
749
+ easeOutBack: [0.34, 1.56, 0.64, 1],
750
+ easeInOutBack: [0.68, -0.6, 0.32, 1.6]
751
+ };
752
+ nn({
753
+ linear: Jt
754
+ }, ln);
755
+ const an = {
716
756
  preserveAspectRatio: "xMidYMid meet",
717
757
  viewBox: "0 0 24 24",
718
758
  width: "1em",
719
759
  height: "1em"
720
- }, Gt = /* @__PURE__ */ h("path", {
760
+ }, on = /* @__PURE__ */ u("path", {
721
761
  fill: "currentColor",
722
762
  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"
723
- }, null, -1), Ft = [
724
- Gt
763
+ }, null, -1), sn = [
764
+ on
725
765
  ];
726
- function Kt(e, l) {
727
- return s(), r("svg", Ut, Ft);
766
+ function dn(e, n) {
767
+ return s(), c("svg", an, sn);
728
768
  }
729
- const Ae = { name: "mi-search", render: Kt }, Yt = ["data-testid"], Wt = ["id", "for"], Zt = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], jt = { class: "dropdown-container" }, qt = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], Qt = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], Jt = {
769
+ const He = { name: "mi-search", render: dn }, cn = ["data-testid"], rn = ["id", "for"], un = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], hn = { class: "dropdown-container" }, fn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], mn = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], vn = {
730
770
  key: 0,
731
771
  class: "no-data"
732
- }, Xt = /* @__PURE__ */ O(" Sem dados "), ve = /* @__PURE__ */ V({
772
+ }, $n = /* @__PURE__ */ R(" Sem dados "), Se = /* @__PURE__ */ I({
733
773
  __name: "Dropdown",
734
774
  props: {
735
775
  id: null,
@@ -747,162 +787,162 @@ const Ae = { name: "mi-search", render: Kt }, Yt = ["data-testid"], Wt = ["id",
747
787
  options: { default: () => [] }
748
788
  },
749
789
  emits: ["closeDropdown", "search", "update:selected"],
750
- setup(e, { emit: l }) {
751
- const t = e, i = I(), n = I(!1), a = I(""), o = E(
790
+ setup(e, { emit: n }) {
791
+ const t = e, l = z(), i = z(!1), a = z(""), o = D(
752
792
  () => {
753
- var d;
754
- return t.fetchOnSearch ? t.options : (d = t.options) == null ? void 0 : d.filter(
755
- (m) => typeof m == "string" ? m.includes(a.value) : m.name.includes(a.value)
793
+ var b;
794
+ return t.fetchOnSearch ? t.options : (b = t.options) == null ? void 0 : b.filter(
795
+ (v) => typeof v == "string" ? v.includes(a.value) : v.name.includes(a.value)
756
796
  );
757
797
  }
758
- ), c = E(
798
+ ), d = D(
759
799
  () => Array.isArray(t.selected) ? t.selected.join(", ").trim() : t.selected
760
800
  );
761
- Le(i, () => {
762
- n.value && v();
801
+ Te(l, () => {
802
+ i.value && f();
763
803
  });
764
- function u() {
765
- t.disabled || (n.value ? v() : f());
804
+ function r() {
805
+ t.disabled || (i.value ? f() : h());
766
806
  }
767
- function f() {
768
- n.value = !0;
807
+ function h() {
808
+ i.value = !0;
769
809
  }
770
- function v() {
771
- ee(), l("closeDropdown");
810
+ function f() {
811
+ K(), n("closeDropdown");
772
812
  }
773
- function z(d) {
774
- const m = new Set(t.selected);
775
- return m.has(d) ? m.delete(d) : m.add(d), [...m];
813
+ function B(b) {
814
+ const v = new Set(t.selected);
815
+ return v.has(b) ? v.delete(b) : v.add(b), [...v];
776
816
  }
777
- function w(d) {
778
- const m = typeof d == "string" ? d : d.value, $ = t.isMultipleSelect ? z(m) : m;
779
- l("update:selected", $), t.closeOnSelect && !t.isMultipleSelect && v();
817
+ function y(b) {
818
+ const v = typeof b == "string" ? b : b.value, C = t.isMultipleSelect ? B(v) : v;
819
+ n("update:selected", C), t.closeOnSelect && !t.isMultipleSelect && f();
780
820
  }
781
- function C(d) {
782
- return Array.isArray(t.selected) ? typeof d == "string" ? t.selected.includes(d) : t.selected.includes(d.value) : typeof d == "string" ? d === t.selected : d.value === t.selected;
821
+ function w(b) {
822
+ 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;
783
823
  }
784
- const k = Z({
824
+ const O = ae({
785
825
  list: void 0,
786
826
  search: void 0
787
- }), A = Z({
827
+ }), M = ae({
788
828
  id: "",
789
829
  index: 0
790
830
  });
791
- function R({ code: d }) {
792
- const m = (B) => {
793
- const L = B != null ? B : A.index;
794
- B !== void 0 && (A.index = B), setTimeout(() => {
795
- var K, xe;
796
- const P = (K = k.list) == null ? void 0 : K.children[L];
797
- A.id = (xe = P == null ? void 0 : P.id) != null ? xe : "", P == null || P.focus();
831
+ function A({ code: b }) {
832
+ const v = (P) => {
833
+ const F = P != null ? P : M.index;
834
+ P !== void 0 && (M.index = P), setTimeout(() => {
835
+ var g, x;
836
+ const H = (g = O.list) == null ? void 0 : g.children[F];
837
+ M.id = (x = H == null ? void 0 : H.id) != null ? x : "", H == null || H.focus();
798
838
  }, 0);
799
- }, $ = () => {
800
- var B;
801
- t.searchable && (A.index = 0, (B = k == null ? void 0 : k.search) == null || B.focus());
839
+ }, C = () => {
840
+ var P;
841
+ t.searchable && (M.index = 0, (P = O == null ? void 0 : O.search) == null || P.focus());
802
842
  };
803
- switch (d) {
843
+ switch (b) {
804
844
  case "ArrowUp":
805
- return A.index > 0 && (A.index -= 1), m();
845
+ return M.index > 0 && (M.index -= 1), v();
806
846
  case "ArrowDown":
807
- return n.value ? (A.index < o.value.length - 1 && (A.index += 1), m()) : (f(), m(0));
847
+ return i.value ? (M.index < o.value.length - 1 && (M.index += 1), v()) : (h(), v(0));
808
848
  case "Home":
809
- return m(0);
849
+ return v(0);
810
850
  case "End":
811
- return m(t.options.length - 1);
851
+ return v(t.options.length - 1);
812
852
  case "Escape":
813
- return v();
853
+ return f();
814
854
  default:
815
- !["Enter", "NumpadEnter", "Space"].includes(d) && $();
855
+ !["Enter", "NumpadEnter", "Space"].includes(b) && C();
816
856
  }
817
857
  }
818
- function ee() {
819
- n.value = !1, A.index = 0, a.value = "";
858
+ function K() {
859
+ i.value = !1, M.index = 0, a.value = "";
820
860
  }
821
- function U(d, m) {
822
- return typeof d == "string" ? d : d[m != null ? m : "value"];
861
+ function G(b, v) {
862
+ return typeof b == "string" ? b : b[v != null ? v : "value"];
823
863
  }
824
- function b(d, m) {
825
- k[d] = m != null ? m : void 0;
864
+ function le(b, v) {
865
+ O[b] = v != null ? v : void 0;
826
866
  }
827
- return (d, m) => (s(), r("div", {
867
+ return (b, v) => (s(), c("div", {
828
868
  ref_key: "el",
829
- ref: i,
830
- class: S(["sol-dropdown-core", { "-smaller": e.smallerWidth }]),
869
+ ref: l,
870
+ class: k(["sol-dropdown-core", { "-smaller": e.smallerWidth }]),
831
871
  "data-testid": `dropdown-${e.id}`,
832
- onKeydownPassive: R
872
+ onKeydownPassive: A
833
873
  }, [
834
- y(d.$slots, "label", {}, () => [
835
- h("label", {
874
+ m(b.$slots, "label", {}, () => [
875
+ u("label", {
836
876
  id: `label-dropdown-${e.id}`,
837
- class: S(["label", { "-disabled": e.disabled, "sr-only": e.ariaLabel }]),
877
+ class: k(["label", { "-disabled": e.disabled, "sr-only": e.ariaLabel }]),
838
878
  for: `toggle-dropdown-${e.id}`
839
- }, x(e.label || e.ariaLabel), 11, Wt)
879
+ }, S(e.label || e.ariaLabel), 11, rn)
840
880
  ]),
841
- h("button", {
881
+ u("button", {
842
882
  id: `toggle-dropdown-${e.id}`,
843
883
  disabled: e.disabled,
844
884
  "data-testid": `toggle-dropdown-${e.id}`,
845
885
  class: "button-toggle-dropdown toggle-dropdown",
846
886
  "aria-haspopup": "listbox",
847
- "aria-expanded": n.value,
887
+ "aria-expanded": i.value,
848
888
  "aria-labelledby": `label-dropdown-${e.id}`,
849
889
  "aria-label": e.ariaLabel,
850
890
  "aria-controls": `dropdown-list-${e.id}`,
851
- onClick: H(u, ["stop"])
891
+ onClick: q(r, ["stop"])
852
892
  }, [
853
- y(d.$slots, "toggle-dropdown", {
854
- toggle: { open: f, close: v, toggleDropdown: u },
855
- isOpen: n.value,
856
- select: w,
857
- selectedSanitized: g(c),
893
+ m(b.$slots, "toggle-dropdown", {
894
+ toggle: { open: h, close: f, toggleDropdown: r },
895
+ isOpen: i.value,
896
+ select: y,
897
+ selectedSanitized: $(d),
858
898
  selected: e.selected
859
899
  }, () => [
860
- O(x(g(c) || "Selecione"), 1)
900
+ R(S($(d) || "Selecione"), 1)
861
901
  ])
862
- ], 8, Zt),
863
- M(we, {
902
+ ], 8, un),
903
+ L(Me, {
864
904
  mode: "out-in",
865
905
  name: "dropdown"
866
906
  }, {
867
- default: D(() => [
868
- W(h("div", jt, [
869
- e.searchable ? (s(), r("div", {
907
+ default: p(() => [
908
+ Y(u("div", hn, [
909
+ e.searchable ? (s(), c("div", {
870
910
  key: 0,
871
- class: S(["search-container", { "-loading": e.loading }])
911
+ class: k(["search-container", { "-loading": e.loading }])
872
912
  }, [
873
- y(d.$slots, "search", { filter: a.value }, () => [
874
- M(F, {
913
+ m(b.$slots, "search", { filter: a.value }, () => [
914
+ L(W, {
875
915
  id: `search-dropdown-${e.id}`,
876
- ref: ($) => b("search", $ == null ? void 0 : $.input),
916
+ ref: (C) => le("search", C == null ? void 0 : C.input),
877
917
  modelValue: a.value,
878
- "onUpdate:modelValue": m[0] || (m[0] = ($) => a.value = $),
918
+ "onUpdate:modelValue": v[0] || (v[0] = (C) => a.value = C),
879
919
  "data-testid": `search-dropdown-${e.id}`,
880
920
  role: "combobox",
881
921
  class: "search",
882
922
  "aria-autocomplete": "list",
883
923
  placeholder: e.searchPlaceholder,
884
- "aria-expanded": n.value,
924
+ "aria-expanded": i.value,
885
925
  "aria-haspopup": "listbox",
886
926
  "aria-owns": `dropdown-list-${e.id}`,
887
927
  "aria-controls": `dropdown-list-${e.id}`,
888
- "aria-activedescendant": A.id,
928
+ "aria-activedescendant": M.id,
889
929
  "aria-labelledby": `label-dropdown-${e.id}`,
890
- onClick: m[1] || (m[1] = H(() => {
930
+ onClick: v[1] || (v[1] = q(() => {
891
931
  }, ["stop"])),
892
- onInput: m[2] || (m[2] = ($) => {
893
- var B;
894
- return l("search", (B = $.target) == null ? void 0 : B.value);
932
+ onInput: v[2] || (v[2] = (C) => {
933
+ var P;
934
+ return n("search", (P = C.target) == null ? void 0 : P.value);
895
935
  })
896
936
  }, null, 8, ["id", "modelValue", "data-testid", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
897
- M(g(Ae), {
937
+ L($(He), {
898
938
  "aria-hidden": "true",
899
939
  class: "icon"
900
940
  })
901
941
  ])
902
942
  ], 2)) : T("", !0),
903
- h("ul", {
943
+ u("ul", {
904
944
  id: `dropdown-list-${e.id}`,
905
- ref: ($) => b("list", $),
945
+ ref: (C) => le("list", C),
906
946
  "data-testid": `dropdown-list-${e.id}`,
907
947
  role: "listbox",
908
948
  tabindex: "-1",
@@ -910,63 +950,63 @@ const Ae = { name: "mi-search", render: Kt }, Yt = ["data-testid"], Wt = ["id",
910
950
  "aria-labelledby": `label-dropdown-${e.id}`,
911
951
  class: "dropdown-list-core"
912
952
  }, [
913
- (s(!0), r(J, null, X(g(o), ($, B) => (s(), r("li", {
914
- id: `option-${e.id}-${U($, "value")}`,
915
- key: B,
916
- "data-testid": `option-${e.id}-${U($, "value")}`,
953
+ (s(!0), c(j, null, Z($(o), (C, P) => (s(), c("li", {
954
+ id: `option-${e.id}-${G(C, "value")}`,
955
+ key: P,
956
+ "data-testid": `option-${e.id}-${G(C, "value")}`,
917
957
  role: "option",
918
958
  tabindex: "-1",
919
959
  class: "dropdown-item",
920
- style: ne(`--item: ${B + 1}`),
921
- selected: C($),
922
- "aria-selected": C($),
923
- onClick: (L) => w($),
960
+ style: oe(`--item: ${P + 1}`),
961
+ selected: w(C),
962
+ "aria-selected": w(C),
963
+ onClick: (F) => y(C),
924
964
  onKeyup: [
925
- j((L) => w($), ["enter"]),
926
- j((L) => w($), ["space"])
965
+ _((F) => y(C), ["enter"]),
966
+ _((F) => y(C), ["space"])
927
967
  ]
928
968
  }, [
929
- y(d.$slots, "default", {
930
- text: U($, "name"),
931
- option: $,
932
- isSelect: C
969
+ m(b.$slots, "default", {
970
+ text: G(C, "name"),
971
+ option: C,
972
+ isSelect: w
933
973
  }, () => [
934
- O(x(U($, "name")), 1)
974
+ R(S(G(C, "name")), 1)
935
975
  ])
936
- ], 44, Qt))), 128)),
937
- g(o).length ? T("", !0) : (s(), r("li", Jt, [
938
- y(d.$slots, "no-data", {}, () => [
939
- Xt
976
+ ], 44, mn))), 128)),
977
+ $(o).length ? T("", !0) : (s(), c("li", vn, [
978
+ m(b.$slots, "no-data", {}, () => [
979
+ $n
940
980
  ])
941
981
  ]))
942
- ], 8, qt)
982
+ ], 8, fn)
943
983
  ], 512), [
944
- [le, n.value]
984
+ [X, i.value]
945
985
  ])
946
986
  ]),
947
987
  _: 3
948
988
  })
949
- ], 42, Yt));
989
+ ], 42, cn));
950
990
  }
951
991
  });
952
- ve.install = (e) => {
953
- e.component("SolDropdown", ve);
992
+ Se.install = (e) => {
993
+ e.component("SolDropdown", Se);
954
994
  };
955
- const _t = {
995
+ const bn = {
956
996
  preserveAspectRatio: "xMidYMid meet",
957
997
  viewBox: "0 0 24 24",
958
998
  width: "1em",
959
999
  height: "1em"
960
- }, el = /* @__PURE__ */ h("path", {
1000
+ }, yn = /* @__PURE__ */ u("path", {
961
1001
  fill: "currentColor",
962
1002
  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"
963
- }, null, -1), tl = [
964
- el
1003
+ }, null, -1), gn = [
1004
+ yn
965
1005
  ];
966
- function ll(e, l) {
967
- return s(), r("svg", _t, tl);
1006
+ function wn(e, n) {
1007
+ return s(), c("svg", bn, gn);
968
1008
  }
969
- const Ie = { name: "mi-close", render: ll }, nl = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"], il = ["id"], al = { class: "label" }, se = /* @__PURE__ */ V({
1009
+ const Fe = { name: "mi-close", render: wn }, xn = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"], kn = ["id"], Sn = { class: "label" }, re = /* @__PURE__ */ I({
970
1010
  __name: "Chip",
971
1011
  props: {
972
1012
  id: null,
@@ -976,59 +1016,59 @@ const Ie = { name: "mi-close", render: ll }, nl = ["id", "data-testid", "title",
976
1016
  removable: { type: Boolean, default: !0 }
977
1017
  },
978
1018
  emits: ["close", "update:selected"],
979
- setup(e, { emit: l }) {
1019
+ setup(e, { emit: n }) {
980
1020
  const t = e;
981
- function i({ code: n }) {
1021
+ function l({ code: i }) {
982
1022
  if (!t.disabled)
983
- switch (n) {
1023
+ switch (i) {
984
1024
  case "Enter":
985
1025
  case "NumpadEnter":
986
1026
  case "Space":
987
- return l("update:selected");
1027
+ return n("update:selected");
988
1028
  case "Delete":
989
1029
  case "Backspace":
990
- return t.removable && l("close");
1030
+ return t.removable && n("close");
991
1031
  default:
992
1032
  return !1;
993
1033
  }
994
1034
  }
995
- return (n, a) => (s(), r("div", {
1035
+ return (i, a) => (s(), c("div", {
996
1036
  id: `chip-${e.id}`,
997
1037
  "data-testid": `chip-${e.id}`,
998
- class: S(["sol-chip-core", { "-selected": e.selected, "-disabled": e.disabled }]),
1038
+ class: k(["sol-chip-core", { "-selected": e.selected, "-disabled": e.disabled }]),
999
1039
  tabindex: "0",
1000
1040
  title: e.label,
1001
1041
  "aria-describedby": `chip-description-${e.id}`,
1002
1042
  "aria-disabled": e.disabled,
1003
- onClick: a[1] || (a[1] = (o) => l("update:selected")),
1004
- onKeydown: H(i, ["self"])
1043
+ onClick: a[1] || (a[1] = (o) => n("update:selected")),
1044
+ onKeydown: q(l, ["self"])
1005
1045
  }, [
1006
- h("span", {
1046
+ u("span", {
1007
1047
  id: `chip-description-${e.id}`,
1008
1048
  "z-index": "-1",
1009
1049
  class: "sr-only"
1010
- }, "Press Delete or Backspace to remove this Chip", 8, il),
1011
- h("span", al, [
1012
- y(n.$slots, "default", {}, () => [
1013
- O(x(e.label), 1)
1050
+ }, "Press Delete or Backspace to remove this Chip", 8, kn),
1051
+ u("span", Sn, [
1052
+ m(i.$slots, "default", {}, () => [
1053
+ R(S(e.label), 1)
1014
1054
  ])
1015
1055
  ]),
1016
- e.removable ? (s(), r("i", {
1056
+ e.removable ? (s(), c("i", {
1017
1057
  key: 0,
1018
1058
  role: "presentation",
1019
1059
  "aira-hidden": "true",
1020
1060
  class: "close",
1021
- onClick: a[0] || (a[0] = H((o) => l("close"), ["stop"]))
1061
+ onClick: a[0] || (a[0] = q((o) => n("close"), ["stop"]))
1022
1062
  }, [
1023
- M(g(Ie), { class: "icon" })
1063
+ L($(Fe), { class: "icon" })
1024
1064
  ])) : T("", !0)
1025
- ], 42, nl));
1065
+ ], 42, xn));
1026
1066
  }
1027
1067
  });
1028
- const ol = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], sl = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], dl = {
1068
+ const Cn = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], Bn = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"], In = {
1029
1069
  key: 0,
1030
1070
  class: "no-data"
1031
- }, cl = /* @__PURE__ */ O(" Sem dados "), rl = /* @__PURE__ */ V({
1071
+ }, On = /* @__PURE__ */ R(" Sem dados "), Mn = /* @__PURE__ */ I({
1032
1072
  __name: "ListOption",
1033
1073
  props: {
1034
1074
  id: null,
@@ -1037,14 +1077,14 @@ const ol = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], sl
1037
1077
  isSelected: null
1038
1078
  },
1039
1079
  emits: ["select"],
1040
- setup(e, { expose: l, emit: t }) {
1041
- const i = I("");
1042
- return l({
1043
- list: i
1044
- }), (n, a) => (s(), r("ul", {
1080
+ setup(e, { expose: n, emit: t }) {
1081
+ const l = z("");
1082
+ return n({
1083
+ list: l
1084
+ }), (i, a) => (s(), c("ul", {
1045
1085
  id: `select-list-${e.id}`,
1046
1086
  ref_key: "list",
1047
- ref: i,
1087
+ ref: l,
1048
1088
  "data-testid": `select-list-${e.id}`,
1049
1089
  role: "listbox",
1050
1090
  tabindex: "-1",
@@ -1052,61 +1092,119 @@ const ol = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"], sl
1052
1092
  "aria-labelledby": `select-label-${e.id}`,
1053
1093
  class: "select-list-core"
1054
1094
  }, [
1055
- (s(!0), r(J, null, X(e.options, (o, c) => (s(), r("li", {
1095
+ (s(!0), c(j, null, Z(e.options, (o, d) => (s(), c("li", {
1056
1096
  id: `option-${e.id}-${o.value}`,
1057
- key: c,
1097
+ key: d,
1058
1098
  "data-testid": `option-${e.id}-${o.value}`,
1059
1099
  role: "option",
1060
1100
  tabindex: "-1",
1061
1101
  class: "select-option-item",
1062
- style: ne(`--item: ${c + 1}`),
1102
+ style: oe(`--item: ${d + 1}`),
1063
1103
  selected: e.isSelected(o),
1064
1104
  "aria-selected": e.isSelected(o),
1065
- onClick: (u) => t("select", o),
1105
+ onClick: (r) => t("select", o),
1066
1106
  onKeyup: [
1067
- j((u) => t("select", o), ["enter"]),
1068
- j((u) => t("select", o), ["space"])
1107
+ _((r) => t("select", o), ["enter"]),
1108
+ _((r) => t("select", o), ["space"])
1069
1109
  ]
1070
1110
  }, [
1071
- y(n.$slots, "item-list", {
1111
+ m(i.$slots, "item-list", {
1072
1112
  text: o.name,
1073
1113
  value: o.value,
1074
1114
  option: o,
1075
1115
  isSelected: e.isSelected(o)
1076
1116
  }, () => [
1077
- O(x(o.name), 1)
1117
+ R(S(o.name), 1)
1078
1118
  ])
1079
- ], 44, sl))), 128)),
1080
- e.options.length ? T("", !0) : (s(), r("li", dl, [
1081
- y(n.$slots, "no-data", {}, () => [
1082
- cl
1119
+ ], 44, Bn))), 128)),
1120
+ e.options.length ? T("", !0) : (s(), c("li", In, [
1121
+ m(i.$slots, "no-data", {}, () => [
1122
+ On
1083
1123
  ])
1084
1124
  ]))
1085
- ], 8, ol));
1125
+ ], 8, Cn));
1086
1126
  }
1087
1127
  });
1088
- const ul = {
1128
+ const Tn = {
1089
1129
  preserveAspectRatio: "xMidYMid meet",
1090
1130
  viewBox: "0 0 24 24",
1091
1131
  width: "1em",
1092
1132
  height: "1em"
1093
- }, hl = /* @__PURE__ */ h("path", {
1133
+ }, Ln = /* @__PURE__ */ u("path", {
1094
1134
  fill: "currentColor",
1095
1135
  d: "m17 10l-5 6l-5-6h10z"
1096
- }, null, -1), fl = [
1097
- hl
1136
+ }, null, -1), Pn = [
1137
+ Ln
1098
1138
  ];
1099
- function ml(e, l) {
1100
- return s(), r("svg", ul, fl);
1139
+ function zn(e, n) {
1140
+ return s(), c("svg", Tn, Pn);
1141
+ }
1142
+ const Vn = { name: "mi-caret-down", render: zn };
1143
+ function qe(e, n) {
1144
+ function t({ code: l }) {
1145
+ var o;
1146
+ const i = l;
1147
+ (() => {
1148
+ if (!(n != null && n.fallback))
1149
+ return !1;
1150
+ const d = (r) => Array.isArray(r) ? !r.includes(i) : i !== r;
1151
+ return n != null && n.exclude ? !e.hasOwnProperty(i) && d(n.exclude) : !e.hasOwnProperty(i);
1152
+ })() && (n == null || n.fallback()), e.hasOwnProperty(i) && ((o = e[i]) == null || o.call(e));
1153
+ }
1154
+ return {
1155
+ navigate: t
1156
+ };
1157
+ }
1158
+ function Ue({ target: e, query: n }) {
1159
+ const t = ae({
1160
+ id: "",
1161
+ index: -1
1162
+ });
1163
+ function l(f) {
1164
+ const B = f != null ? f : t.index, y = e == null ? void 0 : e.value;
1165
+ f !== void 0 && (t.index = f), setTimeout(() => {
1166
+ var M;
1167
+ const w = y.children[B], O = n && w.querySelector(n) ? w.querySelector(n) : w;
1168
+ t.id = (M = w == null ? void 0 : w.id) != null ? M : "", O == null || O.focus();
1169
+ }, 0);
1170
+ }
1171
+ function i() {
1172
+ t.index > 0 && (t.index -= 1, l());
1173
+ }
1174
+ function a(f) {
1175
+ t.index < f - 1 && (t.index += 1, l());
1176
+ }
1177
+ function o() {
1178
+ l(0);
1179
+ }
1180
+ function d(f) {
1181
+ l(f - 1);
1182
+ }
1183
+ function r(f) {
1184
+ return f.id ? f.id === t.id : f.index === t.index;
1185
+ }
1186
+ function h() {
1187
+ t.id = "", t.index = -1;
1188
+ }
1189
+ return {
1190
+ elementFocus: t,
1191
+ isItemFocused: r,
1192
+ resetStateFocus: h,
1193
+ focusListItem: l,
1194
+ focusOnPreviousItem: i,
1195
+ focusOnNextItem: a,
1196
+ focusOnFirstItem: o,
1197
+ focusOnLastItem: d
1198
+ };
1101
1199
  }
1102
- const $l = { name: "mi-caret-down", render: ml }, vl = ["data-testid"], bl = ["id"], yl = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], gl = {
1200
+ const An = ["data-testid"], En = ["id"], pn = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"], Dn = {
1103
1201
  key: 0,
1104
1202
  class: "container-tags"
1105
- }, wl = {
1203
+ }, Rn = {
1106
1204
  key: 1,
1107
1205
  class: "mr-micro placeholder-inline",
1108
1206
  tabindex: "-1"
1109
- }, xl = { class: "error" }, Sl = { class: "select-options-container" }, be = /* @__PURE__ */ V({
1207
+ }, Nn = { class: "error" }, Hn = { class: "select-options-container" }, Ce = /* @__PURE__ */ I({
1110
1208
  __name: "Select",
1111
1209
  props: {
1112
1210
  id: null,
@@ -1126,236 +1224,226 @@ const $l = { name: "mi-caret-down", render: ml }, vl = ["data-testid"], bl = ["i
1126
1224
  placeholder: { default: "placeholder" }
1127
1225
  },
1128
1226
  emits: ["closeDropdown", "search", "update:selected"],
1129
- setup(e, { emit: l }) {
1130
- const t = e, i = I(), n = I(!1), a = I(""), o = E(
1227
+ setup(e, { emit: n }) {
1228
+ const t = e, l = z(), i = z(!1), a = z(""), o = D(
1131
1229
  () => {
1132
- var b;
1133
- return t.fetchOnSearch ? t.options : (b = t.options) == null ? void 0 : b.filter((d) => d.name.includes(a.value));
1230
+ var g;
1231
+ return t.fetchOnSearch ? t.options : (g = t.options) == null ? void 0 : g.filter((x) => x.name.includes(a.value));
1134
1232
  }
1135
1233
  );
1136
- Le(i, () => {
1137
- n.value && f();
1234
+ Te(l, () => {
1235
+ i.value && h();
1138
1236
  });
1139
- function c() {
1140
- t.disabled || (n.value ? f() : u());
1237
+ function d() {
1238
+ t.disabled || (i.value ? h() : r());
1141
1239
  }
1142
- function u() {
1143
- n.value = !0;
1240
+ function r() {
1241
+ i.value = !0;
1144
1242
  }
1145
- function f() {
1146
- R(), l("closeDropdown");
1243
+ function h() {
1244
+ P(), n("closeDropdown");
1147
1245
  }
1148
- function v(b) {
1246
+ function f(g) {
1149
1247
  if (Array.isArray(t.selected)) {
1150
- const d = t.selected.findIndex(
1151
- ({ value: m }) => m === b.value
1248
+ const x = t.selected.findIndex(
1249
+ ({ value: V }) => V === g.value
1152
1250
  );
1153
- return d === -1 ? [...t.selected, b] : t.selected.filter((m, $) => $ !== d);
1251
+ return x === -1 ? [...t.selected, g] : t.selected.filter((V, E) => E !== x);
1154
1252
  }
1155
- return [b];
1253
+ return [g];
1156
1254
  }
1157
- function z(b) {
1158
- t.multiple ? l("update:selected", v(b)) : l("update:selected", b), t.closeOnSelect && !t.multiple && f();
1255
+ function B(g) {
1256
+ t.multiple ? n("update:selected", f(g)) : n("update:selected", g), t.closeOnSelect && !t.multiple && h();
1159
1257
  }
1160
- function w(b) {
1161
- var d;
1162
- return Array.isArray(t.selected) ? t.selected.some(({ value: m }) => m === b.value) : b.value === ((d = t.selected) == null ? void 0 : d.value);
1258
+ function y(g) {
1259
+ var x;
1260
+ return Array.isArray(t.selected) ? t.selected.some(({ value: V }) => V === g.value) : g.value === ((x = t.selected) == null ? void 0 : x.value);
1163
1261
  }
1164
- const C = Z({
1165
- list: void 0,
1166
- search: void 0
1167
- }), k = Z({
1168
- id: "",
1169
- index: 0
1170
- });
1171
- function A({ code: b }) {
1172
- const d = ($) => {
1173
- const B = $ != null ? $ : k.index;
1174
- $ !== void 0 && (k.index = $), setTimeout(() => {
1175
- var P, K;
1176
- const L = (P = C.list) == null ? void 0 : P.children[B];
1177
- k.id = (K = L == null ? void 0 : L.id) != null ? K : "", L == null || L.focus();
1178
- }, 0);
1179
- }, m = () => {
1180
- var $;
1181
- t.searchable && (k.index = 0, ($ = C == null ? void 0 : C.search) == null || $.focus());
1182
- };
1183
- switch (b) {
1184
- case "ArrowUp":
1185
- return k.index > 0 && (k.index -= 1), d();
1186
- case "ArrowDown":
1187
- return n.value ? (k.index < t.options.length - 1 && (k.index += 1), d()) : (u(), d(0));
1188
- case "Home":
1189
- return d(0);
1190
- case "End":
1191
- return d(t.options.length - 1);
1192
- case "Escape":
1193
- return f();
1194
- default:
1195
- !["Enter", "NumpadEnter", "Space"].includes(b) && m();
1196
- }
1262
+ const w = z(), O = z();
1263
+ function M() {
1264
+ var g;
1265
+ t.searchable && (v(), (g = w.value) == null || g.focus());
1197
1266
  }
1198
- function R() {
1199
- n.value = !1, k.index = 0, a.value = "";
1267
+ const {
1268
+ elementFocus: A,
1269
+ focusOnFirstItem: K,
1270
+ focusOnLastItem: G,
1271
+ focusOnNextItem: le,
1272
+ focusOnPreviousItem: b,
1273
+ resetStateFocus: v
1274
+ } = Ue({ target: O }), { navigate: C } = qe({
1275
+ Home: K,
1276
+ End: () => G(t.options.length),
1277
+ ArrowUp: b,
1278
+ ArrowDown: () => {
1279
+ !i.value && r(), le(t.options.length);
1280
+ },
1281
+ Escape: h
1282
+ }, {
1283
+ fallback: M,
1284
+ exclude: ["Enter", "NumpadEnter", "Space"]
1285
+ });
1286
+ function P() {
1287
+ i.value = !1, a.value = "", v();
1200
1288
  }
1201
- function ee(b) {
1202
- return (d) => {
1203
- C[b] = b === "search" ? d == null ? void 0 : d.input : d == null ? void 0 : d.list;
1289
+ function F(g) {
1290
+ return (x) => {
1291
+ g === "search" ? w.value = x == null ? void 0 : x.input : O.value = x == null ? void 0 : x.list;
1204
1292
  };
1205
1293
  }
1206
- function U() {
1207
- var d;
1208
- const b = t.selected;
1209
- return (d = b == null ? void 0 : b.name) != null ? d : t.placeholder;
1294
+ function H() {
1295
+ var x;
1296
+ const g = t.selected;
1297
+ return (x = g == null ? void 0 : g.name) != null ? x : t.placeholder;
1210
1298
  }
1211
- return (b, d) => (s(), r("div", {
1299
+ return (g, x) => (s(), c("div", {
1212
1300
  ref_key: "el",
1213
- ref: i,
1214
- class: S(["sol-select-core", { "-smaller": e.smallerWidth }]),
1301
+ ref: l,
1302
+ class: k(["sol-select-core", { "-smaller": e.smallerWidth }]),
1215
1303
  "data-testid": `select-${e.id}`,
1216
- onKeydownPassive: A
1304
+ onKeydownPassive: x[3] || (x[3] = (...V) => $(C) && $(C)(...V))
1217
1305
  }, [
1218
- y(b.$slots, "label", {
1306
+ m(g.$slots, "label", {
1219
1307
  id: `select-label-${e.id}`,
1220
1308
  for: `select-toggle-${e.id}`
1221
1309
  }, () => [
1222
- e.label ? (s(), r("label", {
1310
+ e.label ? (s(), c("label", {
1223
1311
  key: 0,
1224
1312
  id: `select-label-${e.id}`,
1225
- class: S(["label", { "-disabled": e.disabled }])
1226
- }, x(e.label), 11, bl)) : T("", !0)
1313
+ class: k(["label", { "-disabled": e.disabled }])
1314
+ }, S(e.label), 11, En)) : T("", !0)
1227
1315
  ]),
1228
- h("button", {
1316
+ u("button", {
1229
1317
  id: `select-toggle-${e.id}`,
1230
1318
  disabled: e.disabled,
1231
1319
  "data-testid": `select-toggle-${e.id}`,
1232
1320
  class: "select-button-toggle",
1233
1321
  "aria-haspopup": "listbox",
1234
- "aria-expanded": n.value,
1322
+ "aria-expanded": i.value,
1235
1323
  "aria-labelledby": `select-label-${e.id}`,
1236
1324
  "aria-label": e.ariaLabel,
1237
1325
  "aria-controls": `select-list-${e.id}`,
1238
- onClick: H(c, ["stop"])
1326
+ onClick: q(d, ["stop"])
1239
1327
  }, [
1240
- y(b.$slots, "toggle-dropdown", {
1241
- toggle: { open: u, close: f, toggleDropdown: c },
1242
- isOpen: n.value,
1243
- select: z,
1328
+ m(g.$slots, "toggle-dropdown", {
1329
+ toggle: { open: r, close: h, toggleDropdown: d },
1330
+ isOpen: i.value,
1331
+ select: B,
1244
1332
  selected: e.selected
1245
1333
  }, () => {
1246
- var m;
1334
+ var V;
1247
1335
  return [
1248
- e.multiple && Array.isArray(e.selected) && ((m = e.selected) == null ? void 0 : m.length) ? (s(), r("div", gl, [
1249
- (s(!0), r(J, null, X(e.selected, ($, B) => (s(), p(se, {
1250
- id: $.value,
1251
- key: B,
1252
- label: $.name,
1253
- onClick: H((L) => z($), ["stop"]),
1254
- onClose: (L) => z($)
1336
+ e.multiple && Array.isArray(e.selected) && ((V = e.selected) == null ? void 0 : V.length) ? (s(), c("div", Dn, [
1337
+ (s(!0), c(j, null, Z(e.selected, (E, fe) => (s(), N(re, {
1338
+ id: E.value,
1339
+ key: fe,
1340
+ label: E.name,
1341
+ onClick: q((me) => B(E), ["stop"]),
1342
+ onClose: (me) => B(E)
1255
1343
  }, null, 8, ["id", "label", "onClick", "onClose"]))), 128))
1256
- ])) : (s(), r("span", wl, x(U()), 1)),
1257
- M(g($l), {
1344
+ ])) : (s(), c("span", Rn, S(H()), 1)),
1345
+ L($(Vn), {
1258
1346
  "aria-hidden": "true",
1259
1347
  tabindex: "-1",
1260
- class: S(["icon", { "-open": n.value }])
1348
+ class: k(["icon", { "-open": i.value }])
1261
1349
  }, null, 8, ["class"])
1262
1350
  ];
1263
1351
  })
1264
- ], 8, yl),
1265
- h("span", xl, x(e.error), 1),
1266
- M(we, {
1352
+ ], 8, pn),
1353
+ u("span", Nn, S(e.error), 1),
1354
+ L(Me, {
1267
1355
  mode: "out-in",
1268
1356
  name: "dropdown"
1269
1357
  }, {
1270
- default: D(() => [
1271
- W(h("div", Sl, [
1272
- y(b.$slots, "search", {}, () => [
1273
- e.searchable ? (s(), r("div", {
1358
+ default: p(() => [
1359
+ Y(u("div", Hn, [
1360
+ m(g.$slots, "search", {}, () => [
1361
+ e.searchable ? (s(), c("div", {
1274
1362
  key: 0,
1275
- class: S(["search-container", { "-loading": e.loading }])
1363
+ class: k(["search-container", { "-loading": e.loading }])
1276
1364
  }, [
1277
- y(b.$slots, "search", { filter: a.value }, () => [
1278
- M(F, {
1365
+ m(g.$slots, "search", { filter: a.value }, () => [
1366
+ L(W, {
1279
1367
  id: `select-search-${e.id}`,
1280
- ref: ee("search"),
1368
+ ref: F("search"),
1281
1369
  modelValue: a.value,
1282
- "onUpdate:modelValue": d[0] || (d[0] = (m) => a.value = m),
1370
+ "onUpdate:modelValue": x[0] || (x[0] = (V) => a.value = V),
1283
1371
  "data-testid": `select-search-${e.id}`,
1284
1372
  role: "combobox",
1285
1373
  class: "search",
1286
1374
  "aria-autocomplete": "list",
1287
1375
  placeholder: e.searchPlaceholder,
1288
- "aria-expanded": n.value,
1376
+ "aria-expanded": i.value,
1289
1377
  "aria-haspopup": "listbox",
1290
1378
  "aria-owns": `select-list-${e.id}`,
1291
1379
  "aria-controls": `select-list-${e.id}`,
1292
- "aria-activedescendant": k.id,
1380
+ "aria-activedescendant": $(A).id,
1293
1381
  "aria-labelledby": `select-label-${e.id}`,
1294
- onClick: d[1] || (d[1] = H(() => {
1382
+ onClick: x[1] || (x[1] = q(() => {
1295
1383
  }, ["stop"])),
1296
- onInput: d[2] || (d[2] = (m) => {
1297
- var $;
1298
- return l("search", ($ = m.target) == null ? void 0 : $.value);
1384
+ onInput: x[2] || (x[2] = (V) => {
1385
+ var E;
1386
+ return n("search", (E = V.target) == null ? void 0 : E.value);
1299
1387
  })
1300
1388
  }, null, 8, ["id", "modelValue", "data-testid", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
1301
- M(g(Ae), {
1389
+ L($(He), {
1302
1390
  "aria-hidden": "true",
1303
1391
  class: "icon"
1304
1392
  })
1305
1393
  ])
1306
1394
  ], 2)) : T("", !0),
1307
- M(rl, {
1395
+ L(Mn, {
1308
1396
  id: e.id,
1309
- ref: ee("list"),
1310
- options: g(o),
1397
+ ref: F("list"),
1398
+ options: $(o),
1311
1399
  multiple: e.multiple,
1312
- "is-selected": w,
1313
- onSelect: z
1400
+ "is-selected": y,
1401
+ onSelect: B
1314
1402
  }, {
1315
- "item-list": D(({ text: m, value: $, option: B, isSelected: L }) => [
1316
- y(b.$slots, "default", {
1317
- text: m,
1318
- value: $,
1319
- option: B,
1320
- isSelected: L
1403
+ "item-list": p(({ text: V, value: E, option: fe, isSelected: me }) => [
1404
+ m(g.$slots, "default", {
1405
+ text: V,
1406
+ value: E,
1407
+ option: fe,
1408
+ isSelected: me
1321
1409
  })
1322
1410
  ]),
1323
- "no-data": D(() => [
1324
- y(b.$slots, "no-data")
1411
+ "no-data": p(() => [
1412
+ m(g.$slots, "no-data")
1325
1413
  ]),
1326
1414
  _: 3
1327
1415
  }, 8, ["id", "options", "multiple"])
1328
1416
  ])
1329
1417
  ], 512), [
1330
- [le, n.value]
1418
+ [X, i.value]
1331
1419
  ])
1332
1420
  ]),
1333
1421
  _: 3
1334
1422
  })
1335
- ], 42, vl));
1423
+ ], 42, An));
1336
1424
  }
1337
1425
  });
1338
- be.install = (e) => {
1339
- e.component("SolSelect", be);
1426
+ Ce.install = (e) => {
1427
+ e.component("SolSelect", Ce);
1340
1428
  };
1341
- se.install = (e) => {
1342
- e.component("SolChip", se);
1429
+ re.install = (e) => {
1430
+ e.component("SolChip", re);
1343
1431
  };
1344
- const Cl = {
1432
+ const Fn = {
1345
1433
  preserveAspectRatio: "xMidYMid meet",
1346
1434
  viewBox: "0 0 24 24",
1347
1435
  width: "1em",
1348
1436
  height: "1em"
1349
- }, kl = /* @__PURE__ */ h("path", {
1437
+ }, qn = /* @__PURE__ */ u("path", {
1350
1438
  fill: "currentColor",
1351
1439
  d: "M11.293 7.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1-1.414 1.414L12 9.414l-5.293 5.293a1 1 0 0 1-1.414-1.414l6-6z"
1352
- }, null, -1), Bl = [
1353
- kl
1440
+ }, null, -1), Un = [
1441
+ qn
1354
1442
  ];
1355
- function Tl(e, l) {
1356
- return s(), r("svg", Cl, Bl);
1443
+ function Kn(e, n) {
1444
+ return s(), c("svg", Fn, Un);
1357
1445
  }
1358
- const Ml = { name: "mi-chevron-up", render: Tl }, zl = ["id", "data-testid", "aria-disabled"], Vl = ["data-testid", "tabindex"], Ll = ["data-testid"], ye = /* @__PURE__ */ V({
1446
+ const Gn = { name: "mi-chevron-up", render: Kn }, Qn = ["id", "data-testid", "aria-disabled"], Yn = ["data-testid", "tabindex"], Wn = ["data-testid"], Be = /* @__PURE__ */ I({
1359
1447
  __name: "Accordion",
1360
1448
  props: {
1361
1449
  id: null,
@@ -1364,38 +1452,219 @@ const Ml = { name: "mi-chevron-up", render: Tl }, zl = ["id", "data-testid", "ar
1364
1452
  disabled: { type: Boolean }
1365
1453
  },
1366
1454
  setup(e) {
1367
- return (l, t) => (s(), r("details", {
1455
+ return (n, t) => (s(), c("details", {
1368
1456
  id: `accordion-${e.id}`,
1369
1457
  "data-testid": `accordion-${e.id}`,
1370
- class: S(["sol-accordion-core", { "-invert": e.invert, "-disabled": e.disabled }]),
1458
+ class: k(["sol-accordion-core", { "-invert": e.invert, "-disabled": e.disabled }]),
1371
1459
  "aria-disabled": e.disabled
1372
1460
  }, [
1373
- h("summary", {
1461
+ u("summary", {
1374
1462
  "data-testid": `accordion-title-${e.id}`,
1375
1463
  class: "summary",
1376
1464
  tabindex: e.disabled ? -1 : 0
1377
1465
  }, [
1378
- y(l.$slots, "title", {}, () => [
1379
- O(x(e.title), 1)
1466
+ m(n.$slots, "title", {}, () => [
1467
+ R(S(e.title), 1)
1380
1468
  ]),
1381
- M(g(Ml), {
1469
+ L($(Gn), {
1382
1470
  class: "icon",
1383
1471
  "aria-hidden": "true"
1384
1472
  })
1385
- ], 8, Vl),
1386
- h("div", {
1473
+ ], 8, Yn),
1474
+ u("div", {
1387
1475
  "data-testid": `accordion-content-${e.id}`,
1388
1476
  class: "container"
1389
1477
  }, [
1390
- y(l.$slots, "default")
1391
- ], 8, Ll)
1392
- ], 10, zl));
1478
+ m(n.$slots, "default")
1479
+ ], 8, Wn)
1480
+ ], 10, Qn));
1393
1481
  }
1394
1482
  });
1395
- ye.install = (e) => {
1396
- e.component("SolAccordion", ye);
1483
+ Be.install = (e) => {
1484
+ e.component("SolAccordion", Be);
1485
+ };
1486
+ const jn = ["id", "data-testid"], Zn = ["id", "aria-expanded"], Jn = ["id", "data-testid", "aria-labelledby"], ue = /* @__PURE__ */ I({
1487
+ __name: "Menu",
1488
+ props: {
1489
+ id: null,
1490
+ label: { default: "Teste" },
1491
+ position: { default: "bottom" }
1492
+ },
1493
+ emits: ["change"],
1494
+ setup(e, { emit: n }) {
1495
+ const t = z();
1496
+ Te(t, () => {
1497
+ y();
1498
+ });
1499
+ const l = z(!1), i = z(), a = D(
1500
+ () => i.value ? i.value.childElementCount : 0
1501
+ ), {
1502
+ resetStateFocus: o,
1503
+ focusOnPreviousItem: d,
1504
+ focusOnNextItem: r,
1505
+ focusOnFirstItem: h,
1506
+ focusOnLastItem: f
1507
+ } = Ue({ target: i, query: '[role="menuitem"]' }), { navigate: B } = qe({
1508
+ Home: h,
1509
+ End: () => f(a.value),
1510
+ ArrowUp: d,
1511
+ ArrowDown: () => {
1512
+ !l.value && w(), r(a.value);
1513
+ },
1514
+ Escape: y
1515
+ });
1516
+ function y() {
1517
+ l.value = !1, o();
1518
+ }
1519
+ function w() {
1520
+ l.value = !0;
1521
+ }
1522
+ function O() {
1523
+ l.value ? y() : w();
1524
+ }
1525
+ return (M, A) => (s(), c("div", {
1526
+ id: `menu-${e.id}`,
1527
+ ref_key: "el",
1528
+ ref: t,
1529
+ "data-testid": `menu-${e.id}`,
1530
+ class: k([`-${e.position}`, "sol-menu-core"]),
1531
+ onKeyupPassive: A[0] || (A[0] = (...K) => $(B) && $(B)(...K)),
1532
+ onFocusin: A[1] || (A[1] = (K) => n("change", "teste"))
1533
+ }, [
1534
+ u("button", {
1535
+ id: `menu-button-${e.id}`,
1536
+ type: "button",
1537
+ role: "menuitem",
1538
+ class: "toggle-menu",
1539
+ "aria-haspopup": "true",
1540
+ "aria-expanded": l.value,
1541
+ onClick: O
1542
+ }, [
1543
+ m(M.$slots, "label", { isOpen: l.value }, () => [
1544
+ R(S(e.label), 1)
1545
+ ])
1546
+ ], 8, Zn),
1547
+ Y(u("menu", {
1548
+ id: `menu-container-${e.id}`,
1549
+ ref_key: "menu",
1550
+ ref: i,
1551
+ "data-testid": `menu-container-${e.id}`,
1552
+ role: "menu",
1553
+ "aria-labelledby": `menu-button-${e.id}`,
1554
+ class: k(["menu", { "-open": l.value }])
1555
+ }, [
1556
+ m(M.$slots, "default")
1557
+ ], 10, Jn), [
1558
+ [X, l.value]
1559
+ ])
1560
+ ], 42, jn));
1561
+ }
1562
+ });
1563
+ ue.install = (e) => {
1564
+ e.component("SolMenu", ue);
1565
+ };
1566
+ const Xn = ["id"], _n = ["href", "target"], he = /* @__PURE__ */ I({
1567
+ __name: "MenuItemLink",
1568
+ props: {
1569
+ id: null,
1570
+ text: null,
1571
+ link: null,
1572
+ active: null,
1573
+ external: null
1574
+ },
1575
+ setup(e) {
1576
+ return (n, t) => (s(), c("li", {
1577
+ id: `menu-item-link-${e.id}`,
1578
+ class: "sol-menuitem-link-core",
1579
+ tabindex: "-1",
1580
+ role: "none"
1581
+ }, [
1582
+ m(n.$slots, "default", {
1583
+ id: e.id,
1584
+ active: e.active,
1585
+ link: e.link,
1586
+ text: e.text,
1587
+ external: e.external
1588
+ }, () => [
1589
+ u("a", {
1590
+ role: "menuitem",
1591
+ class: k({ "-active": e.active }),
1592
+ href: e.link,
1593
+ target: e.external ? "_blank" : "_parent"
1594
+ }, S(e.text), 11, _n)
1595
+ ])
1596
+ ], 8, Xn));
1597
+ }
1598
+ });
1599
+ he.install = (e) => {
1600
+ e.component("SolMenuItemLink", he);
1397
1601
  };
1398
- const Ee = 12, G = {
1602
+ const el = {
1603
+ preserveAspectRatio: "xMidYMid meet",
1604
+ viewBox: "0 0 24 24",
1605
+ width: "1em",
1606
+ height: "1em"
1607
+ }, tl = /* @__PURE__ */ u("path", {
1608
+ fill: "currentColor",
1609
+ 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"
1610
+ }, null, -1), nl = [
1611
+ tl
1612
+ ];
1613
+ function ll(e, n) {
1614
+ return s(), c("svg", el, nl);
1615
+ }
1616
+ const il = { name: "material-symbols-keyboard-arrow-down-rounded", render: ll }, al = { class: "label-container" }, ol = { class: "label" }, Ie = /* @__PURE__ */ I({
1617
+ __name: "MenuNavigationLinks",
1618
+ props: {
1619
+ id: null,
1620
+ label: null,
1621
+ linkItems: null
1622
+ },
1623
+ setup(e) {
1624
+ return (n, t) => (s(), N(ue, {
1625
+ id: `navigation-${e.id}`,
1626
+ class: "sol-menu-navigation-links-core"
1627
+ }, {
1628
+ label: p(({ isOpen: l }) => [
1629
+ m(n.$slots, "label", { isOpen: l }, () => [
1630
+ u("div", al, [
1631
+ u("span", ol, S(e.label), 1),
1632
+ L($(il), {
1633
+ class: k(["icon", { "-opened": l }]),
1634
+ "aria-hidden": "true"
1635
+ }, null, 8, ["class"])
1636
+ ])
1637
+ ])
1638
+ ]),
1639
+ default: p(() => [
1640
+ (s(!0), c(j, null, Z(e.linkItems, (l, i) => (s(), N(he, {
1641
+ id: `${e.id}-${l.text}`,
1642
+ key: i,
1643
+ text: l.text,
1644
+ link: l.link,
1645
+ external: l.external,
1646
+ active: l.active
1647
+ }, {
1648
+ default: p(() => [
1649
+ m(n.$slots, "default", {
1650
+ id: e.id,
1651
+ active: l.active,
1652
+ link: l.link,
1653
+ text: l.text,
1654
+ external: l.external
1655
+ })
1656
+ ]),
1657
+ _: 2
1658
+ }, 1032, ["id", "text", "link", "external", "active"]))), 128))
1659
+ ]),
1660
+ _: 3
1661
+ }, 8, ["id"]));
1662
+ }
1663
+ });
1664
+ Ie.install = (e) => {
1665
+ e.component("SolMenuNavigationLinks", Ie);
1666
+ };
1667
+ const Ke = 12, Q = {
1399
1668
  type: "success",
1400
1669
  timeout: 5e3,
1401
1670
  showIcon: !0,
@@ -1403,59 +1672,59 @@ const Ee = 12, G = {
1403
1672
  position: "top-right",
1404
1673
  hideProgressBar: !1
1405
1674
  };
1406
- function Al(e, l) {
1407
- const t = Z({
1675
+ function sl(e, n) {
1676
+ const t = ae({
1408
1677
  id: null,
1409
1678
  intervalId: null,
1410
1679
  startTime: 0,
1411
- remaining: l
1412
- }), i = I(100);
1413
- function n() {
1680
+ remaining: n
1681
+ }), l = z(100);
1682
+ function i() {
1414
1683
  clearInterval(t.intervalId), clearTimeout(t.id), t.remaining -= Date.now() - t.startTime;
1415
1684
  }
1416
1685
  function a() {
1417
1686
  t.startTime = Date.now(), clearTimeout(t.id), t.intervalId = setInterval(() => {
1418
- i.value--;
1419
- }, l / 100 - 5), t.id = setTimeout(e, t.remaining);
1687
+ l.value--;
1688
+ }, n / 100 - 5), t.id = setTimeout(e, t.remaining);
1420
1689
  }
1421
1690
  function o() {
1422
- clearInterval(t.intervalId), clearTimeout(t.id), i.value = 100;
1691
+ clearInterval(t.intervalId), clearTimeout(t.id), l.value = 100;
1423
1692
  }
1424
- return Te(() => {
1425
- if (l <= 0)
1693
+ return pe(() => {
1694
+ if (n <= 0)
1426
1695
  return !1;
1427
- }), Ne(() => {
1696
+ }), Je(() => {
1428
1697
  o();
1429
1698
  }), {
1430
1699
  start: a,
1431
- stop: n,
1700
+ stop: i,
1432
1701
  clear: o,
1433
- progress: i
1702
+ progress: l
1434
1703
  };
1435
1704
  }
1436
- function Il(e) {
1705
+ function dl(e) {
1437
1706
  return {
1438
- stylePosition: E(() => {
1439
- const { position: t, offset: i } = e();
1707
+ stylePosition: D(() => {
1708
+ const { position: t, offset: l } = e();
1440
1709
  switch (t) {
1441
1710
  case "top-left":
1442
1711
  return {
1443
1712
  left: "0",
1444
- top: `${i}px`
1713
+ top: `${l}px`
1445
1714
  };
1446
1715
  case "bottom-left":
1447
1716
  return {
1448
1717
  left: "0",
1449
- bottom: `${i}px`
1718
+ bottom: `${l}px`
1450
1719
  };
1451
1720
  case "bottom-right":
1452
1721
  return {
1453
1722
  right: "0",
1454
- bottom: `${i}px`
1723
+ bottom: `${l}px`
1455
1724
  };
1456
1725
  case "top-center":
1457
1726
  return {
1458
- top: `${i}px`,
1727
+ top: `${l}px`,
1459
1728
  left: "0",
1460
1729
  right: "0",
1461
1730
  marginRight: "auto",
@@ -1463,7 +1732,7 @@ function Il(e) {
1463
1732
  };
1464
1733
  case "bottom-center":
1465
1734
  return {
1466
- bottom: `${i}px`,
1735
+ bottom: `${l}px`,
1467
1736
  left: "0",
1468
1737
  right: "0",
1469
1738
  marginRight: "auto",
@@ -1472,169 +1741,169 @@ function Il(e) {
1472
1741
  default:
1473
1742
  return {
1474
1743
  right: "0",
1475
- top: `${i}px`
1744
+ top: `${l}px`
1476
1745
  };
1477
1746
  }
1478
1747
  })
1479
1748
  };
1480
1749
  }
1481
- var Pe = /* @__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))(Pe || {});
1482
- const El = {
1750
+ var Ge = /* @__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))(Ge || {});
1751
+ const cl = {
1483
1752
  preserveAspectRatio: "xMidYMid meet",
1484
1753
  viewBox: "0 0 24 24",
1485
1754
  width: "1em",
1486
1755
  height: "1em"
1487
- }, Pl = /* @__PURE__ */ h("path", {
1756
+ }, rl = /* @__PURE__ */ u("path", {
1488
1757
  fill: "currentColor",
1489
1758
  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"
1490
- }, null, -1), Ol = [
1491
- Pl
1759
+ }, null, -1), ul = [
1760
+ rl
1492
1761
  ];
1493
- function Dl(e, l) {
1494
- return s(), r("svg", El, Ol);
1762
+ function hl(e, n) {
1763
+ return s(), c("svg", cl, ul);
1495
1764
  }
1496
- const Rl = { name: "mi-circle-check", render: Dl }, pl = {
1765
+ const fl = { name: "mi-circle-check", render: hl }, ml = {
1497
1766
  preserveAspectRatio: "xMidYMid meet",
1498
1767
  viewBox: "0 0 24 24",
1499
1768
  width: "1em",
1500
1769
  height: "1em"
1501
- }, Hl = /* @__PURE__ */ h("path", {
1770
+ }, vl = /* @__PURE__ */ u("path", {
1502
1771
  fill: "currentColor",
1503
1772
  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"
1504
- }, null, -1), Nl = [
1505
- Hl
1773
+ }, null, -1), $l = [
1774
+ vl
1506
1775
  ];
1507
- function Ul(e, l) {
1508
- return s(), r("svg", pl, Nl);
1776
+ function bl(e, n) {
1777
+ return s(), c("svg", ml, $l);
1509
1778
  }
1510
- const Gl = { name: "mi-circle-error", render: Ul }, Fl = {
1779
+ const yl = { name: "mi-circle-error", render: bl }, gl = {
1511
1780
  preserveAspectRatio: "xMidYMid meet",
1512
1781
  viewBox: "0 0 24 24",
1513
1782
  width: "1em",
1514
1783
  height: "1em"
1515
- }, Kl = /* @__PURE__ */ h("g", { fill: "currentColor" }, [
1516
- /* @__PURE__ */ h("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" }),
1517
- /* @__PURE__ */ h("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" })
1518
- ], -1), Yl = [
1519
- Kl
1784
+ }, wl = /* @__PURE__ */ u("g", { fill: "currentColor" }, [
1785
+ /* @__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" }),
1786
+ /* @__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" })
1787
+ ], -1), xl = [
1788
+ wl
1520
1789
  ];
1521
- function Wl(e, l) {
1522
- return s(), r("svg", Fl, Yl);
1790
+ function kl(e, n) {
1791
+ return s(), c("svg", gl, xl);
1523
1792
  }
1524
- const Zl = { name: "mi-circle-warning", render: Wl }, jl = ["id", "data-testid"], ql = { class: "content-wrapper" }, Ql = {
1793
+ const Sl = { name: "mi-circle-warning", render: kl }, Cl = ["id", "data-testid"], Bl = { class: "content-wrapper" }, Il = {
1525
1794
  key: 0,
1526
1795
  class: "icon-container",
1527
1796
  "aria-hidden": "true"
1528
- }, Jl = { class: "content" }, Xl = {
1797
+ }, Ol = { class: "content" }, Ml = {
1529
1798
  key: 0,
1530
1799
  class: "description"
1531
- }, _l = ["data-testid"], en = /* @__PURE__ */ V({
1800
+ }, Tl = ["data-testid"], Ll = /* @__PURE__ */ I({
1532
1801
  __name: "Toast",
1533
1802
  props: {
1534
1803
  id: null,
1535
- type: { default: G.type },
1804
+ type: { default: Q.type },
1536
1805
  visible: { type: Boolean, default: !1 },
1537
1806
  title: null,
1538
1807
  description: null,
1539
1808
  timeout: null,
1540
- hideProgressBar: { type: Boolean, default: G.hideProgressBar },
1541
- showIcon: { type: Boolean, default: G.showIcon },
1809
+ hideProgressBar: { type: Boolean, default: Q.hideProgressBar },
1810
+ showIcon: { type: Boolean, default: Q.showIcon },
1542
1811
  offset: { default: 0 },
1543
1812
  onClose: null,
1544
1813
  onCloseHandler: null,
1545
- position: { default: G.position }
1814
+ position: { default: Q.position }
1546
1815
  },
1547
1816
  setup(e) {
1548
- const l = e, { start: t, stop: i, progress: n } = Al(() => {
1549
- var f;
1550
- (f = l.onCloseHandler) == null || f.call(l);
1551
- }, l.timeout), { stylePosition: a } = Il(() => ({
1552
- offset: l.offset,
1553
- position: l.position
1554
- })), o = E(() => l.title && l.description);
1555
- function c() {
1556
- l.timeout > 0 && i();
1817
+ const n = e, { start: t, stop: l, progress: i } = sl(() => {
1818
+ var h;
1819
+ (h = n.onCloseHandler) == null || h.call(n);
1820
+ }, n.timeout), { stylePosition: a } = dl(() => ({
1821
+ offset: n.offset,
1822
+ position: n.position
1823
+ })), o = D(() => n.title && n.description);
1824
+ function d() {
1825
+ n.timeout > 0 && l();
1557
1826
  }
1558
- function u() {
1827
+ function r() {
1559
1828
  t();
1560
1829
  }
1561
- return Te(() => {
1830
+ return pe(() => {
1562
1831
  t();
1563
- }), (f, v) => (s(), p(we, {
1564
- name: g(Pe)[e.position],
1832
+ }), (h, f) => (s(), N(Me, {
1833
+ name: $(Ge)[e.position],
1565
1834
  type: "animation"
1566
1835
  }, {
1567
- default: D(() => [
1568
- e.visible ? (s(), r("div", {
1836
+ default: p(() => [
1837
+ e.visible ? (s(), c("div", {
1569
1838
  key: 0,
1570
1839
  id: `toast-${e.type}-${e.id}`,
1571
1840
  role: "status",
1572
1841
  "data-testid": `toast-${e.type}-${e.id}`,
1573
- style: ne(g(a)),
1574
- class: S(["sol-toast-core", [`-${e.type}`, { "-multiline": g(o) }]]),
1575
- onKeyup: v[1] || (v[1] = j(
1576
- (...z) => e.onCloseHandler && e.onCloseHandler(...z),
1842
+ style: oe($(a)),
1843
+ class: k(["sol-toast-core", [`-${e.type}`, { "-multiline": $(o) }]]),
1844
+ onKeyup: f[1] || (f[1] = _(
1845
+ (...B) => e.onCloseHandler && e.onCloseHandler(...B),
1577
1846
  ["esc"]
1578
1847
  )),
1579
- onMouseenter: c,
1580
- onMouseleave: u,
1581
- onFocusin: c,
1582
- onFocusout: u
1848
+ onMouseenter: d,
1849
+ onMouseleave: r,
1850
+ onFocusin: d,
1851
+ onFocusout: r
1583
1852
  }, [
1584
- h("section", ql, [
1585
- e.showIcon ? (s(), r("div", Ql, [
1586
- y(f.$slots, "icon-status", { type: e.type }, () => [
1587
- e.type === "success" ? (s(), p(g(Rl), {
1853
+ u("section", Bl, [
1854
+ e.showIcon ? (s(), c("div", Il, [
1855
+ m(h.$slots, "icon-status", { type: e.type }, () => [
1856
+ e.type === "success" ? (s(), N($(fl), {
1588
1857
  key: 0,
1589
1858
  class: "icon"
1590
1859
  })) : T("", !0),
1591
- e.type === "info" ? (s(), p(g(Zl), {
1860
+ e.type === "info" ? (s(), N($(Sl), {
1592
1861
  key: 1,
1593
1862
  class: "icon"
1594
1863
  })) : T("", !0),
1595
- e.type === "danger" ? (s(), p(g(Gl), {
1864
+ e.type === "danger" ? (s(), N($(yl), {
1596
1865
  key: 2,
1597
1866
  class: "icon"
1598
1867
  })) : T("", !0)
1599
1868
  ])
1600
1869
  ])) : T("", !0),
1601
- h("div", Jl, [
1602
- h("p", {
1603
- class: S(["title", { "-multiline": g(o) }])
1870
+ u("div", Ol, [
1871
+ u("p", {
1872
+ class: k(["title", { "-multiline": $(o) }])
1604
1873
  }, [
1605
- y(f.$slots, "title", {}, () => [
1606
- O(x(e.title), 1)
1874
+ m(h.$slots, "title", {}, () => [
1875
+ R(S(e.title), 1)
1607
1876
  ])
1608
1877
  ], 2),
1609
- e.description ? (s(), r("p", Xl, [
1610
- y(f.$slots, "description", {}, () => [
1611
- O(x(e.description), 1)
1878
+ e.description ? (s(), c("p", Ml, [
1879
+ m(h.$slots, "description", {}, () => [
1880
+ R(S(e.description), 1)
1612
1881
  ])
1613
1882
  ])) : T("", !0)
1614
1883
  ])
1615
1884
  ]),
1616
- h("button", {
1885
+ u("button", {
1617
1886
  type: "button",
1618
- class: S(["close", { "-multiline": g(o) }]),
1887
+ class: k(["close", { "-multiline": $(o) }]),
1619
1888
  "data-testid": `toast-close-button-${e.type}-${e.id}`,
1620
1889
  "aria-label": "close notification",
1621
- onClick: v[0] || (v[0] = (...z) => e.onCloseHandler && e.onCloseHandler(...z))
1890
+ onClick: f[0] || (f[0] = (...B) => e.onCloseHandler && e.onCloseHandler(...B))
1622
1891
  }, [
1623
- M(g(Ie), { class: "icon" })
1624
- ], 10, _l),
1625
- e.hideProgressBar ? T("", !0) : (s(), r("div", {
1892
+ L($(Fe), { class: "icon" })
1893
+ ], 10, Tl),
1894
+ e.hideProgressBar ? T("", !0) : (s(), c("div", {
1626
1895
  key: 0,
1627
1896
  class: "progressbar",
1628
1897
  "aria-hidden": "true",
1629
- style: ne({ width: `${g(n)}%` })
1898
+ style: oe({ width: `${$(i)}%` })
1630
1899
  }, null, 4))
1631
- ], 46, jl)) : T("", !0)
1900
+ ], 46, Cl)) : T("", !0)
1632
1901
  ]),
1633
1902
  _: 3
1634
1903
  }, 8, ["name"]));
1635
1904
  }
1636
1905
  });
1637
- const Q = {
1906
+ const te = {
1638
1907
  "top-left": [],
1639
1908
  "top-right": [],
1640
1909
  "top-center": [],
@@ -1642,131 +1911,137 @@ const Q = {
1642
1911
  "bottom-right": [],
1643
1912
  "bottom-center": []
1644
1913
  };
1645
- function dn() {
1914
+ function Dl() {
1646
1915
  let e = 0;
1647
- function l() {
1648
- Object.entries(Q).forEach(([i, n]) => {
1649
- n.length && n.forEach((a) => {
1650
- var c;
1651
- const o = (c = a.toastVNode.props) == null ? void 0 : c.id;
1652
- ge(o, i);
1916
+ function n() {
1917
+ Object.entries(te).forEach(([l, i]) => {
1918
+ i.length && i.forEach((a) => {
1919
+ var d;
1920
+ const o = (d = a.toastVNode.props) == null ? void 0 : d.id;
1921
+ Oe(o, l);
1653
1922
  });
1654
1923
  });
1655
1924
  }
1656
1925
  return {
1657
- createToast: (i, n) => {
1658
- const a = e++, o = n ? tn(n) : G;
1659
- return n != null && n.showOneToast && l(), ln(a, o, typeof i == "string" ? { title: i } : i), {
1660
- close: () => ge(a, o.position)
1926
+ createToast: (l, i) => {
1927
+ const a = e++, o = i ? Pl(i) : Q;
1928
+ return i != null && i.showOneToast && n(), zl(a, o, typeof l == "string" ? { title: l } : l), {
1929
+ close: () => Oe(a, o.position)
1661
1930
  };
1662
1931
  },
1663
- clearAllToasts: l
1932
+ clearAllToasts: n
1664
1933
  };
1665
1934
  }
1666
- function tn(e) {
1667
- const l = {
1668
- ...G,
1935
+ function Pl(e) {
1936
+ const n = {
1937
+ ...Q,
1669
1938
  ...e,
1670
1939
  showIcon: e.showIcon
1671
1940
  };
1672
- return l.hideProgressBar = !!(l.timeout && (l == null ? void 0 : l.timeout) <= 0), e.hideProgressBar && (l.hideProgressBar = e.hideProgressBar), l;
1941
+ return n.hideProgressBar = !!(n.timeout && (n == null ? void 0 : n.timeout) <= 0), e.hideProgressBar && (n.hideProgressBar = e.hideProgressBar), n;
1673
1942
  }
1674
- function ln(e, l, t) {
1943
+ function zl(e, n, t) {
1675
1944
  setTimeout(() => {
1676
- const i = an(l, Q, Ee), n = document.createElement("div");
1677
- document.body.appendChild(n);
1678
- const a = M(
1679
- en,
1680
- nn(l, e, i, ge, t)
1945
+ const l = Al(n, te, Ke), i = document.createElement("div");
1946
+ document.body.appendChild(i);
1947
+ const a = L(
1948
+ Ll,
1949
+ Vl(n, e, l, Oe, t)
1681
1950
  );
1682
- Me(a, n), Q[l.position].push({ toastVNode: a, container: n }), a.component && (a.component.props.visible = !0);
1951
+ De(a, i), te[n.position].push({ toastVNode: a, container: i }), a.component && (a.component.props.visible = !0);
1683
1952
  }, 1);
1684
1953
  }
1685
- function nn(e, l, t, i, n) {
1954
+ function Vl(e, n, t, l, i) {
1686
1955
  return {
1687
1956
  ...e,
1688
- ...n,
1689
- id: l,
1957
+ ...i,
1958
+ id: n,
1690
1959
  offset: t,
1691
1960
  visible: !1,
1692
1961
  onCloseHandler() {
1693
- i(l, e.position ? e.position : "top-right");
1962
+ l(n, e.position ? e.position : "top-right");
1694
1963
  }
1695
1964
  };
1696
1965
  }
1697
- function an(e, l, t) {
1966
+ function Al(e, n, t) {
1698
1967
  if (!e.position)
1699
1968
  throw new Error("no position");
1700
- return l[e.position].reduce((i, { toastVNode: n }) => (i += n.el.offsetHeight + t || 0, i), t);
1969
+ return n[e.position].reduce((l, { toastVNode: i }) => (l += i.el.offsetHeight + t || 0, l), t);
1701
1970
  }
1702
- function on(e, l, t, i) {
1703
- for (let n = e; n < l.length; n++) {
1704
- const { toastVNode: a } = l[n];
1971
+ function El(e, n, t, l) {
1972
+ for (let i = e; i < n.length; i++) {
1973
+ const { toastVNode: a } = n[i];
1705
1974
  if (!a.el)
1706
1975
  return;
1707
- const o = t.split("-")[0] || "top", c = parseInt(a.el.style[o], 10) - i - Ee;
1976
+ const o = t.split("-")[0] || "top", d = parseInt(a.el.style[o], 10) - l - Ke;
1708
1977
  if (!a.component)
1709
1978
  return;
1710
- a.component.props.offset = c;
1979
+ a.component.props.offset = d;
1711
1980
  }
1712
1981
  }
1713
- function ge(e, l) {
1714
- var u;
1715
- const t = Q[l], i = t.findIndex(
1716
- ({ toastVNode: f }) => {
1717
- var v;
1718
- return e === ((v = f == null ? void 0 : f.props) == null ? void 0 : v.id);
1982
+ function Oe(e, n) {
1983
+ var r;
1984
+ const t = te[n], l = t.findIndex(
1985
+ ({ toastVNode: h }) => {
1986
+ var f;
1987
+ return e === ((f = h == null ? void 0 : h.props) == null ? void 0 : f.id);
1719
1988
  }
1720
1989
  );
1721
- if (i === -1)
1990
+ if (l === -1)
1722
1991
  return;
1723
- const { container: n, toastVNode: a } = t[i], o = (u = a == null ? void 0 : a.el) == null ? void 0 : u.offsetHeight;
1724
- if (Q[l].splice(i, 1), on(i, t, l, o), !a.component)
1992
+ const { container: i, toastVNode: a } = t[l], o = (r = a == null ? void 0 : a.el) == null ? void 0 : r.offsetHeight;
1993
+ if (te[n].splice(l, 1), El(l, t, n, o), !a.component)
1725
1994
  return;
1726
- const c = a.component.props;
1727
- c.visible = !1, c.onClose && c.onClose(), setTimeout(() => {
1728
- Me(null, n), document.body.removeChild(n);
1995
+ const d = a.component.props;
1996
+ d.visible = !1, d.onClose && d.onClose(), setTimeout(() => {
1997
+ De(null, i), document.body.removeChild(i);
1729
1998
  }, 1e3);
1730
1999
  }
1731
2000
  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");
1732
- const ke = {
1733
- SolButton: q,
1734
- SolButtonDestructive: ze,
1735
- SolInput: F,
1736
- SolTextarea: re,
1737
- SolTextfield: ie,
1738
- SolTextfieldPassword: ce,
1739
- SolRadio: ae,
1740
- SolRadioGroup: ue,
1741
- SolCheckbox: oe,
1742
- SolCheckboxGroup: he,
1743
- SolSwitch: fe,
1744
- SolDropdown: ve,
1745
- SolSelect: be,
1746
- SolChip: se,
1747
- SolAccordion: ye
2001
+ const Ae = {
2002
+ SolButton: ee,
2003
+ SolButtonDestructive: Re,
2004
+ SolInput: W,
2005
+ SolTextarea: be,
2006
+ SolTextfield: se,
2007
+ SolTextfieldPassword: $e,
2008
+ SolRadio: de,
2009
+ SolRadioGroup: ye,
2010
+ SolCheckbox: ce,
2011
+ SolCheckboxGroup: ge,
2012
+ SolSwitch: we,
2013
+ SolDropdown: Se,
2014
+ SolSelect: Ce,
2015
+ SolChip: re,
2016
+ SolAccordion: Be,
2017
+ SolMenu: ue,
2018
+ SolMenuItemLink: he,
2019
+ SolMenuNavigationLinks: Ie
1748
2020
  };
1749
- function cn(e) {
1750
- for (const l in ke)
1751
- e.component(l, ke[l]);
2021
+ function Rl(e) {
2022
+ for (const n in Ae)
2023
+ e.component(n, Ae[n]);
1752
2024
  }
1753
2025
  export {
1754
- ye as SolAccordion,
1755
- q as SolButton,
1756
- ze as SolButtonDestructive,
1757
- oe as SolCheckbox,
1758
- he as SolCheckboxGroup,
1759
- se as SolChip,
1760
- ve as SolDropdown,
1761
- F as SolInput,
1762
- ae as SolRadio,
1763
- ue as SolRadioGroup,
1764
- be as SolSelect,
1765
- fe as SolSwitch,
1766
- re as SolTextarea,
1767
- ie as SolTextfield,
1768
- ce as SolTextfieldPassword,
1769
- ke as components,
1770
- cn as install,
1771
- dn as useToast
2026
+ Be as SolAccordion,
2027
+ ee as SolButton,
2028
+ Re as SolButtonDestructive,
2029
+ ce as SolCheckbox,
2030
+ ge as SolCheckboxGroup,
2031
+ re as SolChip,
2032
+ Se as SolDropdown,
2033
+ W as SolInput,
2034
+ ue as SolMenu,
2035
+ he as SolMenuItemLink,
2036
+ Ie as SolMenuNavigationLinks,
2037
+ de as SolRadio,
2038
+ ye as SolRadioGroup,
2039
+ Ce as SolSelect,
2040
+ we as SolSwitch,
2041
+ be as SolTextarea,
2042
+ se as SolTextfield,
2043
+ $e as SolTextfieldPassword,
2044
+ Ae as components,
2045
+ Rl as install,
2046
+ Dl as useToast
1772
2047
  };