@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.
- package/dist/chunks/{AboutChangelog.BaVovIwT.js → AboutChangelog.2b2DI_SN.js} +2 -2
- package/dist/chunks/{AboutEntry.BexEe72F.js → AboutEntry.BHq7KBa1.js} +5 -5
- package/dist/chunks/{App.HJ8OjcNd.js → App.DcQF9Hq9.js} +2328 -2293
- package/dist/chunks/{Chart.DHj_C5CU.js → Chart.DAdepX81.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.C2NxhySP.js → ChatBubbleAssistant.BF3Bj7JJ.js} +17 -17
- package/dist/chunks/{ChatBubbleUser.urjT1Sdg.js → ChatBubbleUser.B5uyfOKG.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.DSGJqIoP.js → ChatHistoryTable.BwjPu3FF.js} +8 -8
- package/dist/chunks/{HistoryEntry.PDsk0uAb.js → HistoryEntry.Cj5Hwpkx.js} +16 -15
- package/dist/chunks/{ProfileEntry.kywCcS_E.js → ProfileEntry.Ce801i2m.js} +21 -21
- package/dist/chunks/{SettingsEntry.CB_MJ5IS.js → SettingsEntry.fNHoX42W.js} +90 -83
- package/dist/chunks/{Table.DYvNevNY.js → Table.J1RcsDNn.js} +2 -2
- package/dist/chunks/{UsageEntry.DI19bWph.js → UsageEntry.k-Ljpdg9.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.5_VruK6N.js → UserMemoriesPanel.C0BI-Pbv.js} +4 -4
- package/dist/chunks/{index.KH6o-K7D.js → index.BqnKf1sr.js} +1 -1
- package/dist/chunks/{index.DfkAbrhT.js → index.C_OZL-ky.js} +1 -1
- package/dist/chunks/{index.3GGd3G3_.js → index.CauWbyr8.js} +3 -3
- package/dist/chunks/{index.3mZhoz3R.js → index.CmXD-yP7.js} +13 -13
- package/dist/chunks/{index.DjfdeQTy.js → index.FbsVqChk.js} +1 -1
- package/dist/chunks/{index.DPdhQccX.js → index.RnO-M1tm.js} +2 -2
- package/dist/chunks/{index.eneNSOKh.js → index.nSgn5ZFo.js} +1 -1
- package/dist/chunks/{index.1AQ-LDj6.js → index.uzB9FupG.js} +653 -648
- package/dist/chunks/{useMarkdown.C4_PqYi7.js → useMarkdown.rLeRHXfb.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,90 +1,97 @@
|
|
|
1
|
-
import { jsxs as s, jsx as t, Fragment as
|
|
2
|
-
import { n as ye, useEntitlements as
|
|
3
|
-
import { useCapability as
|
|
4
|
-
import { Re as
|
|
5
|
-
import { useState as n, useMemo as
|
|
6
|
-
const
|
|
7
|
-
open:
|
|
8
|
-
onOpenChange:
|
|
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:
|
|
10
|
+
const { getAccessToken: f, user: v } = ye(), { allowedModels: T, status: _ } = De(), { dispatch: me } = je(Ve), {
|
|
11
11
|
data: o,
|
|
12
|
-
isSuccess:
|
|
13
|
-
refetch:
|
|
14
|
-
} =
|
|
15
|
-
user:
|
|
12
|
+
isSuccess: ue,
|
|
13
|
+
refetch: x
|
|
14
|
+
} = Me({
|
|
15
|
+
user: v?.username,
|
|
16
16
|
getAccessToken: f
|
|
17
|
-
}), [
|
|
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), [
|
|
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
|
-
}),
|
|
25
|
-
|
|
26
|
-
},
|
|
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
|
-
|
|
35
|
+
q(e);
|
|
34
36
|
}, Ce = (e) => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
|
44
|
+
await re({
|
|
44
45
|
accessToken: await f(),
|
|
45
|
-
type:
|
|
46
|
+
type: le.SET_USER_PREFERENCES,
|
|
46
47
|
params: {
|
|
47
|
-
user:
|
|
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:
|
|
61
|
+
showDetails: J,
|
|
55
62
|
showReasoningButton: H,
|
|
56
|
-
useNestedModelSelection:
|
|
63
|
+
useNestedModelSelection: I
|
|
57
64
|
}
|
|
58
|
-
}), N !== g && (await
|
|
65
|
+
}), N !== g && (await Ue(N), z(N)), x(), p({
|
|
59
66
|
loadingLocation: !1
|
|
60
67
|
});
|
|
61
68
|
} catch {
|
|
62
69
|
}
|
|
63
|
-
},
|
|
70
|
+
}, be = async () => {
|
|
64
71
|
p({
|
|
65
72
|
loadingLocation: !0
|
|
66
73
|
}), E("...");
|
|
67
74
|
try {
|
|
68
|
-
const e = Date.now(), a = await
|
|
75
|
+
const e = Date.now(), a = await Ge(), S = await re({
|
|
69
76
|
accessToken: await f(),
|
|
70
|
-
type:
|
|
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((
|
|
77
|
-
const { city: i, state: c, country: h, displayName:
|
|
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(
|
|
87
|
+
}), E(ke);
|
|
81
88
|
} catch {
|
|
82
89
|
p({
|
|
83
90
|
loadingLocation: !1
|
|
84
91
|
});
|
|
85
92
|
}
|
|
86
|
-
},
|
|
87
|
-
|
|
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((
|
|
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
|
-
},
|
|
118
|
+
}, oe = Ye(async () => {
|
|
112
119
|
try {
|
|
113
|
-
|
|
114
|
-
const e = await
|
|
115
|
-
|
|
120
|
+
Q(!0);
|
|
121
|
+
const e = await _e();
|
|
122
|
+
F(e);
|
|
116
123
|
} catch {
|
|
117
124
|
} finally {
|
|
118
|
-
|
|
125
|
+
Q(!1);
|
|
119
126
|
}
|
|
120
127
|
}, []);
|
|
121
|
-
return
|
|
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 &&
|
|
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]),
|
|
128
|
-
g ?
|
|
129
|
-
}, [g,
|
|
130
|
-
b
|
|
131
|
-
}, [
|
|
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:
|
|
135
|
-
onOpenChange:
|
|
136
|
-
title:
|
|
141
|
+
open: de,
|
|
142
|
+
onOpenChange: te,
|
|
143
|
+
title: Ae,
|
|
137
144
|
animation: !0,
|
|
138
145
|
animationType: "fade",
|
|
139
146
|
footer: /* @__PURE__ */ s(
|
|
140
|
-
|
|
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(
|
|
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:
|
|
160
|
+
onClick: te,
|
|
154
161
|
children: "Cancel"
|
|
155
162
|
}
|
|
156
163
|
) }),
|
|
157
|
-
/* @__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
|
-
|
|
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:
|
|
189
|
-
checked:
|
|
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:
|
|
208
|
+
onChange: ge,
|
|
202
209
|
checked: U
|
|
203
210
|
}
|
|
204
211
|
),
|
|
205
|
-
|
|
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:
|
|
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:
|
|
239
|
+
/* @__PURE__ */ t("em", { children: Re }),
|
|
233
240
|
" to know about you to provide better responses?"
|
|
234
241
|
] }),
|
|
235
242
|
/* @__PURE__ */ t(
|
|
236
|
-
|
|
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
|
-
|
|
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:
|
|
283
|
-
onClick:
|
|
284
|
-
children:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
395
|
+
onChange: fe,
|
|
389
396
|
checked: H
|
|
390
397
|
}
|
|
391
398
|
)
|
|
392
399
|
] }),
|
|
393
|
-
|
|
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:
|
|
404
|
-
checked:
|
|
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:
|
|
418
|
-
checked:
|
|
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:
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
3
|
-
import { oe as H } from "./App.
|
|
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.
|
|
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.
|
|
3
|
-
import { oe as V, E as F, e as g, ConfirmationPanel as G, st as H } from "./App.
|
|
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.
|
|
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.
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as kn } from "./App.
|
|
2
|
-
import { visit as In } from "./useMarkdown.
|
|
3
|
-
import { toText as Cn } from "./index.
|
|
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
|
|
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
|
-
),
|
|
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:
|
|
156
|
-
visibleLabel:
|
|
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:
|
|
192
|
-
labelId:
|
|
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),
|
|
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:
|
|
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
|
-
|
|
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,
|
|
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 &&
|
|
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:
|
|
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,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.
|
|
2
|
-
import { toText as Ca } from "./index.
|
|
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.
|
|
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);
|