@vincisys/eyeson 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { Button as e } from "@base-ui/react/button";
2
- import { ArrowDown as t, ArrowUp as n, CalendarClock as r, CalendarDays as i, Check as a, ChevronDown as o, ChevronLeft as s, ChevronRight as c, ChevronsUpDown as l, Info as u, Loader2 as d, Minus as f, Search as p, X as m } from "lucide-react";
3
- import { clsx as h } from "clsx";
1
+ import { clsx as e } from "clsx";
2
+ import { Button as t } from "@base-ui/react/button";
3
+ import { ArrowDown as n, ArrowUp as r, CalendarClock as i, CalendarDays as a, Check as o, ChevronDown as s, ChevronLeft as c, ChevronRight as l, ChevronsUpDown as u, Info as d, Loader2 as f, Minus as p, Search as m, X as h } from "lucide-react";
4
4
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
5
5
  import * as y from "react";
6
6
  import { createContext as b, forwardRef as x, useContext as S, useEffect as C, useId as ee, useMemo as w, useRef as T, useState as E } from "react";
@@ -17,8 +17,8 @@ import { Input as N } from "@base-ui/react/input";
17
17
  import { Select as P } from "@base-ui/react/select";
18
18
  import { Tabs as F } from "@base-ui/react/tabs";
19
19
  //#region src/lib/utils.ts
20
- function I(...e) {
21
- return h(e);
20
+ function I(...t) {
21
+ return e(t);
22
22
  }
23
23
  //#endregion
24
24
  //#region src/utils/resolve-variant.ts
@@ -55,25 +55,25 @@ var ie = /* @__PURE__ */ new Set([
55
55
  }, z = {
56
56
  size: "md",
57
57
  variant: "solid"
58
- }, ae = {
58
+ }, B = {
59
59
  sm: 14,
60
60
  md: 16,
61
61
  lg: 16
62
62
  };
63
- function B({ variant: e = z.variant, size: t = z.size, fluid: n = !1 }) {
63
+ function V({ variant: e = z.variant, size: t = z.size, fluid: n = !1 }) {
64
64
  let r = L(R.size, t, z.size), i = L(R.variant, e, z.variant);
65
65
  return I("eds-btn group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:not-data-loading:opacity-50 data-loading:data-disabled:cursor-wait data-loading:data-disabled:opacity-100", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r.classes, i.classes, n && "w-full");
66
66
  }
67
- function oe({ text: t = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: s = "md", fluid: c = !1, isLoading: l = !1, disabled: u, style: f, ...p }) {
68
- let m = ae[s], h = !!(u || l), y = !!(l || r), b = i === "end" ? "inline-end" : "inline-start", x = {
67
+ function ae({ text: e = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: s = "md", fluid: c = !1, isLoading: l = !1, disabled: u, style: d, ...p }) {
68
+ let m = B[s], h = !!(u || l), y = !!(l || r), b = i === "end" ? "inline-end" : "inline-start", x = {
69
69
  "--eds-btn-accent": `var(--color-eds-${o})`,
70
70
  ...ie.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
71
- ...f
71
+ ...d
72
72
  }, S = y ? /* @__PURE__ */ _("span", {
73
73
  className: "eds-btn-icon-wrap flex shrink-0 items-center justify-center",
74
74
  "data-icon": b,
75
75
  "aria-hidden": !0,
76
- children: l ? /* @__PURE__ */ _(d, {
76
+ children: l ? /* @__PURE__ */ _(f, {
77
77
  className: "block size-full animate-eds-spin",
78
78
  size: m
79
79
  }) : r && /* @__PURE__ */ _(r, {
@@ -81,8 +81,8 @@ function oe({ text: t = "Button", className: n, icon: r, iconPosition: i = "star
81
81
  size: m
82
82
  })
83
83
  }) : null;
84
- return /* @__PURE__ */ _(e, {
85
- className: I(B({
84
+ return /* @__PURE__ */ _(t, {
85
+ className: I(V({
86
86
  variant: a,
87
87
  size: s,
88
88
  fluid: c
@@ -93,12 +93,49 @@ function oe({ text: t = "Button", className: n, icon: r, iconPosition: i = "star
93
93
  "data-loading": l || void 0,
94
94
  "aria-busy": l || void 0,
95
95
  ...p,
96
- children: i === "end" ? /* @__PURE__ */ v(g, { children: [t, S] }) : /* @__PURE__ */ v(g, { children: [S, t] })
96
+ children: i === "end" ? /* @__PURE__ */ v(g, { children: [e, S] }) : /* @__PURE__ */ v(g, { children: [S, e] })
97
+ });
98
+ }
99
+ //#endregion
100
+ //#region src/components/Badge/Badge.tsx
101
+ var oe = {
102
+ size: {
103
+ sm: { classes: "h-5 gap-1 px-2 text-[11px] [&_svg:not([class*='size-'])]:size-3" },
104
+ md: { classes: "h-6 gap-1 px-2.5 text-xs [&_svg:not([class*='size-'])]:size-3.5" }
105
+ },
106
+ variant: {
107
+ solid: { classes: "border-transparent bg-[var(--eds-badge-accent)] text-[var(--eds-badge-solid-fg,#fff)]" },
108
+ soft: { classes: "border-transparent bg-[color-mix(in_srgb,var(--eds-badge-accent)_16%,white)] text-[var(--eds-badge-accent)]" },
109
+ outline: { classes: "border-[var(--eds-badge-accent)] bg-transparent text-[var(--eds-badge-accent)]" }
110
+ }
111
+ }, H = {
112
+ size: "md",
113
+ variant: "soft"
114
+ };
115
+ function se({ className: e, variant: t = H.variant, color: n = "blue-main", size: r = H.size, icon: i, dot: a = !1, style: o, children: s, ...c }) {
116
+ let l = L(oe.size, r, H.size), u = L(oe.variant, t, H.variant), d = {
117
+ "--eds-badge-accent": `var(--color-eds-${n})`,
118
+ ...t === "solid" && ie.has(n) ? { "--eds-badge-solid-fg": "#fff" } : {},
119
+ ...o
120
+ };
121
+ return /* @__PURE__ */ v("span", {
122
+ "data-eds-component": "Badge",
123
+ className: I("inline-flex w-fit shrink-0 items-center justify-center rounded-full border font-medium whitespace-nowrap", "[&_svg]:pointer-events-none [&_svg]:shrink-0", l.classes, u.classes, e),
124
+ style: d,
125
+ ...c,
126
+ children: [
127
+ a && /* @__PURE__ */ _("span", {
128
+ "aria-hidden": !0,
129
+ className: "size-1.5 shrink-0 rounded-full bg-current"
130
+ }),
131
+ !a && i && /* @__PURE__ */ _(i, { "aria-hidden": !0 }),
132
+ s
133
+ ]
97
134
  });
98
135
  }
99
136
  //#endregion
100
137
  //#region src/constants/colors.ts
101
- var se = [
138
+ var U = [
102
139
  "blue-background",
103
140
  "blue-dark",
104
141
  "blue-main",
@@ -119,142 +156,142 @@ var se = [
119
156
  "red-dark",
120
157
  "red-main",
121
158
  "red-middle"
122
- ], V = 365.2425, ce = 6048e5, H = 864e5, le = 3600 * 24;
123
- le * 7, le * V / 12 * 3;
124
- var ue = Symbol.for("constructDateFrom");
159
+ ], ce = 365.2425, le = 6048e5, ue = 864e5, de = 3600 * 24;
160
+ de * 7, de * ce / 12 * 3;
161
+ var fe = Symbol.for("constructDateFrom");
125
162
  //#endregion
126
163
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
127
- function U(e, t) {
128
- return typeof e == "function" ? e(t) : e && typeof e == "object" && ue in e ? e[ue](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
164
+ function W(e, t) {
165
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && fe in e ? e[fe](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
129
166
  }
130
167
  //#endregion
131
168
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
132
- function W(e, t) {
133
- return U(t || e, e);
169
+ function G(e, t) {
170
+ return W(t || e, e);
134
171
  }
135
172
  //#endregion
136
173
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
137
- function de(e, t, n) {
138
- let r = W(e, n?.in);
139
- return isNaN(t) ? U(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
174
+ function pe(e, t, n) {
175
+ let r = G(e, n?.in);
176
+ return isNaN(t) ? W(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
140
177
  }
141
178
  //#endregion
142
179
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
143
- function fe(e, t, n) {
144
- let r = W(e, n?.in);
145
- if (isNaN(t)) return U(n?.in || e, NaN);
180
+ function me(e, t, n) {
181
+ let r = G(e, n?.in);
182
+ if (isNaN(t)) return W(n?.in || e, NaN);
146
183
  if (!t) return r;
147
- let i = r.getDate(), a = U(n?.in || e, r.getTime());
184
+ let i = r.getDate(), a = W(n?.in || e, r.getTime());
148
185
  return a.setMonth(r.getMonth() + t + 1, 0), i >= a.getDate() ? a : (r.setFullYear(a.getFullYear(), a.getMonth(), i), r);
149
186
  }
150
187
  //#endregion
151
188
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
152
- var pe = {};
153
- function me() {
154
- return pe;
189
+ var K = {};
190
+ function q() {
191
+ return K;
155
192
  }
156
193
  //#endregion
157
194
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
158
- function G(e, t) {
159
- let n = me(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = W(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
195
+ function he(e, t) {
196
+ let n = q(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = G(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
160
197
  return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
161
198
  }
162
199
  //#endregion
163
200
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
164
- function K(e, t) {
165
- return G(e, {
201
+ function ge(e, t) {
202
+ return he(e, {
166
203
  ...t,
167
204
  weekStartsOn: 1
168
205
  });
169
206
  }
170
207
  //#endregion
171
208
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
172
- function he(e, t) {
173
- let n = W(e, t?.in), r = n.getFullYear(), i = U(n, 0);
209
+ function _e(e, t) {
210
+ let n = G(e, t?.in), r = n.getFullYear(), i = W(n, 0);
174
211
  i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
175
- let a = K(i), o = U(n, 0);
212
+ let a = ge(i), o = W(n, 0);
176
213
  o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
177
- let s = K(o);
214
+ let s = ge(o);
178
215
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
179
216
  }
180
217
  //#endregion
181
218
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
182
- function ge(e) {
183
- let t = W(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
219
+ function ve(e) {
220
+ let t = G(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
184
221
  return n.setUTCFullYear(t.getFullYear()), e - +n;
185
222
  }
186
223
  //#endregion
187
224
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
188
- function _e(e, ...t) {
189
- let n = U.bind(null, e || t.find((e) => typeof e == "object"));
225
+ function ye(e, ...t) {
226
+ let n = W.bind(null, e || t.find((e) => typeof e == "object"));
190
227
  return t.map(n);
191
228
  }
192
229
  //#endregion
193
230
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
194
- function ve(e, t) {
195
- let n = W(e, t?.in);
231
+ function be(e, t) {
232
+ let n = G(e, t?.in);
196
233
  return n.setHours(0, 0, 0, 0), n;
197
234
  }
198
235
  //#endregion
199
236
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
200
- function ye(e, t, n) {
201
- let [r, i] = _e(n?.in, e, t), a = ve(r), o = ve(i), s = +a - ge(a), c = +o - ge(o);
202
- return Math.round((s - c) / H);
237
+ function xe(e, t, n) {
238
+ let [r, i] = ye(n?.in, e, t), a = be(r), o = be(i), s = +a - ve(a), c = +o - ve(o);
239
+ return Math.round((s - c) / ue);
203
240
  }
204
241
  //#endregion
205
242
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
206
- function be(e, t) {
207
- let n = he(e, t), r = U(t?.in || e, 0);
208
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), K(r);
243
+ function Se(e, t) {
244
+ let n = _e(e, t), r = W(t?.in || e, 0);
245
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), ge(r);
209
246
  }
210
247
  //#endregion
211
248
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructNow.js
212
- function xe(e) {
213
- return U(e, Date.now());
249
+ function Ce(e) {
250
+ return W(e, Date.now());
214
251
  }
215
252
  //#endregion
216
253
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
217
- function Se(e, t, n) {
218
- let [r, i] = _e(n?.in, e, t);
219
- return +ve(r) == +ve(i);
254
+ function we(e, t, n) {
255
+ let [r, i] = ye(n?.in, e, t);
256
+ return +be(r) == +be(i);
220
257
  }
221
258
  //#endregion
222
259
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
223
- function Ce(e) {
260
+ function Te(e) {
224
261
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
225
262
  }
226
263
  //#endregion
227
264
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
228
- function we(e) {
229
- return !(!Ce(e) && typeof e != "number" || isNaN(+W(e)));
265
+ function Ee(e) {
266
+ return !(!Te(e) && typeof e != "number" || isNaN(+G(e)));
230
267
  }
231
268
  //#endregion
232
269
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
233
- function Te(e, t) {
234
- let n = W(e, t?.in), r = n.getMonth();
270
+ function De(e, t) {
271
+ let n = G(e, t?.in), r = n.getMonth();
235
272
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
236
273
  }
237
274
  //#endregion
238
275
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
239
- function Ee(e, t) {
240
- let n = W(e, t?.in);
276
+ function Oe(e, t) {
277
+ let n = G(e, t?.in);
241
278
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
242
279
  }
243
280
  //#endregion
244
281
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
245
- function De(e, t) {
246
- let n = W(e, t?.in);
282
+ function ke(e, t) {
283
+ let n = G(e, t?.in);
247
284
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
248
285
  }
249
286
  //#endregion
250
287
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
251
- function Oe(e, t) {
252
- let n = me(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = W(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
288
+ function Ae(e, t) {
289
+ let n = q(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = G(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
253
290
  return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
254
291
  }
255
292
  //#endregion
256
293
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
257
- var ke = {
294
+ var je = {
258
295
  lessThanXSeconds: {
259
296
  one: "less than a second",
260
297
  other: "less than {{count}} seconds"
@@ -316,20 +353,20 @@ var ke = {
316
353
  one: "almost 1 year",
317
354
  other: "almost {{count}} years"
318
355
  }
319
- }, Ae = (e, t, n) => {
320
- let r, i = ke[e];
356
+ }, Me = (e, t, n) => {
357
+ let r, i = je[e];
321
358
  return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
322
359
  };
323
360
  //#endregion
324
361
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
325
- function je(e) {
362
+ function Ne(e) {
326
363
  return (t = {}) => {
327
364
  let n = t.width ? String(t.width) : e.defaultWidth;
328
365
  return e.formats[n] || e.formats[e.defaultWidth];
329
366
  };
330
367
  }
331
- var Me = {
332
- date: je({
368
+ var Pe = {
369
+ date: Ne({
333
370
  formats: {
334
371
  full: "EEEE, MMMM do, y",
335
372
  long: "MMMM do, y",
@@ -338,7 +375,7 @@ var Me = {
338
375
  },
339
376
  defaultWidth: "full"
340
377
  }),
341
- time: je({
378
+ time: Ne({
342
379
  formats: {
343
380
  full: "h:mm:ss a zzzz",
344
381
  long: "h:mm:ss a z",
@@ -347,7 +384,7 @@ var Me = {
347
384
  },
348
385
  defaultWidth: "full"
349
386
  }),
350
- dateTime: je({
387
+ dateTime: Ne({
351
388
  formats: {
352
389
  full: "{{date}} 'at' {{time}}",
353
390
  long: "{{date}} 'at' {{time}}",
@@ -356,17 +393,17 @@ var Me = {
356
393
  },
357
394
  defaultWidth: "full"
358
395
  })
359
- }, Ne = {
396
+ }, Fe = {
360
397
  lastWeek: "'last' eeee 'at' p",
361
398
  yesterday: "'yesterday at' p",
362
399
  today: "'today at' p",
363
400
  tomorrow: "'tomorrow at' p",
364
401
  nextWeek: "eeee 'at' p",
365
402
  other: "P"
366
- }, Pe = (e, t, n, r) => Ne[e];
403
+ }, Ie = (e, t, n, r) => Fe[e];
367
404
  //#endregion
368
405
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
369
- function Fe(e) {
406
+ function Le(e) {
370
407
  return (t, n) => {
371
408
  let r = n?.context ? String(n.context) : "standalone", i;
372
409
  if (r === "formatting" && e.formattingValues) {
@@ -380,7 +417,7 @@ function Fe(e) {
380
417
  return i[a];
381
418
  };
382
419
  }
383
- var Ie = {
420
+ var Re = {
384
421
  ordinalNumber: (e, t) => {
385
422
  let n = Number(e), r = n % 100;
386
423
  if (r > 20 || r < 10) switch (r % 10) {
@@ -390,7 +427,7 @@ var Ie = {
390
427
  }
391
428
  return n + "th";
392
429
  },
393
- era: Fe({
430
+ era: Le({
394
431
  values: {
395
432
  narrow: ["B", "A"],
396
433
  abbreviated: ["BC", "AD"],
@@ -398,7 +435,7 @@ var Ie = {
398
435
  },
399
436
  defaultWidth: "wide"
400
437
  }),
401
- quarter: Fe({
438
+ quarter: Le({
402
439
  values: {
403
440
  narrow: [
404
441
  "1",
@@ -422,7 +459,7 @@ var Ie = {
422
459
  defaultWidth: "wide",
423
460
  argumentCallback: (e) => e - 1
424
461
  }),
425
- month: Fe({
462
+ month: Le({
426
463
  values: {
427
464
  narrow: [
428
465
  "J",
@@ -469,7 +506,7 @@ var Ie = {
469
506
  },
470
507
  defaultWidth: "wide"
471
508
  }),
472
- day: Fe({
509
+ day: Le({
473
510
  values: {
474
511
  narrow: [
475
512
  "S",
@@ -510,7 +547,7 @@ var Ie = {
510
547
  },
511
548
  defaultWidth: "wide"
512
549
  }),
513
- dayPeriod: Fe({
550
+ dayPeriod: Le({
514
551
  values: {
515
552
  narrow: {
516
553
  am: "a",
@@ -581,11 +618,11 @@ var Ie = {
581
618
  };
582
619
  //#endregion
583
620
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
584
- function Le(e) {
621
+ function ze(e) {
585
622
  return (t, n = {}) => {
586
623
  let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
587
624
  if (!a) return null;
588
- let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? ze(s, (e) => e.test(o)) : Re(s, (e) => e.test(o)), l;
625
+ let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Ve(s, (e) => e.test(o)) : Be(s, (e) => e.test(o)), l;
589
626
  l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
590
627
  let u = t.slice(o.length);
591
628
  return {
@@ -594,15 +631,15 @@ function Le(e) {
594
631
  };
595
632
  };
596
633
  }
597
- function Re(e, t) {
634
+ function Be(e, t) {
598
635
  for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
599
636
  }
600
- function ze(e, t) {
637
+ function Ve(e, t) {
601
638
  for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
602
639
  }
603
640
  //#endregion
604
641
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
605
- function Be(e) {
642
+ function He(e) {
606
643
  return (t, n = {}) => {
607
644
  let r = t.match(e.matchPattern);
608
645
  if (!r) return null;
@@ -619,19 +656,19 @@ function Be(e) {
619
656
  }
620
657
  //#endregion
621
658
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
622
- var Ve = {
659
+ var Ue = {
623
660
  code: "en-US",
624
- formatDistance: Ae,
625
- formatLong: Me,
626
- formatRelative: Pe,
627
- localize: Ie,
661
+ formatDistance: Me,
662
+ formatLong: Pe,
663
+ formatRelative: Ie,
664
+ localize: Re,
628
665
  match: {
629
- ordinalNumber: Be({
666
+ ordinalNumber: He({
630
667
  matchPattern: /^(\d+)(th|st|nd|rd)?/i,
631
668
  parsePattern: /\d+/i,
632
669
  valueCallback: (e) => parseInt(e, 10)
633
670
  }),
634
- era: Le({
671
+ era: ze({
635
672
  matchPatterns: {
636
673
  narrow: /^(b|a)/i,
637
674
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
@@ -641,7 +678,7 @@ var Ve = {
641
678
  parsePatterns: { any: [/^b/i, /^(a|c)/i] },
642
679
  defaultParseWidth: "any"
643
680
  }),
644
- quarter: Le({
681
+ quarter: ze({
645
682
  matchPatterns: {
646
683
  narrow: /^[1234]/i,
647
684
  abbreviated: /^q[1234]/i,
@@ -657,7 +694,7 @@ var Ve = {
657
694
  defaultParseWidth: "any",
658
695
  valueCallback: (e) => e + 1
659
696
  }),
660
- month: Le({
697
+ month: ze({
661
698
  matchPatterns: {
662
699
  narrow: /^[jfmasond]/i,
663
700
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
@@ -696,7 +733,7 @@ var Ve = {
696
733
  },
697
734
  defaultParseWidth: "any"
698
735
  }),
699
- day: Le({
736
+ day: ze({
700
737
  matchPatterns: {
701
738
  narrow: /^[smtwf]/i,
702
739
  short: /^(su|mo|tu|we|th|fr|sa)/i,
@@ -726,7 +763,7 @@ var Ve = {
726
763
  },
727
764
  defaultParseWidth: "any"
728
765
  }),
729
- dayPeriod: Le({
766
+ dayPeriod: ze({
730
767
  matchPatterns: {
731
768
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
732
769
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
@@ -752,56 +789,56 @@ var Ve = {
752
789
  };
753
790
  //#endregion
754
791
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
755
- function He(e, t) {
756
- let n = W(e, t?.in);
757
- return ye(n, De(n)) + 1;
792
+ function We(e, t) {
793
+ let n = G(e, t?.in);
794
+ return xe(n, ke(n)) + 1;
758
795
  }
759
796
  //#endregion
760
797
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
761
- function Ue(e, t) {
762
- let n = W(e, t?.in), r = K(n) - +be(n);
763
- return Math.round(r / ce) + 1;
798
+ function Ge(e, t) {
799
+ let n = G(e, t?.in), r = ge(n) - +Se(n);
800
+ return Math.round(r / le) + 1;
764
801
  }
765
802
  //#endregion
766
803
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
767
- function We(e, t) {
768
- let n = W(e, t?.in), r = n.getFullYear(), i = me(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = U(t?.in || e, 0);
804
+ function Ke(e, t) {
805
+ let n = G(e, t?.in), r = n.getFullYear(), i = q(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = W(t?.in || e, 0);
769
806
  o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
770
- let s = G(o, t), c = U(t?.in || e, 0);
807
+ let s = he(o, t), c = W(t?.in || e, 0);
771
808
  c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
772
- let l = G(c, t);
809
+ let l = he(c, t);
773
810
  return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
774
811
  }
775
812
  //#endregion
776
813
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
777
- function Ge(e, t) {
778
- let n = me(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = We(e, t), a = U(t?.in || e, 0);
779
- return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), G(a, t);
814
+ function qe(e, t) {
815
+ let n = q(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Ke(e, t), a = W(t?.in || e, 0);
816
+ return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), he(a, t);
780
817
  }
781
818
  //#endregion
782
819
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
783
- function Ke(e, t) {
784
- let n = W(e, t?.in), r = G(n, t) - +Ge(n, t);
785
- return Math.round(r / ce) + 1;
820
+ function Je(e, t) {
821
+ let n = G(e, t?.in), r = he(n, t) - +qe(n, t);
822
+ return Math.round(r / le) + 1;
786
823
  }
787
824
  //#endregion
788
825
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
789
- function q(e, t) {
826
+ function J(e, t) {
790
827
  return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
791
828
  }
792
829
  //#endregion
793
830
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js
794
- var qe = {
831
+ var Ye = {
795
832
  y(e, t) {
796
833
  let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
797
- return q(t === "yy" ? r % 100 : r, t.length);
834
+ return J(t === "yy" ? r % 100 : r, t.length);
798
835
  },
799
836
  M(e, t) {
800
837
  let n = e.getMonth();
801
- return t === "M" ? String(n + 1) : q(n + 1, 2);
838
+ return t === "M" ? String(n + 1) : J(n + 1, 2);
802
839
  },
803
840
  d(e, t) {
804
- return q(e.getDate(), t.length);
841
+ return J(e.getDate(), t.length);
805
842
  },
806
843
  a(e, t) {
807
844
  let n = e.getHours() / 12 >= 1 ? "pm" : "am";
@@ -814,22 +851,22 @@ var qe = {
814
851
  }
815
852
  },
816
853
  h(e, t) {
817
- return q(e.getHours() % 12 || 12, t.length);
854
+ return J(e.getHours() % 12 || 12, t.length);
818
855
  },
819
856
  H(e, t) {
820
- return q(e.getHours(), t.length);
857
+ return J(e.getHours(), t.length);
821
858
  },
822
859
  m(e, t) {
823
- return q(e.getMinutes(), t.length);
860
+ return J(e.getMinutes(), t.length);
824
861
  },
825
862
  s(e, t) {
826
- return q(e.getSeconds(), t.length);
863
+ return J(e.getSeconds(), t.length);
827
864
  },
828
865
  S(e, t) {
829
866
  let n = t.length, r = e.getMilliseconds();
830
- return q(Math.trunc(r * 10 ** (n - 3)), t.length);
867
+ return J(Math.trunc(r * 10 ** (n - 3)), t.length);
831
868
  }
832
- }, Je = {
869
+ }, Xe = {
833
870
  am: "am",
834
871
  pm: "pm",
835
872
  midnight: "midnight",
@@ -838,7 +875,7 @@ var qe = {
838
875
  afternoon: "afternoon",
839
876
  evening: "evening",
840
877
  night: "night"
841
- }, Ye = {
878
+ }, Ze = {
842
879
  G: function(e, t, n) {
843
880
  let r = +(e.getFullYear() > 0);
844
881
  switch (t) {
@@ -854,23 +891,23 @@ var qe = {
854
891
  let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
855
892
  return n.ordinalNumber(r, { unit: "year" });
856
893
  }
857
- return qe.y(e, t);
894
+ return Ye.y(e, t);
858
895
  },
859
896
  Y: function(e, t, n, r) {
860
- let i = We(e, r), a = i > 0 ? i : 1 - i;
861
- return t === "YY" ? q(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : q(a, t.length);
897
+ let i = Ke(e, r), a = i > 0 ? i : 1 - i;
898
+ return t === "YY" ? J(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : J(a, t.length);
862
899
  },
863
900
  R: function(e, t) {
864
- return q(he(e), t.length);
901
+ return J(_e(e), t.length);
865
902
  },
866
903
  u: function(e, t) {
867
- return q(e.getFullYear(), t.length);
904
+ return J(e.getFullYear(), t.length);
868
905
  },
869
906
  Q: function(e, t, n) {
870
907
  let r = Math.ceil((e.getMonth() + 1) / 3);
871
908
  switch (t) {
872
909
  case "Q": return String(r);
873
- case "QQ": return q(r, 2);
910
+ case "QQ": return J(r, 2);
874
911
  case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
875
912
  case "QQQ": return n.quarter(r, {
876
913
  width: "abbreviated",
@@ -890,7 +927,7 @@ var qe = {
890
927
  let r = Math.ceil((e.getMonth() + 1) / 3);
891
928
  switch (t) {
892
929
  case "q": return String(r);
893
- case "qq": return q(r, 2);
930
+ case "qq": return J(r, 2);
894
931
  case "qo": return n.ordinalNumber(r, { unit: "quarter" });
895
932
  case "qqq": return n.quarter(r, {
896
933
  width: "abbreviated",
@@ -910,7 +947,7 @@ var qe = {
910
947
  let r = e.getMonth();
911
948
  switch (t) {
912
949
  case "M":
913
- case "MM": return qe.M(e, t);
950
+ case "MM": return Ye.M(e, t);
914
951
  case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
915
952
  case "MMM": return n.month(r, {
916
953
  width: "abbreviated",
@@ -930,7 +967,7 @@ var qe = {
930
967
  let r = e.getMonth();
931
968
  switch (t) {
932
969
  case "L": return String(r + 1);
933
- case "LL": return q(r + 1, 2);
970
+ case "LL": return J(r + 1, 2);
934
971
  case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
935
972
  case "LLL": return n.month(r, {
936
973
  width: "abbreviated",
@@ -947,19 +984,19 @@ var qe = {
947
984
  }
948
985
  },
949
986
  w: function(e, t, n, r) {
950
- let i = Ke(e, r);
951
- return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : q(i, t.length);
987
+ let i = Je(e, r);
988
+ return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : J(i, t.length);
952
989
  },
953
990
  I: function(e, t, n) {
954
- let r = Ue(e);
955
- return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : q(r, t.length);
991
+ let r = Ge(e);
992
+ return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : J(r, t.length);
956
993
  },
957
994
  d: function(e, t, n) {
958
- return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : qe.d(e, t);
995
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Ye.d(e, t);
959
996
  },
960
997
  D: function(e, t, n) {
961
- let r = He(e);
962
- return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : q(r, t.length);
998
+ let r = We(e);
999
+ return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : J(r, t.length);
963
1000
  },
964
1001
  E: function(e, t, n) {
965
1002
  let r = e.getDay();
@@ -988,7 +1025,7 @@ var qe = {
988
1025
  let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
989
1026
  switch (t) {
990
1027
  case "e": return String(a);
991
- case "ee": return q(a, 2);
1028
+ case "ee": return J(a, 2);
992
1029
  case "eo": return n.ordinalNumber(a, { unit: "day" });
993
1030
  case "eee": return n.day(i, {
994
1031
  width: "abbreviated",
@@ -1012,7 +1049,7 @@ var qe = {
1012
1049
  let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
1013
1050
  switch (t) {
1014
1051
  case "c": return String(a);
1015
- case "cc": return q(a, t.length);
1052
+ case "cc": return J(a, t.length);
1016
1053
  case "co": return n.ordinalNumber(a, { unit: "day" });
1017
1054
  case "ccc": return n.day(i, {
1018
1055
  width: "abbreviated",
@@ -1036,7 +1073,7 @@ var qe = {
1036
1073
  let r = e.getDay(), i = r === 0 ? 7 : r;
1037
1074
  switch (t) {
1038
1075
  case "i": return String(i);
1039
- case "ii": return q(i, t.length);
1076
+ case "ii": return J(i, t.length);
1040
1077
  case "io": return n.ordinalNumber(i, { unit: "day" });
1041
1078
  case "iii": return n.day(r, {
1042
1079
  width: "abbreviated",
@@ -1080,7 +1117,7 @@ var qe = {
1080
1117
  },
1081
1118
  b: function(e, t, n) {
1082
1119
  let r = e.getHours(), i;
1083
- switch (i = r === 12 ? Je.noon : r === 0 ? Je.midnight : r / 12 >= 1 ? "pm" : "am", t) {
1120
+ switch (i = r === 12 ? Xe.noon : r === 0 ? Xe.midnight : r / 12 >= 1 ? "pm" : "am", t) {
1084
1121
  case "b":
1085
1122
  case "bb": return n.dayPeriod(i, {
1086
1123
  width: "abbreviated",
@@ -1102,7 +1139,7 @@ var qe = {
1102
1139
  },
1103
1140
  B: function(e, t, n) {
1104
1141
  let r = e.getHours(), i;
1105
- switch (i = r >= 17 ? Je.evening : r >= 12 ? Je.afternoon : r >= 4 ? Je.morning : Je.night, t) {
1142
+ switch (i = r >= 17 ? Xe.evening : r >= 12 ? Xe.afternoon : r >= 4 ? Xe.morning : Xe.night, t) {
1106
1143
  case "B":
1107
1144
  case "BB":
1108
1145
  case "BBB": return n.dayPeriod(i, {
@@ -1124,45 +1161,45 @@ var qe = {
1124
1161
  let t = e.getHours() % 12;
1125
1162
  return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
1126
1163
  }
1127
- return qe.h(e, t);
1164
+ return Ye.h(e, t);
1128
1165
  },
1129
1166
  H: function(e, t, n) {
1130
- return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : qe.H(e, t);
1167
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Ye.H(e, t);
1131
1168
  },
1132
1169
  K: function(e, t, n) {
1133
1170
  let r = e.getHours() % 12;
1134
- return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : q(r, t.length);
1171
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : J(r, t.length);
1135
1172
  },
1136
1173
  k: function(e, t, n) {
1137
1174
  let r = e.getHours();
1138
- return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : q(r, t.length);
1175
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : J(r, t.length);
1139
1176
  },
1140
1177
  m: function(e, t, n) {
1141
- return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : qe.m(e, t);
1178
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Ye.m(e, t);
1142
1179
  },
1143
1180
  s: function(e, t, n) {
1144
- return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : qe.s(e, t);
1181
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Ye.s(e, t);
1145
1182
  },
1146
1183
  S: function(e, t) {
1147
- return qe.S(e, t);
1184
+ return Ye.S(e, t);
1148
1185
  },
1149
1186
  X: function(e, t, n) {
1150
1187
  let r = e.getTimezoneOffset();
1151
1188
  if (r === 0) return "Z";
1152
1189
  switch (t) {
1153
- case "X": return Ze(r);
1190
+ case "X": return $e(r);
1154
1191
  case "XXXX":
1155
- case "XX": return Qe(r);
1156
- default: return Qe(r, ":");
1192
+ case "XX": return et(r);
1193
+ default: return et(r, ":");
1157
1194
  }
1158
1195
  },
1159
1196
  x: function(e, t, n) {
1160
1197
  let r = e.getTimezoneOffset();
1161
1198
  switch (t) {
1162
- case "x": return Ze(r);
1199
+ case "x": return $e(r);
1163
1200
  case "xxxx":
1164
- case "xx": return Qe(r);
1165
- default: return Qe(r, ":");
1201
+ case "xx": return et(r);
1202
+ default: return et(r, ":");
1166
1203
  }
1167
1204
  },
1168
1205
  O: function(e, t, n) {
@@ -1170,8 +1207,8 @@ var qe = {
1170
1207
  switch (t) {
1171
1208
  case "O":
1172
1209
  case "OO":
1173
- case "OOO": return "GMT" + Xe(r, ":");
1174
- default: return "GMT" + Qe(r, ":");
1210
+ case "OOO": return "GMT" + Qe(r, ":");
1211
+ default: return "GMT" + et(r, ":");
1175
1212
  }
1176
1213
  },
1177
1214
  z: function(e, t, n) {
@@ -1179,49 +1216,49 @@ var qe = {
1179
1216
  switch (t) {
1180
1217
  case "z":
1181
1218
  case "zz":
1182
- case "zzz": return "GMT" + Xe(r, ":");
1183
- default: return "GMT" + Qe(r, ":");
1219
+ case "zzz": return "GMT" + Qe(r, ":");
1220
+ default: return "GMT" + et(r, ":");
1184
1221
  }
1185
1222
  },
1186
1223
  t: function(e, t, n) {
1187
- return q(Math.trunc(e / 1e3), t.length);
1224
+ return J(Math.trunc(e / 1e3), t.length);
1188
1225
  },
1189
1226
  T: function(e, t, n) {
1190
- return q(+e, t.length);
1227
+ return J(+e, t.length);
1191
1228
  }
1192
1229
  };
1193
- function Xe(e, t = "") {
1230
+ function Qe(e, t = "") {
1194
1231
  let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
1195
- return a === 0 ? n + String(i) : n + String(i) + t + q(a, 2);
1232
+ return a === 0 ? n + String(i) : n + String(i) + t + J(a, 2);
1196
1233
  }
1197
- function Ze(e, t) {
1198
- return e % 60 == 0 ? (e > 0 ? "-" : "+") + q(Math.abs(e) / 60, 2) : Qe(e, t);
1234
+ function $e(e, t) {
1235
+ return e % 60 == 0 ? (e > 0 ? "-" : "+") + J(Math.abs(e) / 60, 2) : et(e, t);
1199
1236
  }
1200
- function Qe(e, t = "") {
1201
- let n = e > 0 ? "-" : "+", r = Math.abs(e), i = q(Math.trunc(r / 60), 2), a = q(r % 60, 2);
1237
+ function et(e, t = "") {
1238
+ let n = e > 0 ? "-" : "+", r = Math.abs(e), i = J(Math.trunc(r / 60), 2), a = J(r % 60, 2);
1202
1239
  return n + i + t + a;
1203
1240
  }
1204
1241
  //#endregion
1205
1242
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js
1206
- var $e = (e, t) => {
1243
+ var tt = (e, t) => {
1207
1244
  switch (e) {
1208
1245
  case "P": return t.date({ width: "short" });
1209
1246
  case "PP": return t.date({ width: "medium" });
1210
1247
  case "PPP": return t.date({ width: "long" });
1211
1248
  default: return t.date({ width: "full" });
1212
1249
  }
1213
- }, et = (e, t) => {
1250
+ }, nt = (e, t) => {
1214
1251
  switch (e) {
1215
1252
  case "p": return t.time({ width: "short" });
1216
1253
  case "pp": return t.time({ width: "medium" });
1217
1254
  case "ppp": return t.time({ width: "long" });
1218
1255
  default: return t.time({ width: "full" });
1219
1256
  }
1220
- }, tt = {
1221
- p: et,
1257
+ }, rt = {
1258
+ p: nt,
1222
1259
  P: (e, t) => {
1223
1260
  let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
1224
- if (!i) return $e(e, t);
1261
+ if (!i) return tt(e, t);
1225
1262
  let a;
1226
1263
  switch (r) {
1227
1264
  case "P":
@@ -1237,42 +1274,42 @@ var $e = (e, t) => {
1237
1274
  a = t.dateTime({ width: "full" });
1238
1275
  break;
1239
1276
  }
1240
- return a.replace("{{date}}", $e(r, t)).replace("{{time}}", et(i, t));
1277
+ return a.replace("{{date}}", tt(r, t)).replace("{{time}}", nt(i, t));
1241
1278
  }
1242
- }, nt = /^D+$/, rt = /^Y+$/, it = [
1279
+ }, it = /^D+$/, at = /^Y+$/, ot = [
1243
1280
  "D",
1244
1281
  "DD",
1245
1282
  "YY",
1246
1283
  "YYYY"
1247
1284
  ];
1248
- function at(e) {
1249
- return nt.test(e);
1285
+ function st(e) {
1286
+ return it.test(e);
1250
1287
  }
1251
- function ot(e) {
1252
- return rt.test(e);
1288
+ function ct(e) {
1289
+ return at.test(e);
1253
1290
  }
1254
- function st(e, t, n) {
1255
- let r = ct(e, t, n);
1256
- if (console.warn(r), it.includes(e)) throw RangeError(r);
1291
+ function lt(e, t, n) {
1292
+ let r = ut(e, t, n);
1293
+ if (console.warn(r), ot.includes(e)) throw RangeError(r);
1257
1294
  }
1258
- function ct(e, t, n) {
1295
+ function ut(e, t, n) {
1259
1296
  let r = e[0] === "Y" ? "years" : "days of the month";
1260
1297
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1261
1298
  }
1262
1299
  //#endregion
1263
1300
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
1264
- var lt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ut = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, dt = /^'([^]*?)'?$/, ft = /''/g, pt = /[a-zA-Z]/;
1265
- function J(e, t, n) {
1266
- let r = me(), i = n?.locale ?? r.locale ?? Ve, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = W(e, n?.in);
1267
- if (!we(s)) throw RangeError("Invalid time value");
1268
- let c = t.match(ut).map((e) => {
1301
+ var dt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ft = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, pt = /^'([^]*?)'?$/, mt = /''/g, ht = /[a-zA-Z]/;
1302
+ function Y(e, t, n) {
1303
+ let r = q(), i = n?.locale ?? r.locale ?? Ue, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = G(e, n?.in);
1304
+ if (!Ee(s)) throw RangeError("Invalid time value");
1305
+ let c = t.match(ft).map((e) => {
1269
1306
  let t = e[0];
1270
1307
  if (t === "p" || t === "P") {
1271
- let n = tt[t];
1308
+ let n = rt[t];
1272
1309
  return n(e, i.formatLong);
1273
1310
  }
1274
1311
  return e;
1275
- }).join("").match(lt).map((e) => {
1312
+ }).join("").match(dt).map((e) => {
1276
1313
  if (e === "''") return {
1277
1314
  isToken: !1,
1278
1315
  value: "'"
@@ -1280,13 +1317,13 @@ function J(e, t, n) {
1280
1317
  let t = e[0];
1281
1318
  if (t === "'") return {
1282
1319
  isToken: !1,
1283
- value: mt(e)
1320
+ value: gt(e)
1284
1321
  };
1285
- if (Ye[t]) return {
1322
+ if (Ze[t]) return {
1286
1323
  isToken: !0,
1287
1324
  value: e
1288
1325
  };
1289
- if (t.match(pt)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
1326
+ if (t.match(ht)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
1290
1327
  return {
1291
1328
  isToken: !1,
1292
1329
  value: e
@@ -1301,72 +1338,72 @@ function J(e, t, n) {
1301
1338
  return c.map((r) => {
1302
1339
  if (!r.isToken) return r.value;
1303
1340
  let a = r.value;
1304
- (!n?.useAdditionalWeekYearTokens && ot(a) || !n?.useAdditionalDayOfYearTokens && at(a)) && st(a, t, String(e));
1305
- let o = Ye[a[0]];
1341
+ (!n?.useAdditionalWeekYearTokens && ct(a) || !n?.useAdditionalDayOfYearTokens && st(a)) && lt(a, t, String(e));
1342
+ let o = Ze[a[0]];
1306
1343
  return o(s, a, i.localize, l);
1307
1344
  }).join("");
1308
1345
  }
1309
- function mt(e) {
1310
- let t = e.match(dt);
1311
- return t ? t[1].replace(ft, "'") : e;
1346
+ function gt(e) {
1347
+ let t = e.match(pt);
1348
+ return t ? t[1].replace(mt, "'") : e;
1312
1349
  }
1313
1350
  //#endregion
1314
1351
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getHours.js
1315
- function ht(e, t) {
1316
- return W(e, t?.in).getHours();
1352
+ function _t(e, t) {
1353
+ return G(e, t?.in).getHours();
1317
1354
  }
1318
1355
  //#endregion
1319
1356
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMinutes.js
1320
- function gt(e, t) {
1321
- return W(e, t?.in).getMinutes();
1357
+ function vt(e, t) {
1358
+ return G(e, t?.in).getMinutes();
1322
1359
  }
1323
1360
  //#endregion
1324
1361
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
1325
- function _t(e, t) {
1326
- return +W(e) > +W(t);
1362
+ function yt(e, t) {
1363
+ return +G(e) > +G(t);
1327
1364
  }
1328
1365
  //#endregion
1329
1366
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
1330
- function vt(e, t) {
1331
- return +W(e) < +W(t);
1367
+ function bt(e, t) {
1368
+ return +G(e) < +G(t);
1332
1369
  }
1333
1370
  //#endregion
1334
1371
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
1335
- function yt(e, t, n) {
1336
- let [r, i] = _e(n?.in, e, t);
1372
+ function xt(e, t, n) {
1373
+ let [r, i] = ye(n?.in, e, t);
1337
1374
  return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
1338
1375
  }
1339
1376
  //#endregion
1340
1377
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isToday.js
1341
- function bt(e, t) {
1342
- return Se(U(t?.in || e, e), xe(t?.in || e));
1378
+ function St(e, t) {
1379
+ return we(W(t?.in || e, e), Ce(t?.in || e));
1343
1380
  }
1344
1381
  //#endregion
1345
1382
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setHours.js
1346
- function xt(e, t, n) {
1347
- let r = W(e, n?.in);
1383
+ function Ct(e, t, n) {
1384
+ let r = G(e, n?.in);
1348
1385
  return r.setHours(t), r;
1349
1386
  }
1350
1387
  //#endregion
1351
1388
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setMinutes.js
1352
- function St(e, t, n) {
1353
- let r = W(e, n?.in);
1389
+ function wt(e, t, n) {
1390
+ let r = G(e, n?.in);
1354
1391
  return r.setMinutes(t), r;
1355
1392
  }
1356
1393
  //#endregion
1357
1394
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setSeconds.js
1358
- function Ct(e, t, n) {
1359
- let r = W(e, n?.in);
1395
+ function Tt(e, t, n) {
1396
+ let r = G(e, n?.in);
1360
1397
  return r.setSeconds(t), r;
1361
1398
  }
1362
1399
  //#endregion
1363
1400
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/subMonths.js
1364
- function wt(e, t, n) {
1365
- return fe(e, -t, n);
1401
+ function Et(e, t, n) {
1402
+ return me(e, -t, n);
1366
1403
  }
1367
1404
  //#endregion
1368
1405
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js
1369
- var Tt = {
1406
+ var Dt = {
1370
1407
  lessThanXSeconds: {
1371
1408
  one: "menos de um segundo",
1372
1409
  other: "menos de {{count}} segundos"
@@ -1428,11 +1465,11 @@ var Tt = {
1428
1465
  one: "quase 1 ano",
1429
1466
  other: "quase {{count}} anos"
1430
1467
  }
1431
- }, Et = (e, t, n) => {
1432
- let r, i = Tt[e];
1468
+ }, Ot = (e, t, n) => {
1469
+ let r, i = Dt[e];
1433
1470
  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;
1434
- }, Dt = {
1435
- date: je({
1471
+ }, kt = {
1472
+ date: Ne({
1436
1473
  formats: {
1437
1474
  full: "EEEE, d 'de' MMMM 'de' y",
1438
1475
  long: "d 'de' MMMM 'de' y",
@@ -1441,7 +1478,7 @@ var Tt = {
1441
1478
  },
1442
1479
  defaultWidth: "full"
1443
1480
  }),
1444
- time: je({
1481
+ time: Ne({
1445
1482
  formats: {
1446
1483
  full: "HH:mm:ss zzzz",
1447
1484
  long: "HH:mm:ss z",
@@ -1450,7 +1487,7 @@ var Tt = {
1450
1487
  },
1451
1488
  defaultWidth: "full"
1452
1489
  }),
1453
- dateTime: je({
1490
+ dateTime: Ne({
1454
1491
  formats: {
1455
1492
  full: "{{date}} 'às' {{time}}",
1456
1493
  long: "{{date}} 'às' {{time}}",
@@ -1459,7 +1496,7 @@ var Tt = {
1459
1496
  },
1460
1497
  defaultWidth: "full"
1461
1498
  })
1462
- }, Ot = {
1499
+ }, At = {
1463
1500
  lastWeek: (e) => {
1464
1501
  let t = e.getDay();
1465
1502
  return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
@@ -1469,12 +1506,12 @@ var Tt = {
1469
1506
  tomorrow: "'amanhã às' p",
1470
1507
  nextWeek: "eeee 'às' p",
1471
1508
  other: "P"
1472
- }, kt = {
1509
+ }, jt = {
1473
1510
  code: "pt-BR",
1474
- formatDistance: Et,
1475
- formatLong: Dt,
1511
+ formatDistance: Ot,
1512
+ formatLong: kt,
1476
1513
  formatRelative: (e, t, n, r) => {
1477
- let i = Ot[e];
1514
+ let i = At[e];
1478
1515
  return typeof i == "function" ? i(t) : i;
1479
1516
  },
1480
1517
  localize: {
@@ -1482,7 +1519,7 @@ var Tt = {
1482
1519
  let n = Number(e);
1483
1520
  return t?.unit === "week" ? n + "ª" : n + "º";
1484
1521
  },
1485
- era: Fe({
1522
+ era: Le({
1486
1523
  values: {
1487
1524
  narrow: ["AC", "DC"],
1488
1525
  abbreviated: ["AC", "DC"],
@@ -1490,7 +1527,7 @@ var Tt = {
1490
1527
  },
1491
1528
  defaultWidth: "wide"
1492
1529
  }),
1493
- quarter: Fe({
1530
+ quarter: Le({
1494
1531
  values: {
1495
1532
  narrow: [
1496
1533
  "1",
@@ -1514,7 +1551,7 @@ var Tt = {
1514
1551
  defaultWidth: "wide",
1515
1552
  argumentCallback: (e) => e - 1
1516
1553
  }),
1517
- month: Fe({
1554
+ month: Le({
1518
1555
  values: {
1519
1556
  narrow: [
1520
1557
  "j",
@@ -1561,7 +1598,7 @@ var Tt = {
1561
1598
  },
1562
1599
  defaultWidth: "wide"
1563
1600
  }),
1564
- day: Fe({
1601
+ day: Le({
1565
1602
  values: {
1566
1603
  narrow: [
1567
1604
  "D",
@@ -1602,7 +1639,7 @@ var Tt = {
1602
1639
  },
1603
1640
  defaultWidth: "wide"
1604
1641
  }),
1605
- dayPeriod: Fe({
1642
+ dayPeriod: Le({
1606
1643
  values: {
1607
1644
  narrow: {
1608
1645
  am: "a",
@@ -1672,12 +1709,12 @@ var Tt = {
1672
1709
  })
1673
1710
  },
1674
1711
  match: {
1675
- ordinalNumber: Be({
1712
+ ordinalNumber: He({
1676
1713
  matchPattern: /^(\d+)[ºªo]?/i,
1677
1714
  parsePattern: /\d+/i,
1678
1715
  valueCallback: (e) => parseInt(e, 10)
1679
1716
  }),
1680
- era: Le({
1717
+ era: ze({
1681
1718
  matchPatterns: {
1682
1719
  narrow: /^(ac|dc|a|d)/i,
1683
1720
  abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
@@ -1690,7 +1727,7 @@ var Tt = {
1690
1727
  },
1691
1728
  defaultParseWidth: "any"
1692
1729
  }),
1693
- quarter: Le({
1730
+ quarter: ze({
1694
1731
  matchPatterns: {
1695
1732
  narrow: /^[1234]/i,
1696
1733
  abbreviated: /^T[1234]/i,
@@ -1706,7 +1743,7 @@ var Tt = {
1706
1743
  defaultParseWidth: "any",
1707
1744
  valueCallback: (e) => e + 1
1708
1745
  }),
1709
- month: Le({
1746
+ month: ze({
1710
1747
  matchPatterns: {
1711
1748
  narrow: /^[jfmajsond]/i,
1712
1749
  abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
@@ -1745,7 +1782,7 @@ var Tt = {
1745
1782
  },
1746
1783
  defaultParseWidth: "any"
1747
1784
  }),
1748
- day: Le({
1785
+ day: ze({
1749
1786
  matchPatterns: {
1750
1787
  narrow: /^(dom|[23456]ª?|s[aá]b)/i,
1751
1788
  short: /^(dom|[23456]ª?|s[aá]b)/i,
@@ -1784,7 +1821,7 @@ var Tt = {
1784
1821
  },
1785
1822
  defaultParseWidth: "any"
1786
1823
  }),
1787
- dayPeriod: Le({
1824
+ dayPeriod: ze({
1788
1825
  matchPatterns: {
1789
1826
  narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
1790
1827
  any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
@@ -1807,7 +1844,7 @@ var Tt = {
1807
1844
  weekStartsOn: 0,
1808
1845
  firstWeekContainsDate: 1
1809
1846
  }
1810
- }, At = {
1847
+ }, Mt = {
1811
1848
  sm: {
1812
1849
  classes: "size-[calc(1.75rem*1.188*1.1)] rounded-[min(var(--radius-eds-xs),12px)] [&_svg:not([class*='size-'])]:size-3.5",
1813
1850
  iconPx: 14
@@ -1821,8 +1858,8 @@ var Tt = {
1821
1858
  iconPx: 16
1822
1859
  }
1823
1860
  };
1824
- function jt({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", hoverColor: o, size: s = "md", disabled: c, style: l, tooltip: u, ...d }) {
1825
- let f = ee(), p = L(At, s, z.size), m = L(R.variant, i, z.variant), h = /* @__PURE__ */ _(e, {
1861
+ function Nt({ icon: e, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", hoverColor: o, size: s = "md", disabled: c, style: l, tooltip: u, ...d }) {
1862
+ let f = ee(), p = L(Mt, s, z.size), m = L(R.variant, i, z.variant), h = /* @__PURE__ */ _(t, {
1826
1863
  style: {
1827
1864
  "--eds-btn-base-accent": `var(--color-eds-${a})`,
1828
1865
  ...ie.has(a) ? { "--eds-btn-solid-fg": "#fff" } : {},
@@ -1837,7 +1874,7 @@ function jt({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
1837
1874
  title: u ? void 0 : n,
1838
1875
  "data-eds-component": "IconButton",
1839
1876
  className: I("group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:opacity-50", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "[--eds-btn-accent:var(--eds-btn-base-accent)]", o && "hover:[--eds-btn-accent:var(--eds-btn-hover-accent)] focus-visible:[--eds-btn-accent:var(--eds-btn-hover-accent)]", o && i === "outline" && "hover:border-[color-mix(in_srgb,var(--eds-btn-accent)_90%,black)]", p.classes, m.classes, r),
1840
- children: /* @__PURE__ */ _(t, {
1877
+ children: /* @__PURE__ */ _(e, {
1841
1878
  size: p.iconPx,
1842
1879
  "aria-hidden": !0
1843
1880
  })
@@ -1858,7 +1895,7 @@ function jt({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
1858
1895
  }
1859
1896
  //#endregion
1860
1897
  //#region src/components/Calendar/Calendar.tsx
1861
- var Mt = [
1898
+ var Pt = [
1862
1899
  "Dom",
1863
1900
  "Seg",
1864
1901
  "Ter",
@@ -1867,16 +1904,16 @@ var Mt = [
1867
1904
  "Sex",
1868
1905
  "Sáb"
1869
1906
  ];
1870
- function Nt(e, t) {
1871
- let n = G(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
1872
- for (let e = n; e <= r; e = de(e, 1)) i.push(e);
1907
+ function Ft(e, t) {
1908
+ let n = he(Oe(e), { weekStartsOn: t }), r = Ae(De(e), { weekStartsOn: t }), i = [];
1909
+ for (let e = n; e <= r; e = pe(e, 1)) i.push(e);
1873
1910
  return i;
1874
1911
  }
1875
- function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: i = 3, weekStartsOn: a = 0, onDayClick: o, onEventClick: l, renderEvent: u, showNavigation: d = !0, className: f }) {
1876
- let [p, m] = E(() => t ?? /* @__PURE__ */ new Date()), h = e !== void 0, g = h ? e : p, y = w(() => [...Mt.slice(a), ...Mt.slice(0, a)], [a]), b = w(() => Nt(g, a), [g, a]), x = w(() => {
1912
+ function It({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: i = 3, weekStartsOn: a = 0, onDayClick: o, onEventClick: s, renderEvent: u, showNavigation: d = !0, className: f }) {
1913
+ let [p, m] = E(() => t ?? /* @__PURE__ */ new Date()), h = e !== void 0, g = h ? e : p, y = w(() => [...Pt.slice(a), ...Pt.slice(0, a)], [a]), b = w(() => Ft(g, a), [g, a]), x = w(() => {
1877
1914
  let e = /* @__PURE__ */ new Map();
1878
1915
  for (let t of r) {
1879
- let n = J(t.date, "yyyy-MM-dd"), r = e.get(n);
1916
+ let n = Y(t.date, "yyyy-MM-dd"), r = e.get(n);
1880
1917
  r ? r.push(t) : e.set(n, [t]);
1881
1918
  }
1882
1919
  return e;
@@ -1891,19 +1928,19 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1891
1928
  className: "mb-3 flex shrink-0 items-center justify-between",
1892
1929
  children: [/* @__PURE__ */ _("span", {
1893
1930
  className: "text-base font-medium text-eds-neutral-main capitalize",
1894
- children: J(g, "MMMM yyyy", { locale: kt })
1931
+ children: Y(g, "MMMM yyyy", { locale: jt })
1895
1932
  }), /* @__PURE__ */ v("div", {
1896
1933
  className: "flex items-center gap-1",
1897
- children: [/* @__PURE__ */ _(jt, {
1898
- icon: s,
1934
+ children: [/* @__PURE__ */ _(Nt, {
1935
+ icon: c,
1899
1936
  label: "Mês anterior",
1900
1937
  size: "sm",
1901
- onClick: () => S(wt(g, 1))
1902
- }), /* @__PURE__ */ _(jt, {
1903
- icon: c,
1938
+ onClick: () => S(Et(g, 1))
1939
+ }), /* @__PURE__ */ _(Nt, {
1940
+ icon: l,
1904
1941
  label: "Próximo mês",
1905
1942
  size: "sm",
1906
- onClick: () => S(fe(g, 1))
1943
+ onClick: () => S(me(g, 1))
1907
1944
  })]
1908
1945
  })]
1909
1946
  }), /* @__PURE__ */ v("div", {
@@ -1917,7 +1954,7 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1917
1954
  }), /* @__PURE__ */ _("div", {
1918
1955
  className: "grid flex-1 auto-rows-fr grid-cols-7",
1919
1956
  children: b.map((e, t) => {
1920
- let n = yt(e, g), r = bt(e), a = J(e, "yyyy-MM-dd"), s = x.get(a) ?? [], c = s.slice(0, i), d = s.length - c.length, f = n ? J(e, "d") : J(e, "d MMM", { locale: kt });
1957
+ let n = xt(e, g), r = St(e), a = Y(e, "yyyy-MM-dd"), c = x.get(a) ?? [], l = c.slice(0, i), d = c.length - l.length, f = n ? Y(e, "d") : Y(e, "d MMM", { locale: jt });
1921
1958
  return /* @__PURE__ */ v("div", {
1922
1959
  "data-date": a,
1923
1960
  onClick: () => o?.(e),
@@ -1938,13 +1975,13 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1938
1975
  });
1939
1976
  })(), /* @__PURE__ */ v("div", {
1940
1977
  className: "flex flex-1 flex-col justify-center gap-1 overflow-hidden",
1941
- children: [c.map((e) => u ? /* @__PURE__ */ _("div", {
1978
+ children: [l.map((e) => u ? /* @__PURE__ */ _("div", {
1942
1979
  onClick: (e) => e.stopPropagation(),
1943
1980
  children: u(e)
1944
1981
  }, e.id) : /* @__PURE__ */ v("button", {
1945
1982
  type: "button",
1946
1983
  onClick: (t) => {
1947
- t.stopPropagation(), l?.(e);
1984
+ t.stopPropagation(), s?.(e);
1948
1985
  },
1949
1986
  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",
1950
1987
  children: [/* @__PURE__ */ _("span", {
@@ -1972,73 +2009,73 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1972
2009
  }
1973
2010
  //#endregion
1974
2011
  //#region src/components/Card/Card.tsx
1975
- function Ft({ className: e, ...t }) {
2012
+ function Lt({ className: e, ...t }) {
1976
2013
  return /* @__PURE__ */ _("div", {
1977
2014
  "data-eds-component": "Card",
1978
2015
  className: I("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
1979
2016
  ...t
1980
2017
  });
1981
2018
  }
1982
- function It({ className: e, ...t }) {
2019
+ function Rt({ className: e, ...t }) {
1983
2020
  return /* @__PURE__ */ _("div", {
1984
2021
  "data-slot": "card-header",
1985
2022
  className: I("grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]", e),
1986
2023
  ...t
1987
2024
  });
1988
2025
  }
1989
- function Lt({ className: e, ...t }) {
2026
+ function zt({ className: e, ...t }) {
1990
2027
  return /* @__PURE__ */ _("h3", {
1991
2028
  "data-slot": "card-title",
1992
2029
  className: I("text-lg leading-none font-semibold text-eds-neutral-main", e),
1993
2030
  ...t
1994
2031
  });
1995
2032
  }
1996
- function Rt({ className: e, ...t }) {
2033
+ function Bt({ className: e, ...t }) {
1997
2034
  return /* @__PURE__ */ _("p", {
1998
2035
  "data-slot": "card-description",
1999
2036
  className: I("text-sm text-eds-neutral-elements", e),
2000
2037
  ...t
2001
2038
  });
2002
2039
  }
2003
- function zt({ className: e, ...t }) {
2040
+ function Vt({ className: e, ...t }) {
2004
2041
  return /* @__PURE__ */ _("div", {
2005
2042
  "data-slot": "card-action",
2006
2043
  className: I("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
2007
2044
  ...t
2008
2045
  });
2009
2046
  }
2010
- function Bt({ className: e, ...t }) {
2047
+ function Ht({ className: e, ...t }) {
2011
2048
  return /* @__PURE__ */ _("div", {
2012
2049
  "data-slot": "card-content",
2013
2050
  className: I("px-6", e),
2014
2051
  ...t
2015
2052
  });
2016
2053
  }
2017
- function Vt({ className: e, ...t }) {
2054
+ function Ut({ className: e, ...t }) {
2018
2055
  return /* @__PURE__ */ _("div", {
2019
2056
  "data-slot": "card-footer",
2020
2057
  className: I("-mb-6 -mt-6 flex flex-col-reverse gap-2 rounded-b-eds-sm border-t border-eds-outline-border bg-eds-neutral-background px-6 py-4 sm:flex-row sm:justify-end", e),
2021
2058
  ...t
2022
2059
  });
2023
2060
  }
2024
- It.displayName = "Card.Header", Lt.displayName = "Card.Title", Rt.displayName = "Card.Description", zt.displayName = "Card.Action", Bt.displayName = "Card.Content", Vt.displayName = "Card.Footer";
2025
- var Ht = Object.assign(Ft, {
2026
- Header: It,
2027
- Title: Lt,
2028
- Description: Rt,
2029
- Action: zt,
2030
- Content: Bt,
2031
- Footer: Vt
2032
- }), Ut = {
2061
+ Rt.displayName = "Card.Header", zt.displayName = "Card.Title", Bt.displayName = "Card.Description", Vt.displayName = "Card.Action", Ht.displayName = "Card.Content", Ut.displayName = "Card.Footer";
2062
+ var Wt = Object.assign(Lt, {
2063
+ Header: Rt,
2064
+ Title: zt,
2065
+ Description: Bt,
2066
+ Action: Vt,
2067
+ Content: Ht,
2068
+ Footer: Ut
2069
+ }), Gt = {
2033
2070
  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" },
2034
2071
  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" },
2035
2072
  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" }
2036
- }, Wt = {
2073
+ }, Kt = {
2037
2074
  horizontal: { classes: "min-w-40 items-center" },
2038
2075
  vertical: { classes: "w-24 flex-col has-data-[slot=attachment-content]:w-[7.5rem]" }
2039
2076
  };
2040
- function Gt({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
2041
- let a = L(Ut, n, "default"), o = L(Wt, r, "horizontal");
2077
+ function qt({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
2078
+ let a = L(Gt, n, "default"), o = L(Kt, r, "horizontal");
2042
2079
  return /* @__PURE__ */ _("div", {
2043
2080
  "data-eds-component": "Attachment",
2044
2081
  "data-slot": "attachment",
@@ -2049,7 +2086,7 @@ function Gt({ className: e, state: t = "done", size: n = "default", orientation:
2049
2086
  ...i
2050
2087
  });
2051
2088
  }
2052
- function Kt({ className: e, variant: t = "icon", ...n }) {
2089
+ function Jt({ className: e, variant: t = "icon", ...n }) {
2053
2090
  return /* @__PURE__ */ _("div", {
2054
2091
  "data-slot": "attachment-media",
2055
2092
  "data-variant": t,
@@ -2057,36 +2094,36 @@ function Kt({ className: e, variant: t = "icon", ...n }) {
2057
2094
  ...n
2058
2095
  });
2059
2096
  }
2060
- function qt({ className: e, ...t }) {
2097
+ function Yt({ className: e, ...t }) {
2061
2098
  return /* @__PURE__ */ _("div", {
2062
2099
  "data-slot": "attachment-content",
2063
2100
  className: I("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
2064
2101
  ...t
2065
2102
  });
2066
2103
  }
2067
- function Jt({ className: e, ...t }) {
2104
+ function Xt({ className: e, ...t }) {
2068
2105
  return /* @__PURE__ */ _("span", {
2069
2106
  "data-slot": "attachment-title",
2070
2107
  className: I("block max-w-full min-w-0 truncate font-medium text-eds-neutral-main", "group-data-[state=uploading]/attachment:animate-eds-shimmer group-data-[state=processing]/attachment:animate-eds-shimmer", "group-data-[state=uploading]/attachment:text-eds-blue-main group-data-[state=processing]/attachment:text-eds-blue-main", e),
2071
2108
  ...t
2072
2109
  });
2073
2110
  }
2074
- function Yt({ className: e, ...t }) {
2111
+ function Zt({ className: e, ...t }) {
2075
2112
  return /* @__PURE__ */ _("span", {
2076
2113
  "data-slot": "attachment-description",
2077
2114
  className: I("mt-0.5 block max-w-full min-w-0 truncate text-xs text-eds-neutral-elements", "group-data-[state=error]/attachment:text-eds-red-main/85", "group-data-[state=uploading]/attachment:text-eds-blue-middle group-data-[state=processing]/attachment:text-eds-blue-middle", e),
2078
2115
  ...t
2079
2116
  });
2080
2117
  }
2081
- function Xt({ className: e, ...t }) {
2118
+ function Qt({ className: e, ...t }) {
2082
2119
  return /* @__PURE__ */ _("div", {
2083
2120
  "data-slot": "attachment-actions",
2084
2121
  className: I("relative z-20 flex shrink-0 items-center", "group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", e),
2085
2122
  ...t
2086
2123
  });
2087
2124
  }
2088
- function Zt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
2089
- return /* @__PURE__ */ _(jt, {
2125
+ function $t({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
2126
+ return /* @__PURE__ */ _(Nt, {
2090
2127
  "data-slot": "attachment-action",
2091
2128
  variant: e,
2092
2129
  color: t,
@@ -2095,7 +2132,7 @@ function Zt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", clas
2095
2132
  ...i
2096
2133
  });
2097
2134
  }
2098
- function Qt({ className: e, render: t, type: n, ...r }) {
2135
+ function en({ className: e, render: t, type: n, ...r }) {
2099
2136
  return ne({
2100
2137
  defaultTagName: "button",
2101
2138
  props: te({
@@ -2106,7 +2143,7 @@ function Qt({ className: e, render: t, type: n, ...r }) {
2106
2143
  state: { slot: "attachment-trigger" }
2107
2144
  });
2108
2145
  }
2109
- function $t({ className: e, ...t }) {
2146
+ function tn({ className: e, ...t }) {
2110
2147
  return /* @__PURE__ */ _("div", {
2111
2148
  "data-eds-component": "AttachmentGroup",
2112
2149
  "data-slot": "attachment-group",
@@ -2114,32 +2151,32 @@ function $t({ className: e, ...t }) {
2114
2151
  ...t
2115
2152
  });
2116
2153
  }
2117
- Kt.displayName = "Attachment.Media", qt.displayName = "Attachment.Content", Jt.displayName = "Attachment.Title", Yt.displayName = "Attachment.Description", Xt.displayName = "Attachment.Actions", Zt.displayName = "Attachment.Action", Qt.displayName = "Attachment.Trigger", $t.displayName = "Attachment.Group";
2118
- var en = Object.assign(Gt, {
2119
- Media: Kt,
2120
- Content: qt,
2121
- Title: Jt,
2122
- Description: Yt,
2123
- Actions: Xt,
2124
- Action: Zt,
2125
- Trigger: Qt,
2126
- Group: $t
2127
- }), tn = I("relative flex size-[18px] shrink-0 items-center justify-center rounded-[4px] border border-eds-neutral-elements bg-white transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-brand focus-visible:ring-offset-1", "data-checked:border-eds-blue-main data-checked:bg-eds-blue-main", "data-indeterminate:border-eds-blue-main data-indeterminate:bg-eds-blue-main", "data-disabled:cursor-not-allowed data-disabled:border-eds-neutral-disabled data-disabled:bg-eds-neutral-background data-disabled:opacity-70");
2128
- function nn({ className: e, ...t }) {
2154
+ Jt.displayName = "Attachment.Media", Yt.displayName = "Attachment.Content", Xt.displayName = "Attachment.Title", Zt.displayName = "Attachment.Description", Qt.displayName = "Attachment.Actions", $t.displayName = "Attachment.Action", en.displayName = "Attachment.Trigger", tn.displayName = "Attachment.Group";
2155
+ var nn = Object.assign(qt, {
2156
+ Media: Jt,
2157
+ Content: Yt,
2158
+ Title: Xt,
2159
+ Description: Zt,
2160
+ Actions: Qt,
2161
+ Action: $t,
2162
+ Trigger: en,
2163
+ Group: tn
2164
+ }), rn = I("relative flex size-[18px] shrink-0 items-center justify-center rounded-[4px] border border-eds-neutral-elements bg-white transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-brand focus-visible:ring-offset-1", "data-checked:border-eds-blue-main data-checked:bg-eds-blue-main", "data-indeterminate:border-eds-blue-main data-indeterminate:bg-eds-blue-main", "data-disabled:cursor-not-allowed data-disabled:border-eds-neutral-disabled data-disabled:bg-eds-neutral-background data-disabled:opacity-70");
2165
+ function an({ className: e, ...t }) {
2129
2166
  return /* @__PURE__ */ _(O.Root, {
2130
2167
  "data-eds-component": "Checkbox",
2131
- className: I(tn, e),
2168
+ className: I(rn, e),
2132
2169
  ...t,
2133
2170
  children: /* @__PURE__ */ _(O.Indicator, {
2134
2171
  keepMounted: !0,
2135
2172
  className: "flex items-center justify-center text-white data-unchecked:invisible",
2136
2173
  render: (e, t) => /* @__PURE__ */ _("span", {
2137
2174
  ...e,
2138
- children: t.indeterminate ? /* @__PURE__ */ _(f, {
2175
+ children: t.indeterminate ? /* @__PURE__ */ _(p, {
2139
2176
  size: 12,
2140
2177
  strokeWidth: 3,
2141
2178
  "aria-hidden": !0
2142
- }) : /* @__PURE__ */ _(a, {
2179
+ }) : /* @__PURE__ */ _(o, {
2143
2180
  size: 12,
2144
2181
  strokeWidth: 3,
2145
2182
  "aria-hidden": !0
@@ -2148,17 +2185,17 @@ function nn({ className: e, ...t }) {
2148
2185
  })
2149
2186
  });
2150
2187
  }
2151
- function rn({ className: e, label: t, disabled: n, ...r }) {
2188
+ function on({ className: e, label: t, disabled: n, ...r }) {
2152
2189
  return t ? /* @__PURE__ */ _(re.Root, {
2153
2190
  className: I("inline-flex", e),
2154
2191
  children: /* @__PURE__ */ v(re.Label, {
2155
2192
  className: I("inline-flex min-h-7 cursor-pointer items-center gap-[9px] rounded-md pl-2 text-base leading-6 text-eds-default", n && "cursor-not-allowed opacity-70"),
2156
- children: [/* @__PURE__ */ _(nn, {
2193
+ children: [/* @__PURE__ */ _(an, {
2157
2194
  disabled: n,
2158
2195
  ...r
2159
2196
  }), /* @__PURE__ */ _("span", { children: t })]
2160
2197
  })
2161
- }) : /* @__PURE__ */ _(nn, {
2198
+ }) : /* @__PURE__ */ _(an, {
2162
2199
  className: e,
2163
2200
  disabled: n,
2164
2201
  ...r
@@ -2166,10 +2203,10 @@ function rn({ className: e, label: t, disabled: n, ...r }) {
2166
2203
  }
2167
2204
  //#endregion
2168
2205
  //#region src/lib/field-styles.ts
2169
- function an(e) {
2206
+ function sn(e) {
2170
2207
  return e ?? "floating";
2171
2208
  }
2172
- var on = {
2209
+ var cn = {
2173
2210
  sm: {
2174
2211
  control: "h-9 px-3",
2175
2212
  trigger: "h-9 px-3",
@@ -2197,98 +2234,98 @@ var on = {
2197
2234
  icon: "size-8",
2198
2235
  paddingX: "px-4"
2199
2236
  }
2200
- }, sn = {
2237
+ }, ln = {
2201
2238
  overlay: "z-[1300]",
2202
2239
  popup: "z-[1400]",
2203
2240
  overlayValue: 1300,
2204
2241
  popupValue: 1400
2205
- }, cn = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", ln = "flex items-center justify-between gap-3", un = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", dn = "text-eds-neutral-disabled", fn = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", pn = "data-placeholder:text-eds-neutral-disabled", mn = "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", hn = "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)]", gn = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", _n = "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", vn = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", yn = `${sn.popup} outline-none`, bn = { zIndex: sn.popupValue };
2206
- function xn(e) {
2242
+ }, un = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", dn = "flex items-center justify-between gap-3", fn = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", pn = "text-eds-neutral-disabled", mn = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", hn = "data-placeholder:text-eds-neutral-disabled", gn = "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", _n = "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)]", vn = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", yn = "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", bn = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", xn = `${ln.popup} outline-none`, Sn = { zIndex: ln.popupValue };
2243
+ function Cn(e) {
2207
2244
  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`;
2208
2245
  }
2209
2246
  //#endregion
2210
2247
  //#region src/components/ComboBox/Combobox.tsx
2211
- var Sn = {
2248
+ var wn = {
2212
2249
  default: "",
2213
2250
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2214
2251
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2215
- }, Cn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md text-eds-neutral-elements hover:not-data-disabled:bg-eds-neutral-elements/8 hover:not-data-disabled:text-eds-neutral-main focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", wn = "inline-flex h-6 max-w-full items-center gap-1 rounded-eds-lil bg-eds-blue-background/45 py-0 pr-1 pl-2 text-xs text-eds-blue-main", Tn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded p-1 text-eds-blue-main hover:not-data-disabled:bg-eds-blue-main/15 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", En = k.Root;
2216
- function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", emptyMessage: p = "Nenhum resultado.", readOnly: h = !1, id: g, name: y, multiple: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, getRemoveItemLabel: E, renderItem: D, renderChip: te, className: ne, inputProps: O }) {
2217
- let re = ee(), A = g ?? re, j = l === "invalid", M = j || !!d, N = on[u], P = an(t), F = P === "floating", L = (e) => w ? w(e) : e.label ?? "", ie = (e) => T ? T(e) : e.value ?? L(e), R = (e) => {
2252
+ }, Tn = "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", En = "inline-flex h-6 max-w-full items-center gap-1 rounded-eds-lil bg-eds-blue-background/45 py-0 pr-1 pl-2 text-xs text-eds-blue-main", Dn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded p-1 text-eds-blue-main hover:not-data-disabled:bg-eds-blue-main/15 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", On = k.Root;
2253
+ function kn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: a = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", emptyMessage: p = "Nenhum resultado.", readOnly: m = !1, id: g, name: y, multiple: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, getRemoveItemLabel: E, renderItem: D, renderChip: te, className: ne, inputProps: O }) {
2254
+ let re = ee(), A = g ?? re, j = l === "invalid", M = j || !!d, N = cn[u], P = sn(t), F = P === "floating", L = (e) => w ? w(e) : e.label ?? "", ie = (e) => T ? T(e) : e.value ?? L(e), R = (e) => {
2218
2255
  C?.(e);
2219
- }, z = w ? (e) => w(e) : void 0, ae = T ? (e) => T(e) : void 0, B = /* @__PURE__ */ v("div", {
2256
+ }, z = w ? (e) => w(e) : void 0, B = T ? (e) => T(e) : void 0, V = /* @__PURE__ */ v("div", {
2220
2257
  className: "inline-flex shrink-0 items-center",
2221
2258
  children: [/* @__PURE__ */ _(k.Clear, {
2222
- className: I(Cn, N.icon),
2259
+ className: I(Tn, N.icon),
2223
2260
  "aria-label": "Limpar seleção",
2224
2261
  "data-disabled": i || void 0,
2225
- children: /* @__PURE__ */ _(m, {
2262
+ children: /* @__PURE__ */ _(h, {
2226
2263
  className: "size-4 shrink-0",
2227
2264
  strokeWidth: 2,
2228
2265
  "aria-hidden": !0
2229
2266
  })
2230
2267
  }), /* @__PURE__ */ _(k.Trigger, {
2231
- className: I(Cn, N.icon),
2268
+ className: I(Tn, N.icon),
2232
2269
  "aria-label": "Abrir lista",
2233
2270
  "data-disabled": i || void 0,
2234
- children: /* @__PURE__ */ _(o, {
2271
+ children: /* @__PURE__ */ _(s, {
2235
2272
  className: "size-4 shrink-0",
2236
2273
  strokeWidth: 2,
2237
2274
  "aria-hidden": !0
2238
2275
  })
2239
2276
  })]
2240
- }), oe = F ? /* @__PURE__ */ v("span", {
2241
- className: xn(N.left),
2242
- children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
2277
+ }), ae = F ? /* @__PURE__ */ v("span", {
2278
+ className: Cn(N.left),
2279
+ children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
2243
2280
  className: "text-eds-red-main",
2244
2281
  "aria-hidden": "true",
2245
2282
  children: "*"
2246
2283
  })]
2247
2284
  }) : null;
2248
2285
  return /* @__PURE__ */ v("div", {
2249
- className: I(cn, ne),
2286
+ className: I(un, ne),
2250
2287
  "data-fluid": c || void 0,
2251
2288
  "data-eds-component": "Combobox",
2252
2289
  "data-label-variant": P,
2253
2290
  children: [
2254
2291
  /* @__PURE__ */ _("div", {
2255
- className: ln,
2292
+ className: dn,
2256
2293
  children: /* @__PURE__ */ v("label", {
2257
- className: I(un, F && "sr-only", !F && "font-medium"),
2294
+ className: I(fn, F && "sr-only", !F && "font-medium"),
2258
2295
  htmlFor: A,
2259
- children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
2296
+ children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
2260
2297
  className: "text-eds-red-main",
2261
2298
  children: "*"
2262
2299
  })]
2263
2300
  })
2264
2301
  }),
2265
- /* @__PURE__ */ v(En, {
2302
+ /* @__PURE__ */ v(On, {
2266
2303
  items: n,
2267
2304
  name: y,
2268
2305
  multiple: b,
2269
2306
  disabled: i,
2270
- required: s,
2307
+ required: a,
2271
2308
  onValueChange: C ? R : void 0,
2272
2309
  ...x === void 0 ? S === void 0 ? {} : { defaultValue: S } : { value: x },
2273
2310
  itemToStringLabel: z,
2274
- itemToStringValue: ae,
2311
+ itemToStringValue: B,
2275
2312
  children: [b ? /* @__PURE__ */ v(k.Chips, {
2276
- className: I(mn, "h-auto flex-wrap content-start gap-1.5", N.triggerMultiple, Sn[l]),
2313
+ className: I(gn, "h-auto flex-wrap content-start gap-1.5", N.triggerMultiple, wn[l]),
2277
2314
  "data-state": l,
2278
2315
  "data-size": u,
2279
2316
  "data-disabled": i || void 0,
2280
2317
  "data-floating": F || void 0,
2281
2318
  children: [
2282
- oe,
2319
+ ae,
2283
2320
  /* @__PURE__ */ _(k.Value, { children: (e) => e.map((e) => /* @__PURE__ */ v(k.Chip, {
2284
- className: wn,
2321
+ className: En,
2285
2322
  children: [/* @__PURE__ */ _("span", {
2286
2323
  className: "truncate",
2287
2324
  children: te ? te(e) : L(e)
2288
2325
  }), /* @__PURE__ */ _(k.ChipRemove, {
2289
- className: Tn,
2326
+ className: Dn,
2290
2327
  "aria-label": E ? E(e) : `Remover ${L(e)}`,
2291
- children: /* @__PURE__ */ _(m, {
2328
+ children: /* @__PURE__ */ _(h, {
2292
2329
  size: 10,
2293
2330
  strokeWidth: 2.5,
2294
2331
  "aria-hidden": !0
@@ -2300,55 +2337,55 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
2300
2337
  children: [/* @__PURE__ */ _(k.Input, {
2301
2338
  ...O,
2302
2339
  id: A,
2303
- className: I("min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", fn, N.text),
2340
+ className: I("min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", mn, N.text),
2304
2341
  placeholder: r,
2305
2342
  disabled: i,
2306
- readOnly: h,
2307
- required: s,
2343
+ readOnly: m,
2344
+ required: a,
2308
2345
  "aria-invalid": j || void 0,
2309
2346
  "aria-describedby": M ? `${A}-desc` : void 0
2310
- }), B]
2347
+ }), V]
2311
2348
  })
2312
2349
  ]
2313
2350
  }) : /* @__PURE__ */ v(k.InputGroup, {
2314
- className: I(mn, "box-border py-0", N.trigger, Sn[l]),
2351
+ className: I(gn, "box-border py-0", N.trigger, wn[l]),
2315
2352
  "data-state": l,
2316
2353
  "data-size": u,
2317
2354
  "data-disabled": i || void 0,
2318
2355
  "data-floating": F || void 0,
2319
2356
  children: [
2320
- oe,
2357
+ ae,
2321
2358
  /* @__PURE__ */ _(k.Input, {
2322
2359
  ...O,
2323
2360
  id: A,
2324
- className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", fn, N.text),
2361
+ className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", mn, N.text),
2325
2362
  placeholder: r,
2326
2363
  disabled: i,
2327
- readOnly: h,
2328
- required: s,
2364
+ readOnly: m,
2365
+ required: a,
2329
2366
  "aria-invalid": j || void 0,
2330
2367
  "aria-describedby": M ? `${A}-desc` : void 0
2331
2368
  }),
2332
- B
2369
+ V
2333
2370
  ]
2334
2371
  }), /* @__PURE__ */ _(k.Portal, { children: /* @__PURE__ */ _(k.Positioner, {
2335
- className: yn,
2336
- style: bn,
2372
+ className: xn,
2373
+ style: Sn,
2337
2374
  positionMethod: "fixed",
2338
2375
  sideOffset: 4,
2339
2376
  children: /* @__PURE__ */ v(k.Popup, {
2340
- className: hn,
2377
+ className: _n,
2341
2378
  children: [/* @__PURE__ */ _(k.Empty, { children: /* @__PURE__ */ _("div", {
2342
2379
  className: "px-3 py-2.5 text-sm text-eds-neutral-elements",
2343
2380
  children: p
2344
2381
  }) }), /* @__PURE__ */ _(k.List, {
2345
- className: gn,
2382
+ className: vn,
2346
2383
  children: (e) => /* @__PURE__ */ v(k.Item, {
2347
2384
  value: e,
2348
- className: _n,
2385
+ className: yn,
2349
2386
  children: [/* @__PURE__ */ _(k.ItemIndicator, {
2350
- className: vn,
2351
- children: /* @__PURE__ */ _(a, {
2387
+ className: bn,
2388
+ children: /* @__PURE__ */ _(o, {
2352
2389
  size: 14,
2353
2390
  strokeWidth: 2.5,
2354
2391
  "aria-hidden": !0
@@ -2373,11 +2410,11 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
2373
2410
  }
2374
2411
  //#endregion
2375
2412
  //#region src/components/DatePicker/DatePicker.tsx
2376
- var On = {
2413
+ var An = {
2377
2414
  default: "",
2378
2415
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2379
2416
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2380
- }, kn = [
2417
+ }, jn = [
2381
2418
  "D",
2382
2419
  "S",
2383
2420
  "T",
@@ -2386,38 +2423,38 @@ var On = {
2386
2423
  "S",
2387
2424
  "S"
2388
2425
  ];
2389
- function An(e, t) {
2390
- let n = G(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
2391
- for (let e = n; e <= r; e = de(e, 1)) i.push(e);
2426
+ function Mn(e, t) {
2427
+ let n = he(Oe(e), { weekStartsOn: t }), r = Ae(De(e), { weekStartsOn: t }), i = [];
2428
+ for (let e = n; e <= r; e = pe(e, 1)) i.push(e);
2392
2429
  return i;
2393
2430
  }
2394
- function jn(e) {
2431
+ function Nn(e) {
2395
2432
  return e.mode === "range";
2396
2433
  }
2397
- function Mn(e) {
2398
- let { label: t = "Label", labelVariant: n, disabled: r = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: m = 0, dateFormat: h = "dd/MM/yyyy", className: g } = e, y = jn(e), b = e.placeholder ?? (y ? "Selecione um período" : "Selecione uma data"), x = ee(), S = p ?? x, C = l === "invalid", T = C || d, D = on[u], te = u === "lg" ? "size-5" : "size-4", ne = an(n), O = ne === "floating", re = jn(e) ? {
2434
+ function Pn(e) {
2435
+ let { label: t = "Label", labelVariant: n, disabled: r = !1, required: i = !1, fluid: o = !1, state: s = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: m = 0, dateFormat: h = "dd/MM/yyyy", className: g } = e, y = Nn(e), b = e.placeholder ?? (y ? "Selecione um período" : "Selecione uma data"), x = ee(), S = p ?? x, C = s === "invalid", T = C || d, D = cn[u], te = u === "lg" ? "size-5" : "size-4", ne = sn(n), O = ne === "floating", re = Nn(e) ? {
2399
2436
  from: e.defaultValue?.from ?? null,
2400
2437
  to: e.defaultValue?.to ?? null
2401
2438
  } : {
2402
2439
  from: e.defaultValue ?? null,
2403
2440
  to: null
2404
- }, k = jn(e) ? e.value === void 0 ? void 0 : {
2441
+ }, k = Nn(e) ? e.value === void 0 ? void 0 : {
2405
2442
  from: e.value?.from ?? null,
2406
2443
  to: e.value?.to ?? null
2407
2444
  } : e.value === void 0 ? void 0 : {
2408
2445
  from: e.value ?? null,
2409
2446
  to: null
2410
- }, j = k !== void 0, [M, N] = E(re), P = j ? k : M, F = jn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, L = jn(e) ? e.presets : void 0, [ie, R] = E(!1), [z, ae] = E(() => P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), B = w(() => [...kn.slice(m), ...kn.slice(0, m)], [m]), oe = w(() => Array.from({ length: F }, (e, t) => fe(z, t)), [z, F]);
2411
- function se(t) {
2412
- r || (t && ae(P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), R(t));
2447
+ }, j = k !== void 0, [M, N] = E(re), P = j ? k : M, F = Nn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, L = Nn(e) ? e.presets : void 0, [ie, R] = E(!1), [z, B] = E(() => P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), V = w(() => [...jn.slice(m), ...jn.slice(0, m)], [m]), ae = w(() => Array.from({ length: F }, (e, t) => me(z, t)), [z, F]);
2448
+ function oe(t) {
2449
+ r || (t && B(P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), R(t));
2413
2450
  }
2414
- function V(t) {
2415
- if (jn(e)) {
2451
+ function H(t) {
2452
+ if (Nn(e)) {
2416
2453
  let n = P, r;
2417
2454
  r = !n.from || n.to ? {
2418
2455
  from: t,
2419
2456
  to: null
2420
- } : vt(t, n.from) ? {
2457
+ } : bt(t, n.from) ? {
2421
2458
  from: t,
2422
2459
  to: n.from
2423
2460
  } : {
@@ -2434,32 +2471,32 @@ function Mn(e) {
2434
2471
  to: null
2435
2472
  }), e.onValueChange?.(t), R(!1);
2436
2473
  }
2437
- function ce(t) {
2474
+ function se(t) {
2438
2475
  let n = {
2439
2476
  from: t.from,
2440
2477
  to: t.to ?? null
2441
2478
  };
2442
- j || N(n), jn(e) && e.onValueChange?.({
2479
+ j || N(n), Nn(e) && e.onValueChange?.({
2443
2480
  from: t.from,
2444
2481
  to: t.to ?? void 0
2445
- }), ae(t.from);
2482
+ }), B(t.from);
2446
2483
  }
2447
- function H(e) {
2448
- return !P.from || !P.to || !e.range.to ? !1 : Se(P.from, e.range.from) && Se(P.to, e.range.to);
2484
+ function U(e) {
2485
+ return !P.from || !P.to || !e.range.to ? !1 : we(P.from, e.range.from) && we(P.to, e.range.to);
2449
2486
  }
2450
- let le = P.from ? !y || !P.to ? J(P.from, h) : `${J(P.from, h)} - ${J(P.to, h)}` : b;
2487
+ let ce = P.from ? !y || !P.to ? Y(P.from, h) : `${Y(P.from, h)} - ${Y(P.to, h)}` : b;
2451
2488
  return /* @__PURE__ */ v("div", {
2452
- className: I(cn, g),
2489
+ className: I(un, g),
2453
2490
  "data-fluid": o || void 0,
2454
2491
  "data-eds-component": "DatePicker",
2455
2492
  "data-label-variant": ne,
2456
2493
  children: [
2457
2494
  /* @__PURE__ */ _("div", {
2458
- className: ln,
2495
+ className: dn,
2459
2496
  children: /* @__PURE__ */ v("label", {
2460
- className: I(un, O && "sr-only", !O && "font-medium"),
2497
+ className: I(fn, O && "sr-only", !O && "font-medium"),
2461
2498
  htmlFor: S,
2462
- children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
2499
+ children: [/* @__PURE__ */ _("span", { children: t }), i && /* @__PURE__ */ _("span", {
2463
2500
  className: "text-eds-red-main",
2464
2501
  children: "*"
2465
2502
  })]
@@ -2467,36 +2504,36 @@ function Mn(e) {
2467
2504
  }),
2468
2505
  /* @__PURE__ */ v(A.Root, {
2469
2506
  open: ie,
2470
- onOpenChange: se,
2507
+ onOpenChange: oe,
2471
2508
  children: [/* @__PURE__ */ v(A.Trigger, {
2472
2509
  id: S,
2473
2510
  disabled: r,
2474
- className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", D.trigger, On[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2475
- "data-state": l,
2511
+ className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", D.trigger, An[s], "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"),
2512
+ "data-state": s,
2476
2513
  "data-size": u,
2477
2514
  "data-disabled": r || void 0,
2478
2515
  "aria-describedby": T ? `${S}-desc` : void 0,
2479
2516
  children: [
2480
2517
  O && /* @__PURE__ */ v("span", {
2481
- className: xn(D.left),
2482
- children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
2518
+ className: Cn(D.left),
2519
+ children: [/* @__PURE__ */ _("span", { children: t }), i && /* @__PURE__ */ _("span", {
2483
2520
  className: "text-eds-red-main",
2484
2521
  "aria-hidden": "true",
2485
2522
  children: "*"
2486
2523
  })]
2487
2524
  }),
2488
- /* @__PURE__ */ _(i, {
2525
+ /* @__PURE__ */ _(a, {
2489
2526
  className: I("shrink-0 text-eds-neutral-elements", te),
2490
2527
  "aria-hidden": !0
2491
2528
  }),
2492
2529
  /* @__PURE__ */ _("span", {
2493
- className: I("min-w-0 flex-1 truncate font-inherit", D.text, P.from ? "text-eds-neutral-main" : dn),
2494
- children: le
2530
+ className: I("min-w-0 flex-1 truncate font-inherit", D.text, P.from ? "text-eds-neutral-main" : pn),
2531
+ children: ce
2495
2532
  })
2496
2533
  ]
2497
2534
  }), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
2498
- className: yn,
2499
- style: bn,
2535
+ className: xn,
2536
+ style: Sn,
2500
2537
  positionMethod: "fixed",
2501
2538
  sideOffset: 4,
2502
2539
  align: "start",
@@ -2507,37 +2544,37 @@ function Mn(e) {
2507
2544
  className: "flex w-40 shrink-0 flex-col gap-0.5 border-r border-eds-outline-border p-2 text-sm",
2508
2545
  children: L.map((e) => /* @__PURE__ */ _("button", {
2509
2546
  type: "button",
2510
- onClick: () => ce(e.range),
2511
- className: I("rounded-md px-3 py-1.5 text-left whitespace-nowrap", H(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2547
+ onClick: () => se(e.range),
2548
+ className: I("rounded-md px-3 py-1.5 text-left whitespace-nowrap", U(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2512
2549
  children: e.label
2513
2550
  }, e.label))
2514
2551
  }), /* @__PURE__ */ _("div", {
2515
2552
  className: "flex",
2516
- children: oe.map((e, t) => {
2517
- let n = t === 0, r = t === oe.length - 1, i = An(e, m);
2553
+ children: ae.map((e, t) => {
2554
+ let n = t === 0, r = t === ae.length - 1, i = Mn(e, m);
2518
2555
  return /* @__PURE__ */ v("div", {
2519
2556
  className: I("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
2520
2557
  children: [/* @__PURE__ */ v("div", {
2521
2558
  className: "flex items-center gap-2.5 p-4",
2522
2559
  children: [
2523
- n ? /* @__PURE__ */ _(jt, {
2524
- icon: s,
2560
+ n ? /* @__PURE__ */ _(Nt, {
2561
+ icon: c,
2525
2562
  label: "Mês anterior",
2526
2563
  size: "sm",
2527
- onClick: () => ae((e) => wt(e, 1))
2564
+ onClick: () => B((e) => Et(e, 1))
2528
2565
  }) : /* @__PURE__ */ _("span", {
2529
2566
  className: "size-8 shrink-0",
2530
2567
  "aria-hidden": !0
2531
2568
  }),
2532
2569
  /* @__PURE__ */ _("span", {
2533
2570
  className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
2534
- children: J(e, "MMMM yyyy", { locale: kt })
2571
+ children: Y(e, "MMMM yyyy", { locale: jt })
2535
2572
  }),
2536
- r ? /* @__PURE__ */ _(jt, {
2537
- icon: c,
2573
+ r ? /* @__PURE__ */ _(Nt, {
2574
+ icon: l,
2538
2575
  label: "Próximo mês",
2539
2576
  size: "sm",
2540
- onClick: () => ae((e) => fe(e, 1))
2577
+ onClick: () => B((e) => me(e, 1))
2541
2578
  }) : /* @__PURE__ */ _("span", {
2542
2579
  className: "size-8 shrink-0",
2543
2580
  "aria-hidden": !0
@@ -2545,20 +2582,20 @@ function Mn(e) {
2545
2582
  ]
2546
2583
  }), /* @__PURE__ */ v("div", {
2547
2584
  className: "grid grid-cols-7 px-4 pb-4",
2548
- children: [B.map((e, t) => /* @__PURE__ */ _("span", {
2585
+ children: [V.map((e, t) => /* @__PURE__ */ _("span", {
2549
2586
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2550
2587
  children: e
2551
2588
  }, `${e}-${t}`)), i.map((t) => {
2552
- let n = yt(t, e), r = bt(t), i = y && P.from ? Se(t, P.from) : !1, a = y && P.to ? Se(t, P.to) : !1, o = !!(y && P.from && P.to && !Se(P.from, P.to)), s = o && P.from && P.to ? _t(t, P.from) && vt(t, P.to) : !1, c = y ? i || a : P.from ? Se(t, P.from) : !1;
2589
+ let n = xt(t, e), r = St(t), i = y && P.from ? we(t, P.from) : !1, a = y && P.to ? we(t, P.to) : !1, o = !!(y && P.from && P.to && !we(P.from, P.to)), s = o && P.from && P.to ? yt(t, P.from) && bt(t, P.to) : !1, c = y ? i || a : P.from ? we(t, P.from) : !1;
2553
2590
  return /* @__PURE__ */ _("div", {
2554
2591
  className: I("flex items-center justify-center py-0.5", o && (s || i || a) && "bg-eds-blue-main/10", o && i && "rounded-l-full", o && a && "rounded-r-full"),
2555
2592
  children: /* @__PURE__ */ _("button", {
2556
2593
  type: "button",
2557
- onClick: () => V(t),
2594
+ onClick: () => H(t),
2558
2595
  "data-selected": c || void 0,
2559
2596
  "data-today": r || void 0,
2560
2597
  className: I("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", c ? "bg-eds-blue-main text-white" : n ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !c && r && "ring-1 ring-inset ring-eds-blue-main"),
2561
- children: J(t, "d")
2598
+ children: Y(t, "d")
2562
2599
  })
2563
2600
  }, t.toISOString());
2564
2601
  })]
@@ -2572,7 +2609,7 @@ function Mn(e) {
2572
2609
  T && /* @__PURE__ */ _("div", {
2573
2610
  id: `${S}-desc`,
2574
2611
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2575
- "data-state": C ? "invalid" : l,
2612
+ "data-state": C ? "invalid" : s,
2576
2613
  children: C ? f : d
2577
2614
  })
2578
2615
  ]
@@ -2580,44 +2617,44 @@ function Mn(e) {
2580
2617
  }
2581
2618
  //#endregion
2582
2619
  //#region src/components/DateTimePicker/AnalogClock.tsx
2583
- var Nn = 220, Pn = Nn / 2, Fn = 92, In = 64, Ln = 30;
2584
- function Rn(e, t) {
2585
- let n = Math.atan2(t - Pn, e - Pn) + Math.PI / 2;
2620
+ var Fn = 220, In = Fn / 2, Ln = 92, Rn = 64, zn = 30;
2621
+ function Bn(e, t) {
2622
+ let n = Math.atan2(t - In, e - In) + Math.PI / 2;
2586
2623
  return n < 0 ? n + Math.PI * 2 : n;
2587
2624
  }
2588
- function zn(e, t) {
2589
- let n = Rn(e, t), r = Math.round(n / (Math.PI * 2) * 12) % 12, i = r === 0 ? 12 : r;
2590
- return Math.hypot(e - Pn, t - Pn) < 156 / 2 ? i === 12 ? 0 : i + 12 : i;
2625
+ function Vn(e, t) {
2626
+ let n = Bn(e, t), r = Math.round(n / (Math.PI * 2) * 12) % 12, i = r === 0 ? 12 : r;
2627
+ return Math.hypot(e - In, t - In) < 156 / 2 ? i === 12 ? 0 : i + 12 : i;
2591
2628
  }
2592
- function Bn(e, t, n) {
2593
- let r = n > 0 ? n : 1, i = Rn(e, t) / (Math.PI * 2) * 60, a = Math.round(i / r) * r;
2629
+ function Hn(e, t, n) {
2630
+ let r = n > 0 ? n : 1, i = Bn(e, t) / (Math.PI * 2) * 60, a = Math.round(i / r) * r;
2594
2631
  return a >= 60 ? 0 : a;
2595
2632
  }
2596
- function Vn(e, t) {
2633
+ function Un(e, t) {
2597
2634
  let n = e / 12 * Math.PI * 2 - Math.PI / 2;
2598
2635
  return {
2599
2636
  x: Math.round(Math.cos(n) * t),
2600
2637
  y: Math.round(Math.sin(n) * t)
2601
2638
  };
2602
2639
  }
2603
- function Hn(e, t) {
2640
+ function Wn(e, t) {
2604
2641
  return e === "hours" ? t % 12 : t / 5;
2605
2642
  }
2606
- function Un(e, t) {
2643
+ function Gn(e, t) {
2607
2644
  let n = e === "hours" && (t === 0 || t > 12);
2608
- return Vn(Hn(e, t), n ? In : Fn);
2645
+ return Un(Wn(e, t), n ? Rn : Ln);
2609
2646
  }
2610
- function Wn(e, t) {
2647
+ function Kn(e, t) {
2611
2648
  return (e === "hours" ? t % 12 / 12 * Math.PI * 2 - Math.PI / 2 : t / 60 * Math.PI * 2 - Math.PI / 2) - Math.PI / 2;
2612
2649
  }
2613
- var Gn = Array.from({ length: 24 }, (e, t) => t), Kn = Array.from({ length: 12 }, (e, t) => t * 5);
2614
- function qn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2650
+ var qn = Array.from({ length: 24 }, (e, t) => t), Jn = Array.from({ length: 12 }, (e, t) => t * 5);
2651
+ function Yn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2615
2652
  let i = T(null), a = T(!1);
2616
2653
  function o(r, a) {
2617
2654
  let o = i.current?.getBoundingClientRect();
2618
2655
  if (!o) return t;
2619
2656
  let s = r - o.left, c = a - o.top;
2620
- return e === "hours" ? zn(s, c) : Bn(s, c, n);
2657
+ return e === "hours" ? Vn(s, c) : Hn(s, c, n);
2621
2658
  }
2622
2659
  function s(e) {
2623
2660
  e.button > 0 || (a.current = !0, e.currentTarget.setPointerCapture(e.pointerId), r(o(e.clientX, e.clientY), !1));
@@ -2655,12 +2692,12 @@ function qn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2655
2692
  default: break;
2656
2693
  }
2657
2694
  }
2658
- let f = e === "hours" ? Gn : Kn;
2695
+ let f = e === "hours" ? qn : Jn;
2659
2696
  return /* @__PURE__ */ v("div", {
2660
2697
  className: "relative shrink-0 select-none rounded-full bg-eds-neutral-background",
2661
2698
  style: {
2662
- width: Nn,
2663
- height: Nn
2699
+ width: Fn,
2700
+ height: Fn
2664
2701
  },
2665
2702
  children: [
2666
2703
  /* @__PURE__ */ _("div", {
@@ -2683,32 +2720,32 @@ function qn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2683
2720
  className: "pointer-events-none absolute bg-eds-blue-main",
2684
2721
  style: {
2685
2722
  width: 2,
2686
- height: e === "hours" && (t === 0 || t > 12) ? In : Fn,
2687
- left: Pn,
2688
- top: Pn,
2723
+ height: e === "hours" && (t === 0 || t > 12) ? Rn : Ln,
2724
+ left: In,
2725
+ top: In,
2689
2726
  transformOrigin: "top",
2690
- transform: `rotate(${Wn(e, t)}rad)`
2727
+ transform: `rotate(${Kn(e, t)}rad)`
2691
2728
  }
2692
2729
  }),
2693
2730
  /* @__PURE__ */ _("div", {
2694
2731
  className: "pointer-events-none absolute size-1.5 rounded-full bg-eds-blue-main",
2695
2732
  style: {
2696
- left: Pn - 3,
2697
- top: Pn - 3
2733
+ left: In - 3,
2734
+ top: In - 3
2698
2735
  }
2699
2736
  }),
2700
2737
  f.map((n) => {
2701
- let r = e === "hours" && (n === 0 || n > 12), { x: i, y: a } = Un(e, n), o = t === n, s = e === "hours" ? n === 0 ? "00" : String(n) : String(n).padStart(2, "0");
2738
+ let r = e === "hours" && (n === 0 || n > 12), { x: i, y: a } = Gn(e, n), o = t === n, s = e === "hours" ? n === 0 ? "00" : String(n) : String(n).padStart(2, "0");
2702
2739
  return /* @__PURE__ */ _("button", {
2703
2740
  type: "button",
2704
2741
  tabIndex: -1,
2705
2742
  "aria-hidden": "true",
2706
2743
  className: I("pointer-events-none absolute flex items-center justify-center rounded-full text-sm tabular-nums", o ? "bg-eds-blue-main text-white" : "text-eds-neutral-main", r && !o && "text-xs text-eds-neutral-elements"),
2707
2744
  style: {
2708
- width: Ln,
2709
- height: Ln,
2710
- left: Pn + i - Ln / 2,
2711
- top: Pn + a - Ln / 2
2745
+ width: zn,
2746
+ height: zn,
2747
+ left: In + i - zn / 2,
2748
+ top: In + a - zn / 2
2712
2749
  },
2713
2750
  children: s
2714
2751
  }, n);
@@ -2718,11 +2755,11 @@ function qn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2718
2755
  }
2719
2756
  //#endregion
2720
2757
  //#region src/components/DateTimePicker/DateTimePicker.tsx
2721
- var Jn = {
2758
+ var Xn = {
2722
2759
  default: "",
2723
2760
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2724
2761
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2725
- }, Yn = [
2762
+ }, Zn = [
2726
2763
  "D",
2727
2764
  "S",
2728
2765
  "T",
@@ -2731,82 +2768,82 @@ var Jn = {
2731
2768
  "S",
2732
2769
  "S"
2733
2770
  ];
2734
- function Xn(e, t) {
2735
- let n = G(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
2736
- for (let e = n; e <= r; e = de(e, 1)) i.push(e);
2771
+ function Qn(e, t) {
2772
+ let n = he(Oe(e), { weekStartsOn: t }), r = Ae(De(e), { weekStartsOn: t }), i = [];
2773
+ for (let e = n; e <= r; e = pe(e, 1)) i.push(e);
2737
2774
  return i;
2738
2775
  }
2739
- function Zn(e, t) {
2740
- let n = t ? ht(t) : 0, r = t ? gt(t) : 0;
2741
- return Ct(St(xt(e, n), r), 0);
2776
+ function $n(e, t) {
2777
+ let n = t ? _t(t) : 0, r = t ? vt(t) : 0;
2778
+ return Tt(wt(Ct(e, n), r), 0);
2742
2779
  }
2743
- function Qn(e, t) {
2780
+ function er(e, t) {
2744
2781
  let n = Math.round(e / t) * t;
2745
2782
  return Math.min(59, Math.max(0, n >= 60 ? 60 - t : n));
2746
2783
  }
2747
- function $n(e) {
2784
+ function tr(e) {
2748
2785
  let t = Math.max(1, Math.min(30, Math.floor(e))), n = [];
2749
2786
  for (let e = 0; e < 60; e += t) n.push(e);
2750
2787
  return n;
2751
2788
  }
2752
- var er = Array.from({ length: 24 }, (e, t) => t);
2753
- function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione data e hora", disabled: i = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data e hora válidas", id: p, weekStartsOn: m = 0, defaultMonth: h, dateFormat: g = "dd/MM/yyyy HH:mm", minuteStep: y = 5, timeVariant: b = "clock", value: x, defaultValue: S = null, onValueChange: D, className: te }) {
2754
- let ne = ee(), O = p ?? ne, re = l === "invalid", k = re || d, j = on[u], M = u === "lg" ? "size-5" : "size-4", N = an(t), P = N === "floating", F = x !== void 0, [L, ie] = E(S), R = F ? x ?? null : L, [z, ae] = E(!1), [B, se] = E(() => R ?? h ?? /* @__PURE__ */ new Date()), [V, ce] = E(R), [H, le] = E("hours"), ue = T(null), U = T(null), W = w(() => $n(y), [y]), de = w(() => Math.max(1, Math.min(30, Math.floor(y))), [y]), pe = w(() => [...Yn.slice(m), ...Yn.slice(0, m)], [m]), me = w(() => Xn(B, m), [B, m]), G = V ? ht(V) : 0, K = V ? Qn(gt(V), y) : 0;
2789
+ var nr = Array.from({ length: 24 }, (e, t) => t);
2790
+ function rr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione data e hora", disabled: r = !1, required: a = !1, fluid: o = !1, state: s = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data e hora válidas", id: p, weekStartsOn: m = 0, defaultMonth: h, dateFormat: g = "dd/MM/yyyy HH:mm", minuteStep: y = 5, timeVariant: b = "clock", value: x, defaultValue: S = null, onValueChange: D, className: te }) {
2791
+ let ne = ee(), O = p ?? ne, re = s === "invalid", k = re || d, j = cn[u], M = u === "lg" ? "size-5" : "size-4", N = sn(t), P = N === "floating", F = x !== void 0, [L, ie] = E(S), R = F ? x ?? null : L, [z, B] = E(!1), [V, oe] = E(() => R ?? h ?? /* @__PURE__ */ new Date()), [H, se] = E(R), [U, ce] = E("hours"), le = T(null), ue = T(null), de = w(() => tr(y), [y]), fe = w(() => Math.max(1, Math.min(30, Math.floor(y))), [y]), W = w(() => [...Zn.slice(m), ...Zn.slice(0, m)], [m]), G = w(() => Qn(V, m), [V, m]), pe = H ? _t(H) : 0, K = H ? er(vt(H), y) : 0;
2755
2792
  C(() => {
2756
2793
  if (!z) return;
2757
2794
  let e = (e, t, n) => {
2758
2795
  (e?.querySelector(`[data-${t}="${n}"]`))?.scrollIntoView({ block: "center" });
2759
2796
  };
2760
2797
  requestAnimationFrame(() => {
2761
- e(ue.current, "hour", G), e(U.current, "minute", K);
2798
+ e(le.current, "hour", pe), e(ue.current, "minute", K);
2762
2799
  });
2763
2800
  }, [
2764
2801
  z,
2765
- G,
2802
+ pe,
2766
2803
  K
2767
2804
  ]);
2768
- function he(e) {
2805
+ function q(e) {
2769
2806
  F || ie(e), D?.(e);
2770
2807
  }
2771
- function ge(e) {
2772
- if (!i) {
2808
+ function he(e) {
2809
+ if (!r) {
2773
2810
  if (e) {
2774
- let e = R ?? h ?? /* @__PURE__ */ new Date(), t = St(e, Qn(gt(e), y));
2775
- ce(R ? t : null), se(R ?? h ?? /* @__PURE__ */ new Date()), le("hours");
2811
+ let e = R ?? h ?? /* @__PURE__ */ new Date(), t = wt(e, er(vt(e), y));
2812
+ se(R ? t : null), oe(R ?? h ?? /* @__PURE__ */ new Date()), ce("hours");
2776
2813
  }
2777
- ae(e);
2814
+ B(e);
2778
2815
  }
2779
2816
  }
2780
- function _e(e) {
2781
- let t = Zn(e, V ?? R), n = St(t, Qn(gt(t), y));
2782
- ce(n), he(n);
2817
+ function ge(e) {
2818
+ let t = $n(e, H ?? R), n = wt(t, er(vt(t), y));
2819
+ se(n), q(n);
2820
+ }
2821
+ function _e(e, t = !0) {
2822
+ let n = H ?? R ?? /* @__PURE__ */ new Date(), r = Tt(wt(Ct(n, e), er(vt(n), y)), 0);
2823
+ se(r), t && (q(r), b === "clock" && ce("minutes"));
2783
2824
  }
2784
2825
  function ve(e, t = !0) {
2785
- let n = V ?? R ?? /* @__PURE__ */ new Date(), r = Ct(St(xt(n, e), Qn(gt(n), y)), 0);
2786
- ce(r), t && (he(r), b === "clock" && le("minutes"));
2826
+ let n = Tt(wt(H ?? R ?? /* @__PURE__ */ new Date(), e), 0);
2827
+ se(n), t && (q(n), B(!1));
2787
2828
  }
2788
- function ye(e, t = !0) {
2789
- let n = Ct(St(V ?? R ?? /* @__PURE__ */ new Date(), e), 0);
2790
- ce(n), t && he(n);
2829
+ function ye() {
2830
+ let e = /* @__PURE__ */ new Date(), t = Tt(wt(e, er(vt(e), y)), 0);
2831
+ se(t), oe(t), q(t);
2791
2832
  }
2792
2833
  function be() {
2793
- let e = /* @__PURE__ */ new Date(), t = Ct(St(e, Qn(gt(e), y)), 0);
2794
- ce(t), se(t), he(t);
2834
+ H && q(H), B(!1);
2795
2835
  }
2796
- function xe() {
2797
- V && he(V), ae(!1);
2798
- }
2799
- let Ce = R ? J(R, g) : n;
2836
+ let xe = R ? Y(R, g) : n;
2800
2837
  return /* @__PURE__ */ v("div", {
2801
- className: I(cn, te),
2838
+ className: I(un, te),
2802
2839
  "data-fluid": o || void 0,
2803
2840
  "data-eds-component": "DateTimePicker",
2804
2841
  "data-label-variant": N,
2805
2842
  children: [
2806
2843
  /* @__PURE__ */ _("div", {
2807
- className: ln,
2844
+ className: dn,
2808
2845
  children: /* @__PURE__ */ v("label", {
2809
- className: I(un, P && "sr-only", !P && "font-medium"),
2846
+ className: I(fn, P && "sr-only", !P && "font-medium"),
2810
2847
  htmlFor: O,
2811
2848
  children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
2812
2849
  className: "text-eds-red-main",
@@ -2816,36 +2853,36 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2816
2853
  }),
2817
2854
  /* @__PURE__ */ v(A.Root, {
2818
2855
  open: z,
2819
- onOpenChange: ge,
2856
+ onOpenChange: he,
2820
2857
  children: [/* @__PURE__ */ v(A.Trigger, {
2821
2858
  id: O,
2822
- disabled: i,
2823
- className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", j.trigger, Jn[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2824
- "data-state": l,
2859
+ disabled: r,
2860
+ className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", j.trigger, Xn[s], "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"),
2861
+ "data-state": s,
2825
2862
  "data-size": u,
2826
- "data-disabled": i || void 0,
2863
+ "data-disabled": r || void 0,
2827
2864
  "aria-describedby": k ? `${O}-desc` : void 0,
2828
2865
  children: [
2829
2866
  P && /* @__PURE__ */ v("span", {
2830
- className: xn(j.left),
2867
+ className: Cn(j.left),
2831
2868
  children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
2832
2869
  className: "text-eds-red-main",
2833
2870
  "aria-hidden": "true",
2834
2871
  children: "*"
2835
2872
  })]
2836
2873
  }),
2837
- /* @__PURE__ */ _(r, {
2874
+ /* @__PURE__ */ _(i, {
2838
2875
  className: I("shrink-0 text-eds-neutral-elements", M),
2839
2876
  "aria-hidden": !0
2840
2877
  }),
2841
2878
  /* @__PURE__ */ _("span", {
2842
- className: I("min-w-0 flex-1 truncate font-inherit", j.text, R ? "text-eds-neutral-main" : dn),
2843
- children: Ce
2879
+ className: I("min-w-0 flex-1 truncate font-inherit", j.text, R ? "text-eds-neutral-main" : pn),
2880
+ children: xe
2844
2881
  })
2845
2882
  ]
2846
2883
  }), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
2847
- className: yn,
2848
- style: bn,
2884
+ className: xn,
2885
+ style: Sn,
2849
2886
  positionMethod: "fixed",
2850
2887
  sideOffset: 4,
2851
2888
  align: "start",
@@ -2859,39 +2896,39 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2859
2896
  children: [/* @__PURE__ */ v("div", {
2860
2897
  className: "flex items-center gap-2.5 p-4",
2861
2898
  children: [
2862
- /* @__PURE__ */ _(jt, {
2863
- icon: s,
2899
+ /* @__PURE__ */ _(Nt, {
2900
+ icon: c,
2864
2901
  label: "Mês anterior",
2865
2902
  size: "sm",
2866
- onClick: () => se((e) => wt(e, 1))
2903
+ onClick: () => oe((e) => Et(e, 1))
2867
2904
  }),
2868
2905
  /* @__PURE__ */ _("span", {
2869
2906
  className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
2870
- children: J(B, "MMMM yyyy", { locale: kt })
2907
+ children: Y(V, "MMMM yyyy", { locale: jt })
2871
2908
  }),
2872
- /* @__PURE__ */ _(jt, {
2873
- icon: c,
2909
+ /* @__PURE__ */ _(Nt, {
2910
+ icon: l,
2874
2911
  label: "Próximo mês",
2875
2912
  size: "sm",
2876
- onClick: () => se((e) => fe(e, 1))
2913
+ onClick: () => oe((e) => me(e, 1))
2877
2914
  })
2878
2915
  ]
2879
2916
  }), /* @__PURE__ */ v("div", {
2880
2917
  className: "grid grid-cols-7 px-4 pb-4",
2881
- children: [pe.map((e, t) => /* @__PURE__ */ _("span", {
2918
+ children: [W.map((e, t) => /* @__PURE__ */ _("span", {
2882
2919
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2883
2920
  children: e
2884
- }, `${e}-${t}`)), me.map((e) => {
2885
- let t = yt(e, B), n = bt(e), r = V ? Se(e, V) : !1;
2921
+ }, `${e}-${t}`)), G.map((e) => {
2922
+ let t = xt(e, V), n = St(e), r = H ? we(e, H) : !1;
2886
2923
  return /* @__PURE__ */ _("div", {
2887
2924
  className: "flex items-center justify-center py-0.5",
2888
2925
  children: /* @__PURE__ */ _("button", {
2889
2926
  type: "button",
2890
- onClick: () => _e(e),
2927
+ onClick: () => ge(e),
2891
2928
  "data-selected": r || void 0,
2892
2929
  "data-today": n || void 0,
2893
2930
  className: I("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", r ? "bg-eds-blue-main text-white" : t ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !r && n && "ring-1 ring-inset ring-eds-blue-main"),
2894
- children: J(e, "d")
2931
+ children: Y(e, "d")
2895
2932
  })
2896
2933
  }, e.toISOString());
2897
2934
  })]
@@ -2904,10 +2941,10 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2904
2941
  /* @__PURE__ */ _("button", {
2905
2942
  type: "button",
2906
2943
  "aria-label": "Selecionar hora",
2907
- "aria-pressed": H === "hours",
2908
- onClick: () => le("hours"),
2909
- className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", H === "hours" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
2910
- children: String(G).padStart(2, "0")
2944
+ "aria-pressed": U === "hours",
2945
+ onClick: () => ce("hours"),
2946
+ className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", U === "hours" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
2947
+ children: String(pe).padStart(2, "0")
2911
2948
  }),
2912
2949
  /* @__PURE__ */ _("span", {
2913
2950
  className: "text-sm text-eds-neutral-elements",
@@ -2916,17 +2953,17 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2916
2953
  /* @__PURE__ */ _("button", {
2917
2954
  type: "button",
2918
2955
  "aria-label": "Selecionar minuto",
2919
- "aria-pressed": H === "minutes",
2920
- onClick: () => le("minutes"),
2921
- className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", H === "minutes" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
2956
+ "aria-pressed": U === "minutes",
2957
+ onClick: () => ce("minutes"),
2958
+ className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", U === "minutes" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
2922
2959
  children: String(K).padStart(2, "0")
2923
2960
  })
2924
2961
  ]
2925
- }), /* @__PURE__ */ _(qn, {
2926
- mode: H,
2927
- value: H === "hours" ? G : K,
2928
- minuteStep: de,
2929
- onSelect: (e, t) => H === "hours" ? ve(e, t) : ye(e, t)
2962
+ }), /* @__PURE__ */ _(Yn, {
2963
+ mode: U,
2964
+ value: U === "hours" ? pe : K,
2965
+ minuteStep: fe,
2966
+ onSelect: (e, t) => U === "hours" ? _e(e, t) : ve(e, t)
2930
2967
  })]
2931
2968
  }) : /* @__PURE__ */ v("div", {
2932
2969
  className: "flex w-[148px] shrink-0 border-l border-eds-outline-border",
@@ -2936,18 +2973,18 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2936
2973
  className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2937
2974
  children: "Hora"
2938
2975
  }), /* @__PURE__ */ _("div", {
2939
- ref: ue,
2976
+ ref: le,
2940
2977
  className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2941
2978
  role: "listbox",
2942
2979
  "aria-label": "Hora",
2943
- children: er.map((e) => {
2944
- let t = G === e;
2980
+ children: nr.map((e) => {
2981
+ let t = pe === e;
2945
2982
  return /* @__PURE__ */ _("button", {
2946
2983
  type: "button",
2947
2984
  role: "option",
2948
2985
  "aria-selected": t,
2949
2986
  "data-hour": e,
2950
- onClick: () => ve(e),
2987
+ onClick: () => _e(e),
2951
2988
  className: I("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2952
2989
  children: String(e).padStart(2, "0")
2953
2990
  }, e);
@@ -2959,18 +2996,18 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2959
2996
  className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2960
2997
  children: "Min"
2961
2998
  }), /* @__PURE__ */ _("div", {
2962
- ref: U,
2999
+ ref: ue,
2963
3000
  className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2964
3001
  role: "listbox",
2965
3002
  "aria-label": "Minuto",
2966
- children: W.map((e) => {
3003
+ children: de.map((e) => {
2967
3004
  let t = K === e;
2968
3005
  return /* @__PURE__ */ _("button", {
2969
3006
  type: "button",
2970
3007
  role: "option",
2971
3008
  "aria-selected": t,
2972
3009
  "data-minute": e,
2973
- onClick: () => ye(e),
3010
+ onClick: () => ve(e),
2974
3011
  className: I("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2975
3012
  children: String(e).padStart(2, "0")
2976
3013
  }, e);
@@ -2980,16 +3017,16 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2980
3017
  })]
2981
3018
  }), /* @__PURE__ */ v("div", {
2982
3019
  className: "flex items-center justify-between gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-3 py-2.5",
2983
- children: [/* @__PURE__ */ _(oe, {
3020
+ children: [/* @__PURE__ */ _(ae, {
2984
3021
  text: "Agora",
2985
3022
  variant: "ghost",
2986
3023
  size: "sm",
2987
- onClick: be
2988
- }), /* @__PURE__ */ _(oe, {
3024
+ onClick: ye
3025
+ }), /* @__PURE__ */ _(ae, {
2989
3026
  text: "Confirmar",
2990
3027
  size: "sm",
2991
- onClick: xe,
2992
- disabled: !V
3028
+ onClick: be,
3029
+ disabled: !H
2993
3030
  })]
2994
3031
  })]
2995
3032
  })
@@ -2998,7 +3035,7 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2998
3035
  k && /* @__PURE__ */ _("div", {
2999
3036
  id: `${O}-desc`,
3000
3037
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
3001
- "data-state": re ? "invalid" : l,
3038
+ "data-state": re ? "invalid" : s,
3002
3039
  children: re ? f : d
3003
3040
  })
3004
3041
  ]
@@ -3006,7 +3043,7 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
3006
3043
  }
3007
3044
  //#endregion
3008
3045
  //#region src/components/Dialog/Dialog.tsx
3009
- var nr = { size: {
3046
+ var ir = { size: {
3010
3047
  sm: {
3011
3048
  classes: "sm:max-w-xs",
3012
3049
  description: "Small dialog for simple confirmations (288px)"
@@ -3023,37 +3060,37 @@ var nr = { size: {
3023
3060
  classes: "sm:max-w-3xl",
3024
3061
  description: "Extra large dialog for detailed views (768px)"
3025
3062
  }
3026
- } }, rr = { size: "md" }, ir = b("dialog");
3027
- function ar() {
3028
- return S(ir);
3063
+ } }, ar = { size: "md" }, or = b("dialog");
3064
+ function sr() {
3065
+ return S(or);
3029
3066
  }
3030
- function or({ size: e = rr.size } = {}) {
3031
- return I(`fixed top-1/2 left-1/2 ${sn.overlay} grid w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-white p-4 text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`, L(nr.size, e, rr.size).classes);
3067
+ function cr({ size: e = ar.size } = {}) {
3068
+ return I(`fixed top-1/2 left-1/2 ${ln.overlay} grid w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-white p-4 text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`, L(ir.size, e, ar.size).classes);
3032
3069
  }
3033
- function sr({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
3034
- let i = ar(), a = i === "alertdialog" ? M.Portal : j.Portal, o = i === "alertdialog" ? M.Backdrop : j.Backdrop, s = i === "alertdialog" ? M.Popup : j.Popup, c = i === "alertdialog" ? M.Close : j.Close;
3070
+ function lr({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
3071
+ let i = sr(), a = i === "alertdialog" ? M.Portal : j.Portal, o = i === "alertdialog" ? M.Backdrop : j.Backdrop, s = i === "alertdialog" ? M.Popup : j.Popup, c = i === "alertdialog" ? M.Close : j.Close;
3035
3072
  return /* @__PURE__ */ v(a, { children: [/* @__PURE__ */ _(o, {
3036
- className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", sn.overlay),
3037
- style: { zIndex: sn.overlayValue }
3073
+ className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", ln.overlay),
3074
+ style: { zIndex: ln.overlayValue }
3038
3075
  }), /* @__PURE__ */ v(s, {
3039
3076
  "data-eds-component": "Dialog",
3040
- className: I(or({ size: n }), e),
3041
- style: { zIndex: sn.overlayValue },
3077
+ className: I(cr({ size: n }), e),
3078
+ style: { zIndex: ln.overlayValue },
3042
3079
  children: [t, r ? /* @__PURE__ */ _(c, {
3043
3080
  "data-eds-component": "Dialog",
3044
3081
  "aria-label": "Fechar",
3045
3082
  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",
3046
- children: /* @__PURE__ */ _(m, {
3083
+ children: /* @__PURE__ */ _(h, {
3047
3084
  className: "size-4",
3048
3085
  "aria-hidden": !0
3049
3086
  })
3050
3087
  }) : null]
3051
3088
  })] });
3052
3089
  }
3053
- function cr(e) {
3090
+ function ur(e) {
3054
3091
  if (e.role === "alertdialog") {
3055
3092
  let { children: t, role: n, ...r } = e;
3056
- return /* @__PURE__ */ _(ir.Provider, {
3093
+ return /* @__PURE__ */ _(or.Provider, {
3057
3094
  value: n,
3058
3095
  children: /* @__PURE__ */ _(M.Root, {
3059
3096
  ...r,
@@ -3062,7 +3099,7 @@ function cr(e) {
3062
3099
  });
3063
3100
  }
3064
3101
  let { children: t, role: n = "dialog", ...r } = e;
3065
- return /* @__PURE__ */ _(ir.Provider, {
3102
+ return /* @__PURE__ */ _(or.Provider, {
3066
3103
  value: n,
3067
3104
  children: /* @__PURE__ */ _(j.Root, {
3068
3105
  ...r,
@@ -3070,8 +3107,8 @@ function cr(e) {
3070
3107
  })
3071
3108
  });
3072
3109
  }
3073
- function lr({ children: e, ...t }) {
3074
- return ar() === "alertdialog" ? /* @__PURE__ */ _(M.Trigger, {
3110
+ function dr({ children: e, ...t }) {
3111
+ return sr() === "alertdialog" ? /* @__PURE__ */ _(M.Trigger, {
3075
3112
  "data-eds-component": "Dialog",
3076
3113
  ...t,
3077
3114
  children: e
@@ -3081,71 +3118,71 @@ function lr({ children: e, ...t }) {
3081
3118
  children: e
3082
3119
  });
3083
3120
  }
3084
- function ur({ className: e, ...t }) {
3121
+ function fr({ className: e, ...t }) {
3085
3122
  return /* @__PURE__ */ _("div", {
3086
3123
  "data-slot": "dialog-header",
3087
3124
  className: I("flex flex-col gap-2", e),
3088
3125
  ...t
3089
3126
  });
3090
3127
  }
3091
- function dr({ className: e, ...t }) {
3128
+ function pr({ className: e, ...t }) {
3092
3129
  return /* @__PURE__ */ _("div", {
3093
3130
  "data-slot": "dialog-footer",
3094
3131
  className: I("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-eds-outline-border bg-eds-neutral-background p-4 sm:flex-row sm:justify-end", e),
3095
3132
  ...t
3096
3133
  });
3097
3134
  }
3098
- function fr({ className: e, ...t }) {
3099
- return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Title : j.Title, {
3135
+ function mr({ className: e, ...t }) {
3136
+ return /* @__PURE__ */ _(sr() === "alertdialog" ? M.Title : j.Title, {
3100
3137
  className: I("text-base leading-none font-medium text-eds-neutral-main", e),
3101
3138
  ...t
3102
3139
  });
3103
3140
  }
3104
- function pr({ className: e, ...t }) {
3105
- return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Description : j.Description, {
3141
+ function hr({ className: e, ...t }) {
3142
+ return /* @__PURE__ */ _(sr() === "alertdialog" ? M.Description : j.Description, {
3106
3143
  className: I("text-sm text-eds-neutral-elements", e),
3107
3144
  ...t
3108
3145
  });
3109
3146
  }
3110
- function mr({ children: e, ...t }) {
3111
- return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Close : j.Close, {
3147
+ function gr({ children: e, ...t }) {
3148
+ return /* @__PURE__ */ _(sr() === "alertdialog" ? M.Close : j.Close, {
3112
3149
  "data-eds-component": "Dialog",
3113
3150
  ...t,
3114
3151
  children: e
3115
3152
  });
3116
3153
  }
3117
- cr.displayName = "Dialog.Root", lr.displayName = "Dialog.Trigger", ur.displayName = "Dialog.Header", dr.displayName = "Dialog.Footer", fr.displayName = "Dialog.Title", pr.displayName = "Dialog.Description", mr.displayName = "Dialog.Close";
3118
- var hr = Object.assign(sr, {
3119
- Root: cr,
3120
- Trigger: lr,
3121
- Header: ur,
3122
- Footer: dr,
3123
- Title: fr,
3124
- Description: pr,
3125
- Close: mr
3154
+ ur.displayName = "Dialog.Root", dr.displayName = "Dialog.Trigger", fr.displayName = "Dialog.Header", pr.displayName = "Dialog.Footer", mr.displayName = "Dialog.Title", hr.displayName = "Dialog.Description", gr.displayName = "Dialog.Close";
3155
+ var _r = Object.assign(lr, {
3156
+ Root: ur,
3157
+ Trigger: dr,
3158
+ Header: fr,
3159
+ Footer: pr,
3160
+ Title: mr,
3161
+ Description: hr,
3162
+ Close: gr
3126
3163
  });
3127
3164
  //#endregion
3128
3165
  //#region src/components/FormDialog/FormDialog.tsx
3129
- function gr({ size: e = "xl" } = {}) {
3130
- return I("relative flex w-full max-h-full min-h-0 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "[&>form]:flex [&>form]:min-h-0 [&>form]:w-full [&>form]:flex-1 [&>form]:flex-col [&>form]:overflow-hidden", L(nr.size, e, rr.size).classes);
3166
+ function vr({ size: e = "xl" } = {}) {
3167
+ return I("relative flex w-full max-h-full min-h-0 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "[&>form]:flex [&>form]:min-h-0 [&>form]:w-full [&>form]:flex-1 [&>form]:flex-col [&>form]:overflow-hidden", L(ir.size, e, ar.size).classes);
3131
3168
  }
3132
- function _r({ className: e, children: t, size: n = "xl" }) {
3133
- let r = ar(), i = r === "alertdialog" ? M.Portal : j.Portal, a = r === "alertdialog" ? M.Backdrop : j.Backdrop, o = r === "alertdialog" ? M.Popup : j.Popup;
3169
+ function yr({ className: e, children: t, size: n = "xl" }) {
3170
+ let r = sr(), i = r === "alertdialog" ? M.Portal : j.Portal, a = r === "alertdialog" ? M.Backdrop : j.Backdrop, o = r === "alertdialog" ? M.Popup : j.Popup;
3134
3171
  return /* @__PURE__ */ v(i, { children: [/* @__PURE__ */ _(a, {
3135
- className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", sn.overlay),
3136
- style: { zIndex: sn.overlayValue }
3172
+ className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", ln.overlay),
3173
+ style: { zIndex: ln.overlayValue }
3137
3174
  }), /* @__PURE__ */ _("div", {
3138
- className: I("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", sn.overlay),
3139
- style: { zIndex: sn.overlayValue },
3175
+ className: I("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", ln.overlay),
3176
+ style: { zIndex: ln.overlayValue },
3140
3177
  children: /* @__PURE__ */ _(o, {
3141
3178
  "data-eds-component": "FormDialog",
3142
- className: I("pointer-events-auto", gr({ size: n }), e),
3179
+ className: I("pointer-events-auto", vr({ size: n }), e),
3143
3180
  children: t
3144
3181
  })
3145
3182
  })] });
3146
3183
  }
3147
- function vr({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
3148
- let s = ar(), c = s === "alertdialog" ? M.Close : j.Close, l = s === "alertdialog" ? M.Title : j.Title, u = s === "alertdialog" ? M.Description : j.Description, d = n != null || r != null || t;
3184
+ function br({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
3185
+ let s = sr(), c = s === "alertdialog" ? M.Close : j.Close, l = s === "alertdialog" ? M.Title : j.Title, u = s === "alertdialog" ? M.Description : j.Description, d = n != null || r != null || t;
3149
3186
  return /* @__PURE__ */ v("div", {
3150
3187
  "data-slot": "form-dialog-header",
3151
3188
  className: I("relative flex shrink-0 items-start gap-3 border-b border-eds-outline-border bg-white px-5 py-4", i && "pr-12", e),
@@ -3181,7 +3218,7 @@ function vr({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i =
3181
3218
  "data-eds-component": "FormDialog",
3182
3219
  "aria-label": "Fechar",
3183
3220
  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",
3184
- children: /* @__PURE__ */ _(m, {
3221
+ children: /* @__PURE__ */ _(h, {
3185
3222
  className: "size-4",
3186
3223
  "aria-hidden": !0
3187
3224
  })
@@ -3189,43 +3226,43 @@ function vr({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i =
3189
3226
  ]
3190
3227
  });
3191
3228
  }
3192
- function yr({ className: e, ...t }) {
3229
+ function xr({ className: e, ...t }) {
3193
3230
  return /* @__PURE__ */ _("div", {
3194
3231
  "data-slot": "form-dialog-body",
3195
3232
  className: I("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
3196
3233
  ...t
3197
3234
  });
3198
3235
  }
3199
- function br({ className: e, ...t }) {
3236
+ function Sr({ className: e, ...t }) {
3200
3237
  return /* @__PURE__ */ _("div", {
3201
3238
  "data-slot": "form-dialog-footer",
3202
3239
  className: I("flex shrink-0 flex-col-reverse gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-5 py-4 sm:flex-row sm:justify-end", e),
3203
3240
  ...t
3204
3241
  });
3205
3242
  }
3206
- function xr({ className: e, ...t }) {
3207
- return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Title : j.Title, {
3243
+ function Cr({ className: e, ...t }) {
3244
+ return /* @__PURE__ */ _(sr() === "alertdialog" ? M.Title : j.Title, {
3208
3245
  className: I("text-lg leading-tight font-semibold text-eds-blue-dark", e),
3209
3246
  ...t
3210
3247
  });
3211
3248
  }
3212
- function Sr({ className: e, ...t }) {
3213
- return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Description : j.Description, {
3249
+ function wr({ className: e, ...t }) {
3250
+ return /* @__PURE__ */ _(sr() === "alertdialog" ? M.Description : j.Description, {
3214
3251
  className: I("text-sm leading-snug text-eds-neutral-elements", e),
3215
3252
  ...t
3216
3253
  });
3217
3254
  }
3218
- vr.displayName = "FormDialog.Header", yr.displayName = "FormDialog.Body", br.displayName = "FormDialog.Footer", xr.displayName = "FormDialog.Title", Sr.displayName = "FormDialog.Description";
3219
- var Cr = Object.assign(_r, {
3220
- Root: cr,
3221
- Trigger: lr,
3222
- Close: mr,
3223
- Header: vr,
3224
- Body: yr,
3225
- Footer: br,
3226
- Title: xr,
3227
- Description: Sr
3228
- }), wr = { size: {
3255
+ br.displayName = "FormDialog.Header", xr.displayName = "FormDialog.Body", Sr.displayName = "FormDialog.Footer", Cr.displayName = "FormDialog.Title", wr.displayName = "FormDialog.Description";
3256
+ var Tr = Object.assign(yr, {
3257
+ Root: ur,
3258
+ Trigger: dr,
3259
+ Close: gr,
3260
+ Header: br,
3261
+ Body: xr,
3262
+ Footer: Sr,
3263
+ Title: Cr,
3264
+ Description: wr
3265
+ }), Er = { size: {
3229
3266
  sm: {
3230
3267
  classes: "px-6 py-8 gap-3",
3231
3268
  description: "Compact empty state for smaller containers"
@@ -3238,11 +3275,11 @@ var Cr = Object.assign(_r, {
3238
3275
  classes: "px-12 py-20 gap-6",
3239
3276
  description: "Large empty state for prominent placement"
3240
3277
  }
3241
- } }, Tr = { size: "md" };
3242
- function Er({ icon: e, title: t, description: n, action: r, size: i = Tr.size, titleLevel: a = "h2", className: o }) {
3278
+ } }, Dr = { size: "md" };
3279
+ function Or({ icon: e, title: t, description: n, action: r, size: i = Dr.size, titleLevel: a = "h2", className: o }) {
3243
3280
  return /* @__PURE__ */ v("div", {
3244
3281
  "data-eds-component": "Empty",
3245
- className: I("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", L(wr.size, i, Tr.size).classes, o),
3282
+ className: I("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", L(Er.size, i, Dr.size).classes, o),
3246
3283
  children: [
3247
3284
  e && /* @__PURE__ */ _("div", {
3248
3285
  className: "text-eds-neutral-elements",
@@ -3263,24 +3300,24 @@ function Er({ icon: e, title: t, description: n, action: r, size: i = Tr.size, t
3263
3300
  }
3264
3301
  //#endregion
3265
3302
  //#region ../../node_modules/.pnpm/brazilian-values@0.13.1/node_modules/brazilian-values/dist/brazilian-values.mjs
3266
- var Dr = /\D/g, Or = function(e) {
3267
- return e.replace(Dr, "");
3268
- }, kr = function(e) {
3269
- return Or(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
3270
- }, Ar = function(e) {
3271
- return Or(e).replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d{1,2})$/, "$1-$2");
3303
+ var kr = /\D/g, Ar = function(e) {
3304
+ return e.replace(kr, "");
3272
3305
  }, jr = function(e) {
3273
- return Or(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
3306
+ return Ar(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
3274
3307
  }, Mr = function(e) {
3275
- return (e.match(/\d/g)?.length ?? 0) <= 11;
3308
+ return Ar(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");
3276
3309
  }, Nr = function(e) {
3277
- return Mr(e) ? jr(e) : Ar(e);
3310
+ return Ar(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
3278
3311
  }, Pr = function(e) {
3279
- return Or(e).replace(/(\d{1,2})/, "($1").replace(/(\(\d{2})(\d{1,4})/, "$1) $2").replace(/( \d{4})(\d{1,4})/, "$1-$2").replace(/( \d{4})(?:-)(\d{1})(\d{4})/, "$1$2-$3");
3312
+ return (e.match(/\d/g)?.length ?? 0) <= 11;
3313
+ }, Fr = function(e) {
3314
+ return Pr(e) ? Nr(e) : Mr(e);
3315
+ }, Ir = function(e) {
3316
+ return Ar(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");
3280
3317
  };
3281
3318
  //#endregion
3282
3319
  //#region src/components/Input/Input.tsx
3283
- function Fr(e) {
3320
+ function Lr(e) {
3284
3321
  if (!e) return "";
3285
3322
  let t = e.trimStart().startsWith("-"), n = e.replace(/\./g, ",").replace(/[^\d,]/g, "");
3286
3323
  if (!n) return t ? "-" : "";
@@ -3289,51 +3326,51 @@ function Fr(e) {
3289
3326
  let i = n.slice(0, r), a = n.slice(r + 1).replace(/,/g, "");
3290
3327
  return `${t ? "-" : ""}${i},${a}`;
3291
3328
  }
3292
- var Ir = {
3329
+ var Rr = {
3293
3330
  default: "",
3294
3331
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3295
3332
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
3296
3333
  loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
3297
3334
  };
3298
- function Lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, format: f, tooltip: p = null, linkText: m = null, linkUrl: h = null, supportLink: g = null, supportLinkUrl: y = null, supportingText: b = "", lazy: x = !1, labelVariant: S, disableAutocomplete: C = !1, isLoading: w = !1, loadingIconPosition: T = "end", icon: D, hideContent: te = !1, showContentText: ne = "Mostrar", hideContentText: O = "Ocultar", defaultValue: re, value: k, id: A, name: j, onBlur: M, onFocus: P, onKeyDown: F, onClick: L, onChange: ie, ...R }) {
3299
- let z = ee(), ae = A ?? z, B = a === "number", [oe, se] = E(!1), [V, ce] = E(() => {
3335
+ function zr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, format: u, tooltip: p = null, linkText: m = null, linkUrl: h = null, supportLink: g = null, supportLinkUrl: y = null, supportingText: b = "", lazy: x = !1, labelVariant: S, disableAutocomplete: C = !1, isLoading: w = !1, loadingIconPosition: T = "end", icon: D, hideContent: te = !1, showContentText: ne = "Mostrar", hideContentText: O = "Ocultar", defaultValue: re, value: k, id: A, name: j, onBlur: M, onFocus: P, onKeyDown: F, onClick: L, onChange: ie, ...R }) {
3336
+ let z = ee(), B = A ?? z, V = a === "number", [ae, oe] = E(!1), [H, se] = E(() => {
3300
3337
  let e = re?.toString() ?? "";
3301
- return B ? Fr(e) : e;
3302
- }), H = k !== void 0, le = (H ? k : V)?.toString() ?? "", ue = B ? Fr(le) : le, U = g ?? m, W = y ?? h, de = an(S), fe = de === "floating", pe = (e) => {
3303
- if (B) return Fr(e);
3304
- switch (f) {
3305
- case "cep": return kr(e);
3306
- case "cpf": return jr(e);
3307
- case "cnpj": return Ar(e);
3308
- case "cpfOrCnpj": return Nr(e);
3309
- case "phone": return Pr(e);
3338
+ return V ? Lr(e) : e;
3339
+ }), U = k !== void 0, ce = (U ? k : H)?.toString() ?? "", le = V ? Lr(ce) : ce, ue = g ?? m, de = y ?? h, fe = sn(S), W = fe === "floating", G = (e) => {
3340
+ if (V) return Lr(e);
3341
+ switch (u) {
3342
+ case "cep": return jr(e);
3343
+ case "cpf": return Nr(e);
3344
+ case "cnpj": return Mr(e);
3345
+ case "cpfOrCnpj": return Fr(e);
3346
+ case "phone": return Ir(e);
3310
3347
  default: return e;
3311
3348
  }
3312
- }, me = (e, t) => {
3313
- let n = pe(e);
3314
- H || ce(n), ie?.(n, t);
3315
- }, G = r === "invalid", K = n || w, he = on[i], ge = w ? /* @__PURE__ */ _("span", {
3349
+ }, pe = (e, t) => {
3350
+ let n = G(e);
3351
+ U || se(n), ie?.(n, t);
3352
+ }, me = r === "invalid", K = n || w, q = cn[i], he = w ? /* @__PURE__ */ _("span", {
3316
3353
  className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
3317
3354
  "data-position": T,
3318
3355
  "aria-hidden": !0,
3319
- children: /* @__PURE__ */ _(d, {
3356
+ children: /* @__PURE__ */ _(f, {
3320
3357
  className: "animate-eds-spin",
3321
3358
  size: 16
3322
3359
  })
3323
3360
  }) : null;
3324
3361
  return /* @__PURE__ */ v("div", {
3325
- className: I(cn, e),
3362
+ className: I(un, e),
3326
3363
  "data-fluid": l || void 0,
3327
3364
  "data-eds-component": "Input",
3328
- "data-label-variant": de,
3365
+ "data-label-variant": fe,
3329
3366
  children: [
3330
3367
  /* @__PURE__ */ v("div", {
3331
- className: ln,
3368
+ className: dn,
3332
3369
  children: [/* @__PURE__ */ v("div", {
3333
3370
  className: "inline-flex min-w-0 items-center gap-2",
3334
3371
  children: [/* @__PURE__ */ v("label", {
3335
- className: I(un, fe && "sr-only", !fe && "font-medium"),
3336
- htmlFor: ae,
3372
+ className: I(fn, W && "sr-only", !W && "font-medium"),
3373
+ htmlFor: B,
3337
3374
  children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
3338
3375
  className: "text-eds-red-main",
3339
3376
  children: "*"
@@ -3344,32 +3381,32 @@ function Lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3344
3381
  "aria-label": p,
3345
3382
  title: p,
3346
3383
  disabled: K,
3347
- children: /* @__PURE__ */ _(u, {
3384
+ children: /* @__PURE__ */ _(d, {
3348
3385
  size: 16,
3349
3386
  "aria-hidden": !0
3350
3387
  })
3351
3388
  })]
3352
- }), U && W && /* @__PURE__ */ _("a", {
3389
+ }), ue && de && /* @__PURE__ */ _("a", {
3353
3390
  className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
3354
- href: W,
3391
+ href: de,
3355
3392
  "aria-disabled": K || void 0,
3356
3393
  tabIndex: K ? -1 : 0,
3357
3394
  onClick: (e) => {
3358
3395
  K && e.preventDefault();
3359
3396
  },
3360
- children: U
3397
+ children: ue
3361
3398
  })]
3362
3399
  }),
3363
3400
  /* @__PURE__ */ v("div", {
3364
- className: I("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", he.control, Ir[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3401
+ className: I("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", q.control, Rr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3365
3402
  "data-disabled": K || void 0,
3366
3403
  "data-state": r,
3367
3404
  "data-size": i,
3368
- "data-floating": fe || void 0,
3369
- "data-has-value": ue ? !0 : void 0,
3405
+ "data-floating": W || void 0,
3406
+ "data-has-value": le ? !0 : void 0,
3370
3407
  children: [
3371
- fe && /* @__PURE__ */ v("span", {
3372
- className: xn(he.left),
3408
+ W && /* @__PURE__ */ v("span", {
3409
+ className: Cn(q.left),
3373
3410
  children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
3374
3411
  className: "text-eds-red-main",
3375
3412
  "aria-hidden": "true",
@@ -3381,82 +3418,82 @@ function Lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3381
3418
  size: 16,
3382
3419
  "aria-hidden": !0
3383
3420
  }),
3384
- T === "start" && ge,
3421
+ T === "start" && he,
3385
3422
  /* @__PURE__ */ _(N, {
3386
3423
  ...R,
3387
- id: ae,
3424
+ id: B,
3388
3425
  name: j,
3389
- className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", fn, he.text),
3426
+ className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", mn, q.text),
3390
3427
  disabled: K,
3391
- type: B ? "text" : te ? oe ? "text" : "password" : a,
3392
- inputMode: B ? R.inputMode ?? "decimal" : R.inputMode,
3393
- lang: B ? R.lang ?? "pt-BR" : R.lang,
3428
+ type: V ? "text" : te ? ae ? "text" : "password" : a,
3429
+ inputMode: V ? R.inputMode ?? "decimal" : R.inputMode,
3430
+ lang: V ? R.lang ?? "pt-BR" : R.lang,
3394
3431
  required: o,
3395
3432
  placeholder: s,
3396
3433
  autoComplete: C ? "off" : R.autoComplete,
3397
- "aria-invalid": G || void 0,
3398
- "aria-describedby": G ? `${ae}-desc` : void 0,
3434
+ "aria-invalid": me || void 0,
3435
+ "aria-describedby": me ? `${B}-desc` : void 0,
3399
3436
  "aria-busy": w || void 0,
3400
- value: H || B ? ue : void 0,
3401
- defaultValue: !H && !B ? re : void 0,
3437
+ value: U || V ? le : void 0,
3438
+ defaultValue: !U && !V ? re : void 0,
3402
3439
  onClick: L,
3403
3440
  onKeyDown: F,
3404
3441
  onFocus: P,
3405
3442
  onBlur: (e) => {
3406
- M?.(e), x && me(e.currentTarget.value, e);
3443
+ M?.(e), x && pe(e.currentTarget.value, e);
3407
3444
  },
3408
3445
  onChange: (e) => {
3409
3446
  if (x) {
3410
- B && !H && ce(pe(e.currentTarget.value));
3447
+ V && !U && se(G(e.currentTarget.value));
3411
3448
  return;
3412
3449
  }
3413
- me(e.currentTarget.value, e);
3450
+ pe(e.currentTarget.value, e);
3414
3451
  }
3415
3452
  }),
3416
3453
  te && !w && /* @__PURE__ */ _("button", {
3417
3454
  type: "button",
3418
3455
  className: "shrink-0 text-sm font-medium text-eds-blue-main hover:underline",
3419
3456
  disabled: K,
3420
- onClick: () => se((e) => !e),
3421
- children: oe ? O : ne
3457
+ onClick: () => oe((e) => !e),
3458
+ children: ae ? O : ne
3422
3459
  }),
3423
- T === "end" && ge
3460
+ T === "end" && he
3424
3461
  ]
3425
3462
  }),
3426
- (G || b) && /* @__PURE__ */ _("div", {
3427
- id: `${ae}-desc`,
3463
+ (me || b) && /* @__PURE__ */ _("div", {
3464
+ id: `${B}-desc`,
3428
3465
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
3429
- "data-state": G ? "invalid" : r,
3430
- children: G ? c : b
3466
+ "data-state": me ? "invalid" : r,
3467
+ children: me ? c : b
3431
3468
  })
3432
3469
  ]
3433
3470
  });
3434
3471
  }
3435
3472
  //#endregion
3436
3473
  //#region src/components/Textarea/Textarea.tsx
3437
- var Rr = {
3474
+ var Br = {
3438
3475
  default: "",
3439
3476
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3440
3477
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
3441
- }, zr = {
3478
+ }, Vr = {
3442
3479
  sm: "min-h-20",
3443
3480
  md: "min-h-24",
3444
3481
  lg: "min-h-32"
3445
3482
  };
3446
- function Br({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: s = "Campo obrigatório", fluid: c = !1, tooltip: l = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: p = "", labelVariant: m, rows: h = 4, defaultValue: g, value: y, id: b, name: x, onBlur: S, onFocus: C, onKeyDown: w, onClick: T, onChange: D, ...te }) {
3447
- let ne = ee(), O = b ?? ne, [re, k] = E(() => g?.toString() ?? ""), A = y !== void 0, j = (A ? y : re)?.toString() ?? "", M = an(m), N = M === "floating", P = r === "invalid", F = on[i];
3483
+ function Hr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: s = "Campo obrigatório", fluid: c = !1, tooltip: l = null, supportLink: u = null, supportLinkUrl: f = null, supportingText: p = "", labelVariant: m, rows: h = 4, defaultValue: g, value: y, id: b, name: x, onBlur: S, onFocus: C, onKeyDown: w, onClick: T, onChange: D, ...te }) {
3484
+ let ne = ee(), O = b ?? ne, [re, k] = E(() => g?.toString() ?? ""), A = y !== void 0, j = (A ? y : re)?.toString() ?? "", M = sn(m), N = M === "floating", P = r === "invalid", F = cn[i];
3448
3485
  return /* @__PURE__ */ v("div", {
3449
- className: I(cn, e),
3486
+ className: I(un, e),
3450
3487
  "data-fluid": c || void 0,
3451
3488
  "data-eds-component": "Textarea",
3452
3489
  "data-label-variant": M,
3453
3490
  children: [
3454
3491
  /* @__PURE__ */ v("div", {
3455
- className: ln,
3492
+ className: dn,
3456
3493
  children: [/* @__PURE__ */ v("div", {
3457
3494
  className: "inline-flex min-w-0 items-center gap-2",
3458
3495
  children: [/* @__PURE__ */ v("label", {
3459
- className: I(un, N && "sr-only", !N && "font-medium"),
3496
+ className: I(fn, N && "sr-only", !N && "font-medium"),
3460
3497
  htmlFor: O,
3461
3498
  children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
3462
3499
  className: "text-eds-red-main",
@@ -3468,12 +3505,12 @@ function Br({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3468
3505
  "aria-label": l,
3469
3506
  title: l,
3470
3507
  disabled: n,
3471
- children: /* @__PURE__ */ _(u, {
3508
+ children: /* @__PURE__ */ _(d, {
3472
3509
  size: 16,
3473
3510
  "aria-hidden": !0
3474
3511
  })
3475
3512
  })]
3476
- }), d && f && /* @__PURE__ */ _("a", {
3513
+ }), u && f && /* @__PURE__ */ _("a", {
3477
3514
  className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
3478
3515
  href: f,
3479
3516
  "aria-disabled": n || void 0,
@@ -3481,18 +3518,18 @@ function Br({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3481
3518
  onClick: (e) => {
3482
3519
  n && e.preventDefault();
3483
3520
  },
3484
- children: d
3521
+ children: u
3485
3522
  })]
3486
3523
  }),
3487
3524
  /* @__PURE__ */ v("div", {
3488
- className: I("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", F.paddingX, "py-2.5", zr[i], Rr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:!bg-eds-neutral-background data-disabled:opacity-70"),
3525
+ className: I("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", F.paddingX, "py-2.5", Vr[i], Br[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"),
3489
3526
  "data-disabled": n || void 0,
3490
3527
  "data-state": r,
3491
3528
  "data-size": i,
3492
3529
  "data-floating": N || void 0,
3493
3530
  "data-has-value": j ? !0 : void 0,
3494
3531
  children: [N && /* @__PURE__ */ v("span", {
3495
- className: xn(F.left),
3532
+ className: Cn(F.left),
3496
3533
  children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
3497
3534
  className: "text-eds-red-main",
3498
3535
  "aria-hidden": "true",
@@ -3503,7 +3540,7 @@ function Br({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3503
3540
  id: O,
3504
3541
  name: x,
3505
3542
  rows: h,
3506
- className: I("box-border min-h-[inherit] w-full flex-1 resize-y appearance-none border-0 !bg-white p-0 font-inherit text-eds-neutral-main shadow-none outline-none", fn, F.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
3543
+ className: I("box-border min-h-[inherit] w-full flex-1 resize-y appearance-none border-0 !bg-white p-0 font-inherit text-eds-neutral-main shadow-none outline-none", mn, F.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
3507
3544
  disabled: n,
3508
3545
  required: a,
3509
3546
  placeholder: o,
@@ -3531,25 +3568,25 @@ function Br({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3531
3568
  }
3532
3569
  //#endregion
3533
3570
  //#region src/components/Select/Select.tsx
3534
- var Vr = {
3571
+ var Ur = {
3535
3572
  default: "",
3536
3573
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3537
3574
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
3538
3575
  };
3539
- function Hr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", id: p, name: m, value: h = void 0, defaultValue: g = void 0, onValueChange: y = void 0, renderItem: b = void 0, className: x }) {
3540
- let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E = on[u], D = an(t), te = D === "floating";
3576
+ function Wr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: a = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", id: p, name: m, value: h = void 0, defaultValue: g = void 0, onValueChange: y = void 0, renderItem: b = void 0, className: x }) {
3577
+ let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E = cn[u], D = sn(t), te = D === "floating";
3541
3578
  return /* @__PURE__ */ v("div", {
3542
- className: I(cn, x),
3579
+ className: I(un, x),
3543
3580
  "data-fluid": c || void 0,
3544
3581
  "data-eds-component": "Select",
3545
3582
  "data-label-variant": D,
3546
3583
  children: [
3547
3584
  /* @__PURE__ */ _("div", {
3548
- className: ln,
3585
+ className: dn,
3549
3586
  children: /* @__PURE__ */ v("label", {
3550
- className: I(un, te && "sr-only", !te && "font-medium"),
3587
+ className: I(fn, te && "sr-only", !te && "font-medium"),
3551
3588
  htmlFor: C,
3552
- children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
3589
+ children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
3553
3590
  className: "text-eds-red-main",
3554
3591
  children: "*"
3555
3592
  })]
@@ -3559,53 +3596,53 @@ function Hr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3559
3596
  id: C,
3560
3597
  name: m,
3561
3598
  disabled: i,
3562
- required: s,
3599
+ required: a,
3563
3600
  onValueChange: y,
3564
3601
  defaultValue: g,
3565
3602
  value: h,
3566
3603
  children: [/* @__PURE__ */ v(P.Trigger, {
3567
- className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger, Vr[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3604
+ className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger, Ur[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3568
3605
  "data-state": l,
3569
3606
  "data-size": u,
3570
3607
  "data-disabled": i || void 0,
3571
3608
  "aria-describedby": T ? `${C}-desc` : void 0,
3572
3609
  children: [
3573
3610
  te && /* @__PURE__ */ v("span", {
3574
- className: xn(E.left),
3575
- children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
3611
+ className: Cn(E.left),
3612
+ children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
3576
3613
  className: "text-eds-red-main",
3577
3614
  "aria-hidden": "true",
3578
3615
  children: "*"
3579
3616
  })]
3580
3617
  }),
3581
3618
  /* @__PURE__ */ _(P.Value, {
3582
- className: I("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", pn, E.text),
3619
+ className: I("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", hn, E.text),
3583
3620
  placeholder: r
3584
3621
  }),
3585
3622
  /* @__PURE__ */ _(P.Icon, {
3586
3623
  className: I("inline-flex shrink-0 items-center justify-center rounded-md text-eds-neutral-elements", E.icon),
3587
3624
  "aria-hidden": !0,
3588
- children: /* @__PURE__ */ _(o, {
3625
+ children: /* @__PURE__ */ _(s, {
3589
3626
  className: "size-4 shrink-0",
3590
3627
  strokeWidth: 2
3591
3628
  })
3592
3629
  })
3593
3630
  ]
3594
3631
  }), /* @__PURE__ */ _(P.Portal, { children: /* @__PURE__ */ _(P.Positioner, {
3595
- className: yn,
3596
- style: bn,
3632
+ className: xn,
3633
+ style: Sn,
3597
3634
  positionMethod: "fixed",
3598
3635
  sideOffset: 4,
3599
3636
  children: /* @__PURE__ */ _(P.Popup, {
3600
- className: hn,
3637
+ className: _n,
3601
3638
  children: /* @__PURE__ */ _(P.List, {
3602
- className: gn,
3639
+ className: vn,
3603
3640
  children: n.map((e) => /* @__PURE__ */ v(P.Item, {
3604
3641
  value: e,
3605
- className: _n,
3642
+ className: yn,
3606
3643
  children: [/* @__PURE__ */ _(P.ItemIndicator, {
3607
- className: vn,
3608
- children: /* @__PURE__ */ _(a, {
3644
+ className: bn,
3645
+ children: /* @__PURE__ */ _(o, {
3609
3646
  size: 14,
3610
3647
  "aria-hidden": !0
3611
3648
  })
@@ -3629,7 +3666,7 @@ function Hr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3629
3666
  }
3630
3667
  //#endregion
3631
3668
  //#region src/components/Text/Text.tsx
3632
- var Ur = {
3669
+ var Gr = {
3633
3670
  variant: {
3634
3671
  heading1: {
3635
3672
  classes: "text-3xl font-semibold",
@@ -3686,20 +3723,20 @@ var Ur = {
3686
3723
  description: "Large text"
3687
3724
  }
3688
3725
  }
3689
- }, Wr = {
3726
+ }, Kr = {
3690
3727
  variant: "body",
3691
3728
  size: "md"
3692
- }, Gr = /* @__PURE__ */ new Set([
3729
+ }, qr = /* @__PURE__ */ new Set([
3693
3730
  "heading1",
3694
3731
  "heading2",
3695
3732
  "heading3"
3696
- ]), Kr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3697
- function qr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3698
- let l = Kr.has(e), u = Gr.has(e), d = w(() => o || (l || u ? "span" : "p"), [
3733
+ ]), Jr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3734
+ function Yr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3735
+ let l = Jr.has(e), u = qr.has(e), d = w(() => o || (l || u ? "span" : "p"), [
3699
3736
  o,
3700
3737
  l,
3701
3738
  u
3702
- ]), f = L(Ur.variant, e, Wr.variant), p = L(Ur.size, n ?? "md", Wr.size);
3739
+ ]), f = L(Gr.variant, e, Kr.variant), p = L(Gr.size, n ?? "md", Kr.size);
3703
3740
  return /* @__PURE__ */ _(d, {
3704
3741
  ref: c,
3705
3742
  "data-eds-component": "Text",
@@ -3708,7 +3745,7 @@ function qr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !
3708
3745
  children: i
3709
3746
  });
3710
3747
  }
3711
- var Jr = x(qr), Yr = {
3748
+ var Xr = x(Yr), Zr = {
3712
3749
  layout: {
3713
3750
  auto: {
3714
3751
  classes: "",
@@ -3757,15 +3794,15 @@ var Jr = x(qr), Yr = {
3757
3794
  description: "Pin column to the right edge of the scroll container"
3758
3795
  }
3759
3796
  }
3760
- }, Xr = (e, t) => {
3761
- let n = L(Yr.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
3797
+ }, Qr = (e, t) => {
3798
+ let n = L(Zr.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
3762
3799
  return t === "cell" ? I(n, r, "bg-white", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white" : "before:bg-gradient-to-l before:from-transparent before:to-white") : I(n, r, "bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-eds-neutral-background");
3763
- }, Zr = {
3800
+ }, $r = {
3764
3801
  layout: "auto",
3765
3802
  variant: "default",
3766
3803
  dividers: "row"
3767
- }, Qr = x(({ layout: e = "auto", dividers: t = Zr.dividers, className: n, containerClassName: r, ...i }, a) => {
3768
- let o = I("isolate w-full", L(Yr.layout, e, Zr.layout).classes, L(Yr.dividers, t, Zr.dividers).classes, "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-sm", "[&_th]:bg-eds-neutral-background", "text-sm text-left text-eds-neutral-main", n);
3804
+ }, ei = x(({ layout: e = "auto", dividers: t = $r.dividers, className: n, containerClassName: r, ...i }, a) => {
3805
+ let o = I("isolate w-full", L(Zr.layout, e, $r.layout).classes, L(Zr.dividers, t, $r.dividers).classes, "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-sm", "[&_th]:bg-eds-neutral-background", "text-sm text-left text-eds-neutral-main", n);
3769
3806
  return /* @__PURE__ */ _("div", {
3770
3807
  className: I("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", r),
3771
3808
  children: /* @__PURE__ */ _("table", {
@@ -3775,7 +3812,7 @@ var Jr = x(qr), Yr = {
3775
3812
  className: o
3776
3813
  })
3777
3814
  });
3778
- }), $r = x(({ variant: e = "default", sticky: t, ...n }, r) => {
3815
+ }), ti = x(({ variant: e = "default", sticky: t, ...n }, r) => {
3779
3816
  let i = e === "compact", a = I("group/header", i && "[&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
3780
3817
  return /* @__PURE__ */ _("thead", {
3781
3818
  ref: r,
@@ -3783,45 +3820,45 @@ var Jr = x(qr), Yr = {
3783
3820
  className: a,
3784
3821
  ...i && { "data-compact": "" }
3785
3822
  });
3786
- }), ei = x(({ sticky: e, ...t }, n) => {
3787
- let r = I("group relative", e && Xr(e, "head"), t.className);
3823
+ }), ni = x(({ sticky: e, ...t }, n) => {
3824
+ let r = I("group relative", e && Qr(e, "head"), t.className);
3788
3825
  return /* @__PURE__ */ _("th", {
3789
3826
  ref: n,
3790
3827
  ...t,
3791
3828
  className: r
3792
3829
  });
3793
- }), ti = x(({ variant: e = Zr.variant, ...t }, n) => {
3794
- let r = I(L(Yr.variant, e, Zr.variant).classes, t.className);
3830
+ }), ri = x(({ variant: e = $r.variant, ...t }, n) => {
3831
+ let r = I(L(Zr.variant, e, $r.variant).classes, t.className);
3795
3832
  return /* @__PURE__ */ _("tr", {
3796
3833
  ref: n,
3797
3834
  ...t,
3798
3835
  className: r
3799
3836
  });
3800
- }), ni = x((e, t) => /* @__PURE__ */ _("tbody", {
3837
+ }), ii = x((e, t) => /* @__PURE__ */ _("tbody", {
3801
3838
  ref: t,
3802
3839
  ...e
3803
- })), ri = x(({ sticky: e, ...t }, n) => {
3804
- let r = I(e && Xr(e, "cell"), t.className);
3840
+ })), ai = x(({ sticky: e, ...t }, n) => {
3841
+ let r = I(e && Qr(e, "cell"), t.className);
3805
3842
  return /* @__PURE__ */ _("td", {
3806
3843
  ref: n,
3807
3844
  ...t,
3808
3845
  className: r
3809
3846
  });
3810
- }), ii = x((e, t) => /* @__PURE__ */ _("tfoot", {
3847
+ }), oi = x((e, t) => /* @__PURE__ */ _("tfoot", {
3811
3848
  ref: t,
3812
3849
  ...e
3813
- })), ai = x((e, t) => /* @__PURE__ */ _("button", {
3850
+ })), si = x((e, t) => /* @__PURE__ */ _("button", {
3814
3851
  ref: t,
3815
3852
  ...e,
3816
3853
  type: "button",
3817
3854
  "aria-label": "Redimensionar coluna",
3818
3855
  className: I("opacity-0 h-full group-hover:opacity-100 focus-visible:opacity-100", "w-[10px]", "flex items-center justify-center", "cursor-col-resize touch-none select-none", "absolute top-0 right-0", "m-0 bg-white p-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", e.className),
3819
3856
  children: /* @__PURE__ */ _("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
3820
- })), oi = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(ri, {
3857
+ })), ci = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(ai, {
3821
3858
  ref: o,
3822
3859
  ...a,
3823
3860
  className: I("w-10 leading-none", a.className),
3824
- children: /* @__PURE__ */ _(rn, {
3861
+ children: /* @__PURE__ */ _(on, {
3825
3862
  checked: e,
3826
3863
  indeterminate: t,
3827
3864
  onCheckedChange: n,
@@ -3829,11 +3866,11 @@ var Jr = x(qr), Yr = {
3829
3866
  disabled: i,
3830
3867
  className: "relative before:absolute before:-inset-3 before:content-['']"
3831
3868
  })
3832
- })), si = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(ei, {
3869
+ })), li = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(ni, {
3833
3870
  ref: o,
3834
3871
  ...a,
3835
3872
  className: I("w-10 leading-none", a.className),
3836
- children: /* @__PURE__ */ _(rn, {
3873
+ children: /* @__PURE__ */ _(on, {
3837
3874
  checked: e,
3838
3875
  indeterminate: t,
3839
3876
  onCheckedChange: n,
@@ -3842,38 +3879,38 @@ var Jr = x(qr), Yr = {
3842
3879
  className: "relative before:absolute before:-inset-3 before:content-['']"
3843
3880
  })
3844
3881
  }));
3845
- Qr.displayName = "Table", ni.displayName = "Table.Body", ei.displayName = "Table.Head", ti.displayName = "Table.Row", ri.displayName = "Table.Cell", ii.displayName = "Table.Footer", $r.displayName = "Table.Header", ai.displayName = "Table.ResizeHandle", oi.displayName = "Table.CheckCell", si.displayName = "Table.CheckHead";
3846
- var Y = Object.assign(Qr, {
3847
- Header: $r,
3848
- Head: ei,
3849
- Row: ti,
3850
- Body: ni,
3851
- Cell: ri,
3852
- CheckCell: oi,
3853
- CheckHead: si,
3854
- Footer: ii,
3855
- ResizeHandle: ai
3882
+ ei.displayName = "Table", ii.displayName = "Table.Body", ni.displayName = "Table.Head", ri.displayName = "Table.Row", ai.displayName = "Table.Cell", oi.displayName = "Table.Footer", ti.displayName = "Table.Header", si.displayName = "Table.ResizeHandle", ci.displayName = "Table.CheckCell", li.displayName = "Table.CheckHead";
3883
+ var X = Object.assign(ei, {
3884
+ Header: ti,
3885
+ Head: ni,
3886
+ Row: ri,
3887
+ Body: ii,
3888
+ Cell: ai,
3889
+ CheckCell: ci,
3890
+ CheckHead: li,
3891
+ Footer: oi,
3892
+ ResizeHandle: si
3856
3893
  });
3857
3894
  //#endregion
3858
3895
  //#region ../../node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
3859
- function ci(e, t) {
3896
+ function ui(e, t) {
3860
3897
  return typeof e == "function" ? e(t) : e;
3861
3898
  }
3862
- function X(e, t) {
3899
+ function di(e, t) {
3863
3900
  return (n) => {
3864
3901
  t.setState((t) => ({
3865
3902
  ...t,
3866
- [e]: ci(n, t[e])
3903
+ [e]: ui(n, t[e])
3867
3904
  }));
3868
3905
  };
3869
3906
  }
3870
- function li(e) {
3907
+ function fi(e) {
3871
3908
  return e instanceof Function;
3872
3909
  }
3873
- function ui(e) {
3910
+ function pi(e) {
3874
3911
  return Array.isArray(e) && e.every((e) => typeof e == "number");
3875
3912
  }
3876
- function di(e, t) {
3913
+ function mi(e, t) {
3877
3914
  let n = [], r = (e) => {
3878
3915
  e.forEach((e) => {
3879
3916
  n.push(e);
@@ -3912,7 +3949,7 @@ function Q(e, t, n, r) {
3912
3949
  onChange: r
3913
3950
  };
3914
3951
  }
3915
- function fi(e, t, n, r) {
3952
+ function hi(e, t, n, r) {
3916
3953
  let i = {
3917
3954
  id: `${t.id}_${n.id}`,
3918
3955
  row: t,
@@ -3937,7 +3974,7 @@ function fi(e, t, n, r) {
3937
3974
  r.createCell == null || r.createCell(i, n, t, e);
3938
3975
  }, {}), i;
3939
3976
  }
3940
- function pi(e, t, n, r) {
3977
+ function gi(e, t, n, r) {
3941
3978
  let i = {
3942
3979
  ...e._getDefaultColumnDef(),
3943
3980
  ...t
@@ -3964,7 +4001,7 @@ function pi(e, t, n, r) {
3964
4001
  return c;
3965
4002
  }
3966
4003
  var $ = "debugHeaders";
3967
- function mi(e, t, n) {
4004
+ function _i(e, t, n) {
3968
4005
  let r = {
3969
4006
  id: n.id ?? t.id,
3970
4007
  column: t,
@@ -3992,7 +4029,7 @@ function mi(e, t, n) {
3992
4029
  t.createHeader == null || t.createHeader(r, e);
3993
4030
  }), r;
3994
4031
  }
3995
- var hi = { createTable: (e) => {
4032
+ var vi = { createTable: (e) => {
3996
4033
  e.getHeaderGroups = Z(() => [
3997
4034
  e.getAllColumns(),
3998
4035
  e.getVisibleLeafColumns(),
@@ -4000,7 +4037,7 @@ var hi = { createTable: (e) => {
4000
4037
  e.getState().columnPinning.right
4001
4038
  ], (t, n, r, i) => {
4002
4039
  let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
4003
- return gi(t, [
4040
+ return yi(t, [
4004
4041
  ...a,
4005
4042
  ...s,
4006
4043
  ...o
@@ -4010,15 +4047,15 @@ var hi = { createTable: (e) => {
4010
4047
  e.getVisibleLeafColumns(),
4011
4048
  e.getState().columnPinning.left,
4012
4049
  e.getState().columnPinning.right
4013
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), gi(t, n, e, "center")), Q(e.options, $, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [
4050
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), yi(t, n, e, "center")), Q(e.options, $, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [
4014
4051
  e.getAllColumns(),
4015
4052
  e.getVisibleLeafColumns(),
4016
4053
  e.getState().columnPinning.left
4017
- ], (t, n, r) => gi(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), Q(e.options, $, "getLeftHeaderGroups")), e.getRightHeaderGroups = Z(() => [
4054
+ ], (t, n, r) => yi(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), Q(e.options, $, "getLeftHeaderGroups")), e.getRightHeaderGroups = Z(() => [
4018
4055
  e.getAllColumns(),
4019
4056
  e.getVisibleLeafColumns(),
4020
4057
  e.getState().columnPinning.right
4021
- ], (t, n, r) => gi(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), Q(e.options, $, "getRightHeaderGroups")), e.getFooterGroups = Z(() => [e.getHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getFooterGroups")), e.getLeftFooterGroups = Z(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getLeftFooterGroups")), e.getCenterFooterGroups = Z(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getCenterFooterGroups")), e.getRightFooterGroups = Z(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getRightFooterGroups")), e.getFlatHeaders = Z(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getFlatHeaders")), e.getLeftFlatHeaders = Z(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Z(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getCenterFlatHeaders")), e.getRightFlatHeaders = Z(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getRightFlatHeaders")), e.getCenterLeafHeaders = Z(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
4058
+ ], (t, n, r) => yi(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), Q(e.options, $, "getRightHeaderGroups")), e.getFooterGroups = Z(() => [e.getHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getFooterGroups")), e.getLeftFooterGroups = Z(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getLeftFooterGroups")), e.getCenterFooterGroups = Z(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getCenterFooterGroups")), e.getRightFooterGroups = Z(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getRightFooterGroups")), e.getFlatHeaders = Z(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getFlatHeaders")), e.getLeftFlatHeaders = Z(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Z(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getCenterFlatHeaders")), e.getRightFlatHeaders = Z(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getRightFlatHeaders")), e.getCenterLeafHeaders = Z(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
4022
4059
  var t;
4023
4060
  return !((t = e.subHeaders) != null && t.length);
4024
4061
  }), Q(e.options, $, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Z(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
@@ -4037,7 +4074,7 @@ var hi = { createTable: (e) => {
4037
4074
  ...n[0]?.headers ?? []
4038
4075
  ].map((e) => e.getLeafHeaders()).flat(), Q(e.options, $, "getLeafHeaders"));
4039
4076
  } };
4040
- function gi(e, t, n, r) {
4077
+ function yi(e, t, n, r) {
4041
4078
  let i = 0, a = function(e, t) {
4042
4079
  t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
4043
4080
  var n;
@@ -4055,7 +4092,7 @@ function gi(e, t, n, r) {
4055
4092
  let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
4056
4093
  if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
4057
4094
  else {
4058
- let i = mi(n, c, {
4095
+ let i = _i(n, c, {
4059
4096
  id: [
4060
4097
  r,
4061
4098
  t,
@@ -4072,7 +4109,7 @@ function gi(e, t, n, r) {
4072
4109
  i.headers.push(e), e.headerGroup = i;
4073
4110
  }), o.push(i), t > 0 && s(a, t - 1);
4074
4111
  };
4075
- s(t.map((e, t) => mi(n, e, {
4112
+ s(t.map((e, t) => _i(n, e, {
4076
4113
  depth: i,
4077
4114
  index: t
4078
4115
  })), i - 1), o.reverse();
@@ -4090,7 +4127,7 @@ function gi(e, t, n, r) {
4090
4127
  });
4091
4128
  return c(o[0]?.headers ?? []), o;
4092
4129
  }
4093
- var _i = (e, t, n, r, i, a, o) => {
4130
+ var bi = (e, t, n, r, i, a, o) => {
4094
4131
  let s = {
4095
4132
  id: t,
4096
4133
  index: r,
@@ -4111,7 +4148,7 @@ var _i = (e, t, n, r, i, a, o) => {
4111
4148
  },
4112
4149
  renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
4113
4150
  subRows: a ?? [],
4114
- getLeafRows: () => di(s.subRows, (e) => e.subRows),
4151
+ getLeafRows: () => mi(s.subRows, (e) => e.subRows),
4115
4152
  getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
4116
4153
  getParentRows: () => {
4117
4154
  let e = [], t = s;
@@ -4122,7 +4159,7 @@ var _i = (e, t, n, r, i, a, o) => {
4122
4159
  }
4123
4160
  return e.reverse();
4124
4161
  },
4125
- getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) => fi(e, s, t, t.id)), Q(e.options, "debugRows", "getAllCells")),
4162
+ getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) => hi(e, s, t, t.id)), Q(e.options, "debugRows", "getAllCells")),
4126
4163
  _getAllCellsByColumnId: Z(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), Q(e.options, "debugRows", "getAllCellsByColumnId"))
4127
4164
  };
4128
4165
  for (let t = 0; t < e._features.length; t++) {
@@ -4130,87 +4167,87 @@ var _i = (e, t, n, r, i, a, o) => {
4130
4167
  n == null || n.createRow == null || n.createRow(s, e);
4131
4168
  }
4132
4169
  return s;
4133
- }, vi = { createColumn: (e, t) => {
4170
+ }, xi = { createColumn: (e, t) => {
4134
4171
  e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
4135
4172
  if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
4136
4173
  };
4137
- } }, yi = (e, t, n) => {
4174
+ } }, Si = (e, t, n) => {
4138
4175
  var r, i;
4139
4176
  let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
4140
4177
  return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
4141
4178
  };
4142
- yi.autoRemove = (e) => ki(e);
4143
- var bi = (e, t, n) => {
4179
+ Si.autoRemove = (e) => Mi(e);
4180
+ var Ci = (e, t, n) => {
4144
4181
  var r;
4145
4182
  return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
4146
4183
  };
4147
- bi.autoRemove = (e) => ki(e);
4148
- var xi = (e, t, n) => {
4184
+ Ci.autoRemove = (e) => Mi(e);
4185
+ var wi = (e, t, n) => {
4149
4186
  var r;
4150
4187
  return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
4151
4188
  };
4152
- xi.autoRemove = (e) => ki(e);
4153
- var Si = (e, t, n) => e.getValue(t)?.includes(n);
4154
- Si.autoRemove = (e) => ki(e);
4155
- var Ci = (e, t, n) => !n.some((n) => {
4189
+ wi.autoRemove = (e) => Mi(e);
4190
+ var Ti = (e, t, n) => e.getValue(t)?.includes(n);
4191
+ Ti.autoRemove = (e) => Mi(e);
4192
+ var Ei = (e, t, n) => !n.some((n) => {
4156
4193
  var r;
4157
4194
  return !((r = e.getValue(t)) != null && r.includes(n));
4158
4195
  });
4159
- Ci.autoRemove = (e) => ki(e) || !(e != null && e.length);
4160
- var wi = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
4161
- wi.autoRemove = (e) => ki(e) || !(e != null && e.length);
4162
- var Ti = (e, t, n) => e.getValue(t) === n;
4163
- Ti.autoRemove = (e) => ki(e);
4164
- var Ei = (e, t, n) => e.getValue(t) == n;
4165
- Ei.autoRemove = (e) => ki(e);
4166
- var Di = (e, t, n) => {
4196
+ Ei.autoRemove = (e) => Mi(e) || !(e != null && e.length);
4197
+ var Di = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
4198
+ Di.autoRemove = (e) => Mi(e) || !(e != null && e.length);
4199
+ var Oi = (e, t, n) => e.getValue(t) === n;
4200
+ Oi.autoRemove = (e) => Mi(e);
4201
+ var ki = (e, t, n) => e.getValue(t) == n;
4202
+ ki.autoRemove = (e) => Mi(e);
4203
+ var Ai = (e, t, n) => {
4167
4204
  let [r, i] = n, a = e.getValue(t);
4168
4205
  return a >= r && a <= i;
4169
4206
  };
4170
- Di.resolveFilterValue = (e) => {
4207
+ Ai.resolveFilterValue = (e) => {
4171
4208
  let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
4172
4209
  if (a > o) {
4173
4210
  let e = a;
4174
4211
  a = o, o = e;
4175
4212
  }
4176
4213
  return [a, o];
4177
- }, Di.autoRemove = (e) => ki(e) || ki(e[0]) && ki(e[1]);
4178
- var Oi = {
4179
- includesString: yi,
4180
- includesStringSensitive: bi,
4181
- equalsString: xi,
4182
- arrIncludes: Si,
4183
- arrIncludesAll: Ci,
4184
- arrIncludesSome: wi,
4185
- equals: Ti,
4186
- weakEquals: Ei,
4187
- inNumberRange: Di
4214
+ }, Ai.autoRemove = (e) => Mi(e) || Mi(e[0]) && Mi(e[1]);
4215
+ var ji = {
4216
+ includesString: Si,
4217
+ includesStringSensitive: Ci,
4218
+ equalsString: wi,
4219
+ arrIncludes: Ti,
4220
+ arrIncludesAll: Ei,
4221
+ arrIncludesSome: Di,
4222
+ equals: Oi,
4223
+ weakEquals: ki,
4224
+ inNumberRange: Ai
4188
4225
  };
4189
- function ki(e) {
4226
+ function Mi(e) {
4190
4227
  return e == null || e === "";
4191
4228
  }
4192
- var Ai = {
4229
+ var Ni = {
4193
4230
  getDefaultColumnDef: () => ({ filterFn: "auto" }),
4194
4231
  getInitialState: (e) => ({
4195
4232
  columnFilters: [],
4196
4233
  ...e
4197
4234
  }),
4198
4235
  getDefaultOptions: (e) => ({
4199
- onColumnFiltersChange: X("columnFilters", e),
4236
+ onColumnFiltersChange: di("columnFilters", e),
4200
4237
  filterFromLeafRows: !1,
4201
4238
  maxLeafRowFilterDepth: 100
4202
4239
  }),
4203
4240
  createColumn: (e, t) => {
4204
4241
  e.getAutoFilterFn = () => {
4205
4242
  let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
4206
- return typeof n == "string" ? Oi.includesString : typeof n == "number" ? Oi.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? Oi.equals : Array.isArray(n) ? Oi.arrIncludes : Oi.weakEquals;
4207
- }, e.getFilterFn = () => li(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? Oi[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
4243
+ return typeof n == "string" ? ji.includesString : typeof n == "number" ? ji.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? ji.equals : Array.isArray(n) ? ji.arrIncludes : ji.weakEquals;
4244
+ }, e.getFilterFn = () => fi(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? ji[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
4208
4245
  var n;
4209
4246
  return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
4210
4247
  }, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
4211
4248
  t.setColumnFilters((t) => {
4212
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = ci(n, i ? i.value : void 0);
4213
- if (ji(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
4249
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = ui(n, i ? i.value : void 0);
4250
+ if (Pi(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
4214
4251
  let o = {
4215
4252
  id: e.id,
4216
4253
  value: a
@@ -4225,19 +4262,19 @@ var Ai = {
4225
4262
  createTable: (e) => {
4226
4263
  e.setColumnFilters = (t) => {
4227
4264
  let n = e.getAllLeafColumns();
4228
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => ci(t, e)?.filter((e) => {
4265
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => ui(t, e)?.filter((e) => {
4229
4266
  let t = n.find((t) => t.id === e.id);
4230
- return !(t && ji(t.getFilterFn(), e.value, t));
4267
+ return !(t && Pi(t.getFilterFn(), e.value, t));
4231
4268
  }));
4232
4269
  }, e.resetColumnFilters = (t) => {
4233
4270
  e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
4234
4271
  }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
4235
4272
  }
4236
4273
  };
4237
- function ji(e, t, n) {
4274
+ function Pi(e, t, n) {
4238
4275
  return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
4239
4276
  }
4240
- var Mi = {
4277
+ var Fi = {
4241
4278
  sum: (e, t, n) => n.reduce((t, n) => {
4242
4279
  let r = n.getValue(e);
4243
4280
  return t + (typeof r == "number" ? r : 0);
@@ -4273,7 +4310,7 @@ var Mi = {
4273
4310
  median: (e, t) => {
4274
4311
  if (!t.length) return;
4275
4312
  let n = t.map((t) => t.getValue(e));
4276
- if (!ui(n)) return;
4313
+ if (!pi(n)) return;
4277
4314
  if (n.length === 1) return n[0];
4278
4315
  let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
4279
4316
  return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -4281,7 +4318,7 @@ var Mi = {
4281
4318
  unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
4282
4319
  uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
4283
4320
  count: (e, t) => t.length
4284
- }, Ni = {
4321
+ }, Ii = {
4285
4322
  getDefaultColumnDef: () => ({
4286
4323
  aggregatedCell: (e) => {
4287
4324
  var t;
@@ -4294,7 +4331,7 @@ var Mi = {
4294
4331
  ...e
4295
4332
  }),
4296
4333
  getDefaultOptions: (e) => ({
4297
- onGroupingChange: X("grouping", e),
4334
+ onGroupingChange: di("grouping", e),
4298
4335
  groupedColumnMode: "reorder"
4299
4336
  }),
4300
4337
  createColumn: (e, t) => {
@@ -4307,11 +4344,11 @@ var Mi = {
4307
4344
  };
4308
4345
  }, e.getAutoAggregationFn = () => {
4309
4346
  let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
4310
- if (typeof n == "number") return Mi.sum;
4311
- if (Object.prototype.toString.call(n) === "[object Date]") return Mi.extent;
4347
+ if (typeof n == "number") return Fi.sum;
4348
+ if (Object.prototype.toString.call(n) === "[object Date]") return Fi.extent;
4312
4349
  }, e.getAggregationFn = () => {
4313
4350
  if (!e) throw Error();
4314
- return li(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? Mi[e.columnDef.aggregationFn];
4351
+ return fi(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? Fi[e.columnDef.aggregationFn];
4315
4352
  };
4316
4353
  },
4317
4354
  createTable: (e) => {
@@ -4333,20 +4370,20 @@ var Mi = {
4333
4370
  };
4334
4371
  }
4335
4372
  };
4336
- function Pi(e, t, n) {
4373
+ function Li(e, t, n) {
4337
4374
  if (!(t != null && t.length) || !n) return e;
4338
4375
  let r = e.filter((e) => !t.includes(e.id));
4339
4376
  return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
4340
4377
  }
4341
- var Fi = {
4378
+ var Ri = {
4342
4379
  getInitialState: (e) => ({
4343
4380
  columnOrder: [],
4344
4381
  ...e
4345
4382
  }),
4346
- getDefaultOptions: (e) => ({ onColumnOrderChange: X("columnOrder", e) }),
4383
+ getDefaultOptions: (e) => ({ onColumnOrderChange: di("columnOrder", e) }),
4347
4384
  createColumn: (e, t) => {
4348
- e.getIndex = Z((e) => [Ki(t, e)], (t) => t.findIndex((t) => t.id === e.id), Q(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Ki(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
4349
- let r = Ki(t, n);
4385
+ e.getIndex = Z((e) => [Yi(t, e)], (t) => t.findIndex((t) => t.id === e.id), Q(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Yi(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
4386
+ let r = Yi(t, n);
4350
4387
  return r[r.length - 1]?.id === e.id;
4351
4388
  };
4352
4389
  },
@@ -4368,18 +4405,18 @@ var Fi = {
4368
4405
  }
4369
4406
  i = [...i, ...n];
4370
4407
  }
4371
- return Pi(i, t, n);
4408
+ return Li(i, t, n);
4372
4409
  }, Q(e.options, "debugTable", "_getOrderColumnsFn"));
4373
4410
  }
4374
- }, Ii = () => ({
4411
+ }, zi = () => ({
4375
4412
  left: [],
4376
4413
  right: []
4377
- }), Li = {
4414
+ }), Bi = {
4378
4415
  getInitialState: (e) => ({
4379
- columnPinning: Ii(),
4416
+ columnPinning: zi(),
4380
4417
  ...e
4381
4418
  }),
4382
- getDefaultOptions: (e) => ({ onColumnPinningChange: X("columnPinning", e) }),
4419
+ getDefaultOptions: (e) => ({ onColumnPinningChange: di("columnPinning", e) }),
4383
4420
  createColumn: (e, t) => {
4384
4421
  e.pin = (n) => {
4385
4422
  let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -4419,7 +4456,7 @@ var Fi = {
4419
4456
  })), Q(t.options, "debugRows", "getRightVisibleCells"));
4420
4457
  },
4421
4458
  createTable: (e) => {
4422
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? Ii() : e.initialState?.columnPinning ?? Ii()), e.getIsSomeColumnsPinned = (t) => {
4459
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? zi() : e.initialState?.columnPinning ?? zi()), e.getIsSomeColumnsPinned = (t) => {
4423
4460
  let n = e.getState().columnPinning;
4424
4461
  return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
4425
4462
  }, e.getLeftLeafColumns = Z(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), Q(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = Z(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), Q(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = Z(() => [
@@ -4432,44 +4469,44 @@ var Fi = {
4432
4469
  }, Q(e.options, "debugColumns", "getCenterLeafColumns"));
4433
4470
  }
4434
4471
  };
4435
- function Ri(e) {
4472
+ function Vi(e) {
4436
4473
  return e || (typeof document < "u" ? document : null);
4437
4474
  }
4438
- var zi = {
4475
+ var Hi = {
4439
4476
  size: 150,
4440
4477
  minSize: 20,
4441
4478
  maxSize: 2 ** 53 - 1
4442
- }, Bi = () => ({
4479
+ }, Ui = () => ({
4443
4480
  startOffset: null,
4444
4481
  startSize: null,
4445
4482
  deltaOffset: null,
4446
4483
  deltaPercentage: null,
4447
4484
  isResizingColumn: !1,
4448
4485
  columnSizingStart: []
4449
- }), Vi = {
4450
- getDefaultColumnDef: () => zi,
4486
+ }), Wi = {
4487
+ getDefaultColumnDef: () => Hi,
4451
4488
  getInitialState: (e) => ({
4452
4489
  columnSizing: {},
4453
- columnSizingInfo: Bi(),
4490
+ columnSizingInfo: Ui(),
4454
4491
  ...e
4455
4492
  }),
4456
4493
  getDefaultOptions: (e) => ({
4457
4494
  columnResizeMode: "onEnd",
4458
4495
  columnResizeDirection: "ltr",
4459
- onColumnSizingChange: X("columnSizing", e),
4460
- onColumnSizingInfoChange: X("columnSizingInfo", e)
4496
+ onColumnSizingChange: di("columnSizing", e),
4497
+ onColumnSizingInfoChange: di("columnSizingInfo", e)
4461
4498
  }),
4462
4499
  createColumn: (e, t) => {
4463
4500
  e.getSize = () => {
4464
4501
  let n = t.getState().columnSizing[e.id];
4465
- return Math.min(Math.max(e.columnDef.minSize ?? zi.minSize, n ?? e.columnDef.size ?? zi.size), e.columnDef.maxSize ?? zi.maxSize);
4502
+ return Math.min(Math.max(e.columnDef.minSize ?? Hi.minSize, n ?? e.columnDef.size ?? Hi.size), e.columnDef.maxSize ?? Hi.maxSize);
4466
4503
  }, e.getStart = Z((e) => [
4467
4504
  e,
4468
- Ki(t, e),
4505
+ Yi(t, e),
4469
4506
  t.getState().columnSizing
4470
4507
  ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getStart")), e.getAfter = Z((e) => [
4471
4508
  e,
4472
- Ki(t, e),
4509
+ Yi(t, e),
4473
4510
  t.getState().columnSizing
4474
4511
  ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
4475
4512
  t.setColumnSizing((t) => {
@@ -4493,8 +4530,8 @@ var zi = {
4493
4530
  }, e.getResizeHandler = (n) => {
4494
4531
  let r = t.getColumn(e.column.id), i = r?.getCanResize();
4495
4532
  return (a) => {
4496
- if (!r || !i || (a.persist == null || a.persist(), Wi(a) && a.touches && a.touches.length > 1)) return;
4497
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = Wi(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
4533
+ if (!r || !i || (a.persist == null || a.persist(), qi(a) && a.touches && a.touches.length > 1)) return;
4534
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = qi(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
4498
4535
  typeof n == "number" && (t.setColumnSizingInfo((e) => {
4499
4536
  let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
4500
4537
  return e.columnSizingStart.forEach((e) => {
@@ -4519,7 +4556,7 @@ var zi = {
4519
4556
  deltaPercentage: null,
4520
4557
  columnSizingStart: []
4521
4558
  }));
4522
- }, p = Ri(n), m = {
4559
+ }, p = Vi(n), m = {
4523
4560
  moveHandler: (e) => d(e.clientX),
4524
4561
  upHandler: (e) => {
4525
4562
  p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -4529,8 +4566,8 @@ var zi = {
4529
4566
  upHandler: (e) => {
4530
4567
  p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
4531
4568
  }
4532
- }, g = Ui() ? { passive: !1 } : !1;
4533
- Wi(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
4569
+ }, g = Ki() ? { passive: !1 } : !1;
4570
+ qi(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
4534
4571
  ...e,
4535
4572
  startOffset: c,
4536
4573
  startSize: o,
@@ -4546,12 +4583,12 @@ var zi = {
4546
4583
  e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
4547
4584
  e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
4548
4585
  }, e.resetHeaderSizeInfo = (t) => {
4549
- e.setColumnSizingInfo(t ? Bi() : e.initialState.columnSizingInfo ?? Bi());
4586
+ e.setColumnSizingInfo(t ? Ui() : e.initialState.columnSizingInfo ?? Ui());
4550
4587
  }, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
4551
4588
  }
4552
- }, Hi = null;
4553
- function Ui() {
4554
- if (typeof Hi == "boolean") return Hi;
4589
+ }, Gi = null;
4590
+ function Ki() {
4591
+ if (typeof Gi == "boolean") return Gi;
4555
4592
  let e = !1;
4556
4593
  try {
4557
4594
  let t = { get passive() {
@@ -4561,17 +4598,17 @@ function Ui() {
4561
4598
  } catch {
4562
4599
  e = !1;
4563
4600
  }
4564
- return Hi = e, Hi;
4601
+ return Gi = e, Gi;
4565
4602
  }
4566
- function Wi(e) {
4603
+ function qi(e) {
4567
4604
  return e.type === "touchstart";
4568
4605
  }
4569
- var Gi = {
4606
+ var Ji = {
4570
4607
  getInitialState: (e) => ({
4571
4608
  columnVisibility: {},
4572
4609
  ...e
4573
4610
  }),
4574
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: X("columnVisibility", e) }),
4611
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: di("columnVisibility", e) }),
4575
4612
  createColumn: (e, t) => {
4576
4613
  e.toggleVisibility = (n) => {
4577
4614
  e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -4610,20 +4647,20 @@ var Gi = {
4610
4647
  };
4611
4648
  }
4612
4649
  };
4613
- function Ki(e, t) {
4650
+ function Yi(e, t) {
4614
4651
  return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
4615
4652
  }
4616
- var qi = { createTable: (e) => {
4653
+ var Xi = { createTable: (e) => {
4617
4654
  e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
4618
4655
  if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
4619
4656
  };
4620
- } }, Ji = {
4657
+ } }, Zi = {
4621
4658
  getInitialState: (e) => ({
4622
4659
  globalFilter: void 0,
4623
4660
  ...e
4624
4661
  }),
4625
4662
  getDefaultOptions: (e) => ({
4626
- onGlobalFilterChange: X("globalFilter", e),
4663
+ onGlobalFilterChange: di("globalFilter", e),
4627
4664
  globalFilterFn: "auto",
4628
4665
  getColumnCanGlobalFilter: (t) => {
4629
4666
  var n;
@@ -4635,22 +4672,22 @@ var qi = { createTable: (e) => {
4635
4672
  e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
4636
4673
  },
4637
4674
  createTable: (e) => {
4638
- e.getGlobalAutoFilterFn = () => Oi.includesString, e.getGlobalFilterFn = () => {
4675
+ e.getGlobalAutoFilterFn = () => ji.includesString, e.getGlobalFilterFn = () => {
4639
4676
  let { globalFilterFn: t } = e.options;
4640
- return li(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? Oi[t];
4677
+ return fi(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? ji[t];
4641
4678
  }, e.setGlobalFilter = (t) => {
4642
4679
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
4643
4680
  }, e.resetGlobalFilter = (t) => {
4644
4681
  e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
4645
4682
  };
4646
4683
  }
4647
- }, Yi = {
4684
+ }, Qi = {
4648
4685
  getInitialState: (e) => ({
4649
4686
  expanded: {},
4650
4687
  ...e
4651
4688
  }),
4652
4689
  getDefaultOptions: (e) => ({
4653
- onExpandedChange: X("expanded", e),
4690
+ onExpandedChange: di("expanded", e),
4654
4691
  paginateExpandedRows: !0
4655
4692
  }),
4656
4693
  createTable: (e) => {
@@ -4721,18 +4758,18 @@ var qi = { createTable: (e) => {
4721
4758
  };
4722
4759
  };
4723
4760
  }
4724
- }, Xi = 0, Zi = 10, Qi = () => ({
4725
- pageIndex: Xi,
4726
- pageSize: Zi
4727
- }), $i = {
4761
+ }, $i = 0, ea = 10, ta = () => ({
4762
+ pageIndex: $i,
4763
+ pageSize: ea
4764
+ }), na = {
4728
4765
  getInitialState: (e) => ({
4729
4766
  ...e,
4730
4767
  pagination: {
4731
- ...Qi(),
4768
+ ...ta(),
4732
4769
  ...e?.pagination
4733
4770
  }
4734
4771
  }),
4735
- getDefaultOptions: (e) => ({ onPaginationChange: X("pagination", e) }),
4772
+ getDefaultOptions: (e) => ({ onPaginationChange: di("pagination", e) }),
4736
4773
  createTable: (e) => {
4737
4774
  let t = !1, n = !1;
4738
4775
  e._autoResetPageIndex = () => {
@@ -4748,11 +4785,11 @@ var qi = { createTable: (e) => {
4748
4785
  e.resetPageIndex(), n = !1;
4749
4786
  });
4750
4787
  }
4751
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => ci(t, e)), e.resetPagination = (t) => {
4752
- e.setPagination(t ? Qi() : e.initialState.pagination ?? Qi());
4788
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => ui(t, e)), e.resetPagination = (t) => {
4789
+ e.setPagination(t ? ta() : e.initialState.pagination ?? ta());
4753
4790
  }, e.setPageIndex = (t) => {
4754
4791
  e.setPagination((n) => {
4755
- let r = ci(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
4792
+ let r = ui(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
4756
4793
  return r = Math.max(0, Math.min(r, i)), {
4757
4794
  ...n,
4758
4795
  pageIndex: r
@@ -4760,13 +4797,13 @@ var qi = { createTable: (e) => {
4760
4797
  });
4761
4798
  }, e.resetPageIndex = (t) => {
4762
4799
  var n;
4763
- e.setPageIndex(t ? Xi : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? Xi);
4800
+ e.setPageIndex(t ? $i : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? $i);
4764
4801
  }, e.resetPageSize = (t) => {
4765
4802
  var n;
4766
- e.setPageSize(t ? Zi : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? Zi);
4803
+ e.setPageSize(t ? ea : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? ea);
4767
4804
  }, e.setPageSize = (t) => {
4768
4805
  e.setPagination((e) => {
4769
- let n = Math.max(1, ci(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
4806
+ let n = Math.max(1, ui(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
4770
4807
  return {
4771
4808
  ...e,
4772
4809
  pageIndex: i,
@@ -4774,7 +4811,7 @@ var qi = { createTable: (e) => {
4774
4811
  };
4775
4812
  });
4776
4813
  }, e.setPageCount = (t) => e.setPagination((n) => {
4777
- let r = ci(t, e.options.pageCount ?? -1);
4814
+ let r = ui(t, e.options.pageCount ?? -1);
4778
4815
  return typeof r == "number" && (r = Math.max(-1, r)), {
4779
4816
  ...n,
4780
4817
  pageCount: r
@@ -4787,15 +4824,15 @@ var qi = { createTable: (e) => {
4787
4824
  return n === -1 ? !0 : n === 0 ? !1 : t < n - 1;
4788
4825
  }, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
4789
4826
  }
4790
- }, ea = () => ({
4827
+ }, ra = () => ({
4791
4828
  top: [],
4792
4829
  bottom: []
4793
- }), ta = {
4830
+ }), ia = {
4794
4831
  getInitialState: (e) => ({
4795
- rowPinning: ea(),
4832
+ rowPinning: ra(),
4796
4833
  ...e
4797
4834
  }),
4798
- getDefaultOptions: (e) => ({ onRowPinningChange: X("rowPinning", e) }),
4835
+ getDefaultOptions: (e) => ({ onRowPinningChange: di("rowPinning", e) }),
4799
4836
  createRow: (e, t) => {
4800
4837
  e.pin = (n, r, i) => {
4801
4838
  let a = r ? e.getLeafRows().map((e) => {
@@ -4834,7 +4871,7 @@ var qi = { createTable: (e) => {
4834
4871
  };
4835
4872
  },
4836
4873
  createTable: (e) => {
4837
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? ea() : e.initialState?.rowPinning ?? ea()), e.getIsSomeRowsPinned = (t) => {
4874
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? ra() : e.initialState?.rowPinning ?? ra()), e.getIsSomeRowsPinned = (t) => {
4838
4875
  let n = e.getState().rowPinning;
4839
4876
  return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
4840
4877
  }, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -4852,13 +4889,13 @@ var qi = { createTable: (e) => {
4852
4889
  return e.filter((e) => !r.has(e.id));
4853
4890
  }, Q(e.options, "debugRows", "getCenterRows"));
4854
4891
  }
4855
- }, na = {
4892
+ }, aa = {
4856
4893
  getInitialState: (e) => ({
4857
4894
  rowSelection: {},
4858
4895
  ...e
4859
4896
  }),
4860
4897
  getDefaultOptions: (e) => ({
4861
- onRowSelectionChange: X("rowSelection", e),
4898
+ onRowSelectionChange: di("rowSelection", e),
4862
4899
  enableRowSelection: !0,
4863
4900
  enableMultiRowSelection: !0,
4864
4901
  enableSubRowSelection: !0
@@ -4877,17 +4914,17 @@ var qi = { createTable: (e) => {
4877
4914
  }, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
4878
4915
  let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
4879
4916
  return e.getRowModel().rows.forEach((t) => {
4880
- ra(i, t.id, r, !0, e);
4917
+ oa(i, t.id, r, !0, e);
4881
4918
  }), i;
4882
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? ia(e, n) : {
4919
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? sa(e, n) : {
4883
4920
  rows: [],
4884
4921
  flatRows: [],
4885
4922
  rowsById: {}
4886
- }, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? ia(e, n) : {
4923
+ }, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? sa(e, n) : {
4887
4924
  rows: [],
4888
4925
  flatRows: [],
4889
4926
  rowsById: {}
4890
- }, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? ia(e, n) : {
4927
+ }, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? sa(e, n) : {
4891
4928
  rows: [],
4892
4929
  flatRows: [],
4893
4930
  rowsById: {}
@@ -4915,17 +4952,17 @@ var qi = { createTable: (e) => {
4915
4952
  t.setRowSelection((a) => {
4916
4953
  if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
4917
4954
  let o = { ...a };
4918
- return ra(o, e.id, n, r?.selectChildren ?? !0, t), o;
4955
+ return oa(o, e.id, n, r?.selectChildren ?? !0, t), o;
4919
4956
  });
4920
4957
  }, e.getIsSelected = () => {
4921
4958
  let { rowSelection: n } = t.getState();
4922
- return aa(e, n);
4959
+ return ca(e, n);
4923
4960
  }, e.getIsSomeSelected = () => {
4924
4961
  let { rowSelection: n } = t.getState();
4925
- return oa(e, n) === "some";
4962
+ return la(e, n) === "some";
4926
4963
  }, e.getIsAllSubRowsSelected = () => {
4927
4964
  let { rowSelection: n } = t.getState();
4928
- return oa(e, n) === "all";
4965
+ return la(e, n) === "all";
4929
4966
  }, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
4930
4967
  let t = e.getCanSelect();
4931
4968
  return (n) => {
@@ -4933,16 +4970,16 @@ var qi = { createTable: (e) => {
4933
4970
  };
4934
4971
  };
4935
4972
  }
4936
- }, ra = (e, t, n, r, i) => {
4973
+ }, oa = (e, t, n, r, i) => {
4937
4974
  var a;
4938
4975
  let o = i.getRow(t, !0);
4939
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => ra(e, t.id, n, r, i));
4976
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => oa(e, t.id, n, r, i));
4940
4977
  };
4941
- function ia(e, t) {
4978
+ function sa(e, t) {
4942
4979
  let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
4943
4980
  return e.map((e) => {
4944
4981
  var t;
4945
- let o = aa(e, n);
4982
+ let o = ca(e, n);
4946
4983
  if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
4947
4984
  ...e,
4948
4985
  subRows: a(e.subRows)
@@ -4955,32 +4992,32 @@ function ia(e, t) {
4955
4992
  rowsById: i
4956
4993
  };
4957
4994
  }
4958
- function aa(e, t) {
4995
+ function ca(e, t) {
4959
4996
  return t[e.id] ?? !1;
4960
4997
  }
4961
- function oa(e, t, n) {
4998
+ function la(e, t, n) {
4962
4999
  var r;
4963
5000
  if (!((r = e.subRows) != null && r.length)) return !1;
4964
5001
  let i = !0, a = !1;
4965
5002
  return e.subRows.forEach((e) => {
4966
- if (!(a && !i) && (e.getCanSelect() && (aa(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
4967
- let n = oa(e, t);
5003
+ if (!(a && !i) && (e.getCanSelect() && (ca(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
5004
+ let n = la(e, t);
4968
5005
  n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
4969
5006
  }
4970
5007
  }), i ? "all" : a ? "some" : !1;
4971
5008
  }
4972
- var sa = /([0-9]+)/gm, ca = (e, t, n) => ga(ha(e.getValue(n)).toLowerCase(), ha(t.getValue(n)).toLowerCase()), la = (e, t, n) => ga(ha(e.getValue(n)), ha(t.getValue(n))), ua = (e, t, n) => ma(ha(e.getValue(n)).toLowerCase(), ha(t.getValue(n)).toLowerCase()), da = (e, t, n) => ma(ha(e.getValue(n)), ha(t.getValue(n))), fa = (e, t, n) => {
5009
+ var ua = /([0-9]+)/gm, da = (e, t, n) => ya(va(e.getValue(n)).toLowerCase(), va(t.getValue(n)).toLowerCase()), fa = (e, t, n) => ya(va(e.getValue(n)), va(t.getValue(n))), pa = (e, t, n) => _a(va(e.getValue(n)).toLowerCase(), va(t.getValue(n)).toLowerCase()), ma = (e, t, n) => _a(va(e.getValue(n)), va(t.getValue(n))), ha = (e, t, n) => {
4973
5010
  let r = e.getValue(n), i = t.getValue(n);
4974
5011
  return r > i ? 1 : r < i ? -1 : 0;
4975
- }, pa = (e, t, n) => ma(e.getValue(n), t.getValue(n));
4976
- function ma(e, t) {
5012
+ }, ga = (e, t, n) => _a(e.getValue(n), t.getValue(n));
5013
+ function _a(e, t) {
4977
5014
  return e === t ? 0 : e > t ? 1 : -1;
4978
5015
  }
4979
- function ha(e) {
5016
+ function va(e) {
4980
5017
  return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
4981
5018
  }
4982
- function ga(e, t) {
4983
- let n = e.split(sa).filter(Boolean), r = t.split(sa).filter(Boolean);
5019
+ function ya(e, t) {
5020
+ let n = e.split(ua).filter(Boolean), r = t.split(ua).filter(Boolean);
4984
5021
  for (; n.length && r.length;) {
4985
5022
  let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
4986
5023
  if (isNaN(o[0])) {
@@ -4994,22 +5031,22 @@ function ga(e, t) {
4994
5031
  }
4995
5032
  return n.length - r.length;
4996
5033
  }
4997
- var _a = {
4998
- alphanumeric: ca,
4999
- alphanumericCaseSensitive: la,
5000
- text: ua,
5001
- textCaseSensitive: da,
5002
- datetime: fa,
5003
- basic: pa
5004
- }, va = [
5005
- hi,
5006
- Gi,
5007
- Fi,
5008
- Li,
5034
+ var ba = {
5035
+ alphanumeric: da,
5036
+ alphanumericCaseSensitive: fa,
5037
+ text: pa,
5038
+ textCaseSensitive: ma,
5039
+ datetime: ha,
5040
+ basic: ga
5041
+ }, xa = [
5009
5042
  vi,
5010
- Ai,
5011
- qi,
5012
5043
  Ji,
5044
+ Ri,
5045
+ Bi,
5046
+ xi,
5047
+ Ni,
5048
+ Xi,
5049
+ Zi,
5013
5050
  {
5014
5051
  getInitialState: (e) => ({
5015
5052
  sorting: [],
@@ -5020,7 +5057,7 @@ var _a = {
5020
5057
  sortUndefined: 1
5021
5058
  }),
5022
5059
  getDefaultOptions: (e) => ({
5023
- onSortingChange: X("sorting", e),
5060
+ onSortingChange: di("sorting", e),
5024
5061
  isMultiSortEvent: (e) => e.shiftKey
5025
5062
  }),
5026
5063
  createColumn: (e, t) => {
@@ -5028,13 +5065,13 @@ var _a = {
5028
5065
  let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
5029
5066
  for (let t of n) {
5030
5067
  let n = t?.getValue(e.id);
5031
- if (Object.prototype.toString.call(n) === "[object Date]") return _a.datetime;
5032
- if (typeof n == "string" && (r = !0, n.split(sa).length > 1)) return _a.alphanumeric;
5068
+ if (Object.prototype.toString.call(n) === "[object Date]") return ba.datetime;
5069
+ if (typeof n == "string" && (r = !0, n.split(ua).length > 1)) return ba.alphanumeric;
5033
5070
  }
5034
- return r ? _a.text : _a.basic;
5071
+ return r ? ba.text : ba.basic;
5035
5072
  }, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
5036
5073
  if (!e) throw Error();
5037
- return li(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? _a[e.columnDef.sortingFn];
5074
+ return fi(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? ba[e.columnDef.sortingFn];
5038
5075
  }, e.toggleSorting = (n, r) => {
5039
5076
  let i = e.getNextSortingOrder(), a = n != null;
5040
5077
  t.setSorting((o) => {
@@ -5071,16 +5108,16 @@ var _a = {
5071
5108
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
5072
5109
  }
5073
5110
  },
5074
- Ni,
5075
- Yi,
5076
- $i,
5077
- ta,
5111
+ Ii,
5112
+ Qi,
5078
5113
  na,
5079
- Vi
5114
+ ia,
5115
+ aa,
5116
+ Wi
5080
5117
  ];
5081
- function ya(e) {
5118
+ function Sa(e) {
5082
5119
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
5083
- let t = [...va, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
5120
+ let t = [...xa, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
5084
5121
  ...r,
5085
5122
  ...e
5086
5123
  }, a = { ...e.initialState ?? {} };
@@ -5106,7 +5143,7 @@ function ya(e) {
5106
5143
  n.setState(n.initialState);
5107
5144
  },
5108
5145
  setOptions: (e) => {
5109
- let t = ci(e, n.options);
5146
+ let t = ui(e, n.options);
5110
5147
  n.options = i(t);
5111
5148
  },
5112
5149
  getState: () => n.options.state,
@@ -5137,7 +5174,7 @@ function ya(e) {
5137
5174
  getAllColumns: Z(() => [n._getColumnDefs()], (e) => {
5138
5175
  let t = function(e, r, i) {
5139
5176
  return i === void 0 && (i = 0), e.map((e) => {
5140
- let a = pi(n, e, i, r), o = e;
5177
+ let a = gi(n, e, i, r), o = e;
5141
5178
  return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
5142
5179
  });
5143
5180
  };
@@ -5158,7 +5195,7 @@ function ya(e) {
5158
5195
  }
5159
5196
  return n;
5160
5197
  }
5161
- function ba() {
5198
+ function Ca() {
5162
5199
  return (e) => Z(() => [e.options.data], (t) => {
5163
5200
  let n = {
5164
5201
  rows: [],
@@ -5168,7 +5205,7 @@ function ba() {
5168
5205
  i === void 0 && (i = 0);
5169
5206
  let o = [];
5170
5207
  for (let c = 0; c < t.length; c++) {
5171
- let l = _i(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
5208
+ let l = bi(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
5172
5209
  if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
5173
5210
  var s;
5174
5211
  l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -5181,28 +5218,28 @@ function ba() {
5181
5218
  }
5182
5219
  //#endregion
5183
5220
  //#region ../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-table/build/lib/index.mjs
5184
- function xa(e, t) {
5185
- return e ? Sa(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
5221
+ function wa(e, t) {
5222
+ return e ? Ta(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
5186
5223
  }
5187
- function Sa(e) {
5188
- return Ca(e) || typeof e == "function" || wa(e);
5224
+ function Ta(e) {
5225
+ return Ea(e) || typeof e == "function" || Da(e);
5189
5226
  }
5190
- function Ca(e) {
5227
+ function Ea(e) {
5191
5228
  return typeof e == "function" && (() => {
5192
5229
  let t = Object.getPrototypeOf(e);
5193
5230
  return t.prototype && t.prototype.isReactComponent;
5194
5231
  })();
5195
5232
  }
5196
- function wa(e) {
5233
+ function Da(e) {
5197
5234
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
5198
5235
  }
5199
- function Ta(e) {
5236
+ function Oa(e) {
5200
5237
  let t = {
5201
5238
  state: {},
5202
5239
  onStateChange: () => {},
5203
5240
  renderFallbackValue: null,
5204
5241
  ...e
5205
- }, [n] = y.useState(() => ({ current: ya(t) })), [r, i] = y.useState(() => n.current.initialState);
5242
+ }, [n] = y.useState(() => ({ current: Sa(t) })), [r, i] = y.useState(() => n.current.initialState);
5206
5243
  return n.current.setOptions((t) => ({
5207
5244
  ...t,
5208
5245
  ...e,
@@ -5217,115 +5254,165 @@ function Ta(e) {
5217
5254
  }
5218
5255
  //#endregion
5219
5256
  //#region src/components/DataTable/DataTable.tsx
5220
- function Ea({ direction: e }) {
5221
- return e === "asc" ? /* @__PURE__ */ _(n, {
5257
+ var ka = [
5258
+ 10,
5259
+ 25,
5260
+ 50,
5261
+ 100
5262
+ ];
5263
+ function Aa({ direction: e }) {
5264
+ return e === "asc" ? /* @__PURE__ */ _(r, {
5222
5265
  className: "size-3.5",
5223
5266
  "aria-hidden": !0
5224
- }) : e === "desc" ? /* @__PURE__ */ _(t, {
5267
+ }) : e === "desc" ? /* @__PURE__ */ _(n, {
5225
5268
  className: "size-3.5",
5226
5269
  "aria-hidden": !0
5227
- }) : /* @__PURE__ */ _(l, {
5270
+ }) : /* @__PURE__ */ _(u, {
5228
5271
  className: "size-3.5 text-eds-neutral-elements",
5229
5272
  "aria-hidden": !0
5230
5273
  });
5231
5274
  }
5232
- function Da({ columns: e, rows: t = 5, dividers: n }) {
5233
- return /* @__PURE__ */ v(Y, {
5275
+ function ja({ value: e, onChange: t, options: n = ka, label: r = "Itens por página" }) {
5276
+ let i = n.map((e) => ({
5277
+ value: String(e),
5278
+ label: String(e)
5279
+ })), a = i.find((t) => t.value === String(e)) ?? null;
5280
+ return /* @__PURE__ */ v("div", {
5281
+ className: "flex items-center gap-2",
5282
+ children: [/* @__PURE__ */ _("span", {
5283
+ className: "shrink-0 text-sm text-eds-neutral-elements",
5284
+ children: r
5285
+ }), /* @__PURE__ */ _(Wr, {
5286
+ label: r,
5287
+ size: "sm",
5288
+ items: i,
5289
+ value: a,
5290
+ onValueChange: (e) => {
5291
+ e && t(Number(e.value));
5292
+ },
5293
+ className: "w-[76px] [&_span.pointer-events-none.absolute]:hidden"
5294
+ })]
5295
+ });
5296
+ }
5297
+ function Ma({ columns: e, rows: t = 5, dividers: n, containerClassName: r }) {
5298
+ return /* @__PURE__ */ v(X, {
5234
5299
  dividers: n,
5235
- children: [/* @__PURE__ */ _(Y.Header, { children: /* @__PURE__ */ _(Y.Row, { children: e.map((e, t) => /* @__PURE__ */ _(Y.Head, { children: typeof e.header == "string" ? e.header : null }, e.id ?? t)) }) }), /* @__PURE__ */ _(Y.Body, { children: Array.from({ length: t }).map((t, n) => /* @__PURE__ */ _(Y.Row, { children: e.map((e, t) => /* @__PURE__ */ _(Y.Cell, { children: /* @__PURE__ */ _("div", { className: "h-4 w-full max-w-40 animate-pulse rounded bg-eds-neutral-background" }) }, t)) }, n)) })]
5300
+ containerClassName: r,
5301
+ children: [/* @__PURE__ */ _(X.Header, { children: /* @__PURE__ */ _(X.Row, { children: e.map((e, t) => /* @__PURE__ */ _(X.Head, { children: typeof e.header == "string" ? e.header : null }, e.id ?? t)) }) }), /* @__PURE__ */ _(X.Body, { children: Array.from({ length: t }).map((t, n) => /* @__PURE__ */ _(X.Row, { children: e.map((e, t) => /* @__PURE__ */ _(X.Cell, { children: /* @__PURE__ */ _("div", { className: "h-4 w-full max-w-40 animate-pulse rounded bg-eds-neutral-background" }) }, t)) }, n)) })]
5236
5302
  });
5237
5303
  }
5238
- function Oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, onPageChange: a, search: o, sorting: l, onSortingChange: u, emptyStateTitle: f = "Nenhum resultado encontrado", emptyStateDescription: m, meta: h, "aria-label": g, className: y, dividers: b }) {
5239
- let x = l !== void 0 && !!u, S = Ta({
5304
+ function Na({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, onPageChange: a, pageSize: o, search: s, sorting: u, onSortingChange: d, emptyStateTitle: p = "Nenhum resultado encontrado", emptyStateDescription: h, meta: g, "aria-label": y, className: b, dividers: x, card: S = !0 }) {
5305
+ let C = u !== void 0 && !!d, ee = S ? "!rounded-none !border-0 !bg-transparent" : void 0, w = Oa({
5240
5306
  data: t,
5241
5307
  columns: e,
5242
- getCoreRowModel: ba(),
5243
- meta: h,
5244
- state: x ? { sorting: l } : void 0,
5245
- onSortingChange: u,
5308
+ getCoreRowModel: Ca(),
5309
+ meta: g,
5310
+ state: C ? { sorting: u } : void 0,
5311
+ onSortingChange: d,
5246
5312
  manualSorting: !0,
5247
- enableSorting: x
5248
- }), C = S.getRowModel().rows, ee = i ? Math.max(1, Math.ceil(i.total / Math.max(1, i.limit))) : 1, w = !!i && !!a && ee > 1;
5313
+ enableSorting: C
5314
+ }), T = w.getRowModel().rows, E = i ? Math.max(1, Math.ceil(i.total / Math.max(1, i.limit))) : 1, D = !!i && !!a && E > 1, te = !!o && !!i, ne = D || te;
5249
5315
  return /* @__PURE__ */ v("div", {
5250
5316
  "data-eds-component": "DataTable",
5251
- className: I("flex w-full flex-col gap-4", y),
5317
+ className: I("flex w-full flex-col", S ? "overflow-hidden rounded-eds-xs border border-eds-outline-border bg-white" : "gap-4", b),
5252
5318
  children: [
5253
- o && /* @__PURE__ */ _("div", {
5254
- className: "flex justify-end",
5255
- children: /* @__PURE__ */ _(Lr, {
5319
+ s && /* @__PURE__ */ _("div", {
5320
+ className: I("flex justify-end", S && "border-b border-eds-outline-border px-4 py-3"),
5321
+ children: /* @__PURE__ */ _(zr, {
5256
5322
  label: "Buscar",
5257
5323
  labelVariant: "floating",
5258
5324
  className: "w-full max-w-sm",
5259
- icon: p,
5260
- value: o.value,
5261
- placeholder: o.placeholder ?? "Buscar...",
5262
- onChange: (e) => o.onChange(e),
5263
- "aria-label": o.placeholder ?? "Buscar"
5325
+ icon: m,
5326
+ value: s.value,
5327
+ placeholder: s.placeholder ?? "Buscar...",
5328
+ onChange: (e) => s.onChange(e),
5329
+ "aria-label": s.placeholder ?? "Buscar"
5264
5330
  })
5265
5331
  }),
5266
5332
  n && /* @__PURE__ */ v("div", {
5267
- className: "flex items-center justify-center gap-2 py-2 text-eds-neutral-elements text-sm",
5333
+ className: I("flex items-center justify-center gap-2 py-2 text-eds-neutral-elements text-sm", S && "border-b border-eds-outline-border"),
5268
5334
  role: "status",
5269
5335
  "aria-label": "Carregando",
5270
- children: [/* @__PURE__ */ _(d, {
5336
+ children: [/* @__PURE__ */ _(f, {
5271
5337
  className: "size-4 animate-spin",
5272
5338
  "aria-hidden": !0
5273
5339
  }), "Carregando..."]
5274
5340
  }),
5275
- n ? /* @__PURE__ */ _(Da, {
5341
+ n ? /* @__PURE__ */ _(Ma, {
5276
5342
  columns: e,
5277
- dividers: b
5278
- }) : r ? /* @__PURE__ */ _(Er, {
5279
- title: f,
5280
- description: m ?? "Houve um erro ao buscar os dados. Tente novamente."
5281
- }) : C.length === 0 ? /* @__PURE__ */ _(Er, {
5282
- title: f,
5283
- description: m
5284
- }) : /* @__PURE__ */ v(Y, {
5285
- "aria-label": g,
5286
- dividers: b,
5287
- children: [/* @__PURE__ */ _(Y.Header, { children: S.getHeaderGroups().map((e) => /* @__PURE__ */ _(Y.Row, { children: e.headers.map((e) => {
5343
+ dividers: x,
5344
+ containerClassName: ee
5345
+ }) : r ? /* @__PURE__ */ _("div", {
5346
+ className: S ? "p-6" : void 0,
5347
+ children: /* @__PURE__ */ _(Or, {
5348
+ title: p,
5349
+ description: h ?? "Houve um erro ao buscar os dados. Tente novamente."
5350
+ })
5351
+ }) : T.length === 0 ? /* @__PURE__ */ _("div", {
5352
+ className: S ? "p-6" : void 0,
5353
+ children: /* @__PURE__ */ _(Or, {
5354
+ title: p,
5355
+ description: h
5356
+ })
5357
+ }) : /* @__PURE__ */ v(X, {
5358
+ "aria-label": y,
5359
+ dividers: x,
5360
+ containerClassName: ee,
5361
+ children: [/* @__PURE__ */ _(X.Header, { children: w.getHeaderGroups().map((e) => /* @__PURE__ */ _(X.Row, { children: e.headers.map((e) => {
5288
5362
  let t = e.column.getIsSorted();
5289
- return /* @__PURE__ */ _(Y.Head, {
5363
+ return /* @__PURE__ */ _(X.Head, {
5290
5364
  "aria-sort": e.column.getCanSort() ? t === "asc" ? "ascending" : t === "desc" ? "descending" : "none" : void 0,
5291
5365
  children: e.isPlaceholder ? null : e.column.getCanSort() ? /* @__PURE__ */ v("button", {
5292
5366
  type: "button",
5293
5367
  className: "flex select-none items-center gap-1 font-semibold",
5294
5368
  onClick: e.column.getToggleSortingHandler(),
5295
- children: [xa(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ _(Ea, { direction: t })]
5296
- }) : xa(e.column.columnDef.header, e.getContext())
5369
+ children: [wa(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ _(Aa, { direction: t })]
5370
+ }) : wa(e.column.columnDef.header, e.getContext())
5297
5371
  }, e.id);
5298
- }) }, e.id)) }), /* @__PURE__ */ _(Y.Body, { children: C.map((e) => /* @__PURE__ */ _(Y.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ _(Y.Cell, { children: xa(e.column.columnDef.cell, e.getContext()) }, e.id)) }, e.id)) })]
5372
+ }) }, e.id)) }), /* @__PURE__ */ _(X.Body, { children: T.map((e) => /* @__PURE__ */ _(X.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ _(X.Cell, { children: wa(e.column.columnDef.cell, e.getContext()) }, e.id)) }, e.id)) })]
5299
5373
  }),
5300
- w && /* @__PURE__ */ v("div", {
5301
- className: "flex items-center justify-center gap-2",
5374
+ ne && /* @__PURE__ */ v("div", {
5375
+ className: I("flex items-center justify-between gap-4", S ? "border-t border-eds-outline-border px-4 py-3" : "rounded-eds-xs bg-white px-3 py-2"),
5302
5376
  children: [
5303
- /* @__PURE__ */ _(jt, {
5304
- type: "button",
5305
- variant: "outline",
5306
- size: "sm",
5307
- icon: s,
5308
- label: "Página anterior",
5309
- disabled: i.page <= 1,
5310
- onClick: () => a?.(i.page - 1)
5377
+ /* @__PURE__ */ _("div", {
5378
+ className: "flex flex-1 items-center",
5379
+ children: te && o && i && /* @__PURE__ */ _(ja, {
5380
+ ...o,
5381
+ value: i.limit
5382
+ })
5311
5383
  }),
5312
- /* @__PURE__ */ v("span", {
5313
- className: "text-sm text-eds-neutral-elements",
5384
+ D && i && /* @__PURE__ */ v("div", {
5385
+ className: "flex items-center gap-2",
5314
5386
  children: [
5315
- i.page,
5316
- " / ",
5317
- ee
5387
+ /* @__PURE__ */ _(Nt, {
5388
+ type: "button",
5389
+ variant: "outline",
5390
+ size: "sm",
5391
+ icon: c,
5392
+ label: "Página anterior",
5393
+ disabled: i.page <= 1,
5394
+ onClick: () => a?.(i.page - 1)
5395
+ }),
5396
+ /* @__PURE__ */ v("span", {
5397
+ className: "text-sm text-eds-neutral-elements whitespace-nowrap",
5398
+ children: [
5399
+ i.page,
5400
+ " / ",
5401
+ E
5402
+ ]
5403
+ }),
5404
+ /* @__PURE__ */ _(Nt, {
5405
+ type: "button",
5406
+ variant: "outline",
5407
+ size: "sm",
5408
+ icon: l,
5409
+ label: "Próxima página",
5410
+ disabled: i.page >= E,
5411
+ onClick: () => a?.(i.page + 1)
5412
+ })
5318
5413
  ]
5319
5414
  }),
5320
- /* @__PURE__ */ _(jt, {
5321
- type: "button",
5322
- variant: "outline",
5323
- size: "sm",
5324
- icon: c,
5325
- label: "Próxima página",
5326
- disabled: i.page >= ee,
5327
- onClick: () => a?.(i.page + 1)
5328
- })
5415
+ /* @__PURE__ */ _("div", { className: "flex-1" })
5329
5416
  ]
5330
5417
  })
5331
5418
  ]
@@ -5333,12 +5420,12 @@ function Oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
5333
5420
  }
5334
5421
  //#endregion
5335
5422
  //#region src/components/Tabs/Tabs.tsx
5336
- var ka = {
5423
+ var Pa = {
5337
5424
  variant: "segmented",
5338
5425
  size: "md"
5339
5426
  };
5340
- function Aa({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = ka.variant, size: l = ka.size }) {
5341
- let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } = Ma(d), g = ja(m, h);
5427
+ function Fa({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = Pa.variant, size: l = Pa.size }) {
5428
+ let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } = La(d), g = Ia(m, h);
5342
5429
  if (u.length === 0) return null;
5343
5430
  let y = u[0]?.value, b = t !== void 0, x = {
5344
5431
  value: b ? t : void 0,
@@ -5376,7 +5463,7 @@ function Aa({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
5376
5463
  })]
5377
5464
  });
5378
5465
  }
5379
- function ja(e, t) {
5466
+ function Ia(e, t) {
5380
5467
  let n = T(null), r = T(!1);
5381
5468
  return () => ({
5382
5469
  onPointerDownCapture: (i) => {
@@ -5413,7 +5500,7 @@ function ja(e, t) {
5413
5500
  }
5414
5501
  });
5415
5502
  }
5416
- function Ma(e) {
5503
+ function La(e) {
5417
5504
  let t = T(null), [n, r] = E(!1);
5418
5505
  return C(() => {
5419
5506
  if (!e) return;
@@ -5427,4 +5514,4 @@ function Ma(e) {
5427
5514
  };
5428
5515
  }
5429
5516
  //#endregion
5430
- export { en as Attachment, Zt as AttachmentAction, Xt as AttachmentActions, qt as AttachmentContent, Yt as AttachmentDescription, $t as AttachmentGroup, Kt as AttachmentMedia, Jt as AttachmentTitle, Qt as AttachmentTrigger, oe as Button, se as COLORS, Pt as Calendar, Ht as Card, rn as Checkbox, Dn as Combobox, Oa as DataTable, Mn as DatePicker, tr as DateTimePicker, hr as Dialog, Er as Empty, Cr as FormDialog, jt as IconButton, Lr as Input, Hr as Select, Y as Table, Aa as Tabs, Jr as Text, Br as Textarea };
5517
+ export { nn as Attachment, $t as AttachmentAction, Qt as AttachmentActions, Yt as AttachmentContent, Zt as AttachmentDescription, tn as AttachmentGroup, Jt as AttachmentMedia, Xt as AttachmentTitle, en as AttachmentTrigger, se as Badge, ae as Button, U as COLORS, It as Calendar, Wt as Card, on as Checkbox, kn as Combobox, Na as DataTable, Pn as DatePicker, rr as DateTimePicker, _r as Dialog, Or as Empty, Tr as FormDialog, Nt as IconButton, zr as Input, Wr as Select, X as Table, Fa as Tabs, Xr as Text, Hr as Textarea };