@versini/sassysaint 5.4.8 → 5.4.9

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,7 +1,7 @@
1
1
  import { jsxs as x, jsx as s, Fragment as Ne } from "react/jsx-runtime";
2
- import { g as Te } from "./index.BNHOCJ2P.js";
3
- import U, { useSyncExternalStore as Se, useCallback as z, useEffect as $, useContext as R, useRef as k, useState as A, useLayoutEffect as O, useMemo as ne, useId as Ce, useReducer as Ie } from "react";
4
- import n from "clsx";
2
+ import { g as Te } from "./index.CzNemj1t.js";
3
+ import U, { useSyncExternalStore as Se, useCallback as M, useEffect as A, useContext as R, useRef as k, useState as $, useLayoutEffect as V, useMemo as ie, useId as Ce, useReducer as Ie } from "react";
4
+ import i from "clsx";
5
5
  const Nt = ({
6
6
  className: e,
7
7
  viewBox: r,
@@ -29,43 +29,43 @@ const Nt = ({
29
29
  ]
30
30
  }
31
31
  );
32
- function le(e, r) {
32
+ function ne(e, r) {
33
33
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: r }));
34
34
  }
35
35
  const te = (e, r) => {
36
36
  const t = JSON.stringify(
37
37
  typeof r == "function" ? r() : r
38
38
  );
39
- window.localStorage.setItem(e, t), le(e, t);
40
- }, Ae = (e) => {
41
- window.localStorage.removeItem(e), le(e, null);
42
- }, re = (e) => window.localStorage.getItem(e), $e = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
39
+ window.localStorage.setItem(e, t), ne(e, t);
40
+ }, $e = (e) => {
41
+ window.localStorage.removeItem(e), ne(e, null);
42
+ }, re = (e) => window.localStorage.getItem(e), Ae = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
43
43
  function Tt({
44
44
  key: e,
45
45
  initialValue: r
46
46
  }) {
47
- const t = Se($e, () => re(e)), a = z(
48
- (l) => {
47
+ const t = Se(Ae, () => re(e)), a = M(
48
+ (n) => {
49
49
  try {
50
- const c = typeof l == "function" ? l(JSON.parse(t)) : l;
51
- c == null ? Ae(e) : te(e, c);
50
+ const c = typeof n == "function" ? n(JSON.parse(t)) : n;
51
+ c == null ? $e(e) : te(e, c);
52
52
  } catch (c) {
53
53
  console.warn(c);
54
54
  }
55
55
  },
56
56
  [e, t]
57
- ), o = z(() => {
57
+ ), o = M(() => {
58
58
  a(r);
59
- }, [r, a]), i = z(() => {
59
+ }, [r, a]), l = M(() => {
60
60
  a(null);
61
61
  }, [a]);
62
- return $(() => {
62
+ return A(() => {
63
63
  try {
64
64
  re(e) === null && typeof r < "u" && te(e, r);
65
- } catch (l) {
66
- console.warn(l);
65
+ } catch (n) {
66
+ console.warn(n);
67
67
  }
68
- }, [e, r]), [t ? JSON.parse(t) : null, a, o, i];
68
+ }, [e, r]), [t ? JSON.parse(t) : null, a, o, l];
69
69
  }
70
70
  const _ = {
71
71
  GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
@@ -114,8 +114,20 @@ const _ = {
114
114
  }
115
115
  }
116
116
  }`,
117
- DELETE_CHAT: `mutation DeleteChat($id: String!, $userId: String!) {
118
- deleteChat(id: $id, user: $userId) {
117
+ DELETE_CHAT: `mutation DeleteChat(
118
+ $id: String!,
119
+ $userId: String!,
120
+ $searchString: String,
121
+ $limit: Float,
122
+ $direction: String,
123
+ $truncateSize: Float) {
124
+ deleteChat(
125
+ id: $id,
126
+ user: $userId,
127
+ searchString: $searchString,
128
+ limit: $limit,
129
+ direction: $direction,
130
+ truncateSize: $truncateSize) {
119
131
  timestamp
120
132
  id
121
133
  model
@@ -192,11 +204,11 @@ const _ = {
192
204
  schema: _.SET_USER_PREFERENCES,
193
205
  method: "setUserPreferences"
194
206
  }
195
- }, ie = process.env.PUBLIC_SASSY_API_SERVER_URL, Re = async ({
207
+ }, le = process.env.PUBLIC_SASSY_API_SERVER_URL, Re = async ({
196
208
  query: e,
197
209
  data: r,
198
210
  headers: t = {}
199
- }) => await fetch(`${ie}/graphql`, {
211
+ }) => await fetch(`${le}/graphql`, {
200
212
  method: "POST",
201
213
  credentials: "include",
202
214
  headers: {
@@ -215,19 +227,19 @@ const _ = {
215
227
  }) => {
216
228
  const a = r != null && r.data ? r.data(t) : t;
217
229
  try {
218
- const o = `Bearer ${e}`, i = await Re({
230
+ const o = `Bearer ${e}`, l = await Re({
219
231
  headers: {
220
232
  authorization: o
221
233
  },
222
234
  query: r.schema,
223
235
  data: a
224
236
  });
225
- if (i.status !== 200)
226
- return { status: i.status, data: [] };
227
- const { data: l, errors: c } = await i.json();
237
+ if (l.status !== 200)
238
+ return { status: l.status, data: [] };
239
+ const { data: n, errors: c } = await l.json();
228
240
  return {
229
- status: i.status,
230
- data: l[r.method],
241
+ status: l.status,
242
+ data: n[r.method],
231
243
  errors: c
232
244
  };
233
245
  } catch (o) {
@@ -240,7 +252,7 @@ const _ = {
240
252
  method: a = "POST"
241
253
  }) => {
242
254
  const o = `Bearer ${e}`;
243
- return await fetch(`${ie}/api/${r}`, {
255
+ return await fetch(`${le}/api/${r}`, {
244
256
  method: a,
245
257
  credentials: "include",
246
258
  headers: {
@@ -263,7 +275,7 @@ try {
263
275
  });
264
276
  } catch {
265
277
  }
266
- const P = "thead", Q = "tfoot", N = "tbody", M = {
278
+ const P = "thead", Q = "tfoot", N = "tbody", O = {
267
279
  ASC: "asc",
268
280
  DESC: "desc"
269
281
  }, Be = ({
@@ -273,7 +285,7 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
273
285
  stickyHeader: a,
274
286
  stickyFooter: o
275
287
  }) => ({
276
- wrapper: n(
288
+ wrapper: i(
277
289
  "not-prose relative w-full rounded-lg shadow-md",
278
290
  {
279
291
  "overflow-x-auto": !a && !o,
@@ -285,13 +297,13 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
285
297
  },
286
298
  t
287
299
  ),
288
- table: n("my-0 w-full text-left text-sm", r, {
300
+ table: i("my-0 w-full text-left text-sm", r, {
289
301
  "text-copy-light": e === "dark",
290
302
  "text-copy-dark": e === "light",
291
303
  "text-copy-light dark:text-copy-dark": e === "system",
292
304
  "text-copy-dark dark:text-copy-light": e === "alt-system"
293
305
  }),
294
- caption: n("py-2 text-sm font-bold", {
306
+ caption: i("py-2 text-sm font-bold", {
295
307
  "text-copy-light": e === "dark",
296
308
  "text-copy-dark": e === "light",
297
309
  "text-copy-light dark:text-copy-dark": e === "system",
@@ -301,7 +313,7 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
301
313
  className: e,
302
314
  stickyHeader: r,
303
315
  mode: t
304
- }) => n(
316
+ }) => i(
305
317
  {
306
318
  "sticky top-0 z-10": r,
307
319
  "shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": r && t === "dark",
@@ -314,7 +326,7 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
314
326
  className: e,
315
327
  stickyFooter: r,
316
328
  mode: t
317
- }) => n(
329
+ }) => i(
318
330
  {
319
331
  "sticky bottom-0 z-10": r,
320
332
  "shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": r && t === "dark",
@@ -323,11 +335,11 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
323
335
  "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"
324
336
  },
325
337
  e
326
- ), Ve = ({
338
+ ), ze = ({
327
339
  mode: e,
328
340
  className: r,
329
341
  cellWrapper: t
330
- }) => t === P || t === Q ? n(
342
+ }) => t === P || t === Q ? i(
331
343
  {
332
344
  "bg-table-head-dark": e === "dark",
333
345
  "bg-table-head-light": e === "light",
@@ -335,7 +347,7 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
335
347
  "bg-table-head-light dark:bg-table-head-dark": e === "alt-system"
336
348
  },
337
349
  r
338
- ) : n(
350
+ ) : i(
339
351
  "border-b last:border-0",
340
352
  {
341
353
  "border-table-dark": e === "dark",
@@ -348,12 +360,12 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
348
360
  "odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === N && e === "alt-system"
349
361
  },
350
362
  r
351
- ), Oe = ({
363
+ ), Ve = ({
352
364
  cellWrapper: e,
353
365
  className: r,
354
366
  compact: t,
355
367
  mode: a
356
- }) => n(
368
+ }) => i(
357
369
  {
358
370
  "text-copy-light": a === "dark",
359
371
  "text-copy-dark": a === "light",
@@ -364,31 +376,31 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
364
376
  "px-2 py-1.5": t
365
377
  },
366
378
  r
367
- ), Me = ({
379
+ ), Oe = ({
368
380
  buttonClassName: e
369
- }) => n("rounded-none text-sm", e), ae = "av-button", ce = "icon", ze = "button", Ue = "link", Pe = ({
381
+ }) => i("rounded-none text-sm", e), ae = "av-button", ce = "icon", Me = "button", Ue = "link", Pe = ({
370
382
  type: e,
371
383
  size: r,
372
384
  labelRight: t,
373
385
  labelLeft: a,
374
386
  align: o
375
387
  }) => {
376
- const i = "text-sm font-medium max-h-8 py-0", l = "text-base font-medium max-h-9 py-1", c = "text-lg font-medium max-h-12 py-2";
388
+ const l = "text-sm font-medium max-h-8 py-0", n = "text-base font-medium max-h-9 py-1", c = "text-lg font-medium max-h-12 py-2";
377
389
  switch (e) {
378
- case ze:
379
- return n("px-4", {
380
- [i]: r === "small",
381
- [l]: r === "medium",
390
+ case Me:
391
+ return i("px-4", {
392
+ [l]: r === "small",
393
+ [n]: r === "medium",
382
394
  [c]: r === "large"
383
395
  });
384
396
  case Ue:
385
- return n("px-4 text-center", {
386
- [i]: r === "small",
387
- [l]: r === "medium",
397
+ return i("px-4 text-center", {
398
+ [l]: r === "small",
399
+ [n]: r === "medium",
388
400
  [c]: r === "large"
389
401
  });
390
402
  case ce:
391
- return n("inline-flex items-center", {
403
+ return i("inline-flex items-center", {
392
404
  "justify-center": o === "center",
393
405
  "justify-start": o === "left",
394
406
  "justify-end": o === "right",
@@ -408,13 +420,13 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
408
420
  radius: o
409
421
  }) => {
410
422
  if (r)
411
- return n("not-prose", {
423
+ return i("not-prose", {
412
424
  "rounded-full": o === "large",
413
425
  "rounded-md": o === "medium",
414
426
  "rounded-sm": o === "small"
415
427
  });
416
428
  if (a === "primary")
417
- return n("not-prose", {
429
+ return i("not-prose", {
418
430
  "rounded-full": o === "large",
419
431
  "rounded-md": o === "medium",
420
432
  "rounded-sm": o === "small",
@@ -425,7 +437,7 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
425
437
  "bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
426
438
  });
427
439
  if (a === "secondary")
428
- return n("not-prose", {
440
+ return i("not-prose", {
429
441
  "rounded-full": o === "large",
430
442
  "rounded-md": o === "medium",
431
443
  "rounded-sm": o === "small",
@@ -436,7 +448,7 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
436
448
  "bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
437
449
  });
438
450
  if (a === "danger")
439
- return n("not-prose", {
451
+ return i("not-prose", {
440
452
  "rounded-full": o === "large",
441
453
  "rounded-md": o === "medium",
442
454
  "rounded-sm": o === "small",
@@ -447,7 +459,7 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
447
459
  "bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
448
460
  });
449
461
  if (a === "selected")
450
- return n("not-prose", {
462
+ return i("not-prose", {
451
463
  "rounded-full": o === "large",
452
464
  "rounded-md": o === "medium",
453
465
  "rounded-sm": o === "small",
@@ -465,28 +477,28 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
465
477
  if (r)
466
478
  return "";
467
479
  if (t === "primary")
468
- return n("hover:text-copy-light-hover", {
480
+ return i("hover:text-copy-light-hover", {
469
481
  "hover:bg-action-dark-hover": e === "dark",
470
482
  "hover:bg-action-light-hover": e === "light",
471
483
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
472
484
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
473
485
  });
474
486
  if (t === "secondary")
475
- return n("hover:text-copy-light-hover", {
487
+ return i("hover:text-copy-light-hover", {
476
488
  "hover:bg-action-dark-hover": e === "light",
477
489
  "hover:bg-action-light-hover": e === "dark",
478
490
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
479
491
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
480
492
  });
481
493
  if (t === "danger")
482
- return n("hover:text-copy-light-hover", {
494
+ return i("hover:text-copy-light-hover", {
483
495
  "hover:bg-action-danger-dark-hover": e === "dark",
484
496
  "hover:bg-action-danger-light-hover": e === "light",
485
497
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
486
498
  "hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
487
499
  });
488
500
  if (t === "selected")
489
- return n("hover:text-copy-light-hover", {
501
+ return i("hover:text-copy-light-hover", {
490
502
  "hover:bg-action-selected-dark-hover": e === "dark",
491
503
  "hover:bg-action-selected-light-hover": e === "light",
492
504
  "hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
@@ -500,28 +512,28 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
500
512
  if (r)
501
513
  return "";
502
514
  if (t === "primary")
503
- return n("active:text-copy-light-active", {
515
+ return i("active:text-copy-light-active", {
504
516
  "active:bg-action-dark-active": e === "dark",
505
517
  "active:bg-action-light-active": e === "light",
506
518
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
507
519
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
508
520
  });
509
521
  if (t === "secondary")
510
- return n("active:text-copy-light-active", {
522
+ return i("active:text-copy-light-active", {
511
523
  "active:bg-action-dark-active": e === "light",
512
524
  "active:bg-action-light-active": e === "dark",
513
525
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
514
526
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
515
527
  });
516
528
  if (t === "danger")
517
- return n("active:text-copy-lighter-active", {
529
+ return i("active:text-copy-lighter-active", {
518
530
  "active:bg-action-danger-dark-active": e === "dark",
519
531
  "active:bg-action-danger-light-active": e === "light",
520
532
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
521
533
  "active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
522
534
  });
523
535
  if (t === "selected")
524
- return n("active:text-copy-lighter-active", {
536
+ return i("active:text-copy-lighter-active", {
525
537
  "active:bg-action-selected-dark-active": e === "dark",
526
538
  "active:bg-action-selected-light-active": e === "light",
527
539
  "active:bg-action-selected-dark-active dark:active:bg-action-selected-light-active": e === "system",
@@ -535,28 +547,28 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
535
547
  if (r)
536
548
  return "border border-transparent";
537
549
  if (t === "primary")
538
- return n("border", {
550
+ return i("border", {
539
551
  "border-border-dark": e === "dark",
540
552
  "border-border-accent": e === "light",
541
553
  "border-border-dark dark:border-border-accent": e === "system",
542
554
  "border-border-accent dark:border-border-dark": e === "alt-system"
543
555
  });
544
556
  if (t === "secondary")
545
- return n("border", {
557
+ return i("border", {
546
558
  "border-border-dark": e === "light",
547
559
  "border-border-accent": e === "dark",
548
560
  "border-border-dark dark:border-border-accent": e === "alt-system",
549
561
  "border-border-accent dark:border-border-dark": e === "system"
550
562
  });
551
563
  if (t === "danger")
552
- return n("border", {
564
+ return i("border", {
553
565
  "border-border-danger-dark": e === "dark",
554
566
  "border-border-danger-medium": e === "light",
555
567
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
556
568
  "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
557
569
  });
558
570
  if (t === "selected")
559
- return n("border", {
571
+ return i("border", {
560
572
  "border-border-selected-dark": e === "dark",
561
573
  "border-border-selected-medium": e === "light",
562
574
  "border-border-selected-dark dark:border-border-selected-medium": e === "system",
@@ -564,7 +576,7 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
564
576
  });
565
577
  }, je = ({
566
578
  focusMode: e
567
- }) => n("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
579
+ }) => i("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
568
580
  "focus:outline-focus-dark": e === "dark",
569
581
  "focus:outline-focus-light": e === "light",
570
582
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -575,8 +587,8 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
575
587
  raw: t,
576
588
  mode: a,
577
589
  focusMode: o,
578
- disabled: i,
579
- fullWidth: l,
590
+ disabled: l,
591
+ fullWidth: n,
580
592
  size: c,
581
593
  noBorder: d,
582
594
  labelRight: u,
@@ -586,7 +598,7 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
586
598
  noTruncate: b,
587
599
  align: p,
588
600
  radius: w
589
- }) => (h || (h = "primary"), t ? n(ae, r) : n(
601
+ }) => (h || (h = "primary"), t ? i(ae, r) : i(
590
602
  ae,
591
603
  Fe({
592
604
  mode: a,
@@ -598,11 +610,11 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
598
610
  Pe({ type: e, size: c, labelRight: u, labelLeft: m, align: p }),
599
611
  We({ mode: a, variant: h, noBorder: d }),
600
612
  je({ focusMode: o }),
601
- Ge({ mode: a, variant: h, disabled: i }),
602
- De({ mode: a, variant: h, disabled: i }),
613
+ Ge({ mode: a, variant: h, disabled: l }),
614
+ De({ mode: a, variant: h, disabled: l }),
603
615
  {
604
- "w-full": l,
605
- "disabled:cursor-not-allowed disabled:opacity-50": i
616
+ "w-full": n,
617
+ "disabled:cursor-not-allowed disabled:opacity-50": l
606
618
  },
607
619
  r
608
620
  )), Je = (e, r, t) => {
@@ -614,8 +626,8 @@ const P = "thead", Q = "tfoot", N = "tbody", M = {
614
626
  "button",
615
627
  {
616
628
  ref: r,
617
- onClick: (i) => {
618
- Je(i, a, t);
629
+ onClick: (l) => {
630
+ Je(l, a, t);
619
631
  },
620
632
  ...o
621
633
  }
@@ -642,8 +654,8 @@ const de = U.forwardRef(
642
654
  mode: t = "system",
643
655
  focusMode: a = "system",
644
656
  fullWidth: o = !1,
645
- className: i,
646
- type: l = "button",
657
+ className: l,
658
+ type: n = "button",
647
659
  raw: c = !1,
648
660
  noBorder: d = !1,
649
661
  "aria-label": u,
@@ -664,7 +676,7 @@ const de = U.forwardRef(
664
676
  fullWidth: o,
665
677
  disabled: r,
666
678
  raw: c,
667
- className: i,
679
+ className: l,
668
680
  noBorder: d,
669
681
  size: g,
670
682
  labelRight: h,
@@ -672,12 +684,12 @@ const de = U.forwardRef(
672
684
  noBackground: p,
673
685
  align: w,
674
686
  radius: B
675
- }), G = n({
687
+ }), G = i({
676
688
  "text-copy-accent-dark": t === "light" && !c,
677
689
  "text-copy-light": t === "dark" && !c,
678
690
  "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !c,
679
691
  "text-copy-light dark:text-copy-accent-dark": t === "system" && !c
680
- }), f = S ? n(
692
+ }), f = S ? i(
681
693
  "relative",
682
694
  "focus-within:static",
683
695
  "focus-within:after:border-transparent",
@@ -700,7 +712,7 @@ const de = U.forwardRef(
700
712
  ref: L,
701
713
  className: F,
702
714
  disabled: r,
703
- type: l,
715
+ type: n,
704
716
  "aria-label": u || m,
705
717
  ...H,
706
718
  children: [
@@ -719,12 +731,12 @@ const X = ({
719
731
  viewBox: t,
720
732
  className: a,
721
733
  defaultViewBox: o,
722
- defaultClassName: i,
723
- title: l,
734
+ defaultClassName: l,
735
+ title: n,
724
736
  semantic: c = !1,
725
737
  ...d
726
738
  }) => {
727
- const u = n(a || i);
739
+ const u = i(a || l);
728
740
  return /* @__PURE__ */ x(Ne, { children: [
729
741
  /* @__PURE__ */ s(
730
742
  "svg",
@@ -740,7 +752,7 @@ const X = ({
740
752
  children: e
741
753
  }
742
754
  ),
743
- l && c && /* @__PURE__ */ s("span", { className: "sr-only", children: l })
755
+ n && c && /* @__PURE__ */ s("span", { className: "sr-only", children: n })
744
756
  ] });
745
757
  };
746
758
  /*!
@@ -854,14 +866,14 @@ const T = U.createContext({
854
866
  stickyHeader: !1,
855
867
  stickyFooter: !1,
856
868
  compact: !1
857
- }), At = ({
869
+ }), $t = ({
858
870
  children: e,
859
871
  mode: r = "system",
860
872
  caption: t,
861
873
  compact: a,
862
874
  summary: o,
863
- className: i,
864
- wrapperClassName: l,
875
+ className: l,
876
+ wrapperClassName: n,
865
877
  maxHeight: c,
866
878
  stickyHeader: d,
867
879
  stickyFooter: u,
@@ -869,8 +881,8 @@ const T = U.createContext({
869
881
  }) => {
870
882
  const g = Be({
871
883
  mode: r,
872
- className: i,
873
- wrapperClassName: l,
884
+ className: l,
885
+ wrapperClassName: n,
874
886
  stickyHeader: d,
875
887
  stickyFooter: u
876
888
  });
@@ -893,7 +905,7 @@ const T = U.createContext({
893
905
  )
894
906
  }
895
907
  );
896
- }, $t = ({
908
+ }, At = ({
897
909
  children: e,
898
910
  className: r,
899
911
  ...t
@@ -927,7 +939,7 @@ const T = U.createContext({
927
939
  className: r,
928
940
  ...t
929
941
  }) => {
930
- const a = R(T), o = Ve({
942
+ const a = R(T), o = ze({
931
943
  mode: a.mode,
932
944
  cellWrapper: a.cellWrapper,
933
945
  className: r
@@ -939,35 +951,35 @@ const T = U.createContext({
939
951
  className: t,
940
952
  ...a
941
953
  }) => {
942
- const o = R(T), i = r || (o.cellWrapper === P ? "th" : "td"), l = Oe({
954
+ const o = R(T), l = r || (o.cellWrapper === P ? "th" : "td"), n = Ve({
943
955
  cellWrapper: o.cellWrapper,
944
956
  className: t,
945
957
  mode: o.mode,
946
958
  compact: o.compact
947
959
  });
948
- return /* @__PURE__ */ s(i, { className: l, ...a, children: e });
960
+ return /* @__PURE__ */ s(l, { className: n, ...a, children: e });
949
961
  }, Lt = ({
950
962
  align: e,
951
963
  children: r,
952
964
  buttonClassName: t,
953
965
  className: a,
954
966
  component: o,
955
- focusMode: i = "alt-system",
956
- mode: l = "alt-system",
967
+ focusMode: l = "alt-system",
968
+ mode: n = "alt-system",
957
969
  onClick: c,
958
970
  sortDirection: d,
959
971
  sortedCell: u,
960
972
  cellId: m,
961
973
  ...g
962
974
  }) => {
963
- const h = Me({ buttonClassName: t });
975
+ const h = Oe({ buttonClassName: t });
964
976
  return /* @__PURE__ */ s(
965
977
  Ke,
966
978
  {
967
979
  component: o,
968
980
  className: a,
969
981
  role: "columnheader",
970
- "aria-sort": d === M.ASC && u === m ? "ascending" : d === M.DESC && u === m ? "descending" : "other",
982
+ "aria-sort": d === O.ASC && u === m ? "ascending" : d === O.DESC && u === m ? "descending" : "other",
971
983
  ...g,
972
984
  children: /* @__PURE__ */ s(
973
985
  de,
@@ -977,11 +989,11 @@ const T = U.createContext({
977
989
  onClick: c,
978
990
  align: e,
979
991
  noBorder: !0,
980
- focusMode: i,
981
- mode: l,
992
+ focusMode: l,
993
+ mode: n,
982
994
  fullWidth: !0,
983
995
  labelRight: r,
984
- children: d === M.ASC && u === m ? /* @__PURE__ */ s(Ye, { className: "size-4", monotone: !0 }) : d === M.DESC && u === m ? /* @__PURE__ */ s(Xe, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ s(Qe, { className: "size-4", monotone: !0 })
996
+ children: d === O.ASC && u === m ? /* @__PURE__ */ s(Ye, { className: "size-4", monotone: !0 }) : d === O.DESC && u === m ? /* @__PURE__ */ s(Xe, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ s(Qe, { className: "size-4", monotone: !0 })
985
997
  }
986
998
  )
987
999
  }
@@ -1003,12 +1015,12 @@ try {
1003
1015
  const ue = "av-text-area", Ze = "av-text-area-wrapper", J = "av-text-area-helper-text", et = "av-text-area__control--right";
1004
1016
  function tt() {
1005
1017
  const e = k(!1);
1006
- return $(() => (e.current = !0, () => {
1018
+ return A(() => (e.current = !0, () => {
1007
1019
  e.current = !1;
1008
- }), []), z(() => e.current, []);
1020
+ }), []), M(() => e.current, []);
1009
1021
  }
1010
1022
  function rt(e) {
1011
- return ne(() => e.every((r) => r == null) ? () => {
1023
+ return ie(() => e.every((r) => r == null) ? () => {
1012
1024
  } : (r) => {
1013
1025
  e.forEach((t) => {
1014
1026
  typeof t == "function" ? t(r) : t != null && (t.current = r);
@@ -1026,17 +1038,17 @@ const at = {
1026
1038
  right: 0
1027
1039
  };
1028
1040
  function ot(e) {
1029
- const r = tt(), t = k(0), a = k(null), [o, i] = A(at), l = ne(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
1041
+ const r = tt(), t = k(0), a = k(null), [o, l] = $(at), n = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
1030
1042
  const d = c[0];
1031
1043
  d && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
1032
- a.current && r() && i(d.contentRect);
1044
+ a.current && r() && l(d.contentRect);
1033
1045
  }));
1034
1046
  }), [r]);
1035
- return $(() => (a.current && (l == null || l.observe(a.current, e)), () => {
1036
- l == null || l.disconnect(), t.current && cancelAnimationFrame(t.current);
1037
- }), [l, e]), [a, o];
1047
+ return A(() => (a.current && (n == null || n.observe(a.current, e)), () => {
1048
+ n == null || n.disconnect(), t.current && cancelAnimationFrame(t.current);
1049
+ }), [n, e]), [a, o];
1038
1050
  }
1039
- function nt({
1051
+ function it({
1040
1052
  value: e,
1041
1053
  defaultValue: r,
1042
1054
  finalValue: t,
@@ -1044,18 +1056,18 @@ function nt({
1044
1056
  },
1045
1057
  initialControlledDelay: o = 0
1046
1058
  }) {
1047
- const [i, l] = A(!1), [c, d] = A(
1059
+ const [l, n] = $(!1), [c, d] = $(
1048
1060
  r !== void 0 ? r : t
1049
1061
  ), u = (m) => {
1050
1062
  d(m), a == null || a(m);
1051
1063
  };
1052
- return $(() => {
1053
- (async () => e !== void 0 && !i && o > 0 && (await new Promise(
1064
+ return A(() => {
1065
+ (async () => e !== void 0 && !l && o > 0 && (await new Promise(
1054
1066
  (m) => setTimeout(m, o)
1055
- ), l(!0)))();
1056
- }, [e, o, i]), e !== void 0 ? !i && o > 0 ? ["", a, !0] : [e, a, !0] : [c, u, !1];
1067
+ ), n(!0)))();
1068
+ }, [e, o, l]), e !== void 0 ? !l && o > 0 ? ["", a, !0] : [e, a, !0] : [c, u, !1];
1057
1069
  }
1058
- function lt(e) {
1070
+ function nt(e) {
1059
1071
  const r = Ce();
1060
1072
  if (!e)
1061
1073
  return r;
@@ -1066,7 +1078,7 @@ function lt(e) {
1066
1078
  return typeof t == "number" || typeof t == "string" ? `${a}${t}` : `${a}${r}`;
1067
1079
  }
1068
1080
  }
1069
- const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", it = {
1081
+ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", lt = {
1070
1082
  alert: null,
1071
1083
  alertdialog: null,
1072
1084
  log: "polite",
@@ -1119,21 +1131,21 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", it = {
1119
1131
  announcementDelay: t,
1120
1132
  clearAnnouncementDelay: a,
1121
1133
  clearAnnouncementTimeoutRef: o,
1122
- onAnnouncementClear: i,
1123
- dispatch: l
1134
+ onAnnouncementClear: l,
1135
+ dispatch: n
1124
1136
  }) => {
1125
1137
  clearTimeout(r.current), t ? r.current = setTimeout(oe, t, {
1126
1138
  children: e,
1127
1139
  clearAnnouncementDelay: a,
1128
1140
  clearAnnouncementTimeoutRef: o,
1129
- onAnnouncementClear: i,
1130
- dispatch: l
1141
+ onAnnouncementClear: l,
1142
+ dispatch: n
1131
1143
  }) : oe({
1132
1144
  children: e,
1133
1145
  clearAnnouncementDelay: a,
1134
1146
  clearAnnouncementTimeoutRef: o,
1135
- onAnnouncementClear: i,
1136
- dispatch: l
1147
+ onAnnouncementClear: l,
1148
+ dispatch: n
1137
1149
  });
1138
1150
  };
1139
1151
  function ut({
@@ -1142,8 +1154,8 @@ function ut({
1142
1154
  politeness: t,
1143
1155
  role: a = null,
1144
1156
  announcementDelay: o,
1145
- clearAnnouncementDelay: i,
1146
- onAnnouncementClear: l,
1157
+ clearAnnouncementDelay: l,
1158
+ onAnnouncementClear: n,
1147
1159
  visible: c,
1148
1160
  ...d
1149
1161
  }) {
@@ -1151,23 +1163,23 @@ function ut({
1151
1163
  announcement: null
1152
1164
  });
1153
1165
  let b = t;
1154
- typeof b > "u" && (b = a ? it[a] : "assertive"), $(() => {
1166
+ typeof b > "u" && (b = a ? lt[a] : "assertive"), A(() => {
1155
1167
  dt({
1156
1168
  announcementTimeoutRef: u,
1157
1169
  announcementDelay: o,
1158
1170
  children: e,
1159
- clearAnnouncementDelay: i,
1171
+ clearAnnouncementDelay: l,
1160
1172
  clearAnnouncementTimeoutRef: m,
1161
- onAnnouncementClear: l,
1173
+ onAnnouncementClear: n,
1162
1174
  dispatch: h
1163
1175
  });
1164
1176
  }, [
1165
1177
  e,
1166
1178
  o,
1167
- i,
1168
- l
1179
+ l,
1180
+ n
1169
1181
  ]);
1170
- const p = n(r, {
1182
+ const p = i(r, {
1171
1183
  "sr-only": !c
1172
1184
  });
1173
1185
  return /* @__PURE__ */ s(
@@ -1196,14 +1208,14 @@ try {
1196
1208
  }
1197
1209
  const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ht = ({
1198
1210
  mode: e
1199
- }) => n({
1211
+ }) => i({
1200
1212
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
1201
1213
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
1202
1214
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
1203
1215
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
1204
1216
  }), gt = ({
1205
1217
  focusMode: e
1206
- }) => n("focus:outline focus:outline-2 focus:outline-offset-2", {
1218
+ }) => i("focus:outline focus:outline-2 focus:outline-offset-2", {
1207
1219
  "focus:outline-focus-dark": e === "dark",
1208
1220
  "focus:outline-focus-light": e === "light",
1209
1221
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -1211,7 +1223,7 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1211
1223
  }), bt = ({
1212
1224
  noBorder: e,
1213
1225
  error: r
1214
- }) => n("border-2", {
1226
+ }) => i("border-2", {
1215
1227
  "border-border-dark": !e && !r,
1216
1228
  "focus:border-border-dark": !e && r,
1217
1229
  "border-border-error-dark": !e && r,
@@ -1225,16 +1237,16 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1225
1237
  if (r)
1226
1238
  return "";
1227
1239
  if (e)
1228
- return n("absolute px-2 cursor-not-allowed opacity-50 font-medium");
1240
+ return i("absolute px-2 cursor-not-allowed opacity-50 font-medium");
1229
1241
  if (!t)
1230
- return n("absolute px-2 cursor-text font-medium", {
1242
+ return i("absolute px-2 cursor-text font-medium", {
1231
1243
  "text-copy-medium": a === "dark",
1232
1244
  "text-copy-dark": a === "light",
1233
1245
  "text-copy-dark dark:text-copy-medium": a === "system",
1234
1246
  "text-copy-medium dark:text-copy-dark": a === "alt-system"
1235
1247
  });
1236
1248
  if (t)
1237
- return n("absolute px-2 cursor-text font-medium", {
1249
+ return i("absolute px-2 cursor-text font-medium", {
1238
1250
  "text-copy-medium": a === "dark",
1239
1251
  "text-copy-error-dark": a === "light",
1240
1252
  "text-copy-error-dark dark:text-copy-error-light": a === "system",
@@ -1249,19 +1261,19 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1249
1261
  if (r)
1250
1262
  return "";
1251
1263
  if (a)
1252
- return n(
1264
+ return i(
1253
1265
  J,
1254
1266
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
1255
1267
  );
1256
1268
  if (!e)
1257
- return n(J, "absolute px-2 font-medium", {
1269
+ return i(J, "absolute px-2 font-medium", {
1258
1270
  "text-copy-medium": t === "dark",
1259
1271
  "text-copy-dark": t === "light",
1260
1272
  "text-copy-dark dark:text-copy-medium": t === "system",
1261
1273
  "text-copy-medium dark:text-copy-dark": t === "alt-system"
1262
1274
  });
1263
1275
  if (e)
1264
- return n(J, "absolute px-2 font-medium", {
1276
+ return i(J, "absolute px-2 font-medium", {
1265
1277
  "text-copy-error-light": t === "dark",
1266
1278
  "text-copy-error-dark": t === "light",
1267
1279
  "text-copy-error-dark dark:text-copy-error-light": t === "system",
@@ -1273,23 +1285,23 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1273
1285
  raw: t,
1274
1286
  focusMode: a,
1275
1287
  disabled: o,
1276
- noBorder: i,
1277
- error: l,
1288
+ noBorder: l,
1289
+ error: n,
1278
1290
  mode: c
1279
1291
  }) => {
1280
- const d = t ? e : n(
1292
+ const d = t ? e : i(
1281
1293
  "relative flex w-full flex-col justify-center",
1282
1294
  Ze,
1283
1295
  e
1284
- ), u = t ? n(r) : n(
1296
+ ), u = t ? i(r) : i(
1285
1297
  ue,
1286
1298
  r,
1287
1299
  mt(),
1288
1300
  ht({ mode: c }),
1289
1301
  gt({ focusMode: a }),
1290
1302
  bt({
1291
- noBorder: i,
1292
- error: l
1303
+ noBorder: l,
1304
+ error: n
1293
1305
  }),
1294
1306
  {
1295
1307
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -1297,14 +1309,14 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1297
1309
  ), m = t ? void 0 : "sr-only", g = pt({
1298
1310
  disabled: o,
1299
1311
  raw: t,
1300
- error: l,
1312
+ error: n,
1301
1313
  mode: c
1302
1314
  }), h = yt({
1303
- error: l,
1315
+ error: n,
1304
1316
  raw: t,
1305
1317
  mode: c,
1306
1318
  disabled: o
1307
- }), b = t ? void 0 : n(et, "absolute");
1319
+ }), b = t ? void 0 : i(et, "absolute");
1308
1320
  return {
1309
1321
  wrapper: d,
1310
1322
  textArea: u,
@@ -1319,14 +1331,14 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1319
1331
  currentLabelOffset: t = 0,
1320
1332
  currentHelperTextOffset: a = 0
1321
1333
  }) => {
1322
- let o, i;
1334
+ let o, l;
1323
1335
  if (e > 0 && e !== r) {
1324
- const l = e - r, c = Math.abs(l / 24);
1325
- o = t + -1 * Math.sign(l) * (12 * c), i = a + Math.sign(l) * (12 * c);
1336
+ const n = e - r, c = Math.abs(n / 24);
1337
+ o = t + -1 * Math.sign(n) * (12 * c), l = a + Math.sign(n) * (12 * c);
1326
1338
  }
1327
1339
  return {
1328
1340
  labelOffset: o,
1329
- helperTextOffset: i,
1341
+ helperTextOffset: l,
1330
1342
  scrollHeight: e
1331
1343
  };
1332
1344
  }, vt = U.forwardRef(
@@ -1336,8 +1348,8 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1336
1348
  label: t,
1337
1349
  error: a = !1,
1338
1350
  raw: o = !1,
1339
- className: i,
1340
- textAreaClassName: l,
1351
+ className: l,
1352
+ textAreaClassName: n,
1341
1353
  mode: c = "system",
1342
1354
  focusMode: d = "system",
1343
1355
  value: u,
@@ -1353,18 +1365,18 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1353
1365
  onBlur: L,
1354
1366
  ...F
1355
1367
  }, G) => {
1356
- const f = k(null), ge = rt([G, f]), [be, V] = ot(), D = k(80), Y = k(-25), C = k(null), K = k(30), W = k(null), I = lt({ id: e, prefix: `${ue}-` }), [pe, ye] = A(0), [fe, Z] = A(
1368
+ const f = k(null), ge = rt([G, f]), [be, z] = ot(), D = k(80), Y = k(-25), C = k(null), K = k(30), W = k(null), I = nt({ id: e, prefix: `${ue}-` }), [pe, ye] = $(0), [fe, Z] = $(
1357
1369
  !!(!w && p)
1358
1370
  ), ke = `${r} error, ${p}`, E = ft({
1359
- className: i,
1360
- textAreaClassName: l,
1371
+ className: l,
1372
+ textAreaClassName: n,
1361
1373
  error: a,
1362
1374
  raw: o,
1363
1375
  focusMode: d,
1364
1376
  disabled: g,
1365
1377
  noBorder: h,
1366
1378
  mode: c
1367
- }), [v, ve] = nt({
1379
+ }), [v, ve] = it({
1368
1380
  value: u,
1369
1381
  initialControlledDelay: 20,
1370
1382
  defaultValue: m,
@@ -1382,11 +1394,11 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1382
1394
  }, we = (y) => {
1383
1395
  w && p && !v && Z(!1), L && L(y);
1384
1396
  };
1385
- return O(() => {
1386
- V && V.width && ye(V.width + 18 + 10);
1387
- }, [V]), O(() => {
1397
+ return V(() => {
1398
+ z && z.width && ye(z.width + 18 + 10);
1399
+ }, [z]), V(() => {
1388
1400
  o || f && f.current && v !== void 0 && (f.current.style.height = "inherit", f.current.style.height = f.current.scrollHeight + "px");
1389
- }, [v, o]), O(() => {
1401
+ }, [v, o]), V(() => {
1390
1402
  o || setTimeout(() => {
1391
1403
  var y;
1392
1404
  (y = C == null ? void 0 : C.current) == null || y.style.setProperty(
@@ -1394,7 +1406,7 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1394
1406
  v ? "none" : "all 0.2s ease-out"
1395
1407
  );
1396
1408
  }, 0);
1397
- }, [v, o]), O(() => {
1409
+ }, [v, o]), V(() => {
1398
1410
  var y, ee;
1399
1411
  if (!o && f && f.current && v !== void 0) {
1400
1412
  const { labelOffset: j, helperTextOffset: q, scrollHeight: Ee } = kt({
@@ -1478,14 +1490,14 @@ export {
1478
1490
  vt as Le,
1479
1491
  St as SERVICE_TYPES,
1480
1492
  Lt as be,
1481
- At as ce,
1482
- M as f,
1493
+ $t as ce,
1494
+ O as f,
1483
1495
  Bt as ge,
1484
1496
  Nt as h,
1485
1497
  Ht as he,
1486
1498
  Rt as ne,
1487
1499
  Ke as oe,
1488
1500
  It as restCall,
1489
- $t as se,
1501
+ At as se,
1490
1502
  Ct as serviceCall
1491
1503
  };