@versini/sassysaint 5.3.9 → 5.3.10

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.
@@ -1,26 +1,56 @@
1
- import z, { useSyncExternalStore as Ne, useCallback as O, useEffect as R, useContext as $, useRef as f, useState as I, useLayoutEffect as V, useMemo as le, useId as Se, useReducer as Ce } from "react";
2
- import i from "clsx";
3
- import { jsx as c, jsxs as w, Fragment as Ae } from "react/jsx-runtime";
4
- function ie(e, r) {
1
+ import { jsxs as x, jsx as c, Fragment as Ne } from "react/jsx-runtime";
2
+ import { g as Se } from "./index.BduqxN2L.js";
3
+ import z, { useSyncExternalStore as Ce, useCallback as O, useEffect as $, useContext as R, useRef as f, useState as I, useLayoutEffect as M, useMemo as ie, useId as Ae, useReducer as Ie } from "react";
4
+ import l from "clsx";
5
+ const It = ({
6
+ className: e,
7
+ viewBox: r,
8
+ spacing: t,
9
+ title: a,
10
+ monotone: o,
11
+ ...n
12
+ }) => /* @__PURE__ */ x(
13
+ Se,
14
+ {
15
+ defaultViewBox: "0 0 512 512",
16
+ defaultClassName: "size-5",
17
+ viewBox: r,
18
+ className: e,
19
+ spacing: t,
20
+ title: a || "Edit",
21
+ ...n,
22
+ children: [
23
+ /* @__PURE__ */ c(
24
+ "path",
25
+ {
26
+ opacity: o ? "1" : "0.4",
27
+ d: "M0 160c0-53 43-96 96-96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32 14.3-32 32V416c0 17.7 14.3 32 32 32H352c17.7 0 32-14.3 32-32V320c0-17.7 14.3-32 32-32s32 14.3 32 32v96c0 53-43 96-96 96H96c-53 0-96-43-96-96V160z"
28
+ }
29
+ ),
30
+ /* @__PURE__ */ c("path", { d: "M392.4 21.7L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0zM339.7 74.3L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3z" })
31
+ ]
32
+ }
33
+ );
34
+ function le(e, r) {
5
35
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: r }));
6
36
  }
7
37
  const re = (e, r) => {
8
38
  const t = JSON.stringify(
9
39
  typeof r == "function" ? r() : r
10
40
  );
11
- window.localStorage.setItem(e, t), ie(e, t);
12
- }, Ie = (e) => {
13
- window.localStorage.removeItem(e), ie(e, null);
41
+ window.localStorage.setItem(e, t), le(e, t);
42
+ }, $e = (e) => {
43
+ window.localStorage.removeItem(e), le(e, null);
14
44
  }, ae = (e) => window.localStorage.getItem(e), Re = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
15
- function Ct({
45
+ function $t({
16
46
  key: e,
17
47
  initialValue: r
18
48
  }) {
19
- const t = Ne(Re, () => ae(e)), a = O(
20
- (l) => {
49
+ const t = Ce(Re, () => ae(e)), a = O(
50
+ (i) => {
21
51
  try {
22
- const s = typeof l == "function" ? l(JSON.parse(t)) : l;
23
- s == null ? Ie(e) : re(e, s);
52
+ const s = typeof i == "function" ? i(JSON.parse(t)) : i;
53
+ s == null ? $e(e) : re(e, s);
24
54
  } catch (s) {
25
55
  console.warn(s);
26
56
  }
@@ -31,11 +61,11 @@ function Ct({
31
61
  }, [r, a]), n = O(() => {
32
62
  a(null);
33
63
  }, [a]);
34
- return R(() => {
64
+ return $(() => {
35
65
  try {
36
66
  ae(e) === null && typeof r < "u" && re(e, r);
37
- } catch (l) {
38
- console.warn(l);
67
+ } catch (i) {
68
+ console.warn(i);
39
69
  }
40
70
  }, [e, r]), [t ? JSON.parse(t) : null, a, o, n];
41
71
  }
@@ -121,7 +151,7 @@ const _ = {
121
151
  engine: $engine,
122
152
  tags: $tags)
123
153
  }`
124
- }, At = {
154
+ }, Rt = {
125
155
  GET_LOCATION: {
126
156
  schema: _.GET_LOCATION,
127
157
  method: "location"
@@ -154,7 +184,7 @@ const _ = {
154
184
  schema: _.SET_USER_PREFERENCES,
155
185
  method: "setUserPreferences"
156
186
  }
157
- }, se = process.env.PUBLIC_SASSY_API_SERVER_URL, $e = async ({
187
+ }, se = process.env.PUBLIC_SASSY_API_SERVER_URL, Be = async ({
158
188
  query: e,
159
189
  data: r,
160
190
  headers: t = {}
@@ -170,14 +200,14 @@ const _ = {
170
200
  query: e,
171
201
  variables: r
172
202
  })
173
- }), It = async ({
203
+ }), Bt = async ({
174
204
  accessToken: e,
175
205
  type: r,
176
206
  params: t = {}
177
207
  }) => {
178
208
  const a = r != null && r.data ? r.data(t) : t;
179
209
  try {
180
- const o = `Bearer ${e}`, n = await $e({
210
+ const o = `Bearer ${e}`, n = await Be({
181
211
  headers: {
182
212
  authorization: o
183
213
  },
@@ -186,16 +216,16 @@ const _ = {
186
216
  });
187
217
  if (n.status !== 200)
188
218
  return { status: n.status, data: [] };
189
- const { data: l, errors: s } = await n.json();
219
+ const { data: i, errors: s } = await n.json();
190
220
  return {
191
221
  status: n.status,
192
- data: l[r.method],
222
+ data: i[r.method],
193
223
  errors: s
194
224
  };
195
225
  } catch (o) {
196
226
  return console.error(o), { status: 500, data: [] };
197
227
  }
198
- }, Rt = async ({
228
+ }, Ht = async ({
199
229
  accessToken: e,
200
230
  name: r,
201
231
  data: t,
@@ -225,7 +255,7 @@ try {
225
255
  });
226
256
  } catch {
227
257
  }
228
- const Be = (e) => {
258
+ const He = (e) => {
229
259
  let r = "";
230
260
  if (typeof e == "number" || typeof e == "string")
231
261
  r = "m-" + e;
@@ -234,10 +264,10 @@ const Be = (e) => {
234
264
  (e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), r = t.join(" ");
235
265
  }
236
266
  return r;
237
- }, P = "thead", Y = "tfoot", T = "tbody", M = {
267
+ }, P = "thead", Y = "tfoot", T = "tbody", U = {
238
268
  ASC: "asc",
239
269
  DESC: "desc"
240
- }, He = ({
270
+ }, Le = ({
241
271
  mode: e,
242
272
  className: r,
243
273
  wrapperClassName: t,
@@ -245,9 +275,9 @@ const Be = (e) => {
245
275
  stickyFooter: o,
246
276
  spacing: n
247
277
  }) => ({
248
- wrapper: i(
278
+ wrapper: l(
249
279
  "not-prose relative w-full rounded-lg shadow-md",
250
- Be(n),
280
+ He(n),
251
281
  {
252
282
  "overflow-x-auto": !a && !o,
253
283
  "overflow-y-scroll": a || o,
@@ -258,48 +288,48 @@ const Be = (e) => {
258
288
  },
259
289
  t
260
290
  ),
261
- table: i("my-0 w-full text-left text-sm", r, {
291
+ table: l("my-0 w-full text-left text-sm", r, {
262
292
  "text-copy-light": e === "dark",
263
293
  "text-copy-dark": e === "light",
264
294
  "text-copy-light dark:text-copy-dark": e === "system",
265
295
  "text-copy-dark dark:text-copy-light": e === "alt-system"
266
296
  }),
267
- caption: i("py-2 text-sm font-bold", {
297
+ caption: l("py-2 text-sm font-bold", {
268
298
  "text-copy-light": e === "dark",
269
299
  "text-copy-dark": e === "light",
270
300
  "text-copy-light dark:text-copy-dark": e === "system",
271
301
  "text-copy-dark dark:text-copy-light": e === "alt-system"
272
302
  })
273
- }), Le = ({
303
+ }), Ve = ({
274
304
  className: e,
275
305
  stickyHeader: r,
276
306
  mode: t
277
- }) => i(e, {
307
+ }) => l(e, {
278
308
  "sticky top-0 z-10": r,
279
309
  "shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": r && t === "dark",
280
310
  "shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "system",
281
311
  "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "light",
282
312
  "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": r && t === "alt-system"
283
- }), Ue = ({
313
+ }), Me = ({
284
314
  className: e,
285
315
  stickyFooter: r,
286
316
  mode: t
287
- }) => i(e, {
317
+ }) => l(e, {
288
318
  "sticky bottom-0 z-10": r,
289
319
  "shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": r && t === "dark",
290
320
  "shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "system",
291
321
  "shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "light",
292
322
  "shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": r && t === "alt-system"
293
- }), Ve = ({
323
+ }), Ue = ({
294
324
  mode: e,
295
325
  className: r,
296
326
  cellWrapper: t
297
- }) => t === P || t === Y ? i({
327
+ }) => t === P || t === Y ? l({
298
328
  "bg-table-head-dark": e === "dark",
299
329
  "bg-table-head-light": e === "light",
300
330
  "bg-table-head-dark dark:bg-table-head-light": e === "system",
301
331
  "bg-table-head-light dark:bg-table-head-dark": e === "alt-system"
302
- }) : i("border-b last:border-0", r, {
332
+ }) : l("border-b last:border-0", r, {
303
333
  "border-table-dark": e === "dark",
304
334
  "odd:bg-table-dark-odd even:bg-table-dark-even": t === T && e === "dark",
305
335
  "border-table-light": e === "light",
@@ -308,12 +338,12 @@ const Be = (e) => {
308
338
  "odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === T && e === "system",
309
339
  "border-table-light dark:border-table-dark": e === "alt-system",
310
340
  "odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === T && e === "alt-system"
311
- }), Me = ({
341
+ }), Oe = ({
312
342
  cellWrapper: e,
313
343
  className: r,
314
344
  compact: t,
315
345
  mode: a
316
- }) => i(r, {
346
+ }) => l(r, {
317
347
  "text-copy-light": a === "dark",
318
348
  "text-copy-dark": a === "light",
319
349
  "text-copy-light dark:text-copy-dark": a === "system",
@@ -321,9 +351,9 @@ const Be = (e) => {
321
351
  "px-4 py-3": !t && (e === P || e === Y),
322
352
  "p-4": !t && e === T,
323
353
  "px-4 py-1": t
324
- }), Oe = ({
354
+ }), ze = ({
325
355
  buttonClassName: e
326
- }) => i("rounded-none text-sm", e), oe = "av-button", ze = (e) => {
356
+ }) => l("rounded-none text-sm", e), oe = "av-button", Pe = (e) => {
327
357
  let r = "";
328
358
  if (typeof e == "number" || typeof e == "string")
329
359
  r = "m-" + e;
@@ -332,29 +362,29 @@ const Be = (e) => {
332
362
  (e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), r = t.join(" ");
333
363
  }
334
364
  return r;
335
- }, ce = "icon", Pe = "button", Fe = "link", Ge = ({
365
+ }, ce = "icon", Fe = "button", Ge = "link", De = ({
336
366
  type: e,
337
367
  size: r,
338
368
  labelRight: t,
339
369
  labelLeft: a,
340
370
  align: o
341
371
  }) => {
342
- const n = "text-sm font-medium max-h-8 py-0", l = "text-base font-medium max-h-9 py-1", s = "text-lg font-medium max-h-12 py-2";
372
+ const n = "text-sm font-medium max-h-8 py-0", i = "text-base font-medium max-h-9 py-1", s = "text-lg font-medium max-h-12 py-2";
343
373
  switch (e) {
344
- case Pe:
345
- return i("px-4", {
374
+ case Fe:
375
+ return l("px-4", {
346
376
  [n]: r === "small",
347
- [l]: r === "medium",
377
+ [i]: r === "medium",
348
378
  [s]: r === "large"
349
379
  });
350
- case Fe:
351
- return i("px-4 text-center", {
380
+ case Ge:
381
+ return l("px-4 text-center", {
352
382
  [n]: r === "small",
353
- [l]: r === "medium",
383
+ [i]: r === "medium",
354
384
  [s]: r === "large"
355
385
  });
356
386
  case ce:
357
- return i("inline-flex items-center", {
387
+ return l("inline-flex items-center", {
358
388
  "justify-center": o === "center",
359
389
  "justify-start": o === "left",
360
390
  "justify-end": o === "right",
@@ -366,7 +396,7 @@ const Be = (e) => {
366
396
  "h-12 px-4 text-lg font-medium": r === "large" && (t || a)
367
397
  });
368
398
  }
369
- }, De = ({
399
+ }, je = ({
370
400
  mode: e,
371
401
  noBackground: r,
372
402
  noTruncate: t,
@@ -375,7 +405,7 @@ const Be = (e) => {
375
405
  if (r)
376
406
  return "not-prose rounded-full";
377
407
  if (a === "primary")
378
- return i("not-prose rounded-full", {
408
+ return l("not-prose rounded-full", {
379
409
  truncate: !t,
380
410
  "bg-action-dark text-copy-light": e === "dark",
381
411
  "bg-action-light text-copy-lighter": e === "light",
@@ -383,7 +413,7 @@ const Be = (e) => {
383
413
  "bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
384
414
  });
385
415
  if (a === "secondary")
386
- return i("not-prose rounded-full", {
416
+ return l("not-prose rounded-full", {
387
417
  truncate: !t,
388
418
  "bg-action-dark text-copy-light": e === "light",
389
419
  "bg-action-light text-copy-lighter": e === "dark",
@@ -391,14 +421,14 @@ const Be = (e) => {
391
421
  "bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
392
422
  });
393
423
  if (a === "danger")
394
- return i("not-prose rounded-full", {
424
+ return l("not-prose rounded-full", {
395
425
  truncate: !t,
396
426
  "bg-action-danger-dark text-copy-light": e === "dark",
397
427
  "bg-action-danger-light text-copy-lighter": e === "light",
398
428
  "bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
399
429
  "bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
400
430
  });
401
- }, je = ({
431
+ }, We = ({
402
432
  mode: e,
403
433
  disabled: r,
404
434
  variant: t
@@ -406,27 +436,27 @@ const Be = (e) => {
406
436
  if (r)
407
437
  return "";
408
438
  if (t === "primary")
409
- return i("hover:text-copy-light-hover", {
439
+ return l("hover:text-copy-light-hover", {
410
440
  "hover:bg-action-dark-hover": e === "dark",
411
441
  "hover:bg-action-light-hover": e === "light",
412
442
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
413
443
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
414
444
  });
415
445
  if (t === "secondary")
416
- return i("hover:text-copy-light-hover", {
446
+ return l("hover:text-copy-light-hover", {
417
447
  "hover:bg-action-dark-hover": e === "light",
418
448
  "hover:bg-action-light-hover": e === "dark",
419
449
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
420
450
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
421
451
  });
422
452
  if (t === "danger")
423
- return i("hover:text-copy-light-hover", {
453
+ return l("hover:text-copy-light-hover", {
424
454
  "hover:bg-action-danger-dark-hover": e === "dark",
425
455
  "hover:bg-action-danger-light-hover": e === "light",
426
456
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
427
457
  "hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
428
458
  });
429
- }, We = ({
459
+ }, qe = ({
430
460
  mode: e,
431
461
  disabled: r,
432
462
  variant: t
@@ -434,27 +464,27 @@ const Be = (e) => {
434
464
  if (r)
435
465
  return "";
436
466
  if (t === "primary")
437
- return i("active:text-copy-light-active", {
467
+ return l("active:text-copy-light-active", {
438
468
  "active:bg-action-dark-active": e === "dark",
439
469
  "active:bg-action-light-active": e === "light",
440
470
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
441
471
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
442
472
  });
443
473
  if (t === "secondary")
444
- return i("active:text-copy-light-active", {
474
+ return l("active:text-copy-light-active", {
445
475
  "active:bg-action-dark-active": e === "light",
446
476
  "active:bg-action-light-active": e === "dark",
447
477
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
448
478
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
449
479
  });
450
480
  if (t === "danger")
451
- return i("active:text-copy-lighter-active", {
481
+ return l("active:text-copy-lighter-active", {
452
482
  "active:bg-action-danger-dark-active": e === "dark",
453
483
  "active:bg-action-danger-light-active": e === "light",
454
484
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
455
485
  "active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
456
486
  });
457
- }, qe = ({
487
+ }, Je = ({
458
488
  mode: e,
459
489
  noBorder: r,
460
490
  variant: t
@@ -462,39 +492,39 @@ const Be = (e) => {
462
492
  if (r)
463
493
  return "border border-transparent";
464
494
  if (t === "primary")
465
- return i("border", {
495
+ return l("border", {
466
496
  "border-border-dark": e === "dark",
467
497
  "border-border-accent": e === "light",
468
498
  "border-border-dark dark:border-border-accent": e === "system",
469
499
  "border-border-accent dark:border-border-dark": e === "alt-system"
470
500
  });
471
501
  if (t === "secondary")
472
- return i("border", {
502
+ return l("border", {
473
503
  "border-border-dark": e === "light",
474
504
  "border-border-accent": e === "dark",
475
505
  "border-border-dark dark:border-border-accent": e === "alt-system",
476
506
  "border-border-accent dark:border-border-dark": e === "system"
477
507
  });
478
508
  if (t === "danger")
479
- return i("border", {
509
+ return l("border", {
480
510
  "border-border-danger-dark": e === "dark",
481
511
  "border-border-danger-medium": e === "light",
482
512
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
483
513
  "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
484
514
  });
485
- }, Je = ({ focusMode: e }) => i("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
515
+ }, Qe = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
486
516
  "focus:outline-focus-dark": e === "dark",
487
517
  "focus:outline-focus-light": e === "light",
488
518
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
489
519
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
490
- }), Qe = ({
520
+ }), Ye = ({
491
521
  type: e,
492
522
  className: r,
493
523
  raw: t,
494
524
  mode: a,
495
525
  focusMode: o,
496
526
  disabled: n,
497
- fullWidth: l,
527
+ fullWidth: i,
498
528
  size: s,
499
529
  noBorder: d,
500
530
  labelRight: m,
@@ -503,22 +533,22 @@ const Be = (e) => {
503
533
  noBackground: g,
504
534
  variant: h,
505
535
  noTruncate: b,
506
- align: x
507
- }) => (h || (h = "primary"), t ? i(oe, r) : i(
536
+ align: w
537
+ }) => (h || (h = "primary"), t ? l(oe, r) : l(
508
538
  oe,
509
539
  r,
510
- ze(p),
511
- De({ mode: a, variant: h, noBackground: g, noTruncate: b }),
512
- Ge({ type: e, size: s, labelRight: m, labelLeft: u, align: x }),
513
- qe({ mode: a, variant: h, noBorder: d }),
514
- Je({ focusMode: o }),
515
- je({ mode: a, variant: h, disabled: n }),
540
+ Pe(p),
541
+ je({ mode: a, variant: h, noBackground: g, noTruncate: b }),
542
+ De({ type: e, size: s, labelRight: m, labelLeft: u, align: w }),
543
+ Je({ mode: a, variant: h, noBorder: d }),
544
+ Qe({ focusMode: o }),
516
545
  We({ mode: a, variant: h, disabled: n }),
546
+ qe({ mode: a, variant: h, disabled: n }),
517
547
  {
518
- "w-full": l,
548
+ "w-full": i,
519
549
  "disabled:cursor-not-allowed disabled:opacity-50": n
520
550
  }
521
- )), Ye = (e, r, t) => {
551
+ )), Xe = (e, r, t) => {
522
552
  var a;
523
553
  !r && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
524
554
  }, de = z.forwardRef((e, r) => {
@@ -528,7 +558,7 @@ const Be = (e) => {
528
558
  {
529
559
  ref: r,
530
560
  onClick: (n) => {
531
- Ye(n, a, t);
561
+ Xe(n, a, t);
532
562
  },
533
563
  ...o
534
564
  }
@@ -556,7 +586,7 @@ const ue = z.forwardRef(
556
586
  focusMode: a = "system",
557
587
  fullWidth: o = !1,
558
588
  className: n,
559
- type: l = "button",
589
+ type: i = "button",
560
590
  raw: s = !1,
561
591
  noBorder: d = !1,
562
592
  "aria-label": m,
@@ -565,12 +595,12 @@ const ue = z.forwardRef(
565
595
  labelRight: g,
566
596
  labelLeft: h,
567
597
  spacing: b,
568
- noBackground: x = !1,
598
+ noBackground: w = !1,
569
599
  align: S = "center",
570
600
  active: B = !1,
571
601
  ...H
572
602
  }, L) => {
573
- const F = Qe({
603
+ const F = Ye({
574
604
  type: ce,
575
605
  mode: t,
576
606
  focusMode: a,
@@ -583,14 +613,14 @@ const ue = z.forwardRef(
583
613
  labelRight: g,
584
614
  labelLeft: h,
585
615
  spacing: b,
586
- noBackground: x,
616
+ noBackground: w,
587
617
  align: S
588
- }), G = i({
618
+ }), G = l({
589
619
  "text-copy-accent-dark": t === "light" && !s,
590
620
  "text-copy-light": t === "dark" && !s,
591
621
  "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !s,
592
622
  "text-copy-light dark:text-copy-accent-dark": t === "system" && !s
593
- }), D = B ? i(
623
+ }), D = B ? l(
594
624
  "relative",
595
625
  "focus-within:static",
596
626
  "focus-within:after:border-transparent",
@@ -607,13 +637,13 @@ const ue = z.forwardRef(
607
637
  "after:border-table-light dark:after:border-table-dark": t === "alt-system"
608
638
  }
609
639
  ) : "";
610
- return /* @__PURE__ */ c("div", { className: D, children: /* @__PURE__ */ w(
640
+ return /* @__PURE__ */ c("div", { className: D, children: /* @__PURE__ */ x(
611
641
  de,
612
642
  {
613
643
  ref: L,
614
644
  className: F,
615
645
  disabled: r,
616
- type: l,
646
+ type: i,
617
647
  "aria-label": m || u,
618
648
  ...H,
619
649
  children: [
@@ -626,7 +656,7 @@ const ue = z.forwardRef(
626
656
  }
627
657
  );
628
658
  ue.displayName = "ButtonSort";
629
- const Xe = (e) => {
659
+ const Ke = (e) => {
630
660
  let r = "";
631
661
  if (typeof e == "number" || typeof e == "string")
632
662
  r = "m-" + e;
@@ -642,16 +672,16 @@ const Xe = (e) => {
642
672
  className: a,
643
673
  defaultViewBox: o,
644
674
  defaultClassName: n,
645
- spacing: l,
675
+ spacing: i,
646
676
  title: s,
647
677
  semantic: d = !1,
648
678
  ...m
649
679
  }) => {
650
- const u = Xe(l), p = i(
680
+ const u = Ke(i), p = l(
651
681
  u,
652
682
  a || n
653
683
  );
654
- return /* @__PURE__ */ w(Ae, { children: [
684
+ return /* @__PURE__ */ x(Ne, { children: [
655
685
  /* @__PURE__ */ c(
656
686
  "svg",
657
687
  {
@@ -682,14 +712,14 @@ try {
682
712
  });
683
713
  } catch {
684
714
  }
685
- const Ke = ({
715
+ const Ze = ({
686
716
  className: e,
687
717
  viewBox: r,
688
718
  spacing: t,
689
719
  title: a,
690
720
  monotone: o,
691
721
  ...n
692
- }) => /* @__PURE__ */ w(
722
+ }) => /* @__PURE__ */ x(
693
723
  X,
694
724
  {
695
725
  defaultViewBox: "0 0 576 512",
@@ -710,14 +740,14 @@ const Ke = ({
710
740
  /* @__PURE__ */ c("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
711
741
  ]
712
742
  }
713
- ), Ze = ({
743
+ ), et = ({
714
744
  className: e,
715
745
  viewBox: r,
716
746
  spacing: t,
717
747
  title: a,
718
748
  monotone: o,
719
749
  ...n
720
- }) => /* @__PURE__ */ w(
750
+ }) => /* @__PURE__ */ x(
721
751
  X,
722
752
  {
723
753
  defaultViewBox: "0 0 576 512",
@@ -738,14 +768,14 @@ const Ke = ({
738
768
  /* @__PURE__ */ c("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V365.7L63.6 330.4c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96C110.5 476.2 119 480 128 480z" })
739
769
  ]
740
770
  }
741
- ), et = ({
771
+ ), tt = ({
742
772
  className: e,
743
773
  viewBox: r,
744
774
  spacing: t,
745
775
  title: a,
746
776
  monotone: o,
747
777
  ...n
748
- }) => /* @__PURE__ */ w(
778
+ }) => /* @__PURE__ */ x(
749
779
  X,
750
780
  {
751
781
  defaultViewBox: "0 0 576 512",
@@ -786,24 +816,24 @@ const N = z.createContext({
786
816
  stickyHeader: !1,
787
817
  stickyFooter: !1,
788
818
  compact: !1
789
- }), $t = ({
819
+ }), Lt = ({
790
820
  children: e,
791
821
  mode: r = "system",
792
822
  caption: t,
793
823
  compact: a,
794
824
  summary: o,
795
825
  className: n,
796
- wrapperClassName: l,
826
+ wrapperClassName: i,
797
827
  maxHeight: s,
798
828
  stickyHeader: d,
799
829
  stickyFooter: m,
800
830
  spacing: u,
801
831
  ...p
802
832
  }) => {
803
- const g = He({
833
+ const g = Le({
804
834
  mode: r,
805
835
  className: n,
806
- wrapperClassName: l,
836
+ wrapperClassName: i,
807
837
  stickyHeader: d,
808
838
  stickyFooter: m,
809
839
  spacing: u
@@ -819,7 +849,7 @@ const N = z.createContext({
819
849
  ...s && {
820
850
  style: { maxHeight: s }
821
851
  },
822
- children: /* @__PURE__ */ w("table", { className: g.table, summary: o, ...p, children: [
852
+ children: /* @__PURE__ */ x("table", { className: g.table, summary: o, ...p, children: [
823
853
  t && /* @__PURE__ */ c("caption", { className: g.caption, children: t }),
824
854
  e
825
855
  ] })
@@ -827,81 +857,81 @@ const N = z.createContext({
827
857
  )
828
858
  }
829
859
  );
830
- }, Bt = ({
860
+ }, Vt = ({
831
861
  children: e,
832
862
  className: r,
833
863
  ...t
834
864
  }) => {
835
- const a = $(N);
865
+ const a = R(N);
836
866
  a.cellWrapper = P;
837
- const o = Le({
867
+ const o = Ve({
838
868
  className: r,
839
869
  mode: a.mode,
840
870
  stickyHeader: a.stickyHeader
841
871
  });
842
872
  return /* @__PURE__ */ c("thead", { className: o, ...t, children: e });
843
- }, Ht = ({
873
+ }, Mt = ({
844
874
  children: e,
845
875
  className: r,
846
876
  ...t
847
877
  }) => {
848
- const a = $(N);
878
+ const a = R(N);
849
879
  a.cellWrapper = Y;
850
- const o = Ue({
880
+ const o = Me({
851
881
  className: r,
852
882
  mode: a.mode,
853
883
  stickyFooter: a.stickyFooter
854
884
  });
855
885
  return /* @__PURE__ */ c("tfoot", { className: o, ...t, children: e });
856
- }, Lt = ({ children: e, ...r }) => {
857
- const t = $(N);
886
+ }, Ut = ({ children: e, ...r }) => {
887
+ const t = R(N);
858
888
  return t.cellWrapper = T, /* @__PURE__ */ c("tbody", { ...r, children: e });
859
- }, Ut = ({
889
+ }, Ot = ({
860
890
  children: e,
861
891
  className: r,
862
892
  ...t
863
893
  }) => {
864
- const a = $(N), o = Ve({
894
+ const a = R(N), o = Ue({
865
895
  mode: a.mode,
866
896
  cellWrapper: a.cellWrapper,
867
897
  className: r
868
898
  });
869
899
  return /* @__PURE__ */ c("tr", { className: o, ...t, children: e });
870
- }, tt = ({
900
+ }, rt = ({
871
901
  children: e,
872
902
  component: r,
873
903
  className: t,
874
904
  ...a
875
905
  }) => {
876
- const o = $(N), n = r || (o.cellWrapper === P ? "th" : "td"), l = Me({
906
+ const o = R(N), n = r || (o.cellWrapper === P ? "th" : "td"), i = Oe({
877
907
  cellWrapper: o.cellWrapper,
878
908
  className: t,
879
909
  mode: o.mode,
880
910
  compact: o.compact
881
911
  });
882
- return /* @__PURE__ */ c(n, { className: l, ...a, children: e });
883
- }, Vt = ({
912
+ return /* @__PURE__ */ c(n, { className: i, ...a, children: e });
913
+ }, zt = ({
884
914
  align: e,
885
915
  children: r,
886
916
  buttonClassName: t,
887
917
  className: a,
888
918
  component: o,
889
919
  focusMode: n = "alt-system",
890
- mode: l = "alt-system",
920
+ mode: i = "alt-system",
891
921
  onClick: s,
892
922
  sortDirection: d,
893
923
  sortedCell: m,
894
924
  cellId: u,
895
925
  ...p
896
926
  }) => {
897
- const g = Oe({ buttonClassName: t });
927
+ const g = ze({ buttonClassName: t });
898
928
  return /* @__PURE__ */ c(
899
- tt,
929
+ rt,
900
930
  {
901
931
  component: o,
902
932
  className: a,
903
933
  role: "columnheader",
904
- "aria-sort": d === M.ASC && m === u ? "ascending" : d === M.DESC && m === u ? "descending" : "other",
934
+ "aria-sort": d === U.ASC && m === u ? "ascending" : d === U.DESC && m === u ? "descending" : "other",
905
935
  ...p,
906
936
  children: /* @__PURE__ */ c(
907
937
  ue,
@@ -912,10 +942,10 @@ const N = z.createContext({
912
942
  align: e,
913
943
  noBorder: !0,
914
944
  focusMode: n,
915
- mode: l,
945
+ mode: i,
916
946
  fullWidth: !0,
917
947
  labelRight: r,
918
- children: d === M.ASC && m === u ? /* @__PURE__ */ c(et, { className: "size-4", monotone: !0 }) : d === M.DESC && m === u ? /* @__PURE__ */ c(Ze, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Ke, { className: "size-4", monotone: !0 })
948
+ children: d === U.ASC && m === u ? /* @__PURE__ */ c(tt, { className: "size-4", monotone: !0 }) : d === U.DESC && m === u ? /* @__PURE__ */ c(et, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Ze, { className: "size-4", monotone: !0 })
919
949
  }
920
950
  )
921
951
  }
@@ -934,15 +964,15 @@ try {
934
964
  });
935
965
  } catch {
936
966
  }
937
- const me = "av-text-area", rt = "av-text-area-wrapper", Q = "av-text-area-helper-text", at = "av-text-area__control--right";
938
- function ot() {
967
+ const me = "av-text-area", at = "av-text-area-wrapper", Q = "av-text-area-helper-text", ot = "av-text-area__control--right";
968
+ function nt() {
939
969
  const e = f(!1);
940
- return R(() => (e.current = !0, () => {
970
+ return $(() => (e.current = !0, () => {
941
971
  e.current = !1;
942
972
  }), []), O(() => e.current, []);
943
973
  }
944
- function nt(e) {
945
- return le(() => e.every((r) => r == null) ? () => {
974
+ function it(e) {
975
+ return ie(() => e.every((r) => r == null) ? () => {
946
976
  } : (r) => {
947
977
  e.forEach((t) => {
948
978
  typeof t == "function" ? t(r) : t != null && (t.current = r);
@@ -959,18 +989,18 @@ const lt = {
959
989
  bottom: 0,
960
990
  right: 0
961
991
  };
962
- function it(e) {
963
- const r = ot(), t = f(0), a = f(null), [o, n] = I(lt), l = le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
992
+ function st(e) {
993
+ const r = nt(), t = f(0), a = f(null), [o, n] = I(lt), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
964
994
  const d = s[0];
965
995
  d && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
966
996
  a.current && r() && n(d.contentRect);
967
997
  }));
968
998
  }), [r]);
969
- return R(() => (a.current && (l == null || l.observe(a.current, e)), () => {
970
- l == null || l.disconnect(), t.current && cancelAnimationFrame(t.current);
971
- }), [l, e]), [a, o];
999
+ return $(() => (a.current && (i == null || i.observe(a.current, e)), () => {
1000
+ i == null || i.disconnect(), t.current && cancelAnimationFrame(t.current);
1001
+ }), [i, e]), [a, o];
972
1002
  }
973
- function st({
1003
+ function ct({
974
1004
  value: e,
975
1005
  defaultValue: r,
976
1006
  finalValue: t,
@@ -978,19 +1008,19 @@ function st({
978
1008
  },
979
1009
  initialControlledDelay: o = 0
980
1010
  }) {
981
- const [n, l] = I(!1), [s, d] = I(
1011
+ const [n, i] = I(!1), [s, d] = I(
982
1012
  r !== void 0 ? r : t
983
1013
  ), m = (u) => {
984
1014
  d(u), a == null || a(u);
985
1015
  };
986
- return R(() => {
1016
+ return $(() => {
987
1017
  (async () => e !== void 0 && !n && o > 0 && (await new Promise(
988
1018
  (u) => setTimeout(u, o)
989
- ), l(!0)))();
1019
+ ), i(!0)))();
990
1020
  }, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [s, m, !1];
991
1021
  }
992
- function ct(e) {
993
- const r = Se();
1022
+ function dt(e) {
1023
+ const r = Ae();
994
1024
  if (!e)
995
1025
  return r;
996
1026
  if (typeof e == "number" || typeof e == "string")
@@ -1000,7 +1030,7 @@ function ct(e) {
1000
1030
  return typeof t == "number" || typeof t == "string" ? `${a}${t}` : `${a}${r}`;
1001
1031
  }
1002
1032
  }
1003
- const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
1033
+ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", ut = {
1004
1034
  alert: null,
1005
1035
  alertdialog: null,
1006
1036
  log: "polite",
@@ -1008,7 +1038,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
1008
1038
  progressbar: null,
1009
1039
  status: "polite",
1010
1040
  timer: "assertive"
1011
- }, ut = (e, r) => {
1041
+ }, mt = (e, r) => {
1012
1042
  switch (r == null ? void 0 : r.type) {
1013
1043
  case he:
1014
1044
  return {
@@ -1023,7 +1053,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
1023
1053
  default:
1024
1054
  return e;
1025
1055
  }
1026
- }, mt = ({
1056
+ }, ht = ({
1027
1057
  onAnnouncementClear: e,
1028
1058
  dispatch: r
1029
1059
  }) => {
@@ -1041,67 +1071,67 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
1041
1071
  type: he,
1042
1072
  payload: e
1043
1073
  }), r && (t.current = setTimeout(
1044
- () => mt({
1074
+ () => ht({
1045
1075
  onAnnouncementClear: a,
1046
1076
  dispatch: o
1047
1077
  }),
1048
1078
  r
1049
1079
  ));
1050
- }, ht = ({
1080
+ }, gt = ({
1051
1081
  children: e,
1052
1082
  announcementTimeoutRef: r,
1053
1083
  announcementDelay: t,
1054
1084
  clearAnnouncementDelay: a,
1055
1085
  clearAnnouncementTimeoutRef: o,
1056
1086
  onAnnouncementClear: n,
1057
- dispatch: l
1087
+ dispatch: i
1058
1088
  }) => {
1059
1089
  clearTimeout(r.current), t ? r.current = setTimeout(ne, t, {
1060
1090
  children: e,
1061
1091
  clearAnnouncementDelay: a,
1062
1092
  clearAnnouncementTimeoutRef: o,
1063
1093
  onAnnouncementClear: n,
1064
- dispatch: l
1094
+ dispatch: i
1065
1095
  }) : ne({
1066
1096
  children: e,
1067
1097
  clearAnnouncementDelay: a,
1068
1098
  clearAnnouncementTimeoutRef: o,
1069
1099
  onAnnouncementClear: n,
1070
- dispatch: l
1100
+ dispatch: i
1071
1101
  });
1072
1102
  };
1073
- function gt({
1103
+ function pt({
1074
1104
  children: e,
1075
1105
  className: r,
1076
1106
  politeness: t,
1077
1107
  role: a = null,
1078
1108
  announcementDelay: o,
1079
1109
  clearAnnouncementDelay: n,
1080
- onAnnouncementClear: l,
1110
+ onAnnouncementClear: i,
1081
1111
  visible: s,
1082
1112
  ...d
1083
1113
  }) {
1084
- const m = f(), u = f(), [p, g] = Ce(ut, {
1114
+ const m = f(), u = f(), [p, g] = Ie(mt, {
1085
1115
  announcement: null
1086
1116
  });
1087
1117
  let h = t;
1088
- typeof h > "u" && (h = a ? dt[a] : "assertive"), R(() => {
1089
- ht({
1118
+ typeof h > "u" && (h = a ? ut[a] : "assertive"), $(() => {
1119
+ gt({
1090
1120
  announcementTimeoutRef: m,
1091
1121
  announcementDelay: o,
1092
1122
  children: e,
1093
1123
  clearAnnouncementDelay: n,
1094
1124
  clearAnnouncementTimeoutRef: u,
1095
- onAnnouncementClear: l,
1125
+ onAnnouncementClear: i,
1096
1126
  dispatch: g
1097
1127
  });
1098
1128
  }, [
1099
1129
  e,
1100
1130
  o,
1101
1131
  n,
1102
- l
1132
+ i
1103
1133
  ]);
1104
- const b = i(r, {
1134
+ const b = l(r, {
1105
1135
  "sr-only": !s
1106
1136
  });
1107
1137
  return /* @__PURE__ */ c(
@@ -1115,7 +1145,7 @@ function gt({
1115
1145
  }
1116
1146
  );
1117
1147
  }
1118
- const pt = (e) => {
1148
+ const bt = (e) => {
1119
1149
  let r = "";
1120
1150
  if (typeof e == "number" || typeof e == "string")
1121
1151
  r = "m-" + e;
@@ -1138,16 +1168,16 @@ try {
1138
1168
  });
1139
1169
  } catch {
1140
1170
  }
1141
- const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", yt = ({
1171
+ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ft = ({
1142
1172
  mode: e
1143
- }) => i({
1173
+ }) => l({
1144
1174
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
1145
1175
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
1146
1176
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
1147
1177
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
1148
- }), ft = ({
1178
+ }), vt = ({
1149
1179
  focusMode: e
1150
- }) => i("focus:outline focus:outline-2 focus:outline-offset-2", {
1180
+ }) => l("focus:outline focus:outline-2 focus:outline-offset-2", {
1151
1181
  "focus:outline-focus-dark": e === "dark",
1152
1182
  "focus:outline-focus-light": e === "light",
1153
1183
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -1155,12 +1185,12 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1155
1185
  }), kt = ({
1156
1186
  noBorder: e,
1157
1187
  error: r
1158
- }) => i("border-2", {
1188
+ }) => l("border-2", {
1159
1189
  "border-border-dark": !e && !r,
1160
1190
  "focus:border-border-dark": !e && r,
1161
1191
  "border-border-error-dark": !e && r,
1162
1192
  "border-transparent": e
1163
- }), vt = ({
1193
+ }), _t = ({
1164
1194
  disabled: e,
1165
1195
  raw: r,
1166
1196
  error: t,
@@ -1169,22 +1199,22 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1169
1199
  if (r)
1170
1200
  return "";
1171
1201
  if (e)
1172
- return i("absolute px-2 cursor-not-allowed opacity-50 font-medium");
1202
+ return l("absolute px-2 cursor-not-allowed opacity-50 font-medium");
1173
1203
  if (!t)
1174
- return i("absolute px-2 cursor-text font-medium", {
1204
+ return l("absolute px-2 cursor-text font-medium", {
1175
1205
  "text-copy-medium": a === "dark",
1176
1206
  "text-copy-dark": a === "light",
1177
1207
  "text-copy-dark dark:text-copy-medium": a === "system",
1178
1208
  "text-copy-medium dark:text-copy-dark": a === "alt-system"
1179
1209
  });
1180
1210
  if (t)
1181
- return i("absolute px-2 cursor-text font-medium", {
1211
+ return l("absolute px-2 cursor-text font-medium", {
1182
1212
  "text-copy-medium": a === "dark",
1183
1213
  "text-copy-error-dark": a === "light",
1184
1214
  "text-copy-error-dark dark:text-copy-error-light": a === "system",
1185
1215
  "text-copy-medium dark:text-copy-error-dark": a === "alt-system"
1186
1216
  });
1187
- }, _t = ({
1217
+ }, xt = ({
1188
1218
  error: e,
1189
1219
  raw: r,
1190
1220
  mode: t,
@@ -1193,64 +1223,64 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1193
1223
  if (r)
1194
1224
  return "";
1195
1225
  if (a)
1196
- return i(
1226
+ return l(
1197
1227
  Q,
1198
1228
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
1199
1229
  );
1200
1230
  if (!e)
1201
- return i(Q, "absolute px-2 font-medium", {
1231
+ return l(Q, "absolute px-2 font-medium", {
1202
1232
  "text-copy-medium": t === "dark",
1203
1233
  "text-copy-dark": t === "light",
1204
1234
  "text-copy-dark dark:text-copy-medium": t === "system",
1205
1235
  "text-copy-medium dark:text-copy-dark": t === "alt-system"
1206
1236
  });
1207
1237
  if (e)
1208
- return i(Q, "absolute px-2 font-medium", {
1238
+ return l(Q, "absolute px-2 font-medium", {
1209
1239
  "text-copy-error-light": t === "dark",
1210
1240
  "text-copy-error-dark": t === "light",
1211
1241
  "text-copy-error-dark dark:text-copy-error-light": t === "system",
1212
1242
  "dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
1213
1243
  });
1214
- }, xt = ({
1244
+ }, wt = ({
1215
1245
  className: e,
1216
1246
  textAreaClassName: r,
1217
1247
  raw: t,
1218
1248
  focusMode: a,
1219
1249
  disabled: o,
1220
1250
  noBorder: n,
1221
- error: l,
1251
+ error: i,
1222
1252
  spacing: s,
1223
1253
  mode: d
1224
1254
  }) => {
1225
- const m = t ? e : i(
1255
+ const m = t ? e : l(
1226
1256
  "relative flex w-full flex-col justify-center",
1227
- rt,
1257
+ at,
1228
1258
  e,
1229
- pt(s)
1230
- ), u = t ? i(r) : i(
1259
+ bt(s)
1260
+ ), u = t ? l(r) : l(
1231
1261
  me,
1232
1262
  r,
1233
- bt(),
1234
- yt({ mode: d }),
1235
- ft({ focusMode: a }),
1263
+ yt(),
1264
+ ft({ mode: d }),
1265
+ vt({ focusMode: a }),
1236
1266
  kt({
1237
1267
  noBorder: n,
1238
- error: l
1268
+ error: i
1239
1269
  }),
1240
1270
  {
1241
1271
  "disabled:cursor-not-allowed disabled:opacity-50": o
1242
1272
  }
1243
- ), p = t ? void 0 : "sr-only", g = vt({
1273
+ ), p = t ? void 0 : "sr-only", g = _t({
1244
1274
  disabled: o,
1245
1275
  raw: t,
1246
- error: l,
1276
+ error: i,
1247
1277
  mode: d
1248
- }), h = _t({
1249
- error: l,
1278
+ }), h = xt({
1279
+ error: i,
1250
1280
  raw: t,
1251
1281
  mode: d,
1252
1282
  disabled: o
1253
- }), b = t ? void 0 : i(at, "absolute");
1283
+ }), b = t ? void 0 : l(ot, "absolute");
1254
1284
  return {
1255
1285
  wrapper: m,
1256
1286
  textArea: u,
@@ -1259,7 +1289,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1259
1289
  helperText: h,
1260
1290
  rightElement: b
1261
1291
  };
1262
- }, wt = ({
1292
+ }, Et = ({
1263
1293
  scrollHeight: e,
1264
1294
  currentHeight: r,
1265
1295
  currentLabelOffset: t = 0,
@@ -1267,15 +1297,15 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1267
1297
  }) => {
1268
1298
  let o, n;
1269
1299
  if (e > 0 && e !== r) {
1270
- const l = e - r, s = Math.abs(l / 24);
1271
- o = t + -1 * Math.sign(l) * (12 * s), n = a + Math.sign(l) * (12 * s);
1300
+ const i = e - r, s = Math.abs(i / 24);
1301
+ o = t + -1 * Math.sign(i) * (12 * s), n = a + Math.sign(i) * (12 * s);
1272
1302
  }
1273
1303
  return {
1274
1304
  labelOffset: o,
1275
1305
  helperTextOffset: n,
1276
1306
  scrollHeight: e
1277
1307
  };
1278
- }, Et = z.forwardRef(
1308
+ }, Tt = z.forwardRef(
1279
1309
  ({
1280
1310
  id: e,
1281
1311
  name: r,
@@ -1283,7 +1313,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1283
1313
  error: a = !1,
1284
1314
  raw: o = !1,
1285
1315
  className: n,
1286
- textAreaClassName: l,
1316
+ textAreaClassName: i,
1287
1317
  mode: s = "system",
1288
1318
  focusMode: d = "system",
1289
1319
  value: m,
@@ -1292,7 +1322,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1292
1322
  noBorder: g = !1,
1293
1323
  labelId: h,
1294
1324
  helperText: b = "",
1295
- helperTextOnFocus: x = !1,
1325
+ helperTextOnFocus: w = !1,
1296
1326
  rightElement: S,
1297
1327
  onChange: B,
1298
1328
  onFocus: H,
@@ -1300,11 +1330,11 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1300
1330
  spacing: F,
1301
1331
  ...G
1302
1332
  }, D) => {
1303
- const k = f(null), pe = nt([D, k]), [be, U] = it(), j = f(80), K = f(-25), C = f(null), Z = f(30), W = f(null), A = ct({ id: e, prefix: `${me}-` }), [ye, fe] = I(0), [ke, ee] = I(
1304
- !!(!x && b)
1305
- ), ve = `${r} error, ${b}`, E = xt({
1333
+ const v = f(null), pe = it([D, v]), [be, V] = st(), j = f(80), K = f(-25), C = f(null), Z = f(30), W = f(null), A = dt({ id: e, prefix: `${me}-` }), [ye, fe] = I(0), [ve, ee] = I(
1334
+ !!(!w && b)
1335
+ ), ke = `${r} error, ${b}`, E = wt({
1306
1336
  className: n,
1307
- textAreaClassName: l,
1337
+ textAreaClassName: i,
1308
1338
  error: a,
1309
1339
  raw: o,
1310
1340
  focusMode: d,
@@ -1312,7 +1342,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1312
1342
  noBorder: g,
1313
1343
  spacing: F,
1314
1344
  mode: s
1315
- }), [v, _e] = st({
1345
+ }), [k, _e] = ct({
1316
1346
  value: m,
1317
1347
  initialControlledDelay: 20,
1318
1348
  defaultValue: u,
@@ -1326,27 +1356,27 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1326
1356
  }), xe = (y) => {
1327
1357
  _e(y.target.value);
1328
1358
  }, we = (y) => {
1329
- x && b && ee(!0), H && H(y);
1359
+ w && b && ee(!0), H && H(y);
1330
1360
  }, Ee = (y) => {
1331
- x && b && !v && ee(!1), L && L(y);
1361
+ w && b && !k && ee(!1), L && L(y);
1332
1362
  };
1333
- return V(() => {
1334
- U && U.width && fe(U.width + 18 + 10);
1335
- }, [U]), V(() => {
1336
- o || k && k.current && v !== void 0 && (k.current.style.height = "inherit", k.current.style.height = k.current.scrollHeight + "px");
1337
- }, [v, o]), V(() => {
1363
+ return M(() => {
1364
+ V && V.width && fe(V.width + 18 + 10);
1365
+ }, [V]), M(() => {
1366
+ o || v && v.current && k !== void 0 && (v.current.style.height = "inherit", v.current.style.height = v.current.scrollHeight + "px");
1367
+ }, [k, o]), M(() => {
1338
1368
  o || setTimeout(() => {
1339
1369
  var y;
1340
1370
  (y = C == null ? void 0 : C.current) == null || y.style.setProperty(
1341
1371
  "--av-text-area-wrapper-transition",
1342
- v ? "none" : "all 0.2s ease-out"
1372
+ k ? "none" : "all 0.2s ease-out"
1343
1373
  );
1344
1374
  }, 0);
1345
- }, [v, o]), V(() => {
1375
+ }, [k, o]), M(() => {
1346
1376
  var y, te;
1347
- if (!o && k && k.current && v !== void 0) {
1348
- const { labelOffset: q, helperTextOffset: J, scrollHeight: Te } = wt({
1349
- scrollHeight: k.current.scrollHeight,
1377
+ if (!o && v && v.current && k !== void 0) {
1378
+ const { labelOffset: q, helperTextOffset: J, scrollHeight: Te } = Et({
1379
+ scrollHeight: v.current.scrollHeight,
1350
1380
  currentHeight: j.current,
1351
1381
  currentLabelOffset: K.current,
1352
1382
  currentHelperTextOffset: Z.current
@@ -1359,7 +1389,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1359
1389
  `${J}px`
1360
1390
  )), j.current = Te || j.current;
1361
1391
  }
1362
- }, [v, o]), /* @__PURE__ */ w("div", { className: E.wrapper, children: [
1392
+ }, [k, o]), /* @__PURE__ */ x("div", { className: E.wrapper, children: [
1363
1393
  /* @__PURE__ */ c(
1364
1394
  "label",
1365
1395
  {
@@ -1382,7 +1412,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1382
1412
  ...b && { "aria-describedby": `${A}-helper` },
1383
1413
  ...a && { "aria-invalid": "true" },
1384
1414
  ...S && !o && { style: { paddingRight: ye } },
1385
- value: v,
1415
+ value: k,
1386
1416
  onChange: xe,
1387
1417
  onFocus: we,
1388
1418
  onBlur: Ee,
@@ -1399,7 +1429,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1399
1429
  children: t
1400
1430
  }
1401
1431
  ),
1402
- ke && /* @__PURE__ */ c(
1432
+ ve && /* @__PURE__ */ c(
1403
1433
  "div",
1404
1434
  {
1405
1435
  ref: W,
@@ -1416,23 +1446,24 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1416
1446
  children: S
1417
1447
  }
1418
1448
  ),
1419
- a && b && /* @__PURE__ */ c(gt, { politeness: "polite", clearAnnouncementDelay: 500, children: ve })
1449
+ a && b && /* @__PURE__ */ c(pt, { politeness: "polite", clearAnnouncementDelay: 500, children: ke })
1420
1450
  ] });
1421
1451
  }
1422
1452
  );
1423
- Et.displayName = "TextArea";
1453
+ Tt.displayName = "TextArea";
1424
1454
  export {
1425
- Ct as E,
1426
- At as SERVICE_TYPES,
1427
- Ht as be,
1428
- tt as de,
1429
- M as f,
1430
- $t as ge,
1431
- Bt as he,
1432
- Lt as me,
1433
- Vt as pe,
1434
- Rt as restCall,
1435
- It as serviceCall,
1436
- Ut as ue,
1437
- Et as we
1455
+ $t as E,
1456
+ Rt as SERVICE_TYPES,
1457
+ Mt as be,
1458
+ rt as de,
1459
+ U as f,
1460
+ Lt as ge,
1461
+ Vt as he,
1462
+ Ut as me,
1463
+ It as n,
1464
+ zt as pe,
1465
+ Ht as restCall,
1466
+ Bt as serviceCall,
1467
+ Ot as ue,
1468
+ Tt as we
1438
1469
  };