@versini/sassysaint 8.33.5 → 8.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.DaPMOsYg.js → AboutChangelog.Dv7B8L0S.js} +2 -2
- package/dist/chunks/{AboutEntry.nDJqOOii.js → AboutEntry.UwFhhIs7.js} +5 -5
- package/dist/chunks/{App.HkhGwSuN.js → App.DVJXfflH.js} +2914 -2778
- package/dist/chunks/{Chart.C00a9mBD.js → Chart.CiDkqY3g.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.ob8UickE.js → ChatBubbleAssistant.D0HECaoz.js} +3 -3
- package/dist/chunks/HistoryEntry.18vtYm7O.js +446 -0
- package/dist/chunks/{LNWAZHJI.BA8xEJS9.js → LNWAZHJI.CJPTHLsr.js} +1 -1
- package/dist/chunks/{ProfileEntry.CYDZFShl.js → ProfileEntry.NGCg95YH.js} +14 -14
- package/dist/chunks/{SettingsEntry.DuDxToUb.js → SettingsEntry.C_DcCf2R.js} +381 -383
- package/dist/chunks/{UsageEntry.CkDPuqmA.js → UsageEntry.DKrlIfru.js} +3 -3
- package/dist/chunks/{index.B8_rjxw5.js → index.B64I2W7q.js} +1065 -1037
- package/dist/chunks/{index.DBys9y5Q.js → index.BjFj5vL4.js} +3 -3
- package/dist/chunks/{index.M53gDba0.js → index.BwILOwas.js} +1 -1
- package/dist/chunks/{index.Cpj3pXr5.js → index.C7sc1QRo.js} +1 -1
- package/dist/chunks/{index.DcWfjwBJ.js → index.CejjIes6.js} +1 -1
- package/dist/chunks/{index.DZ1qvog4.js → index.DmDLWLMi.js} +2 -2
- package/dist/chunks/{useMarkdown.DdL1VDPQ.js → useMarkdown.BmruVgkF.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
- package/dist/chunks/HistoryEntry.BVkVfmMS.js +0 -423
@@ -1,24 +1,24 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { n as
|
3
|
-
import { useUserPreferences as
|
4
|
-
import
|
1
|
+
import { jsxs as v, jsx as s } from "react/jsx-runtime";
|
2
|
+
import { n as Ee, LOCAL_STORAGE_PREFIX as ne, LOCAL_STORAGE_CHAT_DETAILS as Te, LOCAL_STORAGE_SERVICE_WORKER as Ne, isServiceWorkerEnabled as ve, SETTINGS_TITLE as _e, S as V, CARDS as P, APP_NAME as we, C as re, PROMPTS_DESCRIPTION as Ce, L as Se, j as se, getCurrentGeoLocation as Ie, handleServiceWorkerToggle as Ae } from "./index.B64I2W7q.js";
|
3
|
+
import { useUserPreferences as Le, E as le, tt as Re, mutateCall as ce, SERVICE_TYPES as ie } from "./App.DVJXfflH.js";
|
4
|
+
import Oe, { useRef as _, useState as g, useLayoutEffect as j, useMemo as me, useEffect as X, useId as Me, useReducer as De, useCallback as Pe } from "react";
|
5
5
|
import i from "clsx";
|
6
|
-
const
|
7
|
-
function
|
8
|
-
const e =
|
9
|
-
return
|
6
|
+
const fe = "av-text-area", Ge = "av-text-area-wrapper", ae = "av-text-area-helper-text", Be = "av-text-area__control--right", He = "av-text-area__control--left";
|
7
|
+
function Ue() {
|
8
|
+
const e = _(!1);
|
9
|
+
return X(() => (e.current = !0, () => {
|
10
10
|
e.current = !1;
|
11
|
-
}), []),
|
11
|
+
}), []), Pe(() => e.current, []);
|
12
12
|
}
|
13
|
-
function
|
14
|
-
return
|
15
|
-
} : (
|
16
|
-
e.forEach((
|
17
|
-
typeof
|
13
|
+
function Ve(e) {
|
14
|
+
return me(() => e.every((a) => a == null) ? () => {
|
15
|
+
} : (a) => {
|
16
|
+
e.forEach((r) => {
|
17
|
+
typeof r == "function" ? r(a) : r != null && (r.current = a);
|
18
18
|
});
|
19
19
|
}, [...e]);
|
20
20
|
}
|
21
|
-
const
|
21
|
+
const $e = {
|
22
22
|
x: 0,
|
23
23
|
y: 0,
|
24
24
|
width: 0,
|
@@ -28,48 +28,48 @@ const ze = {
|
|
28
28
|
bottom: 0,
|
29
29
|
right: 0
|
30
30
|
};
|
31
|
-
function
|
32
|
-
const
|
31
|
+
function de(e) {
|
32
|
+
const a = Ue(), r = _(0), o = _(null), [t, l] = g($e), c = me(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
|
33
33
|
const u = d[0];
|
34
|
-
u && (cancelAnimationFrame(
|
35
|
-
o.current &&
|
34
|
+
u && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
35
|
+
o.current && a() && l(u.contentRect);
|
36
36
|
}));
|
37
|
-
}), [
|
38
|
-
return
|
39
|
-
c?.disconnect(),
|
37
|
+
}), [a]);
|
38
|
+
return X(() => (o.current && c?.observe(o.current, e), () => {
|
39
|
+
c?.disconnect(), r.current && cancelAnimationFrame(r.current);
|
40
40
|
}), [c, e]), [o, t];
|
41
41
|
}
|
42
|
-
function
|
42
|
+
function Fe({
|
43
43
|
value: e,
|
44
|
-
defaultValue:
|
45
|
-
finalValue:
|
44
|
+
defaultValue: a,
|
45
|
+
finalValue: r,
|
46
46
|
onChange: o = () => {
|
47
47
|
},
|
48
48
|
initialControlledDelay: t = 0
|
49
49
|
}) {
|
50
|
-
const [
|
51
|
-
|
50
|
+
const [l, c] = g(!1), [d, u] = g(
|
51
|
+
a !== void 0 ? a : r
|
52
52
|
), m = (p) => {
|
53
53
|
u(p), o?.(p);
|
54
54
|
};
|
55
|
-
return
|
56
|
-
(async () => e !== void 0 && !
|
55
|
+
return X(() => {
|
56
|
+
(async () => e !== void 0 && !l && t > 0 && (await new Promise(
|
57
57
|
(p) => setTimeout(p, t)
|
58
58
|
), c(!0)))();
|
59
|
-
}, [e, t,
|
59
|
+
}, [e, t, l]), e !== void 0 ? !l && t > 0 ? ["", o, !0] : [e, o, !0] : [d, m, !1];
|
60
60
|
}
|
61
|
-
function
|
62
|
-
const
|
61
|
+
function We(e) {
|
62
|
+
const a = Me();
|
63
63
|
if (!e)
|
64
|
-
return
|
64
|
+
return a;
|
65
65
|
if (typeof e == "number" || typeof e == "string")
|
66
|
-
return `${e}${
|
66
|
+
return `${e}${a}`;
|
67
67
|
if (typeof e == "object") {
|
68
|
-
const { id:
|
69
|
-
return typeof
|
68
|
+
const { id: r, prefix: o = "" } = e;
|
69
|
+
return typeof r == "number" || typeof r == "string" ? `${o}${r}` : `${o}${a}`;
|
70
70
|
}
|
71
71
|
}
|
72
|
-
const
|
72
|
+
const pe = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ze = {
|
73
73
|
alert: null,
|
74
74
|
alertdialog: null,
|
75
75
|
log: "polite",
|
@@ -77,14 +77,14 @@ const ge = "SET_ANNOUNCEMENT", ye = "CLEAR_ANNOUNCEMENT", Ye = {
|
|
77
77
|
progressbar: null,
|
78
78
|
status: "polite",
|
79
79
|
timer: "assertive"
|
80
|
-
},
|
81
|
-
switch (
|
82
|
-
case
|
80
|
+
}, je = (e, a) => {
|
81
|
+
switch (a?.type) {
|
82
|
+
case pe:
|
83
83
|
return {
|
84
84
|
...e,
|
85
|
-
announcement:
|
85
|
+
announcement: a.payload
|
86
86
|
};
|
87
|
-
case
|
87
|
+
case he:
|
88
88
|
return {
|
89
89
|
...e,
|
90
90
|
announcement: null
|
@@ -92,446 +92,443 @@ const ge = "SET_ANNOUNCEMENT", ye = "CLEAR_ANNOUNCEMENT", Ye = {
|
|
92
92
|
default:
|
93
93
|
return e;
|
94
94
|
}
|
95
|
-
},
|
95
|
+
}, Xe = ({
|
96
96
|
onAnnouncementClear: e,
|
97
|
-
dispatch:
|
97
|
+
dispatch: a
|
98
98
|
}) => {
|
99
|
-
|
100
|
-
type:
|
99
|
+
a({
|
100
|
+
type: he
|
101
101
|
}), typeof e == "function" && e();
|
102
|
-
},
|
102
|
+
}, ue = ({
|
103
103
|
children: e,
|
104
|
-
clearAnnouncementDelay:
|
105
|
-
clearAnnouncementTimeoutRef:
|
104
|
+
clearAnnouncementDelay: a,
|
105
|
+
clearAnnouncementTimeoutRef: r,
|
106
106
|
onAnnouncementClear: o,
|
107
107
|
dispatch: t
|
108
108
|
}) => {
|
109
|
-
clearTimeout(
|
110
|
-
type:
|
109
|
+
clearTimeout(r.current), e !== null && t({
|
110
|
+
type: pe,
|
111
111
|
payload: e
|
112
|
-
}),
|
113
|
-
() =>
|
112
|
+
}), a && (r.current = setTimeout(
|
113
|
+
() => Xe({
|
114
114
|
onAnnouncementClear: o,
|
115
115
|
dispatch: t
|
116
116
|
}),
|
117
|
-
|
117
|
+
a
|
118
118
|
));
|
119
|
-
},
|
119
|
+
}, Ye = ({
|
120
120
|
children: e,
|
121
|
-
announcementTimeoutRef:
|
122
|
-
announcementDelay:
|
121
|
+
announcementTimeoutRef: a,
|
122
|
+
announcementDelay: r,
|
123
123
|
clearAnnouncementDelay: o,
|
124
124
|
clearAnnouncementTimeoutRef: t,
|
125
|
-
onAnnouncementClear:
|
125
|
+
onAnnouncementClear: l,
|
126
126
|
dispatch: c
|
127
127
|
}) => {
|
128
|
-
clearTimeout(
|
128
|
+
clearTimeout(a.current), r ? a.current = setTimeout(ue, r, {
|
129
129
|
children: e,
|
130
130
|
clearAnnouncementDelay: o,
|
131
131
|
clearAnnouncementTimeoutRef: t,
|
132
|
-
onAnnouncementClear:
|
132
|
+
onAnnouncementClear: l,
|
133
133
|
dispatch: c
|
134
|
-
}) :
|
134
|
+
}) : ue({
|
135
135
|
children: e,
|
136
136
|
clearAnnouncementDelay: o,
|
137
137
|
clearAnnouncementTimeoutRef: t,
|
138
|
-
onAnnouncementClear:
|
138
|
+
onAnnouncementClear: l,
|
139
139
|
dispatch: c
|
140
140
|
});
|
141
141
|
};
|
142
|
-
function
|
142
|
+
function qe({
|
143
143
|
children: e,
|
144
|
-
className:
|
145
|
-
politeness:
|
144
|
+
className: a,
|
145
|
+
politeness: r,
|
146
146
|
role: o = null,
|
147
147
|
announcementDelay: t,
|
148
|
-
clearAnnouncementDelay:
|
148
|
+
clearAnnouncementDelay: l,
|
149
149
|
onAnnouncementClear: c,
|
150
150
|
visible: d,
|
151
151
|
...u
|
152
152
|
}) {
|
153
|
-
const m =
|
153
|
+
const m = _(null), p = _(null), [b, S] = De(je, {
|
154
154
|
announcement: null
|
155
155
|
});
|
156
|
-
let
|
157
|
-
typeof
|
158
|
-
|
156
|
+
let w = r;
|
157
|
+
typeof w > "u" && (w = o ? ze[o] : "assertive"), X(() => {
|
158
|
+
Ye({
|
159
159
|
announcementTimeoutRef: m,
|
160
160
|
announcementDelay: t,
|
161
161
|
children: e,
|
162
|
-
clearAnnouncementDelay:
|
162
|
+
clearAnnouncementDelay: l,
|
163
163
|
clearAnnouncementTimeoutRef: p,
|
164
164
|
onAnnouncementClear: c,
|
165
|
-
dispatch:
|
165
|
+
dispatch: S
|
166
166
|
});
|
167
167
|
}, [
|
168
168
|
e,
|
169
169
|
t,
|
170
|
-
|
170
|
+
l,
|
171
171
|
c
|
172
172
|
]);
|
173
|
-
const f = i(
|
173
|
+
const f = i(a, {
|
174
174
|
"sr-only": !d
|
175
175
|
});
|
176
|
-
return /* @__PURE__ */
|
176
|
+
return /* @__PURE__ */ s(
|
177
177
|
"div",
|
178
178
|
{
|
179
|
-
"aria-live":
|
179
|
+
"aria-live": w,
|
180
180
|
...o && { role: o },
|
181
181
|
className: f,
|
182
182
|
...u,
|
183
|
-
children:
|
183
|
+
children: b.announcement
|
184
184
|
}
|
185
185
|
);
|
186
186
|
}
|
187
187
|
/*!
|
188
|
-
@versini/ui-liveregion v2.0.
|
188
|
+
@versini/ui-liveregion v2.0.7
|
189
189
|
© 2025 gizmette.com
|
190
190
|
*/
|
191
191
|
try {
|
192
192
|
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
193
|
-
version: "2.0.
|
194
|
-
buildTime: "07/
|
193
|
+
version: "2.0.7",
|
194
|
+
buildTime: "08/07/2025 04:11 PM EDT",
|
195
195
|
homepage: "https://github.com/aversini/ui-components",
|
196
196
|
license: "MIT"
|
197
197
|
});
|
198
198
|
} catch {
|
199
199
|
}
|
200
|
-
const
|
200
|
+
const Ke = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Je = ({ mode: e }) => i({
|
201
201
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
202
202
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
203
203
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
204
204
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
205
|
-
}),
|
205
|
+
}), Ze = ({
|
206
206
|
focusMode: e
|
207
207
|
}) => i("focus:outline focus:outline-2 focus:outline-offset-2", {
|
208
208
|
"focus:outline-focus-dark": e === "dark",
|
209
209
|
"focus:outline-focus-light": e === "light",
|
210
210
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
211
211
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
212
|
-
}),
|
212
|
+
}), Qe = ({
|
213
213
|
noBorder: e,
|
214
|
-
error:
|
214
|
+
error: a
|
215
215
|
}) => i("border-2", {
|
216
|
-
"border-border-dark": !e && !
|
217
|
-
"focus:border-border-dark": !e &&
|
218
|
-
"border-border-error-dark": !e &&
|
216
|
+
"border-border-dark": !e && !a,
|
217
|
+
"focus:border-border-dark": !e && a,
|
218
|
+
"border-border-error-dark": !e && a,
|
219
219
|
"border-transparent": e
|
220
|
-
}),
|
220
|
+
}), et = ({
|
221
221
|
disabled: e,
|
222
|
-
raw:
|
223
|
-
error:
|
222
|
+
raw: a,
|
223
|
+
error: r,
|
224
224
|
mode: o,
|
225
225
|
leftElement: t,
|
226
|
-
rightElement:
|
226
|
+
rightElement: l
|
227
227
|
}) => {
|
228
|
-
if (
|
228
|
+
if (a)
|
229
229
|
return "";
|
230
230
|
if (e)
|
231
231
|
return i(
|
232
232
|
"transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium",
|
233
233
|
{
|
234
|
-
"translate-x-[12px]":
|
234
|
+
"translate-x-[12px]": l === !0 && !t || !l && !t
|
235
235
|
}
|
236
236
|
);
|
237
|
-
if (!
|
237
|
+
if (!r)
|
238
238
|
return i(
|
239
239
|
"absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
|
240
240
|
{
|
241
|
-
"translate-x-[12px]":
|
241
|
+
"translate-x-[12px]": l === !0 && !t || !l && !t,
|
242
242
|
"text-copy-medium": o === "dark",
|
243
243
|
"text-copy-dark": o === "light",
|
244
244
|
"text-copy-dark dark:text-copy-medium": o === "system",
|
245
245
|
"text-copy-medium dark:text-copy-dark": o === "alt-system"
|
246
246
|
}
|
247
247
|
);
|
248
|
-
if (
|
248
|
+
if (r)
|
249
249
|
return i(
|
250
250
|
"absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
|
251
251
|
{
|
252
|
-
"translate-x-[12px]":
|
252
|
+
"translate-x-[12px]": l === !0 && !t || !l && !t,
|
253
253
|
"text-copy-medium": o === "dark",
|
254
254
|
"text-copy-error-dark": o === "light",
|
255
255
|
"text-copy-error-dark dark:text-copy-error-light": o === "system",
|
256
256
|
"text-copy-medium dark:text-copy-error-dark": o === "alt-system"
|
257
257
|
}
|
258
258
|
);
|
259
|
-
},
|
259
|
+
}, tt = ({
|
260
260
|
error: e,
|
261
|
-
raw:
|
262
|
-
mode:
|
261
|
+
raw: a,
|
262
|
+
mode: r,
|
263
263
|
disabled: o
|
264
264
|
}) => {
|
265
|
-
if (
|
265
|
+
if (a)
|
266
266
|
return "";
|
267
267
|
if (o)
|
268
268
|
return i(
|
269
|
-
|
269
|
+
ae,
|
270
270
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
271
271
|
);
|
272
272
|
if (!e)
|
273
|
-
return i(
|
274
|
-
"text-copy-medium":
|
275
|
-
"text-copy-dark":
|
276
|
-
"text-copy-dark dark:text-copy-medium":
|
277
|
-
"text-copy-medium dark:text-copy-dark":
|
273
|
+
return i(ae, "absolute px-2 font-medium", {
|
274
|
+
"text-copy-medium": r === "dark",
|
275
|
+
"text-copy-dark": r === "light",
|
276
|
+
"text-copy-dark dark:text-copy-medium": r === "system",
|
277
|
+
"text-copy-medium dark:text-copy-dark": r === "alt-system"
|
278
278
|
});
|
279
279
|
if (e)
|
280
|
-
return i(
|
281
|
-
"text-copy-error-light":
|
282
|
-
"text-copy-error-dark":
|
283
|
-
"text-copy-error-dark dark:text-copy-error-light":
|
284
|
-
"dark:text-copy-error-dark text-copy-error-light":
|
280
|
+
return i(ae, "absolute px-2 font-medium", {
|
281
|
+
"text-copy-error-light": r === "dark",
|
282
|
+
"text-copy-error-dark": r === "light",
|
283
|
+
"text-copy-error-dark dark:text-copy-error-light": r === "system",
|
284
|
+
"dark:text-copy-error-dark text-copy-error-light": r === "alt-system"
|
285
285
|
});
|
286
|
-
},
|
286
|
+
}, rt = ({
|
287
287
|
className: e,
|
288
|
-
textAreaClassName:
|
289
|
-
raw:
|
288
|
+
textAreaClassName: a,
|
289
|
+
raw: r,
|
290
290
|
focusMode: o,
|
291
291
|
disabled: t,
|
292
|
-
noBorder:
|
292
|
+
noBorder: l,
|
293
293
|
error: c,
|
294
294
|
mode: d,
|
295
295
|
leftElement: u,
|
296
296
|
rightElement: m
|
297
297
|
}) => {
|
298
|
-
const p =
|
298
|
+
const p = r ? e : i(
|
299
299
|
"relative flex w-full flex-col justify-center",
|
300
|
-
|
300
|
+
Ge,
|
301
301
|
e
|
302
|
-
),
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
noBorder:
|
302
|
+
), b = r ? i(a) : i(
|
303
|
+
fe,
|
304
|
+
a,
|
305
|
+
Ke(),
|
306
|
+
Je({ mode: d }),
|
307
|
+
Ze({ focusMode: o }),
|
308
|
+
Qe({
|
309
|
+
noBorder: l,
|
310
310
|
error: c
|
311
311
|
}),
|
312
312
|
{
|
313
313
|
"disabled:cursor-not-allowed disabled:opacity-50": t
|
314
314
|
}
|
315
|
-
),
|
315
|
+
), S = r ? void 0 : "sr-only", w = et({
|
316
316
|
disabled: t,
|
317
|
-
raw:
|
317
|
+
raw: r,
|
318
318
|
error: c,
|
319
319
|
mode: d,
|
320
320
|
rightElement: m,
|
321
321
|
leftElement: u
|
322
|
-
}), f =
|
322
|
+
}), f = tt({
|
323
323
|
error: c,
|
324
|
-
raw:
|
324
|
+
raw: r,
|
325
325
|
mode: d,
|
326
326
|
disabled: t
|
327
|
-
}),
|
327
|
+
}), I = r ? void 0 : i(Be, "absolute"), k = r ? void 0 : i(He, "absolute");
|
328
328
|
return {
|
329
329
|
wrapper: p,
|
330
|
-
textArea:
|
331
|
-
accessibleLabel:
|
332
|
-
visibleLabel:
|
330
|
+
textArea: b,
|
331
|
+
accessibleLabel: S,
|
332
|
+
visibleLabel: w,
|
333
333
|
helperText: f,
|
334
|
-
rightElement:
|
335
|
-
leftElement:
|
334
|
+
rightElement: I,
|
335
|
+
leftElement: k
|
336
336
|
};
|
337
|
-
},
|
337
|
+
}, at = ({
|
338
338
|
scrollHeight: e,
|
339
|
-
currentHeight:
|
340
|
-
currentLabelOffset:
|
339
|
+
currentHeight: a,
|
340
|
+
currentLabelOffset: r = 0,
|
341
341
|
currentHelperTextOffset: o = 0
|
342
342
|
}) => {
|
343
|
-
let t,
|
344
|
-
if (e > 0 && e !==
|
345
|
-
const c = e -
|
346
|
-
t =
|
343
|
+
let t, l;
|
344
|
+
if (e > 0 && e !== a) {
|
345
|
+
const c = e - a, d = Math.abs(c / 24);
|
346
|
+
t = r + -1 * Math.sign(c) * (12 * d), l = o + Math.sign(c) * (12 * d);
|
347
347
|
}
|
348
348
|
return {
|
349
349
|
labelOffset: t,
|
350
|
-
helperTextOffset:
|
350
|
+
helperTextOffset: l,
|
351
351
|
scrollHeight: e
|
352
352
|
};
|
353
|
-
},
|
353
|
+
}, oe = Oe.forwardRef(
|
354
354
|
({
|
355
355
|
id: e,
|
356
|
-
name:
|
357
|
-
label:
|
356
|
+
name: a,
|
357
|
+
label: r,
|
358
358
|
error: o = !1,
|
359
359
|
raw: t = !1,
|
360
|
-
className:
|
360
|
+
className: l,
|
361
361
|
textAreaClassName: c,
|
362
362
|
mode: d = "system",
|
363
363
|
focusMode: u = "system",
|
364
364
|
value: m,
|
365
365
|
defaultValue: p,
|
366
|
-
disabled:
|
367
|
-
noBorder:
|
368
|
-
labelId:
|
366
|
+
disabled: b = !1,
|
367
|
+
noBorder: S = !1,
|
368
|
+
labelId: w,
|
369
369
|
helperText: f = "",
|
370
|
-
helperTextOnFocus:
|
371
|
-
rightElement:
|
372
|
-
leftElement:
|
370
|
+
helperTextOnFocus: I = !1,
|
371
|
+
rightElement: k,
|
372
|
+
leftElement: C,
|
373
373
|
onChange: $,
|
374
|
-
onFocus:
|
374
|
+
onFocus: Y,
|
375
375
|
onBlur: F,
|
376
|
-
...
|
377
|
-
},
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
className: s,
|
376
|
+
...q
|
377
|
+
}, K) => {
|
378
|
+
const x = _(null), J = Ve([K, x]), [Z, B] = de(), [Q, A] = de(), W = _(80), z = _(-25), L = _(null), n = _(30), h = _(null), E = We({ id: e, prefix: `${fe}-` }), [H, R] = g(0), [y, T] = g(0), [M, U] = g(
|
379
|
+
!!(!I && f)
|
380
|
+
), ee = `${a} error, ${f}`, D = rt({
|
381
|
+
className: l,
|
383
382
|
textAreaClassName: c,
|
384
383
|
error: o,
|
385
384
|
raw: t,
|
386
385
|
focusMode: u,
|
387
|
-
disabled:
|
388
|
-
noBorder:
|
386
|
+
disabled: b,
|
387
|
+
noBorder: S,
|
389
388
|
mode: d,
|
390
|
-
rightElement: !!
|
391
|
-
leftElement: !!
|
392
|
-
}), [O,
|
389
|
+
rightElement: !!k,
|
390
|
+
leftElement: !!C
|
391
|
+
}), [O, ge] = Fe({
|
393
392
|
value: m,
|
394
393
|
initialControlledDelay: 20,
|
395
394
|
defaultValue: p,
|
396
|
-
onChange: (
|
395
|
+
onChange: (N) => {
|
397
396
|
$ && $({
|
398
397
|
target: {
|
399
|
-
value:
|
398
|
+
value: N
|
400
399
|
}
|
401
400
|
});
|
402
401
|
}
|
403
|
-
}),
|
404
|
-
|
405
|
-
},
|
406
|
-
|
407
|
-
},
|
408
|
-
|
402
|
+
}), ye = (N) => {
|
403
|
+
ge(N.target.value);
|
404
|
+
}, be = (N) => {
|
405
|
+
I && f && U(!0), Y && Y(N);
|
406
|
+
}, ke = (N) => {
|
407
|
+
I && f && !O && U(!1), F && F(N);
|
409
408
|
};
|
410
|
-
return
|
411
|
-
B && B.width &&
|
412
|
-
}, [B]),
|
413
|
-
|
414
|
-
}, [
|
415
|
-
t ||
|
416
|
-
}, [O, t]),
|
409
|
+
return j(() => {
|
410
|
+
B && B.width && R(B.width + 18 + 10);
|
411
|
+
}, [B]), j(() => {
|
412
|
+
A && A.width && T(A.width + 18 + 10);
|
413
|
+
}, [A]), j(() => {
|
414
|
+
t || x && x.current && O !== void 0 && (x.current.style.height = "inherit", x.current.style.height = x.current.scrollHeight + "px");
|
415
|
+
}, [O, t]), j(() => {
|
417
416
|
t || setTimeout(() => {
|
418
|
-
|
419
|
-
(g = n?.current) == null || g.style.setProperty(
|
417
|
+
L?.current?.style.setProperty(
|
420
418
|
"--av-text-area-wrapper-transition",
|
421
419
|
O ? "none" : "all 0.2s ease-out"
|
422
420
|
);
|
423
421
|
}, 0);
|
424
|
-
}, [O, t]),
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
currentHelperTextOffset: h.current
|
422
|
+
}, [O, t]), j(() => {
|
423
|
+
if (!t && x && x.current && O !== void 0) {
|
424
|
+
const { labelOffset: N, helperTextOffset: te, scrollHeight: xe } = at({
|
425
|
+
scrollHeight: x.current.scrollHeight,
|
426
|
+
currentHeight: W.current,
|
427
|
+
currentLabelOffset: z.current,
|
428
|
+
currentHelperTextOffset: n.current
|
432
429
|
});
|
433
|
-
|
430
|
+
N && (z.current = N, L?.current?.style.setProperty(
|
434
431
|
"--av-text-area-label",
|
435
|
-
`${
|
436
|
-
)),
|
432
|
+
`${N}px`
|
433
|
+
)), te && (n.current = te, h?.current?.style.setProperty(
|
437
434
|
"--av-text-area-helper-text",
|
438
|
-
`${
|
439
|
-
)),
|
435
|
+
`${te}px`
|
436
|
+
)), W.current = xe || W.current;
|
440
437
|
}
|
441
|
-
}, [O, t]),
|
438
|
+
}, [O, t]), A.width > 0 && L?.current?.style.setProperty(
|
442
439
|
"--tw-translate-x",
|
443
|
-
`${12 +
|
444
|
-
)
|
445
|
-
/* @__PURE__ */
|
440
|
+
`${12 + A.width + 5}px`
|
441
|
+
), /* @__PURE__ */ v("div", { className: D.wrapper, children: [
|
442
|
+
/* @__PURE__ */ s(
|
446
443
|
"label",
|
447
444
|
{
|
448
|
-
htmlFor:
|
449
|
-
id:
|
445
|
+
htmlFor: E,
|
446
|
+
id: w,
|
450
447
|
className: D.accessibleLabel,
|
451
|
-
children:
|
448
|
+
children: r
|
452
449
|
}
|
453
450
|
),
|
454
|
-
|
451
|
+
C && /* @__PURE__ */ s(
|
455
452
|
"div",
|
456
453
|
{
|
457
|
-
ref:
|
454
|
+
ref: Q,
|
458
455
|
className: D.leftElement,
|
459
|
-
children:
|
456
|
+
children: C
|
460
457
|
}
|
461
458
|
),
|
462
|
-
/* @__PURE__ */
|
459
|
+
/* @__PURE__ */ s(
|
463
460
|
"textarea",
|
464
461
|
{
|
465
462
|
ref: J,
|
466
|
-
id:
|
467
|
-
name:
|
468
|
-
disabled:
|
463
|
+
id: E,
|
464
|
+
name: a,
|
465
|
+
disabled: b,
|
469
466
|
placeholder: t ? void 0 : " ",
|
470
467
|
className: D.textArea,
|
471
468
|
rows: 1,
|
472
|
-
...f && { "aria-describedby": `${
|
469
|
+
...f && { "aria-describedby": `${E}-helper` },
|
473
470
|
...o && { "aria-invalid": "true" },
|
474
|
-
...
|
475
|
-
...
|
476
|
-
...
|
471
|
+
...k && !C && !t && { style: { paddingRight: H } },
|
472
|
+
...C && !k && !t && { style: { paddingLeft: y } },
|
473
|
+
...k && C && !t && {
|
477
474
|
style: {
|
478
|
-
paddingRight:
|
479
|
-
paddingLeft:
|
475
|
+
paddingRight: H,
|
476
|
+
paddingLeft: y
|
480
477
|
}
|
481
478
|
},
|
482
479
|
value: O,
|
483
|
-
onChange:
|
484
|
-
onFocus:
|
485
|
-
onBlur:
|
486
|
-
...
|
480
|
+
onChange: ye,
|
481
|
+
onFocus: be,
|
482
|
+
onBlur: ke,
|
483
|
+
...q
|
487
484
|
}
|
488
485
|
),
|
489
|
-
!t && /* @__PURE__ */
|
486
|
+
!t && /* @__PURE__ */ s(
|
490
487
|
"label",
|
491
488
|
{
|
492
|
-
ref:
|
489
|
+
ref: L,
|
493
490
|
"aria-hidden": !0,
|
494
|
-
htmlFor:
|
491
|
+
htmlFor: E,
|
495
492
|
className: `${D.visibleLabel}`,
|
496
|
-
children:
|
493
|
+
children: r
|
497
494
|
}
|
498
495
|
),
|
499
|
-
|
496
|
+
M && /* @__PURE__ */ s(
|
500
497
|
"div",
|
501
498
|
{
|
502
|
-
ref:
|
503
|
-
id: `${
|
499
|
+
ref: h,
|
500
|
+
id: `${E}-helper`,
|
504
501
|
className: D.helperText,
|
505
502
|
children: f
|
506
503
|
}
|
507
504
|
),
|
508
|
-
|
505
|
+
k && /* @__PURE__ */ s(
|
509
506
|
"div",
|
510
507
|
{
|
511
508
|
ref: Z,
|
512
509
|
className: D.rightElement,
|
513
|
-
children:
|
510
|
+
children: k
|
514
511
|
}
|
515
512
|
),
|
516
|
-
o && f && /* @__PURE__ */
|
513
|
+
o && f && /* @__PURE__ */ s(qe, { politeness: "polite", clearAnnouncementDelay: 500, children: ee })
|
517
514
|
] });
|
518
515
|
}
|
519
516
|
);
|
520
|
-
|
517
|
+
oe.displayName = "TextArea";
|
521
518
|
/*!
|
522
|
-
@versini/ui-textarea v4.0.
|
519
|
+
@versini/ui-textarea v4.0.7
|
523
520
|
© 2025 gizmette.com
|
524
521
|
*/
|
525
522
|
try {
|
526
523
|
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
527
|
-
version: "4.0.
|
528
|
-
buildTime: "07/
|
524
|
+
version: "4.0.7",
|
525
|
+
buildTime: "08/07/2025 04:11 PM EDT",
|
529
526
|
homepage: "https://github.com/aversini/ui-components",
|
530
527
|
license: "MIT"
|
531
528
|
});
|
532
529
|
} catch {
|
533
530
|
}
|
534
|
-
const
|
531
|
+
const ot = "av-toggle", nt = () => i("peer", "h-6", "w-11", "rounded-full"), st = ({
|
535
532
|
focusMode: e
|
536
533
|
}) => i(
|
537
534
|
"peer-focus:outline",
|
@@ -543,14 +540,14 @@ const st = "av-toggle", ct = () => i("peer", "h-6", "w-11", "rounded-full"), it
|
|
543
540
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
544
541
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
545
542
|
}
|
546
|
-
),
|
543
|
+
), lt = () => i(
|
547
544
|
"peer-checked:after:translate-x-full",
|
548
545
|
// background color when checked
|
549
546
|
"peer-checked:bg-violet-500",
|
550
547
|
// knob circle and border color when checked
|
551
548
|
"peer-checked:after:bg-white",
|
552
549
|
"peer-checked:after:border-white"
|
553
|
-
),
|
550
|
+
), ct = () => i(
|
554
551
|
"after:left-[2px]",
|
555
552
|
"after:top-[2px]",
|
556
553
|
"after:border",
|
@@ -562,66 +559,66 @@ const st = "av-toggle", ct = () => i("peer", "h-6", "w-11", "rounded-full"), it
|
|
562
559
|
"after:rounded-full",
|
563
560
|
"after:transition-all",
|
564
561
|
"after:content-['']"
|
565
|
-
),
|
562
|
+
), it = ({
|
566
563
|
mode: e,
|
567
|
-
noBorder:
|
564
|
+
noBorder: a
|
568
565
|
}) => i({
|
569
|
-
border: !
|
566
|
+
border: !a,
|
570
567
|
"border-border-dark bg-surface-medium": e === "light",
|
571
568
|
"border-border-light bg-surface-darker": e === "dark",
|
572
569
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
573
570
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
574
|
-
}),
|
571
|
+
}), dt = ({
|
575
572
|
mode: e,
|
576
|
-
labelHidden:
|
577
|
-
}) =>
|
573
|
+
labelHidden: a
|
574
|
+
}) => a ? "sr-only" : i("ml-2 text-sm", {
|
578
575
|
"text-copy-dark": e === "light",
|
579
576
|
"text-copy-lighter": e === "dark",
|
580
577
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
581
578
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
582
|
-
}),
|
583
|
-
|
579
|
+
}), ut = ({ className: e }) => i(
|
580
|
+
ot,
|
584
581
|
"relative flex cursor-pointer items-center",
|
585
582
|
e
|
586
|
-
),
|
583
|
+
), mt = ({
|
587
584
|
mode: e,
|
588
|
-
focusMode:
|
589
|
-
labelHidden:
|
585
|
+
focusMode: a,
|
586
|
+
labelHidden: r,
|
590
587
|
className: o,
|
591
588
|
noBorder: t
|
592
589
|
}) => ({
|
593
590
|
toggle: i(
|
591
|
+
nt(),
|
592
|
+
it({ mode: e, noBorder: t }),
|
593
|
+
st({ focusMode: a }),
|
594
594
|
ct(),
|
595
|
-
|
596
|
-
it({ focusMode: r }),
|
597
|
-
ut(),
|
598
|
-
dt()
|
595
|
+
lt()
|
599
596
|
),
|
600
|
-
label:
|
597
|
+
label: dt({ mode: e, labelHidden: r }),
|
601
598
|
input: "peer sr-only",
|
602
|
-
wrapper:
|
599
|
+
wrapper: ut({ className: o })
|
603
600
|
}), G = ({
|
604
601
|
checked: e = !1,
|
605
|
-
onChange:
|
606
|
-
label:
|
602
|
+
onChange: a,
|
603
|
+
label: r,
|
607
604
|
labelHidden: o = !1,
|
608
605
|
name: t,
|
609
|
-
mode:
|
606
|
+
mode: l = "system",
|
610
607
|
focusMode: c = "system",
|
611
608
|
className: d,
|
612
609
|
noBorder: u = !1
|
613
610
|
}) => {
|
614
|
-
const m =
|
615
|
-
mode:
|
611
|
+
const m = mt({
|
612
|
+
mode: l,
|
616
613
|
focusMode: c,
|
617
614
|
labelHidden: o,
|
618
615
|
className: d,
|
619
616
|
noBorder: u
|
620
|
-
}), p = (
|
621
|
-
|
617
|
+
}), p = (b) => {
|
618
|
+
a?.(b.target.checked);
|
622
619
|
};
|
623
|
-
return /* @__PURE__ */
|
624
|
-
/* @__PURE__ */
|
620
|
+
return /* @__PURE__ */ v("label", { className: m.wrapper, children: [
|
621
|
+
/* @__PURE__ */ s(
|
625
622
|
"input",
|
626
623
|
{
|
627
624
|
name: t,
|
@@ -631,155 +628,155 @@ const st = "av-toggle", ct = () => i("peer", "h-6", "w-11", "rounded-full"), it
|
|
631
628
|
onChange: p
|
632
629
|
}
|
633
630
|
),
|
634
|
-
/* @__PURE__ */
|
635
|
-
/* @__PURE__ */
|
631
|
+
/* @__PURE__ */ s("div", { className: m.toggle }),
|
632
|
+
/* @__PURE__ */ s("span", { className: m.label, children: r })
|
636
633
|
] });
|
637
634
|
};
|
638
635
|
/*!
|
639
|
-
@versini/ui-toggle v4.0.
|
636
|
+
@versini/ui-toggle v4.0.6
|
640
637
|
© 2025 gizmette.com
|
641
638
|
*/
|
642
639
|
try {
|
643
640
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
644
|
-
version: "4.0.
|
645
|
-
buildTime: "
|
641
|
+
version: "4.0.6",
|
642
|
+
buildTime: "08/07/2025 04:11 PM EDT",
|
646
643
|
homepage: "https://github.com/aversini/ui-components",
|
647
644
|
license: "MIT"
|
648
645
|
});
|
649
646
|
} catch {
|
650
647
|
}
|
651
|
-
const
|
648
|
+
const bt = ({
|
652
649
|
open: e,
|
653
|
-
onOpenChange:
|
650
|
+
onOpenChange: a
|
654
651
|
}) => {
|
655
|
-
const { getAccessToken:
|
652
|
+
const { getAccessToken: r, user: o } = Ee(), {
|
656
653
|
data: t,
|
657
|
-
isSuccess:
|
654
|
+
isSuccess: l,
|
658
655
|
refetch: c
|
659
|
-
} =
|
656
|
+
} = Le({
|
660
657
|
user: o?.username,
|
661
|
-
getAccessToken:
|
662
|
-
}), [d, u] =
|
658
|
+
getAccessToken: r
|
659
|
+
}), [d, u] = g({
|
663
660
|
loadingLocation: !1
|
664
|
-
}), [m, p] =
|
661
|
+
}), [m, p] = g({
|
665
662
|
prompts: []
|
666
|
-
}), [
|
667
|
-
key:
|
663
|
+
}), [b, S] = g(""), [w, f] = g(""), [I, k] = g(!1), [C, $] = g(!1), [Y, F] = g(!1), [q, K] = le({
|
664
|
+
key: ne + Te,
|
668
665
|
initialValue: !1
|
669
|
-
}), [,
|
670
|
-
key:
|
666
|
+
}), [, x] = le({
|
667
|
+
key: ne + Ne,
|
671
668
|
initialValue: !1
|
672
|
-
}),
|
673
|
-
|
674
|
-
}, J = (n) => {
|
675
|
-
x(n);
|
669
|
+
}), J = (n) => {
|
670
|
+
K(n);
|
676
671
|
}, Z = (n) => {
|
672
|
+
k(n);
|
673
|
+
}, B = (n) => {
|
677
674
|
$(n);
|
678
|
-
},
|
679
|
-
|
680
|
-
},
|
675
|
+
}, Q = async (n) => {
|
676
|
+
x(n), F(n), await Ae(n);
|
677
|
+
}, A = async (n) => {
|
681
678
|
n.preventDefault();
|
682
679
|
try {
|
683
|
-
await
|
684
|
-
accessToken: await
|
685
|
-
type:
|
680
|
+
await ce({
|
681
|
+
accessToken: await r(),
|
682
|
+
type: ie.SET_USER_PREFERENCES,
|
686
683
|
params: {
|
687
684
|
user: o?.username,
|
688
|
-
instructions:
|
689
|
-
location:
|
685
|
+
instructions: b,
|
686
|
+
location: w,
|
690
687
|
provider: t?.provider,
|
691
688
|
tags: m.prompts,
|
692
|
-
sendOnEnter:
|
693
|
-
useMemory:
|
689
|
+
sendOnEnter: I,
|
690
|
+
useMemory: C
|
694
691
|
}
|
695
692
|
}), c(), u({
|
696
693
|
loadingLocation: !1
|
697
694
|
});
|
698
695
|
} catch {
|
699
696
|
}
|
700
|
-
},
|
697
|
+
}, W = async () => {
|
701
698
|
u({
|
702
699
|
loadingLocation: !0
|
703
700
|
}), f("...");
|
704
701
|
try {
|
705
|
-
const n = Date.now(), h = await
|
706
|
-
accessToken: await
|
707
|
-
type:
|
702
|
+
const n = Date.now(), h = await Ie(), E = await ce({
|
703
|
+
accessToken: await r(),
|
704
|
+
type: ie.GET_LOCATION,
|
708
705
|
params: {
|
709
706
|
latitude: h.latitude,
|
710
707
|
longitude: h.longitude
|
711
708
|
}
|
712
|
-
}),
|
713
|
-
if (
|
714
|
-
const { city:
|
709
|
+
}), R = Date.now() - n;
|
710
|
+
if (R < 2e3 && await new Promise((y) => setTimeout(y, 2e3 - R)), E.status === 200) {
|
711
|
+
const { city: y, state: T, country: M, displayName: U } = E.data, ee = y && T && M ? `${y}, ${T}, ${M}` : U;
|
715
712
|
u({
|
716
713
|
loadingLocation: !1
|
717
|
-
}), f(
|
714
|
+
}), f(ee);
|
718
715
|
} else
|
719
716
|
u({
|
720
717
|
loadingLocation: !1
|
721
718
|
});
|
722
719
|
} catch {
|
723
720
|
}
|
724
|
-
},
|
725
|
-
c(),
|
726
|
-
},
|
721
|
+
}, z = () => {
|
722
|
+
c(), a(!1);
|
723
|
+
}, L = ({
|
727
724
|
enabled: n = !1,
|
728
725
|
privateChat: h = !1,
|
729
|
-
clipboardAccess:
|
730
|
-
...
|
726
|
+
clipboardAccess: E = !1,
|
727
|
+
...H
|
731
728
|
}) => {
|
732
|
-
p((
|
733
|
-
const
|
734
|
-
...
|
729
|
+
p((R) => {
|
730
|
+
const y = R.prompts, T = {
|
731
|
+
...H,
|
735
732
|
enabled: n,
|
736
733
|
privateChat: h,
|
737
|
-
clipboardAccess:
|
734
|
+
clipboardAccess: E
|
738
735
|
};
|
739
|
-
|
740
|
-
const M =
|
736
|
+
E ? T.content = T.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : T.content = T.content.replace(/{{clipboard}}/g, "");
|
737
|
+
const M = y.findIndex((U) => U.slot === H.slot);
|
741
738
|
return M === -1 ? {
|
742
|
-
...
|
743
|
-
prompts: [...
|
744
|
-
} : (
|
745
|
-
...
|
746
|
-
prompts: [...
|
739
|
+
...R,
|
740
|
+
prompts: [...y, { ...T }]
|
741
|
+
} : (y[M] = T, {
|
742
|
+
...R,
|
743
|
+
prompts: [...y]
|
747
744
|
});
|
748
745
|
});
|
749
746
|
};
|
750
|
-
return
|
751
|
-
t?.instructions &&
|
752
|
-
}, [t]),
|
753
|
-
|
747
|
+
return X(() => {
|
748
|
+
t?.instructions && S(t.instructions), t?.location && f(t.location), t?.tags && p({ prompts: t.tags }), t?.sendOnEnter !== void 0 && k(t.sendOnEnter), t?.useMemory !== void 0 && $(t.useMemory), F(ve());
|
749
|
+
}, [t]), l ? /* @__PURE__ */ v(
|
750
|
+
Re,
|
754
751
|
{
|
755
752
|
open: e,
|
756
|
-
onOpenChange:
|
757
|
-
title:
|
758
|
-
footer: /* @__PURE__ */
|
759
|
-
|
753
|
+
onOpenChange: z,
|
754
|
+
title: _e,
|
755
|
+
footer: /* @__PURE__ */ v(
|
756
|
+
Se,
|
760
757
|
{
|
761
758
|
columnGap: 2,
|
762
759
|
alignHorizontal: "flex-end",
|
763
760
|
className: "pb-8 sm:pb-0",
|
764
761
|
children: [
|
765
|
-
/* @__PURE__ */
|
766
|
-
|
762
|
+
/* @__PURE__ */ s(se, { children: /* @__PURE__ */ s(
|
763
|
+
re,
|
767
764
|
{
|
768
765
|
mode: "dark",
|
769
766
|
variant: "secondary",
|
770
767
|
focusMode: "light",
|
771
|
-
|
768
|
+
noBorder: !0,
|
769
|
+
onClick: z,
|
772
770
|
children: "Cancel"
|
773
771
|
}
|
774
772
|
) }),
|
775
|
-
/* @__PURE__ */
|
776
|
-
|
773
|
+
/* @__PURE__ */ s(se, { children: /* @__PURE__ */ s(
|
774
|
+
re,
|
777
775
|
{
|
778
776
|
mode: "dark",
|
779
|
-
variant: "danger",
|
780
777
|
focusMode: "light",
|
781
778
|
onClick: async (n) => {
|
782
|
-
|
779
|
+
a(!1), await A(n);
|
783
780
|
},
|
784
781
|
children: "Save"
|
785
782
|
}
|
@@ -788,64 +785,64 @@ const Et = ({
|
|
788
785
|
}
|
789
786
|
),
|
790
787
|
children: [
|
791
|
-
/* @__PURE__ */
|
792
|
-
|
788
|
+
/* @__PURE__ */ v(
|
789
|
+
V,
|
793
790
|
{
|
794
791
|
header: P.SETTINGS_DETAILS.TITLE,
|
795
792
|
className: "prose-dark dark:prose-lighter",
|
796
793
|
children: [
|
797
|
-
/* @__PURE__ */
|
798
|
-
/* @__PURE__ */
|
794
|
+
/* @__PURE__ */ s("p", { className: "text-sm", children: P.SETTINGS_DETAILS.DETAILS }),
|
795
|
+
/* @__PURE__ */ s(
|
799
796
|
G,
|
800
797
|
{
|
801
798
|
className: "mt-2",
|
802
799
|
noBorder: !0,
|
803
800
|
label: "Show Message Statistics",
|
804
801
|
name: "show-message-statistics",
|
805
|
-
onChange:
|
806
|
-
checked:
|
802
|
+
onChange: J,
|
803
|
+
checked: q
|
807
804
|
}
|
808
805
|
),
|
809
|
-
/* @__PURE__ */
|
810
|
-
/* @__PURE__ */
|
806
|
+
/* @__PURE__ */ s("p", { className: "text-sm mt-5", children: P.SETTINGS_DETAILS.SEND_ON_ENTER }),
|
807
|
+
/* @__PURE__ */ s(
|
811
808
|
G,
|
812
809
|
{
|
813
810
|
className: "mt-2",
|
814
811
|
noBorder: !0,
|
815
812
|
label: "Send Message on Enter",
|
816
813
|
name: "send-message-on-enter",
|
817
|
-
onChange:
|
818
|
-
checked:
|
814
|
+
onChange: Z,
|
815
|
+
checked: I
|
819
816
|
}
|
820
817
|
),
|
821
|
-
/* @__PURE__ */
|
822
|
-
/* @__PURE__ */
|
818
|
+
/* @__PURE__ */ s("p", { className: "text-sm mt-5", children: P.SETTINGS_DETAILS.USE_MEMORY }),
|
819
|
+
/* @__PURE__ */ s(
|
823
820
|
G,
|
824
821
|
{
|
825
822
|
className: "mt-2",
|
826
823
|
noBorder: !0,
|
827
824
|
label: "Use Memory",
|
828
825
|
name: "use-memory",
|
829
|
-
onChange:
|
830
|
-
checked:
|
826
|
+
onChange: B,
|
827
|
+
checked: C
|
831
828
|
}
|
832
829
|
)
|
833
830
|
]
|
834
831
|
}
|
835
832
|
),
|
836
|
-
/* @__PURE__ */
|
837
|
-
|
833
|
+
/* @__PURE__ */ v(
|
834
|
+
V,
|
838
835
|
{
|
839
836
|
header: "Custom Instructions",
|
840
837
|
className: "prose-dark dark:prose-lighter mt-4",
|
841
838
|
children: [
|
842
|
-
/* @__PURE__ */
|
839
|
+
/* @__PURE__ */ v("p", { className: "text-sm", children: [
|
843
840
|
"What would you like ",
|
844
|
-
/* @__PURE__ */
|
841
|
+
/* @__PURE__ */ s("em", { children: we }),
|
845
842
|
" to know about you to provide better responses?"
|
846
843
|
] }),
|
847
|
-
/* @__PURE__ */
|
848
|
-
|
844
|
+
/* @__PURE__ */ s(
|
845
|
+
oe,
|
849
846
|
{
|
850
847
|
mode: "alt-system",
|
851
848
|
autoCapitalize: "off",
|
@@ -853,9 +850,9 @@ const Et = ({
|
|
853
850
|
autoCorrect: "off",
|
854
851
|
name: "customInstructions",
|
855
852
|
label: "Custom Instructions",
|
856
|
-
value:
|
853
|
+
value: b,
|
857
854
|
onChange: (n) => {
|
858
|
-
|
855
|
+
S(n.target.value);
|
859
856
|
},
|
860
857
|
helperText: "Press ENTER to add a new line."
|
861
858
|
}
|
@@ -863,71 +860,72 @@ const Et = ({
|
|
863
860
|
]
|
864
861
|
}
|
865
862
|
),
|
866
|
-
/* @__PURE__ */
|
867
|
-
/* @__PURE__ */
|
868
|
-
/* @__PURE__ */
|
869
|
-
|
863
|
+
/* @__PURE__ */ v(V, { header: "Location", className: "prose-dark dark:prose-lighter mt-4", children: [
|
864
|
+
/* @__PURE__ */ s("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
|
865
|
+
/* @__PURE__ */ s(
|
866
|
+
oe,
|
870
867
|
{
|
871
868
|
mode: "alt-system",
|
872
869
|
name: "location",
|
873
870
|
label: "Location",
|
874
|
-
value:
|
871
|
+
value: w,
|
875
872
|
onChange: (n) => {
|
876
873
|
f(n.target.value);
|
877
874
|
},
|
878
875
|
helperText: "Enter your location or press auto-detect."
|
879
876
|
}
|
880
877
|
),
|
881
|
-
/* @__PURE__ */
|
882
|
-
|
878
|
+
/* @__PURE__ */ s(
|
879
|
+
re,
|
883
880
|
{
|
884
881
|
className: "mt-2",
|
885
882
|
size: "small",
|
886
883
|
noBorder: !0,
|
884
|
+
variant: "secondary",
|
887
885
|
disabled: d.loadingLocation,
|
888
|
-
onClick:
|
886
|
+
onClick: W,
|
889
887
|
children: d.loadingLocation ? "Detecting..." : "Auto-detect"
|
890
888
|
}
|
891
889
|
)
|
892
890
|
] }),
|
893
|
-
/* @__PURE__ */
|
894
|
-
|
891
|
+
/* @__PURE__ */ v(
|
892
|
+
V,
|
895
893
|
{
|
896
894
|
header: P.SETTINGS_CACHING.TITLE,
|
897
895
|
className: "prose-dark dark:prose-lighter mt-4",
|
898
896
|
children: [
|
899
|
-
/* @__PURE__ */
|
900
|
-
/* @__PURE__ */
|
897
|
+
/* @__PURE__ */ s("p", { className: "text-sm", children: P.SETTINGS_CACHING.DESCRIPTION }),
|
898
|
+
/* @__PURE__ */ s(
|
901
899
|
G,
|
902
900
|
{
|
903
901
|
className: "mt-2",
|
904
902
|
noBorder: !0,
|
905
903
|
label: "Enable Assets Caching",
|
906
904
|
name: "enable-service-worker",
|
907
|
-
onChange:
|
908
|
-
checked:
|
905
|
+
onChange: Q,
|
906
|
+
checked: Y
|
909
907
|
}
|
910
908
|
)
|
911
909
|
]
|
912
910
|
}
|
913
911
|
),
|
914
|
-
/* @__PURE__ */
|
915
|
-
|
912
|
+
/* @__PURE__ */ v(
|
913
|
+
V,
|
916
914
|
{
|
917
915
|
header: P.SETTINGS_PROMPTS.TITLE,
|
918
916
|
className: "prose-dark dark:prose-lighter mt-4",
|
919
917
|
children: [
|
920
|
-
/* @__PURE__ */
|
921
|
-
m.prompts && m.prompts.slice(0, 3).map((n) => /* @__PURE__ */
|
922
|
-
|
918
|
+
/* @__PURE__ */ s("p", { className: "text-sm", children: Ce }),
|
919
|
+
m.prompts && m.prompts.slice(0, 3).map((n) => /* @__PURE__ */ v(
|
920
|
+
V,
|
923
921
|
{
|
924
922
|
mode: "dark",
|
925
923
|
noBorder: !0,
|
926
924
|
header: n.label.replace("...", ""),
|
927
925
|
className: "prose-light mb-2",
|
928
926
|
children: [
|
929
|
-
/* @__PURE__ */
|
930
|
-
/* @__PURE__ */
|
927
|
+
/* @__PURE__ */ s("p", { className: "text-sm", children: n.description }),
|
928
|
+
/* @__PURE__ */ s(
|
931
929
|
G,
|
932
930
|
{
|
933
931
|
mode: "dark",
|
@@ -936,7 +934,7 @@ const Et = ({
|
|
936
934
|
label: "Enabled",
|
937
935
|
name: n.slot.toString(),
|
938
936
|
onChange: (h) => {
|
939
|
-
|
937
|
+
L({
|
940
938
|
...n,
|
941
939
|
enabled: h
|
942
940
|
});
|
@@ -944,7 +942,7 @@ const Et = ({
|
|
944
942
|
checked: n.enabled
|
945
943
|
}
|
946
944
|
),
|
947
|
-
/* @__PURE__ */
|
945
|
+
/* @__PURE__ */ s(
|
948
946
|
G,
|
949
947
|
{
|
950
948
|
mode: "dark",
|
@@ -953,7 +951,7 @@ const Et = ({
|
|
953
951
|
label: "Private Chat",
|
954
952
|
name: `private-${n.slot.toString()}`,
|
955
953
|
onChange: (h) => {
|
956
|
-
|
954
|
+
L({
|
957
955
|
...n,
|
958
956
|
privateChat: h
|
959
957
|
});
|
@@ -961,7 +959,7 @@ const Et = ({
|
|
961
959
|
checked: n.privateChat
|
962
960
|
}
|
963
961
|
),
|
964
|
-
/* @__PURE__ */
|
962
|
+
/* @__PURE__ */ s(
|
965
963
|
G,
|
966
964
|
{
|
967
965
|
mode: "dark",
|
@@ -970,7 +968,7 @@ const Et = ({
|
|
970
968
|
label: "Use Clipboard",
|
971
969
|
name: `clipboard-${n.slot.toString()}`,
|
972
970
|
onChange: (h) => {
|
973
|
-
|
971
|
+
L({
|
974
972
|
...n,
|
975
973
|
clipboardAccess: h
|
976
974
|
});
|
@@ -990,5 +988,5 @@ const Et = ({
|
|
990
988
|
) : null;
|
991
989
|
};
|
992
990
|
export {
|
993
|
-
|
991
|
+
bt as SettingsPanel
|
994
992
|
};
|