@vincisys/eyeson 0.4.0 → 0.4.3

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
@@ -62,7 +62,7 @@ function R({ variant: e = L.variant, size: t = L.size, fluid: n = !1 }) {
62
62
  let r = P(I.size, t, L.size), i = P(I.variant, e, L.variant);
63
63
  return N("eds-btn group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:not-data-loading:opacity-50 data-loading:data-disabled:cursor-wait data-loading:data-disabled:opacity-100", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r.classes, i.classes, n && "w-full");
64
64
  }
65
- function te({ text: t = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: c = "md", fluid: l = !1, isLoading: u = !1, disabled: m, style: h, ...g }) {
65
+ function z({ text: t = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: c = "md", fluid: l = !1, isLoading: u = !1, disabled: m, style: h, ...g }) {
66
66
  let _ = ee[c], v = !!(m || u), y = !!(u || r), b = i === "end" ? "inline-end" : "inline-start", x = {
67
67
  "--eds-btn-accent": `var(--color-eds-${o})`,
68
68
  ...F.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
@@ -96,7 +96,7 @@ function te({ text: t = "Button", className: n, icon: r, iconPosition: i = "star
96
96
  }
97
97
  //#endregion
98
98
  //#region src/constants/colors.ts
99
- var ne = [
99
+ var B = [
100
100
  "blue-background",
101
101
  "blue-dark",
102
102
  "blue-main",
@@ -117,44 +117,44 @@ var ne = [
117
117
  "red-dark",
118
118
  "red-main",
119
119
  "red-middle"
120
- ], re = 365.2425, z = 6048e5, ie = 864e5, B = 3600 * 24;
121
- B * 7, B * re / 12 * 3;
122
- var ae = Symbol.for("constructDateFrom");
120
+ ], te = 365.2425, ne = 6048e5, re = 864e5, ie = 3600 * 24;
121
+ ie * 7, ie * te / 12 * 3;
122
+ var V = Symbol.for("constructDateFrom");
123
123
  //#endregion
124
124
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
125
- function V(e, t) {
126
- return typeof e == "function" ? e(t) : e && typeof e == "object" && ae in e ? e[ae](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
125
+ function H(e, t) {
126
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && V in e ? e[V](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
127
127
  }
128
128
  //#endregion
129
129
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
130
- function H(e, t) {
131
- return V(t || e, e);
130
+ function U(e, t) {
131
+ return H(t || e, e);
132
132
  }
133
133
  //#endregion
134
134
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
135
- function oe(e, t, n) {
136
- let r = H(e, n?.in);
137
- return isNaN(t) ? V(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
135
+ function ae(e, t, n) {
136
+ let r = U(e, n?.in);
137
+ return isNaN(t) ? H(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
138
138
  }
139
139
  //#endregion
140
140
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
141
- function se(e, t, n) {
142
- let r = H(e, n?.in);
143
- if (isNaN(t)) return V(n?.in || e, NaN);
141
+ function oe(e, t, n) {
142
+ let r = U(e, n?.in);
143
+ if (isNaN(t)) return H(n?.in || e, NaN);
144
144
  if (!t) return r;
145
- let i = r.getDate(), a = V(n?.in || e, r.getTime());
145
+ let i = r.getDate(), a = H(n?.in || e, r.getTime());
146
146
  return a.setMonth(r.getMonth() + t + 1, 0), i >= a.getDate() ? a : (r.setFullYear(a.getFullYear(), a.getMonth(), i), r);
147
147
  }
148
148
  //#endregion
149
149
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
150
- var ce = {};
151
- function U() {
152
- return ce;
150
+ var se = {};
151
+ function ce() {
152
+ return se;
153
153
  }
154
154
  //#endregion
155
155
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
156
156
  function W(e, t) {
157
- let n = U(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = H(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
157
+ let n = ce(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = U(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
158
158
  return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
159
159
  }
160
160
  //#endregion
@@ -168,9 +168,9 @@ function G(e, t) {
168
168
  //#endregion
169
169
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
170
170
  function K(e, t) {
171
- let n = H(e, t?.in), r = n.getFullYear(), i = V(n, 0);
171
+ let n = U(e, t?.in), r = n.getFullYear(), i = H(n, 0);
172
172
  i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
173
- let a = G(i), o = V(n, 0);
173
+ let a = G(i), o = H(n, 0);
174
174
  o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
175
175
  let s = G(o);
176
176
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
@@ -178,81 +178,81 @@ function K(e, t) {
178
178
  //#endregion
179
179
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
180
180
  function le(e) {
181
- let t = H(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
181
+ let t = U(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
182
182
  return n.setUTCFullYear(t.getFullYear()), e - +n;
183
183
  }
184
184
  //#endregion
185
185
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
186
186
  function ue(e, ...t) {
187
- let n = V.bind(null, e || t.find((e) => typeof e == "object"));
187
+ let n = H.bind(null, e || t.find((e) => typeof e == "object"));
188
188
  return t.map(n);
189
189
  }
190
190
  //#endregion
191
191
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
192
192
  function de(e, t) {
193
- let n = H(e, t?.in);
193
+ let n = U(e, t?.in);
194
194
  return n.setHours(0, 0, 0, 0), n;
195
195
  }
196
196
  //#endregion
197
197
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
198
198
  function fe(e, t, n) {
199
199
  let [r, i] = ue(n?.in, e, t), a = de(r), o = de(i), s = +a - le(a), c = +o - le(o);
200
- return Math.round((s - c) / ie);
200
+ return Math.round((s - c) / re);
201
201
  }
202
202
  //#endregion
203
203
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
204
204
  function pe(e, t) {
205
- let n = K(e, t), r = V(t?.in || e, 0);
205
+ let n = K(e, t), r = H(t?.in || e, 0);
206
206
  return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), G(r);
207
207
  }
208
208
  //#endregion
209
209
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructNow.js
210
210
  function me(e) {
211
- return V(e, Date.now());
211
+ return H(e, Date.now());
212
212
  }
213
213
  //#endregion
214
214
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
215
- function q(e, t, n) {
215
+ function he(e, t, n) {
216
216
  let [r, i] = ue(n?.in, e, t);
217
217
  return +de(r) == +de(i);
218
218
  }
219
219
  //#endregion
220
220
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
221
- function he(e) {
221
+ function ge(e) {
222
222
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
223
223
  }
224
224
  //#endregion
225
225
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
226
- function ge(e) {
227
- return !(!he(e) && typeof e != "number" || isNaN(+H(e)));
226
+ function _e(e) {
227
+ return !(!ge(e) && typeof e != "number" || isNaN(+U(e)));
228
228
  }
229
229
  //#endregion
230
230
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
231
- function _e(e, t) {
232
- let n = H(e, t?.in), r = n.getMonth();
231
+ function ve(e, t) {
232
+ let n = U(e, t?.in), r = n.getMonth();
233
233
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
234
234
  }
235
235
  //#endregion
236
236
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
237
- function ve(e, t) {
238
- let n = H(e, t?.in);
237
+ function ye(e, t) {
238
+ let n = U(e, t?.in);
239
239
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
240
240
  }
241
241
  //#endregion
242
242
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
243
- function ye(e, t) {
244
- let n = H(e, t?.in);
243
+ function be(e, t) {
244
+ let n = U(e, t?.in);
245
245
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
246
246
  }
247
247
  //#endregion
248
248
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
249
- function be(e, t) {
250
- let n = U(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = H(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
249
+ function xe(e, t) {
250
+ let n = ce(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = U(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
251
251
  return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
252
252
  }
253
253
  //#endregion
254
254
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
255
- var xe = {
255
+ var Se = {
256
256
  lessThanXSeconds: {
257
257
  one: "less than a second",
258
258
  other: "less than {{count}} seconds"
@@ -314,20 +314,20 @@ var xe = {
314
314
  one: "almost 1 year",
315
315
  other: "almost {{count}} years"
316
316
  }
317
- }, Se = (e, t, n) => {
318
- let r, i = xe[e];
317
+ }, Ce = (e, t, n) => {
318
+ let r, i = Se[e];
319
319
  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;
320
320
  };
321
321
  //#endregion
322
322
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
323
- function Ce(e) {
323
+ function we(e) {
324
324
  return (t = {}) => {
325
325
  let n = t.width ? String(t.width) : e.defaultWidth;
326
326
  return e.formats[n] || e.formats[e.defaultWidth];
327
327
  };
328
328
  }
329
- var we = {
330
- date: Ce({
329
+ var Te = {
330
+ date: we({
331
331
  formats: {
332
332
  full: "EEEE, MMMM do, y",
333
333
  long: "MMMM do, y",
@@ -336,7 +336,7 @@ var we = {
336
336
  },
337
337
  defaultWidth: "full"
338
338
  }),
339
- time: Ce({
339
+ time: we({
340
340
  formats: {
341
341
  full: "h:mm:ss a zzzz",
342
342
  long: "h:mm:ss a z",
@@ -345,7 +345,7 @@ var we = {
345
345
  },
346
346
  defaultWidth: "full"
347
347
  }),
348
- dateTime: Ce({
348
+ dateTime: we({
349
349
  formats: {
350
350
  full: "{{date}} 'at' {{time}}",
351
351
  long: "{{date}} 'at' {{time}}",
@@ -354,17 +354,17 @@ var we = {
354
354
  },
355
355
  defaultWidth: "full"
356
356
  })
357
- }, Te = {
357
+ }, Ee = {
358
358
  lastWeek: "'last' eeee 'at' p",
359
359
  yesterday: "'yesterday at' p",
360
360
  today: "'today at' p",
361
361
  tomorrow: "'tomorrow at' p",
362
362
  nextWeek: "eeee 'at' p",
363
363
  other: "P"
364
- }, Ee = (e, t, n, r) => Te[e];
364
+ }, De = (e, t, n, r) => Ee[e];
365
365
  //#endregion
366
366
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
367
- function J(e) {
367
+ function q(e) {
368
368
  return (t, n) => {
369
369
  let r = n?.context ? String(n.context) : "standalone", i;
370
370
  if (r === "formatting" && e.formattingValues) {
@@ -378,7 +378,7 @@ function J(e) {
378
378
  return i[a];
379
379
  };
380
380
  }
381
- var De = {
381
+ var Oe = {
382
382
  ordinalNumber: (e, t) => {
383
383
  let n = Number(e), r = n % 100;
384
384
  if (r > 20 || r < 10) switch (r % 10) {
@@ -388,7 +388,7 @@ var De = {
388
388
  }
389
389
  return n + "th";
390
390
  },
391
- era: J({
391
+ era: q({
392
392
  values: {
393
393
  narrow: ["B", "A"],
394
394
  abbreviated: ["BC", "AD"],
@@ -396,7 +396,7 @@ var De = {
396
396
  },
397
397
  defaultWidth: "wide"
398
398
  }),
399
- quarter: J({
399
+ quarter: q({
400
400
  values: {
401
401
  narrow: [
402
402
  "1",
@@ -420,7 +420,7 @@ var De = {
420
420
  defaultWidth: "wide",
421
421
  argumentCallback: (e) => e - 1
422
422
  }),
423
- month: J({
423
+ month: q({
424
424
  values: {
425
425
  narrow: [
426
426
  "J",
@@ -467,7 +467,7 @@ var De = {
467
467
  },
468
468
  defaultWidth: "wide"
469
469
  }),
470
- day: J({
470
+ day: q({
471
471
  values: {
472
472
  narrow: [
473
473
  "S",
@@ -508,7 +508,7 @@ var De = {
508
508
  },
509
509
  defaultWidth: "wide"
510
510
  }),
511
- dayPeriod: J({
511
+ dayPeriod: q({
512
512
  values: {
513
513
  narrow: {
514
514
  am: "a",
@@ -579,11 +579,11 @@ var De = {
579
579
  };
580
580
  //#endregion
581
581
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
582
- function Y(e) {
582
+ function J(e) {
583
583
  return (t, n = {}) => {
584
584
  let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
585
585
  if (!a) return null;
586
- let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? ke(s, (e) => e.test(o)) : Oe(s, (e) => e.test(o)), l;
586
+ let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Ae(s, (e) => e.test(o)) : ke(s, (e) => e.test(o)), l;
587
587
  l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
588
588
  let u = t.slice(o.length);
589
589
  return {
@@ -592,15 +592,15 @@ function Y(e) {
592
592
  };
593
593
  };
594
594
  }
595
- function Oe(e, t) {
595
+ function ke(e, t) {
596
596
  for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
597
597
  }
598
- function ke(e, t) {
598
+ function Ae(e, t) {
599
599
  for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
600
600
  }
601
601
  //#endregion
602
602
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
603
- function Ae(e) {
603
+ function je(e) {
604
604
  return (t, n = {}) => {
605
605
  let r = t.match(e.matchPattern);
606
606
  if (!r) return null;
@@ -617,19 +617,19 @@ function Ae(e) {
617
617
  }
618
618
  //#endregion
619
619
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
620
- var je = {
620
+ var Me = {
621
621
  code: "en-US",
622
- formatDistance: Se,
623
- formatLong: we,
624
- formatRelative: Ee,
625
- localize: De,
622
+ formatDistance: Ce,
623
+ formatLong: Te,
624
+ formatRelative: De,
625
+ localize: Oe,
626
626
  match: {
627
- ordinalNumber: Ae({
627
+ ordinalNumber: je({
628
628
  matchPattern: /^(\d+)(th|st|nd|rd)?/i,
629
629
  parsePattern: /\d+/i,
630
630
  valueCallback: (e) => parseInt(e, 10)
631
631
  }),
632
- era: Y({
632
+ era: J({
633
633
  matchPatterns: {
634
634
  narrow: /^(b|a)/i,
635
635
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
@@ -639,7 +639,7 @@ var je = {
639
639
  parsePatterns: { any: [/^b/i, /^(a|c)/i] },
640
640
  defaultParseWidth: "any"
641
641
  }),
642
- quarter: Y({
642
+ quarter: J({
643
643
  matchPatterns: {
644
644
  narrow: /^[1234]/i,
645
645
  abbreviated: /^q[1234]/i,
@@ -655,7 +655,7 @@ var je = {
655
655
  defaultParseWidth: "any",
656
656
  valueCallback: (e) => e + 1
657
657
  }),
658
- month: Y({
658
+ month: J({
659
659
  matchPatterns: {
660
660
  narrow: /^[jfmasond]/i,
661
661
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
@@ -694,7 +694,7 @@ var je = {
694
694
  },
695
695
  defaultParseWidth: "any"
696
696
  }),
697
- day: Y({
697
+ day: J({
698
698
  matchPatterns: {
699
699
  narrow: /^[smtwf]/i,
700
700
  short: /^(su|mo|tu|we|th|fr|sa)/i,
@@ -724,7 +724,7 @@ var je = {
724
724
  },
725
725
  defaultParseWidth: "any"
726
726
  }),
727
- dayPeriod: Y({
727
+ dayPeriod: J({
728
728
  matchPatterns: {
729
729
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
730
730
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
@@ -750,56 +750,56 @@ var je = {
750
750
  };
751
751
  //#endregion
752
752
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
753
- function Me(e, t) {
754
- let n = H(e, t?.in);
755
- return fe(n, ye(n)) + 1;
753
+ function Ne(e, t) {
754
+ let n = U(e, t?.in);
755
+ return fe(n, be(n)) + 1;
756
756
  }
757
757
  //#endregion
758
758
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
759
- function Ne(e, t) {
760
- let n = H(e, t?.in), r = G(n) - +pe(n);
761
- return Math.round(r / z) + 1;
759
+ function Pe(e, t) {
760
+ let n = U(e, t?.in), r = G(n) - +pe(n);
761
+ return Math.round(r / ne) + 1;
762
762
  }
763
763
  //#endregion
764
764
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
765
- function Pe(e, t) {
766
- let n = H(e, t?.in), r = n.getFullYear(), i = U(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = V(t?.in || e, 0);
765
+ function Fe(e, t) {
766
+ let n = U(e, t?.in), r = n.getFullYear(), i = ce(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = H(t?.in || e, 0);
767
767
  o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
768
- let s = W(o, t), c = V(t?.in || e, 0);
768
+ let s = W(o, t), c = H(t?.in || e, 0);
769
769
  c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
770
770
  let l = W(c, t);
771
771
  return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
772
772
  }
773
773
  //#endregion
774
774
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
775
- function Fe(e, t) {
776
- let n = U(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Pe(e, t), a = V(t?.in || e, 0);
775
+ function Ie(e, t) {
776
+ let n = ce(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Fe(e, t), a = H(t?.in || e, 0);
777
777
  return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), W(a, t);
778
778
  }
779
779
  //#endregion
780
780
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
781
- function Ie(e, t) {
782
- let n = H(e, t?.in), r = W(n, t) - +Fe(n, t);
783
- return Math.round(r / z) + 1;
781
+ function Le(e, t) {
782
+ let n = U(e, t?.in), r = W(n, t) - +Ie(n, t);
783
+ return Math.round(r / ne) + 1;
784
784
  }
785
785
  //#endregion
786
786
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
787
- function X(e, t) {
787
+ function Y(e, t) {
788
788
  return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
789
789
  }
790
790
  //#endregion
791
791
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js
792
- var Z = {
792
+ var X = {
793
793
  y(e, t) {
794
794
  let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
795
- return X(t === "yy" ? r % 100 : r, t.length);
795
+ return Y(t === "yy" ? r % 100 : r, t.length);
796
796
  },
797
797
  M(e, t) {
798
798
  let n = e.getMonth();
799
- return t === "M" ? String(n + 1) : X(n + 1, 2);
799
+ return t === "M" ? String(n + 1) : Y(n + 1, 2);
800
800
  },
801
801
  d(e, t) {
802
- return X(e.getDate(), t.length);
802
+ return Y(e.getDate(), t.length);
803
803
  },
804
804
  a(e, t) {
805
805
  let n = e.getHours() / 12 >= 1 ? "pm" : "am";
@@ -812,22 +812,22 @@ var Z = {
812
812
  }
813
813
  },
814
814
  h(e, t) {
815
- return X(e.getHours() % 12 || 12, t.length);
815
+ return Y(e.getHours() % 12 || 12, t.length);
816
816
  },
817
817
  H(e, t) {
818
- return X(e.getHours(), t.length);
818
+ return Y(e.getHours(), t.length);
819
819
  },
820
820
  m(e, t) {
821
- return X(e.getMinutes(), t.length);
821
+ return Y(e.getMinutes(), t.length);
822
822
  },
823
823
  s(e, t) {
824
- return X(e.getSeconds(), t.length);
824
+ return Y(e.getSeconds(), t.length);
825
825
  },
826
826
  S(e, t) {
827
827
  let n = t.length, r = e.getMilliseconds();
828
- return X(Math.trunc(r * 10 ** (n - 3)), t.length);
828
+ return Y(Math.trunc(r * 10 ** (n - 3)), t.length);
829
829
  }
830
- }, Le = {
830
+ }, Re = {
831
831
  am: "am",
832
832
  pm: "pm",
833
833
  midnight: "midnight",
@@ -836,7 +836,7 @@ var Z = {
836
836
  afternoon: "afternoon",
837
837
  evening: "evening",
838
838
  night: "night"
839
- }, Re = {
839
+ }, ze = {
840
840
  G: function(e, t, n) {
841
841
  let r = +(e.getFullYear() > 0);
842
842
  switch (t) {
@@ -852,23 +852,23 @@ var Z = {
852
852
  let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
853
853
  return n.ordinalNumber(r, { unit: "year" });
854
854
  }
855
- return Z.y(e, t);
855
+ return X.y(e, t);
856
856
  },
857
857
  Y: function(e, t, n, r) {
858
- let i = Pe(e, r), a = i > 0 ? i : 1 - i;
859
- return t === "YY" ? X(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : X(a, t.length);
858
+ let i = Fe(e, r), a = i > 0 ? i : 1 - i;
859
+ return t === "YY" ? Y(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : Y(a, t.length);
860
860
  },
861
861
  R: function(e, t) {
862
- return X(K(e), t.length);
862
+ return Y(K(e), t.length);
863
863
  },
864
864
  u: function(e, t) {
865
- return X(e.getFullYear(), t.length);
865
+ return Y(e.getFullYear(), t.length);
866
866
  },
867
867
  Q: function(e, t, n) {
868
868
  let r = Math.ceil((e.getMonth() + 1) / 3);
869
869
  switch (t) {
870
870
  case "Q": return String(r);
871
- case "QQ": return X(r, 2);
871
+ case "QQ": return Y(r, 2);
872
872
  case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
873
873
  case "QQQ": return n.quarter(r, {
874
874
  width: "abbreviated",
@@ -888,7 +888,7 @@ var Z = {
888
888
  let r = Math.ceil((e.getMonth() + 1) / 3);
889
889
  switch (t) {
890
890
  case "q": return String(r);
891
- case "qq": return X(r, 2);
891
+ case "qq": return Y(r, 2);
892
892
  case "qo": return n.ordinalNumber(r, { unit: "quarter" });
893
893
  case "qqq": return n.quarter(r, {
894
894
  width: "abbreviated",
@@ -908,7 +908,7 @@ var Z = {
908
908
  let r = e.getMonth();
909
909
  switch (t) {
910
910
  case "M":
911
- case "MM": return Z.M(e, t);
911
+ case "MM": return X.M(e, t);
912
912
  case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
913
913
  case "MMM": return n.month(r, {
914
914
  width: "abbreviated",
@@ -928,7 +928,7 @@ var Z = {
928
928
  let r = e.getMonth();
929
929
  switch (t) {
930
930
  case "L": return String(r + 1);
931
- case "LL": return X(r + 1, 2);
931
+ case "LL": return Y(r + 1, 2);
932
932
  case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
933
933
  case "LLL": return n.month(r, {
934
934
  width: "abbreviated",
@@ -945,19 +945,19 @@ var Z = {
945
945
  }
946
946
  },
947
947
  w: function(e, t, n, r) {
948
- let i = Ie(e, r);
949
- return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : X(i, t.length);
948
+ let i = Le(e, r);
949
+ return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : Y(i, t.length);
950
950
  },
951
951
  I: function(e, t, n) {
952
- let r = Ne(e);
953
- return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : X(r, t.length);
952
+ let r = Pe(e);
953
+ return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : Y(r, t.length);
954
954
  },
955
955
  d: function(e, t, n) {
956
- return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Z.d(e, t);
956
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : X.d(e, t);
957
957
  },
958
958
  D: function(e, t, n) {
959
- let r = Me(e);
960
- return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : X(r, t.length);
959
+ let r = Ne(e);
960
+ return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Y(r, t.length);
961
961
  },
962
962
  E: function(e, t, n) {
963
963
  let r = e.getDay();
@@ -986,7 +986,7 @@ var Z = {
986
986
  let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
987
987
  switch (t) {
988
988
  case "e": return String(a);
989
- case "ee": return X(a, 2);
989
+ case "ee": return Y(a, 2);
990
990
  case "eo": return n.ordinalNumber(a, { unit: "day" });
991
991
  case "eee": return n.day(i, {
992
992
  width: "abbreviated",
@@ -1010,7 +1010,7 @@ var Z = {
1010
1010
  let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
1011
1011
  switch (t) {
1012
1012
  case "c": return String(a);
1013
- case "cc": return X(a, t.length);
1013
+ case "cc": return Y(a, t.length);
1014
1014
  case "co": return n.ordinalNumber(a, { unit: "day" });
1015
1015
  case "ccc": return n.day(i, {
1016
1016
  width: "abbreviated",
@@ -1034,7 +1034,7 @@ var Z = {
1034
1034
  let r = e.getDay(), i = r === 0 ? 7 : r;
1035
1035
  switch (t) {
1036
1036
  case "i": return String(i);
1037
- case "ii": return X(i, t.length);
1037
+ case "ii": return Y(i, t.length);
1038
1038
  case "io": return n.ordinalNumber(i, { unit: "day" });
1039
1039
  case "iii": return n.day(r, {
1040
1040
  width: "abbreviated",
@@ -1078,7 +1078,7 @@ var Z = {
1078
1078
  },
1079
1079
  b: function(e, t, n) {
1080
1080
  let r = e.getHours(), i;
1081
- switch (i = r === 12 ? Le.noon : r === 0 ? Le.midnight : r / 12 >= 1 ? "pm" : "am", t) {
1081
+ switch (i = r === 12 ? Re.noon : r === 0 ? Re.midnight : r / 12 >= 1 ? "pm" : "am", t) {
1082
1082
  case "b":
1083
1083
  case "bb": return n.dayPeriod(i, {
1084
1084
  width: "abbreviated",
@@ -1100,7 +1100,7 @@ var Z = {
1100
1100
  },
1101
1101
  B: function(e, t, n) {
1102
1102
  let r = e.getHours(), i;
1103
- switch (i = r >= 17 ? Le.evening : r >= 12 ? Le.afternoon : r >= 4 ? Le.morning : Le.night, t) {
1103
+ switch (i = r >= 17 ? Re.evening : r >= 12 ? Re.afternoon : r >= 4 ? Re.morning : Re.night, t) {
1104
1104
  case "B":
1105
1105
  case "BB":
1106
1106
  case "BBB": return n.dayPeriod(i, {
@@ -1122,45 +1122,45 @@ var Z = {
1122
1122
  let t = e.getHours() % 12;
1123
1123
  return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
1124
1124
  }
1125
- return Z.h(e, t);
1125
+ return X.h(e, t);
1126
1126
  },
1127
1127
  H: function(e, t, n) {
1128
- return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Z.H(e, t);
1128
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : X.H(e, t);
1129
1129
  },
1130
1130
  K: function(e, t, n) {
1131
1131
  let r = e.getHours() % 12;
1132
- return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : X(r, t.length);
1132
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : Y(r, t.length);
1133
1133
  },
1134
1134
  k: function(e, t, n) {
1135
1135
  let r = e.getHours();
1136
- return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : X(r, t.length);
1136
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : Y(r, t.length);
1137
1137
  },
1138
1138
  m: function(e, t, n) {
1139
- return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Z.m(e, t);
1139
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : X.m(e, t);
1140
1140
  },
1141
1141
  s: function(e, t, n) {
1142
- return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Z.s(e, t);
1142
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : X.s(e, t);
1143
1143
  },
1144
1144
  S: function(e, t) {
1145
- return Z.S(e, t);
1145
+ return X.S(e, t);
1146
1146
  },
1147
1147
  X: function(e, t, n) {
1148
1148
  let r = e.getTimezoneOffset();
1149
1149
  if (r === 0) return "Z";
1150
1150
  switch (t) {
1151
- case "X": return Be(r);
1151
+ case "X": return Ve(r);
1152
1152
  case "XXXX":
1153
- case "XX": return Ve(r);
1154
- default: return Ve(r, ":");
1153
+ case "XX": return He(r);
1154
+ default: return He(r, ":");
1155
1155
  }
1156
1156
  },
1157
1157
  x: function(e, t, n) {
1158
1158
  let r = e.getTimezoneOffset();
1159
1159
  switch (t) {
1160
- case "x": return Be(r);
1160
+ case "x": return Ve(r);
1161
1161
  case "xxxx":
1162
- case "xx": return Ve(r);
1163
- default: return Ve(r, ":");
1162
+ case "xx": return He(r);
1163
+ default: return He(r, ":");
1164
1164
  }
1165
1165
  },
1166
1166
  O: function(e, t, n) {
@@ -1168,8 +1168,8 @@ var Z = {
1168
1168
  switch (t) {
1169
1169
  case "O":
1170
1170
  case "OO":
1171
- case "OOO": return "GMT" + ze(r, ":");
1172
- default: return "GMT" + Ve(r, ":");
1171
+ case "OOO": return "GMT" + Be(r, ":");
1172
+ default: return "GMT" + He(r, ":");
1173
1173
  }
1174
1174
  },
1175
1175
  z: function(e, t, n) {
@@ -1177,49 +1177,49 @@ var Z = {
1177
1177
  switch (t) {
1178
1178
  case "z":
1179
1179
  case "zz":
1180
- case "zzz": return "GMT" + ze(r, ":");
1181
- default: return "GMT" + Ve(r, ":");
1180
+ case "zzz": return "GMT" + Be(r, ":");
1181
+ default: return "GMT" + He(r, ":");
1182
1182
  }
1183
1183
  },
1184
1184
  t: function(e, t, n) {
1185
- return X(Math.trunc(e / 1e3), t.length);
1185
+ return Y(Math.trunc(e / 1e3), t.length);
1186
1186
  },
1187
1187
  T: function(e, t, n) {
1188
- return X(+e, t.length);
1188
+ return Y(+e, t.length);
1189
1189
  }
1190
1190
  };
1191
- function ze(e, t = "") {
1191
+ function Be(e, t = "") {
1192
1192
  let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
1193
- return a === 0 ? n + String(i) : n + String(i) + t + X(a, 2);
1193
+ return a === 0 ? n + String(i) : n + String(i) + t + Y(a, 2);
1194
1194
  }
1195
- function Be(e, t) {
1196
- return e % 60 == 0 ? (e > 0 ? "-" : "+") + X(Math.abs(e) / 60, 2) : Ve(e, t);
1195
+ function Ve(e, t) {
1196
+ return e % 60 == 0 ? (e > 0 ? "-" : "+") + Y(Math.abs(e) / 60, 2) : He(e, t);
1197
1197
  }
1198
- function Ve(e, t = "") {
1199
- let n = e > 0 ? "-" : "+", r = Math.abs(e), i = X(Math.trunc(r / 60), 2), a = X(r % 60, 2);
1198
+ function He(e, t = "") {
1199
+ let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Y(Math.trunc(r / 60), 2), a = Y(r % 60, 2);
1200
1200
  return n + i + t + a;
1201
1201
  }
1202
1202
  //#endregion
1203
1203
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js
1204
- var He = (e, t) => {
1204
+ var Ue = (e, t) => {
1205
1205
  switch (e) {
1206
1206
  case "P": return t.date({ width: "short" });
1207
1207
  case "PP": return t.date({ width: "medium" });
1208
1208
  case "PPP": return t.date({ width: "long" });
1209
1209
  default: return t.date({ width: "full" });
1210
1210
  }
1211
- }, Ue = (e, t) => {
1211
+ }, We = (e, t) => {
1212
1212
  switch (e) {
1213
1213
  case "p": return t.time({ width: "short" });
1214
1214
  case "pp": return t.time({ width: "medium" });
1215
1215
  case "ppp": return t.time({ width: "long" });
1216
1216
  default: return t.time({ width: "full" });
1217
1217
  }
1218
- }, We = {
1219
- p: Ue,
1218
+ }, Ge = {
1219
+ p: We,
1220
1220
  P: (e, t) => {
1221
1221
  let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
1222
- if (!i) return He(e, t);
1222
+ if (!i) return Ue(e, t);
1223
1223
  let a;
1224
1224
  switch (r) {
1225
1225
  case "P":
@@ -1235,42 +1235,42 @@ var He = (e, t) => {
1235
1235
  a = t.dateTime({ width: "full" });
1236
1236
  break;
1237
1237
  }
1238
- return a.replace("{{date}}", He(r, t)).replace("{{time}}", Ue(i, t));
1238
+ return a.replace("{{date}}", Ue(r, t)).replace("{{time}}", We(i, t));
1239
1239
  }
1240
- }, Ge = /^D+$/, Ke = /^Y+$/, qe = [
1240
+ }, Ke = /^D+$/, qe = /^Y+$/, Je = [
1241
1241
  "D",
1242
1242
  "DD",
1243
1243
  "YY",
1244
1244
  "YYYY"
1245
1245
  ];
1246
- function Je(e) {
1247
- return Ge.test(e);
1248
- }
1249
1246
  function Ye(e) {
1250
1247
  return Ke.test(e);
1251
1248
  }
1252
- function Xe(e, t, n) {
1253
- let r = Ze(e, t, n);
1254
- if (console.warn(r), qe.includes(e)) throw RangeError(r);
1249
+ function Xe(e) {
1250
+ return qe.test(e);
1255
1251
  }
1256
1252
  function Ze(e, t, n) {
1253
+ let r = Qe(e, t, n);
1254
+ if (console.warn(r), Je.includes(e)) throw RangeError(r);
1255
+ }
1256
+ function Qe(e, t, n) {
1257
1257
  let r = e[0] === "Y" ? "years" : "days of the month";
1258
1258
  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`;
1259
1259
  }
1260
1260
  //#endregion
1261
1261
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
1262
- var Qe = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, $e = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, et = /^'([^]*?)'?$/, tt = /''/g, nt = /[a-zA-Z]/;
1263
- function Q(e, t, n) {
1264
- let r = U(), i = n?.locale ?? r.locale ?? je, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = H(e, n?.in);
1265
- if (!ge(s)) throw RangeError("Invalid time value");
1266
- let c = t.match($e).map((e) => {
1262
+ var $e = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, et = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, tt = /^'([^]*?)'?$/, nt = /''/g, rt = /[a-zA-Z]/;
1263
+ function Z(e, t, n) {
1264
+ let r = ce(), i = n?.locale ?? r.locale ?? Me, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = U(e, n?.in);
1265
+ if (!_e(s)) throw RangeError("Invalid time value");
1266
+ let c = t.match(et).map((e) => {
1267
1267
  let t = e[0];
1268
1268
  if (t === "p" || t === "P") {
1269
- let n = We[t];
1269
+ let n = Ge[t];
1270
1270
  return n(e, i.formatLong);
1271
1271
  }
1272
1272
  return e;
1273
- }).join("").match(Qe).map((e) => {
1273
+ }).join("").match($e).map((e) => {
1274
1274
  if (e === "''") return {
1275
1275
  isToken: !1,
1276
1276
  value: "'"
@@ -1278,13 +1278,13 @@ function Q(e, t, n) {
1278
1278
  let t = e[0];
1279
1279
  if (t === "'") return {
1280
1280
  isToken: !1,
1281
- value: rt(e)
1281
+ value: it(e)
1282
1282
  };
1283
- if (Re[t]) return {
1283
+ if (ze[t]) return {
1284
1284
  isToken: !0,
1285
1285
  value: e
1286
1286
  };
1287
- if (t.match(nt)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
1287
+ if (t.match(rt)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
1288
1288
  return {
1289
1289
  isToken: !1,
1290
1290
  value: e
@@ -1299,44 +1299,44 @@ function Q(e, t, n) {
1299
1299
  return c.map((r) => {
1300
1300
  if (!r.isToken) return r.value;
1301
1301
  let a = r.value;
1302
- (!n?.useAdditionalWeekYearTokens && Ye(a) || !n?.useAdditionalDayOfYearTokens && Je(a)) && Xe(a, t, String(e));
1303
- let o = Re[a[0]];
1302
+ (!n?.useAdditionalWeekYearTokens && Xe(a) || !n?.useAdditionalDayOfYearTokens && Ye(a)) && Ze(a, t, String(e));
1303
+ let o = ze[a[0]];
1304
1304
  return o(s, a, i.localize, l);
1305
1305
  }).join("");
1306
1306
  }
1307
- function rt(e) {
1308
- let t = e.match(et);
1309
- return t ? t[1].replace(tt, "'") : e;
1307
+ function it(e) {
1308
+ let t = e.match(tt);
1309
+ return t ? t[1].replace(nt, "'") : e;
1310
1310
  }
1311
1311
  //#endregion
1312
1312
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
1313
- function it(e, t) {
1314
- return +H(e) > +H(t);
1313
+ function at(e, t) {
1314
+ return +U(e) > +U(t);
1315
1315
  }
1316
1316
  //#endregion
1317
1317
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
1318
- function at(e, t) {
1319
- return +H(e) < +H(t);
1318
+ function ot(e, t) {
1319
+ return +U(e) < +U(t);
1320
1320
  }
1321
1321
  //#endregion
1322
1322
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
1323
- function ot(e, t, n) {
1323
+ function st(e, t, n) {
1324
1324
  let [r, i] = ue(n?.in, e, t);
1325
1325
  return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
1326
1326
  }
1327
1327
  //#endregion
1328
1328
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isToday.js
1329
- function st(e, t) {
1330
- return q(V(t?.in || e, e), me(t?.in || e));
1329
+ function ct(e, t) {
1330
+ return he(H(t?.in || e, e), me(t?.in || e));
1331
1331
  }
1332
1332
  //#endregion
1333
1333
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/subMonths.js
1334
- function ct(e, t, n) {
1335
- return se(e, -t, n);
1334
+ function lt(e, t, n) {
1335
+ return oe(e, -t, n);
1336
1336
  }
1337
1337
  //#endregion
1338
1338
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js
1339
- var lt = {
1339
+ var ut = {
1340
1340
  lessThanXSeconds: {
1341
1341
  one: "menos de um segundo",
1342
1342
  other: "menos de {{count}} segundos"
@@ -1398,11 +1398,11 @@ var lt = {
1398
1398
  one: "quase 1 ano",
1399
1399
  other: "quase {{count}} anos"
1400
1400
  }
1401
- }, ut = (e, t, n) => {
1402
- let r, i = lt[e];
1401
+ }, dt = (e, t, n) => {
1402
+ let r, i = ut[e];
1403
1403
  return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", String(t)), n?.addSuffix ? n.comparison && n.comparison > 0 ? "em " + r : "há " + r : r;
1404
- }, dt = {
1405
- date: Ce({
1404
+ }, ft = {
1405
+ date: we({
1406
1406
  formats: {
1407
1407
  full: "EEEE, d 'de' MMMM 'de' y",
1408
1408
  long: "d 'de' MMMM 'de' y",
@@ -1411,7 +1411,7 @@ var lt = {
1411
1411
  },
1412
1412
  defaultWidth: "full"
1413
1413
  }),
1414
- time: Ce({
1414
+ time: we({
1415
1415
  formats: {
1416
1416
  full: "HH:mm:ss zzzz",
1417
1417
  long: "HH:mm:ss z",
@@ -1420,7 +1420,7 @@ var lt = {
1420
1420
  },
1421
1421
  defaultWidth: "full"
1422
1422
  }),
1423
- dateTime: Ce({
1423
+ dateTime: we({
1424
1424
  formats: {
1425
1425
  full: "{{date}} 'às' {{time}}",
1426
1426
  long: "{{date}} 'às' {{time}}",
@@ -1429,7 +1429,7 @@ var lt = {
1429
1429
  },
1430
1430
  defaultWidth: "full"
1431
1431
  })
1432
- }, ft = {
1432
+ }, pt = {
1433
1433
  lastWeek: (e) => {
1434
1434
  let t = e.getDay();
1435
1435
  return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
@@ -1439,12 +1439,12 @@ var lt = {
1439
1439
  tomorrow: "'amanhã às' p",
1440
1440
  nextWeek: "eeee 'às' p",
1441
1441
  other: "P"
1442
- }, pt = {
1442
+ }, mt = {
1443
1443
  code: "pt-BR",
1444
- formatDistance: ut,
1445
- formatLong: dt,
1444
+ formatDistance: dt,
1445
+ formatLong: ft,
1446
1446
  formatRelative: (e, t, n, r) => {
1447
- let i = ft[e];
1447
+ let i = pt[e];
1448
1448
  return typeof i == "function" ? i(t) : i;
1449
1449
  },
1450
1450
  localize: {
@@ -1452,7 +1452,7 @@ var lt = {
1452
1452
  let n = Number(e);
1453
1453
  return t?.unit === "week" ? n + "ª" : n + "º";
1454
1454
  },
1455
- era: J({
1455
+ era: q({
1456
1456
  values: {
1457
1457
  narrow: ["AC", "DC"],
1458
1458
  abbreviated: ["AC", "DC"],
@@ -1460,7 +1460,7 @@ var lt = {
1460
1460
  },
1461
1461
  defaultWidth: "wide"
1462
1462
  }),
1463
- quarter: J({
1463
+ quarter: q({
1464
1464
  values: {
1465
1465
  narrow: [
1466
1466
  "1",
@@ -1484,7 +1484,7 @@ var lt = {
1484
1484
  defaultWidth: "wide",
1485
1485
  argumentCallback: (e) => e - 1
1486
1486
  }),
1487
- month: J({
1487
+ month: q({
1488
1488
  values: {
1489
1489
  narrow: [
1490
1490
  "j",
@@ -1531,7 +1531,7 @@ var lt = {
1531
1531
  },
1532
1532
  defaultWidth: "wide"
1533
1533
  }),
1534
- day: J({
1534
+ day: q({
1535
1535
  values: {
1536
1536
  narrow: [
1537
1537
  "D",
@@ -1572,7 +1572,7 @@ var lt = {
1572
1572
  },
1573
1573
  defaultWidth: "wide"
1574
1574
  }),
1575
- dayPeriod: J({
1575
+ dayPeriod: q({
1576
1576
  values: {
1577
1577
  narrow: {
1578
1578
  am: "a",
@@ -1642,12 +1642,12 @@ var lt = {
1642
1642
  })
1643
1643
  },
1644
1644
  match: {
1645
- ordinalNumber: Ae({
1645
+ ordinalNumber: je({
1646
1646
  matchPattern: /^(\d+)[ºªo]?/i,
1647
1647
  parsePattern: /\d+/i,
1648
1648
  valueCallback: (e) => parseInt(e, 10)
1649
1649
  }),
1650
- era: Y({
1650
+ era: J({
1651
1651
  matchPatterns: {
1652
1652
  narrow: /^(ac|dc|a|d)/i,
1653
1653
  abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
@@ -1660,7 +1660,7 @@ var lt = {
1660
1660
  },
1661
1661
  defaultParseWidth: "any"
1662
1662
  }),
1663
- quarter: Y({
1663
+ quarter: J({
1664
1664
  matchPatterns: {
1665
1665
  narrow: /^[1234]/i,
1666
1666
  abbreviated: /^T[1234]/i,
@@ -1676,7 +1676,7 @@ var lt = {
1676
1676
  defaultParseWidth: "any",
1677
1677
  valueCallback: (e) => e + 1
1678
1678
  }),
1679
- month: Y({
1679
+ month: J({
1680
1680
  matchPatterns: {
1681
1681
  narrow: /^[jfmajsond]/i,
1682
1682
  abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
@@ -1715,7 +1715,7 @@ var lt = {
1715
1715
  },
1716
1716
  defaultParseWidth: "any"
1717
1717
  }),
1718
- day: Y({
1718
+ day: J({
1719
1719
  matchPatterns: {
1720
1720
  narrow: /^(dom|[23456]ª?|s[aá]b)/i,
1721
1721
  short: /^(dom|[23456]ª?|s[aá]b)/i,
@@ -1754,7 +1754,7 @@ var lt = {
1754
1754
  },
1755
1755
  defaultParseWidth: "any"
1756
1756
  }),
1757
- dayPeriod: Y({
1757
+ dayPeriod: J({
1758
1758
  matchPatterns: {
1759
1759
  narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
1760
1760
  any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
@@ -1777,7 +1777,7 @@ var lt = {
1777
1777
  weekStartsOn: 0,
1778
1778
  firstWeekContainsDate: 1
1779
1779
  }
1780
- }, mt = {
1780
+ }, ht = {
1781
1781
  sm: {
1782
1782
  classes: "size-[calc(1.75rem*1.188*1.1)] rounded-[min(var(--radius-eds-xs),12px)] [&_svg:not([class*='size-'])]:size-3.5",
1783
1783
  iconPx: 14
@@ -1791,8 +1791,8 @@ var lt = {
1791
1791
  iconPx: 16
1792
1792
  }
1793
1793
  };
1794
- function ht({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", size: o = "md", disabled: s, style: c, ...l }) {
1795
- let u = P(mt, o, L.size), d = P(I.variant, i, L.variant);
1794
+ function gt({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", size: o = "md", disabled: s, style: c, ...l }) {
1795
+ let u = P(ht, o, L.size), d = P(I.variant, i, L.variant);
1796
1796
  return /* @__PURE__ */ f(e, {
1797
1797
  style: {
1798
1798
  "--eds-btn-accent": `var(--color-eds-${a})`,
@@ -1814,7 +1814,7 @@ function ht({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
1814
1814
  }
1815
1815
  //#endregion
1816
1816
  //#region src/components/Calendar/Calendar.tsx
1817
- var gt = [
1817
+ var _t = [
1818
1818
  "Dom",
1819
1819
  "Seg",
1820
1820
  "Ter",
@@ -1823,16 +1823,16 @@ var gt = [
1823
1823
  "Sex",
1824
1824
  "Sáb"
1825
1825
  ];
1826
- function _t(e, t) {
1827
- let n = W(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
1828
- for (let e = n; e <= r; e = oe(e, 1)) i.push(e);
1826
+ function vt(e, t) {
1827
+ let n = W(ye(e), { weekStartsOn: t }), r = xe(ve(e), { weekStartsOn: t }), i = [];
1828
+ for (let e = n; e <= r; e = ae(e, 1)) i.push(e);
1829
1829
  return i;
1830
1830
  }
1831
- function vt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: o = 3, weekStartsOn: s = 0, onDayClick: c, onEventClick: l, renderEvent: u, showNavigation: d = !0, className: m }) {
1832
- let [h, g] = x(() => t ?? /* @__PURE__ */ new Date()), _ = e !== void 0, v = _ ? e : h, b = y(() => [...gt.slice(s), ...gt.slice(0, s)], [s]), S = y(() => _t(v, s), [v, s]), C = y(() => {
1831
+ function yt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: o = 3, weekStartsOn: s = 0, onDayClick: c, onEventClick: l, renderEvent: u, showNavigation: d = !0, className: m }) {
1832
+ let [h, g] = x(() => t ?? /* @__PURE__ */ new Date()), _ = e !== void 0, v = _ ? e : h, b = y(() => [..._t.slice(s), ..._t.slice(0, s)], [s]), S = y(() => vt(v, s), [v, s]), C = y(() => {
1833
1833
  let e = /* @__PURE__ */ new Map();
1834
1834
  for (let t of r) {
1835
- let n = Q(t.date, "yyyy-MM-dd"), r = e.get(n);
1835
+ let n = Z(t.date, "yyyy-MM-dd"), r = e.get(n);
1836
1836
  r ? r.push(t) : e.set(n, [t]);
1837
1837
  }
1838
1838
  return e;
@@ -1847,19 +1847,19 @@ function vt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1847
1847
  className: "mb-3 flex shrink-0 items-center justify-between",
1848
1848
  children: [/* @__PURE__ */ f("span", {
1849
1849
  className: "text-base font-medium text-eds-neutral-main capitalize",
1850
- children: Q(v, "MMMM yyyy", { locale: pt })
1850
+ children: Z(v, "MMMM yyyy", { locale: mt })
1851
1851
  }), /* @__PURE__ */ p("div", {
1852
1852
  className: "flex items-center gap-1",
1853
- children: [/* @__PURE__ */ f(ht, {
1853
+ children: [/* @__PURE__ */ f(gt, {
1854
1854
  icon: i,
1855
1855
  label: "Mês anterior",
1856
1856
  size: "sm",
1857
- onClick: () => w(ct(v, 1))
1858
- }), /* @__PURE__ */ f(ht, {
1857
+ onClick: () => w(lt(v, 1))
1858
+ }), /* @__PURE__ */ f(gt, {
1859
1859
  icon: a,
1860
1860
  label: "Próximo mês",
1861
1861
  size: "sm",
1862
- onClick: () => w(se(v, 1))
1862
+ onClick: () => w(oe(v, 1))
1863
1863
  })]
1864
1864
  })]
1865
1865
  }), /* @__PURE__ */ p("div", {
@@ -1873,7 +1873,7 @@ function vt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1873
1873
  }), /* @__PURE__ */ f("div", {
1874
1874
  className: "grid flex-1 auto-rows-fr grid-cols-7",
1875
1875
  children: S.map((e, t) => {
1876
- let n = ot(e, v), r = st(e), i = Q(e, "yyyy-MM-dd"), a = C.get(i) ?? [], s = a.slice(0, o), d = a.length - s.length, m = n ? Q(e, "d") : Q(e, "d MMM", { locale: pt });
1876
+ let n = st(e, v), r = ct(e), i = Z(e, "yyyy-MM-dd"), a = C.get(i) ?? [], s = a.slice(0, o), d = a.length - s.length, m = n ? Z(e, "d") : Z(e, "d MMM", { locale: mt });
1877
1877
  return /* @__PURE__ */ p("div", {
1878
1878
  "data-date": i,
1879
1879
  onClick: () => c?.(e),
@@ -1928,73 +1928,73 @@ function vt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1928
1928
  }
1929
1929
  //#endregion
1930
1930
  //#region src/components/Card/Card.tsx
1931
- function yt({ className: e, ...t }) {
1931
+ function bt({ className: e, ...t }) {
1932
1932
  return /* @__PURE__ */ f("div", {
1933
1933
  "data-eds-component": "Card",
1934
1934
  className: N("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
1935
1935
  ...t
1936
1936
  });
1937
1937
  }
1938
- function bt({ className: e, ...t }) {
1938
+ function xt({ className: e, ...t }) {
1939
1939
  return /* @__PURE__ */ f("div", {
1940
1940
  "data-slot": "card-header",
1941
1941
  className: N("grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]", e),
1942
1942
  ...t
1943
1943
  });
1944
1944
  }
1945
- function xt({ className: e, ...t }) {
1945
+ function St({ className: e, ...t }) {
1946
1946
  return /* @__PURE__ */ f("h3", {
1947
1947
  "data-slot": "card-title",
1948
1948
  className: N("text-lg leading-none font-semibold text-eds-neutral-main", e),
1949
1949
  ...t
1950
1950
  });
1951
1951
  }
1952
- function St({ className: e, ...t }) {
1952
+ function Ct({ className: e, ...t }) {
1953
1953
  return /* @__PURE__ */ f("p", {
1954
1954
  "data-slot": "card-description",
1955
1955
  className: N("text-sm text-eds-neutral-elements", e),
1956
1956
  ...t
1957
1957
  });
1958
1958
  }
1959
- function Ct({ className: e, ...t }) {
1959
+ function wt({ className: e, ...t }) {
1960
1960
  return /* @__PURE__ */ f("div", {
1961
1961
  "data-slot": "card-action",
1962
1962
  className: N("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
1963
1963
  ...t
1964
1964
  });
1965
1965
  }
1966
- function wt({ className: e, ...t }) {
1966
+ function Tt({ className: e, ...t }) {
1967
1967
  return /* @__PURE__ */ f("div", {
1968
1968
  "data-slot": "card-content",
1969
1969
  className: N("px-6", e),
1970
1970
  ...t
1971
1971
  });
1972
1972
  }
1973
- function Tt({ className: e, ...t }) {
1973
+ function Et({ className: e, ...t }) {
1974
1974
  return /* @__PURE__ */ f("div", {
1975
1975
  "data-slot": "card-footer",
1976
1976
  className: N("-mb-6 -mt-6 flex flex-col-reverse gap-2 rounded-b-eds-sm border-t border-eds-outline-border bg-eds-neutral-background px-6 py-4 sm:flex-row sm:justify-end", e),
1977
1977
  ...t
1978
1978
  });
1979
1979
  }
1980
- bt.displayName = "Card.Header", xt.displayName = "Card.Title", St.displayName = "Card.Description", Ct.displayName = "Card.Action", wt.displayName = "Card.Content", Tt.displayName = "Card.Footer";
1981
- var Et = Object.assign(yt, {
1982
- Header: bt,
1983
- Title: xt,
1984
- Description: St,
1985
- Action: Ct,
1986
- Content: wt,
1987
- Footer: Tt
1988
- }), Dt = {
1980
+ xt.displayName = "Card.Header", St.displayName = "Card.Title", Ct.displayName = "Card.Description", wt.displayName = "Card.Action", Tt.displayName = "Card.Content", Et.displayName = "Card.Footer";
1981
+ var Dt = Object.assign(bt, {
1982
+ Header: xt,
1983
+ Title: St,
1984
+ Description: Ct,
1985
+ Action: wt,
1986
+ Content: Tt,
1987
+ Footer: Et
1988
+ }), Ot = {
1989
1989
  default: { classes: "gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2" },
1990
1990
  sm: { classes: "gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5" },
1991
1991
  xs: { classes: "gap-1.5 rounded-eds-lil text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1" }
1992
- }, Ot = {
1992
+ }, kt = {
1993
1993
  horizontal: { classes: "min-w-40 items-center" },
1994
1994
  vertical: { classes: "w-24 flex-col has-data-[slot=attachment-content]:w-[7.5rem]" }
1995
1995
  };
1996
- function kt({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
1997
- let a = P(Dt, n, "default"), o = P(Ot, r, "horizontal");
1996
+ function At({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
1997
+ let a = P(Ot, n, "default"), o = P(kt, r, "horizontal");
1998
1998
  return /* @__PURE__ */ f("div", {
1999
1999
  "data-eds-component": "Attachment",
2000
2000
  "data-slot": "attachment",
@@ -2005,7 +2005,7 @@ function kt({ className: e, state: t = "done", size: n = "default", orientation:
2005
2005
  ...i
2006
2006
  });
2007
2007
  }
2008
- function At({ className: e, variant: t = "icon", ...n }) {
2008
+ function jt({ className: e, variant: t = "icon", ...n }) {
2009
2009
  return /* @__PURE__ */ f("div", {
2010
2010
  "data-slot": "attachment-media",
2011
2011
  "data-variant": t,
@@ -2013,36 +2013,36 @@ function At({ className: e, variant: t = "icon", ...n }) {
2013
2013
  ...n
2014
2014
  });
2015
2015
  }
2016
- function jt({ className: e, ...t }) {
2016
+ function Mt({ className: e, ...t }) {
2017
2017
  return /* @__PURE__ */ f("div", {
2018
2018
  "data-slot": "attachment-content",
2019
2019
  className: N("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
2020
2020
  ...t
2021
2021
  });
2022
2022
  }
2023
- function Mt({ className: e, ...t }) {
2023
+ function Nt({ className: e, ...t }) {
2024
2024
  return /* @__PURE__ */ f("span", {
2025
2025
  "data-slot": "attachment-title",
2026
2026
  className: N("block max-w-full min-w-0 truncate font-medium text-eds-neutral-main", "group-data-[state=uploading]/attachment:animate-eds-shimmer group-data-[state=processing]/attachment:animate-eds-shimmer", "group-data-[state=uploading]/attachment:text-eds-blue-main group-data-[state=processing]/attachment:text-eds-blue-main", e),
2027
2027
  ...t
2028
2028
  });
2029
2029
  }
2030
- function Nt({ className: e, ...t }) {
2030
+ function Pt({ className: e, ...t }) {
2031
2031
  return /* @__PURE__ */ f("span", {
2032
2032
  "data-slot": "attachment-description",
2033
2033
  className: N("mt-0.5 block max-w-full min-w-0 truncate text-xs text-eds-neutral-elements", "group-data-[state=error]/attachment:text-eds-red-main/85", "group-data-[state=uploading]/attachment:text-eds-blue-middle group-data-[state=processing]/attachment:text-eds-blue-middle", e),
2034
2034
  ...t
2035
2035
  });
2036
2036
  }
2037
- function Pt({ className: e, ...t }) {
2037
+ function Ft({ className: e, ...t }) {
2038
2038
  return /* @__PURE__ */ f("div", {
2039
2039
  "data-slot": "attachment-actions",
2040
2040
  className: N("relative z-20 flex shrink-0 items-center", "group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", e),
2041
2041
  ...t
2042
2042
  });
2043
2043
  }
2044
- function Ft({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
2045
- return /* @__PURE__ */ f(ht, {
2044
+ function It({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
2045
+ return /* @__PURE__ */ f(gt, {
2046
2046
  "data-slot": "attachment-action",
2047
2047
  variant: e,
2048
2048
  color: t,
@@ -2051,7 +2051,7 @@ function Ft({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", clas
2051
2051
  ...i
2052
2052
  });
2053
2053
  }
2054
- function It({ className: e, render: t, type: n, ...r }) {
2054
+ function Lt({ className: e, render: t, type: n, ...r }) {
2055
2055
  return C({
2056
2056
  defaultTagName: "button",
2057
2057
  props: S({
@@ -2062,7 +2062,7 @@ function It({ className: e, render: t, type: n, ...r }) {
2062
2062
  state: { slot: "attachment-trigger" }
2063
2063
  });
2064
2064
  }
2065
- function Lt({ className: e, ...t }) {
2065
+ function Rt({ className: e, ...t }) {
2066
2066
  return /* @__PURE__ */ f("div", {
2067
2067
  "data-eds-component": "AttachmentGroup",
2068
2068
  "data-slot": "attachment-group",
@@ -2070,21 +2070,21 @@ function Lt({ className: e, ...t }) {
2070
2070
  ...t
2071
2071
  });
2072
2072
  }
2073
- At.displayName = "Attachment.Media", jt.displayName = "Attachment.Content", Mt.displayName = "Attachment.Title", Nt.displayName = "Attachment.Description", Pt.displayName = "Attachment.Actions", Ft.displayName = "Attachment.Action", It.displayName = "Attachment.Trigger", Lt.displayName = "Attachment.Group";
2074
- var Rt = Object.assign(kt, {
2075
- Media: At,
2076
- Content: jt,
2077
- Title: Mt,
2078
- Description: Nt,
2079
- Actions: Pt,
2080
- Action: Ft,
2081
- Trigger: It,
2082
- Group: Lt
2083
- }), zt = N("relative flex size-[18px] shrink-0 items-center justify-center rounded-[4px] border border-eds-neutral-elements bg-white transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-brand focus-visible:ring-offset-1", "data-checked:border-eds-blue-main data-checked:bg-eds-blue-main", "data-indeterminate:border-eds-blue-main data-indeterminate:bg-eds-blue-main", "data-disabled:cursor-not-allowed data-disabled:border-eds-neutral-disabled data-disabled:bg-eds-neutral-background data-disabled:opacity-70");
2084
- function Bt({ className: e, ...t }) {
2073
+ jt.displayName = "Attachment.Media", Mt.displayName = "Attachment.Content", Nt.displayName = "Attachment.Title", Pt.displayName = "Attachment.Description", Ft.displayName = "Attachment.Actions", It.displayName = "Attachment.Action", Lt.displayName = "Attachment.Trigger", Rt.displayName = "Attachment.Group";
2074
+ var zt = Object.assign(At, {
2075
+ Media: jt,
2076
+ Content: Mt,
2077
+ Title: Nt,
2078
+ Description: Pt,
2079
+ Actions: Ft,
2080
+ Action: It,
2081
+ Trigger: Lt,
2082
+ Group: Rt
2083
+ }), Bt = N("relative flex size-[18px] shrink-0 items-center justify-center rounded-[4px] border border-eds-neutral-elements bg-white transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-brand focus-visible:ring-offset-1", "data-checked:border-eds-blue-main data-checked:bg-eds-blue-main", "data-indeterminate:border-eds-blue-main data-indeterminate:bg-eds-blue-main", "data-disabled:cursor-not-allowed data-disabled:border-eds-neutral-disabled data-disabled:bg-eds-neutral-background data-disabled:opacity-70");
2084
+ function Vt({ className: e, ...t }) {
2085
2085
  return /* @__PURE__ */ f(w.Root, {
2086
2086
  "data-eds-component": "Checkbox",
2087
- className: N(zt, e),
2087
+ className: N(Bt, e),
2088
2088
  ...t,
2089
2089
  children: /* @__PURE__ */ f(w.Indicator, {
2090
2090
  keepMounted: !0,
@@ -2104,17 +2104,17 @@ function Bt({ className: e, ...t }) {
2104
2104
  })
2105
2105
  });
2106
2106
  }
2107
- function Vt({ className: e, label: t, disabled: n, ...r }) {
2107
+ function Ht({ className: e, label: t, disabled: n, ...r }) {
2108
2108
  return t ? /* @__PURE__ */ f(T.Root, {
2109
2109
  className: N("inline-flex", e),
2110
2110
  children: /* @__PURE__ */ p(T.Label, {
2111
2111
  className: N("inline-flex min-h-7 cursor-pointer items-center gap-[9px] rounded-md pl-2 text-base leading-6 text-eds-default", n && "cursor-not-allowed opacity-70"),
2112
- children: [/* @__PURE__ */ f(Bt, {
2112
+ children: [/* @__PURE__ */ f(Vt, {
2113
2113
  disabled: n,
2114
2114
  ...r
2115
2115
  }), /* @__PURE__ */ f("span", { children: t })]
2116
2116
  })
2117
- }) : /* @__PURE__ */ f(Bt, {
2117
+ }) : /* @__PURE__ */ f(Vt, {
2118
2118
  className: e,
2119
2119
  disabled: n,
2120
2120
  ...r
@@ -2122,52 +2122,63 @@ function Vt({ className: e, label: t, disabled: n, ...r }) {
2122
2122
  }
2123
2123
  //#endregion
2124
2124
  //#region src/lib/field-styles.ts
2125
- function Ht(e, t) {
2125
+ function Ut(e, t) {
2126
2126
  return e ?? (t === !1 ? "outside" : "floating");
2127
2127
  }
2128
- var Ut = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", Wt = "flex items-center justify-between gap-3", Gt = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", Kt = "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)]", qt = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", Jt = "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", Yt = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", Xt = "z-50 outline-none";
2129
- function Zt(e) {
2130
- 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`;
2131
- }
2132
- //#endregion
2133
- //#region src/components/ComboBox/Combobox.tsx
2134
- var Qt = {
2128
+ var Wt = {
2135
2129
  sm: {
2136
- group: "h-8 pr-2 pl-2.5",
2130
+ control: "h-9 px-3",
2131
+ trigger: "h-9 pr-2 pl-3",
2137
2132
  text: "text-sm",
2138
- left: "left-2.5",
2139
- icon: "size-6"
2133
+ left: "left-3",
2134
+ icon: "size-6",
2135
+ paddingX: "px-3"
2140
2136
  },
2141
2137
  md: {
2142
- group: "h-9 pr-2 pl-3",
2138
+ control: "h-10 px-3.5",
2139
+ trigger: "h-10 pr-2 pl-3.5",
2143
2140
  text: "text-base",
2144
- left: "left-3",
2145
- icon: "size-7"
2141
+ left: "left-3.5",
2142
+ icon: "size-7",
2143
+ paddingX: "px-3.5"
2146
2144
  },
2147
2145
  lg: {
2148
- group: "h-11 pr-2 pl-3.5",
2146
+ control: "h-12 px-4",
2147
+ trigger: "h-12 pr-2 pl-4",
2149
2148
  text: "text-base",
2150
- left: "left-3.5",
2151
- icon: "size-8"
2149
+ left: "left-4",
2150
+ icon: "size-8",
2151
+ paddingX: "px-4"
2152
2152
  }
2153
- }, $t = {
2153
+ }, Q = {
2154
+ overlay: "z-[1300]",
2155
+ popup: "z-[1400]",
2156
+ overlayValue: 1300,
2157
+ popupValue: 1400
2158
+ }, Gt = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", Kt = "flex items-center justify-between gap-3", qt = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", Jt = "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)]", Yt = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", Xt = "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", Zt = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", Qt = `${Q.popup} outline-none`, $t = { zIndex: Q.popupValue };
2159
+ function en(e) {
2160
+ return `pointer-events-none absolute top-0 z-1 -translate-y-1/2 bg-transparent px-0 pr-1 text-sm text-eds-neutral-elements ${e} before:absolute before:inset-x-0 before:top-1/2 before:-z-10 before:h-0.5 before:-translate-y-1/2 before:bg-white before:content-[''] group-data-disabled:before:bg-eds-neutral-background`;
2161
+ }
2162
+ //#endregion
2163
+ //#region src/components/ComboBox/Combobox.tsx
2164
+ var tn = {
2154
2165
  default: "",
2155
2166
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2156
2167
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2157
- }, en = E.Root;
2158
- function tn({ label: e = "Label", floatingLabel: t = !0, items: i, placeholder: a = "Selecione uma opção", disabled: o = !1, required: s = !1, fluid: c = !1, state: u = "default", size: d = "md", supportingText: m = "", errorMessage: h = "Selecione uma opção válida", emptyMessage: g = "Nenhum resultado.", readOnly: _ = !1, id: y, name: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, renderItem: D, className: O, inputProps: k }) {
2159
- let A = v(), j = y ?? A, M = u === "invalid", P = M || !!m, F = Qt[d], I = (e) => w ? w(e) : e.label ?? "", L = (e) => T ? T(e) : e.value ?? I(e), ee = (e) => {
2168
+ }, nn = E.Root;
2169
+ function rn({ label: e = "Label", floatingLabel: t = !0, items: i, placeholder: a = "Selecione uma opção", disabled: o = !1, required: s = !1, fluid: c = !1, state: u = "default", size: d = "md", supportingText: m = "", errorMessage: h = "Selecione uma opção válida", emptyMessage: g = "Nenhum resultado.", readOnly: _ = !1, id: y, name: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, renderItem: D, className: O, inputProps: k }) {
2170
+ let A = v(), j = y ?? A, M = u === "invalid", P = M || !!m, F = Wt[d], I = (e) => w ? w(e) : e.label ?? "", L = (e) => T ? T(e) : e.value ?? I(e), ee = (e) => {
2160
2171
  C?.(e);
2161
- }, R = w ? (e) => w(e) : void 0, te = T ? (e) => T(e) : void 0;
2172
+ }, R = w ? (e) => w(e) : void 0, z = T ? (e) => T(e) : void 0;
2162
2173
  return /* @__PURE__ */ p("div", {
2163
- className: N(Ut, O),
2174
+ className: N(Gt, O),
2164
2175
  "data-fluid": c || void 0,
2165
2176
  "data-eds-component": "Combobox",
2166
2177
  children: [
2167
2178
  /* @__PURE__ */ f("div", {
2168
- className: Wt,
2179
+ className: Kt,
2169
2180
  children: /* @__PURE__ */ p("label", {
2170
- className: N(Gt, t && "sr-only"),
2181
+ className: N(qt, t && "sr-only"),
2171
2182
  htmlFor: j,
2172
2183
  children: [/* @__PURE__ */ f("span", { children: e }), s && /* @__PURE__ */ f("span", {
2173
2184
  className: "text-eds-red-main",
@@ -2175,7 +2186,7 @@ function tn({ label: e = "Label", floatingLabel: t = !0, items: i, placeholder:
2175
2186
  })]
2176
2187
  })
2177
2188
  }),
2178
- /* @__PURE__ */ p(en, {
2189
+ /* @__PURE__ */ p(nn, {
2179
2190
  items: i,
2180
2191
  name: b,
2181
2192
  disabled: o,
@@ -2183,15 +2194,15 @@ function tn({ label: e = "Label", floatingLabel: t = !0, items: i, placeholder:
2183
2194
  onValueChange: C ? ee : void 0,
2184
2195
  ...x === void 0 ? S === void 0 ? {} : { defaultValue: S } : { value: x },
2185
2196
  itemToStringLabel: R,
2186
- itemToStringValue: te,
2197
+ itemToStringValue: z,
2187
2198
  children: [/* @__PURE__ */ p(E.InputGroup, {
2188
- className: N("group relative inline-flex w-full items-center gap-1 rounded-eds-xs border border-eds-outline-border bg-white", F.group, $t[u], "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"),
2199
+ className: N("group relative inline-flex w-full items-center gap-1 rounded-eds-xs border border-eds-outline-border bg-white", F.trigger, tn[u], "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"),
2189
2200
  "data-state": u,
2190
2201
  "data-size": d,
2191
2202
  "data-disabled": o || void 0,
2192
2203
  children: [
2193
2204
  t && /* @__PURE__ */ p("span", {
2194
- className: Zt(F.left),
2205
+ className: en(F.left),
2195
2206
  children: [/* @__PURE__ */ f("span", { children: e }), s && /* @__PURE__ */ f("span", {
2196
2207
  className: "text-eds-red-main",
2197
2208
  "aria-hidden": "true",
@@ -2233,20 +2244,22 @@ function tn({ label: e = "Label", floatingLabel: t = !0, items: i, placeholder:
2233
2244
  })
2234
2245
  ]
2235
2246
  }), /* @__PURE__ */ f(E.Portal, { children: /* @__PURE__ */ f(E.Positioner, {
2236
- className: Xt,
2247
+ className: Qt,
2248
+ style: $t,
2249
+ positionMethod: "fixed",
2237
2250
  sideOffset: 4,
2238
2251
  children: /* @__PURE__ */ p(E.Popup, {
2239
- className: Kt,
2252
+ className: Jt,
2240
2253
  children: [/* @__PURE__ */ f(E.Empty, { children: /* @__PURE__ */ f("div", {
2241
2254
  className: "px-3 py-2.5 text-sm text-eds-neutral-elements",
2242
2255
  children: g
2243
2256
  }) }), /* @__PURE__ */ f(E.List, {
2244
- className: qt,
2257
+ className: Yt,
2245
2258
  children: (e) => /* @__PURE__ */ p(E.Item, {
2246
2259
  value: e,
2247
- className: Jt,
2260
+ className: Xt,
2248
2261
  children: [/* @__PURE__ */ f(E.ItemIndicator, {
2249
- className: Yt,
2262
+ className: Zt,
2250
2263
  children: /* @__PURE__ */ f(n, {
2251
2264
  size: 14,
2252
2265
  strokeWidth: 2.5,
@@ -2272,30 +2285,11 @@ function tn({ label: e = "Label", floatingLabel: t = !0, items: i, placeholder:
2272
2285
  }
2273
2286
  //#endregion
2274
2287
  //#region src/components/DatePicker/DatePicker.tsx
2275
- var nn = {
2276
- sm: {
2277
- trigger: "h-8 px-2.5",
2278
- text: "text-sm",
2279
- left: "left-2.5",
2280
- icon: "size-4"
2281
- },
2282
- md: {
2283
- trigger: "h-9 px-3",
2284
- text: "text-base",
2285
- left: "left-3",
2286
- icon: "size-4"
2287
- },
2288
- lg: {
2289
- trigger: "h-11 px-3.5",
2290
- text: "text-base",
2291
- left: "left-3.5",
2292
- icon: "size-5"
2293
- }
2294
- }, rn = {
2288
+ var an = {
2295
2289
  default: "",
2296
2290
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2297
2291
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2298
- }, an = [
2292
+ }, on = [
2299
2293
  "D",
2300
2294
  "S",
2301
2295
  "T",
@@ -2304,78 +2298,78 @@ var nn = {
2304
2298
  "S",
2305
2299
  "S"
2306
2300
  ];
2307
- function on(e, t) {
2308
- let n = W(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
2309
- for (let e = n; e <= r; e = oe(e, 1)) i.push(e);
2301
+ function sn(e, t) {
2302
+ let n = W(ye(e), { weekStartsOn: t }), r = xe(ve(e), { weekStartsOn: t }), i = [];
2303
+ for (let e = n; e <= r; e = ae(e, 1)) i.push(e);
2310
2304
  return i;
2311
2305
  }
2312
- function sn(e) {
2306
+ function cn(e) {
2313
2307
  return e.mode === "range";
2314
2308
  }
2315
- function cn(e) {
2316
- let { label: n = "Label", labelVariant: r, floatingLabel: o, disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: m = "", errorMessage: h = "Selecione uma data válida", id: g, weekStartsOn: _ = 0, dateFormat: b = "dd/MM/yyyy", className: S } = e, C = sn(e), w = e.placeholder ?? (C ? "Selecione um período" : "Selecione uma data"), T = v(), E = g ?? T, O = u === "invalid", k = O || m, A = nn[d], j = Ht(r, o), M = j === "floating", P = sn(e) ? {
2309
+ function ln(e) {
2310
+ let { label: n = "Label", labelVariant: r, floatingLabel: o, disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: m = "", errorMessage: h = "Selecione uma data válida", id: g, weekStartsOn: _ = 0, dateFormat: b = "dd/MM/yyyy", className: S } = e, C = cn(e), w = e.placeholder ?? (C ? "Selecione um período" : "Selecione uma data"), T = v(), E = g ?? T, O = u === "invalid", k = O || m, A = Wt[d], j = d === "lg" ? "size-5" : "size-4", M = Ut(r, o), P = M === "floating", F = cn(e) ? {
2317
2311
  from: e.defaultValue?.from ?? null,
2318
2312
  to: e.defaultValue?.to ?? null
2319
2313
  } : {
2320
2314
  from: e.defaultValue ?? null,
2321
2315
  to: null
2322
- }, F = sn(e) ? e.value === void 0 ? void 0 : {
2316
+ }, I = cn(e) ? e.value === void 0 ? void 0 : {
2323
2317
  from: e.value?.from ?? null,
2324
2318
  to: e.value?.to ?? null
2325
2319
  } : e.value === void 0 ? void 0 : {
2326
2320
  from: e.value ?? null,
2327
2321
  to: null
2328
- }, I = F !== void 0, [L, ee] = x(P), R = I ? F : L, te = sn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, ne = sn(e) ? e.presets : void 0, [re, z] = x(!1), [ie, B] = x(() => R.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), ae = y(() => [...an.slice(_), ...an.slice(0, _)], [_]), V = y(() => Array.from({ length: te }, (e, t) => se(ie, t)), [ie, te]);
2329
- function H(t) {
2330
- s || (t && B(R.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), z(t));
2322
+ }, L = I !== void 0, [ee, R] = x(F), z = L ? I : ee, B = cn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, te = cn(e) ? e.presets : void 0, [ne, re] = x(!1), [ie, V] = x(() => z.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), H = y(() => [...on.slice(_), ...on.slice(0, _)], [_]), U = y(() => Array.from({ length: B }, (e, t) => oe(ie, t)), [ie, B]);
2323
+ function ae(t) {
2324
+ s || (t && V(z.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), re(t));
2331
2325
  }
2332
- function oe(t) {
2333
- if (sn(e)) {
2334
- let n = R, r;
2326
+ function se(t) {
2327
+ if (cn(e)) {
2328
+ let n = z, r;
2335
2329
  r = !n.from || n.to ? {
2336
2330
  from: t,
2337
2331
  to: null
2338
- } : at(t, n.from) ? {
2332
+ } : ot(t, n.from) ? {
2339
2333
  from: t,
2340
2334
  to: n.from
2341
2335
  } : {
2342
2336
  from: n.from,
2343
2337
  to: t
2344
- }, I || ee(r), r.from && e.onValueChange?.({
2338
+ }, L || R(r), r.from && e.onValueChange?.({
2345
2339
  from: r.from,
2346
2340
  to: r.to ?? void 0
2347
- }), r.from && r.to && z(!1);
2341
+ }), r.from && r.to && re(!1);
2348
2342
  return;
2349
2343
  }
2350
- I || ee({
2344
+ L || R({
2351
2345
  from: t,
2352
2346
  to: null
2353
- }), e.onValueChange?.(t), z(!1);
2347
+ }), e.onValueChange?.(t), re(!1);
2354
2348
  }
2355
2349
  function ce(t) {
2356
2350
  let n = {
2357
2351
  from: t.from,
2358
2352
  to: t.to ?? null
2359
2353
  };
2360
- I || ee(n), sn(e) && e.onValueChange?.({
2354
+ L || R(n), cn(e) && e.onValueChange?.({
2361
2355
  from: t.from,
2362
2356
  to: t.to ?? void 0
2363
- }), B(t.from);
2357
+ }), V(t.from);
2364
2358
  }
2365
- function U(e) {
2366
- return !R.from || !R.to || !e.range.to ? !1 : q(R.from, e.range.from) && q(R.to, e.range.to);
2359
+ function W(e) {
2360
+ return !z.from || !z.to || !e.range.to ? !1 : he(z.from, e.range.from) && he(z.to, e.range.to);
2367
2361
  }
2368
- let W = R.from ? !C || !R.to ? Q(R.from, b) : `${Q(R.from, b)} - ${Q(R.to, b)}` : w;
2362
+ let G = z.from ? !C || !z.to ? Z(z.from, b) : `${Z(z.from, b)} - ${Z(z.to, b)}` : w;
2369
2363
  return /* @__PURE__ */ p("div", {
2370
- className: N(Ut, S),
2364
+ className: N(Gt, S),
2371
2365
  "data-fluid": l || void 0,
2372
2366
  "data-eds-component": "DatePicker",
2373
- "data-label-variant": j,
2367
+ "data-label-variant": M,
2374
2368
  children: [
2375
2369
  /* @__PURE__ */ f("div", {
2376
- className: Wt,
2370
+ className: Kt,
2377
2371
  children: /* @__PURE__ */ p("label", {
2378
- className: N(Gt, M && "sr-only", !M && "font-medium"),
2372
+ className: N(qt, P && "sr-only", !P && "font-medium"),
2379
2373
  htmlFor: E,
2380
2374
  children: [/* @__PURE__ */ f("span", { children: n }), c && /* @__PURE__ */ f("span", {
2381
2375
  className: "text-eds-red-main",
@@ -2384,19 +2378,19 @@ function cn(e) {
2384
2378
  })
2385
2379
  }),
2386
2380
  /* @__PURE__ */ p(D.Root, {
2387
- open: re,
2388
- onOpenChange: H,
2381
+ open: ne,
2382
+ onOpenChange: ae,
2389
2383
  children: [/* @__PURE__ */ p(D.Trigger, {
2390
2384
  id: E,
2391
2385
  disabled: s,
2392
- className: N("group relative inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white text-left", A.trigger, rn[u], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2386
+ className: N("group relative inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white text-left", A.trigger, an[u], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2393
2387
  "data-state": u,
2394
2388
  "data-size": d,
2395
2389
  "data-disabled": s || void 0,
2396
2390
  "aria-describedby": k ? `${E}-desc` : void 0,
2397
2391
  children: [
2398
- M && /* @__PURE__ */ p("span", {
2399
- className: Zt(A.left),
2392
+ P && /* @__PURE__ */ p("span", {
2393
+ className: en(A.left),
2400
2394
  children: [/* @__PURE__ */ f("span", { children: n }), c && /* @__PURE__ */ f("span", {
2401
2395
  className: "text-eds-red-main",
2402
2396
  "aria-hidden": "true",
@@ -2404,56 +2398,58 @@ function cn(e) {
2404
2398
  })]
2405
2399
  }),
2406
2400
  /* @__PURE__ */ f(t, {
2407
- className: N("shrink-0 text-eds-neutral-elements", A.icon),
2401
+ className: N("shrink-0 text-eds-neutral-elements", j),
2408
2402
  "aria-hidden": !0
2409
2403
  }),
2410
2404
  /* @__PURE__ */ f("span", {
2411
- className: N("min-w-0 flex-1 truncate font-inherit", A.text, R.from ? "text-eds-neutral-main" : "text-eds-neutral-elements"),
2412
- children: W
2405
+ className: N("min-w-0 flex-1 truncate font-inherit", A.text, z.from ? "text-eds-neutral-main" : "text-eds-neutral-elements"),
2406
+ children: G
2413
2407
  })
2414
2408
  ]
2415
2409
  }), /* @__PURE__ */ f(D.Portal, { children: /* @__PURE__ */ f(D.Positioner, {
2416
- className: "z-50 outline-none",
2410
+ className: Qt,
2411
+ style: $t,
2412
+ positionMethod: "fixed",
2417
2413
  sideOffset: 4,
2418
2414
  align: "start",
2419
2415
  children: /* @__PURE__ */ p(D.Popup, {
2420
2416
  "data-eds-component": "DatePicker",
2421
2417
  className: "flex overflow-hidden rounded-eds-xs border border-eds-outline-border bg-white shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)] transition-all data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
2422
- children: [ne && ne.length > 0 && /* @__PURE__ */ f("div", {
2418
+ children: [te && te.length > 0 && /* @__PURE__ */ f("div", {
2423
2419
  className: "flex w-40 shrink-0 flex-col gap-0.5 border-r border-eds-outline-border p-2 text-sm",
2424
- children: ne.map((e) => /* @__PURE__ */ f("button", {
2420
+ children: te.map((e) => /* @__PURE__ */ f("button", {
2425
2421
  type: "button",
2426
2422
  onClick: () => ce(e.range),
2427
- className: N("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"),
2423
+ className: N("rounded-md px-3 py-1.5 text-left whitespace-nowrap", W(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2428
2424
  children: e.label
2429
2425
  }, e.label))
2430
2426
  }), /* @__PURE__ */ f("div", {
2431
2427
  className: "flex",
2432
- children: V.map((e, t) => {
2433
- let n = t === 0, r = t === V.length - 1, o = on(e, _);
2428
+ children: U.map((e, t) => {
2429
+ let n = t === 0, r = t === U.length - 1, o = sn(e, _);
2434
2430
  return /* @__PURE__ */ p("div", {
2435
2431
  className: N("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
2436
2432
  children: [/* @__PURE__ */ p("div", {
2437
2433
  className: "flex items-center gap-2.5 p-4",
2438
2434
  children: [
2439
- n ? /* @__PURE__ */ f(ht, {
2435
+ n ? /* @__PURE__ */ f(gt, {
2440
2436
  icon: i,
2441
2437
  label: "Mês anterior",
2442
2438
  size: "sm",
2443
- onClick: () => B((e) => ct(e, 1))
2439
+ onClick: () => V((e) => lt(e, 1))
2444
2440
  }) : /* @__PURE__ */ f("span", {
2445
2441
  className: "size-8 shrink-0",
2446
2442
  "aria-hidden": !0
2447
2443
  }),
2448
2444
  /* @__PURE__ */ f("span", {
2449
2445
  className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
2450
- children: Q(e, "MMMM yyyy", { locale: pt })
2446
+ children: Z(e, "MMMM yyyy", { locale: mt })
2451
2447
  }),
2452
- r ? /* @__PURE__ */ f(ht, {
2448
+ r ? /* @__PURE__ */ f(gt, {
2453
2449
  icon: a,
2454
2450
  label: "Próximo mês",
2455
2451
  size: "sm",
2456
- onClick: () => B((e) => se(e, 1))
2452
+ onClick: () => V((e) => oe(e, 1))
2457
2453
  }) : /* @__PURE__ */ f("span", {
2458
2454
  className: "size-8 shrink-0",
2459
2455
  "aria-hidden": !0
@@ -2461,20 +2457,20 @@ function cn(e) {
2461
2457
  ]
2462
2458
  }), /* @__PURE__ */ p("div", {
2463
2459
  className: "grid grid-cols-7 px-4 pb-4",
2464
- children: [ae.map((e, t) => /* @__PURE__ */ f("span", {
2460
+ children: [H.map((e, t) => /* @__PURE__ */ f("span", {
2465
2461
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2466
2462
  children: e
2467
2463
  }, `${e}-${t}`)), o.map((t) => {
2468
- let n = ot(t, e), r = st(t), i = C && R.from ? q(t, R.from) : !1, a = C && R.to ? q(t, R.to) : !1, o = !!(C && R.from && R.to && !q(R.from, R.to)), s = o && R.from && R.to ? it(t, R.from) && at(t, R.to) : !1, c = C ? i || a : R.from ? q(t, R.from) : !1;
2464
+ let n = st(t, e), r = ct(t), i = C && z.from ? he(t, z.from) : !1, a = C && z.to ? he(t, z.to) : !1, o = !!(C && z.from && z.to && !he(z.from, z.to)), s = o && z.from && z.to ? at(t, z.from) && ot(t, z.to) : !1, c = C ? i || a : z.from ? he(t, z.from) : !1;
2469
2465
  return /* @__PURE__ */ f("div", {
2470
2466
  className: N("flex items-center justify-center py-0.5", o && (s || i || a) && "bg-eds-blue-main/10", o && i && "rounded-l-full", o && a && "rounded-r-full"),
2471
2467
  children: /* @__PURE__ */ f("button", {
2472
2468
  type: "button",
2473
- onClick: () => oe(t),
2469
+ onClick: () => se(t),
2474
2470
  "data-selected": c || void 0,
2475
2471
  "data-today": r || void 0,
2476
2472
  className: N("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", c ? "bg-eds-blue-main text-white" : n ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !c && r && "ring-1 ring-inset ring-eds-blue-main"),
2477
- children: Q(t, "d")
2473
+ children: Z(t, "d")
2478
2474
  })
2479
2475
  }, t.toISOString());
2480
2476
  })]
@@ -2496,7 +2492,7 @@ function cn(e) {
2496
2492
  }
2497
2493
  //#endregion
2498
2494
  //#region src/components/Dialog/Dialog.tsx
2499
- var ln = { size: {
2495
+ var un = { size: {
2500
2496
  sm: {
2501
2497
  classes: "sm:max-w-xs",
2502
2498
  description: "Small dialog for simple confirmations (288px)"
@@ -2513,18 +2509,22 @@ var ln = { size: {
2513
2509
  classes: "sm:max-w-3xl",
2514
2510
  description: "Extra large dialog for detailed views (768px)"
2515
2511
  }
2516
- } }, un = { size: "md" }, dn = m("dialog");
2512
+ } }, dn = { size: "md" }, fn = m("dialog");
2517
2513
  function $() {
2518
- return g(dn);
2514
+ return g(fn);
2519
2515
  }
2520
- function fn({ size: e = un.size } = {}) {
2521
- return N("fixed top-1/2 left-1/2 z-[60] grid w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-white p-4 text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", P(ln.size, e, un.size).classes);
2516
+ function pn({ size: e = dn.size } = {}) {
2517
+ return N(`fixed top-1/2 left-1/2 ${Q.overlay} grid w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-white p-4 text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`, P(un.size, e, dn.size).classes);
2522
2518
  }
2523
- function pn({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
2519
+ function mn({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
2524
2520
  let i = $(), a = i === "alertdialog" ? k.Portal : O.Portal, o = i === "alertdialog" ? k.Backdrop : O.Backdrop, s = i === "alertdialog" ? k.Popup : O.Popup, c = i === "alertdialog" ? k.Close : O.Close;
2525
- return /* @__PURE__ */ p(a, { children: [/* @__PURE__ */ f(o, { className: "fixed inset-0 z-[60] isolate bg-black/10 transition-opacity duration-100 supports-backdrop-filter:backdrop-blur-xs data-[ending-style]:opacity-0 data-[starting-style]:opacity-0" }), /* @__PURE__ */ p(s, {
2521
+ return /* @__PURE__ */ p(a, { children: [/* @__PURE__ */ f(o, {
2522
+ className: N("fixed inset-0 isolate bg-black/10 transition-opacity duration-100 supports-backdrop-filter:backdrop-blur-xs data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", Q.overlay),
2523
+ style: { zIndex: Q.overlayValue }
2524
+ }), /* @__PURE__ */ p(s, {
2526
2525
  "data-eds-component": "Dialog",
2527
- className: N(fn({ size: n }), e),
2526
+ className: N(pn({ size: n }), e),
2527
+ style: { zIndex: Q.overlayValue },
2528
2528
  children: [t, r ? /* @__PURE__ */ f(c, {
2529
2529
  "data-eds-component": "Dialog",
2530
2530
  "aria-label": "Fechar",
@@ -2536,10 +2536,10 @@ function pn({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
2536
2536
  }) : null]
2537
2537
  })] });
2538
2538
  }
2539
- function mn(e) {
2539
+ function hn(e) {
2540
2540
  if (e.role === "alertdialog") {
2541
2541
  let { children: t, role: n, ...r } = e;
2542
- return /* @__PURE__ */ f(dn.Provider, {
2542
+ return /* @__PURE__ */ f(fn.Provider, {
2543
2543
  value: n,
2544
2544
  children: /* @__PURE__ */ f(k.Root, {
2545
2545
  ...r,
@@ -2548,7 +2548,7 @@ function mn(e) {
2548
2548
  });
2549
2549
  }
2550
2550
  let { children: t, role: n = "dialog", ...r } = e;
2551
- return /* @__PURE__ */ f(dn.Provider, {
2551
+ return /* @__PURE__ */ f(fn.Provider, {
2552
2552
  value: n,
2553
2553
  children: /* @__PURE__ */ f(O.Root, {
2554
2554
  ...r,
@@ -2556,7 +2556,7 @@ function mn(e) {
2556
2556
  })
2557
2557
  });
2558
2558
  }
2559
- function hn({ children: e, ...t }) {
2559
+ function gn({ children: e, ...t }) {
2560
2560
  return $() === "alertdialog" ? /* @__PURE__ */ f(k.Trigger, {
2561
2561
  "data-eds-component": "Dialog",
2562
2562
  ...t,
@@ -2567,63 +2567,67 @@ function hn({ children: e, ...t }) {
2567
2567
  children: e
2568
2568
  });
2569
2569
  }
2570
- function gn({ className: e, ...t }) {
2570
+ function _n({ className: e, ...t }) {
2571
2571
  return /* @__PURE__ */ f("div", {
2572
2572
  "data-slot": "dialog-header",
2573
2573
  className: N("flex flex-col gap-2", e),
2574
2574
  ...t
2575
2575
  });
2576
2576
  }
2577
- function _n({ className: e, ...t }) {
2577
+ function vn({ className: e, ...t }) {
2578
2578
  return /* @__PURE__ */ f("div", {
2579
2579
  "data-slot": "dialog-footer",
2580
2580
  className: N("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-eds-outline-border bg-eds-neutral-background p-4 sm:flex-row sm:justify-end", e),
2581
2581
  ...t
2582
2582
  });
2583
2583
  }
2584
- function vn({ className: e, ...t }) {
2584
+ function yn({ className: e, ...t }) {
2585
2585
  return /* @__PURE__ */ f($() === "alertdialog" ? k.Title : O.Title, {
2586
2586
  className: N("text-base leading-none font-medium text-eds-neutral-main", e),
2587
2587
  ...t
2588
2588
  });
2589
2589
  }
2590
- function yn({ className: e, ...t }) {
2590
+ function bn({ className: e, ...t }) {
2591
2591
  return /* @__PURE__ */ f($() === "alertdialog" ? k.Description : O.Description, {
2592
2592
  className: N("text-sm text-eds-neutral-elements", e),
2593
2593
  ...t
2594
2594
  });
2595
2595
  }
2596
- function bn({ children: e, ...t }) {
2596
+ function xn({ children: e, ...t }) {
2597
2597
  return /* @__PURE__ */ f($() === "alertdialog" ? k.Close : O.Close, {
2598
2598
  "data-eds-component": "Dialog",
2599
2599
  ...t,
2600
2600
  children: e
2601
2601
  });
2602
2602
  }
2603
- mn.displayName = "Dialog.Root", hn.displayName = "Dialog.Trigger", gn.displayName = "Dialog.Header", _n.displayName = "Dialog.Footer", vn.displayName = "Dialog.Title", yn.displayName = "Dialog.Description", bn.displayName = "Dialog.Close";
2604
- var xn = Object.assign(pn, {
2605
- Root: mn,
2606
- Trigger: hn,
2607
- Header: gn,
2608
- Footer: _n,
2609
- Title: vn,
2610
- Description: yn,
2611
- Close: bn
2603
+ hn.displayName = "Dialog.Root", gn.displayName = "Dialog.Trigger", _n.displayName = "Dialog.Header", vn.displayName = "Dialog.Footer", yn.displayName = "Dialog.Title", bn.displayName = "Dialog.Description", xn.displayName = "Dialog.Close";
2604
+ var Sn = Object.assign(mn, {
2605
+ Root: hn,
2606
+ Trigger: gn,
2607
+ Header: _n,
2608
+ Footer: vn,
2609
+ Title: yn,
2610
+ Description: bn,
2611
+ Close: xn
2612
2612
  });
2613
2613
  //#endregion
2614
2614
  //#region src/components/FormDialog/FormDialog.tsx
2615
- function Sn({ size: e = "xl" } = {}) {
2616
- return N("fixed top-1/2 left-1/2 z-[60] flex w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", P(ln.size, e, un.size).classes);
2615
+ function Cn({ size: e = "xl" } = {}) {
2616
+ return N(`fixed top-1/2 left-1/2 ${Q.overlay} flex w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`, P(un.size, e, dn.size).classes);
2617
2617
  }
2618
- function Cn({ className: e, children: t, size: n = "xl" }) {
2618
+ function wn({ className: e, children: t, size: n = "xl" }) {
2619
2619
  let r = $(), i = r === "alertdialog" ? k.Portal : O.Portal, a = r === "alertdialog" ? k.Backdrop : O.Backdrop, o = r === "alertdialog" ? k.Popup : O.Popup;
2620
- return /* @__PURE__ */ p(i, { children: [/* @__PURE__ */ f(a, { className: "fixed inset-0 z-[60] isolate bg-black/10 transition-opacity duration-100 supports-backdrop-filter:backdrop-blur-xs data-[ending-style]:opacity-0 data-[starting-style]:opacity-0" }), /* @__PURE__ */ f(o, {
2620
+ return /* @__PURE__ */ p(i, { children: [/* @__PURE__ */ f(a, {
2621
+ className: N("fixed inset-0 isolate bg-black/10 transition-opacity duration-100 supports-backdrop-filter:backdrop-blur-xs data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", Q.overlay),
2622
+ style: { zIndex: Q.overlayValue }
2623
+ }), /* @__PURE__ */ f(o, {
2621
2624
  "data-eds-component": "FormDialog",
2622
- className: N(Sn({ size: n }), e),
2625
+ className: N(Cn({ size: n }), e),
2626
+ style: { zIndex: Q.overlayValue },
2623
2627
  children: t
2624
2628
  })] });
2625
2629
  }
2626
- function wn({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
2630
+ function Tn({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
2627
2631
  let s = $(), c = s === "alertdialog" ? k.Close : O.Close, u = s === "alertdialog" ? k.Title : O.Title, d = s === "alertdialog" ? k.Description : O.Description, m = n != null || r != null || t;
2628
2632
  return /* @__PURE__ */ p("div", {
2629
2633
  "data-slot": "form-dialog-header",
@@ -2668,43 +2672,43 @@ function wn({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i =
2668
2672
  ]
2669
2673
  });
2670
2674
  }
2671
- function Tn({ className: e, ...t }) {
2675
+ function En({ className: e, ...t }) {
2672
2676
  return /* @__PURE__ */ f("div", {
2673
2677
  "data-slot": "form-dialog-body",
2674
2678
  className: N("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
2675
2679
  ...t
2676
2680
  });
2677
2681
  }
2678
- function En({ className: e, ...t }) {
2682
+ function Dn({ className: e, ...t }) {
2679
2683
  return /* @__PURE__ */ f("div", {
2680
2684
  "data-slot": "form-dialog-footer",
2681
2685
  className: N("flex shrink-0 flex-col-reverse gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-5 py-4 sm:flex-row sm:justify-end", e),
2682
2686
  ...t
2683
2687
  });
2684
2688
  }
2685
- function Dn({ className: e, ...t }) {
2689
+ function On({ className: e, ...t }) {
2686
2690
  return /* @__PURE__ */ f($() === "alertdialog" ? k.Title : O.Title, {
2687
2691
  className: N("text-lg leading-tight font-semibold text-eds-blue-dark", e),
2688
2692
  ...t
2689
2693
  });
2690
2694
  }
2691
- function On({ className: e, ...t }) {
2695
+ function kn({ className: e, ...t }) {
2692
2696
  return /* @__PURE__ */ f($() === "alertdialog" ? k.Description : O.Description, {
2693
2697
  className: N("text-sm leading-snug text-eds-neutral-elements", e),
2694
2698
  ...t
2695
2699
  });
2696
2700
  }
2697
- wn.displayName = "FormDialog.Header", Tn.displayName = "FormDialog.Body", En.displayName = "FormDialog.Footer", Dn.displayName = "FormDialog.Title", On.displayName = "FormDialog.Description";
2698
- var kn = Object.assign(Cn, {
2699
- Root: mn,
2700
- Trigger: hn,
2701
- Close: bn,
2702
- Header: wn,
2703
- Body: Tn,
2704
- Footer: En,
2705
- Title: Dn,
2706
- Description: On
2707
- }), An = { size: {
2701
+ Tn.displayName = "FormDialog.Header", En.displayName = "FormDialog.Body", Dn.displayName = "FormDialog.Footer", On.displayName = "FormDialog.Title", kn.displayName = "FormDialog.Description";
2702
+ var An = Object.assign(wn, {
2703
+ Root: hn,
2704
+ Trigger: gn,
2705
+ Close: xn,
2706
+ Header: Tn,
2707
+ Body: En,
2708
+ Footer: Dn,
2709
+ Title: On,
2710
+ Description: kn
2711
+ }), jn = { size: {
2708
2712
  sm: {
2709
2713
  classes: "px-6 py-8 gap-3",
2710
2714
  description: "Compact empty state for smaller containers"
@@ -2717,11 +2721,11 @@ var kn = Object.assign(Cn, {
2717
2721
  classes: "px-12 py-20 gap-6",
2718
2722
  description: "Large empty state for prominent placement"
2719
2723
  }
2720
- } }, jn = { size: "md" };
2721
- function Mn({ icon: e, title: t, description: n, action: r, size: i = jn.size, titleLevel: a = "h2", className: o }) {
2724
+ } }, Mn = { size: "md" };
2725
+ function Nn({ icon: e, title: t, description: n, action: r, size: i = Mn.size, titleLevel: a = "h2", className: o }) {
2722
2726
  return /* @__PURE__ */ p("div", {
2723
2727
  "data-eds-component": "Empty",
2724
- className: N("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", P(An.size, i, jn.size).classes, o),
2728
+ className: N("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", P(jn.size, i, Mn.size).classes, o),
2725
2729
  children: [
2726
2730
  e && /* @__PURE__ */ f("div", {
2727
2731
  className: "text-eds-neutral-elements",
@@ -2742,56 +2746,40 @@ function Mn({ icon: e, title: t, description: n, action: r, size: i = jn.size, t
2742
2746
  }
2743
2747
  //#endregion
2744
2748
  //#region ../../node_modules/.pnpm/brazilian-values@0.13.1/node_modules/brazilian-values/dist/brazilian-values.mjs
2745
- var Nn = /\D/g, Pn = function(e) {
2746
- return e.replace(Nn, "");
2747
- }, Fn = function(e) {
2748
- return Pn(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
2749
+ var Pn = /\D/g, Fn = function(e) {
2750
+ return e.replace(Pn, "");
2749
2751
  }, In = function(e) {
2750
- return Pn(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");
2752
+ return Fn(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
2751
2753
  }, Ln = function(e) {
2752
- return Pn(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
2754
+ return Fn(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");
2753
2755
  }, Rn = function(e) {
2754
- return (e.match(/\d/g)?.length ?? 0) <= 11;
2756
+ return Fn(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
2755
2757
  }, zn = function(e) {
2756
- return Rn(e) ? Ln(e) : In(e);
2758
+ return (e.match(/\d/g)?.length ?? 0) <= 11;
2757
2759
  }, Bn = function(e) {
2758
- return Pn(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");
2759
- }, Vn = {
2760
- sm: {
2761
- control: "h-9 px-3",
2762
- text: "text-sm",
2763
- left: "left-3"
2764
- },
2765
- md: {
2766
- control: "h-10 px-3.5",
2767
- text: "text-base",
2768
- left: "left-3.5"
2769
- },
2770
- lg: {
2771
- control: "h-12 px-4",
2772
- text: "text-base",
2773
- left: "left-4"
2774
- }
2760
+ return zn(e) ? Rn(e) : Ln(e);
2761
+ }, Vn = function(e) {
2762
+ return Fn(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");
2775
2763
  }, Hn = {
2776
2764
  default: "",
2777
2765
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2778
2766
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
2779
2767
  loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
2780
2768
  };
2781
- function Un({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: c = !1, placeholder: l = "Digite algo...", errorMessage: u = "Campo obrigatório", fluid: d = !1, format: m, tooltip: h = null, linkText: g = null, linkUrl: _ = null, supportLink: y = null, supportLinkUrl: b = null, supportingText: S = "", lazy: C = !1, labelVariant: w, floatingLabel: T, disableAutocomplete: E = !1, isLoading: D = !1, loadingIconPosition: O = "end", icon: k, defaultValue: j, value: M, id: P, name: F, onBlur: I, onFocus: L, onKeyDown: ee, onClick: R, onChange: te, ...ne }) {
2782
- let re = v(), z = P ?? re, [ie, B] = x(() => j?.toString() ?? ""), ae = M !== void 0, V = (ae ? M : ie)?.toString() ?? "", H = y ?? g, oe = b ?? _, se = Ht(w, T), ce = se === "floating", U = (e) => {
2769
+ function Un({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: c = !1, placeholder: l = "Digite algo...", errorMessage: u = "Campo obrigatório", fluid: d = !1, format: m, tooltip: h = null, linkText: g = null, linkUrl: _ = null, supportLink: y = null, supportLinkUrl: b = null, supportingText: S = "", lazy: C = !1, labelVariant: w, floatingLabel: T, disableAutocomplete: E = !1, isLoading: D = !1, loadingIconPosition: O = "end", icon: k, defaultValue: j, value: M, id: P, name: F, onBlur: I, onFocus: L, onKeyDown: ee, onClick: R, onChange: z, ...B }) {
2770
+ let te = v(), ne = P ?? te, [re, ie] = x(() => j?.toString() ?? ""), V = M !== void 0, H = (V ? M : re)?.toString() ?? "", U = y ?? g, ae = b ?? _, oe = Ut(w, T), se = oe === "floating", ce = (e) => {
2783
2771
  switch (m) {
2784
- case "cep": return Fn(e);
2785
- case "cpf": return Ln(e);
2786
- case "cnpj": return In(e);
2787
- case "cpfOrCnpj": return zn(e);
2788
- case "phone": return Bn(e);
2772
+ case "cep": return In(e);
2773
+ case "cpf": return Rn(e);
2774
+ case "cnpj": return Ln(e);
2775
+ case "cpfOrCnpj": return Bn(e);
2776
+ case "phone": return Vn(e);
2789
2777
  default: return e;
2790
2778
  }
2791
2779
  }, W = (e, t) => {
2792
- let n = U(e);
2793
- ae || B(n), te?.(n, t);
2794
- }, G = r === "invalid", K = n || D, le = Vn[i], ue = D ? /* @__PURE__ */ f("span", {
2780
+ let n = ce(e);
2781
+ V || ie(n), z?.(n, t);
2782
+ }, G = r === "invalid", K = n || D, le = Wt[i], ue = D ? /* @__PURE__ */ f("span", {
2795
2783
  className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
2796
2784
  "data-position": O,
2797
2785
  "aria-hidden": !0,
@@ -2801,18 +2789,18 @@ function Un({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
2801
2789
  })
2802
2790
  }) : null;
2803
2791
  return /* @__PURE__ */ p("div", {
2804
- className: N(Ut, e),
2792
+ className: N(Gt, e),
2805
2793
  "data-fluid": d || void 0,
2806
2794
  "data-eds-component": "Input",
2807
- "data-label-variant": se,
2795
+ "data-label-variant": oe,
2808
2796
  children: [
2809
2797
  /* @__PURE__ */ p("div", {
2810
- className: Wt,
2798
+ className: Kt,
2811
2799
  children: [/* @__PURE__ */ p("div", {
2812
2800
  className: "inline-flex min-w-0 items-center gap-2",
2813
2801
  children: [/* @__PURE__ */ p("label", {
2814
- className: N(Gt, ce && "sr-only", !ce && "font-medium"),
2815
- htmlFor: z,
2802
+ className: N(qt, se && "sr-only", !se && "font-medium"),
2803
+ htmlFor: ne,
2816
2804
  children: [/* @__PURE__ */ f("span", { children: t }), c && /* @__PURE__ */ f("span", {
2817
2805
  className: "text-eds-red-main",
2818
2806
  children: "*"
@@ -2828,15 +2816,15 @@ function Un({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
2828
2816
  "aria-hidden": !0
2829
2817
  })
2830
2818
  })]
2831
- }), H && oe && /* @__PURE__ */ f("a", {
2819
+ }), U && ae && /* @__PURE__ */ f("a", {
2832
2820
  className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
2833
- href: oe,
2821
+ href: ae,
2834
2822
  "aria-disabled": K || void 0,
2835
2823
  tabIndex: K ? -1 : 0,
2836
2824
  onClick: (e) => {
2837
2825
  K && e.preventDefault();
2838
2826
  },
2839
- children: H
2827
+ children: U
2840
2828
  })]
2841
2829
  }),
2842
2830
  /* @__PURE__ */ p("div", {
@@ -2844,11 +2832,11 @@ function Un({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
2844
2832
  "data-disabled": K || void 0,
2845
2833
  "data-state": r,
2846
2834
  "data-size": i,
2847
- "data-floating": ce || void 0,
2848
- "data-has-value": V ? !0 : void 0,
2835
+ "data-floating": se || void 0,
2836
+ "data-has-value": H ? !0 : void 0,
2849
2837
  children: [
2850
- ce && /* @__PURE__ */ p("span", {
2851
- className: Zt(le.left),
2838
+ se && /* @__PURE__ */ p("span", {
2839
+ className: en(le.left),
2852
2840
  children: [/* @__PURE__ */ f("span", { children: t }), c && /* @__PURE__ */ f("span", {
2853
2841
  className: "text-eds-red-main",
2854
2842
  "aria-hidden": "true",
@@ -2862,20 +2850,20 @@ function Un({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
2862
2850
  }),
2863
2851
  O === "start" && ue,
2864
2852
  /* @__PURE__ */ f(A, {
2865
- ...ne,
2866
- id: z,
2853
+ ...B,
2854
+ id: ne,
2867
2855
  name: F,
2868
2856
  className: N("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none placeholder:text-eds-neutral-elements placeholder:opacity-100", le.text),
2869
2857
  disabled: K,
2870
2858
  type: a,
2871
2859
  required: c,
2872
2860
  placeholder: l,
2873
- autoComplete: E ? "off" : ne.autoComplete,
2861
+ autoComplete: E ? "off" : B.autoComplete,
2874
2862
  "aria-invalid": G || void 0,
2875
- "aria-describedby": G ? `${z}-desc` : void 0,
2863
+ "aria-describedby": G ? `${ne}-desc` : void 0,
2876
2864
  "aria-busy": D || void 0,
2877
- value: ae ? M : void 0,
2878
- defaultValue: ae ? void 0 : j,
2865
+ value: V ? M : void 0,
2866
+ defaultValue: V ? void 0 : j,
2879
2867
  onClick: R,
2880
2868
  onKeyDown: ee,
2881
2869
  onFocus: L,
@@ -2890,7 +2878,7 @@ function Un({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
2890
2878
  ]
2891
2879
  }),
2892
2880
  (G || S) && /* @__PURE__ */ f("div", {
2893
- id: `${z}-desc`,
2881
+ id: `${ne}-desc`,
2894
2882
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2895
2883
  "data-state": G ? "invalid" : r,
2896
2884
  children: G ? u : S
@@ -2899,43 +2887,121 @@ function Un({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
2899
2887
  });
2900
2888
  }
2901
2889
  //#endregion
2902
- //#region src/components/Select/Select.tsx
2890
+ //#region src/components/Textarea/Textarea.tsx
2903
2891
  var Wn = {
2904
- sm: {
2905
- trigger: "h-8 pr-2 pl-2.5",
2906
- text: "text-sm",
2907
- left: "left-2.5",
2908
- icon: "size-6"
2909
- },
2910
- md: {
2911
- trigger: "h-9 pr-2 pl-3",
2912
- text: "text-base",
2913
- left: "left-3",
2914
- icon: "size-7"
2915
- },
2916
- lg: {
2917
- trigger: "h-11 pr-2 pl-3.5",
2918
- text: "text-base",
2919
- left: "left-3.5",
2920
- icon: "size-8"
2921
- }
2892
+ default: "",
2893
+ valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2894
+ invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2922
2895
  }, Gn = {
2896
+ sm: "min-h-20",
2897
+ md: "min-h-24",
2898
+ lg: "min-h-32"
2899
+ };
2900
+ function Kn({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, tooltip: u = null, supportLink: d = null, supportLinkUrl: m = null, supportingText: h = "", labelVariant: g, floatingLabel: _, rows: y = 4, defaultValue: b, value: S, id: C, name: w, onBlur: T, onFocus: E, onKeyDown: D, onClick: O, onChange: k, ...A }) {
2901
+ let j = v(), M = C ?? j, [P, F] = x(() => b?.toString() ?? ""), I = S !== void 0, L = (I ? S : P)?.toString() ?? "", ee = Ut(g, _), R = ee === "floating", z = r === "invalid", B = Wt[i];
2902
+ return /* @__PURE__ */ p("div", {
2903
+ className: N(Gt, e),
2904
+ "data-fluid": l || void 0,
2905
+ "data-eds-component": "Textarea",
2906
+ "data-label-variant": ee,
2907
+ children: [
2908
+ /* @__PURE__ */ p("div", {
2909
+ className: Kt,
2910
+ children: [/* @__PURE__ */ p("div", {
2911
+ className: "inline-flex min-w-0 items-center gap-2",
2912
+ children: [/* @__PURE__ */ p("label", {
2913
+ className: N(qt, R && "sr-only", !R && "font-medium"),
2914
+ htmlFor: M,
2915
+ children: [/* @__PURE__ */ f("span", { children: t }), a && /* @__PURE__ */ f("span", {
2916
+ className: "text-eds-red-main",
2917
+ children: "*"
2918
+ })]
2919
+ }), u && /* @__PURE__ */ f("button", {
2920
+ type: "button",
2921
+ 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",
2922
+ "aria-label": u,
2923
+ title: u,
2924
+ disabled: n,
2925
+ children: /* @__PURE__ */ f(o, {
2926
+ size: 16,
2927
+ "aria-hidden": !0
2928
+ })
2929
+ })]
2930
+ }), d && m && /* @__PURE__ */ f("a", {
2931
+ className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
2932
+ href: m,
2933
+ "aria-disabled": n || void 0,
2934
+ tabIndex: n ? -1 : 0,
2935
+ onClick: (e) => {
2936
+ n && e.preventDefault();
2937
+ },
2938
+ children: d
2939
+ })]
2940
+ }),
2941
+ /* @__PURE__ */ p("div", {
2942
+ className: N("group relative w-full rounded-eds-xs border border-eds-outline-border bg-white", B.paddingX, "py-2.5", Gn[i], Wn[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"),
2943
+ "data-disabled": n || void 0,
2944
+ "data-state": r,
2945
+ "data-size": i,
2946
+ "data-floating": R || void 0,
2947
+ "data-has-value": L ? !0 : void 0,
2948
+ children: [R && /* @__PURE__ */ p("span", {
2949
+ className: en(B.left),
2950
+ children: [/* @__PURE__ */ f("span", { children: t }), a && /* @__PURE__ */ f("span", {
2951
+ className: "text-eds-red-main",
2952
+ "aria-hidden": "true",
2953
+ children: "*"
2954
+ })]
2955
+ }), /* @__PURE__ */ f("textarea", {
2956
+ ...A,
2957
+ id: M,
2958
+ name: w,
2959
+ rows: y,
2960
+ className: N("box-border min-h-[inherit] w-full resize-y border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none placeholder:text-eds-neutral-elements placeholder:opacity-100", B.text),
2961
+ disabled: n,
2962
+ required: a,
2963
+ placeholder: s,
2964
+ "aria-invalid": z || void 0,
2965
+ "aria-describedby": z ? `${M}-desc` : void 0,
2966
+ value: I ? S : void 0,
2967
+ defaultValue: I ? void 0 : b,
2968
+ onClick: O,
2969
+ onKeyDown: D,
2970
+ onFocus: E,
2971
+ onBlur: T,
2972
+ onChange: (e) => {
2973
+ I || F(e.target.value), k?.(e.target.value, e);
2974
+ }
2975
+ })]
2976
+ }),
2977
+ (z || h) && /* @__PURE__ */ f("div", {
2978
+ id: `${M}-desc`,
2979
+ className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
2980
+ "data-state": z ? "invalid" : r,
2981
+ children: z ? c : h
2982
+ })
2983
+ ]
2984
+ });
2985
+ }
2986
+ //#endregion
2987
+ //#region src/components/Select/Select.tsx
2988
+ var qn = {
2923
2989
  default: "",
2924
2990
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
2925
2991
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
2926
2992
  };
2927
- function Kn({ label: e = "Label", labelVariant: t, floatingLabel: i, items: a, placeholder: o = "Selecione uma opção", disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: m = "", errorMessage: h = "Selecione uma opção válida", id: g, name: _, value: y = void 0, defaultValue: b = void 0, onValueChange: x = void 0, renderItem: S = void 0, className: C }) {
2928
- let w = v(), T = g ?? w, E = u === "invalid", D = E || m, O = Wn[d], k = Ht(t, i), A = k === "floating";
2993
+ function Jn({ label: e = "Label", labelVariant: t, floatingLabel: i, items: a, placeholder: o = "Selecione uma opção", disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: m = "", errorMessage: h = "Selecione uma opção válida", id: g, name: _, value: y = void 0, defaultValue: b = void 0, onValueChange: x = void 0, renderItem: S = void 0, className: C }) {
2994
+ let w = v(), T = g ?? w, E = u === "invalid", D = E || m, O = Wt[d], k = Ut(t, i), A = k === "floating";
2929
2995
  return /* @__PURE__ */ p("div", {
2930
- className: N(Ut, C),
2996
+ className: N(Gt, C),
2931
2997
  "data-fluid": l || void 0,
2932
2998
  "data-eds-component": "Select",
2933
2999
  "data-label-variant": k,
2934
3000
  children: [
2935
3001
  /* @__PURE__ */ f("div", {
2936
- className: Wt,
3002
+ className: Kt,
2937
3003
  children: /* @__PURE__ */ p("label", {
2938
- className: N(Gt, A && "sr-only", !A && "font-medium"),
3004
+ className: N(qt, A && "sr-only", !A && "font-medium"),
2939
3005
  htmlFor: T,
2940
3006
  children: [/* @__PURE__ */ f("span", { children: e }), c && /* @__PURE__ */ f("span", {
2941
3007
  className: "text-eds-red-main",
@@ -2952,14 +3018,14 @@ function Kn({ label: e = "Label", labelVariant: t, floatingLabel: i, items: a, p
2952
3018
  defaultValue: b,
2953
3019
  value: y,
2954
3020
  children: [/* @__PURE__ */ p(j.Trigger, {
2955
- className: N("group relative inline-flex w-full cursor-pointer items-center gap-1 rounded-eds-xs border border-eds-outline-border bg-white", O.trigger, Gn[u], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3021
+ className: N("group relative inline-flex w-full cursor-pointer items-center gap-1 rounded-eds-xs border border-eds-outline-border bg-white", O.trigger, qn[u], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
2956
3022
  "data-state": u,
2957
3023
  "data-size": d,
2958
3024
  "data-disabled": s || void 0,
2959
3025
  "aria-describedby": D ? `${T}-desc` : void 0,
2960
3026
  children: [
2961
3027
  A && /* @__PURE__ */ p("span", {
2962
- className: Zt(O.left),
3028
+ className: en(O.left),
2963
3029
  children: [/* @__PURE__ */ f("span", { children: e }), c && /* @__PURE__ */ f("span", {
2964
3030
  className: "text-eds-red-main",
2965
3031
  "aria-hidden": "true",
@@ -2980,17 +3046,19 @@ function Kn({ label: e = "Label", labelVariant: t, floatingLabel: i, items: a, p
2980
3046
  })
2981
3047
  ]
2982
3048
  }), /* @__PURE__ */ f(j.Portal, { children: /* @__PURE__ */ f(j.Positioner, {
2983
- className: Xt,
3049
+ className: Qt,
3050
+ style: $t,
3051
+ positionMethod: "fixed",
2984
3052
  sideOffset: 4,
2985
3053
  children: /* @__PURE__ */ f(j.Popup, {
2986
- className: Kt,
3054
+ className: Jt,
2987
3055
  children: /* @__PURE__ */ f(j.List, {
2988
- className: qt,
3056
+ className: Yt,
2989
3057
  children: a.map((e) => /* @__PURE__ */ p(j.Item, {
2990
3058
  value: e,
2991
- className: Jt,
3059
+ className: Xt,
2992
3060
  children: [/* @__PURE__ */ f(j.ItemIndicator, {
2993
- className: Yt,
3061
+ className: Zt,
2994
3062
  children: /* @__PURE__ */ f(n, {
2995
3063
  size: 14,
2996
3064
  "aria-hidden": !0
@@ -3015,7 +3083,7 @@ function Kn({ label: e = "Label", labelVariant: t, floatingLabel: i, items: a, p
3015
3083
  }
3016
3084
  //#endregion
3017
3085
  //#region src/components/Text/Text.tsx
3018
- var qn = {
3086
+ var Yn = {
3019
3087
  variant: {
3020
3088
  heading1: {
3021
3089
  classes: "text-3xl font-semibold",
@@ -3072,20 +3140,20 @@ var qn = {
3072
3140
  description: "Large text"
3073
3141
  }
3074
3142
  }
3075
- }, Jn = {
3143
+ }, Xn = {
3076
3144
  variant: "body",
3077
3145
  size: "md"
3078
- }, Yn = /* @__PURE__ */ new Set([
3146
+ }, Zn = /* @__PURE__ */ new Set([
3079
3147
  "heading1",
3080
3148
  "heading2",
3081
3149
  "heading3"
3082
- ]), Xn = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3083
- function Zn({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3084
- let l = Xn.has(e), u = Yn.has(e), d = y(() => o || (l || u ? "span" : "p"), [
3150
+ ]), Qn = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3151
+ function $n({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3152
+ let l = Qn.has(e), u = Zn.has(e), d = y(() => o || (l || u ? "span" : "p"), [
3085
3153
  o,
3086
3154
  l,
3087
3155
  u
3088
- ]), p = P(qn.variant, e, Jn.variant), m = P(qn.size, n ?? "md", Jn.size);
3156
+ ]), p = P(Yn.variant, e, Xn.variant), m = P(Yn.size, n ?? "md", Xn.size);
3089
3157
  return /* @__PURE__ */ f(d, {
3090
3158
  ref: c,
3091
3159
  "data-eds-component": "Text",
@@ -3094,7 +3162,7 @@ function Zn({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !
3094
3162
  children: i
3095
3163
  });
3096
3164
  }
3097
- var Qn = h(Zn), $n = {
3165
+ var er = h($n), tr = {
3098
3166
  layout: {
3099
3167
  auto: {
3100
3168
  classes: "",
@@ -3125,14 +3193,14 @@ var Qn = h(Zn), $n = {
3125
3193
  description: "Pin column to the right edge of the scroll container"
3126
3194
  }
3127
3195
  }
3128
- }, er = (e, t) => {
3129
- let n = P($n.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";
3196
+ }, nr = (e, t) => {
3197
+ let n = P(tr.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";
3130
3198
  return t === "cell" ? N(n, r, "bg-white", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white" : "before:bg-gradient-to-l before:from-transparent before:to-white") : N(n, r, "bg-white group-data-[compact]/header:bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white group-data-[compact]/header:before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-white group-data-[compact]/header:before:to-eds-neutral-background");
3131
- }, tr = {
3199
+ }, rr = {
3132
3200
  layout: "auto",
3133
3201
  variant: "default"
3134
- }, nr = h(({ layout: e = "auto", className: t, containerClassName: n, ...r }, i) => {
3135
- let a = N("isolate w-full", P($n.layout, e, tr.layout).classes, "[&_td]:border-b [&_td]:border-eds-neutral-disabled [&_tr:last-child_td]:border-b-0", "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-base", "[&_th]:bg-white", "text-base text-left text-eds-neutral-main", t);
3202
+ }, ir = h(({ layout: e = "auto", className: t, containerClassName: n, ...r }, i) => {
3203
+ let a = N("isolate w-full", P(tr.layout, e, rr.layout).classes, "[&_td]:border-b [&_td]:border-eds-neutral-disabled [&_tr:last-child_td]:border-b-0", "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-base", "[&_th]:bg-white", "text-base text-left text-eds-neutral-main", t);
3136
3204
  return /* @__PURE__ */ f("div", {
3137
3205
  className: N("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", n),
3138
3206
  children: /* @__PURE__ */ f("table", {
@@ -3142,7 +3210,7 @@ var Qn = h(Zn), $n = {
3142
3210
  className: a
3143
3211
  })
3144
3212
  });
3145
- }), rr = h(({ variant: e = "default", sticky: t, ...n }, r) => {
3213
+ }), ar = h(({ variant: e = "default", sticky: t, ...n }, r) => {
3146
3214
  let i = e === "compact", a = N("group/header", i && "[&_th]:bg-eds-neutral-background [&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
3147
3215
  return /* @__PURE__ */ f("thead", {
3148
3216
  ref: r,
@@ -3150,45 +3218,45 @@ var Qn = h(Zn), $n = {
3150
3218
  className: a,
3151
3219
  ...i && { "data-compact": "" }
3152
3220
  });
3153
- }), ir = h(({ sticky: e, ...t }, n) => {
3154
- let r = N("group relative", e && er(e, "head"), t.className);
3221
+ }), or = h(({ sticky: e, ...t }, n) => {
3222
+ let r = N("group relative", e && nr(e, "head"), t.className);
3155
3223
  return /* @__PURE__ */ f("th", {
3156
3224
  ref: n,
3157
3225
  ...t,
3158
3226
  className: r
3159
3227
  });
3160
- }), ar = h(({ variant: e = tr.variant, ...t }, n) => {
3161
- let r = N(P($n.variant, e, tr.variant).classes, t.className);
3228
+ }), sr = h(({ variant: e = rr.variant, ...t }, n) => {
3229
+ let r = N(P(tr.variant, e, rr.variant).classes, t.className);
3162
3230
  return /* @__PURE__ */ f("tr", {
3163
3231
  ref: n,
3164
3232
  ...t,
3165
3233
  className: r
3166
3234
  });
3167
- }), or = h((e, t) => /* @__PURE__ */ f("tbody", {
3235
+ }), cr = h((e, t) => /* @__PURE__ */ f("tbody", {
3168
3236
  ref: t,
3169
3237
  ...e
3170
- })), sr = h(({ sticky: e, ...t }, n) => {
3171
- let r = N(e && er(e, "cell"), t.className);
3238
+ })), lr = h(({ sticky: e, ...t }, n) => {
3239
+ let r = N(e && nr(e, "cell"), t.className);
3172
3240
  return /* @__PURE__ */ f("td", {
3173
3241
  ref: n,
3174
3242
  ...t,
3175
3243
  className: r
3176
3244
  });
3177
- }), cr = h((e, t) => /* @__PURE__ */ f("tfoot", {
3245
+ }), ur = h((e, t) => /* @__PURE__ */ f("tfoot", {
3178
3246
  ref: t,
3179
3247
  ...e
3180
- })), lr = h((e, t) => /* @__PURE__ */ f("button", {
3248
+ })), dr = h((e, t) => /* @__PURE__ */ f("button", {
3181
3249
  ref: t,
3182
3250
  ...e,
3183
3251
  type: "button",
3184
3252
  "aria-label": "Redimensionar coluna",
3185
3253
  className: N("opacity-0 h-full group-hover:opacity-100 focus-visible:opacity-100", "w-[10px]", "flex items-center justify-center", "cursor-col-resize touch-none select-none", "absolute top-0 right-0", "m-0 bg-white p-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", e.className),
3186
3254
  children: /* @__PURE__ */ f("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
3187
- })), ur = h(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ f(sr, {
3255
+ })), fr = h(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ f(lr, {
3188
3256
  ref: o,
3189
3257
  ...a,
3190
3258
  className: N("w-10 leading-none", a.className),
3191
- children: /* @__PURE__ */ f(Vt, {
3259
+ children: /* @__PURE__ */ f(Ht, {
3192
3260
  checked: e,
3193
3261
  indeterminate: t,
3194
3262
  onCheckedChange: n,
@@ -3196,11 +3264,11 @@ var Qn = h(Zn), $n = {
3196
3264
  disabled: i,
3197
3265
  className: "relative before:absolute before:-inset-3 before:content-['']"
3198
3266
  })
3199
- })), dr = h(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ f(ir, {
3267
+ })), pr = h(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ f(or, {
3200
3268
  ref: o,
3201
3269
  ...a,
3202
3270
  className: N("w-10 leading-none", a.className),
3203
- children: /* @__PURE__ */ f(Vt, {
3271
+ children: /* @__PURE__ */ f(Ht, {
3204
3272
  checked: e,
3205
3273
  indeterminate: t,
3206
3274
  onCheckedChange: n,
@@ -3209,23 +3277,23 @@ var Qn = h(Zn), $n = {
3209
3277
  className: "relative before:absolute before:-inset-3 before:content-['']"
3210
3278
  })
3211
3279
  }));
3212
- nr.displayName = "Table", or.displayName = "Table.Body", ir.displayName = "Table.Head", ar.displayName = "Table.Row", sr.displayName = "Table.Cell", cr.displayName = "Table.Footer", rr.displayName = "Table.Header", lr.displayName = "Table.ResizeHandle", ur.displayName = "Table.CheckCell", dr.displayName = "Table.CheckHead";
3213
- var fr = Object.assign(nr, {
3214
- Header: rr,
3215
- Head: ir,
3216
- Row: ar,
3217
- Body: or,
3218
- Cell: sr,
3219
- CheckCell: ur,
3220
- CheckHead: dr,
3221
- Footer: cr,
3222
- ResizeHandle: lr
3223
- }), pr = {
3280
+ ir.displayName = "Table", cr.displayName = "Table.Body", or.displayName = "Table.Head", sr.displayName = "Table.Row", lr.displayName = "Table.Cell", ur.displayName = "Table.Footer", ar.displayName = "Table.Header", dr.displayName = "Table.ResizeHandle", fr.displayName = "Table.CheckCell", pr.displayName = "Table.CheckHead";
3281
+ var mr = Object.assign(ir, {
3282
+ Header: ar,
3283
+ Head: or,
3284
+ Row: sr,
3285
+ Body: cr,
3286
+ Cell: lr,
3287
+ CheckCell: fr,
3288
+ CheckHead: pr,
3289
+ Footer: ur,
3290
+ ResizeHandle: dr
3291
+ }), hr = {
3224
3292
  variant: "segmented",
3225
3293
  size: "md"
3226
3294
  };
3227
- function mr({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = pr.variant, size: l = pr.size }) {
3228
- let u = e ?? [], d = c === "segmented", m = c === "underline", h = l === "sm", { ref: g, isOverflowing: _ } = gr(d), v = hr(g, _);
3295
+ function gr({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = hr.variant, size: l = hr.size }) {
3296
+ let u = e ?? [], d = c === "segmented", m = c === "underline", h = l === "sm", { ref: g, isOverflowing: _ } = vr(d), v = _r(g, _);
3229
3297
  if (u.length === 0) return null;
3230
3298
  let y = u[0]?.value, b = t !== void 0, x = {
3231
3299
  value: b ? t : void 0,
@@ -3263,7 +3331,7 @@ function mr({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
3263
3331
  })]
3264
3332
  });
3265
3333
  }
3266
- function hr(e, t) {
3334
+ function _r(e, t) {
3267
3335
  let n = b(null), r = b(!1);
3268
3336
  return () => ({
3269
3337
  onPointerDownCapture: (i) => {
@@ -3300,7 +3368,7 @@ function hr(e, t) {
3300
3368
  }
3301
3369
  });
3302
3370
  }
3303
- function gr(e) {
3371
+ function vr(e) {
3304
3372
  let t = b(null), [n, r] = x(!1);
3305
3373
  return _(() => {
3306
3374
  if (!e) return;
@@ -3314,4 +3382,4 @@ function gr(e) {
3314
3382
  };
3315
3383
  }
3316
3384
  //#endregion
3317
- export { Rt as Attachment, Ft as AttachmentAction, Pt as AttachmentActions, jt as AttachmentContent, Nt as AttachmentDescription, Lt as AttachmentGroup, At as AttachmentMedia, Mt as AttachmentTitle, It as AttachmentTrigger, te as Button, ne as COLORS, vt as Calendar, Et as Card, Vt as Checkbox, tn as Combobox, cn as DatePicker, xn as Dialog, Mn as Empty, kn as FormDialog, ht as IconButton, Un as Input, Kn as Select, fr as Table, mr as Tabs, Qn as Text };
3385
+ export { zt as Attachment, It as AttachmentAction, Ft as AttachmentActions, Mt as AttachmentContent, Pt as AttachmentDescription, Rt as AttachmentGroup, jt as AttachmentMedia, Nt as AttachmentTitle, Lt as AttachmentTrigger, z as Button, B as COLORS, yt as Calendar, Dt as Card, Ht as Checkbox, rn as Combobox, ln as DatePicker, Sn as Dialog, Nn as Empty, An as FormDialog, gt as IconButton, Un as Input, Jn as Select, mr as Table, gr as Tabs, er as Text, Kn as Textarea };