@versini/sassysaint 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { jsxs as N, Fragment as be, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as x, Fragment as fe, jsx as l } from "react/jsx-runtime";
2
2
  import i from "clsx";
3
- import H, { useContext as O, useRef as w, useState as J, useLayoutEffect as M, useSyncExternalStore as fe, useCallback as q, useEffect as ke } from "react";
4
- import { A as _e, i as xe, f as we, S as Ne, f$1 as Te, M as ve, U as Se, r as Ce, o as Ie, n as ae, l as Ee, a as j, MODEL_GPT4 as He } from "./index.B6eo37ct.js";
5
- const Oe = (e) => {
3
+ import H, { useContext as O, useRef as N, useState as J, useLayoutEffect as L, useSyncExternalStore as ke, useCallback as q, useEffect as _e } from "react";
4
+ import { A as xe, i as we, f as Ne, S as Te, f$1 as ve, V as Se, j as Ce, F as Ie, r as Ee, o as He, n as ae, l as Oe, a as j, MODEL_GPT4 as Ae } from "./index.BlSrPZWf.js";
5
+ const $e = (e) => {
6
6
  let r = "";
7
7
  if (typeof e == "number" || typeof e == "string")
8
8
  r = "m-" + e;
@@ -23,11 +23,11 @@ const Oe = (e) => {
23
23
  semantic: n = !1,
24
24
  ...m
25
25
  }) => {
26
- const h = Oe(c), y = i(
26
+ const h = $e(c), y = i(
27
27
  h,
28
28
  a || o
29
29
  );
30
- return /* @__PURE__ */ N(be, { children: [
30
+ return /* @__PURE__ */ x(fe, { children: [
31
31
  /* @__PURE__ */ l(
32
32
  "svg",
33
33
  {
@@ -52,33 +52,33 @@ const Oe = (e) => {
52
52
  try {
53
53
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
54
54
  version: "1.4.8",
55
- buildTime: "08/25/2024 02:12 PM EDT",
55
+ buildTime: "09/05/2024 01:34 PM EDT",
56
56
  homepage: "https://github.com/aversini/ui-components",
57
57
  license: "MIT"
58
58
  });
59
59
  } catch {
60
60
  }
61
61
  /*!
62
- @versini/ui-icons v1.11.0
62
+ @versini/ui-icons v1.12.0
63
63
  © 2024 gizmette.com
64
64
  */
65
65
  try {
66
66
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
67
- version: "1.11.0",
68
- buildTime: "08/25/2024 02:12 PM EDT",
67
+ version: "1.12.0",
68
+ buildTime: "09/05/2024 01:34 PM EDT",
69
69
  homepage: "https://github.com/aversini/ui-components",
70
70
  license: "MIT"
71
71
  });
72
72
  } catch {
73
73
  }
74
- const Ae = ({
74
+ const Be = ({
75
75
  className: e,
76
76
  viewBox: r,
77
77
  spacing: t,
78
78
  title: a,
79
79
  monotone: s,
80
80
  ...o
81
- }) => /* @__PURE__ */ N(
81
+ }) => /* @__PURE__ */ x(
82
82
  Q,
83
83
  {
84
84
  defaultViewBox: "0 0 576 512",
@@ -99,14 +99,14 @@ const Ae = ({
99
99
  /* @__PURE__ */ l("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" })
100
100
  ]
101
101
  }
102
- ), $e = ({
102
+ ), Me = ({
103
103
  className: e,
104
104
  viewBox: r,
105
105
  spacing: t,
106
106
  title: a,
107
107
  monotone: s,
108
108
  ...o
109
- }) => /* @__PURE__ */ N(
109
+ }) => /* @__PURE__ */ x(
110
110
  Q,
111
111
  {
112
112
  defaultViewBox: "0 0 576 512",
@@ -127,14 +127,14 @@ const Ae = ({
127
127
  /* @__PURE__ */ l("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" })
128
128
  ]
129
129
  }
130
- ), Be = ({
130
+ ), Le = ({
131
131
  className: e,
132
132
  viewBox: r,
133
133
  spacing: t,
134
134
  title: a,
135
135
  monotone: s,
136
136
  ...o
137
- }) => /* @__PURE__ */ N(
137
+ }) => /* @__PURE__ */ x(
138
138
  Q,
139
139
  {
140
140
  defaultViewBox: "0 0 576 512",
@@ -172,13 +172,13 @@ const Ae = ({
172
172
  labelRight: p,
173
173
  labelLeft: _,
174
174
  spacing: g,
175
- noBackground: C = !1,
176
- align: x = "center",
175
+ noBackground: S = !1,
176
+ align: C = "center",
177
177
  active: A = !1,
178
178
  ...$
179
179
  }, B) => {
180
- const V = _e({
181
- type: we,
180
+ const U = xe({
181
+ type: Ne,
182
182
  mode: t,
183
183
  focusMode: a,
184
184
  fullWidth: s,
@@ -190,8 +190,8 @@ const Ae = ({
190
190
  labelRight: p,
191
191
  labelLeft: _,
192
192
  spacing: g,
193
- noBackground: C,
194
- align: x
193
+ noBackground: S,
194
+ align: C
195
195
  }), z = i({
196
196
  "text-copy-accent-dark": t === "light" && !d,
197
197
  "text-copy-light": t === "dark" && !d,
@@ -214,11 +214,11 @@ const Ae = ({
214
214
  "after:border-table-light dark:after:border-table-dark": t === "alt-system"
215
215
  }
216
216
  ) : "";
217
- return /* @__PURE__ */ l("div", { className: G, children: /* @__PURE__ */ N(
218
- xe,
217
+ return /* @__PURE__ */ l("div", { className: G, children: /* @__PURE__ */ x(
218
+ we,
219
219
  {
220
220
  ref: B,
221
- className: V,
221
+ className: U,
222
222
  disabled: r,
223
223
  type: c,
224
224
  "aria-label": m || h,
@@ -233,16 +233,16 @@ const Ae = ({
233
233
  }
234
234
  );
235
235
  se.displayName = "ButtonSort";
236
- const S = H.createContext({
236
+ const v = H.createContext({
237
237
  mode: "light",
238
238
  cellWrapper: "thead",
239
239
  stickyHeader: !1,
240
240
  stickyFooter: !1,
241
241
  compact: !1
242
- }), R = "thead", Y = "tfoot", v = "tbody", U = {
242
+ }), R = "thead", Y = "tfoot", T = "tbody", V = {
243
243
  ASC: "asc",
244
244
  DESC: "desc"
245
- }, Le = ({
245
+ }, Ve = ({
246
246
  mode: e,
247
247
  className: r,
248
248
  wrapperClassName: t,
@@ -252,7 +252,7 @@ const S = H.createContext({
252
252
  }) => ({
253
253
  wrapper: i(
254
254
  "not-prose relative w-full rounded-lg shadow-md",
255
- Ne(o),
255
+ Te(o),
256
256
  {
257
257
  "overflow-x-auto": !a && !s,
258
258
  "overflow-y-scroll": a || s,
@@ -275,7 +275,7 @@ const S = H.createContext({
275
275
  "text-copy-light dark:text-copy-dark": e === "system",
276
276
  "text-copy-dark dark:text-copy-light": e === "alt-system"
277
277
  })
278
- }), Me = ({
278
+ }), Re = ({
279
279
  className: e,
280
280
  stickyHeader: r,
281
281
  mode: t
@@ -295,7 +295,7 @@ const S = H.createContext({
295
295
  "shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "system",
296
296
  "shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "light",
297
297
  "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"
298
- }), Re = ({
298
+ }), ze = ({
299
299
  mode: e,
300
300
  className: r,
301
301
  cellWrapper: t
@@ -306,14 +306,14 @@ const S = H.createContext({
306
306
  "bg-table-head-light dark:bg-table-head-dark": e === "alt-system"
307
307
  }) : i("border-b last:border-0", r, {
308
308
  "border-table-dark": e === "dark",
309
- "odd:bg-table-dark-odd even:bg-table-dark-even": t === v && e === "dark",
309
+ "odd:bg-table-dark-odd even:bg-table-dark-even": t === T && e === "dark",
310
310
  "border-table-light": e === "light",
311
- "odd:bg-table-light-odd even:bg-table-light-even": t === v && e === "light",
311
+ "odd:bg-table-light-odd even:bg-table-light-even": t === T && e === "light",
312
312
  "border-table-dark dark:border-table-light": e === "system",
313
- "odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === v && e === "system",
313
+ "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",
314
314
  "border-table-light dark:border-table-dark": e === "alt-system",
315
- "odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === v && e === "alt-system"
316
- }), Ve = ({
315
+ "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"
316
+ }), Ge = ({
317
317
  cellWrapper: e,
318
318
  className: r,
319
319
  compact: t,
@@ -324,9 +324,9 @@ const S = H.createContext({
324
324
  "text-copy-light dark:text-copy-dark": a === "system",
325
325
  "text-copy-dark dark:text-copy-light": a === "alt-system",
326
326
  "px-4 py-3": !t && (e === R || e === Y),
327
- "p-4": !t && e === v,
327
+ "p-4": !t && e === T,
328
328
  "px-4 py-1": t
329
- }), st = ({
329
+ }), lt = ({
330
330
  children: e,
331
331
  mode: r = "system",
332
332
  caption: t,
@@ -340,7 +340,7 @@ const S = H.createContext({
340
340
  spacing: h,
341
341
  ...y
342
342
  }) => {
343
- const p = Le({
343
+ const p = Ve({
344
344
  mode: r,
345
345
  className: o,
346
346
  wrapperClassName: c,
@@ -349,7 +349,7 @@ const S = H.createContext({
349
349
  spacing: h
350
350
  });
351
351
  return /* @__PURE__ */ l(
352
- S.Provider,
352
+ v.Provider,
353
353
  {
354
354
  value: { mode: r, stickyHeader: n, stickyFooter: m, compact: a },
355
355
  children: /* @__PURE__ */ l(
@@ -359,7 +359,7 @@ const S = H.createContext({
359
359
  ...d && {
360
360
  style: { maxHeight: d }
361
361
  },
362
- children: /* @__PURE__ */ N("table", { className: p.table, summary: s, ...y, children: [
362
+ children: /* @__PURE__ */ x("table", { className: p.table, summary: s, ...y, children: [
363
363
  t && /* @__PURE__ */ l("caption", { className: p.caption, children: t }),
364
364
  e
365
365
  ] })
@@ -367,25 +367,25 @@ const S = H.createContext({
367
367
  )
368
368
  }
369
369
  );
370
- }, ot = ({
370
+ }, ct = ({
371
371
  children: e,
372
372
  className: r,
373
373
  ...t
374
374
  }) => {
375
- const a = O(S);
375
+ const a = O(v);
376
376
  a.cellWrapper = R;
377
- const s = Me({
377
+ const s = Re({
378
378
  className: r,
379
379
  mode: a.mode,
380
380
  stickyHeader: a.stickyHeader
381
381
  });
382
382
  return /* @__PURE__ */ l("thead", { className: s, ...t, children: e });
383
- }, lt = ({
383
+ }, dt = ({
384
384
  children: e,
385
385
  className: r,
386
386
  ...t
387
387
  }) => {
388
- const a = O(S);
388
+ const a = O(v);
389
389
  a.cellWrapper = Y;
390
390
  const s = Ue({
391
391
  className: r,
@@ -393,34 +393,34 @@ const S = H.createContext({
393
393
  stickyFooter: a.stickyFooter
394
394
  });
395
395
  return /* @__PURE__ */ l("tfoot", { className: s, ...t, children: e });
396
- }, ct = ({ children: e, ...r }) => {
397
- const t = O(S);
398
- return t.cellWrapper = v, /* @__PURE__ */ l("tbody", { ...r, children: e });
399
- }, dt = ({
396
+ }, it = ({ children: e, ...r }) => {
397
+ const t = O(v);
398
+ return t.cellWrapper = T, /* @__PURE__ */ l("tbody", { ...r, children: e });
399
+ }, nt = ({
400
400
  children: e,
401
401
  className: r,
402
402
  ...t
403
403
  }) => {
404
- const a = O(S), s = Re({
404
+ const a = O(v), s = ze({
405
405
  mode: a.mode,
406
406
  cellWrapper: a.cellWrapper,
407
407
  className: r
408
408
  });
409
409
  return /* @__PURE__ */ l("tr", { className: s, ...t, children: e });
410
- }, ze = ({
410
+ }, Fe = ({
411
411
  children: e,
412
412
  component: r,
413
413
  className: t,
414
414
  ...a
415
415
  }) => {
416
- const s = O(S), o = r || (s.cellWrapper === R ? "th" : "td"), c = Ve({
416
+ const s = O(v), o = r || (s.cellWrapper === R ? "th" : "td"), c = Ge({
417
417
  cellWrapper: s.cellWrapper,
418
418
  className: t,
419
419
  mode: s.mode,
420
420
  compact: s.compact
421
421
  });
422
422
  return /* @__PURE__ */ l(o, { className: c, ...a, children: e });
423
- }, it = ({
423
+ }, mt = ({
424
424
  align: e,
425
425
  children: r,
426
426
  className: t,
@@ -433,12 +433,12 @@ const S = H.createContext({
433
433
  cellId: m,
434
434
  ...h
435
435
  }) => /* @__PURE__ */ l(
436
- ze,
436
+ Fe,
437
437
  {
438
438
  component: a,
439
439
  className: t,
440
440
  role: "columnheader",
441
- "aria-sort": d === U.ASC && n === m ? "ascending" : d === U.DESC && n === m ? "descending" : "other",
441
+ "aria-sort": d === V.ASC && n === m ? "ascending" : d === V.DESC && n === m ? "descending" : "other",
442
442
  ...h,
443
443
  children: /* @__PURE__ */ l(
444
444
  se,
@@ -452,12 +452,12 @@ const S = H.createContext({
452
452
  mode: o,
453
453
  fullWidth: !0,
454
454
  labelRight: r,
455
- children: d === U.ASC && n === m ? /* @__PURE__ */ l(Be, { className: "size-4", monotone: !0 }) : d === U.DESC && n === m ? /* @__PURE__ */ l($e, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Ae, { className: "size-4", monotone: !0 })
455
+ children: d === V.ASC && n === m ? /* @__PURE__ */ l(Le, { className: "size-4", monotone: !0 }) : d === V.DESC && n === m ? /* @__PURE__ */ l(Me, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Be, { className: "size-4", monotone: !0 })
456
456
  }
457
457
  )
458
458
  }
459
459
  );
460
- function Ge({
460
+ function De({
461
461
  value: e,
462
462
  defaultValue: r,
463
463
  finalValue: t,
@@ -471,21 +471,21 @@ function Ge({
471
471
  o(c), a == null || a(c);
472
472
  }, !1];
473
473
  }
474
- const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Fe = ({
474
+ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", We = ({
475
475
  mode: e
476
476
  }) => i({
477
477
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
478
478
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
479
479
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
480
480
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
481
- }), We = ({
481
+ }), qe = ({
482
482
  focusMode: e
483
483
  }) => i("focus:outline focus:outline-2 focus:outline-offset-2", {
484
484
  "focus:outline-focus-dark": e === "dark",
485
485
  "focus:outline-focus-light": e === "light",
486
486
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
487
487
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
488
- }), Pe = ({
488
+ }), je = ({
489
489
  noBorder: e,
490
490
  error: r
491
491
  }) => i("border-2", {
@@ -493,7 +493,7 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
493
493
  "focus:border-border-dark": !e && r,
494
494
  "border-border-error-dark": !e && r,
495
495
  "border-transparent": e
496
- }), qe = ({
496
+ }), Je = ({
497
497
  disabled: e,
498
498
  raw: r,
499
499
  error: t,
@@ -517,7 +517,7 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
517
517
  "text-copy-error-dark dark:text-copy-error-light": a === "system",
518
518
  "text-copy-medium dark:text-copy-error-dark": a === "alt-system"
519
519
  });
520
- }, je = ({
520
+ }, Qe = ({
521
521
  error: e,
522
522
  raw: r,
523
523
  mode: t,
@@ -544,7 +544,7 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
544
544
  "text-copy-error-dark dark:text-copy-error-light": t === "system",
545
545
  "dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
546
546
  });
547
- }, Je = ({
547
+ }, Ye = ({
548
548
  className: e,
549
549
  textAreaClassName: r,
550
550
  raw: t,
@@ -557,33 +557,33 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
557
557
  }) => {
558
558
  const m = t ? e : i(
559
559
  "relative flex w-full flex-col justify-center",
560
- Ce,
560
+ Ee,
561
561
  e,
562
- Ie(d)
562
+ He(d)
563
563
  ), h = t ? i(r) : i(
564
564
  ae,
565
565
  r,
566
- De(),
567
- Fe({ mode: n }),
568
- We({ focusMode: a }),
569
- Pe({
566
+ Pe(),
567
+ We({ mode: n }),
568
+ qe({ focusMode: a }),
569
+ je({
570
570
  noBorder: o,
571
571
  error: c
572
572
  }),
573
573
  {
574
574
  "disabled:cursor-not-allowed disabled:opacity-50": s
575
575
  }
576
- ), y = t ? void 0 : "sr-only", p = qe({
576
+ ), y = t ? void 0 : "sr-only", p = Je({
577
577
  disabled: s,
578
578
  raw: t,
579
579
  error: c,
580
580
  mode: n
581
- }), _ = je({
581
+ }), _ = Qe({
582
582
  error: c,
583
583
  raw: t,
584
584
  mode: n,
585
585
  disabled: s
586
- }), g = t ? void 0 : i(Ee, "absolute");
586
+ }), g = t ? void 0 : i(Oe, "absolute");
587
587
  return {
588
588
  wrapper: m,
589
589
  textArea: h,
@@ -592,7 +592,7 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
592
592
  helperText: _,
593
593
  rightElement: g
594
594
  };
595
- }, Qe = ({
595
+ }, Ke = ({
596
596
  scrollHeight: e,
597
597
  currentHeight: r,
598
598
  currentLabelOffset: t = 0,
@@ -608,7 +608,7 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
608
608
  helperTextOffset: o,
609
609
  scrollHeight: e
610
610
  };
611
- }, Ye = H.forwardRef(
611
+ }, Xe = H.forwardRef(
612
612
  ({
613
613
  id: e,
614
614
  name: r,
@@ -625,17 +625,17 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
625
625
  noBorder: p = !1,
626
626
  labelId: _,
627
627
  helperText: g = "",
628
- helperTextOnFocus: C = !1,
629
- rightElement: x,
628
+ helperTextOnFocus: S = !1,
629
+ rightElement: C,
630
630
  onChange: A,
631
631
  onFocus: $,
632
632
  onBlur: B,
633
- spacing: V,
633
+ spacing: U,
634
634
  ...z
635
635
  }, G) => {
636
- const b = w(null), ce = Te([G, b]), L = w(null), D = w(80), K = w(-25), I = w(null), X = w(30), F = w(null), E = ve({ id: e, prefix: `${ae}-` }), [de, ie] = J(0), [ne, Z] = J(
637
- !!(!C && g)
638
- ), me = `${r} error, ${g}`, T = Je({
636
+ const b = N(null), ce = ve([G, b]), [de, M] = Se(), F = N(80), K = N(-25), I = N(null), X = N(30), D = N(null), E = Ce({ id: e, prefix: `${ae}-` }), [ie, ne] = J(0), [me, Z] = J(
637
+ !!(!S && g)
638
+ ), ue = `${r} error, ${g}`, w = Ye({
639
639
  className: o,
640
640
  textAreaClassName: c,
641
641
  error: a,
@@ -643,9 +643,9 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
643
643
  focusMode: n,
644
644
  disabled: y,
645
645
  noBorder: p,
646
- spacing: V,
646
+ spacing: U,
647
647
  mode: d
648
- }), [f, ue] = Ge({
648
+ }), [f, he] = De({
649
649
  value: m,
650
650
  defaultValue: h,
651
651
  onChange: (u) => {
@@ -655,18 +655,18 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
655
655
  }
656
656
  });
657
657
  }
658
- }), he = (u) => {
659
- ue(u.target.value);
660
- }, pe = (u) => {
661
- C && g && Z(!0), $ && $(u);
658
+ }), pe = (u) => {
659
+ he(u.target.value);
662
660
  }, ge = (u) => {
663
- C && g && !f && Z(!1), B && B(u);
661
+ S && g && Z(!0), $ && $(u);
662
+ }, ye = (u) => {
663
+ S && g && !f && Z(!1), B && B(u);
664
664
  };
665
- return M(() => {
666
- !s && x && L.current && L.current.offsetWidth > 0 && ie(L.current.offsetWidth + 18 + 10);
667
- }, [x, s]), M(() => {
665
+ return L(() => {
666
+ M && M.width && ne(M.width + 18 + 10);
667
+ }, [M]), L(() => {
668
668
  s || b && b.current && f !== void 0 && (b.current.style.height = "inherit", b.current.style.height = b.current.scrollHeight + "px");
669
- }, [f, s]), M(() => {
669
+ }, [f, s]), L(() => {
670
670
  s || setTimeout(() => {
671
671
  var u;
672
672
  (u = I == null ? void 0 : I.current) == null || u.style.setProperty(
@@ -674,30 +674,30 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
674
674
  f ? "none" : "all 0.2s ease-out"
675
675
  );
676
676
  }, 0);
677
- }, [f, s]), M(() => {
677
+ }, [f, s]), L(() => {
678
678
  var u, ee;
679
679
  if (!s && b && b.current && f !== void 0) {
680
- const { labelOffset: W, helperTextOffset: P, scrollHeight: ye } = Qe({
680
+ const { labelOffset: P, helperTextOffset: W, scrollHeight: be } = Ke({
681
681
  scrollHeight: b.current.scrollHeight,
682
- currentHeight: D.current,
682
+ currentHeight: F.current,
683
683
  currentLabelOffset: K.current,
684
684
  currentHelperTextOffset: X.current
685
685
  });
686
- W && (K.current = W, (u = I == null ? void 0 : I.current) == null || u.style.setProperty(
686
+ P && (K.current = P, (u = I == null ? void 0 : I.current) == null || u.style.setProperty(
687
687
  "--av-text-area-label",
688
- `${W}px`
689
- )), P && (X.current = P, (ee = F == null ? void 0 : F.current) == null || ee.style.setProperty(
690
- "--av-text-area-helper-text",
691
688
  `${P}px`
692
- )), D.current = ye || D.current;
689
+ )), W && (X.current = W, (ee = D == null ? void 0 : D.current) == null || ee.style.setProperty(
690
+ "--av-text-area-helper-text",
691
+ `${W}px`
692
+ )), F.current = be || F.current;
693
693
  }
694
- }, [f, s]), /* @__PURE__ */ N("div", { className: T.wrapper, children: [
694
+ }, [f, s]), /* @__PURE__ */ x("div", { className: w.wrapper, children: [
695
695
  /* @__PURE__ */ l(
696
696
  "label",
697
697
  {
698
698
  htmlFor: E,
699
699
  id: _,
700
- className: T.accessibleLabel,
700
+ className: w.accessibleLabel,
701
701
  children: t
702
702
  }
703
703
  ),
@@ -709,15 +709,15 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
709
709
  name: r,
710
710
  disabled: y,
711
711
  placeholder: s ? void 0 : " ",
712
- className: T.textArea,
712
+ className: w.textArea,
713
713
  rows: 1,
714
714
  ...g && { "aria-describedby": `${E}-helper` },
715
715
  ...a && { "aria-invalid": "true" },
716
- ...x && !s && { style: { paddingRight: de } },
716
+ ...C && !s && { style: { paddingRight: ie } },
717
717
  value: f,
718
- onChange: he,
719
- onFocus: pe,
720
- onBlur: ge,
718
+ onChange: pe,
719
+ onFocus: ge,
720
+ onBlur: ye,
721
721
  ...z
722
722
  }
723
723
  ),
@@ -727,32 +727,32 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
727
727
  ref: I,
728
728
  "aria-hidden": !0,
729
729
  htmlFor: E,
730
- className: T.visibleLabel,
730
+ className: w.visibleLabel,
731
731
  children: t
732
732
  }
733
733
  ),
734
- ne && /* @__PURE__ */ l(
734
+ me && /* @__PURE__ */ l(
735
735
  "div",
736
736
  {
737
- ref: F,
737
+ ref: D,
738
738
  id: `${E}-helper`,
739
- className: T.helperText,
739
+ className: w.helperText,
740
740
  children: g
741
741
  }
742
742
  ),
743
- x && /* @__PURE__ */ l(
743
+ C && /* @__PURE__ */ l(
744
744
  "div",
745
745
  {
746
- ref: L,
747
- className: T.rightElement,
748
- children: x
746
+ ref: de,
747
+ className: w.rightElement,
748
+ children: C
749
749
  }
750
750
  ),
751
- a && g && /* @__PURE__ */ l(Se, { politeness: "polite", clearAnnouncementDelay: 500, children: me })
751
+ a && g && /* @__PURE__ */ l(Ie, { politeness: "polite", clearAnnouncementDelay: 500, children: ue })
752
752
  ] });
753
753
  }
754
754
  );
755
- Ye.displayName = "TextArea";
755
+ Xe.displayName = "TextArea";
756
756
  const k = {
757
757
  GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
758
758
  location(latitude: $latitude, longitude: $longitude) {
@@ -820,7 +820,7 @@ const k = {
820
820
  instructions: $instructions,
821
821
  location: $location)
822
822
  }`
823
- }, nt = {
823
+ }, ut = {
824
824
  GET_LOCATION: {
825
825
  schema: k.GET_LOCATION,
826
826
  method: "location",
@@ -879,7 +879,7 @@ const k = {
879
879
  location: e.location
880
880
  })
881
881
  }
882
- }, oe = process.env.PUBLIC_SASSY_API_SERVER_URL, Ke = async ({
882
+ }, oe = process.env.PUBLIC_SASSY_API_SERVER_URL, Ze = async ({
883
883
  query: e,
884
884
  data: r,
885
885
  headers: t = {}
@@ -895,14 +895,14 @@ const k = {
895
895
  query: e,
896
896
  variables: r
897
897
  })
898
- }), mt = async ({
898
+ }), ht = async ({
899
899
  accessToken: e,
900
900
  type: r,
901
901
  params: t = {}
902
902
  }) => {
903
903
  const a = r != null && r.data ? r.data(t) : t;
904
904
  try {
905
- const s = `Bearer ${e}`, o = await Ke({
905
+ const s = `Bearer ${e}`, o = await Ze({
906
906
  headers: {
907
907
  authorization: s
908
908
  },
@@ -920,7 +920,7 @@ const k = {
920
920
  } catch (s) {
921
921
  return console.error(s), { status: 500, data: [] };
922
922
  }
923
- }, ut = async ({
923
+ }, pt = async ({
924
924
  accessToken: e,
925
925
  name: r,
926
926
  data: t,
@@ -936,10 +936,10 @@ const k = {
936
936
  },
937
937
  body: JSON.stringify(t)
938
938
  });
939
- }, ht = H.createContext({
939
+ }, gt = H.createContext({
940
940
  state: {
941
941
  id: "",
942
- model: He,
942
+ model: Ae,
943
943
  usage: 0,
944
944
  messages: [],
945
945
  isComponent: !1
@@ -947,7 +947,7 @@ const k = {
947
947
  dispatch: () => {
948
948
  },
949
949
  serverStats: { version: "", models: [], plugins: [] }
950
- }), pt = H.createContext({
950
+ }), yt = H.createContext({
951
951
  state: { searchString: "", sortedCell: "", sortDirection: "" },
952
952
  dispatch: () => {
953
953
  }
@@ -960,18 +960,18 @@ const te = (e, r) => {
960
960
  typeof r == "function" ? r() : r
961
961
  );
962
962
  window.localStorage.setItem(e, t), le(e, t);
963
- }, Xe = (e) => {
963
+ }, et = (e) => {
964
964
  window.localStorage.removeItem(e), le(e, null);
965
- }, re = (e) => window.localStorage.getItem(e), Ze = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
966
- function gt({
965
+ }, re = (e) => window.localStorage.getItem(e), tt = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
966
+ function bt({
967
967
  key: e,
968
968
  initialValue: r
969
969
  }) {
970
- const t = fe(Ze, () => re(e)), a = q(
970
+ const t = ke(tt, () => re(e)), a = q(
971
971
  (c) => {
972
972
  try {
973
973
  const d = typeof c == "function" ? c(JSON.parse(t)) : c;
974
- d == null ? Xe(e) : te(e, d);
974
+ d == null ? et(e) : te(e, d);
975
975
  } catch (d) {
976
976
  console.warn(d);
977
977
  }
@@ -982,7 +982,7 @@ function gt({
982
982
  }, [r, a]), o = q(() => {
983
983
  a(null);
984
984
  }, [a]);
985
- return ke(() => {
985
+ return _e(() => {
986
986
  try {
987
987
  re(e) === null && typeof r < "u" && te(e, r);
988
988
  } catch (c) {
@@ -991,20 +991,20 @@ function gt({
991
991
  }, [e, r]), [t ? JSON.parse(t) : null, a, s, o];
992
992
  }
993
993
  export {
994
- ht as AppContext,
995
- gt as E,
996
- pt as HistoryContext,
997
- ze as J,
998
- nt as SERVICE_TYPES,
999
- ot as at,
1000
- it as ct,
1001
- st as et,
994
+ gt as AppContext,
995
+ Xe as At,
996
+ bt as E,
997
+ yt as HistoryContext,
998
+ Fe as J,
999
+ ut as SERVICE_TYPES,
1000
+ ct as at,
1001
+ mt as ct,
1002
+ lt as et,
1002
1003
  Q as g,
1003
- U as k,
1004
- Ye as kt,
1005
- dt as lt,
1006
- ut as restCall,
1007
- lt as rt,
1008
- mt as serviceCall,
1009
- ct as st
1004
+ V as k,
1005
+ nt as lt,
1006
+ pt as restCall,
1007
+ dt as rt,
1008
+ ht as serviceCall,
1009
+ it as st
1010
1010
  };