@vincisys/eyeson 0.4.7 → 0.4.11

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
@@ -1,8 +1,8 @@
1
1
  import { Button as e } from "@base-ui/react/button";
2
- import { CalendarDays as t, Check as n, ChevronDown as r, ChevronLeft as i, ChevronRight as a, Info as o, Loader2 as s, Minus as c, X as l } from "lucide-react";
3
- import { clsx as u } from "clsx";
4
- import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
5
- import { createContext as m, forwardRef as h, useContext as g, useEffect as _, useId as v, useMemo as y, useRef as b, useState as x } from "react";
2
+ import { CalendarClock as t, CalendarDays as n, Check as r, ChevronDown as i, ChevronLeft as a, ChevronRight as o, Info as s, Loader2 as c, Minus as l, X as u } from "lucide-react";
3
+ import { clsx as d } from "clsx";
4
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
5
+ import { createContext as h, forwardRef as g, useContext as _, useEffect as v, useId as ee, useMemo as y, useRef as b, useState as x } from "react";
6
6
  import { mergeProps as S } from "@base-ui/react/merge-props";
7
7
  import { useRender as C } from "@base-ui/react/use-render";
8
8
  import { Checkbox as w } from "@base-ui/react/checkbox";
@@ -11,22 +11,22 @@ import { Combobox as E } from "@base-ui/react/combobox";
11
11
  import { Popover as D } from "@base-ui/react/popover";
12
12
  import { Dialog as O } from "@base-ui/react/dialog";
13
13
  import { AlertDialog as k } from "@base-ui/react/alert-dialog";
14
- import { Input as A } from "@base-ui/react/input";
15
- import { Select as j } from "@base-ui/react/select";
16
- import { Tabs as M } from "@base-ui/react/tabs";
14
+ import { Input as te } from "@base-ui/react/input";
15
+ import { Select as A } from "@base-ui/react/select";
16
+ import { Tabs as j } from "@base-ui/react/tabs";
17
17
  //#region src/lib/utils.ts
18
- function N(...e) {
19
- return u(e);
18
+ function M(...e) {
19
+ return d(e);
20
20
  }
21
21
  //#endregion
22
22
  //#region src/utils/resolve-variant.ts
23
- function P(e, t, n) {
23
+ function N(e, t, n) {
24
24
  let r = e[t];
25
25
  return r === void 0 ? e[n] : r;
26
26
  }
27
27
  //#endregion
28
28
  //#region src/components/Button/Button.tsx
29
- var ee = /* @__PURE__ */ new Set([
29
+ var P = /* @__PURE__ */ new Set([
30
30
  "blue-background",
31
31
  "green-background",
32
32
  "green-main",
@@ -59,44 +59,44 @@ var ee = /* @__PURE__ */ new Set([
59
59
  lg: 16
60
60
  };
61
61
  function R({ variant: e = I.variant, size: t = I.size, fluid: n = !1 }) {
62
- let r = P(F.size, t, I.size), i = P(F.variant, e, I.variant);
63
- return N("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");
62
+ let r = N(F.size, t, I.size), i = N(F.variant, e, I.variant);
63
+ return M("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");
64
64
  }
65
- function z({ text: t = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: c = "md", fluid: l = !1, isLoading: u = !1, disabled: m, style: h, ...g }) {
66
- let _ = L[c], v = !!(m || u), y = !!(u || r), b = i === "end" ? "inline-end" : "inline-start", x = {
65
+ function z({ text: t = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: s = "md", fluid: l = !1, isLoading: u = !1, disabled: d, style: h, ...g }) {
66
+ let _ = L[s], v = !!(d || u), ee = !!(u || r), y = i === "end" ? "inline-end" : "inline-start", b = {
67
67
  "--eds-btn-accent": `var(--color-eds-${o})`,
68
- ...ee.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
68
+ ...P.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
69
69
  ...h
70
- }, S = y ? /* @__PURE__ */ f("span", {
70
+ }, x = ee ? /* @__PURE__ */ p("span", {
71
71
  className: "eds-btn-icon-wrap flex shrink-0 items-center justify-center",
72
- "data-icon": b,
72
+ "data-icon": y,
73
73
  "aria-hidden": !0,
74
- children: u ? /* @__PURE__ */ f(s, {
74
+ children: u ? /* @__PURE__ */ p(c, {
75
75
  className: "block size-full animate-eds-spin",
76
76
  size: _
77
- }) : r && /* @__PURE__ */ f(r, {
77
+ }) : r && /* @__PURE__ */ p(r, {
78
78
  className: "block size-full",
79
79
  size: _
80
80
  })
81
81
  }) : null;
82
- return /* @__PURE__ */ f(e, {
83
- className: N(R({
82
+ return /* @__PURE__ */ p(e, {
83
+ className: M(R({
84
84
  variant: a,
85
- size: c,
85
+ size: s,
86
86
  fluid: l
87
87
  }), n),
88
- style: x,
88
+ style: b,
89
89
  disabled: v,
90
90
  "data-eds-component": "Button",
91
91
  "data-loading": u || void 0,
92
92
  "aria-busy": u || void 0,
93
93
  ...g,
94
- children: i === "end" ? /* @__PURE__ */ p(d, { children: [t, S] }) : /* @__PURE__ */ p(d, { children: [S, t] })
94
+ children: i === "end" ? /* @__PURE__ */ m(f, { children: [t, x] }) : /* @__PURE__ */ m(f, { children: [x, t] })
95
95
  });
96
96
  }
97
97
  //#endregion
98
98
  //#region src/constants/colors.ts
99
- var B = [
99
+ var ne = [
100
100
  "blue-background",
101
101
  "blue-dark",
102
102
  "blue-main",
@@ -117,98 +117,98 @@ var B = [
117
117
  "red-dark",
118
118
  "red-main",
119
119
  "red-middle"
120
- ], te = 365.2425, V = 6048e5, ne = 864e5, re = 3600 * 24;
121
- re * 7, re * te / 12 * 3;
122
- var H = Symbol.for("constructDateFrom");
120
+ ], re = 365.2425, B = 6048e5, ie = 864e5, V = 3600 * 24;
121
+ V * 7, V * re / 12 * 3;
122
+ var ae = Symbol.for("constructDateFrom");
123
123
  //#endregion
124
124
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
125
- function U(e, t) {
126
- return typeof e == "function" ? e(t) : e && typeof e == "object" && H in e ? e[H](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
125
+ function H(e, t) {
126
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && ae in e ? e[ae](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
127
127
  }
128
128
  //#endregion
129
129
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
130
- function W(e, t) {
131
- return U(t || e, e);
130
+ function U(e, t) {
131
+ return H(t || e, e);
132
132
  }
133
133
  //#endregion
134
134
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
135
- function ie(e, t, n) {
136
- let r = W(e, n?.in);
137
- return isNaN(t) ? U(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
135
+ function W(e, t, n) {
136
+ let r = U(e, n?.in);
137
+ return isNaN(t) ? H(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
138
138
  }
139
139
  //#endregion
140
140
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
141
- function ae(e, t, n) {
142
- let r = W(e, n?.in);
143
- if (isNaN(t)) return U(n?.in || e, NaN);
141
+ function G(e, t, n) {
142
+ let r = U(e, n?.in);
143
+ if (isNaN(t)) return H(n?.in || e, NaN);
144
144
  if (!t) return r;
145
- let i = r.getDate(), a = U(n?.in || e, r.getTime());
145
+ let i = r.getDate(), a = H(n?.in || e, r.getTime());
146
146
  return a.setMonth(r.getMonth() + t + 1, 0), i >= a.getDate() ? a : (r.setFullYear(a.getFullYear(), a.getMonth(), i), r);
147
147
  }
148
148
  //#endregion
149
149
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
150
150
  var oe = {};
151
- function se() {
151
+ function K() {
152
152
  return oe;
153
153
  }
154
154
  //#endregion
155
155
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
156
- function G(e, t) {
157
- let n = se(), 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;
156
+ function q(e, t) {
157
+ let n = K(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = U(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
158
158
  return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
159
159
  }
160
160
  //#endregion
161
161
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
162
- function K(e, t) {
163
- return G(e, {
162
+ function J(e, t) {
163
+ return q(e, {
164
164
  ...t,
165
165
  weekStartsOn: 1
166
166
  });
167
167
  }
168
168
  //#endregion
169
169
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
170
- function q(e, t) {
171
- let n = W(e, t?.in), r = n.getFullYear(), i = U(n, 0);
170
+ function se(e, t) {
171
+ let n = U(e, t?.in), r = n.getFullYear(), i = H(n, 0);
172
172
  i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
173
- let a = K(i), o = U(n, 0);
173
+ let a = J(i), o = H(n, 0);
174
174
  o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
175
- let s = K(o);
175
+ let s = J(o);
176
176
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
177
177
  }
178
178
  //#endregion
179
179
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
180
180
  function ce(e) {
181
- let t = W(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
181
+ let t = U(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
182
182
  return n.setUTCFullYear(t.getFullYear()), e - +n;
183
183
  }
184
184
  //#endregion
185
185
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
186
186
  function le(e, ...t) {
187
- let n = U.bind(null, e || t.find((e) => typeof e == "object"));
187
+ let n = H.bind(null, e || t.find((e) => typeof e == "object"));
188
188
  return t.map(n);
189
189
  }
190
190
  //#endregion
191
191
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
192
192
  function ue(e, t) {
193
- let n = W(e, t?.in);
193
+ let n = U(e, t?.in);
194
194
  return n.setHours(0, 0, 0, 0), n;
195
195
  }
196
196
  //#endregion
197
197
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
198
198
  function de(e, t, n) {
199
199
  let [r, i] = le(n?.in, e, t), a = ue(r), o = ue(i), s = +a - ce(a), c = +o - ce(o);
200
- return Math.round((s - c) / ne);
200
+ return Math.round((s - c) / ie);
201
201
  }
202
202
  //#endregion
203
203
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
204
204
  function fe(e, t) {
205
- let n = q(e, t), r = U(t?.in || e, 0);
206
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), K(r);
205
+ let n = se(e, t), r = H(t?.in || e, 0);
206
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), J(r);
207
207
  }
208
208
  //#endregion
209
209
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructNow.js
210
210
  function pe(e) {
211
- return U(e, Date.now());
211
+ return H(e, Date.now());
212
212
  }
213
213
  //#endregion
214
214
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
@@ -224,30 +224,30 @@ function he(e) {
224
224
  //#endregion
225
225
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
226
226
  function ge(e) {
227
- return !(!he(e) && typeof e != "number" || isNaN(+W(e)));
227
+ return !(!he(e) && typeof e != "number" || isNaN(+U(e)));
228
228
  }
229
229
  //#endregion
230
230
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
231
231
  function _e(e, t) {
232
- let n = W(e, t?.in), r = n.getMonth();
232
+ let n = U(e, t?.in), r = n.getMonth();
233
233
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
234
234
  }
235
235
  //#endregion
236
236
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
237
237
  function ve(e, t) {
238
- let n = W(e, t?.in);
238
+ let n = U(e, t?.in);
239
239
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
240
240
  }
241
241
  //#endregion
242
242
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
243
243
  function ye(e, t) {
244
- let n = W(e, t?.in);
244
+ let n = U(e, t?.in);
245
245
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
246
246
  }
247
247
  //#endregion
248
248
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
249
249
  function be(e, t) {
250
- let n = se(), 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);
250
+ let n = K(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = U(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
251
251
  return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
252
252
  }
253
253
  //#endregion
@@ -364,7 +364,7 @@ var we = {
364
364
  }, Ee = (e, t, n, r) => Te[e];
365
365
  //#endregion
366
366
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
367
- function J(e) {
367
+ function Y(e) {
368
368
  return (t, n) => {
369
369
  let r = n?.context ? String(n.context) : "standalone", i;
370
370
  if (r === "formatting" && e.formattingValues) {
@@ -388,7 +388,7 @@ var De = {
388
388
  }
389
389
  return n + "th";
390
390
  },
391
- era: J({
391
+ era: Y({
392
392
  values: {
393
393
  narrow: ["B", "A"],
394
394
  abbreviated: ["BC", "AD"],
@@ -396,7 +396,7 @@ var De = {
396
396
  },
397
397
  defaultWidth: "wide"
398
398
  }),
399
- quarter: J({
399
+ quarter: Y({
400
400
  values: {
401
401
  narrow: [
402
402
  "1",
@@ -420,7 +420,7 @@ var De = {
420
420
  defaultWidth: "wide",
421
421
  argumentCallback: (e) => e - 1
422
422
  }),
423
- month: J({
423
+ month: Y({
424
424
  values: {
425
425
  narrow: [
426
426
  "J",
@@ -467,7 +467,7 @@ var De = {
467
467
  },
468
468
  defaultWidth: "wide"
469
469
  }),
470
- day: J({
470
+ day: Y({
471
471
  values: {
472
472
  narrow: [
473
473
  "S",
@@ -508,7 +508,7 @@ var De = {
508
508
  },
509
509
  defaultWidth: "wide"
510
510
  }),
511
- dayPeriod: J({
511
+ dayPeriod: Y({
512
512
  values: {
513
513
  narrow: {
514
514
  am: "a",
@@ -579,7 +579,7 @@ var De = {
579
579
  };
580
580
  //#endregion
581
581
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
582
- function Y(e) {
582
+ function X(e) {
583
583
  return (t, n = {}) => {
584
584
  let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
585
585
  if (!a) return null;
@@ -629,7 +629,7 @@ var je = {
629
629
  parsePattern: /\d+/i,
630
630
  valueCallback: (e) => parseInt(e, 10)
631
631
  }),
632
- era: Y({
632
+ era: X({
633
633
  matchPatterns: {
634
634
  narrow: /^(b|a)/i,
635
635
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
@@ -639,7 +639,7 @@ var je = {
639
639
  parsePatterns: { any: [/^b/i, /^(a|c)/i] },
640
640
  defaultParseWidth: "any"
641
641
  }),
642
- quarter: Y({
642
+ quarter: X({
643
643
  matchPatterns: {
644
644
  narrow: /^[1234]/i,
645
645
  abbreviated: /^q[1234]/i,
@@ -655,7 +655,7 @@ var je = {
655
655
  defaultParseWidth: "any",
656
656
  valueCallback: (e) => e + 1
657
657
  }),
658
- month: Y({
658
+ month: X({
659
659
  matchPatterns: {
660
660
  narrow: /^[jfmasond]/i,
661
661
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
@@ -694,7 +694,7 @@ var je = {
694
694
  },
695
695
  defaultParseWidth: "any"
696
696
  }),
697
- day: Y({
697
+ day: X({
698
698
  matchPatterns: {
699
699
  narrow: /^[smtwf]/i,
700
700
  short: /^(su|mo|tu|we|th|fr|sa)/i,
@@ -724,7 +724,7 @@ var je = {
724
724
  },
725
725
  defaultParseWidth: "any"
726
726
  }),
727
- dayPeriod: Y({
727
+ dayPeriod: X({
728
728
  matchPatterns: {
729
729
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
730
730
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
@@ -751,40 +751,40 @@ var je = {
751
751
  //#endregion
752
752
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
753
753
  function Me(e, t) {
754
- let n = W(e, t?.in);
754
+ let n = U(e, t?.in);
755
755
  return de(n, ye(n)) + 1;
756
756
  }
757
757
  //#endregion
758
758
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
759
759
  function Ne(e, t) {
760
- let n = W(e, t?.in), r = K(n) - +fe(n);
761
- return Math.round(r / V) + 1;
760
+ let n = U(e, t?.in), r = J(n) - +fe(n);
761
+ return Math.round(r / B) + 1;
762
762
  }
763
763
  //#endregion
764
764
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
765
765
  function Pe(e, t) {
766
- let n = W(e, t?.in), r = n.getFullYear(), i = se(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = U(t?.in || e, 0);
766
+ let n = U(e, t?.in), r = n.getFullYear(), i = K(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = H(t?.in || e, 0);
767
767
  o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
768
- let s = G(o, t), c = U(t?.in || e, 0);
768
+ let s = q(o, t), c = H(t?.in || e, 0);
769
769
  c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
770
- let l = G(c, t);
770
+ let l = q(c, t);
771
771
  return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
772
772
  }
773
773
  //#endregion
774
774
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
775
775
  function Fe(e, t) {
776
- let n = se(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Pe(e, t), a = U(t?.in || e, 0);
777
- return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), G(a, t);
776
+ let n = K(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Pe(e, t), a = H(t?.in || e, 0);
777
+ return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), q(a, t);
778
778
  }
779
779
  //#endregion
780
780
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
781
781
  function Ie(e, t) {
782
- let n = W(e, t?.in), r = G(n, t) - +Fe(n, t);
783
- return Math.round(r / V) + 1;
782
+ let n = U(e, t?.in), r = q(n, t) - +Fe(n, t);
783
+ return Math.round(r / B) + 1;
784
784
  }
785
785
  //#endregion
786
786
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
787
- function X(e, t) {
787
+ function Z(e, t) {
788
788
  return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
789
789
  }
790
790
  //#endregion
@@ -792,14 +792,14 @@ function X(e, t) {
792
792
  var Le = {
793
793
  y(e, t) {
794
794
  let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
795
- return X(t === "yy" ? r % 100 : r, t.length);
795
+ return Z(t === "yy" ? r % 100 : r, t.length);
796
796
  },
797
797
  M(e, t) {
798
798
  let n = e.getMonth();
799
- return t === "M" ? String(n + 1) : X(n + 1, 2);
799
+ return t === "M" ? String(n + 1) : Z(n + 1, 2);
800
800
  },
801
801
  d(e, t) {
802
- return X(e.getDate(), t.length);
802
+ return Z(e.getDate(), t.length);
803
803
  },
804
804
  a(e, t) {
805
805
  let n = e.getHours() / 12 >= 1 ? "pm" : "am";
@@ -812,20 +812,20 @@ var Le = {
812
812
  }
813
813
  },
814
814
  h(e, t) {
815
- return X(e.getHours() % 12 || 12, t.length);
815
+ return Z(e.getHours() % 12 || 12, t.length);
816
816
  },
817
817
  H(e, t) {
818
- return X(e.getHours(), t.length);
818
+ return Z(e.getHours(), t.length);
819
819
  },
820
820
  m(e, t) {
821
- return X(e.getMinutes(), t.length);
821
+ return Z(e.getMinutes(), t.length);
822
822
  },
823
823
  s(e, t) {
824
- return X(e.getSeconds(), t.length);
824
+ return Z(e.getSeconds(), t.length);
825
825
  },
826
826
  S(e, t) {
827
827
  let n = t.length, r = e.getMilliseconds();
828
- return X(Math.trunc(r * 10 ** (n - 3)), t.length);
828
+ return Z(Math.trunc(r * 10 ** (n - 3)), t.length);
829
829
  }
830
830
  }, Re = {
831
831
  am: "am",
@@ -856,19 +856,19 @@ var Le = {
856
856
  },
857
857
  Y: function(e, t, n, r) {
858
858
  let i = Pe(e, r), a = i > 0 ? i : 1 - i;
859
- return t === "YY" ? X(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : X(a, t.length);
859
+ return t === "YY" ? Z(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : Z(a, t.length);
860
860
  },
861
861
  R: function(e, t) {
862
- return X(q(e), t.length);
862
+ return Z(se(e), t.length);
863
863
  },
864
864
  u: function(e, t) {
865
- return X(e.getFullYear(), t.length);
865
+ return Z(e.getFullYear(), t.length);
866
866
  },
867
867
  Q: function(e, t, n) {
868
868
  let r = Math.ceil((e.getMonth() + 1) / 3);
869
869
  switch (t) {
870
870
  case "Q": return String(r);
871
- case "QQ": return X(r, 2);
871
+ case "QQ": return Z(r, 2);
872
872
  case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
873
873
  case "QQQ": return n.quarter(r, {
874
874
  width: "abbreviated",
@@ -888,7 +888,7 @@ var Le = {
888
888
  let r = Math.ceil((e.getMonth() + 1) / 3);
889
889
  switch (t) {
890
890
  case "q": return String(r);
891
- case "qq": return X(r, 2);
891
+ case "qq": return Z(r, 2);
892
892
  case "qo": return n.ordinalNumber(r, { unit: "quarter" });
893
893
  case "qqq": return n.quarter(r, {
894
894
  width: "abbreviated",
@@ -928,7 +928,7 @@ var Le = {
928
928
  let r = e.getMonth();
929
929
  switch (t) {
930
930
  case "L": return String(r + 1);
931
- case "LL": return X(r + 1, 2);
931
+ case "LL": return Z(r + 1, 2);
932
932
  case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
933
933
  case "LLL": return n.month(r, {
934
934
  width: "abbreviated",
@@ -946,18 +946,18 @@ var Le = {
946
946
  },
947
947
  w: function(e, t, n, r) {
948
948
  let i = Ie(e, r);
949
- return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : X(i, t.length);
949
+ return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : Z(i, t.length);
950
950
  },
951
951
  I: function(e, t, n) {
952
952
  let r = Ne(e);
953
- return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : X(r, t.length);
953
+ return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : Z(r, t.length);
954
954
  },
955
955
  d: function(e, t, n) {
956
956
  return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Le.d(e, t);
957
957
  },
958
958
  D: function(e, t, n) {
959
959
  let r = Me(e);
960
- return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : X(r, t.length);
960
+ return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Z(r, t.length);
961
961
  },
962
962
  E: function(e, t, n) {
963
963
  let r = e.getDay();
@@ -986,7 +986,7 @@ var Le = {
986
986
  let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
987
987
  switch (t) {
988
988
  case "e": return String(a);
989
- case "ee": return X(a, 2);
989
+ case "ee": return Z(a, 2);
990
990
  case "eo": return n.ordinalNumber(a, { unit: "day" });
991
991
  case "eee": return n.day(i, {
992
992
  width: "abbreviated",
@@ -1010,7 +1010,7 @@ var Le = {
1010
1010
  let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
1011
1011
  switch (t) {
1012
1012
  case "c": return String(a);
1013
- case "cc": return X(a, t.length);
1013
+ case "cc": return Z(a, t.length);
1014
1014
  case "co": return n.ordinalNumber(a, { unit: "day" });
1015
1015
  case "ccc": return n.day(i, {
1016
1016
  width: "abbreviated",
@@ -1034,7 +1034,7 @@ var Le = {
1034
1034
  let r = e.getDay(), i = r === 0 ? 7 : r;
1035
1035
  switch (t) {
1036
1036
  case "i": return String(i);
1037
- case "ii": return X(i, t.length);
1037
+ case "ii": return Z(i, t.length);
1038
1038
  case "io": return n.ordinalNumber(i, { unit: "day" });
1039
1039
  case "iii": return n.day(r, {
1040
1040
  width: "abbreviated",
@@ -1129,11 +1129,11 @@ var Le = {
1129
1129
  },
1130
1130
  K: function(e, t, n) {
1131
1131
  let r = e.getHours() % 12;
1132
- return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : X(r, t.length);
1132
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : Z(r, t.length);
1133
1133
  },
1134
1134
  k: function(e, t, n) {
1135
1135
  let r = e.getHours();
1136
- return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : X(r, t.length);
1136
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : Z(r, t.length);
1137
1137
  },
1138
1138
  m: function(e, t, n) {
1139
1139
  return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Le.m(e, t);
@@ -1182,21 +1182,21 @@ var Le = {
1182
1182
  }
1183
1183
  },
1184
1184
  t: function(e, t, n) {
1185
- return X(Math.trunc(e / 1e3), t.length);
1185
+ return Z(Math.trunc(e / 1e3), t.length);
1186
1186
  },
1187
1187
  T: function(e, t, n) {
1188
- return X(+e, t.length);
1188
+ return Z(+e, t.length);
1189
1189
  }
1190
1190
  };
1191
1191
  function Be(e, t = "") {
1192
1192
  let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
1193
- return a === 0 ? n + String(i) : n + String(i) + t + X(a, 2);
1193
+ return a === 0 ? n + String(i) : n + String(i) + t + Z(a, 2);
1194
1194
  }
1195
1195
  function Ve(e, t) {
1196
- return e % 60 == 0 ? (e > 0 ? "-" : "+") + X(Math.abs(e) / 60, 2) : He(e, t);
1196
+ return e % 60 == 0 ? (e > 0 ? "-" : "+") + Z(Math.abs(e) / 60, 2) : He(e, t);
1197
1197
  }
1198
1198
  function He(e, t = "") {
1199
- let n = e > 0 ? "-" : "+", r = Math.abs(e), i = X(Math.trunc(r / 60), 2), a = X(r % 60, 2);
1199
+ let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Z(Math.trunc(r / 60), 2), a = Z(r % 60, 2);
1200
1200
  return n + i + t + a;
1201
1201
  }
1202
1202
  //#endregion
@@ -1260,8 +1260,8 @@ function Qe(e, t, n) {
1260
1260
  //#endregion
1261
1261
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
1262
1262
  var $e = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, et = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, tt = /^'([^]*?)'?$/, nt = /''/g, rt = /[a-zA-Z]/;
1263
- function Z(e, t, n) {
1264
- let r = se(), i = n?.locale ?? r.locale ?? je, 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);
1263
+ function Q(e, t, n) {
1264
+ let r = K(), i = n?.locale ?? r.locale ?? je, 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 = U(e, n?.in);
1265
1265
  if (!ge(s)) throw RangeError("Invalid time value");
1266
1266
  let c = t.match(et).map((e) => {
1267
1267
  let t = e[0];
@@ -1309,34 +1309,62 @@ function it(e) {
1309
1309
  return t ? t[1].replace(nt, "'") : e;
1310
1310
  }
1311
1311
  //#endregion
1312
- //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
1312
+ //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getHours.js
1313
1313
  function at(e, t) {
1314
- return +W(e) > +W(t);
1314
+ return U(e, t?.in).getHours();
1315
1315
  }
1316
1316
  //#endregion
1317
- //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
1317
+ //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMinutes.js
1318
1318
  function ot(e, t) {
1319
- return +W(e) < +W(t);
1319
+ return U(e, t?.in).getMinutes();
1320
+ }
1321
+ //#endregion
1322
+ //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
1323
+ function st(e, t) {
1324
+ return +U(e) > +U(t);
1325
+ }
1326
+ //#endregion
1327
+ //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
1328
+ function ct(e, t) {
1329
+ return +U(e) < +U(t);
1320
1330
  }
1321
1331
  //#endregion
1322
1332
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
1323
- function st(e, t, n) {
1333
+ function lt(e, t, n) {
1324
1334
  let [r, i] = le(n?.in, e, t);
1325
1335
  return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
1326
1336
  }
1327
1337
  //#endregion
1328
1338
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isToday.js
1329
- function ct(e, t) {
1330
- return me(U(t?.in || e, e), pe(t?.in || e));
1339
+ function ut(e, t) {
1340
+ return me(H(t?.in || e, e), pe(t?.in || e));
1341
+ }
1342
+ //#endregion
1343
+ //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setHours.js
1344
+ function dt(e, t, n) {
1345
+ let r = U(e, n?.in);
1346
+ return r.setHours(t), r;
1347
+ }
1348
+ //#endregion
1349
+ //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setMinutes.js
1350
+ function ft(e, t, n) {
1351
+ let r = U(e, n?.in);
1352
+ return r.setMinutes(t), r;
1353
+ }
1354
+ //#endregion
1355
+ //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setSeconds.js
1356
+ function pt(e, t, n) {
1357
+ let r = U(e, n?.in);
1358
+ return r.setSeconds(t), r;
1331
1359
  }
1332
1360
  //#endregion
1333
1361
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/subMonths.js
1334
- function lt(e, t, n) {
1335
- return ae(e, -t, n);
1362
+ function mt(e, t, n) {
1363
+ return G(e, -t, n);
1336
1364
  }
1337
1365
  //#endregion
1338
1366
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js
1339
- var ut = {
1367
+ var ht = {
1340
1368
  lessThanXSeconds: {
1341
1369
  one: "menos de um segundo",
1342
1370
  other: "menos de {{count}} segundos"
@@ -1398,10 +1426,10 @@ var ut = {
1398
1426
  one: "quase 1 ano",
1399
1427
  other: "quase {{count}} anos"
1400
1428
  }
1401
- }, dt = (e, t, n) => {
1402
- let r, i = ut[e];
1429
+ }, gt = (e, t, n) => {
1430
+ let r, i = ht[e];
1403
1431
  return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", String(t)), n?.addSuffix ? n.comparison && n.comparison > 0 ? "em " + r : "há " + r : r;
1404
- }, ft = {
1432
+ }, _t = {
1405
1433
  date: Ce({
1406
1434
  formats: {
1407
1435
  full: "EEEE, d 'de' MMMM 'de' y",
@@ -1429,7 +1457,7 @@ var ut = {
1429
1457
  },
1430
1458
  defaultWidth: "full"
1431
1459
  })
1432
- }, pt = {
1460
+ }, vt = {
1433
1461
  lastWeek: (e) => {
1434
1462
  let t = e.getDay();
1435
1463
  return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
@@ -1439,12 +1467,12 @@ var ut = {
1439
1467
  tomorrow: "'amanhã às' p",
1440
1468
  nextWeek: "eeee 'às' p",
1441
1469
  other: "P"
1442
- }, mt = {
1470
+ }, yt = {
1443
1471
  code: "pt-BR",
1444
- formatDistance: dt,
1445
- formatLong: ft,
1472
+ formatDistance: gt,
1473
+ formatLong: _t,
1446
1474
  formatRelative: (e, t, n, r) => {
1447
- let i = pt[e];
1475
+ let i = vt[e];
1448
1476
  return typeof i == "function" ? i(t) : i;
1449
1477
  },
1450
1478
  localize: {
@@ -1452,7 +1480,7 @@ var ut = {
1452
1480
  let n = Number(e);
1453
1481
  return t?.unit === "week" ? n + "ª" : n + "º";
1454
1482
  },
1455
- era: J({
1483
+ era: Y({
1456
1484
  values: {
1457
1485
  narrow: ["AC", "DC"],
1458
1486
  abbreviated: ["AC", "DC"],
@@ -1460,7 +1488,7 @@ var ut = {
1460
1488
  },
1461
1489
  defaultWidth: "wide"
1462
1490
  }),
1463
- quarter: J({
1491
+ quarter: Y({
1464
1492
  values: {
1465
1493
  narrow: [
1466
1494
  "1",
@@ -1484,7 +1512,7 @@ var ut = {
1484
1512
  defaultWidth: "wide",
1485
1513
  argumentCallback: (e) => e - 1
1486
1514
  }),
1487
- month: J({
1515
+ month: Y({
1488
1516
  values: {
1489
1517
  narrow: [
1490
1518
  "j",
@@ -1531,7 +1559,7 @@ var ut = {
1531
1559
  },
1532
1560
  defaultWidth: "wide"
1533
1561
  }),
1534
- day: J({
1562
+ day: Y({
1535
1563
  values: {
1536
1564
  narrow: [
1537
1565
  "D",
@@ -1572,7 +1600,7 @@ var ut = {
1572
1600
  },
1573
1601
  defaultWidth: "wide"
1574
1602
  }),
1575
- dayPeriod: J({
1603
+ dayPeriod: Y({
1576
1604
  values: {
1577
1605
  narrow: {
1578
1606
  am: "a",
@@ -1647,7 +1675,7 @@ var ut = {
1647
1675
  parsePattern: /\d+/i,
1648
1676
  valueCallback: (e) => parseInt(e, 10)
1649
1677
  }),
1650
- era: Y({
1678
+ era: X({
1651
1679
  matchPatterns: {
1652
1680
  narrow: /^(ac|dc|a|d)/i,
1653
1681
  abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
@@ -1660,7 +1688,7 @@ var ut = {
1660
1688
  },
1661
1689
  defaultParseWidth: "any"
1662
1690
  }),
1663
- quarter: Y({
1691
+ quarter: X({
1664
1692
  matchPatterns: {
1665
1693
  narrow: /^[1234]/i,
1666
1694
  abbreviated: /^T[1234]/i,
@@ -1676,7 +1704,7 @@ var ut = {
1676
1704
  defaultParseWidth: "any",
1677
1705
  valueCallback: (e) => e + 1
1678
1706
  }),
1679
- month: Y({
1707
+ month: X({
1680
1708
  matchPatterns: {
1681
1709
  narrow: /^[jfmajsond]/i,
1682
1710
  abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
@@ -1715,7 +1743,7 @@ var ut = {
1715
1743
  },
1716
1744
  defaultParseWidth: "any"
1717
1745
  }),
1718
- day: Y({
1746
+ day: X({
1719
1747
  matchPatterns: {
1720
1748
  narrow: /^(dom|[23456]ª?|s[aá]b)/i,
1721
1749
  short: /^(dom|[23456]ª?|s[aá]b)/i,
@@ -1754,7 +1782,7 @@ var ut = {
1754
1782
  },
1755
1783
  defaultParseWidth: "any"
1756
1784
  }),
1757
- dayPeriod: Y({
1785
+ dayPeriod: X({
1758
1786
  matchPatterns: {
1759
1787
  narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
1760
1788
  any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
@@ -1777,7 +1805,7 @@ var ut = {
1777
1805
  weekStartsOn: 0,
1778
1806
  firstWeekContainsDate: 1
1779
1807
  }
1780
- }, ht = {
1808
+ }, bt = {
1781
1809
  sm: {
1782
1810
  classes: "size-[calc(1.75rem*1.188*1.1)] rounded-[min(var(--radius-eds-xs),12px)] [&_svg:not([class*='size-'])]:size-3.5",
1783
1811
  iconPx: 14
@@ -1791,12 +1819,12 @@ var ut = {
1791
1819
  iconPx: 16
1792
1820
  }
1793
1821
  };
1794
- function gt({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", size: o = "md", disabled: s, style: c, ...l }) {
1795
- let u = P(ht, o, I.size), d = P(F.variant, i, I.variant);
1796
- return /* @__PURE__ */ f(e, {
1822
+ function xt({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", size: o = "md", disabled: s, style: c, ...l }) {
1823
+ let u = N(bt, o, I.size), d = N(F.variant, i, I.variant);
1824
+ return /* @__PURE__ */ p(e, {
1797
1825
  style: {
1798
1826
  "--eds-btn-accent": `var(--color-eds-${a})`,
1799
- ...ee.has(a) ? { "--eds-btn-solid-fg": "#fff" } : {},
1827
+ ...P.has(a) ? { "--eds-btn-solid-fg": "#fff" } : {},
1800
1828
  ...c
1801
1829
  },
1802
1830
  disabled: s,
@@ -1805,8 +1833,8 @@ function gt({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
1805
1833
  "aria-label": n,
1806
1834
  title: n,
1807
1835
  "data-eds-component": "IconButton",
1808
- className: N("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", u.classes, d.classes, r),
1809
- children: /* @__PURE__ */ f(t, {
1836
+ className: M("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", u.classes, d.classes, r),
1837
+ children: /* @__PURE__ */ p(t, {
1810
1838
  size: u.iconPx,
1811
1839
  "aria-hidden": !0
1812
1840
  })
@@ -1814,7 +1842,7 @@ function gt({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
1814
1842
  }
1815
1843
  //#endregion
1816
1844
  //#region src/components/Calendar/Calendar.tsx
1817
- var _t = [
1845
+ var St = [
1818
1846
  "Dom",
1819
1847
  "Seg",
1820
1848
  "Ter",
@@ -1823,95 +1851,95 @@ var _t = [
1823
1851
  "Sex",
1824
1852
  "Sáb"
1825
1853
  ];
1826
- function vt(e, t) {
1827
- let n = G(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
1828
- for (let e = n; e <= r; e = ie(e, 1)) i.push(e);
1854
+ function Ct(e, t) {
1855
+ let n = q(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
1856
+ for (let e = n; e <= r; e = W(e, 1)) i.push(e);
1829
1857
  return i;
1830
1858
  }
1831
- function yt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: o = 3, weekStartsOn: s = 0, onDayClick: c, onEventClick: l, renderEvent: u, showNavigation: d = !0, className: m }) {
1832
- let [h, g] = x(() => t ?? /* @__PURE__ */ new Date()), _ = e !== void 0, v = _ ? e : h, b = y(() => [..._t.slice(s), ..._t.slice(0, s)], [s]), S = y(() => vt(v, s), [v, s]), C = y(() => {
1859
+ function wt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: i = 3, weekStartsOn: s = 0, onDayClick: c, onEventClick: l, renderEvent: u, showNavigation: d = !0, className: f }) {
1860
+ let [h, g] = x(() => t ?? /* @__PURE__ */ new Date()), _ = e !== void 0, v = _ ? e : h, ee = y(() => [...St.slice(s), ...St.slice(0, s)], [s]), b = y(() => Ct(v, s), [v, s]), S = y(() => {
1833
1861
  let e = /* @__PURE__ */ new Map();
1834
1862
  for (let t of r) {
1835
- let n = Z(t.date, "yyyy-MM-dd"), r = e.get(n);
1863
+ let n = Q(t.date, "yyyy-MM-dd"), r = e.get(n);
1836
1864
  r ? r.push(t) : e.set(n, [t]);
1837
1865
  }
1838
1866
  return e;
1839
1867
  }, [r]);
1840
- function w(e) {
1868
+ function C(e) {
1841
1869
  _ || g(e), n?.(e);
1842
1870
  }
1843
- return /* @__PURE__ */ p("div", {
1844
- className: N("flex h-full w-full flex-col", m),
1871
+ return /* @__PURE__ */ m("div", {
1872
+ className: M("flex h-full w-full flex-col", f),
1845
1873
  "data-eds-component": "Calendar",
1846
- children: [d && /* @__PURE__ */ p("div", {
1874
+ children: [d && /* @__PURE__ */ m("div", {
1847
1875
  className: "mb-3 flex shrink-0 items-center justify-between",
1848
- children: [/* @__PURE__ */ f("span", {
1876
+ children: [/* @__PURE__ */ p("span", {
1849
1877
  className: "text-base font-medium text-eds-neutral-main capitalize",
1850
- children: Z(v, "MMMM yyyy", { locale: mt })
1851
- }), /* @__PURE__ */ p("div", {
1878
+ children: Q(v, "MMMM yyyy", { locale: yt })
1879
+ }), /* @__PURE__ */ m("div", {
1852
1880
  className: "flex items-center gap-1",
1853
- children: [/* @__PURE__ */ f(gt, {
1854
- icon: i,
1881
+ children: [/* @__PURE__ */ p(xt, {
1882
+ icon: a,
1855
1883
  label: "Mês anterior",
1856
1884
  size: "sm",
1857
- onClick: () => w(lt(v, 1))
1858
- }), /* @__PURE__ */ f(gt, {
1859
- icon: a,
1885
+ onClick: () => C(mt(v, 1))
1886
+ }), /* @__PURE__ */ p(xt, {
1887
+ icon: o,
1860
1888
  label: "Próximo mês",
1861
1889
  size: "sm",
1862
- onClick: () => w(ae(v, 1))
1890
+ onClick: () => C(G(v, 1))
1863
1891
  })]
1864
1892
  })]
1865
- }), /* @__PURE__ */ p("div", {
1893
+ }), /* @__PURE__ */ m("div", {
1866
1894
  className: "flex min-h-0 flex-1 flex-col",
1867
- children: [/* @__PURE__ */ f("div", {
1895
+ children: [/* @__PURE__ */ p("div", {
1868
1896
  className: "grid shrink-0 grid-cols-7",
1869
- children: b.map((e, t) => /* @__PURE__ */ f("div", {
1870
- className: N("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"),
1897
+ children: ee.map((e, t) => /* @__PURE__ */ p("div", {
1898
+ className: M("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"),
1871
1899
  children: e
1872
1900
  }, e))
1873
- }), /* @__PURE__ */ f("div", {
1901
+ }), /* @__PURE__ */ p("div", {
1874
1902
  className: "grid flex-1 auto-rows-fr grid-cols-7",
1875
- children: S.map((e, t) => {
1876
- let n = st(e, v), r = ct(e), i = Z(e, "yyyy-MM-dd"), a = C.get(i) ?? [], s = a.slice(0, o), d = a.length - s.length, m = n ? Z(e, "d") : Z(e, "d MMM", { locale: mt });
1877
- return /* @__PURE__ */ p("div", {
1878
- "data-date": i,
1903
+ children: b.map((e, t) => {
1904
+ let n = lt(e, v), r = ut(e), a = Q(e, "yyyy-MM-dd"), o = S.get(a) ?? [], s = o.slice(0, i), d = o.length - s.length, f = n ? Q(e, "d") : Q(e, "d MMM", { locale: yt });
1905
+ return /* @__PURE__ */ m("div", {
1906
+ "data-date": a,
1879
1907
  onClick: () => c?.(e),
1880
- className: N("flex flex-col gap-1 border-r border-b border-eds-neutral-disabled px-1.5 pt-1.5", t % 7 == 0 && "border-l", c && "cursor-pointer", n ? "bg-white" : "bg-eds-neutral-background"),
1908
+ className: M("flex flex-col gap-1 border-r border-b border-eds-neutral-disabled px-1.5 pt-1.5", t % 7 == 0 && "border-l", c && "cursor-pointer", n ? "bg-white" : "bg-eds-neutral-background"),
1881
1909
  children: [(() => {
1882
1910
  let e = {
1883
1911
  "aria-current": r ? "date" : void 0,
1884
1912
  "data-today": r || void 0,
1885
- className: N("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")
1913
+ className: M("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")
1886
1914
  };
1887
- return c ? /* @__PURE__ */ f("button", {
1915
+ return c ? /* @__PURE__ */ p("button", {
1888
1916
  type: "button",
1889
1917
  ...e,
1890
- children: m
1891
- }) : /* @__PURE__ */ f("span", {
1918
+ children: f
1919
+ }) : /* @__PURE__ */ p("span", {
1892
1920
  ...e,
1893
- children: m
1921
+ children: f
1894
1922
  });
1895
- })(), /* @__PURE__ */ p("div", {
1923
+ })(), /* @__PURE__ */ m("div", {
1896
1924
  className: "flex flex-1 flex-col justify-center gap-1 overflow-hidden",
1897
- children: [s.map((e) => u ? /* @__PURE__ */ f("div", {
1925
+ children: [s.map((e) => u ? /* @__PURE__ */ p("div", {
1898
1926
  onClick: (e) => e.stopPropagation(),
1899
1927
  children: u(e)
1900
- }, e.id) : /* @__PURE__ */ p("button", {
1928
+ }, e.id) : /* @__PURE__ */ m("button", {
1901
1929
  type: "button",
1902
1930
  onClick: (t) => {
1903
1931
  t.stopPropagation(), l?.(e);
1904
1932
  },
1905
1933
  className: "flex h-8 shrink-0 items-center gap-2 rounded-eds-md bg-eds-neutral-background px-2 text-left text-sm text-eds-neutral-main",
1906
- children: [/* @__PURE__ */ f("span", {
1934
+ children: [/* @__PURE__ */ p("span", {
1907
1935
  className: "size-2 shrink-0 rounded-full bg-(--eds-calendar-dot)",
1908
1936
  style: { "--eds-calendar-dot": `var(--color-eds-${e.color})` },
1909
1937
  "aria-hidden": !0
1910
- }), /* @__PURE__ */ f("span", {
1938
+ }), /* @__PURE__ */ p("span", {
1911
1939
  className: "truncate",
1912
1940
  children: e.label
1913
1941
  })]
1914
- }, e.id)), d > 0 && /* @__PURE__ */ p("span", {
1942
+ }, e.id)), d > 0 && /* @__PURE__ */ m("span", {
1915
1943
  className: "px-2 text-xs text-eds-neutral-elements",
1916
1944
  children: [
1917
1945
  "+",
@@ -1920,7 +1948,7 @@ function yt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1920
1948
  ]
1921
1949
  })]
1922
1950
  })]
1923
- }, i);
1951
+ }, a);
1924
1952
  })
1925
1953
  })]
1926
1954
  })]
@@ -1928,174 +1956,174 @@ function yt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1928
1956
  }
1929
1957
  //#endregion
1930
1958
  //#region src/components/Card/Card.tsx
1931
- function bt({ className: e, ...t }) {
1932
- return /* @__PURE__ */ f("div", {
1959
+ function Tt({ className: e, ...t }) {
1960
+ return /* @__PURE__ */ p("div", {
1933
1961
  "data-eds-component": "Card",
1934
- className: N("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
1962
+ className: M("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
1935
1963
  ...t
1936
1964
  });
1937
1965
  }
1938
- function xt({ className: e, ...t }) {
1939
- return /* @__PURE__ */ f("div", {
1966
+ function Et({ className: e, ...t }) {
1967
+ return /* @__PURE__ */ p("div", {
1940
1968
  "data-slot": "card-header",
1941
- className: N("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),
1969
+ className: M("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),
1942
1970
  ...t
1943
1971
  });
1944
1972
  }
1945
- function St({ className: e, ...t }) {
1946
- return /* @__PURE__ */ f("h3", {
1973
+ function Dt({ className: e, ...t }) {
1974
+ return /* @__PURE__ */ p("h3", {
1947
1975
  "data-slot": "card-title",
1948
- className: N("text-lg leading-none font-semibold text-eds-neutral-main", e),
1976
+ className: M("text-lg leading-none font-semibold text-eds-neutral-main", e),
1949
1977
  ...t
1950
1978
  });
1951
1979
  }
1952
- function Ct({ className: e, ...t }) {
1953
- return /* @__PURE__ */ f("p", {
1980
+ function Ot({ className: e, ...t }) {
1981
+ return /* @__PURE__ */ p("p", {
1954
1982
  "data-slot": "card-description",
1955
- className: N("text-sm text-eds-neutral-elements", e),
1983
+ className: M("text-sm text-eds-neutral-elements", e),
1956
1984
  ...t
1957
1985
  });
1958
1986
  }
1959
- function wt({ className: e, ...t }) {
1960
- return /* @__PURE__ */ f("div", {
1987
+ function kt({ className: e, ...t }) {
1988
+ return /* @__PURE__ */ p("div", {
1961
1989
  "data-slot": "card-action",
1962
- className: N("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
1990
+ className: M("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
1963
1991
  ...t
1964
1992
  });
1965
1993
  }
1966
- function Tt({ className: e, ...t }) {
1967
- return /* @__PURE__ */ f("div", {
1994
+ function At({ className: e, ...t }) {
1995
+ return /* @__PURE__ */ p("div", {
1968
1996
  "data-slot": "card-content",
1969
- className: N("px-6", e),
1997
+ className: M("px-6", e),
1970
1998
  ...t
1971
1999
  });
1972
2000
  }
1973
- function Et({ className: e, ...t }) {
1974
- return /* @__PURE__ */ f("div", {
2001
+ function jt({ className: e, ...t }) {
2002
+ return /* @__PURE__ */ p("div", {
1975
2003
  "data-slot": "card-footer",
1976
- className: N("-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),
2004
+ className: M("-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),
1977
2005
  ...t
1978
2006
  });
1979
2007
  }
1980
- xt.displayName = "Card.Header", St.displayName = "Card.Title", Ct.displayName = "Card.Description", wt.displayName = "Card.Action", Tt.displayName = "Card.Content", Et.displayName = "Card.Footer";
1981
- var Dt = Object.assign(bt, {
1982
- Header: xt,
1983
- Title: St,
1984
- Description: Ct,
1985
- Action: wt,
1986
- Content: Tt,
1987
- Footer: Et
1988
- }), Ot = {
2008
+ Et.displayName = "Card.Header", Dt.displayName = "Card.Title", Ot.displayName = "Card.Description", kt.displayName = "Card.Action", At.displayName = "Card.Content", jt.displayName = "Card.Footer";
2009
+ var Mt = Object.assign(Tt, {
2010
+ Header: Et,
2011
+ Title: Dt,
2012
+ Description: Ot,
2013
+ Action: kt,
2014
+ Content: At,
2015
+ Footer: jt
2016
+ }), Nt = {
1989
2017
  default: { classes: "gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2" },
1990
2018
  sm: { classes: "gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5" },
1991
2019
  xs: { classes: "gap-1.5 rounded-eds-lil text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1" }
1992
- }, kt = {
2020
+ }, Pt = {
1993
2021
  horizontal: { classes: "min-w-40 items-center" },
1994
2022
  vertical: { classes: "w-24 flex-col has-data-[slot=attachment-content]:w-[7.5rem]" }
1995
2023
  };
1996
- function At({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
1997
- let a = P(Ot, n, "default"), o = P(kt, r, "horizontal");
1998
- return /* @__PURE__ */ f("div", {
2024
+ function Ft({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
2025
+ let a = N(Nt, n, "default"), o = N(Pt, r, "horizontal");
2026
+ return /* @__PURE__ */ p("div", {
1999
2027
  "data-eds-component": "Attachment",
2000
2028
  "data-slot": "attachment",
2001
2029
  "data-state": t,
2002
2030
  "data-size": n,
2003
2031
  "data-orientation": r,
2004
- className: N("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),
2032
+ className: M("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),
2005
2033
  ...i
2006
2034
  });
2007
2035
  }
2008
- function jt({ className: e, variant: t = "icon", ...n }) {
2009
- return /* @__PURE__ */ f("div", {
2036
+ function It({ className: e, variant: t = "icon", ...n }) {
2037
+ return /* @__PURE__ */ p("div", {
2010
2038
  "data-slot": "attachment-media",
2011
2039
  "data-variant": t,
2012
- className: N("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),
2040
+ className: M("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),
2013
2041
  ...n
2014
2042
  });
2015
2043
  }
2016
- function Mt({ className: e, ...t }) {
2017
- return /* @__PURE__ */ f("div", {
2044
+ function Lt({ className: e, ...t }) {
2045
+ return /* @__PURE__ */ p("div", {
2018
2046
  "data-slot": "attachment-content",
2019
- className: N("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
2047
+ className: M("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
2020
2048
  ...t
2021
2049
  });
2022
2050
  }
2023
- function Nt({ className: e, ...t }) {
2024
- return /* @__PURE__ */ f("span", {
2051
+ function Rt({ className: e, ...t }) {
2052
+ return /* @__PURE__ */ p("span", {
2025
2053
  "data-slot": "attachment-title",
2026
- className: N("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),
2054
+ className: M("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),
2027
2055
  ...t
2028
2056
  });
2029
2057
  }
2030
- function Pt({ className: e, ...t }) {
2031
- return /* @__PURE__ */ f("span", {
2058
+ function zt({ className: e, ...t }) {
2059
+ return /* @__PURE__ */ p("span", {
2032
2060
  "data-slot": "attachment-description",
2033
- className: N("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),
2061
+ className: M("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),
2034
2062
  ...t
2035
2063
  });
2036
2064
  }
2037
- function Ft({ className: e, ...t }) {
2038
- return /* @__PURE__ */ f("div", {
2065
+ function Bt({ className: e, ...t }) {
2066
+ return /* @__PURE__ */ p("div", {
2039
2067
  "data-slot": "attachment-actions",
2040
- className: N("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),
2068
+ className: M("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),
2041
2069
  ...t
2042
2070
  });
2043
2071
  }
2044
- function It({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
2045
- return /* @__PURE__ */ f(gt, {
2072
+ function Vt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
2073
+ return /* @__PURE__ */ p(xt, {
2046
2074
  "data-slot": "attachment-action",
2047
2075
  variant: e,
2048
2076
  color: t,
2049
2077
  size: n,
2050
- className: N("relative z-20", r),
2078
+ className: M("relative z-20", r),
2051
2079
  ...i
2052
2080
  });
2053
2081
  }
2054
- function Lt({ className: e, render: t, type: n, ...r }) {
2082
+ function Ht({ className: e, render: t, type: n, ...r }) {
2055
2083
  return C({
2056
2084
  defaultTagName: "button",
2057
2085
  props: S({
2058
2086
  type: t ? n : n ?? "button",
2059
- className: N("absolute inset-0 z-10 cursor-pointer rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main/45", e)
2087
+ className: M("absolute inset-0 z-10 cursor-pointer rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main/45", e)
2060
2088
  }, r),
2061
2089
  render: t,
2062
2090
  state: { slot: "attachment-trigger" }
2063
2091
  });
2064
2092
  }
2065
- function Rt({ className: e, ...t }) {
2066
- return /* @__PURE__ */ f("div", {
2093
+ function Ut({ className: e, ...t }) {
2094
+ return /* @__PURE__ */ p("div", {
2067
2095
  "data-eds-component": "AttachmentGroup",
2068
2096
  "data-slot": "attachment-group",
2069
- className: N("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),
2097
+ className: M("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),
2070
2098
  ...t
2071
2099
  });
2072
2100
  }
2073
- jt.displayName = "Attachment.Media", Mt.displayName = "Attachment.Content", Nt.displayName = "Attachment.Title", Pt.displayName = "Attachment.Description", Ft.displayName = "Attachment.Actions", It.displayName = "Attachment.Action", Lt.displayName = "Attachment.Trigger", Rt.displayName = "Attachment.Group";
2074
- var zt = Object.assign(At, {
2075
- Media: jt,
2076
- Content: Mt,
2077
- Title: Nt,
2078
- Description: Pt,
2079
- Actions: Ft,
2080
- Action: It,
2081
- Trigger: Lt,
2082
- Group: Rt
2083
- }), Bt = N("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");
2084
- function Vt({ className: e, ...t }) {
2085
- return /* @__PURE__ */ f(w.Root, {
2101
+ It.displayName = "Attachment.Media", Lt.displayName = "Attachment.Content", Rt.displayName = "Attachment.Title", zt.displayName = "Attachment.Description", Bt.displayName = "Attachment.Actions", Vt.displayName = "Attachment.Action", Ht.displayName = "Attachment.Trigger", Ut.displayName = "Attachment.Group";
2102
+ var Wt = Object.assign(Ft, {
2103
+ Media: It,
2104
+ Content: Lt,
2105
+ Title: Rt,
2106
+ Description: zt,
2107
+ Actions: Bt,
2108
+ Action: Vt,
2109
+ Trigger: Ht,
2110
+ Group: Ut
2111
+ }), Gt = M("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");
2112
+ function Kt({ className: e, ...t }) {
2113
+ return /* @__PURE__ */ p(w.Root, {
2086
2114
  "data-eds-component": "Checkbox",
2087
- className: N(Bt, e),
2115
+ className: M(Gt, e),
2088
2116
  ...t,
2089
- children: /* @__PURE__ */ f(w.Indicator, {
2117
+ children: /* @__PURE__ */ p(w.Indicator, {
2090
2118
  keepMounted: !0,
2091
2119
  className: "flex items-center justify-center text-white data-unchecked:invisible",
2092
- render: (e, t) => /* @__PURE__ */ f("span", {
2120
+ render: (e, t) => /* @__PURE__ */ p("span", {
2093
2121
  ...e,
2094
- children: t.indeterminate ? /* @__PURE__ */ f(c, {
2122
+ children: t.indeterminate ? /* @__PURE__ */ p(l, {
2095
2123
  size: 12,
2096
2124
  strokeWidth: 3,
2097
2125
  "aria-hidden": !0
2098
- }) : /* @__PURE__ */ f(n, {
2126
+ }) : /* @__PURE__ */ p(r, {
2099
2127
  size: 12,
2100
2128
  strokeWidth: 3,
2101
2129
  "aria-hidden": !0
@@ -2104,17 +2132,17 @@ function Vt({ className: e, ...t }) {
2104
2132
  })
2105
2133
  });
2106
2134
  }
2107
- function Ht({ className: e, label: t, disabled: n, ...r }) {
2108
- return t ? /* @__PURE__ */ f(T.Root, {
2109
- className: N("inline-flex", e),
2110
- children: /* @__PURE__ */ p(T.Label, {
2111
- className: N("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"),
2112
- children: [/* @__PURE__ */ f(Vt, {
2135
+ function qt({ className: e, label: t, disabled: n, ...r }) {
2136
+ return t ? /* @__PURE__ */ p(T.Root, {
2137
+ className: M("inline-flex", e),
2138
+ children: /* @__PURE__ */ m(T.Label, {
2139
+ className: M("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"),
2140
+ children: [/* @__PURE__ */ p(Kt, {
2113
2141
  disabled: n,
2114
2142
  ...r
2115
- }), /* @__PURE__ */ f("span", { children: t })]
2143
+ }), /* @__PURE__ */ p("span", { children: t })]
2116
2144
  })
2117
- }) : /* @__PURE__ */ f(Vt, {
2145
+ }) : /* @__PURE__ */ p(Kt, {
2118
2146
  className: e,
2119
2147
  disabled: n,
2120
2148
  ...r
@@ -2122,10 +2150,10 @@ function Ht({ className: e, label: t, disabled: n, ...r }) {
2122
2150
  }
2123
2151
  //#endregion
2124
2152
  //#region src/lib/field-styles.ts
2125
- function Ut(e, t) {
2153
+ function Jt(e, t) {
2126
2154
  return e ?? (t === !1 ? "outside" : "floating");
2127
2155
  }
2128
- var Wt = {
2156
+ var Yt = {
2129
2157
  sm: {
2130
2158
  control: "h-9 px-3",
2131
2159
  trigger: "h-9 px-3",
@@ -2150,94 +2178,94 @@ var Wt = {
2150
2178
  icon: "size-8",
2151
2179
  paddingX: "px-4"
2152
2180
  }
2153
- }, Q = {
2181
+ }, $ = {
2154
2182
  overlay: "z-[1300]",
2155
2183
  popup: "z-[1400]",
2156
2184
  overlayValue: 1300,
2157
2185
  popupValue: 1400
2158
- }, Gt = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", Kt = "flex items-center justify-between gap-3", qt = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", Jt = "text-eds-neutral-disabled", Yt = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", Xt = "data-placeholder:text-eds-neutral-disabled", Zt = "group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white 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", Qt = "box-border min-w-(--anchor-width) max-h-[280px] overflow-visible rounded-eds-xs border border-eds-outline-border bg-white py-1 shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)]", $t = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", en = "box-border flex w-full cursor-pointer items-center gap-2 rounded-md px-2.5 py-2 text-left text-sm text-eds-neutral-main data-highlighted:bg-eds-neutral-elements/10 data-disabled:cursor-not-allowed data-disabled:opacity-50", tn = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", nn = `${Q.popup} outline-none`, rn = { zIndex: Q.popupValue };
2159
- function an(e) {
2186
+ }, Xt = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", Zt = "flex items-center justify-between gap-3", Qt = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", $t = "text-eds-neutral-disabled", en = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", tn = "data-placeholder:text-eds-neutral-disabled", nn = "group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white 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", rn = "box-border min-w-(--anchor-width) max-h-[280px] overflow-visible rounded-eds-xs border border-eds-outline-border bg-white py-1 shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)]", an = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", on = "box-border flex w-full cursor-pointer items-center gap-2 rounded-md px-2.5 py-2 text-left text-sm text-eds-neutral-main data-highlighted:bg-eds-neutral-elements/10 data-disabled:cursor-not-allowed data-disabled:opacity-50", sn = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", cn = `${$.popup} outline-none`, ln = { zIndex: $.popupValue };
2187
+ function un(e) {
2160
2188
  return `pointer-events-none absolute top-0 z-1 -translate-y-1/2 bg-transparent px-0 pr-1 text-sm text-eds-neutral-elements ${e} before:absolute before:inset-x-0 before:top-1/2 before:-z-10 before:h-0.5 before:-translate-y-1/2 before:bg-white before:content-[''] group-data-disabled:before:bg-eds-neutral-background`;
2161
2189
  }
2162
2190
  //#endregion
2163
2191
  //#region src/components/ComboBox/Combobox.tsx
2164
- var on = {
2192
+ var dn = {
2165
2193
  default: "",
2166
2194
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2167
2195
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2168
- }, sn = "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", cn = E.Root;
2169
- function ln({ label: e = "Label", labelVariant: t, floatingLabel: i, items: a, placeholder: o = "Selecione uma opção", disabled: s = !1, required: c = !1, fluid: u = !1, state: d = "default", size: m = "md", supportingText: h = "", errorMessage: g = "Selecione uma opção válida", emptyMessage: _ = "Nenhum resultado.", readOnly: y = !1, id: b, name: x, value: S, defaultValue: C, onValueChange: w, getItemLabel: T, getItemValue: D, renderItem: O, className: k, inputProps: A }) {
2170
- let j = v(), M = b ?? j, P = d === "invalid", ee = P || !!h, F = Wt[m], I = Ut(t, i), L = I === "floating", R = (e) => T ? T(e) : e.label ?? "", z = (e) => D ? D(e) : e.value ?? R(e), B = (e) => {
2171
- w?.(e);
2172
- }, te = T ? (e) => T(e) : void 0, V = D ? (e) => D(e) : void 0;
2173
- return /* @__PURE__ */ p("div", {
2174
- className: N(Gt, k),
2175
- "data-fluid": u || void 0,
2196
+ }, fn = "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", pn = E.Root;
2197
+ function mn({ label: e = "Label", labelVariant: t, floatingLabel: n, items: a, placeholder: o = "Selecione uma opção", disabled: s = !1, required: c = !1, fluid: l = !1, state: d = "default", size: f = "md", supportingText: h = "", errorMessage: g = "Selecione uma opção válida", emptyMessage: _ = "Nenhum resultado.", readOnly: v = !1, id: y, name: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, renderItem: D, className: O, inputProps: k }) {
2198
+ let te = ee(), A = y ?? te, j = d === "invalid", N = j || !!h, P = Yt[f], F = Jt(t, n), I = F === "floating", L = (e) => w ? w(e) : e.label ?? "", R = (e) => T ? T(e) : e.value ?? L(e), z = (e) => {
2199
+ C?.(e);
2200
+ }, ne = w ? (e) => w(e) : void 0, re = T ? (e) => T(e) : void 0;
2201
+ return /* @__PURE__ */ m("div", {
2202
+ className: M(Xt, O),
2203
+ "data-fluid": l || void 0,
2176
2204
  "data-eds-component": "Combobox",
2177
- "data-label-variant": I,
2205
+ "data-label-variant": F,
2178
2206
  children: [
2179
- /* @__PURE__ */ f("div", {
2180
- className: Kt,
2181
- children: /* @__PURE__ */ p("label", {
2182
- className: N(qt, L && "sr-only", !L && "font-medium"),
2183
- htmlFor: M,
2184
- children: [/* @__PURE__ */ f("span", { children: e }), c && /* @__PURE__ */ f("span", {
2207
+ /* @__PURE__ */ p("div", {
2208
+ className: Zt,
2209
+ children: /* @__PURE__ */ m("label", {
2210
+ className: M(Qt, I && "sr-only", !I && "font-medium"),
2211
+ htmlFor: A,
2212
+ children: [/* @__PURE__ */ p("span", { children: e }), c && /* @__PURE__ */ p("span", {
2185
2213
  className: "text-eds-red-main",
2186
2214
  children: "*"
2187
2215
  })]
2188
2216
  })
2189
2217
  }),
2190
- /* @__PURE__ */ p(cn, {
2218
+ /* @__PURE__ */ m(pn, {
2191
2219
  items: a,
2192
- name: x,
2220
+ name: b,
2193
2221
  disabled: s,
2194
2222
  required: c,
2195
- onValueChange: w ? B : void 0,
2196
- ...S === void 0 ? C === void 0 ? {} : { defaultValue: C } : { value: S },
2197
- itemToStringLabel: te,
2198
- itemToStringValue: V,
2199
- children: [/* @__PURE__ */ p(E.InputGroup, {
2200
- className: N(Zt, "box-border py-0", F.trigger, on[d]),
2223
+ onValueChange: C ? z : void 0,
2224
+ ...x === void 0 ? S === void 0 ? {} : { defaultValue: S } : { value: x },
2225
+ itemToStringLabel: ne,
2226
+ itemToStringValue: re,
2227
+ children: [/* @__PURE__ */ m(E.InputGroup, {
2228
+ className: M(nn, "box-border py-0", P.trigger, dn[d]),
2201
2229
  "data-state": d,
2202
- "data-size": m,
2230
+ "data-size": f,
2203
2231
  "data-disabled": s || void 0,
2204
- "data-floating": L || void 0,
2232
+ "data-floating": I || void 0,
2205
2233
  children: [
2206
- L && /* @__PURE__ */ p("span", {
2207
- className: an(F.left),
2208
- children: [/* @__PURE__ */ f("span", { children: e }), c && /* @__PURE__ */ f("span", {
2234
+ I && /* @__PURE__ */ m("span", {
2235
+ className: un(P.left),
2236
+ children: [/* @__PURE__ */ p("span", { children: e }), c && /* @__PURE__ */ p("span", {
2209
2237
  className: "text-eds-red-main",
2210
2238
  "aria-hidden": "true",
2211
2239
  children: "*"
2212
2240
  })]
2213
2241
  }),
2214
- /* @__PURE__ */ f(E.Input, {
2215
- ...A,
2216
- id: M,
2217
- className: N("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", Yt, F.text),
2242
+ /* @__PURE__ */ p(E.Input, {
2243
+ ...k,
2244
+ id: A,
2245
+ className: M("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", en, P.text),
2218
2246
  placeholder: o,
2219
2247
  disabled: s,
2220
- readOnly: y,
2248
+ readOnly: v,
2221
2249
  required: c,
2222
- "aria-invalid": P || void 0,
2223
- "aria-describedby": ee ? `${M}-desc` : void 0
2250
+ "aria-invalid": j || void 0,
2251
+ "aria-describedby": N ? `${A}-desc` : void 0
2224
2252
  }),
2225
- /* @__PURE__ */ p("div", {
2253
+ /* @__PURE__ */ m("div", {
2226
2254
  className: "inline-flex shrink-0 items-center",
2227
- children: [/* @__PURE__ */ f(E.Clear, {
2228
- className: N(sn, F.icon),
2255
+ children: [/* @__PURE__ */ p(E.Clear, {
2256
+ className: M(fn, P.icon),
2229
2257
  "aria-label": "Limpar seleção",
2230
2258
  "data-disabled": s || void 0,
2231
- children: /* @__PURE__ */ f(l, {
2259
+ children: /* @__PURE__ */ p(u, {
2232
2260
  className: "size-4 shrink-0",
2233
2261
  strokeWidth: 2,
2234
2262
  "aria-hidden": !0
2235
2263
  })
2236
- }), /* @__PURE__ */ f(E.Trigger, {
2237
- className: N(sn, F.icon),
2264
+ }), /* @__PURE__ */ p(E.Trigger, {
2265
+ className: M(fn, P.icon),
2238
2266
  "aria-label": "Abrir lista",
2239
2267
  "data-disabled": s || void 0,
2240
- children: /* @__PURE__ */ f(r, {
2268
+ children: /* @__PURE__ */ p(i, {
2241
2269
  className: "size-4 shrink-0",
2242
2270
  strokeWidth: 2,
2243
2271
  "aria-hidden": !0
@@ -2245,53 +2273,53 @@ function ln({ label: e = "Label", labelVariant: t, floatingLabel: i, items: a, p
2245
2273
  })]
2246
2274
  })
2247
2275
  ]
2248
- }), /* @__PURE__ */ f(E.Portal, { children: /* @__PURE__ */ f(E.Positioner, {
2249
- className: nn,
2250
- style: rn,
2276
+ }), /* @__PURE__ */ p(E.Portal, { children: /* @__PURE__ */ p(E.Positioner, {
2277
+ className: cn,
2278
+ style: ln,
2251
2279
  positionMethod: "fixed",
2252
2280
  sideOffset: 4,
2253
- children: /* @__PURE__ */ p(E.Popup, {
2254
- className: Qt,
2255
- children: [/* @__PURE__ */ f(E.Empty, { children: /* @__PURE__ */ f("div", {
2281
+ children: /* @__PURE__ */ m(E.Popup, {
2282
+ className: rn,
2283
+ children: [/* @__PURE__ */ p(E.Empty, { children: /* @__PURE__ */ p("div", {
2256
2284
  className: "px-3 py-2.5 text-sm text-eds-neutral-elements",
2257
2285
  children: _
2258
- }) }), /* @__PURE__ */ f(E.List, {
2259
- className: $t,
2260
- children: (e) => /* @__PURE__ */ p(E.Item, {
2286
+ }) }), /* @__PURE__ */ p(E.List, {
2287
+ className: an,
2288
+ children: (e) => /* @__PURE__ */ m(E.Item, {
2261
2289
  value: e,
2262
- className: en,
2263
- children: [/* @__PURE__ */ f(E.ItemIndicator, {
2264
- className: tn,
2265
- children: /* @__PURE__ */ f(n, {
2290
+ className: on,
2291
+ children: [/* @__PURE__ */ p(E.ItemIndicator, {
2292
+ className: sn,
2293
+ children: /* @__PURE__ */ p(r, {
2266
2294
  size: 14,
2267
2295
  strokeWidth: 2.5,
2268
2296
  "aria-hidden": !0
2269
2297
  })
2270
- }), O ? O(e) : /* @__PURE__ */ f("span", {
2298
+ }), D ? D(e) : /* @__PURE__ */ p("span", {
2271
2299
  className: "block min-w-0 flex-1 text-left",
2272
- children: R(e)
2300
+ children: L(e)
2273
2301
  })]
2274
- }, z(e))
2302
+ }, R(e))
2275
2303
  })]
2276
2304
  })
2277
2305
  }) })]
2278
2306
  }),
2279
- ee && /* @__PURE__ */ f("div", {
2280
- id: `${M}-desc`,
2307
+ N && /* @__PURE__ */ p("div", {
2308
+ id: `${A}-desc`,
2281
2309
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2282
- "data-state": P ? "invalid" : void 0,
2283
- children: P ? g : h
2310
+ "data-state": j ? "invalid" : void 0,
2311
+ children: j ? g : h
2284
2312
  })
2285
2313
  ]
2286
2314
  });
2287
2315
  }
2288
2316
  //#endregion
2289
2317
  //#region src/components/DatePicker/DatePicker.tsx
2290
- var un = {
2318
+ var hn = {
2291
2319
  default: "",
2292
2320
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2293
2321
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2294
- }, dn = [
2322
+ }, gn = [
2295
2323
  "D",
2296
2324
  "S",
2297
2325
  "T",
@@ -2300,179 +2328,179 @@ var un = {
2300
2328
  "S",
2301
2329
  "S"
2302
2330
  ];
2303
- function fn(e, t) {
2304
- let n = G(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
2305
- for (let e = n; e <= r; e = ie(e, 1)) i.push(e);
2331
+ function _n(e, t) {
2332
+ let n = q(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
2333
+ for (let e = n; e <= r; e = W(e, 1)) i.push(e);
2306
2334
  return i;
2307
2335
  }
2308
- function pn(e) {
2336
+ function vn(e) {
2309
2337
  return e.mode === "range";
2310
2338
  }
2311
- function mn(e) {
2312
- let { label: n = "Label", labelVariant: r, floatingLabel: o, disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: m = "", errorMessage: h = "Selecione uma data válida", id: g, weekStartsOn: _ = 0, dateFormat: b = "dd/MM/yyyy", className: S } = e, C = pn(e), w = e.placeholder ?? (C ? "Selecione um período" : "Selecione uma data"), T = v(), E = g ?? T, O = u === "invalid", k = O || m, A = Wt[d], j = d === "lg" ? "size-5" : "size-4", M = Ut(r, o), P = M === "floating", ee = pn(e) ? {
2339
+ function yn(e) {
2340
+ let { label: t = "Label", labelVariant: r, floatingLabel: i, disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: f = "", errorMessage: h = "Selecione uma data válida", id: g, weekStartsOn: _ = 0, dateFormat: v = "dd/MM/yyyy", className: b } = e, S = vn(e), C = e.placeholder ?? (S ? "Selecione um período" : "Selecione uma data"), w = ee(), T = g ?? w, E = u === "invalid", O = E || f, k = Yt[d], te = d === "lg" ? "size-5" : "size-4", A = Jt(r, i), j = A === "floating", N = vn(e) ? {
2313
2341
  from: e.defaultValue?.from ?? null,
2314
2342
  to: e.defaultValue?.to ?? null
2315
2343
  } : {
2316
2344
  from: e.defaultValue ?? null,
2317
2345
  to: null
2318
- }, F = pn(e) ? e.value === void 0 ? void 0 : {
2346
+ }, P = vn(e) ? e.value === void 0 ? void 0 : {
2319
2347
  from: e.value?.from ?? null,
2320
2348
  to: e.value?.to ?? null
2321
2349
  } : e.value === void 0 ? void 0 : {
2322
2350
  from: e.value ?? null,
2323
2351
  to: null
2324
- }, I = F !== void 0, [L, R] = x(ee), z = I ? F : L, B = pn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, te = pn(e) ? e.presets : void 0, [V, ne] = x(!1), [re, H] = x(() => z.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), U = y(() => [...dn.slice(_), ...dn.slice(0, _)], [_]), W = y(() => Array.from({ length: B }, (e, t) => ae(re, t)), [re, B]);
2325
- function ie(t) {
2326
- s || (t && H(z.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), ne(t));
2352
+ }, F = P !== void 0, [I, L] = x(N), R = F ? P : I, z = vn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, ne = vn(e) ? e.presets : void 0, [re, B] = x(!1), [ie, V] = x(() => R.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), ae = y(() => [...gn.slice(_), ...gn.slice(0, _)], [_]), H = y(() => Array.from({ length: z }, (e, t) => G(ie, t)), [ie, z]);
2353
+ function U(t) {
2354
+ s || (t && V(R.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), B(t));
2327
2355
  }
2328
- function oe(t) {
2329
- if (pn(e)) {
2330
- let n = z, r;
2356
+ function W(t) {
2357
+ if (vn(e)) {
2358
+ let n = R, r;
2331
2359
  r = !n.from || n.to ? {
2332
2360
  from: t,
2333
2361
  to: null
2334
- } : ot(t, n.from) ? {
2362
+ } : ct(t, n.from) ? {
2335
2363
  from: t,
2336
2364
  to: n.from
2337
2365
  } : {
2338
2366
  from: n.from,
2339
2367
  to: t
2340
- }, I || R(r), r.from && e.onValueChange?.({
2368
+ }, F || L(r), r.from && e.onValueChange?.({
2341
2369
  from: r.from,
2342
2370
  to: r.to ?? void 0
2343
- }), r.from && r.to && ne(!1);
2371
+ }), r.from && r.to && B(!1);
2344
2372
  return;
2345
2373
  }
2346
- I || R({
2374
+ F || L({
2347
2375
  from: t,
2348
2376
  to: null
2349
- }), e.onValueChange?.(t), ne(!1);
2377
+ }), e.onValueChange?.(t), B(!1);
2350
2378
  }
2351
- function se(t) {
2379
+ function oe(t) {
2352
2380
  let n = {
2353
2381
  from: t.from,
2354
2382
  to: t.to ?? null
2355
2383
  };
2356
- I || R(n), pn(e) && e.onValueChange?.({
2384
+ F || L(n), vn(e) && e.onValueChange?.({
2357
2385
  from: t.from,
2358
2386
  to: t.to ?? void 0
2359
- }), H(t.from);
2387
+ }), V(t.from);
2360
2388
  }
2361
- function G(e) {
2362
- return !z.from || !z.to || !e.range.to ? !1 : me(z.from, e.range.from) && me(z.to, e.range.to);
2389
+ function K(e) {
2390
+ return !R.from || !R.to || !e.range.to ? !1 : me(R.from, e.range.from) && me(R.to, e.range.to);
2363
2391
  }
2364
- let K = z.from ? !C || !z.to ? Z(z.from, b) : `${Z(z.from, b)} - ${Z(z.to, b)}` : w;
2365
- return /* @__PURE__ */ p("div", {
2366
- className: N(Gt, S),
2392
+ let q = R.from ? !S || !R.to ? Q(R.from, v) : `${Q(R.from, v)} - ${Q(R.to, v)}` : C;
2393
+ return /* @__PURE__ */ m("div", {
2394
+ className: M(Xt, b),
2367
2395
  "data-fluid": l || void 0,
2368
2396
  "data-eds-component": "DatePicker",
2369
- "data-label-variant": M,
2397
+ "data-label-variant": A,
2370
2398
  children: [
2371
- /* @__PURE__ */ f("div", {
2372
- className: Kt,
2373
- children: /* @__PURE__ */ p("label", {
2374
- className: N(qt, P && "sr-only", !P && "font-medium"),
2375
- htmlFor: E,
2376
- children: [/* @__PURE__ */ f("span", { children: n }), c && /* @__PURE__ */ f("span", {
2399
+ /* @__PURE__ */ p("div", {
2400
+ className: Zt,
2401
+ children: /* @__PURE__ */ m("label", {
2402
+ className: M(Qt, j && "sr-only", !j && "font-medium"),
2403
+ htmlFor: T,
2404
+ children: [/* @__PURE__ */ p("span", { children: t }), c && /* @__PURE__ */ p("span", {
2377
2405
  className: "text-eds-red-main",
2378
2406
  children: "*"
2379
2407
  })]
2380
2408
  })
2381
2409
  }),
2382
- /* @__PURE__ */ p(D.Root, {
2383
- open: V,
2384
- onOpenChange: ie,
2385
- children: [/* @__PURE__ */ p(D.Trigger, {
2386
- id: E,
2410
+ /* @__PURE__ */ m(D.Root, {
2411
+ open: re,
2412
+ onOpenChange: U,
2413
+ children: [/* @__PURE__ */ m(D.Trigger, {
2414
+ id: T,
2387
2415
  disabled: s,
2388
- className: N("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, un[u], "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"),
2416
+ className: M("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", k.trigger, hn[u], "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"),
2389
2417
  "data-state": u,
2390
2418
  "data-size": d,
2391
2419
  "data-disabled": s || void 0,
2392
- "aria-describedby": k ? `${E}-desc` : void 0,
2420
+ "aria-describedby": O ? `${T}-desc` : void 0,
2393
2421
  children: [
2394
- P && /* @__PURE__ */ p("span", {
2395
- className: an(A.left),
2396
- children: [/* @__PURE__ */ f("span", { children: n }), c && /* @__PURE__ */ f("span", {
2422
+ j && /* @__PURE__ */ m("span", {
2423
+ className: un(k.left),
2424
+ children: [/* @__PURE__ */ p("span", { children: t }), c && /* @__PURE__ */ p("span", {
2397
2425
  className: "text-eds-red-main",
2398
2426
  "aria-hidden": "true",
2399
2427
  children: "*"
2400
2428
  })]
2401
2429
  }),
2402
- /* @__PURE__ */ f(t, {
2403
- className: N("shrink-0 text-eds-neutral-elements", j),
2430
+ /* @__PURE__ */ p(n, {
2431
+ className: M("shrink-0 text-eds-neutral-elements", te),
2404
2432
  "aria-hidden": !0
2405
2433
  }),
2406
- /* @__PURE__ */ f("span", {
2407
- className: N("min-w-0 flex-1 truncate font-inherit", A.text, z.from ? "text-eds-neutral-main" : Jt),
2408
- children: K
2434
+ /* @__PURE__ */ p("span", {
2435
+ className: M("min-w-0 flex-1 truncate font-inherit", k.text, R.from ? "text-eds-neutral-main" : $t),
2436
+ children: q
2409
2437
  })
2410
2438
  ]
2411
- }), /* @__PURE__ */ f(D.Portal, { children: /* @__PURE__ */ f(D.Positioner, {
2412
- className: nn,
2413
- style: rn,
2439
+ }), /* @__PURE__ */ p(D.Portal, { children: /* @__PURE__ */ p(D.Positioner, {
2440
+ className: cn,
2441
+ style: ln,
2414
2442
  positionMethod: "fixed",
2415
2443
  sideOffset: 4,
2416
2444
  align: "start",
2417
- children: /* @__PURE__ */ p(D.Popup, {
2445
+ children: /* @__PURE__ */ m(D.Popup, {
2418
2446
  "data-eds-component": "DatePicker",
2419
2447
  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",
2420
- children: [te && te.length > 0 && /* @__PURE__ */ f("div", {
2448
+ children: [ne && ne.length > 0 && /* @__PURE__ */ p("div", {
2421
2449
  className: "flex w-40 shrink-0 flex-col gap-0.5 border-r border-eds-outline-border p-2 text-sm",
2422
- children: te.map((e) => /* @__PURE__ */ f("button", {
2450
+ children: ne.map((e) => /* @__PURE__ */ p("button", {
2423
2451
  type: "button",
2424
- onClick: () => se(e.range),
2425
- className: N("rounded-md px-3 py-1.5 text-left whitespace-nowrap", G(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2452
+ onClick: () => oe(e.range),
2453
+ className: M("rounded-md px-3 py-1.5 text-left whitespace-nowrap", K(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2426
2454
  children: e.label
2427
2455
  }, e.label))
2428
- }), /* @__PURE__ */ f("div", {
2456
+ }), /* @__PURE__ */ p("div", {
2429
2457
  className: "flex",
2430
- children: W.map((e, t) => {
2431
- let n = t === 0, r = t === W.length - 1, o = fn(e, _);
2432
- return /* @__PURE__ */ p("div", {
2433
- className: N("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
2434
- children: [/* @__PURE__ */ p("div", {
2458
+ children: H.map((e, t) => {
2459
+ let n = t === 0, r = t === H.length - 1, i = _n(e, _);
2460
+ return /* @__PURE__ */ m("div", {
2461
+ className: M("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
2462
+ children: [/* @__PURE__ */ m("div", {
2435
2463
  className: "flex items-center gap-2.5 p-4",
2436
2464
  children: [
2437
- n ? /* @__PURE__ */ f(gt, {
2438
- icon: i,
2465
+ n ? /* @__PURE__ */ p(xt, {
2466
+ icon: a,
2439
2467
  label: "Mês anterior",
2440
2468
  size: "sm",
2441
- onClick: () => H((e) => lt(e, 1))
2442
- }) : /* @__PURE__ */ f("span", {
2469
+ onClick: () => V((e) => mt(e, 1))
2470
+ }) : /* @__PURE__ */ p("span", {
2443
2471
  className: "size-8 shrink-0",
2444
2472
  "aria-hidden": !0
2445
2473
  }),
2446
- /* @__PURE__ */ f("span", {
2474
+ /* @__PURE__ */ p("span", {
2447
2475
  className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
2448
- children: Z(e, "MMMM yyyy", { locale: mt })
2476
+ children: Q(e, "MMMM yyyy", { locale: yt })
2449
2477
  }),
2450
- r ? /* @__PURE__ */ f(gt, {
2451
- icon: a,
2478
+ r ? /* @__PURE__ */ p(xt, {
2479
+ icon: o,
2452
2480
  label: "Próximo mês",
2453
2481
  size: "sm",
2454
- onClick: () => H((e) => ae(e, 1))
2455
- }) : /* @__PURE__ */ f("span", {
2482
+ onClick: () => V((e) => G(e, 1))
2483
+ }) : /* @__PURE__ */ p("span", {
2456
2484
  className: "size-8 shrink-0",
2457
2485
  "aria-hidden": !0
2458
2486
  })
2459
2487
  ]
2460
- }), /* @__PURE__ */ p("div", {
2488
+ }), /* @__PURE__ */ m("div", {
2461
2489
  className: "grid grid-cols-7 px-4 pb-4",
2462
- children: [U.map((e, t) => /* @__PURE__ */ f("span", {
2490
+ children: [ae.map((e, t) => /* @__PURE__ */ p("span", {
2463
2491
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2464
2492
  children: e
2465
- }, `${e}-${t}`)), o.map((t) => {
2466
- let n = st(t, e), r = ct(t), i = C && z.from ? me(t, z.from) : !1, a = C && z.to ? me(t, z.to) : !1, o = !!(C && z.from && z.to && !me(z.from, z.to)), s = o && z.from && z.to ? at(t, z.from) && ot(t, z.to) : !1, c = C ? i || a : z.from ? me(t, z.from) : !1;
2467
- return /* @__PURE__ */ f("div", {
2468
- className: N("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"),
2469
- children: /* @__PURE__ */ f("button", {
2493
+ }, `${e}-${t}`)), i.map((t) => {
2494
+ let n = lt(t, e), r = ut(t), i = S && R.from ? me(t, R.from) : !1, a = S && R.to ? me(t, R.to) : !1, o = !!(S && R.from && R.to && !me(R.from, R.to)), s = o && R.from && R.to ? st(t, R.from) && ct(t, R.to) : !1, c = S ? i || a : R.from ? me(t, R.from) : !1;
2495
+ return /* @__PURE__ */ p("div", {
2496
+ className: M("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"),
2497
+ children: /* @__PURE__ */ p("button", {
2470
2498
  type: "button",
2471
- onClick: () => oe(t),
2499
+ onClick: () => W(t),
2472
2500
  "data-selected": c || void 0,
2473
2501
  "data-today": r || void 0,
2474
- className: N("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"),
2475
- children: Z(t, "d")
2502
+ className: M("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"),
2503
+ children: Q(t, "d")
2476
2504
  })
2477
2505
  }, t.toISOString());
2478
2506
  })]
@@ -2483,18 +2511,274 @@ function mn(e) {
2483
2511
  })
2484
2512
  }) })]
2485
2513
  }),
2486
- k && /* @__PURE__ */ f("div", {
2487
- id: `${E}-desc`,
2514
+ O && /* @__PURE__ */ p("div", {
2515
+ id: `${T}-desc`,
2516
+ className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2517
+ "data-state": E ? "invalid" : u,
2518
+ children: E ? h : f
2519
+ })
2520
+ ]
2521
+ });
2522
+ }
2523
+ //#endregion
2524
+ //#region src/components/DateTimePicker/DateTimePicker.tsx
2525
+ var bn = {
2526
+ default: "",
2527
+ valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2528
+ invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2529
+ }, xn = [
2530
+ "D",
2531
+ "S",
2532
+ "T",
2533
+ "Q",
2534
+ "Q",
2535
+ "S",
2536
+ "S"
2537
+ ];
2538
+ function Sn(e, t) {
2539
+ let n = q(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
2540
+ for (let e = n; e <= r; e = W(e, 1)) i.push(e);
2541
+ return i;
2542
+ }
2543
+ function Cn(e, t) {
2544
+ let n = t ? at(t) : 0, r = t ? ot(t) : 0;
2545
+ return pt(ft(dt(e, n), r), 0);
2546
+ }
2547
+ function wn(e, t) {
2548
+ let n = Math.round(e / t) * t;
2549
+ return Math.min(59, Math.max(0, n >= 60 ? 60 - t : n));
2550
+ }
2551
+ function Tn(e) {
2552
+ let t = Math.max(1, Math.min(30, Math.floor(e))), n = [];
2553
+ for (let e = 0; e < 60; e += t) n.push(e);
2554
+ return n;
2555
+ }
2556
+ var En = Array.from({ length: 24 }, (e, t) => t);
2557
+ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder: i = "Selecione data e hora", disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: f = "", errorMessage: h = "Selecione uma data e hora válidas", id: g, weekStartsOn: _ = 0, defaultMonth: S, dateFormat: C = "dd/MM/yyyy HH:mm", minuteStep: w = 5, value: T, defaultValue: E = null, onValueChange: O, className: k }) {
2558
+ let te = ee(), A = g ?? te, j = u === "invalid", N = j || f, P = Yt[d], F = d === "lg" ? "size-5" : "size-4", I = Jt(n, r), L = I === "floating", R = T !== void 0, [ne, re] = x(E), B = R ? T ?? null : ne, [ie, V] = x(!1), [ae, H] = x(() => B ?? S ?? /* @__PURE__ */ new Date()), [U, W] = x(B), oe = b(null), K = b(null), q = y(() => Tn(w), [w]), J = y(() => [...xn.slice(_), ...xn.slice(0, _)], [_]), se = y(() => Sn(ae, _), [ae, _]), ce = U ? at(U) : 0, le = U ? wn(ot(U), w) : 0;
2559
+ v(() => {
2560
+ if (!ie) return;
2561
+ let e = (e, t, n) => {
2562
+ (e?.querySelector(`[data-${t}="${n}"]`))?.scrollIntoView({ block: "center" });
2563
+ };
2564
+ requestAnimationFrame(() => {
2565
+ e(oe.current, "hour", ce), e(K.current, "minute", le);
2566
+ });
2567
+ }, [
2568
+ ie,
2569
+ ce,
2570
+ le
2571
+ ]);
2572
+ function ue(e) {
2573
+ R || re(e), O?.(e);
2574
+ }
2575
+ function de(e) {
2576
+ if (!s) {
2577
+ if (e) {
2578
+ let e = B ?? S ?? /* @__PURE__ */ new Date(), t = ft(e, wn(ot(e), w));
2579
+ W(B ? t : null), H(B ?? S ?? /* @__PURE__ */ new Date());
2580
+ }
2581
+ V(e);
2582
+ }
2583
+ }
2584
+ function fe(e) {
2585
+ let t = Cn(e, U ?? B), n = ft(t, wn(ot(t), w));
2586
+ W(n), ue(n);
2587
+ }
2588
+ function pe(e) {
2589
+ let t = U ?? B ?? /* @__PURE__ */ new Date(), n = pt(ft(dt(t, e), wn(ot(t), w)), 0);
2590
+ W(n), ue(n);
2591
+ }
2592
+ function he(e) {
2593
+ let t = pt(ft(U ?? B ?? /* @__PURE__ */ new Date(), e), 0);
2594
+ W(t), ue(t);
2595
+ }
2596
+ function ge() {
2597
+ let e = /* @__PURE__ */ new Date(), t = pt(ft(e, wn(ot(e), w)), 0);
2598
+ W(t), H(t), ue(t);
2599
+ }
2600
+ function _e() {
2601
+ U && ue(U), V(!1);
2602
+ }
2603
+ let ve = B ? Q(B, C) : i;
2604
+ return /* @__PURE__ */ m("div", {
2605
+ className: M(Xt, k),
2606
+ "data-fluid": l || void 0,
2607
+ "data-eds-component": "DateTimePicker",
2608
+ "data-label-variant": I,
2609
+ children: [
2610
+ /* @__PURE__ */ p("div", {
2611
+ className: Zt,
2612
+ children: /* @__PURE__ */ m("label", {
2613
+ className: M(Qt, L && "sr-only", !L && "font-medium"),
2614
+ htmlFor: A,
2615
+ children: [/* @__PURE__ */ p("span", { children: e }), c && /* @__PURE__ */ p("span", {
2616
+ className: "text-eds-red-main",
2617
+ children: "*"
2618
+ })]
2619
+ })
2620
+ }),
2621
+ /* @__PURE__ */ m(D.Root, {
2622
+ open: ie,
2623
+ onOpenChange: de,
2624
+ children: [/* @__PURE__ */ m(D.Trigger, {
2625
+ id: A,
2626
+ disabled: s,
2627
+ className: M("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", P.trigger, bn[u], "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"),
2628
+ "data-state": u,
2629
+ "data-size": d,
2630
+ "data-disabled": s || void 0,
2631
+ "aria-describedby": N ? `${A}-desc` : void 0,
2632
+ children: [
2633
+ L && /* @__PURE__ */ m("span", {
2634
+ className: un(P.left),
2635
+ children: [/* @__PURE__ */ p("span", { children: e }), c && /* @__PURE__ */ p("span", {
2636
+ className: "text-eds-red-main",
2637
+ "aria-hidden": "true",
2638
+ children: "*"
2639
+ })]
2640
+ }),
2641
+ /* @__PURE__ */ p(t, {
2642
+ className: M("shrink-0 text-eds-neutral-elements", F),
2643
+ "aria-hidden": !0
2644
+ }),
2645
+ /* @__PURE__ */ p("span", {
2646
+ className: M("min-w-0 flex-1 truncate font-inherit", P.text, B ? "text-eds-neutral-main" : $t),
2647
+ children: ve
2648
+ })
2649
+ ]
2650
+ }), /* @__PURE__ */ p(D.Portal, { children: /* @__PURE__ */ p(D.Positioner, {
2651
+ className: cn,
2652
+ style: ln,
2653
+ positionMethod: "fixed",
2654
+ sideOffset: 4,
2655
+ align: "start",
2656
+ children: /* @__PURE__ */ m(D.Popup, {
2657
+ "data-eds-component": "DateTimePicker",
2658
+ 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",
2659
+ children: [/* @__PURE__ */ m("div", {
2660
+ className: "flex",
2661
+ children: [/* @__PURE__ */ m("div", {
2662
+ className: "w-[284px] shrink-0",
2663
+ children: [/* @__PURE__ */ m("div", {
2664
+ className: "flex items-center gap-2.5 p-4",
2665
+ children: [
2666
+ /* @__PURE__ */ p(xt, {
2667
+ icon: a,
2668
+ label: "Mês anterior",
2669
+ size: "sm",
2670
+ onClick: () => H((e) => mt(e, 1))
2671
+ }),
2672
+ /* @__PURE__ */ p("span", {
2673
+ className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
2674
+ children: Q(ae, "MMMM yyyy", { locale: yt })
2675
+ }),
2676
+ /* @__PURE__ */ p(xt, {
2677
+ icon: o,
2678
+ label: "Próximo mês",
2679
+ size: "sm",
2680
+ onClick: () => H((e) => G(e, 1))
2681
+ })
2682
+ ]
2683
+ }), /* @__PURE__ */ m("div", {
2684
+ className: "grid grid-cols-7 px-4 pb-4",
2685
+ children: [J.map((e, t) => /* @__PURE__ */ p("span", {
2686
+ className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2687
+ children: e
2688
+ }, `${e}-${t}`)), se.map((e) => {
2689
+ let t = lt(e, ae), n = ut(e), r = U ? me(e, U) : !1;
2690
+ return /* @__PURE__ */ p("div", {
2691
+ className: "flex items-center justify-center py-0.5",
2692
+ children: /* @__PURE__ */ p("button", {
2693
+ type: "button",
2694
+ onClick: () => fe(e),
2695
+ "data-selected": r || void 0,
2696
+ "data-today": n || void 0,
2697
+ className: M("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"),
2698
+ children: Q(e, "d")
2699
+ })
2700
+ }, e.toISOString());
2701
+ })]
2702
+ })]
2703
+ }), /* @__PURE__ */ m("div", {
2704
+ className: "flex w-[148px] shrink-0 border-l border-eds-outline-border",
2705
+ children: [/* @__PURE__ */ m("div", {
2706
+ className: "flex min-h-0 flex-1 flex-col",
2707
+ children: [/* @__PURE__ */ p("span", {
2708
+ className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2709
+ children: "Hora"
2710
+ }), /* @__PURE__ */ p("div", {
2711
+ ref: oe,
2712
+ className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2713
+ role: "listbox",
2714
+ "aria-label": "Hora",
2715
+ children: En.map((e) => {
2716
+ let t = ce === e;
2717
+ return /* @__PURE__ */ p("button", {
2718
+ type: "button",
2719
+ role: "option",
2720
+ "aria-selected": t,
2721
+ "data-hour": e,
2722
+ onClick: () => pe(e),
2723
+ className: M("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"),
2724
+ children: String(e).padStart(2, "0")
2725
+ }, e);
2726
+ })
2727
+ })]
2728
+ }), /* @__PURE__ */ m("div", {
2729
+ className: "flex min-h-0 flex-1 flex-col border-l border-eds-outline-border",
2730
+ children: [/* @__PURE__ */ p("span", {
2731
+ className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2732
+ children: "Min"
2733
+ }), /* @__PURE__ */ p("div", {
2734
+ ref: K,
2735
+ className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2736
+ role: "listbox",
2737
+ "aria-label": "Minuto",
2738
+ children: q.map((e) => {
2739
+ let t = le === e;
2740
+ return /* @__PURE__ */ p("button", {
2741
+ type: "button",
2742
+ role: "option",
2743
+ "aria-selected": t,
2744
+ "data-minute": e,
2745
+ onClick: () => he(e),
2746
+ className: M("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"),
2747
+ children: String(e).padStart(2, "0")
2748
+ }, e);
2749
+ })
2750
+ })]
2751
+ })]
2752
+ })]
2753
+ }), /* @__PURE__ */ m("div", {
2754
+ className: "flex items-center justify-between gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-3 py-2.5",
2755
+ children: [/* @__PURE__ */ p(z, {
2756
+ text: "Agora",
2757
+ variant: "ghost",
2758
+ size: "sm",
2759
+ onClick: ge
2760
+ }), /* @__PURE__ */ p(z, {
2761
+ text: "Confirmar",
2762
+ size: "sm",
2763
+ onClick: _e,
2764
+ disabled: !U
2765
+ })]
2766
+ })]
2767
+ })
2768
+ }) })]
2769
+ }),
2770
+ N && /* @__PURE__ */ p("div", {
2771
+ id: `${A}-desc`,
2488
2772
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2489
- "data-state": O ? "invalid" : u,
2490
- children: O ? h : m
2773
+ "data-state": j ? "invalid" : u,
2774
+ children: j ? h : f
2491
2775
  })
2492
2776
  ]
2493
2777
  });
2494
2778
  }
2495
2779
  //#endregion
2496
2780
  //#region src/components/Dialog/Dialog.tsx
2497
- var hn = { size: {
2781
+ var On = { size: {
2498
2782
  sm: {
2499
2783
  classes: "sm:max-w-xs",
2500
2784
  description: "Small dialog for simple confirmations (288px)"
@@ -2511,162 +2795,165 @@ var hn = { size: {
2511
2795
  classes: "sm:max-w-3xl",
2512
2796
  description: "Extra large dialog for detailed views (768px)"
2513
2797
  }
2514
- } }, gn = { size: "md" }, _n = m("dialog");
2515
- function $() {
2516
- return g(_n);
2517
- }
2518
- function vn({ size: e = gn.size } = {}) {
2519
- return N(`fixed top-1/2 left-1/2 ${Q.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`, P(hn.size, e, gn.size).classes);
2520
- }
2521
- function yn({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
2522
- let i = $(), a = i === "alertdialog" ? k.Portal : O.Portal, o = i === "alertdialog" ? k.Backdrop : O.Backdrop, s = i === "alertdialog" ? k.Popup : O.Popup, c = i === "alertdialog" ? k.Close : O.Close;
2523
- return /* @__PURE__ */ p(a, { children: [/* @__PURE__ */ f(o, {
2524
- className: N("fixed inset-0 isolate bg-black/10 transition-opacity duration-100 supports-backdrop-filter:backdrop-blur-xs data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", Q.overlay),
2525
- style: { zIndex: Q.overlayValue }
2526
- }), /* @__PURE__ */ p(s, {
2798
+ } }, kn = { size: "md" }, An = h("dialog");
2799
+ function jn() {
2800
+ return _(An);
2801
+ }
2802
+ function Mn({ size: e = kn.size } = {}) {
2803
+ return M(`fixed top-1/2 left-1/2 ${$.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`, N(On.size, e, kn.size).classes);
2804
+ }
2805
+ function Nn({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
2806
+ let i = jn(), a = i === "alertdialog" ? k.Portal : O.Portal, o = i === "alertdialog" ? k.Backdrop : O.Backdrop, s = i === "alertdialog" ? k.Popup : O.Popup, c = i === "alertdialog" ? k.Close : O.Close;
2807
+ return /* @__PURE__ */ m(a, { children: [/* @__PURE__ */ p(o, {
2808
+ className: M("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", $.overlay),
2809
+ style: { zIndex: $.overlayValue }
2810
+ }), /* @__PURE__ */ m(s, {
2527
2811
  "data-eds-component": "Dialog",
2528
- className: N(vn({ size: n }), e),
2529
- style: { zIndex: Q.overlayValue },
2530
- children: [t, r ? /* @__PURE__ */ f(c, {
2812
+ className: M(Mn({ size: n }), e),
2813
+ style: { zIndex: $.overlayValue },
2814
+ children: [t, r ? /* @__PURE__ */ p(c, {
2531
2815
  "data-eds-component": "Dialog",
2532
2816
  "aria-label": "Fechar",
2533
2817
  className: "absolute top-2 right-2 inline-flex size-7 cursor-pointer items-center justify-center rounded-lg border border-transparent text-eds-neutral-elements transition-colors outline-none hover:bg-eds-neutral-background hover:text-eds-neutral-main focus-visible:ring-3 focus-visible:ring-eds-outline-focus-ring",
2534
- children: /* @__PURE__ */ f(l, {
2818
+ children: /* @__PURE__ */ p(u, {
2535
2819
  className: "size-4",
2536
2820
  "aria-hidden": !0
2537
2821
  })
2538
2822
  }) : null]
2539
2823
  })] });
2540
2824
  }
2541
- function bn(e) {
2825
+ function Pn(e) {
2542
2826
  if (e.role === "alertdialog") {
2543
2827
  let { children: t, role: n, ...r } = e;
2544
- return /* @__PURE__ */ f(_n.Provider, {
2828
+ return /* @__PURE__ */ p(An.Provider, {
2545
2829
  value: n,
2546
- children: /* @__PURE__ */ f(k.Root, {
2830
+ children: /* @__PURE__ */ p(k.Root, {
2547
2831
  ...r,
2548
2832
  children: t
2549
2833
  })
2550
2834
  });
2551
2835
  }
2552
2836
  let { children: t, role: n = "dialog", ...r } = e;
2553
- return /* @__PURE__ */ f(_n.Provider, {
2837
+ return /* @__PURE__ */ p(An.Provider, {
2554
2838
  value: n,
2555
- children: /* @__PURE__ */ f(O.Root, {
2839
+ children: /* @__PURE__ */ p(O.Root, {
2556
2840
  ...r,
2557
2841
  children: t
2558
2842
  })
2559
2843
  });
2560
2844
  }
2561
- function xn({ children: e, ...t }) {
2562
- return $() === "alertdialog" ? /* @__PURE__ */ f(k.Trigger, {
2845
+ function Fn({ children: e, ...t }) {
2846
+ return jn() === "alertdialog" ? /* @__PURE__ */ p(k.Trigger, {
2563
2847
  "data-eds-component": "Dialog",
2564
2848
  ...t,
2565
2849
  children: e
2566
- }) : /* @__PURE__ */ f(O.Trigger, {
2850
+ }) : /* @__PURE__ */ p(O.Trigger, {
2567
2851
  "data-eds-component": "Dialog",
2568
2852
  ...t,
2569
2853
  children: e
2570
2854
  });
2571
2855
  }
2572
- function Sn({ className: e, ...t }) {
2573
- return /* @__PURE__ */ f("div", {
2856
+ function In({ className: e, ...t }) {
2857
+ return /* @__PURE__ */ p("div", {
2574
2858
  "data-slot": "dialog-header",
2575
- className: N("flex flex-col gap-2", e),
2859
+ className: M("flex flex-col gap-2", e),
2576
2860
  ...t
2577
2861
  });
2578
2862
  }
2579
- function Cn({ className: e, ...t }) {
2580
- return /* @__PURE__ */ f("div", {
2863
+ function Ln({ className: e, ...t }) {
2864
+ return /* @__PURE__ */ p("div", {
2581
2865
  "data-slot": "dialog-footer",
2582
- className: N("-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),
2866
+ className: M("-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),
2583
2867
  ...t
2584
2868
  });
2585
2869
  }
2586
- function wn({ className: e, ...t }) {
2587
- return /* @__PURE__ */ f($() === "alertdialog" ? k.Title : O.Title, {
2588
- className: N("text-base leading-none font-medium text-eds-neutral-main", e),
2870
+ function Rn({ className: e, ...t }) {
2871
+ return /* @__PURE__ */ p(jn() === "alertdialog" ? k.Title : O.Title, {
2872
+ className: M("text-base leading-none font-medium text-eds-neutral-main", e),
2589
2873
  ...t
2590
2874
  });
2591
2875
  }
2592
- function Tn({ className: e, ...t }) {
2593
- return /* @__PURE__ */ f($() === "alertdialog" ? k.Description : O.Description, {
2594
- className: N("text-sm text-eds-neutral-elements", e),
2876
+ function zn({ className: e, ...t }) {
2877
+ return /* @__PURE__ */ p(jn() === "alertdialog" ? k.Description : O.Description, {
2878
+ className: M("text-sm text-eds-neutral-elements", e),
2595
2879
  ...t
2596
2880
  });
2597
2881
  }
2598
- function En({ children: e, ...t }) {
2599
- return /* @__PURE__ */ f($() === "alertdialog" ? k.Close : O.Close, {
2882
+ function Bn({ children: e, ...t }) {
2883
+ return /* @__PURE__ */ p(jn() === "alertdialog" ? k.Close : O.Close, {
2600
2884
  "data-eds-component": "Dialog",
2601
2885
  ...t,
2602
2886
  children: e
2603
2887
  });
2604
2888
  }
2605
- bn.displayName = "Dialog.Root", xn.displayName = "Dialog.Trigger", Sn.displayName = "Dialog.Header", Cn.displayName = "Dialog.Footer", wn.displayName = "Dialog.Title", Tn.displayName = "Dialog.Description", En.displayName = "Dialog.Close";
2606
- var Dn = Object.assign(yn, {
2607
- Root: bn,
2608
- Trigger: xn,
2609
- Header: Sn,
2610
- Footer: Cn,
2611
- Title: wn,
2612
- Description: Tn,
2613
- Close: En
2889
+ Pn.displayName = "Dialog.Root", Fn.displayName = "Dialog.Trigger", In.displayName = "Dialog.Header", Ln.displayName = "Dialog.Footer", Rn.displayName = "Dialog.Title", zn.displayName = "Dialog.Description", Bn.displayName = "Dialog.Close";
2890
+ var Vn = Object.assign(Nn, {
2891
+ Root: Pn,
2892
+ Trigger: Fn,
2893
+ Header: In,
2894
+ Footer: Ln,
2895
+ Title: Rn,
2896
+ Description: zn,
2897
+ Close: Bn
2614
2898
  });
2615
2899
  //#endregion
2616
2900
  //#region src/components/FormDialog/FormDialog.tsx
2617
- function On({ size: e = "xl" } = {}) {
2618
- return N(`fixed top-1/2 left-1/2 ${Q.overlay} flex w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 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`, P(hn.size, e, gn.size).classes);
2619
- }
2620
- function kn({ className: e, children: t, size: n = "xl" }) {
2621
- let r = $(), i = r === "alertdialog" ? k.Portal : O.Portal, a = r === "alertdialog" ? k.Backdrop : O.Backdrop, o = r === "alertdialog" ? k.Popup : O.Popup;
2622
- return /* @__PURE__ */ p(i, { children: [/* @__PURE__ */ f(a, {
2623
- className: N("fixed inset-0 isolate bg-black/10 transition-opacity duration-100 supports-backdrop-filter:backdrop-blur-xs data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", Q.overlay),
2624
- style: { zIndex: Q.overlayValue }
2625
- }), /* @__PURE__ */ f(o, {
2626
- "data-eds-component": "FormDialog",
2627
- className: N(On({ size: n }), e),
2628
- style: { zIndex: Q.overlayValue },
2629
- children: t
2901
+ function Hn({ size: e = "xl" } = {}) {
2902
+ return M("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", N(On.size, e, kn.size).classes);
2903
+ }
2904
+ function Un({ className: e, children: t, size: n = "xl" }) {
2905
+ let r = jn(), i = r === "alertdialog" ? k.Portal : O.Portal, a = r === "alertdialog" ? k.Backdrop : O.Backdrop, o = r === "alertdialog" ? k.Popup : O.Popup;
2906
+ return /* @__PURE__ */ m(i, { children: [/* @__PURE__ */ p(a, {
2907
+ className: M("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", $.overlay),
2908
+ style: { zIndex: $.overlayValue }
2909
+ }), /* @__PURE__ */ p("div", {
2910
+ className: M("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", $.overlay),
2911
+ style: { zIndex: $.overlayValue },
2912
+ children: /* @__PURE__ */ p(o, {
2913
+ "data-eds-component": "FormDialog",
2914
+ className: M("pointer-events-auto", Hn({ size: n }), e),
2915
+ children: t
2916
+ })
2630
2917
  })] });
2631
2918
  }
2632
- function An({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
2633
- let s = $(), c = s === "alertdialog" ? k.Close : O.Close, u = s === "alertdialog" ? k.Title : O.Title, d = s === "alertdialog" ? k.Description : O.Description, m = n != null || r != null || t;
2634
- return /* @__PURE__ */ p("div", {
2919
+ function Wn({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
2920
+ let s = jn(), c = s === "alertdialog" ? k.Close : O.Close, l = s === "alertdialog" ? k.Title : O.Title, d = s === "alertdialog" ? k.Description : O.Description, f = n != null || r != null || t;
2921
+ return /* @__PURE__ */ m("div", {
2635
2922
  "data-slot": "form-dialog-header",
2636
- className: N("relative flex shrink-0 items-start gap-3 border-b border-eds-outline-border px-5 py-4", i && "pr-12", e),
2923
+ className: M("relative flex shrink-0 items-start gap-3 border-b border-eds-outline-border bg-white px-5 py-4", i && "pr-12", e),
2637
2924
  ...o,
2638
2925
  children: [
2639
- t ? /* @__PURE__ */ f("span", {
2926
+ t ? /* @__PURE__ */ p("span", {
2640
2927
  "data-slot": "form-dialog-icon",
2641
2928
  className: "inline-flex size-10 shrink-0 items-center justify-center rounded-eds-lil bg-eds-blue-background/45 text-eds-blue-main",
2642
2929
  "aria-hidden": !0,
2643
- children: /* @__PURE__ */ f(t, {
2930
+ children: /* @__PURE__ */ p(t, {
2644
2931
  className: "size-5",
2645
2932
  strokeWidth: 2
2646
2933
  })
2647
2934
  }) : null,
2648
- m ? /* @__PURE__ */ p("div", {
2935
+ f ? /* @__PURE__ */ m("div", {
2649
2936
  className: "min-w-0 flex-1 flex flex-col gap-1",
2650
2937
  children: [
2651
- n == null ? null : /* @__PURE__ */ f(u, {
2938
+ n == null ? null : /* @__PURE__ */ p(l, {
2652
2939
  className: "text-lg leading-tight font-semibold text-eds-blue-dark",
2653
2940
  children: n
2654
2941
  }),
2655
- r == null ? null : /* @__PURE__ */ f(d, {
2942
+ r == null ? null : /* @__PURE__ */ p(d, {
2656
2943
  className: "text-sm leading-snug text-eds-neutral-elements",
2657
2944
  children: r
2658
2945
  }),
2659
2946
  a
2660
2947
  ]
2661
- }) : /* @__PURE__ */ f("div", {
2948
+ }) : /* @__PURE__ */ p("div", {
2662
2949
  className: "min-w-0 flex-1",
2663
2950
  children: a
2664
2951
  }),
2665
- i ? /* @__PURE__ */ f(c, {
2952
+ i ? /* @__PURE__ */ p(c, {
2666
2953
  "data-eds-component": "FormDialog",
2667
2954
  "aria-label": "Fechar",
2668
2955
  className: "absolute top-3.5 right-3.5 inline-flex size-8 cursor-pointer items-center justify-center rounded-lg border border-transparent text-eds-neutral-elements transition-colors outline-none hover:bg-eds-neutral-background hover:text-eds-neutral-main focus-visible:ring-3 focus-visible:ring-eds-outline-focus-ring",
2669
- children: /* @__PURE__ */ f(l, {
2956
+ children: /* @__PURE__ */ p(u, {
2670
2957
  className: "size-4",
2671
2958
  "aria-hidden": !0
2672
2959
  })
@@ -2674,43 +2961,43 @@ function An({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i =
2674
2961
  ]
2675
2962
  });
2676
2963
  }
2677
- function jn({ className: e, ...t }) {
2678
- return /* @__PURE__ */ f("div", {
2964
+ function Gn({ className: e, ...t }) {
2965
+ return /* @__PURE__ */ p("div", {
2679
2966
  "data-slot": "form-dialog-body",
2680
- className: N("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
2967
+ className: M("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
2681
2968
  ...t
2682
2969
  });
2683
2970
  }
2684
- function Mn({ className: e, ...t }) {
2685
- return /* @__PURE__ */ f("div", {
2971
+ function Kn({ className: e, ...t }) {
2972
+ return /* @__PURE__ */ p("div", {
2686
2973
  "data-slot": "form-dialog-footer",
2687
- className: N("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),
2974
+ className: M("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),
2688
2975
  ...t
2689
2976
  });
2690
2977
  }
2691
- function Nn({ className: e, ...t }) {
2692
- return /* @__PURE__ */ f($() === "alertdialog" ? k.Title : O.Title, {
2693
- className: N("text-lg leading-tight font-semibold text-eds-blue-dark", e),
2978
+ function qn({ className: e, ...t }) {
2979
+ return /* @__PURE__ */ p(jn() === "alertdialog" ? k.Title : O.Title, {
2980
+ className: M("text-lg leading-tight font-semibold text-eds-blue-dark", e),
2694
2981
  ...t
2695
2982
  });
2696
2983
  }
2697
- function Pn({ className: e, ...t }) {
2698
- return /* @__PURE__ */ f($() === "alertdialog" ? k.Description : O.Description, {
2699
- className: N("text-sm leading-snug text-eds-neutral-elements", e),
2984
+ function Jn({ className: e, ...t }) {
2985
+ return /* @__PURE__ */ p(jn() === "alertdialog" ? k.Description : O.Description, {
2986
+ className: M("text-sm leading-snug text-eds-neutral-elements", e),
2700
2987
  ...t
2701
2988
  });
2702
2989
  }
2703
- An.displayName = "FormDialog.Header", jn.displayName = "FormDialog.Body", Mn.displayName = "FormDialog.Footer", Nn.displayName = "FormDialog.Title", Pn.displayName = "FormDialog.Description";
2704
- var Fn = Object.assign(kn, {
2705
- Root: bn,
2706
- Trigger: xn,
2707
- Close: En,
2708
- Header: An,
2709
- Body: jn,
2710
- Footer: Mn,
2711
- Title: Nn,
2712
- Description: Pn
2713
- }), In = { size: {
2990
+ Wn.displayName = "FormDialog.Header", Gn.displayName = "FormDialog.Body", Kn.displayName = "FormDialog.Footer", qn.displayName = "FormDialog.Title", Jn.displayName = "FormDialog.Description";
2991
+ var Yn = Object.assign(Un, {
2992
+ Root: Pn,
2993
+ Trigger: Fn,
2994
+ Close: Bn,
2995
+ Header: Wn,
2996
+ Body: Gn,
2997
+ Footer: Kn,
2998
+ Title: qn,
2999
+ Description: Jn
3000
+ }), Xn = { size: {
2714
3001
  sm: {
2715
3002
  classes: "px-6 py-8 gap-3",
2716
3003
  description: "Compact empty state for smaller containers"
@@ -2723,22 +3010,22 @@ var Fn = Object.assign(kn, {
2723
3010
  classes: "px-12 py-20 gap-6",
2724
3011
  description: "Large empty state for prominent placement"
2725
3012
  }
2726
- } }, Ln = { size: "md" };
2727
- function Rn({ icon: e, title: t, description: n, action: r, size: i = Ln.size, titleLevel: a = "h2", className: o }) {
2728
- return /* @__PURE__ */ p("div", {
3013
+ } }, Zn = { size: "md" };
3014
+ function Qn({ icon: e, title: t, description: n, action: r, size: i = Zn.size, titleLevel: a = "h2", className: o }) {
3015
+ return /* @__PURE__ */ m("div", {
2729
3016
  "data-eds-component": "Empty",
2730
- className: N("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", P(In.size, i, Ln.size).classes, o),
3017
+ className: M("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", N(Xn.size, i, Zn.size).classes, o),
2731
3018
  children: [
2732
- e && /* @__PURE__ */ f("div", {
3019
+ e && /* @__PURE__ */ p("div", {
2733
3020
  className: "text-eds-neutral-elements",
2734
3021
  "aria-hidden": !0,
2735
3022
  children: e
2736
3023
  }),
2737
- /* @__PURE__ */ f(a, {
3024
+ /* @__PURE__ */ p(a, {
2738
3025
  className: "text-lg font-semibold text-eds-neutral-main",
2739
3026
  children: t
2740
3027
  }),
2741
- n && /* @__PURE__ */ f("p", {
3028
+ n && /* @__PURE__ */ p("p", {
2742
3029
  className: "max-w-sm text-sm text-eds-neutral-elements",
2743
3030
  children: n
2744
3031
  }),
@@ -2748,190 +3035,208 @@ function Rn({ icon: e, title: t, description: n, action: r, size: i = Ln.size, t
2748
3035
  }
2749
3036
  //#endregion
2750
3037
  //#region ../../node_modules/.pnpm/brazilian-values@0.13.1/node_modules/brazilian-values/dist/brazilian-values.mjs
2751
- var zn = /\D/g, Bn = function(e) {
2752
- return e.replace(zn, "");
2753
- }, Vn = function(e) {
2754
- return Bn(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
2755
- }, Hn = function(e) {
2756
- return Bn(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");
2757
- }, Un = function(e) {
2758
- return Bn(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
2759
- }, Wn = function(e) {
3038
+ var $n = /\D/g, er = function(e) {
3039
+ return e.replace($n, "");
3040
+ }, tr = function(e) {
3041
+ return er(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
3042
+ }, nr = function(e) {
3043
+ return er(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");
3044
+ }, rr = function(e) {
3045
+ return er(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
3046
+ }, ir = function(e) {
2760
3047
  return (e.match(/\d/g)?.length ?? 0) <= 11;
2761
- }, Gn = function(e) {
2762
- return Wn(e) ? Un(e) : Hn(e);
2763
- }, Kn = function(e) {
2764
- return Bn(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");
2765
- }, qn = {
3048
+ }, ar = function(e) {
3049
+ return ir(e) ? rr(e) : nr(e);
3050
+ }, or = function(e) {
3051
+ return er(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");
3052
+ };
3053
+ //#endregion
3054
+ //#region src/components/Input/Input.tsx
3055
+ function sr(e, t = !1) {
3056
+ let n = e.trim();
3057
+ if (!n) return "";
3058
+ let r = n.startsWith("-"), i = n.replace(/[^\d,]/g, "");
3059
+ if (!i) return r ? "-" : "";
3060
+ let a = i.indexOf(","), o, s;
3061
+ a === -1 ? o = i : (o = i.slice(0, a) || "0", s = i.slice(a + 1).replace(/,/g, "").slice(0, 2)), o = o.replace(/^0+(?=\d)/, "");
3062
+ let c = o.replace(/\B(?=(\d{3})+(?!\d))/g, "."), l = r ? "-" : "";
3063
+ return t ? `${l}${c},${(s ?? "").padEnd(2, "0").slice(0, 2)}` : a === -1 ? `${l}${c}` : `${l}${c},${s ?? ""}`;
3064
+ }
3065
+ var cr = {
2766
3066
  default: "",
2767
3067
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2768
3068
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
2769
3069
  loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
2770
3070
  };
2771
- function Jn({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: c = !1, placeholder: l = "Digite algo...", errorMessage: u = "Campo obrigatório", fluid: d = !1, format: m, tooltip: h = null, linkText: g = null, linkUrl: _ = null, supportLink: y = null, supportLinkUrl: b = null, supportingText: S = "", lazy: C = !1, labelVariant: w, floatingLabel: T, disableAutocomplete: E = !1, isLoading: D = !1, loadingIconPosition: O = "end", icon: k, defaultValue: j, value: M, id: P, name: ee, onBlur: F, onFocus: I, onKeyDown: L, onClick: R, onChange: z, ...B }) {
2772
- let te = v(), V = P ?? te, [ne, re] = x(() => j?.toString() ?? ""), H = M !== void 0, U = (H ? M : ne)?.toString() ?? "", W = y ?? g, ie = b ?? _, ae = Ut(w, T), oe = ae === "floating", se = (e) => {
2773
- switch (m) {
2774
- case "cep": return Vn(e);
2775
- case "cpf": return Un(e);
2776
- case "cnpj": return Hn(e);
2777
- case "cpfOrCnpj": return Gn(e);
2778
- case "phone": return Kn(e);
3071
+ function lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: l = "Digite algo...", errorMessage: u = "Campo obrigatório", fluid: d = !1, format: f, tooltip: h = null, linkText: g = null, linkUrl: _ = null, supportLink: v = null, supportLinkUrl: y = null, supportingText: b = "", lazy: S = !1, labelVariant: C, floatingLabel: w, disableAutocomplete: T = !1, isLoading: E = !1, loadingIconPosition: D = "end", icon: O, defaultValue: k, value: A, id: j, name: N, onBlur: P, onFocus: F, onKeyDown: I, onClick: L, onChange: R, ...z }) {
3072
+ let ne = ee(), re = j ?? ne, [B, ie] = x(() => k?.toString() ?? ""), V = A !== void 0, ae = (V ? A : B)?.toString() ?? "", H = v ?? g, U = y ?? _, W = Jt(C, w), G = W === "floating", oe = (e, t = !1) => {
3073
+ switch (f) {
3074
+ case "cep": return tr(e);
3075
+ case "cpf": return rr(e);
3076
+ case "cnpj": return nr(e);
3077
+ case "cpfOrCnpj": return ar(e);
3078
+ case "phone": return or(e);
3079
+ case "currency": return sr(e, t);
2779
3080
  default: return e;
2780
3081
  }
2781
- }, G = (e, t) => {
2782
- let n = se(e);
2783
- H || re(n), z?.(n, t);
2784
- }, K = r === "invalid", q = n || D, ce = Wt[i], le = D ? /* @__PURE__ */ f("span", {
3082
+ }, K = (e, t, n = !1) => {
3083
+ let r = oe(e, n);
3084
+ V || ie(r), R?.(r, t);
3085
+ }, q = r === "invalid", J = n || E, se = Yt[i], ce = E ? /* @__PURE__ */ p("span", {
2785
3086
  className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
2786
- "data-position": O,
3087
+ "data-position": D,
2787
3088
  "aria-hidden": !0,
2788
- children: /* @__PURE__ */ f(s, {
3089
+ children: /* @__PURE__ */ p(c, {
2789
3090
  className: "animate-eds-spin",
2790
3091
  size: 16
2791
3092
  })
2792
3093
  }) : null;
2793
- return /* @__PURE__ */ p("div", {
2794
- className: N(Gt, e),
3094
+ return /* @__PURE__ */ m("div", {
3095
+ className: M(Xt, e),
2795
3096
  "data-fluid": d || void 0,
2796
3097
  "data-eds-component": "Input",
2797
- "data-label-variant": ae,
3098
+ "data-label-variant": W,
2798
3099
  children: [
2799
- /* @__PURE__ */ p("div", {
2800
- className: Kt,
2801
- children: [/* @__PURE__ */ p("div", {
3100
+ /* @__PURE__ */ m("div", {
3101
+ className: Zt,
3102
+ children: [/* @__PURE__ */ m("div", {
2802
3103
  className: "inline-flex min-w-0 items-center gap-2",
2803
- children: [/* @__PURE__ */ p("label", {
2804
- className: N(qt, oe && "sr-only", !oe && "font-medium"),
2805
- htmlFor: V,
2806
- children: [/* @__PURE__ */ f("span", { children: t }), c && /* @__PURE__ */ f("span", {
3104
+ children: [/* @__PURE__ */ m("label", {
3105
+ className: M(Qt, G && "sr-only", !G && "font-medium"),
3106
+ htmlFor: re,
3107
+ children: [/* @__PURE__ */ p("span", { children: t }), o && /* @__PURE__ */ p("span", {
2807
3108
  className: "text-eds-red-main",
2808
3109
  children: "*"
2809
3110
  })]
2810
- }), h && /* @__PURE__ */ f("button", {
3111
+ }), h && /* @__PURE__ */ p("button", {
2811
3112
  type: "button",
2812
3113
  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",
2813
3114
  "aria-label": h,
2814
3115
  title: h,
2815
- disabled: q,
2816
- children: /* @__PURE__ */ f(o, {
3116
+ disabled: J,
3117
+ children: /* @__PURE__ */ p(s, {
2817
3118
  size: 16,
2818
3119
  "aria-hidden": !0
2819
3120
  })
2820
3121
  })]
2821
- }), W && ie && /* @__PURE__ */ f("a", {
3122
+ }), H && U && /* @__PURE__ */ p("a", {
2822
3123
  className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
2823
- href: ie,
2824
- "aria-disabled": q || void 0,
2825
- tabIndex: q ? -1 : 0,
3124
+ href: U,
3125
+ "aria-disabled": J || void 0,
3126
+ tabIndex: J ? -1 : 0,
2826
3127
  onClick: (e) => {
2827
- q && e.preventDefault();
3128
+ J && e.preventDefault();
2828
3129
  },
2829
- children: W
3130
+ children: H
2830
3131
  })]
2831
3132
  }),
2832
- /* @__PURE__ */ p("div", {
2833
- className: N("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", ce.control, qn[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"),
2834
- "data-disabled": q || void 0,
3133
+ /* @__PURE__ */ m("div", {
3134
+ className: M("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", se.control, cr[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"),
3135
+ "data-disabled": J || void 0,
2835
3136
  "data-state": r,
2836
3137
  "data-size": i,
2837
- "data-floating": oe || void 0,
2838
- "data-has-value": U ? !0 : void 0,
3138
+ "data-floating": G || void 0,
3139
+ "data-has-value": ae ? !0 : void 0,
2839
3140
  children: [
2840
- oe && /* @__PURE__ */ p("span", {
2841
- className: an(ce.left),
2842
- children: [/* @__PURE__ */ f("span", { children: t }), c && /* @__PURE__ */ f("span", {
3141
+ G && /* @__PURE__ */ m("span", {
3142
+ className: un(se.left),
3143
+ children: [/* @__PURE__ */ p("span", { children: t }), o && /* @__PURE__ */ p("span", {
2843
3144
  className: "text-eds-red-main",
2844
3145
  "aria-hidden": "true",
2845
3146
  children: "*"
2846
3147
  })]
2847
3148
  }),
2848
- k && /* @__PURE__ */ f(k, {
3149
+ O && /* @__PURE__ */ p(O, {
2849
3150
  className: "shrink-0 text-eds-neutral-elements",
2850
3151
  size: 16,
2851
3152
  "aria-hidden": !0
2852
3153
  }),
2853
- O === "start" && le,
2854
- /* @__PURE__ */ f(A, {
2855
- ...B,
2856
- id: V,
2857
- name: ee,
2858
- className: N("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", Yt, ce.text),
2859
- disabled: q,
3154
+ D === "start" && ce,
3155
+ /* @__PURE__ */ p(te, {
3156
+ ...z,
3157
+ id: re,
3158
+ name: N,
3159
+ className: M("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", en, se.text),
3160
+ disabled: J,
2860
3161
  type: a,
2861
- required: c,
3162
+ required: o,
2862
3163
  placeholder: l,
2863
- autoComplete: E ? "off" : B.autoComplete,
2864
- "aria-invalid": K || void 0,
2865
- "aria-describedby": K ? `${V}-desc` : void 0,
2866
- "aria-busy": D || void 0,
2867
- value: H ? M : void 0,
2868
- defaultValue: H ? void 0 : j,
2869
- onClick: R,
2870
- onKeyDown: L,
2871
- onFocus: I,
3164
+ autoComplete: T ? "off" : z.autoComplete,
3165
+ "aria-invalid": q || void 0,
3166
+ "aria-describedby": q ? `${re}-desc` : void 0,
3167
+ "aria-busy": E || void 0,
3168
+ value: V || f ? ae : void 0,
3169
+ defaultValue: !V && !f ? k : void 0,
3170
+ onClick: L,
3171
+ onKeyDown: I,
3172
+ onFocus: F,
2872
3173
  onBlur: (e) => {
2873
- F?.(e), C && G(e.currentTarget.value, e);
3174
+ f === "currency" ? K(e.currentTarget.value, e, !0) : S && K(e.currentTarget.value, e), P?.(e);
2874
3175
  },
2875
3176
  onChange: (e) => {
2876
- C || G(e.currentTarget.value, e);
3177
+ if (S) {
3178
+ f && !V && ie(oe(e.currentTarget.value));
3179
+ return;
3180
+ }
3181
+ K(e.currentTarget.value, e);
2877
3182
  }
2878
3183
  }),
2879
- O === "end" && le
3184
+ D === "end" && ce
2880
3185
  ]
2881
3186
  }),
2882
- (K || S) && /* @__PURE__ */ f("div", {
2883
- id: `${V}-desc`,
3187
+ (q || b) && /* @__PURE__ */ p("div", {
3188
+ id: `${re}-desc`,
2884
3189
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2885
- "data-state": K ? "invalid" : r,
2886
- children: K ? u : S
3190
+ "data-state": q ? "invalid" : r,
3191
+ children: q ? u : b
2887
3192
  })
2888
3193
  ]
2889
3194
  });
2890
3195
  }
2891
3196
  //#endregion
2892
3197
  //#region src/components/Textarea/Textarea.tsx
2893
- var Yn = {
3198
+ var ur = {
2894
3199
  default: "",
2895
3200
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2896
3201
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2897
- }, Xn = {
3202
+ }, dr = {
2898
3203
  sm: "min-h-20",
2899
3204
  md: "min-h-24",
2900
3205
  lg: "min-h-32"
2901
3206
  };
2902
- function Zn({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, tooltip: u = null, supportLink: d = null, supportLinkUrl: m = null, supportingText: h = "", labelVariant: g, floatingLabel: _, rows: y = 4, defaultValue: b, value: S, id: C, name: w, onBlur: T, onFocus: E, onKeyDown: D, onClick: O, onChange: k, ...A }) {
2903
- let j = v(), M = C ?? j, [P, ee] = x(() => b?.toString() ?? ""), F = S !== void 0, I = (F ? S : P)?.toString() ?? "", L = Ut(g, _), R = L === "floating", z = r === "invalid", B = Wt[i];
2904
- return /* @__PURE__ */ p("div", {
2905
- className: N(Gt, e),
3207
+ function fr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, tooltip: u = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: h = "", labelVariant: g, floatingLabel: _, rows: v = 4, defaultValue: y, value: b, id: S, name: C, onBlur: w, onFocus: T, onKeyDown: E, onClick: D, onChange: O, ...k }) {
3208
+ let te = ee(), A = S ?? te, [j, N] = x(() => y?.toString() ?? ""), P = b !== void 0, F = (P ? b : j)?.toString() ?? "", I = Jt(g, _), L = I === "floating", R = r === "invalid", z = Yt[i];
3209
+ return /* @__PURE__ */ m("div", {
3210
+ className: M(Xt, e),
2906
3211
  "data-fluid": l || void 0,
2907
3212
  "data-eds-component": "Textarea",
2908
- "data-label-variant": L,
3213
+ "data-label-variant": I,
2909
3214
  children: [
2910
- /* @__PURE__ */ p("div", {
2911
- className: Kt,
2912
- children: [/* @__PURE__ */ p("div", {
3215
+ /* @__PURE__ */ m("div", {
3216
+ className: Zt,
3217
+ children: [/* @__PURE__ */ m("div", {
2913
3218
  className: "inline-flex min-w-0 items-center gap-2",
2914
- children: [/* @__PURE__ */ p("label", {
2915
- className: N(qt, R && "sr-only", !R && "font-medium"),
2916
- htmlFor: M,
2917
- children: [/* @__PURE__ */ f("span", { children: t }), a && /* @__PURE__ */ f("span", {
3219
+ children: [/* @__PURE__ */ m("label", {
3220
+ className: M(Qt, L && "sr-only", !L && "font-medium"),
3221
+ htmlFor: A,
3222
+ children: [/* @__PURE__ */ p("span", { children: t }), a && /* @__PURE__ */ p("span", {
2918
3223
  className: "text-eds-red-main",
2919
3224
  children: "*"
2920
3225
  })]
2921
- }), u && /* @__PURE__ */ f("button", {
3226
+ }), u && /* @__PURE__ */ p("button", {
2922
3227
  type: "button",
2923
3228
  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",
2924
3229
  "aria-label": u,
2925
3230
  title: u,
2926
3231
  disabled: n,
2927
- children: /* @__PURE__ */ f(o, {
3232
+ children: /* @__PURE__ */ p(s, {
2928
3233
  size: 16,
2929
3234
  "aria-hidden": !0
2930
3235
  })
2931
3236
  })]
2932
- }), d && m && /* @__PURE__ */ f("a", {
3237
+ }), d && f && /* @__PURE__ */ p("a", {
2933
3238
  className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
2934
- href: m,
3239
+ href: f,
2935
3240
  "aria-disabled": n || void 0,
2936
3241
  tabIndex: n ? -1 : 0,
2937
3242
  onClick: (e) => {
@@ -2940,152 +3245,152 @@ function Zn({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
2940
3245
  children: d
2941
3246
  })]
2942
3247
  }),
2943
- /* @__PURE__ */ p("div", {
2944
- className: N("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", B.paddingX, "py-2.5", Xn[i], Yn[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"),
3248
+ /* @__PURE__ */ m("div", {
3249
+ className: M("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", z.paddingX, "py-2.5", dr[i], ur[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"),
2945
3250
  "data-disabled": n || void 0,
2946
3251
  "data-state": r,
2947
3252
  "data-size": i,
2948
- "data-floating": R || void 0,
2949
- "data-has-value": I ? !0 : void 0,
2950
- children: [R && /* @__PURE__ */ p("span", {
2951
- className: an(B.left),
2952
- children: [/* @__PURE__ */ f("span", { children: t }), a && /* @__PURE__ */ f("span", {
3253
+ "data-floating": L || void 0,
3254
+ "data-has-value": F ? !0 : void 0,
3255
+ children: [L && /* @__PURE__ */ m("span", {
3256
+ className: un(z.left),
3257
+ children: [/* @__PURE__ */ p("span", { children: t }), a && /* @__PURE__ */ p("span", {
2953
3258
  className: "text-eds-red-main",
2954
3259
  "aria-hidden": "true",
2955
3260
  children: "*"
2956
3261
  })]
2957
- }), /* @__PURE__ */ f("textarea", {
2958
- ...A,
2959
- id: M,
2960
- name: w,
2961
- rows: y,
2962
- className: N("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", Yt, B.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
3262
+ }), /* @__PURE__ */ p("textarea", {
3263
+ ...k,
3264
+ id: A,
3265
+ name: C,
3266
+ rows: v,
3267
+ className: M("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", en, z.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
2963
3268
  disabled: n,
2964
3269
  required: a,
2965
- placeholder: s,
2966
- "aria-invalid": z || void 0,
2967
- "aria-describedby": z ? `${M}-desc` : void 0,
2968
- value: F ? S : void 0,
2969
- defaultValue: F ? void 0 : b,
2970
- onClick: O,
2971
- onKeyDown: D,
2972
- onFocus: E,
2973
- onBlur: T,
3270
+ placeholder: o,
3271
+ "aria-invalid": R || void 0,
3272
+ "aria-describedby": R ? `${A}-desc` : void 0,
3273
+ value: P ? b : void 0,
3274
+ defaultValue: P ? void 0 : y,
3275
+ onClick: D,
3276
+ onKeyDown: E,
3277
+ onFocus: T,
3278
+ onBlur: w,
2974
3279
  onChange: (e) => {
2975
- F || ee(e.target.value), k?.(e.target.value, e);
3280
+ P || N(e.target.value), O?.(e.target.value, e);
2976
3281
  }
2977
3282
  })]
2978
3283
  }),
2979
- (z || h) && /* @__PURE__ */ f("div", {
2980
- id: `${M}-desc`,
3284
+ (R || h) && /* @__PURE__ */ p("div", {
3285
+ id: `${A}-desc`,
2981
3286
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2982
- "data-state": z ? "invalid" : r,
2983
- children: z ? c : h
3287
+ "data-state": R ? "invalid" : r,
3288
+ children: R ? c : h
2984
3289
  })
2985
3290
  ]
2986
3291
  });
2987
3292
  }
2988
3293
  //#endregion
2989
3294
  //#region src/components/Select/Select.tsx
2990
- var Qn = {
3295
+ var pr = {
2991
3296
  default: "",
2992
3297
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2993
3298
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2994
3299
  };
2995
- function $n({ label: e = "Label", labelVariant: t, floatingLabel: i, items: a, placeholder: o = "Selecione uma opção", disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: m = "", errorMessage: h = "Selecione uma opção válida", id: g, name: _, value: y = void 0, defaultValue: b = void 0, onValueChange: x = void 0, renderItem: S = void 0, className: C }) {
2996
- let w = v(), T = g ?? w, E = u === "invalid", D = E || m, O = Wt[d], k = Ut(t, i), A = k === "floating";
2997
- return /* @__PURE__ */ p("div", {
2998
- className: N(Gt, C),
3300
+ function mr({ label: e = "Label", labelVariant: t, floatingLabel: n, items: a, placeholder: o = "Selecione uma opção", disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: f = "", errorMessage: h = "Selecione uma opção válida", id: g, name: _, value: v = void 0, defaultValue: y = void 0, onValueChange: b = void 0, renderItem: x = void 0, className: S }) {
3301
+ let C = ee(), w = g ?? C, T = u === "invalid", E = T || f, D = Yt[d], O = Jt(t, n), k = O === "floating";
3302
+ return /* @__PURE__ */ m("div", {
3303
+ className: M(Xt, S),
2999
3304
  "data-fluid": l || void 0,
3000
3305
  "data-eds-component": "Select",
3001
- "data-label-variant": k,
3306
+ "data-label-variant": O,
3002
3307
  children: [
3003
- /* @__PURE__ */ f("div", {
3004
- className: Kt,
3005
- children: /* @__PURE__ */ p("label", {
3006
- className: N(qt, A && "sr-only", !A && "font-medium"),
3007
- htmlFor: T,
3008
- children: [/* @__PURE__ */ f("span", { children: e }), c && /* @__PURE__ */ f("span", {
3308
+ /* @__PURE__ */ p("div", {
3309
+ className: Zt,
3310
+ children: /* @__PURE__ */ m("label", {
3311
+ className: M(Qt, k && "sr-only", !k && "font-medium"),
3312
+ htmlFor: w,
3313
+ children: [/* @__PURE__ */ p("span", { children: e }), c && /* @__PURE__ */ p("span", {
3009
3314
  className: "text-eds-red-main",
3010
3315
  children: "*"
3011
3316
  })]
3012
3317
  })
3013
3318
  }),
3014
- /* @__PURE__ */ p(j.Root, {
3015
- id: T,
3319
+ /* @__PURE__ */ m(A.Root, {
3320
+ id: w,
3016
3321
  name: _,
3017
3322
  disabled: s,
3018
3323
  required: c,
3019
- onValueChange: x,
3020
- defaultValue: b,
3021
- value: y,
3022
- children: [/* @__PURE__ */ p(j.Trigger, {
3023
- className: N("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", O.trigger, Qn[u], "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"),
3324
+ onValueChange: b,
3325
+ defaultValue: y,
3326
+ value: v,
3327
+ children: [/* @__PURE__ */ m(A.Trigger, {
3328
+ className: M("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", D.trigger, pr[u], "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"),
3024
3329
  "data-state": u,
3025
3330
  "data-size": d,
3026
3331
  "data-disabled": s || void 0,
3027
- "aria-describedby": D ? `${T}-desc` : void 0,
3332
+ "aria-describedby": E ? `${w}-desc` : void 0,
3028
3333
  children: [
3029
- A && /* @__PURE__ */ p("span", {
3030
- className: an(O.left),
3031
- children: [/* @__PURE__ */ f("span", { children: e }), c && /* @__PURE__ */ f("span", {
3334
+ k && /* @__PURE__ */ m("span", {
3335
+ className: un(D.left),
3336
+ children: [/* @__PURE__ */ p("span", { children: e }), c && /* @__PURE__ */ p("span", {
3032
3337
  className: "text-eds-red-main",
3033
3338
  "aria-hidden": "true",
3034
3339
  children: "*"
3035
3340
  })]
3036
3341
  }),
3037
- /* @__PURE__ */ f(j.Value, {
3038
- className: N("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", Xt, O.text),
3342
+ /* @__PURE__ */ p(A.Value, {
3343
+ className: M("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", tn, D.text),
3039
3344
  placeholder: o
3040
3345
  }),
3041
- /* @__PURE__ */ f(j.Icon, {
3042
- className: N("inline-flex shrink-0 items-center justify-center rounded-md text-eds-neutral-elements", O.icon),
3346
+ /* @__PURE__ */ p(A.Icon, {
3347
+ className: M("inline-flex shrink-0 items-center justify-center rounded-md text-eds-neutral-elements", D.icon),
3043
3348
  "aria-hidden": !0,
3044
- children: /* @__PURE__ */ f(r, {
3349
+ children: /* @__PURE__ */ p(i, {
3045
3350
  className: "size-4 shrink-0",
3046
3351
  strokeWidth: 2
3047
3352
  })
3048
3353
  })
3049
3354
  ]
3050
- }), /* @__PURE__ */ f(j.Portal, { children: /* @__PURE__ */ f(j.Positioner, {
3051
- className: nn,
3052
- style: rn,
3355
+ }), /* @__PURE__ */ p(A.Portal, { children: /* @__PURE__ */ p(A.Positioner, {
3356
+ className: cn,
3357
+ style: ln,
3053
3358
  positionMethod: "fixed",
3054
3359
  sideOffset: 4,
3055
- children: /* @__PURE__ */ f(j.Popup, {
3056
- className: Qt,
3057
- children: /* @__PURE__ */ f(j.List, {
3058
- className: $t,
3059
- children: a.map((e) => /* @__PURE__ */ p(j.Item, {
3360
+ children: /* @__PURE__ */ p(A.Popup, {
3361
+ className: rn,
3362
+ children: /* @__PURE__ */ p(A.List, {
3363
+ className: an,
3364
+ children: a.map((e) => /* @__PURE__ */ m(A.Item, {
3060
3365
  value: e,
3061
- className: en,
3062
- children: [/* @__PURE__ */ f(j.ItemIndicator, {
3063
- className: tn,
3064
- children: /* @__PURE__ */ f(n, {
3366
+ className: on,
3367
+ children: [/* @__PURE__ */ p(A.ItemIndicator, {
3368
+ className: sn,
3369
+ children: /* @__PURE__ */ p(r, {
3065
3370
  size: 14,
3066
3371
  "aria-hidden": !0
3067
3372
  })
3068
- }), /* @__PURE__ */ f(j.ItemText, {
3373
+ }), /* @__PURE__ */ p(A.ItemText, {
3069
3374
  className: "block min-w-0 flex-1 text-left",
3070
- children: S ? S(e) : e.label
3375
+ children: x ? x(e) : e.label
3071
3376
  })]
3072
3377
  }, e.value))
3073
3378
  })
3074
3379
  })
3075
3380
  }) })]
3076
3381
  }),
3077
- D && /* @__PURE__ */ f("div", {
3078
- id: `${T}-desc`,
3382
+ E && /* @__PURE__ */ p("div", {
3383
+ id: `${w}-desc`,
3079
3384
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
3080
- "data-state": E ? "invalid" : u,
3081
- children: E ? h : m
3385
+ "data-state": T ? "invalid" : u,
3386
+ children: T ? h : f
3082
3387
  })
3083
3388
  ]
3084
3389
  });
3085
3390
  }
3086
3391
  //#endregion
3087
3392
  //#region src/components/Text/Text.tsx
3088
- var er = {
3393
+ var hr = {
3089
3394
  variant: {
3090
3395
  heading1: {
3091
3396
  classes: "text-3xl font-semibold",
@@ -3142,29 +3447,29 @@ var er = {
3142
3447
  description: "Large text"
3143
3448
  }
3144
3449
  }
3145
- }, tr = {
3450
+ }, gr = {
3146
3451
  variant: "body",
3147
3452
  size: "md"
3148
- }, nr = /* @__PURE__ */ new Set([
3453
+ }, _r = /* @__PURE__ */ new Set([
3149
3454
  "heading1",
3150
3455
  "heading2",
3151
3456
  "heading3"
3152
- ]), rr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3153
- function ir({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3154
- let l = rr.has(e), u = nr.has(e), d = y(() => o || (l || u ? "span" : "p"), [
3457
+ ]), vr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3458
+ function yr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3459
+ let l = vr.has(e), u = _r.has(e), d = y(() => o || (l || u ? "span" : "p"), [
3155
3460
  o,
3156
3461
  l,
3157
3462
  u
3158
- ]), p = P(er.variant, e, tr.variant), m = P(er.size, n ?? "md", tr.size);
3159
- return /* @__PURE__ */ f(d, {
3463
+ ]), f = N(hr.variant, e, gr.variant), m = N(hr.size, n ?? "md", gr.size);
3464
+ return /* @__PURE__ */ p(d, {
3160
3465
  ref: c,
3161
3466
  "data-eds-component": "Text",
3162
- className: N(p.classes, !u && m.classes, !u && t && "font-medium", r && "min-w-0 truncate", a),
3467
+ className: M(f.classes, !u && m.classes, !u && t && "font-medium", r && "min-w-0 truncate", a),
3163
3468
  ...s,
3164
3469
  children: i
3165
3470
  });
3166
3471
  }
3167
- var ar = h(ir), or = {
3472
+ var br = g(yr), xr = {
3168
3473
  layout: {
3169
3474
  auto: {
3170
3475
  classes: "",
@@ -3195,70 +3500,70 @@ var ar = h(ir), or = {
3195
3500
  description: "Pin column to the right edge of the scroll container"
3196
3501
  }
3197
3502
  }
3198
- }, sr = (e, t) => {
3199
- let n = P(or.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";
3200
- return t === "cell" ? N(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") : N(n, r, "bg-white group-data-[compact]/header:bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white group-data-[compact]/header:before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-white group-data-[compact]/header:before:to-eds-neutral-background");
3201
- }, cr = {
3503
+ }, Sr = (e, t) => {
3504
+ let n = N(xr.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";
3505
+ return t === "cell" ? M(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") : M(n, r, "bg-white group-data-[compact]/header:bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white group-data-[compact]/header:before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-white group-data-[compact]/header:before:to-eds-neutral-background");
3506
+ }, Cr = {
3202
3507
  layout: "auto",
3203
3508
  variant: "default"
3204
- }, lr = h(({ layout: e = "auto", className: t, containerClassName: n, ...r }, i) => {
3205
- let a = N("isolate w-full", P(or.layout, e, cr.layout).classes, "[&_td]:border-b [&_td]:border-eds-neutral-disabled [&_tr:last-child_td]:border-b-0", "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-base", "[&_th]:bg-white", "text-base text-left text-eds-neutral-main", t);
3206
- return /* @__PURE__ */ f("div", {
3207
- className: N("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", n),
3208
- children: /* @__PURE__ */ f("table", {
3509
+ }, wr = g(({ layout: e = "auto", className: t, containerClassName: n, ...r }, i) => {
3510
+ let a = M("isolate w-full", N(xr.layout, e, Cr.layout).classes, "[&_td]:border-b [&_td]:border-eds-neutral-disabled [&_tr:last-child_td]:border-b-0", "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-base", "[&_th]:bg-white", "text-base text-left text-eds-neutral-main", t);
3511
+ return /* @__PURE__ */ p("div", {
3512
+ className: M("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", n),
3513
+ children: /* @__PURE__ */ p("table", {
3209
3514
  ref: i,
3210
3515
  "data-eds-component": "Table",
3211
3516
  ...r,
3212
3517
  className: a
3213
3518
  })
3214
3519
  });
3215
- }), ur = h(({ variant: e = "default", sticky: t, ...n }, r) => {
3216
- let i = e === "compact", a = N("group/header", i && "[&_th]:bg-eds-neutral-background [&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
3217
- return /* @__PURE__ */ f("thead", {
3520
+ }), Tr = g(({ variant: e = "default", sticky: t, ...n }, r) => {
3521
+ let i = e === "compact", a = M("group/header", i && "[&_th]:bg-eds-neutral-background [&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
3522
+ return /* @__PURE__ */ p("thead", {
3218
3523
  ref: r,
3219
3524
  ...n,
3220
3525
  className: a,
3221
3526
  ...i && { "data-compact": "" }
3222
3527
  });
3223
- }), dr = h(({ sticky: e, ...t }, n) => {
3224
- let r = N("group relative", e && sr(e, "head"), t.className);
3225
- return /* @__PURE__ */ f("th", {
3528
+ }), Er = g(({ sticky: e, ...t }, n) => {
3529
+ let r = M("group relative", e && Sr(e, "head"), t.className);
3530
+ return /* @__PURE__ */ p("th", {
3226
3531
  ref: n,
3227
3532
  ...t,
3228
3533
  className: r
3229
3534
  });
3230
- }), fr = h(({ variant: e = cr.variant, ...t }, n) => {
3231
- let r = N(P(or.variant, e, cr.variant).classes, t.className);
3232
- return /* @__PURE__ */ f("tr", {
3535
+ }), Dr = g(({ variant: e = Cr.variant, ...t }, n) => {
3536
+ let r = M(N(xr.variant, e, Cr.variant).classes, t.className);
3537
+ return /* @__PURE__ */ p("tr", {
3233
3538
  ref: n,
3234
3539
  ...t,
3235
3540
  className: r
3236
3541
  });
3237
- }), pr = h((e, t) => /* @__PURE__ */ f("tbody", {
3542
+ }), Or = g((e, t) => /* @__PURE__ */ p("tbody", {
3238
3543
  ref: t,
3239
3544
  ...e
3240
- })), mr = h(({ sticky: e, ...t }, n) => {
3241
- let r = N(e && sr(e, "cell"), t.className);
3242
- return /* @__PURE__ */ f("td", {
3545
+ })), kr = g(({ sticky: e, ...t }, n) => {
3546
+ let r = M(e && Sr(e, "cell"), t.className);
3547
+ return /* @__PURE__ */ p("td", {
3243
3548
  ref: n,
3244
3549
  ...t,
3245
3550
  className: r
3246
3551
  });
3247
- }), hr = h((e, t) => /* @__PURE__ */ f("tfoot", {
3552
+ }), Ar = g((e, t) => /* @__PURE__ */ p("tfoot", {
3248
3553
  ref: t,
3249
3554
  ...e
3250
- })), gr = h((e, t) => /* @__PURE__ */ f("button", {
3555
+ })), jr = g((e, t) => /* @__PURE__ */ p("button", {
3251
3556
  ref: t,
3252
3557
  ...e,
3253
3558
  type: "button",
3254
3559
  "aria-label": "Redimensionar coluna",
3255
- className: N("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),
3256
- children: /* @__PURE__ */ f("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
3257
- })), _r = h(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ f(mr, {
3560
+ className: M("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),
3561
+ children: /* @__PURE__ */ p("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
3562
+ })), Mr = g(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ p(kr, {
3258
3563
  ref: o,
3259
3564
  ...a,
3260
- className: N("w-10 leading-none", a.className),
3261
- children: /* @__PURE__ */ f(Ht, {
3565
+ className: M("w-10 leading-none", a.className),
3566
+ children: /* @__PURE__ */ p(qt, {
3262
3567
  checked: e,
3263
3568
  indeterminate: t,
3264
3569
  onCheckedChange: n,
@@ -3266,11 +3571,11 @@ var ar = h(ir), or = {
3266
3571
  disabled: i,
3267
3572
  className: "relative before:absolute before:-inset-3 before:content-['']"
3268
3573
  })
3269
- })), vr = h(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ f(dr, {
3574
+ })), Nr = g(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ p(Er, {
3270
3575
  ref: o,
3271
3576
  ...a,
3272
- className: N("w-10 leading-none", a.className),
3273
- children: /* @__PURE__ */ f(Ht, {
3577
+ className: M("w-10 leading-none", a.className),
3578
+ children: /* @__PURE__ */ p(qt, {
3274
3579
  checked: e,
3275
3580
  indeterminate: t,
3276
3581
  onCheckedChange: n,
@@ -3279,42 +3584,42 @@ var ar = h(ir), or = {
3279
3584
  className: "relative before:absolute before:-inset-3 before:content-['']"
3280
3585
  })
3281
3586
  }));
3282
- lr.displayName = "Table", pr.displayName = "Table.Body", dr.displayName = "Table.Head", fr.displayName = "Table.Row", mr.displayName = "Table.Cell", hr.displayName = "Table.Footer", ur.displayName = "Table.Header", gr.displayName = "Table.ResizeHandle", _r.displayName = "Table.CheckCell", vr.displayName = "Table.CheckHead";
3283
- var yr = Object.assign(lr, {
3284
- Header: ur,
3285
- Head: dr,
3286
- Row: fr,
3287
- Body: pr,
3288
- Cell: mr,
3289
- CheckCell: _r,
3290
- CheckHead: vr,
3291
- Footer: hr,
3292
- ResizeHandle: gr
3293
- }), br = {
3587
+ wr.displayName = "Table", Or.displayName = "Table.Body", Er.displayName = "Table.Head", Dr.displayName = "Table.Row", kr.displayName = "Table.Cell", Ar.displayName = "Table.Footer", Tr.displayName = "Table.Header", jr.displayName = "Table.ResizeHandle", Mr.displayName = "Table.CheckCell", Nr.displayName = "Table.CheckHead";
3588
+ var Pr = Object.assign(wr, {
3589
+ Header: Tr,
3590
+ Head: Er,
3591
+ Row: Dr,
3592
+ Body: Or,
3593
+ Cell: kr,
3594
+ CheckCell: Mr,
3595
+ CheckHead: Nr,
3596
+ Footer: Ar,
3597
+ ResizeHandle: jr
3598
+ }), Fr = {
3294
3599
  variant: "segmented",
3295
3600
  size: "md"
3296
3601
  };
3297
- function xr({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = br.variant, size: l = br.size }) {
3298
- let u = e ?? [], d = c === "segmented", m = c === "underline", h = l === "sm", { ref: g, isOverflowing: _ } = Cr(d), v = Sr(g, _);
3602
+ function Ir({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = Fr.variant, size: l = Fr.size }) {
3603
+ let u = e ?? [], d = c === "segmented", f = c === "underline", h = l === "sm", { ref: g, isOverflowing: _ } = Rr(d), v = Lr(g, _);
3299
3604
  if (u.length === 0) return null;
3300
- let y = u[0]?.value, b = t !== void 0, x = {
3301
- value: b ? t : void 0,
3302
- defaultValue: b ? void 0 : n ?? y
3605
+ let ee = u[0]?.value, y = t !== void 0, b = {
3606
+ value: y ? t : void 0,
3607
+ defaultValue: y ? void 0 : n ?? ee
3303
3608
  };
3304
- return /* @__PURE__ */ p(M.Root, {
3305
- ...x,
3609
+ return /* @__PURE__ */ m(j.Root, {
3610
+ ...b,
3306
3611
  "data-eds-component": "Tabs",
3307
- className: N("relative isolate min-w-0 font-medium", d && (h ? "rounded-md" : "rounded-lg") + " ring ring-eds-outline-border", a),
3612
+ className: M("relative isolate min-w-0 font-medium", d && (h ? "rounded-md" : "rounded-lg") + " ring ring-eds-outline-border", a),
3308
3613
  onValueChange: (e) => {
3309
3614
  r?.(String(e));
3310
3615
  },
3311
- children: [d && /* @__PURE__ */ f("div", { className: N("absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-eds-neutral-background", h ? "h-6.5" : "h-9") }), /* @__PURE__ */ p(M.List, {
3616
+ children: [d && /* @__PURE__ */ p("div", { className: M("absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-eds-neutral-background", h ? "h-6.5" : "h-9") }), /* @__PURE__ */ m(j.List, {
3312
3617
  ref: g,
3313
3618
  activateOnFocus: i,
3314
3619
  "data-overflowing": _ ? "" : void 0,
3315
3620
  ...v(),
3316
- className: N("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 && _ && "[mask-image:linear-gradient(to_right,transparent,black_var(--scroll-fade-width),black_calc(100%-var(--scroll-fade-width)),transparent)]", d && (h ? "h-6.5 rounded-md" : "h-9"), _ && "cursor-grab active:cursor-grabbing", m && "gap-4 border-b border-eds-outline-border pb-2", m && (h ? "h-6.5" : "h-7.5"), o),
3317
- children: [u.map((e) => /* @__PURE__ */ f(M.Tab, {
3621
+ className: M("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 && _ && "[mask-image:linear-gradient(to_right,transparent,black_var(--scroll-fade-width),black_calc(100%-var(--scroll-fade-width)),transparent)]", d && (h ? "h-6.5 rounded-md" : "h-9"), _ && "cursor-grab active:cursor-grabbing", f && "gap-4 border-b border-eds-outline-border pb-2", f && (h ? "h-6.5" : "h-7.5"), o),
3622
+ children: [u.map((e) => /* @__PURE__ */ p(j.Tab, {
3318
3623
  value: e.value,
3319
3624
  render: e.render,
3320
3625
  onClick: (e) => {
@@ -3324,16 +3629,16 @@ function xr({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
3324
3629
  inline: "nearest"
3325
3630
  });
3326
3631
  },
3327
- className: N("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", _ ? "cursor-grab active:cursor-grabbing" : "cursor-pointer", h ? "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 && (h ? "px-2 rounded-sm" : "px-2.5 rounded-md"), m && "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", m && (h ? "px-1.5 py-2.5" : "px-2 py-3"), e.className),
3632
+ className: M("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", _ ? "cursor-grab active:cursor-grabbing" : "cursor-pointer", h ? "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 && (h ? "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 && (h ? "px-1.5 py-2.5" : "px-2 py-3"), e.className),
3328
3633
  children: e.label
3329
- }, e.value)), /* @__PURE__ */ f(M.Indicator, { render: (e) => /* @__PURE__ */ f("div", {
3634
+ }, e.value)), /* @__PURE__ */ p(j.Indicator, { render: (e) => /* @__PURE__ */ p("div", {
3330
3635
  ...e,
3331
- className: N("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 && N("top-(--active-tab-top) h-(--active-tab-height) bg-white shadow-sm ring ring-eds-outline-border", h ? "rounded" : "rounded-md"), m && "bottom-0 h-0.5 bg-eds-blue-main", s)
3636
+ className: M("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 && M("top-(--active-tab-top) h-(--active-tab-height) bg-white shadow-sm ring ring-eds-outline-border", h ? "rounded" : "rounded-md"), f && "bottom-0 h-0.5 bg-eds-blue-main", s)
3332
3637
  }) })]
3333
3638
  })]
3334
3639
  });
3335
3640
  }
3336
- function Sr(e, t) {
3641
+ function Lr(e, t) {
3337
3642
  let n = b(null), r = b(!1);
3338
3643
  return () => ({
3339
3644
  onPointerDownCapture: (i) => {
@@ -3370,9 +3675,9 @@ function Sr(e, t) {
3370
3675
  }
3371
3676
  });
3372
3677
  }
3373
- function Cr(e) {
3678
+ function Rr(e) {
3374
3679
  let t = b(null), [n, r] = x(!1);
3375
- return _(() => {
3680
+ return v(() => {
3376
3681
  if (!e) return;
3377
3682
  let n = t.current;
3378
3683
  if (!n) return;
@@ -3384,4 +3689,4 @@ function Cr(e) {
3384
3689
  };
3385
3690
  }
3386
3691
  //#endregion
3387
- export { zt as Attachment, It as AttachmentAction, Ft as AttachmentActions, Mt as AttachmentContent, Pt as AttachmentDescription, Rt as AttachmentGroup, jt as AttachmentMedia, Nt as AttachmentTitle, Lt as AttachmentTrigger, z as Button, B as COLORS, yt as Calendar, Dt as Card, Ht as Checkbox, ln as Combobox, mn as DatePicker, Dn as Dialog, Rn as Empty, Fn as FormDialog, gt as IconButton, Jn as Input, $n as Select, yr as Table, xr as Tabs, ar as Text, Zn as Textarea };
3692
+ export { Wt as Attachment, Vt as AttachmentAction, Bt as AttachmentActions, Lt as AttachmentContent, zt as AttachmentDescription, Ut as AttachmentGroup, It as AttachmentMedia, Rt as AttachmentTitle, Ht as AttachmentTrigger, z as Button, ne as COLORS, wt as Calendar, Mt as Card, qt as Checkbox, mn as Combobox, yn as DatePicker, Dn as DateTimePicker, Vn as Dialog, Qn as Empty, Yn as FormDialog, xt as IconButton, lr as Input, mr as Select, Pr as Table, Ir as Tabs, br as Text, fr as Textarea };