@vincisys/eyeson 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,29 +6,29 @@ import * as y from "react";
6
6
  import { createContext as b, forwardRef as x, useContext as S, useEffect as C, useId as ee, useMemo as w, useRef as T, useState as E } from "react";
7
7
  import { Tooltip as D } from "@base-ui/react/tooltip";
8
8
  import { mergeProps as te } from "@base-ui/react/merge-props";
9
- import { useRender as O } from "@base-ui/react/use-render";
10
- import { Checkbox as k } from "@base-ui/react/checkbox";
11
- import { Field as ne } from "@base-ui/react/field";
12
- import { Combobox as A } from "@base-ui/react/combobox";
13
- import { Popover as j } from "@base-ui/react/popover";
14
- import { Dialog as M } from "@base-ui/react/dialog";
15
- import { AlertDialog as N } from "@base-ui/react/alert-dialog";
16
- import { Input as P } from "@base-ui/react/input";
17
- import { Select as F } from "@base-ui/react/select";
18
- import { Tabs as I } from "@base-ui/react/tabs";
9
+ import { useRender as ne } from "@base-ui/react/use-render";
10
+ import { Checkbox as O } from "@base-ui/react/checkbox";
11
+ import { Field as re } from "@base-ui/react/field";
12
+ import { Combobox as k } from "@base-ui/react/combobox";
13
+ import { Popover as A } from "@base-ui/react/popover";
14
+ import { Dialog as j } from "@base-ui/react/dialog";
15
+ import { AlertDialog as M } from "@base-ui/react/alert-dialog";
16
+ import { Input as N } from "@base-ui/react/input";
17
+ import { Select as P } from "@base-ui/react/select";
18
+ import { Tabs as F } from "@base-ui/react/tabs";
19
19
  //#region src/lib/utils.ts
20
- function L(...e) {
20
+ function I(...e) {
21
21
  return h(e);
22
22
  }
23
23
  //#endregion
24
24
  //#region src/utils/resolve-variant.ts
25
- function R(e, t, n) {
25
+ function L(e, t, n) {
26
26
  let r = e[t];
27
27
  return r === void 0 ? e[n] : r;
28
28
  }
29
29
  //#endregion
30
30
  //#region src/components/Button/Button.tsx
31
- var z = /* @__PURE__ */ new Set([
31
+ var ie = /* @__PURE__ */ new Set([
32
32
  "blue-background",
33
33
  "green-background",
34
34
  "green-main",
@@ -40,7 +40,7 @@ var z = /* @__PURE__ */ new Set([
40
40
  "red-background",
41
41
  "red-dark",
42
42
  "red-middle"
43
- ]), B = {
43
+ ]), R = {
44
44
  size: {
45
45
  sm: { classes: "h-[calc(1.75rem*1.188*1.1)] gap-1 rounded-[min(var(--radius-eds-xs),12px)] px-[calc(0.625rem*1.188*1.15)] text-[0.8rem] has-data-[icon=inline-end]:pr-[calc(0.375rem*1.188*1.15)] has-data-[icon=inline-start]:pl-[calc(0.375rem*1.188*1.15)] [&_svg:not([class*='size-'])]:size-3.5 [&_.eds-btn-icon-wrap]:size-3.5" },
46
46
  md: { classes: "h-[calc(2rem*1.188*1.1)] gap-1.5 px-[calc(0.625rem*1.188*1.15)] has-data-[icon=inline-end]:pr-[calc(0.5rem*1.188*1.15)] has-data-[icon=inline-start]:pl-[calc(0.5rem*1.188*1.15)] [&_.eds-btn-icon-wrap]:size-4" },
@@ -52,22 +52,22 @@ var z = /* @__PURE__ */ new Set([
52
52
  ghost: { classes: "border-transparent bg-transparent text-[var(--eds-btn-accent)] hover:bg-[color-mix(in_srgb,var(--eds-btn-accent)_10%,transparent)] hover:text-[color-mix(in_srgb,var(--eds-btn-accent)_88%,black)] data-disabled:not-data-loading:text-eds-neutral-disabled data-loading:data-disabled:text-[var(--eds-btn-accent)]" },
53
53
  link: { classes: "h-auto border-transparent bg-transparent px-0 text-[var(--eds-btn-accent)] underline-offset-4 hover:underline data-disabled:not-data-loading:text-eds-neutral-disabled data-loading:data-disabled:text-[var(--eds-btn-accent)]" }
54
54
  }
55
- }, re = {
55
+ }, z = {
56
56
  size: "md",
57
57
  variant: "solid"
58
- }, V = {
58
+ }, ae = {
59
59
  sm: 14,
60
60
  md: 16,
61
61
  lg: 16
62
62
  };
63
- function H({ variant: e = re.variant, size: t = re.size, fluid: n = !1 }) {
64
- let r = R(B.size, t, re.size), i = R(B.variant, e, re.variant);
65
- return L("eds-btn group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:not-data-loading:opacity-50 data-loading:data-disabled:cursor-wait data-loading:data-disabled:opacity-100", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r.classes, i.classes, n && "w-full");
63
+ function B({ variant: e = z.variant, size: t = z.size, fluid: n = !1 }) {
64
+ let r = L(R.size, t, z.size), i = L(R.variant, e, z.variant);
65
+ return I("eds-btn group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:not-data-loading:opacity-50 data-loading:data-disabled:cursor-wait data-loading:data-disabled:opacity-100", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r.classes, i.classes, n && "w-full");
66
66
  }
67
- function ie({ text: t = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: s = "md", fluid: c = !1, isLoading: l = !1, disabled: u, style: f, ...p }) {
68
- let m = V[s], h = !!(u || l), y = !!(l || r), b = i === "end" ? "inline-end" : "inline-start", x = {
67
+ function oe({ text: t = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: s = "md", fluid: c = !1, isLoading: l = !1, disabled: u, style: f, ...p }) {
68
+ let m = ae[s], h = !!(u || l), y = !!(l || r), b = i === "end" ? "inline-end" : "inline-start", x = {
69
69
  "--eds-btn-accent": `var(--color-eds-${o})`,
70
- ...z.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
70
+ ...ie.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
71
71
  ...f
72
72
  }, S = y ? /* @__PURE__ */ _("span", {
73
73
  className: "eds-btn-icon-wrap flex shrink-0 items-center justify-center",
@@ -82,7 +82,7 @@ function ie({ text: t = "Button", className: n, icon: r, iconPosition: i = "star
82
82
  })
83
83
  }) : null;
84
84
  return /* @__PURE__ */ _(e, {
85
- className: L(H({
85
+ className: I(B({
86
86
  variant: a,
87
87
  size: s,
88
88
  fluid: c
@@ -98,7 +98,7 @@ function ie({ text: t = "Button", className: n, icon: r, iconPosition: i = "star
98
98
  }
99
99
  //#endregion
100
100
  //#region src/constants/colors.ts
101
- var U = [
101
+ var se = [
102
102
  "blue-background",
103
103
  "blue-dark",
104
104
  "blue-main",
@@ -119,50 +119,50 @@ var U = [
119
119
  "red-dark",
120
120
  "red-main",
121
121
  "red-middle"
122
- ], ae = 365.2425, oe = 6048e5, se = 864e5, ce = 3600 * 24;
123
- ce * 7, ce * ae / 12 * 3;
124
- var le = Symbol.for("constructDateFrom");
122
+ ], V = 365.2425, ce = 6048e5, H = 864e5, le = 3600 * 24;
123
+ le * 7, le * V / 12 * 3;
124
+ var ue = Symbol.for("constructDateFrom");
125
125
  //#endregion
126
126
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
127
- function W(e, t) {
128
- return typeof e == "function" ? e(t) : e && typeof e == "object" && le in e ? e[le](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
127
+ function U(e, t) {
128
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && ue in e ? e[ue](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
129
129
  }
130
130
  //#endregion
131
131
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
132
- function G(e, t) {
133
- return W(t || e, e);
132
+ function W(e, t) {
133
+ return U(t || e, e);
134
134
  }
135
135
  //#endregion
136
136
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
137
- function ue(e, t, n) {
138
- let r = G(e, n?.in);
139
- return isNaN(t) ? W(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
137
+ function de(e, t, n) {
138
+ let r = W(e, n?.in);
139
+ return isNaN(t) ? U(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
140
140
  }
141
141
  //#endregion
142
142
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
143
- function de(e, t, n) {
144
- let r = G(e, n?.in);
145
- if (isNaN(t)) return W(n?.in || e, NaN);
143
+ function fe(e, t, n) {
144
+ let r = W(e, n?.in);
145
+ if (isNaN(t)) return U(n?.in || e, NaN);
146
146
  if (!t) return r;
147
- let i = r.getDate(), a = W(n?.in || e, r.getTime());
147
+ let i = r.getDate(), a = U(n?.in || e, r.getTime());
148
148
  return a.setMonth(r.getMonth() + t + 1, 0), i >= a.getDate() ? a : (r.setFullYear(a.getFullYear(), a.getMonth(), i), r);
149
149
  }
150
150
  //#endregion
151
151
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
152
- var fe = {};
153
- function pe() {
154
- return fe;
152
+ var pe = {};
153
+ function me() {
154
+ return pe;
155
155
  }
156
156
  //#endregion
157
157
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
158
- function K(e, t) {
159
- let n = pe(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = G(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
158
+ function G(e, t) {
159
+ let n = me(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = W(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
160
160
  return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
161
161
  }
162
162
  //#endregion
163
163
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
164
- function me(e, t) {
165
- return K(e, {
164
+ function K(e, t) {
165
+ return G(e, {
166
166
  ...t,
167
167
  weekStartsOn: 1
168
168
  });
@@ -170,47 +170,47 @@ function me(e, t) {
170
170
  //#endregion
171
171
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
172
172
  function he(e, t) {
173
- let n = G(e, t?.in), r = n.getFullYear(), i = W(n, 0);
173
+ let n = W(e, t?.in), r = n.getFullYear(), i = U(n, 0);
174
174
  i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
175
- let a = me(i), o = W(n, 0);
175
+ let a = K(i), o = U(n, 0);
176
176
  o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
177
- let s = me(o);
177
+ let s = K(o);
178
178
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
179
179
  }
180
180
  //#endregion
181
181
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
182
182
  function ge(e) {
183
- let t = G(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
183
+ let t = W(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
184
184
  return n.setUTCFullYear(t.getFullYear()), e - +n;
185
185
  }
186
186
  //#endregion
187
187
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
188
188
  function _e(e, ...t) {
189
- let n = W.bind(null, e || t.find((e) => typeof e == "object"));
189
+ let n = U.bind(null, e || t.find((e) => typeof e == "object"));
190
190
  return t.map(n);
191
191
  }
192
192
  //#endregion
193
193
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
194
194
  function ve(e, t) {
195
- let n = G(e, t?.in);
195
+ let n = W(e, t?.in);
196
196
  return n.setHours(0, 0, 0, 0), n;
197
197
  }
198
198
  //#endregion
199
199
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
200
200
  function ye(e, t, n) {
201
201
  let [r, i] = _e(n?.in, e, t), a = ve(r), o = ve(i), s = +a - ge(a), c = +o - ge(o);
202
- return Math.round((s - c) / se);
202
+ return Math.round((s - c) / H);
203
203
  }
204
204
  //#endregion
205
205
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
206
206
  function be(e, t) {
207
- let n = he(e, t), r = W(t?.in || e, 0);
208
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), me(r);
207
+ let n = he(e, t), r = U(t?.in || e, 0);
208
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), K(r);
209
209
  }
210
210
  //#endregion
211
211
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructNow.js
212
212
  function xe(e) {
213
- return W(e, Date.now());
213
+ return U(e, Date.now());
214
214
  }
215
215
  //#endregion
216
216
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
@@ -226,30 +226,30 @@ function Ce(e) {
226
226
  //#endregion
227
227
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
228
228
  function we(e) {
229
- return !(!Ce(e) && typeof e != "number" || isNaN(+G(e)));
229
+ return !(!Ce(e) && typeof e != "number" || isNaN(+W(e)));
230
230
  }
231
231
  //#endregion
232
232
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
233
233
  function Te(e, t) {
234
- let n = G(e, t?.in), r = n.getMonth();
234
+ let n = W(e, t?.in), r = n.getMonth();
235
235
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
236
236
  }
237
237
  //#endregion
238
238
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
239
239
  function Ee(e, t) {
240
- let n = G(e, t?.in);
240
+ let n = W(e, t?.in);
241
241
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
242
242
  }
243
243
  //#endregion
244
244
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
245
245
  function De(e, t) {
246
- let n = G(e, t?.in);
246
+ let n = W(e, t?.in);
247
247
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
248
248
  }
249
249
  //#endregion
250
250
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
251
251
  function Oe(e, t) {
252
- let n = pe(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = G(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
252
+ let n = me(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = W(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
253
253
  return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
254
254
  }
255
255
  //#endregion
@@ -753,36 +753,36 @@ var Ve = {
753
753
  //#endregion
754
754
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
755
755
  function He(e, t) {
756
- let n = G(e, t?.in);
756
+ let n = W(e, t?.in);
757
757
  return ye(n, De(n)) + 1;
758
758
  }
759
759
  //#endregion
760
760
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
761
761
  function Ue(e, t) {
762
- let n = G(e, t?.in), r = me(n) - +be(n);
763
- return Math.round(r / oe) + 1;
762
+ let n = W(e, t?.in), r = K(n) - +be(n);
763
+ return Math.round(r / ce) + 1;
764
764
  }
765
765
  //#endregion
766
766
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
767
767
  function We(e, t) {
768
- let n = G(e, t?.in), r = n.getFullYear(), i = pe(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = W(t?.in || e, 0);
768
+ let n = W(e, t?.in), r = n.getFullYear(), i = me(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = U(t?.in || e, 0);
769
769
  o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
770
- let s = K(o, t), c = W(t?.in || e, 0);
770
+ let s = G(o, t), c = U(t?.in || e, 0);
771
771
  c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
772
- let l = K(c, t);
772
+ let l = G(c, t);
773
773
  return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
774
774
  }
775
775
  //#endregion
776
776
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
777
777
  function Ge(e, t) {
778
- let n = pe(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = We(e, t), a = W(t?.in || e, 0);
779
- return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), K(a, t);
778
+ let n = me(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = We(e, t), a = U(t?.in || e, 0);
779
+ return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), G(a, t);
780
780
  }
781
781
  //#endregion
782
782
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
783
783
  function Ke(e, t) {
784
- let n = G(e, t?.in), r = K(n, t) - +Ge(n, t);
785
- return Math.round(r / oe) + 1;
784
+ let n = W(e, t?.in), r = G(n, t) - +Ge(n, t);
785
+ return Math.round(r / ce) + 1;
786
786
  }
787
787
  //#endregion
788
788
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
@@ -1263,7 +1263,7 @@ function ct(e, t, n) {
1263
1263
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
1264
1264
  var lt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ut = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, dt = /^'([^]*?)'?$/, ft = /''/g, pt = /[a-zA-Z]/;
1265
1265
  function J(e, t, n) {
1266
- let r = pe(), i = n?.locale ?? r.locale ?? Ve, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = G(e, n?.in);
1266
+ let r = me(), i = n?.locale ?? r.locale ?? Ve, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = W(e, n?.in);
1267
1267
  if (!we(s)) throw RangeError("Invalid time value");
1268
1268
  let c = t.match(ut).map((e) => {
1269
1269
  let t = e[0];
@@ -1313,22 +1313,22 @@ function mt(e) {
1313
1313
  //#endregion
1314
1314
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getHours.js
1315
1315
  function ht(e, t) {
1316
- return G(e, t?.in).getHours();
1316
+ return W(e, t?.in).getHours();
1317
1317
  }
1318
1318
  //#endregion
1319
1319
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMinutes.js
1320
1320
  function gt(e, t) {
1321
- return G(e, t?.in).getMinutes();
1321
+ return W(e, t?.in).getMinutes();
1322
1322
  }
1323
1323
  //#endregion
1324
1324
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
1325
1325
  function _t(e, t) {
1326
- return +G(e) > +G(t);
1326
+ return +W(e) > +W(t);
1327
1327
  }
1328
1328
  //#endregion
1329
1329
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
1330
1330
  function vt(e, t) {
1331
- return +G(e) < +G(t);
1331
+ return +W(e) < +W(t);
1332
1332
  }
1333
1333
  //#endregion
1334
1334
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
@@ -1339,30 +1339,30 @@ function yt(e, t, n) {
1339
1339
  //#endregion
1340
1340
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isToday.js
1341
1341
  function bt(e, t) {
1342
- return Se(W(t?.in || e, e), xe(t?.in || e));
1342
+ return Se(U(t?.in || e, e), xe(t?.in || e));
1343
1343
  }
1344
1344
  //#endregion
1345
1345
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setHours.js
1346
1346
  function xt(e, t, n) {
1347
- let r = G(e, n?.in);
1347
+ let r = W(e, n?.in);
1348
1348
  return r.setHours(t), r;
1349
1349
  }
1350
1350
  //#endregion
1351
1351
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setMinutes.js
1352
1352
  function St(e, t, n) {
1353
- let r = G(e, n?.in);
1353
+ let r = W(e, n?.in);
1354
1354
  return r.setMinutes(t), r;
1355
1355
  }
1356
1356
  //#endregion
1357
1357
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setSeconds.js
1358
1358
  function Ct(e, t, n) {
1359
- let r = G(e, n?.in);
1359
+ let r = W(e, n?.in);
1360
1360
  return r.setSeconds(t), r;
1361
1361
  }
1362
1362
  //#endregion
1363
1363
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/subMonths.js
1364
1364
  function wt(e, t, n) {
1365
- return de(e, -t, n);
1365
+ return fe(e, -t, n);
1366
1366
  }
1367
1367
  //#endregion
1368
1368
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js
@@ -1822,10 +1822,10 @@ var Tt = {
1822
1822
  }
1823
1823
  };
1824
1824
  function jt({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", hoverColor: o, size: s = "md", disabled: c, style: l, tooltip: u, ...d }) {
1825
- let f = ee(), p = R(At, s, re.size), m = R(B.variant, i, re.variant), h = /* @__PURE__ */ _(e, {
1825
+ let f = ee(), p = L(At, s, z.size), m = L(R.variant, i, z.variant), h = /* @__PURE__ */ _(e, {
1826
1826
  style: {
1827
1827
  "--eds-btn-base-accent": `var(--color-eds-${a})`,
1828
- ...z.has(a) ? { "--eds-btn-solid-fg": "#fff" } : {},
1828
+ ...ie.has(a) ? { "--eds-btn-solid-fg": "#fff" } : {},
1829
1829
  ...o ? { "--eds-btn-hover-accent": `var(--color-eds-${o})` } : {},
1830
1830
  ...l
1831
1831
  },
@@ -1836,7 +1836,7 @@ function jt({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
1836
1836
  "aria-describedby": u ? f : void 0,
1837
1837
  title: u ? void 0 : n,
1838
1838
  "data-eds-component": "IconButton",
1839
- className: L("group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:opacity-50", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "[--eds-btn-accent:var(--eds-btn-base-accent)]", o && "hover:[--eds-btn-accent:var(--eds-btn-hover-accent)] focus-visible:[--eds-btn-accent:var(--eds-btn-hover-accent)]", o && i === "outline" && "hover:border-[color-mix(in_srgb,var(--eds-btn-accent)_90%,black)]", p.classes, m.classes, r),
1839
+ className: I("group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:opacity-50", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "[--eds-btn-accent:var(--eds-btn-base-accent)]", o && "hover:[--eds-btn-accent:var(--eds-btn-hover-accent)] focus-visible:[--eds-btn-accent:var(--eds-btn-hover-accent)]", o && i === "outline" && "hover:border-[color-mix(in_srgb,var(--eds-btn-accent)_90%,black)]", p.classes, m.classes, r),
1840
1840
  children: /* @__PURE__ */ _(t, {
1841
1841
  size: p.iconPx,
1842
1842
  "aria-hidden": !0
@@ -1868,8 +1868,8 @@ var Mt = [
1868
1868
  "Sáb"
1869
1869
  ];
1870
1870
  function Nt(e, t) {
1871
- let n = K(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
1872
- for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
1871
+ let n = G(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
1872
+ for (let e = n; e <= r; e = de(e, 1)) i.push(e);
1873
1873
  return i;
1874
1874
  }
1875
1875
  function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: i = 3, weekStartsOn: a = 0, onDayClick: o, onEventClick: l, renderEvent: u, showNavigation: d = !0, className: f }) {
@@ -1885,7 +1885,7 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1885
1885
  h || m(e), n?.(e);
1886
1886
  }
1887
1887
  return /* @__PURE__ */ v("div", {
1888
- className: L("flex h-full w-full flex-col", f),
1888
+ className: I("flex h-full w-full flex-col", f),
1889
1889
  "data-eds-component": "Calendar",
1890
1890
  children: [d && /* @__PURE__ */ v("div", {
1891
1891
  className: "mb-3 flex shrink-0 items-center justify-between",
@@ -1903,7 +1903,7 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1903
1903
  icon: c,
1904
1904
  label: "Próximo mês",
1905
1905
  size: "sm",
1906
- onClick: () => S(de(g, 1))
1906
+ onClick: () => S(fe(g, 1))
1907
1907
  })]
1908
1908
  })]
1909
1909
  }), /* @__PURE__ */ v("div", {
@@ -1911,7 +1911,7 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1911
1911
  children: [/* @__PURE__ */ _("div", {
1912
1912
  className: "grid shrink-0 grid-cols-7",
1913
1913
  children: y.map((e, t) => /* @__PURE__ */ _("div", {
1914
- className: L("border-t border-r border-b border-eds-neutral-disabled py-1.5 text-center text-base text-eds-neutral-main", t === 0 && "border-l"),
1914
+ className: I("border-t border-r border-b border-eds-neutral-disabled py-1.5 text-center text-base text-eds-neutral-main", t === 0 && "border-l"),
1915
1915
  children: e
1916
1916
  }, e))
1917
1917
  }), /* @__PURE__ */ _("div", {
@@ -1921,12 +1921,12 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1921
1921
  return /* @__PURE__ */ v("div", {
1922
1922
  "data-date": a,
1923
1923
  onClick: () => o?.(e),
1924
- className: L("flex flex-col gap-1 border-r border-b border-eds-neutral-disabled px-1.5 pt-1.5", t % 7 == 0 && "border-l", o && "cursor-pointer", n ? "bg-white" : "bg-eds-neutral-background"),
1924
+ className: I("flex flex-col gap-1 border-r border-b border-eds-neutral-disabled px-1.5 pt-1.5", t % 7 == 0 && "border-l", o && "cursor-pointer", n ? "bg-white" : "bg-eds-neutral-background"),
1925
1925
  children: [(() => {
1926
1926
  let e = {
1927
1927
  "aria-current": r ? "date" : void 0,
1928
1928
  "data-today": r || void 0,
1929
- className: L("shrink-0 self-center rounded-full text-sm", r ? "flex size-7 items-center justify-center bg-eds-blue-main text-white" : "px-1 py-0.5 text-eds-neutral-main")
1929
+ className: I("shrink-0 self-center rounded-full text-sm", r ? "flex size-7 items-center justify-center bg-eds-blue-main text-white" : "px-1 py-0.5 text-eds-neutral-main")
1930
1930
  };
1931
1931
  return o ? /* @__PURE__ */ _("button", {
1932
1932
  type: "button",
@@ -1975,49 +1975,49 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1975
1975
  function Ft({ className: e, ...t }) {
1976
1976
  return /* @__PURE__ */ _("div", {
1977
1977
  "data-eds-component": "Card",
1978
- className: L("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
1978
+ className: I("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
1979
1979
  ...t
1980
1980
  });
1981
1981
  }
1982
1982
  function It({ className: e, ...t }) {
1983
1983
  return /* @__PURE__ */ _("div", {
1984
1984
  "data-slot": "card-header",
1985
- className: L("grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]", e),
1985
+ className: I("grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]", e),
1986
1986
  ...t
1987
1987
  });
1988
1988
  }
1989
1989
  function Lt({ className: e, ...t }) {
1990
1990
  return /* @__PURE__ */ _("h3", {
1991
1991
  "data-slot": "card-title",
1992
- className: L("text-lg leading-none font-semibold text-eds-neutral-main", e),
1992
+ className: I("text-lg leading-none font-semibold text-eds-neutral-main", e),
1993
1993
  ...t
1994
1994
  });
1995
1995
  }
1996
1996
  function Rt({ className: e, ...t }) {
1997
1997
  return /* @__PURE__ */ _("p", {
1998
1998
  "data-slot": "card-description",
1999
- className: L("text-sm text-eds-neutral-elements", e),
1999
+ className: I("text-sm text-eds-neutral-elements", e),
2000
2000
  ...t
2001
2001
  });
2002
2002
  }
2003
2003
  function zt({ className: e, ...t }) {
2004
2004
  return /* @__PURE__ */ _("div", {
2005
2005
  "data-slot": "card-action",
2006
- className: L("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
2006
+ className: I("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
2007
2007
  ...t
2008
2008
  });
2009
2009
  }
2010
2010
  function Bt({ className: e, ...t }) {
2011
2011
  return /* @__PURE__ */ _("div", {
2012
2012
  "data-slot": "card-content",
2013
- className: L("px-6", e),
2013
+ className: I("px-6", e),
2014
2014
  ...t
2015
2015
  });
2016
2016
  }
2017
2017
  function Vt({ className: e, ...t }) {
2018
2018
  return /* @__PURE__ */ _("div", {
2019
2019
  "data-slot": "card-footer",
2020
- className: L("-mb-6 -mt-6 flex flex-col-reverse gap-2 rounded-b-eds-sm border-t border-eds-outline-border bg-eds-neutral-background px-6 py-4 sm:flex-row sm:justify-end", e),
2020
+ className: I("-mb-6 -mt-6 flex flex-col-reverse gap-2 rounded-b-eds-sm border-t border-eds-outline-border bg-eds-neutral-background px-6 py-4 sm:flex-row sm:justify-end", e),
2021
2021
  ...t
2022
2022
  });
2023
2023
  }
@@ -2038,14 +2038,14 @@ var Ht = Object.assign(Ft, {
2038
2038
  vertical: { classes: "w-24 flex-col has-data-[slot=attachment-content]:w-[7.5rem]" }
2039
2039
  };
2040
2040
  function Gt({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
2041
- let a = R(Ut, n, "default"), o = R(Wt, r, "horizontal");
2041
+ let a = L(Ut, n, "default"), o = L(Wt, r, "horizontal");
2042
2042
  return /* @__PURE__ */ _("div", {
2043
2043
  "data-eds-component": "Attachment",
2044
2044
  "data-slot": "attachment",
2045
2045
  "data-state": t,
2046
2046
  "data-size": n,
2047
2047
  "data-orientation": r,
2048
- className: L("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-eds-xs border border-eds-outline-border bg-white text-eds-neutral-main transition-colors", "focus-within:ring-1 focus-within:ring-eds-blue-main/40", "has-[>a,>button]:hover:bg-eds-blue-background/25", "data-[state=idle]:border-dashed data-[state=idle]:border-eds-blue-middle/55", "data-[state=error]:border-eds-red-main/35 data-[state=error]:bg-eds-red-background/20", "data-[state=uploading]:border-eds-blue-middle/45 data-[state=processing]:border-eds-blue-middle/45", a.classes, o.classes, e),
2048
+ className: I("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-eds-xs border border-eds-outline-border bg-white text-eds-neutral-main transition-colors", "focus-within:ring-1 focus-within:ring-eds-blue-main/40", "has-[>a,>button]:hover:bg-eds-blue-background/25", "data-[state=idle]:border-dashed data-[state=idle]:border-eds-blue-middle/55", "data-[state=error]:border-eds-red-main/35 data-[state=error]:bg-eds-red-background/20", "data-[state=uploading]:border-eds-blue-middle/45 data-[state=processing]:border-eds-blue-middle/45", a.classes, o.classes, e),
2049
2049
  ...i
2050
2050
  });
2051
2051
  }
@@ -2053,35 +2053,35 @@ function Kt({ className: e, variant: t = "icon", ...n }) {
2053
2053
  return /* @__PURE__ */ _("div", {
2054
2054
  "data-slot": "attachment-media",
2055
2055
  "data-variant": t,
2056
- className: L("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-eds-lil bg-eds-blue-background/45 text-eds-blue-main", "group-data-[orientation=vertical]/attachment:w-full", "group-data-[size=sm]/attachment:w-8", "group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md", "group-data-[state=error]/attachment:bg-eds-red-background/55 group-data-[state=error]/attachment:text-eds-red-dark", "group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:!size-6", "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", "group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6", "group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5", t === "image" && "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 [&_img]:aspect-square [&_img]:size-full [&_img]:object-cover", e),
2056
+ className: I("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-eds-lil bg-eds-blue-background/45 text-eds-blue-main", "group-data-[orientation=vertical]/attachment:w-full", "group-data-[size=sm]/attachment:w-8", "group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md", "group-data-[state=error]/attachment:bg-eds-red-background/55 group-data-[state=error]/attachment:text-eds-red-dark", "group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:!size-6", "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", "group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6", "group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5", t === "image" && "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 [&_img]:aspect-square [&_img]:size-full [&_img]:object-cover", e),
2057
2057
  ...n
2058
2058
  });
2059
2059
  }
2060
2060
  function qt({ className: e, ...t }) {
2061
2061
  return /* @__PURE__ */ _("div", {
2062
2062
  "data-slot": "attachment-content",
2063
- className: L("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
2063
+ className: I("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
2064
2064
  ...t
2065
2065
  });
2066
2066
  }
2067
2067
  function Jt({ className: e, ...t }) {
2068
2068
  return /* @__PURE__ */ _("span", {
2069
2069
  "data-slot": "attachment-title",
2070
- className: L("block max-w-full min-w-0 truncate font-medium text-eds-neutral-main", "group-data-[state=uploading]/attachment:animate-eds-shimmer group-data-[state=processing]/attachment:animate-eds-shimmer", "group-data-[state=uploading]/attachment:text-eds-blue-main group-data-[state=processing]/attachment:text-eds-blue-main", e),
2070
+ className: I("block max-w-full min-w-0 truncate font-medium text-eds-neutral-main", "group-data-[state=uploading]/attachment:animate-eds-shimmer group-data-[state=processing]/attachment:animate-eds-shimmer", "group-data-[state=uploading]/attachment:text-eds-blue-main group-data-[state=processing]/attachment:text-eds-blue-main", e),
2071
2071
  ...t
2072
2072
  });
2073
2073
  }
2074
2074
  function Yt({ className: e, ...t }) {
2075
2075
  return /* @__PURE__ */ _("span", {
2076
2076
  "data-slot": "attachment-description",
2077
- className: L("mt-0.5 block max-w-full min-w-0 truncate text-xs text-eds-neutral-elements", "group-data-[state=error]/attachment:text-eds-red-main/85", "group-data-[state=uploading]/attachment:text-eds-blue-middle group-data-[state=processing]/attachment:text-eds-blue-middle", e),
2077
+ className: I("mt-0.5 block max-w-full min-w-0 truncate text-xs text-eds-neutral-elements", "group-data-[state=error]/attachment:text-eds-red-main/85", "group-data-[state=uploading]/attachment:text-eds-blue-middle group-data-[state=processing]/attachment:text-eds-blue-middle", e),
2078
2078
  ...t
2079
2079
  });
2080
2080
  }
2081
2081
  function Xt({ className: e, ...t }) {
2082
2082
  return /* @__PURE__ */ _("div", {
2083
2083
  "data-slot": "attachment-actions",
2084
- className: L("relative z-20 flex shrink-0 items-center", "group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", e),
2084
+ className: I("relative z-20 flex shrink-0 items-center", "group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", e),
2085
2085
  ...t
2086
2086
  });
2087
2087
  }
@@ -2091,16 +2091,16 @@ function Zt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", clas
2091
2091
  variant: e,
2092
2092
  color: t,
2093
2093
  size: n,
2094
- className: L("relative z-20", r),
2094
+ className: I("relative z-20", r),
2095
2095
  ...i
2096
2096
  });
2097
2097
  }
2098
2098
  function Qt({ className: e, render: t, type: n, ...r }) {
2099
- return O({
2099
+ return ne({
2100
2100
  defaultTagName: "button",
2101
2101
  props: te({
2102
2102
  type: t ? n : n ?? "button",
2103
- className: L("absolute inset-0 z-10 cursor-pointer rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main/45", e)
2103
+ className: I("absolute inset-0 z-10 cursor-pointer rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main/45", e)
2104
2104
  }, r),
2105
2105
  render: t,
2106
2106
  state: { slot: "attachment-trigger" }
@@ -2110,7 +2110,7 @@ function $t({ className: e, ...t }) {
2110
2110
  return /* @__PURE__ */ _("div", {
2111
2111
  "data-eds-component": "AttachmentGroup",
2112
2112
  "data-slot": "attachment-group",
2113
- className: L("flex min-w-0 snap-x snap-mandatory scroll-px-1 gap-3 overflow-x-auto overscroll-x-contain py-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", "*:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", e),
2113
+ className: I("flex min-w-0 snap-x snap-mandatory scroll-px-1 gap-3 overflow-x-auto overscroll-x-contain py-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", "*:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", e),
2114
2114
  ...t
2115
2115
  });
2116
2116
  }
@@ -2124,13 +2124,13 @@ var en = Object.assign(Gt, {
2124
2124
  Action: Zt,
2125
2125
  Trigger: Qt,
2126
2126
  Group: $t
2127
- }), tn = L("relative flex size-[18px] shrink-0 items-center justify-center rounded-[4px] border border-eds-neutral-elements bg-white transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-brand focus-visible:ring-offset-1", "data-checked:border-eds-blue-main data-checked:bg-eds-blue-main", "data-indeterminate:border-eds-blue-main data-indeterminate:bg-eds-blue-main", "data-disabled:cursor-not-allowed data-disabled:border-eds-neutral-disabled data-disabled:bg-eds-neutral-background data-disabled:opacity-70");
2127
+ }), tn = I("relative flex size-[18px] shrink-0 items-center justify-center rounded-[4px] border border-eds-neutral-elements bg-white transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-brand focus-visible:ring-offset-1", "data-checked:border-eds-blue-main data-checked:bg-eds-blue-main", "data-indeterminate:border-eds-blue-main data-indeterminate:bg-eds-blue-main", "data-disabled:cursor-not-allowed data-disabled:border-eds-neutral-disabled data-disabled:bg-eds-neutral-background data-disabled:opacity-70");
2128
2128
  function nn({ className: e, ...t }) {
2129
- return /* @__PURE__ */ _(k.Root, {
2129
+ return /* @__PURE__ */ _(O.Root, {
2130
2130
  "data-eds-component": "Checkbox",
2131
- className: L(tn, e),
2131
+ className: I(tn, e),
2132
2132
  ...t,
2133
- children: /* @__PURE__ */ _(k.Indicator, {
2133
+ children: /* @__PURE__ */ _(O.Indicator, {
2134
2134
  keepMounted: !0,
2135
2135
  className: "flex items-center justify-center text-white data-unchecked:invisible",
2136
2136
  render: (e, t) => /* @__PURE__ */ _("span", {
@@ -2149,10 +2149,10 @@ function nn({ className: e, ...t }) {
2149
2149
  });
2150
2150
  }
2151
2151
  function rn({ className: e, label: t, disabled: n, ...r }) {
2152
- return t ? /* @__PURE__ */ _(ne.Root, {
2153
- className: L("inline-flex", e),
2154
- children: /* @__PURE__ */ v(ne.Label, {
2155
- className: L("inline-flex min-h-7 cursor-pointer items-center gap-[9px] rounded-md pl-2 text-base leading-6 text-eds-default", n && "cursor-not-allowed opacity-70"),
2152
+ return t ? /* @__PURE__ */ _(re.Root, {
2153
+ className: I("inline-flex", e),
2154
+ children: /* @__PURE__ */ v(re.Label, {
2155
+ className: I("inline-flex min-h-7 cursor-pointer items-center gap-[9px] rounded-md pl-2 text-base leading-6 text-eds-default", n && "cursor-not-allowed opacity-70"),
2156
2156
  children: [/* @__PURE__ */ _(nn, {
2157
2157
  disabled: n,
2158
2158
  ...r
@@ -2173,6 +2173,7 @@ var on = {
2173
2173
  sm: {
2174
2174
  control: "h-9 px-3",
2175
2175
  trigger: "h-9 px-3",
2176
+ triggerMultiple: "min-h-9 px-3 py-1",
2176
2177
  text: "text-sm",
2177
2178
  left: "left-3",
2178
2179
  icon: "size-6",
@@ -2181,6 +2182,7 @@ var on = {
2181
2182
  md: {
2182
2183
  control: "h-10 px-3.5",
2183
2184
  trigger: "h-10 px-3.5",
2185
+ triggerMultiple: "min-h-10 px-3.5 py-1.5",
2184
2186
  text: "text-base",
2185
2187
  left: "left-3.5",
2186
2188
  icon: "size-7",
@@ -2189,6 +2191,7 @@ var on = {
2189
2191
  lg: {
2190
2192
  control: "h-12 px-4",
2191
2193
  trigger: "h-12 px-4",
2194
+ triggerMultiple: "min-h-12 px-4 py-2",
2192
2195
  text: "text-base",
2193
2196
  left: "left-4",
2194
2197
  icon: "size-8",
@@ -2209,133 +2212,172 @@ var Sn = {
2209
2212
  default: "",
2210
2213
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2211
2214
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2212
- }, Cn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md text-eds-neutral-elements hover:not-data-disabled:bg-eds-neutral-elements/8 hover:not-data-disabled:text-eds-neutral-main focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", wn = A.Root;
2213
- function Tn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", emptyMessage: p = "Nenhum resultado.", readOnly: h = !1, id: g, name: y, value: b, defaultValue: x, onValueChange: S, getItemLabel: C, getItemValue: w, renderItem: T, className: E, inputProps: D }) {
2214
- let te = ee(), O = g ?? te, k = l === "invalid", ne = k || !!d, j = on[u], M = an(t), N = M === "floating", P = (e) => C ? C(e) : e.label ?? "", F = (e) => w ? w(e) : e.value ?? P(e), I = (e) => {
2215
- S?.(e);
2216
- }, R = C ? (e) => C(e) : void 0, z = w ? (e) => w(e) : void 0;
2215
+ }, Cn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md text-eds-neutral-elements hover:not-data-disabled:bg-eds-neutral-elements/8 hover:not-data-disabled:text-eds-neutral-main focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", wn = "inline-flex h-6 max-w-full items-center gap-1 rounded-eds-lil bg-eds-blue-background/45 py-0 pr-1 pl-2 text-xs text-eds-blue-main", Tn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded p-1 text-eds-blue-main hover:not-data-disabled:bg-eds-blue-main/15 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", En = k.Root;
2216
+ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", emptyMessage: p = "Nenhum resultado.", readOnly: h = !1, id: g, name: y, multiple: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, getRemoveItemLabel: E, renderItem: D, renderChip: te, className: ne, inputProps: O }) {
2217
+ let re = ee(), A = g ?? re, j = l === "invalid", M = j || !!d, N = on[u], P = an(t), F = P === "floating", L = (e) => w ? w(e) : e.label ?? "", ie = (e) => T ? T(e) : e.value ?? L(e), R = (e) => {
2218
+ C?.(e);
2219
+ }, z = w ? (e) => w(e) : void 0, ae = T ? (e) => T(e) : void 0, B = /* @__PURE__ */ v("div", {
2220
+ className: "inline-flex shrink-0 items-center",
2221
+ children: [/* @__PURE__ */ _(k.Clear, {
2222
+ className: I(Cn, N.icon),
2223
+ "aria-label": "Limpar seleção",
2224
+ "data-disabled": i || void 0,
2225
+ children: /* @__PURE__ */ _(m, {
2226
+ className: "size-4 shrink-0",
2227
+ strokeWidth: 2,
2228
+ "aria-hidden": !0
2229
+ })
2230
+ }), /* @__PURE__ */ _(k.Trigger, {
2231
+ className: I(Cn, N.icon),
2232
+ "aria-label": "Abrir lista",
2233
+ "data-disabled": i || void 0,
2234
+ children: /* @__PURE__ */ _(o, {
2235
+ className: "size-4 shrink-0",
2236
+ strokeWidth: 2,
2237
+ "aria-hidden": !0
2238
+ })
2239
+ })]
2240
+ }), oe = F ? /* @__PURE__ */ v("span", {
2241
+ className: xn(N.left),
2242
+ children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
2243
+ className: "text-eds-red-main",
2244
+ "aria-hidden": "true",
2245
+ children: "*"
2246
+ })]
2247
+ }) : null;
2217
2248
  return /* @__PURE__ */ v("div", {
2218
- className: L(cn, E),
2249
+ className: I(cn, ne),
2219
2250
  "data-fluid": c || void 0,
2220
2251
  "data-eds-component": "Combobox",
2221
- "data-label-variant": M,
2252
+ "data-label-variant": P,
2222
2253
  children: [
2223
2254
  /* @__PURE__ */ _("div", {
2224
2255
  className: ln,
2225
2256
  children: /* @__PURE__ */ v("label", {
2226
- className: L(un, N && "sr-only", !N && "font-medium"),
2227
- htmlFor: O,
2257
+ className: I(un, F && "sr-only", !F && "font-medium"),
2258
+ htmlFor: A,
2228
2259
  children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
2229
2260
  className: "text-eds-red-main",
2230
2261
  children: "*"
2231
2262
  })]
2232
2263
  })
2233
2264
  }),
2234
- /* @__PURE__ */ v(wn, {
2265
+ /* @__PURE__ */ v(En, {
2235
2266
  items: n,
2236
2267
  name: y,
2268
+ multiple: b,
2237
2269
  disabled: i,
2238
2270
  required: s,
2239
- onValueChange: S ? I : void 0,
2240
- ...b === void 0 ? x === void 0 ? {} : { defaultValue: x } : { value: b },
2241
- itemToStringLabel: R,
2242
- itemToStringValue: z,
2243
- children: [/* @__PURE__ */ v(A.InputGroup, {
2244
- className: L(mn, "box-border py-0", j.trigger, Sn[l]),
2271
+ onValueChange: C ? R : void 0,
2272
+ ...x === void 0 ? S === void 0 ? {} : { defaultValue: S } : { value: x },
2273
+ itemToStringLabel: z,
2274
+ itemToStringValue: ae,
2275
+ children: [b ? /* @__PURE__ */ v(k.Chips, {
2276
+ className: I(mn, "h-auto flex-wrap content-start gap-1.5", N.triggerMultiple, Sn[l]),
2245
2277
  "data-state": l,
2246
2278
  "data-size": u,
2247
2279
  "data-disabled": i || void 0,
2248
- "data-floating": N || void 0,
2280
+ "data-floating": F || void 0,
2249
2281
  children: [
2250
- N && /* @__PURE__ */ v("span", {
2251
- className: xn(j.left),
2252
- children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
2253
- className: "text-eds-red-main",
2254
- "aria-hidden": "true",
2255
- children: "*"
2282
+ oe,
2283
+ /* @__PURE__ */ _(k.Value, { children: (e) => e.map((e) => /* @__PURE__ */ v(k.Chip, {
2284
+ className: wn,
2285
+ children: [/* @__PURE__ */ _("span", {
2286
+ className: "truncate",
2287
+ children: te ? te(e) : L(e)
2288
+ }), /* @__PURE__ */ _(k.ChipRemove, {
2289
+ className: Tn,
2290
+ "aria-label": E ? E(e) : `Remover ${L(e)}`,
2291
+ children: /* @__PURE__ */ _(m, {
2292
+ size: 10,
2293
+ strokeWidth: 2.5,
2294
+ "aria-hidden": !0
2295
+ })
2256
2296
  })]
2257
- }),
2258
- /* @__PURE__ */ _(A.Input, {
2259
- ...D,
2260
- id: O,
2261
- className: L("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", fn, j.text),
2297
+ }, ie(e))) }),
2298
+ /* @__PURE__ */ v("div", {
2299
+ className: "flex min-w-[120px] flex-1 items-center gap-1",
2300
+ children: [/* @__PURE__ */ _(k.Input, {
2301
+ ...O,
2302
+ id: A,
2303
+ className: I("min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", fn, N.text),
2304
+ placeholder: r,
2305
+ disabled: i,
2306
+ readOnly: h,
2307
+ required: s,
2308
+ "aria-invalid": j || void 0,
2309
+ "aria-describedby": M ? `${A}-desc` : void 0
2310
+ }), B]
2311
+ })
2312
+ ]
2313
+ }) : /* @__PURE__ */ v(k.InputGroup, {
2314
+ className: I(mn, "box-border py-0", N.trigger, Sn[l]),
2315
+ "data-state": l,
2316
+ "data-size": u,
2317
+ "data-disabled": i || void 0,
2318
+ "data-floating": F || void 0,
2319
+ children: [
2320
+ oe,
2321
+ /* @__PURE__ */ _(k.Input, {
2322
+ ...O,
2323
+ id: A,
2324
+ className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", fn, N.text),
2262
2325
  placeholder: r,
2263
2326
  disabled: i,
2264
2327
  readOnly: h,
2265
2328
  required: s,
2266
- "aria-invalid": k || void 0,
2267
- "aria-describedby": ne ? `${O}-desc` : void 0
2329
+ "aria-invalid": j || void 0,
2330
+ "aria-describedby": M ? `${A}-desc` : void 0
2268
2331
  }),
2269
- /* @__PURE__ */ v("div", {
2270
- className: "inline-flex shrink-0 items-center",
2271
- children: [/* @__PURE__ */ _(A.Clear, {
2272
- className: L(Cn, j.icon),
2273
- "aria-label": "Limpar seleção",
2274
- "data-disabled": i || void 0,
2275
- children: /* @__PURE__ */ _(m, {
2276
- className: "size-4 shrink-0",
2277
- strokeWidth: 2,
2278
- "aria-hidden": !0
2279
- })
2280
- }), /* @__PURE__ */ _(A.Trigger, {
2281
- className: L(Cn, j.icon),
2282
- "aria-label": "Abrir lista",
2283
- "data-disabled": i || void 0,
2284
- children: /* @__PURE__ */ _(o, {
2285
- className: "size-4 shrink-0",
2286
- strokeWidth: 2,
2287
- "aria-hidden": !0
2288
- })
2289
- })]
2290
- })
2332
+ B
2291
2333
  ]
2292
- }), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
2334
+ }), /* @__PURE__ */ _(k.Portal, { children: /* @__PURE__ */ _(k.Positioner, {
2293
2335
  className: yn,
2294
2336
  style: bn,
2295
2337
  positionMethod: "fixed",
2296
2338
  sideOffset: 4,
2297
- children: /* @__PURE__ */ v(A.Popup, {
2339
+ children: /* @__PURE__ */ v(k.Popup, {
2298
2340
  className: hn,
2299
- children: [/* @__PURE__ */ _(A.Empty, { children: /* @__PURE__ */ _("div", {
2341
+ children: [/* @__PURE__ */ _(k.Empty, { children: /* @__PURE__ */ _("div", {
2300
2342
  className: "px-3 py-2.5 text-sm text-eds-neutral-elements",
2301
2343
  children: p
2302
- }) }), /* @__PURE__ */ _(A.List, {
2344
+ }) }), /* @__PURE__ */ _(k.List, {
2303
2345
  className: gn,
2304
- children: (e) => /* @__PURE__ */ v(A.Item, {
2346
+ children: (e) => /* @__PURE__ */ v(k.Item, {
2305
2347
  value: e,
2306
2348
  className: _n,
2307
- children: [/* @__PURE__ */ _(A.ItemIndicator, {
2349
+ children: [/* @__PURE__ */ _(k.ItemIndicator, {
2308
2350
  className: vn,
2309
2351
  children: /* @__PURE__ */ _(a, {
2310
2352
  size: 14,
2311
2353
  strokeWidth: 2.5,
2312
2354
  "aria-hidden": !0
2313
2355
  })
2314
- }), T ? T(e) : /* @__PURE__ */ _("span", {
2356
+ }), D ? D(e) : /* @__PURE__ */ _("span", {
2315
2357
  className: "block min-w-0 flex-1 text-left",
2316
- children: P(e)
2358
+ children: L(e)
2317
2359
  })]
2318
- }, F(e))
2360
+ }, ie(e))
2319
2361
  })]
2320
2362
  })
2321
2363
  }) })]
2322
2364
  }),
2323
- ne && /* @__PURE__ */ _("div", {
2324
- id: `${O}-desc`,
2365
+ M && /* @__PURE__ */ _("div", {
2366
+ id: `${A}-desc`,
2325
2367
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2326
- "data-state": k ? "invalid" : void 0,
2327
- children: k ? f : d
2368
+ "data-state": j ? "invalid" : void 0,
2369
+ children: j ? f : d
2328
2370
  })
2329
2371
  ]
2330
2372
  });
2331
2373
  }
2332
2374
  //#endregion
2333
2375
  //#region src/components/DatePicker/DatePicker.tsx
2334
- var En = {
2376
+ var On = {
2335
2377
  default: "",
2336
2378
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2337
2379
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2338
- }, Dn = [
2380
+ }, kn = [
2339
2381
  "D",
2340
2382
  "S",
2341
2383
  "T",
@@ -2344,34 +2386,34 @@ var En = {
2344
2386
  "S",
2345
2387
  "S"
2346
2388
  ];
2347
- function On(e, t) {
2348
- let n = K(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
2349
- for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
2389
+ function An(e, t) {
2390
+ let n = G(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
2391
+ for (let e = n; e <= r; e = de(e, 1)) i.push(e);
2350
2392
  return i;
2351
2393
  }
2352
- function kn(e) {
2394
+ function jn(e) {
2353
2395
  return e.mode === "range";
2354
2396
  }
2355
- function An(e) {
2356
- let { label: t = "Label", labelVariant: n, disabled: r = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: m = 0, dateFormat: h = "dd/MM/yyyy", className: g } = e, y = kn(e), b = e.placeholder ?? (y ? "Selecione um período" : "Selecione uma data"), x = ee(), S = p ?? x, C = l === "invalid", T = C || d, D = on[u], te = u === "lg" ? "size-5" : "size-4", O = an(n), k = O === "floating", ne = kn(e) ? {
2397
+ function Mn(e) {
2398
+ let { label: t = "Label", labelVariant: n, disabled: r = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: m = 0, dateFormat: h = "dd/MM/yyyy", className: g } = e, y = jn(e), b = e.placeholder ?? (y ? "Selecione um período" : "Selecione uma data"), x = ee(), S = p ?? x, C = l === "invalid", T = C || d, D = on[u], te = u === "lg" ? "size-5" : "size-4", ne = an(n), O = ne === "floating", re = jn(e) ? {
2357
2399
  from: e.defaultValue?.from ?? null,
2358
2400
  to: e.defaultValue?.to ?? null
2359
2401
  } : {
2360
2402
  from: e.defaultValue ?? null,
2361
2403
  to: null
2362
- }, A = kn(e) ? e.value === void 0 ? void 0 : {
2404
+ }, k = jn(e) ? e.value === void 0 ? void 0 : {
2363
2405
  from: e.value?.from ?? null,
2364
2406
  to: e.value?.to ?? null
2365
2407
  } : e.value === void 0 ? void 0 : {
2366
2408
  from: e.value ?? null,
2367
2409
  to: null
2368
- }, M = A !== void 0, [N, P] = E(ne), F = M ? A : N, I = kn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, R = kn(e) ? e.presets : void 0, [z, B] = E(!1), [re, V] = E(() => F.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), H = w(() => [...Dn.slice(m), ...Dn.slice(0, m)], [m]), ie = w(() => Array.from({ length: I }, (e, t) => de(re, t)), [re, I]);
2369
- function U(t) {
2370
- r || (t && V(F.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), B(t));
2410
+ }, j = k !== void 0, [M, N] = E(re), P = j ? k : M, F = jn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, L = jn(e) ? e.presets : void 0, [ie, R] = E(!1), [z, ae] = E(() => P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), B = w(() => [...kn.slice(m), ...kn.slice(0, m)], [m]), oe = w(() => Array.from({ length: F }, (e, t) => fe(z, t)), [z, F]);
2411
+ function se(t) {
2412
+ r || (t && ae(P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), R(t));
2371
2413
  }
2372
- function ae(t) {
2373
- if (kn(e)) {
2374
- let n = F, r;
2414
+ function V(t) {
2415
+ if (jn(e)) {
2416
+ let n = P, r;
2375
2417
  r = !n.from || n.to ? {
2376
2418
  from: t,
2377
2419
  to: null
@@ -2381,41 +2423,41 @@ function An(e) {
2381
2423
  } : {
2382
2424
  from: n.from,
2383
2425
  to: t
2384
- }, M || P(r), r.from && e.onValueChange?.({
2426
+ }, j || N(r), r.from && e.onValueChange?.({
2385
2427
  from: r.from,
2386
2428
  to: r.to ?? void 0
2387
- }), r.from && r.to && B(!1);
2429
+ }), r.from && r.to && R(!1);
2388
2430
  return;
2389
2431
  }
2390
- M || P({
2432
+ j || N({
2391
2433
  from: t,
2392
2434
  to: null
2393
- }), e.onValueChange?.(t), B(!1);
2435
+ }), e.onValueChange?.(t), R(!1);
2394
2436
  }
2395
- function oe(t) {
2437
+ function ce(t) {
2396
2438
  let n = {
2397
2439
  from: t.from,
2398
2440
  to: t.to ?? null
2399
2441
  };
2400
- M || P(n), kn(e) && e.onValueChange?.({
2442
+ j || N(n), jn(e) && e.onValueChange?.({
2401
2443
  from: t.from,
2402
2444
  to: t.to ?? void 0
2403
- }), V(t.from);
2445
+ }), ae(t.from);
2404
2446
  }
2405
- function se(e) {
2406
- return !F.from || !F.to || !e.range.to ? !1 : Se(F.from, e.range.from) && Se(F.to, e.range.to);
2447
+ function H(e) {
2448
+ return !P.from || !P.to || !e.range.to ? !1 : Se(P.from, e.range.from) && Se(P.to, e.range.to);
2407
2449
  }
2408
- let ce = F.from ? !y || !F.to ? J(F.from, h) : `${J(F.from, h)} - ${J(F.to, h)}` : b;
2450
+ let le = P.from ? !y || !P.to ? J(P.from, h) : `${J(P.from, h)} - ${J(P.to, h)}` : b;
2409
2451
  return /* @__PURE__ */ v("div", {
2410
- className: L(cn, g),
2452
+ className: I(cn, g),
2411
2453
  "data-fluid": o || void 0,
2412
2454
  "data-eds-component": "DatePicker",
2413
- "data-label-variant": O,
2455
+ "data-label-variant": ne,
2414
2456
  children: [
2415
2457
  /* @__PURE__ */ _("div", {
2416
2458
  className: ln,
2417
2459
  children: /* @__PURE__ */ v("label", {
2418
- className: L(un, k && "sr-only", !k && "font-medium"),
2460
+ className: I(un, O && "sr-only", !O && "font-medium"),
2419
2461
  htmlFor: S,
2420
2462
  children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
2421
2463
  className: "text-eds-red-main",
@@ -2423,19 +2465,19 @@ function An(e) {
2423
2465
  })]
2424
2466
  })
2425
2467
  }),
2426
- /* @__PURE__ */ v(j.Root, {
2427
- open: z,
2428
- onOpenChange: U,
2429
- children: [/* @__PURE__ */ v(j.Trigger, {
2468
+ /* @__PURE__ */ v(A.Root, {
2469
+ open: ie,
2470
+ onOpenChange: se,
2471
+ children: [/* @__PURE__ */ v(A.Trigger, {
2430
2472
  id: S,
2431
2473
  disabled: r,
2432
- className: L("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", D.trigger, En[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2474
+ className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", D.trigger, On[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2433
2475
  "data-state": l,
2434
2476
  "data-size": u,
2435
2477
  "data-disabled": r || void 0,
2436
2478
  "aria-describedby": T ? `${S}-desc` : void 0,
2437
2479
  children: [
2438
- k && /* @__PURE__ */ v("span", {
2480
+ O && /* @__PURE__ */ v("span", {
2439
2481
  className: xn(D.left),
2440
2482
  children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
2441
2483
  className: "text-eds-red-main",
@@ -2444,37 +2486,37 @@ function An(e) {
2444
2486
  })]
2445
2487
  }),
2446
2488
  /* @__PURE__ */ _(i, {
2447
- className: L("shrink-0 text-eds-neutral-elements", te),
2489
+ className: I("shrink-0 text-eds-neutral-elements", te),
2448
2490
  "aria-hidden": !0
2449
2491
  }),
2450
2492
  /* @__PURE__ */ _("span", {
2451
- className: L("min-w-0 flex-1 truncate font-inherit", D.text, F.from ? "text-eds-neutral-main" : dn),
2452
- children: ce
2493
+ className: I("min-w-0 flex-1 truncate font-inherit", D.text, P.from ? "text-eds-neutral-main" : dn),
2494
+ children: le
2453
2495
  })
2454
2496
  ]
2455
- }), /* @__PURE__ */ _(j.Portal, { children: /* @__PURE__ */ _(j.Positioner, {
2497
+ }), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
2456
2498
  className: yn,
2457
2499
  style: bn,
2458
2500
  positionMethod: "fixed",
2459
2501
  sideOffset: 4,
2460
2502
  align: "start",
2461
- children: /* @__PURE__ */ v(j.Popup, {
2503
+ children: /* @__PURE__ */ v(A.Popup, {
2462
2504
  "data-eds-component": "DatePicker",
2463
2505
  className: "flex overflow-hidden rounded-eds-xs border border-eds-outline-border bg-white shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)] transition-all data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
2464
- children: [R && R.length > 0 && /* @__PURE__ */ _("div", {
2506
+ children: [L && L.length > 0 && /* @__PURE__ */ _("div", {
2465
2507
  className: "flex w-40 shrink-0 flex-col gap-0.5 border-r border-eds-outline-border p-2 text-sm",
2466
- children: R.map((e) => /* @__PURE__ */ _("button", {
2508
+ children: L.map((e) => /* @__PURE__ */ _("button", {
2467
2509
  type: "button",
2468
- onClick: () => oe(e.range),
2469
- className: L("rounded-md px-3 py-1.5 text-left whitespace-nowrap", se(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2510
+ onClick: () => ce(e.range),
2511
+ className: I("rounded-md px-3 py-1.5 text-left whitespace-nowrap", H(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2470
2512
  children: e.label
2471
2513
  }, e.label))
2472
2514
  }), /* @__PURE__ */ _("div", {
2473
2515
  className: "flex",
2474
- children: ie.map((e, t) => {
2475
- let n = t === 0, r = t === ie.length - 1, i = On(e, m);
2516
+ children: oe.map((e, t) => {
2517
+ let n = t === 0, r = t === oe.length - 1, i = An(e, m);
2476
2518
  return /* @__PURE__ */ v("div", {
2477
- className: L("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
2519
+ className: I("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
2478
2520
  children: [/* @__PURE__ */ v("div", {
2479
2521
  className: "flex items-center gap-2.5 p-4",
2480
2522
  children: [
@@ -2482,7 +2524,7 @@ function An(e) {
2482
2524
  icon: s,
2483
2525
  label: "Mês anterior",
2484
2526
  size: "sm",
2485
- onClick: () => V((e) => wt(e, 1))
2527
+ onClick: () => ae((e) => wt(e, 1))
2486
2528
  }) : /* @__PURE__ */ _("span", {
2487
2529
  className: "size-8 shrink-0",
2488
2530
  "aria-hidden": !0
@@ -2495,7 +2537,7 @@ function An(e) {
2495
2537
  icon: c,
2496
2538
  label: "Próximo mês",
2497
2539
  size: "sm",
2498
- onClick: () => V((e) => de(e, 1))
2540
+ onClick: () => ae((e) => fe(e, 1))
2499
2541
  }) : /* @__PURE__ */ _("span", {
2500
2542
  className: "size-8 shrink-0",
2501
2543
  "aria-hidden": !0
@@ -2503,19 +2545,19 @@ function An(e) {
2503
2545
  ]
2504
2546
  }), /* @__PURE__ */ v("div", {
2505
2547
  className: "grid grid-cols-7 px-4 pb-4",
2506
- children: [H.map((e, t) => /* @__PURE__ */ _("span", {
2548
+ children: [B.map((e, t) => /* @__PURE__ */ _("span", {
2507
2549
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2508
2550
  children: e
2509
2551
  }, `${e}-${t}`)), i.map((t) => {
2510
- let n = yt(t, e), r = bt(t), i = y && F.from ? Se(t, F.from) : !1, a = y && F.to ? Se(t, F.to) : !1, o = !!(y && F.from && F.to && !Se(F.from, F.to)), s = o && F.from && F.to ? _t(t, F.from) && vt(t, F.to) : !1, c = y ? i || a : F.from ? Se(t, F.from) : !1;
2552
+ let n = yt(t, e), r = bt(t), i = y && P.from ? Se(t, P.from) : !1, a = y && P.to ? Se(t, P.to) : !1, o = !!(y && P.from && P.to && !Se(P.from, P.to)), s = o && P.from && P.to ? _t(t, P.from) && vt(t, P.to) : !1, c = y ? i || a : P.from ? Se(t, P.from) : !1;
2511
2553
  return /* @__PURE__ */ _("div", {
2512
- className: L("flex items-center justify-center py-0.5", o && (s || i || a) && "bg-eds-blue-main/10", o && i && "rounded-l-full", o && a && "rounded-r-full"),
2554
+ className: I("flex items-center justify-center py-0.5", o && (s || i || a) && "bg-eds-blue-main/10", o && i && "rounded-l-full", o && a && "rounded-r-full"),
2513
2555
  children: /* @__PURE__ */ _("button", {
2514
2556
  type: "button",
2515
- onClick: () => ae(t),
2557
+ onClick: () => V(t),
2516
2558
  "data-selected": c || void 0,
2517
2559
  "data-today": r || void 0,
2518
- className: L("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", c ? "bg-eds-blue-main text-white" : n ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !c && r && "ring-1 ring-inset ring-eds-blue-main"),
2560
+ className: I("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", c ? "bg-eds-blue-main text-white" : n ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !c && r && "ring-1 ring-inset ring-eds-blue-main"),
2519
2561
  children: J(t, "d")
2520
2562
  })
2521
2563
  }, t.toISOString());
@@ -2537,12 +2579,150 @@ function An(e) {
2537
2579
  });
2538
2580
  }
2539
2581
  //#endregion
2582
+ //#region src/components/DateTimePicker/AnalogClock.tsx
2583
+ var Nn = 220, Pn = Nn / 2, Fn = 92, In = 64, Ln = 30;
2584
+ function Rn(e, t) {
2585
+ let n = Math.atan2(t - Pn, e - Pn) + Math.PI / 2;
2586
+ return n < 0 ? n + Math.PI * 2 : n;
2587
+ }
2588
+ function zn(e, t) {
2589
+ let n = Rn(e, t), r = Math.round(n / (Math.PI * 2) * 12) % 12, i = r === 0 ? 12 : r;
2590
+ return Math.hypot(e - Pn, t - Pn) < 156 / 2 ? i === 12 ? 0 : i + 12 : i;
2591
+ }
2592
+ function Bn(e, t, n) {
2593
+ let r = n > 0 ? n : 1, i = Rn(e, t) / (Math.PI * 2) * 60, a = Math.round(i / r) * r;
2594
+ return a >= 60 ? 0 : a;
2595
+ }
2596
+ function Vn(e, t) {
2597
+ let n = e / 12 * Math.PI * 2 - Math.PI / 2;
2598
+ return {
2599
+ x: Math.round(Math.cos(n) * t),
2600
+ y: Math.round(Math.sin(n) * t)
2601
+ };
2602
+ }
2603
+ function Hn(e, t) {
2604
+ return e === "hours" ? t % 12 : t / 5;
2605
+ }
2606
+ function Un(e, t) {
2607
+ let n = e === "hours" && (t === 0 || t > 12);
2608
+ return Vn(Hn(e, t), n ? In : Fn);
2609
+ }
2610
+ function Wn(e, t) {
2611
+ return (e === "hours" ? t % 12 / 12 * Math.PI * 2 - Math.PI / 2 : t / 60 * Math.PI * 2 - Math.PI / 2) - Math.PI / 2;
2612
+ }
2613
+ var Gn = Array.from({ length: 24 }, (e, t) => t), Kn = Array.from({ length: 12 }, (e, t) => t * 5);
2614
+ function qn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2615
+ let i = T(null), a = T(!1);
2616
+ function o(r, a) {
2617
+ let o = i.current?.getBoundingClientRect();
2618
+ if (!o) return t;
2619
+ let s = r - o.left, c = a - o.top;
2620
+ return e === "hours" ? zn(s, c) : Bn(s, c, n);
2621
+ }
2622
+ function s(e) {
2623
+ e.button > 0 || (a.current = !0, e.currentTarget.setPointerCapture(e.pointerId), r(o(e.clientX, e.clientY), !1));
2624
+ }
2625
+ function c(e) {
2626
+ a.current && r(o(e.clientX, e.clientY), !1);
2627
+ }
2628
+ function l(e) {
2629
+ a.current && (a.current = !1, r(o(e.clientX, e.clientY), !0));
2630
+ }
2631
+ function u() {
2632
+ a.current = !1;
2633
+ }
2634
+ function d(i) {
2635
+ let a = e === "hours" ? 23 : 59, o = e === "hours" ? 1 : n, s = (e) => (e % (a + 1) + (a + 1)) % (a + 1);
2636
+ switch (i.key) {
2637
+ case "ArrowUp":
2638
+ case "ArrowRight":
2639
+ r(s(t + o), !1), i.preventDefault();
2640
+ break;
2641
+ case "ArrowDown":
2642
+ case "ArrowLeft":
2643
+ r(s(t - o), !1), i.preventDefault();
2644
+ break;
2645
+ case "Home":
2646
+ r(0, !1), i.preventDefault();
2647
+ break;
2648
+ case "End":
2649
+ r(a, !1), i.preventDefault();
2650
+ break;
2651
+ case "Enter":
2652
+ case " ":
2653
+ r(t, !0), i.preventDefault();
2654
+ break;
2655
+ default: break;
2656
+ }
2657
+ }
2658
+ let f = e === "hours" ? Gn : Kn;
2659
+ return /* @__PURE__ */ v("div", {
2660
+ className: "relative shrink-0 select-none rounded-full bg-eds-neutral-background",
2661
+ style: {
2662
+ width: Nn,
2663
+ height: Nn
2664
+ },
2665
+ children: [
2666
+ /* @__PURE__ */ _("div", {
2667
+ ref: i,
2668
+ role: "slider",
2669
+ tabIndex: 0,
2670
+ "aria-valuemin": 0,
2671
+ "aria-valuemax": e === "hours" ? 23 : 59,
2672
+ "aria-valuenow": t,
2673
+ "aria-label": e === "hours" ? "Hora" : "Minuto",
2674
+ className: "absolute inset-0 cursor-pointer touch-none rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2",
2675
+ onPointerDown: s,
2676
+ onPointerMove: c,
2677
+ onPointerUp: l,
2678
+ onPointerCancel: u,
2679
+ onLostPointerCapture: u,
2680
+ onKeyDown: d
2681
+ }),
2682
+ /* @__PURE__ */ _("div", {
2683
+ className: "pointer-events-none absolute bg-eds-blue-main",
2684
+ style: {
2685
+ width: 2,
2686
+ height: e === "hours" && (t === 0 || t > 12) ? In : Fn,
2687
+ left: Pn,
2688
+ top: Pn,
2689
+ transformOrigin: "top",
2690
+ transform: `rotate(${Wn(e, t)}rad)`
2691
+ }
2692
+ }),
2693
+ /* @__PURE__ */ _("div", {
2694
+ className: "pointer-events-none absolute size-1.5 rounded-full bg-eds-blue-main",
2695
+ style: {
2696
+ left: Pn - 3,
2697
+ top: Pn - 3
2698
+ }
2699
+ }),
2700
+ f.map((n) => {
2701
+ let r = e === "hours" && (n === 0 || n > 12), { x: i, y: a } = Un(e, n), o = t === n, s = e === "hours" ? n === 0 ? "00" : String(n) : String(n).padStart(2, "0");
2702
+ return /* @__PURE__ */ _("button", {
2703
+ type: "button",
2704
+ tabIndex: -1,
2705
+ "aria-hidden": "true",
2706
+ className: I("pointer-events-none absolute flex items-center justify-center rounded-full text-sm tabular-nums", o ? "bg-eds-blue-main text-white" : "text-eds-neutral-main", r && !o && "text-xs text-eds-neutral-elements"),
2707
+ style: {
2708
+ width: Ln,
2709
+ height: Ln,
2710
+ left: Pn + i - Ln / 2,
2711
+ top: Pn + a - Ln / 2
2712
+ },
2713
+ children: s
2714
+ }, n);
2715
+ })
2716
+ ]
2717
+ });
2718
+ }
2719
+ //#endregion
2540
2720
  //#region src/components/DateTimePicker/DateTimePicker.tsx
2541
- var jn = {
2721
+ var Jn = {
2542
2722
  default: "",
2543
2723
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2544
2724
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2545
- }, Mn = [
2725
+ }, Yn = [
2546
2726
  "D",
2547
2727
  "S",
2548
2728
  "T",
@@ -2551,74 +2731,74 @@ var jn = {
2551
2731
  "S",
2552
2732
  "S"
2553
2733
  ];
2554
- function Nn(e, t) {
2555
- let n = K(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
2556
- for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
2734
+ function Xn(e, t) {
2735
+ let n = G(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
2736
+ for (let e = n; e <= r; e = de(e, 1)) i.push(e);
2557
2737
  return i;
2558
2738
  }
2559
- function Pn(e, t) {
2739
+ function Zn(e, t) {
2560
2740
  let n = t ? ht(t) : 0, r = t ? gt(t) : 0;
2561
2741
  return Ct(St(xt(e, n), r), 0);
2562
2742
  }
2563
- function Fn(e, t) {
2743
+ function Qn(e, t) {
2564
2744
  let n = Math.round(e / t) * t;
2565
2745
  return Math.min(59, Math.max(0, n >= 60 ? 60 - t : n));
2566
2746
  }
2567
- function In(e) {
2747
+ function $n(e) {
2568
2748
  let t = Math.max(1, Math.min(30, Math.floor(e))), n = [];
2569
2749
  for (let e = 0; e < 60; e += t) n.push(e);
2570
2750
  return n;
2571
2751
  }
2572
- var Ln = Array.from({ length: 24 }, (e, t) => t);
2573
- function Rn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione data e hora", disabled: i = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data e hora válidas", id: p, weekStartsOn: m = 0, defaultMonth: h, dateFormat: g = "dd/MM/yyyy HH:mm", minuteStep: y = 5, value: b, defaultValue: x = null, onValueChange: S, className: D }) {
2574
- let te = ee(), O = p ?? te, k = l === "invalid", ne = k || d, A = on[u], M = u === "lg" ? "size-5" : "size-4", N = an(t), P = N === "floating", F = b !== void 0, [I, R] = E(x), z = F ? b ?? null : I, [B, re] = E(!1), [V, H] = E(() => z ?? h ?? /* @__PURE__ */ new Date()), [U, ae] = E(z), oe = T(null), se = T(null), ce = w(() => In(y), [y]), le = w(() => [...Mn.slice(m), ...Mn.slice(0, m)], [m]), W = w(() => Nn(V, m), [V, m]), G = U ? ht(U) : 0, ue = U ? Fn(gt(U), y) : 0;
2752
+ var er = Array.from({ length: 24 }, (e, t) => t);
2753
+ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione data e hora", disabled: i = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data e hora válidas", id: p, weekStartsOn: m = 0, defaultMonth: h, dateFormat: g = "dd/MM/yyyy HH:mm", minuteStep: y = 5, timeVariant: b = "clock", value: x, defaultValue: S = null, onValueChange: D, className: te }) {
2754
+ let ne = ee(), O = p ?? ne, re = l === "invalid", k = re || d, j = on[u], M = u === "lg" ? "size-5" : "size-4", N = an(t), P = N === "floating", F = x !== void 0, [L, ie] = E(S), R = F ? x ?? null : L, [z, ae] = E(!1), [B, se] = E(() => R ?? h ?? /* @__PURE__ */ new Date()), [V, ce] = E(R), [H, le] = E("hours"), ue = T(null), U = T(null), W = w(() => $n(y), [y]), de = w(() => Math.max(1, Math.min(30, Math.floor(y))), [y]), pe = w(() => [...Yn.slice(m), ...Yn.slice(0, m)], [m]), me = w(() => Xn(B, m), [B, m]), G = V ? ht(V) : 0, K = V ? Qn(gt(V), y) : 0;
2575
2755
  C(() => {
2576
- if (!B) return;
2756
+ if (!z) return;
2577
2757
  let e = (e, t, n) => {
2578
2758
  (e?.querySelector(`[data-${t}="${n}"]`))?.scrollIntoView({ block: "center" });
2579
2759
  };
2580
2760
  requestAnimationFrame(() => {
2581
- e(oe.current, "hour", G), e(se.current, "minute", ue);
2761
+ e(ue.current, "hour", G), e(U.current, "minute", K);
2582
2762
  });
2583
2763
  }, [
2584
- B,
2764
+ z,
2585
2765
  G,
2586
- ue
2766
+ K
2587
2767
  ]);
2588
- function fe(e) {
2589
- F || R(e), S?.(e);
2768
+ function he(e) {
2769
+ F || ie(e), D?.(e);
2590
2770
  }
2591
- function pe(e) {
2771
+ function ge(e) {
2592
2772
  if (!i) {
2593
2773
  if (e) {
2594
- let e = z ?? h ?? /* @__PURE__ */ new Date(), t = St(e, Fn(gt(e), y));
2595
- ae(z ? t : null), H(z ?? h ?? /* @__PURE__ */ new Date());
2774
+ let e = R ?? h ?? /* @__PURE__ */ new Date(), t = St(e, Qn(gt(e), y));
2775
+ ce(R ? t : null), se(R ?? h ?? /* @__PURE__ */ new Date()), le("hours");
2596
2776
  }
2597
- re(e);
2777
+ ae(e);
2598
2778
  }
2599
2779
  }
2600
- function K(e) {
2601
- let t = Pn(e, U ?? z), n = St(t, Fn(gt(t), y));
2602
- ae(n), fe(n);
2780
+ function _e(e) {
2781
+ let t = Zn(e, V ?? R), n = St(t, Qn(gt(t), y));
2782
+ ce(n), he(n);
2603
2783
  }
2604
- function me(e) {
2605
- let t = U ?? z ?? /* @__PURE__ */ new Date(), n = Ct(St(xt(t, e), Fn(gt(t), y)), 0);
2606
- ae(n), fe(n);
2784
+ function ve(e, t = !0) {
2785
+ let n = V ?? R ?? /* @__PURE__ */ new Date(), r = Ct(St(xt(n, e), Qn(gt(n), y)), 0);
2786
+ ce(r), t && (he(r), b === "clock" && le("minutes"));
2607
2787
  }
2608
- function he(e) {
2609
- let t = Ct(St(U ?? z ?? /* @__PURE__ */ new Date(), e), 0);
2610
- ae(t), fe(t);
2788
+ function ye(e, t = !0) {
2789
+ let n = Ct(St(V ?? R ?? /* @__PURE__ */ new Date(), e), 0);
2790
+ ce(n), t && he(n);
2611
2791
  }
2612
- function ge() {
2613
- let e = /* @__PURE__ */ new Date(), t = Ct(St(e, Fn(gt(e), y)), 0);
2614
- ae(t), H(t), fe(t);
2792
+ function be() {
2793
+ let e = /* @__PURE__ */ new Date(), t = Ct(St(e, Qn(gt(e), y)), 0);
2794
+ ce(t), se(t), he(t);
2615
2795
  }
2616
- function _e() {
2617
- U && fe(U), re(!1);
2796
+ function xe() {
2797
+ V && he(V), ae(!1);
2618
2798
  }
2619
- let ve = z ? J(z, g) : n;
2799
+ let Ce = R ? J(R, g) : n;
2620
2800
  return /* @__PURE__ */ v("div", {
2621
- className: L(cn, D),
2801
+ className: I(cn, te),
2622
2802
  "data-fluid": o || void 0,
2623
2803
  "data-eds-component": "DateTimePicker",
2624
2804
  "data-label-variant": N,
@@ -2626,7 +2806,7 @@ function Rn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2626
2806
  /* @__PURE__ */ _("div", {
2627
2807
  className: ln,
2628
2808
  children: /* @__PURE__ */ v("label", {
2629
- className: L(un, P && "sr-only", !P && "font-medium"),
2809
+ className: I(un, P && "sr-only", !P && "font-medium"),
2630
2810
  htmlFor: O,
2631
2811
  children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
2632
2812
  className: "text-eds-red-main",
@@ -2634,20 +2814,20 @@ function Rn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2634
2814
  })]
2635
2815
  })
2636
2816
  }),
2637
- /* @__PURE__ */ v(j.Root, {
2638
- open: B,
2639
- onOpenChange: pe,
2640
- children: [/* @__PURE__ */ v(j.Trigger, {
2817
+ /* @__PURE__ */ v(A.Root, {
2818
+ open: z,
2819
+ onOpenChange: ge,
2820
+ children: [/* @__PURE__ */ v(A.Trigger, {
2641
2821
  id: O,
2642
2822
  disabled: i,
2643
- className: L("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", A.trigger, jn[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2823
+ className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", j.trigger, Jn[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2644
2824
  "data-state": l,
2645
2825
  "data-size": u,
2646
2826
  "data-disabled": i || void 0,
2647
- "aria-describedby": ne ? `${O}-desc` : void 0,
2827
+ "aria-describedby": k ? `${O}-desc` : void 0,
2648
2828
  children: [
2649
2829
  P && /* @__PURE__ */ v("span", {
2650
- className: xn(A.left),
2830
+ className: xn(j.left),
2651
2831
  children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
2652
2832
  className: "text-eds-red-main",
2653
2833
  "aria-hidden": "true",
@@ -2655,21 +2835,21 @@ function Rn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2655
2835
  })]
2656
2836
  }),
2657
2837
  /* @__PURE__ */ _(r, {
2658
- className: L("shrink-0 text-eds-neutral-elements", M),
2838
+ className: I("shrink-0 text-eds-neutral-elements", M),
2659
2839
  "aria-hidden": !0
2660
2840
  }),
2661
2841
  /* @__PURE__ */ _("span", {
2662
- className: L("min-w-0 flex-1 truncate font-inherit", A.text, z ? "text-eds-neutral-main" : dn),
2663
- children: ve
2842
+ className: I("min-w-0 flex-1 truncate font-inherit", j.text, R ? "text-eds-neutral-main" : dn),
2843
+ children: Ce
2664
2844
  })
2665
2845
  ]
2666
- }), /* @__PURE__ */ _(j.Portal, { children: /* @__PURE__ */ _(j.Positioner, {
2846
+ }), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
2667
2847
  className: yn,
2668
2848
  style: bn,
2669
2849
  positionMethod: "fixed",
2670
2850
  sideOffset: 4,
2671
2851
  align: "start",
2672
- children: /* @__PURE__ */ v(j.Popup, {
2852
+ children: /* @__PURE__ */ v(A.Popup, {
2673
2853
  "data-eds-component": "DateTimePicker",
2674
2854
  className: "flex flex-col overflow-hidden rounded-eds-xs border border-eds-outline-border bg-white shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)] transition-all data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
2675
2855
  children: [/* @__PURE__ */ v("div", {
@@ -2683,40 +2863,72 @@ function Rn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2683
2863
  icon: s,
2684
2864
  label: "Mês anterior",
2685
2865
  size: "sm",
2686
- onClick: () => H((e) => wt(e, 1))
2866
+ onClick: () => se((e) => wt(e, 1))
2687
2867
  }),
2688
2868
  /* @__PURE__ */ _("span", {
2689
2869
  className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
2690
- children: J(V, "MMMM yyyy", { locale: kt })
2870
+ children: J(B, "MMMM yyyy", { locale: kt })
2691
2871
  }),
2692
2872
  /* @__PURE__ */ _(jt, {
2693
2873
  icon: c,
2694
2874
  label: "Próximo mês",
2695
2875
  size: "sm",
2696
- onClick: () => H((e) => de(e, 1))
2876
+ onClick: () => se((e) => fe(e, 1))
2697
2877
  })
2698
2878
  ]
2699
2879
  }), /* @__PURE__ */ v("div", {
2700
2880
  className: "grid grid-cols-7 px-4 pb-4",
2701
- children: [le.map((e, t) => /* @__PURE__ */ _("span", {
2881
+ children: [pe.map((e, t) => /* @__PURE__ */ _("span", {
2702
2882
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2703
2883
  children: e
2704
- }, `${e}-${t}`)), W.map((e) => {
2705
- let t = yt(e, V), n = bt(e), r = U ? Se(e, U) : !1;
2884
+ }, `${e}-${t}`)), me.map((e) => {
2885
+ let t = yt(e, B), n = bt(e), r = V ? Se(e, V) : !1;
2706
2886
  return /* @__PURE__ */ _("div", {
2707
2887
  className: "flex items-center justify-center py-0.5",
2708
2888
  children: /* @__PURE__ */ _("button", {
2709
2889
  type: "button",
2710
- onClick: () => K(e),
2890
+ onClick: () => _e(e),
2711
2891
  "data-selected": r || void 0,
2712
2892
  "data-today": n || void 0,
2713
- className: L("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", r ? "bg-eds-blue-main text-white" : t ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !r && n && "ring-1 ring-inset ring-eds-blue-main"),
2893
+ className: I("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", r ? "bg-eds-blue-main text-white" : t ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !r && n && "ring-1 ring-inset ring-eds-blue-main"),
2714
2894
  children: J(e, "d")
2715
2895
  })
2716
2896
  }, e.toISOString());
2717
2897
  })]
2718
2898
  })]
2719
- }), /* @__PURE__ */ v("div", {
2899
+ }), b === "clock" ? /* @__PURE__ */ v("div", {
2900
+ className: "flex w-[260px] shrink-0 flex-col items-center gap-3 border-l border-eds-outline-border p-4",
2901
+ children: [/* @__PURE__ */ v("div", {
2902
+ className: "flex items-center gap-1 rounded-full bg-eds-neutral-background p-1",
2903
+ children: [
2904
+ /* @__PURE__ */ _("button", {
2905
+ type: "button",
2906
+ "aria-label": "Selecionar hora",
2907
+ "aria-pressed": H === "hours",
2908
+ onClick: () => le("hours"),
2909
+ className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", H === "hours" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
2910
+ children: String(G).padStart(2, "0")
2911
+ }),
2912
+ /* @__PURE__ */ _("span", {
2913
+ className: "text-sm text-eds-neutral-elements",
2914
+ children: ":"
2915
+ }),
2916
+ /* @__PURE__ */ _("button", {
2917
+ type: "button",
2918
+ "aria-label": "Selecionar minuto",
2919
+ "aria-pressed": H === "minutes",
2920
+ onClick: () => le("minutes"),
2921
+ className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", H === "minutes" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
2922
+ children: String(K).padStart(2, "0")
2923
+ })
2924
+ ]
2925
+ }), /* @__PURE__ */ _(qn, {
2926
+ mode: H,
2927
+ value: H === "hours" ? G : K,
2928
+ minuteStep: de,
2929
+ onSelect: (e, t) => H === "hours" ? ve(e, t) : ye(e, t)
2930
+ })]
2931
+ }) : /* @__PURE__ */ v("div", {
2720
2932
  className: "flex w-[148px] shrink-0 border-l border-eds-outline-border",
2721
2933
  children: [/* @__PURE__ */ v("div", {
2722
2934
  className: "flex min-h-0 flex-1 flex-col",
@@ -2724,19 +2936,19 @@ function Rn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2724
2936
  className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2725
2937
  children: "Hora"
2726
2938
  }), /* @__PURE__ */ _("div", {
2727
- ref: oe,
2939
+ ref: ue,
2728
2940
  className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2729
2941
  role: "listbox",
2730
2942
  "aria-label": "Hora",
2731
- children: Ln.map((e) => {
2943
+ children: er.map((e) => {
2732
2944
  let t = G === e;
2733
2945
  return /* @__PURE__ */ _("button", {
2734
2946
  type: "button",
2735
2947
  role: "option",
2736
2948
  "aria-selected": t,
2737
2949
  "data-hour": e,
2738
- onClick: () => me(e),
2739
- className: L("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2950
+ onClick: () => ve(e),
2951
+ className: I("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2740
2952
  children: String(e).padStart(2, "0")
2741
2953
  }, e);
2742
2954
  })
@@ -2747,19 +2959,19 @@ function Rn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2747
2959
  className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2748
2960
  children: "Min"
2749
2961
  }), /* @__PURE__ */ _("div", {
2750
- ref: se,
2962
+ ref: U,
2751
2963
  className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2752
2964
  role: "listbox",
2753
2965
  "aria-label": "Minuto",
2754
- children: ce.map((e) => {
2755
- let t = ue === e;
2966
+ children: W.map((e) => {
2967
+ let t = K === e;
2756
2968
  return /* @__PURE__ */ _("button", {
2757
2969
  type: "button",
2758
2970
  role: "option",
2759
2971
  "aria-selected": t,
2760
2972
  "data-minute": e,
2761
- onClick: () => he(e),
2762
- className: L("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2973
+ onClick: () => ye(e),
2974
+ className: I("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2763
2975
  children: String(e).padStart(2, "0")
2764
2976
  }, e);
2765
2977
  })
@@ -2768,33 +2980,33 @@ function Rn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2768
2980
  })]
2769
2981
  }), /* @__PURE__ */ v("div", {
2770
2982
  className: "flex items-center justify-between gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-3 py-2.5",
2771
- children: [/* @__PURE__ */ _(ie, {
2983
+ children: [/* @__PURE__ */ _(oe, {
2772
2984
  text: "Agora",
2773
2985
  variant: "ghost",
2774
2986
  size: "sm",
2775
- onClick: ge
2776
- }), /* @__PURE__ */ _(ie, {
2987
+ onClick: be
2988
+ }), /* @__PURE__ */ _(oe, {
2777
2989
  text: "Confirmar",
2778
2990
  size: "sm",
2779
- onClick: _e,
2780
- disabled: !U
2991
+ onClick: xe,
2992
+ disabled: !V
2781
2993
  })]
2782
2994
  })]
2783
2995
  })
2784
2996
  }) })]
2785
2997
  }),
2786
- ne && /* @__PURE__ */ _("div", {
2998
+ k && /* @__PURE__ */ _("div", {
2787
2999
  id: `${O}-desc`,
2788
3000
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2789
- "data-state": k ? "invalid" : l,
2790
- children: k ? f : d
3001
+ "data-state": re ? "invalid" : l,
3002
+ children: re ? f : d
2791
3003
  })
2792
3004
  ]
2793
3005
  });
2794
3006
  }
2795
3007
  //#endregion
2796
3008
  //#region src/components/Dialog/Dialog.tsx
2797
- var zn = { size: {
3009
+ var nr = { size: {
2798
3010
  sm: {
2799
3011
  classes: "sm:max-w-xs",
2800
3012
  description: "Small dialog for simple confirmations (288px)"
@@ -2811,21 +3023,21 @@ var zn = { size: {
2811
3023
  classes: "sm:max-w-3xl",
2812
3024
  description: "Extra large dialog for detailed views (768px)"
2813
3025
  }
2814
- } }, Bn = { size: "md" }, Vn = b("dialog");
2815
- function Hn() {
2816
- return S(Vn);
3026
+ } }, rr = { size: "md" }, ir = b("dialog");
3027
+ function ar() {
3028
+ return S(ir);
2817
3029
  }
2818
- function Un({ size: e = Bn.size } = {}) {
2819
- return L(`fixed top-1/2 left-1/2 ${sn.overlay} grid w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-white p-4 text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`, R(zn.size, e, Bn.size).classes);
3030
+ function or({ size: e = rr.size } = {}) {
3031
+ return I(`fixed top-1/2 left-1/2 ${sn.overlay} grid w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-white p-4 text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`, L(nr.size, e, rr.size).classes);
2820
3032
  }
2821
- function Wn({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
2822
- let i = Hn(), a = i === "alertdialog" ? N.Portal : M.Portal, o = i === "alertdialog" ? N.Backdrop : M.Backdrop, s = i === "alertdialog" ? N.Popup : M.Popup, c = i === "alertdialog" ? N.Close : M.Close;
3033
+ function sr({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
3034
+ let i = ar(), a = i === "alertdialog" ? M.Portal : j.Portal, o = i === "alertdialog" ? M.Backdrop : j.Backdrop, s = i === "alertdialog" ? M.Popup : j.Popup, c = i === "alertdialog" ? M.Close : j.Close;
2823
3035
  return /* @__PURE__ */ v(a, { children: [/* @__PURE__ */ _(o, {
2824
- className: L("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", sn.overlay),
3036
+ className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", sn.overlay),
2825
3037
  style: { zIndex: sn.overlayValue }
2826
3038
  }), /* @__PURE__ */ v(s, {
2827
3039
  "data-eds-component": "Dialog",
2828
- className: L(Un({ size: n }), e),
3040
+ className: I(or({ size: n }), e),
2829
3041
  style: { zIndex: sn.overlayValue },
2830
3042
  children: [t, r ? /* @__PURE__ */ _(c, {
2831
3043
  "data-eds-component": "Dialog",
@@ -2838,105 +3050,105 @@ function Wn({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
2838
3050
  }) : null]
2839
3051
  })] });
2840
3052
  }
2841
- function Gn(e) {
3053
+ function cr(e) {
2842
3054
  if (e.role === "alertdialog") {
2843
3055
  let { children: t, role: n, ...r } = e;
2844
- return /* @__PURE__ */ _(Vn.Provider, {
3056
+ return /* @__PURE__ */ _(ir.Provider, {
2845
3057
  value: n,
2846
- children: /* @__PURE__ */ _(N.Root, {
3058
+ children: /* @__PURE__ */ _(M.Root, {
2847
3059
  ...r,
2848
3060
  children: t
2849
3061
  })
2850
3062
  });
2851
3063
  }
2852
3064
  let { children: t, role: n = "dialog", ...r } = e;
2853
- return /* @__PURE__ */ _(Vn.Provider, {
3065
+ return /* @__PURE__ */ _(ir.Provider, {
2854
3066
  value: n,
2855
- children: /* @__PURE__ */ _(M.Root, {
3067
+ children: /* @__PURE__ */ _(j.Root, {
2856
3068
  ...r,
2857
3069
  children: t
2858
3070
  })
2859
3071
  });
2860
3072
  }
2861
- function Kn({ children: e, ...t }) {
2862
- return Hn() === "alertdialog" ? /* @__PURE__ */ _(N.Trigger, {
3073
+ function lr({ children: e, ...t }) {
3074
+ return ar() === "alertdialog" ? /* @__PURE__ */ _(M.Trigger, {
2863
3075
  "data-eds-component": "Dialog",
2864
3076
  ...t,
2865
3077
  children: e
2866
- }) : /* @__PURE__ */ _(M.Trigger, {
3078
+ }) : /* @__PURE__ */ _(j.Trigger, {
2867
3079
  "data-eds-component": "Dialog",
2868
3080
  ...t,
2869
3081
  children: e
2870
3082
  });
2871
3083
  }
2872
- function qn({ className: e, ...t }) {
3084
+ function ur({ className: e, ...t }) {
2873
3085
  return /* @__PURE__ */ _("div", {
2874
3086
  "data-slot": "dialog-header",
2875
- className: L("flex flex-col gap-2", e),
3087
+ className: I("flex flex-col gap-2", e),
2876
3088
  ...t
2877
3089
  });
2878
3090
  }
2879
- function Jn({ className: e, ...t }) {
3091
+ function dr({ className: e, ...t }) {
2880
3092
  return /* @__PURE__ */ _("div", {
2881
3093
  "data-slot": "dialog-footer",
2882
- className: L("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-eds-outline-border bg-eds-neutral-background p-4 sm:flex-row sm:justify-end", e),
3094
+ className: I("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-eds-outline-border bg-eds-neutral-background p-4 sm:flex-row sm:justify-end", e),
2883
3095
  ...t
2884
3096
  });
2885
3097
  }
2886
- function Yn({ className: e, ...t }) {
2887
- return /* @__PURE__ */ _(Hn() === "alertdialog" ? N.Title : M.Title, {
2888
- className: L("text-base leading-none font-medium text-eds-neutral-main", e),
3098
+ function fr({ className: e, ...t }) {
3099
+ return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Title : j.Title, {
3100
+ className: I("text-base leading-none font-medium text-eds-neutral-main", e),
2889
3101
  ...t
2890
3102
  });
2891
3103
  }
2892
- function Xn({ className: e, ...t }) {
2893
- return /* @__PURE__ */ _(Hn() === "alertdialog" ? N.Description : M.Description, {
2894
- className: L("text-sm text-eds-neutral-elements", e),
3104
+ function pr({ className: e, ...t }) {
3105
+ return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Description : j.Description, {
3106
+ className: I("text-sm text-eds-neutral-elements", e),
2895
3107
  ...t
2896
3108
  });
2897
3109
  }
2898
- function Zn({ children: e, ...t }) {
2899
- return /* @__PURE__ */ _(Hn() === "alertdialog" ? N.Close : M.Close, {
3110
+ function mr({ children: e, ...t }) {
3111
+ return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Close : j.Close, {
2900
3112
  "data-eds-component": "Dialog",
2901
3113
  ...t,
2902
3114
  children: e
2903
3115
  });
2904
3116
  }
2905
- Gn.displayName = "Dialog.Root", Kn.displayName = "Dialog.Trigger", qn.displayName = "Dialog.Header", Jn.displayName = "Dialog.Footer", Yn.displayName = "Dialog.Title", Xn.displayName = "Dialog.Description", Zn.displayName = "Dialog.Close";
2906
- var Qn = Object.assign(Wn, {
2907
- Root: Gn,
2908
- Trigger: Kn,
2909
- Header: qn,
2910
- Footer: Jn,
2911
- Title: Yn,
2912
- Description: Xn,
2913
- Close: Zn
3117
+ cr.displayName = "Dialog.Root", lr.displayName = "Dialog.Trigger", ur.displayName = "Dialog.Header", dr.displayName = "Dialog.Footer", fr.displayName = "Dialog.Title", pr.displayName = "Dialog.Description", mr.displayName = "Dialog.Close";
3118
+ var hr = Object.assign(sr, {
3119
+ Root: cr,
3120
+ Trigger: lr,
3121
+ Header: ur,
3122
+ Footer: dr,
3123
+ Title: fr,
3124
+ Description: pr,
3125
+ Close: mr
2914
3126
  });
2915
3127
  //#endregion
2916
3128
  //#region src/components/FormDialog/FormDialog.tsx
2917
- function $n({ size: e = "xl" } = {}) {
2918
- return L("relative flex w-full max-h-full min-h-0 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "[&>form]:flex [&>form]:min-h-0 [&>form]:w-full [&>form]:flex-1 [&>form]:flex-col [&>form]:overflow-hidden", R(zn.size, e, Bn.size).classes);
3129
+ function gr({ size: e = "xl" } = {}) {
3130
+ return I("relative flex w-full max-h-full min-h-0 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "[&>form]:flex [&>form]:min-h-0 [&>form]:w-full [&>form]:flex-1 [&>form]:flex-col [&>form]:overflow-hidden", L(nr.size, e, rr.size).classes);
2919
3131
  }
2920
- function er({ className: e, children: t, size: n = "xl" }) {
2921
- let r = Hn(), i = r === "alertdialog" ? N.Portal : M.Portal, a = r === "alertdialog" ? N.Backdrop : M.Backdrop, o = r === "alertdialog" ? N.Popup : M.Popup;
3132
+ function _r({ className: e, children: t, size: n = "xl" }) {
3133
+ let r = ar(), i = r === "alertdialog" ? M.Portal : j.Portal, a = r === "alertdialog" ? M.Backdrop : j.Backdrop, o = r === "alertdialog" ? M.Popup : j.Popup;
2922
3134
  return /* @__PURE__ */ v(i, { children: [/* @__PURE__ */ _(a, {
2923
- className: L("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", sn.overlay),
3135
+ className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", sn.overlay),
2924
3136
  style: { zIndex: sn.overlayValue }
2925
3137
  }), /* @__PURE__ */ _("div", {
2926
- className: L("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", sn.overlay),
3138
+ className: I("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", sn.overlay),
2927
3139
  style: { zIndex: sn.overlayValue },
2928
3140
  children: /* @__PURE__ */ _(o, {
2929
3141
  "data-eds-component": "FormDialog",
2930
- className: L("pointer-events-auto", $n({ size: n }), e),
3142
+ className: I("pointer-events-auto", gr({ size: n }), e),
2931
3143
  children: t
2932
3144
  })
2933
3145
  })] });
2934
3146
  }
2935
- function tr({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
2936
- let s = Hn(), c = s === "alertdialog" ? N.Close : M.Close, l = s === "alertdialog" ? N.Title : M.Title, u = s === "alertdialog" ? N.Description : M.Description, d = n != null || r != null || t;
3147
+ function vr({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
3148
+ let s = ar(), c = s === "alertdialog" ? M.Close : j.Close, l = s === "alertdialog" ? M.Title : j.Title, u = s === "alertdialog" ? M.Description : j.Description, d = n != null || r != null || t;
2937
3149
  return /* @__PURE__ */ v("div", {
2938
3150
  "data-slot": "form-dialog-header",
2939
- className: L("relative flex shrink-0 items-start gap-3 border-b border-eds-outline-border bg-white px-5 py-4", i && "pr-12", e),
3151
+ className: I("relative flex shrink-0 items-start gap-3 border-b border-eds-outline-border bg-white px-5 py-4", i && "pr-12", e),
2940
3152
  ...o,
2941
3153
  children: [
2942
3154
  t ? /* @__PURE__ */ _("span", {
@@ -2977,43 +3189,43 @@ function tr({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i =
2977
3189
  ]
2978
3190
  });
2979
3191
  }
2980
- function nr({ className: e, ...t }) {
3192
+ function yr({ className: e, ...t }) {
2981
3193
  return /* @__PURE__ */ _("div", {
2982
3194
  "data-slot": "form-dialog-body",
2983
- className: L("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
3195
+ className: I("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
2984
3196
  ...t
2985
3197
  });
2986
3198
  }
2987
- function rr({ className: e, ...t }) {
3199
+ function br({ className: e, ...t }) {
2988
3200
  return /* @__PURE__ */ _("div", {
2989
3201
  "data-slot": "form-dialog-footer",
2990
- className: L("flex shrink-0 flex-col-reverse gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-5 py-4 sm:flex-row sm:justify-end", e),
3202
+ className: I("flex shrink-0 flex-col-reverse gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-5 py-4 sm:flex-row sm:justify-end", e),
2991
3203
  ...t
2992
3204
  });
2993
3205
  }
2994
- function ir({ className: e, ...t }) {
2995
- return /* @__PURE__ */ _(Hn() === "alertdialog" ? N.Title : M.Title, {
2996
- className: L("text-lg leading-tight font-semibold text-eds-blue-dark", e),
3206
+ function xr({ className: e, ...t }) {
3207
+ return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Title : j.Title, {
3208
+ className: I("text-lg leading-tight font-semibold text-eds-blue-dark", e),
2997
3209
  ...t
2998
3210
  });
2999
3211
  }
3000
- function ar({ className: e, ...t }) {
3001
- return /* @__PURE__ */ _(Hn() === "alertdialog" ? N.Description : M.Description, {
3002
- className: L("text-sm leading-snug text-eds-neutral-elements", e),
3212
+ function Sr({ className: e, ...t }) {
3213
+ return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Description : j.Description, {
3214
+ className: I("text-sm leading-snug text-eds-neutral-elements", e),
3003
3215
  ...t
3004
3216
  });
3005
3217
  }
3006
- tr.displayName = "FormDialog.Header", nr.displayName = "FormDialog.Body", rr.displayName = "FormDialog.Footer", ir.displayName = "FormDialog.Title", ar.displayName = "FormDialog.Description";
3007
- var or = Object.assign(er, {
3008
- Root: Gn,
3009
- Trigger: Kn,
3010
- Close: Zn,
3011
- Header: tr,
3012
- Body: nr,
3013
- Footer: rr,
3014
- Title: ir,
3015
- Description: ar
3016
- }), sr = { size: {
3218
+ vr.displayName = "FormDialog.Header", yr.displayName = "FormDialog.Body", br.displayName = "FormDialog.Footer", xr.displayName = "FormDialog.Title", Sr.displayName = "FormDialog.Description";
3219
+ var Cr = Object.assign(_r, {
3220
+ Root: cr,
3221
+ Trigger: lr,
3222
+ Close: mr,
3223
+ Header: vr,
3224
+ Body: yr,
3225
+ Footer: br,
3226
+ Title: xr,
3227
+ Description: Sr
3228
+ }), wr = { size: {
3017
3229
  sm: {
3018
3230
  classes: "px-6 py-8 gap-3",
3019
3231
  description: "Compact empty state for smaller containers"
@@ -3026,11 +3238,11 @@ var or = Object.assign(er, {
3026
3238
  classes: "px-12 py-20 gap-6",
3027
3239
  description: "Large empty state for prominent placement"
3028
3240
  }
3029
- } }, cr = { size: "md" };
3030
- function lr({ icon: e, title: t, description: n, action: r, size: i = cr.size, titleLevel: a = "h2", className: o }) {
3241
+ } }, Tr = { size: "md" };
3242
+ function Er({ icon: e, title: t, description: n, action: r, size: i = Tr.size, titleLevel: a = "h2", className: o }) {
3031
3243
  return /* @__PURE__ */ v("div", {
3032
3244
  "data-eds-component": "Empty",
3033
- className: L("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", R(sr.size, i, cr.size).classes, o),
3245
+ className: I("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", L(wr.size, i, Tr.size).classes, o),
3034
3246
  children: [
3035
3247
  e && /* @__PURE__ */ _("div", {
3036
3248
  className: "text-eds-neutral-elements",
@@ -3051,24 +3263,24 @@ function lr({ icon: e, title: t, description: n, action: r, size: i = cr.size, t
3051
3263
  }
3052
3264
  //#endregion
3053
3265
  //#region ../../node_modules/.pnpm/brazilian-values@0.13.1/node_modules/brazilian-values/dist/brazilian-values.mjs
3054
- var ur = /\D/g, dr = function(e) {
3055
- return e.replace(ur, "");
3056
- }, fr = function(e) {
3057
- return dr(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
3058
- }, pr = function(e) {
3059
- return dr(e).replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d{1,2})$/, "$1-$2");
3060
- }, mr = function(e) {
3061
- return dr(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
3062
- }, hr = function(e) {
3266
+ var Dr = /\D/g, Or = function(e) {
3267
+ return e.replace(Dr, "");
3268
+ }, kr = function(e) {
3269
+ return Or(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
3270
+ }, Ar = function(e) {
3271
+ return Or(e).replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d{1,2})$/, "$1-$2");
3272
+ }, jr = function(e) {
3273
+ return Or(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
3274
+ }, Mr = function(e) {
3063
3275
  return (e.match(/\d/g)?.length ?? 0) <= 11;
3064
- }, gr = function(e) {
3065
- return hr(e) ? mr(e) : pr(e);
3066
- }, _r = function(e) {
3067
- return dr(e).replace(/(\d{1,2})/, "($1").replace(/(\(\d{2})(\d{1,4})/, "$1) $2").replace(/( \d{4})(\d{1,4})/, "$1-$2").replace(/( \d{4})(?:-)(\d{1})(\d{4})/, "$1$2-$3");
3276
+ }, Nr = function(e) {
3277
+ return Mr(e) ? jr(e) : Ar(e);
3278
+ }, Pr = function(e) {
3279
+ return Or(e).replace(/(\d{1,2})/, "($1").replace(/(\(\d{2})(\d{1,4})/, "$1) $2").replace(/( \d{4})(\d{1,4})/, "$1-$2").replace(/( \d{4})(?:-)(\d{1})(\d{4})/, "$1$2-$3");
3068
3280
  };
3069
3281
  //#endregion
3070
3282
  //#region src/components/Input/Input.tsx
3071
- function vr(e) {
3283
+ function Fr(e) {
3072
3284
  if (!e) return "";
3073
3285
  let t = e.trimStart().startsWith("-"), n = e.replace(/\./g, ",").replace(/[^\d,]/g, "");
3074
3286
  if (!n) return t ? "-" : "";
@@ -3077,30 +3289,30 @@ function vr(e) {
3077
3289
  let i = n.slice(0, r), a = n.slice(r + 1).replace(/,/g, "");
3078
3290
  return `${t ? "-" : ""}${i},${a}`;
3079
3291
  }
3080
- var yr = {
3292
+ var Ir = {
3081
3293
  default: "",
3082
3294
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3083
3295
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
3084
3296
  loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
3085
3297
  };
3086
- function br({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, format: f, tooltip: p = null, linkText: m = null, linkUrl: h = null, supportLink: g = null, supportLinkUrl: y = null, supportingText: b = "", lazy: x = !1, labelVariant: S, disableAutocomplete: C = !1, isLoading: w = !1, loadingIconPosition: T = "end", icon: D, hideContent: te = !1, showContentText: O = "Mostrar", hideContentText: k = "Ocultar", defaultValue: ne, value: A, id: j, name: M, onBlur: N, onFocus: F, onKeyDown: I, onClick: R, onChange: z, ...B }) {
3087
- let re = ee(), V = j ?? re, H = a === "number", [ie, U] = E(!1), [ae, oe] = E(() => {
3088
- let e = ne?.toString() ?? "";
3089
- return H ? vr(e) : e;
3090
- }), se = A !== void 0, ce = (se ? A : ae)?.toString() ?? "", le = H ? vr(ce) : ce, W = g ?? m, G = y ?? h, ue = an(S), de = ue === "floating", fe = (e) => {
3091
- if (H) return vr(e);
3298
+ function Lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, format: f, tooltip: p = null, linkText: m = null, linkUrl: h = null, supportLink: g = null, supportLinkUrl: y = null, supportingText: b = "", lazy: x = !1, labelVariant: S, disableAutocomplete: C = !1, isLoading: w = !1, loadingIconPosition: T = "end", icon: D, hideContent: te = !1, showContentText: ne = "Mostrar", hideContentText: O = "Ocultar", defaultValue: re, value: k, id: A, name: j, onBlur: M, onFocus: P, onKeyDown: F, onClick: L, onChange: ie, ...R }) {
3299
+ let z = ee(), ae = A ?? z, B = a === "number", [oe, se] = E(!1), [V, ce] = E(() => {
3300
+ let e = re?.toString() ?? "";
3301
+ return B ? Fr(e) : e;
3302
+ }), H = k !== void 0, le = (H ? k : V)?.toString() ?? "", ue = B ? Fr(le) : le, U = g ?? m, W = y ?? h, de = an(S), fe = de === "floating", pe = (e) => {
3303
+ if (B) return Fr(e);
3092
3304
  switch (f) {
3093
- case "cep": return fr(e);
3094
- case "cpf": return mr(e);
3095
- case "cnpj": return pr(e);
3096
- case "cpfOrCnpj": return gr(e);
3097
- case "phone": return _r(e);
3305
+ case "cep": return kr(e);
3306
+ case "cpf": return jr(e);
3307
+ case "cnpj": return Ar(e);
3308
+ case "cpfOrCnpj": return Nr(e);
3309
+ case "phone": return Pr(e);
3098
3310
  default: return e;
3099
3311
  }
3100
- }, pe = (e, t) => {
3101
- let n = fe(e);
3102
- se || oe(n), z?.(n, t);
3103
- }, K = r === "invalid", me = n || w, he = on[i], ge = w ? /* @__PURE__ */ _("span", {
3312
+ }, me = (e, t) => {
3313
+ let n = pe(e);
3314
+ H || ce(n), ie?.(n, t);
3315
+ }, G = r === "invalid", K = n || w, he = on[i], ge = w ? /* @__PURE__ */ _("span", {
3104
3316
  className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
3105
3317
  "data-position": T,
3106
3318
  "aria-hidden": !0,
@@ -3110,18 +3322,18 @@ function br({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3110
3322
  })
3111
3323
  }) : null;
3112
3324
  return /* @__PURE__ */ v("div", {
3113
- className: L(cn, e),
3325
+ className: I(cn, e),
3114
3326
  "data-fluid": l || void 0,
3115
3327
  "data-eds-component": "Input",
3116
- "data-label-variant": ue,
3328
+ "data-label-variant": de,
3117
3329
  children: [
3118
3330
  /* @__PURE__ */ v("div", {
3119
3331
  className: ln,
3120
3332
  children: [/* @__PURE__ */ v("div", {
3121
3333
  className: "inline-flex min-w-0 items-center gap-2",
3122
3334
  children: [/* @__PURE__ */ v("label", {
3123
- className: L(un, de && "sr-only", !de && "font-medium"),
3124
- htmlFor: V,
3335
+ className: I(un, fe && "sr-only", !fe && "font-medium"),
3336
+ htmlFor: ae,
3125
3337
  children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
3126
3338
  className: "text-eds-red-main",
3127
3339
  children: "*"
@@ -3131,32 +3343,32 @@ function br({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3131
3343
  className: "inline-flex size-7 cursor-help items-center justify-center rounded-md text-eds-neutral-elements focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2",
3132
3344
  "aria-label": p,
3133
3345
  title: p,
3134
- disabled: me,
3346
+ disabled: K,
3135
3347
  children: /* @__PURE__ */ _(u, {
3136
3348
  size: 16,
3137
3349
  "aria-hidden": !0
3138
3350
  })
3139
3351
  })]
3140
- }), W && G && /* @__PURE__ */ _("a", {
3352
+ }), U && W && /* @__PURE__ */ _("a", {
3141
3353
  className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
3142
- href: G,
3143
- "aria-disabled": me || void 0,
3144
- tabIndex: me ? -1 : 0,
3354
+ href: W,
3355
+ "aria-disabled": K || void 0,
3356
+ tabIndex: K ? -1 : 0,
3145
3357
  onClick: (e) => {
3146
- me && e.preventDefault();
3358
+ K && e.preventDefault();
3147
3359
  },
3148
- children: W
3360
+ children: U
3149
3361
  })]
3150
3362
  }),
3151
3363
  /* @__PURE__ */ v("div", {
3152
- className: L("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", he.control, yr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3153
- "data-disabled": me || void 0,
3364
+ className: I("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", he.control, Ir[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3365
+ "data-disabled": K || void 0,
3154
3366
  "data-state": r,
3155
3367
  "data-size": i,
3156
- "data-floating": de || void 0,
3157
- "data-has-value": le ? !0 : void 0,
3368
+ "data-floating": fe || void 0,
3369
+ "data-has-value": ue ? !0 : void 0,
3158
3370
  children: [
3159
- de && /* @__PURE__ */ v("span", {
3371
+ fe && /* @__PURE__ */ v("span", {
3160
3372
  className: xn(he.left),
3161
3373
  children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
3162
3374
  className: "text-eds-red-main",
@@ -3170,82 +3382,82 @@ function br({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3170
3382
  "aria-hidden": !0
3171
3383
  }),
3172
3384
  T === "start" && ge,
3173
- /* @__PURE__ */ _(P, {
3174
- ...B,
3175
- id: V,
3176
- name: M,
3177
- className: L("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", fn, he.text),
3178
- disabled: me,
3179
- type: H ? "text" : te ? ie ? "text" : "password" : a,
3180
- inputMode: H ? B.inputMode ?? "decimal" : B.inputMode,
3181
- lang: H ? B.lang ?? "pt-BR" : B.lang,
3385
+ /* @__PURE__ */ _(N, {
3386
+ ...R,
3387
+ id: ae,
3388
+ name: j,
3389
+ className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", fn, he.text),
3390
+ disabled: K,
3391
+ type: B ? "text" : te ? oe ? "text" : "password" : a,
3392
+ inputMode: B ? R.inputMode ?? "decimal" : R.inputMode,
3393
+ lang: B ? R.lang ?? "pt-BR" : R.lang,
3182
3394
  required: o,
3183
3395
  placeholder: s,
3184
- autoComplete: C ? "off" : B.autoComplete,
3185
- "aria-invalid": K || void 0,
3186
- "aria-describedby": K ? `${V}-desc` : void 0,
3396
+ autoComplete: C ? "off" : R.autoComplete,
3397
+ "aria-invalid": G || void 0,
3398
+ "aria-describedby": G ? `${ae}-desc` : void 0,
3187
3399
  "aria-busy": w || void 0,
3188
- value: se || H ? le : void 0,
3189
- defaultValue: !se && !H ? ne : void 0,
3190
- onClick: R,
3191
- onKeyDown: I,
3192
- onFocus: F,
3400
+ value: H || B ? ue : void 0,
3401
+ defaultValue: !H && !B ? re : void 0,
3402
+ onClick: L,
3403
+ onKeyDown: F,
3404
+ onFocus: P,
3193
3405
  onBlur: (e) => {
3194
- N?.(e), x && pe(e.currentTarget.value, e);
3406
+ M?.(e), x && me(e.currentTarget.value, e);
3195
3407
  },
3196
3408
  onChange: (e) => {
3197
3409
  if (x) {
3198
- H && !se && oe(fe(e.currentTarget.value));
3410
+ B && !H && ce(pe(e.currentTarget.value));
3199
3411
  return;
3200
3412
  }
3201
- pe(e.currentTarget.value, e);
3413
+ me(e.currentTarget.value, e);
3202
3414
  }
3203
3415
  }),
3204
3416
  te && !w && /* @__PURE__ */ _("button", {
3205
3417
  type: "button",
3206
3418
  className: "shrink-0 text-sm font-medium text-eds-blue-main hover:underline",
3207
- disabled: me,
3208
- onClick: () => U((e) => !e),
3209
- children: ie ? k : O
3419
+ disabled: K,
3420
+ onClick: () => se((e) => !e),
3421
+ children: oe ? O : ne
3210
3422
  }),
3211
3423
  T === "end" && ge
3212
3424
  ]
3213
3425
  }),
3214
- (K || b) && /* @__PURE__ */ _("div", {
3215
- id: `${V}-desc`,
3426
+ (G || b) && /* @__PURE__ */ _("div", {
3427
+ id: `${ae}-desc`,
3216
3428
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
3217
- "data-state": K ? "invalid" : r,
3218
- children: K ? c : b
3429
+ "data-state": G ? "invalid" : r,
3430
+ children: G ? c : b
3219
3431
  })
3220
3432
  ]
3221
3433
  });
3222
3434
  }
3223
3435
  //#endregion
3224
3436
  //#region src/components/Textarea/Textarea.tsx
3225
- var xr = {
3437
+ var Rr = {
3226
3438
  default: "",
3227
3439
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3228
3440
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
3229
- }, Sr = {
3441
+ }, zr = {
3230
3442
  sm: "min-h-20",
3231
3443
  md: "min-h-24",
3232
3444
  lg: "min-h-32"
3233
3445
  };
3234
- function Cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: s = "Campo obrigatório", fluid: c = !1, tooltip: l = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: p = "", labelVariant: m, rows: h = 4, defaultValue: g, value: y, id: b, name: x, onBlur: S, onFocus: C, onKeyDown: w, onClick: T, onChange: D, ...te }) {
3235
- let O = ee(), k = b ?? O, [ne, A] = E(() => g?.toString() ?? ""), j = y !== void 0, M = (j ? y : ne)?.toString() ?? "", N = an(m), P = N === "floating", F = r === "invalid", I = on[i];
3446
+ function Br({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: s = "Campo obrigatório", fluid: c = !1, tooltip: l = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: p = "", labelVariant: m, rows: h = 4, defaultValue: g, value: y, id: b, name: x, onBlur: S, onFocus: C, onKeyDown: w, onClick: T, onChange: D, ...te }) {
3447
+ let ne = ee(), O = b ?? ne, [re, k] = E(() => g?.toString() ?? ""), A = y !== void 0, j = (A ? y : re)?.toString() ?? "", M = an(m), N = M === "floating", P = r === "invalid", F = on[i];
3236
3448
  return /* @__PURE__ */ v("div", {
3237
- className: L(cn, e),
3449
+ className: I(cn, e),
3238
3450
  "data-fluid": c || void 0,
3239
3451
  "data-eds-component": "Textarea",
3240
- "data-label-variant": N,
3452
+ "data-label-variant": M,
3241
3453
  children: [
3242
3454
  /* @__PURE__ */ v("div", {
3243
3455
  className: ln,
3244
3456
  children: [/* @__PURE__ */ v("div", {
3245
3457
  className: "inline-flex min-w-0 items-center gap-2",
3246
3458
  children: [/* @__PURE__ */ v("label", {
3247
- className: L(un, P && "sr-only", !P && "font-medium"),
3248
- htmlFor: k,
3459
+ className: I(un, N && "sr-only", !N && "font-medium"),
3460
+ htmlFor: O,
3249
3461
  children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
3250
3462
  className: "text-eds-red-main",
3251
3463
  children: "*"
@@ -3273,14 +3485,14 @@ function Cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3273
3485
  })]
3274
3486
  }),
3275
3487
  /* @__PURE__ */ v("div", {
3276
- className: L("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", I.paddingX, "py-2.5", Sr[i], xr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:!bg-eds-neutral-background data-disabled:opacity-70"),
3488
+ className: I("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", F.paddingX, "py-2.5", zr[i], Rr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:!bg-eds-neutral-background data-disabled:opacity-70"),
3277
3489
  "data-disabled": n || void 0,
3278
3490
  "data-state": r,
3279
3491
  "data-size": i,
3280
- "data-floating": P || void 0,
3281
- "data-has-value": M ? !0 : void 0,
3282
- children: [P && /* @__PURE__ */ v("span", {
3283
- className: xn(I.left),
3492
+ "data-floating": N || void 0,
3493
+ "data-has-value": j ? !0 : void 0,
3494
+ children: [N && /* @__PURE__ */ v("span", {
3495
+ className: xn(F.left),
3284
3496
  children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
3285
3497
  className: "text-eds-red-main",
3286
3498
  "aria-hidden": "true",
@@ -3288,46 +3500,46 @@ function Cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3288
3500
  })]
3289
3501
  }), /* @__PURE__ */ _("textarea", {
3290
3502
  ...te,
3291
- id: k,
3503
+ id: O,
3292
3504
  name: x,
3293
3505
  rows: h,
3294
- className: L("box-border min-h-[inherit] w-full flex-1 resize-y appearance-none border-0 !bg-white p-0 font-inherit text-eds-neutral-main shadow-none outline-none", fn, I.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
3506
+ className: I("box-border min-h-[inherit] w-full flex-1 resize-y appearance-none border-0 !bg-white p-0 font-inherit text-eds-neutral-main shadow-none outline-none", fn, F.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
3295
3507
  disabled: n,
3296
3508
  required: a,
3297
3509
  placeholder: o,
3298
- "aria-invalid": F || void 0,
3299
- "aria-describedby": F ? `${k}-desc` : void 0,
3300
- value: j ? y : void 0,
3301
- defaultValue: j ? void 0 : g,
3510
+ "aria-invalid": P || void 0,
3511
+ "aria-describedby": P ? `${O}-desc` : void 0,
3512
+ value: A ? y : void 0,
3513
+ defaultValue: A ? void 0 : g,
3302
3514
  onClick: T,
3303
3515
  onKeyDown: w,
3304
3516
  onFocus: C,
3305
3517
  onBlur: S,
3306
3518
  onChange: (e) => {
3307
- j || A(e.target.value), D?.(e.target.value, e);
3519
+ A || k(e.target.value), D?.(e.target.value, e);
3308
3520
  }
3309
3521
  })]
3310
3522
  }),
3311
- (F || p) && /* @__PURE__ */ _("div", {
3312
- id: `${k}-desc`,
3523
+ (P || p) && /* @__PURE__ */ _("div", {
3524
+ id: `${O}-desc`,
3313
3525
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
3314
- "data-state": F ? "invalid" : r,
3315
- children: F ? s : p
3526
+ "data-state": P ? "invalid" : r,
3527
+ children: P ? s : p
3316
3528
  })
3317
3529
  ]
3318
3530
  });
3319
3531
  }
3320
3532
  //#endregion
3321
3533
  //#region src/components/Select/Select.tsx
3322
- var wr = {
3534
+ var Vr = {
3323
3535
  default: "",
3324
3536
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3325
3537
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
3326
3538
  };
3327
- function Tr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", id: p, name: m, value: h = void 0, defaultValue: g = void 0, onValueChange: y = void 0, renderItem: b = void 0, className: x }) {
3539
+ function Hr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", id: p, name: m, value: h = void 0, defaultValue: g = void 0, onValueChange: y = void 0, renderItem: b = void 0, className: x }) {
3328
3540
  let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E = on[u], D = an(t), te = D === "floating";
3329
3541
  return /* @__PURE__ */ v("div", {
3330
- className: L(cn, x),
3542
+ className: I(cn, x),
3331
3543
  "data-fluid": c || void 0,
3332
3544
  "data-eds-component": "Select",
3333
3545
  "data-label-variant": D,
@@ -3335,7 +3547,7 @@ function Tr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3335
3547
  /* @__PURE__ */ _("div", {
3336
3548
  className: ln,
3337
3549
  children: /* @__PURE__ */ v("label", {
3338
- className: L(un, te && "sr-only", !te && "font-medium"),
3550
+ className: I(un, te && "sr-only", !te && "font-medium"),
3339
3551
  htmlFor: C,
3340
3552
  children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
3341
3553
  className: "text-eds-red-main",
@@ -3343,7 +3555,7 @@ function Tr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3343
3555
  })]
3344
3556
  })
3345
3557
  }),
3346
- /* @__PURE__ */ v(F.Root, {
3558
+ /* @__PURE__ */ v(P.Root, {
3347
3559
  id: C,
3348
3560
  name: m,
3349
3561
  disabled: i,
@@ -3351,8 +3563,8 @@ function Tr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3351
3563
  onValueChange: y,
3352
3564
  defaultValue: g,
3353
3565
  value: h,
3354
- children: [/* @__PURE__ */ v(F.Trigger, {
3355
- className: L("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger, wr[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3566
+ children: [/* @__PURE__ */ v(P.Trigger, {
3567
+ className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger, Vr[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3356
3568
  "data-state": l,
3357
3569
  "data-size": u,
3358
3570
  "data-disabled": i || void 0,
@@ -3366,12 +3578,12 @@ function Tr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3366
3578
  children: "*"
3367
3579
  })]
3368
3580
  }),
3369
- /* @__PURE__ */ _(F.Value, {
3370
- className: L("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", pn, E.text),
3581
+ /* @__PURE__ */ _(P.Value, {
3582
+ className: I("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", pn, E.text),
3371
3583
  placeholder: r
3372
3584
  }),
3373
- /* @__PURE__ */ _(F.Icon, {
3374
- className: L("inline-flex shrink-0 items-center justify-center rounded-md text-eds-neutral-elements", E.icon),
3585
+ /* @__PURE__ */ _(P.Icon, {
3586
+ className: I("inline-flex shrink-0 items-center justify-center rounded-md text-eds-neutral-elements", E.icon),
3375
3587
  "aria-hidden": !0,
3376
3588
  children: /* @__PURE__ */ _(o, {
3377
3589
  className: "size-4 shrink-0",
@@ -3379,25 +3591,25 @@ function Tr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3379
3591
  })
3380
3592
  })
3381
3593
  ]
3382
- }), /* @__PURE__ */ _(F.Portal, { children: /* @__PURE__ */ _(F.Positioner, {
3594
+ }), /* @__PURE__ */ _(P.Portal, { children: /* @__PURE__ */ _(P.Positioner, {
3383
3595
  className: yn,
3384
3596
  style: bn,
3385
3597
  positionMethod: "fixed",
3386
3598
  sideOffset: 4,
3387
- children: /* @__PURE__ */ _(F.Popup, {
3599
+ children: /* @__PURE__ */ _(P.Popup, {
3388
3600
  className: hn,
3389
- children: /* @__PURE__ */ _(F.List, {
3601
+ children: /* @__PURE__ */ _(P.List, {
3390
3602
  className: gn,
3391
- children: n.map((e) => /* @__PURE__ */ v(F.Item, {
3603
+ children: n.map((e) => /* @__PURE__ */ v(P.Item, {
3392
3604
  value: e,
3393
3605
  className: _n,
3394
- children: [/* @__PURE__ */ _(F.ItemIndicator, {
3606
+ children: [/* @__PURE__ */ _(P.ItemIndicator, {
3395
3607
  className: vn,
3396
3608
  children: /* @__PURE__ */ _(a, {
3397
3609
  size: 14,
3398
3610
  "aria-hidden": !0
3399
3611
  })
3400
- }), /* @__PURE__ */ _(F.ItemText, {
3612
+ }), /* @__PURE__ */ _(P.ItemText, {
3401
3613
  className: "block min-w-0 flex-1 text-left",
3402
3614
  children: b ? b(e) : e.label
3403
3615
  })]
@@ -3417,7 +3629,7 @@ function Tr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3417
3629
  }
3418
3630
  //#endregion
3419
3631
  //#region src/components/Text/Text.tsx
3420
- var Er = {
3632
+ var Ur = {
3421
3633
  variant: {
3422
3634
  heading1: {
3423
3635
  classes: "text-3xl font-semibold",
@@ -3474,29 +3686,29 @@ var Er = {
3474
3686
  description: "Large text"
3475
3687
  }
3476
3688
  }
3477
- }, Dr = {
3689
+ }, Wr = {
3478
3690
  variant: "body",
3479
3691
  size: "md"
3480
- }, Or = /* @__PURE__ */ new Set([
3692
+ }, Gr = /* @__PURE__ */ new Set([
3481
3693
  "heading1",
3482
3694
  "heading2",
3483
3695
  "heading3"
3484
- ]), kr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3485
- function Ar({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3486
- let l = kr.has(e), u = Or.has(e), d = w(() => o || (l || u ? "span" : "p"), [
3696
+ ]), Kr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3697
+ function qr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3698
+ let l = Kr.has(e), u = Gr.has(e), d = w(() => o || (l || u ? "span" : "p"), [
3487
3699
  o,
3488
3700
  l,
3489
3701
  u
3490
- ]), f = R(Er.variant, e, Dr.variant), p = R(Er.size, n ?? "md", Dr.size);
3702
+ ]), f = L(Ur.variant, e, Wr.variant), p = L(Ur.size, n ?? "md", Wr.size);
3491
3703
  return /* @__PURE__ */ _(d, {
3492
3704
  ref: c,
3493
3705
  "data-eds-component": "Text",
3494
- className: L(f.classes, !u && p.classes, !u && t && "font-medium", r && "min-w-0 truncate", a),
3706
+ className: I(f.classes, !u && p.classes, !u && t && "font-medium", r && "min-w-0 truncate", a),
3495
3707
  ...s,
3496
3708
  children: i
3497
3709
  });
3498
3710
  }
3499
- var jr = x(Ar), Mr = {
3711
+ var Jr = x(qr), Yr = {
3500
3712
  layout: {
3501
3713
  auto: {
3502
3714
  classes: "",
@@ -3545,17 +3757,17 @@ var jr = x(Ar), Mr = {
3545
3757
  description: "Pin column to the right edge of the scroll container"
3546
3758
  }
3547
3759
  }
3548
- }, Nr = (e, t) => {
3549
- let n = R(Mr.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
3550
- return t === "cell" ? L(n, r, "bg-white", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white" : "before:bg-gradient-to-l before:from-transparent before:to-white") : L(n, r, "bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-eds-neutral-background");
3551
- }, Pr = {
3760
+ }, Xr = (e, t) => {
3761
+ let n = L(Yr.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
3762
+ return t === "cell" ? I(n, r, "bg-white", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white" : "before:bg-gradient-to-l before:from-transparent before:to-white") : I(n, r, "bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-eds-neutral-background");
3763
+ }, Zr = {
3552
3764
  layout: "auto",
3553
3765
  variant: "default",
3554
3766
  dividers: "row"
3555
- }, Fr = x(({ layout: e = "auto", dividers: t = Pr.dividers, className: n, containerClassName: r, ...i }, a) => {
3556
- let o = L("isolate w-full", R(Mr.layout, e, Pr.layout).classes, R(Mr.dividers, t, Pr.dividers).classes, "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-sm", "[&_th]:bg-eds-neutral-background", "text-sm text-left text-eds-neutral-main", n);
3767
+ }, Qr = x(({ layout: e = "auto", dividers: t = Zr.dividers, className: n, containerClassName: r, ...i }, a) => {
3768
+ let o = I("isolate w-full", L(Yr.layout, e, Zr.layout).classes, L(Yr.dividers, t, Zr.dividers).classes, "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-sm", "[&_th]:bg-eds-neutral-background", "text-sm text-left text-eds-neutral-main", n);
3557
3769
  return /* @__PURE__ */ _("div", {
3558
- className: L("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", r),
3770
+ className: I("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", r),
3559
3771
  children: /* @__PURE__ */ _("table", {
3560
3772
  ref: a,
3561
3773
  "data-eds-component": "Table",
@@ -3563,52 +3775,52 @@ var jr = x(Ar), Mr = {
3563
3775
  className: o
3564
3776
  })
3565
3777
  });
3566
- }), Ir = x(({ variant: e = "default", sticky: t, ...n }, r) => {
3567
- let i = e === "compact", a = L("group/header", i && "[&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
3778
+ }), $r = x(({ variant: e = "default", sticky: t, ...n }, r) => {
3779
+ let i = e === "compact", a = I("group/header", i && "[&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
3568
3780
  return /* @__PURE__ */ _("thead", {
3569
3781
  ref: r,
3570
3782
  ...n,
3571
3783
  className: a,
3572
3784
  ...i && { "data-compact": "" }
3573
3785
  });
3574
- }), Lr = x(({ sticky: e, ...t }, n) => {
3575
- let r = L("group relative", e && Nr(e, "head"), t.className);
3786
+ }), ei = x(({ sticky: e, ...t }, n) => {
3787
+ let r = I("group relative", e && Xr(e, "head"), t.className);
3576
3788
  return /* @__PURE__ */ _("th", {
3577
3789
  ref: n,
3578
3790
  ...t,
3579
3791
  className: r
3580
3792
  });
3581
- }), Rr = x(({ variant: e = Pr.variant, ...t }, n) => {
3582
- let r = L(R(Mr.variant, e, Pr.variant).classes, t.className);
3793
+ }), ti = x(({ variant: e = Zr.variant, ...t }, n) => {
3794
+ let r = I(L(Yr.variant, e, Zr.variant).classes, t.className);
3583
3795
  return /* @__PURE__ */ _("tr", {
3584
3796
  ref: n,
3585
3797
  ...t,
3586
3798
  className: r
3587
3799
  });
3588
- }), zr = x((e, t) => /* @__PURE__ */ _("tbody", {
3800
+ }), ni = x((e, t) => /* @__PURE__ */ _("tbody", {
3589
3801
  ref: t,
3590
3802
  ...e
3591
- })), Br = x(({ sticky: e, ...t }, n) => {
3592
- let r = L(e && Nr(e, "cell"), t.className);
3803
+ })), ri = x(({ sticky: e, ...t }, n) => {
3804
+ let r = I(e && Xr(e, "cell"), t.className);
3593
3805
  return /* @__PURE__ */ _("td", {
3594
3806
  ref: n,
3595
3807
  ...t,
3596
3808
  className: r
3597
3809
  });
3598
- }), Vr = x((e, t) => /* @__PURE__ */ _("tfoot", {
3810
+ }), ii = x((e, t) => /* @__PURE__ */ _("tfoot", {
3599
3811
  ref: t,
3600
3812
  ...e
3601
- })), Hr = x((e, t) => /* @__PURE__ */ _("button", {
3813
+ })), ai = x((e, t) => /* @__PURE__ */ _("button", {
3602
3814
  ref: t,
3603
3815
  ...e,
3604
3816
  type: "button",
3605
3817
  "aria-label": "Redimensionar coluna",
3606
- className: L("opacity-0 h-full group-hover:opacity-100 focus-visible:opacity-100", "w-[10px]", "flex items-center justify-center", "cursor-col-resize touch-none select-none", "absolute top-0 right-0", "m-0 bg-white p-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", e.className),
3818
+ className: I("opacity-0 h-full group-hover:opacity-100 focus-visible:opacity-100", "w-[10px]", "flex items-center justify-center", "cursor-col-resize touch-none select-none", "absolute top-0 right-0", "m-0 bg-white p-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", e.className),
3607
3819
  children: /* @__PURE__ */ _("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
3608
- })), Ur = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(Br, {
3820
+ })), oi = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(ri, {
3609
3821
  ref: o,
3610
3822
  ...a,
3611
- className: L("w-10 leading-none", a.className),
3823
+ className: I("w-10 leading-none", a.className),
3612
3824
  children: /* @__PURE__ */ _(rn, {
3613
3825
  checked: e,
3614
3826
  indeterminate: t,
@@ -3617,10 +3829,10 @@ var jr = x(Ar), Mr = {
3617
3829
  disabled: i,
3618
3830
  className: "relative before:absolute before:-inset-3 before:content-['']"
3619
3831
  })
3620
- })), Wr = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(Lr, {
3832
+ })), si = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(ei, {
3621
3833
  ref: o,
3622
3834
  ...a,
3623
- className: L("w-10 leading-none", a.className),
3835
+ className: I("w-10 leading-none", a.className),
3624
3836
  children: /* @__PURE__ */ _(rn, {
3625
3837
  checked: e,
3626
3838
  indeterminate: t,
@@ -3630,38 +3842,38 @@ var jr = x(Ar), Mr = {
3630
3842
  className: "relative before:absolute before:-inset-3 before:content-['']"
3631
3843
  })
3632
3844
  }));
3633
- Fr.displayName = "Table", zr.displayName = "Table.Body", Lr.displayName = "Table.Head", Rr.displayName = "Table.Row", Br.displayName = "Table.Cell", Vr.displayName = "Table.Footer", Ir.displayName = "Table.Header", Hr.displayName = "Table.ResizeHandle", Ur.displayName = "Table.CheckCell", Wr.displayName = "Table.CheckHead";
3634
- var Y = Object.assign(Fr, {
3635
- Header: Ir,
3636
- Head: Lr,
3637
- Row: Rr,
3638
- Body: zr,
3639
- Cell: Br,
3640
- CheckCell: Ur,
3641
- CheckHead: Wr,
3642
- Footer: Vr,
3643
- ResizeHandle: Hr
3845
+ Qr.displayName = "Table", ni.displayName = "Table.Body", ei.displayName = "Table.Head", ti.displayName = "Table.Row", ri.displayName = "Table.Cell", ii.displayName = "Table.Footer", $r.displayName = "Table.Header", ai.displayName = "Table.ResizeHandle", oi.displayName = "Table.CheckCell", si.displayName = "Table.CheckHead";
3846
+ var Y = Object.assign(Qr, {
3847
+ Header: $r,
3848
+ Head: ei,
3849
+ Row: ti,
3850
+ Body: ni,
3851
+ Cell: ri,
3852
+ CheckCell: oi,
3853
+ CheckHead: si,
3854
+ Footer: ii,
3855
+ ResizeHandle: ai
3644
3856
  });
3645
3857
  //#endregion
3646
3858
  //#region ../../node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
3647
- function Gr(e, t) {
3859
+ function ci(e, t) {
3648
3860
  return typeof e == "function" ? e(t) : e;
3649
3861
  }
3650
3862
  function X(e, t) {
3651
3863
  return (n) => {
3652
3864
  t.setState((t) => ({
3653
3865
  ...t,
3654
- [e]: Gr(n, t[e])
3866
+ [e]: ci(n, t[e])
3655
3867
  }));
3656
3868
  };
3657
3869
  }
3658
- function Kr(e) {
3870
+ function li(e) {
3659
3871
  return e instanceof Function;
3660
3872
  }
3661
- function qr(e) {
3873
+ function ui(e) {
3662
3874
  return Array.isArray(e) && e.every((e) => typeof e == "number");
3663
3875
  }
3664
- function Jr(e, t) {
3876
+ function di(e, t) {
3665
3877
  let n = [], r = (e) => {
3666
3878
  e.forEach((e) => {
3667
3879
  n.push(e);
@@ -3700,7 +3912,7 @@ function Q(e, t, n, r) {
3700
3912
  onChange: r
3701
3913
  };
3702
3914
  }
3703
- function Yr(e, t, n, r) {
3915
+ function fi(e, t, n, r) {
3704
3916
  let i = {
3705
3917
  id: `${t.id}_${n.id}`,
3706
3918
  row: t,
@@ -3725,7 +3937,7 @@ function Yr(e, t, n, r) {
3725
3937
  r.createCell == null || r.createCell(i, n, t, e);
3726
3938
  }, {}), i;
3727
3939
  }
3728
- function Xr(e, t, n, r) {
3940
+ function pi(e, t, n, r) {
3729
3941
  let i = {
3730
3942
  ...e._getDefaultColumnDef(),
3731
3943
  ...t
@@ -3752,7 +3964,7 @@ function Xr(e, t, n, r) {
3752
3964
  return c;
3753
3965
  }
3754
3966
  var $ = "debugHeaders";
3755
- function Zr(e, t, n) {
3967
+ function mi(e, t, n) {
3756
3968
  let r = {
3757
3969
  id: n.id ?? t.id,
3758
3970
  column: t,
@@ -3780,7 +3992,7 @@ function Zr(e, t, n) {
3780
3992
  t.createHeader == null || t.createHeader(r, e);
3781
3993
  }), r;
3782
3994
  }
3783
- var Qr = { createTable: (e) => {
3995
+ var hi = { createTable: (e) => {
3784
3996
  e.getHeaderGroups = Z(() => [
3785
3997
  e.getAllColumns(),
3786
3998
  e.getVisibleLeafColumns(),
@@ -3788,7 +4000,7 @@ var Qr = { createTable: (e) => {
3788
4000
  e.getState().columnPinning.right
3789
4001
  ], (t, n, r, i) => {
3790
4002
  let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
3791
- return $r(t, [
4003
+ return gi(t, [
3792
4004
  ...a,
3793
4005
  ...s,
3794
4006
  ...o
@@ -3798,15 +4010,15 @@ var Qr = { createTable: (e) => {
3798
4010
  e.getVisibleLeafColumns(),
3799
4011
  e.getState().columnPinning.left,
3800
4012
  e.getState().columnPinning.right
3801
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), $r(t, n, e, "center")), Q(e.options, $, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [
4013
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), gi(t, n, e, "center")), Q(e.options, $, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [
3802
4014
  e.getAllColumns(),
3803
4015
  e.getVisibleLeafColumns(),
3804
4016
  e.getState().columnPinning.left
3805
- ], (t, n, r) => $r(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), Q(e.options, $, "getLeftHeaderGroups")), e.getRightHeaderGroups = Z(() => [
4017
+ ], (t, n, r) => gi(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), Q(e.options, $, "getLeftHeaderGroups")), e.getRightHeaderGroups = Z(() => [
3806
4018
  e.getAllColumns(),
3807
4019
  e.getVisibleLeafColumns(),
3808
4020
  e.getState().columnPinning.right
3809
- ], (t, n, r) => $r(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), Q(e.options, $, "getRightHeaderGroups")), e.getFooterGroups = Z(() => [e.getHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getFooterGroups")), e.getLeftFooterGroups = Z(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getLeftFooterGroups")), e.getCenterFooterGroups = Z(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getCenterFooterGroups")), e.getRightFooterGroups = Z(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getRightFooterGroups")), e.getFlatHeaders = Z(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getFlatHeaders")), e.getLeftFlatHeaders = Z(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Z(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getCenterFlatHeaders")), e.getRightFlatHeaders = Z(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getRightFlatHeaders")), e.getCenterLeafHeaders = Z(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
4021
+ ], (t, n, r) => gi(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), Q(e.options, $, "getRightHeaderGroups")), e.getFooterGroups = Z(() => [e.getHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getFooterGroups")), e.getLeftFooterGroups = Z(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getLeftFooterGroups")), e.getCenterFooterGroups = Z(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getCenterFooterGroups")), e.getRightFooterGroups = Z(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getRightFooterGroups")), e.getFlatHeaders = Z(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getFlatHeaders")), e.getLeftFlatHeaders = Z(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Z(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getCenterFlatHeaders")), e.getRightFlatHeaders = Z(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getRightFlatHeaders")), e.getCenterLeafHeaders = Z(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
3810
4022
  var t;
3811
4023
  return !((t = e.subHeaders) != null && t.length);
3812
4024
  }), Q(e.options, $, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Z(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
@@ -3825,7 +4037,7 @@ var Qr = { createTable: (e) => {
3825
4037
  ...n[0]?.headers ?? []
3826
4038
  ].map((e) => e.getLeafHeaders()).flat(), Q(e.options, $, "getLeafHeaders"));
3827
4039
  } };
3828
- function $r(e, t, n, r) {
4040
+ function gi(e, t, n, r) {
3829
4041
  let i = 0, a = function(e, t) {
3830
4042
  t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
3831
4043
  var n;
@@ -3843,7 +4055,7 @@ function $r(e, t, n, r) {
3843
4055
  let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
3844
4056
  if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
3845
4057
  else {
3846
- let i = Zr(n, c, {
4058
+ let i = mi(n, c, {
3847
4059
  id: [
3848
4060
  r,
3849
4061
  t,
@@ -3860,7 +4072,7 @@ function $r(e, t, n, r) {
3860
4072
  i.headers.push(e), e.headerGroup = i;
3861
4073
  }), o.push(i), t > 0 && s(a, t - 1);
3862
4074
  };
3863
- s(t.map((e, t) => Zr(n, e, {
4075
+ s(t.map((e, t) => mi(n, e, {
3864
4076
  depth: i,
3865
4077
  index: t
3866
4078
  })), i - 1), o.reverse();
@@ -3878,7 +4090,7 @@ function $r(e, t, n, r) {
3878
4090
  });
3879
4091
  return c(o[0]?.headers ?? []), o;
3880
4092
  }
3881
- var ei = (e, t, n, r, i, a, o) => {
4093
+ var _i = (e, t, n, r, i, a, o) => {
3882
4094
  let s = {
3883
4095
  id: t,
3884
4096
  index: r,
@@ -3899,7 +4111,7 @@ var ei = (e, t, n, r, i, a, o) => {
3899
4111
  },
3900
4112
  renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
3901
4113
  subRows: a ?? [],
3902
- getLeafRows: () => Jr(s.subRows, (e) => e.subRows),
4114
+ getLeafRows: () => di(s.subRows, (e) => e.subRows),
3903
4115
  getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
3904
4116
  getParentRows: () => {
3905
4117
  let e = [], t = s;
@@ -3910,7 +4122,7 @@ var ei = (e, t, n, r, i, a, o) => {
3910
4122
  }
3911
4123
  return e.reverse();
3912
4124
  },
3913
- getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) => Yr(e, s, t, t.id)), Q(e.options, "debugRows", "getAllCells")),
4125
+ getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) => fi(e, s, t, t.id)), Q(e.options, "debugRows", "getAllCells")),
3914
4126
  _getAllCellsByColumnId: Z(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), Q(e.options, "debugRows", "getAllCellsByColumnId"))
3915
4127
  };
3916
4128
  for (let t = 0; t < e._features.length; t++) {
@@ -3918,66 +4130,66 @@ var ei = (e, t, n, r, i, a, o) => {
3918
4130
  n == null || n.createRow == null || n.createRow(s, e);
3919
4131
  }
3920
4132
  return s;
3921
- }, ti = { createColumn: (e, t) => {
4133
+ }, vi = { createColumn: (e, t) => {
3922
4134
  e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
3923
4135
  if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
3924
4136
  };
3925
- } }, ni = (e, t, n) => {
4137
+ } }, yi = (e, t, n) => {
3926
4138
  var r, i;
3927
4139
  let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
3928
4140
  return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
3929
4141
  };
3930
- ni.autoRemove = (e) => fi(e);
3931
- var ri = (e, t, n) => {
4142
+ yi.autoRemove = (e) => ki(e);
4143
+ var bi = (e, t, n) => {
3932
4144
  var r;
3933
4145
  return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
3934
4146
  };
3935
- ri.autoRemove = (e) => fi(e);
3936
- var ii = (e, t, n) => {
4147
+ bi.autoRemove = (e) => ki(e);
4148
+ var xi = (e, t, n) => {
3937
4149
  var r;
3938
4150
  return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
3939
4151
  };
3940
- ii.autoRemove = (e) => fi(e);
3941
- var ai = (e, t, n) => e.getValue(t)?.includes(n);
3942
- ai.autoRemove = (e) => fi(e);
3943
- var oi = (e, t, n) => !n.some((n) => {
4152
+ xi.autoRemove = (e) => ki(e);
4153
+ var Si = (e, t, n) => e.getValue(t)?.includes(n);
4154
+ Si.autoRemove = (e) => ki(e);
4155
+ var Ci = (e, t, n) => !n.some((n) => {
3944
4156
  var r;
3945
4157
  return !((r = e.getValue(t)) != null && r.includes(n));
3946
4158
  });
3947
- oi.autoRemove = (e) => fi(e) || !(e != null && e.length);
3948
- var si = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
3949
- si.autoRemove = (e) => fi(e) || !(e != null && e.length);
3950
- var ci = (e, t, n) => e.getValue(t) === n;
3951
- ci.autoRemove = (e) => fi(e);
3952
- var li = (e, t, n) => e.getValue(t) == n;
3953
- li.autoRemove = (e) => fi(e);
3954
- var ui = (e, t, n) => {
4159
+ Ci.autoRemove = (e) => ki(e) || !(e != null && e.length);
4160
+ var wi = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
4161
+ wi.autoRemove = (e) => ki(e) || !(e != null && e.length);
4162
+ var Ti = (e, t, n) => e.getValue(t) === n;
4163
+ Ti.autoRemove = (e) => ki(e);
4164
+ var Ei = (e, t, n) => e.getValue(t) == n;
4165
+ Ei.autoRemove = (e) => ki(e);
4166
+ var Di = (e, t, n) => {
3955
4167
  let [r, i] = n, a = e.getValue(t);
3956
4168
  return a >= r && a <= i;
3957
4169
  };
3958
- ui.resolveFilterValue = (e) => {
4170
+ Di.resolveFilterValue = (e) => {
3959
4171
  let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
3960
4172
  if (a > o) {
3961
4173
  let e = a;
3962
4174
  a = o, o = e;
3963
4175
  }
3964
4176
  return [a, o];
3965
- }, ui.autoRemove = (e) => fi(e) || fi(e[0]) && fi(e[1]);
3966
- var di = {
3967
- includesString: ni,
3968
- includesStringSensitive: ri,
3969
- equalsString: ii,
3970
- arrIncludes: ai,
3971
- arrIncludesAll: oi,
3972
- arrIncludesSome: si,
3973
- equals: ci,
3974
- weakEquals: li,
3975
- inNumberRange: ui
4177
+ }, Di.autoRemove = (e) => ki(e) || ki(e[0]) && ki(e[1]);
4178
+ var Oi = {
4179
+ includesString: yi,
4180
+ includesStringSensitive: bi,
4181
+ equalsString: xi,
4182
+ arrIncludes: Si,
4183
+ arrIncludesAll: Ci,
4184
+ arrIncludesSome: wi,
4185
+ equals: Ti,
4186
+ weakEquals: Ei,
4187
+ inNumberRange: Di
3976
4188
  };
3977
- function fi(e) {
4189
+ function ki(e) {
3978
4190
  return e == null || e === "";
3979
4191
  }
3980
- var pi = {
4192
+ var Ai = {
3981
4193
  getDefaultColumnDef: () => ({ filterFn: "auto" }),
3982
4194
  getInitialState: (e) => ({
3983
4195
  columnFilters: [],
@@ -3991,14 +4203,14 @@ var pi = {
3991
4203
  createColumn: (e, t) => {
3992
4204
  e.getAutoFilterFn = () => {
3993
4205
  let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
3994
- return typeof n == "string" ? di.includesString : typeof n == "number" ? di.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? di.equals : Array.isArray(n) ? di.arrIncludes : di.weakEquals;
3995
- }, e.getFilterFn = () => Kr(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? di[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
4206
+ return typeof n == "string" ? Oi.includesString : typeof n == "number" ? Oi.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? Oi.equals : Array.isArray(n) ? Oi.arrIncludes : Oi.weakEquals;
4207
+ }, e.getFilterFn = () => li(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? Oi[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
3996
4208
  var n;
3997
4209
  return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
3998
4210
  }, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
3999
4211
  t.setColumnFilters((t) => {
4000
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = Gr(n, i ? i.value : void 0);
4001
- if (mi(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
4212
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = ci(n, i ? i.value : void 0);
4213
+ if (ji(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
4002
4214
  let o = {
4003
4215
  id: e.id,
4004
4216
  value: a
@@ -4013,19 +4225,19 @@ var pi = {
4013
4225
  createTable: (e) => {
4014
4226
  e.setColumnFilters = (t) => {
4015
4227
  let n = e.getAllLeafColumns();
4016
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => Gr(t, e)?.filter((e) => {
4228
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => ci(t, e)?.filter((e) => {
4017
4229
  let t = n.find((t) => t.id === e.id);
4018
- return !(t && mi(t.getFilterFn(), e.value, t));
4230
+ return !(t && ji(t.getFilterFn(), e.value, t));
4019
4231
  }));
4020
4232
  }, e.resetColumnFilters = (t) => {
4021
4233
  e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
4022
4234
  }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
4023
4235
  }
4024
4236
  };
4025
- function mi(e, t, n) {
4237
+ function ji(e, t, n) {
4026
4238
  return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
4027
4239
  }
4028
- var hi = {
4240
+ var Mi = {
4029
4241
  sum: (e, t, n) => n.reduce((t, n) => {
4030
4242
  let r = n.getValue(e);
4031
4243
  return t + (typeof r == "number" ? r : 0);
@@ -4061,7 +4273,7 @@ var hi = {
4061
4273
  median: (e, t) => {
4062
4274
  if (!t.length) return;
4063
4275
  let n = t.map((t) => t.getValue(e));
4064
- if (!qr(n)) return;
4276
+ if (!ui(n)) return;
4065
4277
  if (n.length === 1) return n[0];
4066
4278
  let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
4067
4279
  return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -4069,7 +4281,7 @@ var hi = {
4069
4281
  unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
4070
4282
  uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
4071
4283
  count: (e, t) => t.length
4072
- }, gi = {
4284
+ }, Ni = {
4073
4285
  getDefaultColumnDef: () => ({
4074
4286
  aggregatedCell: (e) => {
4075
4287
  var t;
@@ -4095,11 +4307,11 @@ var hi = {
4095
4307
  };
4096
4308
  }, e.getAutoAggregationFn = () => {
4097
4309
  let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
4098
- if (typeof n == "number") return hi.sum;
4099
- if (Object.prototype.toString.call(n) === "[object Date]") return hi.extent;
4310
+ if (typeof n == "number") return Mi.sum;
4311
+ if (Object.prototype.toString.call(n) === "[object Date]") return Mi.extent;
4100
4312
  }, e.getAggregationFn = () => {
4101
4313
  if (!e) throw Error();
4102
- return Kr(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? hi[e.columnDef.aggregationFn];
4314
+ return li(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? Mi[e.columnDef.aggregationFn];
4103
4315
  };
4104
4316
  },
4105
4317
  createTable: (e) => {
@@ -4121,20 +4333,20 @@ var hi = {
4121
4333
  };
4122
4334
  }
4123
4335
  };
4124
- function _i(e, t, n) {
4336
+ function Pi(e, t, n) {
4125
4337
  if (!(t != null && t.length) || !n) return e;
4126
4338
  let r = e.filter((e) => !t.includes(e.id));
4127
4339
  return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
4128
4340
  }
4129
- var vi = {
4341
+ var Fi = {
4130
4342
  getInitialState: (e) => ({
4131
4343
  columnOrder: [],
4132
4344
  ...e
4133
4345
  }),
4134
4346
  getDefaultOptions: (e) => ({ onColumnOrderChange: X("columnOrder", e) }),
4135
4347
  createColumn: (e, t) => {
4136
- e.getIndex = Z((e) => [ki(t, e)], (t) => t.findIndex((t) => t.id === e.id), Q(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => ki(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
4137
- let r = ki(t, n);
4348
+ e.getIndex = Z((e) => [Ki(t, e)], (t) => t.findIndex((t) => t.id === e.id), Q(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Ki(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
4349
+ let r = Ki(t, n);
4138
4350
  return r[r.length - 1]?.id === e.id;
4139
4351
  };
4140
4352
  },
@@ -4156,15 +4368,15 @@ var vi = {
4156
4368
  }
4157
4369
  i = [...i, ...n];
4158
4370
  }
4159
- return _i(i, t, n);
4371
+ return Pi(i, t, n);
4160
4372
  }, Q(e.options, "debugTable", "_getOrderColumnsFn"));
4161
4373
  }
4162
- }, yi = () => ({
4374
+ }, Ii = () => ({
4163
4375
  left: [],
4164
4376
  right: []
4165
- }), bi = {
4377
+ }), Li = {
4166
4378
  getInitialState: (e) => ({
4167
- columnPinning: yi(),
4379
+ columnPinning: Ii(),
4168
4380
  ...e
4169
4381
  }),
4170
4382
  getDefaultOptions: (e) => ({ onColumnPinningChange: X("columnPinning", e) }),
@@ -4207,7 +4419,7 @@ var vi = {
4207
4419
  })), Q(t.options, "debugRows", "getRightVisibleCells"));
4208
4420
  },
4209
4421
  createTable: (e) => {
4210
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? yi() : e.initialState?.columnPinning ?? yi()), e.getIsSomeColumnsPinned = (t) => {
4422
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? Ii() : e.initialState?.columnPinning ?? Ii()), e.getIsSomeColumnsPinned = (t) => {
4211
4423
  let n = e.getState().columnPinning;
4212
4424
  return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
4213
4425
  }, e.getLeftLeafColumns = Z(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), Q(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = Z(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), Q(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = Z(() => [
@@ -4220,25 +4432,25 @@ var vi = {
4220
4432
  }, Q(e.options, "debugColumns", "getCenterLeafColumns"));
4221
4433
  }
4222
4434
  };
4223
- function xi(e) {
4435
+ function Ri(e) {
4224
4436
  return e || (typeof document < "u" ? document : null);
4225
4437
  }
4226
- var Si = {
4438
+ var zi = {
4227
4439
  size: 150,
4228
4440
  minSize: 20,
4229
4441
  maxSize: 2 ** 53 - 1
4230
- }, Ci = () => ({
4442
+ }, Bi = () => ({
4231
4443
  startOffset: null,
4232
4444
  startSize: null,
4233
4445
  deltaOffset: null,
4234
4446
  deltaPercentage: null,
4235
4447
  isResizingColumn: !1,
4236
4448
  columnSizingStart: []
4237
- }), wi = {
4238
- getDefaultColumnDef: () => Si,
4449
+ }), Vi = {
4450
+ getDefaultColumnDef: () => zi,
4239
4451
  getInitialState: (e) => ({
4240
4452
  columnSizing: {},
4241
- columnSizingInfo: Ci(),
4453
+ columnSizingInfo: Bi(),
4242
4454
  ...e
4243
4455
  }),
4244
4456
  getDefaultOptions: (e) => ({
@@ -4250,14 +4462,14 @@ var Si = {
4250
4462
  createColumn: (e, t) => {
4251
4463
  e.getSize = () => {
4252
4464
  let n = t.getState().columnSizing[e.id];
4253
- return Math.min(Math.max(e.columnDef.minSize ?? Si.minSize, n ?? e.columnDef.size ?? Si.size), e.columnDef.maxSize ?? Si.maxSize);
4465
+ return Math.min(Math.max(e.columnDef.minSize ?? zi.minSize, n ?? e.columnDef.size ?? zi.size), e.columnDef.maxSize ?? zi.maxSize);
4254
4466
  }, e.getStart = Z((e) => [
4255
4467
  e,
4256
- ki(t, e),
4468
+ Ki(t, e),
4257
4469
  t.getState().columnSizing
4258
4470
  ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getStart")), e.getAfter = Z((e) => [
4259
4471
  e,
4260
- ki(t, e),
4472
+ Ki(t, e),
4261
4473
  t.getState().columnSizing
4262
4474
  ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
4263
4475
  t.setColumnSizing((t) => {
@@ -4281,8 +4493,8 @@ var Si = {
4281
4493
  }, e.getResizeHandler = (n) => {
4282
4494
  let r = t.getColumn(e.column.id), i = r?.getCanResize();
4283
4495
  return (a) => {
4284
- if (!r || !i || (a.persist == null || a.persist(), Di(a) && a.touches && a.touches.length > 1)) return;
4285
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = Di(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
4496
+ if (!r || !i || (a.persist == null || a.persist(), Wi(a) && a.touches && a.touches.length > 1)) return;
4497
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = Wi(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
4286
4498
  typeof n == "number" && (t.setColumnSizingInfo((e) => {
4287
4499
  let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
4288
4500
  return e.columnSizingStart.forEach((e) => {
@@ -4307,7 +4519,7 @@ var Si = {
4307
4519
  deltaPercentage: null,
4308
4520
  columnSizingStart: []
4309
4521
  }));
4310
- }, p = xi(n), m = {
4522
+ }, p = Ri(n), m = {
4311
4523
  moveHandler: (e) => d(e.clientX),
4312
4524
  upHandler: (e) => {
4313
4525
  p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -4317,8 +4529,8 @@ var Si = {
4317
4529
  upHandler: (e) => {
4318
4530
  p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
4319
4531
  }
4320
- }, g = Ei() ? { passive: !1 } : !1;
4321
- Di(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
4532
+ }, g = Ui() ? { passive: !1 } : !1;
4533
+ Wi(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
4322
4534
  ...e,
4323
4535
  startOffset: c,
4324
4536
  startSize: o,
@@ -4334,12 +4546,12 @@ var Si = {
4334
4546
  e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
4335
4547
  e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
4336
4548
  }, e.resetHeaderSizeInfo = (t) => {
4337
- e.setColumnSizingInfo(t ? Ci() : e.initialState.columnSizingInfo ?? Ci());
4549
+ e.setColumnSizingInfo(t ? Bi() : e.initialState.columnSizingInfo ?? Bi());
4338
4550
  }, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
4339
4551
  }
4340
- }, Ti = null;
4341
- function Ei() {
4342
- if (typeof Ti == "boolean") return Ti;
4552
+ }, Hi = null;
4553
+ function Ui() {
4554
+ if (typeof Hi == "boolean") return Hi;
4343
4555
  let e = !1;
4344
4556
  try {
4345
4557
  let t = { get passive() {
@@ -4349,12 +4561,12 @@ function Ei() {
4349
4561
  } catch {
4350
4562
  e = !1;
4351
4563
  }
4352
- return Ti = e, Ti;
4564
+ return Hi = e, Hi;
4353
4565
  }
4354
- function Di(e) {
4566
+ function Wi(e) {
4355
4567
  return e.type === "touchstart";
4356
4568
  }
4357
- var Oi = {
4569
+ var Gi = {
4358
4570
  getInitialState: (e) => ({
4359
4571
  columnVisibility: {},
4360
4572
  ...e
@@ -4398,14 +4610,14 @@ var Oi = {
4398
4610
  };
4399
4611
  }
4400
4612
  };
4401
- function ki(e, t) {
4613
+ function Ki(e, t) {
4402
4614
  return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
4403
4615
  }
4404
- var Ai = { createTable: (e) => {
4616
+ var qi = { createTable: (e) => {
4405
4617
  e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
4406
4618
  if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
4407
4619
  };
4408
- } }, ji = {
4620
+ } }, Ji = {
4409
4621
  getInitialState: (e) => ({
4410
4622
  globalFilter: void 0,
4411
4623
  ...e
@@ -4423,16 +4635,16 @@ var Ai = { createTable: (e) => {
4423
4635
  e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
4424
4636
  },
4425
4637
  createTable: (e) => {
4426
- e.getGlobalAutoFilterFn = () => di.includesString, e.getGlobalFilterFn = () => {
4638
+ e.getGlobalAutoFilterFn = () => Oi.includesString, e.getGlobalFilterFn = () => {
4427
4639
  let { globalFilterFn: t } = e.options;
4428
- return Kr(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? di[t];
4640
+ return li(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? Oi[t];
4429
4641
  }, e.setGlobalFilter = (t) => {
4430
4642
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
4431
4643
  }, e.resetGlobalFilter = (t) => {
4432
4644
  e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
4433
4645
  };
4434
4646
  }
4435
- }, Mi = {
4647
+ }, Yi = {
4436
4648
  getInitialState: (e) => ({
4437
4649
  expanded: {},
4438
4650
  ...e
@@ -4509,14 +4721,14 @@ var Ai = { createTable: (e) => {
4509
4721
  };
4510
4722
  };
4511
4723
  }
4512
- }, Ni = 0, Pi = 10, Fi = () => ({
4513
- pageIndex: Ni,
4514
- pageSize: Pi
4515
- }), Ii = {
4724
+ }, Xi = 0, Zi = 10, Qi = () => ({
4725
+ pageIndex: Xi,
4726
+ pageSize: Zi
4727
+ }), $i = {
4516
4728
  getInitialState: (e) => ({
4517
4729
  ...e,
4518
4730
  pagination: {
4519
- ...Fi(),
4731
+ ...Qi(),
4520
4732
  ...e?.pagination
4521
4733
  }
4522
4734
  }),
@@ -4536,11 +4748,11 @@ var Ai = { createTable: (e) => {
4536
4748
  e.resetPageIndex(), n = !1;
4537
4749
  });
4538
4750
  }
4539
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => Gr(t, e)), e.resetPagination = (t) => {
4540
- e.setPagination(t ? Fi() : e.initialState.pagination ?? Fi());
4751
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => ci(t, e)), e.resetPagination = (t) => {
4752
+ e.setPagination(t ? Qi() : e.initialState.pagination ?? Qi());
4541
4753
  }, e.setPageIndex = (t) => {
4542
4754
  e.setPagination((n) => {
4543
- let r = Gr(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
4755
+ let r = ci(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
4544
4756
  return r = Math.max(0, Math.min(r, i)), {
4545
4757
  ...n,
4546
4758
  pageIndex: r
@@ -4548,13 +4760,13 @@ var Ai = { createTable: (e) => {
4548
4760
  });
4549
4761
  }, e.resetPageIndex = (t) => {
4550
4762
  var n;
4551
- e.setPageIndex(t ? Ni : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? Ni);
4763
+ e.setPageIndex(t ? Xi : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? Xi);
4552
4764
  }, e.resetPageSize = (t) => {
4553
4765
  var n;
4554
- e.setPageSize(t ? Pi : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? Pi);
4766
+ e.setPageSize(t ? Zi : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? Zi);
4555
4767
  }, e.setPageSize = (t) => {
4556
4768
  e.setPagination((e) => {
4557
- let n = Math.max(1, Gr(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
4769
+ let n = Math.max(1, ci(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
4558
4770
  return {
4559
4771
  ...e,
4560
4772
  pageIndex: i,
@@ -4562,7 +4774,7 @@ var Ai = { createTable: (e) => {
4562
4774
  };
4563
4775
  });
4564
4776
  }, e.setPageCount = (t) => e.setPagination((n) => {
4565
- let r = Gr(t, e.options.pageCount ?? -1);
4777
+ let r = ci(t, e.options.pageCount ?? -1);
4566
4778
  return typeof r == "number" && (r = Math.max(-1, r)), {
4567
4779
  ...n,
4568
4780
  pageCount: r
@@ -4575,12 +4787,12 @@ var Ai = { createTable: (e) => {
4575
4787
  return n === -1 ? !0 : n === 0 ? !1 : t < n - 1;
4576
4788
  }, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
4577
4789
  }
4578
- }, Li = () => ({
4790
+ }, ea = () => ({
4579
4791
  top: [],
4580
4792
  bottom: []
4581
- }), Ri = {
4793
+ }), ta = {
4582
4794
  getInitialState: (e) => ({
4583
- rowPinning: Li(),
4795
+ rowPinning: ea(),
4584
4796
  ...e
4585
4797
  }),
4586
4798
  getDefaultOptions: (e) => ({ onRowPinningChange: X("rowPinning", e) }),
@@ -4622,7 +4834,7 @@ var Ai = { createTable: (e) => {
4622
4834
  };
4623
4835
  },
4624
4836
  createTable: (e) => {
4625
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? Li() : e.initialState?.rowPinning ?? Li()), e.getIsSomeRowsPinned = (t) => {
4837
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? ea() : e.initialState?.rowPinning ?? ea()), e.getIsSomeRowsPinned = (t) => {
4626
4838
  let n = e.getState().rowPinning;
4627
4839
  return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
4628
4840
  }, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -4640,7 +4852,7 @@ var Ai = { createTable: (e) => {
4640
4852
  return e.filter((e) => !r.has(e.id));
4641
4853
  }, Q(e.options, "debugRows", "getCenterRows"));
4642
4854
  }
4643
- }, zi = {
4855
+ }, na = {
4644
4856
  getInitialState: (e) => ({
4645
4857
  rowSelection: {},
4646
4858
  ...e
@@ -4665,17 +4877,17 @@ var Ai = { createTable: (e) => {
4665
4877
  }, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
4666
4878
  let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
4667
4879
  return e.getRowModel().rows.forEach((t) => {
4668
- Bi(i, t.id, r, !0, e);
4880
+ ra(i, t.id, r, !0, e);
4669
4881
  }), i;
4670
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? Vi(e, n) : {
4882
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? ia(e, n) : {
4671
4883
  rows: [],
4672
4884
  flatRows: [],
4673
4885
  rowsById: {}
4674
- }, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? Vi(e, n) : {
4886
+ }, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? ia(e, n) : {
4675
4887
  rows: [],
4676
4888
  flatRows: [],
4677
4889
  rowsById: {}
4678
- }, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? Vi(e, n) : {
4890
+ }, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? ia(e, n) : {
4679
4891
  rows: [],
4680
4892
  flatRows: [],
4681
4893
  rowsById: {}
@@ -4703,17 +4915,17 @@ var Ai = { createTable: (e) => {
4703
4915
  t.setRowSelection((a) => {
4704
4916
  if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
4705
4917
  let o = { ...a };
4706
- return Bi(o, e.id, n, r?.selectChildren ?? !0, t), o;
4918
+ return ra(o, e.id, n, r?.selectChildren ?? !0, t), o;
4707
4919
  });
4708
4920
  }, e.getIsSelected = () => {
4709
4921
  let { rowSelection: n } = t.getState();
4710
- return Hi(e, n);
4922
+ return aa(e, n);
4711
4923
  }, e.getIsSomeSelected = () => {
4712
4924
  let { rowSelection: n } = t.getState();
4713
- return Ui(e, n) === "some";
4925
+ return oa(e, n) === "some";
4714
4926
  }, e.getIsAllSubRowsSelected = () => {
4715
4927
  let { rowSelection: n } = t.getState();
4716
- return Ui(e, n) === "all";
4928
+ return oa(e, n) === "all";
4717
4929
  }, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
4718
4930
  let t = e.getCanSelect();
4719
4931
  return (n) => {
@@ -4721,16 +4933,16 @@ var Ai = { createTable: (e) => {
4721
4933
  };
4722
4934
  };
4723
4935
  }
4724
- }, Bi = (e, t, n, r, i) => {
4936
+ }, ra = (e, t, n, r, i) => {
4725
4937
  var a;
4726
4938
  let o = i.getRow(t, !0);
4727
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => Bi(e, t.id, n, r, i));
4939
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => ra(e, t.id, n, r, i));
4728
4940
  };
4729
- function Vi(e, t) {
4941
+ function ia(e, t) {
4730
4942
  let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
4731
4943
  return e.map((e) => {
4732
4944
  var t;
4733
- let o = Hi(e, n);
4945
+ let o = aa(e, n);
4734
4946
  if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
4735
4947
  ...e,
4736
4948
  subRows: a(e.subRows)
@@ -4743,32 +4955,32 @@ function Vi(e, t) {
4743
4955
  rowsById: i
4744
4956
  };
4745
4957
  }
4746
- function Hi(e, t) {
4958
+ function aa(e, t) {
4747
4959
  return t[e.id] ?? !1;
4748
4960
  }
4749
- function Ui(e, t, n) {
4961
+ function oa(e, t, n) {
4750
4962
  var r;
4751
4963
  if (!((r = e.subRows) != null && r.length)) return !1;
4752
4964
  let i = !0, a = !1;
4753
4965
  return e.subRows.forEach((e) => {
4754
- if (!(a && !i) && (e.getCanSelect() && (Hi(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
4755
- let n = Ui(e, t);
4966
+ if (!(a && !i) && (e.getCanSelect() && (aa(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
4967
+ let n = oa(e, t);
4756
4968
  n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
4757
4969
  }
4758
4970
  }), i ? "all" : a ? "some" : !1;
4759
4971
  }
4760
- var Wi = /([0-9]+)/gm, Gi = (e, t, n) => $i(Qi(e.getValue(n)).toLowerCase(), Qi(t.getValue(n)).toLowerCase()), Ki = (e, t, n) => $i(Qi(e.getValue(n)), Qi(t.getValue(n))), qi = (e, t, n) => Zi(Qi(e.getValue(n)).toLowerCase(), Qi(t.getValue(n)).toLowerCase()), Ji = (e, t, n) => Zi(Qi(e.getValue(n)), Qi(t.getValue(n))), Yi = (e, t, n) => {
4972
+ var sa = /([0-9]+)/gm, ca = (e, t, n) => ga(ha(e.getValue(n)).toLowerCase(), ha(t.getValue(n)).toLowerCase()), la = (e, t, n) => ga(ha(e.getValue(n)), ha(t.getValue(n))), ua = (e, t, n) => ma(ha(e.getValue(n)).toLowerCase(), ha(t.getValue(n)).toLowerCase()), da = (e, t, n) => ma(ha(e.getValue(n)), ha(t.getValue(n))), fa = (e, t, n) => {
4761
4973
  let r = e.getValue(n), i = t.getValue(n);
4762
4974
  return r > i ? 1 : r < i ? -1 : 0;
4763
- }, Xi = (e, t, n) => Zi(e.getValue(n), t.getValue(n));
4764
- function Zi(e, t) {
4975
+ }, pa = (e, t, n) => ma(e.getValue(n), t.getValue(n));
4976
+ function ma(e, t) {
4765
4977
  return e === t ? 0 : e > t ? 1 : -1;
4766
4978
  }
4767
- function Qi(e) {
4979
+ function ha(e) {
4768
4980
  return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
4769
4981
  }
4770
- function $i(e, t) {
4771
- let n = e.split(Wi).filter(Boolean), r = t.split(Wi).filter(Boolean);
4982
+ function ga(e, t) {
4983
+ let n = e.split(sa).filter(Boolean), r = t.split(sa).filter(Boolean);
4772
4984
  for (; n.length && r.length;) {
4773
4985
  let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
4774
4986
  if (isNaN(o[0])) {
@@ -4782,22 +4994,22 @@ function $i(e, t) {
4782
4994
  }
4783
4995
  return n.length - r.length;
4784
4996
  }
4785
- var ea = {
4786
- alphanumeric: Gi,
4787
- alphanumericCaseSensitive: Ki,
4788
- text: qi,
4789
- textCaseSensitive: Ji,
4790
- datetime: Yi,
4791
- basic: Xi
4792
- }, ta = [
4793
- Qr,
4794
- Oi,
4997
+ var _a = {
4998
+ alphanumeric: ca,
4999
+ alphanumericCaseSensitive: la,
5000
+ text: ua,
5001
+ textCaseSensitive: da,
5002
+ datetime: fa,
5003
+ basic: pa
5004
+ }, va = [
5005
+ hi,
5006
+ Gi,
5007
+ Fi,
5008
+ Li,
4795
5009
  vi,
4796
- bi,
4797
- ti,
4798
- pi,
4799
5010
  Ai,
4800
- ji,
5011
+ qi,
5012
+ Ji,
4801
5013
  {
4802
5014
  getInitialState: (e) => ({
4803
5015
  sorting: [],
@@ -4816,13 +5028,13 @@ var ea = {
4816
5028
  let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
4817
5029
  for (let t of n) {
4818
5030
  let n = t?.getValue(e.id);
4819
- if (Object.prototype.toString.call(n) === "[object Date]") return ea.datetime;
4820
- if (typeof n == "string" && (r = !0, n.split(Wi).length > 1)) return ea.alphanumeric;
5031
+ if (Object.prototype.toString.call(n) === "[object Date]") return _a.datetime;
5032
+ if (typeof n == "string" && (r = !0, n.split(sa).length > 1)) return _a.alphanumeric;
4821
5033
  }
4822
- return r ? ea.text : ea.basic;
5034
+ return r ? _a.text : _a.basic;
4823
5035
  }, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
4824
5036
  if (!e) throw Error();
4825
- return Kr(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? ea[e.columnDef.sortingFn];
5037
+ return li(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? _a[e.columnDef.sortingFn];
4826
5038
  }, e.toggleSorting = (n, r) => {
4827
5039
  let i = e.getNextSortingOrder(), a = n != null;
4828
5040
  t.setSorting((o) => {
@@ -4859,16 +5071,16 @@ var ea = {
4859
5071
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
4860
5072
  }
4861
5073
  },
4862
- gi,
4863
- Mi,
4864
- Ii,
4865
- Ri,
4866
- zi,
4867
- wi
5074
+ Ni,
5075
+ Yi,
5076
+ $i,
5077
+ ta,
5078
+ na,
5079
+ Vi
4868
5080
  ];
4869
- function na(e) {
5081
+ function ya(e) {
4870
5082
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
4871
- let t = [...ta, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
5083
+ let t = [...va, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
4872
5084
  ...r,
4873
5085
  ...e
4874
5086
  }, a = { ...e.initialState ?? {} };
@@ -4894,7 +5106,7 @@ function na(e) {
4894
5106
  n.setState(n.initialState);
4895
5107
  },
4896
5108
  setOptions: (e) => {
4897
- let t = Gr(e, n.options);
5109
+ let t = ci(e, n.options);
4898
5110
  n.options = i(t);
4899
5111
  },
4900
5112
  getState: () => n.options.state,
@@ -4925,7 +5137,7 @@ function na(e) {
4925
5137
  getAllColumns: Z(() => [n._getColumnDefs()], (e) => {
4926
5138
  let t = function(e, r, i) {
4927
5139
  return i === void 0 && (i = 0), e.map((e) => {
4928
- let a = Xr(n, e, i, r), o = e;
5140
+ let a = pi(n, e, i, r), o = e;
4929
5141
  return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
4930
5142
  });
4931
5143
  };
@@ -4946,7 +5158,7 @@ function na(e) {
4946
5158
  }
4947
5159
  return n;
4948
5160
  }
4949
- function ra() {
5161
+ function ba() {
4950
5162
  return (e) => Z(() => [e.options.data], (t) => {
4951
5163
  let n = {
4952
5164
  rows: [],
@@ -4956,7 +5168,7 @@ function ra() {
4956
5168
  i === void 0 && (i = 0);
4957
5169
  let o = [];
4958
5170
  for (let c = 0; c < t.length; c++) {
4959
- let l = ei(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
5171
+ let l = _i(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
4960
5172
  if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
4961
5173
  var s;
4962
5174
  l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -4969,28 +5181,28 @@ function ra() {
4969
5181
  }
4970
5182
  //#endregion
4971
5183
  //#region ../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-table/build/lib/index.mjs
4972
- function ia(e, t) {
4973
- return e ? aa(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
5184
+ function xa(e, t) {
5185
+ return e ? Sa(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
4974
5186
  }
4975
- function aa(e) {
4976
- return oa(e) || typeof e == "function" || sa(e);
5187
+ function Sa(e) {
5188
+ return Ca(e) || typeof e == "function" || wa(e);
4977
5189
  }
4978
- function oa(e) {
5190
+ function Ca(e) {
4979
5191
  return typeof e == "function" && (() => {
4980
5192
  let t = Object.getPrototypeOf(e);
4981
5193
  return t.prototype && t.prototype.isReactComponent;
4982
5194
  })();
4983
5195
  }
4984
- function sa(e) {
5196
+ function wa(e) {
4985
5197
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
4986
5198
  }
4987
- function ca(e) {
5199
+ function Ta(e) {
4988
5200
  let t = {
4989
5201
  state: {},
4990
5202
  onStateChange: () => {},
4991
5203
  renderFallbackValue: null,
4992
5204
  ...e
4993
- }, [n] = y.useState(() => ({ current: na(t) })), [r, i] = y.useState(() => n.current.initialState);
5205
+ }, [n] = y.useState(() => ({ current: ya(t) })), [r, i] = y.useState(() => n.current.initialState);
4994
5206
  return n.current.setOptions((t) => ({
4995
5207
  ...t,
4996
5208
  ...e,
@@ -5005,7 +5217,7 @@ function ca(e) {
5005
5217
  }
5006
5218
  //#endregion
5007
5219
  //#region src/components/DataTable/DataTable.tsx
5008
- function la({ direction: e }) {
5220
+ function Ea({ direction: e }) {
5009
5221
  return e === "asc" ? /* @__PURE__ */ _(n, {
5010
5222
  className: "size-3.5",
5011
5223
  "aria-hidden": !0
@@ -5017,17 +5229,17 @@ function la({ direction: e }) {
5017
5229
  "aria-hidden": !0
5018
5230
  });
5019
5231
  }
5020
- function ua({ columns: e, rows: t = 5, dividers: n }) {
5232
+ function Da({ columns: e, rows: t = 5, dividers: n }) {
5021
5233
  return /* @__PURE__ */ v(Y, {
5022
5234
  dividers: n,
5023
5235
  children: [/* @__PURE__ */ _(Y.Header, { children: /* @__PURE__ */ _(Y.Row, { children: e.map((e, t) => /* @__PURE__ */ _(Y.Head, { children: typeof e.header == "string" ? e.header : null }, e.id ?? t)) }) }), /* @__PURE__ */ _(Y.Body, { children: Array.from({ length: t }).map((t, n) => /* @__PURE__ */ _(Y.Row, { children: e.map((e, t) => /* @__PURE__ */ _(Y.Cell, { children: /* @__PURE__ */ _("div", { className: "h-4 w-full max-w-40 animate-pulse rounded bg-eds-neutral-background" }) }, t)) }, n)) })]
5024
5236
  });
5025
5237
  }
5026
- function da({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, onPageChange: a, search: o, sorting: l, onSortingChange: u, emptyStateTitle: f = "Nenhum resultado encontrado", emptyStateDescription: m, meta: h, "aria-label": g, className: y, dividers: b }) {
5027
- let x = l !== void 0 && !!u, S = ca({
5238
+ function Oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, onPageChange: a, search: o, sorting: l, onSortingChange: u, emptyStateTitle: f = "Nenhum resultado encontrado", emptyStateDescription: m, meta: h, "aria-label": g, className: y, dividers: b }) {
5239
+ let x = l !== void 0 && !!u, S = Ta({
5028
5240
  data: t,
5029
5241
  columns: e,
5030
- getCoreRowModel: ra(),
5242
+ getCoreRowModel: ba(),
5031
5243
  meta: h,
5032
5244
  state: x ? { sorting: l } : void 0,
5033
5245
  onSortingChange: u,
@@ -5036,11 +5248,11 @@ function da({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
5036
5248
  }), C = S.getRowModel().rows, ee = i ? Math.max(1, Math.ceil(i.total / Math.max(1, i.limit))) : 1, w = !!i && !!a && ee > 1;
5037
5249
  return /* @__PURE__ */ v("div", {
5038
5250
  "data-eds-component": "DataTable",
5039
- className: L("flex w-full flex-col gap-4", y),
5251
+ className: I("flex w-full flex-col gap-4", y),
5040
5252
  children: [
5041
5253
  o && /* @__PURE__ */ _("div", {
5042
5254
  className: "flex justify-end",
5043
- children: /* @__PURE__ */ _(br, {
5255
+ children: /* @__PURE__ */ _(Lr, {
5044
5256
  label: "Buscar",
5045
5257
  labelVariant: "floating",
5046
5258
  className: "w-full max-w-sm",
@@ -5060,13 +5272,13 @@ function da({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
5060
5272
  "aria-hidden": !0
5061
5273
  }), "Carregando..."]
5062
5274
  }),
5063
- n ? /* @__PURE__ */ _(ua, {
5275
+ n ? /* @__PURE__ */ _(Da, {
5064
5276
  columns: e,
5065
5277
  dividers: b
5066
- }) : r ? /* @__PURE__ */ _(lr, {
5278
+ }) : r ? /* @__PURE__ */ _(Er, {
5067
5279
  title: f,
5068
5280
  description: m ?? "Houve um erro ao buscar os dados. Tente novamente."
5069
- }) : C.length === 0 ? /* @__PURE__ */ _(lr, {
5281
+ }) : C.length === 0 ? /* @__PURE__ */ _(Er, {
5070
5282
  title: f,
5071
5283
  description: m
5072
5284
  }) : /* @__PURE__ */ v(Y, {
@@ -5080,10 +5292,10 @@ function da({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
5080
5292
  type: "button",
5081
5293
  className: "flex select-none items-center gap-1 font-semibold",
5082
5294
  onClick: e.column.getToggleSortingHandler(),
5083
- children: [ia(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ _(la, { direction: t })]
5084
- }) : ia(e.column.columnDef.header, e.getContext())
5295
+ children: [xa(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ _(Ea, { direction: t })]
5296
+ }) : xa(e.column.columnDef.header, e.getContext())
5085
5297
  }, e.id);
5086
- }) }, e.id)) }), /* @__PURE__ */ _(Y.Body, { children: C.map((e) => /* @__PURE__ */ _(Y.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ _(Y.Cell, { children: ia(e.column.columnDef.cell, e.getContext()) }, e.id)) }, e.id)) })]
5298
+ }) }, e.id)) }), /* @__PURE__ */ _(Y.Body, { children: C.map((e) => /* @__PURE__ */ _(Y.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ _(Y.Cell, { children: xa(e.column.columnDef.cell, e.getContext()) }, e.id)) }, e.id)) })]
5087
5299
  }),
5088
5300
  w && /* @__PURE__ */ v("div", {
5089
5301
  className: "flex items-center justify-center gap-2",
@@ -5121,31 +5333,31 @@ function da({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
5121
5333
  }
5122
5334
  //#endregion
5123
5335
  //#region src/components/Tabs/Tabs.tsx
5124
- var fa = {
5336
+ var ka = {
5125
5337
  variant: "segmented",
5126
5338
  size: "md"
5127
5339
  };
5128
- function pa({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = fa.variant, size: l = fa.size }) {
5129
- let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } = ha(d), g = ma(m, h);
5340
+ function Aa({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = ka.variant, size: l = ka.size }) {
5341
+ let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } = Ma(d), g = ja(m, h);
5130
5342
  if (u.length === 0) return null;
5131
5343
  let y = u[0]?.value, b = t !== void 0, x = {
5132
5344
  value: b ? t : void 0,
5133
5345
  defaultValue: b ? void 0 : n ?? y
5134
5346
  };
5135
- return /* @__PURE__ */ v(I.Root, {
5347
+ return /* @__PURE__ */ v(F.Root, {
5136
5348
  ...x,
5137
5349
  "data-eds-component": "Tabs",
5138
- className: L("relative isolate min-w-0 font-medium", d && (p ? "rounded-md" : "rounded-lg") + " ring ring-eds-outline-border", a),
5350
+ className: I("relative isolate min-w-0 font-medium", d && (p ? "rounded-md" : "rounded-lg") + " ring ring-eds-outline-border", a),
5139
5351
  onValueChange: (e) => {
5140
5352
  r?.(String(e));
5141
5353
  },
5142
- children: [d && /* @__PURE__ */ _("div", { className: L("absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-eds-neutral-background", p ? "h-6.5" : "h-9") }), /* @__PURE__ */ v(I.List, {
5354
+ children: [d && /* @__PURE__ */ _("div", { className: I("absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-eds-neutral-background", p ? "h-6.5" : "h-9") }), /* @__PURE__ */ v(F.List, {
5143
5355
  ref: m,
5144
5356
  activateOnFocus: i,
5145
5357
  "data-overflowing": h ? "" : void 0,
5146
5358
  ...g(),
5147
- className: L("relative flex min-w-0 shrink items-stretch", d && "overflow-x-auto rounded-lg bg-eds-neutral-background px-0.5 [--scroll-fade-width:3rem] scroll-px-(--scroll-fade-width)", d && h && "[mask-image:linear-gradient(to_right,transparent,black_var(--scroll-fade-width),black_calc(100%-var(--scroll-fade-width)),transparent)]", d && (p ? "h-6.5 rounded-md" : "h-9"), h && "cursor-grab active:cursor-grabbing", f && "gap-4 border-b border-eds-outline-border pb-2", f && (p ? "h-6.5" : "h-7.5"), o),
5148
- children: [u.map((e) => /* @__PURE__ */ _(I.Tab, {
5359
+ className: I("relative flex min-w-0 shrink items-stretch", d && "overflow-x-auto rounded-lg bg-eds-neutral-background px-0.5 [--scroll-fade-width:3rem] scroll-px-(--scroll-fade-width)", d && h && "[mask-image:linear-gradient(to_right,transparent,black_var(--scroll-fade-width),black_calc(100%-var(--scroll-fade-width)),transparent)]", d && (p ? "h-6.5 rounded-md" : "h-9"), h && "cursor-grab active:cursor-grabbing", f && "gap-4 border-b border-eds-outline-border pb-2", f && (p ? "h-6.5" : "h-7.5"), o),
5360
+ children: [u.map((e) => /* @__PURE__ */ _(F.Tab, {
5149
5361
  value: e.value,
5150
5362
  render: e.render,
5151
5363
  onClick: (e) => {
@@ -5155,16 +5367,16 @@ function pa({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
5155
5367
  inline: "nearest"
5156
5368
  });
5157
5369
  },
5158
- className: L("relative z-2 flex items-center rounded bg-transparent whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", h ? "cursor-grab active:cursor-grabbing" : "cursor-pointer", p ? "text-xs" : "text-base", d && "my-0.5 text-eds-neutral-elements hover:text-eds-neutral-main aria-selected:text-eds-neutral-main focus-visible:ring-inset", d && (p ? "px-2 rounded-sm" : "px-2.5 rounded-md"), f && "text-eds-neutral-elements hover:bg-eds-neutral-elements/10 hover:text-eds-neutral-main aria-selected:hover:bg-eds-neutral-elements/10 aria-selected:font-medium aria-selected:text-eds-neutral-main", f && (p ? "px-1.5 py-2.5" : "px-2 py-3"), e.className),
5370
+ className: I("relative z-2 flex items-center rounded bg-transparent whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", h ? "cursor-grab active:cursor-grabbing" : "cursor-pointer", p ? "text-xs" : "text-base", d && "my-0.5 text-eds-neutral-elements hover:text-eds-neutral-main aria-selected:text-eds-neutral-main focus-visible:ring-inset", d && (p ? "px-2 rounded-sm" : "px-2.5 rounded-md"), f && "text-eds-neutral-elements hover:bg-eds-neutral-elements/10 hover:text-eds-neutral-main aria-selected:hover:bg-eds-neutral-elements/10 aria-selected:font-medium aria-selected:text-eds-neutral-main", f && (p ? "px-1.5 py-2.5" : "px-2 py-3"), e.className),
5159
5371
  children: e.label
5160
- }, e.value)), /* @__PURE__ */ _(I.Indicator, { render: (e) => /* @__PURE__ */ _("div", {
5372
+ }, e.value)), /* @__PURE__ */ _(F.Indicator, { render: (e) => /* @__PURE__ */ _("div", {
5161
5373
  ...e,
5162
- className: L("absolute z-1 left-0", "w-(--active-tab-width) translate-x-(--active-tab-left) transition-all duration-200", "data-[rendered=false]:scale-90 data-[rendered=false]:opacity-0", d && L("top-(--active-tab-top) h-(--active-tab-height) bg-white shadow-sm ring ring-eds-outline-border", p ? "rounded" : "rounded-md"), f && "bottom-0 h-0.5 bg-eds-blue-main", s)
5374
+ className: I("absolute z-1 left-0", "w-(--active-tab-width) translate-x-(--active-tab-left) transition-all duration-200", "data-[rendered=false]:scale-90 data-[rendered=false]:opacity-0", d && I("top-(--active-tab-top) h-(--active-tab-height) bg-white shadow-sm ring ring-eds-outline-border", p ? "rounded" : "rounded-md"), f && "bottom-0 h-0.5 bg-eds-blue-main", s)
5163
5375
  }) })]
5164
5376
  })]
5165
5377
  });
5166
5378
  }
5167
- function ma(e, t) {
5379
+ function ja(e, t) {
5168
5380
  let n = T(null), r = T(!1);
5169
5381
  return () => ({
5170
5382
  onPointerDownCapture: (i) => {
@@ -5201,7 +5413,7 @@ function ma(e, t) {
5201
5413
  }
5202
5414
  });
5203
5415
  }
5204
- function ha(e) {
5416
+ function Ma(e) {
5205
5417
  let t = T(null), [n, r] = E(!1);
5206
5418
  return C(() => {
5207
5419
  if (!e) return;
@@ -5215,4 +5427,4 @@ function ha(e) {
5215
5427
  };
5216
5428
  }
5217
5429
  //#endregion
5218
- export { en as Attachment, Zt as AttachmentAction, Xt as AttachmentActions, qt as AttachmentContent, Yt as AttachmentDescription, $t as AttachmentGroup, Kt as AttachmentMedia, Jt as AttachmentTitle, Qt as AttachmentTrigger, ie as Button, U as COLORS, Pt as Calendar, Ht as Card, rn as Checkbox, Tn as Combobox, da as DataTable, An as DatePicker, Rn as DateTimePicker, Qn as Dialog, lr as Empty, or as FormDialog, jt as IconButton, br as Input, Tr as Select, Y as Table, pa as Tabs, jr as Text, Cr as Textarea };
5430
+ export { en as Attachment, Zt as AttachmentAction, Xt as AttachmentActions, qt as AttachmentContent, Yt as AttachmentDescription, $t as AttachmentGroup, Kt as AttachmentMedia, Jt as AttachmentTitle, Qt as AttachmentTrigger, oe as Button, se as COLORS, Pt as Calendar, Ht as Card, rn as Checkbox, Dn as Combobox, Oa as DataTable, Mn as DatePicker, tr as DateTimePicker, hr as Dialog, Er as Empty, Cr as FormDialog, jt as IconButton, Lr as Input, Hr as Select, Y as Table, Aa as Tabs, Jr as Text, Br as Textarea };