@vincisys/eyeson 0.11.0 → 0.11.1

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
@@ -55,17 +55,17 @@ var ie = /* @__PURE__ */ new Set([
55
55
  }, z = {
56
56
  size: "md",
57
57
  variant: "solid"
58
- }, ae = {
58
+ }, B = {
59
59
  sm: 14,
60
60
  md: 16,
61
61
  lg: 16
62
62
  };
63
- function B({ variant: e = z.variant, size: t = z.size, fluid: n = !1 }) {
63
+ function V({ variant: e = z.variant, size: t = z.size, fluid: n = !1 }) {
64
64
  let r = L(R.size, t, z.size), i = L(R.variant, e, z.variant);
65
65
  return I("eds-btn group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:not-data-loading:opacity-50 data-loading:data-disabled:cursor-wait data-loading:data-disabled:opacity-100", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r.classes, i.classes, n && "w-full");
66
66
  }
67
- function oe({ text: t = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: s = "md", fluid: c = !1, isLoading: l = !1, disabled: u, style: f, ...p }) {
68
- let m = ae[s], h = !!(u || l), y = !!(l || r), b = i === "end" ? "inline-end" : "inline-start", x = {
67
+ function ae({ text: 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 = B[s], h = !!(u || l), y = !!(l || r), b = i === "end" ? "inline-end" : "inline-start", x = {
69
69
  "--eds-btn-accent": `var(--color-eds-${o})`,
70
70
  ...ie.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
71
71
  ...f
@@ -82,7 +82,7 @@ function oe({ text: t = "Button", className: n, icon: r, iconPosition: i = "star
82
82
  })
83
83
  }) : null;
84
84
  return /* @__PURE__ */ _(e, {
85
- className: I(B({
85
+ className: I(V({
86
86
  variant: a,
87
87
  size: s,
88
88
  fluid: c
@@ -98,7 +98,7 @@ function oe({ text: t = "Button", className: n, icon: r, iconPosition: i = "star
98
98
  }
99
99
  //#endregion
100
100
  //#region src/constants/colors.ts
101
- var se = [
101
+ var oe = [
102
102
  "blue-background",
103
103
  "blue-dark",
104
104
  "blue-main",
@@ -119,142 +119,142 @@ var se = [
119
119
  "red-dark",
120
120
  "red-main",
121
121
  "red-middle"
122
- ], V = 365.2425, ce = 6048e5, H = 864e5, le = 3600 * 24;
123
- le * 7, le * V / 12 * 3;
124
- var ue = Symbol.for("constructDateFrom");
122
+ ], H = 365.2425, se = 6048e5, U = 864e5, ce = 3600 * 24;
123
+ ce * 7, ce * H / 12 * 3;
124
+ var le = Symbol.for("constructDateFrom");
125
125
  //#endregion
126
126
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
127
- function U(e, t) {
128
- return typeof e == "function" ? e(t) : e && typeof e == "object" && ue in e ? e[ue](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
127
+ function W(e, t) {
128
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && le in e ? e[le](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
129
129
  }
130
130
  //#endregion
131
131
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
132
- function W(e, t) {
133
- return U(t || e, e);
132
+ function G(e, t) {
133
+ return W(t || e, e);
134
134
  }
135
135
  //#endregion
136
136
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
137
- function de(e, t, n) {
138
- let r = W(e, n?.in);
139
- return isNaN(t) ? U(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
137
+ function ue(e, t, n) {
138
+ let r = G(e, n?.in);
139
+ return isNaN(t) ? W(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
140
140
  }
141
141
  //#endregion
142
142
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
143
- function fe(e, t, n) {
144
- let r = W(e, n?.in);
145
- if (isNaN(t)) return U(n?.in || e, NaN);
143
+ function de(e, t, n) {
144
+ let r = G(e, n?.in);
145
+ if (isNaN(t)) return W(n?.in || e, NaN);
146
146
  if (!t) return r;
147
- let i = r.getDate(), a = U(n?.in || e, r.getTime());
147
+ let i = r.getDate(), a = W(n?.in || e, r.getTime());
148
148
  return a.setMonth(r.getMonth() + t + 1, 0), i >= a.getDate() ? a : (r.setFullYear(a.getFullYear(), a.getMonth(), i), r);
149
149
  }
150
150
  //#endregion
151
151
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
152
- var pe = {};
153
- function me() {
154
- return pe;
152
+ var fe = {};
153
+ function pe() {
154
+ return fe;
155
155
  }
156
156
  //#endregion
157
157
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
158
- function G(e, t) {
159
- let n = me(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = W(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
158
+ function K(e, t) {
159
+ let n = pe(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = G(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
160
160
  return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
161
161
  }
162
162
  //#endregion
163
163
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
164
- function K(e, t) {
165
- return G(e, {
164
+ function q(e, t) {
165
+ return K(e, {
166
166
  ...t,
167
167
  weekStartsOn: 1
168
168
  });
169
169
  }
170
170
  //#endregion
171
171
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
172
- function he(e, t) {
173
- let n = W(e, t?.in), r = n.getFullYear(), i = U(n, 0);
172
+ function me(e, t) {
173
+ let n = G(e, t?.in), r = n.getFullYear(), i = W(n, 0);
174
174
  i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
175
- let a = K(i), o = U(n, 0);
175
+ let a = q(i), o = W(n, 0);
176
176
  o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
177
- let s = K(o);
177
+ let s = q(o);
178
178
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
179
179
  }
180
180
  //#endregion
181
181
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
182
- function ge(e) {
183
- let t = W(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
182
+ function he(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()));
184
184
  return n.setUTCFullYear(t.getFullYear()), e - +n;
185
185
  }
186
186
  //#endregion
187
187
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
188
- function _e(e, ...t) {
189
- let n = U.bind(null, e || t.find((e) => typeof e == "object"));
188
+ function ge(e, ...t) {
189
+ let n = W.bind(null, e || t.find((e) => typeof e == "object"));
190
190
  return t.map(n);
191
191
  }
192
192
  //#endregion
193
193
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
194
- function ve(e, t) {
195
- let n = W(e, t?.in);
194
+ function _e(e, t) {
195
+ let n = G(e, t?.in);
196
196
  return n.setHours(0, 0, 0, 0), n;
197
197
  }
198
198
  //#endregion
199
199
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
200
- function ye(e, t, n) {
201
- let [r, i] = _e(n?.in, e, t), a = ve(r), o = ve(i), s = +a - ge(a), c = +o - ge(o);
202
- return Math.round((s - c) / H);
200
+ function ve(e, t, n) {
201
+ let [r, i] = ge(n?.in, e, t), a = _e(r), o = _e(i), s = +a - he(a), c = +o - he(o);
202
+ return Math.round((s - c) / U);
203
203
  }
204
204
  //#endregion
205
205
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
206
- function be(e, t) {
207
- let n = he(e, t), r = U(t?.in || e, 0);
208
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), K(r);
206
+ function ye(e, t) {
207
+ let n = me(e, t), r = W(t?.in || e, 0);
208
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), q(r);
209
209
  }
210
210
  //#endregion
211
211
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructNow.js
212
- function xe(e) {
213
- return U(e, Date.now());
212
+ function be(e) {
213
+ return W(e, Date.now());
214
214
  }
215
215
  //#endregion
216
216
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
217
- function Se(e, t, n) {
218
- let [r, i] = _e(n?.in, e, t);
219
- return +ve(r) == +ve(i);
217
+ function xe(e, t, n) {
218
+ let [r, i] = ge(n?.in, e, t);
219
+ return +_e(r) == +_e(i);
220
220
  }
221
221
  //#endregion
222
222
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
223
- function Ce(e) {
223
+ function Se(e) {
224
224
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
225
225
  }
226
226
  //#endregion
227
227
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
228
- function we(e) {
229
- return !(!Ce(e) && typeof e != "number" || isNaN(+W(e)));
228
+ function Ce(e) {
229
+ return !(!Se(e) && typeof e != "number" || isNaN(+G(e)));
230
230
  }
231
231
  //#endregion
232
232
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
233
- function Te(e, t) {
234
- let n = W(e, t?.in), r = n.getMonth();
233
+ function we(e, t) {
234
+ let n = G(e, t?.in), r = n.getMonth();
235
235
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
236
236
  }
237
237
  //#endregion
238
238
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
239
- function Ee(e, t) {
240
- let n = W(e, t?.in);
239
+ function Te(e, t) {
240
+ let n = G(e, t?.in);
241
241
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
242
242
  }
243
243
  //#endregion
244
244
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
245
- function De(e, t) {
246
- let n = W(e, t?.in);
245
+ function Ee(e, t) {
246
+ let n = G(e, t?.in);
247
247
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
248
248
  }
249
249
  //#endregion
250
250
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
251
- function Oe(e, t) {
252
- let n = me(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = W(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
251
+ function De(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);
253
253
  return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
254
254
  }
255
255
  //#endregion
256
256
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
257
- var ke = {
257
+ var Oe = {
258
258
  lessThanXSeconds: {
259
259
  one: "less than a second",
260
260
  other: "less than {{count}} seconds"
@@ -316,20 +316,20 @@ var ke = {
316
316
  one: "almost 1 year",
317
317
  other: "almost {{count}} years"
318
318
  }
319
- }, Ae = (e, t, n) => {
320
- let r, i = ke[e];
319
+ }, ke = (e, t, n) => {
320
+ let r, i = Oe[e];
321
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;
322
322
  };
323
323
  //#endregion
324
324
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
325
- function je(e) {
325
+ function Ae(e) {
326
326
  return (t = {}) => {
327
327
  let n = t.width ? String(t.width) : e.defaultWidth;
328
328
  return e.formats[n] || e.formats[e.defaultWidth];
329
329
  };
330
330
  }
331
- var Me = {
332
- date: je({
331
+ var je = {
332
+ date: Ae({
333
333
  formats: {
334
334
  full: "EEEE, MMMM do, y",
335
335
  long: "MMMM do, y",
@@ -338,7 +338,7 @@ var Me = {
338
338
  },
339
339
  defaultWidth: "full"
340
340
  }),
341
- time: je({
341
+ time: Ae({
342
342
  formats: {
343
343
  full: "h:mm:ss a zzzz",
344
344
  long: "h:mm:ss a z",
@@ -347,7 +347,7 @@ var Me = {
347
347
  },
348
348
  defaultWidth: "full"
349
349
  }),
350
- dateTime: je({
350
+ dateTime: Ae({
351
351
  formats: {
352
352
  full: "{{date}} 'at' {{time}}",
353
353
  long: "{{date}} 'at' {{time}}",
@@ -356,17 +356,17 @@ var Me = {
356
356
  },
357
357
  defaultWidth: "full"
358
358
  })
359
- }, Ne = {
359
+ }, Me = {
360
360
  lastWeek: "'last' eeee 'at' p",
361
361
  yesterday: "'yesterday at' p",
362
362
  today: "'today at' p",
363
363
  tomorrow: "'tomorrow at' p",
364
364
  nextWeek: "eeee 'at' p",
365
365
  other: "P"
366
- }, Pe = (e, t, n, r) => Ne[e];
366
+ }, Ne = (e, t, n, r) => Me[e];
367
367
  //#endregion
368
368
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
369
- function Fe(e) {
369
+ function Pe(e) {
370
370
  return (t, n) => {
371
371
  let r = n?.context ? String(n.context) : "standalone", i;
372
372
  if (r === "formatting" && e.formattingValues) {
@@ -380,7 +380,7 @@ function Fe(e) {
380
380
  return i[a];
381
381
  };
382
382
  }
383
- var Ie = {
383
+ var Fe = {
384
384
  ordinalNumber: (e, t) => {
385
385
  let n = Number(e), r = n % 100;
386
386
  if (r > 20 || r < 10) switch (r % 10) {
@@ -390,7 +390,7 @@ var Ie = {
390
390
  }
391
391
  return n + "th";
392
392
  },
393
- era: Fe({
393
+ era: Pe({
394
394
  values: {
395
395
  narrow: ["B", "A"],
396
396
  abbreviated: ["BC", "AD"],
@@ -398,7 +398,7 @@ var Ie = {
398
398
  },
399
399
  defaultWidth: "wide"
400
400
  }),
401
- quarter: Fe({
401
+ quarter: Pe({
402
402
  values: {
403
403
  narrow: [
404
404
  "1",
@@ -422,7 +422,7 @@ var Ie = {
422
422
  defaultWidth: "wide",
423
423
  argumentCallback: (e) => e - 1
424
424
  }),
425
- month: Fe({
425
+ month: Pe({
426
426
  values: {
427
427
  narrow: [
428
428
  "J",
@@ -469,7 +469,7 @@ var Ie = {
469
469
  },
470
470
  defaultWidth: "wide"
471
471
  }),
472
- day: Fe({
472
+ day: Pe({
473
473
  values: {
474
474
  narrow: [
475
475
  "S",
@@ -510,7 +510,7 @@ var Ie = {
510
510
  },
511
511
  defaultWidth: "wide"
512
512
  }),
513
- dayPeriod: Fe({
513
+ dayPeriod: Pe({
514
514
  values: {
515
515
  narrow: {
516
516
  am: "a",
@@ -581,11 +581,11 @@ var Ie = {
581
581
  };
582
582
  //#endregion
583
583
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
584
- function Le(e) {
584
+ function Ie(e) {
585
585
  return (t, n = {}) => {
586
586
  let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
587
587
  if (!a) return null;
588
- let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? ze(s, (e) => e.test(o)) : Re(s, (e) => e.test(o)), l;
588
+ 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;
589
589
  l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
590
590
  let u = t.slice(o.length);
591
591
  return {
@@ -594,15 +594,15 @@ function Le(e) {
594
594
  };
595
595
  };
596
596
  }
597
- function Re(e, t) {
597
+ function Le(e, t) {
598
598
  for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
599
599
  }
600
- function ze(e, t) {
600
+ function Re(e, t) {
601
601
  for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
602
602
  }
603
603
  //#endregion
604
604
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
605
- function Be(e) {
605
+ function ze(e) {
606
606
  return (t, n = {}) => {
607
607
  let r = t.match(e.matchPattern);
608
608
  if (!r) return null;
@@ -619,19 +619,19 @@ function Be(e) {
619
619
  }
620
620
  //#endregion
621
621
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
622
- var Ve = {
622
+ var Be = {
623
623
  code: "en-US",
624
- formatDistance: Ae,
625
- formatLong: Me,
626
- formatRelative: Pe,
627
- localize: Ie,
624
+ formatDistance: ke,
625
+ formatLong: je,
626
+ formatRelative: Ne,
627
+ localize: Fe,
628
628
  match: {
629
- ordinalNumber: Be({
629
+ ordinalNumber: ze({
630
630
  matchPattern: /^(\d+)(th|st|nd|rd)?/i,
631
631
  parsePattern: /\d+/i,
632
632
  valueCallback: (e) => parseInt(e, 10)
633
633
  }),
634
- era: Le({
634
+ era: Ie({
635
635
  matchPatterns: {
636
636
  narrow: /^(b|a)/i,
637
637
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
@@ -641,7 +641,7 @@ var Ve = {
641
641
  parsePatterns: { any: [/^b/i, /^(a|c)/i] },
642
642
  defaultParseWidth: "any"
643
643
  }),
644
- quarter: Le({
644
+ quarter: Ie({
645
645
  matchPatterns: {
646
646
  narrow: /^[1234]/i,
647
647
  abbreviated: /^q[1234]/i,
@@ -657,7 +657,7 @@ var Ve = {
657
657
  defaultParseWidth: "any",
658
658
  valueCallback: (e) => e + 1
659
659
  }),
660
- month: Le({
660
+ month: Ie({
661
661
  matchPatterns: {
662
662
  narrow: /^[jfmasond]/i,
663
663
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
@@ -696,7 +696,7 @@ var Ve = {
696
696
  },
697
697
  defaultParseWidth: "any"
698
698
  }),
699
- day: Le({
699
+ day: Ie({
700
700
  matchPatterns: {
701
701
  narrow: /^[smtwf]/i,
702
702
  short: /^(su|mo|tu|we|th|fr|sa)/i,
@@ -726,7 +726,7 @@ var Ve = {
726
726
  },
727
727
  defaultParseWidth: "any"
728
728
  }),
729
- dayPeriod: Le({
729
+ dayPeriod: Ie({
730
730
  matchPatterns: {
731
731
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
732
732
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
@@ -752,56 +752,56 @@ var Ve = {
752
752
  };
753
753
  //#endregion
754
754
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
755
- function He(e, t) {
756
- let n = W(e, t?.in);
757
- return ye(n, De(n)) + 1;
755
+ function Ve(e, t) {
756
+ let n = G(e, t?.in);
757
+ return ve(n, Ee(n)) + 1;
758
758
  }
759
759
  //#endregion
760
760
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
761
- function Ue(e, t) {
762
- let n = W(e, t?.in), r = K(n) - +be(n);
763
- return Math.round(r / ce) + 1;
761
+ function He(e, t) {
762
+ let n = G(e, t?.in), r = q(n) - +ye(n);
763
+ return Math.round(r / se) + 1;
764
764
  }
765
765
  //#endregion
766
766
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
767
- function We(e, t) {
768
- let n = W(e, t?.in), r = n.getFullYear(), i = me(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = U(t?.in || e, 0);
767
+ function Ue(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);
769
769
  o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
770
- let s = G(o, t), c = U(t?.in || e, 0);
770
+ let s = K(o, t), c = W(t?.in || e, 0);
771
771
  c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
772
- let l = G(c, t);
772
+ let l = K(c, t);
773
773
  return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
774
774
  }
775
775
  //#endregion
776
776
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
777
- function Ge(e, t) {
778
- let n = me(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = We(e, t), a = U(t?.in || e, 0);
779
- return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), G(a, t);
777
+ function We(e, t) {
778
+ let n = pe(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Ue(e, t), a = W(t?.in || e, 0);
779
+ return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), K(a, t);
780
780
  }
781
781
  //#endregion
782
782
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
783
- function Ke(e, t) {
784
- let n = W(e, t?.in), r = G(n, t) - +Ge(n, t);
785
- return Math.round(r / ce) + 1;
783
+ function Ge(e, t) {
784
+ let n = G(e, t?.in), r = K(n, t) - +We(n, t);
785
+ return Math.round(r / se) + 1;
786
786
  }
787
787
  //#endregion
788
788
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
789
- function q(e, t) {
789
+ function J(e, t) {
790
790
  return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
791
791
  }
792
792
  //#endregion
793
793
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js
794
- var qe = {
794
+ var Ke = {
795
795
  y(e, t) {
796
796
  let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
797
- return q(t === "yy" ? r % 100 : r, t.length);
797
+ return J(t === "yy" ? r % 100 : r, t.length);
798
798
  },
799
799
  M(e, t) {
800
800
  let n = e.getMonth();
801
- return t === "M" ? String(n + 1) : q(n + 1, 2);
801
+ return t === "M" ? String(n + 1) : J(n + 1, 2);
802
802
  },
803
803
  d(e, t) {
804
- return q(e.getDate(), t.length);
804
+ return J(e.getDate(), t.length);
805
805
  },
806
806
  a(e, t) {
807
807
  let n = e.getHours() / 12 >= 1 ? "pm" : "am";
@@ -814,22 +814,22 @@ var qe = {
814
814
  }
815
815
  },
816
816
  h(e, t) {
817
- return q(e.getHours() % 12 || 12, t.length);
817
+ return J(e.getHours() % 12 || 12, t.length);
818
818
  },
819
819
  H(e, t) {
820
- return q(e.getHours(), t.length);
820
+ return J(e.getHours(), t.length);
821
821
  },
822
822
  m(e, t) {
823
- return q(e.getMinutes(), t.length);
823
+ return J(e.getMinutes(), t.length);
824
824
  },
825
825
  s(e, t) {
826
- return q(e.getSeconds(), t.length);
826
+ return J(e.getSeconds(), t.length);
827
827
  },
828
828
  S(e, t) {
829
829
  let n = t.length, r = e.getMilliseconds();
830
- return q(Math.trunc(r * 10 ** (n - 3)), t.length);
830
+ return J(Math.trunc(r * 10 ** (n - 3)), t.length);
831
831
  }
832
- }, Je = {
832
+ }, qe = {
833
833
  am: "am",
834
834
  pm: "pm",
835
835
  midnight: "midnight",
@@ -838,7 +838,7 @@ var qe = {
838
838
  afternoon: "afternoon",
839
839
  evening: "evening",
840
840
  night: "night"
841
- }, Ye = {
841
+ }, Je = {
842
842
  G: function(e, t, n) {
843
843
  let r = +(e.getFullYear() > 0);
844
844
  switch (t) {
@@ -854,23 +854,23 @@ var qe = {
854
854
  let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
855
855
  return n.ordinalNumber(r, { unit: "year" });
856
856
  }
857
- return qe.y(e, t);
857
+ return Ke.y(e, t);
858
858
  },
859
859
  Y: function(e, t, n, r) {
860
- let i = We(e, r), a = i > 0 ? i : 1 - i;
861
- return t === "YY" ? q(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : q(a, t.length);
860
+ let i = Ue(e, r), a = i > 0 ? i : 1 - i;
861
+ return t === "YY" ? J(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : J(a, t.length);
862
862
  },
863
863
  R: function(e, t) {
864
- return q(he(e), t.length);
864
+ return J(me(e), t.length);
865
865
  },
866
866
  u: function(e, t) {
867
- return q(e.getFullYear(), t.length);
867
+ return J(e.getFullYear(), t.length);
868
868
  },
869
869
  Q: function(e, t, n) {
870
870
  let r = Math.ceil((e.getMonth() + 1) / 3);
871
871
  switch (t) {
872
872
  case "Q": return String(r);
873
- case "QQ": return q(r, 2);
873
+ case "QQ": return J(r, 2);
874
874
  case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
875
875
  case "QQQ": return n.quarter(r, {
876
876
  width: "abbreviated",
@@ -890,7 +890,7 @@ var qe = {
890
890
  let r = Math.ceil((e.getMonth() + 1) / 3);
891
891
  switch (t) {
892
892
  case "q": return String(r);
893
- case "qq": return q(r, 2);
893
+ case "qq": return J(r, 2);
894
894
  case "qo": return n.ordinalNumber(r, { unit: "quarter" });
895
895
  case "qqq": return n.quarter(r, {
896
896
  width: "abbreviated",
@@ -910,7 +910,7 @@ var qe = {
910
910
  let r = e.getMonth();
911
911
  switch (t) {
912
912
  case "M":
913
- case "MM": return qe.M(e, t);
913
+ case "MM": return Ke.M(e, t);
914
914
  case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
915
915
  case "MMM": return n.month(r, {
916
916
  width: "abbreviated",
@@ -930,7 +930,7 @@ var qe = {
930
930
  let r = e.getMonth();
931
931
  switch (t) {
932
932
  case "L": return String(r + 1);
933
- case "LL": return q(r + 1, 2);
933
+ case "LL": return J(r + 1, 2);
934
934
  case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
935
935
  case "LLL": return n.month(r, {
936
936
  width: "abbreviated",
@@ -947,19 +947,19 @@ var qe = {
947
947
  }
948
948
  },
949
949
  w: function(e, t, n, r) {
950
- let i = Ke(e, r);
951
- return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : q(i, t.length);
950
+ let i = Ge(e, r);
951
+ return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : J(i, t.length);
952
952
  },
953
953
  I: function(e, t, n) {
954
- let r = Ue(e);
955
- return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : q(r, t.length);
954
+ let r = He(e);
955
+ return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : J(r, t.length);
956
956
  },
957
957
  d: function(e, t, n) {
958
- return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : qe.d(e, t);
958
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Ke.d(e, t);
959
959
  },
960
960
  D: function(e, t, n) {
961
- let r = He(e);
962
- return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : q(r, t.length);
961
+ let r = Ve(e);
962
+ return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : J(r, t.length);
963
963
  },
964
964
  E: function(e, t, n) {
965
965
  let r = e.getDay();
@@ -988,7 +988,7 @@ var qe = {
988
988
  let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
989
989
  switch (t) {
990
990
  case "e": return String(a);
991
- case "ee": return q(a, 2);
991
+ case "ee": return J(a, 2);
992
992
  case "eo": return n.ordinalNumber(a, { unit: "day" });
993
993
  case "eee": return n.day(i, {
994
994
  width: "abbreviated",
@@ -1012,7 +1012,7 @@ var qe = {
1012
1012
  let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
1013
1013
  switch (t) {
1014
1014
  case "c": return String(a);
1015
- case "cc": return q(a, t.length);
1015
+ case "cc": return J(a, t.length);
1016
1016
  case "co": return n.ordinalNumber(a, { unit: "day" });
1017
1017
  case "ccc": return n.day(i, {
1018
1018
  width: "abbreviated",
@@ -1036,7 +1036,7 @@ var qe = {
1036
1036
  let r = e.getDay(), i = r === 0 ? 7 : r;
1037
1037
  switch (t) {
1038
1038
  case "i": return String(i);
1039
- case "ii": return q(i, t.length);
1039
+ case "ii": return J(i, t.length);
1040
1040
  case "io": return n.ordinalNumber(i, { unit: "day" });
1041
1041
  case "iii": return n.day(r, {
1042
1042
  width: "abbreviated",
@@ -1080,7 +1080,7 @@ var qe = {
1080
1080
  },
1081
1081
  b: function(e, t, n) {
1082
1082
  let r = e.getHours(), i;
1083
- switch (i = r === 12 ? Je.noon : r === 0 ? Je.midnight : r / 12 >= 1 ? "pm" : "am", t) {
1083
+ switch (i = r === 12 ? qe.noon : r === 0 ? qe.midnight : r / 12 >= 1 ? "pm" : "am", t) {
1084
1084
  case "b":
1085
1085
  case "bb": return n.dayPeriod(i, {
1086
1086
  width: "abbreviated",
@@ -1102,7 +1102,7 @@ var qe = {
1102
1102
  },
1103
1103
  B: function(e, t, n) {
1104
1104
  let r = e.getHours(), i;
1105
- switch (i = r >= 17 ? Je.evening : r >= 12 ? Je.afternoon : r >= 4 ? Je.morning : Je.night, t) {
1105
+ switch (i = r >= 17 ? qe.evening : r >= 12 ? qe.afternoon : r >= 4 ? qe.morning : qe.night, t) {
1106
1106
  case "B":
1107
1107
  case "BB":
1108
1108
  case "BBB": return n.dayPeriod(i, {
@@ -1124,45 +1124,45 @@ var qe = {
1124
1124
  let t = e.getHours() % 12;
1125
1125
  return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
1126
1126
  }
1127
- return qe.h(e, t);
1127
+ return Ke.h(e, t);
1128
1128
  },
1129
1129
  H: function(e, t, n) {
1130
- return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : qe.H(e, t);
1130
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Ke.H(e, t);
1131
1131
  },
1132
1132
  K: function(e, t, n) {
1133
1133
  let r = e.getHours() % 12;
1134
- return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : q(r, t.length);
1134
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : J(r, t.length);
1135
1135
  },
1136
1136
  k: function(e, t, n) {
1137
1137
  let r = e.getHours();
1138
- return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : q(r, t.length);
1138
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : J(r, t.length);
1139
1139
  },
1140
1140
  m: function(e, t, n) {
1141
- return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : qe.m(e, t);
1141
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Ke.m(e, t);
1142
1142
  },
1143
1143
  s: function(e, t, n) {
1144
- return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : qe.s(e, t);
1144
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Ke.s(e, t);
1145
1145
  },
1146
1146
  S: function(e, t) {
1147
- return qe.S(e, t);
1147
+ return Ke.S(e, t);
1148
1148
  },
1149
1149
  X: function(e, t, n) {
1150
1150
  let r = e.getTimezoneOffset();
1151
1151
  if (r === 0) return "Z";
1152
1152
  switch (t) {
1153
- case "X": return Ze(r);
1153
+ case "X": return Xe(r);
1154
1154
  case "XXXX":
1155
- case "XX": return Qe(r);
1156
- default: return Qe(r, ":");
1155
+ case "XX": return Ze(r);
1156
+ default: return Ze(r, ":");
1157
1157
  }
1158
1158
  },
1159
1159
  x: function(e, t, n) {
1160
1160
  let r = e.getTimezoneOffset();
1161
1161
  switch (t) {
1162
- case "x": return Ze(r);
1162
+ case "x": return Xe(r);
1163
1163
  case "xxxx":
1164
- case "xx": return Qe(r);
1165
- default: return Qe(r, ":");
1164
+ case "xx": return Ze(r);
1165
+ default: return Ze(r, ":");
1166
1166
  }
1167
1167
  },
1168
1168
  O: function(e, t, n) {
@@ -1170,8 +1170,8 @@ var qe = {
1170
1170
  switch (t) {
1171
1171
  case "O":
1172
1172
  case "OO":
1173
- case "OOO": return "GMT" + Xe(r, ":");
1174
- default: return "GMT" + Qe(r, ":");
1173
+ case "OOO": return "GMT" + Ye(r, ":");
1174
+ default: return "GMT" + Ze(r, ":");
1175
1175
  }
1176
1176
  },
1177
1177
  z: function(e, t, n) {
@@ -1179,49 +1179,49 @@ var qe = {
1179
1179
  switch (t) {
1180
1180
  case "z":
1181
1181
  case "zz":
1182
- case "zzz": return "GMT" + Xe(r, ":");
1183
- default: return "GMT" + Qe(r, ":");
1182
+ case "zzz": return "GMT" + Ye(r, ":");
1183
+ default: return "GMT" + Ze(r, ":");
1184
1184
  }
1185
1185
  },
1186
1186
  t: function(e, t, n) {
1187
- return q(Math.trunc(e / 1e3), t.length);
1187
+ return J(Math.trunc(e / 1e3), t.length);
1188
1188
  },
1189
1189
  T: function(e, t, n) {
1190
- return q(+e, t.length);
1190
+ return J(+e, t.length);
1191
1191
  }
1192
1192
  };
1193
- function Xe(e, t = "") {
1193
+ function Ye(e, t = "") {
1194
1194
  let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
1195
- return a === 0 ? n + String(i) : n + String(i) + t + q(a, 2);
1195
+ return a === 0 ? n + String(i) : n + String(i) + t + J(a, 2);
1196
1196
  }
1197
- function Ze(e, t) {
1198
- return e % 60 == 0 ? (e > 0 ? "-" : "+") + q(Math.abs(e) / 60, 2) : Qe(e, t);
1197
+ function Xe(e, t) {
1198
+ return e % 60 == 0 ? (e > 0 ? "-" : "+") + J(Math.abs(e) / 60, 2) : Ze(e, t);
1199
1199
  }
1200
- function Qe(e, t = "") {
1201
- let n = e > 0 ? "-" : "+", r = Math.abs(e), i = q(Math.trunc(r / 60), 2), a = q(r % 60, 2);
1200
+ function Ze(e, t = "") {
1201
+ let n = e > 0 ? "-" : "+", r = Math.abs(e), i = J(Math.trunc(r / 60), 2), a = J(r % 60, 2);
1202
1202
  return n + i + t + a;
1203
1203
  }
1204
1204
  //#endregion
1205
1205
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js
1206
- var $e = (e, t) => {
1206
+ var Qe = (e, t) => {
1207
1207
  switch (e) {
1208
1208
  case "P": return t.date({ width: "short" });
1209
1209
  case "PP": return t.date({ width: "medium" });
1210
1210
  case "PPP": return t.date({ width: "long" });
1211
1211
  default: return t.date({ width: "full" });
1212
1212
  }
1213
- }, et = (e, t) => {
1213
+ }, $e = (e, t) => {
1214
1214
  switch (e) {
1215
1215
  case "p": return t.time({ width: "short" });
1216
1216
  case "pp": return t.time({ width: "medium" });
1217
1217
  case "ppp": return t.time({ width: "long" });
1218
1218
  default: return t.time({ width: "full" });
1219
1219
  }
1220
- }, tt = {
1221
- p: et,
1220
+ }, et = {
1221
+ p: $e,
1222
1222
  P: (e, t) => {
1223
1223
  let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
1224
- if (!i) return $e(e, t);
1224
+ if (!i) return Qe(e, t);
1225
1225
  let a;
1226
1226
  switch (r) {
1227
1227
  case "P":
@@ -1237,42 +1237,42 @@ var $e = (e, t) => {
1237
1237
  a = t.dateTime({ width: "full" });
1238
1238
  break;
1239
1239
  }
1240
- return a.replace("{{date}}", $e(r, t)).replace("{{time}}", et(i, t));
1240
+ return a.replace("{{date}}", Qe(r, t)).replace("{{time}}", $e(i, t));
1241
1241
  }
1242
- }, nt = /^D+$/, rt = /^Y+$/, it = [
1242
+ }, tt = /^D+$/, nt = /^Y+$/, rt = [
1243
1243
  "D",
1244
1244
  "DD",
1245
1245
  "YY",
1246
1246
  "YYYY"
1247
1247
  ];
1248
+ function it(e) {
1249
+ return tt.test(e);
1250
+ }
1248
1251
  function at(e) {
1249
1252
  return nt.test(e);
1250
1253
  }
1251
- function ot(e) {
1252
- return rt.test(e);
1254
+ function ot(e, t, n) {
1255
+ let r = st(e, t, n);
1256
+ if (console.warn(r), rt.includes(e)) throw RangeError(r);
1253
1257
  }
1254
1258
  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) {
1259
1259
  let r = e[0] === "Y" ? "years" : "days of the month";
1260
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`;
1261
1261
  }
1262
1262
  //#endregion
1263
1263
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
1264
- var lt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ut = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, dt = /^'([^]*?)'?$/, ft = /''/g, pt = /[a-zA-Z]/;
1265
- function J(e, t, n) {
1266
- let r = me(), i = n?.locale ?? r.locale ?? Ve, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = W(e, n?.in);
1267
- if (!we(s)) throw RangeError("Invalid time value");
1268
- let c = t.match(ut).map((e) => {
1264
+ var ct = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, lt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ut = /^'([^]*?)'?$/, dt = /''/g, ft = /[a-zA-Z]/;
1265
+ function Y(e, t, n) {
1266
+ let r = pe(), 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 = G(e, n?.in);
1267
+ if (!Ce(s)) throw RangeError("Invalid time value");
1268
+ let c = t.match(lt).map((e) => {
1269
1269
  let t = e[0];
1270
1270
  if (t === "p" || t === "P") {
1271
- let n = tt[t];
1271
+ let n = et[t];
1272
1272
  return n(e, i.formatLong);
1273
1273
  }
1274
1274
  return e;
1275
- }).join("").match(lt).map((e) => {
1275
+ }).join("").match(ct).map((e) => {
1276
1276
  if (e === "''") return {
1277
1277
  isToken: !1,
1278
1278
  value: "'"
@@ -1280,13 +1280,13 @@ function J(e, t, n) {
1280
1280
  let t = e[0];
1281
1281
  if (t === "'") return {
1282
1282
  isToken: !1,
1283
- value: mt(e)
1283
+ value: pt(e)
1284
1284
  };
1285
- if (Ye[t]) return {
1285
+ if (Je[t]) return {
1286
1286
  isToken: !0,
1287
1287
  value: e
1288
1288
  };
1289
- if (t.match(pt)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
1289
+ if (t.match(ft)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
1290
1290
  return {
1291
1291
  isToken: !1,
1292
1292
  value: e
@@ -1301,72 +1301,72 @@ function J(e, t, n) {
1301
1301
  return c.map((r) => {
1302
1302
  if (!r.isToken) return r.value;
1303
1303
  let a = r.value;
1304
- (!n?.useAdditionalWeekYearTokens && ot(a) || !n?.useAdditionalDayOfYearTokens && at(a)) && st(a, t, String(e));
1305
- let o = Ye[a[0]];
1304
+ (!n?.useAdditionalWeekYearTokens && at(a) || !n?.useAdditionalDayOfYearTokens && it(a)) && ot(a, t, String(e));
1305
+ let o = Je[a[0]];
1306
1306
  return o(s, a, i.localize, l);
1307
1307
  }).join("");
1308
1308
  }
1309
- function mt(e) {
1310
- let t = e.match(dt);
1311
- return t ? t[1].replace(ft, "'") : e;
1309
+ function pt(e) {
1310
+ let t = e.match(ut);
1311
+ return t ? t[1].replace(dt, "'") : e;
1312
1312
  }
1313
1313
  //#endregion
1314
1314
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getHours.js
1315
- function ht(e, t) {
1316
- return W(e, t?.in).getHours();
1315
+ function mt(e, t) {
1316
+ return G(e, t?.in).getHours();
1317
1317
  }
1318
1318
  //#endregion
1319
1319
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMinutes.js
1320
- function gt(e, t) {
1321
- return W(e, t?.in).getMinutes();
1320
+ function ht(e, t) {
1321
+ return G(e, t?.in).getMinutes();
1322
1322
  }
1323
1323
  //#endregion
1324
1324
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
1325
- function _t(e, t) {
1326
- return +W(e) > +W(t);
1325
+ function gt(e, t) {
1326
+ return +G(e) > +G(t);
1327
1327
  }
1328
1328
  //#endregion
1329
1329
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
1330
- function vt(e, t) {
1331
- return +W(e) < +W(t);
1330
+ function _t(e, t) {
1331
+ return +G(e) < +G(t);
1332
1332
  }
1333
1333
  //#endregion
1334
1334
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
1335
- function yt(e, t, n) {
1336
- let [r, i] = _e(n?.in, e, t);
1335
+ function vt(e, t, n) {
1336
+ let [r, i] = ge(n?.in, e, t);
1337
1337
  return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
1338
1338
  }
1339
1339
  //#endregion
1340
1340
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isToday.js
1341
- function bt(e, t) {
1342
- return Se(U(t?.in || e, e), xe(t?.in || e));
1341
+ function yt(e, t) {
1342
+ return xe(W(t?.in || e, e), be(t?.in || e));
1343
1343
  }
1344
1344
  //#endregion
1345
1345
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setHours.js
1346
- function xt(e, t, n) {
1347
- let r = W(e, n?.in);
1346
+ function bt(e, t, n) {
1347
+ let r = G(e, n?.in);
1348
1348
  return r.setHours(t), r;
1349
1349
  }
1350
1350
  //#endregion
1351
1351
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setMinutes.js
1352
- function St(e, t, n) {
1353
- let r = W(e, n?.in);
1352
+ function xt(e, t, n) {
1353
+ let r = G(e, n?.in);
1354
1354
  return r.setMinutes(t), r;
1355
1355
  }
1356
1356
  //#endregion
1357
1357
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setSeconds.js
1358
- function Ct(e, t, n) {
1359
- let r = W(e, n?.in);
1358
+ function St(e, t, n) {
1359
+ let r = G(e, n?.in);
1360
1360
  return r.setSeconds(t), r;
1361
1361
  }
1362
1362
  //#endregion
1363
1363
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/subMonths.js
1364
- function wt(e, t, n) {
1365
- return fe(e, -t, n);
1364
+ function Ct(e, t, n) {
1365
+ return de(e, -t, n);
1366
1366
  }
1367
1367
  //#endregion
1368
1368
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js
1369
- var Tt = {
1369
+ var wt = {
1370
1370
  lessThanXSeconds: {
1371
1371
  one: "menos de um segundo",
1372
1372
  other: "menos de {{count}} segundos"
@@ -1428,11 +1428,11 @@ var Tt = {
1428
1428
  one: "quase 1 ano",
1429
1429
  other: "quase {{count}} anos"
1430
1430
  }
1431
- }, Et = (e, t, n) => {
1432
- let r, i = Tt[e];
1431
+ }, Tt = (e, t, n) => {
1432
+ let r, i = wt[e];
1433
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;
1434
- }, Dt = {
1435
- date: je({
1434
+ }, Et = {
1435
+ date: Ae({
1436
1436
  formats: {
1437
1437
  full: "EEEE, d 'de' MMMM 'de' y",
1438
1438
  long: "d 'de' MMMM 'de' y",
@@ -1441,7 +1441,7 @@ var Tt = {
1441
1441
  },
1442
1442
  defaultWidth: "full"
1443
1443
  }),
1444
- time: je({
1444
+ time: Ae({
1445
1445
  formats: {
1446
1446
  full: "HH:mm:ss zzzz",
1447
1447
  long: "HH:mm:ss z",
@@ -1450,7 +1450,7 @@ var Tt = {
1450
1450
  },
1451
1451
  defaultWidth: "full"
1452
1452
  }),
1453
- dateTime: je({
1453
+ dateTime: Ae({
1454
1454
  formats: {
1455
1455
  full: "{{date}} 'às' {{time}}",
1456
1456
  long: "{{date}} 'às' {{time}}",
@@ -1459,7 +1459,7 @@ var Tt = {
1459
1459
  },
1460
1460
  defaultWidth: "full"
1461
1461
  })
1462
- }, Ot = {
1462
+ }, Dt = {
1463
1463
  lastWeek: (e) => {
1464
1464
  let t = e.getDay();
1465
1465
  return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
@@ -1469,12 +1469,12 @@ var Tt = {
1469
1469
  tomorrow: "'amanhã às' p",
1470
1470
  nextWeek: "eeee 'às' p",
1471
1471
  other: "P"
1472
- }, kt = {
1472
+ }, Ot = {
1473
1473
  code: "pt-BR",
1474
- formatDistance: Et,
1475
- formatLong: Dt,
1474
+ formatDistance: Tt,
1475
+ formatLong: Et,
1476
1476
  formatRelative: (e, t, n, r) => {
1477
- let i = Ot[e];
1477
+ let i = Dt[e];
1478
1478
  return typeof i == "function" ? i(t) : i;
1479
1479
  },
1480
1480
  localize: {
@@ -1482,7 +1482,7 @@ var Tt = {
1482
1482
  let n = Number(e);
1483
1483
  return t?.unit === "week" ? n + "ª" : n + "º";
1484
1484
  },
1485
- era: Fe({
1485
+ era: Pe({
1486
1486
  values: {
1487
1487
  narrow: ["AC", "DC"],
1488
1488
  abbreviated: ["AC", "DC"],
@@ -1490,7 +1490,7 @@ var Tt = {
1490
1490
  },
1491
1491
  defaultWidth: "wide"
1492
1492
  }),
1493
- quarter: Fe({
1493
+ quarter: Pe({
1494
1494
  values: {
1495
1495
  narrow: [
1496
1496
  "1",
@@ -1514,7 +1514,7 @@ var Tt = {
1514
1514
  defaultWidth: "wide",
1515
1515
  argumentCallback: (e) => e - 1
1516
1516
  }),
1517
- month: Fe({
1517
+ month: Pe({
1518
1518
  values: {
1519
1519
  narrow: [
1520
1520
  "j",
@@ -1561,7 +1561,7 @@ var Tt = {
1561
1561
  },
1562
1562
  defaultWidth: "wide"
1563
1563
  }),
1564
- day: Fe({
1564
+ day: Pe({
1565
1565
  values: {
1566
1566
  narrow: [
1567
1567
  "D",
@@ -1602,7 +1602,7 @@ var Tt = {
1602
1602
  },
1603
1603
  defaultWidth: "wide"
1604
1604
  }),
1605
- dayPeriod: Fe({
1605
+ dayPeriod: Pe({
1606
1606
  values: {
1607
1607
  narrow: {
1608
1608
  am: "a",
@@ -1672,12 +1672,12 @@ var Tt = {
1672
1672
  })
1673
1673
  },
1674
1674
  match: {
1675
- ordinalNumber: Be({
1675
+ ordinalNumber: ze({
1676
1676
  matchPattern: /^(\d+)[ºªo]?/i,
1677
1677
  parsePattern: /\d+/i,
1678
1678
  valueCallback: (e) => parseInt(e, 10)
1679
1679
  }),
1680
- era: Le({
1680
+ era: Ie({
1681
1681
  matchPatterns: {
1682
1682
  narrow: /^(ac|dc|a|d)/i,
1683
1683
  abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
@@ -1690,7 +1690,7 @@ var Tt = {
1690
1690
  },
1691
1691
  defaultParseWidth: "any"
1692
1692
  }),
1693
- quarter: Le({
1693
+ quarter: Ie({
1694
1694
  matchPatterns: {
1695
1695
  narrow: /^[1234]/i,
1696
1696
  abbreviated: /^T[1234]/i,
@@ -1706,7 +1706,7 @@ var Tt = {
1706
1706
  defaultParseWidth: "any",
1707
1707
  valueCallback: (e) => e + 1
1708
1708
  }),
1709
- month: Le({
1709
+ month: Ie({
1710
1710
  matchPatterns: {
1711
1711
  narrow: /^[jfmajsond]/i,
1712
1712
  abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
@@ -1745,7 +1745,7 @@ var Tt = {
1745
1745
  },
1746
1746
  defaultParseWidth: "any"
1747
1747
  }),
1748
- day: Le({
1748
+ day: Ie({
1749
1749
  matchPatterns: {
1750
1750
  narrow: /^(dom|[23456]ª?|s[aá]b)/i,
1751
1751
  short: /^(dom|[23456]ª?|s[aá]b)/i,
@@ -1784,7 +1784,7 @@ var Tt = {
1784
1784
  },
1785
1785
  defaultParseWidth: "any"
1786
1786
  }),
1787
- dayPeriod: Le({
1787
+ dayPeriod: Ie({
1788
1788
  matchPatterns: {
1789
1789
  narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
1790
1790
  any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
@@ -1807,7 +1807,7 @@ var Tt = {
1807
1807
  weekStartsOn: 0,
1808
1808
  firstWeekContainsDate: 1
1809
1809
  }
1810
- }, At = {
1810
+ }, kt = {
1811
1811
  sm: {
1812
1812
  classes: "size-[calc(1.75rem*1.188*1.1)] rounded-[min(var(--radius-eds-xs),12px)] [&_svg:not([class*='size-'])]:size-3.5",
1813
1813
  iconPx: 14
@@ -1821,8 +1821,8 @@ var Tt = {
1821
1821
  iconPx: 16
1822
1822
  }
1823
1823
  };
1824
- function jt({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", hoverColor: o, size: s = "md", disabled: c, style: l, tooltip: u, ...d }) {
1825
- let f = ee(), p = L(At, s, z.size), m = L(R.variant, i, z.variant), h = /* @__PURE__ */ _(e, {
1824
+ function At({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", hoverColor: o, size: s = "md", disabled: c, style: l, tooltip: u, ...d }) {
1825
+ let f = ee(), p = L(kt, s, z.size), m = L(R.variant, i, z.variant), h = /* @__PURE__ */ _(e, {
1826
1826
  style: {
1827
1827
  "--eds-btn-base-accent": `var(--color-eds-${a})`,
1828
1828
  ...ie.has(a) ? { "--eds-btn-solid-fg": "#fff" } : {},
@@ -1858,7 +1858,7 @@ function jt({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
1858
1858
  }
1859
1859
  //#endregion
1860
1860
  //#region src/components/Calendar/Calendar.tsx
1861
- var Mt = [
1861
+ var jt = [
1862
1862
  "Dom",
1863
1863
  "Seg",
1864
1864
  "Ter",
@@ -1867,16 +1867,16 @@ var Mt = [
1867
1867
  "Sex",
1868
1868
  "Sáb"
1869
1869
  ];
1870
- function Nt(e, t) {
1871
- let n = G(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
1872
- for (let e = n; e <= r; e = de(e, 1)) i.push(e);
1870
+ function Mt(e, t) {
1871
+ let n = K(Te(e), { weekStartsOn: t }), r = De(we(e), { weekStartsOn: t }), i = [];
1872
+ for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
1873
1873
  return i;
1874
1874
  }
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(() => {
1875
+ 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 }) {
1876
+ 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(() => {
1877
1877
  let e = /* @__PURE__ */ new Map();
1878
1878
  for (let t of r) {
1879
- let n = J(t.date, "yyyy-MM-dd"), r = e.get(n);
1879
+ let n = Y(t.date, "yyyy-MM-dd"), r = e.get(n);
1880
1880
  r ? r.push(t) : e.set(n, [t]);
1881
1881
  }
1882
1882
  return e;
@@ -1891,19 +1891,19 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1891
1891
  className: "mb-3 flex shrink-0 items-center justify-between",
1892
1892
  children: [/* @__PURE__ */ _("span", {
1893
1893
  className: "text-base font-medium text-eds-neutral-main capitalize",
1894
- children: J(g, "MMMM yyyy", { locale: kt })
1894
+ children: Y(g, "MMMM yyyy", { locale: Ot })
1895
1895
  }), /* @__PURE__ */ v("div", {
1896
1896
  className: "flex items-center gap-1",
1897
- children: [/* @__PURE__ */ _(jt, {
1897
+ children: [/* @__PURE__ */ _(At, {
1898
1898
  icon: s,
1899
1899
  label: "Mês anterior",
1900
1900
  size: "sm",
1901
- onClick: () => S(wt(g, 1))
1902
- }), /* @__PURE__ */ _(jt, {
1901
+ onClick: () => S(Ct(g, 1))
1902
+ }), /* @__PURE__ */ _(At, {
1903
1903
  icon: c,
1904
1904
  label: "Próximo mês",
1905
1905
  size: "sm",
1906
- onClick: () => S(fe(g, 1))
1906
+ onClick: () => S(de(g, 1))
1907
1907
  })]
1908
1908
  })]
1909
1909
  }), /* @__PURE__ */ v("div", {
@@ -1917,7 +1917,7 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1917
1917
  }), /* @__PURE__ */ _("div", {
1918
1918
  className: "grid flex-1 auto-rows-fr grid-cols-7",
1919
1919
  children: b.map((e, t) => {
1920
- let n = yt(e, g), r = bt(e), a = J(e, "yyyy-MM-dd"), s = x.get(a) ?? [], c = s.slice(0, i), d = s.length - c.length, f = n ? J(e, "d") : J(e, "d MMM", { locale: kt });
1920
+ let n = vt(e, g), r = yt(e), a = Y(e, "yyyy-MM-dd"), s = x.get(a) ?? [], c = s.slice(0, i), d = s.length - c.length, f = n ? Y(e, "d") : Y(e, "d MMM", { locale: Ot });
1921
1921
  return /* @__PURE__ */ v("div", {
1922
1922
  "data-date": a,
1923
1923
  onClick: () => o?.(e),
@@ -1972,73 +1972,73 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1972
1972
  }
1973
1973
  //#endregion
1974
1974
  //#region src/components/Card/Card.tsx
1975
- function Ft({ className: e, ...t }) {
1975
+ function Pt({ className: e, ...t }) {
1976
1976
  return /* @__PURE__ */ _("div", {
1977
1977
  "data-eds-component": "Card",
1978
1978
  className: I("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
1979
1979
  ...t
1980
1980
  });
1981
1981
  }
1982
- function It({ className: e, ...t }) {
1982
+ function Ft({ className: e, ...t }) {
1983
1983
  return /* @__PURE__ */ _("div", {
1984
1984
  "data-slot": "card-header",
1985
1985
  className: I("grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]", e),
1986
1986
  ...t
1987
1987
  });
1988
1988
  }
1989
- function Lt({ className: e, ...t }) {
1989
+ function It({ className: e, ...t }) {
1990
1990
  return /* @__PURE__ */ _("h3", {
1991
1991
  "data-slot": "card-title",
1992
1992
  className: I("text-lg leading-none font-semibold text-eds-neutral-main", e),
1993
1993
  ...t
1994
1994
  });
1995
1995
  }
1996
- function Rt({ className: e, ...t }) {
1996
+ function Lt({ className: e, ...t }) {
1997
1997
  return /* @__PURE__ */ _("p", {
1998
1998
  "data-slot": "card-description",
1999
1999
  className: I("text-sm text-eds-neutral-elements", e),
2000
2000
  ...t
2001
2001
  });
2002
2002
  }
2003
- function zt({ className: e, ...t }) {
2003
+ function Rt({ className: e, ...t }) {
2004
2004
  return /* @__PURE__ */ _("div", {
2005
2005
  "data-slot": "card-action",
2006
2006
  className: I("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
2007
2007
  ...t
2008
2008
  });
2009
2009
  }
2010
- function Bt({ className: e, ...t }) {
2010
+ function zt({ className: e, ...t }) {
2011
2011
  return /* @__PURE__ */ _("div", {
2012
2012
  "data-slot": "card-content",
2013
2013
  className: I("px-6", e),
2014
2014
  ...t
2015
2015
  });
2016
2016
  }
2017
- function Vt({ className: e, ...t }) {
2017
+ function Bt({ className: e, ...t }) {
2018
2018
  return /* @__PURE__ */ _("div", {
2019
2019
  "data-slot": "card-footer",
2020
2020
  className: I("-mb-6 -mt-6 flex flex-col-reverse gap-2 rounded-b-eds-sm border-t border-eds-outline-border bg-eds-neutral-background px-6 py-4 sm:flex-row sm:justify-end", e),
2021
2021
  ...t
2022
2022
  });
2023
2023
  }
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 = {
2024
+ Ft.displayName = "Card.Header", It.displayName = "Card.Title", Lt.displayName = "Card.Description", Rt.displayName = "Card.Action", zt.displayName = "Card.Content", Bt.displayName = "Card.Footer";
2025
+ var Vt = Object.assign(Pt, {
2026
+ Header: Ft,
2027
+ Title: It,
2028
+ Description: Lt,
2029
+ Action: Rt,
2030
+ Content: zt,
2031
+ Footer: Bt
2032
+ }), Ht = {
2033
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" },
2034
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" },
2035
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" }
2036
- }, Wt = {
2036
+ }, Ut = {
2037
2037
  horizontal: { classes: "min-w-40 items-center" },
2038
2038
  vertical: { classes: "w-24 flex-col has-data-[slot=attachment-content]:w-[7.5rem]" }
2039
2039
  };
2040
- function Gt({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
2041
- let a = L(Ut, n, "default"), o = L(Wt, r, "horizontal");
2040
+ function Wt({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
2041
+ let a = L(Ht, n, "default"), o = L(Ut, r, "horizontal");
2042
2042
  return /* @__PURE__ */ _("div", {
2043
2043
  "data-eds-component": "Attachment",
2044
2044
  "data-slot": "attachment",
@@ -2049,7 +2049,7 @@ function Gt({ className: e, state: t = "done", size: n = "default", orientation:
2049
2049
  ...i
2050
2050
  });
2051
2051
  }
2052
- function Kt({ className: e, variant: t = "icon", ...n }) {
2052
+ function Gt({ className: e, variant: t = "icon", ...n }) {
2053
2053
  return /* @__PURE__ */ _("div", {
2054
2054
  "data-slot": "attachment-media",
2055
2055
  "data-variant": t,
@@ -2057,36 +2057,36 @@ function Kt({ className: e, variant: t = "icon", ...n }) {
2057
2057
  ...n
2058
2058
  });
2059
2059
  }
2060
- function qt({ className: e, ...t }) {
2060
+ function Kt({ className: e, ...t }) {
2061
2061
  return /* @__PURE__ */ _("div", {
2062
2062
  "data-slot": "attachment-content",
2063
2063
  className: I("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
2064
2064
  ...t
2065
2065
  });
2066
2066
  }
2067
- function Jt({ className: e, ...t }) {
2067
+ function qt({ className: e, ...t }) {
2068
2068
  return /* @__PURE__ */ _("span", {
2069
2069
  "data-slot": "attachment-title",
2070
2070
  className: I("block max-w-full min-w-0 truncate font-medium text-eds-neutral-main", "group-data-[state=uploading]/attachment:animate-eds-shimmer group-data-[state=processing]/attachment:animate-eds-shimmer", "group-data-[state=uploading]/attachment:text-eds-blue-main group-data-[state=processing]/attachment:text-eds-blue-main", e),
2071
2071
  ...t
2072
2072
  });
2073
2073
  }
2074
- function Yt({ className: e, ...t }) {
2074
+ function Jt({ className: e, ...t }) {
2075
2075
  return /* @__PURE__ */ _("span", {
2076
2076
  "data-slot": "attachment-description",
2077
2077
  className: I("mt-0.5 block max-w-full min-w-0 truncate text-xs text-eds-neutral-elements", "group-data-[state=error]/attachment:text-eds-red-main/85", "group-data-[state=uploading]/attachment:text-eds-blue-middle group-data-[state=processing]/attachment:text-eds-blue-middle", e),
2078
2078
  ...t
2079
2079
  });
2080
2080
  }
2081
- function Xt({ className: e, ...t }) {
2081
+ function Yt({ className: e, ...t }) {
2082
2082
  return /* @__PURE__ */ _("div", {
2083
2083
  "data-slot": "attachment-actions",
2084
2084
  className: I("relative z-20 flex shrink-0 items-center", "group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", e),
2085
2085
  ...t
2086
2086
  });
2087
2087
  }
2088
- function Zt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
2089
- return /* @__PURE__ */ _(jt, {
2088
+ function Xt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
2089
+ return /* @__PURE__ */ _(At, {
2090
2090
  "data-slot": "attachment-action",
2091
2091
  variant: e,
2092
2092
  color: t,
@@ -2095,7 +2095,7 @@ function Zt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", clas
2095
2095
  ...i
2096
2096
  });
2097
2097
  }
2098
- function Qt({ className: e, render: t, type: n, ...r }) {
2098
+ function Zt({ className: e, render: t, type: n, ...r }) {
2099
2099
  return ne({
2100
2100
  defaultTagName: "button",
2101
2101
  props: te({
@@ -2106,7 +2106,7 @@ function Qt({ className: e, render: t, type: n, ...r }) {
2106
2106
  state: { slot: "attachment-trigger" }
2107
2107
  });
2108
2108
  }
2109
- function $t({ className: e, ...t }) {
2109
+ function Qt({ className: e, ...t }) {
2110
2110
  return /* @__PURE__ */ _("div", {
2111
2111
  "data-eds-component": "AttachmentGroup",
2112
2112
  "data-slot": "attachment-group",
@@ -2114,21 +2114,21 @@ function $t({ className: e, ...t }) {
2114
2114
  ...t
2115
2115
  });
2116
2116
  }
2117
- Kt.displayName = "Attachment.Media", qt.displayName = "Attachment.Content", Jt.displayName = "Attachment.Title", Yt.displayName = "Attachment.Description", Xt.displayName = "Attachment.Actions", Zt.displayName = "Attachment.Action", Qt.displayName = "Attachment.Trigger", $t.displayName = "Attachment.Group";
2118
- var en = Object.assign(Gt, {
2119
- Media: Kt,
2120
- Content: qt,
2121
- Title: Jt,
2122
- Description: Yt,
2123
- Actions: Xt,
2124
- Action: Zt,
2125
- Trigger: Qt,
2126
- Group: $t
2127
- }), tn = I("relative flex size-[18px] shrink-0 items-center justify-center rounded-[4px] border border-eds-neutral-elements bg-white transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-brand focus-visible:ring-offset-1", "data-checked:border-eds-blue-main data-checked:bg-eds-blue-main", "data-indeterminate:border-eds-blue-main data-indeterminate:bg-eds-blue-main", "data-disabled:cursor-not-allowed data-disabled:border-eds-neutral-disabled data-disabled:bg-eds-neutral-background data-disabled:opacity-70");
2128
- function nn({ className: e, ...t }) {
2117
+ 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";
2118
+ var $t = Object.assign(Wt, {
2119
+ Media: Gt,
2120
+ Content: Kt,
2121
+ Title: qt,
2122
+ Description: Jt,
2123
+ Actions: Yt,
2124
+ Action: Xt,
2125
+ Trigger: Zt,
2126
+ Group: Qt
2127
+ }), 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");
2128
+ function tn({ className: e, ...t }) {
2129
2129
  return /* @__PURE__ */ _(O.Root, {
2130
2130
  "data-eds-component": "Checkbox",
2131
- className: I(tn, e),
2131
+ className: I(en, e),
2132
2132
  ...t,
2133
2133
  children: /* @__PURE__ */ _(O.Indicator, {
2134
2134
  keepMounted: !0,
@@ -2148,17 +2148,17 @@ function nn({ className: e, ...t }) {
2148
2148
  })
2149
2149
  });
2150
2150
  }
2151
- function rn({ className: e, label: t, disabled: n, ...r }) {
2151
+ function nn({ className: e, label: t, disabled: n, ...r }) {
2152
2152
  return t ? /* @__PURE__ */ _(re.Root, {
2153
2153
  className: I("inline-flex", e),
2154
2154
  children: /* @__PURE__ */ v(re.Label, {
2155
2155
  className: I("inline-flex min-h-7 cursor-pointer items-center gap-[9px] rounded-md pl-2 text-base leading-6 text-eds-default", n && "cursor-not-allowed opacity-70"),
2156
- children: [/* @__PURE__ */ _(nn, {
2156
+ children: [/* @__PURE__ */ _(tn, {
2157
2157
  disabled: n,
2158
2158
  ...r
2159
2159
  }), /* @__PURE__ */ _("span", { children: t })]
2160
2160
  })
2161
- }) : /* @__PURE__ */ _(nn, {
2161
+ }) : /* @__PURE__ */ _(tn, {
2162
2162
  className: e,
2163
2163
  disabled: n,
2164
2164
  ...r
@@ -2166,10 +2166,10 @@ function rn({ className: e, label: t, disabled: n, ...r }) {
2166
2166
  }
2167
2167
  //#endregion
2168
2168
  //#region src/lib/field-styles.ts
2169
- function an(e) {
2169
+ function rn(e) {
2170
2170
  return e ?? "floating";
2171
2171
  }
2172
- var on = {
2172
+ var an = {
2173
2173
  sm: {
2174
2174
  control: "h-9 px-3",
2175
2175
  trigger: "h-9 px-3",
@@ -2197,29 +2197,29 @@ var on = {
2197
2197
  icon: "size-8",
2198
2198
  paddingX: "px-4"
2199
2199
  }
2200
- }, sn = {
2200
+ }, on = {
2201
2201
  overlay: "z-[1300]",
2202
2202
  popup: "z-[1400]",
2203
2203
  overlayValue: 1300,
2204
2204
  popupValue: 1400
2205
- }, cn = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", ln = "flex items-center justify-between gap-3", un = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", dn = "text-eds-neutral-disabled", fn = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", pn = "data-placeholder:text-eds-neutral-disabled", mn = "group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70", hn = "box-border min-w-(--anchor-width) max-h-[280px] overflow-visible rounded-eds-xs border border-eds-outline-border bg-white py-1 shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)]", gn = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", _n = "box-border flex w-full cursor-pointer items-center gap-2 rounded-md px-2.5 py-2 text-left text-sm text-eds-neutral-main data-highlighted:bg-eds-neutral-elements/10 data-disabled:cursor-not-allowed data-disabled:opacity-50", vn = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", yn = `${sn.popup} outline-none`, bn = { zIndex: sn.popupValue };
2206
- function xn(e) {
2205
+ }, 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 };
2206
+ function bn(e) {
2207
2207
  return `pointer-events-none absolute top-0 z-1 -translate-y-1/2 bg-transparent px-0 pr-1 text-sm text-eds-neutral-elements ${e} before:absolute before:inset-x-0 before:top-1/2 before:-z-10 before:h-0.5 before:-translate-y-1/2 before:bg-white before:content-[''] group-data-disabled:before:bg-eds-neutral-background`;
2208
2208
  }
2209
2209
  //#endregion
2210
2210
  //#region src/components/ComboBox/Combobox.tsx
2211
- var Sn = {
2211
+ var xn = {
2212
2212
  default: "",
2213
2213
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2214
2214
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2215
- }, Cn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md text-eds-neutral-elements hover:not-data-disabled:bg-eds-neutral-elements/8 hover:not-data-disabled:text-eds-neutral-main focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", wn = "inline-flex h-6 max-w-full items-center gap-1 rounded-eds-lil bg-eds-blue-background/45 py-0 pr-1 pl-2 text-xs text-eds-blue-main", Tn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded p-1 text-eds-blue-main hover:not-data-disabled:bg-eds-blue-main/15 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", En = k.Root;
2216
- function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", emptyMessage: p = "Nenhum resultado.", readOnly: h = !1, id: g, name: y, multiple: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, getRemoveItemLabel: E, renderItem: D, renderChip: te, className: ne, inputProps: O }) {
2217
- let re = ee(), A = g ?? re, j = l === "invalid", M = j || !!d, N = on[u], P = an(t), F = P === "floating", L = (e) => w ? w(e) : e.label ?? "", ie = (e) => T ? T(e) : e.value ?? L(e), R = (e) => {
2215
+ }, 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 = "inline-flex h-6 max-w-full items-center gap-1 rounded-eds-lil bg-eds-blue-background/45 py-0 pr-1 pl-2 text-xs text-eds-blue-main", wn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded p-1 text-eds-blue-main hover:not-data-disabled:bg-eds-blue-main/15 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", Tn = k.Root;
2216
+ function En({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", emptyMessage: p = "Nenhum resultado.", readOnly: h = !1, id: g, name: y, multiple: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, getRemoveItemLabel: E, renderItem: D, renderChip: te, className: ne, inputProps: O }) {
2217
+ let re = ee(), A = g ?? re, j = l === "invalid", M = j || !!d, N = an[u], P = rn(t), F = P === "floating", L = (e) => w ? w(e) : e.label ?? "", ie = (e) => T ? T(e) : e.value ?? L(e), R = (e) => {
2218
2218
  C?.(e);
2219
- }, z = w ? (e) => w(e) : void 0, ae = T ? (e) => T(e) : void 0, B = /* @__PURE__ */ v("div", {
2219
+ }, z = w ? (e) => w(e) : void 0, B = T ? (e) => T(e) : void 0, V = /* @__PURE__ */ v("div", {
2220
2220
  className: "inline-flex shrink-0 items-center",
2221
2221
  children: [/* @__PURE__ */ _(k.Clear, {
2222
- className: I(Cn, N.icon),
2222
+ className: I(Sn, N.icon),
2223
2223
  "aria-label": "Limpar seleção",
2224
2224
  "data-disabled": i || void 0,
2225
2225
  children: /* @__PURE__ */ _(m, {
@@ -2228,7 +2228,7 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
2228
2228
  "aria-hidden": !0
2229
2229
  })
2230
2230
  }), /* @__PURE__ */ _(k.Trigger, {
2231
- className: I(Cn, N.icon),
2231
+ className: I(Sn, N.icon),
2232
2232
  "aria-label": "Abrir lista",
2233
2233
  "data-disabled": i || void 0,
2234
2234
  children: /* @__PURE__ */ _(o, {
@@ -2237,8 +2237,8 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
2237
2237
  "aria-hidden": !0
2238
2238
  })
2239
2239
  })]
2240
- }), oe = F ? /* @__PURE__ */ v("span", {
2241
- className: xn(N.left),
2240
+ }), ae = F ? /* @__PURE__ */ v("span", {
2241
+ className: bn(N.left),
2242
2242
  children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
2243
2243
  className: "text-eds-red-main",
2244
2244
  "aria-hidden": "true",
@@ -2246,15 +2246,15 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
2246
2246
  })]
2247
2247
  }) : null;
2248
2248
  return /* @__PURE__ */ v("div", {
2249
- className: I(cn, ne),
2249
+ className: I(sn, ne),
2250
2250
  "data-fluid": c || void 0,
2251
2251
  "data-eds-component": "Combobox",
2252
2252
  "data-label-variant": P,
2253
2253
  children: [
2254
2254
  /* @__PURE__ */ _("div", {
2255
- className: ln,
2255
+ className: cn,
2256
2256
  children: /* @__PURE__ */ v("label", {
2257
- className: I(un, F && "sr-only", !F && "font-medium"),
2257
+ className: I(ln, F && "sr-only", !F && "font-medium"),
2258
2258
  htmlFor: A,
2259
2259
  children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
2260
2260
  className: "text-eds-red-main",
@@ -2262,7 +2262,7 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
2262
2262
  })]
2263
2263
  })
2264
2264
  }),
2265
- /* @__PURE__ */ v(En, {
2265
+ /* @__PURE__ */ v(Tn, {
2266
2266
  items: n,
2267
2267
  name: y,
2268
2268
  multiple: b,
@@ -2271,22 +2271,22 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
2271
2271
  onValueChange: C ? R : void 0,
2272
2272
  ...x === void 0 ? S === void 0 ? {} : { defaultValue: S } : { value: x },
2273
2273
  itemToStringLabel: z,
2274
- itemToStringValue: ae,
2274
+ itemToStringValue: B,
2275
2275
  children: [b ? /* @__PURE__ */ v(k.Chips, {
2276
- className: I(mn, "h-auto flex-wrap content-start gap-1.5", N.triggerMultiple, Sn[l]),
2276
+ className: I(pn, "h-auto flex-wrap content-start gap-1.5", N.triggerMultiple, xn[l]),
2277
2277
  "data-state": l,
2278
2278
  "data-size": u,
2279
2279
  "data-disabled": i || void 0,
2280
2280
  "data-floating": F || void 0,
2281
2281
  children: [
2282
- oe,
2282
+ ae,
2283
2283
  /* @__PURE__ */ _(k.Value, { children: (e) => e.map((e) => /* @__PURE__ */ v(k.Chip, {
2284
- className: wn,
2284
+ className: Cn,
2285
2285
  children: [/* @__PURE__ */ _("span", {
2286
2286
  className: "truncate",
2287
2287
  children: te ? te(e) : L(e)
2288
2288
  }), /* @__PURE__ */ _(k.ChipRemove, {
2289
- className: Tn,
2289
+ className: wn,
2290
2290
  "aria-label": E ? E(e) : `Remover ${L(e)}`,
2291
2291
  children: /* @__PURE__ */ _(m, {
2292
2292
  size: 10,
@@ -2300,28 +2300,28 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
2300
2300
  children: [/* @__PURE__ */ _(k.Input, {
2301
2301
  ...O,
2302
2302
  id: A,
2303
- className: I("min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", fn, N.text),
2303
+ className: I("min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", dn, N.text),
2304
2304
  placeholder: r,
2305
2305
  disabled: i,
2306
2306
  readOnly: h,
2307
2307
  required: s,
2308
2308
  "aria-invalid": j || void 0,
2309
2309
  "aria-describedby": M ? `${A}-desc` : void 0
2310
- }), B]
2310
+ }), V]
2311
2311
  })
2312
2312
  ]
2313
2313
  }) : /* @__PURE__ */ v(k.InputGroup, {
2314
- className: I(mn, "box-border py-0", N.trigger, Sn[l]),
2314
+ className: I(pn, "box-border py-0", N.trigger, xn[l]),
2315
2315
  "data-state": l,
2316
2316
  "data-size": u,
2317
2317
  "data-disabled": i || void 0,
2318
2318
  "data-floating": F || void 0,
2319
2319
  children: [
2320
- oe,
2320
+ ae,
2321
2321
  /* @__PURE__ */ _(k.Input, {
2322
2322
  ...O,
2323
2323
  id: A,
2324
- className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", fn, N.text),
2324
+ className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", dn, N.text),
2325
2325
  placeholder: r,
2326
2326
  disabled: i,
2327
2327
  readOnly: h,
@@ -2329,25 +2329,25 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
2329
2329
  "aria-invalid": j || void 0,
2330
2330
  "aria-describedby": M ? `${A}-desc` : void 0
2331
2331
  }),
2332
- B
2332
+ V
2333
2333
  ]
2334
2334
  }), /* @__PURE__ */ _(k.Portal, { children: /* @__PURE__ */ _(k.Positioner, {
2335
- className: yn,
2336
- style: bn,
2335
+ className: vn,
2336
+ style: yn,
2337
2337
  positionMethod: "fixed",
2338
2338
  sideOffset: 4,
2339
2339
  children: /* @__PURE__ */ v(k.Popup, {
2340
- className: hn,
2340
+ className: mn,
2341
2341
  children: [/* @__PURE__ */ _(k.Empty, { children: /* @__PURE__ */ _("div", {
2342
2342
  className: "px-3 py-2.5 text-sm text-eds-neutral-elements",
2343
2343
  children: p
2344
2344
  }) }), /* @__PURE__ */ _(k.List, {
2345
- className: gn,
2345
+ className: hn,
2346
2346
  children: (e) => /* @__PURE__ */ v(k.Item, {
2347
2347
  value: e,
2348
- className: _n,
2348
+ className: gn,
2349
2349
  children: [/* @__PURE__ */ _(k.ItemIndicator, {
2350
- className: vn,
2350
+ className: _n,
2351
2351
  children: /* @__PURE__ */ _(a, {
2352
2352
  size: 14,
2353
2353
  strokeWidth: 2.5,
@@ -2373,11 +2373,11 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
2373
2373
  }
2374
2374
  //#endregion
2375
2375
  //#region src/components/DatePicker/DatePicker.tsx
2376
- var On = {
2376
+ var Dn = {
2377
2377
  default: "",
2378
2378
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2379
2379
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2380
- }, kn = [
2380
+ }, On = [
2381
2381
  "D",
2382
2382
  "S",
2383
2383
  "T",
@@ -2386,38 +2386,38 @@ var On = {
2386
2386
  "S",
2387
2387
  "S"
2388
2388
  ];
2389
- function An(e, t) {
2390
- let n = G(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
2391
- for (let e = n; e <= r; e = de(e, 1)) i.push(e);
2389
+ function kn(e, t) {
2390
+ let n = K(Te(e), { weekStartsOn: t }), r = De(we(e), { weekStartsOn: t }), i = [];
2391
+ for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
2392
2392
  return i;
2393
2393
  }
2394
- function jn(e) {
2394
+ function An(e) {
2395
2395
  return e.mode === "range";
2396
2396
  }
2397
- function Mn(e) {
2398
- let { label: t = "Label", labelVariant: n, disabled: r = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: m = 0, dateFormat: h = "dd/MM/yyyy", className: g } = e, y = jn(e), b = e.placeholder ?? (y ? "Selecione um período" : "Selecione uma data"), x = ee(), S = p ?? x, C = l === "invalid", T = C || d, D = on[u], te = u === "lg" ? "size-5" : "size-4", ne = an(n), O = ne === "floating", re = jn(e) ? {
2397
+ function jn(e) {
2398
+ let { label: t = "Label", labelVariant: n, disabled: r = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: m = 0, dateFormat: h = "dd/MM/yyyy", className: g } = e, y = An(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", ne = rn(n), O = ne === "floating", re = An(e) ? {
2399
2399
  from: e.defaultValue?.from ?? null,
2400
2400
  to: e.defaultValue?.to ?? null
2401
2401
  } : {
2402
2402
  from: e.defaultValue ?? null,
2403
2403
  to: null
2404
- }, k = jn(e) ? e.value === void 0 ? void 0 : {
2404
+ }, k = An(e) ? e.value === void 0 ? void 0 : {
2405
2405
  from: e.value?.from ?? null,
2406
2406
  to: e.value?.to ?? null
2407
2407
  } : e.value === void 0 ? void 0 : {
2408
2408
  from: e.value ?? null,
2409
2409
  to: null
2410
- }, j = k !== void 0, [M, N] = E(re), P = j ? k : M, F = jn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, L = jn(e) ? e.presets : void 0, [ie, R] = E(!1), [z, ae] = E(() => P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), B = w(() => [...kn.slice(m), ...kn.slice(0, m)], [m]), oe = w(() => Array.from({ length: F }, (e, t) => fe(z, t)), [z, F]);
2411
- function se(t) {
2412
- r || (t && ae(P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), R(t));
2410
+ }, j = k !== void 0, [M, N] = E(re), P = j ? k : M, F = An(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, L = An(e) ? e.presets : void 0, [ie, R] = E(!1), [z, B] = E(() => P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), V = w(() => [...On.slice(m), ...On.slice(0, m)], [m]), ae = w(() => Array.from({ length: F }, (e, t) => de(z, t)), [z, F]);
2411
+ function oe(t) {
2412
+ r || (t && B(P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), R(t));
2413
2413
  }
2414
- function V(t) {
2415
- if (jn(e)) {
2414
+ function H(t) {
2415
+ if (An(e)) {
2416
2416
  let n = P, r;
2417
2417
  r = !n.from || n.to ? {
2418
2418
  from: t,
2419
2419
  to: null
2420
- } : vt(t, n.from) ? {
2420
+ } : _t(t, n.from) ? {
2421
2421
  from: t,
2422
2422
  to: n.from
2423
2423
  } : {
@@ -2434,30 +2434,30 @@ function Mn(e) {
2434
2434
  to: null
2435
2435
  }), e.onValueChange?.(t), R(!1);
2436
2436
  }
2437
- function ce(t) {
2437
+ function se(t) {
2438
2438
  let n = {
2439
2439
  from: t.from,
2440
2440
  to: t.to ?? null
2441
2441
  };
2442
- j || N(n), jn(e) && e.onValueChange?.({
2442
+ j || N(n), An(e) && e.onValueChange?.({
2443
2443
  from: t.from,
2444
2444
  to: t.to ?? void 0
2445
- }), ae(t.from);
2445
+ }), B(t.from);
2446
2446
  }
2447
- function H(e) {
2448
- return !P.from || !P.to || !e.range.to ? !1 : Se(P.from, e.range.from) && Se(P.to, e.range.to);
2447
+ function U(e) {
2448
+ return !P.from || !P.to || !e.range.to ? !1 : xe(P.from, e.range.from) && xe(P.to, e.range.to);
2449
2449
  }
2450
- let le = P.from ? !y || !P.to ? J(P.from, h) : `${J(P.from, h)} - ${J(P.to, h)}` : b;
2450
+ let ce = P.from ? !y || !P.to ? Y(P.from, h) : `${Y(P.from, h)} - ${Y(P.to, h)}` : b;
2451
2451
  return /* @__PURE__ */ v("div", {
2452
- className: I(cn, g),
2452
+ className: I(sn, g),
2453
2453
  "data-fluid": o || void 0,
2454
2454
  "data-eds-component": "DatePicker",
2455
2455
  "data-label-variant": ne,
2456
2456
  children: [
2457
2457
  /* @__PURE__ */ _("div", {
2458
- className: ln,
2458
+ className: cn,
2459
2459
  children: /* @__PURE__ */ v("label", {
2460
- className: I(un, O && "sr-only", !O && "font-medium"),
2460
+ className: I(ln, O && "sr-only", !O && "font-medium"),
2461
2461
  htmlFor: S,
2462
2462
  children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
2463
2463
  className: "text-eds-red-main",
@@ -2467,18 +2467,18 @@ function Mn(e) {
2467
2467
  }),
2468
2468
  /* @__PURE__ */ v(A.Root, {
2469
2469
  open: ie,
2470
- onOpenChange: se,
2470
+ onOpenChange: oe,
2471
2471
  children: [/* @__PURE__ */ v(A.Trigger, {
2472
2472
  id: S,
2473
2473
  disabled: r,
2474
- className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", D.trigger, On[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2474
+ className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", D.trigger, Dn[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2475
2475
  "data-state": l,
2476
2476
  "data-size": u,
2477
2477
  "data-disabled": r || void 0,
2478
2478
  "aria-describedby": T ? `${S}-desc` : void 0,
2479
2479
  children: [
2480
2480
  O && /* @__PURE__ */ v("span", {
2481
- className: xn(D.left),
2481
+ className: bn(D.left),
2482
2482
  children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
2483
2483
  className: "text-eds-red-main",
2484
2484
  "aria-hidden": "true",
@@ -2490,13 +2490,13 @@ function Mn(e) {
2490
2490
  "aria-hidden": !0
2491
2491
  }),
2492
2492
  /* @__PURE__ */ _("span", {
2493
- className: I("min-w-0 flex-1 truncate font-inherit", D.text, P.from ? "text-eds-neutral-main" : dn),
2494
- children: le
2493
+ className: I("min-w-0 flex-1 truncate font-inherit", D.text, P.from ? "text-eds-neutral-main" : un),
2494
+ children: ce
2495
2495
  })
2496
2496
  ]
2497
2497
  }), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
2498
- className: yn,
2499
- style: bn,
2498
+ className: vn,
2499
+ style: yn,
2500
2500
  positionMethod: "fixed",
2501
2501
  sideOffset: 4,
2502
2502
  align: "start",
@@ -2507,37 +2507,37 @@ function Mn(e) {
2507
2507
  className: "flex w-40 shrink-0 flex-col gap-0.5 border-r border-eds-outline-border p-2 text-sm",
2508
2508
  children: L.map((e) => /* @__PURE__ */ _("button", {
2509
2509
  type: "button",
2510
- onClick: () => ce(e.range),
2511
- className: I("rounded-md px-3 py-1.5 text-left whitespace-nowrap", H(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2510
+ onClick: () => se(e.range),
2511
+ className: I("rounded-md px-3 py-1.5 text-left whitespace-nowrap", U(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2512
2512
  children: e.label
2513
2513
  }, e.label))
2514
2514
  }), /* @__PURE__ */ _("div", {
2515
2515
  className: "flex",
2516
- children: oe.map((e, t) => {
2517
- let n = t === 0, r = t === oe.length - 1, i = An(e, m);
2516
+ children: ae.map((e, t) => {
2517
+ let n = t === 0, r = t === ae.length - 1, i = kn(e, m);
2518
2518
  return /* @__PURE__ */ v("div", {
2519
2519
  className: I("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
2520
2520
  children: [/* @__PURE__ */ v("div", {
2521
2521
  className: "flex items-center gap-2.5 p-4",
2522
2522
  children: [
2523
- n ? /* @__PURE__ */ _(jt, {
2523
+ n ? /* @__PURE__ */ _(At, {
2524
2524
  icon: s,
2525
2525
  label: "Mês anterior",
2526
2526
  size: "sm",
2527
- onClick: () => ae((e) => wt(e, 1))
2527
+ onClick: () => B((e) => Ct(e, 1))
2528
2528
  }) : /* @__PURE__ */ _("span", {
2529
2529
  className: "size-8 shrink-0",
2530
2530
  "aria-hidden": !0
2531
2531
  }),
2532
2532
  /* @__PURE__ */ _("span", {
2533
2533
  className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
2534
- children: J(e, "MMMM yyyy", { locale: kt })
2534
+ children: Y(e, "MMMM yyyy", { locale: Ot })
2535
2535
  }),
2536
- r ? /* @__PURE__ */ _(jt, {
2536
+ r ? /* @__PURE__ */ _(At, {
2537
2537
  icon: c,
2538
2538
  label: "Próximo mês",
2539
2539
  size: "sm",
2540
- onClick: () => ae((e) => fe(e, 1))
2540
+ onClick: () => B((e) => de(e, 1))
2541
2541
  }) : /* @__PURE__ */ _("span", {
2542
2542
  className: "size-8 shrink-0",
2543
2543
  "aria-hidden": !0
@@ -2545,20 +2545,20 @@ function Mn(e) {
2545
2545
  ]
2546
2546
  }), /* @__PURE__ */ v("div", {
2547
2547
  className: "grid grid-cols-7 px-4 pb-4",
2548
- children: [B.map((e, t) => /* @__PURE__ */ _("span", {
2548
+ children: [V.map((e, t) => /* @__PURE__ */ _("span", {
2549
2549
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2550
2550
  children: e
2551
2551
  }, `${e}-${t}`)), i.map((t) => {
2552
- let n = yt(t, e), r = bt(t), i = y && P.from ? Se(t, P.from) : !1, a = y && P.to ? Se(t, P.to) : !1, o = !!(y && P.from && P.to && !Se(P.from, P.to)), s = o && P.from && P.to ? _t(t, P.from) && vt(t, P.to) : !1, c = y ? i || a : P.from ? Se(t, P.from) : !1;
2552
+ let n = vt(t, e), r = yt(t), i = y && P.from ? xe(t, P.from) : !1, a = y && P.to ? xe(t, P.to) : !1, o = !!(y && P.from && P.to && !xe(P.from, P.to)), s = o && P.from && P.to ? gt(t, P.from) && _t(t, P.to) : !1, c = y ? i || a : P.from ? xe(t, P.from) : !1;
2553
2553
  return /* @__PURE__ */ _("div", {
2554
2554
  className: I("flex items-center justify-center py-0.5", o && (s || i || a) && "bg-eds-blue-main/10", o && i && "rounded-l-full", o && a && "rounded-r-full"),
2555
2555
  children: /* @__PURE__ */ _("button", {
2556
2556
  type: "button",
2557
- onClick: () => V(t),
2557
+ onClick: () => H(t),
2558
2558
  "data-selected": c || void 0,
2559
2559
  "data-today": r || void 0,
2560
2560
  className: I("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", c ? "bg-eds-blue-main text-white" : n ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !c && r && "ring-1 ring-inset ring-eds-blue-main"),
2561
- children: J(t, "d")
2561
+ children: Y(t, "d")
2562
2562
  })
2563
2563
  }, t.toISOString());
2564
2564
  })]
@@ -2580,44 +2580,44 @@ function Mn(e) {
2580
2580
  }
2581
2581
  //#endregion
2582
2582
  //#region src/components/DateTimePicker/AnalogClock.tsx
2583
- var Nn = 220, Pn = Nn / 2, Fn = 92, In = 64, Ln = 30;
2584
- function Rn(e, t) {
2585
- let n = Math.atan2(t - Pn, e - Pn) + Math.PI / 2;
2583
+ var Mn = 220, Nn = Mn / 2, Pn = 92, Fn = 64, In = 30;
2584
+ function Ln(e, t) {
2585
+ let n = Math.atan2(t - Nn, e - Nn) + Math.PI / 2;
2586
2586
  return n < 0 ? n + Math.PI * 2 : n;
2587
2587
  }
2588
- function zn(e, t) {
2589
- let n = Rn(e, t), r = Math.round(n / (Math.PI * 2) * 12) % 12, i = r === 0 ? 12 : r;
2590
- return Math.hypot(e - Pn, t - Pn) < 156 / 2 ? i === 12 ? 0 : i + 12 : i;
2588
+ function Rn(e, t) {
2589
+ let n = Ln(e, t), r = Math.round(n / (Math.PI * 2) * 12) % 12, i = r === 0 ? 12 : r;
2590
+ return Math.hypot(e - Nn, t - Nn) < 156 / 2 ? i === 12 ? 0 : i + 12 : i;
2591
2591
  }
2592
- function Bn(e, t, n) {
2593
- let r = n > 0 ? n : 1, i = Rn(e, t) / (Math.PI * 2) * 60, a = Math.round(i / r) * r;
2592
+ function zn(e, t, n) {
2593
+ let r = n > 0 ? n : 1, i = Ln(e, t) / (Math.PI * 2) * 60, a = Math.round(i / r) * r;
2594
2594
  return a >= 60 ? 0 : a;
2595
2595
  }
2596
- function Vn(e, t) {
2596
+ function Bn(e, t) {
2597
2597
  let n = e / 12 * Math.PI * 2 - Math.PI / 2;
2598
2598
  return {
2599
2599
  x: Math.round(Math.cos(n) * t),
2600
2600
  y: Math.round(Math.sin(n) * t)
2601
2601
  };
2602
2602
  }
2603
- function Hn(e, t) {
2603
+ function Vn(e, t) {
2604
2604
  return e === "hours" ? t % 12 : t / 5;
2605
2605
  }
2606
- function Un(e, t) {
2606
+ function Hn(e, t) {
2607
2607
  let n = e === "hours" && (t === 0 || t > 12);
2608
- return Vn(Hn(e, t), n ? In : Fn);
2608
+ return Bn(Vn(e, t), n ? Fn : Pn);
2609
2609
  }
2610
- function Wn(e, t) {
2610
+ function Un(e, t) {
2611
2611
  return (e === "hours" ? t % 12 / 12 * Math.PI * 2 - Math.PI / 2 : t / 60 * Math.PI * 2 - Math.PI / 2) - Math.PI / 2;
2612
2612
  }
2613
- var Gn = Array.from({ length: 24 }, (e, t) => t), Kn = Array.from({ length: 12 }, (e, t) => t * 5);
2614
- function qn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2613
+ var Wn = Array.from({ length: 24 }, (e, t) => t), Gn = Array.from({ length: 12 }, (e, t) => t * 5);
2614
+ function Kn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2615
2615
  let i = T(null), a = T(!1);
2616
2616
  function o(r, a) {
2617
2617
  let o = i.current?.getBoundingClientRect();
2618
2618
  if (!o) return t;
2619
2619
  let s = r - o.left, c = a - o.top;
2620
- return e === "hours" ? zn(s, c) : Bn(s, c, n);
2620
+ return e === "hours" ? Rn(s, c) : zn(s, c, n);
2621
2621
  }
2622
2622
  function s(e) {
2623
2623
  e.button > 0 || (a.current = !0, e.currentTarget.setPointerCapture(e.pointerId), r(o(e.clientX, e.clientY), !1));
@@ -2655,12 +2655,12 @@ function qn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2655
2655
  default: break;
2656
2656
  }
2657
2657
  }
2658
- let f = e === "hours" ? Gn : Kn;
2658
+ let f = e === "hours" ? Wn : Gn;
2659
2659
  return /* @__PURE__ */ v("div", {
2660
2660
  className: "relative shrink-0 select-none rounded-full bg-eds-neutral-background",
2661
2661
  style: {
2662
- width: Nn,
2663
- height: Nn
2662
+ width: Mn,
2663
+ height: Mn
2664
2664
  },
2665
2665
  children: [
2666
2666
  /* @__PURE__ */ _("div", {
@@ -2683,32 +2683,32 @@ function qn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2683
2683
  className: "pointer-events-none absolute bg-eds-blue-main",
2684
2684
  style: {
2685
2685
  width: 2,
2686
- height: e === "hours" && (t === 0 || t > 12) ? In : Fn,
2687
- left: Pn,
2688
- top: Pn,
2686
+ height: e === "hours" && (t === 0 || t > 12) ? Fn : Pn,
2687
+ left: Nn,
2688
+ top: Nn,
2689
2689
  transformOrigin: "top",
2690
- transform: `rotate(${Wn(e, t)}rad)`
2690
+ transform: `rotate(${Un(e, t)}rad)`
2691
2691
  }
2692
2692
  }),
2693
2693
  /* @__PURE__ */ _("div", {
2694
2694
  className: "pointer-events-none absolute size-1.5 rounded-full bg-eds-blue-main",
2695
2695
  style: {
2696
- left: Pn - 3,
2697
- top: Pn - 3
2696
+ left: Nn - 3,
2697
+ top: Nn - 3
2698
2698
  }
2699
2699
  }),
2700
2700
  f.map((n) => {
2701
- let r = e === "hours" && (n === 0 || n > 12), { x: i, y: a } = Un(e, n), o = t === n, s = e === "hours" ? n === 0 ? "00" : String(n) : String(n).padStart(2, "0");
2701
+ let r = e === "hours" && (n === 0 || n > 12), { x: i, y: a } = Hn(e, n), o = t === n, s = e === "hours" ? n === 0 ? "00" : String(n) : String(n).padStart(2, "0");
2702
2702
  return /* @__PURE__ */ _("button", {
2703
2703
  type: "button",
2704
2704
  tabIndex: -1,
2705
2705
  "aria-hidden": "true",
2706
2706
  className: I("pointer-events-none absolute flex items-center justify-center rounded-full text-sm tabular-nums", o ? "bg-eds-blue-main text-white" : "text-eds-neutral-main", r && !o && "text-xs text-eds-neutral-elements"),
2707
2707
  style: {
2708
- width: Ln,
2709
- height: Ln,
2710
- left: Pn + i - Ln / 2,
2711
- top: Pn + a - Ln / 2
2708
+ width: In,
2709
+ height: In,
2710
+ left: Nn + i - In / 2,
2711
+ top: Nn + a - In / 2
2712
2712
  },
2713
2713
  children: s
2714
2714
  }, n);
@@ -2718,11 +2718,11 @@ function qn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
2718
2718
  }
2719
2719
  //#endregion
2720
2720
  //#region src/components/DateTimePicker/DateTimePicker.tsx
2721
- var Jn = {
2721
+ var qn = {
2722
2722
  default: "",
2723
2723
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2724
2724
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2725
- }, Yn = [
2725
+ }, Jn = [
2726
2726
  "D",
2727
2727
  "S",
2728
2728
  "T",
@@ -2731,82 +2731,82 @@ var Jn = {
2731
2731
  "S",
2732
2732
  "S"
2733
2733
  ];
2734
- function Xn(e, t) {
2735
- let n = G(Ee(e), { weekStartsOn: t }), r = Oe(Te(e), { weekStartsOn: t }), i = [];
2736
- for (let e = n; e <= r; e = de(e, 1)) i.push(e);
2734
+ function Yn(e, t) {
2735
+ let n = K(Te(e), { weekStartsOn: t }), r = De(we(e), { weekStartsOn: t }), i = [];
2736
+ for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
2737
2737
  return i;
2738
2738
  }
2739
- function Zn(e, t) {
2740
- let n = t ? ht(t) : 0, r = t ? gt(t) : 0;
2741
- return Ct(St(xt(e, n), r), 0);
2739
+ function Xn(e, t) {
2740
+ let n = t ? mt(t) : 0, r = t ? ht(t) : 0;
2741
+ return St(xt(bt(e, n), r), 0);
2742
2742
  }
2743
- function Qn(e, t) {
2743
+ function Zn(e, t) {
2744
2744
  let n = Math.round(e / t) * t;
2745
2745
  return Math.min(59, Math.max(0, n >= 60 ? 60 - t : n));
2746
2746
  }
2747
- function $n(e) {
2747
+ function Qn(e) {
2748
2748
  let t = Math.max(1, Math.min(30, Math.floor(e))), n = [];
2749
2749
  for (let e = 0; e < 60; e += t) n.push(e);
2750
2750
  return n;
2751
2751
  }
2752
- var er = Array.from({ length: 24 }, (e, t) => t);
2753
- function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione data e hora", disabled: i = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data e hora válidas", id: p, weekStartsOn: m = 0, defaultMonth: h, dateFormat: g = "dd/MM/yyyy HH:mm", minuteStep: y = 5, timeVariant: b = "clock", value: x, defaultValue: S = null, onValueChange: D, className: te }) {
2754
- let ne = ee(), O = p ?? ne, re = l === "invalid", k = re || d, j = on[u], M = u === "lg" ? "size-5" : "size-4", N = an(t), P = N === "floating", F = x !== void 0, [L, ie] = E(S), R = F ? x ?? null : L, [z, ae] = E(!1), [B, se] = E(() => R ?? h ?? /* @__PURE__ */ new Date()), [V, ce] = E(R), [H, le] = E("hours"), ue = T(null), U = T(null), W = w(() => $n(y), [y]), de = w(() => Math.max(1, Math.min(30, Math.floor(y))), [y]), pe = w(() => [...Yn.slice(m), ...Yn.slice(0, m)], [m]), me = w(() => Xn(B, m), [B, m]), G = V ? ht(V) : 0, K = V ? Qn(gt(V), y) : 0;
2752
+ var $n = Array.from({ length: 24 }, (e, t) => t);
2753
+ function er({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione data e hora", disabled: i = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data e hora válidas", id: p, weekStartsOn: m = 0, defaultMonth: h, dateFormat: g = "dd/MM/yyyy HH:mm", minuteStep: y = 5, timeVariant: b = "clock", value: x, defaultValue: S = null, onValueChange: D, className: te }) {
2754
+ let ne = ee(), O = p ?? ne, re = l === "invalid", k = re || d, j = an[u], M = u === "lg" ? "size-5" : "size-4", N = rn(t), P = N === "floating", F = x !== void 0, [L, ie] = E(S), R = F ? x ?? null : L, [z, B] = E(!1), [V, oe] = E(() => R ?? h ?? /* @__PURE__ */ new Date()), [H, se] = E(R), [U, ce] = E("hours"), le = T(null), W = T(null), G = w(() => Qn(y), [y]), ue = w(() => Math.max(1, Math.min(30, Math.floor(y))), [y]), fe = w(() => [...Jn.slice(m), ...Jn.slice(0, m)], [m]), pe = w(() => Yn(V, m), [V, m]), K = H ? mt(H) : 0, q = H ? Zn(ht(H), y) : 0;
2755
2755
  C(() => {
2756
2756
  if (!z) return;
2757
2757
  let e = (e, t, n) => {
2758
2758
  (e?.querySelector(`[data-${t}="${n}"]`))?.scrollIntoView({ block: "center" });
2759
2759
  };
2760
2760
  requestAnimationFrame(() => {
2761
- e(ue.current, "hour", G), e(U.current, "minute", K);
2761
+ e(le.current, "hour", K), e(W.current, "minute", q);
2762
2762
  });
2763
2763
  }, [
2764
2764
  z,
2765
- G,
2766
- K
2765
+ K,
2766
+ q
2767
2767
  ]);
2768
- function he(e) {
2768
+ function me(e) {
2769
2769
  F || ie(e), D?.(e);
2770
2770
  }
2771
- function ge(e) {
2771
+ function he(e) {
2772
2772
  if (!i) {
2773
2773
  if (e) {
2774
- let e = R ?? h ?? /* @__PURE__ */ new Date(), t = St(e, Qn(gt(e), y));
2775
- ce(R ? t : null), se(R ?? h ?? /* @__PURE__ */ new Date()), le("hours");
2774
+ let e = R ?? h ?? /* @__PURE__ */ new Date(), t = xt(e, Zn(ht(e), y));
2775
+ se(R ? t : null), oe(R ?? h ?? /* @__PURE__ */ new Date()), ce("hours");
2776
2776
  }
2777
- ae(e);
2777
+ B(e);
2778
2778
  }
2779
2779
  }
2780
- function _e(e) {
2781
- let t = Zn(e, V ?? R), n = St(t, Qn(gt(t), y));
2782
- ce(n), he(n);
2780
+ function ge(e) {
2781
+ let t = Xn(e, H ?? R), n = xt(t, Zn(ht(t), y));
2782
+ se(n), me(n);
2783
+ }
2784
+ function _e(e, t = !0) {
2785
+ let n = H ?? R ?? /* @__PURE__ */ new Date(), r = St(xt(bt(n, e), Zn(ht(n), y)), 0);
2786
+ se(r), t && (me(r), b === "clock" && ce("minutes"));
2783
2787
  }
2784
2788
  function ve(e, t = !0) {
2785
- let n = V ?? R ?? /* @__PURE__ */ new Date(), r = Ct(St(xt(n, e), Qn(gt(n), y)), 0);
2786
- ce(r), t && (he(r), b === "clock" && le("minutes"));
2789
+ let n = St(xt(H ?? R ?? /* @__PURE__ */ new Date(), e), 0);
2790
+ se(n), t && (me(n), B(!1));
2787
2791
  }
2788
- function ye(e, t = !0) {
2789
- let n = Ct(St(V ?? R ?? /* @__PURE__ */ new Date(), e), 0);
2790
- ce(n), t && he(n);
2792
+ function ye() {
2793
+ let e = /* @__PURE__ */ new Date(), t = St(xt(e, Zn(ht(e), y)), 0);
2794
+ se(t), oe(t), me(t);
2791
2795
  }
2792
2796
  function be() {
2793
- let e = /* @__PURE__ */ new Date(), t = Ct(St(e, Qn(gt(e), y)), 0);
2794
- ce(t), se(t), he(t);
2797
+ H && me(H), B(!1);
2795
2798
  }
2796
- function xe() {
2797
- V && he(V), ae(!1);
2798
- }
2799
- let Ce = R ? J(R, g) : n;
2799
+ let Se = R ? Y(R, g) : n;
2800
2800
  return /* @__PURE__ */ v("div", {
2801
- className: I(cn, te),
2801
+ className: I(sn, te),
2802
2802
  "data-fluid": o || void 0,
2803
2803
  "data-eds-component": "DateTimePicker",
2804
2804
  "data-label-variant": N,
2805
2805
  children: [
2806
2806
  /* @__PURE__ */ _("div", {
2807
- className: ln,
2807
+ className: cn,
2808
2808
  children: /* @__PURE__ */ v("label", {
2809
- className: I(un, P && "sr-only", !P && "font-medium"),
2809
+ className: I(ln, P && "sr-only", !P && "font-medium"),
2810
2810
  htmlFor: O,
2811
2811
  children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
2812
2812
  className: "text-eds-red-main",
@@ -2816,18 +2816,18 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2816
2816
  }),
2817
2817
  /* @__PURE__ */ v(A.Root, {
2818
2818
  open: z,
2819
- onOpenChange: ge,
2819
+ onOpenChange: he,
2820
2820
  children: [/* @__PURE__ */ v(A.Trigger, {
2821
2821
  id: O,
2822
2822
  disabled: i,
2823
- className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", j.trigger, Jn[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2823
+ className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", j.trigger, qn[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2824
2824
  "data-state": l,
2825
2825
  "data-size": u,
2826
2826
  "data-disabled": i || void 0,
2827
2827
  "aria-describedby": k ? `${O}-desc` : void 0,
2828
2828
  children: [
2829
2829
  P && /* @__PURE__ */ v("span", {
2830
- className: xn(j.left),
2830
+ className: bn(j.left),
2831
2831
  children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
2832
2832
  className: "text-eds-red-main",
2833
2833
  "aria-hidden": "true",
@@ -2839,13 +2839,13 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2839
2839
  "aria-hidden": !0
2840
2840
  }),
2841
2841
  /* @__PURE__ */ _("span", {
2842
- className: I("min-w-0 flex-1 truncate font-inherit", j.text, R ? "text-eds-neutral-main" : dn),
2843
- children: Ce
2842
+ className: I("min-w-0 flex-1 truncate font-inherit", j.text, R ? "text-eds-neutral-main" : un),
2843
+ children: Se
2844
2844
  })
2845
2845
  ]
2846
2846
  }), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
2847
- className: yn,
2848
- style: bn,
2847
+ className: vn,
2848
+ style: yn,
2849
2849
  positionMethod: "fixed",
2850
2850
  sideOffset: 4,
2851
2851
  align: "start",
@@ -2859,39 +2859,39 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2859
2859
  children: [/* @__PURE__ */ v("div", {
2860
2860
  className: "flex items-center gap-2.5 p-4",
2861
2861
  children: [
2862
- /* @__PURE__ */ _(jt, {
2862
+ /* @__PURE__ */ _(At, {
2863
2863
  icon: s,
2864
2864
  label: "Mês anterior",
2865
2865
  size: "sm",
2866
- onClick: () => se((e) => wt(e, 1))
2866
+ onClick: () => oe((e) => Ct(e, 1))
2867
2867
  }),
2868
2868
  /* @__PURE__ */ _("span", {
2869
2869
  className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
2870
- children: J(B, "MMMM yyyy", { locale: kt })
2870
+ children: Y(V, "MMMM yyyy", { locale: Ot })
2871
2871
  }),
2872
- /* @__PURE__ */ _(jt, {
2872
+ /* @__PURE__ */ _(At, {
2873
2873
  icon: c,
2874
2874
  label: "Próximo mês",
2875
2875
  size: "sm",
2876
- onClick: () => se((e) => fe(e, 1))
2876
+ onClick: () => oe((e) => de(e, 1))
2877
2877
  })
2878
2878
  ]
2879
2879
  }), /* @__PURE__ */ v("div", {
2880
2880
  className: "grid grid-cols-7 px-4 pb-4",
2881
- children: [pe.map((e, t) => /* @__PURE__ */ _("span", {
2881
+ children: [fe.map((e, t) => /* @__PURE__ */ _("span", {
2882
2882
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2883
2883
  children: e
2884
- }, `${e}-${t}`)), me.map((e) => {
2885
- let t = yt(e, B), n = bt(e), r = V ? Se(e, V) : !1;
2884
+ }, `${e}-${t}`)), pe.map((e) => {
2885
+ let t = vt(e, V), n = yt(e), r = H ? xe(e, H) : !1;
2886
2886
  return /* @__PURE__ */ _("div", {
2887
2887
  className: "flex items-center justify-center py-0.5",
2888
2888
  children: /* @__PURE__ */ _("button", {
2889
2889
  type: "button",
2890
- onClick: () => _e(e),
2890
+ onClick: () => ge(e),
2891
2891
  "data-selected": r || void 0,
2892
2892
  "data-today": n || void 0,
2893
2893
  className: I("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", r ? "bg-eds-blue-main text-white" : t ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !r && n && "ring-1 ring-inset ring-eds-blue-main"),
2894
- children: J(e, "d")
2894
+ children: Y(e, "d")
2895
2895
  })
2896
2896
  }, e.toISOString());
2897
2897
  })]
@@ -2904,10 +2904,10 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2904
2904
  /* @__PURE__ */ _("button", {
2905
2905
  type: "button",
2906
2906
  "aria-label": "Selecionar hora",
2907
- "aria-pressed": H === "hours",
2908
- onClick: () => le("hours"),
2909
- className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", H === "hours" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
2910
- children: String(G).padStart(2, "0")
2907
+ "aria-pressed": U === "hours",
2908
+ onClick: () => ce("hours"),
2909
+ className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", U === "hours" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
2910
+ children: String(K).padStart(2, "0")
2911
2911
  }),
2912
2912
  /* @__PURE__ */ _("span", {
2913
2913
  className: "text-sm text-eds-neutral-elements",
@@ -2916,17 +2916,17 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2916
2916
  /* @__PURE__ */ _("button", {
2917
2917
  type: "button",
2918
2918
  "aria-label": "Selecionar minuto",
2919
- "aria-pressed": H === "minutes",
2920
- onClick: () => le("minutes"),
2921
- className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", H === "minutes" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
2922
- children: String(K).padStart(2, "0")
2919
+ "aria-pressed": U === "minutes",
2920
+ onClick: () => ce("minutes"),
2921
+ className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", U === "minutes" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
2922
+ children: String(q).padStart(2, "0")
2923
2923
  })
2924
2924
  ]
2925
- }), /* @__PURE__ */ _(qn, {
2926
- mode: H,
2927
- value: H === "hours" ? G : K,
2928
- minuteStep: de,
2929
- onSelect: (e, t) => H === "hours" ? ve(e, t) : ye(e, t)
2925
+ }), /* @__PURE__ */ _(Kn, {
2926
+ mode: U,
2927
+ value: U === "hours" ? K : q,
2928
+ minuteStep: ue,
2929
+ onSelect: (e, t) => U === "hours" ? _e(e, t) : ve(e, t)
2930
2930
  })]
2931
2931
  }) : /* @__PURE__ */ v("div", {
2932
2932
  className: "flex w-[148px] shrink-0 border-l border-eds-outline-border",
@@ -2936,18 +2936,18 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2936
2936
  className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2937
2937
  children: "Hora"
2938
2938
  }), /* @__PURE__ */ _("div", {
2939
- ref: ue,
2939
+ ref: le,
2940
2940
  className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2941
2941
  role: "listbox",
2942
2942
  "aria-label": "Hora",
2943
- children: er.map((e) => {
2944
- let t = G === e;
2943
+ children: $n.map((e) => {
2944
+ let t = K === e;
2945
2945
  return /* @__PURE__ */ _("button", {
2946
2946
  type: "button",
2947
2947
  role: "option",
2948
2948
  "aria-selected": t,
2949
2949
  "data-hour": e,
2950
- onClick: () => ve(e),
2950
+ onClick: () => _e(e),
2951
2951
  className: I("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2952
2952
  children: String(e).padStart(2, "0")
2953
2953
  }, e);
@@ -2959,18 +2959,18 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2959
2959
  className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2960
2960
  children: "Min"
2961
2961
  }), /* @__PURE__ */ _("div", {
2962
- ref: U,
2962
+ ref: W,
2963
2963
  className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2964
2964
  role: "listbox",
2965
2965
  "aria-label": "Minuto",
2966
- children: W.map((e) => {
2967
- let t = K === e;
2966
+ children: G.map((e) => {
2967
+ let t = q === e;
2968
2968
  return /* @__PURE__ */ _("button", {
2969
2969
  type: "button",
2970
2970
  role: "option",
2971
2971
  "aria-selected": t,
2972
2972
  "data-minute": e,
2973
- onClick: () => ye(e),
2973
+ onClick: () => ve(e),
2974
2974
  className: I("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2975
2975
  children: String(e).padStart(2, "0")
2976
2976
  }, e);
@@ -2980,16 +2980,16 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
2980
2980
  })]
2981
2981
  }), /* @__PURE__ */ v("div", {
2982
2982
  className: "flex items-center justify-between gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-3 py-2.5",
2983
- children: [/* @__PURE__ */ _(oe, {
2983
+ children: [/* @__PURE__ */ _(ae, {
2984
2984
  text: "Agora",
2985
2985
  variant: "ghost",
2986
2986
  size: "sm",
2987
- onClick: be
2988
- }), /* @__PURE__ */ _(oe, {
2987
+ onClick: ye
2988
+ }), /* @__PURE__ */ _(ae, {
2989
2989
  text: "Confirmar",
2990
2990
  size: "sm",
2991
- onClick: xe,
2992
- disabled: !V
2991
+ onClick: be,
2992
+ disabled: !H
2993
2993
  })]
2994
2994
  })]
2995
2995
  })
@@ -3006,7 +3006,7 @@ function tr({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
3006
3006
  }
3007
3007
  //#endregion
3008
3008
  //#region src/components/Dialog/Dialog.tsx
3009
- var nr = { size: {
3009
+ var tr = { size: {
3010
3010
  sm: {
3011
3011
  classes: "sm:max-w-xs",
3012
3012
  description: "Small dialog for simple confirmations (288px)"
@@ -3023,22 +3023,22 @@ var nr = { size: {
3023
3023
  classes: "sm:max-w-3xl",
3024
3024
  description: "Extra large dialog for detailed views (768px)"
3025
3025
  }
3026
- } }, rr = { size: "md" }, ir = b("dialog");
3027
- function ar() {
3028
- return S(ir);
3026
+ } }, nr = { size: "md" }, rr = b("dialog");
3027
+ function ir() {
3028
+ return S(rr);
3029
3029
  }
3030
- function or({ size: e = rr.size } = {}) {
3031
- return I(`fixed top-1/2 left-1/2 ${sn.overlay} grid w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-white p-4 text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`, L(nr.size, e, rr.size).classes);
3030
+ function ar({ size: e = nr.size } = {}) {
3031
+ 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(tr.size, e, nr.size).classes);
3032
3032
  }
3033
- function sr({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
3034
- let i = ar(), a = i === "alertdialog" ? M.Portal : j.Portal, o = i === "alertdialog" ? M.Backdrop : j.Backdrop, s = i === "alertdialog" ? M.Popup : j.Popup, c = i === "alertdialog" ? M.Close : j.Close;
3033
+ function or({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
3034
+ let i = ir(), a = i === "alertdialog" ? M.Portal : j.Portal, o = i === "alertdialog" ? M.Backdrop : j.Backdrop, s = i === "alertdialog" ? M.Popup : j.Popup, c = i === "alertdialog" ? M.Close : j.Close;
3035
3035
  return /* @__PURE__ */ v(a, { children: [/* @__PURE__ */ _(o, {
3036
- className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", sn.overlay),
3037
- style: { zIndex: sn.overlayValue }
3036
+ 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),
3037
+ style: { zIndex: on.overlayValue }
3038
3038
  }), /* @__PURE__ */ v(s, {
3039
3039
  "data-eds-component": "Dialog",
3040
- className: I(or({ size: n }), e),
3041
- style: { zIndex: sn.overlayValue },
3040
+ className: I(ar({ size: n }), e),
3041
+ style: { zIndex: on.overlayValue },
3042
3042
  children: [t, r ? /* @__PURE__ */ _(c, {
3043
3043
  "data-eds-component": "Dialog",
3044
3044
  "aria-label": "Fechar",
@@ -3050,10 +3050,10 @@ function sr({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
3050
3050
  }) : null]
3051
3051
  })] });
3052
3052
  }
3053
- function cr(e) {
3053
+ function sr(e) {
3054
3054
  if (e.role === "alertdialog") {
3055
3055
  let { children: t, role: n, ...r } = e;
3056
- return /* @__PURE__ */ _(ir.Provider, {
3056
+ return /* @__PURE__ */ _(rr.Provider, {
3057
3057
  value: n,
3058
3058
  children: /* @__PURE__ */ _(M.Root, {
3059
3059
  ...r,
@@ -3062,7 +3062,7 @@ function cr(e) {
3062
3062
  });
3063
3063
  }
3064
3064
  let { children: t, role: n = "dialog", ...r } = e;
3065
- return /* @__PURE__ */ _(ir.Provider, {
3065
+ return /* @__PURE__ */ _(rr.Provider, {
3066
3066
  value: n,
3067
3067
  children: /* @__PURE__ */ _(j.Root, {
3068
3068
  ...r,
@@ -3070,8 +3070,8 @@ function cr(e) {
3070
3070
  })
3071
3071
  });
3072
3072
  }
3073
- function lr({ children: e, ...t }) {
3074
- return ar() === "alertdialog" ? /* @__PURE__ */ _(M.Trigger, {
3073
+ function cr({ children: e, ...t }) {
3074
+ return ir() === "alertdialog" ? /* @__PURE__ */ _(M.Trigger, {
3075
3075
  "data-eds-component": "Dialog",
3076
3076
  ...t,
3077
3077
  children: e
@@ -3081,71 +3081,71 @@ function lr({ children: e, ...t }) {
3081
3081
  children: e
3082
3082
  });
3083
3083
  }
3084
- function ur({ className: e, ...t }) {
3084
+ function lr({ className: e, ...t }) {
3085
3085
  return /* @__PURE__ */ _("div", {
3086
3086
  "data-slot": "dialog-header",
3087
3087
  className: I("flex flex-col gap-2", e),
3088
3088
  ...t
3089
3089
  });
3090
3090
  }
3091
- function dr({ className: e, ...t }) {
3091
+ function ur({ className: e, ...t }) {
3092
3092
  return /* @__PURE__ */ _("div", {
3093
3093
  "data-slot": "dialog-footer",
3094
3094
  className: I("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-eds-outline-border bg-eds-neutral-background p-4 sm:flex-row sm:justify-end", e),
3095
3095
  ...t
3096
3096
  });
3097
3097
  }
3098
- function fr({ className: e, ...t }) {
3099
- return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Title : j.Title, {
3098
+ function dr({ className: e, ...t }) {
3099
+ return /* @__PURE__ */ _(ir() === "alertdialog" ? M.Title : j.Title, {
3100
3100
  className: I("text-base leading-none font-medium text-eds-neutral-main", e),
3101
3101
  ...t
3102
3102
  });
3103
3103
  }
3104
- function pr({ className: e, ...t }) {
3105
- return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Description : j.Description, {
3104
+ function fr({ className: e, ...t }) {
3105
+ return /* @__PURE__ */ _(ir() === "alertdialog" ? M.Description : j.Description, {
3106
3106
  className: I("text-sm text-eds-neutral-elements", e),
3107
3107
  ...t
3108
3108
  });
3109
3109
  }
3110
- function mr({ children: e, ...t }) {
3111
- return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Close : j.Close, {
3110
+ function pr({ children: e, ...t }) {
3111
+ return /* @__PURE__ */ _(ir() === "alertdialog" ? M.Close : j.Close, {
3112
3112
  "data-eds-component": "Dialog",
3113
3113
  ...t,
3114
3114
  children: e
3115
3115
  });
3116
3116
  }
3117
- cr.displayName = "Dialog.Root", lr.displayName = "Dialog.Trigger", ur.displayName = "Dialog.Header", dr.displayName = "Dialog.Footer", fr.displayName = "Dialog.Title", pr.displayName = "Dialog.Description", mr.displayName = "Dialog.Close";
3118
- var hr = Object.assign(sr, {
3119
- Root: cr,
3120
- Trigger: lr,
3121
- Header: ur,
3122
- Footer: dr,
3123
- Title: fr,
3124
- Description: pr,
3125
- Close: mr
3117
+ sr.displayName = "Dialog.Root", cr.displayName = "Dialog.Trigger", lr.displayName = "Dialog.Header", ur.displayName = "Dialog.Footer", dr.displayName = "Dialog.Title", fr.displayName = "Dialog.Description", pr.displayName = "Dialog.Close";
3118
+ var mr = Object.assign(or, {
3119
+ Root: sr,
3120
+ Trigger: cr,
3121
+ Header: lr,
3122
+ Footer: ur,
3123
+ Title: dr,
3124
+ Description: fr,
3125
+ Close: pr
3126
3126
  });
3127
3127
  //#endregion
3128
3128
  //#region src/components/FormDialog/FormDialog.tsx
3129
- function gr({ size: e = "xl" } = {}) {
3130
- return I("relative flex w-full max-h-full min-h-0 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "[&>form]:flex [&>form]:min-h-0 [&>form]:w-full [&>form]:flex-1 [&>form]:flex-col [&>form]:overflow-hidden", L(nr.size, e, rr.size).classes);
3129
+ function hr({ size: e = "xl" } = {}) {
3130
+ return I("relative flex w-full max-h-full min-h-0 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "[&>form]:flex [&>form]:min-h-0 [&>form]:w-full [&>form]:flex-1 [&>form]:flex-col [&>form]:overflow-hidden", L(tr.size, e, nr.size).classes);
3131
3131
  }
3132
- function _r({ className: e, children: t, size: n = "xl" }) {
3133
- let r = ar(), i = r === "alertdialog" ? M.Portal : j.Portal, a = r === "alertdialog" ? M.Backdrop : j.Backdrop, o = r === "alertdialog" ? M.Popup : j.Popup;
3132
+ function gr({ className: e, children: t, size: n = "xl" }) {
3133
+ let r = ir(), i = r === "alertdialog" ? M.Portal : j.Portal, a = r === "alertdialog" ? M.Backdrop : j.Backdrop, o = r === "alertdialog" ? M.Popup : j.Popup;
3134
3134
  return /* @__PURE__ */ v(i, { children: [/* @__PURE__ */ _(a, {
3135
- className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", sn.overlay),
3136
- style: { zIndex: sn.overlayValue }
3135
+ 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),
3136
+ style: { zIndex: on.overlayValue }
3137
3137
  }), /* @__PURE__ */ _("div", {
3138
- className: I("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", sn.overlay),
3139
- style: { zIndex: sn.overlayValue },
3138
+ className: I("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", on.overlay),
3139
+ style: { zIndex: on.overlayValue },
3140
3140
  children: /* @__PURE__ */ _(o, {
3141
3141
  "data-eds-component": "FormDialog",
3142
- className: I("pointer-events-auto", gr({ size: n }), e),
3142
+ className: I("pointer-events-auto", hr({ size: n }), e),
3143
3143
  children: t
3144
3144
  })
3145
3145
  })] });
3146
3146
  }
3147
- function vr({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
3148
- let s = ar(), c = s === "alertdialog" ? M.Close : j.Close, l = s === "alertdialog" ? M.Title : j.Title, u = s === "alertdialog" ? M.Description : j.Description, d = n != null || r != null || t;
3147
+ function _r({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
3148
+ let s = ir(), c = s === "alertdialog" ? M.Close : j.Close, l = s === "alertdialog" ? M.Title : j.Title, u = s === "alertdialog" ? M.Description : j.Description, d = n != null || r != null || t;
3149
3149
  return /* @__PURE__ */ v("div", {
3150
3150
  "data-slot": "form-dialog-header",
3151
3151
  className: I("relative flex shrink-0 items-start gap-3 border-b border-eds-outline-border bg-white px-5 py-4", i && "pr-12", e),
@@ -3189,43 +3189,43 @@ function vr({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i =
3189
3189
  ]
3190
3190
  });
3191
3191
  }
3192
- function yr({ className: e, ...t }) {
3192
+ function vr({ className: e, ...t }) {
3193
3193
  return /* @__PURE__ */ _("div", {
3194
3194
  "data-slot": "form-dialog-body",
3195
3195
  className: I("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
3196
3196
  ...t
3197
3197
  });
3198
3198
  }
3199
- function br({ className: e, ...t }) {
3199
+ function yr({ className: e, ...t }) {
3200
3200
  return /* @__PURE__ */ _("div", {
3201
3201
  "data-slot": "form-dialog-footer",
3202
3202
  className: I("flex shrink-0 flex-col-reverse gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-5 py-4 sm:flex-row sm:justify-end", e),
3203
3203
  ...t
3204
3204
  });
3205
3205
  }
3206
- function xr({ className: e, ...t }) {
3207
- return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Title : j.Title, {
3206
+ function br({ className: e, ...t }) {
3207
+ return /* @__PURE__ */ _(ir() === "alertdialog" ? M.Title : j.Title, {
3208
3208
  className: I("text-lg leading-tight font-semibold text-eds-blue-dark", e),
3209
3209
  ...t
3210
3210
  });
3211
3211
  }
3212
- function Sr({ className: e, ...t }) {
3213
- return /* @__PURE__ */ _(ar() === "alertdialog" ? M.Description : j.Description, {
3212
+ function xr({ className: e, ...t }) {
3213
+ return /* @__PURE__ */ _(ir() === "alertdialog" ? M.Description : j.Description, {
3214
3214
  className: I("text-sm leading-snug text-eds-neutral-elements", e),
3215
3215
  ...t
3216
3216
  });
3217
3217
  }
3218
- vr.displayName = "FormDialog.Header", yr.displayName = "FormDialog.Body", br.displayName = "FormDialog.Footer", xr.displayName = "FormDialog.Title", Sr.displayName = "FormDialog.Description";
3219
- var Cr = Object.assign(_r, {
3220
- Root: cr,
3221
- Trigger: lr,
3222
- Close: mr,
3223
- Header: vr,
3224
- Body: yr,
3225
- Footer: br,
3226
- Title: xr,
3227
- Description: Sr
3228
- }), wr = { size: {
3218
+ _r.displayName = "FormDialog.Header", vr.displayName = "FormDialog.Body", yr.displayName = "FormDialog.Footer", br.displayName = "FormDialog.Title", xr.displayName = "FormDialog.Description";
3219
+ var Sr = Object.assign(gr, {
3220
+ Root: sr,
3221
+ Trigger: cr,
3222
+ Close: pr,
3223
+ Header: _r,
3224
+ Body: vr,
3225
+ Footer: yr,
3226
+ Title: br,
3227
+ Description: xr
3228
+ }), Cr = { size: {
3229
3229
  sm: {
3230
3230
  classes: "px-6 py-8 gap-3",
3231
3231
  description: "Compact empty state for smaller containers"
@@ -3238,11 +3238,11 @@ var Cr = Object.assign(_r, {
3238
3238
  classes: "px-12 py-20 gap-6",
3239
3239
  description: "Large empty state for prominent placement"
3240
3240
  }
3241
- } }, Tr = { size: "md" };
3242
- function Er({ icon: e, title: t, description: n, action: r, size: i = Tr.size, titleLevel: a = "h2", className: o }) {
3241
+ } }, wr = { size: "md" };
3242
+ function Tr({ icon: e, title: t, description: n, action: r, size: i = wr.size, titleLevel: a = "h2", className: o }) {
3243
3243
  return /* @__PURE__ */ v("div", {
3244
3244
  "data-eds-component": "Empty",
3245
- className: I("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", L(wr.size, i, Tr.size).classes, o),
3245
+ className: I("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", L(Cr.size, i, wr.size).classes, o),
3246
3246
  children: [
3247
3247
  e && /* @__PURE__ */ _("div", {
3248
3248
  className: "text-eds-neutral-elements",
@@ -3263,24 +3263,24 @@ function Er({ icon: e, title: t, description: n, action: r, size: i = Tr.size, t
3263
3263
  }
3264
3264
  //#endregion
3265
3265
  //#region ../../node_modules/.pnpm/brazilian-values@0.13.1/node_modules/brazilian-values/dist/brazilian-values.mjs
3266
- var Dr = /\D/g, Or = function(e) {
3267
- return e.replace(Dr, "");
3266
+ var Er = /\D/g, Dr = function(e) {
3267
+ return e.replace(Er, "");
3268
+ }, Or = function(e) {
3269
+ return Dr(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
3268
3270
  }, kr = function(e) {
3269
- return Or(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
3271
+ 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");
3270
3272
  }, Ar = function(e) {
3271
- return Or(e).replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d{1,2})$/, "$1-$2");
3273
+ return Dr(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
3272
3274
  }, jr = function(e) {
3273
- return Or(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
3274
- }, Mr = function(e) {
3275
3275
  return (e.match(/\d/g)?.length ?? 0) <= 11;
3276
+ }, Mr = function(e) {
3277
+ return jr(e) ? Ar(e) : kr(e);
3276
3278
  }, Nr = function(e) {
3277
- return Mr(e) ? jr(e) : Ar(e);
3278
- }, Pr = function(e) {
3279
- return Or(e).replace(/(\d{1,2})/, "($1").replace(/(\(\d{2})(\d{1,4})/, "$1) $2").replace(/( \d{4})(\d{1,4})/, "$1-$2").replace(/( \d{4})(?:-)(\d{1})(\d{4})/, "$1$2-$3");
3279
+ 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");
3280
3280
  };
3281
3281
  //#endregion
3282
3282
  //#region src/components/Input/Input.tsx
3283
- function Fr(e) {
3283
+ function Pr(e) {
3284
3284
  if (!e) return "";
3285
3285
  let t = e.trimStart().startsWith("-"), n = e.replace(/\./g, ",").replace(/[^\d,]/g, "");
3286
3286
  if (!n) return t ? "-" : "";
@@ -3289,30 +3289,30 @@ function Fr(e) {
3289
3289
  let i = n.slice(0, r), a = n.slice(r + 1).replace(/,/g, "");
3290
3290
  return `${t ? "-" : ""}${i},${a}`;
3291
3291
  }
3292
- var Ir = {
3292
+ var Fr = {
3293
3293
  default: "",
3294
3294
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3295
3295
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
3296
3296
  loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
3297
3297
  };
3298
- function Lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, format: f, tooltip: p = null, linkText: m = null, linkUrl: h = null, supportLink: g = null, supportLinkUrl: y = null, supportingText: b = "", lazy: x = !1, labelVariant: S, disableAutocomplete: C = !1, isLoading: w = !1, loadingIconPosition: T = "end", icon: D, hideContent: te = !1, showContentText: ne = "Mostrar", hideContentText: O = "Ocultar", defaultValue: re, value: k, id: A, name: j, onBlur: M, onFocus: P, onKeyDown: F, onClick: L, onChange: ie, ...R }) {
3299
- let z = ee(), ae = A ?? z, B = a === "number", [oe, se] = E(!1), [V, ce] = E(() => {
3298
+ function Ir({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, format: f, tooltip: p = null, linkText: m = null, linkUrl: h = null, supportLink: g = null, supportLinkUrl: y = null, supportingText: b = "", lazy: x = !1, labelVariant: S, disableAutocomplete: C = !1, isLoading: w = !1, loadingIconPosition: T = "end", icon: D, hideContent: te = !1, showContentText: ne = "Mostrar", hideContentText: O = "Ocultar", defaultValue: re, value: k, id: A, name: j, onBlur: M, onFocus: P, onKeyDown: F, onClick: L, onChange: ie, ...R }) {
3299
+ let z = ee(), B = A ?? z, V = a === "number", [ae, oe] = E(!1), [H, se] = E(() => {
3300
3300
  let e = re?.toString() ?? "";
3301
- return B ? Fr(e) : e;
3302
- }), H = k !== void 0, le = (H ? k : V)?.toString() ?? "", ue = B ? Fr(le) : le, U = g ?? m, W = y ?? h, de = an(S), fe = de === "floating", pe = (e) => {
3303
- if (B) return Fr(e);
3301
+ return V ? Pr(e) : e;
3302
+ }), U = k !== void 0, ce = (U ? k : H)?.toString() ?? "", le = V ? Pr(ce) : ce, W = g ?? m, G = y ?? h, ue = rn(S), de = ue === "floating", fe = (e) => {
3303
+ if (V) return Pr(e);
3304
3304
  switch (f) {
3305
- case "cep": return kr(e);
3306
- case "cpf": return jr(e);
3307
- case "cnpj": return Ar(e);
3308
- case "cpfOrCnpj": return Nr(e);
3309
- case "phone": return Pr(e);
3305
+ case "cep": return Or(e);
3306
+ case "cpf": return Ar(e);
3307
+ case "cnpj": return kr(e);
3308
+ case "cpfOrCnpj": return Mr(e);
3309
+ case "phone": return Nr(e);
3310
3310
  default: return e;
3311
3311
  }
3312
- }, me = (e, t) => {
3313
- let n = pe(e);
3314
- H || ce(n), ie?.(n, t);
3315
- }, G = r === "invalid", K = n || w, he = on[i], ge = w ? /* @__PURE__ */ _("span", {
3312
+ }, pe = (e, t) => {
3313
+ let n = fe(e);
3314
+ U || se(n), ie?.(n, t);
3315
+ }, K = r === "invalid", q = n || w, me = an[i], he = w ? /* @__PURE__ */ _("span", {
3316
3316
  className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
3317
3317
  "data-position": T,
3318
3318
  "aria-hidden": !0,
@@ -3322,18 +3322,18 @@ function Lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3322
3322
  })
3323
3323
  }) : null;
3324
3324
  return /* @__PURE__ */ v("div", {
3325
- className: I(cn, e),
3325
+ className: I(sn, e),
3326
3326
  "data-fluid": l || void 0,
3327
3327
  "data-eds-component": "Input",
3328
- "data-label-variant": de,
3328
+ "data-label-variant": ue,
3329
3329
  children: [
3330
3330
  /* @__PURE__ */ v("div", {
3331
- className: ln,
3331
+ className: cn,
3332
3332
  children: [/* @__PURE__ */ v("div", {
3333
3333
  className: "inline-flex min-w-0 items-center gap-2",
3334
3334
  children: [/* @__PURE__ */ v("label", {
3335
- className: I(un, fe && "sr-only", !fe && "font-medium"),
3336
- htmlFor: ae,
3335
+ className: I(ln, de && "sr-only", !de && "font-medium"),
3336
+ htmlFor: B,
3337
3337
  children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
3338
3338
  className: "text-eds-red-main",
3339
3339
  children: "*"
@@ -3343,33 +3343,33 @@ function Lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3343
3343
  className: "inline-flex size-7 cursor-help items-center justify-center rounded-md text-eds-neutral-elements focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2",
3344
3344
  "aria-label": p,
3345
3345
  title: p,
3346
- disabled: K,
3346
+ disabled: q,
3347
3347
  children: /* @__PURE__ */ _(u, {
3348
3348
  size: 16,
3349
3349
  "aria-hidden": !0
3350
3350
  })
3351
3351
  })]
3352
- }), U && W && /* @__PURE__ */ _("a", {
3352
+ }), W && G && /* @__PURE__ */ _("a", {
3353
3353
  className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
3354
- href: W,
3355
- "aria-disabled": K || void 0,
3356
- tabIndex: K ? -1 : 0,
3354
+ href: G,
3355
+ "aria-disabled": q || void 0,
3356
+ tabIndex: q ? -1 : 0,
3357
3357
  onClick: (e) => {
3358
- K && e.preventDefault();
3358
+ q && e.preventDefault();
3359
3359
  },
3360
- children: U
3360
+ children: W
3361
3361
  })]
3362
3362
  }),
3363
3363
  /* @__PURE__ */ v("div", {
3364
- className: I("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", he.control, Ir[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3365
- "data-disabled": K || void 0,
3364
+ className: I("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", me.control, Fr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3365
+ "data-disabled": q || void 0,
3366
3366
  "data-state": r,
3367
3367
  "data-size": i,
3368
- "data-floating": fe || void 0,
3369
- "data-has-value": ue ? !0 : void 0,
3368
+ "data-floating": de || void 0,
3369
+ "data-has-value": le ? !0 : void 0,
3370
3370
  children: [
3371
- fe && /* @__PURE__ */ v("span", {
3372
- className: xn(he.left),
3371
+ de && /* @__PURE__ */ v("span", {
3372
+ className: bn(me.left),
3373
3373
  children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
3374
3374
  className: "text-eds-red-main",
3375
3375
  "aria-hidden": "true",
@@ -3381,82 +3381,82 @@ function Lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3381
3381
  size: 16,
3382
3382
  "aria-hidden": !0
3383
3383
  }),
3384
- T === "start" && ge,
3384
+ T === "start" && he,
3385
3385
  /* @__PURE__ */ _(N, {
3386
3386
  ...R,
3387
- id: ae,
3387
+ id: B,
3388
3388
  name: j,
3389
- className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", fn, he.text),
3390
- disabled: K,
3391
- type: B ? "text" : te ? oe ? "text" : "password" : a,
3392
- inputMode: B ? R.inputMode ?? "decimal" : R.inputMode,
3393
- lang: B ? R.lang ?? "pt-BR" : R.lang,
3389
+ className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", dn, me.text),
3390
+ disabled: q,
3391
+ type: V ? "text" : te ? ae ? "text" : "password" : a,
3392
+ inputMode: V ? R.inputMode ?? "decimal" : R.inputMode,
3393
+ lang: V ? R.lang ?? "pt-BR" : R.lang,
3394
3394
  required: o,
3395
3395
  placeholder: s,
3396
3396
  autoComplete: C ? "off" : R.autoComplete,
3397
- "aria-invalid": G || void 0,
3398
- "aria-describedby": G ? `${ae}-desc` : void 0,
3397
+ "aria-invalid": K || void 0,
3398
+ "aria-describedby": K ? `${B}-desc` : void 0,
3399
3399
  "aria-busy": w || void 0,
3400
- value: H || B ? ue : void 0,
3401
- defaultValue: !H && !B ? re : void 0,
3400
+ value: U || V ? le : void 0,
3401
+ defaultValue: !U && !V ? re : void 0,
3402
3402
  onClick: L,
3403
3403
  onKeyDown: F,
3404
3404
  onFocus: P,
3405
3405
  onBlur: (e) => {
3406
- M?.(e), x && me(e.currentTarget.value, e);
3406
+ M?.(e), x && pe(e.currentTarget.value, e);
3407
3407
  },
3408
3408
  onChange: (e) => {
3409
3409
  if (x) {
3410
- B && !H && ce(pe(e.currentTarget.value));
3410
+ V && !U && se(fe(e.currentTarget.value));
3411
3411
  return;
3412
3412
  }
3413
- me(e.currentTarget.value, e);
3413
+ pe(e.currentTarget.value, e);
3414
3414
  }
3415
3415
  }),
3416
3416
  te && !w && /* @__PURE__ */ _("button", {
3417
3417
  type: "button",
3418
3418
  className: "shrink-0 text-sm font-medium text-eds-blue-main hover:underline",
3419
- disabled: K,
3420
- onClick: () => se((e) => !e),
3421
- children: oe ? O : ne
3419
+ disabled: q,
3420
+ onClick: () => oe((e) => !e),
3421
+ children: ae ? O : ne
3422
3422
  }),
3423
- T === "end" && ge
3423
+ T === "end" && he
3424
3424
  ]
3425
3425
  }),
3426
- (G || b) && /* @__PURE__ */ _("div", {
3427
- id: `${ae}-desc`,
3426
+ (K || b) && /* @__PURE__ */ _("div", {
3427
+ id: `${B}-desc`,
3428
3428
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
3429
- "data-state": G ? "invalid" : r,
3430
- children: G ? c : b
3429
+ "data-state": K ? "invalid" : r,
3430
+ children: K ? c : b
3431
3431
  })
3432
3432
  ]
3433
3433
  });
3434
3434
  }
3435
3435
  //#endregion
3436
3436
  //#region src/components/Textarea/Textarea.tsx
3437
- var Rr = {
3437
+ var Lr = {
3438
3438
  default: "",
3439
3439
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3440
3440
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
3441
- }, zr = {
3441
+ }, Rr = {
3442
3442
  sm: "min-h-20",
3443
3443
  md: "min-h-24",
3444
3444
  lg: "min-h-32"
3445
3445
  };
3446
- function Br({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: s = "Campo obrigatório", fluid: c = !1, tooltip: l = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: p = "", labelVariant: m, rows: h = 4, defaultValue: g, value: y, id: b, name: x, onBlur: S, onFocus: C, onKeyDown: w, onClick: T, onChange: D, ...te }) {
3447
- let ne = ee(), O = b ?? ne, [re, k] = E(() => g?.toString() ?? ""), A = y !== void 0, j = (A ? y : re)?.toString() ?? "", M = an(m), N = M === "floating", P = r === "invalid", F = on[i];
3446
+ function zr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: s = "Campo obrigatório", fluid: c = !1, tooltip: l = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: p = "", labelVariant: m, rows: h = 4, defaultValue: g, value: y, id: b, name: x, onBlur: S, onFocus: C, onKeyDown: w, onClick: T, onChange: D, ...te }) {
3447
+ let ne = ee(), O = b ?? ne, [re, k] = E(() => g?.toString() ?? ""), A = y !== void 0, j = (A ? y : re)?.toString() ?? "", M = rn(m), N = M === "floating", P = r === "invalid", F = an[i];
3448
3448
  return /* @__PURE__ */ v("div", {
3449
- className: I(cn, e),
3449
+ className: I(sn, e),
3450
3450
  "data-fluid": c || void 0,
3451
3451
  "data-eds-component": "Textarea",
3452
3452
  "data-label-variant": M,
3453
3453
  children: [
3454
3454
  /* @__PURE__ */ v("div", {
3455
- className: ln,
3455
+ className: cn,
3456
3456
  children: [/* @__PURE__ */ v("div", {
3457
3457
  className: "inline-flex min-w-0 items-center gap-2",
3458
3458
  children: [/* @__PURE__ */ v("label", {
3459
- className: I(un, N && "sr-only", !N && "font-medium"),
3459
+ className: I(ln, N && "sr-only", !N && "font-medium"),
3460
3460
  htmlFor: O,
3461
3461
  children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
3462
3462
  className: "text-eds-red-main",
@@ -3485,14 +3485,14 @@ function Br({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3485
3485
  })]
3486
3486
  }),
3487
3487
  /* @__PURE__ */ v("div", {
3488
- className: I("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", F.paddingX, "py-2.5", zr[i], Rr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:!bg-eds-neutral-background data-disabled:opacity-70"),
3488
+ className: I("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", F.paddingX, "py-2.5", Rr[i], Lr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:!bg-eds-neutral-background data-disabled:opacity-70"),
3489
3489
  "data-disabled": n || void 0,
3490
3490
  "data-state": r,
3491
3491
  "data-size": i,
3492
3492
  "data-floating": N || void 0,
3493
3493
  "data-has-value": j ? !0 : void 0,
3494
3494
  children: [N && /* @__PURE__ */ v("span", {
3495
- className: xn(F.left),
3495
+ className: bn(F.left),
3496
3496
  children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
3497
3497
  className: "text-eds-red-main",
3498
3498
  "aria-hidden": "true",
@@ -3503,7 +3503,7 @@ function Br({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3503
3503
  id: O,
3504
3504
  name: x,
3505
3505
  rows: h,
3506
- className: I("box-border min-h-[inherit] w-full flex-1 resize-y appearance-none border-0 !bg-white p-0 font-inherit text-eds-neutral-main shadow-none outline-none", fn, F.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
3506
+ className: I("box-border min-h-[inherit] w-full flex-1 resize-y appearance-none border-0 !bg-white p-0 font-inherit text-eds-neutral-main shadow-none outline-none", dn, F.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
3507
3507
  disabled: n,
3508
3508
  required: a,
3509
3509
  placeholder: o,
@@ -3531,23 +3531,23 @@ function Br({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3531
3531
  }
3532
3532
  //#endregion
3533
3533
  //#region src/components/Select/Select.tsx
3534
- var Vr = {
3534
+ var Br = {
3535
3535
  default: "",
3536
3536
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3537
3537
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
3538
3538
  };
3539
- function Hr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", id: p, name: m, value: h = void 0, defaultValue: g = void 0, onValueChange: y = void 0, renderItem: b = void 0, className: x }) {
3540
- let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E = on[u], D = an(t), te = D === "floating";
3539
+ function Vr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", id: p, name: m, value: h = void 0, defaultValue: g = void 0, onValueChange: y = void 0, renderItem: b = void 0, className: x }) {
3540
+ let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E = an[u], D = rn(t), te = D === "floating";
3541
3541
  return /* @__PURE__ */ v("div", {
3542
- className: I(cn, x),
3542
+ className: I(sn, x),
3543
3543
  "data-fluid": c || void 0,
3544
3544
  "data-eds-component": "Select",
3545
3545
  "data-label-variant": D,
3546
3546
  children: [
3547
3547
  /* @__PURE__ */ _("div", {
3548
- className: ln,
3548
+ className: cn,
3549
3549
  children: /* @__PURE__ */ v("label", {
3550
- className: I(un, te && "sr-only", !te && "font-medium"),
3550
+ className: I(ln, te && "sr-only", !te && "font-medium"),
3551
3551
  htmlFor: C,
3552
3552
  children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
3553
3553
  className: "text-eds-red-main",
@@ -3564,14 +3564,14 @@ function Hr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3564
3564
  defaultValue: g,
3565
3565
  value: h,
3566
3566
  children: [/* @__PURE__ */ v(P.Trigger, {
3567
- className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger, Vr[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3567
+ className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger, Br[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3568
3568
  "data-state": l,
3569
3569
  "data-size": u,
3570
3570
  "data-disabled": i || void 0,
3571
3571
  "aria-describedby": T ? `${C}-desc` : void 0,
3572
3572
  children: [
3573
3573
  te && /* @__PURE__ */ v("span", {
3574
- className: xn(E.left),
3574
+ className: bn(E.left),
3575
3575
  children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
3576
3576
  className: "text-eds-red-main",
3577
3577
  "aria-hidden": "true",
@@ -3579,7 +3579,7 @@ function Hr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3579
3579
  })]
3580
3580
  }),
3581
3581
  /* @__PURE__ */ _(P.Value, {
3582
- className: I("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", pn, E.text),
3582
+ className: I("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", fn, E.text),
3583
3583
  placeholder: r
3584
3584
  }),
3585
3585
  /* @__PURE__ */ _(P.Icon, {
@@ -3592,19 +3592,19 @@ function Hr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3592
3592
  })
3593
3593
  ]
3594
3594
  }), /* @__PURE__ */ _(P.Portal, { children: /* @__PURE__ */ _(P.Positioner, {
3595
- className: yn,
3596
- style: bn,
3595
+ className: vn,
3596
+ style: yn,
3597
3597
  positionMethod: "fixed",
3598
3598
  sideOffset: 4,
3599
3599
  children: /* @__PURE__ */ _(P.Popup, {
3600
- className: hn,
3600
+ className: mn,
3601
3601
  children: /* @__PURE__ */ _(P.List, {
3602
- className: gn,
3602
+ className: hn,
3603
3603
  children: n.map((e) => /* @__PURE__ */ v(P.Item, {
3604
3604
  value: e,
3605
- className: _n,
3605
+ className: gn,
3606
3606
  children: [/* @__PURE__ */ _(P.ItemIndicator, {
3607
- className: vn,
3607
+ className: _n,
3608
3608
  children: /* @__PURE__ */ _(a, {
3609
3609
  size: 14,
3610
3610
  "aria-hidden": !0
@@ -3629,7 +3629,7 @@ function Hr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
3629
3629
  }
3630
3630
  //#endregion
3631
3631
  //#region src/components/Text/Text.tsx
3632
- var Ur = {
3632
+ var Hr = {
3633
3633
  variant: {
3634
3634
  heading1: {
3635
3635
  classes: "text-3xl font-semibold",
@@ -3686,20 +3686,20 @@ var Ur = {
3686
3686
  description: "Large text"
3687
3687
  }
3688
3688
  }
3689
- }, Wr = {
3689
+ }, Ur = {
3690
3690
  variant: "body",
3691
3691
  size: "md"
3692
- }, Gr = /* @__PURE__ */ new Set([
3692
+ }, Wr = /* @__PURE__ */ new Set([
3693
3693
  "heading1",
3694
3694
  "heading2",
3695
3695
  "heading3"
3696
- ]), Kr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3697
- function qr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3698
- let l = Kr.has(e), u = Gr.has(e), d = w(() => o || (l || u ? "span" : "p"), [
3696
+ ]), Gr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3697
+ function Kr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3698
+ let l = Gr.has(e), u = Wr.has(e), d = w(() => o || (l || u ? "span" : "p"), [
3699
3699
  o,
3700
3700
  l,
3701
3701
  u
3702
- ]), f = L(Ur.variant, e, Wr.variant), p = L(Ur.size, n ?? "md", Wr.size);
3702
+ ]), f = L(Hr.variant, e, Ur.variant), p = L(Hr.size, n ?? "md", Ur.size);
3703
3703
  return /* @__PURE__ */ _(d, {
3704
3704
  ref: c,
3705
3705
  "data-eds-component": "Text",
@@ -3708,7 +3708,7 @@ function qr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !
3708
3708
  children: i
3709
3709
  });
3710
3710
  }
3711
- var Jr = x(qr), Yr = {
3711
+ var qr = x(Kr), Jr = {
3712
3712
  layout: {
3713
3713
  auto: {
3714
3714
  classes: "",
@@ -3757,15 +3757,15 @@ var Jr = x(qr), Yr = {
3757
3757
  description: "Pin column to the right edge of the scroll container"
3758
3758
  }
3759
3759
  }
3760
- }, Xr = (e, t) => {
3761
- let n = L(Yr.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
3760
+ }, Yr = (e, t) => {
3761
+ 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";
3762
3762
  return t === "cell" ? I(n, r, "bg-white", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white" : "before:bg-gradient-to-l before:from-transparent before:to-white") : I(n, r, "bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-eds-neutral-background");
3763
- }, Zr = {
3763
+ }, Xr = {
3764
3764
  layout: "auto",
3765
3765
  variant: "default",
3766
3766
  dividers: "row"
3767
- }, Qr = x(({ layout: e = "auto", dividers: t = Zr.dividers, className: n, containerClassName: r, ...i }, a) => {
3768
- let o = I("isolate w-full", L(Yr.layout, e, Zr.layout).classes, L(Yr.dividers, t, Zr.dividers).classes, "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-sm", "[&_th]:bg-eds-neutral-background", "text-sm text-left text-eds-neutral-main", n);
3767
+ }, Zr = x(({ layout: e = "auto", dividers: t = Xr.dividers, className: n, containerClassName: r, ...i }, a) => {
3768
+ let o = I("isolate w-full", L(Jr.layout, e, Xr.layout).classes, L(Jr.dividers, t, Xr.dividers).classes, "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-sm", "[&_th]:bg-eds-neutral-background", "text-sm text-left text-eds-neutral-main", n);
3769
3769
  return /* @__PURE__ */ _("div", {
3770
3770
  className: I("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", r),
3771
3771
  children: /* @__PURE__ */ _("table", {
@@ -3775,7 +3775,7 @@ var Jr = x(qr), Yr = {
3775
3775
  className: o
3776
3776
  })
3777
3777
  });
3778
- }), $r = x(({ variant: e = "default", sticky: t, ...n }, r) => {
3778
+ }), Qr = x(({ variant: e = "default", sticky: t, ...n }, r) => {
3779
3779
  let i = e === "compact", a = I("group/header", i && "[&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
3780
3780
  return /* @__PURE__ */ _("thead", {
3781
3781
  ref: r,
@@ -3783,45 +3783,45 @@ var Jr = x(qr), Yr = {
3783
3783
  className: a,
3784
3784
  ...i && { "data-compact": "" }
3785
3785
  });
3786
- }), ei = x(({ sticky: e, ...t }, n) => {
3787
- let r = I("group relative", e && Xr(e, "head"), t.className);
3786
+ }), $r = x(({ sticky: e, ...t }, n) => {
3787
+ let r = I("group relative", e && Yr(e, "head"), t.className);
3788
3788
  return /* @__PURE__ */ _("th", {
3789
3789
  ref: n,
3790
3790
  ...t,
3791
3791
  className: r
3792
3792
  });
3793
- }), ti = x(({ variant: e = Zr.variant, ...t }, n) => {
3794
- let r = I(L(Yr.variant, e, Zr.variant).classes, t.className);
3793
+ }), ei = x(({ variant: e = Xr.variant, ...t }, n) => {
3794
+ let r = I(L(Jr.variant, e, Xr.variant).classes, t.className);
3795
3795
  return /* @__PURE__ */ _("tr", {
3796
3796
  ref: n,
3797
3797
  ...t,
3798
3798
  className: r
3799
3799
  });
3800
- }), ni = x((e, t) => /* @__PURE__ */ _("tbody", {
3800
+ }), ti = x((e, t) => /* @__PURE__ */ _("tbody", {
3801
3801
  ref: t,
3802
3802
  ...e
3803
- })), ri = x(({ sticky: e, ...t }, n) => {
3804
- let r = I(e && Xr(e, "cell"), t.className);
3803
+ })), ni = x(({ sticky: e, ...t }, n) => {
3804
+ let r = I(e && Yr(e, "cell"), t.className);
3805
3805
  return /* @__PURE__ */ _("td", {
3806
3806
  ref: n,
3807
3807
  ...t,
3808
3808
  className: r
3809
3809
  });
3810
- }), ii = x((e, t) => /* @__PURE__ */ _("tfoot", {
3810
+ }), ri = x((e, t) => /* @__PURE__ */ _("tfoot", {
3811
3811
  ref: t,
3812
3812
  ...e
3813
- })), ai = x((e, t) => /* @__PURE__ */ _("button", {
3813
+ })), ii = x((e, t) => /* @__PURE__ */ _("button", {
3814
3814
  ref: t,
3815
3815
  ...e,
3816
3816
  type: "button",
3817
3817
  "aria-label": "Redimensionar coluna",
3818
3818
  className: I("opacity-0 h-full group-hover:opacity-100 focus-visible:opacity-100", "w-[10px]", "flex items-center justify-center", "cursor-col-resize touch-none select-none", "absolute top-0 right-0", "m-0 bg-white p-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", e.className),
3819
3819
  children: /* @__PURE__ */ _("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
3820
- })), oi = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(ri, {
3820
+ })), ai = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(ni, {
3821
3821
  ref: o,
3822
3822
  ...a,
3823
3823
  className: I("w-10 leading-none", a.className),
3824
- children: /* @__PURE__ */ _(rn, {
3824
+ children: /* @__PURE__ */ _(nn, {
3825
3825
  checked: e,
3826
3826
  indeterminate: t,
3827
3827
  onCheckedChange: n,
@@ -3829,11 +3829,11 @@ var Jr = x(qr), Yr = {
3829
3829
  disabled: i,
3830
3830
  className: "relative before:absolute before:-inset-3 before:content-['']"
3831
3831
  })
3832
- })), si = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(ei, {
3832
+ })), oi = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _($r, {
3833
3833
  ref: o,
3834
3834
  ...a,
3835
3835
  className: I("w-10 leading-none", a.className),
3836
- children: /* @__PURE__ */ _(rn, {
3836
+ children: /* @__PURE__ */ _(nn, {
3837
3837
  checked: e,
3838
3838
  indeterminate: t,
3839
3839
  onCheckedChange: n,
@@ -3842,28 +3842,28 @@ var Jr = x(qr), Yr = {
3842
3842
  className: "relative before:absolute before:-inset-3 before:content-['']"
3843
3843
  })
3844
3844
  }));
3845
- Qr.displayName = "Table", ni.displayName = "Table.Body", ei.displayName = "Table.Head", ti.displayName = "Table.Row", ri.displayName = "Table.Cell", ii.displayName = "Table.Footer", $r.displayName = "Table.Header", ai.displayName = "Table.ResizeHandle", oi.displayName = "Table.CheckCell", si.displayName = "Table.CheckHead";
3846
- var Y = Object.assign(Qr, {
3847
- Header: $r,
3848
- Head: ei,
3849
- Row: ti,
3850
- Body: ni,
3851
- Cell: ri,
3852
- CheckCell: oi,
3853
- CheckHead: si,
3854
- Footer: ii,
3855
- ResizeHandle: ai
3845
+ Zr.displayName = "Table", ti.displayName = "Table.Body", $r.displayName = "Table.Head", ei.displayName = "Table.Row", ni.displayName = "Table.Cell", ri.displayName = "Table.Footer", Qr.displayName = "Table.Header", ii.displayName = "Table.ResizeHandle", ai.displayName = "Table.CheckCell", oi.displayName = "Table.CheckHead";
3846
+ var X = Object.assign(Zr, {
3847
+ Header: Qr,
3848
+ Head: $r,
3849
+ Row: ei,
3850
+ Body: ti,
3851
+ Cell: ni,
3852
+ CheckCell: ai,
3853
+ CheckHead: oi,
3854
+ Footer: ri,
3855
+ ResizeHandle: ii
3856
3856
  });
3857
3857
  //#endregion
3858
3858
  //#region ../../node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
3859
- function ci(e, t) {
3859
+ function si(e, t) {
3860
3860
  return typeof e == "function" ? e(t) : e;
3861
3861
  }
3862
- function X(e, t) {
3862
+ function ci(e, t) {
3863
3863
  return (n) => {
3864
3864
  t.setState((t) => ({
3865
3865
  ...t,
3866
- [e]: ci(n, t[e])
3866
+ [e]: si(n, t[e])
3867
3867
  }));
3868
3868
  };
3869
3869
  }
@@ -4196,7 +4196,7 @@ var Ai = {
4196
4196
  ...e
4197
4197
  }),
4198
4198
  getDefaultOptions: (e) => ({
4199
- onColumnFiltersChange: X("columnFilters", e),
4199
+ onColumnFiltersChange: ci("columnFilters", e),
4200
4200
  filterFromLeafRows: !1,
4201
4201
  maxLeafRowFilterDepth: 100
4202
4202
  }),
@@ -4209,7 +4209,7 @@ var Ai = {
4209
4209
  return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
4210
4210
  }, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
4211
4211
  t.setColumnFilters((t) => {
4212
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = ci(n, i ? i.value : void 0);
4212
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = si(n, i ? i.value : void 0);
4213
4213
  if (ji(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
4214
4214
  let o = {
4215
4215
  id: e.id,
@@ -4225,7 +4225,7 @@ var Ai = {
4225
4225
  createTable: (e) => {
4226
4226
  e.setColumnFilters = (t) => {
4227
4227
  let n = e.getAllLeafColumns();
4228
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => ci(t, e)?.filter((e) => {
4228
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => si(t, e)?.filter((e) => {
4229
4229
  let t = n.find((t) => t.id === e.id);
4230
4230
  return !(t && ji(t.getFilterFn(), e.value, t));
4231
4231
  }));
@@ -4294,7 +4294,7 @@ var Mi = {
4294
4294
  ...e
4295
4295
  }),
4296
4296
  getDefaultOptions: (e) => ({
4297
- onGroupingChange: X("grouping", e),
4297
+ onGroupingChange: ci("grouping", e),
4298
4298
  groupedColumnMode: "reorder"
4299
4299
  }),
4300
4300
  createColumn: (e, t) => {
@@ -4343,7 +4343,7 @@ var Fi = {
4343
4343
  columnOrder: [],
4344
4344
  ...e
4345
4345
  }),
4346
- getDefaultOptions: (e) => ({ onColumnOrderChange: X("columnOrder", e) }),
4346
+ getDefaultOptions: (e) => ({ onColumnOrderChange: ci("columnOrder", e) }),
4347
4347
  createColumn: (e, t) => {
4348
4348
  e.getIndex = Z((e) => [Ki(t, e)], (t) => t.findIndex((t) => t.id === e.id), Q(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Ki(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
4349
4349
  let r = Ki(t, n);
@@ -4379,7 +4379,7 @@ var Fi = {
4379
4379
  columnPinning: Ii(),
4380
4380
  ...e
4381
4381
  }),
4382
- getDefaultOptions: (e) => ({ onColumnPinningChange: X("columnPinning", e) }),
4382
+ getDefaultOptions: (e) => ({ onColumnPinningChange: ci("columnPinning", e) }),
4383
4383
  createColumn: (e, t) => {
4384
4384
  e.pin = (n) => {
4385
4385
  let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -4456,8 +4456,8 @@ var zi = {
4456
4456
  getDefaultOptions: (e) => ({
4457
4457
  columnResizeMode: "onEnd",
4458
4458
  columnResizeDirection: "ltr",
4459
- onColumnSizingChange: X("columnSizing", e),
4460
- onColumnSizingInfoChange: X("columnSizingInfo", e)
4459
+ onColumnSizingChange: ci("columnSizing", e),
4460
+ onColumnSizingInfoChange: ci("columnSizingInfo", e)
4461
4461
  }),
4462
4462
  createColumn: (e, t) => {
4463
4463
  e.getSize = () => {
@@ -4571,7 +4571,7 @@ var Gi = {
4571
4571
  columnVisibility: {},
4572
4572
  ...e
4573
4573
  }),
4574
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: X("columnVisibility", e) }),
4574
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: ci("columnVisibility", e) }),
4575
4575
  createColumn: (e, t) => {
4576
4576
  e.toggleVisibility = (n) => {
4577
4577
  e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -4623,7 +4623,7 @@ var qi = { createTable: (e) => {
4623
4623
  ...e
4624
4624
  }),
4625
4625
  getDefaultOptions: (e) => ({
4626
- onGlobalFilterChange: X("globalFilter", e),
4626
+ onGlobalFilterChange: ci("globalFilter", e),
4627
4627
  globalFilterFn: "auto",
4628
4628
  getColumnCanGlobalFilter: (t) => {
4629
4629
  var n;
@@ -4650,7 +4650,7 @@ var qi = { createTable: (e) => {
4650
4650
  ...e
4651
4651
  }),
4652
4652
  getDefaultOptions: (e) => ({
4653
- onExpandedChange: X("expanded", e),
4653
+ onExpandedChange: ci("expanded", e),
4654
4654
  paginateExpandedRows: !0
4655
4655
  }),
4656
4656
  createTable: (e) => {
@@ -4732,7 +4732,7 @@ var qi = { createTable: (e) => {
4732
4732
  ...e?.pagination
4733
4733
  }
4734
4734
  }),
4735
- getDefaultOptions: (e) => ({ onPaginationChange: X("pagination", e) }),
4735
+ getDefaultOptions: (e) => ({ onPaginationChange: ci("pagination", e) }),
4736
4736
  createTable: (e) => {
4737
4737
  let t = !1, n = !1;
4738
4738
  e._autoResetPageIndex = () => {
@@ -4748,11 +4748,11 @@ var qi = { createTable: (e) => {
4748
4748
  e.resetPageIndex(), n = !1;
4749
4749
  });
4750
4750
  }
4751
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => ci(t, e)), e.resetPagination = (t) => {
4751
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => si(t, e)), e.resetPagination = (t) => {
4752
4752
  e.setPagination(t ? Qi() : e.initialState.pagination ?? Qi());
4753
4753
  }, e.setPageIndex = (t) => {
4754
4754
  e.setPagination((n) => {
4755
- let r = ci(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
4755
+ let r = si(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
4756
4756
  return r = Math.max(0, Math.min(r, i)), {
4757
4757
  ...n,
4758
4758
  pageIndex: r
@@ -4766,7 +4766,7 @@ var qi = { createTable: (e) => {
4766
4766
  e.setPageSize(t ? Zi : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? Zi);
4767
4767
  }, e.setPageSize = (t) => {
4768
4768
  e.setPagination((e) => {
4769
- let n = Math.max(1, ci(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
4769
+ let n = Math.max(1, si(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
4770
4770
  return {
4771
4771
  ...e,
4772
4772
  pageIndex: i,
@@ -4774,7 +4774,7 @@ var qi = { createTable: (e) => {
4774
4774
  };
4775
4775
  });
4776
4776
  }, e.setPageCount = (t) => e.setPagination((n) => {
4777
- let r = ci(t, e.options.pageCount ?? -1);
4777
+ let r = si(t, e.options.pageCount ?? -1);
4778
4778
  return typeof r == "number" && (r = Math.max(-1, r)), {
4779
4779
  ...n,
4780
4780
  pageCount: r
@@ -4795,7 +4795,7 @@ var qi = { createTable: (e) => {
4795
4795
  rowPinning: ea(),
4796
4796
  ...e
4797
4797
  }),
4798
- getDefaultOptions: (e) => ({ onRowPinningChange: X("rowPinning", e) }),
4798
+ getDefaultOptions: (e) => ({ onRowPinningChange: ci("rowPinning", e) }),
4799
4799
  createRow: (e, t) => {
4800
4800
  e.pin = (n, r, i) => {
4801
4801
  let a = r ? e.getLeafRows().map((e) => {
@@ -4858,7 +4858,7 @@ var qi = { createTable: (e) => {
4858
4858
  ...e
4859
4859
  }),
4860
4860
  getDefaultOptions: (e) => ({
4861
- onRowSelectionChange: X("rowSelection", e),
4861
+ onRowSelectionChange: ci("rowSelection", e),
4862
4862
  enableRowSelection: !0,
4863
4863
  enableMultiRowSelection: !0,
4864
4864
  enableSubRowSelection: !0
@@ -5020,7 +5020,7 @@ var _a = {
5020
5020
  sortUndefined: 1
5021
5021
  }),
5022
5022
  getDefaultOptions: (e) => ({
5023
- onSortingChange: X("sorting", e),
5023
+ onSortingChange: ci("sorting", e),
5024
5024
  isMultiSortEvent: (e) => e.shiftKey
5025
5025
  }),
5026
5026
  createColumn: (e, t) => {
@@ -5106,7 +5106,7 @@ function ya(e) {
5106
5106
  n.setState(n.initialState);
5107
5107
  },
5108
5108
  setOptions: (e) => {
5109
- let t = ci(e, n.options);
5109
+ let t = si(e, n.options);
5110
5110
  n.options = i(t);
5111
5111
  },
5112
5112
  getState: () => n.options.state,
@@ -5230,9 +5230,9 @@ function Ea({ direction: e }) {
5230
5230
  });
5231
5231
  }
5232
5232
  function Da({ columns: e, rows: t = 5, dividers: n }) {
5233
- return /* @__PURE__ */ v(Y, {
5233
+ return /* @__PURE__ */ v(X, {
5234
5234
  dividers: n,
5235
- children: [/* @__PURE__ */ _(Y.Header, { children: /* @__PURE__ */ _(Y.Row, { children: e.map((e, t) => /* @__PURE__ */ _(Y.Head, { children: typeof e.header == "string" ? e.header : null }, e.id ?? t)) }) }), /* @__PURE__ */ _(Y.Body, { children: Array.from({ length: t }).map((t, n) => /* @__PURE__ */ _(Y.Row, { children: e.map((e, t) => /* @__PURE__ */ _(Y.Cell, { children: /* @__PURE__ */ _("div", { className: "h-4 w-full max-w-40 animate-pulse rounded bg-eds-neutral-background" }) }, t)) }, n)) })]
5235
+ children: [/* @__PURE__ */ _(X.Header, { children: /* @__PURE__ */ _(X.Row, { children: e.map((e, t) => /* @__PURE__ */ _(X.Head, { children: typeof e.header == "string" ? e.header : null }, e.id ?? t)) }) }), /* @__PURE__ */ _(X.Body, { children: Array.from({ length: t }).map((t, n) => /* @__PURE__ */ _(X.Row, { children: e.map((e, t) => /* @__PURE__ */ _(X.Cell, { children: /* @__PURE__ */ _("div", { className: "h-4 w-full max-w-40 animate-pulse rounded bg-eds-neutral-background" }) }, t)) }, n)) })]
5236
5236
  });
5237
5237
  }
5238
5238
  function Oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, onPageChange: a, search: o, sorting: l, onSortingChange: u, emptyStateTitle: f = "Nenhum resultado encontrado", emptyStateDescription: m, meta: h, "aria-label": g, className: y, dividers: b }) {
@@ -5252,7 +5252,7 @@ function Oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
5252
5252
  children: [
5253
5253
  o && /* @__PURE__ */ _("div", {
5254
5254
  className: "flex justify-end",
5255
- children: /* @__PURE__ */ _(Lr, {
5255
+ children: /* @__PURE__ */ _(Ir, {
5256
5256
  label: "Buscar",
5257
5257
  labelVariant: "floating",
5258
5258
  className: "w-full max-w-sm",
@@ -5275,18 +5275,18 @@ function Oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
5275
5275
  n ? /* @__PURE__ */ _(Da, {
5276
5276
  columns: e,
5277
5277
  dividers: b
5278
- }) : r ? /* @__PURE__ */ _(Er, {
5278
+ }) : r ? /* @__PURE__ */ _(Tr, {
5279
5279
  title: f,
5280
5280
  description: m ?? "Houve um erro ao buscar os dados. Tente novamente."
5281
- }) : C.length === 0 ? /* @__PURE__ */ _(Er, {
5281
+ }) : C.length === 0 ? /* @__PURE__ */ _(Tr, {
5282
5282
  title: f,
5283
5283
  description: m
5284
- }) : /* @__PURE__ */ v(Y, {
5284
+ }) : /* @__PURE__ */ v(X, {
5285
5285
  "aria-label": g,
5286
5286
  dividers: b,
5287
- children: [/* @__PURE__ */ _(Y.Header, { children: S.getHeaderGroups().map((e) => /* @__PURE__ */ _(Y.Row, { children: e.headers.map((e) => {
5287
+ children: [/* @__PURE__ */ _(X.Header, { children: S.getHeaderGroups().map((e) => /* @__PURE__ */ _(X.Row, { children: e.headers.map((e) => {
5288
5288
  let t = e.column.getIsSorted();
5289
- return /* @__PURE__ */ _(Y.Head, {
5289
+ return /* @__PURE__ */ _(X.Head, {
5290
5290
  "aria-sort": e.column.getCanSort() ? t === "asc" ? "ascending" : t === "desc" ? "descending" : "none" : void 0,
5291
5291
  children: e.isPlaceholder ? null : e.column.getCanSort() ? /* @__PURE__ */ v("button", {
5292
5292
  type: "button",
@@ -5295,12 +5295,12 @@ function Oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
5295
5295
  children: [xa(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ _(Ea, { direction: t })]
5296
5296
  }) : xa(e.column.columnDef.header, e.getContext())
5297
5297
  }, e.id);
5298
- }) }, e.id)) }), /* @__PURE__ */ _(Y.Body, { children: C.map((e) => /* @__PURE__ */ _(Y.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ _(Y.Cell, { children: xa(e.column.columnDef.cell, e.getContext()) }, e.id)) }, e.id)) })]
5298
+ }) }, e.id)) }), /* @__PURE__ */ _(X.Body, { children: C.map((e) => /* @__PURE__ */ _(X.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ _(X.Cell, { children: xa(e.column.columnDef.cell, e.getContext()) }, e.id)) }, e.id)) })]
5299
5299
  }),
5300
5300
  w && /* @__PURE__ */ v("div", {
5301
5301
  className: "flex items-center justify-center gap-2",
5302
5302
  children: [
5303
- /* @__PURE__ */ _(jt, {
5303
+ /* @__PURE__ */ _(At, {
5304
5304
  type: "button",
5305
5305
  variant: "outline",
5306
5306
  size: "sm",
@@ -5317,7 +5317,7 @@ function Oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
5317
5317
  ee
5318
5318
  ]
5319
5319
  }),
5320
- /* @__PURE__ */ _(jt, {
5320
+ /* @__PURE__ */ _(At, {
5321
5321
  type: "button",
5322
5322
  variant: "outline",
5323
5323
  size: "sm",
@@ -5427,4 +5427,4 @@ function Ma(e) {
5427
5427
  };
5428
5428
  }
5429
5429
  //#endregion
5430
- export { en as Attachment, Zt as AttachmentAction, Xt as AttachmentActions, qt as AttachmentContent, Yt as AttachmentDescription, $t as AttachmentGroup, Kt as AttachmentMedia, Jt as AttachmentTitle, Qt as AttachmentTrigger, oe as Button, se as COLORS, Pt as Calendar, Ht as Card, rn as Checkbox, Dn as Combobox, Oa as DataTable, Mn as DatePicker, tr as DateTimePicker, hr as Dialog, Er as Empty, Cr as FormDialog, jt as IconButton, Lr as Input, Hr as Select, Y as Table, Aa as Tabs, Jr as Text, Br as Textarea };
5430
+ 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, ae as Button, oe as COLORS, Nt as Calendar, Vt as Card, nn as Checkbox, En as Combobox, Oa as DataTable, jn as DatePicker, er as DateTimePicker, mr as Dialog, Tr as Empty, Sr as FormDialog, At as IconButton, Ir as Input, Vr as Select, X as Table, Aa as Tabs, qr as Text, zr as Textarea };