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