@versini/sassysaint 5.4.14 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,73 +1,46 @@
1
- import { jsxs as x, jsx as s, Fragment as Te } from "react/jsx-runtime";
2
- import { g as Ne } from "./index.CYifYdxQ.js";
3
- import U, { useSyncExternalStore as Se, useCallback as M, useEffect as $, useContext as R, useRef as k, useState as I, useLayoutEffect as V, useMemo as ie, useId as Ce, useReducer as Ae } from "react";
1
+ import N, { useSyncExternalStore as He, useCallback as P, useEffect as z, useContext as L, useRef as f, useState as $, useLayoutEffect as B, useMemo as me, useId as Be, useReducer as ze } from "react";
2
+ import { DEFAULT_AI_ENGINE as X } from "./index.UHRCFkiB.js";
4
3
  import i from "clsx";
5
- const Tt = ({
6
- className: e,
7
- viewBox: r,
8
- title: t,
9
- monotone: a,
10
- ...o
11
- }) => /* @__PURE__ */ x(
12
- Ne,
13
- {
14
- defaultViewBox: "0 0 512 512",
15
- size: "size-5",
16
- viewBox: r,
17
- className: e,
18
- title: t || "Edit",
19
- ...o,
20
- children: [
21
- /* @__PURE__ */ s(
22
- "path",
23
- {
24
- opacity: a ? "1" : "0.4",
25
- 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"
26
- }
27
- ),
28
- /* @__PURE__ */ s("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" })
29
- ]
30
- }
31
- );
32
- function ne(e, r) {
4
+ import { jsx as c, jsxs as C, Fragment as Le } from "react/jsx-runtime";
5
+ function ge(e, r) {
33
6
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: r }));
34
7
  }
35
- const te = (e, r) => {
8
+ const le = (e, r) => {
36
9
  const t = JSON.stringify(
37
10
  typeof r == "function" ? r() : r
38
11
  );
39
- window.localStorage.setItem(e, t), ne(e, t);
40
- }, Ie = (e) => {
41
- window.localStorage.removeItem(e), ne(e, null);
42
- }, re = (e) => window.localStorage.getItem(e), $e = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
43
- function Nt({
12
+ window.localStorage.setItem(e, t), ge(e, t);
13
+ }, Me = (e) => {
14
+ window.localStorage.removeItem(e), ge(e, null);
15
+ }, se = (e) => window.localStorage.getItem(e), Oe = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
16
+ function Rt({
44
17
  key: e,
45
18
  initialValue: r
46
19
  }) {
47
- const t = Se($e, () => re(e)), a = M(
48
- (n) => {
20
+ const t = He(Oe, () => se(e)), a = P(
21
+ (l) => {
49
22
  try {
50
- const l = typeof n == "function" ? n(JSON.parse(t)) : n;
51
- l == null ? Ie(e) : te(e, l);
52
- } catch (l) {
53
- console.warn(l);
23
+ const s = typeof l == "function" ? l(JSON.parse(t)) : l;
24
+ s == null ? Me(e) : le(e, s);
25
+ } catch (s) {
26
+ console.warn(s);
54
27
  }
55
28
  },
56
29
  [e, t]
57
- ), o = M(() => {
30
+ ), o = P(() => {
58
31
  a(r);
59
- }, [r, a]), c = M(() => {
32
+ }, [r, a]), n = P(() => {
60
33
  a(null);
61
34
  }, [a]);
62
- return $(() => {
35
+ return z(() => {
63
36
  try {
64
- re(e) === null && typeof r < "u" && te(e, r);
65
- } catch (n) {
66
- console.warn(n);
37
+ se(e) === null && typeof r < "u" && le(e, r);
38
+ } catch (l) {
39
+ console.warn(l);
67
40
  }
68
- }, [e, r]), [t ? JSON.parse(t) : null, a, o, c];
41
+ }, [e, r]), [t ? JSON.parse(t) : null, a, o, n];
69
42
  }
70
- const _ = {
43
+ const w = {
71
44
  GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
72
45
  location(latitude: $latitude, longitude: $longitude) {
73
46
  country
@@ -171,44 +144,44 @@ const _ = {
171
144
  engine: $engine,
172
145
  tags: $tags)
173
146
  }`
174
- }, St = {
147
+ }, Ht = {
175
148
  GET_LOCATION: {
176
- schema: _.GET_LOCATION,
149
+ schema: w.GET_LOCATION,
177
150
  method: "location"
178
151
  },
179
152
  GET_CHATS: {
180
- schema: _.GET_CHATS,
153
+ schema: w.GET_CHATS,
181
154
  method: "chats"
182
155
  },
183
156
  GET_CHATS_STATS: {
184
- schema: _.GET_CHATS_STATS,
157
+ schema: w.GET_CHATS_STATS,
185
158
  method: "chatsStats"
186
159
  },
187
160
  GET_CHAT: {
188
- schema: _.GET_CHAT,
161
+ schema: w.GET_CHAT,
189
162
  method: "chatById"
190
163
  },
191
164
  DELETE_CHAT: {
192
- schema: _.DELETE_CHAT,
165
+ schema: w.DELETE_CHAT,
193
166
  method: "deleteChat"
194
167
  },
195
168
  ABOUT: {
196
- schema: _.ABOUT,
169
+ schema: w.ABOUT,
197
170
  method: "about"
198
171
  },
199
172
  GET_USER_PREFERENCES: {
200
- schema: _.GET_USER_PREFERENCES,
173
+ schema: w.GET_USER_PREFERENCES,
201
174
  method: "getUserPreferences"
202
175
  },
203
176
  SET_USER_PREFERENCES: {
204
- schema: _.SET_USER_PREFERENCES,
177
+ schema: w.SET_USER_PREFERENCES,
205
178
  method: "setUserPreferences"
206
179
  }
207
- }, ce = process.env.PUBLIC_SASSY_API_SERVER_URL, Re = async ({
180
+ }, he = process.env.PUBLIC_SASSY_API_SERVER_URL, Ve = async ({
208
181
  query: e,
209
182
  data: r,
210
183
  headers: t = {}
211
- }) => await fetch(`${ce}/graphql`, {
184
+ }) => await fetch(`${he}/graphql`, {
212
185
  method: "POST",
213
186
  credentials: "include",
214
187
  headers: {
@@ -220,39 +193,39 @@ const _ = {
220
193
  query: e,
221
194
  variables: r
222
195
  })
223
- }), Ct = async ({
196
+ }), Bt = async ({
224
197
  accessToken: e,
225
198
  type: r,
226
199
  params: t = {}
227
200
  }) => {
228
201
  const a = r != null && r.data ? r.data(t) : t;
229
202
  try {
230
- const o = `Bearer ${e}`, c = await Re({
203
+ const o = `Bearer ${e}`, n = await Ve({
231
204
  headers: {
232
205
  authorization: o
233
206
  },
234
207
  query: r.schema,
235
208
  data: a
236
209
  });
237
- if (c.status !== 200)
238
- return { status: c.status, data: [] };
239
- const { data: n, errors: l } = await c.json();
210
+ if (n.status !== 200)
211
+ return { status: n.status, data: [] };
212
+ const { data: l, errors: s } = await n.json();
240
213
  return {
241
- status: c.status,
242
- data: n[r.method],
243
- errors: l
214
+ status: n.status,
215
+ data: l[r.method],
216
+ errors: s
244
217
  };
245
218
  } catch (o) {
246
219
  return console.error(o), { status: 500, data: [] };
247
220
  }
248
- }, At = async ({
221
+ }, zt = async ({
249
222
  accessToken: e,
250
223
  name: r,
251
224
  data: t,
252
225
  method: a = "POST"
253
226
  }) => {
254
227
  const o = `Bearer ${e}`;
255
- return await fetch(`${ce}/api/${r}`, {
228
+ return await fetch(`${he}/api/${r}`, {
256
229
  method: a,
257
230
  credentials: "include",
258
231
  headers: {
@@ -261,7 +234,34 @@ const _ = {
261
234
  },
262
235
  body: JSON.stringify(t)
263
236
  });
264
- };
237
+ }, Lt = N.createContext({
238
+ state: {
239
+ id: "",
240
+ model: X,
241
+ engine: X,
242
+ usage: 0,
243
+ messages: [],
244
+ isComponent: !1,
245
+ tags: []
246
+ },
247
+ dispatch: () => {
248
+ },
249
+ serverStats: {
250
+ version: "",
251
+ models: [],
252
+ plugins: [],
253
+ engine: X,
254
+ engines: []
255
+ }
256
+ }), Mt = N.createContext({
257
+ state: { searchString: "", sortedCell: "", sortDirection: "" },
258
+ dispatch: () => {
259
+ }
260
+ }), Ot = N.createContext({
261
+ state: { tag: "" },
262
+ dispatch: () => {
263
+ }
264
+ });
265
265
  /*!
266
266
  @versini/ui-table v2.0.8
267
267
  © 2024 gizmette.com
@@ -275,10 +275,10 @@ try {
275
275
  });
276
276
  } catch {
277
277
  }
278
- const F = "thead", Q = "tfoot", T = "tbody", O = {
278
+ const G = "thead", K = "tfoot", A = "tbody", F = {
279
279
  ASC: "asc",
280
280
  DESC: "desc"
281
- }, Be = ({
281
+ }, Ue = ({
282
282
  mode: e,
283
283
  className: r,
284
284
  wrapperClassName: t,
@@ -309,7 +309,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
309
309
  "text-copy-light dark:text-copy-dark": e === "system",
310
310
  "text-copy-dark dark:text-copy-light": e === "alt-system"
311
311
  })
312
- }), He = ({
312
+ }), Fe = ({
313
313
  className: e,
314
314
  stickyHeader: r,
315
315
  mode: t
@@ -322,7 +322,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
322
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"
323
323
  },
324
324
  e
325
- ), ze = ({
325
+ ), Pe = ({
326
326
  className: e,
327
327
  stickyFooter: r,
328
328
  mode: t
@@ -335,11 +335,11 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
335
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"
336
336
  },
337
337
  e
338
- ), Le = ({
338
+ ), Ge = ({
339
339
  mode: e,
340
340
  className: r,
341
341
  cellWrapper: t
342
- }) => t === F || t === Q ? i(
342
+ }) => t === G || t === K ? i(
343
343
  {
344
344
  "bg-table-head-dark": e === "dark",
345
345
  "bg-table-head-light": e === "light",
@@ -351,16 +351,16 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
351
351
  "border-b last:border-0",
352
352
  {
353
353
  "border-table-dark": e === "dark",
354
- "odd:bg-table-dark-odd even:bg-table-dark-even": t === T && e === "dark",
354
+ "odd:bg-table-dark-odd even:bg-table-dark-even": t === A && e === "dark",
355
355
  "border-table-light": e === "light",
356
- "odd:bg-table-light-odd even:bg-table-light-even": t === T && e === "light",
356
+ "odd:bg-table-light-odd even:bg-table-light-even": t === A && e === "light",
357
357
  "border-table-dark dark:border-table-light": e === "system",
358
- "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",
358
+ "odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === A && e === "system",
359
359
  "border-table-light dark:border-table-dark": e === "alt-system",
360
- "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"
360
+ "odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === A && e === "alt-system"
361
361
  },
362
362
  r
363
- ), Ve = ({
363
+ ), De = ({
364
364
  cellWrapper: e,
365
365
  className: r,
366
366
  compact: t,
@@ -371,35 +371,35 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
371
371
  "text-copy-dark": a === "light",
372
372
  "text-copy-light dark:text-copy-dark": a === "system",
373
373
  "text-copy-dark dark:text-copy-light": a === "alt-system",
374
- "px-4 py-3": !t && (e === F || e === Q),
375
- "p-4": !t && e === T,
374
+ "px-4 py-3": !t && (e === G || e === K),
375
+ "p-4": !t && e === A,
376
376
  "px-2 py-1.5": t
377
377
  },
378
378
  r
379
- ), Oe = ({
379
+ ), We = ({
380
380
  buttonClassName: e
381
- }) => i("rounded-none text-sm", e), ae = "av-button", le = "icon", Me = "button", Ue = "link", Fe = ({
381
+ }) => i("rounded-none text-sm", e), ce = "av-button", pe = "icon", je = "button", qe = "link", Je = ({
382
382
  type: e,
383
383
  size: r,
384
384
  labelRight: t,
385
385
  labelLeft: a,
386
386
  align: o
387
387
  }) => {
388
- const c = "text-sm font-medium max-h-8 py-0 px-2", n = "text-base font-medium max-h-9 py-1 px-3", l = "text-lg font-medium max-h-12 py-2 px-4";
388
+ const n = "text-sm font-medium max-h-8 py-0 px-2", l = "text-base font-medium max-h-9 py-1 px-3", s = "text-lg font-medium max-h-12 py-2 px-4";
389
389
  switch (e) {
390
- case Me:
390
+ case je:
391
391
  return i({
392
- [c]: r === "small",
393
- [n]: r === "medium",
394
- [l]: r === "large"
392
+ [n]: r === "small",
393
+ [l]: r === "medium",
394
+ [s]: r === "large"
395
395
  });
396
- case Ue:
396
+ case qe:
397
397
  return i("text-center", {
398
- [c]: r === "small",
399
- [n]: r === "medium",
400
- [l]: r === "large"
398
+ [n]: r === "small",
399
+ [l]: r === "medium",
400
+ [s]: r === "large"
401
401
  });
402
- case le:
402
+ case pe:
403
403
  return i("inline-flex items-center", {
404
404
  "justify-center": o === "center",
405
405
  "justify-start": o === "left",
@@ -412,7 +412,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
412
412
  "h-12 px-4 text-lg font-medium": r === "large" && (t || a)
413
413
  });
414
414
  }
415
- }, Pe = ({
415
+ }, Qe = ({
416
416
  mode: e,
417
417
  noBackground: r,
418
418
  noTruncate: t,
@@ -469,7 +469,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
469
469
  "bg-action-selected-dark text-copy-light dark:bg-action-selected-light dark:text-copy-lighter": e === "system",
470
470
  "bg-action-selected-light text-copy-lighter dark:bg-action-selected-dark dark:text-copy-light": e === "alt-system"
471
471
  });
472
- }, Ge = ({
472
+ }, Xe = ({
473
473
  mode: e,
474
474
  disabled: r,
475
475
  variant: t
@@ -504,7 +504,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
504
504
  "hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
505
505
  "hover:bg-action-selected-light-hover dark:hover:bg-action-selected-dark-hover": e === "alt-system"
506
506
  });
507
- }, De = ({
507
+ }, Ye = ({
508
508
  mode: e,
509
509
  disabled: r,
510
510
  variant: t
@@ -539,7 +539,7 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
539
539
  "active:bg-action-selected-dark-active dark:active:bg-action-selected-light-active": e === "system",
540
540
  "active:bg-action-selected-light-active dark:active:bg-action-selected-dark-active": e === "alt-system"
541
541
  });
542
- }, We = ({
542
+ }, Ke = ({
543
543
  mode: e,
544
544
  noBorder: r,
545
545
  variant: t
@@ -574,72 +574,72 @@ const F = "thead", Q = "tfoot", T = "tbody", O = {
574
574
  "border-border-selected-dark dark:border-border-selected-medium": e === "system",
575
575
  "border-border-selected-medium dark:border-border-selected-dark": e === "alt-system"
576
576
  });
577
- }, je = ({
577
+ }, Ze = ({
578
578
  focusMode: e
579
579
  }) => i("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
580
580
  "focus:outline-focus-dark": e === "dark",
581
581
  "focus:outline-focus-light": e === "light",
582
582
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
583
583
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
584
- }), qe = ({
584
+ }), et = ({
585
585
  type: e,
586
586
  className: r,
587
587
  raw: t,
588
588
  mode: a,
589
589
  focusMode: o,
590
- disabled: c,
591
- fullWidth: n,
592
- size: l,
590
+ disabled: n,
591
+ fullWidth: l,
592
+ size: s,
593
593
  noBorder: d,
594
594
  labelRight: u,
595
595
  labelLeft: m,
596
- noBackground: g,
597
- variant: h,
596
+ noBackground: h,
597
+ variant: g,
598
598
  noTruncate: b,
599
599
  align: p,
600
- radius: w
601
- }) => (h || (h = "primary"), t ? i(ae, r) : i(
602
- ae,
603
- Pe({
600
+ radius: v
601
+ }) => (g || (g = "primary"), t ? i(ce, r) : i(
602
+ ce,
603
+ Qe({
604
604
  mode: a,
605
- variant: h,
606
- noBackground: g,
605
+ variant: g,
606
+ noBackground: h,
607
607
  noTruncate: b,
608
- radius: w
608
+ radius: v
609
609
  }),
610
- Fe({
610
+ Je({
611
611
  type: e,
612
- size: l,
612
+ size: s,
613
613
  labelRight: u,
614
614
  labelLeft: m,
615
615
  align: p
616
616
  }),
617
- We({ mode: a, variant: h, noBorder: d }),
618
- je({ focusMode: o }),
619
- Ge({ mode: a, variant: h, disabled: c }),
620
- De({ mode: a, variant: h, disabled: c }),
617
+ Ke({ mode: a, variant: g, noBorder: d }),
618
+ Ze({ focusMode: o }),
619
+ Xe({ mode: a, variant: g, disabled: n }),
620
+ Ye({ mode: a, variant: g, disabled: n }),
621
621
  {
622
- "w-full": n,
623
- "disabled:cursor-not-allowed disabled:opacity-50": c
622
+ "w-full": l,
623
+ "disabled:cursor-not-allowed disabled:opacity-50": n
624
624
  },
625
625
  r
626
- )), Je = (e, r, t) => {
626
+ )), tt = (e, r, t) => {
627
627
  var a;
628
628
  !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);
629
- }, se = U.forwardRef((e, r) => {
629
+ }, be = N.forwardRef((e, r) => {
630
630
  const { onClick: t, noInternalClick: a = !1, ...o } = e;
631
- return /* @__PURE__ */ s(
631
+ return /* @__PURE__ */ c(
632
632
  "button",
633
633
  {
634
634
  ref: r,
635
- onClick: (c) => {
636
- Je(c, a, t);
635
+ onClick: (n) => {
636
+ tt(n, a, t);
637
637
  },
638
638
  ...o
639
639
  }
640
640
  );
641
641
  });
642
- se.displayName = "BaseButton";
642
+ be.displayName = "BaseButton";
643
643
  /*!
644
644
  @versini/ui-button v3.2.0
645
645
  © 2024 gizmette.com
@@ -653,49 +653,49 @@ try {
653
653
  });
654
654
  } catch {
655
655
  }
656
- const de = U.forwardRef(
656
+ const ye = N.forwardRef(
657
657
  ({
658
658
  children: e,
659
659
  disabled: r = !1,
660
660
  mode: t = "system",
661
661
  focusMode: a = "system",
662
662
  fullWidth: o = !1,
663
- className: c,
664
- type: n = "button",
665
- raw: l = !1,
663
+ className: n,
664
+ type: l = "button",
665
+ raw: s = !1,
666
666
  noBorder: d = !1,
667
667
  "aria-label": u,
668
668
  label: m,
669
- size: g = "medium",
670
- labelRight: h,
669
+ size: h = "medium",
670
+ labelRight: g,
671
671
  labelLeft: b,
672
672
  noBackground: p = !1,
673
- align: w = "center",
674
- active: S = !1,
675
- radius: B = "large",
676
- ...H
677
- }, z) => {
678
- const P = qe({
679
- type: le,
673
+ align: v = "center",
674
+ active: k = !1,
675
+ radius: _ = "large",
676
+ ...M
677
+ }, O) => {
678
+ const V = et({
679
+ type: pe,
680
680
  mode: t,
681
681
  focusMode: a,
682
682
  fullWidth: o,
683
683
  disabled: r,
684
- raw: l,
685
- className: c,
684
+ raw: s,
685
+ className: n,
686
686
  noBorder: d,
687
- size: g,
688
- labelRight: h,
687
+ size: h,
688
+ labelRight: g,
689
689
  labelLeft: b,
690
690
  noBackground: p,
691
- align: w,
692
- radius: B
693
- }), G = i({
694
- "text-copy-accent-dark": t === "light" && !l,
695
- "text-copy-light": t === "dark" && !l,
696
- "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !l,
697
- "text-copy-light dark:text-copy-accent-dark": t === "system" && !l
698
- }), f = S ? i(
691
+ align: v,
692
+ radius: _
693
+ }), D = i({
694
+ "text-copy-accent-dark": t === "light" && !s,
695
+ "text-copy-light": t === "dark" && !s,
696
+ "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !s,
697
+ "text-copy-light dark:text-copy-accent-dark": t === "system" && !s
698
+ }), W = k ? i(
699
699
  "relative",
700
700
  "focus-within:static",
701
701
  "focus-within:after:border-transparent",
@@ -712,39 +712,39 @@ const de = U.forwardRef(
712
712
  "after:border-table-light dark:after:border-table-dark": t === "alt-system"
713
713
  }
714
714
  ) : "";
715
- return /* @__PURE__ */ s("div", { className: f, children: /* @__PURE__ */ x(
716
- se,
715
+ return /* @__PURE__ */ c("div", { className: W, children: /* @__PURE__ */ C(
716
+ be,
717
717
  {
718
- ref: z,
719
- className: P,
718
+ ref: O,
719
+ className: V,
720
720
  disabled: r,
721
- type: n,
721
+ type: l,
722
722
  "aria-label": u || m,
723
- ...H,
723
+ ...M,
724
724
  children: [
725
- b && /* @__PURE__ */ s("span", { className: "pr-2", children: b }),
726
- /* @__PURE__ */ s("div", { className: G, children: e }),
727
- h && /* @__PURE__ */ s("span", { className: "pl-2", children: h })
725
+ b && /* @__PURE__ */ c("span", { className: "pr-2", children: b }),
726
+ /* @__PURE__ */ c("div", { className: D, children: e }),
727
+ g && /* @__PURE__ */ c("span", { className: "pl-2", children: g })
728
728
  ]
729
729
  }
730
730
  ) });
731
731
  }
732
732
  );
733
- de.displayName = "ButtonSort";
734
- const X = ({
733
+ ye.displayName = "ButtonSort";
734
+ const Z = ({
735
735
  children: e,
736
736
  fill: r,
737
737
  viewBox: t,
738
738
  className: a,
739
739
  defaultViewBox: o,
740
- size: c,
741
- title: n,
742
- semantic: l = !1,
740
+ size: n,
741
+ title: l,
742
+ semantic: s = !1,
743
743
  ...d
744
744
  }) => {
745
- const u = i(c, a);
746
- return /* @__PURE__ */ x(Te, { children: [
747
- /* @__PURE__ */ s(
745
+ const u = i(n, a);
746
+ return /* @__PURE__ */ C(Le, { children: [
747
+ /* @__PURE__ */ c(
748
748
  "svg",
749
749
  {
750
750
  xmlns: "http://www.w3.org/2000/svg",
@@ -752,13 +752,13 @@ const X = ({
752
752
  viewBox: t || o,
753
753
  fill: r || "currentColor",
754
754
  role: "img",
755
- "aria-hidden": !l,
755
+ "aria-hidden": !s,
756
756
  focusable: !1,
757
757
  ...d,
758
758
  children: e
759
759
  }
760
760
  ),
761
- n && l && /* @__PURE__ */ s("span", { className: "sr-only", children: n })
761
+ l && s && /* @__PURE__ */ c("span", { className: "sr-only", children: l })
762
762
  ] });
763
763
  };
764
764
  /*!
@@ -774,14 +774,14 @@ try {
774
774
  });
775
775
  } catch {
776
776
  }
777
- const Qe = ({
777
+ const rt = ({
778
778
  className: e,
779
779
  viewBox: r,
780
780
  title: t,
781
781
  monotone: a,
782
782
  ...o
783
- }) => /* @__PURE__ */ x(
784
- X,
783
+ }) => /* @__PURE__ */ C(
784
+ Z,
785
785
  {
786
786
  defaultViewBox: "0 0 576 512",
787
787
  size: "size-5",
@@ -790,24 +790,24 @@ const Qe = ({
790
790
  title: t || "Sort",
791
791
  ...o,
792
792
  children: [
793
- /* @__PURE__ */ s(
793
+ /* @__PURE__ */ c(
794
794
  "path",
795
795
  {
796
796
  opacity: a ? "1" : "0.4",
797
797
  d: "M393.4 41.4c12.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 0L448 141.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V141.3l-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96z"
798
798
  }
799
799
  ),
800
- /* @__PURE__ */ s("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" })
800
+ /* @__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" })
801
801
  ]
802
802
  }
803
- ), Xe = ({
803
+ ), at = ({
804
804
  className: e,
805
805
  viewBox: r,
806
806
  title: t,
807
807
  monotone: a,
808
808
  ...o
809
- }) => /* @__PURE__ */ x(
810
- X,
809
+ }) => /* @__PURE__ */ C(
810
+ Z,
811
811
  {
812
812
  defaultViewBox: "0 0 576 512",
813
813
  size: "size-5",
@@ -816,24 +816,24 @@ const Qe = ({
816
816
  title: t || "Sort Down",
817
817
  ...o,
818
818
  children: [
819
- /* @__PURE__ */ s(
819
+ /* @__PURE__ */ c(
820
820
  "path",
821
821
  {
822
822
  opacity: a ? "1" : "0.4",
823
823
  d: "M288 448c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32z"
824
824
  }
825
825
  ),
826
- /* @__PURE__ */ s("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" })
826
+ /* @__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" })
827
827
  ]
828
828
  }
829
- ), Ye = ({
829
+ ), ot = ({
830
830
  className: e,
831
831
  viewBox: r,
832
832
  title: t,
833
833
  monotone: a,
834
834
  ...o
835
- }) => /* @__PURE__ */ x(
836
- X,
835
+ }) => /* @__PURE__ */ C(
836
+ Z,
837
837
  {
838
838
  defaultViewBox: "0 0 576 512",
839
839
  size: "size-5",
@@ -842,14 +842,14 @@ const Qe = ({
842
842
  title: t || "Sort Up",
843
843
  ...o,
844
844
  children: [
845
- /* @__PURE__ */ s(
845
+ /* @__PURE__ */ c(
846
846
  "path",
847
847
  {
848
848
  opacity: a ? "1" : "0.4",
849
849
  d: "M288 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32z"
850
850
  }
851
851
  ),
852
- /* @__PURE__ */ s("path", { d: "M128 32c9 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 146.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V146.3L63.6 181.6c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32z" })
852
+ /* @__PURE__ */ c("path", { d: "M128 32c9 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 146.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V146.3L63.6 181.6c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32z" })
853
853
  ]
854
854
  }
855
855
  );
@@ -866,174 +866,174 @@ try {
866
866
  });
867
867
  } catch {
868
868
  }
869
- const N = U.createContext({
869
+ const R = N.createContext({
870
870
  mode: "light",
871
871
  cellWrapper: "thead",
872
872
  stickyHeader: !1,
873
873
  stickyFooter: !1,
874
874
  compact: !1
875
- }), It = ({
875
+ }), Vt = ({
876
876
  children: e,
877
877
  mode: r = "system",
878
878
  caption: t,
879
879
  compact: a,
880
880
  summary: o,
881
- className: c,
882
- wrapperClassName: n,
883
- maxHeight: l,
881
+ className: n,
882
+ wrapperClassName: l,
883
+ maxHeight: s,
884
884
  stickyHeader: d,
885
885
  stickyFooter: u,
886
886
  ...m
887
887
  }) => {
888
- const g = Be({
888
+ const h = Ue({
889
889
  mode: r,
890
- className: c,
891
- wrapperClassName: n,
890
+ className: n,
891
+ wrapperClassName: l,
892
892
  stickyHeader: d,
893
893
  stickyFooter: u
894
894
  });
895
- return /* @__PURE__ */ s(
896
- N.Provider,
895
+ return /* @__PURE__ */ c(
896
+ R.Provider,
897
897
  {
898
898
  value: { mode: r, stickyHeader: d, stickyFooter: u, compact: a },
899
- children: /* @__PURE__ */ s(
899
+ children: /* @__PURE__ */ c(
900
900
  "div",
901
901
  {
902
- className: g.wrapper,
903
- ...l && {
904
- style: { maxHeight: l }
902
+ className: h.wrapper,
903
+ ...s && {
904
+ style: { maxHeight: s }
905
905
  },
906
- children: /* @__PURE__ */ x("table", { className: g.table, summary: o, ...m, children: [
907
- t && /* @__PURE__ */ s("caption", { className: g.caption, children: t }),
906
+ children: /* @__PURE__ */ C("table", { className: h.table, summary: o, ...m, children: [
907
+ t && /* @__PURE__ */ c("caption", { className: h.caption, children: t }),
908
908
  e
909
909
  ] })
910
910
  }
911
911
  )
912
912
  }
913
913
  );
914
- }, $t = ({
914
+ }, Ut = ({
915
915
  children: e,
916
916
  className: r,
917
917
  ...t
918
918
  }) => {
919
- const a = R(N);
920
- a.cellWrapper = F;
921
- const o = He({
919
+ const a = L(R);
920
+ a.cellWrapper = G;
921
+ const o = Fe({
922
922
  className: r,
923
923
  mode: a.mode,
924
924
  stickyHeader: a.stickyHeader
925
925
  });
926
- return /* @__PURE__ */ s("thead", { className: o, ...t, children: e });
927
- }, Rt = ({
926
+ return /* @__PURE__ */ c("thead", { className: o, ...t, children: e });
927
+ }, Ft = ({
928
928
  children: e,
929
929
  className: r,
930
930
  ...t
931
931
  }) => {
932
- const a = R(N);
933
- a.cellWrapper = Q;
934
- const o = ze({
932
+ const a = L(R);
933
+ a.cellWrapper = K;
934
+ const o = Pe({
935
935
  className: r,
936
936
  mode: a.mode,
937
937
  stickyFooter: a.stickyFooter
938
938
  });
939
- return /* @__PURE__ */ s("tfoot", { className: o, ...t, children: e });
940
- }, Bt = ({ children: e, ...r }) => {
941
- const t = R(N);
942
- return t.cellWrapper = T, /* @__PURE__ */ s("tbody", { ...r, children: e });
943
- }, Ht = ({
939
+ return /* @__PURE__ */ c("tfoot", { className: o, ...t, children: e });
940
+ }, Pt = ({ children: e, ...r }) => {
941
+ const t = L(R);
942
+ return t.cellWrapper = A, /* @__PURE__ */ c("tbody", { ...r, children: e });
943
+ }, Gt = ({
944
944
  children: e,
945
945
  className: r,
946
946
  ...t
947
947
  }) => {
948
- const a = R(N), o = Le({
948
+ const a = L(R), o = Ge({
949
949
  mode: a.mode,
950
950
  cellWrapper: a.cellWrapper,
951
951
  className: r
952
952
  });
953
- return /* @__PURE__ */ s("tr", { className: o, ...t, children: e });
954
- }, Ke = ({
953
+ return /* @__PURE__ */ c("tr", { className: o, ...t, children: e });
954
+ }, nt = ({
955
955
  children: e,
956
956
  component: r,
957
957
  className: t,
958
958
  ...a
959
959
  }) => {
960
- const o = R(N), c = r || (o.cellWrapper === F ? "th" : "td"), n = Ve({
960
+ const o = L(R), n = r || (o.cellWrapper === G ? "th" : "td"), l = De({
961
961
  cellWrapper: o.cellWrapper,
962
962
  className: t,
963
963
  mode: o.mode,
964
964
  compact: o.compact
965
965
  });
966
- return /* @__PURE__ */ s(c, { className: n, ...a, children: e });
967
- }, zt = ({
966
+ return /* @__PURE__ */ c(n, { className: l, ...a, children: e });
967
+ }, Dt = ({
968
968
  align: e,
969
969
  children: r,
970
970
  buttonClassName: t,
971
971
  className: a,
972
972
  component: o,
973
- focusMode: c = "alt-system",
974
- mode: n = "alt-system",
975
- onClick: l,
973
+ focusMode: n = "alt-system",
974
+ mode: l = "alt-system",
975
+ onClick: s,
976
976
  sortDirection: d,
977
977
  sortedCell: u,
978
978
  cellId: m,
979
- ...g
979
+ ...h
980
980
  }) => {
981
- const h = Oe({ buttonClassName: t });
982
- return /* @__PURE__ */ s(
983
- Ke,
981
+ const g = We({ buttonClassName: t });
982
+ return /* @__PURE__ */ c(
983
+ nt,
984
984
  {
985
985
  component: o,
986
986
  className: a,
987
987
  role: "columnheader",
988
- "aria-sort": d === O.ASC && u === m ? "ascending" : d === O.DESC && u === m ? "descending" : "other",
989
- ...g,
990
- children: /* @__PURE__ */ s(
991
- de,
988
+ "aria-sort": d === F.ASC && u === m ? "ascending" : d === F.DESC && u === m ? "descending" : "other",
989
+ ...h,
990
+ children: /* @__PURE__ */ c(
991
+ ye,
992
992
  {
993
993
  active: u === m,
994
- className: h,
995
- onClick: l,
994
+ className: g,
995
+ onClick: s,
996
996
  align: e,
997
997
  noBorder: !0,
998
- focusMode: c,
999
- mode: n,
998
+ focusMode: n,
999
+ mode: l,
1000
1000
  fullWidth: !0,
1001
1001
  labelRight: r,
1002
- 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 })
1002
+ children: d === F.ASC && u === m ? /* @__PURE__ */ c(ot, { className: "size-4", monotone: !0 }) : d === F.DESC && u === m ? /* @__PURE__ */ c(at, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(rt, { className: "size-4", monotone: !0 })
1003
1003
  }
1004
1004
  )
1005
1005
  }
1006
1006
  );
1007
1007
  };
1008
1008
  /*!
1009
- @versini/ui-textarea v2.0.5
1009
+ @versini/ui-textarea v2.1.1
1010
1010
  © 2024 gizmette.com
1011
1011
  */
1012
1012
  try {
1013
1013
  window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
1014
- version: "2.0.5",
1015
- buildTime: "12/30/2024 07:48 PM EST",
1014
+ version: "2.1.1",
1015
+ buildTime: "12/31/2024 06:19 PM EST",
1016
1016
  homepage: "https://github.com/aversini/ui-components",
1017
1017
  license: "MIT"
1018
1018
  });
1019
1019
  } catch {
1020
1020
  }
1021
- const ue = "av-text-area", Ze = "av-text-area-wrapper", J = "av-text-area-helper-text", et = "av-text-area__control--right";
1022
- function tt() {
1023
- const e = k(!1);
1024
- return $(() => (e.current = !0, () => {
1021
+ const fe = "av-text-area", it = "av-text-area-wrapper", Y = "av-text-area-helper-text", lt = "av-text-area__control--right", st = "av-text-area__control--left";
1022
+ function ct() {
1023
+ const e = f(!1);
1024
+ return z(() => (e.current = !0, () => {
1025
1025
  e.current = !1;
1026
- }), []), M(() => e.current, []);
1026
+ }), []), P(() => e.current, []);
1027
1027
  }
1028
- function rt(e) {
1029
- return ie(() => e.every((r) => r == null) ? () => {
1028
+ function dt(e) {
1029
+ return me(() => e.every((r) => r == null) ? () => {
1030
1030
  } : (r) => {
1031
1031
  e.forEach((t) => {
1032
1032
  typeof t == "function" ? t(r) : t != null && (t.current = r);
1033
1033
  });
1034
1034
  }, e);
1035
1035
  }
1036
- const at = {
1036
+ const ut = {
1037
1037
  x: 0,
1038
1038
  y: 0,
1039
1039
  width: 0,
@@ -1043,18 +1043,18 @@ const at = {
1043
1043
  bottom: 0,
1044
1044
  right: 0
1045
1045
  };
1046
- function ot(e) {
1047
- const r = tt(), t = k(0), a = k(null), [o, c] = I(at), n = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
1048
- const d = l[0];
1046
+ function de(e) {
1047
+ const r = ct(), t = f(0), a = f(null), [o, n] = $(ut), l = me(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
1048
+ const d = s[0];
1049
1049
  d && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
1050
- a.current && r() && c(d.contentRect);
1050
+ a.current && r() && n(d.contentRect);
1051
1051
  }));
1052
1052
  }), [r]);
1053
- return $(() => (a.current && (n == null || n.observe(a.current, e)), () => {
1054
- n == null || n.disconnect(), t.current && cancelAnimationFrame(t.current);
1055
- }), [n, e]), [a, o];
1053
+ return z(() => (a.current && (l == null || l.observe(a.current, e)), () => {
1054
+ l == null || l.disconnect(), t.current && cancelAnimationFrame(t.current);
1055
+ }), [l, e]), [a, o];
1056
1056
  }
1057
- function it({
1057
+ function mt({
1058
1058
  value: e,
1059
1059
  defaultValue: r,
1060
1060
  finalValue: t,
@@ -1062,19 +1062,19 @@ function it({
1062
1062
  },
1063
1063
  initialControlledDelay: o = 0
1064
1064
  }) {
1065
- const [c, n] = I(!1), [l, d] = I(
1065
+ const [n, l] = $(!1), [s, d] = $(
1066
1066
  r !== void 0 ? r : t
1067
1067
  ), u = (m) => {
1068
1068
  d(m), a == null || a(m);
1069
1069
  };
1070
- return $(() => {
1071
- (async () => e !== void 0 && !c && o > 0 && (await new Promise(
1070
+ return z(() => {
1071
+ (async () => e !== void 0 && !n && o > 0 && (await new Promise(
1072
1072
  (m) => setTimeout(m, o)
1073
- ), n(!0)))();
1074
- }, [e, o, c]), e !== void 0 ? !c && o > 0 ? ["", a, !0] : [e, a, !0] : [l, u, !1];
1073
+ ), l(!0)))();
1074
+ }, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [s, u, !1];
1075
1075
  }
1076
- function nt(e) {
1077
- const r = Ce();
1076
+ function gt(e) {
1077
+ const r = Be();
1078
1078
  if (!e)
1079
1079
  return r;
1080
1080
  if (typeof e == "number" || typeof e == "string")
@@ -1084,7 +1084,7 @@ function nt(e) {
1084
1084
  return typeof t == "number" || typeof t == "string" ? `${a}${t}` : `${a}${r}`;
1085
1085
  }
1086
1086
  }
1087
- const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
1087
+ const ke = "SET_ANNOUNCEMENT", ve = "CLEAR_ANNOUNCEMENT", ht = {
1088
1088
  alert: null,
1089
1089
  alertdialog: null,
1090
1090
  log: "polite",
@@ -1092,14 +1092,14 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
1092
1092
  progressbar: null,
1093
1093
  status: "polite",
1094
1094
  timer: "assertive"
1095
- }, lt = (e, r) => {
1095
+ }, pt = (e, r) => {
1096
1096
  switch (r == null ? void 0 : r.type) {
1097
- case me:
1097
+ case ke:
1098
1098
  return {
1099
1099
  ...e,
1100
1100
  announcement: r.payload
1101
1101
  };
1102
- case he:
1102
+ case ve:
1103
1103
  return {
1104
1104
  ...e,
1105
1105
  announcement: null
@@ -1107,14 +1107,14 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
1107
1107
  default:
1108
1108
  return e;
1109
1109
  }
1110
- }, st = ({
1110
+ }, bt = ({
1111
1111
  onAnnouncementClear: e,
1112
1112
  dispatch: r
1113
1113
  }) => {
1114
1114
  r({
1115
- type: he
1115
+ type: ve
1116
1116
  }), typeof e == "function" && e();
1117
- }, oe = ({
1117
+ }, ue = ({
1118
1118
  children: e,
1119
1119
  clearAnnouncementDelay: r,
1120
1120
  clearAnnouncementTimeoutRef: t,
@@ -1122,80 +1122,80 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
1122
1122
  dispatch: o
1123
1123
  }) => {
1124
1124
  clearTimeout(t.current), e !== null && o({
1125
- type: me,
1125
+ type: ke,
1126
1126
  payload: e
1127
1127
  }), r && (t.current = setTimeout(
1128
- () => st({
1128
+ () => bt({
1129
1129
  onAnnouncementClear: a,
1130
1130
  dispatch: o
1131
1131
  }),
1132
1132
  r
1133
1133
  ));
1134
- }, dt = ({
1134
+ }, yt = ({
1135
1135
  children: e,
1136
1136
  announcementTimeoutRef: r,
1137
1137
  announcementDelay: t,
1138
1138
  clearAnnouncementDelay: a,
1139
1139
  clearAnnouncementTimeoutRef: o,
1140
- onAnnouncementClear: c,
1141
- dispatch: n
1140
+ onAnnouncementClear: n,
1141
+ dispatch: l
1142
1142
  }) => {
1143
- clearTimeout(r.current), t ? r.current = setTimeout(oe, t, {
1143
+ clearTimeout(r.current), t ? r.current = setTimeout(ue, t, {
1144
1144
  children: e,
1145
1145
  clearAnnouncementDelay: a,
1146
1146
  clearAnnouncementTimeoutRef: o,
1147
- onAnnouncementClear: c,
1148
- dispatch: n
1149
- }) : oe({
1147
+ onAnnouncementClear: n,
1148
+ dispatch: l
1149
+ }) : ue({
1150
1150
  children: e,
1151
1151
  clearAnnouncementDelay: a,
1152
1152
  clearAnnouncementTimeoutRef: o,
1153
- onAnnouncementClear: c,
1154
- dispatch: n
1153
+ onAnnouncementClear: n,
1154
+ dispatch: l
1155
1155
  });
1156
1156
  };
1157
- function ut({
1157
+ function ft({
1158
1158
  children: e,
1159
1159
  className: r,
1160
1160
  politeness: t,
1161
1161
  role: a = null,
1162
1162
  announcementDelay: o,
1163
- clearAnnouncementDelay: c,
1164
- onAnnouncementClear: n,
1165
- visible: l,
1163
+ clearAnnouncementDelay: n,
1164
+ onAnnouncementClear: l,
1165
+ visible: s,
1166
1166
  ...d
1167
1167
  }) {
1168
- const u = k(null), m = k(null), [g, h] = Ae(lt, {
1168
+ const u = f(null), m = f(null), [h, g] = ze(pt, {
1169
1169
  announcement: null
1170
1170
  });
1171
1171
  let b = t;
1172
- typeof b > "u" && (b = a ? ct[a] : "assertive"), $(() => {
1173
- dt({
1172
+ typeof b > "u" && (b = a ? ht[a] : "assertive"), z(() => {
1173
+ yt({
1174
1174
  announcementTimeoutRef: u,
1175
1175
  announcementDelay: o,
1176
1176
  children: e,
1177
- clearAnnouncementDelay: c,
1177
+ clearAnnouncementDelay: n,
1178
1178
  clearAnnouncementTimeoutRef: m,
1179
- onAnnouncementClear: n,
1180
- dispatch: h
1179
+ onAnnouncementClear: l,
1180
+ dispatch: g
1181
1181
  });
1182
1182
  }, [
1183
1183
  e,
1184
1184
  o,
1185
- c,
1186
- n
1185
+ n,
1186
+ l
1187
1187
  ]);
1188
1188
  const p = i(r, {
1189
- "sr-only": !l
1189
+ "sr-only": !s
1190
1190
  });
1191
- return /* @__PURE__ */ s(
1191
+ return /* @__PURE__ */ c(
1192
1192
  "div",
1193
1193
  {
1194
1194
  "aria-live": b,
1195
1195
  ...a && { role: a },
1196
1196
  className: p,
1197
1197
  ...d,
1198
- children: g.announcement
1198
+ children: h.announcement
1199
1199
  }
1200
1200
  );
1201
1201
  }
@@ -1206,27 +1206,25 @@ function ut({
1206
1206
  try {
1207
1207
  window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
1208
1208
  version: "1.2.7",
1209
- buildTime: "12/30/2024 07:48 PM EST",
1209
+ buildTime: "12/31/2024 06:19 PM EST",
1210
1210
  homepage: "https://github.com/aversini/ui-components",
1211
1211
  license: "MIT"
1212
1212
  });
1213
1213
  } catch {
1214
1214
  }
1215
- const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ht = ({
1216
- mode: e
1217
- }) => i({
1215
+ const kt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", vt = ({ mode: e }) => i({
1218
1216
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
1219
1217
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
1220
1218
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
1221
1219
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
1222
- }), gt = ({
1220
+ }), xt = ({
1223
1221
  focusMode: e
1224
1222
  }) => i("focus:outline focus:outline-2 focus:outline-offset-2", {
1225
1223
  "focus:outline-focus-dark": e === "dark",
1226
1224
  "focus:outline-focus-light": e === "light",
1227
1225
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
1228
1226
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
1229
- }), bt = ({
1227
+ }), _t = ({
1230
1228
  noBorder: e,
1231
1229
  error: r
1232
1230
  }) => i("border-2", {
@@ -1234,31 +1232,46 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1234
1232
  "focus:border-border-dark": !e && r,
1235
1233
  "border-border-error-dark": !e && r,
1236
1234
  "border-transparent": e
1237
- }), pt = ({
1235
+ }), Et = ({
1238
1236
  disabled: e,
1239
1237
  raw: r,
1240
1238
  error: t,
1241
- mode: a
1239
+ mode: a,
1240
+ leftElement: o,
1241
+ rightElement: n
1242
1242
  }) => {
1243
1243
  if (r)
1244
1244
  return "";
1245
1245
  if (e)
1246
- return i("absolute px-2 cursor-not-allowed opacity-50 font-medium");
1246
+ return i(
1247
+ "transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium",
1248
+ {
1249
+ "translate-x-[12px]": n === !0 && !o || !n && !o
1250
+ }
1251
+ );
1247
1252
  if (!t)
1248
- return i("absolute px-2 cursor-text font-medium", {
1249
- "text-copy-medium": a === "dark",
1250
- "text-copy-dark": a === "light",
1251
- "text-copy-dark dark:text-copy-medium": a === "system",
1252
- "text-copy-medium dark:text-copy-dark": a === "alt-system"
1253
- });
1253
+ return i(
1254
+ "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
1255
+ {
1256
+ "translate-x-[12px]": n === !0 && !o || !n && !o,
1257
+ "text-copy-medium": a === "dark",
1258
+ "text-copy-dark": a === "light",
1259
+ "text-copy-dark dark:text-copy-medium": a === "system",
1260
+ "text-copy-medium dark:text-copy-dark": a === "alt-system"
1261
+ }
1262
+ );
1254
1263
  if (t)
1255
- return i("absolute px-2 cursor-text font-medium", {
1256
- "text-copy-medium": a === "dark",
1257
- "text-copy-error-dark": a === "light",
1258
- "text-copy-error-dark dark:text-copy-error-light": a === "system",
1259
- "text-copy-medium dark:text-copy-error-dark": a === "alt-system"
1260
- });
1261
- }, yt = ({
1264
+ return i(
1265
+ "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
1266
+ {
1267
+ "translate-x-[12px]": n === !0 && !o || !n && !o,
1268
+ "text-copy-medium": a === "dark",
1269
+ "text-copy-error-dark": a === "light",
1270
+ "text-copy-error-dark dark:text-copy-error-light": a === "system",
1271
+ "text-copy-medium dark:text-copy-error-dark": a === "alt-system"
1272
+ }
1273
+ );
1274
+ }, wt = ({
1262
1275
  error: e,
1263
1276
  raw: r,
1264
1277
  mode: t,
@@ -1268,242 +1281,273 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1268
1281
  return "";
1269
1282
  if (a)
1270
1283
  return i(
1271
- J,
1284
+ Y,
1272
1285
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
1273
1286
  );
1274
1287
  if (!e)
1275
- return i(J, "absolute px-2 font-medium", {
1288
+ return i(Y, "absolute px-2 font-medium", {
1276
1289
  "text-copy-medium": t === "dark",
1277
1290
  "text-copy-dark": t === "light",
1278
1291
  "text-copy-dark dark:text-copy-medium": t === "system",
1279
1292
  "text-copy-medium dark:text-copy-dark": t === "alt-system"
1280
1293
  });
1281
1294
  if (e)
1282
- return i(J, "absolute px-2 font-medium", {
1295
+ return i(Y, "absolute px-2 font-medium", {
1283
1296
  "text-copy-error-light": t === "dark",
1284
1297
  "text-copy-error-dark": t === "light",
1285
1298
  "text-copy-error-dark dark:text-copy-error-light": t === "system",
1286
1299
  "dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
1287
1300
  });
1288
- }, ft = ({
1301
+ }, St = ({
1289
1302
  className: e,
1290
1303
  textAreaClassName: r,
1291
1304
  raw: t,
1292
1305
  focusMode: a,
1293
1306
  disabled: o,
1294
- noBorder: c,
1295
- error: n,
1296
- mode: l
1307
+ noBorder: n,
1308
+ error: l,
1309
+ mode: s,
1310
+ leftElement: d,
1311
+ rightElement: u
1297
1312
  }) => {
1298
- const d = t ? e : i(
1313
+ const m = t ? e : i(
1299
1314
  "relative flex w-full flex-col justify-center",
1300
- Ze,
1315
+ it,
1301
1316
  e
1302
- ), u = t ? i(r) : i(
1303
- ue,
1317
+ ), h = t ? i(r) : i(
1318
+ fe,
1304
1319
  r,
1305
- mt(),
1306
- ht({ mode: l }),
1307
- gt({ focusMode: a }),
1308
- bt({
1309
- noBorder: c,
1310
- error: n
1320
+ kt(),
1321
+ vt({ mode: s }),
1322
+ xt({ focusMode: a }),
1323
+ _t({
1324
+ noBorder: n,
1325
+ error: l
1311
1326
  }),
1312
1327
  {
1313
1328
  "disabled:cursor-not-allowed disabled:opacity-50": o
1314
1329
  }
1315
- ), m = t ? void 0 : "sr-only", g = pt({
1330
+ ), g = t ? void 0 : "sr-only", b = Et({
1316
1331
  disabled: o,
1317
1332
  raw: t,
1318
- error: n,
1319
- mode: l
1320
- }), h = yt({
1321
- error: n,
1333
+ error: l,
1334
+ mode: s,
1335
+ rightElement: u,
1336
+ leftElement: d
1337
+ }), p = wt({
1338
+ error: l,
1322
1339
  raw: t,
1323
- mode: l,
1340
+ mode: s,
1324
1341
  disabled: o
1325
- }), b = t ? void 0 : i(et, "absolute");
1342
+ }), v = t ? void 0 : i(lt, "absolute"), k = t ? void 0 : i(st, "absolute");
1326
1343
  return {
1327
- wrapper: d,
1328
- textArea: u,
1329
- accessibleLabel: m,
1330
- visibleLabel: g,
1331
- helperText: h,
1332
- rightElement: b
1344
+ wrapper: m,
1345
+ textArea: h,
1346
+ accessibleLabel: g,
1347
+ visibleLabel: b,
1348
+ helperText: p,
1349
+ rightElement: v,
1350
+ leftElement: k
1333
1351
  };
1334
- }, kt = ({
1352
+ }, Tt = ({
1335
1353
  scrollHeight: e,
1336
1354
  currentHeight: r,
1337
1355
  currentLabelOffset: t = 0,
1338
1356
  currentHelperTextOffset: a = 0
1339
1357
  }) => {
1340
- let o, c;
1358
+ let o, n;
1341
1359
  if (e > 0 && e !== r) {
1342
- const n = e - r, l = Math.abs(n / 24);
1343
- o = t + -1 * Math.sign(n) * (12 * l), c = a + Math.sign(n) * (12 * l);
1360
+ const l = e - r, s = Math.abs(l / 24);
1361
+ o = t + -1 * Math.sign(l) * (12 * s), n = a + Math.sign(l) * (12 * s);
1344
1362
  }
1345
1363
  return {
1346
1364
  labelOffset: o,
1347
- helperTextOffset: c,
1365
+ helperTextOffset: n,
1348
1366
  scrollHeight: e
1349
1367
  };
1350
- }, vt = U.forwardRef(
1368
+ }, Nt = N.forwardRef(
1351
1369
  ({
1352
1370
  id: e,
1353
1371
  name: r,
1354
1372
  label: t,
1355
1373
  error: a = !1,
1356
1374
  raw: o = !1,
1357
- className: c,
1358
- textAreaClassName: n,
1359
- mode: l = "system",
1375
+ className: n,
1376
+ textAreaClassName: l,
1377
+ mode: s = "system",
1360
1378
  focusMode: d = "system",
1361
1379
  value: u,
1362
1380
  defaultValue: m,
1363
- disabled: g = !1,
1364
- noBorder: h = !1,
1381
+ disabled: h = !1,
1382
+ noBorder: g = !1,
1365
1383
  labelId: b,
1366
1384
  helperText: p = "",
1367
- helperTextOnFocus: w = !1,
1368
- rightElement: S,
1369
- onChange: B,
1370
- onFocus: H,
1371
- onBlur: z,
1372
- ...P
1373
- }, G) => {
1374
- const f = k(null), ge = rt([G, f]), [be, L] = ot(), D = k(80), Y = k(-25), C = k(null), K = k(30), W = k(null), A = nt({ id: e, prefix: `${ue}-` }), [pe, ye] = I(0), [fe, Z] = I(
1375
- !!(!w && p)
1376
- ), ke = `${r} error, ${p}`, E = ft({
1377
- className: c,
1378
- textAreaClassName: n,
1385
+ helperTextOnFocus: v = !1,
1386
+ rightElement: k,
1387
+ leftElement: _,
1388
+ onChange: M,
1389
+ onFocus: O,
1390
+ onBlur: V,
1391
+ ...D
1392
+ }, W) => {
1393
+ var ee;
1394
+ const x = f(null), xe = dt([W, x]), [_e, U] = de(), [Ee, I] = de(), j = f(80), te = f(-25), S = f(null), re = f(30), q = f(null), H = gt({ id: e, prefix: `${fe}-` }), [ae, we] = $(0), [oe, Se] = $(0), [Te, ne] = $(
1395
+ !!(!v && p)
1396
+ ), Ne = `${r} error, ${p}`, T = St({
1397
+ className: n,
1398
+ textAreaClassName: l,
1379
1399
  error: a,
1380
1400
  raw: o,
1381
1401
  focusMode: d,
1382
- disabled: g,
1383
- noBorder: h,
1384
- mode: l
1385
- }), [v, ve] = it({
1402
+ disabled: h,
1403
+ noBorder: g,
1404
+ mode: s,
1405
+ rightElement: !!k,
1406
+ leftElement: !!_
1407
+ }), [E, Ce] = mt({
1386
1408
  value: u,
1387
1409
  initialControlledDelay: 20,
1388
1410
  defaultValue: m,
1389
1411
  onChange: (y) => {
1390
- B && B({
1412
+ M && M({
1391
1413
  target: {
1392
1414
  value: y
1393
1415
  }
1394
1416
  });
1395
1417
  }
1396
- }), _e = (y) => {
1397
- ve(y.target.value);
1398
- }, xe = (y) => {
1399
- w && p && Z(!0), H && H(y);
1400
- }, we = (y) => {
1401
- w && p && !v && Z(!1), z && z(y);
1418
+ }), Ie = (y) => {
1419
+ Ce(y.target.value);
1420
+ }, Ae = (y) => {
1421
+ v && p && ne(!0), O && O(y);
1422
+ }, $e = (y) => {
1423
+ v && p && !E && ne(!1), V && V(y);
1402
1424
  };
1403
- return V(() => {
1404
- L && L.width && ye(L.width + 18 + 10);
1405
- }, [L]), V(() => {
1406
- o || f && f.current && v !== void 0 && (f.current.style.height = "inherit", f.current.style.height = f.current.scrollHeight + "px");
1407
- }, [v, o]), V(() => {
1425
+ return B(() => {
1426
+ U && U.width && we(U.width + 18 + 10);
1427
+ }, [U]), B(() => {
1428
+ I && I.width && Se(I.width + 18 + 10);
1429
+ }, [I]), B(() => {
1430
+ o || x && x.current && E !== void 0 && (x.current.style.height = "inherit", x.current.style.height = x.current.scrollHeight + "px");
1431
+ }, [E, o]), B(() => {
1408
1432
  o || setTimeout(() => {
1409
1433
  var y;
1410
- (y = C == null ? void 0 : C.current) == null || y.style.setProperty(
1434
+ (y = S == null ? void 0 : S.current) == null || y.style.setProperty(
1411
1435
  "--av-text-area-wrapper-transition",
1412
- v ? "none" : "all 0.2s ease-out"
1436
+ E ? "none" : "all 0.2s ease-out"
1413
1437
  );
1414
1438
  }, 0);
1415
- }, [v, o]), V(() => {
1416
- var y, ee;
1417
- if (!o && f && f.current && v !== void 0) {
1418
- const { labelOffset: j, helperTextOffset: q, scrollHeight: Ee } = kt({
1419
- scrollHeight: f.current.scrollHeight,
1420
- currentHeight: D.current,
1421
- currentLabelOffset: Y.current,
1422
- currentHelperTextOffset: K.current
1439
+ }, [E, o]), B(() => {
1440
+ var y, ie;
1441
+ if (!o && x && x.current && E !== void 0) {
1442
+ const { labelOffset: J, helperTextOffset: Q, scrollHeight: Re } = Tt({
1443
+ scrollHeight: x.current.scrollHeight,
1444
+ currentHeight: j.current,
1445
+ currentLabelOffset: te.current,
1446
+ currentHelperTextOffset: re.current
1423
1447
  });
1424
- j && (Y.current = j, (y = C == null ? void 0 : C.current) == null || y.style.setProperty(
1448
+ J && (te.current = J, (y = S == null ? void 0 : S.current) == null || y.style.setProperty(
1425
1449
  "--av-text-area-label",
1426
- `${j}px`
1427
- )), q && (K.current = q, (ee = W == null ? void 0 : W.current) == null || ee.style.setProperty(
1450
+ `${J}px`
1451
+ )), Q && (re.current = Q, (ie = q == null ? void 0 : q.current) == null || ie.style.setProperty(
1428
1452
  "--av-text-area-helper-text",
1429
- `${q}px`
1430
- )), D.current = Ee || D.current;
1453
+ `${Q}px`
1454
+ )), j.current = Re || j.current;
1431
1455
  }
1432
- }, [v, o]), /* @__PURE__ */ x("div", { className: E.wrapper, children: [
1433
- /* @__PURE__ */ s(
1456
+ }, [E, o]), I.width > 0 && ((ee = S == null ? void 0 : S.current) == null || ee.style.setProperty(
1457
+ "--tw-translate-x",
1458
+ `${12 + I.width + 5}px`
1459
+ )), /* @__PURE__ */ C("div", { className: T.wrapper, children: [
1460
+ /* @__PURE__ */ c(
1434
1461
  "label",
1435
1462
  {
1436
- htmlFor: A,
1463
+ htmlFor: H,
1437
1464
  id: b,
1438
- className: E.accessibleLabel,
1465
+ className: T.accessibleLabel,
1439
1466
  children: t
1440
1467
  }
1441
1468
  ),
1442
- /* @__PURE__ */ s(
1469
+ _ && /* @__PURE__ */ c(
1470
+ "div",
1471
+ {
1472
+ ref: Ee,
1473
+ className: T.leftElement,
1474
+ children: _
1475
+ }
1476
+ ),
1477
+ /* @__PURE__ */ c(
1443
1478
  "textarea",
1444
1479
  {
1445
- ref: ge,
1446
- id: A,
1480
+ ref: xe,
1481
+ id: H,
1447
1482
  name: r,
1448
- disabled: g,
1483
+ disabled: h,
1449
1484
  placeholder: o ? void 0 : " ",
1450
- className: E.textArea,
1485
+ className: T.textArea,
1451
1486
  rows: 1,
1452
- ...p && { "aria-describedby": `${A}-helper` },
1487
+ ...p && { "aria-describedby": `${H}-helper` },
1453
1488
  ...a && { "aria-invalid": "true" },
1454
- ...S && !o && { style: { paddingRight: pe } },
1455
- value: v,
1456
- onChange: _e,
1457
- onFocus: xe,
1458
- onBlur: we,
1459
- ...P
1489
+ ...k && !_ && !o && { style: { paddingRight: ae } },
1490
+ ..._ && !k && !o && { style: { paddingLeft: oe } },
1491
+ ...k && _ && !o && {
1492
+ style: {
1493
+ paddingRight: ae,
1494
+ paddingLeft: oe
1495
+ }
1496
+ },
1497
+ value: E,
1498
+ onChange: Ie,
1499
+ onFocus: Ae,
1500
+ onBlur: $e,
1501
+ ...D
1460
1502
  }
1461
1503
  ),
1462
- !o && /* @__PURE__ */ s(
1504
+ !o && /* @__PURE__ */ c(
1463
1505
  "label",
1464
1506
  {
1465
- ref: C,
1507
+ ref: S,
1466
1508
  "aria-hidden": !0,
1467
- htmlFor: A,
1468
- className: E.visibleLabel,
1509
+ htmlFor: H,
1510
+ className: `${T.visibleLabel}`,
1469
1511
  children: t
1470
1512
  }
1471
1513
  ),
1472
- fe && /* @__PURE__ */ s(
1514
+ Te && /* @__PURE__ */ c(
1473
1515
  "div",
1474
1516
  {
1475
- ref: W,
1476
- id: `${A}-helper`,
1477
- className: E.helperText,
1517
+ ref: q,
1518
+ id: `${H}-helper`,
1519
+ className: T.helperText,
1478
1520
  children: p
1479
1521
  }
1480
1522
  ),
1481
- S && /* @__PURE__ */ s(
1523
+ k && /* @__PURE__ */ c(
1482
1524
  "div",
1483
1525
  {
1484
- ref: be,
1485
- className: E.rightElement,
1486
- children: S
1526
+ ref: _e,
1527
+ className: T.rightElement,
1528
+ children: k
1487
1529
  }
1488
1530
  ),
1489
- a && p && /* @__PURE__ */ s(ut, { politeness: "polite", clearAnnouncementDelay: 500, children: ke })
1531
+ a && p && /* @__PURE__ */ c(ft, { politeness: "polite", clearAnnouncementDelay: 500, children: Ne })
1490
1532
  ] });
1491
1533
  }
1492
1534
  );
1493
- vt.displayName = "TextArea";
1535
+ Nt.displayName = "TextArea";
1494
1536
  export {
1495
- Nt as E,
1496
- vt as Le,
1497
- St as SERVICE_TYPES,
1498
- zt as be,
1499
- It as ce,
1500
- O as f,
1501
- Bt as ge,
1502
- Tt as h,
1503
- Ht as he,
1504
- Rt as ne,
1505
- Ke as oe,
1506
- At as restCall,
1507
- $t as se,
1508
- Ct as serviceCall
1537
+ Lt as AppContext,
1538
+ Rt as E,
1539
+ Nt as Fe,
1540
+ Mt as HistoryContext,
1541
+ Ht as SERVICE_TYPES,
1542
+ Ot as TagsContext,
1543
+ Dt as be,
1544
+ Vt as ce,
1545
+ F as f,
1546
+ Pt as ge,
1547
+ Gt as he,
1548
+ Ft as ne,
1549
+ nt as oe,
1550
+ zt as restCall,
1551
+ Ut as se,
1552
+ Bt as serviceCall
1509
1553
  };