@versini/sassysaint 7.2.0 → 7.2.2

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,250 +1,249 @@
1
- import { jsxs as i, jsx as e, Fragment as B } from "react/jsx-runtime";
2
- import { f as $, un as V, R as P, CARDS as x, renderDataAsList as ne, pluralize as oe, ABOUT_TITLE as Xe, INFINITE_SCROLL_LIMIT as Ne, INFINITE_SCROLL_THRESHOLD as Se, LOCAL_STORAGE_PREFIX as ge, LOCAL_STORAGE_SORT as qe, re as J, ACTION_SORT as we, LOCAL_STORAGE_SEARCH as Qe, HISTORY_TITLE as Ze, fe as he, C as K, ACTION_SEARCH as Je, debounce as et, M as tt, isElectron as rt, L as W, j as M, l as ve, durationFormatter as at, PROFILE_TITLE as nt, PROMPTS_DESCRIPTION as ot, LOCAL_STORAGE_CHAT_DETAILS as st, SETTINGS_TITLE as lt, APP_NAME as ct, getCurrentGeoLocation as it, LOG_OUT as Ae } from "./index.B3-UOQNr.js";
3
- import { i as se, useServerCapabilities as dt, Ze as re, HistoryContext as Le, ChatContext as Re, E as ye, ConfirmationPanel as Pe, Ue as ut, je as mt, Fe as ue, Le as R, De as ht, $e as ft, p as pt, z as gt, We as yt, serviceCall as ee, SERVICE_TYPES as te, setNewProvider as bt, CHAT_RESTORE as xt, B as q, useChatsHistory as kt, useUserChatStats as Ct, useUserPreferences as Me, m as Tt, _e as Et, me as Nt, R as Q, P as St } from "./App.DzDRKvsP.js";
4
- import wt, { useRef as v, useState as C, useContext as le, useCallback as Oe, useEffect as F, Fragment as vt, useLayoutEffect as Z, useMemo as ze, useId as At, useReducer as It } from "react";
1
+ import { jsxs as d, jsx as t, Fragment as D } from "react/jsx-runtime";
2
+ import { f as $, un as V, R as P, CARDS as k, renderDataAsList as ne, pluralize as pe, ABOUT_TITLE as Xe, INFINITE_SCROLL_LIMIT as Se, INFINITE_SCROLL_THRESHOLD as Ne, LOCAL_STORAGE_PREFIX as ge, LOCAL_STORAGE_SORT as qe, re as J, ACTION_SORT as we, LOCAL_STORAGE_SEARCH as Qe, HISTORY_TITLE as Ze, fe as me, C as K, ACTION_SEARCH as Je, debounce as et, M as tt, isElectron as rt, L as W, j as M, l as ve, durationFormatter as at, PROFILE_TITLE as nt, PROMPTS_DESCRIPTION as ot, LOCAL_STORAGE_CHAT_DETAILS as st, SETTINGS_TITLE as lt, APP_NAME as ct, getCurrentGeoLocation as it, LOG_OUT as Ae } from "./index.CLI5DiPT.js";
3
+ import { i as oe, useServerCapabilities as dt, Ze as re, HistoryContext as Re, ChatContext as Le, E as ye, ConfirmationPanel as Pe, Ue as ut, je as mt, Fe as de, Le as L, De as ht, $e as ft, p as pt, z as gt, We as yt, serviceCall as ee, SERVICE_TYPES as te, setNewProvider as bt, CHAT_RESTORE as xt, B as q, useChatsHistory as kt, useUserChatStats as Ct, useUserPreferences as Me, m as Tt, _e as Et, me as St, R as Q, P as Nt } from "./App.WHYUIJUD.js";
4
+ import wt, { useRef as v, useState as C, useContext as se, useCallback as Oe, useEffect as F, Fragment as vt, useLayoutEffect as Z, useMemo as ze, useId as At, useReducer as It } from "react";
5
5
  import g from "clsx";
6
6
  const _t = ({
7
- className: t,
7
+ className: e,
8
8
  viewBox: o,
9
9
  title: n,
10
10
  monotone: a,
11
11
  ...r
12
- }) => /* @__PURE__ */ i(
12
+ }) => /* @__PURE__ */ d(
13
13
  $,
14
14
  {
15
15
  defaultViewBox: "0 0 512 512",
16
16
  size: "size-5",
17
17
  viewBox: o,
18
- className: t,
18
+ className: e,
19
19
  title: n || "Back",
20
20
  ...r,
21
21
  children: [
22
- /* @__PURE__ */ e(
22
+ /* @__PURE__ */ t(
23
23
  "path",
24
24
  {
25
25
  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",
26
26
  opacity: a ? "1" : "0.4"
27
27
  }
28
28
  ),
29
- /* @__PURE__ */ e("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" })
29
+ /* @__PURE__ */ t("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" })
30
30
  ]
31
31
  }
32
- ), Lt = ({
33
- className: t,
32
+ ), Rt = ({
33
+ className: e,
34
34
  viewBox: o,
35
35
  title: n,
36
36
  monotone: a,
37
37
  ...r
38
- }) => /* @__PURE__ */ i(
38
+ }) => /* @__PURE__ */ d(
39
39
  $,
40
40
  {
41
41
  defaultViewBox: "0 0 448 512",
42
42
  size: "size-5",
43
43
  viewBox: o,
44
- className: t,
44
+ className: e,
45
45
  title: n || "Delete",
46
46
  ...r,
47
47
  children: [
48
- /* @__PURE__ */ e(
48
+ /* @__PURE__ */ t(
49
49
  "path",
50
50
  {
51
51
  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",
52
52
  opacity: a ? "1" : "0.4"
53
53
  }
54
54
  ),
55
- /* @__PURE__ */ e("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" })
55
+ /* @__PURE__ */ t("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" })
56
56
  ]
57
57
  }
58
- ), Rt = ({
59
- className: t,
58
+ ), Lt = ({
59
+ className: e,
60
60
  viewBox: o,
61
61
  title: n,
62
62
  monotone: a,
63
63
  ...r
64
- }) => /* @__PURE__ */ i(
64
+ }) => /* @__PURE__ */ d(
65
65
  $,
66
66
  {
67
67
  defaultViewBox: "0 0 512 512",
68
68
  size: "size-5",
69
69
  viewBox: o,
70
- className: t,
70
+ className: e,
71
71
  title: n || "History",
72
72
  ...r,
73
73
  children: [
74
- /* @__PURE__ */ e(
74
+ /* @__PURE__ */ t(
75
75
  "path",
76
76
  {
77
77
  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",
78
78
  opacity: a ? "1" : "0.4"
79
79
  }
80
80
  ),
81
- /* @__PURE__ */ e("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" })
81
+ /* @__PURE__ */ t("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" })
82
82
  ]
83
83
  }
84
84
  ), Pt = ({
85
- className: t,
85
+ className: e,
86
86
  viewBox: o,
87
87
  title: n,
88
88
  monotone: a,
89
89
  ...r
90
- }) => /* @__PURE__ */ i(
90
+ }) => /* @__PURE__ */ d(
91
91
  $,
92
92
  {
93
93
  defaultViewBox: "0 0 512 512",
94
94
  size: "size-5",
95
95
  viewBox: o,
96
- className: t,
96
+ className: e,
97
97
  title: n || "Info",
98
98
  ...r,
99
99
  children: [
100
- /* @__PURE__ */ e(
100
+ /* @__PURE__ */ t(
101
101
  "path",
102
102
  {
103
103
  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",
104
104
  opacity: ".4"
105
105
  }
106
106
  ),
107
- /* @__PURE__ */ e("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" })
107
+ /* @__PURE__ */ t("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" })
108
108
  ]
109
109
  }
110
110
  ), Mt = ({
111
- className: t,
111
+ className: e,
112
112
  viewBox: o,
113
113
  title: n,
114
114
  monotone: a,
115
115
  ...r
116
- }) => /* @__PURE__ */ i(
116
+ }) => /* @__PURE__ */ d(
117
117
  $,
118
118
  {
119
119
  defaultViewBox: "0 0 576 512",
120
120
  size: "size-5",
121
121
  viewBox: o,
122
- className: t,
122
+ className: e,
123
123
  title: n || "Profile",
124
124
  ...r,
125
125
  children: [
126
- /* @__PURE__ */ e(
126
+ /* @__PURE__ */ t(
127
127
  "path",
128
128
  {
129
129
  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",
130
130
  opacity: ".4"
131
131
  }
132
132
  ),
133
- /* @__PURE__ */ e("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" })
133
+ /* @__PURE__ */ t("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" })
134
134
  ]
135
135
  }
136
136
  ), Ot = ({
137
- className: t,
137
+ className: e,
138
138
  viewBox: o,
139
139
  title: n,
140
140
  monotone: a,
141
141
  ...r
142
- }) => /* @__PURE__ */ i(
142
+ }) => /* @__PURE__ */ d(
143
143
  $,
144
144
  {
145
145
  defaultViewBox: "0 0 512 512",
146
146
  size: "size-5",
147
147
  viewBox: o,
148
- className: t,
148
+ className: e,
149
149
  title: n || "Restore",
150
150
  ...r,
151
151
  children: [
152
- /* @__PURE__ */ e(
152
+ /* @__PURE__ */ t(
153
153
  "path",
154
154
  {
155
155
  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",
156
156
  opacity: a ? "1" : "0.4"
157
157
  }
158
158
  ),
159
- /* @__PURE__ */ e("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" })
159
+ /* @__PURE__ */ t("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" })
160
160
  ]
161
161
  }
162
162
  ), zt = ({
163
- className: t,
163
+ className: e,
164
164
  viewBox: o,
165
165
  title: n,
166
166
  monotone: a,
167
167
  ...r
168
- }) => /* @__PURE__ */ e(
168
+ }) => /* @__PURE__ */ t(
169
169
  $,
170
170
  {
171
171
  defaultViewBox: "0 0 448 512",
172
172
  size: "size-5",
173
173
  viewBox: o,
174
- className: t,
174
+ className: e,
175
175
  title: n || "Settings",
176
176
  ...r,
177
- children: /* @__PURE__ */ e("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" })
177
+ children: /* @__PURE__ */ t("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" })
178
178
  }
179
179
  ), Ht = ({
180
- className: t,
180
+ className: e,
181
181
  viewBox: o,
182
182
  title: n,
183
183
  monotone: a,
184
184
  ...r
185
- }) => /* @__PURE__ */ i(
185
+ }) => /* @__PURE__ */ d(
186
186
  $,
187
187
  {
188
188
  defaultViewBox: "0 0 512 512",
189
189
  size: "size-5",
190
190
  viewBox: o,
191
- className: t,
191
+ className: e,
192
192
  title: n || "Sliders",
193
193
  ...r,
194
194
  children: [
195
- /* @__PURE__ */ e(
195
+ /* @__PURE__ */ t(
196
196
  "path",
197
197
  {
198
198
  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",
199
199
  opacity: a ? "1" : "0.4"
200
200
  }
201
201
  ),
202
- /* @__PURE__ */ e("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" })
202
+ /* @__PURE__ */ t("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" })
203
203
  ]
204
204
  }
205
205
  ), Bt = () => {
206
- const { getAccessToken: t } = V(), o = se(), n = se(), {
206
+ const { getAccessToken: e } = V(), o = oe(), n = oe(), {
207
207
  data: a,
208
208
  error: r,
209
209
  isLoading: c
210
210
  } = dt({
211
- getAccessToken: t
212
- }), s = (a == null ? void 0 : a.plugins) || [], d = (a == null ? void 0 : a.version) || "", m = (a == null ? void 0 : a.models) || [];
213
- return /* @__PURE__ */ i(B, { children: [
214
- /* @__PURE__ */ e("div", { className: "mb-4", children: /* @__PURE__ */ e(
211
+ getAccessToken: e
212
+ }), s = (a == null ? void 0 : a.version) || "", i = (a == null ? void 0 : a.models) || [];
213
+ return /* @__PURE__ */ d(D, { children: [
214
+ /* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
215
215
  P,
216
216
  {
217
- header: x.ABOUT.TITLE_CLIENT,
217
+ header: k.ABOUT.TITLE_CLIENT,
218
218
  className: "prose-dark dark:prose-lighter",
219
219
  children: ne(o, {
220
- [x.ABOUT.VERSION]: "7.2.0",
221
- [x.ABOUT.BUILD_TIMESTAMP]: "02/11/2025 06:48 PM EST"
220
+ [k.ABOUT.VERSION]: "7.2.2",
221
+ [k.ABOUT.BUILD_TIMESTAMP]: "02/16/2025 12:04 PM EST"
222
222
  })
223
223
  }
224
224
  ) }),
225
- r || c ? null : /* @__PURE__ */ e(
225
+ r || c ? null : /* @__PURE__ */ t(
226
226
  P,
227
227
  {
228
- header: x.ABOUT.TITLE_SERVER,
228
+ header: k.ABOUT.TITLE_SERVER,
229
229
  className: "prose-dark dark:prose-lighter",
230
230
  children: ne(n, {
231
- [x.ABOUT.VERSION]: d,
232
- [oe(x.ABOUT.PROVIDER, m.length)]: /* @__PURE__ */ e(B, { children: m.map((h) => /* @__PURE__ */ e("div", { className: "text-right", children: h }, h)) }),
233
- [oe(x.ABOUT.PLUGIN, s.length)]: /* @__PURE__ */ e(B, { children: s.map((h) => /* @__PURE__ */ e("div", { className: "text-right", children: h }, h)) })
231
+ [k.ABOUT.VERSION]: s,
232
+ [pe(k.ABOUT.PROVIDER, i.length)]: /* @__PURE__ */ t(D, { children: i.map((m) => /* @__PURE__ */ t("div", { className: "text-right", children: m }, m)) })
234
233
  })
235
234
  }
236
235
  )
237
236
  ] });
238
237
  }, Dt = ({
239
- open: t,
238
+ open: e,
240
239
  onOpenChange: o
241
- }) => /* @__PURE__ */ e(re, { open: t, onOpenChange: o, title: Xe, children: /* @__PURE__ */ e(Bt, {}) }), $t = async (t, o, n, a, r, c) => {
240
+ }) => /* @__PURE__ */ t(re, { open: e, onOpenChange: o, title: Xe, children: /* @__PURE__ */ t(Bt, {}) }), $t = async (e, o, n, a, r, c) => {
242
241
  try {
243
242
  const s = await ee({
244
243
  accessToken: a,
245
244
  type: te.GET_CHAT,
246
245
  params: {
247
- id: t.id
246
+ id: e.id
248
247
  }
249
248
  });
250
249
  s.status === 200 && (s.data.provider !== c && await bt({
@@ -254,7 +253,7 @@ const _t = ({
254
253
  }), o({
255
254
  type: xt,
256
255
  payload: {
257
- id: t.id,
256
+ id: e.id,
258
257
  model: s.data.model,
259
258
  provider: s.data.provider,
260
259
  usage: s.data.usage,
@@ -264,25 +263,25 @@ const _t = ({
264
263
  } catch {
265
264
  }
266
265
  }, Vt = ({
267
- filteredHistory: t,
266
+ filteredHistory: e,
268
267
  dispatch: o,
269
268
  onOpenChange: n,
270
269
  mutate: a
271
270
  }) => {
272
271
  var I;
273
- const { user: r, getAccessToken: c } = V(), s = v(null), d = v({
272
+ const { user: r, getAccessToken: c } = V(), s = v(null), i = v({
274
273
  id: 0,
275
274
  timestamp: "",
276
275
  message: ""
277
- }), [m, h] = C(!1), [f, y] = C(
278
- Ne + Se
279
- ), { state: k, dispatch: l } = le(Le), {
280
- state: { provider: p }
281
- } = le(Re), [, T] = ye({
276
+ }), [m, p] = C(!1), [h, y] = C(
277
+ Se + Ne
278
+ ), { state: x, dispatch: l } = se(Re), {
279
+ state: { provider: f }
280
+ } = se(Le), [, T] = ye({
282
281
  key: ge + qe,
283
- initialValue: k.sortDirection
284
- }), N = (u) => {
285
- switch (k.sortDirection) {
282
+ initialValue: x.sortDirection
283
+ }), S = (u) => {
284
+ switch (x.sortDirection) {
286
285
  case q.ASC:
287
286
  T(q.DESC), l({
288
287
  type: we,
@@ -303,7 +302,7 @@ const _t = ({
303
302
  break;
304
303
  }
305
304
  }, b = async () => {
306
- const u = d.current;
305
+ const u = i.current;
307
306
  try {
308
307
  await ee({
309
308
  accessToken: await c(),
@@ -316,7 +315,7 @@ const _t = ({
316
315
  } catch {
317
316
  }
318
317
  }, _ = Oe((u) => {
319
- u[0].isIntersecting && y((L) => L + Ne);
318
+ u[0].isIntersecting && y((R) => R + Se);
320
319
  }, []);
321
320
  return F(() => {
322
321
  const u = {
@@ -324,12 +323,12 @@ const _t = ({
324
323
  rootMargin: "20px"
325
324
  }, w = new IntersectionObserver(_, u);
326
325
  s.current && w.observe(s.current);
327
- }), /* @__PURE__ */ i(B, { children: [
328
- /* @__PURE__ */ i(
326
+ }), /* @__PURE__ */ d(D, { children: [
327
+ /* @__PURE__ */ d(
329
328
  Pe,
330
329
  {
331
330
  showConfirmation: m,
332
- setShowConfirmation: h,
331
+ setShowConfirmation: p,
333
332
  action: b,
334
333
  customStrings: {
335
334
  confirmAction: "Delete",
@@ -337,52 +336,52 @@ const _t = ({
337
336
  title: "Delete chat"
338
337
  },
339
338
  children: [
340
- /* @__PURE__ */ e("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
341
- /* @__PURE__ */ i("ul", { className: "m-0", children: [
342
- /* @__PURE__ */ i("li", { children: [
339
+ /* @__PURE__ */ t("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
340
+ /* @__PURE__ */ d("ul", { className: "m-0", children: [
341
+ /* @__PURE__ */ d("li", { children: [
343
342
  "Timestamp:",
344
343
  " ",
345
- /* @__PURE__ */ e("span", { className: "text-lg", children: d.current && d.current.timestamp })
344
+ /* @__PURE__ */ t("span", { className: "text-lg", children: i.current && i.current.timestamp })
346
345
  ] }),
347
- /* @__PURE__ */ i("li", { children: [
346
+ /* @__PURE__ */ d("li", { children: [
348
347
  "First message:",
349
348
  " ",
350
- /* @__PURE__ */ e("span", { className: "text-lg", children: (I = d.current) == null ? void 0 : I.message })
349
+ /* @__PURE__ */ t("span", { className: "text-lg", children: (I = i.current) == null ? void 0 : I.message })
351
350
  ] })
352
351
  ] })
353
352
  ]
354
353
  }
355
354
  ),
356
- /* @__PURE__ */ i(ut, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
357
- /* @__PURE__ */ e(mt, { children: /* @__PURE__ */ i(ue, { children: [
358
- /* @__PURE__ */ e(R, { className: "sr-only", children: "Row" }),
359
- /* @__PURE__ */ e(
355
+ /* @__PURE__ */ d(ut, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
356
+ /* @__PURE__ */ t(mt, { children: /* @__PURE__ */ d(de, { children: [
357
+ /* @__PURE__ */ t(L, { className: "sr-only", children: "Row" }),
358
+ /* @__PURE__ */ t(
360
359
  ht,
361
360
  {
362
361
  buttonClassName: "text-xs sm:text-sm",
363
362
  cellId: "timestamp",
364
363
  align: "left",
365
- sortDirection: k.sortDirection,
366
- sortedCell: k.sortedCell,
364
+ sortDirection: x.sortDirection,
365
+ sortedCell: x.sortedCell,
367
366
  onClick: () => {
368
- N("timestamp");
367
+ S("timestamp");
369
368
  },
370
369
  children: "Date"
371
370
  }
372
371
  ),
373
- /* @__PURE__ */ e(R, { className: "text-xs sm:text-sm", children: "Summary" }),
374
- /* @__PURE__ */ e(R, { className: "text-xs sm:text-sm", children: "Provider" }),
375
- /* @__PURE__ */ e(R, { className: "text-xs sm:text-sm text-right", children: "Actions" })
372
+ /* @__PURE__ */ t(L, { className: "text-xs sm:text-sm", children: "Summary" }),
373
+ /* @__PURE__ */ t(L, { className: "text-xs sm:text-sm", children: "Provider" }),
374
+ /* @__PURE__ */ t(L, { className: "text-xs sm:text-sm text-right", children: "Actions" })
376
375
  ] }) }),
377
- /* @__PURE__ */ e(ft, { children: t.slice(0, f).map((u, w) => {
378
- var E, S;
379
- const L = u.summary || (u.messages.length > 0 ? (E = u.messages[0]) == null ? void 0 : E.content : "");
380
- return ((S = u == null ? void 0 : u.messages) == null ? void 0 : S.length) > 0 ? /* @__PURE__ */ i(vt, { children: [
381
- w === f - Se && /* @__PURE__ */ e("tr", { ref: s }),
382
- /* @__PURE__ */ i(ue, { children: [
383
- /* @__PURE__ */ e(R, { children: w + 1 }),
384
- /* @__PURE__ */ e(
385
- R,
376
+ /* @__PURE__ */ t(ft, { children: e.slice(0, h).map((u, w) => {
377
+ var E, N;
378
+ const R = u.summary || (u.messages.length > 0 ? (E = u.messages[0]) == null ? void 0 : E.content : "");
379
+ return ((N = u == null ? void 0 : u.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ d(vt, { children: [
380
+ w === h - Ne && /* @__PURE__ */ t("tr", { ref: s }),
381
+ /* @__PURE__ */ d(de, { children: [
382
+ /* @__PURE__ */ t(L, { children: w + 1 }),
383
+ /* @__PURE__ */ t(
384
+ L,
386
385
  {
387
386
  component: "th",
388
387
  scope: "row",
@@ -390,31 +389,31 @@ const _t = ({
390
389
  children: u.timestamp.split(",")[0]
391
390
  }
392
391
  ),
393
- /* @__PURE__ */ e(
394
- R,
392
+ /* @__PURE__ */ t(
393
+ L,
395
394
  {
396
395
  className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm",
397
396
  style: {
398
397
  wordBreak: "break-word"
399
398
  },
400
- children: L
399
+ children: R
401
400
  }
402
401
  ),
403
- /* @__PURE__ */ i(
404
- R,
402
+ /* @__PURE__ */ d(
403
+ L,
405
404
  {
406
405
  component: "th",
407
406
  scope: "row",
408
407
  className: "text-gray-400",
409
408
  align: "center",
410
409
  children: [
411
- u.model && u.model.startsWith("claude") && /* @__PURE__ */ e(pt, { size: "size-4 sm:size-5" }),
412
- u.model && u.model.startsWith("gpt") && /* @__PURE__ */ e(gt, { size: "size-4 sm:size-5" })
410
+ u.model && u.model.startsWith("claude") && /* @__PURE__ */ t(pt, { size: "size-4 sm:size-5" }),
411
+ u.model && u.model.startsWith("gpt") && /* @__PURE__ */ t(gt, { size: "size-4 sm:size-5" })
413
412
  ]
414
413
  }
415
414
  ),
416
- /* @__PURE__ */ i(R, { align: "right", children: [
417
- /* @__PURE__ */ e(
415
+ /* @__PURE__ */ d(L, { align: "right", children: [
416
+ /* @__PURE__ */ t(
418
417
  J,
419
418
  {
420
419
  className: "mr-2",
@@ -429,13 +428,13 @@ const _t = ({
429
428
  n,
430
429
  O,
431
430
  (r == null ? void 0 : r.username) || "",
432
- p
431
+ f
433
432
  );
434
433
  },
435
- children: /* @__PURE__ */ e(Ot, { size: "size-3", monotone: !0 })
434
+ children: /* @__PURE__ */ t(Ot, { size: "size-3", monotone: !0 })
436
435
  }
437
436
  ),
438
- /* @__PURE__ */ e(
437
+ /* @__PURE__ */ t(
439
438
  J,
440
439
  {
441
440
  focusMode: "alt-system",
@@ -443,33 +442,33 @@ const _t = ({
443
442
  label: "Delete chat",
444
443
  onClick: () => {
445
444
  var O;
446
- d.current = {
445
+ i.current = {
447
446
  id: u.id,
448
447
  timestamp: u.timestamp,
449
448
  message: u.messages.length > 0 ? (O = u.messages[0]) == null ? void 0 : O.content : ""
450
- }, h(!m);
449
+ }, p(!m);
451
450
  },
452
- children: /* @__PURE__ */ e("div", { className: "text-red-400", children: /* @__PURE__ */ e(Lt, { size: "size-3", monotone: !0 }) })
451
+ children: /* @__PURE__ */ t("div", { className: "text-red-400", children: /* @__PURE__ */ t(Rt, { size: "size-3", monotone: !0 }) })
453
452
  }
454
453
  )
455
454
  ] })
456
455
  ] })
457
- ] }, `${x.HISTORY.TITLE}-${u.id}-${w}`) : null;
456
+ ] }, `${k.HISTORY.TITLE}-${u.id}-${w}`) : null;
458
457
  }) }),
459
- /* @__PURE__ */ e(yt, { children: /* @__PURE__ */ e(ue, { children: /* @__PURE__ */ e(R, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: oe(
460
- `${t.length} chat`,
461
- t.length
458
+ /* @__PURE__ */ t(yt, { children: /* @__PURE__ */ t(de, { children: /* @__PURE__ */ t(L, { colSpan: 1e3, children: /* @__PURE__ */ t("div", { children: pe(
459
+ `${e.length} chat`,
460
+ e.length
462
461
  ) }) }) }) })
463
462
  ] })
464
463
  ] });
465
464
  }, Ft = ({
466
- open: t,
465
+ open: e,
467
466
  onOpenChange: o
468
467
  }) => {
469
468
  const { getAccessToken: n, user: a } = V(), {
470
469
  state: { lastTriggeredTimestamp: r },
471
470
  dispatch: c
472
- } = le(Re), { state: s, dispatch: d } = le(Le), { data: m, mutate: h } = kt({
471
+ } = se(Le), { state: s, dispatch: i } = se(Re), { data: m, mutate: p } = kt({
473
472
  keys: [
474
473
  a == null ? void 0 : a.username,
475
474
  s.searchString,
@@ -477,31 +476,31 @@ const _t = ({
477
476
  r || 0
478
477
  ],
479
478
  getAccessToken: n
480
- }), f = v(null), [, y] = ye({
479
+ }), h = v(null), [, y] = ye({
481
480
  key: ge + Qe,
482
481
  initialValue: s.searchString
483
- }), [k, l] = C([]);
482
+ }), [x, l] = C([]);
484
483
  F(() => {
485
484
  m && l(m);
486
485
  }, [m]);
487
- const p = async (b) => {
488
- y(b), d({
486
+ const f = async (b) => {
487
+ y(b), i({
489
488
  type: Je,
490
489
  payload: { searchString: b }
491
490
  });
492
491
  }, T = et((b) => {
493
- p(b.target.value.trim());
492
+ f(b.target.value.trim());
494
493
  }, 500);
495
- return /* @__PURE__ */ e(re, { open: t, onOpenChange: o, title: Ze, children: /* @__PURE__ */ i(B, { children: [
496
- /* @__PURE__ */ e("form", { autoComplete: "off", onSubmit: async (b) => {
494
+ return /* @__PURE__ */ t(re, { open: e, onOpenChange: o, title: Ze, children: /* @__PURE__ */ d(D, { children: [
495
+ /* @__PURE__ */ t("form", { autoComplete: "off", onSubmit: async (b) => {
497
496
  b.preventDefault();
498
- }, children: /* @__PURE__ */ e(
499
- he,
497
+ }, children: /* @__PURE__ */ t(
498
+ me,
500
499
  {
501
500
  autoCapitalize: "off",
502
501
  autoComplete: "off",
503
502
  autoCorrect: "off",
504
- ref: f,
503
+ ref: h,
505
504
  defaultValue: s.searchString,
506
505
  focusMode: "light",
507
506
  mode: "dark",
@@ -510,7 +509,7 @@ const _t = ({
510
509
  onChange: T,
511
510
  className: "mt-2 mb-2",
512
511
  ...s.searchString && {
513
- rightElement: /* @__PURE__ */ e(
512
+ rightElement: /* @__PURE__ */ t(
514
513
  K,
515
514
  {
516
515
  type: "button",
@@ -521,7 +520,7 @@ const _t = ({
521
520
  size: "small",
522
521
  onClick: () => {
523
522
  var b;
524
- p(""), (b = f.current) != null && b.value && (f.current.value = "", f.current.focus());
523
+ f(""), (b = h.current) != null && b.value && (h.current.value = "", h.current.focus());
525
524
  },
526
525
  children: "Reset"
527
526
  }
@@ -529,69 +528,69 @@ const _t = ({
529
528
  }
530
529
  }
531
530
  ) }),
532
- /* @__PURE__ */ e("div", { className: "flex flex-col gap-2 sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ e(
531
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-2 sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ t(
533
532
  Vt,
534
533
  {
535
- mutate: h,
536
- filteredHistory: k,
534
+ mutate: p,
535
+ filteredHistory: x,
537
536
  dispatch: c,
538
537
  onOpenChange: o
539
538
  }
540
539
  ) })
541
540
  ] }) });
542
- }, Ut = ({ stats: t }) => {
543
- const { isAuthenticated: o, user: n, registeringForPasskey: a, authenticationType: r } = V(), c = se(), s = se(), d = (n == null ? void 0 : n.username) || "";
544
- return o && d ? /* @__PURE__ */ i(B, { children: [
545
- /* @__PURE__ */ e(
541
+ }, Ut = ({ stats: e }) => {
542
+ const { isAuthenticated: o, user: n, registeringForPasskey: a, authenticationType: r } = V(), c = oe(), s = oe(), i = (n == null ? void 0 : n.username) || "";
543
+ return o && i ? /* @__PURE__ */ d(D, { children: [
544
+ /* @__PURE__ */ t(
546
545
  P,
547
546
  {
548
- header: x.PREFERENCES.TITLE,
547
+ header: k.PREFERENCES.TITLE,
549
548
  className: "prose-dark dark:prose-lighter",
550
549
  children: ne(c, {
551
- [x.PREFERENCES.NAME]: d,
552
- [x.PREFERENCES.EMAIL]: (n == null ? void 0 : n.email) || ""
550
+ [k.PREFERENCES.NAME]: i,
551
+ [k.PREFERENCES.EMAIL]: (n == null ? void 0 : n.email) || ""
553
552
  })
554
553
  }
555
554
  ),
556
- r !== tt.PASSKEY && !rt() && /* @__PURE__ */ i(
555
+ r !== tt.PASSKEY && !rt() && /* @__PURE__ */ d(
557
556
  P,
558
557
  {
559
558
  className: "prose-dark dark:prose-lighter mt-4",
560
- header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ i(W, { columnGap: 3, alignVertical: "center", children: [
561
- /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(ve, { size: "size-8" }) }),
562
- /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e("div", { children: x.PREFERENCES.PASSKEY_TITLE }) })
559
+ header: /* @__PURE__ */ t("h2", { className: "m-0", children: /* @__PURE__ */ d(W, { columnGap: 3, alignVertical: "center", children: [
560
+ /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(ve, { size: "size-8" }) }),
561
+ /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t("div", { children: k.PREFERENCES.PASSKEY_TITLE }) })
563
562
  ] }) }),
564
563
  children: [
565
- /* @__PURE__ */ e("p", { children: x.PREFERENCES.PASSKEY_INSTRUCTIONS }),
566
- /* @__PURE__ */ e(
564
+ /* @__PURE__ */ t("p", { children: k.PREFERENCES.PASSKEY_INSTRUCTIONS }),
565
+ /* @__PURE__ */ t(
567
566
  J,
568
567
  {
569
568
  size: "small",
570
569
  className: "mt-2",
571
570
  onClick: a,
572
- labelLeft: x.PREFERENCES.PASSKEY_BUTTON,
573
- children: /* @__PURE__ */ e(ve, { size: "size-5", monotone: !0 })
571
+ labelLeft: k.PREFERENCES.PASSKEY_BUTTON,
572
+ children: /* @__PURE__ */ t(ve, { size: "size-5", monotone: !0 })
574
573
  }
575
574
  )
576
575
  ]
577
576
  }
578
577
  ),
579
- /* @__PURE__ */ e(
578
+ /* @__PURE__ */ t(
580
579
  P,
581
580
  {
582
- header: x.MAIN_STATISTICS.TITLE,
581
+ header: k.MAIN_STATISTICS.TITLE,
583
582
  className: "prose-dark dark:prose-lighter mt-4",
584
583
  children: ne(s, {
585
- [oe(x.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
586
- [x.MAIN_STATISTICS.PROCESSING_TIME]: at(
587
- t.averageProcessingTimes
584
+ [pe(k.MAIN_STATISTICS.TOTAL, e.totalChats)]: e.totalChats,
585
+ [k.MAIN_STATISTICS.PROCESSING_TIME]: at(
586
+ e.averageProcessingTimes
588
587
  )
589
588
  })
590
589
  }
591
590
  )
592
591
  ] }) : null;
593
592
  }, Gt = ({
594
- open: t,
593
+ open: e,
595
594
  onOpenChange: o
596
595
  }) => {
597
596
  const { getAccessToken: n, user: a } = V(), {
@@ -602,7 +601,7 @@ const _t = ({
602
601
  keys: [a == null ? void 0 : a.username],
603
602
  getAccessToken: n
604
603
  });
605
- return c || s ? null : /* @__PURE__ */ e(re, { open: t, onOpenChange: o, title: nt, children: /* @__PURE__ */ e(Ut, { stats: r }) });
604
+ return c || s ? null : /* @__PURE__ */ t(re, { open: e, onOpenChange: o, title: nt, children: /* @__PURE__ */ t(Ut, { stats: r }) });
606
605
  };
607
606
  /*!
608
607
  @versini/ui-textarea v3.0.13
@@ -617,20 +616,20 @@ try {
617
616
  });
618
617
  } catch {
619
618
  }
620
- const He = "av-text-area", Yt = "av-text-area-wrapper", me = "av-text-area-helper-text", jt = "av-text-area__control--right", Kt = "av-text-area__control--left";
619
+ const He = "av-text-area", Yt = "av-text-area-wrapper", ue = "av-text-area-helper-text", jt = "av-text-area__control--right", Kt = "av-text-area__control--left";
621
620
  function Wt() {
622
- const t = v(!1);
623
- return F(() => (t.current = !0, () => {
624
- t.current = !1;
625
- }), []), Oe(() => t.current, []);
621
+ const e = v(!1);
622
+ return F(() => (e.current = !0, () => {
623
+ e.current = !1;
624
+ }), []), Oe(() => e.current, []);
626
625
  }
627
- function Xt(t) {
628
- return ze(() => t.every((o) => o == null) ? () => {
626
+ function Xt(e) {
627
+ return ze(() => e.every((o) => o == null) ? () => {
629
628
  } : (o) => {
630
- t.forEach((n) => {
629
+ e.forEach((n) => {
631
630
  typeof n == "function" ? n(o) : n != null && (n.current = o);
632
631
  });
633
- }, t);
632
+ }, e);
634
633
  }
635
634
  const qt = {
636
635
  x: 0,
@@ -642,44 +641,44 @@ const qt = {
642
641
  bottom: 0,
643
642
  right: 0
644
643
  };
645
- function Ie(t) {
646
- const o = Wt(), n = v(0), a = v(null), [r, c] = C(qt), s = ze(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
647
- const m = d[0];
644
+ function Ie(e) {
645
+ const o = Wt(), n = v(0), a = v(null), [r, c] = C(qt), s = ze(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
646
+ const m = i[0];
648
647
  m && (cancelAnimationFrame(n.current), n.current = requestAnimationFrame(() => {
649
648
  a.current && o() && c(m.contentRect);
650
649
  }));
651
650
  }), [o]);
652
- return F(() => (a.current && (s == null || s.observe(a.current, t)), () => {
651
+ return F(() => (a.current && (s == null || s.observe(a.current, e)), () => {
653
652
  s == null || s.disconnect(), n.current && cancelAnimationFrame(n.current);
654
- }), [s, t]), [a, r];
653
+ }), [s, e]), [a, r];
655
654
  }
656
655
  function Qt({
657
- value: t,
656
+ value: e,
658
657
  defaultValue: o,
659
658
  finalValue: n,
660
659
  onChange: a = () => {
661
660
  },
662
661
  initialControlledDelay: r = 0
663
662
  }) {
664
- const [c, s] = C(!1), [d, m] = C(
663
+ const [c, s] = C(!1), [i, m] = C(
665
664
  o !== void 0 ? o : n
666
- ), h = (f) => {
667
- m(f), a == null || a(f);
665
+ ), p = (h) => {
666
+ m(h), a == null || a(h);
668
667
  };
669
668
  return F(() => {
670
- (async () => t !== void 0 && !c && r > 0 && (await new Promise(
671
- (f) => setTimeout(f, r)
669
+ (async () => e !== void 0 && !c && r > 0 && (await new Promise(
670
+ (h) => setTimeout(h, r)
672
671
  ), s(!0)))();
673
- }, [t, r, c]), t !== void 0 ? !c && r > 0 ? ["", a, !0] : [t, a, !0] : [d, h, !1];
672
+ }, [e, r, c]), e !== void 0 ? !c && r > 0 ? ["", a, !0] : [e, a, !0] : [i, p, !1];
674
673
  }
675
- function Zt(t) {
674
+ function Zt(e) {
676
675
  const o = At();
677
- if (!t)
676
+ if (!e)
678
677
  return o;
679
- if (typeof t == "number" || typeof t == "string")
680
- return `${t}${o}`;
681
- if (typeof t == "object") {
682
- const { id: n, prefix: a = "" } = t;
678
+ if (typeof e == "number" || typeof e == "string")
679
+ return `${e}${o}`;
680
+ if (typeof e == "object") {
681
+ const { id: n, prefix: a = "" } = e;
683
682
  return typeof n == "number" || typeof n == "string" ? `${a}${n}` : `${a}${o}`;
684
683
  }
685
684
  }
@@ -691,38 +690,38 @@ const Be = "SET_ANNOUNCEMENT", De = "CLEAR_ANNOUNCEMENT", Jt = {
691
690
  progressbar: null,
692
691
  status: "polite",
693
692
  timer: "assertive"
694
- }, er = (t, o) => {
693
+ }, er = (e, o) => {
695
694
  switch (o == null ? void 0 : o.type) {
696
695
  case Be:
697
696
  return {
698
- ...t,
697
+ ...e,
699
698
  announcement: o.payload
700
699
  };
701
700
  case De:
702
701
  return {
703
- ...t,
702
+ ...e,
704
703
  announcement: null
705
704
  };
706
705
  default:
707
- return t;
706
+ return e;
708
707
  }
709
708
  }, tr = ({
710
- onAnnouncementClear: t,
709
+ onAnnouncementClear: e,
711
710
  dispatch: o
712
711
  }) => {
713
712
  o({
714
713
  type: De
715
- }), typeof t == "function" && t();
714
+ }), typeof e == "function" && e();
716
715
  }, _e = ({
717
- children: t,
716
+ children: e,
718
717
  clearAnnouncementDelay: o,
719
718
  clearAnnouncementTimeoutRef: n,
720
719
  onAnnouncementClear: a,
721
720
  dispatch: r
722
721
  }) => {
723
- clearTimeout(n.current), t !== null && r({
722
+ clearTimeout(n.current), e !== null && r({
724
723
  type: Be,
725
- payload: t
724
+ payload: e
726
725
  }), o && (n.current = setTimeout(
727
726
  () => tr({
728
727
  onAnnouncementClear: a,
@@ -731,7 +730,7 @@ const Be = "SET_ANNOUNCEMENT", De = "CLEAR_ANNOUNCEMENT", Jt = {
731
730
  o
732
731
  ));
733
732
  }, rr = ({
734
- children: t,
733
+ children: e,
735
734
  announcementTimeoutRef: o,
736
735
  announcementDelay: n,
737
736
  clearAnnouncementDelay: a,
@@ -740,13 +739,13 @@ const Be = "SET_ANNOUNCEMENT", De = "CLEAR_ANNOUNCEMENT", Jt = {
740
739
  dispatch: s
741
740
  }) => {
742
741
  clearTimeout(o.current), n ? o.current = setTimeout(_e, n, {
743
- children: t,
742
+ children: e,
744
743
  clearAnnouncementDelay: a,
745
744
  clearAnnouncementTimeoutRef: r,
746
745
  onAnnouncementClear: c,
747
746
  dispatch: s
748
747
  }) : _e({
749
- children: t,
748
+ children: e,
750
749
  clearAnnouncementDelay: a,
751
750
  clearAnnouncementTimeoutRef: r,
752
751
  onAnnouncementClear: c,
@@ -754,45 +753,45 @@ const Be = "SET_ANNOUNCEMENT", De = "CLEAR_ANNOUNCEMENT", Jt = {
754
753
  });
755
754
  };
756
755
  function ar({
757
- children: t,
756
+ children: e,
758
757
  className: o,
759
758
  politeness: n,
760
759
  role: a = null,
761
760
  announcementDelay: r,
762
761
  clearAnnouncementDelay: c,
763
762
  onAnnouncementClear: s,
764
- visible: d,
763
+ visible: i,
765
764
  ...m
766
765
  }) {
767
- const h = v(null), f = v(null), [y, k] = It(er, {
766
+ const p = v(null), h = v(null), [y, x] = It(er, {
768
767
  announcement: null
769
768
  });
770
769
  let l = n;
771
770
  typeof l > "u" && (l = a ? Jt[a] : "assertive"), F(() => {
772
771
  rr({
773
- announcementTimeoutRef: h,
772
+ announcementTimeoutRef: p,
774
773
  announcementDelay: r,
775
- children: t,
774
+ children: e,
776
775
  clearAnnouncementDelay: c,
777
- clearAnnouncementTimeoutRef: f,
776
+ clearAnnouncementTimeoutRef: h,
778
777
  onAnnouncementClear: s,
779
- dispatch: k
778
+ dispatch: x
780
779
  });
781
780
  }, [
782
- t,
781
+ e,
783
782
  r,
784
783
  c,
785
784
  s
786
785
  ]);
787
- const p = g(o, {
788
- "sr-only": !d
786
+ const f = g(o, {
787
+ "sr-only": !i
789
788
  });
790
- return /* @__PURE__ */ e(
789
+ return /* @__PURE__ */ t(
791
790
  "div",
792
791
  {
793
792
  "aria-live": l,
794
793
  ...a && { role: a },
795
- className: p,
794
+ className: f,
796
795
  ...m,
797
796
  children: y.announcement
798
797
  }
@@ -811,28 +810,28 @@ try {
811
810
  });
812
811
  } catch {
813
812
  }
814
- const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", or = ({ mode: t }) => g({
815
- "bg-surface-darker text-copy-lighter caret-copy-light": t === "dark",
816
- "bg-surface-lighter text-copy-dark caret-copy-dark": t === "light",
817
- "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": t === "system",
818
- "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": t === "alt-system"
813
+ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", or = ({ mode: e }) => g({
814
+ "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
815
+ "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
816
+ "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
817
+ "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
819
818
  }), sr = ({
820
- focusMode: t
819
+ focusMode: e
821
820
  }) => g("focus:outline focus:outline-2 focus:outline-offset-2", {
822
- "focus:outline-focus-dark": t === "dark",
823
- "focus:outline-focus-light": t === "light",
824
- "focus:outline-focus-light dark:focus:outline-focus-dark": t === "alt-system",
825
- "focus:outline-focus-dark dark:focus:outline-focus-light": t === "system"
821
+ "focus:outline-focus-dark": e === "dark",
822
+ "focus:outline-focus-light": e === "light",
823
+ "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
824
+ "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
826
825
  }), lr = ({
827
- noBorder: t,
826
+ noBorder: e,
828
827
  error: o
829
828
  }) => g("border-2", {
830
- "border-border-dark": !t && !o,
831
- "focus:border-border-dark": !t && o,
832
- "border-border-error-dark": !t && o,
833
- "border-transparent": t
829
+ "border-border-dark": !e && !o,
830
+ "focus:border-border-dark": !e && o,
831
+ "border-border-error-dark": !e && o,
832
+ "border-transparent": e
834
833
  }), cr = ({
835
- disabled: t,
834
+ disabled: e,
836
835
  raw: o,
837
836
  error: n,
838
837
  mode: a,
@@ -841,7 +840,7 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
841
840
  }) => {
842
841
  if (o)
843
842
  return "";
844
- if (t)
843
+ if (e)
845
844
  return g(
846
845
  "transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium",
847
846
  {
@@ -871,7 +870,7 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
871
870
  }
872
871
  );
873
872
  }, ir = ({
874
- error: t,
873
+ error: e,
875
874
  raw: o,
876
875
  mode: n,
877
876
  disabled: a
@@ -880,44 +879,44 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
880
879
  return "";
881
880
  if (a)
882
881
  return g(
883
- me,
882
+ ue,
884
883
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
885
884
  );
886
- if (!t)
887
- return g(me, "absolute px-2 font-medium", {
885
+ if (!e)
886
+ return g(ue, "absolute px-2 font-medium", {
888
887
  "text-copy-medium": n === "dark",
889
888
  "text-copy-dark": n === "light",
890
889
  "text-copy-dark dark:text-copy-medium": n === "system",
891
890
  "text-copy-medium dark:text-copy-dark": n === "alt-system"
892
891
  });
893
- if (t)
894
- return g(me, "absolute px-2 font-medium", {
892
+ if (e)
893
+ return g(ue, "absolute px-2 font-medium", {
895
894
  "text-copy-error-light": n === "dark",
896
895
  "text-copy-error-dark": n === "light",
897
896
  "text-copy-error-dark dark:text-copy-error-light": n === "system",
898
897
  "dark:text-copy-error-dark text-copy-error-light": n === "alt-system"
899
898
  });
900
899
  }, dr = ({
901
- className: t,
900
+ className: e,
902
901
  textAreaClassName: o,
903
902
  raw: n,
904
903
  focusMode: a,
905
904
  disabled: r,
906
905
  noBorder: c,
907
906
  error: s,
908
- mode: d,
907
+ mode: i,
909
908
  leftElement: m,
910
- rightElement: h
909
+ rightElement: p
911
910
  }) => {
912
- const f = n ? t : g(
911
+ const h = n ? e : g(
913
912
  "relative flex w-full flex-col justify-center",
914
913
  Yt,
915
- t
914
+ e
916
915
  ), y = n ? g(o) : g(
917
916
  He,
918
917
  o,
919
918
  nr(),
920
- or({ mode: d }),
919
+ or({ mode: i }),
921
920
  sr({ focusMode: a }),
922
921
  lr({
923
922
  noBorder: c,
@@ -926,87 +925,87 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
926
925
  {
927
926
  "disabled:cursor-not-allowed disabled:opacity-50": r
928
927
  }
929
- ), k = n ? void 0 : "sr-only", l = cr({
928
+ ), x = n ? void 0 : "sr-only", l = cr({
930
929
  disabled: r,
931
930
  raw: n,
932
931
  error: s,
933
- mode: d,
934
- rightElement: h,
932
+ mode: i,
933
+ rightElement: p,
935
934
  leftElement: m
936
- }), p = ir({
935
+ }), f = ir({
937
936
  error: s,
938
937
  raw: n,
939
- mode: d,
938
+ mode: i,
940
939
  disabled: r
941
- }), T = n ? void 0 : g(jt, "absolute"), N = n ? void 0 : g(Kt, "absolute");
940
+ }), T = n ? void 0 : g(jt, "absolute"), S = n ? void 0 : g(Kt, "absolute");
942
941
  return {
943
- wrapper: f,
942
+ wrapper: h,
944
943
  textArea: y,
945
- accessibleLabel: k,
944
+ accessibleLabel: x,
946
945
  visibleLabel: l,
947
- helperText: p,
946
+ helperText: f,
948
947
  rightElement: T,
949
- leftElement: N
948
+ leftElement: S
950
949
  };
951
950
  }, ur = ({
952
- scrollHeight: t,
951
+ scrollHeight: e,
953
952
  currentHeight: o,
954
953
  currentLabelOffset: n = 0,
955
954
  currentHelperTextOffset: a = 0
956
955
  }) => {
957
956
  let r, c;
958
- if (t > 0 && t !== o) {
959
- const s = t - o, d = Math.abs(s / 24);
960
- r = n + -1 * Math.sign(s) * (12 * d), c = a + Math.sign(s) * (12 * d);
957
+ if (e > 0 && e !== o) {
958
+ const s = e - o, i = Math.abs(s / 24);
959
+ r = n + -1 * Math.sign(s) * (12 * i), c = a + Math.sign(s) * (12 * i);
961
960
  }
962
961
  return {
963
962
  labelOffset: r,
964
963
  helperTextOffset: c,
965
- scrollHeight: t
964
+ scrollHeight: e
966
965
  };
967
- }, fe = wt.forwardRef(
966
+ }, he = wt.forwardRef(
968
967
  ({
969
- id: t,
968
+ id: e,
970
969
  name: o,
971
970
  label: n,
972
971
  error: a = !1,
973
972
  raw: r = !1,
974
973
  className: c,
975
974
  textAreaClassName: s,
976
- mode: d = "system",
975
+ mode: i = "system",
977
976
  focusMode: m = "system",
978
- value: h,
979
- defaultValue: f,
977
+ value: p,
978
+ defaultValue: h,
980
979
  disabled: y = !1,
981
- noBorder: k = !1,
980
+ noBorder: x = !1,
982
981
  labelId: l,
983
- helperText: p = "",
982
+ helperText: f = "",
984
983
  helperTextOnFocus: T = !1,
985
- rightElement: N,
984
+ rightElement: S,
986
985
  leftElement: b,
987
986
  onChange: _,
988
987
  onFocus: I,
989
988
  onBlur: u,
990
989
  ...w
991
- }, L) => {
990
+ }, R) => {
992
991
  var E;
993
- const S = v(null), O = Xt([L, S]), [be, U] = Ie(), [Y, z] = Ie(), j = v(80), ae = v(-25), H = v(null), xe = v(30), ce = v(null), X = Zt({ id: t, prefix: `${He}-` }), [ke, $e] = C(0), [Ce, Ve] = C(0), [Fe, Te] = C(
994
- !!(!T && p)
995
- ), Ue = `${o} error, ${p}`, G = dr({
992
+ const N = v(null), O = Xt([R, N]), [be, U] = Ie(), [Y, z] = Ie(), j = v(80), ae = v(-25), H = v(null), xe = v(30), le = v(null), X = Zt({ id: e, prefix: `${He}-` }), [ke, $e] = C(0), [Ce, Ve] = C(0), [Fe, Te] = C(
993
+ !!(!T && f)
994
+ ), Ue = `${o} error, ${f}`, G = dr({
996
995
  className: c,
997
996
  textAreaClassName: s,
998
997
  error: a,
999
998
  raw: r,
1000
999
  focusMode: m,
1001
1000
  disabled: y,
1002
- noBorder: k,
1003
- mode: d,
1004
- rightElement: !!N,
1001
+ noBorder: x,
1002
+ mode: i,
1003
+ rightElement: !!S,
1005
1004
  leftElement: !!b
1006
- }), [D, Ge] = Qt({
1007
- value: h,
1005
+ }), [B, Ge] = Qt({
1006
+ value: p,
1008
1007
  initialControlledDelay: 20,
1009
- defaultValue: f,
1008
+ defaultValue: h,
1010
1009
  onChange: (A) => {
1011
1010
  _ && _({
1012
1011
  target: {
@@ -1017,46 +1016,46 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1017
1016
  }), Ye = (A) => {
1018
1017
  Ge(A.target.value);
1019
1018
  }, je = (A) => {
1020
- T && p && Te(!0), I && I(A);
1019
+ T && f && Te(!0), I && I(A);
1021
1020
  }, Ke = (A) => {
1022
- T && p && !D && Te(!1), u && u(A);
1021
+ T && f && !B && Te(!1), u && u(A);
1023
1022
  };
1024
1023
  return Z(() => {
1025
1024
  U && U.width && $e(U.width + 18 + 10);
1026
1025
  }, [U]), Z(() => {
1027
1026
  z && z.width && Ve(z.width + 18 + 10);
1028
1027
  }, [z]), Z(() => {
1029
- r || S && S.current && D !== void 0 && (S.current.style.height = "inherit", S.current.style.height = S.current.scrollHeight + "px");
1030
- }, [D, r]), Z(() => {
1028
+ r || N && N.current && B !== void 0 && (N.current.style.height = "inherit", N.current.style.height = N.current.scrollHeight + "px");
1029
+ }, [B, r]), Z(() => {
1031
1030
  r || setTimeout(() => {
1032
1031
  var A;
1033
1032
  (A = H == null ? void 0 : H.current) == null || A.style.setProperty(
1034
1033
  "--av-text-area-wrapper-transition",
1035
- D ? "none" : "all 0.2s ease-out"
1034
+ B ? "none" : "all 0.2s ease-out"
1036
1035
  );
1037
1036
  }, 0);
1038
- }, [D, r]), Z(() => {
1037
+ }, [B, r]), Z(() => {
1039
1038
  var A, Ee;
1040
- if (!r && S && S.current && D !== void 0) {
1041
- const { labelOffset: ie, helperTextOffset: de, scrollHeight: We } = ur({
1042
- scrollHeight: S.current.scrollHeight,
1039
+ if (!r && N && N.current && B !== void 0) {
1040
+ const { labelOffset: ce, helperTextOffset: ie, scrollHeight: We } = ur({
1041
+ scrollHeight: N.current.scrollHeight,
1043
1042
  currentHeight: j.current,
1044
1043
  currentLabelOffset: ae.current,
1045
1044
  currentHelperTextOffset: xe.current
1046
1045
  });
1047
- ie && (ae.current = ie, (A = H == null ? void 0 : H.current) == null || A.style.setProperty(
1046
+ ce && (ae.current = ce, (A = H == null ? void 0 : H.current) == null || A.style.setProperty(
1048
1047
  "--av-text-area-label",
1049
- `${ie}px`
1050
- )), de && (xe.current = de, (Ee = ce == null ? void 0 : ce.current) == null || Ee.style.setProperty(
1048
+ `${ce}px`
1049
+ )), ie && (xe.current = ie, (Ee = le == null ? void 0 : le.current) == null || Ee.style.setProperty(
1051
1050
  "--av-text-area-helper-text",
1052
- `${de}px`
1051
+ `${ie}px`
1053
1052
  )), j.current = We || j.current;
1054
1053
  }
1055
- }, [D, r]), z.width > 0 && ((E = H == null ? void 0 : H.current) == null || E.style.setProperty(
1054
+ }, [B, r]), z.width > 0 && ((E = H == null ? void 0 : H.current) == null || E.style.setProperty(
1056
1055
  "--tw-translate-x",
1057
1056
  `${12 + z.width + 5}px`
1058
- )), /* @__PURE__ */ i("div", { className: G.wrapper, children: [
1059
- /* @__PURE__ */ e(
1057
+ )), /* @__PURE__ */ d("div", { className: G.wrapper, children: [
1058
+ /* @__PURE__ */ t(
1060
1059
  "label",
1061
1060
  {
1062
1061
  htmlFor: X,
@@ -1065,7 +1064,7 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1065
1064
  children: n
1066
1065
  }
1067
1066
  ),
1068
- b && /* @__PURE__ */ e(
1067
+ b && /* @__PURE__ */ t(
1069
1068
  "div",
1070
1069
  {
1071
1070
  ref: Y,
@@ -1073,7 +1072,7 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1073
1072
  children: b
1074
1073
  }
1075
1074
  ),
1076
- /* @__PURE__ */ e(
1075
+ /* @__PURE__ */ t(
1077
1076
  "textarea",
1078
1077
  {
1079
1078
  ref: O,
@@ -1083,24 +1082,24 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1083
1082
  placeholder: r ? void 0 : " ",
1084
1083
  className: G.textArea,
1085
1084
  rows: 1,
1086
- ...p && { "aria-describedby": `${X}-helper` },
1085
+ ...f && { "aria-describedby": `${X}-helper` },
1087
1086
  ...a && { "aria-invalid": "true" },
1088
- ...N && !b && !r && { style: { paddingRight: ke } },
1089
- ...b && !N && !r && { style: { paddingLeft: Ce } },
1090
- ...N && b && !r && {
1087
+ ...S && !b && !r && { style: { paddingRight: ke } },
1088
+ ...b && !S && !r && { style: { paddingLeft: Ce } },
1089
+ ...S && b && !r && {
1091
1090
  style: {
1092
1091
  paddingRight: ke,
1093
1092
  paddingLeft: Ce
1094
1093
  }
1095
1094
  },
1096
- value: D,
1095
+ value: B,
1097
1096
  onChange: Ye,
1098
1097
  onFocus: je,
1099
1098
  onBlur: Ke,
1100
1099
  ...w
1101
1100
  }
1102
1101
  ),
1103
- !r && /* @__PURE__ */ e(
1102
+ !r && /* @__PURE__ */ t(
1104
1103
  "label",
1105
1104
  {
1106
1105
  ref: H,
@@ -1110,28 +1109,28 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1110
1109
  children: n
1111
1110
  }
1112
1111
  ),
1113
- Fe && /* @__PURE__ */ e(
1112
+ Fe && /* @__PURE__ */ t(
1114
1113
  "div",
1115
1114
  {
1116
- ref: ce,
1115
+ ref: le,
1117
1116
  id: `${X}-helper`,
1118
1117
  className: G.helperText,
1119
- children: p
1118
+ children: f
1120
1119
  }
1121
1120
  ),
1122
- N && /* @__PURE__ */ e(
1121
+ S && /* @__PURE__ */ t(
1123
1122
  "div",
1124
1123
  {
1125
1124
  ref: be,
1126
1125
  className: G.rightElement,
1127
- children: N
1126
+ children: S
1128
1127
  }
1129
1128
  ),
1130
- a && p && /* @__PURE__ */ e(ar, { politeness: "polite", clearAnnouncementDelay: 500, children: Ue })
1129
+ a && f && /* @__PURE__ */ t(ar, { politeness: "polite", clearAnnouncementDelay: 500, children: Ue })
1131
1130
  ] });
1132
1131
  }
1133
1132
  );
1134
- fe.displayName = "TextArea";
1133
+ he.displayName = "TextArea";
1135
1134
  /*!
1136
1135
  @versini/ui-toggle v3.0.9
1137
1136
  © 2025 gizmette.com
@@ -1146,16 +1145,16 @@ try {
1146
1145
  } catch {
1147
1146
  }
1148
1147
  const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr = ({
1149
- focusMode: t
1148
+ focusMode: e
1150
1149
  }) => g(
1151
1150
  "peer-focus:outline",
1152
1151
  "peer-focus:outline-2",
1153
1152
  "peer-focus:outline-offset-2",
1154
1153
  {
1155
- "peer-focus:outline-focus-dark": t === "dark",
1156
- "peer-focus:outline-focus-light": t === "light",
1157
- "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": t === "alt-system",
1158
- "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": t === "system"
1154
+ "peer-focus:outline-focus-dark": e === "dark",
1155
+ "peer-focus:outline-focus-light": e === "light",
1156
+ "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
1157
+ "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
1159
1158
  }
1160
1159
  ), pr = () => g(
1161
1160
  "peer-checked:after:translate-x-full",
@@ -1177,28 +1176,28 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1177
1176
  "after:transition-all",
1178
1177
  "after:content-['']"
1179
1178
  ), yr = ({
1180
- mode: t,
1179
+ mode: e,
1181
1180
  noBorder: o
1182
1181
  }) => g({
1183
1182
  border: !o,
1184
- "border-border-dark bg-surface-medium": t === "light",
1185
- "border-border-light bg-surface-darker": t === "dark",
1186
- "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": t === "alt-system",
1187
- "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": t === "system"
1183
+ "border-border-dark bg-surface-medium": e === "light",
1184
+ "border-border-light bg-surface-darker": e === "dark",
1185
+ "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
1186
+ "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
1188
1187
  }), br = ({
1189
- mode: t,
1188
+ mode: e,
1190
1189
  labelHidden: o
1191
1190
  }) => o ? "sr-only" : g("ml-2 text-sm", {
1192
- "text-copy-dark": t === "light",
1193
- "text-copy-lighter": t === "dark",
1194
- "text-copy-lighter dark:text-copy-dark": t === "alt-system",
1195
- "text-copy-dark dark:text-copy-lighter": t === "system"
1196
- }), xr = ({ className: t }) => g(
1191
+ "text-copy-dark": e === "light",
1192
+ "text-copy-lighter": e === "dark",
1193
+ "text-copy-lighter dark:text-copy-dark": e === "alt-system",
1194
+ "text-copy-dark dark:text-copy-lighter": e === "system"
1195
+ }), xr = ({ className: e }) => g(
1197
1196
  mr,
1198
1197
  "relative flex cursor-pointer items-center",
1199
- t
1198
+ e
1200
1199
  ), kr = ({
1201
- mode: t,
1200
+ mode: e,
1202
1201
  focusMode: o,
1203
1202
  labelHidden: n,
1204
1203
  className: a,
@@ -1206,78 +1205,78 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1206
1205
  }) => ({
1207
1206
  toggle: g(
1208
1207
  hr(),
1209
- yr({ mode: t, noBorder: r }),
1208
+ yr({ mode: e, noBorder: r }),
1210
1209
  fr({ focusMode: o }),
1211
1210
  gr(),
1212
1211
  pr()
1213
1212
  ),
1214
- label: br({ mode: t, labelHidden: n }),
1213
+ label: br({ mode: e, labelHidden: n }),
1215
1214
  input: "peer sr-only",
1216
1215
  wrapper: xr({ className: a })
1217
- }), pe = ({
1218
- checked: t = !1,
1216
+ }), fe = ({
1217
+ checked: e = !1,
1219
1218
  onChange: o,
1220
1219
  label: n,
1221
1220
  labelHidden: a = !1,
1222
1221
  name: r,
1223
1222
  mode: c = "system",
1224
1223
  focusMode: s = "system",
1225
- className: d,
1224
+ className: i,
1226
1225
  noBorder: m = !1
1227
1226
  }) => {
1228
- const h = kr({
1227
+ const p = kr({
1229
1228
  mode: c,
1230
1229
  focusMode: s,
1231
1230
  labelHidden: a,
1232
- className: d,
1231
+ className: i,
1233
1232
  noBorder: m
1234
- }), f = (y) => {
1233
+ }), h = (y) => {
1235
1234
  o == null || o(y.target.checked);
1236
1235
  };
1237
- return /* @__PURE__ */ i("label", { className: h.wrapper, children: [
1238
- /* @__PURE__ */ e(
1236
+ return /* @__PURE__ */ d("label", { className: p.wrapper, children: [
1237
+ /* @__PURE__ */ t(
1239
1238
  "input",
1240
1239
  {
1241
1240
  name: r,
1242
- checked: t,
1241
+ checked: e,
1243
1242
  type: "checkbox",
1244
- className: h.input,
1245
- onChange: f
1243
+ className: p.input,
1244
+ onChange: h
1246
1245
  }
1247
1246
  ),
1248
- /* @__PURE__ */ e("div", { className: h.toggle }),
1249
- /* @__PURE__ */ e("span", { className: h.label, children: n })
1247
+ /* @__PURE__ */ t("div", { className: p.toggle }),
1248
+ /* @__PURE__ */ t("span", { className: p.label, children: n })
1250
1249
  ] });
1251
1250
  }, Cr = ({
1252
- open: t,
1251
+ open: e,
1253
1252
  onOpenChange: o
1254
1253
  }) => {
1255
1254
  const { getAccessToken: n, user: a } = V(), {
1256
1255
  data: r,
1257
1256
  error: c,
1258
1257
  isLoading: s,
1259
- mutate: d
1258
+ mutate: i
1260
1259
  } = Me({
1261
1260
  keys: [a == null ? void 0 : a.username],
1262
1261
  getAccessToken: n,
1263
1262
  isPaused: !0
1264
- }), [m, h] = C({
1263
+ }), [m, p] = C({
1265
1264
  prompts: []
1266
- }), f = ({
1265
+ }), h = ({
1267
1266
  slot: l,
1268
- checked: p,
1267
+ checked: f,
1269
1268
  label: T,
1270
- content: N,
1269
+ content: S,
1271
1270
  privateChat: b = !1
1272
1271
  }) => {
1273
- h((_) => {
1272
+ p((_) => {
1274
1273
  const I = _.prompts, u = {
1275
1274
  slot: l,
1276
1275
  label: T,
1277
- content: N,
1278
- enabled: p,
1276
+ content: S,
1277
+ enabled: f,
1279
1278
  privateChat: b
1280
- }, w = I.findIndex((L) => L.slot === l);
1279
+ }, w = I.findIndex((R) => R.slot === l);
1281
1280
  return w === -1 ? {
1282
1281
  ..._,
1283
1282
  prompts: [...I, { ...u, slot: l }]
@@ -1299,35 +1298,35 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1299
1298
  });
1300
1299
  } catch {
1301
1300
  }
1302
- }, k = () => {
1303
- d({ ...r }), o(!1);
1301
+ }, x = () => {
1302
+ i({ ...r }), o(!1);
1304
1303
  };
1305
1304
  return F(() => {
1306
- r != null && r.tags && h({ prompts: r.tags });
1307
- }, [r]), c || s ? null : /* @__PURE__ */ i(
1305
+ r != null && r.tags && p({ prompts: r.tags });
1306
+ }, [r]), c || s ? null : /* @__PURE__ */ d(
1308
1307
  re,
1309
1308
  {
1310
- open: t,
1311
- onOpenChange: k,
1309
+ open: e,
1310
+ onOpenChange: x,
1312
1311
  title: "Prompts",
1313
- footer: /* @__PURE__ */ i(
1312
+ footer: /* @__PURE__ */ d(
1314
1313
  W,
1315
1314
  {
1316
1315
  columnGap: 2,
1317
1316
  alignHorizontal: "flex-end",
1318
1317
  className: "pb-8 sm:pb-0",
1319
1318
  children: [
1320
- /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
1319
+ /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
1321
1320
  K,
1322
1321
  {
1323
1322
  mode: "dark",
1324
1323
  variant: "secondary",
1325
1324
  focusMode: "light",
1326
- onClick: k,
1325
+ onClick: x,
1327
1326
  children: "Cancel"
1328
1327
  }
1329
1328
  ) }),
1330
- /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
1329
+ /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
1331
1330
  K,
1332
1331
  {
1333
1332
  mode: "dark",
@@ -1343,58 +1342,58 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1343
1342
  }
1344
1343
  ),
1345
1344
  children: [
1346
- /* @__PURE__ */ e("p", { children: ot }),
1347
- m.prompts && m.prompts.map((l) => /* @__PURE__ */ i(
1345
+ /* @__PURE__ */ t("p", { children: ot }),
1346
+ m.prompts && m.prompts.map((l) => /* @__PURE__ */ d(
1348
1347
  P,
1349
1348
  {
1350
1349
  header: `Prompt ${l.slot + 1}`,
1351
1350
  className: "prose-dark dark:prose-lighter mb-2",
1352
1351
  children: [
1353
- /* @__PURE__ */ i(W, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
1354
- /* @__PURE__ */ e(M, { span: 12, children: /* @__PURE__ */ e(
1355
- he,
1352
+ /* @__PURE__ */ d(W, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
1353
+ /* @__PURE__ */ t(M, { span: 12, children: /* @__PURE__ */ t(
1354
+ me,
1356
1355
  {
1357
1356
  label: "Label",
1358
1357
  name: `prompt${l.slot}-label`,
1359
1358
  value: l.label,
1360
- onChange: (p) => {
1361
- f({
1359
+ onChange: (f) => {
1360
+ h({
1362
1361
  slot: l.slot,
1363
1362
  checked: l.enabled,
1364
- label: p.target.value,
1363
+ label: f.target.value,
1365
1364
  content: l.content
1366
1365
  });
1367
1366
  }
1368
1367
  }
1369
1368
  ) }),
1370
- /* @__PURE__ */ e(M, { span: 12, children: /* @__PURE__ */ e(
1371
- he,
1369
+ /* @__PURE__ */ t(M, { span: 12, children: /* @__PURE__ */ t(
1370
+ me,
1372
1371
  {
1373
1372
  label: "Content",
1374
1373
  name: `prompt${l.slot}-content`,
1375
1374
  value: l.content,
1376
- onChange: (p) => {
1377
- f({
1375
+ onChange: (f) => {
1376
+ h({
1378
1377
  slot: l.slot,
1379
1378
  checked: l.enabled,
1380
1379
  label: l.label,
1381
- content: p.target.value
1380
+ content: f.target.value
1382
1381
  });
1383
1382
  }
1384
1383
  }
1385
1384
  ) })
1386
1385
  ] }),
1387
- /* @__PURE__ */ e(
1388
- pe,
1386
+ /* @__PURE__ */ t(
1387
+ fe,
1389
1388
  {
1390
1389
  className: "mt-2",
1391
1390
  noBorder: !0,
1392
1391
  label: "Enabled",
1393
1392
  name: l.slot.toString(),
1394
- onChange: (p) => {
1395
- f({
1393
+ onChange: (f) => {
1394
+ h({
1396
1395
  slot: l.slot,
1397
- checked: p,
1396
+ checked: f,
1398
1397
  label: l.label,
1399
1398
  content: l.content
1400
1399
  });
@@ -1402,20 +1401,20 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1402
1401
  checked: l.enabled
1403
1402
  }
1404
1403
  ),
1405
- /* @__PURE__ */ e(
1406
- pe,
1404
+ /* @__PURE__ */ t(
1405
+ fe,
1407
1406
  {
1408
1407
  className: "mt-2",
1409
1408
  noBorder: !0,
1410
1409
  label: "Temporary Chat",
1411
1410
  name: `private-${l.slot.toString()}`,
1412
- onChange: (p) => {
1413
- f({
1411
+ onChange: (f) => {
1412
+ h({
1414
1413
  slot: l.slot,
1415
1414
  checked: l.enabled,
1416
1415
  label: l.label,
1417
1416
  content: l.content,
1418
- privateChat: p
1417
+ privateChat: f
1419
1418
  });
1420
1419
  },
1421
1420
  checked: l.privateChat
@@ -1429,20 +1428,20 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1429
1428
  }
1430
1429
  );
1431
1430
  }, Tr = ({
1432
- open: t,
1431
+ open: e,
1433
1432
  onOpenChange: o
1434
1433
  }) => {
1435
1434
  const { getAccessToken: n, user: a } = V(), {
1436
1435
  data: r,
1437
1436
  error: c,
1438
1437
  isLoading: s,
1439
- mutate: d
1438
+ mutate: i
1440
1439
  } = Me({
1441
1440
  keys: [a == null ? void 0 : a.username],
1442
1441
  getAccessToken: n
1443
- }), [m, h] = C(!1), [f, y] = C({
1442
+ }), [m, p] = C(!1), [h, y] = C({
1444
1443
  loadingLocation: !1
1445
- }), [k, l] = C(""), [p, T] = C(""), [N, b] = ye({
1444
+ }), [x, l] = C(""), [f, T] = C(""), [S, b] = ye({
1446
1445
  key: ge + st,
1447
1446
  initialValue: !1
1448
1447
  }), _ = (E) => {
@@ -1455,11 +1454,11 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1455
1454
  type: te.SET_USER_PREFERENCES,
1456
1455
  params: {
1457
1456
  user: a == null ? void 0 : a.username,
1458
- instructions: k,
1459
- location: p,
1457
+ instructions: x,
1458
+ location: f,
1460
1459
  provider: r.provider
1461
1460
  }
1462
- }), d(), y({
1461
+ }), i(), y({
1463
1462
  loadingLocation: !1
1464
1463
  });
1465
1464
  } catch {
@@ -1469,12 +1468,12 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1469
1468
  loadingLocation: !0
1470
1469
  }), T("...");
1471
1470
  try {
1472
- const E = Date.now(), S = await it(), O = await ee({
1471
+ const E = Date.now(), N = await it(), O = await ee({
1473
1472
  accessToken: await n(),
1474
1473
  type: te.GET_LOCATION,
1475
1474
  params: {
1476
- latitude: S.latitude,
1477
- longitude: S.longitude
1475
+ latitude: N.latitude,
1476
+ longitude: N.longitude
1478
1477
  }
1479
1478
  }), U = Date.now() - E;
1480
1479
  if (U < 2e3 && await new Promise((Y) => setTimeout(Y, 2e3 - U)), O.status === 200) {
@@ -1489,36 +1488,36 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1489
1488
  } catch {
1490
1489
  }
1491
1490
  }, w = () => {
1492
- h(!m);
1493
- }, L = () => {
1494
- d({ ...r }), o(!1);
1491
+ p(!m);
1492
+ }, R = () => {
1493
+ i({ ...r }), o(!1);
1495
1494
  };
1496
1495
  return F(() => {
1497
1496
  r != null && r.instructions && l(r.instructions), r != null && r.location && T(r.location);
1498
- }, [r]), c || s ? null : /* @__PURE__ */ e(
1497
+ }, [r]), c || s ? null : /* @__PURE__ */ t(
1499
1498
  re,
1500
1499
  {
1501
- open: t,
1502
- onOpenChange: L,
1500
+ open: e,
1501
+ onOpenChange: R,
1503
1502
  title: lt,
1504
- footer: /* @__PURE__ */ i(
1503
+ footer: /* @__PURE__ */ d(
1505
1504
  W,
1506
1505
  {
1507
1506
  columnGap: 2,
1508
1507
  alignHorizontal: "flex-end",
1509
1508
  className: "pb-8 sm:pb-0",
1510
1509
  children: [
1511
- /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
1510
+ /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
1512
1511
  K,
1513
1512
  {
1514
1513
  mode: "dark",
1515
1514
  variant: "secondary",
1516
1515
  focusMode: "light",
1517
- onClick: L,
1516
+ onClick: R,
1518
1517
  children: "Cancel"
1519
1518
  }
1520
1519
  ) }),
1521
- /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
1520
+ /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
1522
1521
  K,
1523
1522
  {
1524
1523
  mode: "dark",
@@ -1533,59 +1532,59 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1533
1532
  ]
1534
1533
  }
1535
1534
  ),
1536
- children: /* @__PURE__ */ i(B, { children: [
1537
- m && /* @__PURE__ */ e(Cr, { open: m, onOpenChange: h }),
1538
- /* @__PURE__ */ i(
1535
+ children: /* @__PURE__ */ d(D, { children: [
1536
+ m && /* @__PURE__ */ t(Cr, { open: m, onOpenChange: p }),
1537
+ /* @__PURE__ */ d(
1539
1538
  P,
1540
1539
  {
1541
- header: x.SETTINGS_DETAILS.TITLE,
1540
+ header: k.SETTINGS_DETAILS.TITLE,
1542
1541
  className: "prose-dark dark:prose-lighter",
1543
1542
  children: [
1544
- /* @__PURE__ */ e("p", { className: "text-sm", children: x.SETTINGS_DETAILS.INSTRUCTION }),
1545
- /* @__PURE__ */ e(
1546
- pe,
1543
+ /* @__PURE__ */ t("p", { className: "text-sm", children: k.SETTINGS_DETAILS.INSTRUCTION }),
1544
+ /* @__PURE__ */ t(
1545
+ fe,
1547
1546
  {
1548
1547
  className: "mt-2",
1549
1548
  noBorder: !0,
1550
1549
  label: "Show Message Statistics",
1551
1550
  name: "show-message-statistics",
1552
1551
  onChange: _,
1553
- checked: N
1552
+ checked: S
1554
1553
  }
1555
1554
  )
1556
1555
  ]
1557
1556
  }
1558
1557
  ),
1559
- /* @__PURE__ */ e(
1558
+ /* @__PURE__ */ t(
1560
1559
  P,
1561
1560
  {
1562
- header: x.SETTINGS_PROMPTS.TITLE,
1561
+ header: k.SETTINGS_PROMPTS.TITLE,
1563
1562
  className: "prose-dark dark:prose-lighter mt-4",
1564
- children: /* @__PURE__ */ e(
1563
+ children: /* @__PURE__ */ t(
1565
1564
  J,
1566
1565
  {
1567
1566
  className: "mt-2",
1568
1567
  size: "small",
1569
1568
  onClick: w,
1570
1569
  labelLeft: "Edit Custom Prompts",
1571
- children: /* @__PURE__ */ e(Tt, { size: "size-3", monotone: !0 })
1570
+ children: /* @__PURE__ */ t(Tt, { size: "size-3", monotone: !0 })
1572
1571
  }
1573
1572
  )
1574
1573
  }
1575
1574
  ),
1576
- /* @__PURE__ */ i(
1575
+ /* @__PURE__ */ d(
1577
1576
  P,
1578
1577
  {
1579
1578
  header: "Custom Instructions",
1580
1579
  className: "prose-dark dark:prose-lighter mt-4",
1581
1580
  children: [
1582
- /* @__PURE__ */ i("p", { className: "text-sm", children: [
1581
+ /* @__PURE__ */ d("p", { className: "text-sm", children: [
1583
1582
  "What would you like ",
1584
- /* @__PURE__ */ e("em", { children: ct }),
1583
+ /* @__PURE__ */ t("em", { children: ct }),
1585
1584
  " to know about you to provide better responses?"
1586
1585
  ] }),
1587
- /* @__PURE__ */ e(
1588
- fe,
1586
+ /* @__PURE__ */ t(
1587
+ he,
1589
1588
  {
1590
1589
  mode: "alt-system",
1591
1590
  autoCapitalize: "off",
@@ -1593,7 +1592,7 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1593
1592
  autoCorrect: "off",
1594
1593
  name: "customInstructions",
1595
1594
  label: "Custom Instructions",
1596
- value: k,
1595
+ value: x,
1597
1596
  onChange: (E) => {
1598
1597
  l(E.target.value);
1599
1598
  },
@@ -1603,35 +1602,35 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1603
1602
  ]
1604
1603
  }
1605
1604
  ),
1606
- /* @__PURE__ */ i(
1605
+ /* @__PURE__ */ d(
1607
1606
  P,
1608
1607
  {
1609
1608
  header: "Location",
1610
1609
  className: "prose-dark dark:prose-lighter mt-4",
1611
1610
  children: [
1612
- /* @__PURE__ */ e("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
1613
- /* @__PURE__ */ e(
1614
- fe,
1611
+ /* @__PURE__ */ t("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
1612
+ /* @__PURE__ */ t(
1613
+ he,
1615
1614
  {
1616
1615
  mode: "alt-system",
1617
1616
  name: "location",
1618
1617
  label: "Location",
1619
- value: p,
1618
+ value: f,
1620
1619
  onChange: (E) => {
1621
1620
  T(E.target.value);
1622
1621
  },
1623
1622
  helperText: "Enter your location or press auto-detect."
1624
1623
  }
1625
1624
  ),
1626
- /* @__PURE__ */ e(
1625
+ /* @__PURE__ */ t(
1627
1626
  K,
1628
1627
  {
1629
1628
  className: "mt-2",
1630
1629
  size: "small",
1631
1630
  noBorder: !0,
1632
- disabled: f.loadingLocation,
1631
+ disabled: h.loadingLocation,
1633
1632
  onClick: u,
1634
- children: f.loadingLocation ? "Detecting..." : "Auto-detect"
1633
+ children: h.loadingLocation ? "Detecting..." : "Auto-detect"
1635
1634
  }
1636
1635
  )
1637
1636
  ]
@@ -1640,13 +1639,13 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1640
1639
  ] })
1641
1640
  }
1642
1641
  );
1643
- }, Ar = ({ isComponent: t = !1 }) => {
1644
- const { logout: o } = V(), [n, a] = C(!1), [r, c] = C(!1), [s, d] = C(!1), [m, h] = C(!1), [f, y] = C(!1);
1645
- return /* @__PURE__ */ i(B, { children: [
1646
- /* @__PURE__ */ e(
1642
+ }, Ar = ({ isComponent: e = !1 }) => {
1643
+ const { logout: o } = V(), [n, a] = C(!1), [r, c] = C(!1), [s, i] = C(!1), [m, p] = C(!1), [h, y] = C(!1);
1644
+ return /* @__PURE__ */ d(D, { children: [
1645
+ /* @__PURE__ */ t(
1647
1646
  Pe,
1648
1647
  {
1649
- showConfirmation: f,
1648
+ showConfirmation: h,
1650
1649
  setShowConfirmation: y,
1651
1650
  action: o,
1652
1651
  customStrings: {
@@ -1654,77 +1653,77 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
1654
1653
  cancelAction: "Cancel",
1655
1654
  title: Ae
1656
1655
  },
1657
- children: /* @__PURE__ */ e("p", { children: "Are you sure you want to log out?" })
1656
+ children: /* @__PURE__ */ t("p", { children: "Are you sure you want to log out?" })
1658
1657
  }
1659
1658
  ),
1660
- /* @__PURE__ */ e(Gt, { open: n, onOpenChange: a }),
1661
- /* @__PURE__ */ e(Tr, { open: r, onOpenChange: c }),
1662
- s && /* @__PURE__ */ e(Ft, { open: s, onOpenChange: d }),
1663
- /* @__PURE__ */ e(Dt, { open: m, onOpenChange: h }),
1664
- /* @__PURE__ */ e("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ e(W, { alignHorizontal: "flex-end", alignVertical: "center", children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
1659
+ /* @__PURE__ */ t(Gt, { open: n, onOpenChange: a }),
1660
+ /* @__PURE__ */ t(Tr, { open: r, onOpenChange: c }),
1661
+ s && /* @__PURE__ */ t(Ft, { open: s, onOpenChange: i }),
1662
+ /* @__PURE__ */ t(Dt, { open: m, onOpenChange: p }),
1663
+ /* @__PURE__ */ t("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ t(W, { alignHorizontal: "flex-end", alignVertical: "center", children: /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
1665
1664
  Et,
1666
1665
  {
1667
1666
  label: "Profile, Settings, etc.",
1668
1667
  mode: "light",
1669
1668
  placement: "left",
1670
- trigger: /* @__PURE__ */ i(
1671
- Nt,
1669
+ trigger: /* @__PURE__ */ d(
1670
+ St,
1672
1671
  {
1673
1672
  mode: "dark",
1674
1673
  focusMode: "light",
1675
- trigger: /* @__PURE__ */ e(J, { label: "Settings", children: /* @__PURE__ */ e(zt, {}) }),
1674
+ trigger: /* @__PURE__ */ t(J, { label: "Settings", children: /* @__PURE__ */ t(zt, {}) }),
1676
1675
  defaultPlacement: "bottom-end",
1677
1676
  children: [
1678
- /* @__PURE__ */ e(
1677
+ /* @__PURE__ */ t(
1679
1678
  Q,
1680
1679
  {
1681
1680
  label: "Profile",
1682
1681
  onClick: () => {
1683
1682
  a(!n);
1684
1683
  },
1685
- icon: /* @__PURE__ */ e(Mt, {})
1684
+ icon: /* @__PURE__ */ t(Mt, {})
1686
1685
  }
1687
1686
  ),
1688
- /* @__PURE__ */ e(
1687
+ /* @__PURE__ */ t(
1689
1688
  Q,
1690
1689
  {
1691
1690
  label: "Settings",
1692
1691
  onClick: () => {
1693
1692
  c(!r);
1694
1693
  },
1695
- icon: /* @__PURE__ */ e(Ht, {})
1694
+ icon: /* @__PURE__ */ t(Ht, {})
1696
1695
  }
1697
1696
  ),
1698
- /* @__PURE__ */ e(
1697
+ /* @__PURE__ */ t(
1699
1698
  Q,
1700
1699
  {
1701
1700
  label: "History",
1702
1701
  onClick: () => {
1703
- d(!s);
1702
+ i(!s);
1704
1703
  },
1705
- icon: /* @__PURE__ */ e(Rt, {})
1704
+ icon: /* @__PURE__ */ t(Lt, {})
1706
1705
  }
1707
1706
  ),
1708
- /* @__PURE__ */ e(
1707
+ /* @__PURE__ */ t(
1709
1708
  Q,
1710
1709
  {
1711
1710
  label: "About",
1712
1711
  onClick: () => {
1713
- h(!m);
1712
+ p(!m);
1714
1713
  },
1715
- icon: /* @__PURE__ */ e(Pt, {})
1714
+ icon: /* @__PURE__ */ t(Pt, {})
1716
1715
  }
1717
1716
  ),
1718
- !t && /* @__PURE__ */ i(B, { children: [
1719
- /* @__PURE__ */ e(St, {}),
1720
- /* @__PURE__ */ e(
1717
+ !e && /* @__PURE__ */ d(D, { children: [
1718
+ /* @__PURE__ */ t(Nt, {}),
1719
+ /* @__PURE__ */ t(
1721
1720
  Q,
1722
1721
  {
1723
1722
  label: "Log out",
1724
1723
  onClick: () => {
1725
- y(!f);
1724
+ y(!h);
1726
1725
  },
1727
- icon: /* @__PURE__ */ e("div", { className: "text-red-700", children: /* @__PURE__ */ e(_t, { monotone: !0 }) })
1726
+ icon: /* @__PURE__ */ t("div", { className: "text-red-700", children: /* @__PURE__ */ t(_t, { monotone: !0 }) })
1728
1727
  }
1729
1728
  )
1730
1729
  ] })