@vincisys/eyeson 0.6.0 → 0.8.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,33 +1,33 @@
1
1
  import { Button as e } from "@base-ui/react/button";
2
- import { CalendarClock as t, CalendarDays as n, Check as r, ChevronDown as i, ChevronLeft as a, ChevronRight as o, Info as s, Loader2 as c, Minus as l, Search as u, X as d } from "lucide-react";
3
- import { clsx as f } from "clsx";
4
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
5
- import * as g from "react";
6
- import { createContext as _, forwardRef as v, useContext as y, useEffect as b, useId as ee, useMemo as x, useRef as S, useState as C } from "react";
7
- import { mergeProps as w } from "@base-ui/react/merge-props";
8
- import { useRender as T } from "@base-ui/react/use-render";
9
- import { Checkbox as E } from "@base-ui/react/checkbox";
10
- import { Field as D } from "@base-ui/react/field";
11
- import { Combobox as O } from "@base-ui/react/combobox";
12
- import { Popover as k } from "@base-ui/react/popover";
13
- import { Dialog as A } from "@base-ui/react/dialog";
14
- import { AlertDialog as j } from "@base-ui/react/alert-dialog";
15
- import { Input as te } from "@base-ui/react/input";
16
- import { Select as M } from "@base-ui/react/select";
17
- import { Tabs as N } from "@base-ui/react/tabs";
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";
4
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
5
+ import * as y from "react";
6
+ import { createContext as b, forwardRef as x, useContext as S, useEffect as C, useId as ee, useMemo as w, useRef as T, useState as E } from "react";
7
+ import { mergeProps as D } from "@base-ui/react/merge-props";
8
+ import { useRender as te } from "@base-ui/react/use-render";
9
+ import { Checkbox as O } from "@base-ui/react/checkbox";
10
+ import { Field as k } from "@base-ui/react/field";
11
+ import { Combobox as A } from "@base-ui/react/combobox";
12
+ import { Popover as j } from "@base-ui/react/popover";
13
+ import { Dialog as M } from "@base-ui/react/dialog";
14
+ import { AlertDialog as N } from "@base-ui/react/alert-dialog";
15
+ import { Input as ne } from "@base-ui/react/input";
16
+ import { Select as P } from "@base-ui/react/select";
17
+ import { Tabs as F } from "@base-ui/react/tabs";
18
18
  //#region src/lib/utils.ts
19
- function P(...e) {
20
- return f(e);
19
+ function I(...e) {
20
+ return h(e);
21
21
  }
22
22
  //#endregion
23
23
  //#region src/utils/resolve-variant.ts
24
- function F(e, t, n) {
24
+ function L(e, t, n) {
25
25
  let r = e[t];
26
26
  return r === void 0 ? e[n] : r;
27
27
  }
28
28
  //#endregion
29
29
  //#region src/components/Button/Button.tsx
30
- var I = /* @__PURE__ */ new Set([
30
+ var re = /* @__PURE__ */ new Set([
31
31
  "blue-background",
32
32
  "green-background",
33
33
  "green-main",
@@ -39,7 +39,7 @@ var I = /* @__PURE__ */ new Set([
39
39
  "red-background",
40
40
  "red-dark",
41
41
  "red-middle"
42
- ]), L = {
42
+ ]), R = {
43
43
  size: {
44
44
  sm: { classes: "h-[calc(1.75rem*1.188*1.1)] gap-1 rounded-[min(var(--radius-eds-xs),12px)] px-[calc(0.625rem*1.188*1.15)] text-[0.8rem] has-data-[icon=inline-end]:pr-[calc(0.375rem*1.188*1.15)] has-data-[icon=inline-start]:pl-[calc(0.375rem*1.188*1.15)] [&_svg:not([class*='size-'])]:size-3.5 [&_.eds-btn-icon-wrap]:size-3.5" },
45
45
  md: { classes: "h-[calc(2rem*1.188*1.1)] gap-1.5 px-[calc(0.625rem*1.188*1.15)] has-data-[icon=inline-end]:pr-[calc(0.5rem*1.188*1.15)] has-data-[icon=inline-start]:pl-[calc(0.5rem*1.188*1.15)] [&_.eds-btn-icon-wrap]:size-4" },
@@ -51,53 +51,53 @@ var I = /* @__PURE__ */ new Set([
51
51
  ghost: { classes: "border-transparent bg-transparent text-[var(--eds-btn-accent)] hover:bg-[color-mix(in_srgb,var(--eds-btn-accent)_10%,transparent)] hover:text-[color-mix(in_srgb,var(--eds-btn-accent)_88%,black)] data-disabled:not-data-loading:text-eds-neutral-disabled data-loading:data-disabled:text-[var(--eds-btn-accent)]" },
52
52
  link: { classes: "h-auto border-transparent bg-transparent px-0 text-[var(--eds-btn-accent)] underline-offset-4 hover:underline data-disabled:not-data-loading:text-eds-neutral-disabled data-loading:data-disabled:text-[var(--eds-btn-accent)]" }
53
53
  }
54
- }, R = {
54
+ }, z = {
55
55
  size: "md",
56
56
  variant: "solid"
57
- }, ne = {
57
+ }, ie = {
58
58
  sm: 14,
59
59
  md: 16,
60
60
  lg: 16
61
61
  };
62
- function z({ variant: e = R.variant, size: t = R.size, fluid: n = !1 }) {
63
- let r = F(L.size, t, R.size), i = F(L.variant, e, R.variant);
64
- return P("eds-btn group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:not-data-loading:opacity-50 data-loading:data-disabled:cursor-wait data-loading:data-disabled:opacity-100", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r.classes, i.classes, n && "w-full");
62
+ function B({ variant: e = z.variant, size: t = z.size, fluid: n = !1 }) {
63
+ let r = L(R.size, t, z.size), i = L(R.variant, e, z.variant);
64
+ 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");
65
65
  }
66
- function B({ text: t = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: s = "md", fluid: l = !1, isLoading: u = !1, disabled: d, style: f, ...g }) {
67
- let _ = ne[s], v = !!(d || u), y = !!(u || r), b = i === "end" ? "inline-end" : "inline-start", ee = {
66
+ function V({ 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 }) {
67
+ let m = ie[s], h = !!(u || l), y = !!(l || r), b = i === "end" ? "inline-end" : "inline-start", x = {
68
68
  "--eds-btn-accent": `var(--color-eds-${o})`,
69
- ...I.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
69
+ ...re.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
70
70
  ...f
71
- }, x = y ? /* @__PURE__ */ m("span", {
71
+ }, S = y ? /* @__PURE__ */ _("span", {
72
72
  className: "eds-btn-icon-wrap flex shrink-0 items-center justify-center",
73
73
  "data-icon": b,
74
74
  "aria-hidden": !0,
75
- children: u ? /* @__PURE__ */ m(c, {
75
+ children: l ? /* @__PURE__ */ _(d, {
76
76
  className: "block size-full animate-eds-spin",
77
- size: _
78
- }) : r && /* @__PURE__ */ m(r, {
77
+ size: m
78
+ }) : r && /* @__PURE__ */ _(r, {
79
79
  className: "block size-full",
80
- size: _
80
+ size: m
81
81
  })
82
82
  }) : null;
83
- return /* @__PURE__ */ m(e, {
84
- className: P(z({
83
+ return /* @__PURE__ */ _(e, {
84
+ className: I(B({
85
85
  variant: a,
86
86
  size: s,
87
- fluid: l
87
+ fluid: c
88
88
  }), n),
89
- style: ee,
90
- disabled: v,
89
+ style: x,
90
+ disabled: h,
91
91
  "data-eds-component": "Button",
92
- "data-loading": u || void 0,
93
- "aria-busy": u || void 0,
94
- ...g,
95
- children: i === "end" ? /* @__PURE__ */ h(p, { children: [t, x] }) : /* @__PURE__ */ h(p, { children: [x, t] })
92
+ "data-loading": l || void 0,
93
+ "aria-busy": l || void 0,
94
+ ...p,
95
+ children: i === "end" ? /* @__PURE__ */ v(g, { children: [t, S] }) : /* @__PURE__ */ v(g, { children: [S, t] })
96
96
  });
97
97
  }
98
98
  //#endregion
99
99
  //#region src/constants/colors.ts
100
- var re = [
100
+ var ae = [
101
101
  "blue-background",
102
102
  "blue-dark",
103
103
  "blue-main",
@@ -118,13 +118,13 @@ var re = [
118
118
  "red-dark",
119
119
  "red-main",
120
120
  "red-middle"
121
- ], ie = 365.2425, V = 6048e5, ae = 864e5, H = 3600 * 24;
122
- H * 7, H * ie / 12 * 3;
123
- var oe = Symbol.for("constructDateFrom");
121
+ ], H = 365.2425, oe = 6048e5, se = 864e5, ce = 3600 * 24;
122
+ ce * 7, ce * H / 12 * 3;
123
+ var le = Symbol.for("constructDateFrom");
124
124
  //#endregion
125
125
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
126
126
  function U(e, t) {
127
- return typeof e == "function" ? e(t) : e && typeof e == "object" && oe in e ? e[oe](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
127
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && le in e ? e[le](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
128
128
  }
129
129
  //#endregion
130
130
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
@@ -133,13 +133,13 @@ function W(e, t) {
133
133
  }
134
134
  //#endregion
135
135
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
136
- function se(e, t, n) {
136
+ function ue(e, t, n) {
137
137
  let r = W(e, n?.in);
138
138
  return isNaN(t) ? U(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
139
139
  }
140
140
  //#endregion
141
141
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
142
- function ce(e, t, n) {
142
+ function de(e, t, n) {
143
143
  let r = W(e, n?.in);
144
144
  if (isNaN(t)) return U(n?.in || e, NaN);
145
145
  if (!t) return r;
@@ -148,112 +148,112 @@ function ce(e, t, n) {
148
148
  }
149
149
  //#endregion
150
150
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
151
- var le = {};
152
- function ue() {
153
- return le;
151
+ var fe = {};
152
+ function G() {
153
+ return fe;
154
154
  }
155
155
  //#endregion
156
156
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
157
- function G(e, t) {
158
- let n = ue(), 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;
157
+ function K(e, t) {
158
+ let n = G(), 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;
159
159
  return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
160
160
  }
161
161
  //#endregion
162
162
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
163
- function de(e, t) {
164
- return G(e, {
163
+ function pe(e, t) {
164
+ return K(e, {
165
165
  ...t,
166
166
  weekStartsOn: 1
167
167
  });
168
168
  }
169
169
  //#endregion
170
170
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
171
- function fe(e, t) {
171
+ function me(e, t) {
172
172
  let n = W(e, t?.in), r = n.getFullYear(), i = U(n, 0);
173
173
  i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
174
- let a = de(i), o = U(n, 0);
174
+ let a = pe(i), o = U(n, 0);
175
175
  o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
176
- let s = de(o);
176
+ let s = pe(o);
177
177
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
178
178
  }
179
179
  //#endregion
180
180
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
181
- function pe(e) {
181
+ function he(e) {
182
182
  let t = W(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
183
183
  return n.setUTCFullYear(t.getFullYear()), e - +n;
184
184
  }
185
185
  //#endregion
186
186
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
187
- function me(e, ...t) {
187
+ function ge(e, ...t) {
188
188
  let n = U.bind(null, e || t.find((e) => typeof e == "object"));
189
189
  return t.map(n);
190
190
  }
191
191
  //#endregion
192
192
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
193
- function K(e, t) {
193
+ function _e(e, t) {
194
194
  let n = W(e, t?.in);
195
195
  return n.setHours(0, 0, 0, 0), n;
196
196
  }
197
197
  //#endregion
198
198
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
199
- function he(e, t, n) {
200
- let [r, i] = me(n?.in, e, t), a = K(r), o = K(i), s = +a - pe(a), c = +o - pe(o);
201
- return Math.round((s - c) / ae);
199
+ function ve(e, t, n) {
200
+ let [r, i] = ge(n?.in, e, t), a = _e(r), o = _e(i), s = +a - he(a), c = +o - he(o);
201
+ return Math.round((s - c) / se);
202
202
  }
203
203
  //#endregion
204
204
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
205
- function ge(e, t) {
206
- let n = fe(e, t), r = U(t?.in || e, 0);
207
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), de(r);
205
+ function ye(e, t) {
206
+ let n = me(e, t), r = U(t?.in || e, 0);
207
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), pe(r);
208
208
  }
209
209
  //#endregion
210
210
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructNow.js
211
- function _e(e) {
211
+ function be(e) {
212
212
  return U(e, Date.now());
213
213
  }
214
214
  //#endregion
215
215
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
216
- function ve(e, t, n) {
217
- let [r, i] = me(n?.in, e, t);
218
- return +K(r) == +K(i);
216
+ function xe(e, t, n) {
217
+ let [r, i] = ge(n?.in, e, t);
218
+ return +_e(r) == +_e(i);
219
219
  }
220
220
  //#endregion
221
221
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
222
- function ye(e) {
222
+ function Se(e) {
223
223
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
224
224
  }
225
225
  //#endregion
226
226
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
227
- function be(e) {
228
- return !(!ye(e) && typeof e != "number" || isNaN(+W(e)));
227
+ function Ce(e) {
228
+ return !(!Se(e) && typeof e != "number" || isNaN(+W(e)));
229
229
  }
230
230
  //#endregion
231
231
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
232
- function xe(e, t) {
232
+ function we(e, t) {
233
233
  let n = W(e, t?.in), r = n.getMonth();
234
234
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
235
235
  }
236
236
  //#endregion
237
237
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
238
- function Se(e, t) {
238
+ function Te(e, t) {
239
239
  let n = W(e, t?.in);
240
240
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
241
241
  }
242
242
  //#endregion
243
243
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
244
- function Ce(e, t) {
244
+ function Ee(e, t) {
245
245
  let n = W(e, t?.in);
246
246
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
247
247
  }
248
248
  //#endregion
249
249
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
250
- function we(e, t) {
251
- let n = ue(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = W(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
250
+ function De(e, t) {
251
+ let n = G(), 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);
252
252
  return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
253
253
  }
254
254
  //#endregion
255
255
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
256
- var Te = {
256
+ var Oe = {
257
257
  lessThanXSeconds: {
258
258
  one: "less than a second",
259
259
  other: "less than {{count}} seconds"
@@ -315,20 +315,20 @@ var Te = {
315
315
  one: "almost 1 year",
316
316
  other: "almost {{count}} years"
317
317
  }
318
- }, Ee = (e, t, n) => {
319
- let r, i = Te[e];
318
+ }, ke = (e, t, n) => {
319
+ let r, i = Oe[e];
320
320
  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;
321
321
  };
322
322
  //#endregion
323
323
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
324
- function De(e) {
324
+ function Ae(e) {
325
325
  return (t = {}) => {
326
326
  let n = t.width ? String(t.width) : e.defaultWidth;
327
327
  return e.formats[n] || e.formats[e.defaultWidth];
328
328
  };
329
329
  }
330
- var Oe = {
331
- date: De({
330
+ var je = {
331
+ date: Ae({
332
332
  formats: {
333
333
  full: "EEEE, MMMM do, y",
334
334
  long: "MMMM do, y",
@@ -337,7 +337,7 @@ var Oe = {
337
337
  },
338
338
  defaultWidth: "full"
339
339
  }),
340
- time: De({
340
+ time: Ae({
341
341
  formats: {
342
342
  full: "h:mm:ss a zzzz",
343
343
  long: "h:mm:ss a z",
@@ -346,7 +346,7 @@ var Oe = {
346
346
  },
347
347
  defaultWidth: "full"
348
348
  }),
349
- dateTime: De({
349
+ dateTime: Ae({
350
350
  formats: {
351
351
  full: "{{date}} 'at' {{time}}",
352
352
  long: "{{date}} 'at' {{time}}",
@@ -355,17 +355,17 @@ var Oe = {
355
355
  },
356
356
  defaultWidth: "full"
357
357
  })
358
- }, ke = {
358
+ }, Me = {
359
359
  lastWeek: "'last' eeee 'at' p",
360
360
  yesterday: "'yesterday at' p",
361
361
  today: "'today at' p",
362
362
  tomorrow: "'tomorrow at' p",
363
363
  nextWeek: "eeee 'at' p",
364
364
  other: "P"
365
- }, Ae = (e, t, n, r) => ke[e];
365
+ }, Ne = (e, t, n, r) => Me[e];
366
366
  //#endregion
367
367
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
368
- function je(e) {
368
+ function Pe(e) {
369
369
  return (t, n) => {
370
370
  let r = n?.context ? String(n.context) : "standalone", i;
371
371
  if (r === "formatting" && e.formattingValues) {
@@ -379,7 +379,7 @@ function je(e) {
379
379
  return i[a];
380
380
  };
381
381
  }
382
- var Me = {
382
+ var Fe = {
383
383
  ordinalNumber: (e, t) => {
384
384
  let n = Number(e), r = n % 100;
385
385
  if (r > 20 || r < 10) switch (r % 10) {
@@ -389,7 +389,7 @@ var Me = {
389
389
  }
390
390
  return n + "th";
391
391
  },
392
- era: je({
392
+ era: Pe({
393
393
  values: {
394
394
  narrow: ["B", "A"],
395
395
  abbreviated: ["BC", "AD"],
@@ -397,7 +397,7 @@ var Me = {
397
397
  },
398
398
  defaultWidth: "wide"
399
399
  }),
400
- quarter: je({
400
+ quarter: Pe({
401
401
  values: {
402
402
  narrow: [
403
403
  "1",
@@ -421,7 +421,7 @@ var Me = {
421
421
  defaultWidth: "wide",
422
422
  argumentCallback: (e) => e - 1
423
423
  }),
424
- month: je({
424
+ month: Pe({
425
425
  values: {
426
426
  narrow: [
427
427
  "J",
@@ -468,7 +468,7 @@ var Me = {
468
468
  },
469
469
  defaultWidth: "wide"
470
470
  }),
471
- day: je({
471
+ day: Pe({
472
472
  values: {
473
473
  narrow: [
474
474
  "S",
@@ -509,7 +509,7 @@ var Me = {
509
509
  },
510
510
  defaultWidth: "wide"
511
511
  }),
512
- dayPeriod: je({
512
+ dayPeriod: Pe({
513
513
  values: {
514
514
  narrow: {
515
515
  am: "a",
@@ -580,11 +580,11 @@ var Me = {
580
580
  };
581
581
  //#endregion
582
582
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
583
- function Ne(e) {
583
+ function Ie(e) {
584
584
  return (t, n = {}) => {
585
585
  let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
586
586
  if (!a) return null;
587
- let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Fe(s, (e) => e.test(o)) : Pe(s, (e) => e.test(o)), l;
587
+ let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Re(s, (e) => e.test(o)) : Le(s, (e) => e.test(o)), l;
588
588
  l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
589
589
  let u = t.slice(o.length);
590
590
  return {
@@ -593,15 +593,15 @@ function Ne(e) {
593
593
  };
594
594
  };
595
595
  }
596
- function Pe(e, t) {
596
+ function Le(e, t) {
597
597
  for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
598
598
  }
599
- function Fe(e, t) {
599
+ function Re(e, t) {
600
600
  for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
601
601
  }
602
602
  //#endregion
603
603
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
604
- function Ie(e) {
604
+ function ze(e) {
605
605
  return (t, n = {}) => {
606
606
  let r = t.match(e.matchPattern);
607
607
  if (!r) return null;
@@ -618,19 +618,19 @@ function Ie(e) {
618
618
  }
619
619
  //#endregion
620
620
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
621
- var Le = {
621
+ var Be = {
622
622
  code: "en-US",
623
- formatDistance: Ee,
624
- formatLong: Oe,
625
- formatRelative: Ae,
626
- localize: Me,
623
+ formatDistance: ke,
624
+ formatLong: je,
625
+ formatRelative: Ne,
626
+ localize: Fe,
627
627
  match: {
628
- ordinalNumber: Ie({
628
+ ordinalNumber: ze({
629
629
  matchPattern: /^(\d+)(th|st|nd|rd)?/i,
630
630
  parsePattern: /\d+/i,
631
631
  valueCallback: (e) => parseInt(e, 10)
632
632
  }),
633
- era: Ne({
633
+ era: Ie({
634
634
  matchPatterns: {
635
635
  narrow: /^(b|a)/i,
636
636
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
@@ -640,7 +640,7 @@ var Le = {
640
640
  parsePatterns: { any: [/^b/i, /^(a|c)/i] },
641
641
  defaultParseWidth: "any"
642
642
  }),
643
- quarter: Ne({
643
+ quarter: Ie({
644
644
  matchPatterns: {
645
645
  narrow: /^[1234]/i,
646
646
  abbreviated: /^q[1234]/i,
@@ -656,7 +656,7 @@ var Le = {
656
656
  defaultParseWidth: "any",
657
657
  valueCallback: (e) => e + 1
658
658
  }),
659
- month: Ne({
659
+ month: Ie({
660
660
  matchPatterns: {
661
661
  narrow: /^[jfmasond]/i,
662
662
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
@@ -695,7 +695,7 @@ var Le = {
695
695
  },
696
696
  defaultParseWidth: "any"
697
697
  }),
698
- day: Ne({
698
+ day: Ie({
699
699
  matchPatterns: {
700
700
  narrow: /^[smtwf]/i,
701
701
  short: /^(su|mo|tu|we|th|fr|sa)/i,
@@ -725,7 +725,7 @@ var Le = {
725
725
  },
726
726
  defaultParseWidth: "any"
727
727
  }),
728
- dayPeriod: Ne({
728
+ dayPeriod: Ie({
729
729
  matchPatterns: {
730
730
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
731
731
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
@@ -751,37 +751,37 @@ var Le = {
751
751
  };
752
752
  //#endregion
753
753
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
754
- function Re(e, t) {
754
+ function Ve(e, t) {
755
755
  let n = W(e, t?.in);
756
- return he(n, Ce(n)) + 1;
756
+ return ve(n, Ee(n)) + 1;
757
757
  }
758
758
  //#endregion
759
759
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
760
- function ze(e, t) {
761
- let n = W(e, t?.in), r = de(n) - +ge(n);
762
- return Math.round(r / V) + 1;
760
+ function He(e, t) {
761
+ let n = W(e, t?.in), r = pe(n) - +ye(n);
762
+ return Math.round(r / oe) + 1;
763
763
  }
764
764
  //#endregion
765
765
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
766
- function Be(e, t) {
767
- let n = W(e, t?.in), r = n.getFullYear(), i = ue(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = U(t?.in || e, 0);
766
+ function Ue(e, t) {
767
+ let n = W(e, t?.in), r = n.getFullYear(), i = G(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = U(t?.in || e, 0);
768
768
  o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
769
- let s = G(o, t), c = U(t?.in || e, 0);
769
+ let s = K(o, t), c = U(t?.in || e, 0);
770
770
  c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
771
- let l = G(c, t);
771
+ let l = K(c, t);
772
772
  return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
773
773
  }
774
774
  //#endregion
775
775
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
776
- function Ve(e, t) {
777
- let n = ue(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Be(e, t), a = U(t?.in || e, 0);
778
- return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), G(a, t);
776
+ function We(e, t) {
777
+ let n = G(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Ue(e, t), a = U(t?.in || e, 0);
778
+ return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), K(a, t);
779
779
  }
780
780
  //#endregion
781
781
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
782
- function He(e, t) {
783
- let n = W(e, t?.in), r = G(n, t) - +Ve(n, t);
784
- return Math.round(r / V) + 1;
782
+ function Ge(e, t) {
783
+ let n = W(e, t?.in), r = K(n, t) - +We(n, t);
784
+ return Math.round(r / oe) + 1;
785
785
  }
786
786
  //#endregion
787
787
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
@@ -790,7 +790,7 @@ function q(e, t) {
790
790
  }
791
791
  //#endregion
792
792
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js
793
- var Ue = {
793
+ var Ke = {
794
794
  y(e, t) {
795
795
  let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
796
796
  return q(t === "yy" ? r % 100 : r, t.length);
@@ -828,7 +828,7 @@ var Ue = {
828
828
  let n = t.length, r = e.getMilliseconds();
829
829
  return q(Math.trunc(r * 10 ** (n - 3)), t.length);
830
830
  }
831
- }, We = {
831
+ }, qe = {
832
832
  am: "am",
833
833
  pm: "pm",
834
834
  midnight: "midnight",
@@ -837,7 +837,7 @@ var Ue = {
837
837
  afternoon: "afternoon",
838
838
  evening: "evening",
839
839
  night: "night"
840
- }, Ge = {
840
+ }, Je = {
841
841
  G: function(e, t, n) {
842
842
  let r = +(e.getFullYear() > 0);
843
843
  switch (t) {
@@ -853,14 +853,14 @@ var Ue = {
853
853
  let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
854
854
  return n.ordinalNumber(r, { unit: "year" });
855
855
  }
856
- return Ue.y(e, t);
856
+ return Ke.y(e, t);
857
857
  },
858
858
  Y: function(e, t, n, r) {
859
- let i = Be(e, r), a = i > 0 ? i : 1 - i;
859
+ let i = Ue(e, r), a = i > 0 ? i : 1 - i;
860
860
  return t === "YY" ? q(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : q(a, t.length);
861
861
  },
862
862
  R: function(e, t) {
863
- return q(fe(e), t.length);
863
+ return q(me(e), t.length);
864
864
  },
865
865
  u: function(e, t) {
866
866
  return q(e.getFullYear(), t.length);
@@ -909,7 +909,7 @@ var Ue = {
909
909
  let r = e.getMonth();
910
910
  switch (t) {
911
911
  case "M":
912
- case "MM": return Ue.M(e, t);
912
+ case "MM": return Ke.M(e, t);
913
913
  case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
914
914
  case "MMM": return n.month(r, {
915
915
  width: "abbreviated",
@@ -946,18 +946,18 @@ var Ue = {
946
946
  }
947
947
  },
948
948
  w: function(e, t, n, r) {
949
- let i = He(e, r);
949
+ let i = Ge(e, r);
950
950
  return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : q(i, t.length);
951
951
  },
952
952
  I: function(e, t, n) {
953
- let r = ze(e);
953
+ let r = He(e);
954
954
  return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : q(r, t.length);
955
955
  },
956
956
  d: function(e, t, n) {
957
- return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Ue.d(e, t);
957
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Ke.d(e, t);
958
958
  },
959
959
  D: function(e, t, n) {
960
- let r = Re(e);
960
+ let r = Ve(e);
961
961
  return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : q(r, t.length);
962
962
  },
963
963
  E: function(e, t, n) {
@@ -1079,7 +1079,7 @@ var Ue = {
1079
1079
  },
1080
1080
  b: function(e, t, n) {
1081
1081
  let r = e.getHours(), i;
1082
- switch (i = r === 12 ? We.noon : r === 0 ? We.midnight : r / 12 >= 1 ? "pm" : "am", t) {
1082
+ switch (i = r === 12 ? qe.noon : r === 0 ? qe.midnight : r / 12 >= 1 ? "pm" : "am", t) {
1083
1083
  case "b":
1084
1084
  case "bb": return n.dayPeriod(i, {
1085
1085
  width: "abbreviated",
@@ -1101,7 +1101,7 @@ var Ue = {
1101
1101
  },
1102
1102
  B: function(e, t, n) {
1103
1103
  let r = e.getHours(), i;
1104
- switch (i = r >= 17 ? We.evening : r >= 12 ? We.afternoon : r >= 4 ? We.morning : We.night, t) {
1104
+ switch (i = r >= 17 ? qe.evening : r >= 12 ? qe.afternoon : r >= 4 ? qe.morning : qe.night, t) {
1105
1105
  case "B":
1106
1106
  case "BB":
1107
1107
  case "BBB": return n.dayPeriod(i, {
@@ -1123,10 +1123,10 @@ var Ue = {
1123
1123
  let t = e.getHours() % 12;
1124
1124
  return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
1125
1125
  }
1126
- return Ue.h(e, t);
1126
+ return Ke.h(e, t);
1127
1127
  },
1128
1128
  H: function(e, t, n) {
1129
- return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Ue.H(e, t);
1129
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Ke.H(e, t);
1130
1130
  },
1131
1131
  K: function(e, t, n) {
1132
1132
  let r = e.getHours() % 12;
@@ -1137,31 +1137,31 @@ var Ue = {
1137
1137
  return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : q(r, t.length);
1138
1138
  },
1139
1139
  m: function(e, t, n) {
1140
- return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Ue.m(e, t);
1140
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Ke.m(e, t);
1141
1141
  },
1142
1142
  s: function(e, t, n) {
1143
- return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Ue.s(e, t);
1143
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Ke.s(e, t);
1144
1144
  },
1145
1145
  S: function(e, t) {
1146
- return Ue.S(e, t);
1146
+ return Ke.S(e, t);
1147
1147
  },
1148
1148
  X: function(e, t, n) {
1149
1149
  let r = e.getTimezoneOffset();
1150
1150
  if (r === 0) return "Z";
1151
1151
  switch (t) {
1152
- case "X": return qe(r);
1152
+ case "X": return Xe(r);
1153
1153
  case "XXXX":
1154
- case "XX": return Je(r);
1155
- default: return Je(r, ":");
1154
+ case "XX": return Ze(r);
1155
+ default: return Ze(r, ":");
1156
1156
  }
1157
1157
  },
1158
1158
  x: function(e, t, n) {
1159
1159
  let r = e.getTimezoneOffset();
1160
1160
  switch (t) {
1161
- case "x": return qe(r);
1161
+ case "x": return Xe(r);
1162
1162
  case "xxxx":
1163
- case "xx": return Je(r);
1164
- default: return Je(r, ":");
1163
+ case "xx": return Ze(r);
1164
+ default: return Ze(r, ":");
1165
1165
  }
1166
1166
  },
1167
1167
  O: function(e, t, n) {
@@ -1169,8 +1169,8 @@ var Ue = {
1169
1169
  switch (t) {
1170
1170
  case "O":
1171
1171
  case "OO":
1172
- case "OOO": return "GMT" + Ke(r, ":");
1173
- default: return "GMT" + Je(r, ":");
1172
+ case "OOO": return "GMT" + Ye(r, ":");
1173
+ default: return "GMT" + Ze(r, ":");
1174
1174
  }
1175
1175
  },
1176
1176
  z: function(e, t, n) {
@@ -1178,8 +1178,8 @@ var Ue = {
1178
1178
  switch (t) {
1179
1179
  case "z":
1180
1180
  case "zz":
1181
- case "zzz": return "GMT" + Ke(r, ":");
1182
- default: return "GMT" + Je(r, ":");
1181
+ case "zzz": return "GMT" + Ye(r, ":");
1182
+ default: return "GMT" + Ze(r, ":");
1183
1183
  }
1184
1184
  },
1185
1185
  t: function(e, t, n) {
@@ -1189,38 +1189,38 @@ var Ue = {
1189
1189
  return q(+e, t.length);
1190
1190
  }
1191
1191
  };
1192
- function Ke(e, t = "") {
1192
+ function Ye(e, t = "") {
1193
1193
  let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
1194
1194
  return a === 0 ? n + String(i) : n + String(i) + t + q(a, 2);
1195
1195
  }
1196
- function qe(e, t) {
1197
- return e % 60 == 0 ? (e > 0 ? "-" : "+") + q(Math.abs(e) / 60, 2) : Je(e, t);
1196
+ function Xe(e, t) {
1197
+ return e % 60 == 0 ? (e > 0 ? "-" : "+") + q(Math.abs(e) / 60, 2) : Ze(e, t);
1198
1198
  }
1199
- function Je(e, t = "") {
1199
+ function Ze(e, t = "") {
1200
1200
  let n = e > 0 ? "-" : "+", r = Math.abs(e), i = q(Math.trunc(r / 60), 2), a = q(r % 60, 2);
1201
1201
  return n + i + t + a;
1202
1202
  }
1203
1203
  //#endregion
1204
1204
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js
1205
- var Ye = (e, t) => {
1205
+ var Qe = (e, t) => {
1206
1206
  switch (e) {
1207
1207
  case "P": return t.date({ width: "short" });
1208
1208
  case "PP": return t.date({ width: "medium" });
1209
1209
  case "PPP": return t.date({ width: "long" });
1210
1210
  default: return t.date({ width: "full" });
1211
1211
  }
1212
- }, Xe = (e, t) => {
1212
+ }, $e = (e, t) => {
1213
1213
  switch (e) {
1214
1214
  case "p": return t.time({ width: "short" });
1215
1215
  case "pp": return t.time({ width: "medium" });
1216
1216
  case "ppp": return t.time({ width: "long" });
1217
1217
  default: return t.time({ width: "full" });
1218
1218
  }
1219
- }, Ze = {
1220
- p: Xe,
1219
+ }, et = {
1220
+ p: $e,
1221
1221
  P: (e, t) => {
1222
1222
  let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
1223
- if (!i) return Ye(e, t);
1223
+ if (!i) return Qe(e, t);
1224
1224
  let a;
1225
1225
  switch (r) {
1226
1226
  case "P":
@@ -1236,42 +1236,42 @@ var Ye = (e, t) => {
1236
1236
  a = t.dateTime({ width: "full" });
1237
1237
  break;
1238
1238
  }
1239
- return a.replace("{{date}}", Ye(r, t)).replace("{{time}}", Xe(i, t));
1239
+ return a.replace("{{date}}", Qe(r, t)).replace("{{time}}", $e(i, t));
1240
1240
  }
1241
- }, Qe = /^D+$/, $e = /^Y+$/, et = [
1241
+ }, tt = /^D+$/, nt = /^Y+$/, rt = [
1242
1242
  "D",
1243
1243
  "DD",
1244
1244
  "YY",
1245
1245
  "YYYY"
1246
1246
  ];
1247
- function tt(e) {
1248
- return Qe.test(e);
1247
+ function it(e) {
1248
+ return tt.test(e);
1249
1249
  }
1250
- function nt(e) {
1251
- return $e.test(e);
1250
+ function at(e) {
1251
+ return nt.test(e);
1252
1252
  }
1253
- function rt(e, t, n) {
1254
- let r = it(e, t, n);
1255
- if (console.warn(r), et.includes(e)) throw RangeError(r);
1253
+ function ot(e, t, n) {
1254
+ let r = st(e, t, n);
1255
+ if (console.warn(r), rt.includes(e)) throw RangeError(r);
1256
1256
  }
1257
- function it(e, t, n) {
1257
+ function st(e, t, n) {
1258
1258
  let r = e[0] === "Y" ? "years" : "days of the month";
1259
1259
  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`;
1260
1260
  }
1261
1261
  //#endregion
1262
1262
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
1263
- var at = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ot = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, st = /^'([^]*?)'?$/, ct = /''/g, lt = /[a-zA-Z]/;
1263
+ var ct = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, lt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ut = /^'([^]*?)'?$/, dt = /''/g, ft = /[a-zA-Z]/;
1264
1264
  function J(e, t, n) {
1265
- let r = ue(), i = n?.locale ?? r.locale ?? Le, 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);
1266
- if (!be(s)) throw RangeError("Invalid time value");
1267
- let c = t.match(ot).map((e) => {
1265
+ let r = G(), i = n?.locale ?? r.locale ?? Be, 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);
1266
+ if (!Ce(s)) throw RangeError("Invalid time value");
1267
+ let c = t.match(lt).map((e) => {
1268
1268
  let t = e[0];
1269
1269
  if (t === "p" || t === "P") {
1270
- let n = Ze[t];
1270
+ let n = et[t];
1271
1271
  return n(e, i.formatLong);
1272
1272
  }
1273
1273
  return e;
1274
- }).join("").match(at).map((e) => {
1274
+ }).join("").match(ct).map((e) => {
1275
1275
  if (e === "''") return {
1276
1276
  isToken: !1,
1277
1277
  value: "'"
@@ -1279,13 +1279,13 @@ function J(e, t, n) {
1279
1279
  let t = e[0];
1280
1280
  if (t === "'") return {
1281
1281
  isToken: !1,
1282
- value: ut(e)
1282
+ value: pt(e)
1283
1283
  };
1284
- if (Ge[t]) return {
1284
+ if (Je[t]) return {
1285
1285
  isToken: !0,
1286
1286
  value: e
1287
1287
  };
1288
- if (t.match(lt)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
1288
+ if (t.match(ft)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
1289
1289
  return {
1290
1290
  isToken: !1,
1291
1291
  value: e
@@ -1300,72 +1300,72 @@ function J(e, t, n) {
1300
1300
  return c.map((r) => {
1301
1301
  if (!r.isToken) return r.value;
1302
1302
  let a = r.value;
1303
- (!n?.useAdditionalWeekYearTokens && nt(a) || !n?.useAdditionalDayOfYearTokens && tt(a)) && rt(a, t, String(e));
1304
- let o = Ge[a[0]];
1303
+ (!n?.useAdditionalWeekYearTokens && at(a) || !n?.useAdditionalDayOfYearTokens && it(a)) && ot(a, t, String(e));
1304
+ let o = Je[a[0]];
1305
1305
  return o(s, a, i.localize, l);
1306
1306
  }).join("");
1307
1307
  }
1308
- function ut(e) {
1309
- let t = e.match(st);
1310
- return t ? t[1].replace(ct, "'") : e;
1308
+ function pt(e) {
1309
+ let t = e.match(ut);
1310
+ return t ? t[1].replace(dt, "'") : e;
1311
1311
  }
1312
1312
  //#endregion
1313
1313
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getHours.js
1314
- function dt(e, t) {
1314
+ function mt(e, t) {
1315
1315
  return W(e, t?.in).getHours();
1316
1316
  }
1317
1317
  //#endregion
1318
1318
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMinutes.js
1319
- function ft(e, t) {
1319
+ function ht(e, t) {
1320
1320
  return W(e, t?.in).getMinutes();
1321
1321
  }
1322
1322
  //#endregion
1323
1323
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
1324
- function pt(e, t) {
1324
+ function gt(e, t) {
1325
1325
  return +W(e) > +W(t);
1326
1326
  }
1327
1327
  //#endregion
1328
1328
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
1329
- function mt(e, t) {
1329
+ function _t(e, t) {
1330
1330
  return +W(e) < +W(t);
1331
1331
  }
1332
1332
  //#endregion
1333
1333
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
1334
- function ht(e, t, n) {
1335
- let [r, i] = me(n?.in, e, t);
1334
+ function vt(e, t, n) {
1335
+ let [r, i] = ge(n?.in, e, t);
1336
1336
  return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
1337
1337
  }
1338
1338
  //#endregion
1339
1339
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isToday.js
1340
- function gt(e, t) {
1341
- return ve(U(t?.in || e, e), _e(t?.in || e));
1340
+ function yt(e, t) {
1341
+ return xe(U(t?.in || e, e), be(t?.in || e));
1342
1342
  }
1343
1343
  //#endregion
1344
1344
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setHours.js
1345
- function _t(e, t, n) {
1345
+ function bt(e, t, n) {
1346
1346
  let r = W(e, n?.in);
1347
1347
  return r.setHours(t), r;
1348
1348
  }
1349
1349
  //#endregion
1350
1350
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setMinutes.js
1351
- function vt(e, t, n) {
1351
+ function xt(e, t, n) {
1352
1352
  let r = W(e, n?.in);
1353
1353
  return r.setMinutes(t), r;
1354
1354
  }
1355
1355
  //#endregion
1356
1356
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setSeconds.js
1357
- function yt(e, t, n) {
1357
+ function St(e, t, n) {
1358
1358
  let r = W(e, n?.in);
1359
1359
  return r.setSeconds(t), r;
1360
1360
  }
1361
1361
  //#endregion
1362
1362
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/subMonths.js
1363
- function bt(e, t, n) {
1364
- return ce(e, -t, n);
1363
+ function Ct(e, t, n) {
1364
+ return de(e, -t, n);
1365
1365
  }
1366
1366
  //#endregion
1367
1367
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js
1368
- var xt = {
1368
+ var wt = {
1369
1369
  lessThanXSeconds: {
1370
1370
  one: "menos de um segundo",
1371
1371
  other: "menos de {{count}} segundos"
@@ -1427,11 +1427,11 @@ var xt = {
1427
1427
  one: "quase 1 ano",
1428
1428
  other: "quase {{count}} anos"
1429
1429
  }
1430
- }, St = (e, t, n) => {
1431
- let r, i = xt[e];
1430
+ }, Tt = (e, t, n) => {
1431
+ let r, i = wt[e];
1432
1432
  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;
1433
- }, Ct = {
1434
- date: De({
1433
+ }, Et = {
1434
+ date: Ae({
1435
1435
  formats: {
1436
1436
  full: "EEEE, d 'de' MMMM 'de' y",
1437
1437
  long: "d 'de' MMMM 'de' y",
@@ -1440,7 +1440,7 @@ var xt = {
1440
1440
  },
1441
1441
  defaultWidth: "full"
1442
1442
  }),
1443
- time: De({
1443
+ time: Ae({
1444
1444
  formats: {
1445
1445
  full: "HH:mm:ss zzzz",
1446
1446
  long: "HH:mm:ss z",
@@ -1449,7 +1449,7 @@ var xt = {
1449
1449
  },
1450
1450
  defaultWidth: "full"
1451
1451
  }),
1452
- dateTime: De({
1452
+ dateTime: Ae({
1453
1453
  formats: {
1454
1454
  full: "{{date}} 'às' {{time}}",
1455
1455
  long: "{{date}} 'às' {{time}}",
@@ -1458,7 +1458,7 @@ var xt = {
1458
1458
  },
1459
1459
  defaultWidth: "full"
1460
1460
  })
1461
- }, wt = {
1461
+ }, Dt = {
1462
1462
  lastWeek: (e) => {
1463
1463
  let t = e.getDay();
1464
1464
  return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
@@ -1468,12 +1468,12 @@ var xt = {
1468
1468
  tomorrow: "'amanhã às' p",
1469
1469
  nextWeek: "eeee 'às' p",
1470
1470
  other: "P"
1471
- }, Tt = {
1471
+ }, Ot = {
1472
1472
  code: "pt-BR",
1473
- formatDistance: St,
1474
- formatLong: Ct,
1473
+ formatDistance: Tt,
1474
+ formatLong: Et,
1475
1475
  formatRelative: (e, t, n, r) => {
1476
- let i = wt[e];
1476
+ let i = Dt[e];
1477
1477
  return typeof i == "function" ? i(t) : i;
1478
1478
  },
1479
1479
  localize: {
@@ -1481,7 +1481,7 @@ var xt = {
1481
1481
  let n = Number(e);
1482
1482
  return t?.unit === "week" ? n + "ª" : n + "º";
1483
1483
  },
1484
- era: je({
1484
+ era: Pe({
1485
1485
  values: {
1486
1486
  narrow: ["AC", "DC"],
1487
1487
  abbreviated: ["AC", "DC"],
@@ -1489,7 +1489,7 @@ var xt = {
1489
1489
  },
1490
1490
  defaultWidth: "wide"
1491
1491
  }),
1492
- quarter: je({
1492
+ quarter: Pe({
1493
1493
  values: {
1494
1494
  narrow: [
1495
1495
  "1",
@@ -1513,7 +1513,7 @@ var xt = {
1513
1513
  defaultWidth: "wide",
1514
1514
  argumentCallback: (e) => e - 1
1515
1515
  }),
1516
- month: je({
1516
+ month: Pe({
1517
1517
  values: {
1518
1518
  narrow: [
1519
1519
  "j",
@@ -1560,7 +1560,7 @@ var xt = {
1560
1560
  },
1561
1561
  defaultWidth: "wide"
1562
1562
  }),
1563
- day: je({
1563
+ day: Pe({
1564
1564
  values: {
1565
1565
  narrow: [
1566
1566
  "D",
@@ -1601,7 +1601,7 @@ var xt = {
1601
1601
  },
1602
1602
  defaultWidth: "wide"
1603
1603
  }),
1604
- dayPeriod: je({
1604
+ dayPeriod: Pe({
1605
1605
  values: {
1606
1606
  narrow: {
1607
1607
  am: "a",
@@ -1671,12 +1671,12 @@ var xt = {
1671
1671
  })
1672
1672
  },
1673
1673
  match: {
1674
- ordinalNumber: Ie({
1674
+ ordinalNumber: ze({
1675
1675
  matchPattern: /^(\d+)[ºªo]?/i,
1676
1676
  parsePattern: /\d+/i,
1677
1677
  valueCallback: (e) => parseInt(e, 10)
1678
1678
  }),
1679
- era: Ne({
1679
+ era: Ie({
1680
1680
  matchPatterns: {
1681
1681
  narrow: /^(ac|dc|a|d)/i,
1682
1682
  abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
@@ -1689,7 +1689,7 @@ var xt = {
1689
1689
  },
1690
1690
  defaultParseWidth: "any"
1691
1691
  }),
1692
- quarter: Ne({
1692
+ quarter: Ie({
1693
1693
  matchPatterns: {
1694
1694
  narrow: /^[1234]/i,
1695
1695
  abbreviated: /^T[1234]/i,
@@ -1705,7 +1705,7 @@ var xt = {
1705
1705
  defaultParseWidth: "any",
1706
1706
  valueCallback: (e) => e + 1
1707
1707
  }),
1708
- month: Ne({
1708
+ month: Ie({
1709
1709
  matchPatterns: {
1710
1710
  narrow: /^[jfmajsond]/i,
1711
1711
  abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
@@ -1744,7 +1744,7 @@ var xt = {
1744
1744
  },
1745
1745
  defaultParseWidth: "any"
1746
1746
  }),
1747
- day: Ne({
1747
+ day: Ie({
1748
1748
  matchPatterns: {
1749
1749
  narrow: /^(dom|[23456]ª?|s[aá]b)/i,
1750
1750
  short: /^(dom|[23456]ª?|s[aá]b)/i,
@@ -1783,7 +1783,7 @@ var xt = {
1783
1783
  },
1784
1784
  defaultParseWidth: "any"
1785
1785
  }),
1786
- dayPeriod: Ne({
1786
+ dayPeriod: Ie({
1787
1787
  matchPatterns: {
1788
1788
  narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
1789
1789
  any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
@@ -1806,7 +1806,7 @@ var xt = {
1806
1806
  weekStartsOn: 0,
1807
1807
  firstWeekContainsDate: 1
1808
1808
  }
1809
- }, Et = {
1809
+ }, kt = {
1810
1810
  sm: {
1811
1811
  classes: "size-[calc(1.75rem*1.188*1.1)] rounded-[min(var(--radius-eds-xs),12px)] [&_svg:not([class*='size-'])]:size-3.5",
1812
1812
  iconPx: 14
@@ -1820,12 +1820,12 @@ var xt = {
1820
1820
  iconPx: 16
1821
1821
  }
1822
1822
  };
1823
- function Dt({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", size: o = "md", disabled: s, style: c, ...l }) {
1824
- let u = F(Et, o, R.size), d = F(L.variant, i, R.variant);
1825
- return /* @__PURE__ */ m(e, {
1823
+ function At({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", size: o = "md", disabled: s, style: c, ...l }) {
1824
+ let u = L(kt, o, z.size), d = L(R.variant, i, z.variant);
1825
+ return /* @__PURE__ */ _(e, {
1826
1826
  style: {
1827
1827
  "--eds-btn-accent": `var(--color-eds-${a})`,
1828
- ...I.has(a) ? { "--eds-btn-solid-fg": "#fff" } : {},
1828
+ ...re.has(a) ? { "--eds-btn-solid-fg": "#fff" } : {},
1829
1829
  ...c
1830
1830
  },
1831
1831
  disabled: s,
@@ -1834,8 +1834,8 @@ function Dt({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
1834
1834
  "aria-label": n,
1835
1835
  title: n,
1836
1836
  "data-eds-component": "IconButton",
1837
- className: P("group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:opacity-50", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", u.classes, d.classes, r),
1838
- children: /* @__PURE__ */ m(t, {
1837
+ 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", u.classes, d.classes, r),
1838
+ children: /* @__PURE__ */ _(t, {
1839
1839
  size: u.iconPx,
1840
1840
  "aria-hidden": !0
1841
1841
  })
@@ -1843,7 +1843,7 @@ function Dt({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
1843
1843
  }
1844
1844
  //#endregion
1845
1845
  //#region src/components/Calendar/Calendar.tsx
1846
- var Ot = [
1846
+ var jt = [
1847
1847
  "Dom",
1848
1848
  "Seg",
1849
1849
  "Ter",
@@ -1852,13 +1852,13 @@ var Ot = [
1852
1852
  "Sex",
1853
1853
  "Sáb"
1854
1854
  ];
1855
- function kt(e, t) {
1856
- let n = G(Se(e), { weekStartsOn: t }), r = we(xe(e), { weekStartsOn: t }), i = [];
1857
- for (let e = n; e <= r; e = se(e, 1)) i.push(e);
1855
+ function Mt(e, t) {
1856
+ let n = K(Te(e), { weekStartsOn: t }), r = De(we(e), { weekStartsOn: t }), i = [];
1857
+ for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
1858
1858
  return i;
1859
1859
  }
1860
- function At({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: i = 3, weekStartsOn: s = 0, onDayClick: c, onEventClick: l, renderEvent: u, showNavigation: d = !0, className: f }) {
1861
- let [p, g] = C(() => t ?? /* @__PURE__ */ new Date()), _ = e !== void 0, v = _ ? e : p, y = x(() => [...Ot.slice(s), ...Ot.slice(0, s)], [s]), b = x(() => kt(v, s), [v, s]), ee = x(() => {
1860
+ function Nt({ 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 }) {
1861
+ let [p, m] = E(() => t ?? /* @__PURE__ */ new Date()), h = e !== void 0, g = h ? e : p, y = w(() => [...jt.slice(a), ...jt.slice(0, a)], [a]), b = w(() => Mt(g, a), [g, a]), x = w(() => {
1862
1862
  let e = /* @__PURE__ */ new Map();
1863
1863
  for (let t of r) {
1864
1864
  let n = J(t.date, "yyyy-MM-dd"), r = e.get(n);
@@ -1867,80 +1867,80 @@ function At({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1867
1867
  return e;
1868
1868
  }, [r]);
1869
1869
  function S(e) {
1870
- _ || g(e), n?.(e);
1870
+ h || m(e), n?.(e);
1871
1871
  }
1872
- return /* @__PURE__ */ h("div", {
1873
- className: P("flex h-full w-full flex-col", f),
1872
+ return /* @__PURE__ */ v("div", {
1873
+ className: I("flex h-full w-full flex-col", f),
1874
1874
  "data-eds-component": "Calendar",
1875
- children: [d && /* @__PURE__ */ h("div", {
1875
+ children: [d && /* @__PURE__ */ v("div", {
1876
1876
  className: "mb-3 flex shrink-0 items-center justify-between",
1877
- children: [/* @__PURE__ */ m("span", {
1877
+ children: [/* @__PURE__ */ _("span", {
1878
1878
  className: "text-base font-medium text-eds-neutral-main capitalize",
1879
- children: J(v, "MMMM yyyy", { locale: Tt })
1880
- }), /* @__PURE__ */ h("div", {
1879
+ children: J(g, "MMMM yyyy", { locale: Ot })
1880
+ }), /* @__PURE__ */ v("div", {
1881
1881
  className: "flex items-center gap-1",
1882
- children: [/* @__PURE__ */ m(Dt, {
1883
- icon: a,
1882
+ children: [/* @__PURE__ */ _(At, {
1883
+ icon: s,
1884
1884
  label: "Mês anterior",
1885
1885
  size: "sm",
1886
- onClick: () => S(bt(v, 1))
1887
- }), /* @__PURE__ */ m(Dt, {
1888
- icon: o,
1886
+ onClick: () => S(Ct(g, 1))
1887
+ }), /* @__PURE__ */ _(At, {
1888
+ icon: c,
1889
1889
  label: "Próximo mês",
1890
1890
  size: "sm",
1891
- onClick: () => S(ce(v, 1))
1891
+ onClick: () => S(de(g, 1))
1892
1892
  })]
1893
1893
  })]
1894
- }), /* @__PURE__ */ h("div", {
1894
+ }), /* @__PURE__ */ v("div", {
1895
1895
  className: "flex min-h-0 flex-1 flex-col",
1896
- children: [/* @__PURE__ */ m("div", {
1896
+ children: [/* @__PURE__ */ _("div", {
1897
1897
  className: "grid shrink-0 grid-cols-7",
1898
- children: y.map((e, t) => /* @__PURE__ */ m("div", {
1899
- className: P("border-t border-r border-b border-eds-neutral-disabled py-1.5 text-center text-base text-eds-neutral-main", t === 0 && "border-l"),
1898
+ children: y.map((e, t) => /* @__PURE__ */ _("div", {
1899
+ className: I("border-t border-r border-b border-eds-neutral-disabled py-1.5 text-center text-base text-eds-neutral-main", t === 0 && "border-l"),
1900
1900
  children: e
1901
1901
  }, e))
1902
- }), /* @__PURE__ */ m("div", {
1902
+ }), /* @__PURE__ */ _("div", {
1903
1903
  className: "grid flex-1 auto-rows-fr grid-cols-7",
1904
1904
  children: b.map((e, t) => {
1905
- let n = ht(e, v), r = gt(e), a = J(e, "yyyy-MM-dd"), o = ee.get(a) ?? [], s = o.slice(0, i), d = o.length - s.length, f = n ? J(e, "d") : J(e, "d MMM", { locale: Tt });
1906
- return /* @__PURE__ */ h("div", {
1905
+ let n = vt(e, g), r = yt(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: Ot });
1906
+ return /* @__PURE__ */ v("div", {
1907
1907
  "data-date": a,
1908
- onClick: () => c?.(e),
1909
- className: P("flex flex-col gap-1 border-r border-b border-eds-neutral-disabled px-1.5 pt-1.5", t % 7 == 0 && "border-l", c && "cursor-pointer", n ? "bg-white" : "bg-eds-neutral-background"),
1908
+ onClick: () => o?.(e),
1909
+ className: I("flex flex-col gap-1 border-r border-b border-eds-neutral-disabled px-1.5 pt-1.5", t % 7 == 0 && "border-l", o && "cursor-pointer", n ? "bg-white" : "bg-eds-neutral-background"),
1910
1910
  children: [(() => {
1911
1911
  let e = {
1912
1912
  "aria-current": r ? "date" : void 0,
1913
1913
  "data-today": r || void 0,
1914
- className: P("shrink-0 self-center rounded-full text-sm", r ? "flex size-7 items-center justify-center bg-eds-blue-main text-white" : "px-1 py-0.5 text-eds-neutral-main")
1914
+ className: I("shrink-0 self-center rounded-full text-sm", r ? "flex size-7 items-center justify-center bg-eds-blue-main text-white" : "px-1 py-0.5 text-eds-neutral-main")
1915
1915
  };
1916
- return c ? /* @__PURE__ */ m("button", {
1916
+ return o ? /* @__PURE__ */ _("button", {
1917
1917
  type: "button",
1918
1918
  ...e,
1919
1919
  children: f
1920
- }) : /* @__PURE__ */ m("span", {
1920
+ }) : /* @__PURE__ */ _("span", {
1921
1921
  ...e,
1922
1922
  children: f
1923
1923
  });
1924
- })(), /* @__PURE__ */ h("div", {
1924
+ })(), /* @__PURE__ */ v("div", {
1925
1925
  className: "flex flex-1 flex-col justify-center gap-1 overflow-hidden",
1926
- children: [s.map((e) => u ? /* @__PURE__ */ m("div", {
1926
+ children: [c.map((e) => u ? /* @__PURE__ */ _("div", {
1927
1927
  onClick: (e) => e.stopPropagation(),
1928
1928
  children: u(e)
1929
- }, e.id) : /* @__PURE__ */ h("button", {
1929
+ }, e.id) : /* @__PURE__ */ v("button", {
1930
1930
  type: "button",
1931
1931
  onClick: (t) => {
1932
1932
  t.stopPropagation(), l?.(e);
1933
1933
  },
1934
1934
  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",
1935
- children: [/* @__PURE__ */ m("span", {
1935
+ children: [/* @__PURE__ */ _("span", {
1936
1936
  className: "size-2 shrink-0 rounded-full bg-(--eds-calendar-dot)",
1937
1937
  style: { "--eds-calendar-dot": `var(--color-eds-${e.color})` },
1938
1938
  "aria-hidden": !0
1939
- }), /* @__PURE__ */ m("span", {
1939
+ }), /* @__PURE__ */ _("span", {
1940
1940
  className: "truncate",
1941
1941
  children: e.label
1942
1942
  })]
1943
- }, e.id)), d > 0 && /* @__PURE__ */ h("span", {
1943
+ }, e.id)), d > 0 && /* @__PURE__ */ v("span", {
1944
1944
  className: "px-2 text-xs text-eds-neutral-elements",
1945
1945
  children: [
1946
1946
  "+",
@@ -1957,174 +1957,174 @@ function At({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1957
1957
  }
1958
1958
  //#endregion
1959
1959
  //#region src/components/Card/Card.tsx
1960
- function jt({ className: e, ...t }) {
1961
- return /* @__PURE__ */ m("div", {
1960
+ function Pt({ className: e, ...t }) {
1961
+ return /* @__PURE__ */ _("div", {
1962
1962
  "data-eds-component": "Card",
1963
- className: P("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
1963
+ 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),
1964
1964
  ...t
1965
1965
  });
1966
1966
  }
1967
- function Mt({ className: e, ...t }) {
1968
- return /* @__PURE__ */ m("div", {
1967
+ function Ft({ className: e, ...t }) {
1968
+ return /* @__PURE__ */ _("div", {
1969
1969
  "data-slot": "card-header",
1970
- className: P("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),
1970
+ 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),
1971
1971
  ...t
1972
1972
  });
1973
1973
  }
1974
- function Nt({ className: e, ...t }) {
1975
- return /* @__PURE__ */ m("h3", {
1974
+ function It({ className: e, ...t }) {
1975
+ return /* @__PURE__ */ _("h3", {
1976
1976
  "data-slot": "card-title",
1977
- className: P("text-lg leading-none font-semibold text-eds-neutral-main", e),
1977
+ className: I("text-lg leading-none font-semibold text-eds-neutral-main", e),
1978
1978
  ...t
1979
1979
  });
1980
1980
  }
1981
- function Pt({ className: e, ...t }) {
1982
- return /* @__PURE__ */ m("p", {
1981
+ function Lt({ className: e, ...t }) {
1982
+ return /* @__PURE__ */ _("p", {
1983
1983
  "data-slot": "card-description",
1984
- className: P("text-sm text-eds-neutral-elements", e),
1984
+ className: I("text-sm text-eds-neutral-elements", e),
1985
1985
  ...t
1986
1986
  });
1987
1987
  }
1988
- function Ft({ className: e, ...t }) {
1989
- return /* @__PURE__ */ m("div", {
1988
+ function Rt({ className: e, ...t }) {
1989
+ return /* @__PURE__ */ _("div", {
1990
1990
  "data-slot": "card-action",
1991
- className: P("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
1991
+ className: I("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
1992
1992
  ...t
1993
1993
  });
1994
1994
  }
1995
- function It({ className: e, ...t }) {
1996
- return /* @__PURE__ */ m("div", {
1995
+ function zt({ className: e, ...t }) {
1996
+ return /* @__PURE__ */ _("div", {
1997
1997
  "data-slot": "card-content",
1998
- className: P("px-6", e),
1998
+ className: I("px-6", e),
1999
1999
  ...t
2000
2000
  });
2001
2001
  }
2002
- function Lt({ className: e, ...t }) {
2003
- return /* @__PURE__ */ m("div", {
2002
+ function Bt({ className: e, ...t }) {
2003
+ return /* @__PURE__ */ _("div", {
2004
2004
  "data-slot": "card-footer",
2005
- className: P("-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),
2005
+ 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),
2006
2006
  ...t
2007
2007
  });
2008
2008
  }
2009
- Mt.displayName = "Card.Header", Nt.displayName = "Card.Title", Pt.displayName = "Card.Description", Ft.displayName = "Card.Action", It.displayName = "Card.Content", Lt.displayName = "Card.Footer";
2010
- var Rt = Object.assign(jt, {
2011
- Header: Mt,
2012
- Title: Nt,
2013
- Description: Pt,
2014
- Action: Ft,
2015
- Content: It,
2016
- Footer: Lt
2017
- }), zt = {
2009
+ Ft.displayName = "Card.Header", It.displayName = "Card.Title", Lt.displayName = "Card.Description", Rt.displayName = "Card.Action", zt.displayName = "Card.Content", Bt.displayName = "Card.Footer";
2010
+ var Vt = Object.assign(Pt, {
2011
+ Header: Ft,
2012
+ Title: It,
2013
+ Description: Lt,
2014
+ Action: Rt,
2015
+ Content: zt,
2016
+ Footer: Bt
2017
+ }), Ht = {
2018
2018
  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" },
2019
2019
  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" },
2020
2020
  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" }
2021
- }, Bt = {
2021
+ }, Ut = {
2022
2022
  horizontal: { classes: "min-w-40 items-center" },
2023
2023
  vertical: { classes: "w-24 flex-col has-data-[slot=attachment-content]:w-[7.5rem]" }
2024
2024
  };
2025
- function Vt({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
2026
- let a = F(zt, n, "default"), o = F(Bt, r, "horizontal");
2027
- return /* @__PURE__ */ m("div", {
2025
+ function Wt({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
2026
+ let a = L(Ht, n, "default"), o = L(Ut, r, "horizontal");
2027
+ return /* @__PURE__ */ _("div", {
2028
2028
  "data-eds-component": "Attachment",
2029
2029
  "data-slot": "attachment",
2030
2030
  "data-state": t,
2031
2031
  "data-size": n,
2032
2032
  "data-orientation": r,
2033
- className: P("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-eds-xs border border-eds-outline-border bg-white text-eds-neutral-main transition-colors", "focus-within:ring-1 focus-within:ring-eds-blue-main/40", "has-[>a,>button]:hover:bg-eds-blue-background/25", "data-[state=idle]:border-dashed data-[state=idle]:border-eds-blue-middle/55", "data-[state=error]:border-eds-red-main/35 data-[state=error]:bg-eds-red-background/20", "data-[state=uploading]:border-eds-blue-middle/45 data-[state=processing]:border-eds-blue-middle/45", a.classes, o.classes, e),
2033
+ className: I("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-eds-xs border border-eds-outline-border bg-white text-eds-neutral-main transition-colors", "focus-within:ring-1 focus-within:ring-eds-blue-main/40", "has-[>a,>button]:hover:bg-eds-blue-background/25", "data-[state=idle]:border-dashed data-[state=idle]:border-eds-blue-middle/55", "data-[state=error]:border-eds-red-main/35 data-[state=error]:bg-eds-red-background/20", "data-[state=uploading]:border-eds-blue-middle/45 data-[state=processing]:border-eds-blue-middle/45", a.classes, o.classes, e),
2034
2034
  ...i
2035
2035
  });
2036
2036
  }
2037
- function Ht({ className: e, variant: t = "icon", ...n }) {
2038
- return /* @__PURE__ */ m("div", {
2037
+ function Gt({ className: e, variant: t = "icon", ...n }) {
2038
+ return /* @__PURE__ */ _("div", {
2039
2039
  "data-slot": "attachment-media",
2040
2040
  "data-variant": t,
2041
- className: P("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-eds-lil bg-eds-blue-background/45 text-eds-blue-main", "group-data-[orientation=vertical]/attachment:w-full", "group-data-[size=sm]/attachment:w-8", "group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md", "group-data-[state=error]/attachment:bg-eds-red-background/55 group-data-[state=error]/attachment:text-eds-red-dark", "group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:!size-6", "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", "group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6", "group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5", t === "image" && "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 [&_img]:aspect-square [&_img]:size-full [&_img]:object-cover", e),
2041
+ className: I("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-eds-lil bg-eds-blue-background/45 text-eds-blue-main", "group-data-[orientation=vertical]/attachment:w-full", "group-data-[size=sm]/attachment:w-8", "group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md", "group-data-[state=error]/attachment:bg-eds-red-background/55 group-data-[state=error]/attachment:text-eds-red-dark", "group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:!size-6", "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", "group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6", "group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5", t === "image" && "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 [&_img]:aspect-square [&_img]:size-full [&_img]:object-cover", e),
2042
2042
  ...n
2043
2043
  });
2044
2044
  }
2045
- function Ut({ className: e, ...t }) {
2046
- return /* @__PURE__ */ m("div", {
2045
+ function Kt({ className: e, ...t }) {
2046
+ return /* @__PURE__ */ _("div", {
2047
2047
  "data-slot": "attachment-content",
2048
- className: P("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
2048
+ className: I("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
2049
2049
  ...t
2050
2050
  });
2051
2051
  }
2052
- function Wt({ className: e, ...t }) {
2053
- return /* @__PURE__ */ m("span", {
2052
+ function qt({ className: e, ...t }) {
2053
+ return /* @__PURE__ */ _("span", {
2054
2054
  "data-slot": "attachment-title",
2055
- className: P("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),
2055
+ 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),
2056
2056
  ...t
2057
2057
  });
2058
2058
  }
2059
- function Gt({ className: e, ...t }) {
2060
- return /* @__PURE__ */ m("span", {
2059
+ function Jt({ className: e, ...t }) {
2060
+ return /* @__PURE__ */ _("span", {
2061
2061
  "data-slot": "attachment-description",
2062
- className: P("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),
2062
+ 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),
2063
2063
  ...t
2064
2064
  });
2065
2065
  }
2066
- function Kt({ className: e, ...t }) {
2067
- return /* @__PURE__ */ m("div", {
2066
+ function Yt({ className: e, ...t }) {
2067
+ return /* @__PURE__ */ _("div", {
2068
2068
  "data-slot": "attachment-actions",
2069
- className: P("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),
2069
+ 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),
2070
2070
  ...t
2071
2071
  });
2072
2072
  }
2073
- function qt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
2074
- return /* @__PURE__ */ m(Dt, {
2073
+ function Xt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
2074
+ return /* @__PURE__ */ _(At, {
2075
2075
  "data-slot": "attachment-action",
2076
2076
  variant: e,
2077
2077
  color: t,
2078
2078
  size: n,
2079
- className: P("relative z-20", r),
2079
+ className: I("relative z-20", r),
2080
2080
  ...i
2081
2081
  });
2082
2082
  }
2083
- function Jt({ className: e, render: t, type: n, ...r }) {
2084
- return T({
2083
+ function Zt({ className: e, render: t, type: n, ...r }) {
2084
+ return te({
2085
2085
  defaultTagName: "button",
2086
- props: w({
2086
+ props: D({
2087
2087
  type: t ? n : n ?? "button",
2088
- className: P("absolute inset-0 z-10 cursor-pointer rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main/45", e)
2088
+ className: I("absolute inset-0 z-10 cursor-pointer rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main/45", e)
2089
2089
  }, r),
2090
2090
  render: t,
2091
2091
  state: { slot: "attachment-trigger" }
2092
2092
  });
2093
2093
  }
2094
- function Yt({ className: e, ...t }) {
2095
- return /* @__PURE__ */ m("div", {
2094
+ function Qt({ className: e, ...t }) {
2095
+ return /* @__PURE__ */ _("div", {
2096
2096
  "data-eds-component": "AttachmentGroup",
2097
2097
  "data-slot": "attachment-group",
2098
- className: P("flex min-w-0 snap-x snap-mandatory scroll-px-1 gap-3 overflow-x-auto overscroll-x-contain py-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", "*:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", e),
2098
+ className: I("flex min-w-0 snap-x snap-mandatory scroll-px-1 gap-3 overflow-x-auto overscroll-x-contain py-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", "*:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", e),
2099
2099
  ...t
2100
2100
  });
2101
2101
  }
2102
- Ht.displayName = "Attachment.Media", Ut.displayName = "Attachment.Content", Wt.displayName = "Attachment.Title", Gt.displayName = "Attachment.Description", Kt.displayName = "Attachment.Actions", qt.displayName = "Attachment.Action", Jt.displayName = "Attachment.Trigger", Yt.displayName = "Attachment.Group";
2103
- var Xt = Object.assign(Vt, {
2104
- Media: Ht,
2105
- Content: Ut,
2106
- Title: Wt,
2107
- Description: Gt,
2108
- Actions: Kt,
2109
- Action: qt,
2110
- Trigger: Jt,
2111
- Group: Yt
2112
- }), Zt = P("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");
2113
- function Qt({ className: e, ...t }) {
2114
- return /* @__PURE__ */ m(E.Root, {
2102
+ Gt.displayName = "Attachment.Media", Kt.displayName = "Attachment.Content", qt.displayName = "Attachment.Title", Jt.displayName = "Attachment.Description", Yt.displayName = "Attachment.Actions", Xt.displayName = "Attachment.Action", Zt.displayName = "Attachment.Trigger", Qt.displayName = "Attachment.Group";
2103
+ var $t = Object.assign(Wt, {
2104
+ Media: Gt,
2105
+ Content: Kt,
2106
+ Title: qt,
2107
+ Description: Jt,
2108
+ Actions: Yt,
2109
+ Action: Xt,
2110
+ Trigger: Zt,
2111
+ Group: Qt
2112
+ }), en = 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");
2113
+ function tn({ className: e, ...t }) {
2114
+ return /* @__PURE__ */ _(O.Root, {
2115
2115
  "data-eds-component": "Checkbox",
2116
- className: P(Zt, e),
2116
+ className: I(en, e),
2117
2117
  ...t,
2118
- children: /* @__PURE__ */ m(E.Indicator, {
2118
+ children: /* @__PURE__ */ _(O.Indicator, {
2119
2119
  keepMounted: !0,
2120
2120
  className: "flex items-center justify-center text-white data-unchecked:invisible",
2121
- render: (e, t) => /* @__PURE__ */ m("span", {
2121
+ render: (e, t) => /* @__PURE__ */ _("span", {
2122
2122
  ...e,
2123
- children: t.indeterminate ? /* @__PURE__ */ m(l, {
2123
+ children: t.indeterminate ? /* @__PURE__ */ _(f, {
2124
2124
  size: 12,
2125
2125
  strokeWidth: 3,
2126
2126
  "aria-hidden": !0
2127
- }) : /* @__PURE__ */ m(r, {
2127
+ }) : /* @__PURE__ */ _(a, {
2128
2128
  size: 12,
2129
2129
  strokeWidth: 3,
2130
2130
  "aria-hidden": !0
@@ -2133,17 +2133,17 @@ function Qt({ className: e, ...t }) {
2133
2133
  })
2134
2134
  });
2135
2135
  }
2136
- function $t({ className: e, label: t, disabled: n, ...r }) {
2137
- return t ? /* @__PURE__ */ m(D.Root, {
2138
- className: P("inline-flex", e),
2139
- children: /* @__PURE__ */ h(D.Label, {
2140
- className: P("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"),
2141
- children: [/* @__PURE__ */ m(Qt, {
2136
+ function nn({ className: e, label: t, disabled: n, ...r }) {
2137
+ return t ? /* @__PURE__ */ _(k.Root, {
2138
+ className: I("inline-flex", e),
2139
+ children: /* @__PURE__ */ v(k.Label, {
2140
+ 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"),
2141
+ children: [/* @__PURE__ */ _(tn, {
2142
2142
  disabled: n,
2143
2143
  ...r
2144
- }), /* @__PURE__ */ m("span", { children: t })]
2144
+ }), /* @__PURE__ */ _("span", { children: t })]
2145
2145
  })
2146
- }) : /* @__PURE__ */ m(Qt, {
2146
+ }) : /* @__PURE__ */ _(tn, {
2147
2147
  className: e,
2148
2148
  disabled: n,
2149
2149
  ...r
@@ -2151,10 +2151,10 @@ function $t({ className: e, label: t, disabled: n, ...r }) {
2151
2151
  }
2152
2152
  //#endregion
2153
2153
  //#region src/lib/field-styles.ts
2154
- function en(e) {
2154
+ function rn(e) {
2155
2155
  return e ?? "floating";
2156
2156
  }
2157
- var tn = {
2157
+ var an = {
2158
2158
  sm: {
2159
2159
  control: "h-9 px-3",
2160
2160
  trigger: "h-9 px-3",
@@ -2179,94 +2179,94 @@ var tn = {
2179
2179
  icon: "size-8",
2180
2180
  paddingX: "px-4"
2181
2181
  }
2182
- }, nn = {
2182
+ }, on = {
2183
2183
  overlay: "z-[1300]",
2184
2184
  popup: "z-[1400]",
2185
2185
  overlayValue: 1300,
2186
2186
  popupValue: 1400
2187
- }, rn = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", an = "flex items-center justify-between gap-3", on = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", sn = "text-eds-neutral-disabled", cn = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", ln = "data-placeholder:text-eds-neutral-disabled", un = "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", dn = "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)]", fn = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", pn = "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", mn = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", hn = `${nn.popup} outline-none`, gn = { zIndex: nn.popupValue };
2188
- function _n(e) {
2187
+ }, sn = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", cn = "flex items-center justify-between gap-3", ln = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", un = "text-eds-neutral-disabled", dn = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", fn = "data-placeholder:text-eds-neutral-disabled", pn = "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", mn = "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)]", hn = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", gn = "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", _n = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", vn = `${on.popup} outline-none`, yn = { zIndex: on.popupValue };
2188
+ function bn(e) {
2189
2189
  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`;
2190
2190
  }
2191
2191
  //#endregion
2192
2192
  //#region src/components/ComboBox/Combobox.tsx
2193
- var vn = {
2193
+ var xn = {
2194
2194
  default: "",
2195
2195
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2196
2196
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2197
- }, yn = "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", bn = O.Root;
2198
- function xn({ label: e = "Label", labelVariant: t, items: n, placeholder: a = "Selecione uma opção", disabled: o = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: f = "", errorMessage: p = "Selecione uma opção válida", emptyMessage: g = "Nenhum resultado.", readOnly: _ = !1, id: v, name: y, value: b, defaultValue: x, onValueChange: S, getItemLabel: C, getItemValue: w, renderItem: T, className: E, inputProps: D }) {
2199
- let k = ee(), A = v ?? k, j = l === "invalid", te = j || !!f, M = tn[u], N = en(t), F = N === "floating", I = (e) => C ? C(e) : e.label ?? "", L = (e) => w ? w(e) : e.value ?? I(e), R = (e) => {
2197
+ }, Sn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md text-eds-neutral-elements hover:not-data-disabled:bg-eds-neutral-elements/8 hover:not-data-disabled:text-eds-neutral-main focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", Cn = A.Root;
2198
+ function wn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", emptyMessage: p = "Nenhum resultado.", readOnly: h = !1, id: g, name: y, value: b, defaultValue: x, onValueChange: S, getItemLabel: C, getItemValue: w, renderItem: T, className: E, inputProps: D }) {
2199
+ let te = ee(), O = g ?? te, k = l === "invalid", j = k || !!d, M = an[u], N = rn(t), ne = N === "floating", P = (e) => C ? C(e) : e.label ?? "", F = (e) => w ? w(e) : e.value ?? P(e), L = (e) => {
2200
2200
  S?.(e);
2201
- }, ne = C ? (e) => C(e) : void 0, z = w ? (e) => w(e) : void 0;
2202
- return /* @__PURE__ */ h("div", {
2203
- className: P(rn, E),
2201
+ }, re = C ? (e) => C(e) : void 0, R = w ? (e) => w(e) : void 0;
2202
+ return /* @__PURE__ */ v("div", {
2203
+ className: I(sn, E),
2204
2204
  "data-fluid": c || void 0,
2205
2205
  "data-eds-component": "Combobox",
2206
2206
  "data-label-variant": N,
2207
2207
  children: [
2208
- /* @__PURE__ */ m("div", {
2209
- className: an,
2210
- children: /* @__PURE__ */ h("label", {
2211
- className: P(on, F && "sr-only", !F && "font-medium"),
2212
- htmlFor: A,
2213
- children: [/* @__PURE__ */ m("span", { children: e }), s && /* @__PURE__ */ m("span", {
2208
+ /* @__PURE__ */ _("div", {
2209
+ className: cn,
2210
+ children: /* @__PURE__ */ v("label", {
2211
+ className: I(ln, ne && "sr-only", !ne && "font-medium"),
2212
+ htmlFor: O,
2213
+ children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
2214
2214
  className: "text-eds-red-main",
2215
2215
  children: "*"
2216
2216
  })]
2217
2217
  })
2218
2218
  }),
2219
- /* @__PURE__ */ h(bn, {
2219
+ /* @__PURE__ */ v(Cn, {
2220
2220
  items: n,
2221
2221
  name: y,
2222
- disabled: o,
2222
+ disabled: i,
2223
2223
  required: s,
2224
- onValueChange: S ? R : void 0,
2224
+ onValueChange: S ? L : void 0,
2225
2225
  ...b === void 0 ? x === void 0 ? {} : { defaultValue: x } : { value: b },
2226
- itemToStringLabel: ne,
2227
- itemToStringValue: z,
2228
- children: [/* @__PURE__ */ h(O.InputGroup, {
2229
- className: P(un, "box-border py-0", M.trigger, vn[l]),
2226
+ itemToStringLabel: re,
2227
+ itemToStringValue: R,
2228
+ children: [/* @__PURE__ */ v(A.InputGroup, {
2229
+ className: I(pn, "box-border py-0", M.trigger, xn[l]),
2230
2230
  "data-state": l,
2231
2231
  "data-size": u,
2232
- "data-disabled": o || void 0,
2233
- "data-floating": F || void 0,
2232
+ "data-disabled": i || void 0,
2233
+ "data-floating": ne || void 0,
2234
2234
  children: [
2235
- F && /* @__PURE__ */ h("span", {
2236
- className: _n(M.left),
2237
- children: [/* @__PURE__ */ m("span", { children: e }), s && /* @__PURE__ */ m("span", {
2235
+ ne && /* @__PURE__ */ v("span", {
2236
+ className: bn(M.left),
2237
+ children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
2238
2238
  className: "text-eds-red-main",
2239
2239
  "aria-hidden": "true",
2240
2240
  children: "*"
2241
2241
  })]
2242
2242
  }),
2243
- /* @__PURE__ */ m(O.Input, {
2243
+ /* @__PURE__ */ _(A.Input, {
2244
2244
  ...D,
2245
- id: A,
2246
- className: P("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", cn, M.text),
2247
- placeholder: a,
2248
- disabled: o,
2249
- readOnly: _,
2245
+ id: O,
2246
+ 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", dn, M.text),
2247
+ placeholder: r,
2248
+ disabled: i,
2249
+ readOnly: h,
2250
2250
  required: s,
2251
- "aria-invalid": j || void 0,
2252
- "aria-describedby": te ? `${A}-desc` : void 0
2251
+ "aria-invalid": k || void 0,
2252
+ "aria-describedby": j ? `${O}-desc` : void 0
2253
2253
  }),
2254
- /* @__PURE__ */ h("div", {
2254
+ /* @__PURE__ */ v("div", {
2255
2255
  className: "inline-flex shrink-0 items-center",
2256
- children: [/* @__PURE__ */ m(O.Clear, {
2257
- className: P(yn, M.icon),
2256
+ children: [/* @__PURE__ */ _(A.Clear, {
2257
+ className: I(Sn, M.icon),
2258
2258
  "aria-label": "Limpar seleção",
2259
- "data-disabled": o || void 0,
2260
- children: /* @__PURE__ */ m(d, {
2259
+ "data-disabled": i || void 0,
2260
+ children: /* @__PURE__ */ _(m, {
2261
2261
  className: "size-4 shrink-0",
2262
2262
  strokeWidth: 2,
2263
2263
  "aria-hidden": !0
2264
2264
  })
2265
- }), /* @__PURE__ */ m(O.Trigger, {
2266
- className: P(yn, M.icon),
2265
+ }), /* @__PURE__ */ _(A.Trigger, {
2266
+ className: I(Sn, M.icon),
2267
2267
  "aria-label": "Abrir lista",
2268
- "data-disabled": o || void 0,
2269
- children: /* @__PURE__ */ m(i, {
2268
+ "data-disabled": i || void 0,
2269
+ children: /* @__PURE__ */ _(o, {
2270
2270
  className: "size-4 shrink-0",
2271
2271
  strokeWidth: 2,
2272
2272
  "aria-hidden": !0
@@ -2274,53 +2274,53 @@ function xn({ label: e = "Label", labelVariant: t, items: n, placeholder: a = "S
2274
2274
  })]
2275
2275
  })
2276
2276
  ]
2277
- }), /* @__PURE__ */ m(O.Portal, { children: /* @__PURE__ */ m(O.Positioner, {
2278
- className: hn,
2279
- style: gn,
2277
+ }), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
2278
+ className: vn,
2279
+ style: yn,
2280
2280
  positionMethod: "fixed",
2281
2281
  sideOffset: 4,
2282
- children: /* @__PURE__ */ h(O.Popup, {
2283
- className: dn,
2284
- children: [/* @__PURE__ */ m(O.Empty, { children: /* @__PURE__ */ m("div", {
2282
+ children: /* @__PURE__ */ v(A.Popup, {
2283
+ className: mn,
2284
+ children: [/* @__PURE__ */ _(A.Empty, { children: /* @__PURE__ */ _("div", {
2285
2285
  className: "px-3 py-2.5 text-sm text-eds-neutral-elements",
2286
- children: g
2287
- }) }), /* @__PURE__ */ m(O.List, {
2288
- className: fn,
2289
- children: (e) => /* @__PURE__ */ h(O.Item, {
2286
+ children: p
2287
+ }) }), /* @__PURE__ */ _(A.List, {
2288
+ className: hn,
2289
+ children: (e) => /* @__PURE__ */ v(A.Item, {
2290
2290
  value: e,
2291
- className: pn,
2292
- children: [/* @__PURE__ */ m(O.ItemIndicator, {
2293
- className: mn,
2294
- children: /* @__PURE__ */ m(r, {
2291
+ className: gn,
2292
+ children: [/* @__PURE__ */ _(A.ItemIndicator, {
2293
+ className: _n,
2294
+ children: /* @__PURE__ */ _(a, {
2295
2295
  size: 14,
2296
2296
  strokeWidth: 2.5,
2297
2297
  "aria-hidden": !0
2298
2298
  })
2299
- }), T ? T(e) : /* @__PURE__ */ m("span", {
2299
+ }), T ? T(e) : /* @__PURE__ */ _("span", {
2300
2300
  className: "block min-w-0 flex-1 text-left",
2301
- children: I(e)
2301
+ children: P(e)
2302
2302
  })]
2303
- }, L(e))
2303
+ }, F(e))
2304
2304
  })]
2305
2305
  })
2306
2306
  }) })]
2307
2307
  }),
2308
- te && /* @__PURE__ */ m("div", {
2309
- id: `${A}-desc`,
2308
+ j && /* @__PURE__ */ _("div", {
2309
+ id: `${O}-desc`,
2310
2310
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2311
- "data-state": j ? "invalid" : void 0,
2312
- children: j ? p : f
2311
+ "data-state": k ? "invalid" : void 0,
2312
+ children: k ? f : d
2313
2313
  })
2314
2314
  ]
2315
2315
  });
2316
2316
  }
2317
2317
  //#endregion
2318
2318
  //#region src/components/DatePicker/DatePicker.tsx
2319
- var Sn = {
2319
+ var Tn = {
2320
2320
  default: "",
2321
2321
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2322
2322
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2323
- }, Cn = [
2323
+ }, En = [
2324
2324
  "D",
2325
2325
  "S",
2326
2326
  "T",
@@ -2329,178 +2329,178 @@ var Sn = {
2329
2329
  "S",
2330
2330
  "S"
2331
2331
  ];
2332
- function wn(e, t) {
2333
- let n = G(Se(e), { weekStartsOn: t }), r = we(xe(e), { weekStartsOn: t }), i = [];
2334
- for (let e = n; e <= r; e = se(e, 1)) i.push(e);
2332
+ function Dn(e, t) {
2333
+ let n = K(Te(e), { weekStartsOn: t }), r = De(we(e), { weekStartsOn: t }), i = [];
2334
+ for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
2335
2335
  return i;
2336
2336
  }
2337
- function Tn(e) {
2337
+ function On(e) {
2338
2338
  return e.mode === "range";
2339
2339
  }
2340
- function En(e) {
2341
- let { label: t = "Label", labelVariant: r, disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: g = 0, dateFormat: _ = "dd/MM/yyyy", className: v } = e, y = Tn(e), b = e.placeholder ?? (y ? "Selecione um período" : "Selecione uma data"), S = ee(), w = p ?? S, T = l === "invalid", E = T || d, D = tn[u], O = u === "lg" ? "size-5" : "size-4", A = en(r), j = A === "floating", te = Tn(e) ? {
2340
+ function kn(e) {
2341
+ 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 = On(e), b = e.placeholder ?? (y ? "Selecione um período" : "Selecione uma data"), x = ee(), S = p ?? x, C = l === "invalid", T = C || d, D = an[u], te = u === "lg" ? "size-5" : "size-4", O = rn(n), k = O === "floating", A = On(e) ? {
2342
2342
  from: e.defaultValue?.from ?? null,
2343
2343
  to: e.defaultValue?.to ?? null
2344
2344
  } : {
2345
2345
  from: e.defaultValue ?? null,
2346
2346
  to: null
2347
- }, M = Tn(e) ? e.value === void 0 ? void 0 : {
2347
+ }, M = On(e) ? e.value === void 0 ? void 0 : {
2348
2348
  from: e.value?.from ?? null,
2349
2349
  to: e.value?.to ?? null
2350
2350
  } : e.value === void 0 ? void 0 : {
2351
2351
  from: e.value ?? null,
2352
2352
  to: null
2353
- }, N = M !== void 0, [F, I] = C(te), L = N ? M : F, R = Tn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, ne = Tn(e) ? e.presets : void 0, [z, B] = C(!1), [re, ie] = C(() => L.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), V = x(() => [...Cn.slice(g), ...Cn.slice(0, g)], [g]), ae = x(() => Array.from({ length: R }, (e, t) => ce(re, t)), [re, R]);
2353
+ }, N = M !== void 0, [ne, P] = E(A), F = N ? M : ne, L = On(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, re = On(e) ? e.presets : void 0, [R, z] = E(!1), [ie, B] = E(() => F.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), V = w(() => [...En.slice(m), ...En.slice(0, m)], [m]), ae = w(() => Array.from({ length: L }, (e, t) => de(ie, t)), [ie, L]);
2354
2354
  function H(t) {
2355
- i || (t && ie(L.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), B(t));
2355
+ r || (t && B(F.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), z(t));
2356
2356
  }
2357
2357
  function oe(t) {
2358
- if (Tn(e)) {
2359
- let n = L, r;
2358
+ if (On(e)) {
2359
+ let n = F, r;
2360
2360
  r = !n.from || n.to ? {
2361
2361
  from: t,
2362
2362
  to: null
2363
- } : mt(t, n.from) ? {
2363
+ } : _t(t, n.from) ? {
2364
2364
  from: t,
2365
2365
  to: n.from
2366
2366
  } : {
2367
2367
  from: n.from,
2368
2368
  to: t
2369
- }, N || I(r), r.from && e.onValueChange?.({
2369
+ }, N || P(r), r.from && e.onValueChange?.({
2370
2370
  from: r.from,
2371
2371
  to: r.to ?? void 0
2372
- }), r.from && r.to && B(!1);
2372
+ }), r.from && r.to && z(!1);
2373
2373
  return;
2374
2374
  }
2375
- N || I({
2375
+ N || P({
2376
2376
  from: t,
2377
2377
  to: null
2378
- }), e.onValueChange?.(t), B(!1);
2378
+ }), e.onValueChange?.(t), z(!1);
2379
2379
  }
2380
- function U(t) {
2380
+ function se(t) {
2381
2381
  let n = {
2382
2382
  from: t.from,
2383
2383
  to: t.to ?? null
2384
2384
  };
2385
- N || I(n), Tn(e) && e.onValueChange?.({
2385
+ N || P(n), On(e) && e.onValueChange?.({
2386
2386
  from: t.from,
2387
2387
  to: t.to ?? void 0
2388
- }), ie(t.from);
2388
+ }), B(t.from);
2389
2389
  }
2390
- function W(e) {
2391
- return !L.from || !L.to || !e.range.to ? !1 : ve(L.from, e.range.from) && ve(L.to, e.range.to);
2390
+ function ce(e) {
2391
+ return !F.from || !F.to || !e.range.to ? !1 : xe(F.from, e.range.from) && xe(F.to, e.range.to);
2392
2392
  }
2393
- let se = L.from ? !y || !L.to ? J(L.from, _) : `${J(L.from, _)} - ${J(L.to, _)}` : b;
2394
- return /* @__PURE__ */ h("div", {
2395
- className: P(rn, v),
2396
- "data-fluid": c || void 0,
2393
+ let le = F.from ? !y || !F.to ? J(F.from, h) : `${J(F.from, h)} - ${J(F.to, h)}` : b;
2394
+ return /* @__PURE__ */ v("div", {
2395
+ className: I(sn, g),
2396
+ "data-fluid": o || void 0,
2397
2397
  "data-eds-component": "DatePicker",
2398
- "data-label-variant": A,
2398
+ "data-label-variant": O,
2399
2399
  children: [
2400
- /* @__PURE__ */ m("div", {
2401
- className: an,
2402
- children: /* @__PURE__ */ h("label", {
2403
- className: P(on, j && "sr-only", !j && "font-medium"),
2404
- htmlFor: w,
2405
- children: [/* @__PURE__ */ m("span", { children: t }), s && /* @__PURE__ */ m("span", {
2400
+ /* @__PURE__ */ _("div", {
2401
+ className: cn,
2402
+ children: /* @__PURE__ */ v("label", {
2403
+ className: I(ln, k && "sr-only", !k && "font-medium"),
2404
+ htmlFor: S,
2405
+ children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
2406
2406
  className: "text-eds-red-main",
2407
2407
  children: "*"
2408
2408
  })]
2409
2409
  })
2410
2410
  }),
2411
- /* @__PURE__ */ h(k.Root, {
2412
- open: z,
2411
+ /* @__PURE__ */ v(j.Root, {
2412
+ open: R,
2413
2413
  onOpenChange: H,
2414
- children: [/* @__PURE__ */ h(k.Trigger, {
2415
- id: w,
2416
- disabled: i,
2417
- className: P("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, Sn[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"),
2414
+ children: [/* @__PURE__ */ v(j.Trigger, {
2415
+ id: S,
2416
+ disabled: r,
2417
+ 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, Tn[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"),
2418
2418
  "data-state": l,
2419
2419
  "data-size": u,
2420
- "data-disabled": i || void 0,
2421
- "aria-describedby": E ? `${w}-desc` : void 0,
2420
+ "data-disabled": r || void 0,
2421
+ "aria-describedby": T ? `${S}-desc` : void 0,
2422
2422
  children: [
2423
- j && /* @__PURE__ */ h("span", {
2424
- className: _n(D.left),
2425
- children: [/* @__PURE__ */ m("span", { children: t }), s && /* @__PURE__ */ m("span", {
2423
+ k && /* @__PURE__ */ v("span", {
2424
+ className: bn(D.left),
2425
+ children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
2426
2426
  className: "text-eds-red-main",
2427
2427
  "aria-hidden": "true",
2428
2428
  children: "*"
2429
2429
  })]
2430
2430
  }),
2431
- /* @__PURE__ */ m(n, {
2432
- className: P("shrink-0 text-eds-neutral-elements", O),
2431
+ /* @__PURE__ */ _(i, {
2432
+ className: I("shrink-0 text-eds-neutral-elements", te),
2433
2433
  "aria-hidden": !0
2434
2434
  }),
2435
- /* @__PURE__ */ m("span", {
2436
- className: P("min-w-0 flex-1 truncate font-inherit", D.text, L.from ? "text-eds-neutral-main" : sn),
2437
- children: se
2435
+ /* @__PURE__ */ _("span", {
2436
+ className: I("min-w-0 flex-1 truncate font-inherit", D.text, F.from ? "text-eds-neutral-main" : un),
2437
+ children: le
2438
2438
  })
2439
2439
  ]
2440
- }), /* @__PURE__ */ m(k.Portal, { children: /* @__PURE__ */ m(k.Positioner, {
2441
- className: hn,
2442
- style: gn,
2440
+ }), /* @__PURE__ */ _(j.Portal, { children: /* @__PURE__ */ _(j.Positioner, {
2441
+ className: vn,
2442
+ style: yn,
2443
2443
  positionMethod: "fixed",
2444
2444
  sideOffset: 4,
2445
2445
  align: "start",
2446
- children: /* @__PURE__ */ h(k.Popup, {
2446
+ children: /* @__PURE__ */ v(j.Popup, {
2447
2447
  "data-eds-component": "DatePicker",
2448
2448
  className: "flex overflow-hidden rounded-eds-xs border border-eds-outline-border bg-white shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)] transition-all data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
2449
- children: [ne && ne.length > 0 && /* @__PURE__ */ m("div", {
2449
+ children: [re && re.length > 0 && /* @__PURE__ */ _("div", {
2450
2450
  className: "flex w-40 shrink-0 flex-col gap-0.5 border-r border-eds-outline-border p-2 text-sm",
2451
- children: ne.map((e) => /* @__PURE__ */ m("button", {
2451
+ children: re.map((e) => /* @__PURE__ */ _("button", {
2452
2452
  type: "button",
2453
- onClick: () => U(e.range),
2454
- className: P("rounded-md px-3 py-1.5 text-left whitespace-nowrap", W(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2453
+ onClick: () => se(e.range),
2454
+ className: I("rounded-md px-3 py-1.5 text-left whitespace-nowrap", ce(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2455
2455
  children: e.label
2456
2456
  }, e.label))
2457
- }), /* @__PURE__ */ m("div", {
2457
+ }), /* @__PURE__ */ _("div", {
2458
2458
  className: "flex",
2459
2459
  children: ae.map((e, t) => {
2460
- let n = t === 0, r = t === ae.length - 1, i = wn(e, g);
2461
- return /* @__PURE__ */ h("div", {
2462
- className: P("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
2463
- children: [/* @__PURE__ */ h("div", {
2460
+ let n = t === 0, r = t === ae.length - 1, i = Dn(e, m);
2461
+ return /* @__PURE__ */ v("div", {
2462
+ className: I("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
2463
+ children: [/* @__PURE__ */ v("div", {
2464
2464
  className: "flex items-center gap-2.5 p-4",
2465
2465
  children: [
2466
- n ? /* @__PURE__ */ m(Dt, {
2467
- icon: a,
2466
+ n ? /* @__PURE__ */ _(At, {
2467
+ icon: s,
2468
2468
  label: "Mês anterior",
2469
2469
  size: "sm",
2470
- onClick: () => ie((e) => bt(e, 1))
2471
- }) : /* @__PURE__ */ m("span", {
2470
+ onClick: () => B((e) => Ct(e, 1))
2471
+ }) : /* @__PURE__ */ _("span", {
2472
2472
  className: "size-8 shrink-0",
2473
2473
  "aria-hidden": !0
2474
2474
  }),
2475
- /* @__PURE__ */ m("span", {
2475
+ /* @__PURE__ */ _("span", {
2476
2476
  className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
2477
- children: J(e, "MMMM yyyy", { locale: Tt })
2477
+ children: J(e, "MMMM yyyy", { locale: Ot })
2478
2478
  }),
2479
- r ? /* @__PURE__ */ m(Dt, {
2480
- icon: o,
2479
+ r ? /* @__PURE__ */ _(At, {
2480
+ icon: c,
2481
2481
  label: "Próximo mês",
2482
2482
  size: "sm",
2483
- onClick: () => ie((e) => ce(e, 1))
2484
- }) : /* @__PURE__ */ m("span", {
2483
+ onClick: () => B((e) => de(e, 1))
2484
+ }) : /* @__PURE__ */ _("span", {
2485
2485
  className: "size-8 shrink-0",
2486
2486
  "aria-hidden": !0
2487
2487
  })
2488
2488
  ]
2489
- }), /* @__PURE__ */ h("div", {
2489
+ }), /* @__PURE__ */ v("div", {
2490
2490
  className: "grid grid-cols-7 px-4 pb-4",
2491
- children: [V.map((e, t) => /* @__PURE__ */ m("span", {
2491
+ children: [V.map((e, t) => /* @__PURE__ */ _("span", {
2492
2492
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2493
2493
  children: e
2494
2494
  }, `${e}-${t}`)), i.map((t) => {
2495
- let n = ht(t, e), r = gt(t), i = y && L.from ? ve(t, L.from) : !1, a = y && L.to ? ve(t, L.to) : !1, o = !!(y && L.from && L.to && !ve(L.from, L.to)), s = o && L.from && L.to ? pt(t, L.from) && mt(t, L.to) : !1, c = y ? i || a : L.from ? ve(t, L.from) : !1;
2496
- return /* @__PURE__ */ m("div", {
2497
- className: P("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"),
2498
- children: /* @__PURE__ */ m("button", {
2495
+ let n = vt(t, e), r = yt(t), i = y && F.from ? xe(t, F.from) : !1, a = y && F.to ? xe(t, F.to) : !1, o = !!(y && F.from && F.to && !xe(F.from, F.to)), s = o && F.from && F.to ? gt(t, F.from) && _t(t, F.to) : !1, c = y ? i || a : F.from ? xe(t, F.from) : !1;
2496
+ return /* @__PURE__ */ _("div", {
2497
+ 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"),
2498
+ children: /* @__PURE__ */ _("button", {
2499
2499
  type: "button",
2500
2500
  onClick: () => oe(t),
2501
2501
  "data-selected": c || void 0,
2502
2502
  "data-today": r || void 0,
2503
- className: P("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", c ? "bg-eds-blue-main text-white" : n ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !c && r && "ring-1 ring-inset ring-eds-blue-main"),
2503
+ 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"),
2504
2504
  children: J(t, "d")
2505
2505
  })
2506
2506
  }, t.toISOString());
@@ -2512,22 +2512,22 @@ function En(e) {
2512
2512
  })
2513
2513
  }) })]
2514
2514
  }),
2515
- E && /* @__PURE__ */ m("div", {
2516
- id: `${w}-desc`,
2515
+ T && /* @__PURE__ */ _("div", {
2516
+ id: `${S}-desc`,
2517
2517
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2518
- "data-state": T ? "invalid" : l,
2519
- children: T ? f : d
2518
+ "data-state": C ? "invalid" : l,
2519
+ children: C ? f : d
2520
2520
  })
2521
2521
  ]
2522
2522
  });
2523
2523
  }
2524
2524
  //#endregion
2525
2525
  //#region src/components/DateTimePicker/DateTimePicker.tsx
2526
- var Dn = {
2526
+ var An = {
2527
2527
  default: "",
2528
2528
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2529
2529
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2530
- }, On = [
2530
+ }, jn = [
2531
2531
  "D",
2532
2532
  "S",
2533
2533
  "T",
@@ -2536,229 +2536,229 @@ var Dn = {
2536
2536
  "S",
2537
2537
  "S"
2538
2538
  ];
2539
- function kn(e, t) {
2540
- let n = G(Se(e), { weekStartsOn: t }), r = we(xe(e), { weekStartsOn: t }), i = [];
2541
- for (let e = n; e <= r; e = se(e, 1)) i.push(e);
2539
+ function Mn(e, t) {
2540
+ let n = K(Te(e), { weekStartsOn: t }), r = De(we(e), { weekStartsOn: t }), i = [];
2541
+ for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
2542
2542
  return i;
2543
2543
  }
2544
- function An(e, t) {
2545
- let n = t ? dt(t) : 0, r = t ? ft(t) : 0;
2546
- return yt(vt(_t(e, n), r), 0);
2544
+ function Nn(e, t) {
2545
+ let n = t ? mt(t) : 0, r = t ? ht(t) : 0;
2546
+ return St(xt(bt(e, n), r), 0);
2547
2547
  }
2548
- function jn(e, t) {
2548
+ function Pn(e, t) {
2549
2549
  let n = Math.round(e / t) * t;
2550
2550
  return Math.min(59, Math.max(0, n >= 60 ? 60 - t : n));
2551
2551
  }
2552
- function Mn(e) {
2552
+ function Fn(e) {
2553
2553
  let t = Math.max(1, Math.min(30, Math.floor(e))), n = [];
2554
2554
  for (let e = 0; e < 60; e += t) n.push(e);
2555
2555
  return n;
2556
2556
  }
2557
- var Nn = Array.from({ length: 24 }, (e, t) => t);
2558
- function Pn({ label: e = "Label", labelVariant: n, placeholder: r = "Selecione data e hora", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data e hora válidas", id: p, weekStartsOn: g = 0, defaultMonth: _, dateFormat: v = "dd/MM/yyyy HH:mm", minuteStep: y = 5, value: w, defaultValue: T = null, onValueChange: E, className: D }) {
2559
- let O = ee(), A = p ?? O, j = l === "invalid", te = j || d, M = tn[u], N = u === "lg" ? "size-5" : "size-4", F = en(n), I = F === "floating", L = w !== void 0, [R, ne] = C(T), z = L ? w ?? null : R, [re, ie] = C(!1), [V, ae] = C(() => z ?? _ ?? /* @__PURE__ */ new Date()), [H, oe] = C(z), U = S(null), W = S(null), se = x(() => Mn(y), [y]), le = x(() => [...On.slice(g), ...On.slice(0, g)], [g]), ue = x(() => kn(V, g), [V, g]), G = H ? dt(H) : 0, de = H ? jn(ft(H), y) : 0;
2560
- b(() => {
2561
- if (!re) return;
2557
+ var In = Array.from({ length: 24 }, (e, t) => t);
2558
+ function Ln({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione data e hora", disabled: i = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data e hora válidas", id: p, weekStartsOn: m = 0, defaultMonth: h, dateFormat: g = "dd/MM/yyyy HH:mm", minuteStep: y = 5, value: b, defaultValue: x = null, onValueChange: S, className: D }) {
2559
+ let te = ee(), O = p ?? te, k = l === "invalid", A = k || d, M = an[u], N = u === "lg" ? "size-5" : "size-4", ne = rn(t), P = ne === "floating", F = b !== void 0, [L, re] = E(x), R = F ? b ?? null : L, [z, ie] = E(!1), [B, ae] = E(() => R ?? h ?? /* @__PURE__ */ new Date()), [H, oe] = E(R), se = T(null), ce = T(null), le = w(() => Fn(y), [y]), U = w(() => [...jn.slice(m), ...jn.slice(0, m)], [m]), W = w(() => Mn(B, m), [B, m]), ue = H ? mt(H) : 0, fe = H ? Pn(ht(H), y) : 0;
2560
+ C(() => {
2561
+ if (!z) return;
2562
2562
  let e = (e, t, n) => {
2563
2563
  (e?.querySelector(`[data-${t}="${n}"]`))?.scrollIntoView({ block: "center" });
2564
2564
  };
2565
2565
  requestAnimationFrame(() => {
2566
- e(U.current, "hour", G), e(W.current, "minute", de);
2566
+ e(se.current, "hour", ue), e(ce.current, "minute", fe);
2567
2567
  });
2568
2568
  }, [
2569
- re,
2570
- G,
2571
- de
2569
+ z,
2570
+ ue,
2571
+ fe
2572
2572
  ]);
2573
- function fe(e) {
2574
- L || ne(e), E?.(e);
2573
+ function G(e) {
2574
+ F || re(e), S?.(e);
2575
2575
  }
2576
- function pe(e) {
2576
+ function K(e) {
2577
2577
  if (!i) {
2578
2578
  if (e) {
2579
- let e = z ?? _ ?? /* @__PURE__ */ new Date(), t = vt(e, jn(ft(e), y));
2580
- oe(z ? t : null), ae(z ?? _ ?? /* @__PURE__ */ new Date());
2579
+ let e = R ?? h ?? /* @__PURE__ */ new Date(), t = xt(e, Pn(ht(e), y));
2580
+ oe(R ? t : null), ae(R ?? h ?? /* @__PURE__ */ new Date());
2581
2581
  }
2582
2582
  ie(e);
2583
2583
  }
2584
2584
  }
2585
- function me(e) {
2586
- let t = An(e, H ?? z), n = vt(t, jn(ft(t), y));
2587
- oe(n), fe(n);
2585
+ function pe(e) {
2586
+ let t = Nn(e, H ?? R), n = xt(t, Pn(ht(t), y));
2587
+ oe(n), G(n);
2588
2588
  }
2589
- function K(e) {
2590
- let t = H ?? z ?? /* @__PURE__ */ new Date(), n = yt(vt(_t(t, e), jn(ft(t), y)), 0);
2591
- oe(n), fe(n);
2589
+ function me(e) {
2590
+ let t = H ?? R ?? /* @__PURE__ */ new Date(), n = St(xt(bt(t, e), Pn(ht(t), y)), 0);
2591
+ oe(n), G(n);
2592
2592
  }
2593
2593
  function he(e) {
2594
- let t = yt(vt(H ?? z ?? /* @__PURE__ */ new Date(), e), 0);
2595
- oe(t), fe(t);
2594
+ let t = St(xt(H ?? R ?? /* @__PURE__ */ new Date(), e), 0);
2595
+ oe(t), G(t);
2596
2596
  }
2597
2597
  function ge() {
2598
- let e = /* @__PURE__ */ new Date(), t = yt(vt(e, jn(ft(e), y)), 0);
2599
- oe(t), ae(t), fe(t);
2598
+ let e = /* @__PURE__ */ new Date(), t = St(xt(e, Pn(ht(e), y)), 0);
2599
+ oe(t), ae(t), G(t);
2600
2600
  }
2601
2601
  function _e() {
2602
- H && fe(H), ie(!1);
2602
+ H && G(H), ie(!1);
2603
2603
  }
2604
- let ye = z ? J(z, v) : r;
2605
- return /* @__PURE__ */ h("div", {
2606
- className: P(rn, D),
2607
- "data-fluid": c || void 0,
2604
+ let ve = R ? J(R, g) : n;
2605
+ return /* @__PURE__ */ v("div", {
2606
+ className: I(sn, D),
2607
+ "data-fluid": o || void 0,
2608
2608
  "data-eds-component": "DateTimePicker",
2609
- "data-label-variant": F,
2609
+ "data-label-variant": ne,
2610
2610
  children: [
2611
- /* @__PURE__ */ m("div", {
2612
- className: an,
2613
- children: /* @__PURE__ */ h("label", {
2614
- className: P(on, I && "sr-only", !I && "font-medium"),
2615
- htmlFor: A,
2616
- children: [/* @__PURE__ */ m("span", { children: e }), s && /* @__PURE__ */ m("span", {
2611
+ /* @__PURE__ */ _("div", {
2612
+ className: cn,
2613
+ children: /* @__PURE__ */ v("label", {
2614
+ className: I(ln, P && "sr-only", !P && "font-medium"),
2615
+ htmlFor: O,
2616
+ children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
2617
2617
  className: "text-eds-red-main",
2618
2618
  children: "*"
2619
2619
  })]
2620
2620
  })
2621
2621
  }),
2622
- /* @__PURE__ */ h(k.Root, {
2623
- open: re,
2624
- onOpenChange: pe,
2625
- children: [/* @__PURE__ */ h(k.Trigger, {
2626
- id: A,
2622
+ /* @__PURE__ */ v(j.Root, {
2623
+ open: z,
2624
+ onOpenChange: K,
2625
+ children: [/* @__PURE__ */ v(j.Trigger, {
2626
+ id: O,
2627
2627
  disabled: i,
2628
- className: P("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", M.trigger, Dn[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"),
2628
+ 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", M.trigger, An[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"),
2629
2629
  "data-state": l,
2630
2630
  "data-size": u,
2631
2631
  "data-disabled": i || void 0,
2632
- "aria-describedby": te ? `${A}-desc` : void 0,
2632
+ "aria-describedby": A ? `${O}-desc` : void 0,
2633
2633
  children: [
2634
- I && /* @__PURE__ */ h("span", {
2635
- className: _n(M.left),
2636
- children: [/* @__PURE__ */ m("span", { children: e }), s && /* @__PURE__ */ m("span", {
2634
+ P && /* @__PURE__ */ v("span", {
2635
+ className: bn(M.left),
2636
+ children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
2637
2637
  className: "text-eds-red-main",
2638
2638
  "aria-hidden": "true",
2639
2639
  children: "*"
2640
2640
  })]
2641
2641
  }),
2642
- /* @__PURE__ */ m(t, {
2643
- className: P("shrink-0 text-eds-neutral-elements", N),
2642
+ /* @__PURE__ */ _(r, {
2643
+ className: I("shrink-0 text-eds-neutral-elements", N),
2644
2644
  "aria-hidden": !0
2645
2645
  }),
2646
- /* @__PURE__ */ m("span", {
2647
- className: P("min-w-0 flex-1 truncate font-inherit", M.text, z ? "text-eds-neutral-main" : sn),
2648
- children: ye
2646
+ /* @__PURE__ */ _("span", {
2647
+ className: I("min-w-0 flex-1 truncate font-inherit", M.text, R ? "text-eds-neutral-main" : un),
2648
+ children: ve
2649
2649
  })
2650
2650
  ]
2651
- }), /* @__PURE__ */ m(k.Portal, { children: /* @__PURE__ */ m(k.Positioner, {
2652
- className: hn,
2653
- style: gn,
2651
+ }), /* @__PURE__ */ _(j.Portal, { children: /* @__PURE__ */ _(j.Positioner, {
2652
+ className: vn,
2653
+ style: yn,
2654
2654
  positionMethod: "fixed",
2655
2655
  sideOffset: 4,
2656
2656
  align: "start",
2657
- children: /* @__PURE__ */ h(k.Popup, {
2657
+ children: /* @__PURE__ */ v(j.Popup, {
2658
2658
  "data-eds-component": "DateTimePicker",
2659
2659
  className: "flex flex-col overflow-hidden rounded-eds-xs border border-eds-outline-border bg-white shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)] transition-all data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
2660
- children: [/* @__PURE__ */ h("div", {
2660
+ children: [/* @__PURE__ */ v("div", {
2661
2661
  className: "flex",
2662
- children: [/* @__PURE__ */ h("div", {
2662
+ children: [/* @__PURE__ */ v("div", {
2663
2663
  className: "w-[284px] shrink-0",
2664
- children: [/* @__PURE__ */ h("div", {
2664
+ children: [/* @__PURE__ */ v("div", {
2665
2665
  className: "flex items-center gap-2.5 p-4",
2666
2666
  children: [
2667
- /* @__PURE__ */ m(Dt, {
2668
- icon: a,
2667
+ /* @__PURE__ */ _(At, {
2668
+ icon: s,
2669
2669
  label: "Mês anterior",
2670
2670
  size: "sm",
2671
- onClick: () => ae((e) => bt(e, 1))
2671
+ onClick: () => ae((e) => Ct(e, 1))
2672
2672
  }),
2673
- /* @__PURE__ */ m("span", {
2673
+ /* @__PURE__ */ _("span", {
2674
2674
  className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
2675
- children: J(V, "MMMM yyyy", { locale: Tt })
2675
+ children: J(B, "MMMM yyyy", { locale: Ot })
2676
2676
  }),
2677
- /* @__PURE__ */ m(Dt, {
2678
- icon: o,
2677
+ /* @__PURE__ */ _(At, {
2678
+ icon: c,
2679
2679
  label: "Próximo mês",
2680
2680
  size: "sm",
2681
- onClick: () => ae((e) => ce(e, 1))
2681
+ onClick: () => ae((e) => de(e, 1))
2682
2682
  })
2683
2683
  ]
2684
- }), /* @__PURE__ */ h("div", {
2684
+ }), /* @__PURE__ */ v("div", {
2685
2685
  className: "grid grid-cols-7 px-4 pb-4",
2686
- children: [le.map((e, t) => /* @__PURE__ */ m("span", {
2686
+ children: [U.map((e, t) => /* @__PURE__ */ _("span", {
2687
2687
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2688
2688
  children: e
2689
- }, `${e}-${t}`)), ue.map((e) => {
2690
- let t = ht(e, V), n = gt(e), r = H ? ve(e, H) : !1;
2691
- return /* @__PURE__ */ m("div", {
2689
+ }, `${e}-${t}`)), W.map((e) => {
2690
+ let t = vt(e, B), n = yt(e), r = H ? xe(e, H) : !1;
2691
+ return /* @__PURE__ */ _("div", {
2692
2692
  className: "flex items-center justify-center py-0.5",
2693
- children: /* @__PURE__ */ m("button", {
2693
+ children: /* @__PURE__ */ _("button", {
2694
2694
  type: "button",
2695
- onClick: () => me(e),
2695
+ onClick: () => pe(e),
2696
2696
  "data-selected": r || void 0,
2697
2697
  "data-today": n || void 0,
2698
- className: P("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", r ? "bg-eds-blue-main text-white" : t ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !r && n && "ring-1 ring-inset ring-eds-blue-main"),
2698
+ 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"),
2699
2699
  children: J(e, "d")
2700
2700
  })
2701
2701
  }, e.toISOString());
2702
2702
  })]
2703
2703
  })]
2704
- }), /* @__PURE__ */ h("div", {
2704
+ }), /* @__PURE__ */ v("div", {
2705
2705
  className: "flex w-[148px] shrink-0 border-l border-eds-outline-border",
2706
- children: [/* @__PURE__ */ h("div", {
2706
+ children: [/* @__PURE__ */ v("div", {
2707
2707
  className: "flex min-h-0 flex-1 flex-col",
2708
- children: [/* @__PURE__ */ m("span", {
2708
+ children: [/* @__PURE__ */ _("span", {
2709
2709
  className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2710
2710
  children: "Hora"
2711
- }), /* @__PURE__ */ m("div", {
2712
- ref: U,
2711
+ }), /* @__PURE__ */ _("div", {
2712
+ ref: se,
2713
2713
  className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2714
2714
  role: "listbox",
2715
2715
  "aria-label": "Hora",
2716
- children: Nn.map((e) => {
2717
- let t = G === e;
2718
- return /* @__PURE__ */ m("button", {
2716
+ children: In.map((e) => {
2717
+ let t = ue === e;
2718
+ return /* @__PURE__ */ _("button", {
2719
2719
  type: "button",
2720
2720
  role: "option",
2721
2721
  "aria-selected": t,
2722
2722
  "data-hour": e,
2723
- onClick: () => K(e),
2724
- className: P("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"),
2723
+ onClick: () => me(e),
2724
+ 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"),
2725
2725
  children: String(e).padStart(2, "0")
2726
2726
  }, e);
2727
2727
  })
2728
2728
  })]
2729
- }), /* @__PURE__ */ h("div", {
2729
+ }), /* @__PURE__ */ v("div", {
2730
2730
  className: "flex min-h-0 flex-1 flex-col border-l border-eds-outline-border",
2731
- children: [/* @__PURE__ */ m("span", {
2731
+ children: [/* @__PURE__ */ _("span", {
2732
2732
  className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2733
2733
  children: "Min"
2734
- }), /* @__PURE__ */ m("div", {
2735
- ref: W,
2734
+ }), /* @__PURE__ */ _("div", {
2735
+ ref: ce,
2736
2736
  className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2737
2737
  role: "listbox",
2738
2738
  "aria-label": "Minuto",
2739
- children: se.map((e) => {
2740
- let t = de === e;
2741
- return /* @__PURE__ */ m("button", {
2739
+ children: le.map((e) => {
2740
+ let t = fe === e;
2741
+ return /* @__PURE__ */ _("button", {
2742
2742
  type: "button",
2743
2743
  role: "option",
2744
2744
  "aria-selected": t,
2745
2745
  "data-minute": e,
2746
2746
  onClick: () => he(e),
2747
- className: P("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2747
+ 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"),
2748
2748
  children: String(e).padStart(2, "0")
2749
2749
  }, e);
2750
2750
  })
2751
2751
  })]
2752
2752
  })]
2753
2753
  })]
2754
- }), /* @__PURE__ */ h("div", {
2754
+ }), /* @__PURE__ */ v("div", {
2755
2755
  className: "flex items-center justify-between gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-3 py-2.5",
2756
- children: [/* @__PURE__ */ m(B, {
2756
+ children: [/* @__PURE__ */ _(V, {
2757
2757
  text: "Agora",
2758
2758
  variant: "ghost",
2759
2759
  size: "sm",
2760
2760
  onClick: ge
2761
- }), /* @__PURE__ */ m(B, {
2761
+ }), /* @__PURE__ */ _(V, {
2762
2762
  text: "Confirmar",
2763
2763
  size: "sm",
2764
2764
  onClick: _e,
@@ -2768,18 +2768,18 @@ function Pn({ label: e = "Label", labelVariant: n, placeholder: r = "Selecione d
2768
2768
  })
2769
2769
  }) })]
2770
2770
  }),
2771
- te && /* @__PURE__ */ m("div", {
2772
- id: `${A}-desc`,
2771
+ A && /* @__PURE__ */ _("div", {
2772
+ id: `${O}-desc`,
2773
2773
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2774
- "data-state": j ? "invalid" : l,
2775
- children: j ? f : d
2774
+ "data-state": k ? "invalid" : l,
2775
+ children: k ? f : d
2776
2776
  })
2777
2777
  ]
2778
2778
  });
2779
2779
  }
2780
2780
  //#endregion
2781
2781
  //#region src/components/Dialog/Dialog.tsx
2782
- var Fn = { size: {
2782
+ var Rn = { size: {
2783
2783
  sm: {
2784
2784
  classes: "sm:max-w-xs",
2785
2785
  description: "Small dialog for simple confirmations (288px)"
@@ -2796,165 +2796,165 @@ var Fn = { size: {
2796
2796
  classes: "sm:max-w-3xl",
2797
2797
  description: "Extra large dialog for detailed views (768px)"
2798
2798
  }
2799
- } }, In = { size: "md" }, Ln = _("dialog");
2800
- function Rn() {
2801
- return y(Ln);
2802
- }
2803
- function zn({ size: e = In.size } = {}) {
2804
- return P(`fixed top-1/2 left-1/2 ${nn.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`, F(Fn.size, e, In.size).classes);
2805
- }
2806
- function Bn({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
2807
- let i = Rn(), a = i === "alertdialog" ? j.Portal : A.Portal, o = i === "alertdialog" ? j.Backdrop : A.Backdrop, s = i === "alertdialog" ? j.Popup : A.Popup, c = i === "alertdialog" ? j.Close : A.Close;
2808
- return /* @__PURE__ */ h(a, { children: [/* @__PURE__ */ m(o, {
2809
- className: P("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", nn.overlay),
2810
- style: { zIndex: nn.overlayValue }
2811
- }), /* @__PURE__ */ h(s, {
2799
+ } }, zn = { size: "md" }, Bn = b("dialog");
2800
+ function Vn() {
2801
+ return S(Bn);
2802
+ }
2803
+ function Hn({ size: e = zn.size } = {}) {
2804
+ return I(`fixed top-1/2 left-1/2 ${on.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(Rn.size, e, zn.size).classes);
2805
+ }
2806
+ function Un({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
2807
+ let i = Vn(), a = i === "alertdialog" ? N.Portal : M.Portal, o = i === "alertdialog" ? N.Backdrop : M.Backdrop, s = i === "alertdialog" ? N.Popup : M.Popup, c = i === "alertdialog" ? N.Close : M.Close;
2808
+ return /* @__PURE__ */ v(a, { children: [/* @__PURE__ */ _(o, {
2809
+ className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", on.overlay),
2810
+ style: { zIndex: on.overlayValue }
2811
+ }), /* @__PURE__ */ v(s, {
2812
2812
  "data-eds-component": "Dialog",
2813
- className: P(zn({ size: n }), e),
2814
- style: { zIndex: nn.overlayValue },
2815
- children: [t, r ? /* @__PURE__ */ m(c, {
2813
+ className: I(Hn({ size: n }), e),
2814
+ style: { zIndex: on.overlayValue },
2815
+ children: [t, r ? /* @__PURE__ */ _(c, {
2816
2816
  "data-eds-component": "Dialog",
2817
2817
  "aria-label": "Fechar",
2818
2818
  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",
2819
- children: /* @__PURE__ */ m(d, {
2819
+ children: /* @__PURE__ */ _(m, {
2820
2820
  className: "size-4",
2821
2821
  "aria-hidden": !0
2822
2822
  })
2823
2823
  }) : null]
2824
2824
  })] });
2825
2825
  }
2826
- function Vn(e) {
2826
+ function Wn(e) {
2827
2827
  if (e.role === "alertdialog") {
2828
2828
  let { children: t, role: n, ...r } = e;
2829
- return /* @__PURE__ */ m(Ln.Provider, {
2829
+ return /* @__PURE__ */ _(Bn.Provider, {
2830
2830
  value: n,
2831
- children: /* @__PURE__ */ m(j.Root, {
2831
+ children: /* @__PURE__ */ _(N.Root, {
2832
2832
  ...r,
2833
2833
  children: t
2834
2834
  })
2835
2835
  });
2836
2836
  }
2837
2837
  let { children: t, role: n = "dialog", ...r } = e;
2838
- return /* @__PURE__ */ m(Ln.Provider, {
2838
+ return /* @__PURE__ */ _(Bn.Provider, {
2839
2839
  value: n,
2840
- children: /* @__PURE__ */ m(A.Root, {
2840
+ children: /* @__PURE__ */ _(M.Root, {
2841
2841
  ...r,
2842
2842
  children: t
2843
2843
  })
2844
2844
  });
2845
2845
  }
2846
- function Hn({ children: e, ...t }) {
2847
- return Rn() === "alertdialog" ? /* @__PURE__ */ m(j.Trigger, {
2846
+ function Gn({ children: e, ...t }) {
2847
+ return Vn() === "alertdialog" ? /* @__PURE__ */ _(N.Trigger, {
2848
2848
  "data-eds-component": "Dialog",
2849
2849
  ...t,
2850
2850
  children: e
2851
- }) : /* @__PURE__ */ m(A.Trigger, {
2851
+ }) : /* @__PURE__ */ _(M.Trigger, {
2852
2852
  "data-eds-component": "Dialog",
2853
2853
  ...t,
2854
2854
  children: e
2855
2855
  });
2856
2856
  }
2857
- function Un({ className: e, ...t }) {
2858
- return /* @__PURE__ */ m("div", {
2857
+ function Kn({ className: e, ...t }) {
2858
+ return /* @__PURE__ */ _("div", {
2859
2859
  "data-slot": "dialog-header",
2860
- className: P("flex flex-col gap-2", e),
2860
+ className: I("flex flex-col gap-2", e),
2861
2861
  ...t
2862
2862
  });
2863
2863
  }
2864
- function Wn({ className: e, ...t }) {
2865
- return /* @__PURE__ */ m("div", {
2864
+ function qn({ className: e, ...t }) {
2865
+ return /* @__PURE__ */ _("div", {
2866
2866
  "data-slot": "dialog-footer",
2867
- className: P("-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),
2867
+ 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),
2868
2868
  ...t
2869
2869
  });
2870
2870
  }
2871
- function Gn({ className: e, ...t }) {
2872
- return /* @__PURE__ */ m(Rn() === "alertdialog" ? j.Title : A.Title, {
2873
- className: P("text-base leading-none font-medium text-eds-neutral-main", e),
2871
+ function Jn({ className: e, ...t }) {
2872
+ return /* @__PURE__ */ _(Vn() === "alertdialog" ? N.Title : M.Title, {
2873
+ className: I("text-base leading-none font-medium text-eds-neutral-main", e),
2874
2874
  ...t
2875
2875
  });
2876
2876
  }
2877
- function Kn({ className: e, ...t }) {
2878
- return /* @__PURE__ */ m(Rn() === "alertdialog" ? j.Description : A.Description, {
2879
- className: P("text-sm text-eds-neutral-elements", e),
2877
+ function Yn({ className: e, ...t }) {
2878
+ return /* @__PURE__ */ _(Vn() === "alertdialog" ? N.Description : M.Description, {
2879
+ className: I("text-sm text-eds-neutral-elements", e),
2880
2880
  ...t
2881
2881
  });
2882
2882
  }
2883
- function qn({ children: e, ...t }) {
2884
- return /* @__PURE__ */ m(Rn() === "alertdialog" ? j.Close : A.Close, {
2883
+ function Xn({ children: e, ...t }) {
2884
+ return /* @__PURE__ */ _(Vn() === "alertdialog" ? N.Close : M.Close, {
2885
2885
  "data-eds-component": "Dialog",
2886
2886
  ...t,
2887
2887
  children: e
2888
2888
  });
2889
2889
  }
2890
- Vn.displayName = "Dialog.Root", Hn.displayName = "Dialog.Trigger", Un.displayName = "Dialog.Header", Wn.displayName = "Dialog.Footer", Gn.displayName = "Dialog.Title", Kn.displayName = "Dialog.Description", qn.displayName = "Dialog.Close";
2891
- var Jn = Object.assign(Bn, {
2892
- Root: Vn,
2893
- Trigger: Hn,
2894
- Header: Un,
2895
- Footer: Wn,
2896
- Title: Gn,
2897
- Description: Kn,
2898
- Close: qn
2890
+ Wn.displayName = "Dialog.Root", Gn.displayName = "Dialog.Trigger", Kn.displayName = "Dialog.Header", qn.displayName = "Dialog.Footer", Jn.displayName = "Dialog.Title", Yn.displayName = "Dialog.Description", Xn.displayName = "Dialog.Close";
2891
+ var Zn = Object.assign(Un, {
2892
+ Root: Wn,
2893
+ Trigger: Gn,
2894
+ Header: Kn,
2895
+ Footer: qn,
2896
+ Title: Jn,
2897
+ Description: Yn,
2898
+ Close: Xn
2899
2899
  });
2900
2900
  //#endregion
2901
2901
  //#region src/components/FormDialog/FormDialog.tsx
2902
- function Yn({ size: e = "xl" } = {}) {
2903
- return P("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", F(Fn.size, e, In.size).classes);
2904
- }
2905
- function Xn({ className: e, children: t, size: n = "xl" }) {
2906
- let r = Rn(), i = r === "alertdialog" ? j.Portal : A.Portal, a = r === "alertdialog" ? j.Backdrop : A.Backdrop, o = r === "alertdialog" ? j.Popup : A.Popup;
2907
- return /* @__PURE__ */ h(i, { children: [/* @__PURE__ */ m(a, {
2908
- className: P("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", nn.overlay),
2909
- style: { zIndex: nn.overlayValue }
2910
- }), /* @__PURE__ */ m("div", {
2911
- className: P("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", nn.overlay),
2912
- style: { zIndex: nn.overlayValue },
2913
- children: /* @__PURE__ */ m(o, {
2902
+ function Qn({ size: e = "xl" } = {}) {
2903
+ 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(Rn.size, e, zn.size).classes);
2904
+ }
2905
+ function $n({ className: e, children: t, size: n = "xl" }) {
2906
+ let r = Vn(), i = r === "alertdialog" ? N.Portal : M.Portal, a = r === "alertdialog" ? N.Backdrop : M.Backdrop, o = r === "alertdialog" ? N.Popup : M.Popup;
2907
+ return /* @__PURE__ */ v(i, { children: [/* @__PURE__ */ _(a, {
2908
+ className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", on.overlay),
2909
+ style: { zIndex: on.overlayValue }
2910
+ }), /* @__PURE__ */ _("div", {
2911
+ className: I("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", on.overlay),
2912
+ style: { zIndex: on.overlayValue },
2913
+ children: /* @__PURE__ */ _(o, {
2914
2914
  "data-eds-component": "FormDialog",
2915
- className: P("pointer-events-auto", Yn({ size: n }), e),
2915
+ className: I("pointer-events-auto", Qn({ size: n }), e),
2916
2916
  children: t
2917
2917
  })
2918
2918
  })] });
2919
2919
  }
2920
- function Zn({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
2921
- let s = Rn(), c = s === "alertdialog" ? j.Close : A.Close, l = s === "alertdialog" ? j.Title : A.Title, u = s === "alertdialog" ? j.Description : A.Description, f = n != null || r != null || t;
2922
- return /* @__PURE__ */ h("div", {
2920
+ function er({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
2921
+ let s = Vn(), c = s === "alertdialog" ? N.Close : M.Close, l = s === "alertdialog" ? N.Title : M.Title, u = s === "alertdialog" ? N.Description : M.Description, d = n != null || r != null || t;
2922
+ return /* @__PURE__ */ v("div", {
2923
2923
  "data-slot": "form-dialog-header",
2924
- className: P("relative flex shrink-0 items-start gap-3 border-b border-eds-outline-border bg-white px-5 py-4", i && "pr-12", e),
2924
+ 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),
2925
2925
  ...o,
2926
2926
  children: [
2927
- t ? /* @__PURE__ */ m("span", {
2927
+ t ? /* @__PURE__ */ _("span", {
2928
2928
  "data-slot": "form-dialog-icon",
2929
2929
  className: "inline-flex size-10 shrink-0 items-center justify-center rounded-eds-lil bg-eds-blue-background/45 text-eds-blue-main",
2930
2930
  "aria-hidden": !0,
2931
- children: /* @__PURE__ */ m(t, {
2931
+ children: /* @__PURE__ */ _(t, {
2932
2932
  className: "size-5",
2933
2933
  strokeWidth: 2
2934
2934
  })
2935
2935
  }) : null,
2936
- f ? /* @__PURE__ */ h("div", {
2936
+ d ? /* @__PURE__ */ v("div", {
2937
2937
  className: "min-w-0 flex-1 flex flex-col gap-1",
2938
2938
  children: [
2939
- n == null ? null : /* @__PURE__ */ m(l, {
2939
+ n == null ? null : /* @__PURE__ */ _(l, {
2940
2940
  className: "text-lg leading-tight font-semibold text-eds-blue-dark",
2941
2941
  children: n
2942
2942
  }),
2943
- r == null ? null : /* @__PURE__ */ m(u, {
2943
+ r == null ? null : /* @__PURE__ */ _(u, {
2944
2944
  className: "text-sm leading-snug text-eds-neutral-elements",
2945
2945
  children: r
2946
2946
  }),
2947
2947
  a
2948
2948
  ]
2949
- }) : /* @__PURE__ */ m("div", {
2949
+ }) : /* @__PURE__ */ _("div", {
2950
2950
  className: "min-w-0 flex-1",
2951
2951
  children: a
2952
2952
  }),
2953
- i ? /* @__PURE__ */ m(c, {
2953
+ i ? /* @__PURE__ */ _(c, {
2954
2954
  "data-eds-component": "FormDialog",
2955
2955
  "aria-label": "Fechar",
2956
2956
  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",
2957
- children: /* @__PURE__ */ m(d, {
2957
+ children: /* @__PURE__ */ _(m, {
2958
2958
  className: "size-4",
2959
2959
  "aria-hidden": !0
2960
2960
  })
@@ -2962,43 +2962,43 @@ function Zn({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i =
2962
2962
  ]
2963
2963
  });
2964
2964
  }
2965
- function Qn({ className: e, ...t }) {
2966
- return /* @__PURE__ */ m("div", {
2965
+ function tr({ className: e, ...t }) {
2966
+ return /* @__PURE__ */ _("div", {
2967
2967
  "data-slot": "form-dialog-body",
2968
- className: P("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
2968
+ className: I("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
2969
2969
  ...t
2970
2970
  });
2971
2971
  }
2972
- function $n({ className: e, ...t }) {
2973
- return /* @__PURE__ */ m("div", {
2972
+ function nr({ className: e, ...t }) {
2973
+ return /* @__PURE__ */ _("div", {
2974
2974
  "data-slot": "form-dialog-footer",
2975
- className: P("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),
2975
+ 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),
2976
2976
  ...t
2977
2977
  });
2978
2978
  }
2979
- function er({ className: e, ...t }) {
2980
- return /* @__PURE__ */ m(Rn() === "alertdialog" ? j.Title : A.Title, {
2981
- className: P("text-lg leading-tight font-semibold text-eds-blue-dark", e),
2979
+ function rr({ className: e, ...t }) {
2980
+ return /* @__PURE__ */ _(Vn() === "alertdialog" ? N.Title : M.Title, {
2981
+ className: I("text-lg leading-tight font-semibold text-eds-blue-dark", e),
2982
2982
  ...t
2983
2983
  });
2984
2984
  }
2985
- function tr({ className: e, ...t }) {
2986
- return /* @__PURE__ */ m(Rn() === "alertdialog" ? j.Description : A.Description, {
2987
- className: P("text-sm leading-snug text-eds-neutral-elements", e),
2985
+ function ir({ className: e, ...t }) {
2986
+ return /* @__PURE__ */ _(Vn() === "alertdialog" ? N.Description : M.Description, {
2987
+ className: I("text-sm leading-snug text-eds-neutral-elements", e),
2988
2988
  ...t
2989
2989
  });
2990
2990
  }
2991
- Zn.displayName = "FormDialog.Header", Qn.displayName = "FormDialog.Body", $n.displayName = "FormDialog.Footer", er.displayName = "FormDialog.Title", tr.displayName = "FormDialog.Description";
2992
- var nr = Object.assign(Xn, {
2993
- Root: Vn,
2994
- Trigger: Hn,
2995
- Close: qn,
2996
- Header: Zn,
2997
- Body: Qn,
2998
- Footer: $n,
2999
- Title: er,
3000
- Description: tr
3001
- }), rr = { size: {
2991
+ er.displayName = "FormDialog.Header", tr.displayName = "FormDialog.Body", nr.displayName = "FormDialog.Footer", rr.displayName = "FormDialog.Title", ir.displayName = "FormDialog.Description";
2992
+ var ar = Object.assign($n, {
2993
+ Root: Wn,
2994
+ Trigger: Gn,
2995
+ Close: Xn,
2996
+ Header: er,
2997
+ Body: tr,
2998
+ Footer: nr,
2999
+ Title: rr,
3000
+ Description: ir
3001
+ }), or = { size: {
3002
3002
  sm: {
3003
3003
  classes: "px-6 py-8 gap-3",
3004
3004
  description: "Compact empty state for smaller containers"
@@ -3011,22 +3011,22 @@ var nr = Object.assign(Xn, {
3011
3011
  classes: "px-12 py-20 gap-6",
3012
3012
  description: "Large empty state for prominent placement"
3013
3013
  }
3014
- } }, ir = { size: "md" };
3015
- function ar({ icon: e, title: t, description: n, action: r, size: i = ir.size, titleLevel: a = "h2", className: o }) {
3016
- return /* @__PURE__ */ h("div", {
3014
+ } }, sr = { size: "md" };
3015
+ function cr({ icon: e, title: t, description: n, action: r, size: i = sr.size, titleLevel: a = "h2", className: o }) {
3016
+ return /* @__PURE__ */ v("div", {
3017
3017
  "data-eds-component": "Empty",
3018
- className: P("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", F(rr.size, i, ir.size).classes, o),
3018
+ className: I("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", L(or.size, i, sr.size).classes, o),
3019
3019
  children: [
3020
- e && /* @__PURE__ */ m("div", {
3020
+ e && /* @__PURE__ */ _("div", {
3021
3021
  className: "text-eds-neutral-elements",
3022
3022
  "aria-hidden": !0,
3023
3023
  children: e
3024
3024
  }),
3025
- /* @__PURE__ */ m(a, {
3025
+ /* @__PURE__ */ _(a, {
3026
3026
  className: "text-lg font-semibold text-eds-neutral-main",
3027
3027
  children: t
3028
3028
  }),
3029
- n && /* @__PURE__ */ m("p", {
3029
+ n && /* @__PURE__ */ _("p", {
3030
3030
  className: "max-w-sm text-sm text-eds-neutral-elements",
3031
3031
  children: n
3032
3032
  }),
@@ -3036,24 +3036,24 @@ function ar({ icon: e, title: t, description: n, action: r, size: i = ir.size, t
3036
3036
  }
3037
3037
  //#endregion
3038
3038
  //#region ../../node_modules/.pnpm/brazilian-values@0.13.1/node_modules/brazilian-values/dist/brazilian-values.mjs
3039
- var or = /\D/g, sr = function(e) {
3040
- return e.replace(or, "");
3041
- }, cr = function(e) {
3042
- return sr(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
3043
- }, lr = function(e) {
3044
- return sr(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");
3045
- }, ur = function(e) {
3046
- return sr(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
3039
+ var lr = /\D/g, ur = function(e) {
3040
+ return e.replace(lr, "");
3047
3041
  }, dr = function(e) {
3048
- return (e.match(/\d/g)?.length ?? 0) <= 11;
3042
+ return ur(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
3049
3043
  }, fr = function(e) {
3050
- return dr(e) ? ur(e) : lr(e);
3044
+ return ur(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");
3051
3045
  }, pr = function(e) {
3052
- return sr(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");
3046
+ return ur(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
3047
+ }, mr = function(e) {
3048
+ return (e.match(/\d/g)?.length ?? 0) <= 11;
3049
+ }, hr = function(e) {
3050
+ return mr(e) ? pr(e) : fr(e);
3051
+ }, gr = function(e) {
3052
+ return ur(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");
3053
3053
  };
3054
3054
  //#endregion
3055
3055
  //#region src/components/Input/Input.tsx
3056
- function mr(e) {
3056
+ function _r(e) {
3057
3057
  if (!e) return "";
3058
3058
  let t = e.trimStart().startsWith("-"), n = e.replace(/\./g, ",").replace(/[^\d,]/g, "");
3059
3059
  if (!n) return t ? "-" : "";
@@ -3062,191 +3062,191 @@ function mr(e) {
3062
3062
  let i = n.slice(0, r), a = n.slice(r + 1).replace(/,/g, "");
3063
3063
  return `${t ? "-" : ""}${i},${a}`;
3064
3064
  }
3065
- var hr = {
3065
+ var vr = {
3066
3066
  default: "",
3067
3067
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3068
3068
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
3069
3069
  loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
3070
3070
  };
3071
- function gr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: l = "Digite algo...", errorMessage: u = "Campo obrigatório", fluid: d = !1, format: f, tooltip: p = null, linkText: g = null, linkUrl: _ = null, supportLink: v = null, supportLinkUrl: y = null, supportingText: b = "", lazy: x = !1, labelVariant: S, disableAutocomplete: w = !1, isLoading: T = !1, loadingIconPosition: E = "end", icon: D, hideContent: O = !1, showContentText: k = "Mostrar", hideContentText: A = "Ocultar", defaultValue: j, value: M, id: N, name: F, onBlur: I, onFocus: L, onKeyDown: R, onClick: ne, onChange: z, ...B }) {
3072
- let re = ee(), ie = N ?? re, V = a === "number", [ae, H] = C(!1), [oe, U] = C(() => {
3073
- let e = j?.toString() ?? "";
3074
- return V ? mr(e) : e;
3075
- }), W = M !== void 0, se = (W ? M : oe)?.toString() ?? "", ce = V ? mr(se) : se, le = v ?? g, ue = y ?? _, G = en(S), de = G === "floating", fe = (e) => {
3076
- if (V) return mr(e);
3071
+ function yr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, format: f, tooltip: p = null, linkText: m = null, linkUrl: h = null, supportLink: g = null, supportLinkUrl: y = null, supportingText: b = "", lazy: x = !1, labelVariant: S, disableAutocomplete: C = !1, isLoading: w = !1, loadingIconPosition: T = "end", icon: D, hideContent: te = !1, showContentText: O = "Mostrar", hideContentText: k = "Ocultar", defaultValue: A, value: j, id: M, name: N, onBlur: P, onFocus: F, onKeyDown: L, onClick: re, onChange: R, ...z }) {
3072
+ let ie = ee(), B = M ?? ie, V = a === "number", [ae, H] = E(!1), [oe, se] = E(() => {
3073
+ let e = A?.toString() ?? "";
3074
+ return V ? _r(e) : e;
3075
+ }), ce = j !== void 0, le = (ce ? j : oe)?.toString() ?? "", U = V ? _r(le) : le, W = g ?? m, ue = y ?? h, de = rn(S), fe = de === "floating", G = (e) => {
3076
+ if (V) return _r(e);
3077
3077
  switch (f) {
3078
- case "cep": return cr(e);
3079
- case "cpf": return ur(e);
3080
- case "cnpj": return lr(e);
3081
- case "cpfOrCnpj": return fr(e);
3082
- case "phone": return pr(e);
3078
+ case "cep": return dr(e);
3079
+ case "cpf": return pr(e);
3080
+ case "cnpj": return fr(e);
3081
+ case "cpfOrCnpj": return hr(e);
3082
+ case "phone": return gr(e);
3083
3083
  default: return e;
3084
3084
  }
3085
- }, pe = (e, t) => {
3086
- let n = fe(e);
3087
- W || U(n), z?.(n, t);
3088
- }, me = r === "invalid", K = n || T, he = tn[i], ge = T ? /* @__PURE__ */ m("span", {
3085
+ }, K = (e, t) => {
3086
+ let n = G(e);
3087
+ ce || se(n), R?.(n, t);
3088
+ }, pe = r === "invalid", me = n || w, he = an[i], ge = w ? /* @__PURE__ */ _("span", {
3089
3089
  className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
3090
- "data-position": E,
3090
+ "data-position": T,
3091
3091
  "aria-hidden": !0,
3092
- children: /* @__PURE__ */ m(c, {
3092
+ children: /* @__PURE__ */ _(d, {
3093
3093
  className: "animate-eds-spin",
3094
3094
  size: 16
3095
3095
  })
3096
3096
  }) : null;
3097
- return /* @__PURE__ */ h("div", {
3098
- className: P(rn, e),
3099
- "data-fluid": d || void 0,
3097
+ return /* @__PURE__ */ v("div", {
3098
+ className: I(sn, e),
3099
+ "data-fluid": l || void 0,
3100
3100
  "data-eds-component": "Input",
3101
- "data-label-variant": G,
3101
+ "data-label-variant": de,
3102
3102
  children: [
3103
- /* @__PURE__ */ h("div", {
3104
- className: an,
3105
- children: [/* @__PURE__ */ h("div", {
3103
+ /* @__PURE__ */ v("div", {
3104
+ className: cn,
3105
+ children: [/* @__PURE__ */ v("div", {
3106
3106
  className: "inline-flex min-w-0 items-center gap-2",
3107
- children: [/* @__PURE__ */ h("label", {
3108
- className: P(on, de && "sr-only", !de && "font-medium"),
3109
- htmlFor: ie,
3110
- children: [/* @__PURE__ */ m("span", { children: t }), o && /* @__PURE__ */ m("span", {
3107
+ children: [/* @__PURE__ */ v("label", {
3108
+ className: I(ln, fe && "sr-only", !fe && "font-medium"),
3109
+ htmlFor: B,
3110
+ children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
3111
3111
  className: "text-eds-red-main",
3112
3112
  children: "*"
3113
3113
  })]
3114
- }), p && /* @__PURE__ */ m("button", {
3114
+ }), p && /* @__PURE__ */ _("button", {
3115
3115
  type: "button",
3116
3116
  className: "inline-flex size-7 cursor-help items-center justify-center rounded-md text-eds-neutral-elements focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2",
3117
3117
  "aria-label": p,
3118
3118
  title: p,
3119
- disabled: K,
3120
- children: /* @__PURE__ */ m(s, {
3119
+ disabled: me,
3120
+ children: /* @__PURE__ */ _(u, {
3121
3121
  size: 16,
3122
3122
  "aria-hidden": !0
3123
3123
  })
3124
3124
  })]
3125
- }), le && ue && /* @__PURE__ */ m("a", {
3125
+ }), W && ue && /* @__PURE__ */ _("a", {
3126
3126
  className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
3127
3127
  href: ue,
3128
- "aria-disabled": K || void 0,
3129
- tabIndex: K ? -1 : 0,
3128
+ "aria-disabled": me || void 0,
3129
+ tabIndex: me ? -1 : 0,
3130
3130
  onClick: (e) => {
3131
- K && e.preventDefault();
3131
+ me && e.preventDefault();
3132
3132
  },
3133
- children: le
3133
+ children: W
3134
3134
  })]
3135
3135
  }),
3136
- /* @__PURE__ */ h("div", {
3137
- className: P("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", he.control, hr[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"),
3138
- "data-disabled": K || void 0,
3136
+ /* @__PURE__ */ v("div", {
3137
+ className: I("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", he.control, vr[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"),
3138
+ "data-disabled": me || void 0,
3139
3139
  "data-state": r,
3140
3140
  "data-size": i,
3141
- "data-floating": de || void 0,
3142
- "data-has-value": ce ? !0 : void 0,
3141
+ "data-floating": fe || void 0,
3142
+ "data-has-value": U ? !0 : void 0,
3143
3143
  children: [
3144
- de && /* @__PURE__ */ h("span", {
3145
- className: _n(he.left),
3146
- children: [/* @__PURE__ */ m("span", { children: t }), o && /* @__PURE__ */ m("span", {
3144
+ fe && /* @__PURE__ */ v("span", {
3145
+ className: bn(he.left),
3146
+ children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
3147
3147
  className: "text-eds-red-main",
3148
3148
  "aria-hidden": "true",
3149
3149
  children: "*"
3150
3150
  })]
3151
3151
  }),
3152
- D && /* @__PURE__ */ m(D, {
3152
+ D && /* @__PURE__ */ _(D, {
3153
3153
  className: "shrink-0 text-eds-neutral-elements",
3154
3154
  size: 16,
3155
3155
  "aria-hidden": !0
3156
3156
  }),
3157
- E === "start" && ge,
3158
- /* @__PURE__ */ m(te, {
3159
- ...B,
3160
- id: ie,
3161
- name: F,
3162
- className: P("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", cn, he.text),
3163
- disabled: K,
3164
- type: V ? "text" : O ? ae ? "text" : "password" : a,
3165
- inputMode: V ? B.inputMode ?? "decimal" : B.inputMode,
3166
- lang: V ? B.lang ?? "pt-BR" : B.lang,
3157
+ T === "start" && ge,
3158
+ /* @__PURE__ */ _(ne, {
3159
+ ...z,
3160
+ id: B,
3161
+ name: N,
3162
+ className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", dn, he.text),
3163
+ disabled: me,
3164
+ type: V ? "text" : te ? ae ? "text" : "password" : a,
3165
+ inputMode: V ? z.inputMode ?? "decimal" : z.inputMode,
3166
+ lang: V ? z.lang ?? "pt-BR" : z.lang,
3167
3167
  required: o,
3168
- placeholder: l,
3169
- autoComplete: w ? "off" : B.autoComplete,
3170
- "aria-invalid": me || void 0,
3171
- "aria-describedby": me ? `${ie}-desc` : void 0,
3172
- "aria-busy": T || void 0,
3173
- value: W || V ? ce : void 0,
3174
- defaultValue: !W && !V ? j : void 0,
3175
- onClick: ne,
3176
- onKeyDown: R,
3177
- onFocus: L,
3168
+ placeholder: s,
3169
+ autoComplete: C ? "off" : z.autoComplete,
3170
+ "aria-invalid": pe || void 0,
3171
+ "aria-describedby": pe ? `${B}-desc` : void 0,
3172
+ "aria-busy": w || void 0,
3173
+ value: ce || V ? U : void 0,
3174
+ defaultValue: !ce && !V ? A : void 0,
3175
+ onClick: re,
3176
+ onKeyDown: L,
3177
+ onFocus: F,
3178
3178
  onBlur: (e) => {
3179
- I?.(e), x && pe(e.currentTarget.value, e);
3179
+ P?.(e), x && K(e.currentTarget.value, e);
3180
3180
  },
3181
3181
  onChange: (e) => {
3182
3182
  if (x) {
3183
- V && !W && U(fe(e.currentTarget.value));
3183
+ V && !ce && se(G(e.currentTarget.value));
3184
3184
  return;
3185
3185
  }
3186
- pe(e.currentTarget.value, e);
3186
+ K(e.currentTarget.value, e);
3187
3187
  }
3188
3188
  }),
3189
- O && !T && /* @__PURE__ */ m("button", {
3189
+ te && !w && /* @__PURE__ */ _("button", {
3190
3190
  type: "button",
3191
3191
  className: "shrink-0 text-sm font-medium text-eds-blue-main hover:underline",
3192
- disabled: K,
3192
+ disabled: me,
3193
3193
  onClick: () => H((e) => !e),
3194
- children: ae ? A : k
3194
+ children: ae ? k : O
3195
3195
  }),
3196
- E === "end" && ge
3196
+ T === "end" && ge
3197
3197
  ]
3198
3198
  }),
3199
- (me || b) && /* @__PURE__ */ m("div", {
3200
- id: `${ie}-desc`,
3199
+ (pe || b) && /* @__PURE__ */ _("div", {
3200
+ id: `${B}-desc`,
3201
3201
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
3202
- "data-state": me ? "invalid" : r,
3203
- children: me ? u : b
3202
+ "data-state": pe ? "invalid" : r,
3203
+ children: pe ? c : b
3204
3204
  })
3205
3205
  ]
3206
3206
  });
3207
3207
  }
3208
3208
  //#endregion
3209
3209
  //#region src/components/Textarea/Textarea.tsx
3210
- var _r = {
3210
+ var br = {
3211
3211
  default: "",
3212
3212
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3213
3213
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
3214
- }, vr = {
3214
+ }, xr = {
3215
3215
  sm: "min-h-20",
3216
3216
  md: "min-h-24",
3217
3217
  lg: "min-h-32"
3218
3218
  };
3219
- function yr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, tooltip: u = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: p = "", labelVariant: g, rows: _ = 4, defaultValue: v, value: y, id: b, name: x, onBlur: S, onFocus: w, onKeyDown: T, onClick: E, onChange: D, ...O }) {
3220
- let k = ee(), A = b ?? k, [j, te] = C(() => v?.toString() ?? ""), M = y !== void 0, N = (M ? y : j)?.toString() ?? "", F = en(g), I = F === "floating", L = r === "invalid", R = tn[i];
3221
- return /* @__PURE__ */ h("div", {
3222
- className: P(rn, e),
3223
- "data-fluid": l || void 0,
3219
+ function Sr({ 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 }) {
3220
+ let O = ee(), k = b ?? O, [A, j] = E(() => g?.toString() ?? ""), M = y !== void 0, N = (M ? y : A)?.toString() ?? "", ne = rn(m), P = ne === "floating", F = r === "invalid", L = an[i];
3221
+ return /* @__PURE__ */ v("div", {
3222
+ className: I(sn, e),
3223
+ "data-fluid": c || void 0,
3224
3224
  "data-eds-component": "Textarea",
3225
- "data-label-variant": F,
3225
+ "data-label-variant": ne,
3226
3226
  children: [
3227
- /* @__PURE__ */ h("div", {
3228
- className: an,
3229
- children: [/* @__PURE__ */ h("div", {
3227
+ /* @__PURE__ */ v("div", {
3228
+ className: cn,
3229
+ children: [/* @__PURE__ */ v("div", {
3230
3230
  className: "inline-flex min-w-0 items-center gap-2",
3231
- children: [/* @__PURE__ */ h("label", {
3232
- className: P(on, I && "sr-only", !I && "font-medium"),
3233
- htmlFor: A,
3234
- children: [/* @__PURE__ */ m("span", { children: t }), a && /* @__PURE__ */ m("span", {
3231
+ children: [/* @__PURE__ */ v("label", {
3232
+ className: I(ln, P && "sr-only", !P && "font-medium"),
3233
+ htmlFor: k,
3234
+ children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
3235
3235
  className: "text-eds-red-main",
3236
3236
  children: "*"
3237
3237
  })]
3238
- }), u && /* @__PURE__ */ m("button", {
3238
+ }), l && /* @__PURE__ */ _("button", {
3239
3239
  type: "button",
3240
3240
  className: "inline-flex size-7 cursor-help items-center justify-center rounded-md text-eds-neutral-elements focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2",
3241
- "aria-label": u,
3242
- title: u,
3241
+ "aria-label": l,
3242
+ title: l,
3243
3243
  disabled: n,
3244
- children: /* @__PURE__ */ m(s, {
3244
+ children: /* @__PURE__ */ _(u, {
3245
3245
  size: 16,
3246
3246
  "aria-hidden": !0
3247
3247
  })
3248
3248
  })]
3249
- }), d && f && /* @__PURE__ */ m("a", {
3249
+ }), d && f && /* @__PURE__ */ _("a", {
3250
3250
  className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
3251
3251
  href: f,
3252
3252
  "aria-disabled": n || void 0,
@@ -3257,132 +3257,132 @@ function yr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3257
3257
  children: d
3258
3258
  })]
3259
3259
  }),
3260
- /* @__PURE__ */ h("div", {
3261
- className: P("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", R.paddingX, "py-2.5", vr[i], _r[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"),
3260
+ /* @__PURE__ */ v("div", {
3261
+ className: I("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", L.paddingX, "py-2.5", xr[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"),
3262
3262
  "data-disabled": n || void 0,
3263
3263
  "data-state": r,
3264
3264
  "data-size": i,
3265
- "data-floating": I || void 0,
3265
+ "data-floating": P || void 0,
3266
3266
  "data-has-value": N ? !0 : void 0,
3267
- children: [I && /* @__PURE__ */ h("span", {
3268
- className: _n(R.left),
3269
- children: [/* @__PURE__ */ m("span", { children: t }), a && /* @__PURE__ */ m("span", {
3267
+ children: [P && /* @__PURE__ */ v("span", {
3268
+ className: bn(L.left),
3269
+ children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
3270
3270
  className: "text-eds-red-main",
3271
3271
  "aria-hidden": "true",
3272
3272
  children: "*"
3273
3273
  })]
3274
- }), /* @__PURE__ */ m("textarea", {
3275
- ...O,
3276
- id: A,
3274
+ }), /* @__PURE__ */ _("textarea", {
3275
+ ...te,
3276
+ id: k,
3277
3277
  name: x,
3278
- rows: _,
3279
- className: P("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", cn, R.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
3278
+ rows: h,
3279
+ 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", dn, L.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
3280
3280
  disabled: n,
3281
3281
  required: a,
3282
3282
  placeholder: o,
3283
- "aria-invalid": L || void 0,
3284
- "aria-describedby": L ? `${A}-desc` : void 0,
3283
+ "aria-invalid": F || void 0,
3284
+ "aria-describedby": F ? `${k}-desc` : void 0,
3285
3285
  value: M ? y : void 0,
3286
- defaultValue: M ? void 0 : v,
3287
- onClick: E,
3288
- onKeyDown: T,
3289
- onFocus: w,
3286
+ defaultValue: M ? void 0 : g,
3287
+ onClick: T,
3288
+ onKeyDown: w,
3289
+ onFocus: C,
3290
3290
  onBlur: S,
3291
3291
  onChange: (e) => {
3292
- M || te(e.target.value), D?.(e.target.value, e);
3292
+ M || j(e.target.value), D?.(e.target.value, e);
3293
3293
  }
3294
3294
  })]
3295
3295
  }),
3296
- (L || p) && /* @__PURE__ */ m("div", {
3297
- id: `${A}-desc`,
3296
+ (F || p) && /* @__PURE__ */ _("div", {
3297
+ id: `${k}-desc`,
3298
3298
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
3299
- "data-state": L ? "invalid" : r,
3300
- children: L ? c : p
3299
+ "data-state": F ? "invalid" : r,
3300
+ children: F ? s : p
3301
3301
  })
3302
3302
  ]
3303
3303
  });
3304
3304
  }
3305
3305
  //#endregion
3306
3306
  //#region src/components/Select/Select.tsx
3307
- var br = {
3307
+ var Cr = {
3308
3308
  default: "",
3309
3309
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3310
3310
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
3311
3311
  };
3312
- function xr({ label: e = "Label", labelVariant: t, items: n, placeholder: a = "Selecione uma opção", disabled: o = !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: g, value: _ = void 0, defaultValue: v = void 0, onValueChange: y = void 0, renderItem: b = void 0, className: x }) {
3313
- let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E = tn[u], D = en(t), O = D === "floating";
3314
- return /* @__PURE__ */ h("div", {
3315
- className: P(rn, x),
3312
+ function wr({ 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 }) {
3313
+ let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E = an[u], D = rn(t), te = D === "floating";
3314
+ return /* @__PURE__ */ v("div", {
3315
+ className: I(sn, x),
3316
3316
  "data-fluid": c || void 0,
3317
3317
  "data-eds-component": "Select",
3318
3318
  "data-label-variant": D,
3319
3319
  children: [
3320
- /* @__PURE__ */ m("div", {
3321
- className: an,
3322
- children: /* @__PURE__ */ h("label", {
3323
- className: P(on, O && "sr-only", !O && "font-medium"),
3320
+ /* @__PURE__ */ _("div", {
3321
+ className: cn,
3322
+ children: /* @__PURE__ */ v("label", {
3323
+ className: I(ln, te && "sr-only", !te && "font-medium"),
3324
3324
  htmlFor: C,
3325
- children: [/* @__PURE__ */ m("span", { children: e }), s && /* @__PURE__ */ m("span", {
3325
+ children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
3326
3326
  className: "text-eds-red-main",
3327
3327
  children: "*"
3328
3328
  })]
3329
3329
  })
3330
3330
  }),
3331
- /* @__PURE__ */ h(M.Root, {
3331
+ /* @__PURE__ */ v(P.Root, {
3332
3332
  id: C,
3333
- name: g,
3334
- disabled: o,
3333
+ name: m,
3334
+ disabled: i,
3335
3335
  required: s,
3336
3336
  onValueChange: y,
3337
- defaultValue: v,
3338
- value: _,
3339
- children: [/* @__PURE__ */ h(M.Trigger, {
3340
- className: P("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, br[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"),
3337
+ defaultValue: g,
3338
+ value: h,
3339
+ children: [/* @__PURE__ */ v(P.Trigger, {
3340
+ 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, Cr[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"),
3341
3341
  "data-state": l,
3342
3342
  "data-size": u,
3343
- "data-disabled": o || void 0,
3343
+ "data-disabled": i || void 0,
3344
3344
  "aria-describedby": T ? `${C}-desc` : void 0,
3345
3345
  children: [
3346
- O && /* @__PURE__ */ h("span", {
3347
- className: _n(E.left),
3348
- children: [/* @__PURE__ */ m("span", { children: e }), s && /* @__PURE__ */ m("span", {
3346
+ te && /* @__PURE__ */ v("span", {
3347
+ className: bn(E.left),
3348
+ children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
3349
3349
  className: "text-eds-red-main",
3350
3350
  "aria-hidden": "true",
3351
3351
  children: "*"
3352
3352
  })]
3353
3353
  }),
3354
- /* @__PURE__ */ m(M.Value, {
3355
- className: P("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", ln, E.text),
3356
- placeholder: a
3354
+ /* @__PURE__ */ _(P.Value, {
3355
+ className: I("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", fn, E.text),
3356
+ placeholder: r
3357
3357
  }),
3358
- /* @__PURE__ */ m(M.Icon, {
3359
- className: P("inline-flex shrink-0 items-center justify-center rounded-md text-eds-neutral-elements", E.icon),
3358
+ /* @__PURE__ */ _(P.Icon, {
3359
+ className: I("inline-flex shrink-0 items-center justify-center rounded-md text-eds-neutral-elements", E.icon),
3360
3360
  "aria-hidden": !0,
3361
- children: /* @__PURE__ */ m(i, {
3361
+ children: /* @__PURE__ */ _(o, {
3362
3362
  className: "size-4 shrink-0",
3363
3363
  strokeWidth: 2
3364
3364
  })
3365
3365
  })
3366
3366
  ]
3367
- }), /* @__PURE__ */ m(M.Portal, { children: /* @__PURE__ */ m(M.Positioner, {
3368
- className: hn,
3369
- style: gn,
3367
+ }), /* @__PURE__ */ _(P.Portal, { children: /* @__PURE__ */ _(P.Positioner, {
3368
+ className: vn,
3369
+ style: yn,
3370
3370
  positionMethod: "fixed",
3371
3371
  sideOffset: 4,
3372
- children: /* @__PURE__ */ m(M.Popup, {
3373
- className: dn,
3374
- children: /* @__PURE__ */ m(M.List, {
3375
- className: fn,
3376
- children: n.map((e) => /* @__PURE__ */ h(M.Item, {
3372
+ children: /* @__PURE__ */ _(P.Popup, {
3373
+ className: mn,
3374
+ children: /* @__PURE__ */ _(P.List, {
3375
+ className: hn,
3376
+ children: n.map((e) => /* @__PURE__ */ v(P.Item, {
3377
3377
  value: e,
3378
- className: pn,
3379
- children: [/* @__PURE__ */ m(M.ItemIndicator, {
3380
- className: mn,
3381
- children: /* @__PURE__ */ m(r, {
3378
+ className: gn,
3379
+ children: [/* @__PURE__ */ _(P.ItemIndicator, {
3380
+ className: _n,
3381
+ children: /* @__PURE__ */ _(a, {
3382
3382
  size: 14,
3383
3383
  "aria-hidden": !0
3384
3384
  })
3385
- }), /* @__PURE__ */ m(M.ItemText, {
3385
+ }), /* @__PURE__ */ _(P.ItemText, {
3386
3386
  className: "block min-w-0 flex-1 text-left",
3387
3387
  children: b ? b(e) : e.label
3388
3388
  })]
@@ -3391,7 +3391,7 @@ function xr({ label: e = "Label", labelVariant: t, items: n, placeholder: a = "S
3391
3391
  })
3392
3392
  }) })]
3393
3393
  }),
3394
- T && /* @__PURE__ */ m("div", {
3394
+ T && /* @__PURE__ */ _("div", {
3395
3395
  id: `${C}-desc`,
3396
3396
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
3397
3397
  "data-state": w ? "invalid" : l,
@@ -3402,7 +3402,7 @@ function xr({ label: e = "Label", labelVariant: t, items: n, placeholder: a = "S
3402
3402
  }
3403
3403
  //#endregion
3404
3404
  //#region src/components/Text/Text.tsx
3405
- var Sr = {
3405
+ var Tr = {
3406
3406
  variant: {
3407
3407
  heading1: {
3408
3408
  classes: "text-3xl font-semibold",
@@ -3459,29 +3459,29 @@ var Sr = {
3459
3459
  description: "Large text"
3460
3460
  }
3461
3461
  }
3462
- }, Cr = {
3462
+ }, Er = {
3463
3463
  variant: "body",
3464
3464
  size: "md"
3465
- }, wr = /* @__PURE__ */ new Set([
3465
+ }, Dr = /* @__PURE__ */ new Set([
3466
3466
  "heading1",
3467
3467
  "heading2",
3468
3468
  "heading3"
3469
- ]), Tr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3470
- function Er({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3471
- let l = Tr.has(e), u = wr.has(e), d = x(() => o || (l || u ? "span" : "p"), [
3469
+ ]), Or = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3470
+ function kr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3471
+ let l = Or.has(e), u = Dr.has(e), d = w(() => o || (l || u ? "span" : "p"), [
3472
3472
  o,
3473
3473
  l,
3474
3474
  u
3475
- ]), f = F(Sr.variant, e, Cr.variant), p = F(Sr.size, n ?? "md", Cr.size);
3476
- return /* @__PURE__ */ m(d, {
3475
+ ]), f = L(Tr.variant, e, Er.variant), p = L(Tr.size, n ?? "md", Er.size);
3476
+ return /* @__PURE__ */ _(d, {
3477
3477
  ref: c,
3478
3478
  "data-eds-component": "Text",
3479
- className: P(f.classes, !u && p.classes, !u && t && "font-medium", r && "min-w-0 truncate", a),
3479
+ className: I(f.classes, !u && p.classes, !u && t && "font-medium", r && "min-w-0 truncate", a),
3480
3480
  ...s,
3481
3481
  children: i
3482
3482
  });
3483
3483
  }
3484
- var Dr = v(Er), Or = {
3484
+ var Ar = x(kr), jr = {
3485
3485
  layout: {
3486
3486
  auto: {
3487
3487
  classes: "",
@@ -3530,71 +3530,71 @@ var Dr = v(Er), Or = {
3530
3530
  description: "Pin column to the right edge of the scroll container"
3531
3531
  }
3532
3532
  }
3533
- }, kr = (e, t) => {
3534
- let n = F(Or.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
3535
- return t === "cell" ? P(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") : P(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");
3536
- }, Ar = {
3533
+ }, Mr = (e, t) => {
3534
+ let n = L(jr.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";
3535
+ 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");
3536
+ }, Nr = {
3537
3537
  layout: "auto",
3538
3538
  variant: "default",
3539
3539
  dividers: "row"
3540
- }, jr = v(({ layout: e = "auto", dividers: t = Ar.dividers, className: n, containerClassName: r, ...i }, a) => {
3541
- let o = P("isolate w-full", F(Or.layout, e, Ar.layout).classes, F(Or.dividers, t, Ar.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);
3542
- return /* @__PURE__ */ m("div", {
3543
- className: P("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", r),
3544
- children: /* @__PURE__ */ m("table", {
3540
+ }, Pr = x(({ layout: e = "auto", dividers: t = Nr.dividers, className: n, containerClassName: r, ...i }, a) => {
3541
+ let o = I("isolate w-full", L(jr.layout, e, Nr.layout).classes, L(jr.dividers, t, Nr.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);
3542
+ return /* @__PURE__ */ _("div", {
3543
+ className: I("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", r),
3544
+ children: /* @__PURE__ */ _("table", {
3545
3545
  ref: a,
3546
3546
  "data-eds-component": "Table",
3547
3547
  ...i,
3548
3548
  className: o
3549
3549
  })
3550
3550
  });
3551
- }), Mr = v(({ variant: e = "default", sticky: t, ...n }, r) => {
3552
- let i = e === "compact", a = P("group/header", i && "[&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
3553
- return /* @__PURE__ */ m("thead", {
3551
+ }), Fr = x(({ variant: e = "default", sticky: t, ...n }, r) => {
3552
+ 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);
3553
+ return /* @__PURE__ */ _("thead", {
3554
3554
  ref: r,
3555
3555
  ...n,
3556
3556
  className: a,
3557
3557
  ...i && { "data-compact": "" }
3558
3558
  });
3559
- }), Nr = v(({ sticky: e, ...t }, n) => {
3560
- let r = P("group relative", e && kr(e, "head"), t.className);
3561
- return /* @__PURE__ */ m("th", {
3559
+ }), Ir = x(({ sticky: e, ...t }, n) => {
3560
+ let r = I("group relative", e && Mr(e, "head"), t.className);
3561
+ return /* @__PURE__ */ _("th", {
3562
3562
  ref: n,
3563
3563
  ...t,
3564
3564
  className: r
3565
3565
  });
3566
- }), Pr = v(({ variant: e = Ar.variant, ...t }, n) => {
3567
- let r = P(F(Or.variant, e, Ar.variant).classes, t.className);
3568
- return /* @__PURE__ */ m("tr", {
3566
+ }), Lr = x(({ variant: e = Nr.variant, ...t }, n) => {
3567
+ let r = I(L(jr.variant, e, Nr.variant).classes, t.className);
3568
+ return /* @__PURE__ */ _("tr", {
3569
3569
  ref: n,
3570
3570
  ...t,
3571
3571
  className: r
3572
3572
  });
3573
- }), Fr = v((e, t) => /* @__PURE__ */ m("tbody", {
3573
+ }), Rr = x((e, t) => /* @__PURE__ */ _("tbody", {
3574
3574
  ref: t,
3575
3575
  ...e
3576
- })), Ir = v(({ sticky: e, ...t }, n) => {
3577
- let r = P(e && kr(e, "cell"), t.className);
3578
- return /* @__PURE__ */ m("td", {
3576
+ })), zr = x(({ sticky: e, ...t }, n) => {
3577
+ let r = I(e && Mr(e, "cell"), t.className);
3578
+ return /* @__PURE__ */ _("td", {
3579
3579
  ref: n,
3580
3580
  ...t,
3581
3581
  className: r
3582
3582
  });
3583
- }), Lr = v((e, t) => /* @__PURE__ */ m("tfoot", {
3583
+ }), Br = x((e, t) => /* @__PURE__ */ _("tfoot", {
3584
3584
  ref: t,
3585
3585
  ...e
3586
- })), Rr = v((e, t) => /* @__PURE__ */ m("button", {
3586
+ })), Vr = x((e, t) => /* @__PURE__ */ _("button", {
3587
3587
  ref: t,
3588
3588
  ...e,
3589
3589
  type: "button",
3590
3590
  "aria-label": "Redimensionar coluna",
3591
- className: P("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),
3592
- children: /* @__PURE__ */ m("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
3593
- })), zr = v(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ m(Ir, {
3591
+ 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),
3592
+ children: /* @__PURE__ */ _("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
3593
+ })), Hr = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(zr, {
3594
3594
  ref: o,
3595
3595
  ...a,
3596
- className: P("w-10 leading-none", a.className),
3597
- children: /* @__PURE__ */ m($t, {
3596
+ className: I("w-10 leading-none", a.className),
3597
+ children: /* @__PURE__ */ _(nn, {
3598
3598
  checked: e,
3599
3599
  indeterminate: t,
3600
3600
  onCheckedChange: n,
@@ -3602,11 +3602,11 @@ var Dr = v(Er), Or = {
3602
3602
  disabled: i,
3603
3603
  className: "relative before:absolute before:-inset-3 before:content-['']"
3604
3604
  })
3605
- })), Br = v(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ m(Nr, {
3605
+ })), Ur = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(Ir, {
3606
3606
  ref: o,
3607
3607
  ...a,
3608
- className: P("w-10 leading-none", a.className),
3609
- children: /* @__PURE__ */ m($t, {
3608
+ className: I("w-10 leading-none", a.className),
3609
+ children: /* @__PURE__ */ _(nn, {
3610
3610
  checked: e,
3611
3611
  indeterminate: t,
3612
3612
  onCheckedChange: n,
@@ -3615,38 +3615,38 @@ var Dr = v(Er), Or = {
3615
3615
  className: "relative before:absolute before:-inset-3 before:content-['']"
3616
3616
  })
3617
3617
  }));
3618
- jr.displayName = "Table", Fr.displayName = "Table.Body", Nr.displayName = "Table.Head", Pr.displayName = "Table.Row", Ir.displayName = "Table.Cell", Lr.displayName = "Table.Footer", Mr.displayName = "Table.Header", Rr.displayName = "Table.ResizeHandle", zr.displayName = "Table.CheckCell", Br.displayName = "Table.CheckHead";
3619
- var Y = Object.assign(jr, {
3620
- Header: Mr,
3621
- Head: Nr,
3622
- Row: Pr,
3623
- Body: Fr,
3624
- Cell: Ir,
3625
- CheckCell: zr,
3626
- CheckHead: Br,
3627
- Footer: Lr,
3628
- ResizeHandle: Rr
3618
+ Pr.displayName = "Table", Rr.displayName = "Table.Body", Ir.displayName = "Table.Head", Lr.displayName = "Table.Row", zr.displayName = "Table.Cell", Br.displayName = "Table.Footer", Fr.displayName = "Table.Header", Vr.displayName = "Table.ResizeHandle", Hr.displayName = "Table.CheckCell", Ur.displayName = "Table.CheckHead";
3619
+ var Y = Object.assign(Pr, {
3620
+ Header: Fr,
3621
+ Head: Ir,
3622
+ Row: Lr,
3623
+ Body: Rr,
3624
+ Cell: zr,
3625
+ CheckCell: Hr,
3626
+ CheckHead: Ur,
3627
+ Footer: Br,
3628
+ ResizeHandle: Vr
3629
3629
  });
3630
3630
  //#endregion
3631
3631
  //#region ../../node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
3632
- function Vr(e, t) {
3632
+ function Wr(e, t) {
3633
3633
  return typeof e == "function" ? e(t) : e;
3634
3634
  }
3635
3635
  function X(e, t) {
3636
3636
  return (n) => {
3637
3637
  t.setState((t) => ({
3638
3638
  ...t,
3639
- [e]: Vr(n, t[e])
3639
+ [e]: Wr(n, t[e])
3640
3640
  }));
3641
3641
  };
3642
3642
  }
3643
- function Hr(e) {
3643
+ function Gr(e) {
3644
3644
  return e instanceof Function;
3645
3645
  }
3646
- function Ur(e) {
3646
+ function Kr(e) {
3647
3647
  return Array.isArray(e) && e.every((e) => typeof e == "number");
3648
3648
  }
3649
- function Wr(e, t) {
3649
+ function qr(e, t) {
3650
3650
  let n = [], r = (e) => {
3651
3651
  e.forEach((e) => {
3652
3652
  n.push(e);
@@ -3685,7 +3685,7 @@ function Q(e, t, n, r) {
3685
3685
  onChange: r
3686
3686
  };
3687
3687
  }
3688
- function Gr(e, t, n, r) {
3688
+ function Jr(e, t, n, r) {
3689
3689
  let i = {
3690
3690
  id: `${t.id}_${n.id}`,
3691
3691
  row: t,
@@ -3710,7 +3710,7 @@ function Gr(e, t, n, r) {
3710
3710
  r.createCell == null || r.createCell(i, n, t, e);
3711
3711
  }, {}), i;
3712
3712
  }
3713
- function Kr(e, t, n, r) {
3713
+ function Yr(e, t, n, r) {
3714
3714
  let i = {
3715
3715
  ...e._getDefaultColumnDef(),
3716
3716
  ...t
@@ -3737,7 +3737,7 @@ function Kr(e, t, n, r) {
3737
3737
  return c;
3738
3738
  }
3739
3739
  var $ = "debugHeaders";
3740
- function qr(e, t, n) {
3740
+ function Xr(e, t, n) {
3741
3741
  let r = {
3742
3742
  id: n.id ?? t.id,
3743
3743
  column: t,
@@ -3765,7 +3765,7 @@ function qr(e, t, n) {
3765
3765
  t.createHeader == null || t.createHeader(r, e);
3766
3766
  }), r;
3767
3767
  }
3768
- var Jr = { createTable: (e) => {
3768
+ var Zr = { createTable: (e) => {
3769
3769
  e.getHeaderGroups = Z(() => [
3770
3770
  e.getAllColumns(),
3771
3771
  e.getVisibleLeafColumns(),
@@ -3773,7 +3773,7 @@ var Jr = { createTable: (e) => {
3773
3773
  e.getState().columnPinning.right
3774
3774
  ], (t, n, r, i) => {
3775
3775
  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)));
3776
- return Yr(t, [
3776
+ return Qr(t, [
3777
3777
  ...a,
3778
3778
  ...s,
3779
3779
  ...o
@@ -3783,15 +3783,15 @@ var Jr = { createTable: (e) => {
3783
3783
  e.getVisibleLeafColumns(),
3784
3784
  e.getState().columnPinning.left,
3785
3785
  e.getState().columnPinning.right
3786
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), Yr(t, n, e, "center")), Q(e.options, $, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [
3786
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), Qr(t, n, e, "center")), Q(e.options, $, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [
3787
3787
  e.getAllColumns(),
3788
3788
  e.getVisibleLeafColumns(),
3789
3789
  e.getState().columnPinning.left
3790
- ], (t, n, r) => Yr(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), Q(e.options, $, "getLeftHeaderGroups")), e.getRightHeaderGroups = Z(() => [
3790
+ ], (t, n, r) => Qr(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), Q(e.options, $, "getLeftHeaderGroups")), e.getRightHeaderGroups = Z(() => [
3791
3791
  e.getAllColumns(),
3792
3792
  e.getVisibleLeafColumns(),
3793
3793
  e.getState().columnPinning.right
3794
- ], (t, n, r) => Yr(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) => {
3794
+ ], (t, n, r) => Qr(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) => {
3795
3795
  var t;
3796
3796
  return !((t = e.subHeaders) != null && t.length);
3797
3797
  }), Q(e.options, $, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Z(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
@@ -3810,7 +3810,7 @@ var Jr = { createTable: (e) => {
3810
3810
  ...n[0]?.headers ?? []
3811
3811
  ].map((e) => e.getLeafHeaders()).flat(), Q(e.options, $, "getLeafHeaders"));
3812
3812
  } };
3813
- function Yr(e, t, n, r) {
3813
+ function Qr(e, t, n, r) {
3814
3814
  let i = 0, a = function(e, t) {
3815
3815
  t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
3816
3816
  var n;
@@ -3828,7 +3828,7 @@ function Yr(e, t, n, r) {
3828
3828
  let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
3829
3829
  if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
3830
3830
  else {
3831
- let i = qr(n, c, {
3831
+ let i = Xr(n, c, {
3832
3832
  id: [
3833
3833
  r,
3834
3834
  t,
@@ -3845,7 +3845,7 @@ function Yr(e, t, n, r) {
3845
3845
  i.headers.push(e), e.headerGroup = i;
3846
3846
  }), o.push(i), t > 0 && s(a, t - 1);
3847
3847
  };
3848
- s(t.map((e, t) => qr(n, e, {
3848
+ s(t.map((e, t) => Xr(n, e, {
3849
3849
  depth: i,
3850
3850
  index: t
3851
3851
  })), i - 1), o.reverse();
@@ -3863,7 +3863,7 @@ function Yr(e, t, n, r) {
3863
3863
  });
3864
3864
  return c(o[0]?.headers ?? []), o;
3865
3865
  }
3866
- var Xr = (e, t, n, r, i, a, o) => {
3866
+ var $r = (e, t, n, r, i, a, o) => {
3867
3867
  let s = {
3868
3868
  id: t,
3869
3869
  index: r,
@@ -3884,7 +3884,7 @@ var Xr = (e, t, n, r, i, a, o) => {
3884
3884
  },
3885
3885
  renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
3886
3886
  subRows: a ?? [],
3887
- getLeafRows: () => Wr(s.subRows, (e) => e.subRows),
3887
+ getLeafRows: () => qr(s.subRows, (e) => e.subRows),
3888
3888
  getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
3889
3889
  getParentRows: () => {
3890
3890
  let e = [], t = s;
@@ -3895,7 +3895,7 @@ var Xr = (e, t, n, r, i, a, o) => {
3895
3895
  }
3896
3896
  return e.reverse();
3897
3897
  },
3898
- getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) => Gr(e, s, t, t.id)), Q(e.options, "debugRows", "getAllCells")),
3898
+ getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) => Jr(e, s, t, t.id)), Q(e.options, "debugRows", "getAllCells")),
3899
3899
  _getAllCellsByColumnId: Z(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), Q(e.options, "debugRows", "getAllCellsByColumnId"))
3900
3900
  };
3901
3901
  for (let t = 0; t < e._features.length; t++) {
@@ -3903,66 +3903,66 @@ var Xr = (e, t, n, r, i, a, o) => {
3903
3903
  n == null || n.createRow == null || n.createRow(s, e);
3904
3904
  }
3905
3905
  return s;
3906
- }, Zr = { createColumn: (e, t) => {
3906
+ }, ei = { createColumn: (e, t) => {
3907
3907
  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 = () => {
3908
3908
  if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
3909
3909
  };
3910
- } }, Qr = (e, t, n) => {
3910
+ } }, ti = (e, t, n) => {
3911
3911
  var r, i;
3912
3912
  let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
3913
3913
  return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
3914
3914
  };
3915
- Qr.autoRemove = (e) => ci(e);
3916
- var $r = (e, t, n) => {
3915
+ ti.autoRemove = (e) => di(e);
3916
+ var ni = (e, t, n) => {
3917
3917
  var r;
3918
3918
  return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
3919
3919
  };
3920
- $r.autoRemove = (e) => ci(e);
3921
- var ei = (e, t, n) => {
3920
+ ni.autoRemove = (e) => di(e);
3921
+ var ri = (e, t, n) => {
3922
3922
  var r;
3923
3923
  return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
3924
3924
  };
3925
- ei.autoRemove = (e) => ci(e);
3926
- var ti = (e, t, n) => e.getValue(t)?.includes(n);
3927
- ti.autoRemove = (e) => ci(e);
3928
- var ni = (e, t, n) => !n.some((n) => {
3925
+ ri.autoRemove = (e) => di(e);
3926
+ var ii = (e, t, n) => e.getValue(t)?.includes(n);
3927
+ ii.autoRemove = (e) => di(e);
3928
+ var ai = (e, t, n) => !n.some((n) => {
3929
3929
  var r;
3930
3930
  return !((r = e.getValue(t)) != null && r.includes(n));
3931
3931
  });
3932
- ni.autoRemove = (e) => ci(e) || !(e != null && e.length);
3933
- var ri = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
3934
- ri.autoRemove = (e) => ci(e) || !(e != null && e.length);
3935
- var ii = (e, t, n) => e.getValue(t) === n;
3936
- ii.autoRemove = (e) => ci(e);
3937
- var ai = (e, t, n) => e.getValue(t) == n;
3938
- ai.autoRemove = (e) => ci(e);
3939
- var oi = (e, t, n) => {
3932
+ ai.autoRemove = (e) => di(e) || !(e != null && e.length);
3933
+ var oi = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
3934
+ oi.autoRemove = (e) => di(e) || !(e != null && e.length);
3935
+ var si = (e, t, n) => e.getValue(t) === n;
3936
+ si.autoRemove = (e) => di(e);
3937
+ var ci = (e, t, n) => e.getValue(t) == n;
3938
+ ci.autoRemove = (e) => di(e);
3939
+ var li = (e, t, n) => {
3940
3940
  let [r, i] = n, a = e.getValue(t);
3941
3941
  return a >= r && a <= i;
3942
3942
  };
3943
- oi.resolveFilterValue = (e) => {
3943
+ li.resolveFilterValue = (e) => {
3944
3944
  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;
3945
3945
  if (a > o) {
3946
3946
  let e = a;
3947
3947
  a = o, o = e;
3948
3948
  }
3949
3949
  return [a, o];
3950
- }, oi.autoRemove = (e) => ci(e) || ci(e[0]) && ci(e[1]);
3951
- var si = {
3952
- includesString: Qr,
3953
- includesStringSensitive: $r,
3954
- equalsString: ei,
3955
- arrIncludes: ti,
3956
- arrIncludesAll: ni,
3957
- arrIncludesSome: ri,
3958
- equals: ii,
3959
- weakEquals: ai,
3960
- inNumberRange: oi
3950
+ }, li.autoRemove = (e) => di(e) || di(e[0]) && di(e[1]);
3951
+ var ui = {
3952
+ includesString: ti,
3953
+ includesStringSensitive: ni,
3954
+ equalsString: ri,
3955
+ arrIncludes: ii,
3956
+ arrIncludesAll: ai,
3957
+ arrIncludesSome: oi,
3958
+ equals: si,
3959
+ weakEquals: ci,
3960
+ inNumberRange: li
3961
3961
  };
3962
- function ci(e) {
3962
+ function di(e) {
3963
3963
  return e == null || e === "";
3964
3964
  }
3965
- var li = {
3965
+ var fi = {
3966
3966
  getDefaultColumnDef: () => ({ filterFn: "auto" }),
3967
3967
  getInitialState: (e) => ({
3968
3968
  columnFilters: [],
@@ -3976,14 +3976,14 @@ var li = {
3976
3976
  createColumn: (e, t) => {
3977
3977
  e.getAutoFilterFn = () => {
3978
3978
  let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
3979
- return typeof n == "string" ? si.includesString : typeof n == "number" ? si.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? si.equals : Array.isArray(n) ? si.arrIncludes : si.weakEquals;
3980
- }, e.getFilterFn = () => Hr(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? si[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 = () => {
3979
+ return typeof n == "string" ? ui.includesString : typeof n == "number" ? ui.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? ui.equals : Array.isArray(n) ? ui.arrIncludes : ui.weakEquals;
3980
+ }, e.getFilterFn = () => Gr(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? ui[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 = () => {
3981
3981
  var n;
3982
3982
  return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
3983
3983
  }, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
3984
3984
  t.setColumnFilters((t) => {
3985
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = Vr(n, i ? i.value : void 0);
3986
- if (ui(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
3985
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = Wr(n, i ? i.value : void 0);
3986
+ if (pi(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
3987
3987
  let o = {
3988
3988
  id: e.id,
3989
3989
  value: a
@@ -3998,19 +3998,19 @@ var li = {
3998
3998
  createTable: (e) => {
3999
3999
  e.setColumnFilters = (t) => {
4000
4000
  let n = e.getAllLeafColumns();
4001
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => Vr(t, e)?.filter((e) => {
4001
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => Wr(t, e)?.filter((e) => {
4002
4002
  let t = n.find((t) => t.id === e.id);
4003
- return !(t && ui(t.getFilterFn(), e.value, t));
4003
+ return !(t && pi(t.getFilterFn(), e.value, t));
4004
4004
  }));
4005
4005
  }, e.resetColumnFilters = (t) => {
4006
4006
  e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
4007
4007
  }, 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());
4008
4008
  }
4009
4009
  };
4010
- function ui(e, t, n) {
4010
+ function pi(e, t, n) {
4011
4011
  return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
4012
4012
  }
4013
- var di = {
4013
+ var mi = {
4014
4014
  sum: (e, t, n) => n.reduce((t, n) => {
4015
4015
  let r = n.getValue(e);
4016
4016
  return t + (typeof r == "number" ? r : 0);
@@ -4046,7 +4046,7 @@ var di = {
4046
4046
  median: (e, t) => {
4047
4047
  if (!t.length) return;
4048
4048
  let n = t.map((t) => t.getValue(e));
4049
- if (!Ur(n)) return;
4049
+ if (!Kr(n)) return;
4050
4050
  if (n.length === 1) return n[0];
4051
4051
  let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
4052
4052
  return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -4054,7 +4054,7 @@ var di = {
4054
4054
  unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
4055
4055
  uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
4056
4056
  count: (e, t) => t.length
4057
- }, fi = {
4057
+ }, hi = {
4058
4058
  getDefaultColumnDef: () => ({
4059
4059
  aggregatedCell: (e) => {
4060
4060
  var t;
@@ -4080,11 +4080,11 @@ var di = {
4080
4080
  };
4081
4081
  }, e.getAutoAggregationFn = () => {
4082
4082
  let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
4083
- if (typeof n == "number") return di.sum;
4084
- if (Object.prototype.toString.call(n) === "[object Date]") return di.extent;
4083
+ if (typeof n == "number") return mi.sum;
4084
+ if (Object.prototype.toString.call(n) === "[object Date]") return mi.extent;
4085
4085
  }, e.getAggregationFn = () => {
4086
4086
  if (!e) throw Error();
4087
- return Hr(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? di[e.columnDef.aggregationFn];
4087
+ return Gr(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? mi[e.columnDef.aggregationFn];
4088
4088
  };
4089
4089
  },
4090
4090
  createTable: (e) => {
@@ -4106,20 +4106,20 @@ var di = {
4106
4106
  };
4107
4107
  }
4108
4108
  };
4109
- function pi(e, t, n) {
4109
+ function gi(e, t, n) {
4110
4110
  if (!(t != null && t.length) || !n) return e;
4111
4111
  let r = e.filter((e) => !t.includes(e.id));
4112
4112
  return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
4113
4113
  }
4114
- var mi = {
4114
+ var _i = {
4115
4115
  getInitialState: (e) => ({
4116
4116
  columnOrder: [],
4117
4117
  ...e
4118
4118
  }),
4119
4119
  getDefaultOptions: (e) => ({ onColumnOrderChange: X("columnOrder", e) }),
4120
4120
  createColumn: (e, t) => {
4121
- e.getIndex = Z((e) => [Ti(t, e)], (t) => t.findIndex((t) => t.id === e.id), Q(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Ti(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
4122
- let r = Ti(t, n);
4121
+ e.getIndex = Z((e) => [Oi(t, e)], (t) => t.findIndex((t) => t.id === e.id), Q(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Oi(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
4122
+ let r = Oi(t, n);
4123
4123
  return r[r.length - 1]?.id === e.id;
4124
4124
  };
4125
4125
  },
@@ -4141,15 +4141,15 @@ var mi = {
4141
4141
  }
4142
4142
  i = [...i, ...n];
4143
4143
  }
4144
- return pi(i, t, n);
4144
+ return gi(i, t, n);
4145
4145
  }, Q(e.options, "debugTable", "_getOrderColumnsFn"));
4146
4146
  }
4147
- }, hi = () => ({
4147
+ }, vi = () => ({
4148
4148
  left: [],
4149
4149
  right: []
4150
- }), gi = {
4150
+ }), yi = {
4151
4151
  getInitialState: (e) => ({
4152
- columnPinning: hi(),
4152
+ columnPinning: vi(),
4153
4153
  ...e
4154
4154
  }),
4155
4155
  getDefaultOptions: (e) => ({ onColumnPinningChange: X("columnPinning", e) }),
@@ -4192,7 +4192,7 @@ var mi = {
4192
4192
  })), Q(t.options, "debugRows", "getRightVisibleCells"));
4193
4193
  },
4194
4194
  createTable: (e) => {
4195
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? hi() : e.initialState?.columnPinning ?? hi()), e.getIsSomeColumnsPinned = (t) => {
4195
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? vi() : e.initialState?.columnPinning ?? vi()), e.getIsSomeColumnsPinned = (t) => {
4196
4196
  let n = e.getState().columnPinning;
4197
4197
  return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
4198
4198
  }, 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(() => [
@@ -4205,25 +4205,25 @@ var mi = {
4205
4205
  }, Q(e.options, "debugColumns", "getCenterLeafColumns"));
4206
4206
  }
4207
4207
  };
4208
- function _i(e) {
4208
+ function bi(e) {
4209
4209
  return e || (typeof document < "u" ? document : null);
4210
4210
  }
4211
- var vi = {
4211
+ var xi = {
4212
4212
  size: 150,
4213
4213
  minSize: 20,
4214
4214
  maxSize: 2 ** 53 - 1
4215
- }, yi = () => ({
4215
+ }, Si = () => ({
4216
4216
  startOffset: null,
4217
4217
  startSize: null,
4218
4218
  deltaOffset: null,
4219
4219
  deltaPercentage: null,
4220
4220
  isResizingColumn: !1,
4221
4221
  columnSizingStart: []
4222
- }), bi = {
4223
- getDefaultColumnDef: () => vi,
4222
+ }), Ci = {
4223
+ getDefaultColumnDef: () => xi,
4224
4224
  getInitialState: (e) => ({
4225
4225
  columnSizing: {},
4226
- columnSizingInfo: yi(),
4226
+ columnSizingInfo: Si(),
4227
4227
  ...e
4228
4228
  }),
4229
4229
  getDefaultOptions: (e) => ({
@@ -4235,14 +4235,14 @@ var vi = {
4235
4235
  createColumn: (e, t) => {
4236
4236
  e.getSize = () => {
4237
4237
  let n = t.getState().columnSizing[e.id];
4238
- return Math.min(Math.max(e.columnDef.minSize ?? vi.minSize, n ?? e.columnDef.size ?? vi.size), e.columnDef.maxSize ?? vi.maxSize);
4238
+ return Math.min(Math.max(e.columnDef.minSize ?? xi.minSize, n ?? e.columnDef.size ?? xi.size), e.columnDef.maxSize ?? xi.maxSize);
4239
4239
  }, e.getStart = Z((e) => [
4240
4240
  e,
4241
- Ti(t, e),
4241
+ Oi(t, e),
4242
4242
  t.getState().columnSizing
4243
4243
  ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getStart")), e.getAfter = Z((e) => [
4244
4244
  e,
4245
- Ti(t, e),
4245
+ Oi(t, e),
4246
4246
  t.getState().columnSizing
4247
4247
  ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
4248
4248
  t.setColumnSizing((t) => {
@@ -4266,8 +4266,8 @@ var vi = {
4266
4266
  }, e.getResizeHandler = (n) => {
4267
4267
  let r = t.getColumn(e.column.id), i = r?.getCanResize();
4268
4268
  return (a) => {
4269
- if (!r || !i || (a.persist == null || a.persist(), Ci(a) && a.touches && a.touches.length > 1)) return;
4270
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = Ci(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
4269
+ if (!r || !i || (a.persist == null || a.persist(), Ei(a) && a.touches && a.touches.length > 1)) return;
4270
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = Ei(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
4271
4271
  typeof n == "number" && (t.setColumnSizingInfo((e) => {
4272
4272
  let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
4273
4273
  return e.columnSizingStart.forEach((e) => {
@@ -4292,7 +4292,7 @@ var vi = {
4292
4292
  deltaPercentage: null,
4293
4293
  columnSizingStart: []
4294
4294
  }));
4295
- }, p = _i(n), m = {
4295
+ }, p = bi(n), m = {
4296
4296
  moveHandler: (e) => d(e.clientX),
4297
4297
  upHandler: (e) => {
4298
4298
  p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -4302,8 +4302,8 @@ var vi = {
4302
4302
  upHandler: (e) => {
4303
4303
  p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
4304
4304
  }
4305
- }, g = Si() ? { passive: !1 } : !1;
4306
- Ci(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) => ({
4305
+ }, g = Ti() ? { passive: !1 } : !1;
4306
+ Ei(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) => ({
4307
4307
  ...e,
4308
4308
  startOffset: c,
4309
4309
  startSize: o,
@@ -4319,12 +4319,12 @@ var vi = {
4319
4319
  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) => {
4320
4320
  e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
4321
4321
  }, e.resetHeaderSizeInfo = (t) => {
4322
- e.setColumnSizingInfo(t ? yi() : e.initialState.columnSizingInfo ?? yi());
4322
+ e.setColumnSizingInfo(t ? Si() : e.initialState.columnSizingInfo ?? Si());
4323
4323
  }, 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;
4324
4324
  }
4325
- }, xi = null;
4326
- function Si() {
4327
- if (typeof xi == "boolean") return xi;
4325
+ }, wi = null;
4326
+ function Ti() {
4327
+ if (typeof wi == "boolean") return wi;
4328
4328
  let e = !1;
4329
4329
  try {
4330
4330
  let t = { get passive() {
@@ -4334,12 +4334,12 @@ function Si() {
4334
4334
  } catch {
4335
4335
  e = !1;
4336
4336
  }
4337
- return xi = e, xi;
4337
+ return wi = e, wi;
4338
4338
  }
4339
- function Ci(e) {
4339
+ function Ei(e) {
4340
4340
  return e.type === "touchstart";
4341
4341
  }
4342
- var wi = {
4342
+ var Di = {
4343
4343
  getInitialState: (e) => ({
4344
4344
  columnVisibility: {},
4345
4345
  ...e
@@ -4383,14 +4383,14 @@ var wi = {
4383
4383
  };
4384
4384
  }
4385
4385
  };
4386
- function Ti(e, t) {
4386
+ function Oi(e, t) {
4387
4387
  return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
4388
4388
  }
4389
- var Ei = { createTable: (e) => {
4389
+ var ki = { createTable: (e) => {
4390
4390
  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 = () => {
4391
4391
  if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
4392
4392
  };
4393
- } }, Di = {
4393
+ } }, Ai = {
4394
4394
  getInitialState: (e) => ({
4395
4395
  globalFilter: void 0,
4396
4396
  ...e
@@ -4408,16 +4408,16 @@ var Ei = { createTable: (e) => {
4408
4408
  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;
4409
4409
  },
4410
4410
  createTable: (e) => {
4411
- e.getGlobalAutoFilterFn = () => si.includesString, e.getGlobalFilterFn = () => {
4411
+ e.getGlobalAutoFilterFn = () => ui.includesString, e.getGlobalFilterFn = () => {
4412
4412
  let { globalFilterFn: t } = e.options;
4413
- return Hr(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? si[t];
4413
+ return Gr(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? ui[t];
4414
4414
  }, e.setGlobalFilter = (t) => {
4415
4415
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
4416
4416
  }, e.resetGlobalFilter = (t) => {
4417
4417
  e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
4418
4418
  };
4419
4419
  }
4420
- }, Oi = {
4420
+ }, ji = {
4421
4421
  getInitialState: (e) => ({
4422
4422
  expanded: {},
4423
4423
  ...e
@@ -4494,14 +4494,14 @@ var Ei = { createTable: (e) => {
4494
4494
  };
4495
4495
  };
4496
4496
  }
4497
- }, ki = 0, Ai = 10, ji = () => ({
4498
- pageIndex: ki,
4499
- pageSize: Ai
4500
- }), Mi = {
4497
+ }, Mi = 0, Ni = 10, Pi = () => ({
4498
+ pageIndex: Mi,
4499
+ pageSize: Ni
4500
+ }), Fi = {
4501
4501
  getInitialState: (e) => ({
4502
4502
  ...e,
4503
4503
  pagination: {
4504
- ...ji(),
4504
+ ...Pi(),
4505
4505
  ...e?.pagination
4506
4506
  }
4507
4507
  }),
@@ -4521,11 +4521,11 @@ var Ei = { createTable: (e) => {
4521
4521
  e.resetPageIndex(), n = !1;
4522
4522
  });
4523
4523
  }
4524
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => Vr(t, e)), e.resetPagination = (t) => {
4525
- e.setPagination(t ? ji() : e.initialState.pagination ?? ji());
4524
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => Wr(t, e)), e.resetPagination = (t) => {
4525
+ e.setPagination(t ? Pi() : e.initialState.pagination ?? Pi());
4526
4526
  }, e.setPageIndex = (t) => {
4527
4527
  e.setPagination((n) => {
4528
- let r = Vr(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
4528
+ let r = Wr(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
4529
4529
  return r = Math.max(0, Math.min(r, i)), {
4530
4530
  ...n,
4531
4531
  pageIndex: r
@@ -4533,13 +4533,13 @@ var Ei = { createTable: (e) => {
4533
4533
  });
4534
4534
  }, e.resetPageIndex = (t) => {
4535
4535
  var n;
4536
- e.setPageIndex(t ? ki : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? ki);
4536
+ e.setPageIndex(t ? Mi : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? Mi);
4537
4537
  }, e.resetPageSize = (t) => {
4538
4538
  var n;
4539
- e.setPageSize(t ? Ai : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? Ai);
4539
+ e.setPageSize(t ? Ni : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? Ni);
4540
4540
  }, e.setPageSize = (t) => {
4541
4541
  e.setPagination((e) => {
4542
- let n = Math.max(1, Vr(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
4542
+ let n = Math.max(1, Wr(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
4543
4543
  return {
4544
4544
  ...e,
4545
4545
  pageIndex: i,
@@ -4547,7 +4547,7 @@ var Ei = { createTable: (e) => {
4547
4547
  };
4548
4548
  });
4549
4549
  }, e.setPageCount = (t) => e.setPagination((n) => {
4550
- let r = Vr(t, e.options.pageCount ?? -1);
4550
+ let r = Wr(t, e.options.pageCount ?? -1);
4551
4551
  return typeof r == "number" && (r = Math.max(-1, r)), {
4552
4552
  ...n,
4553
4553
  pageCount: r
@@ -4560,12 +4560,12 @@ var Ei = { createTable: (e) => {
4560
4560
  return n === -1 ? !0 : n === 0 ? !1 : t < n - 1;
4561
4561
  }, 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;
4562
4562
  }
4563
- }, Ni = () => ({
4563
+ }, Ii = () => ({
4564
4564
  top: [],
4565
4565
  bottom: []
4566
- }), Pi = {
4566
+ }), Li = {
4567
4567
  getInitialState: (e) => ({
4568
- rowPinning: Ni(),
4568
+ rowPinning: Ii(),
4569
4569
  ...e
4570
4570
  }),
4571
4571
  getDefaultOptions: (e) => ({ onRowPinningChange: X("rowPinning", e) }),
@@ -4607,7 +4607,7 @@ var Ei = { createTable: (e) => {
4607
4607
  };
4608
4608
  },
4609
4609
  createTable: (e) => {
4610
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? Ni() : e.initialState?.rowPinning ?? Ni()), e.getIsSomeRowsPinned = (t) => {
4610
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? Ii() : e.initialState?.rowPinning ?? Ii()), e.getIsSomeRowsPinned = (t) => {
4611
4611
  let n = e.getState().rowPinning;
4612
4612
  return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
4613
4613
  }, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -4625,7 +4625,7 @@ var Ei = { createTable: (e) => {
4625
4625
  return e.filter((e) => !r.has(e.id));
4626
4626
  }, Q(e.options, "debugRows", "getCenterRows"));
4627
4627
  }
4628
- }, Fi = {
4628
+ }, Ri = {
4629
4629
  getInitialState: (e) => ({
4630
4630
  rowSelection: {},
4631
4631
  ...e
@@ -4650,17 +4650,17 @@ var Ei = { createTable: (e) => {
4650
4650
  }, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
4651
4651
  let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
4652
4652
  return e.getRowModel().rows.forEach((t) => {
4653
- Ii(i, t.id, r, !0, e);
4653
+ zi(i, t.id, r, !0, e);
4654
4654
  }), i;
4655
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? Li(e, n) : {
4655
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? Bi(e, n) : {
4656
4656
  rows: [],
4657
4657
  flatRows: [],
4658
4658
  rowsById: {}
4659
- }, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? Li(e, n) : {
4659
+ }, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? Bi(e, n) : {
4660
4660
  rows: [],
4661
4661
  flatRows: [],
4662
4662
  rowsById: {}
4663
- }, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? Li(e, n) : {
4663
+ }, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? Bi(e, n) : {
4664
4664
  rows: [],
4665
4665
  flatRows: [],
4666
4666
  rowsById: {}
@@ -4688,17 +4688,17 @@ var Ei = { createTable: (e) => {
4688
4688
  t.setRowSelection((a) => {
4689
4689
  if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
4690
4690
  let o = { ...a };
4691
- return Ii(o, e.id, n, r?.selectChildren ?? !0, t), o;
4691
+ return zi(o, e.id, n, r?.selectChildren ?? !0, t), o;
4692
4692
  });
4693
4693
  }, e.getIsSelected = () => {
4694
4694
  let { rowSelection: n } = t.getState();
4695
- return Ri(e, n);
4695
+ return Vi(e, n);
4696
4696
  }, e.getIsSomeSelected = () => {
4697
4697
  let { rowSelection: n } = t.getState();
4698
- return zi(e, n) === "some";
4698
+ return Hi(e, n) === "some";
4699
4699
  }, e.getIsAllSubRowsSelected = () => {
4700
4700
  let { rowSelection: n } = t.getState();
4701
- return zi(e, n) === "all";
4701
+ return Hi(e, n) === "all";
4702
4702
  }, 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 = () => {
4703
4703
  let t = e.getCanSelect();
4704
4704
  return (n) => {
@@ -4706,16 +4706,16 @@ var Ei = { createTable: (e) => {
4706
4706
  };
4707
4707
  };
4708
4708
  }
4709
- }, Ii = (e, t, n, r, i) => {
4709
+ }, zi = (e, t, n, r, i) => {
4710
4710
  var a;
4711
4711
  let o = i.getRow(t, !0);
4712
- 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) => Ii(e, t.id, n, r, i));
4712
+ 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) => zi(e, t.id, n, r, i));
4713
4713
  };
4714
- function Li(e, t) {
4714
+ function Bi(e, t) {
4715
4715
  let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
4716
4716
  return e.map((e) => {
4717
4717
  var t;
4718
- let o = Ri(e, n);
4718
+ let o = Vi(e, n);
4719
4719
  if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
4720
4720
  ...e,
4721
4721
  subRows: a(e.subRows)
@@ -4728,32 +4728,32 @@ function Li(e, t) {
4728
4728
  rowsById: i
4729
4729
  };
4730
4730
  }
4731
- function Ri(e, t) {
4731
+ function Vi(e, t) {
4732
4732
  return t[e.id] ?? !1;
4733
4733
  }
4734
- function zi(e, t, n) {
4734
+ function Hi(e, t, n) {
4735
4735
  var r;
4736
4736
  if (!((r = e.subRows) != null && r.length)) return !1;
4737
4737
  let i = !0, a = !1;
4738
4738
  return e.subRows.forEach((e) => {
4739
- if (!(a && !i) && (e.getCanSelect() && (Ri(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
4740
- let n = zi(e, t);
4739
+ if (!(a && !i) && (e.getCanSelect() && (Vi(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
4740
+ let n = Hi(e, t);
4741
4741
  n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
4742
4742
  }
4743
4743
  }), i ? "all" : a ? "some" : !1;
4744
4744
  }
4745
- var Bi = /([0-9]+)/gm, Vi = (e, t, n) => Yi(Ji(e.getValue(n)).toLowerCase(), Ji(t.getValue(n)).toLowerCase()), Hi = (e, t, n) => Yi(Ji(e.getValue(n)), Ji(t.getValue(n))), Ui = (e, t, n) => qi(Ji(e.getValue(n)).toLowerCase(), Ji(t.getValue(n)).toLowerCase()), Wi = (e, t, n) => qi(Ji(e.getValue(n)), Ji(t.getValue(n))), Gi = (e, t, n) => {
4745
+ var Ui = /([0-9]+)/gm, Wi = (e, t, n) => Qi(Zi(e.getValue(n)).toLowerCase(), Zi(t.getValue(n)).toLowerCase()), Gi = (e, t, n) => Qi(Zi(e.getValue(n)), Zi(t.getValue(n))), Ki = (e, t, n) => Xi(Zi(e.getValue(n)).toLowerCase(), Zi(t.getValue(n)).toLowerCase()), qi = (e, t, n) => Xi(Zi(e.getValue(n)), Zi(t.getValue(n))), Ji = (e, t, n) => {
4746
4746
  let r = e.getValue(n), i = t.getValue(n);
4747
4747
  return r > i ? 1 : r < i ? -1 : 0;
4748
- }, Ki = (e, t, n) => qi(e.getValue(n), t.getValue(n));
4749
- function qi(e, t) {
4748
+ }, Yi = (e, t, n) => Xi(e.getValue(n), t.getValue(n));
4749
+ function Xi(e, t) {
4750
4750
  return e === t ? 0 : e > t ? 1 : -1;
4751
4751
  }
4752
- function Ji(e) {
4752
+ function Zi(e) {
4753
4753
  return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
4754
4754
  }
4755
- function Yi(e, t) {
4756
- let n = e.split(Bi).filter(Boolean), r = t.split(Bi).filter(Boolean);
4755
+ function Qi(e, t) {
4756
+ let n = e.split(Ui).filter(Boolean), r = t.split(Ui).filter(Boolean);
4757
4757
  for (; n.length && r.length;) {
4758
4758
  let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
4759
4759
  if (isNaN(o[0])) {
@@ -4767,22 +4767,22 @@ function Yi(e, t) {
4767
4767
  }
4768
4768
  return n.length - r.length;
4769
4769
  }
4770
- var Xi = {
4771
- alphanumeric: Vi,
4772
- alphanumericCaseSensitive: Hi,
4773
- text: Ui,
4774
- textCaseSensitive: Wi,
4775
- datetime: Gi,
4776
- basic: Ki
4777
- }, Zi = [
4778
- Jr,
4779
- wi,
4780
- mi,
4781
- gi,
4770
+ var $i = {
4771
+ alphanumeric: Wi,
4772
+ alphanumericCaseSensitive: Gi,
4773
+ text: Ki,
4774
+ textCaseSensitive: qi,
4775
+ datetime: Ji,
4776
+ basic: Yi
4777
+ }, ea = [
4782
4778
  Zr,
4783
- li,
4784
- Ei,
4785
4779
  Di,
4780
+ _i,
4781
+ yi,
4782
+ ei,
4783
+ fi,
4784
+ ki,
4785
+ Ai,
4786
4786
  {
4787
4787
  getInitialState: (e) => ({
4788
4788
  sorting: [],
@@ -4801,13 +4801,13 @@ var Xi = {
4801
4801
  let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
4802
4802
  for (let t of n) {
4803
4803
  let n = t?.getValue(e.id);
4804
- if (Object.prototype.toString.call(n) === "[object Date]") return Xi.datetime;
4805
- if (typeof n == "string" && (r = !0, n.split(Bi).length > 1)) return Xi.alphanumeric;
4804
+ if (Object.prototype.toString.call(n) === "[object Date]") return $i.datetime;
4805
+ if (typeof n == "string" && (r = !0, n.split(Ui).length > 1)) return $i.alphanumeric;
4806
4806
  }
4807
- return r ? Xi.text : Xi.basic;
4807
+ return r ? $i.text : $i.basic;
4808
4808
  }, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
4809
4809
  if (!e) throw Error();
4810
- return Hr(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? Xi[e.columnDef.sortingFn];
4810
+ return Gr(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? $i[e.columnDef.sortingFn];
4811
4811
  }, e.toggleSorting = (n, r) => {
4812
4812
  let i = e.getNextSortingOrder(), a = n != null;
4813
4813
  t.setSorting((o) => {
@@ -4844,16 +4844,16 @@ var Xi = {
4844
4844
  }, 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());
4845
4845
  }
4846
4846
  },
4847
- fi,
4848
- Oi,
4849
- Mi,
4850
- Pi,
4847
+ hi,
4848
+ ji,
4851
4849
  Fi,
4852
- bi
4850
+ Li,
4851
+ Ri,
4852
+ Ci
4853
4853
  ];
4854
- function Qi(e) {
4854
+ function ta(e) {
4855
4855
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
4856
- let t = [...Zi, ...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) : {
4856
+ let t = [...ea, ...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) : {
4857
4857
  ...r,
4858
4858
  ...e
4859
4859
  }, a = { ...e.initialState ?? {} };
@@ -4879,7 +4879,7 @@ function Qi(e) {
4879
4879
  n.setState(n.initialState);
4880
4880
  },
4881
4881
  setOptions: (e) => {
4882
- let t = Vr(e, n.options);
4882
+ let t = Wr(e, n.options);
4883
4883
  n.options = i(t);
4884
4884
  },
4885
4885
  getState: () => n.options.state,
@@ -4910,7 +4910,7 @@ function Qi(e) {
4910
4910
  getAllColumns: Z(() => [n._getColumnDefs()], (e) => {
4911
4911
  let t = function(e, r, i) {
4912
4912
  return i === void 0 && (i = 0), e.map((e) => {
4913
- let a = Kr(n, e, i, r), o = e;
4913
+ let a = Yr(n, e, i, r), o = e;
4914
4914
  return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
4915
4915
  });
4916
4916
  };
@@ -4931,7 +4931,7 @@ function Qi(e) {
4931
4931
  }
4932
4932
  return n;
4933
4933
  }
4934
- function $i() {
4934
+ function na() {
4935
4935
  return (e) => Z(() => [e.options.data], (t) => {
4936
4936
  let n = {
4937
4937
  rows: [],
@@ -4941,7 +4941,7 @@ function $i() {
4941
4941
  i === void 0 && (i = 0);
4942
4942
  let o = [];
4943
4943
  for (let c = 0; c < t.length; c++) {
4944
- let l = Xr(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
4944
+ let l = $r(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
4945
4945
  if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
4946
4946
  var s;
4947
4947
  l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -4954,28 +4954,28 @@ function $i() {
4954
4954
  }
4955
4955
  //#endregion
4956
4956
  //#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
4957
- function ea(e, t) {
4958
- return e ? ta(e) ? /*#__PURE__*/ g.createElement(e, t) : e : null;
4957
+ function ra(e, t) {
4958
+ return e ? ia(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
4959
4959
  }
4960
- function ta(e) {
4961
- return na(e) || typeof e == "function" || ra(e);
4960
+ function ia(e) {
4961
+ return aa(e) || typeof e == "function" || oa(e);
4962
4962
  }
4963
- function na(e) {
4963
+ function aa(e) {
4964
4964
  return typeof e == "function" && (() => {
4965
4965
  let t = Object.getPrototypeOf(e);
4966
4966
  return t.prototype && t.prototype.isReactComponent;
4967
4967
  })();
4968
4968
  }
4969
- function ra(e) {
4969
+ function oa(e) {
4970
4970
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
4971
4971
  }
4972
- function ia(e) {
4972
+ function sa(e) {
4973
4973
  let t = {
4974
4974
  state: {},
4975
4975
  onStateChange: () => {},
4976
4976
  renderFallbackValue: null,
4977
4977
  ...e
4978
- }, [n] = g.useState(() => ({ current: Qi(t) })), [r, i] = g.useState(() => n.current.initialState);
4978
+ }, [n] = y.useState(() => ({ current: ta(t) })), [r, i] = y.useState(() => n.current.initialState);
4979
4979
  return n.current.setOptions((t) => ({
4980
4980
  ...t,
4981
4981
  ...e,
@@ -4990,80 +4990,114 @@ function ia(e) {
4990
4990
  }
4991
4991
  //#endregion
4992
4992
  //#region src/components/DataTable/DataTable.tsx
4993
- function aa({ columns: e, rows: t = 5 }) {
4994
- return /* @__PURE__ */ h(Y, { children: [/* @__PURE__ */ m(Y.Header, { children: /* @__PURE__ */ m(Y.Row, { children: e.map((e, t) => /* @__PURE__ */ m(Y.Head, { children: typeof e.header == "string" ? e.header : null }, e.id ?? t)) }) }), /* @__PURE__ */ m(Y.Body, { children: Array.from({ length: t }).map((t, n) => /* @__PURE__ */ m(Y.Row, { children: e.map((e, t) => /* @__PURE__ */ m(Y.Cell, { children: /* @__PURE__ */ m("div", { className: "h-4 w-full max-w-40 animate-pulse rounded bg-eds-neutral-background" }) }, t)) }, n)) })] });
4993
+ function ca({ direction: e }) {
4994
+ return e === "asc" ? /* @__PURE__ */ _(n, {
4995
+ className: "size-3.5",
4996
+ "aria-hidden": !0
4997
+ }) : e === "desc" ? /* @__PURE__ */ _(t, {
4998
+ className: "size-3.5",
4999
+ "aria-hidden": !0
5000
+ }) : /* @__PURE__ */ _(l, {
5001
+ className: "size-3.5 text-eds-neutral-elements",
5002
+ "aria-hidden": !0
5003
+ });
5004
+ }
5005
+ function la({ columns: e, rows: t = 5, dividers: n }) {
5006
+ return /* @__PURE__ */ v(Y, {
5007
+ dividers: n,
5008
+ 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)) })]
5009
+ });
4995
5010
  }
4996
- function oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, onPageChange: s, search: l, emptyStateTitle: d = "Nenhum resultado encontrado", emptyStateDescription: f, meta: p, "aria-label": g, className: _ }) {
4997
- let v = ia({
5011
+ function ua({ 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 }) {
5012
+ let x = l !== void 0 && !!u, S = sa({
4998
5013
  data: t,
4999
5014
  columns: e,
5000
- getCoreRowModel: $i(),
5001
- meta: p
5002
- }), y = v.getRowModel().rows, b = i ? Math.max(1, Math.ceil(i.total / Math.max(1, i.limit))) : 1, ee = !!i && !!s && b > 1;
5003
- return /* @__PURE__ */ h("div", {
5015
+ getCoreRowModel: na(),
5016
+ meta: h,
5017
+ state: x ? { sorting: l } : void 0,
5018
+ onSortingChange: u,
5019
+ manualSorting: !0,
5020
+ enableSorting: x
5021
+ }), C = S.getRowModel().rows, ee = i ? Math.max(1, Math.ceil(i.total / Math.max(1, i.limit))) : 1, w = !!i && !!a && ee > 1;
5022
+ return /* @__PURE__ */ v("div", {
5004
5023
  "data-eds-component": "DataTable",
5005
- className: P("flex w-full flex-col gap-4", _),
5024
+ className: I("flex w-full flex-col gap-4", y),
5006
5025
  children: [
5007
- l && /* @__PURE__ */ m("div", {
5026
+ o && /* @__PURE__ */ _("div", {
5008
5027
  className: "flex justify-end",
5009
- children: /* @__PURE__ */ m(gr, {
5028
+ children: /* @__PURE__ */ _(yr, {
5010
5029
  label: "Buscar",
5011
5030
  labelVariant: "floating",
5012
5031
  className: "w-full max-w-sm",
5013
- icon: u,
5014
- value: l.value,
5015
- placeholder: l.placeholder ?? "Buscar...",
5016
- onChange: (e) => l.onChange(e),
5017
- "aria-label": l.placeholder ?? "Buscar"
5032
+ icon: p,
5033
+ value: o.value,
5034
+ placeholder: o.placeholder ?? "Buscar...",
5035
+ onChange: (e) => o.onChange(e),
5036
+ "aria-label": o.placeholder ?? "Buscar"
5018
5037
  })
5019
5038
  }),
5020
- n && /* @__PURE__ */ h("div", {
5039
+ n && /* @__PURE__ */ v("div", {
5021
5040
  className: "flex items-center justify-center gap-2 py-2 text-eds-neutral-elements text-sm",
5022
5041
  role: "status",
5023
5042
  "aria-label": "Carregando",
5024
- children: [/* @__PURE__ */ m(c, {
5043
+ children: [/* @__PURE__ */ _(d, {
5025
5044
  className: "size-4 animate-spin",
5026
5045
  "aria-hidden": !0
5027
5046
  }), "Carregando..."]
5028
5047
  }),
5029
- n ? /* @__PURE__ */ m(aa, { columns: e }) : r ? /* @__PURE__ */ m(ar, {
5030
- title: d,
5031
- description: f ?? "Houve um erro ao buscar os dados. Tente novamente."
5032
- }) : y.length === 0 ? /* @__PURE__ */ m(ar, {
5033
- title: d,
5034
- description: f
5035
- }) : /* @__PURE__ */ h(Y, {
5048
+ n ? /* @__PURE__ */ _(la, {
5049
+ columns: e,
5050
+ dividers: b
5051
+ }) : r ? /* @__PURE__ */ _(cr, {
5052
+ title: f,
5053
+ description: m ?? "Houve um erro ao buscar os dados. Tente novamente."
5054
+ }) : C.length === 0 ? /* @__PURE__ */ _(cr, {
5055
+ title: f,
5056
+ description: m
5057
+ }) : /* @__PURE__ */ v(Y, {
5036
5058
  "aria-label": g,
5037
- children: [/* @__PURE__ */ m(Y.Header, { children: v.getHeaderGroups().map((e) => /* @__PURE__ */ m(Y.Row, { children: e.headers.map((e) => /* @__PURE__ */ m(Y.Head, { children: e.isPlaceholder ? null : ea(e.column.columnDef.header, e.getContext()) }, e.id)) }, e.id)) }), /* @__PURE__ */ m(Y.Body, { children: y.map((e) => /* @__PURE__ */ m(Y.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ m(Y.Cell, { children: ea(e.column.columnDef.cell, e.getContext()) }, e.id)) }, e.id)) })]
5059
+ dividers: b,
5060
+ children: [/* @__PURE__ */ _(Y.Header, { children: S.getHeaderGroups().map((e) => /* @__PURE__ */ _(Y.Row, { children: e.headers.map((e) => {
5061
+ let t = e.column.getIsSorted();
5062
+ return /* @__PURE__ */ _(Y.Head, {
5063
+ "aria-sort": e.column.getCanSort() ? t === "asc" ? "ascending" : t === "desc" ? "descending" : "none" : void 0,
5064
+ children: e.isPlaceholder ? null : e.column.getCanSort() ? /* @__PURE__ */ v("button", {
5065
+ type: "button",
5066
+ className: "flex select-none items-center gap-1 font-semibold",
5067
+ onClick: e.column.getToggleSortingHandler(),
5068
+ children: [ra(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ _(ca, { direction: t })]
5069
+ }) : ra(e.column.columnDef.header, e.getContext())
5070
+ }, e.id);
5071
+ }) }, e.id)) }), /* @__PURE__ */ _(Y.Body, { children: C.map((e) => /* @__PURE__ */ _(Y.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ _(Y.Cell, { children: ra(e.column.columnDef.cell, e.getContext()) }, e.id)) }, e.id)) })]
5038
5072
  }),
5039
- ee && /* @__PURE__ */ h("div", {
5073
+ w && /* @__PURE__ */ v("div", {
5040
5074
  className: "flex items-center justify-center gap-2",
5041
5075
  children: [
5042
- /* @__PURE__ */ m(Dt, {
5076
+ /* @__PURE__ */ _(At, {
5043
5077
  type: "button",
5044
5078
  variant: "outline",
5045
5079
  size: "sm",
5046
- icon: a,
5080
+ icon: s,
5047
5081
  label: "Página anterior",
5048
5082
  disabled: i.page <= 1,
5049
- onClick: () => s?.(i.page - 1)
5083
+ onClick: () => a?.(i.page - 1)
5050
5084
  }),
5051
- /* @__PURE__ */ h("span", {
5085
+ /* @__PURE__ */ v("span", {
5052
5086
  className: "text-sm text-eds-neutral-elements",
5053
5087
  children: [
5054
5088
  i.page,
5055
5089
  " / ",
5056
- b
5090
+ ee
5057
5091
  ]
5058
5092
  }),
5059
- /* @__PURE__ */ m(Dt, {
5093
+ /* @__PURE__ */ _(At, {
5060
5094
  type: "button",
5061
5095
  variant: "outline",
5062
5096
  size: "sm",
5063
- icon: o,
5097
+ icon: c,
5064
5098
  label: "Próxima página",
5065
- disabled: i.page >= b,
5066
- onClick: () => s?.(i.page + 1)
5099
+ disabled: i.page >= ee,
5100
+ onClick: () => a?.(i.page + 1)
5067
5101
  })
5068
5102
  ]
5069
5103
  })
@@ -5072,31 +5106,31 @@ function oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
5072
5106
  }
5073
5107
  //#endregion
5074
5108
  //#region src/components/Tabs/Tabs.tsx
5075
- var sa = {
5109
+ var da = {
5076
5110
  variant: "segmented",
5077
5111
  size: "md"
5078
5112
  };
5079
- function ca({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = sa.variant, size: l = sa.size }) {
5080
- let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: g, isOverflowing: _ } = ua(d), v = la(g, _);
5113
+ function fa({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = da.variant, size: l = da.size }) {
5114
+ let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } = ma(d), g = pa(m, h);
5081
5115
  if (u.length === 0) return null;
5082
- let y = u[0]?.value, b = t !== void 0, ee = {
5116
+ let y = u[0]?.value, b = t !== void 0, x = {
5083
5117
  value: b ? t : void 0,
5084
5118
  defaultValue: b ? void 0 : n ?? y
5085
5119
  };
5086
- return /* @__PURE__ */ h(N.Root, {
5087
- ...ee,
5120
+ return /* @__PURE__ */ v(F.Root, {
5121
+ ...x,
5088
5122
  "data-eds-component": "Tabs",
5089
- className: P("relative isolate min-w-0 font-medium", d && (p ? "rounded-md" : "rounded-lg") + " ring ring-eds-outline-border", a),
5123
+ className: I("relative isolate min-w-0 font-medium", d && (p ? "rounded-md" : "rounded-lg") + " ring ring-eds-outline-border", a),
5090
5124
  onValueChange: (e) => {
5091
5125
  r?.(String(e));
5092
5126
  },
5093
- children: [d && /* @__PURE__ */ m("div", { className: P("absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-eds-neutral-background", p ? "h-6.5" : "h-9") }), /* @__PURE__ */ h(N.List, {
5094
- ref: g,
5127
+ children: [d && /* @__PURE__ */ _("div", { className: I("absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-eds-neutral-background", p ? "h-6.5" : "h-9") }), /* @__PURE__ */ v(F.List, {
5128
+ ref: m,
5095
5129
  activateOnFocus: i,
5096
- "data-overflowing": _ ? "" : void 0,
5097
- ...v(),
5098
- className: P("relative flex min-w-0 shrink items-stretch", d && "overflow-x-auto rounded-lg bg-eds-neutral-background px-0.5 [--scroll-fade-width:3rem] scroll-px-(--scroll-fade-width)", d && _ && "[mask-image:linear-gradient(to_right,transparent,black_var(--scroll-fade-width),black_calc(100%-var(--scroll-fade-width)),transparent)]", d && (p ? "h-6.5 rounded-md" : "h-9"), _ && "cursor-grab active:cursor-grabbing", f && "gap-4 border-b border-eds-outline-border pb-2", f && (p ? "h-6.5" : "h-7.5"), o),
5099
- children: [u.map((e) => /* @__PURE__ */ m(N.Tab, {
5130
+ "data-overflowing": h ? "" : void 0,
5131
+ ...g(),
5132
+ className: I("relative flex min-w-0 shrink items-stretch", d && "overflow-x-auto rounded-lg bg-eds-neutral-background px-0.5 [--scroll-fade-width:3rem] scroll-px-(--scroll-fade-width)", d && h && "[mask-image:linear-gradient(to_right,transparent,black_var(--scroll-fade-width),black_calc(100%-var(--scroll-fade-width)),transparent)]", d && (p ? "h-6.5 rounded-md" : "h-9"), h && "cursor-grab active:cursor-grabbing", f && "gap-4 border-b border-eds-outline-border pb-2", f && (p ? "h-6.5" : "h-7.5"), o),
5133
+ children: [u.map((e) => /* @__PURE__ */ _(F.Tab, {
5100
5134
  value: e.value,
5101
5135
  render: e.render,
5102
5136
  onClick: (e) => {
@@ -5106,17 +5140,17 @@ function ca({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
5106
5140
  inline: "nearest"
5107
5141
  });
5108
5142
  },
5109
- className: P("relative z-2 flex items-center rounded bg-transparent whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", _ ? "cursor-grab active:cursor-grabbing" : "cursor-pointer", p ? "text-xs" : "text-base", d && "my-0.5 text-eds-neutral-elements hover:text-eds-neutral-main aria-selected:text-eds-neutral-main focus-visible:ring-inset", d && (p ? "px-2 rounded-sm" : "px-2.5 rounded-md"), f && "text-eds-neutral-elements hover:bg-eds-neutral-elements/10 hover:text-eds-neutral-main aria-selected:hover:bg-eds-neutral-elements/10 aria-selected:font-medium aria-selected:text-eds-neutral-main", f && (p ? "px-1.5 py-2.5" : "px-2 py-3"), e.className),
5143
+ className: I("relative z-2 flex items-center rounded bg-transparent whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", h ? "cursor-grab active:cursor-grabbing" : "cursor-pointer", p ? "text-xs" : "text-base", d && "my-0.5 text-eds-neutral-elements hover:text-eds-neutral-main aria-selected:text-eds-neutral-main focus-visible:ring-inset", d && (p ? "px-2 rounded-sm" : "px-2.5 rounded-md"), f && "text-eds-neutral-elements hover:bg-eds-neutral-elements/10 hover:text-eds-neutral-main aria-selected:hover:bg-eds-neutral-elements/10 aria-selected:font-medium aria-selected:text-eds-neutral-main", f && (p ? "px-1.5 py-2.5" : "px-2 py-3"), e.className),
5110
5144
  children: e.label
5111
- }, e.value)), /* @__PURE__ */ m(N.Indicator, { render: (e) => /* @__PURE__ */ m("div", {
5145
+ }, e.value)), /* @__PURE__ */ _(F.Indicator, { render: (e) => /* @__PURE__ */ _("div", {
5112
5146
  ...e,
5113
- className: P("absolute z-1 left-0", "w-(--active-tab-width) translate-x-(--active-tab-left) transition-all duration-200", "data-[rendered=false]:scale-90 data-[rendered=false]:opacity-0", d && P("top-(--active-tab-top) h-(--active-tab-height) bg-white shadow-sm ring ring-eds-outline-border", p ? "rounded" : "rounded-md"), f && "bottom-0 h-0.5 bg-eds-blue-main", s)
5147
+ className: I("absolute z-1 left-0", "w-(--active-tab-width) translate-x-(--active-tab-left) transition-all duration-200", "data-[rendered=false]:scale-90 data-[rendered=false]:opacity-0", d && I("top-(--active-tab-top) h-(--active-tab-height) bg-white shadow-sm ring ring-eds-outline-border", p ? "rounded" : "rounded-md"), f && "bottom-0 h-0.5 bg-eds-blue-main", s)
5114
5148
  }) })]
5115
5149
  })]
5116
5150
  });
5117
5151
  }
5118
- function la(e, t) {
5119
- let n = S(null), r = S(!1);
5152
+ function pa(e, t) {
5153
+ let n = T(null), r = T(!1);
5120
5154
  return () => ({
5121
5155
  onPointerDownCapture: (i) => {
5122
5156
  let a = e.current;
@@ -5152,9 +5186,9 @@ function la(e, t) {
5152
5186
  }
5153
5187
  });
5154
5188
  }
5155
- function ua(e) {
5156
- let t = S(null), [n, r] = C(!1);
5157
- return b(() => {
5189
+ function ma(e) {
5190
+ let t = T(null), [n, r] = E(!1);
5191
+ return C(() => {
5158
5192
  if (!e) return;
5159
5193
  let n = t.current;
5160
5194
  if (!n) return;
@@ -5166,4 +5200,4 @@ function ua(e) {
5166
5200
  };
5167
5201
  }
5168
5202
  //#endregion
5169
- export { Xt as Attachment, qt as AttachmentAction, Kt as AttachmentActions, Ut as AttachmentContent, Gt as AttachmentDescription, Yt as AttachmentGroup, Ht as AttachmentMedia, Wt as AttachmentTitle, Jt as AttachmentTrigger, B as Button, re as COLORS, At as Calendar, Rt as Card, $t as Checkbox, xn as Combobox, oa as DataTable, En as DatePicker, Pn as DateTimePicker, Jn as Dialog, ar as Empty, nr as FormDialog, Dt as IconButton, gr as Input, xr as Select, Y as Table, ca as Tabs, Dr as Text, yr as Textarea };
5203
+ export { $t as Attachment, Xt as AttachmentAction, Yt as AttachmentActions, Kt as AttachmentContent, Jt as AttachmentDescription, Qt as AttachmentGroup, Gt as AttachmentMedia, qt as AttachmentTitle, Zt as AttachmentTrigger, V as Button, ae as COLORS, Nt as Calendar, Vt as Card, nn as Checkbox, wn as Combobox, ua as DataTable, kn as DatePicker, Ln as DateTimePicker, Zn as Dialog, cr as Empty, ar as FormDialog, At as IconButton, yr as Input, wr as Select, Y as Table, fa as Tabs, Ar as Text, Sr as Textarea };