@versini/sassysaint 8.72.3 → 8.73.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.
Files changed (26) hide show
  1. package/dist/chunks/{AboutChangelog.BaVovIwT.js → AboutChangelog.2b2DI_SN.js} +2 -2
  2. package/dist/chunks/{AboutEntry.BexEe72F.js → AboutEntry.BHq7KBa1.js} +5 -5
  3. package/dist/chunks/{App.HJ8OjcNd.js → App.DcQF9Hq9.js} +2328 -2293
  4. package/dist/chunks/{Chart.DHj_C5CU.js → Chart.DAdepX81.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.C2NxhySP.js → ChatBubbleAssistant.BF3Bj7JJ.js} +17 -17
  6. package/dist/chunks/{ChatBubbleUser.urjT1Sdg.js → ChatBubbleUser.B5uyfOKG.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.DSGJqIoP.js → ChatHistoryTable.BwjPu3FF.js} +8 -8
  8. package/dist/chunks/{HistoryEntry.PDsk0uAb.js → HistoryEntry.Cj5Hwpkx.js} +16 -15
  9. package/dist/chunks/{ProfileEntry.kywCcS_E.js → ProfileEntry.Ce801i2m.js} +21 -21
  10. package/dist/chunks/{SettingsEntry.CB_MJ5IS.js → SettingsEntry.fNHoX42W.js} +90 -83
  11. package/dist/chunks/{Table.DYvNevNY.js → Table.J1RcsDNn.js} +2 -2
  12. package/dist/chunks/{UsageEntry.DI19bWph.js → UsageEntry.k-Ljpdg9.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.5_VruK6N.js → UserMemoriesPanel.C0BI-Pbv.js} +4 -4
  14. package/dist/chunks/{index.KH6o-K7D.js → index.BqnKf1sr.js} +1 -1
  15. package/dist/chunks/{index.DfkAbrhT.js → index.C_OZL-ky.js} +1 -1
  16. package/dist/chunks/{index.3GGd3G3_.js → index.CauWbyr8.js} +3 -3
  17. package/dist/chunks/{index.3mZhoz3R.js → index.CmXD-yP7.js} +13 -13
  18. package/dist/chunks/{index.DjfdeQTy.js → index.FbsVqChk.js} +1 -1
  19. package/dist/chunks/{index.DPdhQccX.js → index.RnO-M1tm.js} +2 -2
  20. package/dist/chunks/{index.eneNSOKh.js → index.nSgn5ZFo.js} +1 -1
  21. package/dist/chunks/{index.1AQ-LDj6.js → index.uzB9FupG.js} +653 -648
  22. package/dist/chunks/{useMarkdown.C4_PqYi7.js → useMarkdown.rLeRHXfb.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +1 -1
  26. package/package.json +3 -3
@@ -1,90 +1,97 @@
1
- import { jsxs as s, jsx as t, Fragment as y } from "react/jsx-runtime";
2
- import { n as ye, useEntitlements as Me, useUserPreferences as ve, nt as ae, LOCAL_STORAGE_OLED_MODE as Le, canEvaluateModels as Oe, et as _e, DATA_OLED_MODE as ne, getCacheInfo as Ae, isServiceWorkerEnabled as xe, SETTINGS_TITLE as Re, S as m, CARDS as r, Q as Be, C as M, PROMPTS_DESCRIPTION as Pe, L as Ge, j as re, getCurrentGeoLocation as Ue, graphQLRequest as le, handleServiceWorkerToggle as Ve, SERVICE_TYPES as ce } from "./index.1AQ-LDj6.js";
3
- import { useCapability as ie, E as We, oe as $e, G as l } from "./App.HJ8OjcNd.js";
4
- import { Re as de } from "./index.3mZhoz3R.js";
5
- import { useState as n, useMemo as ze, useCallback as me, useEffect as v } from "react";
6
- const Qe = ({
7
- open: ue,
8
- onOpenChange: L
1
+ import { jsxs as s, jsx as t, Fragment as D } from "react/jsx-runtime";
2
+ import { n as ye, useEntitlements as De, useUserPreferences as Me, ot as se, LOCAL_STORAGE_OLED_MODE as Le, canEvaluateModels as Oe, Et as ve, getCacheInfo as _e, isServiceWorkerEnabled as xe, applyOledMode as ae, SETTINGS_TITLE as Ae, S as m, CARDS as r, $ as Re, C as M, PROMPTS_DESCRIPTION as Be, L as Pe, j as ne, getCurrentGeoLocation as Ge, graphQLRequest as re, handleServiceWorkerToggle as Ue, SERVICE_TYPES as le } from "./index.uzB9FupG.js";
3
+ import { AppContext as Ve, useCapability as ce, E as We, oe as $e, G as l, APP_SET_OLED_MODE as ze } from "./App.DcQF9Hq9.js";
4
+ import { Re as ie } from "./index.CmXD-yP7.js";
5
+ import { useContext as je, useState as n, useMemo as He, useCallback as Ye, useEffect as L } from "react";
6
+ const Xe = ({
7
+ open: de,
8
+ onOpenChange: O
9
9
  }) => {
10
- const { getAccessToken: f, user: O } = ye(), { allowedModels: T, status: _ } = Me(), {
10
+ const { getAccessToken: f, user: v } = ye(), { allowedModels: T, status: _ } = De(), { dispatch: me } = je(Ve), {
11
11
  data: o,
12
- isSuccess: he,
13
- refetch: A
14
- } = ve({
15
- user: O?.username,
12
+ isSuccess: ue,
13
+ refetch: x
14
+ } = Me({
15
+ user: v?.username,
16
16
  getAccessToken: f
17
- }), [x, p] = n({
17
+ }), [A, p] = n({
18
18
  loadingLocation: !1
19
19
  }), [C, R] = n({
20
20
  prompts: []
21
- }), [B, P] = n(""), [G, E] = n(""), [U, V] = n(!1), [W, $] = n(!1), [g, z] = n(!1), [N, j] = n(!1), [H, Y] = n(!1), [q, F] = n(!1), [u, Q] = n(null), [K, J] = n(!1), [X, Z] = n(!1), ee = ie(ae.TOOL.MEMORIES), te = ie(ae.ADDON.REASONING), [I, pe] = We({
21
+ }), [B, P] = n(""), [G, E] = n(""), [U, V] = n(!1), [W, $] = n(!1), [g, z] = n(!1), [N, j] = n(!1), [H, Y] = n(!1), [I, q] = n(!1), [u, F] = n(null), [K, Q] = n(!1), [J, X] = n(!1), Z = ce(se.TOOL.MEMORIES), ee = ce(se.ADDON.REASONING), [b, he] = We({
22
22
  key: Le,
23
23
  initialValue: !1
24
- }), Ee = ze(() => Oe(T, _) ? _e(T) : !1, [T, _]), ge = (e) => {
25
- Z(e);
26
- }, Ne = (e) => {
24
+ }), pe = He(() => Oe(T, _) ? ve(T) : !1, [T, _]), Ee = (e) => {
25
+ X(e);
26
+ }, ge = (e) => {
27
27
  V(e);
28
+ }, Ne = (e) => {
29
+ Z && $(e);
28
30
  }, Se = (e) => {
29
- ee && $(e);
30
- }, fe = (e) => {
31
31
  j(e);
32
+ }, fe = (e) => {
33
+ ee && Y(e);
32
34
  }, Te = (e) => {
33
- te && Y(e);
35
+ q(e);
34
36
  }, Ce = (e) => {
35
- F(e);
36
- }, b = me((e) => {
37
- e ? document.documentElement.setAttribute(ne, "true") : document.documentElement.removeAttribute(ne);
38
- }, []), Ie = (e) => {
39
- pe(e), b(e);
40
- }, be = async (e) => {
37
+ he(e), ae(e), me({
38
+ type: ze,
39
+ payload: { oledMode: e }
40
+ });
41
+ }, Ie = async (e) => {
41
42
  e.preventDefault();
42
43
  try {
43
- await le({
44
+ await re({
44
45
  accessToken: await f(),
45
- type: ce.SET_USER_PREFERENCES,
46
+ type: le.SET_USER_PREFERENCES,
46
47
  params: {
47
- user: O?.username,
48
+ user: v?.username,
48
49
  instructions: B,
49
50
  location: G,
50
51
  provider: o?.provider,
52
+ /**
53
+ * When nested model selection is disabled, explicitly clear any stored
54
+ * model preference so the user relies solely on provider defaults.
55
+ * Empty string signals to backend to use provider's default model.
56
+ */
57
+ model: I && o?.model || "",
51
58
  tags: C.prompts,
52
59
  sendOnEnter: U,
53
60
  useMemory: W,
54
- showDetails: X,
61
+ showDetails: J,
55
62
  showReasoningButton: H,
56
- useNestedModelSelection: q
63
+ useNestedModelSelection: I
57
64
  }
58
- }), N !== g && (await Ve(N), z(N)), A(), p({
65
+ }), N !== g && (await Ue(N), z(N)), x(), p({
59
66
  loadingLocation: !1
60
67
  });
61
68
  } catch {
62
69
  }
63
- }, ke = async () => {
70
+ }, be = async () => {
64
71
  p({
65
72
  loadingLocation: !0
66
73
  }), E("...");
67
74
  try {
68
- const e = Date.now(), a = await Ue(), S = await le({
75
+ const e = Date.now(), a = await Ge(), S = await re({
69
76
  accessToken: await f(),
70
- type: ce.GET_LOCATION,
77
+ type: le.GET_LOCATION,
71
78
  params: {
72
79
  latitude: a.latitude,
73
80
  longitude: a.longitude
74
81
  }
75
82
  }), d = Date.now() - e;
76
- d < 2e3 && await new Promise((De) => setTimeout(De, 2e3 - d));
77
- const { city: i, state: c, country: h, displayName: D } = S.data, we = i && c && h ? `${i}, ${c}, ${h}` : D;
83
+ d < 2e3 && await new Promise((we) => setTimeout(we, 2e3 - d));
84
+ const { city: i, state: c, country: h, displayName: y } = S.data, ke = i && c && h ? `${i}, ${c}, ${h}` : y;
78
85
  p({
79
86
  loadingLocation: !1
80
- }), E(we);
87
+ }), E(ke);
81
88
  } catch {
82
89
  p({
83
90
  loadingLocation: !1
84
91
  });
85
92
  }
86
- }, oe = () => {
87
- A(), L(!1);
93
+ }, te = () => {
94
+ x(), O(!1);
88
95
  }, k = ({
89
96
  enabled: e = !1,
90
97
  privateChat: a = !1,
@@ -99,7 +106,7 @@ const Qe = ({
99
106
  clipboardAccess: S
100
107
  };
101
108
  S ? c.content = c.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : c.content = c.content.replace(/{{clipboard}}/g, "");
102
- const h = i.findIndex((D) => D.slot === w.slot);
109
+ const h = i.findIndex((y) => y.slot === w.slot);
103
110
  return h === -1 ? {
104
111
  ...d,
105
112
  prompts: [...i, { ...c }]
@@ -108,59 +115,59 @@ const Qe = ({
108
115
  prompts: [...i]
109
116
  });
110
117
  });
111
- }, se = me(async () => {
118
+ }, oe = Ye(async () => {
112
119
  try {
113
- J(!0);
114
- const e = await Ae();
115
- Q(e);
120
+ Q(!0);
121
+ const e = await _e();
122
+ F(e);
116
123
  } catch {
117
124
  } finally {
118
- J(!1);
125
+ Q(!1);
119
126
  }
120
127
  }, []);
121
- return v(() => {
128
+ return L(() => {
122
129
  if (!o)
123
130
  return;
124
- o.instructions && P(o.instructions), o.location && E(o.location), o.tags && R({ prompts: o.tags }), o.sendOnEnter !== void 0 && V(o.sendOnEnter), o.useMemory !== void 0 && $(o.useMemory), o.showDetails !== void 0 && Z(o.showDetails), o.showReasoningButton !== void 0 && Y(o.showReasoningButton), o.useNestedModelSelection !== void 0 && F(o.useNestedModelSelection);
131
+ o.instructions && P(o.instructions), o.location && E(o.location), o.tags && R({ prompts: o.tags }), o.sendOnEnter !== void 0 && V(o.sendOnEnter), o.useMemory !== void 0 && $(o.useMemory), o.showDetails !== void 0 && X(o.showDetails), o.showReasoningButton !== void 0 && Y(o.showReasoningButton), o.useNestedModelSelection !== void 0 && q(o.useNestedModelSelection);
125
132
  const e = xe();
126
133
  z(e), j(e);
127
- }, [o]), v(() => {
128
- g ? se() : Q(null);
129
- }, [g, se]), v(() => {
130
- b(I);
131
- }, [I, b]), he ? /* @__PURE__ */ s(
134
+ }, [o]), L(() => {
135
+ g ? oe() : F(null);
136
+ }, [g, oe]), L(() => {
137
+ ae(b);
138
+ }, [b]), ue ? /* @__PURE__ */ s(
132
139
  $e,
133
140
  {
134
- open: ue,
135
- onOpenChange: oe,
136
- title: Re,
141
+ open: de,
142
+ onOpenChange: te,
143
+ title: Ae,
137
144
  animation: !0,
138
145
  animationType: "fade",
139
146
  footer: /* @__PURE__ */ s(
140
- Ge,
147
+ Pe,
141
148
  {
142
149
  columnGap: 2,
143
150
  alignHorizontal: "flex-end",
144
151
  className: "pb-8 sm:pb-0",
145
152
  children: [
146
- /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(
153
+ /* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t(
147
154
  M,
148
155
  {
149
156
  mode: "dark",
150
157
  variant: "secondary",
151
158
  focusMode: "light",
152
159
  noBorder: !0,
153
- onClick: oe,
160
+ onClick: te,
154
161
  children: "Cancel"
155
162
  }
156
163
  ) }),
157
- /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(
164
+ /* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t(
158
165
  M,
159
166
  {
160
167
  mode: "dark",
161
168
  focusMode: "light",
162
169
  onClick: async (e) => {
163
- L(!1), await be(e);
170
+ O(!1), await Ie(e);
164
171
  },
165
172
  children: "Save"
166
173
  }
@@ -185,8 +192,8 @@ const Qe = ({
185
192
  className: "mt-2",
186
193
  label: "Show Message Statistics",
187
194
  name: "show-message-statistics",
188
- onChange: ge,
189
- checked: X
195
+ onChange: Ee,
196
+ checked: J
190
197
  }
191
198
  ),
192
199
  /* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_DETAILS.SEND_ON_ENTER }),
@@ -198,11 +205,11 @@ const Qe = ({
198
205
  className: "mt-2",
199
206
  label: "Send Message on Enter",
200
207
  name: "send-message-on-enter",
201
- onChange: Ne,
208
+ onChange: ge,
202
209
  checked: U
203
210
  }
204
211
  ),
205
- ee && /* @__PURE__ */ s(y, { children: [
212
+ Z && /* @__PURE__ */ s(D, { children: [
206
213
  /* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_DETAILS.USE_MEMORY }),
207
214
  /* @__PURE__ */ t(
208
215
  l,
@@ -212,7 +219,7 @@ const Qe = ({
212
219
  className: "mt-2",
213
220
  label: "Use Memory",
214
221
  name: "use-memory",
215
- onChange: Se,
222
+ onChange: Ne,
216
223
  checked: W
217
224
  }
218
225
  )
@@ -229,11 +236,11 @@ const Qe = ({
229
236
  children: [
230
237
  /* @__PURE__ */ s("p", { className: "text-sm", children: [
231
238
  "What would you like ",
232
- /* @__PURE__ */ t("em", { children: Be }),
239
+ /* @__PURE__ */ t("em", { children: Re }),
233
240
  " to know about you to provide better responses?"
234
241
  ] }),
235
242
  /* @__PURE__ */ t(
236
- de,
243
+ ie,
237
244
  {
238
245
  mode: "alt-system",
239
246
  autoCapitalize: "off",
@@ -260,7 +267,7 @@ const Qe = ({
260
267
  children: [
261
268
  /* @__PURE__ */ t("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
262
269
  /* @__PURE__ */ t(
263
- de,
270
+ ie,
264
271
  {
265
272
  mode: "alt-system",
266
273
  name: "location",
@@ -279,9 +286,9 @@ const Qe = ({
279
286
  size: "small",
280
287
  noBorder: !0,
281
288
  variant: "secondary",
282
- disabled: x.loadingLocation,
283
- onClick: ke,
284
- children: x.loadingLocation ? "Detecting..." : "Auto-detect"
289
+ disabled: A.loadingLocation,
290
+ onClick: be,
291
+ children: A.loadingLocation ? "Detecting..." : "Auto-detect"
285
292
  }
286
293
  )
287
294
  ]
@@ -294,7 +301,7 @@ const Qe = ({
294
301
  className: "prose-dark dark:prose-lighter mt-4",
295
302
  noBorder: !0,
296
303
  children: [
297
- /* @__PURE__ */ t("p", { className: "text-sm", children: Pe }),
304
+ /* @__PURE__ */ t("p", { className: "text-sm", children: Be }),
298
305
  C.prompts && C.prompts.slice(0, 3).map((e) => /* @__PURE__ */ s(
299
306
  m,
300
307
  {
@@ -375,7 +382,7 @@ const Qe = ({
375
382
  className: "prose-dark dark:prose-lighter mt-4 ",
376
383
  noBorder: !0,
377
384
  children: [
378
- te && /* @__PURE__ */ s(y, { children: [
385
+ ee && /* @__PURE__ */ s(D, { children: [
379
386
  /* @__PURE__ */ t("p", { className: "text-sm", children: r.SETTINGS_ADVANCED.REASONING_BUTTON_DESCRIPTION }),
380
387
  /* @__PURE__ */ t(
381
388
  l,
@@ -385,12 +392,12 @@ const Qe = ({
385
392
  className: "mt-2",
386
393
  label: "Show Reasoning Button",
387
394
  name: "show-reasoning-button",
388
- onChange: Te,
395
+ onChange: fe,
389
396
  checked: H
390
397
  }
391
398
  )
392
399
  ] }),
393
- Ee && /* @__PURE__ */ s(y, { children: [
400
+ pe && /* @__PURE__ */ s(D, { children: [
394
401
  /* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.NESTED_MODEL_SELECTION_DESCRIPTION }),
395
402
  /* @__PURE__ */ t(
396
403
  l,
@@ -400,8 +407,8 @@ const Qe = ({
400
407
  className: "mt-2",
401
408
  label: "Enable Model Selection",
402
409
  name: "use-nested-model-selection",
403
- onChange: Ce,
404
- checked: q
410
+ onChange: Te,
411
+ checked: I
405
412
  }
406
413
  )
407
414
  ] }),
@@ -414,8 +421,8 @@ const Qe = ({
414
421
  className: "mt-2",
415
422
  label: "Enable OLED Mode",
416
423
  name: "enable-oled-mode",
417
- onChange: Ie,
418
- checked: I
424
+ onChange: Ce,
425
+ checked: b
419
426
  }
420
427
  ),
421
428
  /* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.CACHE_DESCRIPTION }),
@@ -427,7 +434,7 @@ const Qe = ({
427
434
  className: "mt-2",
428
435
  label: "Enable Assets Caching",
429
436
  name: "enable-service-worker",
430
- onChange: fe,
437
+ onChange: Se,
431
438
  checked: N
432
439
  }
433
440
  ),
@@ -462,5 +469,5 @@ const Qe = ({
462
469
  ) : null;
463
470
  };
464
471
  export {
465
- Qe as SettingsPanel
472
+ Xe as SettingsPanel
466
473
  };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as _, jsx as r } from "react/jsx-runtime";
2
- import { I as f, b as v } from "./index.1AQ-LDj6.js";
2
+ import { I as f, b$1 as v } from "./index.uzB9FupG.js";
3
3
  import C, { useContext as b } from "react";
4
4
  import o from "clsx";
5
- import { e as k } from "./App.HJ8OjcNd.js";
5
+ import { e as k } from "./App.DcQF9Hq9.js";
6
6
  const L = ({
7
7
  className: e,
8
8
  viewBox: a,
@@ -1,13 +1,13 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { n as f, i as v, useUserChatStats as _, useChatsUsage as z, USAGE_TITLE as B, S as g, renderDataAsList as P, CARDS as a, L as p, j as A, C as i, pluralize as h } from "./index.1AQ-LDj6.js";
3
- import { oe as H } from "./App.HJ8OjcNd.js";
2
+ import { n as f, i as v, useUserChatStats as _, useChatsUsage as z, USAGE_TITLE as B, S as g, renderDataAsList as P, CARDS as a, L as p, j as A, C as i, pluralize as h } from "./index.uzB9FupG.js";
3
+ import { oe as H } from "./App.DcQF9Hq9.js";
4
4
  import { useState as C, Suspense as K, lazy as j } from "react";
5
5
  const s = [0, 3, 6, 9], n = {
6
6
  TOKEN: "token",
7
7
  MODEL: "model"
8
8
  }, w = j(() => import(
9
9
  /* webpackChunkName: "LazyChart" */
10
- "./Chart.DHj_C5CU.js"
10
+ "./Chart.DAdepX81.js"
11
11
  )), R = ({
12
12
  open: k,
13
13
  onOpenChange: E
@@ -1,10 +1,10 @@
1
1
  import { jsxs as l, jsx as e, Fragment as _ } from "react/jsx-runtime";
2
- import { I as se, L as O, j as y, C as v, n as ce, LOCAL_STORAGE_PREFIX as q, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as oe, LOCAL_STORAGE_SORT_MEMORY_COLUMN as ie, useUserMemories as ae, useDeleteMemory as de, useDeleteAllMemories as me, useUpdateMemory as he, te as B } from "./index.1AQ-LDj6.js";
3
- import { oe as V, E as F, e as g, ConfirmationPanel as G, st as H } from "./App.HJ8OjcNd.js";
2
+ import { I as se, L as O, j as y, C as v, n as ce, LOCAL_STORAGE_PREFIX as q, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as oe, LOCAL_STORAGE_SORT_MEMORY_COLUMN as ie, useUserMemories as ae, useDeleteMemory as de, useDeleteAllMemories as me, useUpdateMemory as he, te as B } from "./index.uzB9FupG.js";
3
+ import { oe as V, E as F, e as g, ConfirmationPanel as G, st as H } from "./App.DcQF9Hq9.js";
4
4
  import E from "clsx";
5
5
  import { useState as x, useEffect as xe, useRef as j } from "react";
6
- import { Re as ue } from "./index.3mZhoz3R.js";
7
- import { j as pe, D as fe, G as b, M as d, F as ge, H as ye, l as Ce, U as Ne } from "./Table.DYvNevNY.js";
6
+ import { Re as ue } from "./index.CmXD-yP7.js";
7
+ import { j as pe, D as fe, G as b, M as d, F as ge, H as ye, l as Ce, U as Ne } from "./Table.J1RcsDNn.js";
8
8
  const Ae = ({
9
9
  className: a,
10
10
  viewBox: m,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
- import { te as B } from "./index.1AQ-LDj6.js";
2
+ import { te as B } from "./index.uzB9FupG.js";
3
3
  import { useState as I, useEffect as k } from "react";
4
4
  import s from "clsx";
5
5
  const h = "av-bubble", w = ({
@@ -1,4 +1,4 @@
1
- import { convert as E, convertElement as u } from "./useMarkdown.C4_PqYi7.js";
1
+ import { convert as E, convertElement as u } from "./useMarkdown.rLeRHXfb.js";
2
2
  const f = (
3
3
  // Note: overloads like this are needed to support optional generics.
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { getDefaultExportFromCjs as kn } from "./App.HJ8OjcNd.js";
2
- import { visit as In } from "./useMarkdown.C4_PqYi7.js";
3
- import { toText as Cn } from "./index.DfkAbrhT.js";
1
+ import { getDefaultExportFromCjs as kn } from "./App.DcQF9Hq9.js";
2
+ import { visit as In } from "./useMarkdown.rLeRHXfb.js";
3
+ import { toText as Cn } from "./index.C_OZL-ky.js";
4
4
  function xn(e) {
5
5
  const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
6
6
  className: "type",
@@ -1,5 +1,5 @@
1
1
  import { jsxs as oe, jsx as x } from "react/jsx-runtime";
2
- import { o as se, h as U, i as ie, x$1 as de } from "./index.1AQ-LDj6.js";
2
+ import { o as se, h as U, i as ie, x as de } from "./index.uzB9FupG.js";
3
3
  import ce, { useState as _, useEffect as ne, useRef as b, useLayoutEffect as T } from "react";
4
4
  import s from "clsx";
5
5
  function ue({
@@ -136,7 +136,7 @@ const X = "av-text-area", fe = "av-text-area-wrapper", L = "av-text-area-helper-
136
136
  {
137
137
  "disabled:cursor-not-allowed disabled:opacity-50": t
138
138
  }
139
- ), M = r ? void 0 : "sr-only", R = be({
139
+ ), R = r ? void 0 : "sr-only", $ = be({
140
140
  disabled: t,
141
141
  raw: r,
142
142
  error: i,
@@ -152,8 +152,8 @@ const X = "av-text-area", fe = "av-text-area-wrapper", L = "av-text-area-helper-
152
152
  return {
153
153
  wrapper: f,
154
154
  textArea: N,
155
- accessibleLabel: M,
156
- visibleLabel: R,
155
+ accessibleLabel: R,
156
+ visibleLabel: $,
157
157
  helperText: n,
158
158
  rightElement: w,
159
159
  leftElement: m
@@ -188,8 +188,8 @@ const X = "av-text-area", fe = "av-text-area-wrapper", L = "av-text-area-helper-
188
188
  value: v,
189
189
  defaultValue: f,
190
190
  disabled: N = !1,
191
- noBorder: M = !1,
192
- labelId: R,
191
+ noBorder: R = !1,
192
+ labelId: $,
193
193
  helperText: n = "",
194
194
  helperTextOnFocus: w = !1,
195
195
  rightElement: m,
@@ -199,7 +199,7 @@ const X = "av-text-area", fe = "av-text-area-wrapper", L = "av-text-area-helper-
199
199
  onBlur: B,
200
200
  ...q
201
201
  }, z) => {
202
- const u = b(null), G = se([z, u]), [J, A] = U(), [K, g] = U(), C = b(80), V = b(-25), $ = b(null), D = b(30), P = b(null), E = ie({ id: e, prefix: `${X}-` }), [j, Q] = _(0), [F, W] = _(0), [Z, S] = _(
202
+ const u = b(null), G = se([z, u]), [J, A] = U(), [K, g] = U(), C = b(80), V = b(-25), M = b(null), D = b(30), P = b(null), E = ie({ id: e, prefix: `${X}-` }), [j, Q] = _(0), [F, W] = _(0), [Z, S] = _(
203
203
  !!(!w && n)
204
204
  ), Y = `${l} error, ${n}`, h = ve({
205
205
  className: o,
@@ -208,7 +208,7 @@ const X = "av-text-area", fe = "av-text-area-wrapper", L = "av-text-area-helper-
208
208
  raw: t,
209
209
  focusMode: k,
210
210
  disabled: N,
211
- noBorder: M,
211
+ noBorder: R,
212
212
  mode: c,
213
213
  rightElement: !!m,
214
214
  leftElement: !!y
@@ -238,7 +238,7 @@ const X = "av-text-area", fe = "av-text-area-wrapper", L = "av-text-area-helper-
238
238
  t || u && u.current && p !== void 0 && (u.current.style.height = "inherit", u.current.style.height = u.current.scrollHeight + "px");
239
239
  }, [p, t]), T(() => {
240
240
  t || setTimeout(() => {
241
- $?.current?.style.setProperty(
241
+ M?.current?.style.setProperty(
242
242
  "--av-text-area-wrapper-transition",
243
243
  p ? "none" : "all 0.2s ease-out"
244
244
  );
@@ -251,7 +251,7 @@ const X = "av-text-area", fe = "av-text-area-wrapper", L = "av-text-area-helper-
251
251
  currentLabelOffset: V.current,
252
252
  currentHelperTextOffset: D.current
253
253
  });
254
- d && (V.current = d, $?.current?.style.setProperty(
254
+ d && (V.current = d, M?.current?.style.setProperty(
255
255
  "--av-text-area-label",
256
256
  `${d}px`
257
257
  )), H && (D.current = H, P?.current?.style.setProperty(
@@ -259,7 +259,7 @@ const X = "av-text-area", fe = "av-text-area-wrapper", L = "av-text-area-helper-
259
259
  `${H}px`
260
260
  )), C.current = le || C.current;
261
261
  }
262
- }, [p, t]), g.width > 0 && $?.current?.style.setProperty(
262
+ }, [p, t]), g.width > 0 && M?.current?.style.setProperty(
263
263
  "--tw-translate-x",
264
264
  `${12 + g.width + 5}px`
265
265
  ), /* @__PURE__ */ oe("div", { className: h.wrapper, children: [
@@ -267,7 +267,7 @@ const X = "av-text-area", fe = "av-text-area-wrapper", L = "av-text-area-helper-
267
267
  "label",
268
268
  {
269
269
  htmlFor: E,
270
- id: R,
270
+ id: $,
271
271
  className: h.accessibleLabel,
272
272
  children: r
273
273
  }
@@ -310,7 +310,7 @@ const X = "av-text-area", fe = "av-text-area-wrapper", L = "av-text-area-helper-
310
310
  !t && /* @__PURE__ */ x(
311
311
  "label",
312
312
  {
313
- ref: $,
313
+ ref: M,
314
314
  "aria-hidden": !0,
315
315
  htmlFor: E,
316
316
  className: `${h.visibleLabel}`,
@@ -1,4 +1,4 @@
1
- import { factorySpace as M, markdownLineEnding as g } from "./useMarkdown.C4_PqYi7.js";
1
+ import { factorySpace as M, markdownLineEnding as g } from "./useMarkdown.rLeRHXfb.js";
2
2
  import { longestStreak as q } from "./index.Cyw5OC0t.js";
3
3
  function b() {
4
4
  return {
@@ -1,5 +1,5 @@
1
- import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.C4_PqYi7.js";
2
- import { toText as Ca } from "./index.DfkAbrhT.js";
1
+ import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.rLeRHXfb.js";
2
+ import { toText as Ca } from "./index.C_OZL-ky.js";
3
3
  const Gt = /[#.]/g;
4
4
  function qa(r, e) {
5
5
  const t = r || "", a = {};
@@ -1,4 +1,4 @@
1
- import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.C4_PqYi7.js";
1
+ import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.rLeRHXfb.js";
2
2
  import { longestStreak as qe } from "./index.Cyw5OC0t.js";
3
3
  function ne(e, n) {
4
4
  const t = String(e);