@versini/sassysaint 5.5.36 → 5.5.38

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,18 +1,18 @@
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.vR4obSnv.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.C6-zUIj9.js";
1
+ import { jsxs as h, jsx as a, Fragment as B } from "react/jsx-runtime";
2
+ import { g as F, un as G, R as H, CARDS as T, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as ht, L as X, j as R, C as U, INFINITE_SCROLL_LIMIT as Oe, INFINITE_SCROLL_THRESHOLD as Pe, LOCAL_STORAGE_PREFIX as _e, LOCAL_STORAGE_SORT as gt, Y as le, ACTION_RESET as pt, ACTION_RESTORE as ft, ACTION_SORT as ze, LOCAL_STORAGE_SEARCH as bt, HISTORY_TITLE as yt, ye as Ee, ACTION_SEARCH as kt, debounce as vt, M as xt, l 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 He } from "./index.WqjiLYC2.js";
3
+ import { i as pe, useServerCapabilities as At, HistoryContext as je, E as Ie, ge as Rt, he as Lt, ue as Ne, le as $, ye as Mt, me as Bt, p as Ot, z as Pt, be as zt, serviceCall as ie, SERVICE_TYPES as ce, f as ae, AppContext as Ye, useChatsHistory as $t, useUserChatStats as Ht, useUserPreferences as We, m as Dt, Pe as Vt, me$1 as Ut, R as oe, P as Ft } from "./App.BlUmPPu5.js";
4
4
  import * as S from "react";
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";
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
- const Zt = ({
5
+ import be, { useId as Se, useRef as _, useEffect as D, useState as w, useContext as fe, useCallback as Ke, Fragment as Gt, useLayoutEffect as ne, useMemo as Xe, useReducer as jt } from "react";
6
+ import d from "clsx";
7
+ import { useMergeRefs as Yt, FloatingPortal as Wt, FloatingOverlay as Kt, FloatingFocusManager as Xt, useFloating as qt, useClick as Qt, useDismiss as Jt, useRole as Zt, useInteractions as er } from "@floating-ui/react";
8
+ const tr = ({
9
9
  className: e,
10
10
  viewBox: r,
11
11
  title: t,
12
12
  monotone: o,
13
13
  ...n
14
14
  }) => /* @__PURE__ */ h(
15
- D,
15
+ F,
16
16
  {
17
17
  defaultViewBox: "0 0 512 512",
18
18
  size: "size-5",
@@ -24,28 +24,21 @@ const Zt = ({
24
24
  /* @__PURE__ */ a(
25
25
  "path",
26
26
  {
27
- className: "fa-secondary",
28
- opacity: o ? "1" : "0.4",
29
- d: "M66.6 320c0 1.8 .1 3.5 .4 5.3C84.9 431.3 177 512 288 512c123.7 0 224-100.3 224-224c0-111-80.7-203.1-186.7-220.9c-1.8-.3-3.6-.4-5.3-.4c-15.3 0-28.9 11.1-31.5 26.7c-2.9 17.4 8.8 33.9 26.3 36.9C390.4 142.9 448 208.8 448 288c0 88.4-71.6 160-160 160c-79.2 0-145.1-57.6-157.8-133.3c-2.9-17.4-19.4-29.2-36.9-26.3c-15.6 2.6-26.7 16.2-26.7 31.5z"
27
+ d: "M66.6 320c0 1.8.1 3.5.4 5.3C84.9 431.3 177 512 288 512c123.7 0 224-100.3 224-224 0-111-80.7-203.1-186.7-220.9-1.8-.3-3.6-.4-5.3-.4-15.3 0-28.9 11.1-31.5 26.7-2.9 17.4 8.8 33.9 26.3 36.9C390.4 142.9 448 208.8 448 288c0 88.4-71.6 160-160 160-79.2 0-145.1-57.6-157.8-133.3-2.9-17.4-19.4-29.2-36.9-26.3-15.6 2.6-26.7 16.2-26.7 31.5z",
28
+ opacity: o ? "1" : "0.4"
30
29
  }
31
30
  ),
32
- /* @__PURE__ */ a(
33
- "path",
34
- {
35
- className: "fa-primary",
36
- d: "M32 0L192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-82.7 0L342.6 297.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3 64 192c0 17.7-14.3 32-32 32s-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0z"
37
- }
38
- )
31
+ /* @__PURE__ */ a("path", { d: "M32 0h160c17.7 0 32 14.3 32 32s-14.3 32-32 32h-82.7l233.3 233.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32S0 209.7 0 192V32C0 14.3 14.3 0 32 0" })
39
32
  ]
40
33
  }
41
- ), er = ({
34
+ ), rr = ({
42
35
  className: e,
43
36
  viewBox: r,
44
37
  title: t,
45
38
  monotone: o,
46
39
  ...n
47
40
  }) => /* @__PURE__ */ h(
48
- D,
41
+ F,
49
42
  {
50
43
  defaultViewBox: "0 0 448 512",
51
44
  size: "size-5",
@@ -57,61 +50,21 @@ const Zt = ({
57
50
  /* @__PURE__ */ a(
58
51
  "path",
59
52
  {
60
- className: "fa-secondary",
61
- opacity: o ? "1" : "0.4",
62
- d: "M32 96l0 352c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-352L32 96zm80 80c0-8.8 7.2-16 16-16s16 7.2 16 16l0 224c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-224zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16l0 224c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-224zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16l0 224c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-224z"
63
- }
64
- ),
65
- /* @__PURE__ */ a(
66
- "path",
67
- {
68
- className: "fa-primary",
69
- d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0z"
70
- }
71
- )
72
- ]
73
- }
74
- ), tr = ({
75
- className: e,
76
- viewBox: r,
77
- title: t,
78
- monotone: o,
79
- ...n
80
- }) => /* @__PURE__ */ h(
81
- D,
82
- {
83
- defaultViewBox: "0 0 512 512",
84
- size: "size-5",
85
- viewBox: r,
86
- className: e,
87
- title: t || "Edit",
88
- ...n,
89
- children: [
90
- /* @__PURE__ */ a(
91
- "path",
92
- {
93
- className: "fa-secondary",
94
- opacity: o ? "1" : "0.4",
95
- d: "M0 160c0-53 43-96 96-96l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32l0-96c0-17.7 14.3-32 32-32s32 14.3 32 32l0 96c0 53-43 96-96 96L96 512c-53 0-96-43-96-96L0 160z"
53
+ d: "M32 96v352c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V96zm80 80c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16z",
54
+ opacity: o ? "1" : "0.4"
96
55
  }
97
56
  ),
98
- /* @__PURE__ */ a(
99
- "path",
100
- {
101
- className: "fa-primary",
102
- d: "M392.4 21.7L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0zM339.7 74.3L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3z"
103
- }
104
- )
57
+ /* @__PURE__ */ a("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0z" })
105
58
  ]
106
59
  }
107
- ), rr = ({
60
+ ), ar = ({
108
61
  className: e,
109
62
  viewBox: r,
110
63
  title: t,
111
64
  monotone: o,
112
65
  ...n
113
66
  }) => /* @__PURE__ */ h(
114
- D,
67
+ F,
115
68
  {
116
69
  defaultViewBox: "0 0 512 512",
117
70
  size: "size-5",
@@ -123,28 +76,21 @@ const Zt = ({
123
76
  /* @__PURE__ */ a(
124
77
  "path",
125
78
  {
126
- className: "fa-secondary",
127
- opacity: o ? "1" : "0.4",
128
- d: "M0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75L41 41C25.9 25.9 0 36.6 0 57.9z"
79
+ d: "M0 57.9V168c0 13.3 10.7 24 24 24h110.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75L41 41C25.9 25.9 0 36.6 0 57.9",
80
+ opacity: o ? "1" : "0.4"
129
81
  }
130
82
  ),
131
- /* @__PURE__ */ a(
132
- "path",
133
- {
134
- className: "fa-primary",
135
- d: "M256 128c13.3 0 24 10.7 24 24l0 94.1 65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17l0-104c0-13.3 10.7-24 24-24z"
136
- }
137
- )
83
+ /* @__PURE__ */ a("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
138
84
  ]
139
85
  }
140
- ), ar = ({
86
+ ), or = ({
141
87
  className: e,
142
88
  viewBox: r,
143
89
  title: t,
144
90
  monotone: o,
145
91
  ...n
146
92
  }) => /* @__PURE__ */ h(
147
- D,
93
+ F,
148
94
  {
149
95
  defaultViewBox: "0 0 512 512",
150
96
  size: "size-5",
@@ -156,28 +102,21 @@ const Zt = ({
156
102
  /* @__PURE__ */ a(
157
103
  "path",
158
104
  {
159
- className: "fa-secondary",
160
- opacity: "0.4",
161
- d: "M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zm192-8c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24zm96-88a32 32 0 1 1 -64 0 32 32 0 1 1 64 0z"
105
+ d: "M0 256a256 256 0 1 0 512 0 256 256 0 1 0-512 0m192-8c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-80c-13.3 0-24-10.7-24-24s10.7-24 24-24h24v-64h-24c-13.3 0-24-10.7-24-24m96-88a32 32 0 1 1-64 0 32 32 0 1 1 64 0",
106
+ opacity: ".4"
162
107
  }
163
108
  ),
164
- /* @__PURE__ */ a(
165
- "path",
166
- {
167
- className: "fa-primary",
168
- d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM192 248c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24z"
169
- }
170
- )
109
+ /* @__PURE__ */ a("path", { d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64m-64 120c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-80c-13.3 0-24-10.7-24-24s10.7-24 24-24h24v-64h-24c-13.3 0-24-10.7-24-24" })
171
110
  ]
172
111
  }
173
- ), or = ({
112
+ ), nr = ({
174
113
  className: e,
175
114
  viewBox: r,
176
115
  title: t,
177
116
  monotone: o,
178
117
  ...n
179
118
  }) => /* @__PURE__ */ h(
180
- D,
119
+ F,
181
120
  {
182
121
  defaultViewBox: "0 0 576 512",
183
122
  size: "size-5",
@@ -189,28 +128,21 @@ const Zt = ({
189
128
  /* @__PURE__ */ a(
190
129
  "path",
191
130
  {
192
- className: "fa-secondary",
193
- opacity: "0.4",
194
- d: "M0 96L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96zM64 368c0-44.2 35.8-80 80-80l64 0c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16L80 384c-8.8 0-16-7.2-16-16zM240 192a64 64 0 1 1 -128 0 64 64 0 1 1 128 0zm112-16c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"
131
+ d: "M0 96v320c0 35.3 28.7 64 64 64h448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96m64 272c0-44.2 35.8-80 80-80h64c44.2 0 80 35.8 80 80 0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16m176-176a64 64 0 1 1-128 0 64 64 0 1 1 128 0m112-16c0-8.8 7.2-16 16-16h128c8.8 0 16 7.2 16 16s-7.2 16-16 16H368c-8.8 0-16-7.2-16-16m0 64c0-8.8 7.2-16 16-16h128c8.8 0 16 7.2 16 16s-7.2 16-16 16H368c-8.8 0-16-7.2-16-16m0 64c0-8.8 7.2-16 16-16h128c8.8 0 16 7.2 16 16s-7.2 16-16 16H368c-8.8 0-16-7.2-16-16",
132
+ opacity: ".4"
195
133
  }
196
134
  ),
197
- /* @__PURE__ */ a(
198
- "path",
199
- {
200
- className: "fa-primary",
201
- d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80l-64 0z"
202
- }
203
- )
135
+ /* @__PURE__ */ a("path", { d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128m-32 32c-44.2 0-80 35.8-80 80 0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16 0-44.2-35.8-80-80-80z" })
204
136
  ]
205
137
  }
206
- ), nr = ({
138
+ ), sr = ({
207
139
  className: e,
208
140
  viewBox: r,
209
141
  title: t,
210
142
  monotone: o,
211
143
  ...n
212
144
  }) => /* @__PURE__ */ h(
213
- D,
145
+ F,
214
146
  {
215
147
  defaultViewBox: "0 0 512 512",
216
148
  size: "size-5",
@@ -222,28 +154,21 @@ const Zt = ({
222
154
  /* @__PURE__ */ a(
223
155
  "path",
224
156
  {
225
- className: "fa-secondary",
226
- opacity: o ? "1" : "0.4",
227
- d: "M128 80l0 16 64 0 0-16c0-8.8 7.2-16 16-16l224 0c8.8 0 16 7.2 16 16l0 224c0 8.8-7.2 16-16 16l-16 0 0 64 16 0c44.2 0 80-35.8 80-80l0-224c0-44.2-35.8-80-80-80L208 0c-44.2 0-80 35.8-80 80z"
157
+ d: "M128 80v16h64V80c0-8.8 7.2-16 16-16h224c8.8 0 16 7.2 16 16v224c0 8.8-7.2 16-16 16h-16v64h16c44.2 0 80-35.8 80-80V80c0-44.2-35.8-80-80-80H208c-44.2 0-80 35.8-80 80",
158
+ opacity: o ? "1" : "0.4"
228
159
  }
229
160
  ),
230
- /* @__PURE__ */ a(
231
- "path",
232
- {
233
- className: "fa-primary",
234
- d: "M64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 128zm32 64l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 256c-17.7 0-32-14.3-32-32s14.3-32 32-32z"
235
- }
236
- )
161
+ /* @__PURE__ */ a("path", { d: "M64 128c-35.3 0-64 28.7-64 64v256c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64zm32 64h192c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32" })
237
162
  ]
238
163
  }
239
- ), sr = ({
164
+ ), lr = ({
240
165
  className: e,
241
166
  viewBox: r,
242
167
  title: t,
243
168
  monotone: o,
244
169
  ...n
245
170
  }) => /* @__PURE__ */ a(
246
- D,
171
+ F,
247
172
  {
248
173
  defaultViewBox: "0 0 448 512",
249
174
  size: "size-5",
@@ -251,16 +176,16 @@ const Zt = ({
251
176
  className: e,
252
177
  title: t || "Settings",
253
178
  ...n,
254
- children: /* @__PURE__ */ a("path", { d: "M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z" })
179
+ children: /* @__PURE__ */ a("path", { d: "M432 256a48 48 0 1 1-96 0 48 48 0 1 1 96 0m-160 0a48 48 0 1 1-96 0 48 48 0 1 1 96 0M64 304a48 48 0 1 1 0-96 48 48 0 1 1 0 96" })
255
180
  }
256
- ), lr = ({
181
+ ), ir = ({
257
182
  className: e,
258
183
  viewBox: r,
259
184
  title: t,
260
185
  monotone: o,
261
186
  ...n
262
187
  }) => /* @__PURE__ */ h(
263
- D,
188
+ F,
264
189
  {
265
190
  defaultViewBox: "0 0 512 512",
266
191
  size: "size-5",
@@ -272,52 +197,45 @@ const Zt = ({
272
197
  /* @__PURE__ */ a(
273
198
  "path",
274
199
  {
275
- className: "fa-secondary",
276
- opacity: o ? "1" : "0.4",
277
- d: "M0 96C0 78.3 14.3 64 32 64l86.7 0c-2.1 4.9-3.8 10.1-4.9 15.4c-.6 2.7-1 5.4-1.3 8.2c-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l246.7 0c-2.1 4.9-3.8 10.1-4.9 15.4c-.6 2.7-1 5.4-1.3 8.2c-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32L32 288c-17.7 0-32-14.3-32-32zM0 416c0-17.7 14.3-32 32-32l54.7 0c-2.1 4.9-3.8 10.1-4.9 15.4c-.6 2.7-1 5.4-1.3 8.2c-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32L32 448c-17.7 0-32-14.3-32-32zm233.3-32L480 384c17.7 0 32 14.3 32 32s-14.3 32-32 32l-246.7 0c2.1-4.9 3.8-10.1 4.9-15.4c.6-2.7 1-5.4 1.3-8.2c.1-1.4 .3-2.8 .3-4.2s.1-2.8 .1-4.2c0-11.4-2.4-22.2-6.7-32zm32-320L480 64c17.7 0 32 14.3 32 32s-14.3 32-32 32l-214.7 0c2.1-4.9 3.8-10.1 4.9-15.4c.6-2.7 1-5.4 1.3-8.2c.1-1.4 .3-2.8 .3-4.2s.1-2.8 .1-4.2c0-11.4-2.4-22.2-6.7-32zm160 160l54.7 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-54.7 0c2.1-4.9 3.8-10.1 4.9-15.4c.6-2.7 1-5.4 1.3-8.2c.1-1.4 .3-2.8 .3-4.2s.1-2.8 .1-4.2c0-11.4-2.4-22.2-6.7-32z"
200
+ d: "M0 96c0-17.7 14.3-32 32-32h86.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h246.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h54.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m233.3-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H233.3c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32zm32-320H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H265.3c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32zm160 160H480c17.7 0 32 14.3 32 32s-14.3 32-32 32h-54.7c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32z",
201
+ opacity: o ? "1" : "0.4"
278
202
  }
279
203
  ),
280
- /* @__PURE__ */ a(
281
- "path",
282
- {
283
- className: "fa-primary",
284
- d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm112 0A80 80 0 1 0 80 416a80 80 0 1 0 160 0zm80-160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm112 0a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160z"
285
- }
286
- )
204
+ /* @__PURE__ */ a("path", { d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0m80-160a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0M192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64m0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160" })
287
205
  ]
288
206
  }
289
207
  );
290
208
  /*!
291
- @versini/ui-panel v1.3.10
209
+ @versini/ui-panel v1.3.14
292
210
  © 2025 gizmette.com
293
211
  */
294
212
  try {
295
213
  window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
296
- version: "1.3.10",
297
- buildTime: "01/14/2025 10:39 AM EST",
214
+ version: "1.3.14",
215
+ buildTime: "01/20/2025 01:49 PM EST",
298
216
  homepage: "https://github.com/aversini/ui-components",
299
217
  license: "MIT"
300
218
  });
301
219
  } catch {
302
220
  }
303
- const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe = "button", Ce = "link", cr = ({
221
+ const De = "av-messagebox", Ve = "av-panel", Ue = "av-button", ye = "icon", qe = "button", Te = "link", cr = ({
304
222
  type: e,
305
223
  size: r,
306
224
  labelRight: t,
307
225
  labelLeft: o,
308
226
  align: n
309
227
  }) => {
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";
228
+ const l = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", i = "max-h-12 py-2 px-4";
311
229
  switch (e) {
312
230
  case qe:
313
- case Ce:
314
- return m({
315
- [s]: r === "small",
316
- [l]: r === "medium",
317
- [c]: r === "large"
231
+ case Te:
232
+ return d({
233
+ [l]: r === "small",
234
+ [s]: r === "medium",
235
+ [i]: r === "large"
318
236
  });
319
237
  case ye:
320
- return m("inline-flex items-center", {
238
+ return d("inline-flex items-center", {
321
239
  "justify-center": n === "center",
322
240
  "justify-start": n === "left",
323
241
  "justify-end": n === "right",
@@ -329,30 +247,30 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
329
247
  "h-12 px-4": r === "large" && (t || o)
330
248
  });
331
249
  }
332
- }, ir = ({
250
+ }, dr = ({
333
251
  type: e,
334
252
  size: r,
335
253
  labelRight: t,
336
254
  labelLeft: o
337
255
  }) => {
338
- const n = "text-sm font-medium", s = "text-base font-medium", l = "text-lg font-medium";
256
+ const n = "text-sm font-medium", l = "text-base font-medium", s = "text-lg font-medium";
339
257
  switch (e) {
340
258
  case qe:
341
- case Ce:
342
- return m({
343
- "text-center": e === Ce,
259
+ case Te:
260
+ return d({
261
+ "text-center": e === Te,
344
262
  [n]: r === "small",
345
- [s]: r === "medium",
346
- [l]: r === "large"
263
+ [l]: r === "medium",
264
+ [s]: r === "large"
347
265
  });
348
266
  case ye:
349
- return m({
267
+ return d({
350
268
  [n]: r === "small" && (t || o),
351
- [s]: r === "medium" && (t || o),
352
- [l]: r === "large" && (t || o)
269
+ [l]: r === "medium" && (t || o),
270
+ [s]: r === "large" && (t || o)
353
271
  });
354
272
  }
355
- }, dr = ({
273
+ }, mr = ({
356
274
  mode: e,
357
275
  noBackground: r,
358
276
  noTruncate: t,
@@ -361,7 +279,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
361
279
  if (r)
362
280
  return "not-prose";
363
281
  if (o === "primary")
364
- return m("not-prose", {
282
+ return d("not-prose", {
365
283
  truncate: !t,
366
284
  "text-copy-light": e === "dark" || e === "system",
367
285
  "text-copy-lighter": e === "light" || e === "alt-system",
@@ -369,7 +287,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
369
287
  "dark:text-copy-light": e === "alt-system"
370
288
  });
371
289
  if (o === "secondary")
372
- return m("not-prose", {
290
+ return d("not-prose", {
373
291
  truncate: !t,
374
292
  "text-copy-light": e === "light" || e === "system",
375
293
  "text-copy-lighter": e === "dark" || e === "alt-system",
@@ -377,7 +295,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
377
295
  "dark:text-copy-light": e === "system"
378
296
  });
379
297
  if (o === "danger")
380
- return m("not-prose", {
298
+ return d("not-prose", {
381
299
  truncate: !t,
382
300
  "text-copy-light": e === "dark" || e === "system",
383
301
  "text-copy-lighter": e === "light" || e === "alt-system",
@@ -385,31 +303,31 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
385
303
  "dark:text-copy-light": e === "alt-system"
386
304
  });
387
305
  if (o === "selected")
388
- return m("not-prose text-copy-lighter", {
306
+ return d("not-prose text-copy-lighter", {
389
307
  truncate: !t
390
308
  });
391
- }, mr = ({
309
+ }, ur = ({
392
310
  mode: e,
393
311
  noBackground: r,
394
312
  variant: t
395
313
  }) => {
396
314
  if (!r) {
397
315
  if (t === "primary")
398
- return m({
316
+ return d({
399
317
  "bg-action-dark": e === "dark",
400
318
  "bg-action-light": e === "light",
401
319
  "bg-action-dark dark:bg-action-light": e === "system",
402
320
  "bg-action-light dark:bg-action-dark": e === "alt-system"
403
321
  });
404
322
  if (t === "secondary")
405
- return m({
323
+ return d({
406
324
  "bg-action-dark": e === "light",
407
325
  "bg-action-light": e === "dark",
408
326
  "bg-action-dark dark:bg-action-light": e === "alt-system",
409
327
  "bg-action-light dark:bg-action-dark": e === "system"
410
328
  });
411
329
  if (t === "danger")
412
- return m({
330
+ return d({
413
331
  "bg-action-danger-dark": e === "dark",
414
332
  "bg-action-danger-light": e === "light",
415
333
  "bg-action-danger-dark dark:bg-action-danger-light": e === "system",
@@ -418,13 +336,13 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
418
336
  if (t === "selected")
419
337
  return "bg-action-selected-dark";
420
338
  }
421
- }, ur = ({
339
+ }, hr = ({
422
340
  radius: e
423
- }) => m({
341
+ }) => d({
424
342
  "rounded-full": e === "large",
425
343
  "rounded-md": e === "medium",
426
344
  "rounded-sm": e === "small"
427
- }), hr = ({
345
+ }), gr = ({
428
346
  mode: e,
429
347
  disabled: r,
430
348
  variant: t
@@ -432,21 +350,21 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
432
350
  if (r)
433
351
  return "";
434
352
  if (t === "primary")
435
- return m("hover:text-copy-light-hover", {
353
+ return d("hover:text-copy-light-hover", {
436
354
  "hover:bg-action-dark-hover": e === "dark",
437
355
  "hover:bg-action-light-hover": e === "light",
438
356
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
439
357
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
440
358
  });
441
359
  if (t === "secondary")
442
- return m("hover:text-copy-light-hover", {
360
+ return d("hover:text-copy-light-hover", {
443
361
  "hover:bg-action-dark-hover": e === "light",
444
362
  "hover:bg-action-light-hover": e === "dark",
445
363
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
446
364
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
447
365
  });
448
366
  if (t === "danger")
449
- return m("hover:text-copy-light-hover", {
367
+ return d("hover:text-copy-light-hover", {
450
368
  "hover:bg-action-danger-dark-hover": e === "dark",
451
369
  "hover:bg-action-danger-light-hover": e === "light",
452
370
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
@@ -454,7 +372,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
454
372
  });
455
373
  if (t === "selected")
456
374
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
457
- }, gr = ({
375
+ }, pr = ({
458
376
  mode: e,
459
377
  disabled: r,
460
378
  variant: t
@@ -462,21 +380,21 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
462
380
  if (r)
463
381
  return "";
464
382
  if (t === "primary")
465
- return m("active:text-copy-light-active", {
383
+ return d("active:text-copy-light-active", {
466
384
  "active:bg-action-dark-active": e === "dark",
467
385
  "active:bg-action-light-active": e === "light",
468
386
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
469
387
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
470
388
  });
471
389
  if (t === "secondary")
472
- return m("active:text-copy-light-active", {
390
+ return d("active:text-copy-light-active", {
473
391
  "active:bg-action-dark-active": e === "light",
474
392
  "active:bg-action-light-active": e === "dark",
475
393
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
476
394
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
477
395
  });
478
396
  if (t === "danger")
479
- return m("active:text-copy-lighter-active", {
397
+ return d("active:text-copy-lighter-active", {
480
398
  "active:bg-action-danger-dark-active": e === "dark",
481
399
  "active:bg-action-danger-light-active": e === "light",
482
400
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
@@ -484,7 +402,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
484
402
  });
485
403
  if (t === "selected")
486
404
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
487
- }, pr = ({
405
+ }, fr = ({
488
406
  mode: e,
489
407
  noBorder: r,
490
408
  variant: t
@@ -492,21 +410,21 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
492
410
  if (r)
493
411
  return "border border-transparent";
494
412
  if (t === "primary")
495
- return m("border", {
413
+ return d("border", {
496
414
  "border-border-dark": e === "dark",
497
415
  "border-border-accent": e === "light",
498
416
  "border-border-dark dark:border-border-accent": e === "system",
499
417
  "border-border-accent dark:border-border-dark": e === "alt-system"
500
418
  });
501
419
  if (t === "secondary")
502
- return m("border", {
420
+ return d("border", {
503
421
  "border-border-dark": e === "light",
504
422
  "border-border-accent": e === "dark",
505
423
  "border-border-dark dark:border-border-accent": e === "alt-system",
506
424
  "border-border-accent dark:border-border-dark": e === "system"
507
425
  });
508
426
  if (t === "danger")
509
- return m("border", {
427
+ return d("border", {
510
428
  "border-border-danger-dark": e === "dark",
511
429
  "border-border-danger-medium": e === "light",
512
430
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
@@ -514,74 +432,86 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
514
432
  });
515
433
  if (t === "selected")
516
434
  return "border border-border-selected-dark";
517
- }, fr = ({
435
+ }, br = ({
518
436
  focusMode: e
519
- }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
437
+ }) => d("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
520
438
  "focus:outline-focus-dark": e === "dark",
521
439
  "focus:outline-focus-light": e === "light",
522
440
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
523
441
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
524
- }), Qe = ({
442
+ }), yr = ({
443
+ mode: e,
444
+ raw: r,
445
+ iconClassName: t
446
+ }) => r ? "" : d(
447
+ {
448
+ "text-copy-accent-dark": e === "light" || e === "alt-system",
449
+ "text-copy-light": e === "dark" || e === "system",
450
+ "dark:text-copy-light": e === "alt-system",
451
+ "dark:text-copy-accent-dark": e === "system"
452
+ },
453
+ t
454
+ ), Qe = ({
525
455
  type: e,
526
456
  className: r,
527
457
  raw: t,
528
458
  mode: o,
529
459
  focusMode: n,
530
- disabled: s,
531
- fullWidth: l,
532
- size: c,
460
+ disabled: l,
461
+ fullWidth: s,
462
+ size: i,
533
463
  noBorder: u,
534
- labelRight: d,
535
- labelLeft: p,
536
- noBackground: k,
537
- variant: g,
538
- noTruncate: i,
464
+ labelRight: m,
465
+ labelLeft: g,
466
+ noBackground: y,
467
+ variant: p,
468
+ noTruncate: c,
539
469
  align: f,
540
470
  radius: v
541
- }) => (g || (g = "primary"), t ? m(Ue, r) : m(
471
+ }) => (p || (p = "primary"), t ? d(Ue, r) : d(
542
472
  Ue,
543
- dr({
473
+ mr({
544
474
  mode: o,
545
- variant: g,
546
- noBackground: k,
547
- noTruncate: i
475
+ variant: p,
476
+ noBackground: y,
477
+ noTruncate: c
548
478
  }),
549
- mr({ mode: o, noBackground: k, variant: g }),
550
- ur({ radius: v }),
479
+ ur({ mode: o, noBackground: y, variant: p }),
480
+ hr({ radius: v }),
551
481
  cr({
552
482
  type: e,
553
- size: c,
554
- labelRight: d,
555
- labelLeft: p,
483
+ size: i,
484
+ labelRight: m,
485
+ labelLeft: g,
556
486
  align: f
557
487
  }),
558
- ir({ type: e, size: c, labelRight: d, labelLeft: p }),
559
- pr({ mode: o, variant: g, noBorder: u }),
560
- fr({ focusMode: n }),
561
- hr({ mode: o, variant: g, disabled: s }),
562
- gr({ mode: o, variant: g, disabled: s }),
488
+ dr({ type: e, size: i, labelRight: m, labelLeft: g }),
489
+ fr({ mode: o, variant: p, noBorder: u }),
490
+ br({ focusMode: n }),
491
+ gr({ mode: o, variant: p, disabled: l }),
492
+ pr({ mode: o, variant: p, disabled: l }),
563
493
  {
564
- "w-full": l,
565
- "disabled:cursor-not-allowed disabled:opacity-50": s
494
+ "w-full": s,
495
+ "disabled:cursor-not-allowed disabled:opacity-50": l
566
496
  },
567
497
  r
568
- )), br = (e, r, t) => {
498
+ )), kr = (e, r, t) => {
569
499
  var o;
570
500
  !r && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((o = e == null ? void 0 : e.currentTarget) == null ? void 0 : o.focus) == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
571
- }, Le = be.forwardRef((e, r) => {
501
+ }, Ae = be.forwardRef((e, r) => {
572
502
  const { onClick: t, noInternalClick: o = !1, ...n } = e;
573
503
  return /* @__PURE__ */ a(
574
504
  "button",
575
505
  {
576
506
  ref: r,
577
- onClick: (s) => {
578
- br(s, o, t);
507
+ onClick: (l) => {
508
+ kr(l, o, t);
579
509
  },
580
510
  ...n
581
511
  }
582
512
  );
583
513
  });
584
- Le.displayName = "BaseButton";
514
+ Ae.displayName = "BaseButton";
585
515
  const Je = be.forwardRef(
586
516
  ({
587
517
  children: e,
@@ -589,56 +519,52 @@ const Je = be.forwardRef(
589
519
  mode: t = "system",
590
520
  focusMode: o = "system",
591
521
  fullWidth: n = !1,
592
- className: s,
593
- type: l = "button",
594
- raw: c = !1,
522
+ className: l,
523
+ type: s = "button",
524
+ raw: i = !1,
595
525
  noBorder: u = !1,
596
- "aria-label": d,
597
- label: p,
598
- size: k = "medium",
599
- labelRight: g,
600
- labelLeft: i,
526
+ "aria-label": m,
527
+ label: g,
528
+ size: y = "medium",
529
+ labelRight: p,
530
+ labelLeft: c,
601
531
  noBackground: f = !1,
602
532
  align: v = "center",
603
- radius: y = "large",
604
- variant: x = "primary",
605
- ...T
606
- }, b) => {
607
- const E = Qe({
533
+ radius: x = "large",
534
+ variant: k = "primary",
535
+ iconClassName: C,
536
+ ...b
537
+ }, E) => {
538
+ const I = Qe({
608
539
  type: ye,
609
540
  mode: t,
610
541
  focusMode: o,
611
542
  fullWidth: n,
612
543
  disabled: r,
613
- raw: c,
614
- className: s,
544
+ raw: i,
545
+ className: l,
615
546
  noBorder: u,
616
- size: k,
617
- labelRight: g,
618
- labelLeft: i,
547
+ size: y,
548
+ labelRight: p,
549
+ labelLeft: c,
619
550
  noBackground: f,
620
551
  align: v,
621
- radius: y,
622
- variant: x
623
- }), I = m({
624
- "text-copy-accent-dark": (t === "light" || t === "alt-system") && !c,
625
- "text-copy-light": (t === "dark" || t === "system") && !c,
626
- "dark:text-copy-light": t === "alt-system" && !c,
627
- "dark:text-copy-accent-dark": t === "system" && !c
628
- });
552
+ radius: x,
553
+ variant: k
554
+ }), O = yr({ mode: t, raw: i, iconClassName: C });
629
555
  return /* @__PURE__ */ h(
630
- Le,
556
+ Ae,
631
557
  {
632
- ref: b,
633
- className: E,
558
+ ref: E,
559
+ className: I,
634
560
  disabled: r,
635
- type: l,
636
- "aria-label": d || p,
637
- ...T,
561
+ type: s,
562
+ "aria-label": m || g,
563
+ ...b,
638
564
  children: [
639
- i && /* @__PURE__ */ a("span", { className: "pr-2", children: i }),
640
- /* @__PURE__ */ a("div", { className: I, children: e }),
641
- g && /* @__PURE__ */ a("span", { className: "pl-2", children: g })
565
+ c && /* @__PURE__ */ a("span", { className: "pr-2", children: c }),
566
+ /* @__PURE__ */ a("div", { className: O, children: e }),
567
+ p && /* @__PURE__ */ a("span", { className: "pl-2", children: p })
642
568
  ]
643
569
  }
644
570
  );
@@ -646,39 +572,39 @@ const Je = be.forwardRef(
646
572
  );
647
573
  Je.displayName = "ButtonIcon";
648
574
  /*!
649
- @versini/ui-button v4.0.10
575
+ @versini/ui-button v4.1.3
650
576
  © 2025 gizmette.com
651
577
  */
652
578
  try {
653
579
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
654
- version: "4.0.10",
655
- buildTime: "01/14/2025 10:39 AM EST",
580
+ version: "4.1.3",
581
+ buildTime: "01/20/2025 01:49 PM EST",
656
582
  homepage: "https://github.com/aversini/ui-components",
657
583
  license: "MIT"
658
584
  });
659
585
  } catch {
660
586
  }
661
- const yr = be.forwardRef(
587
+ const vr = be.forwardRef(
662
588
  ({
663
589
  children: e,
664
590
  disabled: r = !1,
665
591
  mode: t = "system",
666
592
  focusMode: o = "system",
667
593
  fullWidth: n = !1,
668
- className: s,
669
- type: l = "button",
670
- raw: c = !1,
594
+ className: l,
595
+ type: s = "button",
596
+ raw: i = !1,
671
597
  noBorder: u = !1,
672
- "aria-label": d,
673
- label: p,
674
- size: k = "medium",
675
- labelRight: g,
676
- labelLeft: i,
598
+ "aria-label": m,
599
+ label: g,
600
+ size: y = "medium",
601
+ labelRight: p,
602
+ labelLeft: c,
677
603
  noBackground: f = !1,
678
604
  align: v = "center",
679
- active: y = !1,
680
- radius: x = "large",
681
- ...T
605
+ active: x = !1,
606
+ radius: k = "large",
607
+ ...C
682
608
  }, b) => {
683
609
  const E = Qe({
684
610
  type: ye,
@@ -686,21 +612,21 @@ const yr = be.forwardRef(
686
612
  focusMode: o,
687
613
  fullWidth: n,
688
614
  disabled: r,
689
- raw: c,
690
- className: s,
615
+ raw: i,
616
+ className: l,
691
617
  noBorder: u,
692
- size: k,
693
- labelRight: g,
694
- labelLeft: i,
618
+ size: y,
619
+ labelRight: p,
620
+ labelLeft: c,
695
621
  noBackground: f,
696
622
  align: v,
697
- radius: x
698
- }), I = m({
699
- "text-copy-accent-dark": t === "light" && !c,
700
- "text-copy-light": t === "dark" && !c,
701
- "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !c,
702
- "text-copy-light dark:text-copy-accent-dark": t === "system" && !c
703
- }), H = y ? m(
623
+ radius: k
624
+ }), I = d({
625
+ "text-copy-accent-dark": t === "light" && !i,
626
+ "text-copy-light": t === "dark" && !i,
627
+ "text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !i,
628
+ "text-copy-light dark:text-copy-accent-dark": t === "system" && !i
629
+ }), O = x ? d(
704
630
  "relative",
705
631
  "focus-within:static",
706
632
  "focus-within:after:border-transparent",
@@ -717,76 +643,76 @@ const yr = be.forwardRef(
717
643
  "after:border-table-light dark:after:border-table-dark": t === "alt-system"
718
644
  }
719
645
  ) : "";
720
- return /* @__PURE__ */ a("div", { className: H, children: /* @__PURE__ */ h(
721
- Le,
646
+ return /* @__PURE__ */ a("div", { className: O, children: /* @__PURE__ */ h(
647
+ Ae,
722
648
  {
723
649
  ref: b,
724
650
  className: E,
725
651
  disabled: r,
726
- type: l,
727
- "aria-label": d || p,
728
- ...T,
652
+ type: s,
653
+ "aria-label": m || g,
654
+ ...C,
729
655
  children: [
730
- i && /* @__PURE__ */ a("span", { className: "pr-2", children: i }),
656
+ c && /* @__PURE__ */ a("span", { className: "pr-2", children: c }),
731
657
  /* @__PURE__ */ a("div", { className: I, children: e }),
732
- g && /* @__PURE__ */ a("span", { className: "pl-2", children: g })
658
+ p && /* @__PURE__ */ a("span", { className: "pl-2", children: p })
733
659
  ]
734
660
  }
735
661
  ) });
736
662
  }
737
663
  );
738
- yr.displayName = "ButtonSort";
739
- const kr = ({
664
+ vr.displayName = "ButtonSort";
665
+ const xr = ({
740
666
  children: e,
741
667
  fill: r,
742
668
  viewBox: t,
743
669
  className: o,
744
670
  defaultViewBox: n,
745
- size: s,
746
- title: l,
747
- semantic: c = !1,
671
+ size: l,
672
+ title: s,
673
+ semantic: i = !1,
748
674
  ...u
749
675
  }) => {
750
- const d = m(s, o);
751
- return /* @__PURE__ */ h(M, { children: [
676
+ const m = d(l, o);
677
+ return /* @__PURE__ */ h(B, { children: [
752
678
  /* @__PURE__ */ a(
753
679
  "svg",
754
680
  {
755
681
  xmlns: "http://www.w3.org/2000/svg",
756
- className: d,
682
+ className: m,
757
683
  viewBox: t || n,
758
684
  fill: r || "currentColor",
759
685
  role: "img",
760
- "aria-hidden": !c,
686
+ "aria-hidden": !i,
761
687
  focusable: !1,
762
688
  ...u,
763
689
  children: e
764
690
  }
765
691
  ),
766
- l && c && /* @__PURE__ */ a("span", { className: "sr-only", children: l })
692
+ s && i && /* @__PURE__ */ a("span", { className: "sr-only", children: s })
767
693
  ] });
768
694
  };
769
695
  /*!
770
- @versini/ui-svgicon v4.0.3
696
+ @versini/ui-svgicon v4.0.7
771
697
  © 2025 gizmette.com
772
698
  */
773
699
  try {
774
700
  window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
775
- version: "4.0.3",
776
- buildTime: "01/14/2025 10:39 AM EST",
701
+ version: "4.0.7",
702
+ buildTime: "01/20/2025 01:49 PM EST",
777
703
  homepage: "https://github.com/aversini/ui-components",
778
704
  license: "MIT"
779
705
  });
780
706
  } catch {
781
707
  }
782
- const vr = ({
708
+ const Nr = ({
783
709
  className: e,
784
710
  viewBox: r,
785
711
  title: t,
786
712
  monotone: o,
787
713
  ...n
788
714
  }) => /* @__PURE__ */ a(
789
- kr,
715
+ xr,
790
716
  {
791
717
  defaultViewBox: "0 0 384 512",
792
718
  size: "size-5",
@@ -794,49 +720,55 @@ const vr = ({
794
720
  className: e,
795
721
  title: t || "Close",
796
722
  ...n,
797
- children: /* @__PURE__ */ a("path", { d: "M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z" })
723
+ children: /* @__PURE__ */ a(
724
+ "path",
725
+ {
726
+ d: "M297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3z",
727
+ opacity: o ? "1" : "0.4"
728
+ }
729
+ )
798
730
  }
799
731
  );
800
732
  /*!
801
- @versini/ui-icons v4.4.2
733
+ @versini/ui-icons v4.5.2
802
734
  © 2025 gizmette.com
803
735
  */
804
736
  try {
805
737
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
806
- version: "4.4.2",
807
- buildTime: "01/14/2025 10:39 AM EST",
738
+ version: "4.5.2",
739
+ buildTime: "01/20/2025 01:49 PM EST",
808
740
  homepage: "https://github.com/aversini/ui-components",
809
741
  license: "MIT"
810
742
  });
811
743
  } catch {
812
744
  }
813
745
  const Ze = S.createContext(null);
814
- function xr({
746
+ function wr({
815
747
  initialOpen: e = !1,
816
748
  open: r,
817
749
  onOpenChange: t
818
750
  } = {}) {
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, {
751
+ const [o, n] = S.useState(e), [l, s] = S.useState(), [i, u] = S.useState(), m = r ?? o, g = t ?? n, y = qt({
752
+ open: m,
753
+ onOpenChange: g
754
+ }), p = y.context, c = Qt(p, {
823
755
  enabled: r == null
824
- }), f = qt(g, {
756
+ }), f = Jt(p, {
825
757
  outsidePress: !1,
826
758
  outsidePressEvent: "mousedown"
827
- }), v = Qt(g), y = Jt([i, f, v]);
759
+ }), v = Zt(p), x = er([c, f, v]);
828
760
  return S.useMemo(
829
761
  () => ({
830
- open: d,
831
- setOpen: p,
762
+ open: m,
763
+ setOpen: g,
764
+ ...x,
832
765
  ...y,
833
- ...k,
834
- labelId: s,
835
- descriptionId: c,
836
- setLabelId: l,
766
+ labelId: l,
767
+ descriptionId: i,
768
+ setLabelId: s,
837
769
  setDescriptionId: u
838
770
  }),
839
- [d, p, y, k, s, c]
771
+ [m, g, x, y, l, i]
840
772
  );
841
773
  }
842
774
  const ke = () => {
@@ -845,68 +777,68 @@ const ke = () => {
845
777
  throw new Error("Modal components must be wrapped in <Modal />");
846
778
  return e;
847
779
  };
848
- function Nr({
780
+ function Er({
849
781
  children: e,
850
782
  ...r
851
783
  }) {
852
- const t = xr(r);
784
+ const t = wr(r);
853
785
  return /* @__PURE__ */ a(Ze.Provider, { value: t, children: e });
854
786
  }
855
- const wr = S.forwardRef(function(e, r) {
856
- const { context: t, ...o } = ke(), n = Gt([o.refs.setFloating, r]);
787
+ const Tr = S.forwardRef(function(e, r) {
788
+ const { context: t, ...o } = ke(), n = Yt([o.refs.setFloating, r]);
857
789
  if (!t.open)
858
790
  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
791
+ const { overlayBackground: l, ...s } = e, i = d("grid place-items-center", {
792
+ [`${l}`]: l,
793
+ "bg-black sm:bg-black/[.8]": !l
862
794
  });
863
- return /* @__PURE__ */ a(jt, { children: /* @__PURE__ */ a(Wt, { className: c, lockScroll: !0, children: /* @__PURE__ */ a(Yt, { context: t, children: /* @__PURE__ */ a(
795
+ return /* @__PURE__ */ a(Wt, { children: /* @__PURE__ */ a(Kt, { className: i, lockScroll: !0, children: /* @__PURE__ */ a(Xt, { context: t, children: /* @__PURE__ */ a(
864
796
  "div",
865
797
  {
866
798
  ref: n,
867
799
  "aria-labelledby": o.labelId,
868
800
  "aria-describedby": o.descriptionId,
869
- ...o.getFloatingProps(l),
870
- children: l.children
801
+ ...o.getFloatingProps(s),
802
+ children: s.children
871
803
  }
872
804
  ) }) }) });
873
- }), Er = S.forwardRef(function({ children: e, ...r }, t) {
805
+ }), Cr = S.forwardRef(function({ children: e, ...r }, t) {
874
806
  const { setLabelId: o } = ke(), n = Se();
875
807
  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) {
808
+ }), _r = S.forwardRef(function({ children: e, ...r }, t) {
877
809
  const { setDescriptionId: o } = ke(), n = Se();
878
810
  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]);
811
+ }), Ir = S.forwardRef(function(e, r) {
812
+ const { setOpen: t } = ke(), { trigger: o, className: n, ...l } = e, s = S.useCallback(() => t(!1), [t]);
881
813
  return /* @__PURE__ */ a("div", { className: n, children: S.cloneElement(o, {
882
814
  ref: r,
883
- onClick: l,
884
- ...s
815
+ onClick: s,
816
+ ...l
885
817
  }) });
886
818
  });
887
819
  /*!
888
- @versini/ui-modal v1.2.4
820
+ @versini/ui-modal v1.2.8
889
821
  © 2025 gizmette.com
890
822
  */
891
823
  try {
892
824
  window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
893
- version: "1.2.4",
894
- buildTime: "01/14/2025 10:39 AM EST",
825
+ version: "1.2.8",
826
+ buildTime: "01/20/2025 01:49 PM EST",
895
827
  homepage: "https://github.com/aversini/ui-components",
896
828
  license: "MIT"
897
829
  });
898
830
  } catch {
899
831
  }
900
- const se = "panel", me = "messagebox", _r = ({
832
+ const se = "panel", me = "messagebox", Sr = ({
901
833
  className: e,
902
834
  kind: r,
903
835
  borderMode: t
904
836
  }) => ({
905
- main: m("prose prose-lighter flex flex-col bg-surface-medium", {
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
- [`${He} w-full sm:w-[95%] md:max-w-2xl`]: r === se && !e,
908
- [`${Ve} rounded-lg border-2`]: r === me,
909
- [`${Ve} w-[95%] sm:w-[50%] md:max-w-2xl`]: r === me && !e,
837
+ main: d("prose prose-lighter flex flex-col bg-surface-medium", {
838
+ [`${Ve} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: r === se,
839
+ [`${Ve} w-full sm:w-[95%] md:max-w-2xl`]: r === se && !e,
840
+ [`${De} rounded-lg border-2`]: r === me,
841
+ [`${De} w-[95%] sm:w-[50%] md:max-w-2xl`]: r === me && !e,
910
842
  [`${e}`]: !!e,
911
843
  "sm:border-border-dark": t === "dark" && r === se,
912
844
  "sm:border-border-accent": t === "light" && r === se,
@@ -923,19 +855,19 @@ const se = "panel", me = "messagebox", _r = ({
923
855
  title: t,
924
856
  children: o,
925
857
  footer: n,
926
- borderMode: s = "light",
927
- kind: l = se,
928
- className: c
858
+ borderMode: l = "light",
859
+ kind: s = se,
860
+ className: i
929
861
  }) => {
930
- const u = _(""), d = _r({ className: c, kind: l, borderMode: s });
931
- return V(() => (e && (u.current = document.title, document.title = `${t} | ${u.current}`), () => {
862
+ const u = _(""), m = Sr({ className: i, kind: s, borderMode: l });
863
+ return D(() => (e && (u.current = document.title, document.title = `${t} | ${u.current}`), () => {
932
864
  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: [
865
+ }), [t, e]), /* @__PURE__ */ a(B, { children: e && /* @__PURE__ */ a(Er, { open: e, onOpenChange: r, children: /* @__PURE__ */ h(Tr, { className: m.main, children: [
934
866
  /* @__PURE__ */ h("div", { className: "flex flex-row-reverse items-center justify-between", children: [
935
867
  /* @__PURE__ */ a(
936
- Tr,
868
+ Ir,
937
869
  {
938
- className: d.close,
870
+ className: m.close,
939
871
  trigger: /* @__PURE__ */ a(
940
872
  Je,
941
873
  {
@@ -943,53 +875,53 @@ const se = "panel", me = "messagebox", _r = ({
943
875
  focusMode: "light",
944
876
  noBorder: !0,
945
877
  label: "Close",
946
- children: /* @__PURE__ */ a(vr, {})
878
+ children: /* @__PURE__ */ a(Nr, {})
947
879
  }
948
880
  )
949
881
  }
950
882
  ),
951
- /* @__PURE__ */ a(Er, { className: d.header, children: t })
883
+ /* @__PURE__ */ a(Cr, { className: m.header, children: t })
952
884
  ] }),
953
- /* @__PURE__ */ a(Cr, { className: d.content, children: o }),
954
- n && /* @__PURE__ */ a("div", { className: d.footer, children: n })
885
+ /* @__PURE__ */ a(_r, { className: m.content, children: o }),
886
+ n && /* @__PURE__ */ a("div", { className: m.footer, children: n })
955
887
  ] }) }) });
956
- }, Ir = () => {
888
+ }, Ar = () => {
957
889
  const { getAccessToken: e } = G(), r = pe(), t = pe(), {
958
890
  data: o,
959
891
  error: n,
960
- isLoading: s
961
- } = Lt({
892
+ isLoading: l
893
+ } = At({
962
894
  getAccessToken: e
963
- }), l = (o == null ? void 0 : o.plugins) || [], c = (o == null ? void 0 : o.version) || "", u = (o == null ? void 0 : o.models) || [];
964
- return /* @__PURE__ */ h(M, { children: [
895
+ }), s = (o == null ? void 0 : o.plugins) || [], i = (o == null ? void 0 : o.version) || "", u = (o == null ? void 0 : o.models) || [];
896
+ return /* @__PURE__ */ h(B, { children: [
965
897
  /* @__PURE__ */ a("div", { className: "mb-4", children: /* @__PURE__ */ a(
966
- $,
898
+ H,
967
899
  {
968
- header: C.ABOUT.TITLE_CLIENT,
900
+ header: T.ABOUT.TITLE_CLIENT,
969
901
  className: "prose-dark dark:prose-lighter",
970
902
  children: he(r, {
971
- [C.ABOUT.VERSION]: "5.20.5",
972
- [C.ABOUT.BUILD_TIMESTAMP]: "01/16/2025 05:35 PM EST"
903
+ [T.ABOUT.VERSION]: "5.21.0",
904
+ [T.ABOUT.BUILD_TIMESTAMP]: "01/20/2025 04:10 PM EST"
973
905
  })
974
906
  }
975
907
  ) }),
976
- n || s ? null : /* @__PURE__ */ a(
977
- $,
908
+ n || l ? null : /* @__PURE__ */ a(
909
+ H,
978
910
  {
979
- header: C.ABOUT.TITLE_SERVER,
911
+ header: T.ABOUT.TITLE_SERVER,
980
912
  className: "prose-dark dark:prose-lighter",
981
913
  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)) })
914
+ [T.ABOUT.VERSION]: i,
915
+ [ge(T.ABOUT.ENGINE, u.length)]: /* @__PURE__ */ a(B, { children: u.map((m) => /* @__PURE__ */ a("div", { className: "text-right", children: m }, m)) }),
916
+ [ge(T.ABOUT.PLUGIN, s.length)]: /* @__PURE__ */ a(B, { children: s.map((m) => /* @__PURE__ */ a("div", { className: "text-right", children: m }, m)) })
985
917
  })
986
918
  }
987
919
  )
988
920
  ] });
989
- }, Sr = ({
921
+ }, Rr = ({
990
922
  open: e,
991
923
  onOpenChange: r
992
- }) => /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: ht, children: /* @__PURE__ */ a(Ir, {}) }), et = ({
924
+ }) => /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: ht, children: /* @__PURE__ */ a(Ar, {}) }), et = ({
993
925
  showConfirmation: e,
994
926
  setShowConfirmation: r,
995
927
  action: t,
@@ -1003,8 +935,8 @@ const se = "panel", me = "messagebox", _r = ({
1003
935
  onOpenChange: r,
1004
936
  title: n.title,
1005
937
  footer: /* @__PURE__ */ h(X, { columnGap: 2, alignHorizontal: "flex-end", children: [
1006
- /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(
1007
- F,
938
+ /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
939
+ U,
1008
940
  {
1009
941
  mode: "dark",
1010
942
  variant: "secondary",
@@ -1015,8 +947,8 @@ const se = "panel", me = "messagebox", _r = ({
1015
947
  children: n.cancelAction
1016
948
  }
1017
949
  ) }),
1018
- /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(
1019
- F,
950
+ /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
951
+ U,
1020
952
  {
1021
953
  mode: "dark",
1022
954
  variant: "danger",
@@ -1032,9 +964,9 @@ const se = "panel", me = "messagebox", _r = ({
1032
964
  }
1033
965
  ), Lr = async (e, r, t, o) => {
1034
966
  try {
1035
- const n = await ce({
967
+ const n = await ie({
1036
968
  accessToken: o,
1037
- type: ie.GET_CHAT,
969
+ type: ce.GET_CHAT,
1038
970
  params: {
1039
971
  id: e.id
1040
972
  }
@@ -1052,27 +984,27 @@ const se = "panel", me = "messagebox", _r = ({
1052
984
  }), t(!1));
1053
985
  } catch {
1054
986
  }
1055
- }, Ar = ({
987
+ }, Mr = ({
1056
988
  filteredHistory: e,
1057
989
  dispatch: r,
1058
990
  onOpenChange: t,
1059
991
  mutate: o
1060
992
  }) => {
1061
- var T;
1062
- const { user: n, getAccessToken: s } = G(), l = _(null), c = _({
993
+ var C;
994
+ const { user: n, getAccessToken: l } = G(), s = _(null), i = _({
1063
995
  id: 0,
1064
996
  timestamp: "",
1065
997
  message: ""
1066
- }), [u, d] = w(!1), [p, k] = w(
1067
- Be + Oe
1068
- ), { state: g, dispatch: i } = fe(je), [, f] = Ie({
998
+ }), [u, m] = w(!1), [g, y] = w(
999
+ Oe + Pe
1000
+ ), { state: p, dispatch: c } = fe(je), [, f] = Ie({
1069
1001
  key: _e + gt,
1070
- initialValue: g.sortDirection
1002
+ initialValue: p.sortDirection
1071
1003
  }), v = (b) => {
1072
- switch (g.sortDirection) {
1004
+ switch (p.sortDirection) {
1073
1005
  case ae.ASC:
1074
- f(ae.DESC), i({
1075
- type: Pe,
1006
+ f(ae.DESC), c({
1007
+ type: ze,
1076
1008
  payload: {
1077
1009
  sortedCell: b,
1078
1010
  sortDirection: ae.DESC
@@ -1080,8 +1012,8 @@ const se = "panel", me = "messagebox", _r = ({
1080
1012
  });
1081
1013
  break;
1082
1014
  default:
1083
- f(ae.ASC), i({
1084
- type: Pe,
1015
+ f(ae.ASC), c({
1016
+ type: ze,
1085
1017
  payload: {
1086
1018
  sortedCell: b,
1087
1019
  sortDirection: ae.ASC
@@ -1089,12 +1021,12 @@ const se = "panel", me = "messagebox", _r = ({
1089
1021
  });
1090
1022
  break;
1091
1023
  }
1092
- }, y = async () => {
1093
- const b = c.current;
1024
+ }, x = async () => {
1025
+ const b = i.current;
1094
1026
  try {
1095
- await ce({
1096
- accessToken: await s(),
1097
- type: ie.DELETE_CHAT,
1027
+ await ie({
1028
+ accessToken: await l(),
1029
+ type: ce.DELETE_CHAT,
1098
1030
  params: {
1099
1031
  userId: (n == null ? void 0 : n.username) || "",
1100
1032
  id: b.id
@@ -1102,22 +1034,22 @@ const se = "panel", me = "messagebox", _r = ({
1102
1034
  }), o();
1103
1035
  } catch {
1104
1036
  }
1105
- }, x = Ke((b) => {
1106
- b[0].isIntersecting && k((I) => I + Be);
1037
+ }, k = Ke((b) => {
1038
+ b[0].isIntersecting && y((I) => I + Oe);
1107
1039
  }, []);
1108
- return V(() => {
1040
+ return D(() => {
1109
1041
  const b = {
1110
1042
  // root: null,
1111
1043
  rootMargin: "20px"
1112
- }, E = new IntersectionObserver(x, b);
1113
- l.current && E.observe(l.current);
1114
- }), /* @__PURE__ */ h(M, { children: [
1044
+ }, E = new IntersectionObserver(k, b);
1045
+ s.current && E.observe(s.current);
1046
+ }), /* @__PURE__ */ h(B, { children: [
1115
1047
  /* @__PURE__ */ h(
1116
1048
  et,
1117
1049
  {
1118
1050
  showConfirmation: u,
1119
- setShowConfirmation: d,
1120
- action: y,
1051
+ setShowConfirmation: m,
1052
+ action: x,
1121
1053
  customStrings: {
1122
1054
  confirmAction: "Delete",
1123
1055
  cancelAction: "Cancel",
@@ -1129,46 +1061,46 @@ const se = "panel", me = "messagebox", _r = ({
1129
1061
  /* @__PURE__ */ h("li", { children: [
1130
1062
  "Timestamp:",
1131
1063
  " ",
1132
- /* @__PURE__ */ a("span", { className: "text-lg", children: c.current && c.current.timestamp })
1064
+ /* @__PURE__ */ a("span", { className: "text-lg", children: i.current && i.current.timestamp })
1133
1065
  ] }),
1134
1066
  /* @__PURE__ */ h("li", { children: [
1135
1067
  "First message:",
1136
1068
  " ",
1137
- /* @__PURE__ */ a("span", { className: "text-lg", children: (T = c.current) == null ? void 0 : T.message })
1069
+ /* @__PURE__ */ a("span", { className: "text-lg", children: (C = i.current) == null ? void 0 : C.message })
1138
1070
  ] })
1139
1071
  ] })
1140
1072
  ]
1141
1073
  }
1142
1074
  ),
1143
- /* @__PURE__ */ h(At, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
1144
- /* @__PURE__ */ a(Rt, { children: /* @__PURE__ */ h(Ne, { children: [
1145
- /* @__PURE__ */ a(P, { className: "sr-only", children: "Row" }),
1075
+ /* @__PURE__ */ h(Rt, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
1076
+ /* @__PURE__ */ a(Lt, { children: /* @__PURE__ */ h(Ne, { children: [
1077
+ /* @__PURE__ */ a($, { className: "sr-only", children: "Row" }),
1146
1078
  /* @__PURE__ */ a(
1147
- zt,
1079
+ Mt,
1148
1080
  {
1149
1081
  buttonClassName: "text-xs sm:text-sm",
1150
1082
  cellId: "timestamp",
1151
1083
  align: "left",
1152
- sortDirection: g.sortDirection,
1153
- sortedCell: g.sortedCell,
1084
+ sortDirection: p.sortDirection,
1085
+ sortedCell: p.sortedCell,
1154
1086
  onClick: () => {
1155
1087
  v("timestamp");
1156
1088
  },
1157
1089
  children: "Date"
1158
1090
  }
1159
1091
  ),
1160
- /* @__PURE__ */ a(P, { className: "text-xs sm:text-sm", children: "First message" }),
1161
- /* @__PURE__ */ a(P, { className: "text-xs sm:text-sm", children: "Model" }),
1162
- /* @__PURE__ */ a(P, { className: "text-xs sm:text-sm text-right", children: "Actions" })
1092
+ /* @__PURE__ */ a($, { className: "text-xs sm:text-sm", children: "First message" }),
1093
+ /* @__PURE__ */ a($, { className: "text-xs sm:text-sm", children: "Model" }),
1094
+ /* @__PURE__ */ a($, { className: "text-xs sm:text-sm text-right", children: "Actions" })
1163
1095
  ] }) }),
1164
- /* @__PURE__ */ a(Mt, { children: e.slice(0, p).map((b, E) => {
1165
- var I, H;
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 }),
1096
+ /* @__PURE__ */ a(Bt, { children: e.slice(0, g).map((b, E) => {
1097
+ var I, O;
1098
+ return ((I = b == null ? void 0 : b.messages) == null ? void 0 : I.length) > 0 ? /* @__PURE__ */ h(Gt, { children: [
1099
+ E === g - Pe && /* @__PURE__ */ a("tr", { ref: s }),
1168
1100
  /* @__PURE__ */ h(Ne, { children: [
1169
- /* @__PURE__ */ a(P, { children: E + 1 }),
1101
+ /* @__PURE__ */ a($, { children: E + 1 }),
1170
1102
  /* @__PURE__ */ a(
1171
- P,
1103
+ $,
1172
1104
  {
1173
1105
  component: "th",
1174
1106
  scope: "row",
@@ -1177,29 +1109,29 @@ const se = "panel", me = "messagebox", _r = ({
1177
1109
  }
1178
1110
  ),
1179
1111
  /* @__PURE__ */ a(
1180
- P,
1112
+ $,
1181
1113
  {
1182
1114
  className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm",
1183
1115
  style: {
1184
1116
  wordBreak: "break-word"
1185
1117
  },
1186
- children: b.messages.length > 0 ? (H = b.messages[0]) == null ? void 0 : H.content : ""
1118
+ children: b.messages.length > 0 ? (O = b.messages[0]) == null ? void 0 : O.content : ""
1187
1119
  }
1188
1120
  ),
1189
1121
  /* @__PURE__ */ h(
1190
- P,
1122
+ $,
1191
1123
  {
1192
1124
  component: "th",
1193
1125
  scope: "row",
1194
1126
  className: "text-gray-400",
1195
1127
  align: "center",
1196
1128
  children: [
1197
- b.model && b.model.startsWith("claude") && /* @__PURE__ */ a(Bt, { size: "size-4 sm:size-5" }),
1198
- b.model && b.model.startsWith("gpt") && /* @__PURE__ */ a(Ot, { size: "size-4 sm:size-5" })
1129
+ b.model && b.model.startsWith("claude") && /* @__PURE__ */ a(Ot, { size: "size-4 sm:size-5" }),
1130
+ b.model && b.model.startsWith("gpt") && /* @__PURE__ */ a(Pt, { size: "size-4 sm:size-5" })
1199
1131
  ]
1200
1132
  }
1201
1133
  ),
1202
- /* @__PURE__ */ h(P, { align: "right", children: [
1134
+ /* @__PURE__ */ h($, { align: "right", children: [
1203
1135
  /* @__PURE__ */ a(
1204
1136
  le,
1205
1137
  {
@@ -1208,15 +1140,15 @@ const se = "panel", me = "messagebox", _r = ({
1208
1140
  noBorder: !0,
1209
1141
  label: "Restore chat",
1210
1142
  onClick: async () => {
1211
- const B = await s();
1143
+ const P = await l();
1212
1144
  Lr(
1213
1145
  b,
1214
1146
  r,
1215
1147
  t,
1216
- B
1148
+ P
1217
1149
  );
1218
1150
  },
1219
- children: /* @__PURE__ */ a(nr, { size: "size-3", monotone: !0 })
1151
+ children: /* @__PURE__ */ a(sr, { size: "size-3", monotone: !0 })
1220
1152
  }
1221
1153
  ),
1222
1154
  /* @__PURE__ */ a(
@@ -1226,72 +1158,73 @@ const se = "panel", me = "messagebox", _r = ({
1226
1158
  noBorder: !0,
1227
1159
  label: "Delete chat",
1228
1160
  onClick: () => {
1229
- var B;
1230
- c.current = {
1161
+ var P;
1162
+ i.current = {
1231
1163
  id: b.id,
1232
1164
  timestamp: b.timestamp,
1233
- message: b.messages.length > 0 ? (B = b.messages[0]) == null ? void 0 : B.content : ""
1234
- }, d(!u);
1165
+ message: b.messages.length > 0 ? (P = b.messages[0]) == null ? void 0 : P.content : ""
1166
+ }, m(!u);
1235
1167
  },
1236
- children: /* @__PURE__ */ a("div", { className: "text-red-400", children: /* @__PURE__ */ a(er, { size: "size-3", monotone: !0 }) })
1168
+ children: /* @__PURE__ */ a("div", { className: "text-red-400", children: /* @__PURE__ */ a(rr, { size: "size-3", monotone: !0 }) })
1237
1169
  }
1238
1170
  )
1239
1171
  ] })
1240
1172
  ] })
1241
- ] }, `${C.HISTORY.TITLE}-${b.id}-${E}`) : null;
1173
+ ] }, `${T.HISTORY.TITLE}-${b.id}-${E}`) : null;
1242
1174
  }) }),
1243
- /* @__PURE__ */ a(Pt, { children: /* @__PURE__ */ a(Ne, { children: /* @__PURE__ */ a(P, { colSpan: 1e3, children: /* @__PURE__ */ a("div", { children: ge(
1175
+ /* @__PURE__ */ a(zt, { children: /* @__PURE__ */ a(Ne, { children: /* @__PURE__ */ a($, { colSpan: 1e3, children: /* @__PURE__ */ a("div", { children: ge(
1244
1176
  `${e.length} chat`,
1245
1177
  e.length
1246
1178
  ) }) }) }) })
1247
1179
  ] })
1248
1180
  ] });
1249
- }, Rr = ({
1181
+ }, Br = ({
1250
1182
  open: e,
1251
1183
  onOpenChange: r
1252
1184
  }) => {
1253
- const { getAccessToken: t, user: o } = G(), { dispatch: n } = fe(We), { state: s, dispatch: l } = fe(je), { data: c, mutate: u } = $t({
1185
+ const { getAccessToken: t, user: o } = G(), { state: n, dispatch: l } = fe(Ye), { state: s, dispatch: i } = fe(je), { data: u, mutate: m } = $t({
1254
1186
  keys: [
1255
1187
  o == null ? void 0 : o.username,
1256
1188
  s.searchString,
1257
- s.sortDirection
1189
+ s.sortDirection,
1190
+ (n == null ? void 0 : n.lastTriggeredTimestamp) || 0
1258
1191
  ],
1259
1192
  getAccessToken: t
1260
- }), d = _(null), [, p] = Ie({
1193
+ }), g = _(null), [, y] = Ie({
1261
1194
  key: _e + bt,
1262
1195
  initialValue: s.searchString
1263
- }), [k, g] = w([]);
1264
- V(() => {
1265
- c && g(c);
1266
- }, [c]);
1267
- const i = async (y) => {
1268
- p(y), l({
1196
+ }), [p, c] = w([]);
1197
+ D(() => {
1198
+ u && c(u);
1199
+ }, [u]);
1200
+ const f = async (k) => {
1201
+ y(k), i({
1269
1202
  type: kt,
1270
- payload: { searchString: y }
1203
+ payload: { searchString: k }
1271
1204
  });
1272
- }, f = vt((y) => {
1273
- i(y.target.value.trim());
1205
+ }, v = vt((k) => {
1206
+ f(k.target.value.trim());
1274
1207
  }, 500);
1275
- 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();
1208
+ return /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: yt, children: /* @__PURE__ */ h(B, { children: [
1209
+ /* @__PURE__ */ a("form", { autoComplete: "off", onSubmit: async (k) => {
1210
+ k.preventDefault();
1278
1211
  }, children: /* @__PURE__ */ a(
1279
1212
  Ee,
1280
1213
  {
1281
1214
  autoCapitalize: "off",
1282
1215
  autoComplete: "off",
1283
1216
  autoCorrect: "off",
1284
- ref: d,
1217
+ ref: g,
1285
1218
  defaultValue: s.searchString,
1286
1219
  focusMode: "light",
1287
1220
  mode: "dark",
1288
1221
  name: "Search",
1289
1222
  label: "Search",
1290
- onChange: f,
1223
+ onChange: v,
1291
1224
  className: "mt-2 mb-2",
1292
1225
  ...s.searchString && {
1293
1226
  rightElement: /* @__PURE__ */ a(
1294
- F,
1227
+ U,
1295
1228
  {
1296
1229
  type: "button",
1297
1230
  disabled: !s.searchString,
@@ -1300,8 +1233,8 @@ const se = "panel", me = "messagebox", _r = ({
1300
1233
  noBorder: !0,
1301
1234
  size: "small",
1302
1235
  onClick: () => {
1303
- var y;
1304
- i(""), (y = d.current) != null && y.value && (d.current.value = "", d.current.focus());
1236
+ var k;
1237
+ f(""), (k = g.current) != null && k.value && (g.current.value = "", g.current.focus());
1305
1238
  },
1306
1239
  children: "Reset"
1307
1240
  }
@@ -1310,46 +1243,46 @@ const se = "panel", me = "messagebox", _r = ({
1310
1243
  }
1311
1244
  ) }),
1312
1245
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ a(
1313
- Ar,
1246
+ Mr,
1314
1247
  {
1315
- mutate: u,
1316
- filteredHistory: k,
1317
- dispatch: n,
1248
+ mutate: m,
1249
+ filteredHistory: p,
1250
+ dispatch: l,
1318
1251
  onOpenChange: r
1319
1252
  }
1320
1253
  ) })
1321
1254
  ] }) });
1322
- }, 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
- return r && c ? /* @__PURE__ */ h(M, { children: [
1255
+ }, Or = ({ stats: e }) => {
1256
+ const { isAuthenticated: r, user: t, registeringForPasskey: o, authenticationType: n } = G(), l = pe(), s = pe(), i = (t == null ? void 0 : t.username) || "";
1257
+ return r && i ? /* @__PURE__ */ h(B, { children: [
1325
1258
  /* @__PURE__ */ a(
1326
- $,
1259
+ H,
1327
1260
  {
1328
- header: C.PREFERENCES.TITLE,
1261
+ header: T.PREFERENCES.TITLE,
1329
1262
  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) || ""
1263
+ children: he(l, {
1264
+ [T.PREFERENCES.NAME]: i,
1265
+ [T.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || ""
1333
1266
  })
1334
1267
  }
1335
1268
  ),
1336
1269
  n !== xt.PASSKEY && /* @__PURE__ */ h(
1337
- $,
1270
+ H,
1338
1271
  {
1339
1272
  className: "prose-dark dark:prose-lighter mt-4",
1340
1273
  header: /* @__PURE__ */ a("h2", { className: "m-0", children: /* @__PURE__ */ h(X, { columnGap: 3, alignVertical: "center", children: [
1341
- /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a($e, { size: "size-8" }) }),
1342
- /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a("div", { children: C.PREFERENCES.PASSKEY_TITLE }) })
1274
+ /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a($e, { size: "size-8" }) }),
1275
+ /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a("div", { children: T.PREFERENCES.PASSKEY_TITLE }) })
1343
1276
  ] }) }),
1344
1277
  children: [
1345
- /* @__PURE__ */ a("p", { children: C.PREFERENCES.PASSKEY_INSTRUCTIONS }),
1278
+ /* @__PURE__ */ a("p", { children: T.PREFERENCES.PASSKEY_INSTRUCTIONS }),
1346
1279
  /* @__PURE__ */ a(
1347
1280
  le,
1348
1281
  {
1349
1282
  size: "small",
1350
1283
  className: "mt-2",
1351
1284
  onClick: o,
1352
- labelLeft: C.PREFERENCES.PASSKEY_BUTTON,
1285
+ labelLeft: T.PREFERENCES.PASSKEY_BUTTON,
1353
1286
  children: /* @__PURE__ */ a($e, { size: "size-5", monotone: !0 })
1354
1287
  }
1355
1288
  )
@@ -1357,54 +1290,54 @@ const se = "panel", me = "messagebox", _r = ({
1357
1290
  }
1358
1291
  ),
1359
1292
  /* @__PURE__ */ a(
1360
- $,
1293
+ H,
1361
1294
  {
1362
- header: C.MAIN_STATISTICS.TITLE,
1295
+ header: T.MAIN_STATISTICS.TITLE,
1363
1296
  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(
1297
+ children: he(s, {
1298
+ [ge(T.MAIN_STATISTICS.TOTAL, e.totalChats)]: e.totalChats,
1299
+ [T.MAIN_STATISTICS.PROCESSING_TIME]: Nt(
1367
1300
  e.averageProcessingTimes
1368
1301
  )
1369
1302
  })
1370
1303
  }
1371
1304
  )
1372
1305
  ] }) : null;
1373
- }, Mr = ({
1306
+ }, Pr = ({
1374
1307
  open: e,
1375
1308
  onOpenChange: r
1376
1309
  }) => {
1377
1310
  const { getAccessToken: t, user: o } = G(), {
1378
1311
  data: n,
1379
- error: s,
1380
- isLoading: l
1381
- } = Dt({
1312
+ error: l,
1313
+ isLoading: s
1314
+ } = Ht({
1382
1315
  keys: [o == null ? void 0 : o.username],
1383
1316
  getAccessToken: t
1384
1317
  });
1385
- return s || l ? null : /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: wt, children: /* @__PURE__ */ a(zr, { stats: n }) });
1318
+ return l || s ? null : /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: wt, children: /* @__PURE__ */ a(Or, { stats: n }) });
1386
1319
  };
1387
1320
  /*!
1388
- @versini/ui-textarea v3.0.5
1321
+ @versini/ui-textarea v3.0.9
1389
1322
  © 2025 gizmette.com
1390
1323
  */
1391
1324
  try {
1392
1325
  window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
1393
- version: "3.0.5",
1394
- buildTime: "01/16/2025 02:52 PM EST",
1326
+ version: "3.0.9",
1327
+ buildTime: "01/20/2025 01:49 PM EST",
1395
1328
  homepage: "https://github.com/aversini/ui-components",
1396
1329
  license: "MIT"
1397
1330
  });
1398
1331
  } catch {
1399
1332
  }
1400
- const tt = "av-text-area", Br = "av-text-area-wrapper", we = "av-text-area-helper-text", Or = "av-text-area__control--right", Pr = "av-text-area__control--left";
1401
- function $r() {
1333
+ const tt = "av-text-area", zr = "av-text-area-wrapper", we = "av-text-area-helper-text", $r = "av-text-area__control--right", Hr = "av-text-area__control--left";
1334
+ function Dr() {
1402
1335
  const e = _(!1);
1403
- return V(() => (e.current = !0, () => {
1336
+ return D(() => (e.current = !0, () => {
1404
1337
  e.current = !1;
1405
1338
  }), []), Ke(() => e.current, []);
1406
1339
  }
1407
- function Dr(e) {
1340
+ function Vr(e) {
1408
1341
  return Xe(() => e.every((r) => r == null) ? () => {
1409
1342
  } : (r) => {
1410
1343
  e.forEach((t) => {
@@ -1412,7 +1345,7 @@ function Dr(e) {
1412
1345
  });
1413
1346
  }, e);
1414
1347
  }
1415
- const Vr = {
1348
+ const Ur = {
1416
1349
  x: 0,
1417
1350
  y: 0,
1418
1351
  width: 0,
@@ -1423,17 +1356,17 @@ const Vr = {
1423
1356
  right: 0
1424
1357
  };
1425
1358
  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 u = c[0];
1359
+ const r = Dr(), t = _(0), o = _(null), [n, l] = w(Ur), s = Xe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
1360
+ const u = i[0];
1428
1361
  u && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
1429
- o.current && r() && s(u.contentRect);
1362
+ o.current && r() && l(u.contentRect);
1430
1363
  }));
1431
1364
  }), [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];
1365
+ return D(() => (o.current && (s == null || s.observe(o.current, e)), () => {
1366
+ s == null || s.disconnect(), t.current && cancelAnimationFrame(t.current);
1367
+ }), [s, e]), [o, n];
1435
1368
  }
1436
- function Hr({
1369
+ function Fr({
1437
1370
  value: e,
1438
1371
  defaultValue: r,
1439
1372
  finalValue: t,
@@ -1441,18 +1374,18 @@ function Hr({
1441
1374
  },
1442
1375
  initialControlledDelay: n = 0
1443
1376
  }) {
1444
- const [s, l] = w(!1), [c, u] = w(
1377
+ const [l, s] = w(!1), [i, u] = w(
1445
1378
  r !== void 0 ? r : t
1446
- ), d = (p) => {
1447
- u(p), o == null || o(p);
1379
+ ), m = (g) => {
1380
+ u(g), o == null || o(g);
1448
1381
  };
1449
- 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];
1382
+ return D(() => {
1383
+ (async () => e !== void 0 && !l && n > 0 && (await new Promise(
1384
+ (g) => setTimeout(g, n)
1385
+ ), s(!0)))();
1386
+ }, [e, n, l]), e !== void 0 ? !l && n > 0 ? ["", o, !0] : [e, o, !0] : [i, m, !1];
1454
1387
  }
1455
- function Ur(e) {
1388
+ function Gr(e) {
1456
1389
  const r = Se();
1457
1390
  if (!e)
1458
1391
  return r;
@@ -1463,7 +1396,7 @@ function Ur(e) {
1463
1396
  return typeof t == "number" || typeof t == "string" ? `${o}${t}` : `${o}${r}`;
1464
1397
  }
1465
1398
  }
1466
- const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", Fr = {
1399
+ const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", jr = {
1467
1400
  alert: null,
1468
1401
  alertdialog: null,
1469
1402
  log: "polite",
@@ -1471,7 +1404,7 @@ const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", Fr = {
1471
1404
  progressbar: null,
1472
1405
  status: "polite",
1473
1406
  timer: "assertive"
1474
- }, Gr = (e, r) => {
1407
+ }, Yr = (e, r) => {
1475
1408
  switch (r == null ? void 0 : r.type) {
1476
1409
  case rt:
1477
1410
  return {
@@ -1486,7 +1419,7 @@ const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", Fr = {
1486
1419
  default:
1487
1420
  return e;
1488
1421
  }
1489
- }, jr = ({
1422
+ }, Wr = ({
1490
1423
  onAnnouncementClear: e,
1491
1424
  dispatch: r
1492
1425
  }) => {
@@ -1504,135 +1437,135 @@ const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", Fr = {
1504
1437
  type: rt,
1505
1438
  payload: e
1506
1439
  }), r && (t.current = setTimeout(
1507
- () => jr({
1440
+ () => Wr({
1508
1441
  onAnnouncementClear: o,
1509
1442
  dispatch: n
1510
1443
  }),
1511
1444
  r
1512
1445
  ));
1513
- }, Wr = ({
1446
+ }, Kr = ({
1514
1447
  children: e,
1515
1448
  announcementTimeoutRef: r,
1516
1449
  announcementDelay: t,
1517
1450
  clearAnnouncementDelay: o,
1518
1451
  clearAnnouncementTimeoutRef: n,
1519
- onAnnouncementClear: s,
1520
- dispatch: l
1452
+ onAnnouncementClear: l,
1453
+ dispatch: s
1521
1454
  }) => {
1522
1455
  clearTimeout(r.current), t ? r.current = setTimeout(Ge, t, {
1523
1456
  children: e,
1524
1457
  clearAnnouncementDelay: o,
1525
1458
  clearAnnouncementTimeoutRef: n,
1526
- onAnnouncementClear: s,
1527
- dispatch: l
1459
+ onAnnouncementClear: l,
1460
+ dispatch: s
1528
1461
  }) : Ge({
1529
1462
  children: e,
1530
1463
  clearAnnouncementDelay: o,
1531
1464
  clearAnnouncementTimeoutRef: n,
1532
- onAnnouncementClear: s,
1533
- dispatch: l
1465
+ onAnnouncementClear: l,
1466
+ dispatch: s
1534
1467
  });
1535
1468
  };
1536
- function Yr({
1469
+ function Xr({
1537
1470
  children: e,
1538
1471
  className: r,
1539
1472
  politeness: t,
1540
1473
  role: o = null,
1541
1474
  announcementDelay: n,
1542
- clearAnnouncementDelay: s,
1543
- onAnnouncementClear: l,
1544
- visible: c,
1475
+ clearAnnouncementDelay: l,
1476
+ onAnnouncementClear: s,
1477
+ visible: i,
1545
1478
  ...u
1546
1479
  }) {
1547
- const d = _(null), p = _(null), [k, g] = Ft(Gr, {
1480
+ const m = _(null), g = _(null), [y, p] = jt(Yr, {
1548
1481
  announcement: null
1549
1482
  });
1550
- let i = t;
1551
- typeof i > "u" && (i = o ? Fr[o] : "assertive"), V(() => {
1552
- Wr({
1553
- announcementTimeoutRef: d,
1483
+ let c = t;
1484
+ typeof c > "u" && (c = o ? jr[o] : "assertive"), D(() => {
1485
+ Kr({
1486
+ announcementTimeoutRef: m,
1554
1487
  announcementDelay: n,
1555
1488
  children: e,
1556
- clearAnnouncementDelay: s,
1557
- clearAnnouncementTimeoutRef: p,
1558
- onAnnouncementClear: l,
1559
- dispatch: g
1489
+ clearAnnouncementDelay: l,
1490
+ clearAnnouncementTimeoutRef: g,
1491
+ onAnnouncementClear: s,
1492
+ dispatch: p
1560
1493
  });
1561
1494
  }, [
1562
1495
  e,
1563
1496
  n,
1564
- s,
1565
- l
1497
+ l,
1498
+ s
1566
1499
  ]);
1567
- const f = m(r, {
1568
- "sr-only": !c
1500
+ const f = d(r, {
1501
+ "sr-only": !i
1569
1502
  });
1570
1503
  return /* @__PURE__ */ a(
1571
1504
  "div",
1572
1505
  {
1573
- "aria-live": i,
1506
+ "aria-live": c,
1574
1507
  ...o && { role: o },
1575
1508
  className: f,
1576
1509
  ...u,
1577
- children: k.announcement
1510
+ children: y.announcement
1578
1511
  }
1579
1512
  );
1580
1513
  }
1581
1514
  /*!
1582
- @versini/ui-liveregion v1.3.3
1515
+ @versini/ui-liveregion v1.3.7
1583
1516
  © 2025 gizmette.com
1584
1517
  */
1585
1518
  try {
1586
1519
  window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
1587
- version: "1.3.3",
1588
- buildTime: "01/16/2025 02:52 PM EST",
1520
+ version: "1.3.7",
1521
+ buildTime: "01/20/2025 01:49 PM EST",
1589
1522
  homepage: "https://github.com/aversini/ui-components",
1590
1523
  license: "MIT"
1591
1524
  });
1592
1525
  } catch {
1593
1526
  }
1594
- const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Xr = ({ mode: e }) => m({
1527
+ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Qr = ({ mode: e }) => d({
1595
1528
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
1596
1529
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
1597
1530
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
1598
1531
  "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
- }), qr = ({
1532
+ }), Jr = ({
1600
1533
  focusMode: e
1601
- }) => m("focus:outline focus:outline-2 focus:outline-offset-2", {
1534
+ }) => d("focus:outline focus:outline-2 focus:outline-offset-2", {
1602
1535
  "focus:outline-focus-dark": e === "dark",
1603
1536
  "focus:outline-focus-light": e === "light",
1604
1537
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
1605
1538
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
1606
- }), Qr = ({
1539
+ }), Zr = ({
1607
1540
  noBorder: e,
1608
1541
  error: r
1609
- }) => m("border-2", {
1542
+ }) => d("border-2", {
1610
1543
  "border-border-dark": !e && !r,
1611
1544
  "focus:border-border-dark": !e && r,
1612
1545
  "border-border-error-dark": !e && r,
1613
1546
  "border-transparent": e
1614
- }), Jr = ({
1547
+ }), ea = ({
1615
1548
  disabled: e,
1616
1549
  raw: r,
1617
1550
  error: t,
1618
1551
  mode: o,
1619
1552
  leftElement: n,
1620
- rightElement: s
1553
+ rightElement: l
1621
1554
  }) => {
1622
1555
  if (r)
1623
1556
  return "";
1624
1557
  if (e)
1625
- return m(
1558
+ return d(
1626
1559
  "transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium",
1627
1560
  {
1628
- "translate-x-[12px]": s === !0 && !n || !s && !n
1561
+ "translate-x-[12px]": l === !0 && !n || !l && !n
1629
1562
  }
1630
1563
  );
1631
1564
  if (!t)
1632
- return m(
1565
+ return d(
1633
1566
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
1634
1567
  {
1635
- "translate-x-[12px]": s === !0 && !n || !s && !n,
1568
+ "translate-x-[12px]": l === !0 && !n || !l && !n,
1636
1569
  "text-copy-medium": o === "dark",
1637
1570
  "text-copy-dark": o === "light",
1638
1571
  "text-copy-dark dark:text-copy-medium": o === "system",
@@ -1640,17 +1573,17 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1640
1573
  }
1641
1574
  );
1642
1575
  if (t)
1643
- return m(
1576
+ return d(
1644
1577
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
1645
1578
  {
1646
- "translate-x-[12px]": s === !0 && !n || !s && !n,
1579
+ "translate-x-[12px]": l === !0 && !n || !l && !n,
1647
1580
  "text-copy-medium": o === "dark",
1648
1581
  "text-copy-error-dark": o === "light",
1649
1582
  "text-copy-error-dark dark:text-copy-error-light": o === "system",
1650
1583
  "text-copy-medium dark:text-copy-error-dark": o === "alt-system"
1651
1584
  }
1652
1585
  );
1653
- }, Zr = ({
1586
+ }, ta = ({
1654
1587
  error: e,
1655
1588
  raw: r,
1656
1589
  mode: t,
@@ -1659,222 +1592,222 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1659
1592
  if (r)
1660
1593
  return "";
1661
1594
  if (o)
1662
- return m(
1595
+ return d(
1663
1596
  we,
1664
1597
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
1665
1598
  );
1666
1599
  if (!e)
1667
- return m(we, "absolute px-2 font-medium", {
1600
+ return d(we, "absolute px-2 font-medium", {
1668
1601
  "text-copy-medium": t === "dark",
1669
1602
  "text-copy-dark": t === "light",
1670
1603
  "text-copy-dark dark:text-copy-medium": t === "system",
1671
1604
  "text-copy-medium dark:text-copy-dark": t === "alt-system"
1672
1605
  });
1673
1606
  if (e)
1674
- return m(we, "absolute px-2 font-medium", {
1607
+ return d(we, "absolute px-2 font-medium", {
1675
1608
  "text-copy-error-light": t === "dark",
1676
1609
  "text-copy-error-dark": t === "light",
1677
1610
  "text-copy-error-dark dark:text-copy-error-light": t === "system",
1678
1611
  "dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
1679
1612
  });
1680
- }, ea = ({
1613
+ }, ra = ({
1681
1614
  className: e,
1682
1615
  textAreaClassName: r,
1683
1616
  raw: t,
1684
1617
  focusMode: o,
1685
1618
  disabled: n,
1686
- noBorder: s,
1687
- error: l,
1688
- mode: c,
1619
+ noBorder: l,
1620
+ error: s,
1621
+ mode: i,
1689
1622
  leftElement: u,
1690
- rightElement: d
1623
+ rightElement: m
1691
1624
  }) => {
1692
- const p = t ? e : m(
1625
+ const g = t ? e : d(
1693
1626
  "relative flex w-full flex-col justify-center",
1694
- Br,
1627
+ zr,
1695
1628
  e
1696
- ), k = t ? m(r) : m(
1629
+ ), y = t ? d(r) : d(
1697
1630
  tt,
1698
1631
  r,
1699
- Kr(),
1700
- Xr({ mode: c }),
1701
- qr({ focusMode: o }),
1702
- Qr({
1703
- noBorder: s,
1704
- error: l
1632
+ qr(),
1633
+ Qr({ mode: i }),
1634
+ Jr({ focusMode: o }),
1635
+ Zr({
1636
+ noBorder: l,
1637
+ error: s
1705
1638
  }),
1706
1639
  {
1707
1640
  "disabled:cursor-not-allowed disabled:opacity-50": n
1708
1641
  }
1709
- ), g = t ? void 0 : "sr-only", i = Jr({
1642
+ ), p = t ? void 0 : "sr-only", c = ea({
1710
1643
  disabled: n,
1711
1644
  raw: t,
1712
- error: l,
1713
- mode: c,
1714
- rightElement: d,
1645
+ error: s,
1646
+ mode: i,
1647
+ rightElement: m,
1715
1648
  leftElement: u
1716
- }), f = Zr({
1717
- error: l,
1649
+ }), f = ta({
1650
+ error: s,
1718
1651
  raw: t,
1719
- mode: c,
1652
+ mode: i,
1720
1653
  disabled: n
1721
- }), v = t ? void 0 : m(Or, "absolute"), y = t ? void 0 : m(Pr, "absolute");
1654
+ }), v = t ? void 0 : d($r, "absolute"), x = t ? void 0 : d(Hr, "absolute");
1722
1655
  return {
1723
- wrapper: p,
1724
- textArea: k,
1725
- accessibleLabel: g,
1726
- visibleLabel: i,
1656
+ wrapper: g,
1657
+ textArea: y,
1658
+ accessibleLabel: p,
1659
+ visibleLabel: c,
1727
1660
  helperText: f,
1728
1661
  rightElement: v,
1729
- leftElement: y
1662
+ leftElement: x
1730
1663
  };
1731
- }, ta = ({
1664
+ }, aa = ({
1732
1665
  scrollHeight: e,
1733
1666
  currentHeight: r,
1734
1667
  currentLabelOffset: t = 0,
1735
1668
  currentHelperTextOffset: o = 0
1736
1669
  }) => {
1737
- let n, s;
1670
+ let n, l;
1738
1671
  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);
1672
+ const s = e - r, i = Math.abs(s / 24);
1673
+ n = t + -1 * Math.sign(s) * (12 * i), l = o + Math.sign(s) * (12 * i);
1741
1674
  }
1742
1675
  return {
1743
1676
  labelOffset: n,
1744
- helperTextOffset: s,
1677
+ helperTextOffset: l,
1745
1678
  scrollHeight: e
1746
1679
  };
1747
- }, Te = be.forwardRef(
1680
+ }, Ce = be.forwardRef(
1748
1681
  ({
1749
1682
  id: e,
1750
1683
  name: r,
1751
1684
  label: t,
1752
1685
  error: o = !1,
1753
1686
  raw: n = !1,
1754
- className: s,
1755
- textAreaClassName: l,
1756
- mode: c = "system",
1687
+ className: l,
1688
+ textAreaClassName: s,
1689
+ mode: i = "system",
1757
1690
  focusMode: u = "system",
1758
- value: d,
1759
- defaultValue: p,
1760
- disabled: k = !1,
1761
- noBorder: g = !1,
1762
- labelId: i,
1691
+ value: m,
1692
+ defaultValue: g,
1693
+ disabled: y = !1,
1694
+ noBorder: p = !1,
1695
+ labelId: c,
1763
1696
  helperText: f = "",
1764
1697
  helperTextOnFocus: v = !1,
1765
- rightElement: y,
1766
- leftElement: x,
1767
- onChange: T,
1698
+ rightElement: x,
1699
+ leftElement: k,
1700
+ onChange: C,
1768
1701
  onFocus: b,
1769
1702
  onBlur: E,
1770
1703
  ...I
1771
- }, H) => {
1772
- var B;
1773
- 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(
1704
+ }, O) => {
1705
+ var P;
1706
+ const L = _(null), de = Vr([O, L]), [N, M] = Fe(), [Z, j] = Fe(), q = _(80), Y = _(-25), z = _(null), ee = _(30), te = _(null), W = Gr({ id: e, prefix: `${tt}-` }), [Re, ot] = w(0), [Le, nt] = w(0), [st, Me] = w(
1774
1707
  !!(!v && f)
1775
- ), lt = `${r} error, ${f}`, K = ea({
1776
- className: s,
1777
- textAreaClassName: l,
1708
+ ), lt = `${r} error, ${f}`, K = ra({
1709
+ className: l,
1710
+ textAreaClassName: s,
1778
1711
  error: o,
1779
1712
  raw: n,
1780
1713
  focusMode: u,
1781
- disabled: k,
1782
- noBorder: g,
1783
- mode: c,
1784
- rightElement: !!y,
1785
- leftElement: !!x
1786
- }), [U, ct] = Hr({
1787
- value: d,
1714
+ disabled: y,
1715
+ noBorder: p,
1716
+ mode: i,
1717
+ rightElement: !!x,
1718
+ leftElement: !!k
1719
+ }), [V, it] = Fr({
1720
+ value: m,
1788
1721
  initialControlledDelay: 20,
1789
- defaultValue: p,
1790
- onChange: (L) => {
1791
- T && T({
1722
+ defaultValue: g,
1723
+ onChange: (A) => {
1724
+ C && C({
1792
1725
  target: {
1793
- value: L
1726
+ value: A
1794
1727
  }
1795
1728
  });
1796
1729
  }
1797
- }), it = (L) => {
1798
- ct(L.target.value);
1799
- }, dt = (L) => {
1800
- v && f && ze(!0), b && b(L);
1801
- }, mt = (L) => {
1802
- v && f && !U && ze(!1), E && E(L);
1730
+ }), ct = (A) => {
1731
+ it(A.target.value);
1732
+ }, dt = (A) => {
1733
+ v && f && Me(!0), b && b(A);
1734
+ }, mt = (A) => {
1735
+ v && f && !V && Me(!1), E && E(A);
1803
1736
  };
1804
1737
  return ne(() => {
1805
- z && z.width && ot(z.width + 18 + 10);
1806
- }, [z]), ne(() => {
1738
+ M && M.width && ot(M.width + 18 + 10);
1739
+ }, [M]), ne(() => {
1807
1740
  j && j.width && nt(j.width + 18 + 10);
1808
1741
  }, [j]), ne(() => {
1809
- n || R && R.current && U !== void 0 && (R.current.style.height = "inherit", R.current.style.height = R.current.scrollHeight + "px");
1810
- }, [U, n]), ne(() => {
1742
+ n || L && L.current && V !== void 0 && (L.current.style.height = "inherit", L.current.style.height = L.current.scrollHeight + "px");
1743
+ }, [V, n]), ne(() => {
1811
1744
  n || setTimeout(() => {
1812
- var L;
1813
- (L = O == null ? void 0 : O.current) == null || L.style.setProperty(
1745
+ var A;
1746
+ (A = z == null ? void 0 : z.current) == null || A.style.setProperty(
1814
1747
  "--av-text-area-wrapper-transition",
1815
- U ? "none" : "all 0.2s ease-out"
1748
+ V ? "none" : "all 0.2s ease-out"
1816
1749
  );
1817
1750
  }, 0);
1818
- }, [U, n]), ne(() => {
1819
- var L, Me;
1820
- if (!n && R && R.current && U !== void 0) {
1821
- const { labelOffset: ve, helperTextOffset: xe, scrollHeight: ut } = ta({
1822
- scrollHeight: R.current.scrollHeight,
1751
+ }, [V, n]), ne(() => {
1752
+ var A, Be;
1753
+ if (!n && L && L.current && V !== void 0) {
1754
+ const { labelOffset: ve, helperTextOffset: xe, scrollHeight: ut } = aa({
1755
+ scrollHeight: L.current.scrollHeight,
1823
1756
  currentHeight: q.current,
1824
- currentLabelOffset: W.current,
1757
+ currentLabelOffset: Y.current,
1825
1758
  currentHelperTextOffset: ee.current
1826
1759
  });
1827
- ve && (W.current = ve, (L = O == null ? void 0 : O.current) == null || L.style.setProperty(
1760
+ ve && (Y.current = ve, (A = z == null ? void 0 : z.current) == null || A.style.setProperty(
1828
1761
  "--av-text-area-label",
1829
1762
  `${ve}px`
1830
- )), xe && (ee.current = xe, (Me = te == null ? void 0 : te.current) == null || Me.style.setProperty(
1763
+ )), xe && (ee.current = xe, (Be = te == null ? void 0 : te.current) == null || Be.style.setProperty(
1831
1764
  "--av-text-area-helper-text",
1832
1765
  `${xe}px`
1833
1766
  )), q.current = ut || q.current;
1834
1767
  }
1835
- }, [U, n]), j.width > 0 && ((B = O == null ? void 0 : O.current) == null || B.style.setProperty(
1768
+ }, [V, n]), j.width > 0 && ((P = z == null ? void 0 : z.current) == null || P.style.setProperty(
1836
1769
  "--tw-translate-x",
1837
1770
  `${12 + j.width + 5}px`
1838
1771
  )), /* @__PURE__ */ h("div", { className: K.wrapper, children: [
1839
1772
  /* @__PURE__ */ a(
1840
1773
  "label",
1841
1774
  {
1842
- htmlFor: Y,
1843
- id: i,
1775
+ htmlFor: W,
1776
+ id: c,
1844
1777
  className: K.accessibleLabel,
1845
1778
  children: t
1846
1779
  }
1847
1780
  ),
1848
- x && /* @__PURE__ */ a(
1781
+ k && /* @__PURE__ */ a(
1849
1782
  "div",
1850
1783
  {
1851
1784
  ref: Z,
1852
1785
  className: K.leftElement,
1853
- children: x
1786
+ children: k
1854
1787
  }
1855
1788
  ),
1856
1789
  /* @__PURE__ */ a(
1857
1790
  "textarea",
1858
1791
  {
1859
1792
  ref: de,
1860
- id: Y,
1793
+ id: W,
1861
1794
  name: r,
1862
- disabled: k,
1795
+ disabled: y,
1863
1796
  placeholder: n ? void 0 : " ",
1864
1797
  className: K.textArea,
1865
1798
  rows: 1,
1866
- ...f && { "aria-describedby": `${Y}-helper` },
1799
+ ...f && { "aria-describedby": `${W}-helper` },
1867
1800
  ...o && { "aria-invalid": "true" },
1868
- ...y && !x && !n && { style: { paddingRight: Ae } },
1869
- ...x && !y && !n && { style: { paddingLeft: Re } },
1870
- ...y && x && !n && {
1801
+ ...x && !k && !n && { style: { paddingRight: Re } },
1802
+ ...k && !x && !n && { style: { paddingLeft: Le } },
1803
+ ...x && k && !n && {
1871
1804
  style: {
1872
- paddingRight: Ae,
1873
- paddingLeft: Re
1805
+ paddingRight: Re,
1806
+ paddingLeft: Le
1874
1807
  }
1875
1808
  },
1876
- value: U,
1877
- onChange: it,
1809
+ value: V,
1810
+ onChange: ct,
1878
1811
  onFocus: dt,
1879
1812
  onBlur: mt,
1880
1813
  ...I
@@ -1883,9 +1816,9 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1883
1816
  !n && /* @__PURE__ */ a(
1884
1817
  "label",
1885
1818
  {
1886
- ref: O,
1819
+ ref: z,
1887
1820
  "aria-hidden": !0,
1888
- htmlFor: Y,
1821
+ htmlFor: W,
1889
1822
  className: `${K.visibleLabel}`,
1890
1823
  children: t
1891
1824
  }
@@ -1894,40 +1827,40 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1894
1827
  "div",
1895
1828
  {
1896
1829
  ref: te,
1897
- id: `${Y}-helper`,
1830
+ id: `${W}-helper`,
1898
1831
  className: K.helperText,
1899
1832
  children: f
1900
1833
  }
1901
1834
  ),
1902
- y && /* @__PURE__ */ a(
1835
+ x && /* @__PURE__ */ a(
1903
1836
  "div",
1904
1837
  {
1905
1838
  ref: N,
1906
1839
  className: K.rightElement,
1907
- children: y
1840
+ children: x
1908
1841
  }
1909
1842
  ),
1910
- o && f && /* @__PURE__ */ a(Yr, { politeness: "polite", clearAnnouncementDelay: 500, children: lt })
1843
+ o && f && /* @__PURE__ */ a(Xr, { politeness: "polite", clearAnnouncementDelay: 500, children: lt })
1911
1844
  ] });
1912
1845
  }
1913
1846
  );
1914
- Te.displayName = "TextArea";
1847
+ Ce.displayName = "TextArea";
1915
1848
  /*!
1916
- @versini/ui-toggle v3.0.4
1849
+ @versini/ui-toggle v3.0.8
1917
1850
  © 2025 gizmette.com
1918
1851
  */
1919
1852
  try {
1920
1853
  window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
1921
- version: "3.0.4",
1922
- buildTime: "01/14/2025 10:39 AM EST",
1854
+ version: "3.0.8",
1855
+ buildTime: "01/20/2025 01:49 PM EST",
1923
1856
  homepage: "https://github.com/aversini/ui-components",
1924
1857
  license: "MIT"
1925
1858
  });
1926
1859
  } catch {
1927
1860
  }
1928
- const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa = ({
1861
+ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa = ({
1929
1862
  focusMode: e
1930
- }) => m(
1863
+ }) => d(
1931
1864
  "peer-focus:outline",
1932
1865
  "peer-focus:outline-2",
1933
1866
  "peer-focus:outline-offset-2",
@@ -1937,14 +1870,14 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
1937
1870
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
1938
1871
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
1939
1872
  }
1940
- ), na = () => m(
1873
+ ), la = () => d(
1941
1874
  "peer-checked:after:translate-x-full",
1942
1875
  // background color when checked
1943
1876
  "peer-checked:bg-violet-500",
1944
1877
  // knob circle and border color when checked
1945
1878
  "peer-checked:after:bg-white",
1946
1879
  "peer-checked:after:border-white"
1947
- ), sa = () => m(
1880
+ ), ia = () => d(
1948
1881
  "after:left-[2px]",
1949
1882
  "after:top-[2px]",
1950
1883
  "after:border",
@@ -1956,119 +1889,119 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
1956
1889
  "after:rounded-full",
1957
1890
  "after:transition-all",
1958
1891
  "after:content-['']"
1959
- ), la = ({
1892
+ ), ca = ({
1960
1893
  mode: e,
1961
1894
  noBorder: r
1962
- }) => m({
1895
+ }) => d({
1963
1896
  border: !r,
1964
1897
  "border-border-dark bg-surface-medium": e === "light",
1965
1898
  "border-border-light bg-surface-darker": e === "dark",
1966
1899
  "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
1967
1900
  "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
1968
- }), ca = ({
1901
+ }), da = ({
1969
1902
  mode: e,
1970
1903
  labelHidden: r
1971
- }) => r ? "sr-only" : m("ml-2 text-sm", {
1904
+ }) => r ? "sr-only" : d("ml-2 text-sm", {
1972
1905
  "text-copy-dark": e === "light",
1973
1906
  "text-copy-lighter": e === "dark",
1974
1907
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
1975
1908
  "text-copy-dark dark:text-copy-lighter": e === "system"
1976
- }), ia = ({ className: e }) => m(
1977
- ra,
1909
+ }), ma = ({ className: e }) => d(
1910
+ oa,
1978
1911
  "relative flex cursor-pointer items-center",
1979
1912
  e
1980
- ), da = ({
1913
+ ), ua = ({
1981
1914
  mode: e,
1982
1915
  focusMode: r,
1983
1916
  labelHidden: t,
1984
1917
  className: o,
1985
1918
  noBorder: n
1986
1919
  }) => ({
1987
- toggle: m(
1988
- aa(),
1989
- la({ mode: e, noBorder: n }),
1990
- oa({ focusMode: r }),
1991
- sa(),
1992
- na()
1920
+ toggle: d(
1921
+ na(),
1922
+ ca({ mode: e, noBorder: n }),
1923
+ sa({ focusMode: r }),
1924
+ ia(),
1925
+ la()
1993
1926
  ),
1994
- label: ca({ mode: e, labelHidden: t }),
1927
+ label: da({ mode: e, labelHidden: t }),
1995
1928
  input: "peer sr-only",
1996
- wrapper: ia({ className: o })
1929
+ wrapper: ma({ className: o })
1997
1930
  }), ue = ({
1998
1931
  checked: e = !1,
1999
1932
  onChange: r,
2000
1933
  label: t,
2001
1934
  labelHidden: o = !1,
2002
1935
  name: n,
2003
- mode: s = "system",
2004
- focusMode: l = "system",
2005
- className: c,
1936
+ mode: l = "system",
1937
+ focusMode: s = "system",
1938
+ className: i,
2006
1939
  noBorder: u = !1
2007
1940
  }) => {
2008
- const d = da({
2009
- mode: s,
2010
- focusMode: l,
1941
+ const m = ua({
1942
+ mode: l,
1943
+ focusMode: s,
2011
1944
  labelHidden: o,
2012
- className: c,
1945
+ className: i,
2013
1946
  noBorder: u
2014
- }), p = (k) => {
2015
- r == null || r(k.target.checked);
1947
+ }), g = (y) => {
1948
+ r == null || r(y.target.checked);
2016
1949
  };
2017
- return /* @__PURE__ */ h("label", { className: d.wrapper, children: [
1950
+ return /* @__PURE__ */ h("label", { className: m.wrapper, children: [
2018
1951
  /* @__PURE__ */ a(
2019
1952
  "input",
2020
1953
  {
2021
1954
  name: n,
2022
1955
  checked: e,
2023
1956
  type: "checkbox",
2024
- className: d.input,
2025
- onChange: p
1957
+ className: m.input,
1958
+ onChange: g
2026
1959
  }
2027
1960
  ),
2028
- /* @__PURE__ */ a("div", { className: d.toggle }),
2029
- /* @__PURE__ */ a("span", { className: d.label, children: t })
1961
+ /* @__PURE__ */ a("div", { className: m.toggle }),
1962
+ /* @__PURE__ */ a("span", { className: m.label, children: t })
2030
1963
  ] });
2031
- }, ma = ({
1964
+ }, ha = ({
2032
1965
  open: e,
2033
1966
  onOpenChange: r
2034
1967
  }) => {
2035
1968
  const { getAccessToken: t, user: o } = G(), {
2036
1969
  data: n,
2037
- error: s,
2038
- isLoading: l,
2039
- mutate: c
2040
- } = Ye({
1970
+ error: l,
1971
+ isLoading: s,
1972
+ mutate: i
1973
+ } = We({
2041
1974
  keys: [o == null ? void 0 : o.username],
2042
1975
  getAccessToken: t
2043
- }), [u, d] = w({
1976
+ }), [u, m] = w({
2044
1977
  prompts: []
2045
- }), p = ({
2046
- slot: i,
1978
+ }), g = ({
1979
+ slot: c,
2047
1980
  checked: f,
2048
1981
  label: v,
2049
- content: y
1982
+ content: x
2050
1983
  }) => {
2051
- d((x) => {
2052
- const T = x.prompts, b = {
2053
- slot: i,
1984
+ m((k) => {
1985
+ const C = k.prompts, b = {
1986
+ slot: c,
2054
1987
  label: v,
2055
- content: y,
1988
+ content: x,
2056
1989
  enabled: f
2057
- }, E = T.findIndex((I) => I.slot === i);
1990
+ }, E = C.findIndex((I) => I.slot === c);
2058
1991
  return E === -1 ? {
2059
- ...x,
2060
- prompts: [...T, { ...b, slot: i }]
2061
- } : (T[E] = b, {
2062
- ...x,
2063
- prompts: [...T]
1992
+ ...k,
1993
+ prompts: [...C, { ...b, slot: c }]
1994
+ } : (C[E] = b, {
1995
+ ...k,
1996
+ prompts: [...C]
2064
1997
  });
2065
1998
  });
2066
- }, k = async (i) => {
2067
- i.preventDefault();
1999
+ }, y = async (c) => {
2000
+ c.preventDefault();
2068
2001
  try {
2069
- await ce({
2002
+ await ie({
2070
2003
  accessToken: await t(),
2071
- type: ie.SET_USER_PREFERENCES,
2004
+ type: ce.SET_USER_PREFERENCES,
2072
2005
  params: {
2073
2006
  user: o == null ? void 0 : o.username,
2074
2007
  tags: u.prompts
@@ -2076,16 +2009,16 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2076
2009
  });
2077
2010
  } catch {
2078
2011
  }
2079
- }, g = () => {
2080
- c({ ...n }), r(!1);
2012
+ }, p = () => {
2013
+ i({ ...n }), r(!1);
2081
2014
  };
2082
- return V(() => {
2083
- n != null && n.tags && d({ prompts: n.tags });
2084
- }, [n]), s || l ? null : /* @__PURE__ */ h(
2015
+ return D(() => {
2016
+ n != null && n.tags && m({ prompts: n.tags });
2017
+ }, [n]), l || s ? null : /* @__PURE__ */ h(
2085
2018
  J,
2086
2019
  {
2087
2020
  open: e,
2088
- onOpenChange: g,
2021
+ onOpenChange: p,
2089
2022
  title: "Prompts",
2090
2023
  footer: /* @__PURE__ */ h(
2091
2024
  X,
@@ -2094,24 +2027,24 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2094
2027
  alignHorizontal: "flex-end",
2095
2028
  className: "pb-8 sm:pb-0",
2096
2029
  children: [
2097
- /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(
2098
- F,
2030
+ /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
2031
+ U,
2099
2032
  {
2100
2033
  mode: "dark",
2101
2034
  variant: "secondary",
2102
2035
  focusMode: "light",
2103
- onClick: g,
2036
+ onClick: p,
2104
2037
  children: "Cancel"
2105
2038
  }
2106
2039
  ) }),
2107
- /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(
2108
- F,
2040
+ /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
2041
+ U,
2109
2042
  {
2110
2043
  mode: "dark",
2111
2044
  variant: "danger",
2112
2045
  focusMode: "light",
2113
- onClick: async (i) => {
2114
- r(!1), await k(i);
2046
+ onClick: async (c) => {
2047
+ r(!1), await y(c);
2115
2048
  },
2116
2049
  children: "Save"
2117
2050
  }
@@ -2121,40 +2054,40 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2121
2054
  ),
2122
2055
  children: [
2123
2056
  /* @__PURE__ */ a("p", { children: Et }),
2124
- u.prompts && u.prompts.map((i) => /* @__PURE__ */ h(
2125
- $,
2057
+ u.prompts && u.prompts.map((c) => /* @__PURE__ */ h(
2058
+ H,
2126
2059
  {
2127
- header: `Prompt ${i.slot + 1}`,
2060
+ header: `Prompt ${c.slot + 1}`,
2128
2061
  className: "prose-dark dark:prose-lighter mb-2",
2129
2062
  children: [
2130
2063
  /* @__PURE__ */ h(X, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
2131
- /* @__PURE__ */ a(A, { span: 12, children: /* @__PURE__ */ a(
2064
+ /* @__PURE__ */ a(R, { span: 12, children: /* @__PURE__ */ a(
2132
2065
  Ee,
2133
2066
  {
2134
2067
  label: "Label",
2135
- name: `prompt${i.slot}-label`,
2136
- value: i.label,
2068
+ name: `prompt${c.slot}-label`,
2069
+ value: c.label,
2137
2070
  onChange: (f) => {
2138
- p({
2139
- slot: i.slot,
2140
- checked: i.enabled,
2071
+ g({
2072
+ slot: c.slot,
2073
+ checked: c.enabled,
2141
2074
  label: f.target.value,
2142
- content: i.content
2075
+ content: c.content
2143
2076
  });
2144
2077
  }
2145
2078
  }
2146
2079
  ) }),
2147
- /* @__PURE__ */ a(A, { span: 12, children: /* @__PURE__ */ a(
2080
+ /* @__PURE__ */ a(R, { span: 12, children: /* @__PURE__ */ a(
2148
2081
  Ee,
2149
2082
  {
2150
2083
  label: "Content",
2151
- name: `prompt${i.slot}-content`,
2152
- value: i.content,
2084
+ name: `prompt${c.slot}-content`,
2085
+ value: c.content,
2153
2086
  onChange: (f) => {
2154
- p({
2155
- slot: i.slot,
2156
- checked: i.enabled,
2157
- label: i.label,
2087
+ g({
2088
+ slot: c.slot,
2089
+ checked: c.enabled,
2090
+ label: c.label,
2158
2091
  content: f.target.value
2159
2092
  });
2160
2093
  }
@@ -2167,95 +2100,95 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2167
2100
  className: "mt-2",
2168
2101
  noBorder: !0,
2169
2102
  label: "Enabled",
2170
- name: i.slot.toString(),
2103
+ name: c.slot.toString(),
2171
2104
  onChange: (f) => {
2172
- p({
2173
- slot: i.slot,
2105
+ g({
2106
+ slot: c.slot,
2174
2107
  checked: f,
2175
- label: i.label,
2176
- content: i.content
2108
+ label: c.label,
2109
+ content: c.content
2177
2110
  });
2178
2111
  },
2179
- checked: i.enabled
2112
+ checked: c.enabled
2180
2113
  }
2181
2114
  )
2182
2115
  ]
2183
2116
  },
2184
- `prompt-slot-${i.slot}`
2117
+ `prompt-slot-${c.slot}`
2185
2118
  ))
2186
2119
  ]
2187
2120
  }
2188
2121
  );
2189
- }, ua = ({
2122
+ }, ga = ({
2190
2123
  open: e,
2191
2124
  onOpenChange: r
2192
2125
  }) => {
2193
2126
  const { getAccessToken: t, user: o } = G(), {
2194
2127
  data: n,
2195
- error: s,
2196
- isLoading: l,
2197
- mutate: c
2198
- } = Ye({
2128
+ error: l,
2129
+ isLoading: s,
2130
+ mutate: i
2131
+ } = We({
2199
2132
  keys: [o == null ? void 0 : o.username],
2200
2133
  getAccessToken: t
2201
- }), [u, d] = w(!1), [p, k] = w({
2134
+ }), [u, m] = w(!1), [g, y] = w({
2202
2135
  loadingLocation: !1
2203
- }), [g, i] = w(""), [f, v] = w(""), [y, x] = w(Ct), [T, b] = Ie({
2204
- key: _e + Tt,
2136
+ }), [p, c] = w(""), [f, v] = w(""), [x, k] = w(Tt), [C, b] = Ie({
2137
+ key: _e + Ct,
2205
2138
  initialValue: !1
2206
2139
  }), E = (N) => {
2207
2140
  b(N);
2208
2141
  }, I = async (N) => {
2209
2142
  N.preventDefault();
2210
2143
  try {
2211
- await ce({
2144
+ await ie({
2212
2145
  accessToken: await t(),
2213
- type: ie.SET_USER_PREFERENCES,
2146
+ type: ce.SET_USER_PREFERENCES,
2214
2147
  params: {
2215
2148
  user: o == null ? void 0 : o.username,
2216
- instructions: g,
2149
+ instructions: p,
2217
2150
  location: f,
2218
- engine: y
2151
+ engine: x
2219
2152
  }
2220
- }), c(), k({
2153
+ }), i(), y({
2221
2154
  loadingLocation: !1
2222
2155
  });
2223
2156
  } catch {
2224
2157
  }
2225
- }, H = async () => {
2226
- k({
2158
+ }, O = async () => {
2159
+ y({
2227
2160
  loadingLocation: !0
2228
2161
  }), v("...");
2229
2162
  try {
2230
- const N = Date.now(), z = await St(), Z = await ce({
2163
+ const N = Date.now(), M = await St(), Z = await ie({
2231
2164
  accessToken: await t(),
2232
- type: ie.GET_LOCATION,
2165
+ type: ce.GET_LOCATION,
2233
2166
  params: {
2234
- latitude: z.latitude,
2235
- longitude: z.longitude
2167
+ latitude: M.latitude,
2168
+ longitude: M.longitude
2236
2169
  }
2237
2170
  }), q = Date.now() - N;
2238
- if (q < 2e3 && await new Promise((W) => setTimeout(W, 2e3 - q)), Z.status === 200) {
2239
- const { city: W, state: O, country: ee, displayName: te } = Z.data, Y = W && O && ee ? `${W}, ${O}, ${ee}` : te;
2240
- k({
2171
+ if (q < 2e3 && await new Promise((Y) => setTimeout(Y, 2e3 - q)), Z.status === 200) {
2172
+ const { city: Y, state: z, country: ee, displayName: te } = Z.data, W = Y && z && ee ? `${Y}, ${z}, ${ee}` : te;
2173
+ y({
2241
2174
  loadingLocation: !1
2242
- }), v(Y);
2175
+ }), v(W);
2243
2176
  } else
2244
- k({
2177
+ y({
2245
2178
  loadingLocation: !1
2246
2179
  });
2247
2180
  } catch {
2248
2181
  }
2249
- }, B = (N, z) => {
2250
- x(N ? z : z === Q ? re : Q);
2251
- }, R = () => {
2252
- d(!u);
2182
+ }, P = (N, M) => {
2183
+ k(N ? M : M === Q ? re : Q);
2184
+ }, L = () => {
2185
+ m(!u);
2253
2186
  }, de = () => {
2254
- c({ ...n }), r(!1);
2187
+ i({ ...n }), r(!1);
2255
2188
  };
2256
- 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(
2189
+ return D(() => {
2190
+ n != null && n.instructions && c(n.instructions), n != null && n.location && v(n.location), n != null && n.engine && k(n.engine);
2191
+ }, [n]), l || s ? null : /* @__PURE__ */ a(
2259
2192
  J,
2260
2193
  {
2261
2194
  open: e,
@@ -2268,8 +2201,8 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2268
2201
  alignHorizontal: "flex-end",
2269
2202
  className: "pb-8 sm:pb-0",
2270
2203
  children: [
2271
- /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(
2272
- F,
2204
+ /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
2205
+ U,
2273
2206
  {
2274
2207
  mode: "dark",
2275
2208
  variant: "secondary",
@@ -2278,8 +2211,8 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2278
2211
  children: "Cancel"
2279
2212
  }
2280
2213
  ) }),
2281
- /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(
2282
- F,
2214
+ /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
2215
+ U,
2283
2216
  {
2284
2217
  mode: "dark",
2285
2218
  variant: "danger",
@@ -2293,12 +2226,12 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2293
2226
  ]
2294
2227
  }
2295
2228
  ),
2296
- children: /* @__PURE__ */ h(M, { children: [
2297
- u && /* @__PURE__ */ a(ma, { open: u, onOpenChange: d }),
2229
+ children: /* @__PURE__ */ h(B, { children: [
2230
+ u && /* @__PURE__ */ a(ha, { open: u, onOpenChange: m }),
2298
2231
  /* @__PURE__ */ h(
2299
- $,
2232
+ H,
2300
2233
  {
2301
- header: C.SETTINGS_ENGINE.TITLE,
2234
+ header: T.SETTINGS_ENGINE.TITLE,
2302
2235
  className: "prose-dark dark:prose-lighter",
2303
2236
  children: [
2304
2237
  /* @__PURE__ */ a("p", { className: "text-sm", children: "Select the AI engine that will be used to generate responses." }),
@@ -2308,8 +2241,8 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2308
2241
  noBorder: !0,
2309
2242
  label: Q,
2310
2243
  name: Q,
2311
- onChange: (N) => B(N, Q),
2312
- checked: y === Q
2244
+ onChange: (N) => P(N, Q),
2245
+ checked: x === Q
2313
2246
  }
2314
2247
  ),
2315
2248
  /* @__PURE__ */ a(
@@ -2319,8 +2252,8 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2319
2252
  noBorder: !0,
2320
2253
  label: re,
2321
2254
  name: re,
2322
- onChange: (N) => B(N, re),
2323
- checked: y === re
2255
+ onChange: (N) => P(N, re),
2256
+ checked: x === re
2324
2257
  }
2325
2258
  ),
2326
2259
  /* @__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 +2265,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2332
2265
  label: "Show Message Statistics",
2333
2266
  name: "show-message-statistics",
2334
2267
  onChange: E,
2335
- checked: T
2268
+ checked: C
2336
2269
  }
2337
2270
  ),
2338
2271
  /* @__PURE__ */ a("h3", { className: "border-b-2 border-slate-400", children: "Prompts" }),
@@ -2341,16 +2274,16 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2341
2274
  {
2342
2275
  className: "mt-2",
2343
2276
  size: "small",
2344
- onClick: R,
2277
+ onClick: L,
2345
2278
  labelLeft: "Edit Custom Prompts",
2346
- children: /* @__PURE__ */ a(tr, { size: "size-3", monotone: !0 })
2279
+ children: /* @__PURE__ */ a(Dt, { size: "size-3", monotone: !0 })
2347
2280
  }
2348
2281
  )
2349
2282
  ]
2350
2283
  }
2351
2284
  ),
2352
2285
  /* @__PURE__ */ h(
2353
- $,
2286
+ H,
2354
2287
  {
2355
2288
  header: "Custom Instructions",
2356
2289
  className: "prose-dark dark:prose-lighter mt-4",
@@ -2361,7 +2294,7 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2361
2294
  " to know about you to provide better responses?"
2362
2295
  ] }),
2363
2296
  /* @__PURE__ */ a(
2364
- Te,
2297
+ Ce,
2365
2298
  {
2366
2299
  mode: "alt-system",
2367
2300
  autoCapitalize: "off",
@@ -2369,9 +2302,9 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2369
2302
  autoCorrect: "off",
2370
2303
  name: "customInstructions",
2371
2304
  label: "Custom Instructions",
2372
- value: g,
2305
+ value: p,
2373
2306
  onChange: (N) => {
2374
- i(N.target.value);
2307
+ c(N.target.value);
2375
2308
  },
2376
2309
  helperText: "Press ENTER to add a new line."
2377
2310
  }
@@ -2380,14 +2313,14 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2380
2313
  }
2381
2314
  ),
2382
2315
  /* @__PURE__ */ h(
2383
- $,
2316
+ H,
2384
2317
  {
2385
2318
  header: "Location",
2386
2319
  className: "prose-dark dark:prose-lighter mt-4",
2387
2320
  children: [
2388
2321
  /* @__PURE__ */ a("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
2389
2322
  /* @__PURE__ */ a(
2390
- Te,
2323
+ Ce,
2391
2324
  {
2392
2325
  mode: "alt-system",
2393
2326
  name: "location",
@@ -2400,14 +2333,14 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2400
2333
  }
2401
2334
  ),
2402
2335
  /* @__PURE__ */ a(
2403
- F,
2336
+ U,
2404
2337
  {
2405
2338
  className: "mt-2",
2406
2339
  size: "small",
2407
2340
  noBorder: !0,
2408
- disabled: p.loadingLocation,
2409
- onClick: H,
2410
- children: p.loadingLocation ? "Detecting..." : "Auto-detect"
2341
+ disabled: g.loadingLocation,
2342
+ onClick: O,
2343
+ children: g.loadingLocation ? "Detecting..." : "Auto-detect"
2411
2344
  }
2412
2345
  )
2413
2346
  ]
@@ -2416,93 +2349,101 @@ const ra = "av-toggle", aa = () => m("peer", "h-6", "w-11", "rounded-full"), oa
2416
2349
  ] })
2417
2350
  }
2418
2351
  );
2419
- }, 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 = () => {
2352
+ }, xa = () => {
2353
+ const { logout: e } = G(), { state: r } = fe(Ye), [t, o] = w(!1), [n, l] = w(!1), [s, i] = w(!1), [u, m] = w(!1), [g, y] = w(!1), p = () => {
2421
2354
  o(!t);
2422
- }, i = () => {
2423
- s(!n);
2355
+ }, c = () => {
2356
+ l(!n);
2424
2357
  }, f = () => {
2425
- c(!l);
2358
+ i(!s);
2426
2359
  }, v = () => {
2427
- d(!u);
2428
- }, y = () => {
2429
- k(!p);
2360
+ m(!u);
2361
+ }, x = () => {
2362
+ y(!g);
2430
2363
  };
2431
- return /* @__PURE__ */ h(M, { children: [
2364
+ return /* @__PURE__ */ h(B, { children: [
2432
2365
  /* @__PURE__ */ a(
2433
2366
  et,
2434
2367
  {
2435
- showConfirmation: p,
2436
- setShowConfirmation: k,
2368
+ showConfirmation: g,
2369
+ setShowConfirmation: y,
2437
2370
  action: e,
2438
2371
  customStrings: {
2439
- confirmAction: De,
2372
+ confirmAction: He,
2440
2373
  cancelAction: "Cancel",
2441
- title: De
2374
+ title: He
2442
2375
  },
2443
2376
  children: /* @__PURE__ */ a("p", { children: "Are you sure you want to log out?" })
2444
2377
  }
2445
2378
  ),
2446
- /* @__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 }),
2450
- /* @__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(
2379
+ /* @__PURE__ */ a(Pr, { open: t, onOpenChange: o }),
2380
+ /* @__PURE__ */ a(ga, { open: n, onOpenChange: l }),
2381
+ s && /* @__PURE__ */ a(Br, { open: s, onOpenChange: i }),
2382
+ /* @__PURE__ */ a(Rr, { open: u, onOpenChange: m }),
2383
+ /* @__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(R, { children: /* @__PURE__ */ a(X, { children: /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
2451
2384
  Vt,
2452
2385
  {
2453
- mode: "dark",
2454
- focusMode: "light",
2455
- trigger: /* @__PURE__ */ a(le, { label: "Settings", children: /* @__PURE__ */ a(sr, {}) }),
2456
- defaultPlacement: "bottom-end",
2457
- children: [
2458
- /* @__PURE__ */ a(
2459
- oe,
2460
- {
2461
- label: "Profile",
2462
- onClick: g,
2463
- icon: /* @__PURE__ */ a(or, {})
2464
- }
2465
- ),
2466
- /* @__PURE__ */ a(
2467
- oe,
2468
- {
2469
- label: "Settings",
2470
- onClick: i,
2471
- icon: /* @__PURE__ */ a(lr, {})
2472
- }
2473
- ),
2474
- /* @__PURE__ */ a(
2475
- oe,
2476
- {
2477
- label: "History",
2478
- onClick: f,
2479
- icon: /* @__PURE__ */ a(rr, {})
2480
- }
2481
- ),
2482
- /* @__PURE__ */ a(
2483
- oe,
2484
- {
2485
- label: "About",
2486
- onClick: v,
2487
- icon: /* @__PURE__ */ a(ar, {})
2488
- }
2489
- ),
2490
- r && r.id && !r.isComponent && /* @__PURE__ */ h(M, { children: [
2491
- /* @__PURE__ */ a(Ht, {}),
2492
- /* @__PURE__ */ a(
2493
- oe,
2494
- {
2495
- label: "Log out",
2496
- onClick: y,
2497
- icon: /* @__PURE__ */ a("div", { className: "text-red-700", children: /* @__PURE__ */ a(Zt, { monotone: !0 }) })
2498
- }
2499
- )
2500
- ] })
2501
- ]
2386
+ label: "Profile, Settings, etc.",
2387
+ mode: "light",
2388
+ placement: "left",
2389
+ trigger: /* @__PURE__ */ h(
2390
+ Ut,
2391
+ {
2392
+ mode: "dark",
2393
+ focusMode: "light",
2394
+ trigger: /* @__PURE__ */ a(le, { label: "Settings", children: /* @__PURE__ */ a(lr, {}) }),
2395
+ defaultPlacement: "bottom-end",
2396
+ children: [
2397
+ /* @__PURE__ */ a(
2398
+ oe,
2399
+ {
2400
+ label: "Profile",
2401
+ onClick: p,
2402
+ icon: /* @__PURE__ */ a(nr, {})
2403
+ }
2404
+ ),
2405
+ /* @__PURE__ */ a(
2406
+ oe,
2407
+ {
2408
+ label: "Settings",
2409
+ onClick: c,
2410
+ icon: /* @__PURE__ */ a(ir, {})
2411
+ }
2412
+ ),
2413
+ /* @__PURE__ */ a(
2414
+ oe,
2415
+ {
2416
+ label: "History",
2417
+ onClick: f,
2418
+ icon: /* @__PURE__ */ a(ar, {})
2419
+ }
2420
+ ),
2421
+ /* @__PURE__ */ a(
2422
+ oe,
2423
+ {
2424
+ label: "About",
2425
+ onClick: v,
2426
+ icon: /* @__PURE__ */ a(or, {})
2427
+ }
2428
+ ),
2429
+ r && r.id && !r.isComponent && /* @__PURE__ */ h(B, { children: [
2430
+ /* @__PURE__ */ a(Ft, {}),
2431
+ /* @__PURE__ */ a(
2432
+ oe,
2433
+ {
2434
+ label: "Log out",
2435
+ onClick: x,
2436
+ icon: /* @__PURE__ */ a("div", { className: "text-red-700", children: /* @__PURE__ */ a(tr, { monotone: !0 }) })
2437
+ }
2438
+ )
2439
+ ] })
2440
+ ]
2441
+ }
2442
+ )
2502
2443
  }
2503
2444
  ) }) }) }) }) })
2504
2445
  ] });
2505
2446
  };
2506
2447
  export {
2507
- ka as default
2448
+ xa as default
2508
2449
  };