@versini/sassysaint 8.73.0 → 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.Cp9PopiO.js → AboutChangelog.2b2DI_SN.js} +2 -2
  2. package/dist/chunks/{AboutEntry.BOb5_aZI.js → AboutEntry.BHq7KBa1.js} +7 -7
  3. package/dist/chunks/{App.Ck78giBC.js → App.DcQF9Hq9.js} +125 -125
  4. package/dist/chunks/{Chart.C1dgaS-F.js → Chart.DAdepX81.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.CT2jmjen.js → ChatBubbleAssistant.BF3Bj7JJ.js} +17 -17
  6. package/dist/chunks/{ChatBubbleUser.CM1FzHNQ.js → ChatBubbleUser.B5uyfOKG.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable._Rzl_5Sk.js → ChatHistoryTable.BwjPu3FF.js} +8 -8
  8. package/dist/chunks/{HistoryEntry.DM6RInwR.js → HistoryEntry.Cj5Hwpkx.js} +16 -15
  9. package/dist/chunks/{ProfileEntry.Naot3F9p.js → ProfileEntry.Ce801i2m.js} +21 -21
  10. package/dist/chunks/{SettingsEntry.Du0GDXgA.js → SettingsEntry.fNHoX42W.js} +69 -63
  11. package/dist/chunks/{Table.JtsJZQLY.js → Table.J1RcsDNn.js} +2 -2
  12. package/dist/chunks/{UsageEntry.C18Kaf6V.js → UsageEntry.k-Ljpdg9.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.C9gXdvcN.js → UserMemoriesPanel.C0BI-Pbv.js} +4 -4
  14. package/dist/chunks/{index.BYZBF4_0.js → index.BqnKf1sr.js} +1 -1
  15. package/dist/chunks/{index.D0pvrKFC.js → index.C_OZL-ky.js} +1 -1
  16. package/dist/chunks/{index.ce_hM2eo.js → index.CauWbyr8.js} +3 -3
  17. package/dist/chunks/{index.GppF30Qs.js → index.CmXD-yP7.js} +13 -13
  18. package/dist/chunks/{index.Ce0bioPG.js → index.FbsVqChk.js} +1 -1
  19. package/dist/chunks/{index.DBqrJ-of.js → index.RnO-M1tm.js} +2 -2
  20. package/dist/chunks/{index.DdEAWm8o.js → index.nSgn5ZFo.js} +1 -1
  21. package/dist/chunks/{index.DTBMKq5O.js → index.uzB9FupG.js} +176 -173
  22. package/dist/chunks/{useMarkdown.CfYCs10-.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,36 +1,36 @@
1
- import { jsxs as s, jsx as t, Fragment as y } from "react/jsx-runtime";
2
- import { n as ye, useEntitlements as De, useUserPreferences as Me, nt 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, Q as Re, C as D, 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.DTBMKq5O.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.Ck78giBC.js";
4
- import { Re as ie } from "./index.GppF30Qs.js";
5
- import { useContext as je, useState as n, useMemo as He, useCallback as Ye, useEffect as M } from "react";
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
6
  const Xe = ({
7
7
  open: de,
8
- onOpenChange: L
8
+ onOpenChange: O
9
9
  }) => {
10
- const { getAccessToken: f, user: O } = ye(), { allowedModels: T, status: v } = De(), { dispatch: me } = je(Ve), {
10
+ const { getAccessToken: f, user: v } = ye(), { allowedModels: T, status: _ } = De(), { dispatch: me } = je(Ve), {
11
11
  data: o,
12
12
  isSuccess: ue,
13
- refetch: _
13
+ refetch: x
14
14
  } = Me({
15
- user: O?.username,
15
+ user: v?.username,
16
16
  getAccessToken: f
17
- }), [x, p] = n({
17
+ }), [A, p] = n({
18
18
  loadingLocation: !1
19
- }), [C, A] = n({
19
+ }), [C, R] = n({
20
20
  prompts: []
21
- }), [R, B] = n(""), [P, E] = n(""), [G, U] = n(!1), [V, W] = n(!1), [g, $] = n(!1), [N, z] = n(!1), [j, H] = n(!1), [Y, q] = n(!1), [u, F] = n(null), [Q, K] = n(!1), [J, X] = n(!1), Z = ce(se.TOOL.MEMORIES), ee = ce(se.ADDON.REASONING), [I, he] = 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
- }), pe = He(() => Oe(T, v) ? ve(T) : !1, [T, v]), Ee = (e) => {
24
+ }), pe = He(() => Oe(T, _) ? ve(T) : !1, [T, _]), Ee = (e) => {
25
25
  X(e);
26
26
  }, ge = (e) => {
27
- U(e);
27
+ V(e);
28
28
  }, Ne = (e) => {
29
- Z && W(e);
29
+ Z && $(e);
30
30
  }, Se = (e) => {
31
- z(e);
31
+ j(e);
32
32
  }, fe = (e) => {
33
- ee && H(e);
33
+ ee && Y(e);
34
34
  }, Te = (e) => {
35
35
  q(e);
36
36
  }, Ce = (e) => {
@@ -45,18 +45,24 @@ const Xe = ({
45
45
  accessToken: await f(),
46
46
  type: le.SET_USER_PREFERENCES,
47
47
  params: {
48
- user: O?.username,
49
- instructions: R,
50
- location: P,
48
+ user: v?.username,
49
+ instructions: B,
50
+ location: G,
51
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 || "",
52
58
  tags: C.prompts,
53
- sendOnEnter: G,
54
- useMemory: V,
59
+ sendOnEnter: U,
60
+ useMemory: W,
55
61
  showDetails: J,
56
- showReasoningButton: j,
57
- useNestedModelSelection: Y
62
+ showReasoningButton: H,
63
+ useNestedModelSelection: I
58
64
  }
59
- }), N !== g && (await Ue(N), $(N)), _(), p({
65
+ }), N !== g && (await Ue(N), z(N)), x(), p({
60
66
  loadingLocation: !1
61
67
  });
62
68
  } catch {
@@ -75,7 +81,7 @@ const Xe = ({
75
81
  }
76
82
  }), d = Date.now() - e;
77
83
  d < 2e3 && await new Promise((we) => setTimeout(we, 2e3 - d));
78
- const { city: i, state: c, country: h, displayName: w } = S.data, ke = i && c && h ? `${i}, ${c}, ${h}` : w;
84
+ const { city: i, state: c, country: h, displayName: y } = S.data, ke = i && c && h ? `${i}, ${c}, ${h}` : y;
79
85
  p({
80
86
  loadingLocation: !1
81
87
  }), E(ke);
@@ -85,22 +91,22 @@ const Xe = ({
85
91
  });
86
92
  }
87
93
  }, te = () => {
88
- _(), L(!1);
89
- }, b = ({
94
+ x(), O(!1);
95
+ }, k = ({
90
96
  enabled: e = !1,
91
97
  privateChat: a = !1,
92
98
  clipboardAccess: S = !1,
93
- ...k
99
+ ...w
94
100
  }) => {
95
- A((d) => {
101
+ R((d) => {
96
102
  const i = d.prompts, c = {
97
- ...k,
103
+ ...w,
98
104
  enabled: e,
99
105
  privateChat: a,
100
106
  clipboardAccess: S
101
107
  };
102
108
  S ? c.content = c.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : c.content = c.content.replace(/{{clipboard}}/g, "");
103
- const h = i.findIndex((w) => w.slot === k.slot);
109
+ const h = i.findIndex((y) => y.slot === w.slot);
104
110
  return h === -1 ? {
105
111
  ...d,
106
112
  prompts: [...i, { ...c }]
@@ -111,25 +117,25 @@ const Xe = ({
111
117
  });
112
118
  }, oe = Ye(async () => {
113
119
  try {
114
- K(!0);
120
+ Q(!0);
115
121
  const e = await _e();
116
122
  F(e);
117
123
  } catch {
118
124
  } finally {
119
- K(!1);
125
+ Q(!1);
120
126
  }
121
127
  }, []);
122
- return M(() => {
128
+ return L(() => {
123
129
  if (!o)
124
130
  return;
125
- o.instructions && B(o.instructions), o.location && E(o.location), o.tags && A({ prompts: o.tags }), o.sendOnEnter !== void 0 && U(o.sendOnEnter), o.useMemory !== void 0 && W(o.useMemory), o.showDetails !== void 0 && X(o.showDetails), o.showReasoningButton !== void 0 && H(o.showReasoningButton), o.useNestedModelSelection !== void 0 && q(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);
126
132
  const e = xe();
127
- $(e), z(e);
128
- }, [o]), M(() => {
133
+ z(e), j(e);
134
+ }, [o]), L(() => {
129
135
  g ? oe() : F(null);
130
- }, [g, oe]), M(() => {
131
- ae(I);
132
- }, [I]), ue ? /* @__PURE__ */ s(
136
+ }, [g, oe]), L(() => {
137
+ ae(b);
138
+ }, [b]), ue ? /* @__PURE__ */ s(
133
139
  $e,
134
140
  {
135
141
  open: de,
@@ -145,7 +151,7 @@ const Xe = ({
145
151
  className: "pb-8 sm:pb-0",
146
152
  children: [
147
153
  /* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t(
148
- D,
154
+ M,
149
155
  {
150
156
  mode: "dark",
151
157
  variant: "secondary",
@@ -156,12 +162,12 @@ const Xe = ({
156
162
  }
157
163
  ) }),
158
164
  /* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t(
159
- D,
165
+ M,
160
166
  {
161
167
  mode: "dark",
162
168
  focusMode: "light",
163
169
  onClick: async (e) => {
164
- L(!1), await Ie(e);
170
+ O(!1), await Ie(e);
165
171
  },
166
172
  children: "Save"
167
173
  }
@@ -200,10 +206,10 @@ const Xe = ({
200
206
  label: "Send Message on Enter",
201
207
  name: "send-message-on-enter",
202
208
  onChange: ge,
203
- checked: G
209
+ checked: U
204
210
  }
205
211
  ),
206
- Z && /* @__PURE__ */ s(y, { children: [
212
+ Z && /* @__PURE__ */ s(D, { children: [
207
213
  /* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_DETAILS.USE_MEMORY }),
208
214
  /* @__PURE__ */ t(
209
215
  l,
@@ -214,7 +220,7 @@ const Xe = ({
214
220
  label: "Use Memory",
215
221
  name: "use-memory",
216
222
  onChange: Ne,
217
- checked: V
223
+ checked: W
218
224
  }
219
225
  )
220
226
  ] })
@@ -242,9 +248,9 @@ const Xe = ({
242
248
  autoCorrect: "off",
243
249
  name: "customInstructions",
244
250
  label: "Custom Instructions",
245
- value: R,
251
+ value: B,
246
252
  onChange: (e) => {
247
- B(e.target.value);
253
+ P(e.target.value);
248
254
  },
249
255
  helperText: "Press ENTER to add a new line."
250
256
  }
@@ -266,7 +272,7 @@ const Xe = ({
266
272
  mode: "alt-system",
267
273
  name: "location",
268
274
  label: "Location",
269
- value: P,
275
+ value: G,
270
276
  onChange: (e) => {
271
277
  E(e.target.value);
272
278
  },
@@ -274,15 +280,15 @@ const Xe = ({
274
280
  }
275
281
  ),
276
282
  /* @__PURE__ */ t(
277
- D,
283
+ M,
278
284
  {
279
285
  className: "mt-2",
280
286
  size: "small",
281
287
  noBorder: !0,
282
288
  variant: "secondary",
283
- disabled: x.loadingLocation,
289
+ disabled: A.loadingLocation,
284
290
  onClick: be,
285
- children: x.loadingLocation ? "Detecting..." : "Auto-detect"
291
+ children: A.loadingLocation ? "Detecting..." : "Auto-detect"
286
292
  }
287
293
  )
288
294
  ]
@@ -316,7 +322,7 @@ const Xe = ({
316
322
  label: "Enabled",
317
323
  name: e.slot.toString(),
318
324
  onChange: (a) => {
319
- b({
325
+ k({
320
326
  ...e,
321
327
  enabled: a
322
328
  });
@@ -335,7 +341,7 @@ const Xe = ({
335
341
  label: "Private Chat",
336
342
  name: `private-${e.slot.toString()}`,
337
343
  onChange: (a) => {
338
- b({
344
+ k({
339
345
  ...e,
340
346
  privateChat: a
341
347
  });
@@ -354,7 +360,7 @@ const Xe = ({
354
360
  label: "Use Clipboard",
355
361
  name: `clipboard-${e.slot.toString()}`,
356
362
  onChange: (a) => {
357
- b({
363
+ k({
358
364
  ...e,
359
365
  clipboardAccess: a
360
366
  });
@@ -376,7 +382,7 @@ const Xe = ({
376
382
  className: "prose-dark dark:prose-lighter mt-4 ",
377
383
  noBorder: !0,
378
384
  children: [
379
- ee && /* @__PURE__ */ s(y, { children: [
385
+ ee && /* @__PURE__ */ s(D, { children: [
380
386
  /* @__PURE__ */ t("p", { className: "text-sm", children: r.SETTINGS_ADVANCED.REASONING_BUTTON_DESCRIPTION }),
381
387
  /* @__PURE__ */ t(
382
388
  l,
@@ -387,11 +393,11 @@ const Xe = ({
387
393
  label: "Show Reasoning Button",
388
394
  name: "show-reasoning-button",
389
395
  onChange: fe,
390
- checked: j
396
+ checked: H
391
397
  }
392
398
  )
393
399
  ] }),
394
- pe && /* @__PURE__ */ s(y, { children: [
400
+ pe && /* @__PURE__ */ s(D, { children: [
395
401
  /* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.NESTED_MODEL_SELECTION_DESCRIPTION }),
396
402
  /* @__PURE__ */ t(
397
403
  l,
@@ -402,7 +408,7 @@ const Xe = ({
402
408
  label: "Enable Model Selection",
403
409
  name: "use-nested-model-selection",
404
410
  onChange: Te,
405
- checked: Y
411
+ checked: I
406
412
  }
407
413
  )
408
414
  ] }),
@@ -416,7 +422,7 @@ const Xe = ({
416
422
  label: "Enable OLED Mode",
417
423
  name: "enable-oled-mode",
418
424
  onChange: Ce,
419
- checked: I
425
+ checked: b
420
426
  }
421
427
  ),
422
428
  /* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.CACHE_DESCRIPTION }),
@@ -452,8 +458,8 @@ const Xe = ({
452
458
  },
453
459
  a
454
460
  )) }) }, e.name)),
455
- u.totalItems === 0 && !Q && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
456
- ] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: Q ? "Loading cache info..." : "No cache info available." })
461
+ u.totalItems === 0 && !K && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
462
+ ] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: K ? "Loading cache info..." : "No cache info available." })
457
463
  ] })
458
464
  ]
459
465
  }
@@ -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.DTBMKq5O.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.Ck78giBC.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.DTBMKq5O.js";
3
- import { oe as H } from "./App.Ck78giBC.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.C1dgaS-F.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.DTBMKq5O.js";
3
- import { oe as V, E as F, e as g, ConfirmationPanel as G, st as H } from "./App.Ck78giBC.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.GppF30Qs.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.JtsJZQLY.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.DTBMKq5O.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.CfYCs10-.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.Ck78giBC.js";
2
- import { visit as In } from "./useMarkdown.CfYCs10-.js";
3
- import { toText as Cn } from "./index.D0pvrKFC.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.DTBMKq5O.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.CfYCs10-.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.CfYCs10-.js";
2
- import { toText as Ca } from "./index.D0pvrKFC.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.CfYCs10-.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);