@versini/sassysaint 5.5.35 → 5.5.37

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,9 +1,9 @@
1
1
  import { jsxs as h, jsx as a, Fragment as M } from "react/jsx-runtime";
2
- import { g as D, un as G, R as $, CARDS as C, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as ht, L as X, j as A, C as F, INFINITE_SCROLL_LIMIT as Be, INFINITE_SCROLL_THRESHOLD as Oe, LOCAL_STORAGE_PREFIX as _e, LOCAL_STORAGE_SORT as gt, P as le, ACTION_RESET as pt, ACTION_RESTORE as ft, ACTION_SORT as Pe, LOCAL_STORAGE_SEARCH as bt, HISTORY_TITLE as yt, ye as Ee, ACTION_SEARCH as kt, debounce as vt, M as xt, z as $e, durationFormatter as Nt, PROFILE_TITLE as wt, PROMPTS_DESCRIPTION as Et, DEFAULT_AI_ENGINE as Ct, LOCAL_STORAGE_CHAT_DETAILS as Tt, SETTINGS_TITLE as _t, ENGINE_OPENAI as Q, ENGINE_ANTHROPIC as re, APP_NAME as It, getCurrentGeoLocation as St, LOG_OUT as De } from "./index.B1Guvajo.js";
3
- import { i as pe, useServerCapabilities as Lt, HistoryContext as je, E as Ie, ge as At, he as Rt, ue as Ne, ie as P, ye as zt, me as Mt, p as Bt, i$1 as Ot, be as Pt, serviceCall as ce, SERVICE_TYPES as ie, f as ae, AppContext as We, useChatsHistory as $t, useUserChatStats as Dt, useUserPreferences as Ye, me$1 as Vt, R as oe, P as Ht } from "./App.sQ2qRiIp.js";
2
+ import { g as D, un as G, R as $, CARDS as T, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as ht, L as X, j as A, C as F, INFINITE_SCROLL_LIMIT as Be, INFINITE_SCROLL_THRESHOLD as Oe, LOCAL_STORAGE_PREFIX as _e, LOCAL_STORAGE_SORT as gt, P as le, ACTION_RESET as pt, ACTION_RESTORE as ft, ACTION_SORT as Pe, LOCAL_STORAGE_SEARCH as bt, HISTORY_TITLE as yt, ye as Ee, ACTION_SEARCH as kt, debounce as vt, M as xt, z as $e, durationFormatter as Nt, PROFILE_TITLE as wt, PROMPTS_DESCRIPTION as Et, DEFAULT_AI_ENGINE as Tt, LOCAL_STORAGE_CHAT_DETAILS as Ct, SETTINGS_TITLE as _t, ENGINE_OPENAI as Q, ENGINE_ANTHROPIC as re, APP_NAME as It, getCurrentGeoLocation as St, LOG_OUT as De } from "./index.gfLDgD4t.js";
3
+ import { i as pe, useServerCapabilities as Lt, HistoryContext as je, E as Ie, ge as At, he as Rt, ue as Ne, ie as P, ye as zt, me as Mt, p as Bt, i$1 as Ot, be as Pt, serviceCall as ce, SERVICE_TYPES as ie, f as ae, AppContext as We, useChatsHistory as $t, useUserChatStats as Dt, useUserPreferences as Ye, me$1 as Vt, R as oe, P as Ht } from "./App.C9JOoJdo.js";
4
4
  import * as S from "react";
5
5
  import be, { useId as Se, useRef as _, useEffect as V, useState as w, useContext as fe, useCallback as Ke, Fragment as Ut, useLayoutEffect as ne, useMemo as Xe, useReducer as Ft } from "react";
6
- import m from "clsx";
6
+ import d from "clsx";
7
7
  import { useMergeRefs as Gt, FloatingPortal as jt, FloatingOverlay as Wt, FloatingFocusManager as Yt, useFloating as Kt, useClick as Xt, useDismiss as qt, useRole as Qt, useInteractions as Jt } from "@floating-ui/react";
8
8
  const Zt = ({
9
9
  className: e,
@@ -300,24 +300,24 @@ try {
300
300
  });
301
301
  } catch {
302
302
  }
303
- const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe = "button", Ce = "link", cr = ({
303
+ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe = "button", Te = "link", cr = ({
304
304
  type: e,
305
305
  size: r,
306
306
  labelRight: t,
307
307
  labelLeft: o,
308
308
  align: n
309
309
  }) => {
310
- const s = "max-h-8 py-0 px-2", l = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
310
+ const l = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
311
311
  switch (e) {
312
312
  case qe:
313
- case Ce:
314
- return m({
315
- [s]: r === "small",
316
- [l]: r === "medium",
313
+ case Te:
314
+ return d({
315
+ [l]: r === "small",
316
+ [s]: r === "medium",
317
317
  [c]: r === "large"
318
318
  });
319
319
  case ye:
320
- return m("inline-flex items-center", {
320
+ return d("inline-flex items-center", {
321
321
  "justify-center": n === "center",
322
322
  "justify-start": n === "left",
323
323
  "justify-end": n === "right",
@@ -335,21 +335,21 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
335
335
  labelRight: t,
336
336
  labelLeft: o
337
337
  }) => {
338
- const n = "text-sm font-medium", s = "text-base font-medium", l = "text-lg font-medium";
338
+ const n = "text-sm font-medium", l = "text-base font-medium", s = "text-lg font-medium";
339
339
  switch (e) {
340
340
  case qe:
341
- case Ce:
342
- return m({
343
- "text-center": e === Ce,
341
+ case Te:
342
+ return d({
343
+ "text-center": e === Te,
344
344
  [n]: r === "small",
345
- [s]: r === "medium",
346
- [l]: r === "large"
345
+ [l]: r === "medium",
346
+ [s]: r === "large"
347
347
  });
348
348
  case ye:
349
- return m({
349
+ return d({
350
350
  [n]: r === "small" && (t || o),
351
- [s]: r === "medium" && (t || o),
352
- [l]: r === "large" && (t || o)
351
+ [l]: r === "medium" && (t || o),
352
+ [s]: r === "large" && (t || o)
353
353
  });
354
354
  }
355
355
  }, dr = ({
@@ -361,7 +361,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
361
361
  if (r)
362
362
  return "not-prose";
363
363
  if (o === "primary")
364
- return m("not-prose", {
364
+ return d("not-prose", {
365
365
  truncate: !t,
366
366
  "text-copy-light": e === "dark" || e === "system",
367
367
  "text-copy-lighter": e === "light" || e === "alt-system",
@@ -369,7 +369,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
369
369
  "dark:text-copy-light": e === "alt-system"
370
370
  });
371
371
  if (o === "secondary")
372
- return m("not-prose", {
372
+ return d("not-prose", {
373
373
  truncate: !t,
374
374
  "text-copy-light": e === "light" || e === "system",
375
375
  "text-copy-lighter": e === "dark" || e === "alt-system",
@@ -377,7 +377,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
377
377
  "dark:text-copy-light": e === "system"
378
378
  });
379
379
  if (o === "danger")
380
- return m("not-prose", {
380
+ return d("not-prose", {
381
381
  truncate: !t,
382
382
  "text-copy-light": e === "dark" || e === "system",
383
383
  "text-copy-lighter": e === "light" || e === "alt-system",
@@ -385,7 +385,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
385
385
  "dark:text-copy-light": e === "alt-system"
386
386
  });
387
387
  if (o === "selected")
388
- return m("not-prose text-copy-lighter", {
388
+ return d("not-prose text-copy-lighter", {
389
389
  truncate: !t
390
390
  });
391
391
  }, mr = ({
@@ -395,21 +395,21 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
395
395
  }) => {
396
396
  if (!r) {
397
397
  if (t === "primary")
398
- return m({
398
+ return d({
399
399
  "bg-action-dark": e === "dark",
400
400
  "bg-action-light": e === "light",
401
401
  "bg-action-dark dark:bg-action-light": e === "system",
402
402
  "bg-action-light dark:bg-action-dark": e === "alt-system"
403
403
  });
404
404
  if (t === "secondary")
405
- return m({
405
+ return d({
406
406
  "bg-action-dark": e === "light",
407
407
  "bg-action-light": e === "dark",
408
408
  "bg-action-dark dark:bg-action-light": e === "alt-system",
409
409
  "bg-action-light dark:bg-action-dark": e === "system"
410
410
  });
411
411
  if (t === "danger")
412
- return m({
412
+ return d({
413
413
  "bg-action-danger-dark": e === "dark",
414
414
  "bg-action-danger-light": e === "light",
415
415
  "bg-action-danger-dark dark:bg-action-danger-light": e === "system",
@@ -420,7 +420,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
420
420
  }
421
421
  }, ur = ({
422
422
  radius: e
423
- }) => m({
423
+ }) => d({
424
424
  "rounded-full": e === "large",
425
425
  "rounded-md": e === "medium",
426
426
  "rounded-sm": e === "small"
@@ -432,21 +432,21 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
432
432
  if (r)
433
433
  return "";
434
434
  if (t === "primary")
435
- return m("hover:text-copy-light-hover", {
435
+ return d("hover:text-copy-light-hover", {
436
436
  "hover:bg-action-dark-hover": e === "dark",
437
437
  "hover:bg-action-light-hover": e === "light",
438
438
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
439
439
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
440
440
  });
441
441
  if (t === "secondary")
442
- return m("hover:text-copy-light-hover", {
442
+ return d("hover:text-copy-light-hover", {
443
443
  "hover:bg-action-dark-hover": e === "light",
444
444
  "hover:bg-action-light-hover": e === "dark",
445
445
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
446
446
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
447
447
  });
448
448
  if (t === "danger")
449
- return m("hover:text-copy-light-hover", {
449
+ return d("hover:text-copy-light-hover", {
450
450
  "hover:bg-action-danger-dark-hover": e === "dark",
451
451
  "hover:bg-action-danger-light-hover": e === "light",
452
452
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
@@ -462,21 +462,21 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
462
462
  if (r)
463
463
  return "";
464
464
  if (t === "primary")
465
- return m("active:text-copy-light-active", {
465
+ return d("active:text-copy-light-active", {
466
466
  "active:bg-action-dark-active": e === "dark",
467
467
  "active:bg-action-light-active": e === "light",
468
468
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
469
469
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
470
470
  });
471
471
  if (t === "secondary")
472
- return m("active:text-copy-light-active", {
472
+ return d("active:text-copy-light-active", {
473
473
  "active:bg-action-dark-active": e === "light",
474
474
  "active:bg-action-light-active": e === "dark",
475
475
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
476
476
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
477
477
  });
478
478
  if (t === "danger")
479
- return m("active:text-copy-lighter-active", {
479
+ return d("active:text-copy-lighter-active", {
480
480
  "active:bg-action-danger-dark-active": e === "dark",
481
481
  "active:bg-action-danger-light-active": e === "light",
482
482
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
@@ -492,21 +492,21 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
492
492
  if (r)
493
493
  return "border border-transparent";
494
494
  if (t === "primary")
495
- return m("border", {
495
+ return d("border", {
496
496
  "border-border-dark": e === "dark",
497
497
  "border-border-accent": e === "light",
498
498
  "border-border-dark dark:border-border-accent": e === "system",
499
499
  "border-border-accent dark:border-border-dark": e === "alt-system"
500
500
  });
501
501
  if (t === "secondary")
502
- return m("border", {
502
+ return d("border", {
503
503
  "border-border-dark": e === "light",
504
504
  "border-border-accent": e === "dark",
505
505
  "border-border-dark dark:border-border-accent": e === "alt-system",
506
506
  "border-border-accent dark:border-border-dark": e === "system"
507
507
  });
508
508
  if (t === "danger")
509
- return m("border", {
509
+ return d("border", {
510
510
  "border-border-danger-dark": e === "dark",
511
511
  "border-border-danger-medium": e === "light",
512
512
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
@@ -516,7 +516,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
516
516
  return "border border-border-selected-dark";
517
517
  }, fr = ({
518
518
  focusMode: e
519
- }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
519
+ }) => d("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
520
520
  "focus:outline-focus-dark": e === "dark",
521
521
  "focus:outline-focus-light": e === "light",
522
522
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -527,42 +527,42 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
527
527
  raw: t,
528
528
  mode: o,
529
529
  focusMode: n,
530
- disabled: s,
531
- fullWidth: l,
530
+ disabled: l,
531
+ fullWidth: s,
532
532
  size: c,
533
533
  noBorder: u,
534
- labelRight: d,
535
- labelLeft: p,
536
- noBackground: k,
537
- variant: g,
534
+ labelRight: m,
535
+ labelLeft: g,
536
+ noBackground: y,
537
+ variant: p,
538
538
  noTruncate: i,
539
539
  align: f,
540
540
  radius: v
541
- }) => (g || (g = "primary"), t ? m(Ue, r) : m(
541
+ }) => (p || (p = "primary"), t ? d(Ue, r) : d(
542
542
  Ue,
543
543
  dr({
544
544
  mode: o,
545
- variant: g,
546
- noBackground: k,
545
+ variant: p,
546
+ noBackground: y,
547
547
  noTruncate: i
548
548
  }),
549
- mr({ mode: o, noBackground: k, variant: g }),
549
+ mr({ mode: o, noBackground: y, variant: p }),
550
550
  ur({ radius: v }),
551
551
  cr({
552
552
  type: e,
553
553
  size: c,
554
- labelRight: d,
555
- labelLeft: p,
554
+ labelRight: m,
555
+ labelLeft: g,
556
556
  align: f
557
557
  }),
558
- ir({ type: e, size: c, labelRight: d, labelLeft: p }),
559
- pr({ mode: o, variant: g, noBorder: u }),
558
+ ir({ type: e, size: c, labelRight: m, labelLeft: g }),
559
+ pr({ mode: o, variant: p, noBorder: u }),
560
560
  fr({ focusMode: n }),
561
- hr({ mode: o, variant: g, disabled: s }),
562
- gr({ mode: o, variant: g, disabled: s }),
561
+ hr({ mode: o, variant: p, disabled: l }),
562
+ gr({ mode: o, variant: p, disabled: l }),
563
563
  {
564
- "w-full": l,
565
- "disabled:cursor-not-allowed disabled:opacity-50": s
564
+ "w-full": s,
565
+ "disabled:cursor-not-allowed disabled:opacity-50": l
566
566
  },
567
567
  r
568
568
  )), br = (e, r, t) => {
@@ -574,8 +574,8 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
574
574
  "button",
575
575
  {
576
576
  ref: r,
577
- onClick: (s) => {
578
- br(s, o, t);
577
+ onClick: (l) => {
578
+ br(l, o, t);
579
579
  },
580
580
  ...n
581
581
  }
@@ -589,20 +589,20 @@ const Je = be.forwardRef(
589
589
  mode: t = "system",
590
590
  focusMode: o = "system",
591
591
  fullWidth: n = !1,
592
- className: s,
593
- type: l = "button",
592
+ className: l,
593
+ type: s = "button",
594
594
  raw: c = !1,
595
595
  noBorder: u = !1,
596
- "aria-label": d,
597
- label: p,
598
- size: k = "medium",
599
- labelRight: g,
596
+ "aria-label": m,
597
+ label: g,
598
+ size: y = "medium",
599
+ labelRight: p,
600
600
  labelLeft: i,
601
601
  noBackground: f = !1,
602
602
  align: v = "center",
603
- radius: y = "large",
604
- variant: x = "primary",
605
- ...T
603
+ radius: x = "large",
604
+ variant: k = "primary",
605
+ ...C
606
606
  }, b) => {
607
607
  const E = Qe({
608
608
  type: ye,
@@ -611,16 +611,16 @@ const Je = be.forwardRef(
611
611
  fullWidth: n,
612
612
  disabled: r,
613
613
  raw: c,
614
- className: s,
614
+ className: l,
615
615
  noBorder: u,
616
- size: k,
617
- labelRight: g,
616
+ size: y,
617
+ labelRight: p,
618
618
  labelLeft: i,
619
619
  noBackground: f,
620
620
  align: v,
621
- radius: y,
622
- variant: x
623
- }), I = m({
621
+ radius: x,
622
+ variant: k
623
+ }), I = d({
624
624
  "text-copy-accent-dark": (t === "light" || t === "alt-system") && !c,
625
625
  "text-copy-light": (t === "dark" || t === "system") && !c,
626
626
  "dark:text-copy-light": t === "alt-system" && !c,
@@ -632,13 +632,13 @@ const Je = be.forwardRef(
632
632
  ref: b,
633
633
  className: E,
634
634
  disabled: r,
635
- type: l,
636
- "aria-label": d || p,
637
- ...T,
635
+ type: s,
636
+ "aria-label": m || g,
637
+ ...C,
638
638
  children: [
639
639
  i && /* @__PURE__ */ a("span", { className: "pr-2", children: i }),
640
640
  /* @__PURE__ */ a("div", { className: I, children: e }),
641
- g && /* @__PURE__ */ a("span", { className: "pl-2", children: g })
641
+ p && /* @__PURE__ */ a("span", { className: "pl-2", children: p })
642
642
  ]
643
643
  }
644
644
  );
@@ -665,20 +665,20 @@ const yr = be.forwardRef(
665
665
  mode: t = "system",
666
666
  focusMode: o = "system",
667
667
  fullWidth: n = !1,
668
- className: s,
669
- type: l = "button",
668
+ className: l,
669
+ type: s = "button",
670
670
  raw: c = !1,
671
671
  noBorder: u = !1,
672
- "aria-label": d,
673
- label: p,
674
- size: k = "medium",
675
- labelRight: g,
672
+ "aria-label": m,
673
+ label: g,
674
+ size: y = "medium",
675
+ labelRight: p,
676
676
  labelLeft: i,
677
677
  noBackground: f = !1,
678
678
  align: v = "center",
679
- active: y = !1,
680
- radius: x = "large",
681
- ...T
679
+ active: x = !1,
680
+ radius: k = "large",
681
+ ...C
682
682
  }, b) => {
683
683
  const E = Qe({
684
684
  type: ye,
@@ -687,20 +687,20 @@ const yr = be.forwardRef(
687
687
  fullWidth: n,
688
688
  disabled: r,
689
689
  raw: c,
690
- className: s,
690
+ className: l,
691
691
  noBorder: u,
692
- size: k,
693
- labelRight: g,
692
+ size: y,
693
+ labelRight: p,
694
694
  labelLeft: i,
695
695
  noBackground: f,
696
696
  align: v,
697
- radius: x
698
- }), I = m({
697
+ radius: k
698
+ }), I = d({
699
699
  "text-copy-accent-dark": t === "light" && !c,
700
700
  "text-copy-light": t === "dark" && !c,
701
701
  "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !c,
702
702
  "text-copy-light dark:text-copy-accent-dark": t === "system" && !c
703
- }), H = y ? m(
703
+ }), H = x ? d(
704
704
  "relative",
705
705
  "focus-within:static",
706
706
  "focus-within:after:border-transparent",
@@ -723,13 +723,13 @@ const yr = be.forwardRef(
723
723
  ref: b,
724
724
  className: E,
725
725
  disabled: r,
726
- type: l,
727
- "aria-label": d || p,
728
- ...T,
726
+ type: s,
727
+ "aria-label": m || g,
728
+ ...C,
729
729
  children: [
730
730
  i && /* @__PURE__ */ a("span", { className: "pr-2", children: i }),
731
731
  /* @__PURE__ */ a("div", { className: I, children: e }),
732
- g && /* @__PURE__ */ a("span", { className: "pl-2", children: g })
732
+ p && /* @__PURE__ */ a("span", { className: "pl-2", children: p })
733
733
  ]
734
734
  }
735
735
  ) });
@@ -742,18 +742,18 @@ const kr = ({
742
742
  viewBox: t,
743
743
  className: o,
744
744
  defaultViewBox: n,
745
- size: s,
746
- title: l,
745
+ size: l,
746
+ title: s,
747
747
  semantic: c = !1,
748
748
  ...u
749
749
  }) => {
750
- const d = m(s, o);
750
+ const m = d(l, o);
751
751
  return /* @__PURE__ */ h(M, { children: [
752
752
  /* @__PURE__ */ a(
753
753
  "svg",
754
754
  {
755
755
  xmlns: "http://www.w3.org/2000/svg",
756
- className: d,
756
+ className: m,
757
757
  viewBox: t || n,
758
758
  fill: r || "currentColor",
759
759
  role: "img",
@@ -763,7 +763,7 @@ const kr = ({
763
763
  children: e
764
764
  }
765
765
  ),
766
- l && c && /* @__PURE__ */ a("span", { className: "sr-only", children: l })
766
+ s && c && /* @__PURE__ */ a("span", { className: "sr-only", children: s })
767
767
  ] });
768
768
  };
769
769
  /*!
@@ -816,27 +816,27 @@ function xr({
816
816
  open: r,
817
817
  onOpenChange: t
818
818
  } = {}) {
819
- const [o, n] = S.useState(e), [s, l] = S.useState(), [c, u] = S.useState(), d = r ?? o, p = t ?? n, k = Kt({
820
- open: d,
821
- onOpenChange: p
822
- }), g = k.context, i = Xt(g, {
819
+ const [o, n] = S.useState(e), [l, s] = S.useState(), [c, u] = S.useState(), m = r ?? o, g = t ?? n, y = Kt({
820
+ open: m,
821
+ onOpenChange: g
822
+ }), p = y.context, i = Xt(p, {
823
823
  enabled: r == null
824
- }), f = qt(g, {
824
+ }), f = qt(p, {
825
825
  outsidePress: !1,
826
826
  outsidePressEvent: "mousedown"
827
- }), v = Qt(g), y = Jt([i, f, v]);
827
+ }), v = Qt(p), x = Jt([i, f, v]);
828
828
  return S.useMemo(
829
829
  () => ({
830
- open: d,
831
- setOpen: p,
830
+ open: m,
831
+ setOpen: g,
832
+ ...x,
832
833
  ...y,
833
- ...k,
834
- labelId: s,
834
+ labelId: l,
835
835
  descriptionId: c,
836
- setLabelId: l,
836
+ setLabelId: s,
837
837
  setDescriptionId: u
838
838
  }),
839
- [d, p, y, k, s, c]
839
+ [m, g, x, y, l, c]
840
840
  );
841
841
  }
842
842
  const ke = () => {
@@ -856,9 +856,9 @@ const wr = S.forwardRef(function(e, r) {
856
856
  const { context: t, ...o } = ke(), n = Gt([o.refs.setFloating, r]);
857
857
  if (!t.open)
858
858
  return null;
859
- const { overlayBackground: s, ...l } = e, c = m("grid place-items-center", {
860
- [`${s}`]: s,
861
- "bg-black sm:bg-black/[.8]": !s
859
+ const { overlayBackground: l, ...s } = e, c = d("grid place-items-center", {
860
+ [`${l}`]: l,
861
+ "bg-black sm:bg-black/[.8]": !l
862
862
  });
863
863
  return /* @__PURE__ */ a(jt, { children: /* @__PURE__ */ a(Wt, { className: c, lockScroll: !0, children: /* @__PURE__ */ a(Yt, { context: t, children: /* @__PURE__ */ a(
864
864
  "div",
@@ -866,22 +866,22 @@ const wr = S.forwardRef(function(e, r) {
866
866
  ref: n,
867
867
  "aria-labelledby": o.labelId,
868
868
  "aria-describedby": o.descriptionId,
869
- ...o.getFloatingProps(l),
870
- children: l.children
869
+ ...o.getFloatingProps(s),
870
+ children: s.children
871
871
  }
872
872
  ) }) }) });
873
873
  }), Er = S.forwardRef(function({ children: e, ...r }, t) {
874
874
  const { setLabelId: o } = ke(), n = Se();
875
875
  return S.useLayoutEffect(() => (o(n), () => o(void 0)), [n, o]), /* @__PURE__ */ a("h1", { ...r, ref: t, id: n, children: e });
876
- }), Cr = S.forwardRef(function({ children: e, ...r }, t) {
876
+ }), Tr = S.forwardRef(function({ children: e, ...r }, t) {
877
877
  const { setDescriptionId: o } = ke(), n = Se();
878
878
  return S.useLayoutEffect(() => (o(n), () => o(void 0)), [n, o]), /* @__PURE__ */ a("div", { ...r, ref: t, id: n, children: e });
879
- }), Tr = S.forwardRef(function(e, r) {
880
- const { setOpen: t } = ke(), { trigger: o, className: n, ...s } = e, l = S.useCallback(() => t(!1), [t]);
879
+ }), Cr = S.forwardRef(function(e, r) {
880
+ const { setOpen: t } = ke(), { trigger: o, className: n, ...l } = e, s = S.useCallback(() => t(!1), [t]);
881
881
  return /* @__PURE__ */ a("div", { className: n, children: S.cloneElement(o, {
882
882
  ref: r,
883
- onClick: l,
884
- ...s
883
+ onClick: s,
884
+ ...l
885
885
  }) });
886
886
  });
887
887
  /*!
@@ -902,7 +902,7 @@ const se = "panel", me = "messagebox", _r = ({
902
902
  kind: r,
903
903
  borderMode: t
904
904
  }) => ({
905
- main: m("prose prose-lighter flex flex-col bg-surface-medium", {
905
+ main: d("prose prose-lighter flex flex-col bg-surface-medium", {
906
906
  [`${He} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: r === se,
907
907
  [`${He} w-full sm:w-[95%] md:max-w-2xl`]: r === se && !e,
908
908
  [`${Ve} rounded-lg border-2`]: r === me,
@@ -923,19 +923,19 @@ const se = "panel", me = "messagebox", _r = ({
923
923
  title: t,
924
924
  children: o,
925
925
  footer: n,
926
- borderMode: s = "light",
927
- kind: l = se,
926
+ borderMode: l = "light",
927
+ kind: s = se,
928
928
  className: c
929
929
  }) => {
930
- const u = _(""), d = _r({ className: c, kind: l, borderMode: s });
930
+ const u = _(""), m = _r({ className: c, kind: s, borderMode: l });
931
931
  return V(() => (e && (u.current = document.title, document.title = `${t} | ${u.current}`), () => {
932
932
  e && (document.title = u.current);
933
- }), [t, e]), /* @__PURE__ */ a(M, { children: e && /* @__PURE__ */ a(Nr, { open: e, onOpenChange: r, children: /* @__PURE__ */ h(wr, { className: d.main, children: [
933
+ }), [t, e]), /* @__PURE__ */ a(M, { children: e && /* @__PURE__ */ a(Nr, { open: e, onOpenChange: r, children: /* @__PURE__ */ h(wr, { className: m.main, children: [
934
934
  /* @__PURE__ */ h("div", { className: "flex flex-row-reverse items-center justify-between", children: [
935
935
  /* @__PURE__ */ a(
936
- Tr,
936
+ Cr,
937
937
  {
938
- className: d.close,
938
+ className: m.close,
939
939
  trigger: /* @__PURE__ */ a(
940
940
  Je,
941
941
  {
@@ -948,40 +948,40 @@ const se = "panel", me = "messagebox", _r = ({
948
948
  )
949
949
  }
950
950
  ),
951
- /* @__PURE__ */ a(Er, { className: d.header, children: t })
951
+ /* @__PURE__ */ a(Er, { className: m.header, children: t })
952
952
  ] }),
953
- /* @__PURE__ */ a(Cr, { className: d.content, children: o }),
954
- n && /* @__PURE__ */ a("div", { className: d.footer, children: n })
953
+ /* @__PURE__ */ a(Tr, { className: m.content, children: o }),
954
+ n && /* @__PURE__ */ a("div", { className: m.footer, children: n })
955
955
  ] }) }) });
956
956
  }, Ir = () => {
957
957
  const { getAccessToken: e } = G(), r = pe(), t = pe(), {
958
958
  data: o,
959
959
  error: n,
960
- isLoading: s
960
+ isLoading: l
961
961
  } = Lt({
962
962
  getAccessToken: e
963
- }), l = (o == null ? void 0 : o.plugins) || [], c = (o == null ? void 0 : o.version) || "", u = (o == null ? void 0 : o.models) || [];
963
+ }), s = (o == null ? void 0 : o.plugins) || [], c = (o == null ? void 0 : o.version) || "", u = (o == null ? void 0 : o.models) || [];
964
964
  return /* @__PURE__ */ h(M, { children: [
965
965
  /* @__PURE__ */ a("div", { className: "mb-4", children: /* @__PURE__ */ a(
966
966
  $,
967
967
  {
968
- header: C.ABOUT.TITLE_CLIENT,
968
+ header: T.ABOUT.TITLE_CLIENT,
969
969
  className: "prose-dark dark:prose-lighter",
970
970
  children: he(r, {
971
- [C.ABOUT.VERSION]: "5.20.4",
972
- [C.ABOUT.BUILD_TIMESTAMP]: "01/16/2025 03:59 PM EST"
971
+ [T.ABOUT.VERSION]: "5.20.6",
972
+ [T.ABOUT.BUILD_TIMESTAMP]: "01/16/2025 08:26 PM EST"
973
973
  })
974
974
  }
975
975
  ) }),
976
- n || s ? null : /* @__PURE__ */ a(
976
+ n || l ? null : /* @__PURE__ */ a(
977
977
  $,
978
978
  {
979
- header: C.ABOUT.TITLE_SERVER,
979
+ header: T.ABOUT.TITLE_SERVER,
980
980
  className: "prose-dark dark:prose-lighter",
981
981
  children: he(t, {
982
- [C.ABOUT.VERSION]: c,
983
- [ge(C.ABOUT.ENGINE, u.length)]: /* @__PURE__ */ a(M, { children: u.map((d) => /* @__PURE__ */ a("div", { className: "text-right", children: d }, d)) }),
984
- [ge(C.ABOUT.PLUGIN, l.length)]: /* @__PURE__ */ a(M, { children: l.map((d) => /* @__PURE__ */ a("div", { className: "text-right", children: d }, d)) })
982
+ [T.ABOUT.VERSION]: c,
983
+ [ge(T.ABOUT.ENGINE, u.length)]: /* @__PURE__ */ a(M, { children: u.map((m) => /* @__PURE__ */ a("div", { className: "text-right", children: m }, m)) }),
984
+ [ge(T.ABOUT.PLUGIN, s.length)]: /* @__PURE__ */ a(M, { children: s.map((m) => /* @__PURE__ */ a("div", { className: "text-right", children: m }, m)) })
985
985
  })
986
986
  }
987
987
  )
@@ -1058,18 +1058,18 @@ const se = "panel", me = "messagebox", _r = ({
1058
1058
  onOpenChange: t,
1059
1059
  mutate: o
1060
1060
  }) => {
1061
- var T;
1062
- const { user: n, getAccessToken: s } = G(), l = _(null), c = _({
1061
+ var C;
1062
+ const { user: n, getAccessToken: l } = G(), s = _(null), c = _({
1063
1063
  id: 0,
1064
1064
  timestamp: "",
1065
1065
  message: ""
1066
- }), [u, d] = w(!1), [p, k] = w(
1066
+ }), [u, m] = w(!1), [g, y] = w(
1067
1067
  Be + Oe
1068
- ), { state: g, dispatch: i } = fe(je), [, f] = Ie({
1068
+ ), { state: p, dispatch: i } = fe(je), [, f] = Ie({
1069
1069
  key: _e + gt,
1070
- initialValue: g.sortDirection
1070
+ initialValue: p.sortDirection
1071
1071
  }), v = (b) => {
1072
- switch (g.sortDirection) {
1072
+ switch (p.sortDirection) {
1073
1073
  case ae.ASC:
1074
1074
  f(ae.DESC), i({
1075
1075
  type: Pe,
@@ -1089,11 +1089,11 @@ const se = "panel", me = "messagebox", _r = ({
1089
1089
  });
1090
1090
  break;
1091
1091
  }
1092
- }, y = async () => {
1092
+ }, x = async () => {
1093
1093
  const b = c.current;
1094
1094
  try {
1095
1095
  await ce({
1096
- accessToken: await s(),
1096
+ accessToken: await l(),
1097
1097
  type: ie.DELETE_CHAT,
1098
1098
  params: {
1099
1099
  userId: (n == null ? void 0 : n.username) || "",
@@ -1102,22 +1102,22 @@ const se = "panel", me = "messagebox", _r = ({
1102
1102
  }), o();
1103
1103
  } catch {
1104
1104
  }
1105
- }, x = Ke((b) => {
1106
- b[0].isIntersecting && k((I) => I + Be);
1105
+ }, k = Ke((b) => {
1106
+ b[0].isIntersecting && y((I) => I + Be);
1107
1107
  }, []);
1108
1108
  return V(() => {
1109
1109
  const b = {
1110
1110
  // root: null,
1111
1111
  rootMargin: "20px"
1112
- }, E = new IntersectionObserver(x, b);
1113
- l.current && E.observe(l.current);
1112
+ }, E = new IntersectionObserver(k, b);
1113
+ s.current && E.observe(s.current);
1114
1114
  }), /* @__PURE__ */ h(M, { children: [
1115
1115
  /* @__PURE__ */ h(
1116
1116
  et,
1117
1117
  {
1118
1118
  showConfirmation: u,
1119
- setShowConfirmation: d,
1120
- action: y,
1119
+ setShowConfirmation: m,
1120
+ action: x,
1121
1121
  customStrings: {
1122
1122
  confirmAction: "Delete",
1123
1123
  cancelAction: "Cancel",
@@ -1134,7 +1134,7 @@ const se = "panel", me = "messagebox", _r = ({
1134
1134
  /* @__PURE__ */ h("li", { children: [
1135
1135
  "First message:",
1136
1136
  " ",
1137
- /* @__PURE__ */ a("span", { className: "text-lg", children: (T = c.current) == null ? void 0 : T.message })
1137
+ /* @__PURE__ */ a("span", { className: "text-lg", children: (C = c.current) == null ? void 0 : C.message })
1138
1138
  ] })
1139
1139
  ] })
1140
1140
  ]
@@ -1149,8 +1149,8 @@ const se = "panel", me = "messagebox", _r = ({
1149
1149
  buttonClassName: "text-xs sm:text-sm",
1150
1150
  cellId: "timestamp",
1151
1151
  align: "left",
1152
- sortDirection: g.sortDirection,
1153
- sortedCell: g.sortedCell,
1152
+ sortDirection: p.sortDirection,
1153
+ sortedCell: p.sortedCell,
1154
1154
  onClick: () => {
1155
1155
  v("timestamp");
1156
1156
  },
@@ -1161,10 +1161,10 @@ const se = "panel", me = "messagebox", _r = ({
1161
1161
  /* @__PURE__ */ a(P, { className: "text-xs sm:text-sm", children: "Model" }),
1162
1162
  /* @__PURE__ */ a(P, { className: "text-xs sm:text-sm text-right", children: "Actions" })
1163
1163
  ] }) }),
1164
- /* @__PURE__ */ a(Mt, { children: e.slice(0, p).map((b, E) => {
1164
+ /* @__PURE__ */ a(Mt, { children: e.slice(0, g).map((b, E) => {
1165
1165
  var I, H;
1166
1166
  return ((I = b == null ? void 0 : b.messages) == null ? void 0 : I.length) > 0 ? /* @__PURE__ */ h(Ut, { children: [
1167
- E === p - Oe && /* @__PURE__ */ a("tr", { ref: l }),
1167
+ E === g - Oe && /* @__PURE__ */ a("tr", { ref: s }),
1168
1168
  /* @__PURE__ */ h(Ne, { children: [
1169
1169
  /* @__PURE__ */ a(P, { children: E + 1 }),
1170
1170
  /* @__PURE__ */ a(
@@ -1208,7 +1208,7 @@ const se = "panel", me = "messagebox", _r = ({
1208
1208
  noBorder: !0,
1209
1209
  label: "Restore chat",
1210
1210
  onClick: async () => {
1211
- const B = await s();
1211
+ const B = await l();
1212
1212
  Lr(
1213
1213
  b,
1214
1214
  r,
@@ -1231,14 +1231,14 @@ const se = "panel", me = "messagebox", _r = ({
1231
1231
  id: b.id,
1232
1232
  timestamp: b.timestamp,
1233
1233
  message: b.messages.length > 0 ? (B = b.messages[0]) == null ? void 0 : B.content : ""
1234
- }, d(!u);
1234
+ }, m(!u);
1235
1235
  },
1236
1236
  children: /* @__PURE__ */ a("div", { className: "text-red-400", children: /* @__PURE__ */ a(er, { size: "size-3", monotone: !0 }) })
1237
1237
  }
1238
1238
  )
1239
1239
  ] })
1240
1240
  ] })
1241
- ] }, `${C.HISTORY.TITLE}-${b.id}-${E}`) : null;
1241
+ ] }, `${T.HISTORY.TITLE}-${b.id}-${E}`) : null;
1242
1242
  }) }),
1243
1243
  /* @__PURE__ */ a(Pt, { children: /* @__PURE__ */ a(Ne, { children: /* @__PURE__ */ a(P, { colSpan: 1e3, children: /* @__PURE__ */ a("div", { children: ge(
1244
1244
  `${e.length} chat`,
@@ -1250,44 +1250,45 @@ const se = "panel", me = "messagebox", _r = ({
1250
1250
  open: e,
1251
1251
  onOpenChange: r
1252
1252
  }) => {
1253
- const { getAccessToken: t, user: o } = G(), { dispatch: n } = fe(We), { state: s, dispatch: l } = fe(je), { data: c, mutate: u } = $t({
1253
+ const { getAccessToken: t, user: o } = G(), { state: n, dispatch: l } = fe(We), { state: s, dispatch: c } = fe(je), { data: u, mutate: m } = $t({
1254
1254
  keys: [
1255
1255
  o == null ? void 0 : o.username,
1256
1256
  s.searchString,
1257
- s.sortDirection
1257
+ s.sortDirection,
1258
+ (n == null ? void 0 : n.lastTriggeredTimestamp) || 0
1258
1259
  ],
1259
1260
  getAccessToken: t
1260
- }), d = _(null), [, p] = Ie({
1261
+ }), g = _(null), [, y] = Ie({
1261
1262
  key: _e + bt,
1262
1263
  initialValue: s.searchString
1263
- }), [k, g] = w([]);
1264
+ }), [p, i] = w([]);
1264
1265
  V(() => {
1265
- c && g(c);
1266
- }, [c]);
1267
- const i = async (y) => {
1268
- p(y), l({
1266
+ u && i(u);
1267
+ }, [u]);
1268
+ const f = async (k) => {
1269
+ y(k), c({
1269
1270
  type: kt,
1270
- payload: { searchString: y }
1271
+ payload: { searchString: k }
1271
1272
  });
1272
- }, f = vt((y) => {
1273
- i(y.target.value.trim());
1273
+ }, v = vt((k) => {
1274
+ f(k.target.value.trim());
1274
1275
  }, 500);
1275
1276
  return /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: yt, children: /* @__PURE__ */ h(M, { children: [
1276
- /* @__PURE__ */ a("form", { autoComplete: "off", onSubmit: async (y) => {
1277
- y.preventDefault();
1277
+ /* @__PURE__ */ a("form", { autoComplete: "off", onSubmit: async (k) => {
1278
+ k.preventDefault();
1278
1279
  }, children: /* @__PURE__ */ a(
1279
1280
  Ee,
1280
1281
  {
1281
1282
  autoCapitalize: "off",
1282
1283
  autoComplete: "off",
1283
1284
  autoCorrect: "off",
1284
- ref: d,
1285
+ ref: g,
1285
1286
  defaultValue: s.searchString,
1286
1287
  focusMode: "light",
1287
1288
  mode: "dark",
1288
1289
  name: "Search",
1289
1290
  label: "Search",
1290
- onChange: f,
1291
+ onChange: v,
1291
1292
  className: "mt-2 mb-2",
1292
1293
  ...s.searchString && {
1293
1294
  rightElement: /* @__PURE__ */ a(
@@ -1300,8 +1301,8 @@ const se = "panel", me = "messagebox", _r = ({
1300
1301
  noBorder: !0,
1301
1302
  size: "small",
1302
1303
  onClick: () => {
1303
- var y;
1304
- i(""), (y = d.current) != null && y.value && (d.current.value = "", d.current.focus());
1304
+ var k;
1305
+ f(""), (k = g.current) != null && k.value && (g.current.value = "", g.current.focus());
1305
1306
  },
1306
1307
  children: "Reset"
1307
1308
  }
@@ -1312,24 +1313,24 @@ const se = "panel", me = "messagebox", _r = ({
1312
1313
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ a(
1313
1314
  Ar,
1314
1315
  {
1315
- mutate: u,
1316
- filteredHistory: k,
1317
- dispatch: n,
1316
+ mutate: m,
1317
+ filteredHistory: p,
1318
+ dispatch: l,
1318
1319
  onOpenChange: r
1319
1320
  }
1320
1321
  ) })
1321
1322
  ] }) });
1322
1323
  }, zr = ({ stats: e }) => {
1323
- const { isAuthenticated: r, user: t, registeringForPasskey: o, authenticationType: n } = G(), s = pe(), l = pe(), c = (t == null ? void 0 : t.username) || "";
1324
+ const { isAuthenticated: r, user: t, registeringForPasskey: o, authenticationType: n } = G(), l = pe(), s = pe(), c = (t == null ? void 0 : t.username) || "";
1324
1325
  return r && c ? /* @__PURE__ */ h(M, { children: [
1325
1326
  /* @__PURE__ */ a(
1326
1327
  $,
1327
1328
  {
1328
- header: C.PREFERENCES.TITLE,
1329
+ header: T.PREFERENCES.TITLE,
1329
1330
  className: "prose-dark dark:prose-lighter",
1330
- children: he(s, {
1331
- [C.PREFERENCES.NAME]: c,
1332
- [C.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || ""
1331
+ children: he(l, {
1332
+ [T.PREFERENCES.NAME]: c,
1333
+ [T.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || ""
1333
1334
  })
1334
1335
  }
1335
1336
  ),
@@ -1339,17 +1340,17 @@ const se = "panel", me = "messagebox", _r = ({
1339
1340
  className: "prose-dark dark:prose-lighter mt-4",
1340
1341
  header: /* @__PURE__ */ a("h2", { className: "m-0", children: /* @__PURE__ */ h(X, { columnGap: 3, alignVertical: "center", children: [
1341
1342
  /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a($e, { size: "size-8" }) }),
1342
- /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a("div", { children: C.PREFERENCES.PASSKEY_TITLE }) })
1343
+ /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a("div", { children: T.PREFERENCES.PASSKEY_TITLE }) })
1343
1344
  ] }) }),
1344
1345
  children: [
1345
- /* @__PURE__ */ a("p", { children: C.PREFERENCES.PASSKEY_INSTRUCTIONS }),
1346
+ /* @__PURE__ */ a("p", { children: T.PREFERENCES.PASSKEY_INSTRUCTIONS }),
1346
1347
  /* @__PURE__ */ a(
1347
1348
  le,
1348
1349
  {
1349
1350
  size: "small",
1350
1351
  className: "mt-2",
1351
1352
  onClick: o,
1352
- labelLeft: C.PREFERENCES.PASSKEY_BUTTON,
1353
+ labelLeft: T.PREFERENCES.PASSKEY_BUTTON,
1353
1354
  children: /* @__PURE__ */ a($e, { size: "size-5", monotone: !0 })
1354
1355
  }
1355
1356
  )
@@ -1359,11 +1360,11 @@ const se = "panel", me = "messagebox", _r = ({
1359
1360
  /* @__PURE__ */ a(
1360
1361
  $,
1361
1362
  {
1362
- header: C.MAIN_STATISTICS.TITLE,
1363
+ header: T.MAIN_STATISTICS.TITLE,
1363
1364
  className: "prose-dark dark:prose-lighter mt-4",
1364
- children: he(l, {
1365
- [ge(C.MAIN_STATISTICS.TOTAL, e.totalChats)]: e.totalChats,
1366
- [C.MAIN_STATISTICS.PROCESSING_TIME]: Nt(
1365
+ children: he(s, {
1366
+ [ge(T.MAIN_STATISTICS.TOTAL, e.totalChats)]: e.totalChats,
1367
+ [T.MAIN_STATISTICS.PROCESSING_TIME]: Nt(
1367
1368
  e.averageProcessingTimes
1368
1369
  )
1369
1370
  })
@@ -1376,13 +1377,13 @@ const se = "panel", me = "messagebox", _r = ({
1376
1377
  }) => {
1377
1378
  const { getAccessToken: t, user: o } = G(), {
1378
1379
  data: n,
1379
- error: s,
1380
- isLoading: l
1380
+ error: l,
1381
+ isLoading: s
1381
1382
  } = Dt({
1382
1383
  keys: [o == null ? void 0 : o.username],
1383
1384
  getAccessToken: t
1384
1385
  });
1385
- return s || l ? null : /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: wt, children: /* @__PURE__ */ a(zr, { stats: n }) });
1386
+ return l || s ? null : /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: wt, children: /* @__PURE__ */ a(zr, { stats: n }) });
1386
1387
  };
1387
1388
  /*!
1388
1389
  @versini/ui-textarea v3.0.5
@@ -1423,15 +1424,15 @@ const Vr = {
1423
1424
  right: 0
1424
1425
  };
1425
1426
  function Fe(e) {
1426
- const r = $r(), t = _(0), o = _(null), [n, s] = w(Vr), l = Xe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
1427
+ const r = $r(), t = _(0), o = _(null), [n, l] = w(Vr), s = Xe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
1427
1428
  const u = c[0];
1428
1429
  u && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
1429
- o.current && r() && s(u.contentRect);
1430
+ o.current && r() && l(u.contentRect);
1430
1431
  }));
1431
1432
  }), [r]);
1432
- return V(() => (o.current && (l == null || l.observe(o.current, e)), () => {
1433
- l == null || l.disconnect(), t.current && cancelAnimationFrame(t.current);
1434
- }), [l, e]), [o, n];
1433
+ return V(() => (o.current && (s == null || s.observe(o.current, e)), () => {
1434
+ s == null || s.disconnect(), t.current && cancelAnimationFrame(t.current);
1435
+ }), [s, e]), [o, n];
1435
1436
  }
1436
1437
  function Hr({
1437
1438
  value: e,
@@ -1441,16 +1442,16 @@ function Hr({
1441
1442
  },
1442
1443
  initialControlledDelay: n = 0
1443
1444
  }) {
1444
- const [s, l] = w(!1), [c, u] = w(
1445
+ const [l, s] = w(!1), [c, u] = w(
1445
1446
  r !== void 0 ? r : t
1446
- ), d = (p) => {
1447
- u(p), o == null || o(p);
1447
+ ), m = (g) => {
1448
+ u(g), o == null || o(g);
1448
1449
  };
1449
1450
  return V(() => {
1450
- (async () => e !== void 0 && !s && n > 0 && (await new Promise(
1451
- (p) => setTimeout(p, n)
1452
- ), l(!0)))();
1453
- }, [e, n, s]), e !== void 0 ? !s && n > 0 ? ["", o, !0] : [e, o, !0] : [c, d, !1];
1451
+ (async () => e !== void 0 && !l && n > 0 && (await new Promise(
1452
+ (g) => setTimeout(g, n)
1453
+ ), s(!0)))();
1454
+ }, [e, n, l]), e !== void 0 ? !l && n > 0 ? ["", o, !0] : [e, o, !0] : [c, m, !1];
1454
1455
  }
1455
1456
  function Ur(e) {
1456
1457
  const r = Se();
@@ -1516,21 +1517,21 @@ const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", Fr = {
1516
1517
  announcementDelay: t,
1517
1518
  clearAnnouncementDelay: o,
1518
1519
  clearAnnouncementTimeoutRef: n,
1519
- onAnnouncementClear: s,
1520
- dispatch: l
1520
+ onAnnouncementClear: l,
1521
+ dispatch: s
1521
1522
  }) => {
1522
1523
  clearTimeout(r.current), t ? r.current = setTimeout(Ge, t, {
1523
1524
  children: e,
1524
1525
  clearAnnouncementDelay: o,
1525
1526
  clearAnnouncementTimeoutRef: n,
1526
- onAnnouncementClear: s,
1527
- dispatch: l
1527
+ onAnnouncementClear: l,
1528
+ dispatch: s
1528
1529
  }) : Ge({
1529
1530
  children: e,
1530
1531
  clearAnnouncementDelay: o,
1531
1532
  clearAnnouncementTimeoutRef: n,
1532
- onAnnouncementClear: s,
1533
- dispatch: l
1533
+ onAnnouncementClear: l,
1534
+ dispatch: s
1534
1535
  });
1535
1536
  };
1536
1537
  function Yr({
@@ -1539,32 +1540,32 @@ function Yr({
1539
1540
  politeness: t,
1540
1541
  role: o = null,
1541
1542
  announcementDelay: n,
1542
- clearAnnouncementDelay: s,
1543
- onAnnouncementClear: l,
1543
+ clearAnnouncementDelay: l,
1544
+ onAnnouncementClear: s,
1544
1545
  visible: c,
1545
1546
  ...u
1546
1547
  }) {
1547
- const d = _(null), p = _(null), [k, g] = Ft(Gr, {
1548
+ const m = _(null), g = _(null), [y, p] = Ft(Gr, {
1548
1549
  announcement: null
1549
1550
  });
1550
1551
  let i = t;
1551
1552
  typeof i > "u" && (i = o ? Fr[o] : "assertive"), V(() => {
1552
1553
  Wr({
1553
- announcementTimeoutRef: d,
1554
+ announcementTimeoutRef: m,
1554
1555
  announcementDelay: n,
1555
1556
  children: e,
1556
- clearAnnouncementDelay: s,
1557
- clearAnnouncementTimeoutRef: p,
1558
- onAnnouncementClear: l,
1559
- dispatch: g
1557
+ clearAnnouncementDelay: l,
1558
+ clearAnnouncementTimeoutRef: g,
1559
+ onAnnouncementClear: s,
1560
+ dispatch: p
1560
1561
  });
1561
1562
  }, [
1562
1563
  e,
1563
1564
  n,
1564
- s,
1565
- l
1565
+ l,
1566
+ s
1566
1567
  ]);
1567
- const f = m(r, {
1568
+ const f = d(r, {
1568
1569
  "sr-only": !c
1569
1570
  });
1570
1571
  return /* @__PURE__ */ a(
@@ -1574,7 +1575,7 @@ function Yr({
1574
1575
  ...o && { role: o },
1575
1576
  className: f,
1576
1577
  ...u,
1577
- children: k.announcement
1578
+ children: y.announcement
1578
1579
  }
1579
1580
  );
1580
1581
  }
@@ -1591,14 +1592,14 @@ try {
1591
1592
  });
1592
1593
  } catch {
1593
1594
  }
1594
- const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Xr = ({ mode: e }) => m({
1595
+ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Xr = ({ mode: e }) => d({
1595
1596
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
1596
1597
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
1597
1598
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
1598
1599
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
1599
1600
  }), qr = ({
1600
1601
  focusMode: e
1601
- }) => m("focus:outline focus:outline-2 focus:outline-offset-2", {
1602
+ }) => d("focus:outline focus:outline-2 focus:outline-offset-2", {
1602
1603
  "focus:outline-focus-dark": e === "dark",
1603
1604
  "focus:outline-focus-light": e === "light",
1604
1605
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -1606,7 +1607,7 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1606
1607
  }), Qr = ({
1607
1608
  noBorder: e,
1608
1609
  error: r
1609
- }) => m("border-2", {
1610
+ }) => d("border-2", {
1610
1611
  "border-border-dark": !e && !r,
1611
1612
  "focus:border-border-dark": !e && r,
1612
1613
  "border-border-error-dark": !e && r,
@@ -1617,22 +1618,22 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1617
1618
  error: t,
1618
1619
  mode: o,
1619
1620
  leftElement: n,
1620
- rightElement: s
1621
+ rightElement: l
1621
1622
  }) => {
1622
1623
  if (r)
1623
1624
  return "";
1624
1625
  if (e)
1625
- return m(
1626
+ return d(
1626
1627
  "transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium",
1627
1628
  {
1628
- "translate-x-[12px]": s === !0 && !n || !s && !n
1629
+ "translate-x-[12px]": l === !0 && !n || !l && !n
1629
1630
  }
1630
1631
  );
1631
1632
  if (!t)
1632
- return m(
1633
+ return d(
1633
1634
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
1634
1635
  {
1635
- "translate-x-[12px]": s === !0 && !n || !s && !n,
1636
+ "translate-x-[12px]": l === !0 && !n || !l && !n,
1636
1637
  "text-copy-medium": o === "dark",
1637
1638
  "text-copy-dark": o === "light",
1638
1639
  "text-copy-dark dark:text-copy-medium": o === "system",
@@ -1640,10 +1641,10 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1640
1641
  }
1641
1642
  );
1642
1643
  if (t)
1643
- return m(
1644
+ return d(
1644
1645
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
1645
1646
  {
1646
- "translate-x-[12px]": s === !0 && !n || !s && !n,
1647
+ "translate-x-[12px]": l === !0 && !n || !l && !n,
1647
1648
  "text-copy-medium": o === "dark",
1648
1649
  "text-copy-error-dark": o === "light",
1649
1650
  "text-copy-error-dark dark:text-copy-error-light": o === "system",
@@ -1659,19 +1660,19 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1659
1660
  if (r)
1660
1661
  return "";
1661
1662
  if (o)
1662
- return m(
1663
+ return d(
1663
1664
  we,
1664
1665
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
1665
1666
  );
1666
1667
  if (!e)
1667
- return m(we, "absolute px-2 font-medium", {
1668
+ return d(we, "absolute px-2 font-medium", {
1668
1669
  "text-copy-medium": t === "dark",
1669
1670
  "text-copy-dark": t === "light",
1670
1671
  "text-copy-dark dark:text-copy-medium": t === "system",
1671
1672
  "text-copy-medium dark:text-copy-dark": t === "alt-system"
1672
1673
  });
1673
1674
  if (e)
1674
- return m(we, "absolute px-2 font-medium", {
1675
+ return d(we, "absolute px-2 font-medium", {
1675
1676
  "text-copy-error-light": t === "dark",
1676
1677
  "text-copy-error-dark": t === "light",
1677
1678
  "text-copy-error-dark dark:text-copy-error-light": t === "system",
@@ -1683,50 +1684,50 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1683
1684
  raw: t,
1684
1685
  focusMode: o,
1685
1686
  disabled: n,
1686
- noBorder: s,
1687
- error: l,
1687
+ noBorder: l,
1688
+ error: s,
1688
1689
  mode: c,
1689
1690
  leftElement: u,
1690
- rightElement: d
1691
+ rightElement: m
1691
1692
  }) => {
1692
- const p = t ? e : m(
1693
+ const g = t ? e : d(
1693
1694
  "relative flex w-full flex-col justify-center",
1694
1695
  Br,
1695
1696
  e
1696
- ), k = t ? m(r) : m(
1697
+ ), y = t ? d(r) : d(
1697
1698
  tt,
1698
1699
  r,
1699
1700
  Kr(),
1700
1701
  Xr({ mode: c }),
1701
1702
  qr({ focusMode: o }),
1702
1703
  Qr({
1703
- noBorder: s,
1704
- error: l
1704
+ noBorder: l,
1705
+ error: s
1705
1706
  }),
1706
1707
  {
1707
1708
  "disabled:cursor-not-allowed disabled:opacity-50": n
1708
1709
  }
1709
- ), g = t ? void 0 : "sr-only", i = Jr({
1710
+ ), p = t ? void 0 : "sr-only", i = Jr({
1710
1711
  disabled: n,
1711
1712
  raw: t,
1712
- error: l,
1713
+ error: s,
1713
1714
  mode: c,
1714
- rightElement: d,
1715
+ rightElement: m,
1715
1716
  leftElement: u
1716
1717
  }), f = Zr({
1717
- error: l,
1718
+ error: s,
1718
1719
  raw: t,
1719
1720
  mode: c,
1720
1721
  disabled: n
1721
- }), v = t ? void 0 : m(Or, "absolute"), y = t ? void 0 : m(Pr, "absolute");
1722
+ }), v = t ? void 0 : d(Or, "absolute"), x = t ? void 0 : d(Pr, "absolute");
1722
1723
  return {
1723
- wrapper: p,
1724
- textArea: k,
1725
- accessibleLabel: g,
1724
+ wrapper: g,
1725
+ textArea: y,
1726
+ accessibleLabel: p,
1726
1727
  visibleLabel: i,
1727
1728
  helperText: f,
1728
1729
  rightElement: v,
1729
- leftElement: y
1730
+ leftElement: x
1730
1731
  };
1731
1732
  }, ta = ({
1732
1733
  scrollHeight: e,
@@ -1734,37 +1735,37 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1734
1735
  currentLabelOffset: t = 0,
1735
1736
  currentHelperTextOffset: o = 0
1736
1737
  }) => {
1737
- let n, s;
1738
+ let n, l;
1738
1739
  if (e > 0 && e !== r) {
1739
- const l = e - r, c = Math.abs(l / 24);
1740
- n = t + -1 * Math.sign(l) * (12 * c), s = o + Math.sign(l) * (12 * c);
1740
+ const s = e - r, c = Math.abs(s / 24);
1741
+ n = t + -1 * Math.sign(s) * (12 * c), l = o + Math.sign(s) * (12 * c);
1741
1742
  }
1742
1743
  return {
1743
1744
  labelOffset: n,
1744
- helperTextOffset: s,
1745
+ helperTextOffset: l,
1745
1746
  scrollHeight: e
1746
1747
  };
1747
- }, Te = be.forwardRef(
1748
+ }, Ce = be.forwardRef(
1748
1749
  ({
1749
1750
  id: e,
1750
1751
  name: r,
1751
1752
  label: t,
1752
1753
  error: o = !1,
1753
1754
  raw: n = !1,
1754
- className: s,
1755
- textAreaClassName: l,
1755
+ className: l,
1756
+ textAreaClassName: s,
1756
1757
  mode: c = "system",
1757
1758
  focusMode: u = "system",
1758
- value: d,
1759
- defaultValue: p,
1760
- disabled: k = !1,
1761
- noBorder: g = !1,
1759
+ value: m,
1760
+ defaultValue: g,
1761
+ disabled: y = !1,
1762
+ noBorder: p = !1,
1762
1763
  labelId: i,
1763
1764
  helperText: f = "",
1764
1765
  helperTextOnFocus: v = !1,
1765
- rightElement: y,
1766
- leftElement: x,
1767
- onChange: T,
1766
+ rightElement: x,
1767
+ leftElement: k,
1768
+ onChange: C,
1768
1769
  onFocus: b,
1769
1770
  onBlur: E,
1770
1771
  ...I
@@ -1773,22 +1774,22 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1773
1774
  const R = _(null), de = Dr([H, R]), [N, z] = Fe(), [Z, j] = Fe(), q = _(80), W = _(-25), O = _(null), ee = _(30), te = _(null), Y = Ur({ id: e, prefix: `${tt}-` }), [Ae, ot] = w(0), [Re, nt] = w(0), [st, ze] = w(
1774
1775
  !!(!v && f)
1775
1776
  ), lt = `${r} error, ${f}`, K = ea({
1776
- className: s,
1777
- textAreaClassName: l,
1777
+ className: l,
1778
+ textAreaClassName: s,
1778
1779
  error: o,
1779
1780
  raw: n,
1780
1781
  focusMode: u,
1781
- disabled: k,
1782
- noBorder: g,
1782
+ disabled: y,
1783
+ noBorder: p,
1783
1784
  mode: c,
1784
- rightElement: !!y,
1785
- leftElement: !!x
1785
+ rightElement: !!x,
1786
+ leftElement: !!k
1786
1787
  }), [U, ct] = Hr({
1787
- value: d,
1788
+ value: m,
1788
1789
  initialControlledDelay: 20,
1789
- defaultValue: p,
1790
+ defaultValue: g,
1790
1791
  onChange: (L) => {
1791
- T && T({
1792
+ C && C({
1792
1793
  target: {
1793
1794
  value: L
1794
1795
  }
@@ -1845,12 +1846,12 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1845
1846
  children: t
1846
1847
  }
1847
1848
  ),
1848
- x && /* @__PURE__ */ a(
1849
+ k && /* @__PURE__ */ a(
1849
1850
  "div",
1850
1851
  {
1851
1852
  ref: Z,
1852
1853
  className: K.leftElement,
1853
- children: x
1854
+ children: k
1854
1855
  }
1855
1856
  ),
1856
1857
  /* @__PURE__ */ a(
@@ -1859,15 +1860,15 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1859
1860
  ref: de,
1860
1861
  id: Y,
1861
1862
  name: r,
1862
- disabled: k,
1863
+ disabled: y,
1863
1864
  placeholder: n ? void 0 : " ",
1864
1865
  className: K.textArea,
1865
1866
  rows: 1,
1866
1867
  ...f && { "aria-describedby": `${Y}-helper` },
1867
1868
  ...o && { "aria-invalid": "true" },
1868
- ...y && !x && !n && { style: { paddingRight: Ae } },
1869
- ...x && !y && !n && { style: { paddingLeft: Re } },
1870
- ...y && x && !n && {
1869
+ ...x && !k && !n && { style: { paddingRight: Ae } },
1870
+ ...k && !x && !n && { style: { paddingLeft: Re } },
1871
+ ...x && k && !n && {
1871
1872
  style: {
1872
1873
  paddingRight: Ae,
1873
1874
  paddingLeft: Re
@@ -1899,19 +1900,19 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1899
1900
  children: f
1900
1901
  }
1901
1902
  ),
1902
- y && /* @__PURE__ */ a(
1903
+ x && /* @__PURE__ */ a(
1903
1904
  "div",
1904
1905
  {
1905
1906
  ref: N,
1906
1907
  className: K.rightElement,
1907
- children: y
1908
+ children: x
1908
1909
  }
1909
1910
  ),
1910
1911
  o && f && /* @__PURE__ */ a(Yr, { politeness: "polite", clearAnnouncementDelay: 500, children: lt })
1911
1912
  ] });
1912
1913
  }
1913
1914
  );
1914
- Te.displayName = "TextArea";
1915
+ Ce.displayName = "TextArea";
1915
1916
  /*!
1916
1917
  @versini/ui-toggle v3.0.4
1917
1918
  © 2025 gizmette.com
@@ -1925,9 +1926,9 @@ try {
1925
1926
  });
1926
1927
  } catch {
1927
1928
  }
1928
- const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa = ({
1929
+ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa = ({
1929
1930
  focusMode: e
1930
- }) => m(
1931
+ }) => d(
1931
1932
  "peer-focus:outline",
1932
1933
  "peer-focus:outline-2",
1933
1934
  "peer-focus:outline-offset-2",
@@ -1937,14 +1938,14 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
1937
1938
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
1938
1939
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
1939
1940
  }
1940
- ), na = () => m(
1941
+ ), na = () => d(
1941
1942
  "peer-checked:after:translate-x-full",
1942
1943
  // background color when checked
1943
1944
  "peer-checked:bg-violet-500",
1944
1945
  // knob circle and border color when checked
1945
1946
  "peer-checked:after:bg-white",
1946
1947
  "peer-checked:after:border-white"
1947
- ), sa = () => m(
1948
+ ), sa = () => d(
1948
1949
  "after:left-[2px]",
1949
1950
  "after:top-[2px]",
1950
1951
  "after:border",
@@ -1959,7 +1960,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
1959
1960
  ), la = ({
1960
1961
  mode: e,
1961
1962
  noBorder: r
1962
- }) => m({
1963
+ }) => d({
1963
1964
  border: !r,
1964
1965
  "border-border-dark bg-surface-medium": e === "light",
1965
1966
  "border-border-light bg-surface-darker": e === "dark",
@@ -1968,12 +1969,12 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
1968
1969
  }), ca = ({
1969
1970
  mode: e,
1970
1971
  labelHidden: r
1971
- }) => r ? "sr-only" : m("ml-2 text-sm", {
1972
+ }) => r ? "sr-only" : d("ml-2 text-sm", {
1972
1973
  "text-copy-dark": e === "light",
1973
1974
  "text-copy-lighter": e === "dark",
1974
1975
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
1975
1976
  "text-copy-dark dark:text-copy-lighter": e === "system"
1976
- }), ia = ({ className: e }) => m(
1977
+ }), ia = ({ className: e }) => d(
1977
1978
  ra,
1978
1979
  "relative flex cursor-pointer items-center",
1979
1980
  e
@@ -1984,7 +1985,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
1984
1985
  className: o,
1985
1986
  noBorder: n
1986
1987
  }) => ({
1987
- toggle: m(
1988
+ toggle: d(
1988
1989
  aa(),
1989
1990
  la({ mode: e, noBorder: n }),
1990
1991
  oa({ focusMode: r }),
@@ -2000,33 +2001,33 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2000
2001
  label: t,
2001
2002
  labelHidden: o = !1,
2002
2003
  name: n,
2003
- mode: s = "system",
2004
- focusMode: l = "system",
2004
+ mode: l = "system",
2005
+ focusMode: s = "system",
2005
2006
  className: c,
2006
2007
  noBorder: u = !1
2007
2008
  }) => {
2008
- const d = da({
2009
- mode: s,
2010
- focusMode: l,
2009
+ const m = da({
2010
+ mode: l,
2011
+ focusMode: s,
2011
2012
  labelHidden: o,
2012
2013
  className: c,
2013
2014
  noBorder: u
2014
- }), p = (k) => {
2015
- r == null || r(k.target.checked);
2015
+ }), g = (y) => {
2016
+ r == null || r(y.target.checked);
2016
2017
  };
2017
- return /* @__PURE__ */ h("label", { className: d.wrapper, children: [
2018
+ return /* @__PURE__ */ h("label", { className: m.wrapper, children: [
2018
2019
  /* @__PURE__ */ a(
2019
2020
  "input",
2020
2021
  {
2021
2022
  name: n,
2022
2023
  checked: e,
2023
2024
  type: "checkbox",
2024
- className: d.input,
2025
- onChange: p
2025
+ className: m.input,
2026
+ onChange: g
2026
2027
  }
2027
2028
  ),
2028
- /* @__PURE__ */ a("div", { className: d.toggle }),
2029
- /* @__PURE__ */ a("span", { className: d.label, children: t })
2029
+ /* @__PURE__ */ a("div", { className: m.toggle }),
2030
+ /* @__PURE__ */ a("span", { className: m.label, children: t })
2030
2031
  ] });
2031
2032
  }, ma = ({
2032
2033
  open: e,
@@ -2034,36 +2035,36 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2034
2035
  }) => {
2035
2036
  const { getAccessToken: t, user: o } = G(), {
2036
2037
  data: n,
2037
- error: s,
2038
- isLoading: l,
2038
+ error: l,
2039
+ isLoading: s,
2039
2040
  mutate: c
2040
2041
  } = Ye({
2041
2042
  keys: [o == null ? void 0 : o.username],
2042
2043
  getAccessToken: t
2043
- }), [u, d] = w({
2044
+ }), [u, m] = w({
2044
2045
  prompts: []
2045
- }), p = ({
2046
+ }), g = ({
2046
2047
  slot: i,
2047
2048
  checked: f,
2048
2049
  label: v,
2049
- content: y
2050
+ content: x
2050
2051
  }) => {
2051
- d((x) => {
2052
- const T = x.prompts, b = {
2052
+ m((k) => {
2053
+ const C = k.prompts, b = {
2053
2054
  slot: i,
2054
2055
  label: v,
2055
- content: y,
2056
+ content: x,
2056
2057
  enabled: f
2057
- }, E = T.findIndex((I) => I.slot === i);
2058
+ }, E = C.findIndex((I) => I.slot === i);
2058
2059
  return E === -1 ? {
2059
- ...x,
2060
- prompts: [...T, { ...b, slot: i }]
2061
- } : (T[E] = b, {
2062
- ...x,
2063
- prompts: [...T]
2060
+ ...k,
2061
+ prompts: [...C, { ...b, slot: i }]
2062
+ } : (C[E] = b, {
2063
+ ...k,
2064
+ prompts: [...C]
2064
2065
  });
2065
2066
  });
2066
- }, k = async (i) => {
2067
+ }, y = async (i) => {
2067
2068
  i.preventDefault();
2068
2069
  try {
2069
2070
  await ce({
@@ -2076,16 +2077,16 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2076
2077
  });
2077
2078
  } catch {
2078
2079
  }
2079
- }, g = () => {
2080
+ }, p = () => {
2080
2081
  c({ ...n }), r(!1);
2081
2082
  };
2082
2083
  return V(() => {
2083
- n != null && n.tags && d({ prompts: n.tags });
2084
- }, [n]), s || l ? null : /* @__PURE__ */ h(
2084
+ n != null && n.tags && m({ prompts: n.tags });
2085
+ }, [n]), l || s ? null : /* @__PURE__ */ h(
2085
2086
  J,
2086
2087
  {
2087
2088
  open: e,
2088
- onOpenChange: g,
2089
+ onOpenChange: p,
2089
2090
  title: "Prompts",
2090
2091
  footer: /* @__PURE__ */ h(
2091
2092
  X,
@@ -2100,7 +2101,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2100
2101
  mode: "dark",
2101
2102
  variant: "secondary",
2102
2103
  focusMode: "light",
2103
- onClick: g,
2104
+ onClick: p,
2104
2105
  children: "Cancel"
2105
2106
  }
2106
2107
  ) }),
@@ -2111,7 +2112,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2111
2112
  variant: "danger",
2112
2113
  focusMode: "light",
2113
2114
  onClick: async (i) => {
2114
- r(!1), await k(i);
2115
+ r(!1), await y(i);
2115
2116
  },
2116
2117
  children: "Save"
2117
2118
  }
@@ -2135,7 +2136,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2135
2136
  name: `prompt${i.slot}-label`,
2136
2137
  value: i.label,
2137
2138
  onChange: (f) => {
2138
- p({
2139
+ g({
2139
2140
  slot: i.slot,
2140
2141
  checked: i.enabled,
2141
2142
  label: f.target.value,
@@ -2151,7 +2152,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2151
2152
  name: `prompt${i.slot}-content`,
2152
2153
  value: i.content,
2153
2154
  onChange: (f) => {
2154
- p({
2155
+ g({
2155
2156
  slot: i.slot,
2156
2157
  checked: i.enabled,
2157
2158
  label: i.label,
@@ -2169,7 +2170,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2169
2170
  label: "Enabled",
2170
2171
  name: i.slot.toString(),
2171
2172
  onChange: (f) => {
2172
- p({
2173
+ g({
2173
2174
  slot: i.slot,
2174
2175
  checked: f,
2175
2176
  label: i.label,
@@ -2192,16 +2193,16 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2192
2193
  }) => {
2193
2194
  const { getAccessToken: t, user: o } = G(), {
2194
2195
  data: n,
2195
- error: s,
2196
- isLoading: l,
2196
+ error: l,
2197
+ isLoading: s,
2197
2198
  mutate: c
2198
2199
  } = Ye({
2199
2200
  keys: [o == null ? void 0 : o.username],
2200
2201
  getAccessToken: t
2201
- }), [u, d] = w(!1), [p, k] = w({
2202
+ }), [u, m] = w(!1), [g, y] = w({
2202
2203
  loadingLocation: !1
2203
- }), [g, i] = w(""), [f, v] = w(""), [y, x] = w(Ct), [T, b] = Ie({
2204
- key: _e + Tt,
2204
+ }), [p, i] = w(""), [f, v] = w(""), [x, k] = w(Tt), [C, b] = Ie({
2205
+ key: _e + Ct,
2205
2206
  initialValue: !1
2206
2207
  }), E = (N) => {
2207
2208
  b(N);
@@ -2213,17 +2214,17 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2213
2214
  type: ie.SET_USER_PREFERENCES,
2214
2215
  params: {
2215
2216
  user: o == null ? void 0 : o.username,
2216
- instructions: g,
2217
+ instructions: p,
2217
2218
  location: f,
2218
- engine: y
2219
+ engine: x
2219
2220
  }
2220
- }), c(), k({
2221
+ }), c(), y({
2221
2222
  loadingLocation: !1
2222
2223
  });
2223
2224
  } catch {
2224
2225
  }
2225
2226
  }, H = async () => {
2226
- k({
2227
+ y({
2227
2228
  loadingLocation: !0
2228
2229
  }), v("...");
2229
2230
  try {
@@ -2237,25 +2238,25 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2237
2238
  }), q = Date.now() - N;
2238
2239
  if (q < 2e3 && await new Promise((W) => setTimeout(W, 2e3 - q)), Z.status === 200) {
2239
2240
  const { city: W, state: O, country: ee, displayName: te } = Z.data, Y = W && O && ee ? `${W}, ${O}, ${ee}` : te;
2240
- k({
2241
+ y({
2241
2242
  loadingLocation: !1
2242
2243
  }), v(Y);
2243
2244
  } else
2244
- k({
2245
+ y({
2245
2246
  loadingLocation: !1
2246
2247
  });
2247
2248
  } catch {
2248
2249
  }
2249
2250
  }, B = (N, z) => {
2250
- x(N ? z : z === Q ? re : Q);
2251
+ k(N ? z : z === Q ? re : Q);
2251
2252
  }, R = () => {
2252
- d(!u);
2253
+ m(!u);
2253
2254
  }, de = () => {
2254
2255
  c({ ...n }), r(!1);
2255
2256
  };
2256
2257
  return V(() => {
2257
- n != null && n.instructions && i(n.instructions), n != null && n.location && v(n.location), n != null && n.engine && x(n.engine);
2258
- }, [n]), s || l ? null : /* @__PURE__ */ a(
2258
+ n != null && n.instructions && i(n.instructions), n != null && n.location && v(n.location), n != null && n.engine && k(n.engine);
2259
+ }, [n]), l || s ? null : /* @__PURE__ */ a(
2259
2260
  J,
2260
2261
  {
2261
2262
  open: e,
@@ -2294,11 +2295,11 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2294
2295
  }
2295
2296
  ),
2296
2297
  children: /* @__PURE__ */ h(M, { children: [
2297
- u && /* @__PURE__ */ a(ma, { open: u, onOpenChange: d }),
2298
+ u && /* @__PURE__ */ a(ma, { open: u, onOpenChange: m }),
2298
2299
  /* @__PURE__ */ h(
2299
2300
  $,
2300
2301
  {
2301
- header: C.SETTINGS_ENGINE.TITLE,
2302
+ header: T.SETTINGS_ENGINE.TITLE,
2302
2303
  className: "prose-dark dark:prose-lighter",
2303
2304
  children: [
2304
2305
  /* @__PURE__ */ a("p", { className: "text-sm", children: "Select the AI engine that will be used to generate responses." }),
@@ -2309,7 +2310,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2309
2310
  label: Q,
2310
2311
  name: Q,
2311
2312
  onChange: (N) => B(N, Q),
2312
- checked: y === Q
2313
+ checked: x === Q
2313
2314
  }
2314
2315
  ),
2315
2316
  /* @__PURE__ */ a(
@@ -2320,7 +2321,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2320
2321
  label: re,
2321
2322
  name: re,
2322
2323
  onChange: (N) => B(N, re),
2323
- checked: y === re
2324
+ checked: x === re
2324
2325
  }
2325
2326
  ),
2326
2327
  /* @__PURE__ */ a("p", { className: "text-sm", children: 'This "Show Message Statistics" option adds individual statistics for each messages under their respective bubbles, such as processing time, model name, and more.' }),
@@ -2332,7 +2333,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2332
2333
  label: "Show Message Statistics",
2333
2334
  name: "show-message-statistics",
2334
2335
  onChange: E,
2335
- checked: T
2336
+ checked: C
2336
2337
  }
2337
2338
  ),
2338
2339
  /* @__PURE__ */ a("h3", { className: "border-b-2 border-slate-400", children: "Prompts" }),
@@ -2361,7 +2362,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2361
2362
  " to know about you to provide better responses?"
2362
2363
  ] }),
2363
2364
  /* @__PURE__ */ a(
2364
- Te,
2365
+ Ce,
2365
2366
  {
2366
2367
  mode: "alt-system",
2367
2368
  autoCapitalize: "off",
@@ -2369,7 +2370,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2369
2370
  autoCorrect: "off",
2370
2371
  name: "customInstructions",
2371
2372
  label: "Custom Instructions",
2372
- value: g,
2373
+ value: p,
2373
2374
  onChange: (N) => {
2374
2375
  i(N.target.value);
2375
2376
  },
@@ -2387,7 +2388,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2387
2388
  children: [
2388
2389
  /* @__PURE__ */ a("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
2389
2390
  /* @__PURE__ */ a(
2390
- Te,
2391
+ Ce,
2391
2392
  {
2392
2393
  mode: "alt-system",
2393
2394
  name: "location",
@@ -2405,9 +2406,9 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2405
2406
  className: "mt-2",
2406
2407
  size: "small",
2407
2408
  noBorder: !0,
2408
- disabled: p.loadingLocation,
2409
+ disabled: g.loadingLocation,
2409
2410
  onClick: H,
2410
- children: p.loadingLocation ? "Detecting..." : "Auto-detect"
2411
+ children: g.loadingLocation ? "Detecting..." : "Auto-detect"
2411
2412
  }
2412
2413
  )
2413
2414
  ]
@@ -2417,23 +2418,23 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2417
2418
  }
2418
2419
  );
2419
2420
  }, ka = () => {
2420
- const { logout: e } = G(), { state: r } = fe(We), [t, o] = w(!1), [n, s] = w(!1), [l, c] = w(!1), [u, d] = w(!1), [p, k] = w(!1), g = () => {
2421
+ const { logout: e } = G(), { state: r } = fe(We), [t, o] = w(!1), [n, l] = w(!1), [s, c] = w(!1), [u, m] = w(!1), [g, y] = w(!1), p = () => {
2421
2422
  o(!t);
2422
2423
  }, i = () => {
2423
- s(!n);
2424
+ l(!n);
2424
2425
  }, f = () => {
2425
- c(!l);
2426
+ c(!s);
2426
2427
  }, v = () => {
2427
- d(!u);
2428
- }, y = () => {
2429
- k(!p);
2428
+ m(!u);
2429
+ }, x = () => {
2430
+ y(!g);
2430
2431
  };
2431
2432
  return /* @__PURE__ */ h(M, { children: [
2432
2433
  /* @__PURE__ */ a(
2433
2434
  et,
2434
2435
  {
2435
- showConfirmation: p,
2436
- setShowConfirmation: k,
2436
+ showConfirmation: g,
2437
+ setShowConfirmation: y,
2437
2438
  action: e,
2438
2439
  customStrings: {
2439
2440
  confirmAction: De,
@@ -2444,9 +2445,9 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2444
2445
  }
2445
2446
  ),
2446
2447
  /* @__PURE__ */ a(Mr, { open: t, onOpenChange: o }),
2447
- /* @__PURE__ */ a(ua, { open: n, onOpenChange: s }),
2448
- l && /* @__PURE__ */ a(Rr, { open: l, onOpenChange: c }),
2449
- /* @__PURE__ */ a(Sr, { open: u, onOpenChange: d }),
2448
+ /* @__PURE__ */ a(ua, { open: n, onOpenChange: l }),
2449
+ s && /* @__PURE__ */ a(Rr, { open: s, onOpenChange: c }),
2450
+ /* @__PURE__ */ a(Sr, { open: u, onOpenChange: m }),
2450
2451
  /* @__PURE__ */ a("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ a(X, { alignHorizontal: "flex-end", alignVertical: "center", children: /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(X, { children: /* @__PURE__ */ a(A, { children: /* @__PURE__ */ h(
2451
2452
  Vt,
2452
2453
  {
@@ -2459,7 +2460,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2459
2460
  oe,
2460
2461
  {
2461
2462
  label: "Profile",
2462
- onClick: g,
2463
+ onClick: p,
2463
2464
  icon: /* @__PURE__ */ a(or, {})
2464
2465
  }
2465
2466
  ),
@@ -2493,7 +2494,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2493
2494
  oe,
2494
2495
  {
2495
2496
  label: "Log out",
2496
- onClick: y,
2497
+ onClick: x,
2497
2498
  icon: /* @__PURE__ */ a("div", { className: "text-red-700", children: /* @__PURE__ */ a(Zt, { monotone: !0 }) })
2498
2499
  }
2499
2500
  )