@versini/sassysaint 8.34.0 → 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.
@@ -1,24 +1,24 @@
1
- import { jsxs as N, jsx as l } from "react/jsx-runtime";
2
- import { n as ve, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_CHAT_DETAILS as _e, LOCAL_STORAGE_SERVICE_WORKER as we, isServiceWorkerEnabled as Ce, SETTINGS_TITLE as Se, S as U, CARDS as P, APP_NAME as Ie, C as ae, PROMPTS_DESCRIPTION as Ae, L as Re, j as ce, getCurrentGeoLocation as Le, handleServiceWorkerToggle as Oe } from "./index.DK5aa0OB.js";
3
- import { useUserPreferences as Me, E as ie, rr as De, mutateCall as de, SERVICE_TYPES as ue } from "./App.CxyIxMAe.js";
4
- import Pe, { useRef as v, useState as y, useLayoutEffect as z, useMemo as pe, useEffect as j, useId as Ge, useReducer as Be, useCallback as He } from "react";
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 he = "av-text-area", Ve = "av-text-area-wrapper", oe = "av-text-area-helper-text", Ue = "av-text-area__control--right", $e = "av-text-area__control--left";
7
- function Fe() {
8
- const e = v(!1);
9
- return j(() => (e.current = !0, () => {
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
- }), []), He(() => e.current, []);
11
+ }), []), Pe(() => e.current, []);
12
12
  }
13
- function We(e) {
14
- return pe(() => e.every((r) => r == null) ? () => {
15
- } : (r) => {
16
- e.forEach((a) => {
17
- typeof a == "function" ? a(r) : a != null && (a.current = r);
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 ze = {
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 me(e) {
32
- const r = Fe(), a = v(0), o = v(null), [t, s] = y(ze), c = pe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
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(a.current), a.current = requestAnimationFrame(() => {
35
- o.current && r() && s(u.contentRect);
34
+ u && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
35
+ o.current && a() && l(u.contentRect);
36
36
  }));
37
- }), [r]);
38
- return j(() => (o.current && c?.observe(o.current, e), () => {
39
- c?.disconnect(), a.current && cancelAnimationFrame(a.current);
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 je({
42
+ function Fe({
43
43
  value: e,
44
- defaultValue: r,
45
- finalValue: a,
44
+ defaultValue: a,
45
+ finalValue: r,
46
46
  onChange: o = () => {
47
47
  },
48
48
  initialControlledDelay: t = 0
49
49
  }) {
50
- const [s, c] = y(!1), [d, u] = y(
51
- r !== void 0 ? r : a
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 j(() => {
56
- (async () => e !== void 0 && !s && t > 0 && (await new Promise(
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, s]), e !== void 0 ? !s && t > 0 ? ["", o, !0] : [e, o, !0] : [d, m, !1];
59
+ }, [e, t, l]), e !== void 0 ? !l && t > 0 ? ["", o, !0] : [e, o, !0] : [d, m, !1];
60
60
  }
61
- function Xe(e) {
62
- const r = Ge();
61
+ function We(e) {
62
+ const a = Me();
63
63
  if (!e)
64
- return r;
64
+ return a;
65
65
  if (typeof e == "number" || typeof e == "string")
66
- return `${e}${r}`;
66
+ return `${e}${a}`;
67
67
  if (typeof e == "object") {
68
- const { id: a, prefix: o = "" } = e;
69
- return typeof a == "number" || typeof a == "string" ? `${o}${a}` : `${o}${r}`;
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 ge = "SET_ANNOUNCEMENT", ye = "CLEAR_ANNOUNCEMENT", Ye = {
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
- }, qe = (e, r) => {
81
- switch (r?.type) {
82
- case ge:
80
+ }, je = (e, a) => {
81
+ switch (a?.type) {
82
+ case pe:
83
83
  return {
84
84
  ...e,
85
- announcement: r.payload
85
+ announcement: a.payload
86
86
  };
87
- case ye:
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
- }, Ke = ({
95
+ }, Xe = ({
96
96
  onAnnouncementClear: e,
97
- dispatch: r
97
+ dispatch: a
98
98
  }) => {
99
- r({
100
- type: ye
99
+ a({
100
+ type: he
101
101
  }), typeof e == "function" && e();
102
- }, fe = ({
102
+ }, ue = ({
103
103
  children: e,
104
- clearAnnouncementDelay: r,
105
- clearAnnouncementTimeoutRef: a,
104
+ clearAnnouncementDelay: a,
105
+ clearAnnouncementTimeoutRef: r,
106
106
  onAnnouncementClear: o,
107
107
  dispatch: t
108
108
  }) => {
109
- clearTimeout(a.current), e !== null && t({
110
- type: ge,
109
+ clearTimeout(r.current), e !== null && t({
110
+ type: pe,
111
111
  payload: e
112
- }), r && (a.current = setTimeout(
113
- () => Ke({
112
+ }), a && (r.current = setTimeout(
113
+ () => Xe({
114
114
  onAnnouncementClear: o,
115
115
  dispatch: t
116
116
  }),
117
- r
117
+ a
118
118
  ));
119
- }, Qe = ({
119
+ }, Ye = ({
120
120
  children: e,
121
- announcementTimeoutRef: r,
122
- announcementDelay: a,
121
+ announcementTimeoutRef: a,
122
+ announcementDelay: r,
123
123
  clearAnnouncementDelay: o,
124
124
  clearAnnouncementTimeoutRef: t,
125
- onAnnouncementClear: s,
125
+ onAnnouncementClear: l,
126
126
  dispatch: c
127
127
  }) => {
128
- clearTimeout(r.current), a ? r.current = setTimeout(fe, a, {
128
+ clearTimeout(a.current), r ? a.current = setTimeout(ue, r, {
129
129
  children: e,
130
130
  clearAnnouncementDelay: o,
131
131
  clearAnnouncementTimeoutRef: t,
132
- onAnnouncementClear: s,
132
+ onAnnouncementClear: l,
133
133
  dispatch: c
134
- }) : fe({
134
+ }) : ue({
135
135
  children: e,
136
136
  clearAnnouncementDelay: o,
137
137
  clearAnnouncementTimeoutRef: t,
138
- onAnnouncementClear: s,
138
+ onAnnouncementClear: l,
139
139
  dispatch: c
140
140
  });
141
141
  };
142
- function Je({
142
+ function qe({
143
143
  children: e,
144
- className: r,
145
- politeness: a,
144
+ className: a,
145
+ politeness: r,
146
146
  role: o = null,
147
147
  announcementDelay: t,
148
- clearAnnouncementDelay: s,
148
+ clearAnnouncementDelay: l,
149
149
  onAnnouncementClear: c,
150
150
  visible: d,
151
151
  ...u
152
152
  }) {
153
- const m = v(null), p = v(null), [k, A] = Be(qe, {
153
+ const m = _(null), p = _(null), [b, S] = De(je, {
154
154
  announcement: null
155
155
  });
156
- let _ = a;
157
- typeof _ > "u" && (_ = o ? Ye[o] : "assertive"), j(() => {
158
- Qe({
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: s,
162
+ clearAnnouncementDelay: l,
163
163
  clearAnnouncementTimeoutRef: p,
164
164
  onAnnouncementClear: c,
165
- dispatch: A
165
+ dispatch: S
166
166
  });
167
167
  }, [
168
168
  e,
169
169
  t,
170
- s,
170
+ l,
171
171
  c
172
172
  ]);
173
- const f = i(r, {
173
+ const f = i(a, {
174
174
  "sr-only": !d
175
175
  });
176
- return /* @__PURE__ */ l(
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: k.announcement
183
+ children: b.announcement
184
184
  }
185
185
  );
186
186
  }
187
187
  /*!
188
- @versini/ui-liveregion v2.0.6
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.6",
194
- buildTime: "07/14/2025 12:04 PM EDT",
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 Ze = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", et = ({ mode: e }) => i({
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
- }), tt = ({
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
- }), rt = ({
212
+ }), Qe = ({
213
213
  noBorder: e,
214
- error: r
214
+ error: a
215
215
  }) => i("border-2", {
216
- "border-border-dark": !e && !r,
217
- "focus:border-border-dark": !e && r,
218
- "border-border-error-dark": !e && r,
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
- }), at = ({
220
+ }), et = ({
221
221
  disabled: e,
222
- raw: r,
223
- error: a,
222
+ raw: a,
223
+ error: r,
224
224
  mode: o,
225
225
  leftElement: t,
226
- rightElement: s
226
+ rightElement: l
227
227
  }) => {
228
- if (r)
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]": s === !0 && !t || !s && !t
234
+ "translate-x-[12px]": l === !0 && !t || !l && !t
235
235
  }
236
236
  );
237
- if (!a)
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]": s === !0 && !t || !s && !t,
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 (a)
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]": s === !0 && !t || !s && !t,
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
- }, ot = ({
259
+ }, tt = ({
260
260
  error: e,
261
- raw: r,
262
- mode: a,
261
+ raw: a,
262
+ mode: r,
263
263
  disabled: o
264
264
  }) => {
265
- if (r)
265
+ if (a)
266
266
  return "";
267
267
  if (o)
268
268
  return i(
269
- oe,
269
+ ae,
270
270
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
271
271
  );
272
272
  if (!e)
273
- return i(oe, "absolute px-2 font-medium", {
274
- "text-copy-medium": a === "dark",
275
- "text-copy-dark": a === "light",
276
- "text-copy-dark dark:text-copy-medium": a === "system",
277
- "text-copy-medium dark:text-copy-dark": a === "alt-system"
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(oe, "absolute px-2 font-medium", {
281
- "text-copy-error-light": a === "dark",
282
- "text-copy-error-dark": a === "light",
283
- "text-copy-error-dark dark:text-copy-error-light": a === "system",
284
- "dark:text-copy-error-dark text-copy-error-light": a === "alt-system"
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
- }, nt = ({
286
+ }, rt = ({
287
287
  className: e,
288
- textAreaClassName: r,
289
- raw: a,
288
+ textAreaClassName: a,
289
+ raw: r,
290
290
  focusMode: o,
291
291
  disabled: t,
292
- noBorder: s,
292
+ noBorder: l,
293
293
  error: c,
294
294
  mode: d,
295
295
  leftElement: u,
296
296
  rightElement: m
297
297
  }) => {
298
- const p = a ? e : i(
298
+ const p = r ? e : i(
299
299
  "relative flex w-full flex-col justify-center",
300
- Ve,
300
+ Ge,
301
301
  e
302
- ), k = a ? i(r) : i(
303
- he,
304
- r,
305
- Ze(),
306
- et({ mode: d }),
307
- tt({ focusMode: o }),
308
- rt({
309
- noBorder: s,
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
- ), A = a ? void 0 : "sr-only", _ = at({
315
+ ), S = r ? void 0 : "sr-only", w = et({
316
316
  disabled: t,
317
- raw: a,
317
+ raw: r,
318
318
  error: c,
319
319
  mode: d,
320
320
  rightElement: m,
321
321
  leftElement: u
322
- }), f = ot({
322
+ }), f = tt({
323
323
  error: c,
324
- raw: a,
324
+ raw: r,
325
325
  mode: d,
326
326
  disabled: t
327
- }), R = a ? void 0 : i(Ue, "absolute"), x = a ? void 0 : i($e, "absolute");
327
+ }), I = r ? void 0 : i(Be, "absolute"), k = r ? void 0 : i(He, "absolute");
328
328
  return {
329
329
  wrapper: p,
330
- textArea: k,
331
- accessibleLabel: A,
332
- visibleLabel: _,
330
+ textArea: b,
331
+ accessibleLabel: S,
332
+ visibleLabel: w,
333
333
  helperText: f,
334
- rightElement: R,
335
- leftElement: x
334
+ rightElement: I,
335
+ leftElement: k
336
336
  };
337
- }, lt = ({
337
+ }, at = ({
338
338
  scrollHeight: e,
339
- currentHeight: r,
340
- currentLabelOffset: a = 0,
339
+ currentHeight: a,
340
+ currentLabelOffset: r = 0,
341
341
  currentHelperTextOffset: o = 0
342
342
  }) => {
343
- let t, s;
344
- if (e > 0 && e !== r) {
345
- const c = e - r, d = Math.abs(c / 24);
346
- t = a + -1 * Math.sign(c) * (12 * d), s = o + Math.sign(c) * (12 * d);
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: s,
350
+ helperTextOffset: l,
351
351
  scrollHeight: e
352
352
  };
353
- }, ne = Pe.forwardRef(
353
+ }, oe = Oe.forwardRef(
354
354
  ({
355
355
  id: e,
356
- name: r,
357
- label: a,
356
+ name: a,
357
+ label: r,
358
358
  error: o = !1,
359
359
  raw: t = !1,
360
- className: s,
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: k = !1,
367
- noBorder: A = !1,
368
- labelId: _,
366
+ disabled: b = !1,
367
+ noBorder: S = !1,
368
+ labelId: w,
369
369
  helperText: f = "",
370
- helperTextOnFocus: R = !1,
371
- rightElement: x,
372
- leftElement: w,
370
+ helperTextOnFocus: I = !1,
371
+ rightElement: k,
372
+ leftElement: C,
373
373
  onChange: $,
374
- onFocus: X,
374
+ onFocus: Y,
375
375
  onBlur: F,
376
- ...K
377
- }, Q) => {
378
- var Y;
379
- const E = v(null), J = We([Q, E]), [Z, B] = me(), [ee, L] = me(), H = v(80), V = v(-25), n = v(null), h = v(30), C = v(null), S = Xe({ id: e, prefix: `${he}-` }), [I, T] = y(0), [b, M] = y(0), [W, q] = y(
380
- !!(!R && f)
381
- ), be = `${r} error, ${f}`, D = nt({
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: k,
388
- noBorder: A,
386
+ disabled: b,
387
+ noBorder: S,
389
388
  mode: d,
390
- rightElement: !!x,
391
- leftElement: !!w
392
- }), [O, ke] = je({
389
+ rightElement: !!k,
390
+ leftElement: !!C
391
+ }), [O, ge] = Fe({
393
392
  value: m,
394
393
  initialControlledDelay: 20,
395
394
  defaultValue: p,
396
- onChange: (g) => {
395
+ onChange: (N) => {
397
396
  $ && $({
398
397
  target: {
399
- value: g
398
+ value: N
400
399
  }
401
400
  });
402
401
  }
403
- }), xe = (g) => {
404
- ke(g.target.value);
405
- }, Ee = (g) => {
406
- R && f && q(!0), X && X(g);
407
- }, Te = (g) => {
408
- R && f && !O && q(!1), F && F(g);
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 z(() => {
411
- B && B.width && T(B.width + 18 + 10);
412
- }, [B]), z(() => {
413
- L && L.width && M(L.width + 18 + 10);
414
- }, [L]), z(() => {
415
- t || E && E.current && O !== void 0 && (E.current.style.height = "inherit", E.current.style.height = E.current.scrollHeight + "px");
416
- }, [O, t]), z(() => {
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
- var g;
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]), z(() => {
425
- var g, le;
426
- if (!t && E && E.current && O !== void 0) {
427
- const { labelOffset: te, helperTextOffset: re, scrollHeight: Ne } = lt({
428
- scrollHeight: E.current.scrollHeight,
429
- currentHeight: H.current,
430
- currentLabelOffset: V.current,
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
- te && (V.current = te, (g = n?.current) == null || g.style.setProperty(
430
+ N && (z.current = N, L?.current?.style.setProperty(
434
431
  "--av-text-area-label",
435
- `${te}px`
436
- )), re && (h.current = re, (le = C?.current) == null || le.style.setProperty(
432
+ `${N}px`
433
+ )), te && (n.current = te, h?.current?.style.setProperty(
437
434
  "--av-text-area-helper-text",
438
- `${re}px`
439
- )), H.current = Ne || H.current;
435
+ `${te}px`
436
+ )), W.current = xe || W.current;
440
437
  }
441
- }, [O, t]), L.width > 0 && ((Y = n?.current) == null || Y.style.setProperty(
438
+ }, [O, t]), A.width > 0 && L?.current?.style.setProperty(
442
439
  "--tw-translate-x",
443
- `${12 + L.width + 5}px`
444
- )), /* @__PURE__ */ N("div", { className: D.wrapper, children: [
445
- /* @__PURE__ */ l(
440
+ `${12 + A.width + 5}px`
441
+ ), /* @__PURE__ */ v("div", { className: D.wrapper, children: [
442
+ /* @__PURE__ */ s(
446
443
  "label",
447
444
  {
448
- htmlFor: S,
449
- id: _,
445
+ htmlFor: E,
446
+ id: w,
450
447
  className: D.accessibleLabel,
451
- children: a
448
+ children: r
452
449
  }
453
450
  ),
454
- w && /* @__PURE__ */ l(
451
+ C && /* @__PURE__ */ s(
455
452
  "div",
456
453
  {
457
- ref: ee,
454
+ ref: Q,
458
455
  className: D.leftElement,
459
- children: w
456
+ children: C
460
457
  }
461
458
  ),
462
- /* @__PURE__ */ l(
459
+ /* @__PURE__ */ s(
463
460
  "textarea",
464
461
  {
465
462
  ref: J,
466
- id: S,
467
- name: r,
468
- disabled: k,
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": `${S}-helper` },
469
+ ...f && { "aria-describedby": `${E}-helper` },
473
470
  ...o && { "aria-invalid": "true" },
474
- ...x && !w && !t && { style: { paddingRight: I } },
475
- ...w && !x && !t && { style: { paddingLeft: b } },
476
- ...x && w && !t && {
471
+ ...k && !C && !t && { style: { paddingRight: H } },
472
+ ...C && !k && !t && { style: { paddingLeft: y } },
473
+ ...k && C && !t && {
477
474
  style: {
478
- paddingRight: I,
479
- paddingLeft: b
475
+ paddingRight: H,
476
+ paddingLeft: y
480
477
  }
481
478
  },
482
479
  value: O,
483
- onChange: xe,
484
- onFocus: Ee,
485
- onBlur: Te,
486
- ...K
480
+ onChange: ye,
481
+ onFocus: be,
482
+ onBlur: ke,
483
+ ...q
487
484
  }
488
485
  ),
489
- !t && /* @__PURE__ */ l(
486
+ !t && /* @__PURE__ */ s(
490
487
  "label",
491
488
  {
492
- ref: n,
489
+ ref: L,
493
490
  "aria-hidden": !0,
494
- htmlFor: S,
491
+ htmlFor: E,
495
492
  className: `${D.visibleLabel}`,
496
- children: a
493
+ children: r
497
494
  }
498
495
  ),
499
- W && /* @__PURE__ */ l(
496
+ M && /* @__PURE__ */ s(
500
497
  "div",
501
498
  {
502
- ref: C,
503
- id: `${S}-helper`,
499
+ ref: h,
500
+ id: `${E}-helper`,
504
501
  className: D.helperText,
505
502
  children: f
506
503
  }
507
504
  ),
508
- x && /* @__PURE__ */ l(
505
+ k && /* @__PURE__ */ s(
509
506
  "div",
510
507
  {
511
508
  ref: Z,
512
509
  className: D.rightElement,
513
- children: x
510
+ children: k
514
511
  }
515
512
  ),
516
- o && f && /* @__PURE__ */ l(Je, { politeness: "polite", clearAnnouncementDelay: 500, children: be })
513
+ o && f && /* @__PURE__ */ s(qe, { politeness: "polite", clearAnnouncementDelay: 500, children: ee })
517
514
  ] });
518
515
  }
519
516
  );
520
- ne.displayName = "TextArea";
517
+ oe.displayName = "TextArea";
521
518
  /*!
522
- @versini/ui-textarea v4.0.6
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.6",
528
- buildTime: "07/14/2025 12:04 PM EDT",
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 st = "av-toggle", ct = () => i("peer", "h-6", "w-11", "rounded-full"), it = ({
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
- ), dt = () => i(
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
- ), ut = () => i(
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
- ), mt = ({
562
+ ), it = ({
566
563
  mode: e,
567
- noBorder: r
564
+ noBorder: a
568
565
  }) => i({
569
- border: !r,
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
- }), ft = ({
571
+ }), dt = ({
575
572
  mode: e,
576
- labelHidden: r
577
- }) => r ? "sr-only" : i("ml-2 text-sm", {
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
- }), pt = ({ className: e }) => i(
583
- st,
579
+ }), ut = ({ className: e }) => i(
580
+ ot,
584
581
  "relative flex cursor-pointer items-center",
585
582
  e
586
- ), ht = ({
583
+ ), mt = ({
587
584
  mode: e,
588
- focusMode: r,
589
- labelHidden: a,
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
- mt({ mode: e, noBorder: t }),
596
- it({ focusMode: r }),
597
- ut(),
598
- dt()
595
+ lt()
599
596
  ),
600
- label: ft({ mode: e, labelHidden: a }),
597
+ label: dt({ mode: e, labelHidden: r }),
601
598
  input: "peer sr-only",
602
- wrapper: pt({ className: o })
599
+ wrapper: ut({ className: o })
603
600
  }), G = ({
604
601
  checked: e = !1,
605
- onChange: r,
606
- label: a,
602
+ onChange: a,
603
+ label: r,
607
604
  labelHidden: o = !1,
608
605
  name: t,
609
- mode: s = "system",
606
+ mode: l = "system",
610
607
  focusMode: c = "system",
611
608
  className: d,
612
609
  noBorder: u = !1
613
610
  }) => {
614
- const m = ht({
615
- mode: s,
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 = (k) => {
621
- r?.(k.target.checked);
617
+ }), p = (b) => {
618
+ a?.(b.target.checked);
622
619
  };
623
- return /* @__PURE__ */ N("label", { className: m.wrapper, children: [
624
- /* @__PURE__ */ l(
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__ */ l("div", { className: m.toggle }),
635
- /* @__PURE__ */ l("span", { className: m.label, children: a })
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.5
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.5",
645
- buildTime: "06/28/2025 08:58 PM EDT",
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 Et = ({
648
+ const bt = ({
652
649
  open: e,
653
- onOpenChange: r
650
+ onOpenChange: a
654
651
  }) => {
655
- const { getAccessToken: a, user: o } = ve(), {
652
+ const { getAccessToken: r, user: o } = Ee(), {
656
653
  data: t,
657
- isSuccess: s,
654
+ isSuccess: l,
658
655
  refetch: c
659
- } = Me({
656
+ } = Le({
660
657
  user: o?.username,
661
- getAccessToken: a
662
- }), [d, u] = y({
658
+ getAccessToken: r
659
+ }), [d, u] = g({
663
660
  loadingLocation: !1
664
- }), [m, p] = y({
661
+ }), [m, p] = g({
665
662
  prompts: []
666
- }), [k, A] = y(""), [_, f] = y(""), [R, x] = y(!1), [w, $] = y(!1), [X, F] = y(!1), [K, Q] = ie({
667
- key: se + _e,
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
- }), [, Y] = ie({
670
- key: se + we,
666
+ }), [, x] = le({
667
+ key: ne + Ne,
671
668
  initialValue: !1
672
- }), E = (n) => {
673
- Q(n);
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
- }, B = async (n) => {
679
- Y(n), F(n), await Oe(n);
680
- }, ee = async (n) => {
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 de({
684
- accessToken: await a(),
685
- type: ue.SET_USER_PREFERENCES,
680
+ await ce({
681
+ accessToken: await r(),
682
+ type: ie.SET_USER_PREFERENCES,
686
683
  params: {
687
684
  user: o?.username,
688
- instructions: k,
689
- location: _,
685
+ instructions: b,
686
+ location: w,
690
687
  provider: t?.provider,
691
688
  tags: m.prompts,
692
- sendOnEnter: R,
693
- useMemory: w
689
+ sendOnEnter: I,
690
+ useMemory: C
694
691
  }
695
692
  }), c(), u({
696
693
  loadingLocation: !1
697
694
  });
698
695
  } catch {
699
696
  }
700
- }, L = async () => {
697
+ }, W = async () => {
701
698
  u({
702
699
  loadingLocation: !0
703
700
  }), f("...");
704
701
  try {
705
- const n = Date.now(), h = await Le(), C = await de({
706
- accessToken: await a(),
707
- type: ue.GET_LOCATION,
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
- }), I = Date.now() - n;
713
- if (I < 2e3 && await new Promise((T) => setTimeout(T, 2e3 - I)), C.status === 200) {
714
- const { city: T, state: b, country: M, displayName: W } = C.data, q = T && b && M ? `${T}, ${b}, ${M}` : W;
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(q);
714
+ }), f(ee);
718
715
  } else
719
716
  u({
720
717
  loadingLocation: !1
721
718
  });
722
719
  } catch {
723
720
  }
724
- }, H = () => {
725
- c(), r(!1);
726
- }, V = ({
721
+ }, z = () => {
722
+ c(), a(!1);
723
+ }, L = ({
727
724
  enabled: n = !1,
728
725
  privateChat: h = !1,
729
- clipboardAccess: C = !1,
730
- ...S
726
+ clipboardAccess: E = !1,
727
+ ...H
731
728
  }) => {
732
- p((I) => {
733
- const T = I.prompts, b = {
734
- ...S,
729
+ p((R) => {
730
+ const y = R.prompts, T = {
731
+ ...H,
735
732
  enabled: n,
736
733
  privateChat: h,
737
- clipboardAccess: C
734
+ clipboardAccess: E
738
735
  };
739
- C ? b.content = b.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : b.content = b.content.replace(/{{clipboard}}/g, "");
740
- const M = T.findIndex((W) => W.slot === S.slot);
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
- ...I,
743
- prompts: [...T, { ...b }]
744
- } : (T[M] = b, {
745
- ...I,
746
- prompts: [...T]
739
+ ...R,
740
+ prompts: [...y, { ...T }]
741
+ } : (y[M] = T, {
742
+ ...R,
743
+ prompts: [...y]
747
744
  });
748
745
  });
749
746
  };
750
- return j(() => {
751
- t?.instructions && A(t.instructions), t?.location && f(t.location), t?.tags && p({ prompts: t.tags }), t?.sendOnEnter !== void 0 && x(t.sendOnEnter), t?.useMemory !== void 0 && $(t.useMemory), F(Ce());
752
- }, [t]), s ? /* @__PURE__ */ N(
753
- De,
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: H,
757
- title: Se,
758
- footer: /* @__PURE__ */ N(
759
- Re,
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__ */ l(ce, { children: /* @__PURE__ */ l(
766
- ae,
762
+ /* @__PURE__ */ s(se, { children: /* @__PURE__ */ s(
763
+ re,
767
764
  {
768
765
  mode: "dark",
769
766
  variant: "secondary",
770
767
  focusMode: "light",
771
- onClick: H,
768
+ noBorder: !0,
769
+ onClick: z,
772
770
  children: "Cancel"
773
771
  }
774
772
  ) }),
775
- /* @__PURE__ */ l(ce, { children: /* @__PURE__ */ l(
776
- ae,
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
- r(!1), await ee(n);
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__ */ N(
792
- U,
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__ */ l("p", { className: "text-sm", children: P.SETTINGS_DETAILS.DETAILS }),
798
- /* @__PURE__ */ l(
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: E,
806
- checked: K
802
+ onChange: J,
803
+ checked: q
807
804
  }
808
805
  ),
809
- /* @__PURE__ */ l("p", { className: "text-sm mt-5", children: P.SETTINGS_DETAILS.SEND_ON_ENTER }),
810
- /* @__PURE__ */ l(
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: J,
818
- checked: R
814
+ onChange: Z,
815
+ checked: I
819
816
  }
820
817
  ),
821
- /* @__PURE__ */ l("p", { className: "text-sm mt-5", children: P.SETTINGS_DETAILS.USE_MEMORY }),
822
- /* @__PURE__ */ l(
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: Z,
830
- checked: w
826
+ onChange: B,
827
+ checked: C
831
828
  }
832
829
  )
833
830
  ]
834
831
  }
835
832
  ),
836
- /* @__PURE__ */ N(
837
- U,
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__ */ N("p", { className: "text-sm", children: [
839
+ /* @__PURE__ */ v("p", { className: "text-sm", children: [
843
840
  "What would you like ",
844
- /* @__PURE__ */ l("em", { children: Ie }),
841
+ /* @__PURE__ */ s("em", { children: we }),
845
842
  " to know about you to provide better responses?"
846
843
  ] }),
847
- /* @__PURE__ */ l(
848
- ne,
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: k,
853
+ value: b,
857
854
  onChange: (n) => {
858
- A(n.target.value);
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__ */ N(U, { header: "Location", className: "prose-dark dark:prose-lighter mt-4", children: [
867
- /* @__PURE__ */ l("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
868
- /* @__PURE__ */ l(
869
- ne,
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__ */ l(
882
- ae,
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: L,
886
+ onClick: W,
889
887
  children: d.loadingLocation ? "Detecting..." : "Auto-detect"
890
888
  }
891
889
  )
892
890
  ] }),
893
- /* @__PURE__ */ N(
894
- U,
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__ */ l("p", { className: "text-sm", children: P.SETTINGS_CACHING.DESCRIPTION }),
900
- /* @__PURE__ */ l(
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: B,
908
- checked: X
905
+ onChange: Q,
906
+ checked: Y
909
907
  }
910
908
  )
911
909
  ]
912
910
  }
913
911
  ),
914
- /* @__PURE__ */ N(
915
- U,
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__ */ l("p", { className: "text-sm", children: Ae }),
921
- m.prompts && m.prompts.slice(0, 3).map((n) => /* @__PURE__ */ N(
922
- U,
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__ */ l("p", { className: "text-sm", children: n.description }),
930
- /* @__PURE__ */ l(
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
- V({
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__ */ l(
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
- V({
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__ */ l(
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
- V({
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
- Et as SettingsPanel
991
+ bt as SettingsPanel
994
992
  };