@versini/sassysaint 5.3.13 → 5.3.15
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/{App.fz-5k49W.js → LazyApp.DLcaKEZm.js} +230 -209
- package/dist/chunks/{LazyHeader.CB90fayX.js → LazyHeader.DF_XuYxS.js} +4 -4
- package/dist/chunks/{LazyMarkdownWithExtra.CE2KiPRX.js → LazyMarkdownWithExtra.CFDuqeUh.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.BaudafNM.js → LazyMessageAssistant.BMarDoja.js} +4 -4
- package/dist/chunks/{index.Bo2brrOj.js → index.Cox6Ux55.js} +10 -8
- package/dist/chunks/{index.XVw2F1ku.js → index.p6kaA5n7.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, jsxs as v, Fragment as O } from "react/jsx-runtime";
|
|
2
|
-
import { g as _e,
|
|
3
|
-
import { serviceCall as me, SERVICE_TYPES as he, n as je, restCall as Ge, we as Pe, E as J, f as We } from "./index.
|
|
2
|
+
import { g as _e, ACTION_RESTORE as Ne, ACTION_MESSAGE as S, ROLE_ASSISTANT as I, ACTION_RESET as oe, ACTION_MODEL as ne, ACTION_ENGINE as ie, ACTION_STREAMING as se, ACTION_SORT as we, ACTION_SEARCH as Ee, ACTION_SET_TAGS as de, ACTION_RESET_TAGS as le, ACTION_TOGGLE_TAG as ce, AppContext as $, TagsContext as j, rn as U, b as Ie, j as Ce, R as ge, isLastMessageFromRole as ue, O as Se, TOOLBOX as Y, ROLE_INTERNAL as G, ROLE_USER as H, ROLE_SYSTEM as Re, ROLE_HIDDEN as Be, DEFAULT_AI_ENGINE as M, STATS_SEPARATOR as q, TYPE_QUESTION as Ae, SEND as Me, ERROR_MESSAGE as Le, getMessageContaintWrapperClass as Oe, MessagesContainerHeader as $e, HistoryContext as Ue, d as ze, AppFooter as Ve, LOCAL_STORAGE_PREFIX as X, LOCAL_STORAGE_SEARCH as De, LOCAL_STORAGE_SORT as He } from "./index.Cox6Ux55.js";
|
|
3
|
+
import { serviceCall as me, SERVICE_TYPES as he, n as je, restCall as Ge, we as Pe, E as J, f as We } from "./index.p6kaA5n7.js";
|
|
4
4
|
import C, { useContext as R, useState as A, useRef as B, useEffect as _, lazy as Fe, Suspense as Q, useReducer as V } from "react";
|
|
5
5
|
import l from "clsx";
|
|
6
6
|
const Ke = ({
|
|
@@ -82,12 +82,142 @@ function P(e, t, r) {
|
|
|
82
82
|
const a = e.random || (e.rng || et)();
|
|
83
83
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Qe(a);
|
|
84
84
|
}
|
|
85
|
-
const rt = () => {
|
|
85
|
+
const rt = (e, t) => {
|
|
86
|
+
if ((t == null ? void 0 : t.type) === Ne) {
|
|
87
|
+
const r = t.payload.messages.map((a) => ({
|
|
88
|
+
message: {
|
|
89
|
+
role: a.role,
|
|
90
|
+
content: a.content,
|
|
91
|
+
name: a.name,
|
|
92
|
+
processingTime: a.processingTime
|
|
93
|
+
}
|
|
94
|
+
}));
|
|
95
|
+
return {
|
|
96
|
+
id: t.payload.id,
|
|
97
|
+
model: t.payload.model,
|
|
98
|
+
usage: t.payload.usage,
|
|
99
|
+
isComponent: e.isComponent,
|
|
100
|
+
messages: r,
|
|
101
|
+
engine: e.engine,
|
|
102
|
+
tags: e.tags
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
if ((t == null ? void 0 : t.type) === S) {
|
|
106
|
+
const r = t.payload.message.role, a = t.payload.message.content, n = t.payload.message.name, o = t.payload.message.processingTime, c = t.payload.message.messageId;
|
|
107
|
+
if (r !== "") {
|
|
108
|
+
const d = {
|
|
109
|
+
role: r,
|
|
110
|
+
content: a,
|
|
111
|
+
name: n,
|
|
112
|
+
processingTime: o,
|
|
113
|
+
messageId: c
|
|
114
|
+
};
|
|
115
|
+
if (r === I) {
|
|
116
|
+
const m = e.messages.findIndex(
|
|
117
|
+
(g) => g.message.messageId === c
|
|
118
|
+
);
|
|
119
|
+
if (m !== -1) {
|
|
120
|
+
const g = e.messages.map((p, u) => u === m ? {
|
|
121
|
+
message: {
|
|
122
|
+
...p.message,
|
|
123
|
+
content: `${p.message.content}${a}`,
|
|
124
|
+
processingTime: o,
|
|
125
|
+
name: n
|
|
126
|
+
}
|
|
127
|
+
} : p);
|
|
128
|
+
return {
|
|
129
|
+
id: e.id,
|
|
130
|
+
model: e.model,
|
|
131
|
+
usage: e.usage,
|
|
132
|
+
isComponent: e.isComponent,
|
|
133
|
+
messages: g,
|
|
134
|
+
engine: e.engine,
|
|
135
|
+
tags: e.tags
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
id: e.id,
|
|
141
|
+
model: e.model,
|
|
142
|
+
engine: e.engine,
|
|
143
|
+
tags: e.tags,
|
|
144
|
+
usage: e.usage,
|
|
145
|
+
isComponent: e.isComponent,
|
|
146
|
+
messages: [
|
|
147
|
+
...e.messages,
|
|
148
|
+
{
|
|
149
|
+
message: d
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return (t == null ? void 0 : t.type) === oe ? {
|
|
156
|
+
id: P(),
|
|
157
|
+
model: e.model,
|
|
158
|
+
engine: e.engine,
|
|
159
|
+
usage: 0,
|
|
160
|
+
messages: [],
|
|
161
|
+
isComponent: e.isComponent,
|
|
162
|
+
tags: e.tags
|
|
163
|
+
} : (t == null ? void 0 : t.type) === ne ? {
|
|
164
|
+
id: e.id,
|
|
165
|
+
model: t.payload.model,
|
|
166
|
+
engine: e.engine,
|
|
167
|
+
tags: e.tags,
|
|
168
|
+
usage: t.payload.usage,
|
|
169
|
+
messages: e.messages,
|
|
170
|
+
isComponent: e.isComponent
|
|
171
|
+
} : (t == null ? void 0 : t.type) === ie ? {
|
|
172
|
+
...e,
|
|
173
|
+
engine: t.payload.engine
|
|
174
|
+
} : (t == null ? void 0 : t.type) === se ? {
|
|
175
|
+
...e,
|
|
176
|
+
streaming: t.payload.streaming
|
|
177
|
+
} : e;
|
|
178
|
+
}, at = (e, t) => {
|
|
179
|
+
switch (t == null ? void 0 : t.type) {
|
|
180
|
+
case Ee:
|
|
181
|
+
return {
|
|
182
|
+
searchString: t.payload.searchString,
|
|
183
|
+
sortedCell: e.sortedCell,
|
|
184
|
+
sortDirection: e.sortDirection
|
|
185
|
+
};
|
|
186
|
+
case we:
|
|
187
|
+
return {
|
|
188
|
+
searchString: e.searchString,
|
|
189
|
+
sortedCell: t.payload.sortedCell,
|
|
190
|
+
sortDirection: t.payload.sortDirection
|
|
191
|
+
};
|
|
192
|
+
default:
|
|
193
|
+
return e;
|
|
194
|
+
}
|
|
195
|
+
}, ot = (e, t) => {
|
|
196
|
+
switch (t == null ? void 0 : t.type) {
|
|
197
|
+
case ce:
|
|
198
|
+
return {
|
|
199
|
+
tags: e.tags,
|
|
200
|
+
tag: t.payload.tag
|
|
201
|
+
};
|
|
202
|
+
case le:
|
|
203
|
+
return {
|
|
204
|
+
tags: e.tags,
|
|
205
|
+
tag: ""
|
|
206
|
+
};
|
|
207
|
+
case de:
|
|
208
|
+
return {
|
|
209
|
+
tags: t.payload.tags,
|
|
210
|
+
tag: ""
|
|
211
|
+
};
|
|
212
|
+
default:
|
|
213
|
+
return e;
|
|
214
|
+
}
|
|
215
|
+
}, nt = () => {
|
|
86
216
|
const { dispatch: e, state: t } = R($), { dispatch: r, state: a } = R(j), { getAccessToken: n, user: o } = U(), [c, d] = A({
|
|
87
217
|
loaded: !1
|
|
88
218
|
}), m = "mt-2 flex justify-center rounded-md", g = B(null), p = B(!1), u = (s) => {
|
|
89
219
|
s.preventDefault(), e({
|
|
90
|
-
type:
|
|
220
|
+
type: oe
|
|
91
221
|
});
|
|
92
222
|
};
|
|
93
223
|
_(() => {
|
|
@@ -96,7 +226,7 @@ const rt = () => {
|
|
|
96
226
|
}, [t]);
|
|
97
227
|
const b = (s, h) => {
|
|
98
228
|
s.preventDefault(), r({
|
|
99
|
-
type:
|
|
229
|
+
type: ce,
|
|
100
230
|
payload: {
|
|
101
231
|
tag: h
|
|
102
232
|
}
|
|
@@ -119,7 +249,7 @@ const rt = () => {
|
|
|
119
249
|
}
|
|
120
250
|
});
|
|
121
251
|
s.status === 200 && (r({
|
|
122
|
-
type:
|
|
252
|
+
type: de,
|
|
123
253
|
payload: {
|
|
124
254
|
tags: s.data.tags || []
|
|
125
255
|
}
|
|
@@ -130,8 +260,8 @@ const rt = () => {
|
|
|
130
260
|
}
|
|
131
261
|
})();
|
|
132
262
|
}, [o]), /* @__PURE__ */ v(O, { children: [
|
|
133
|
-
/* @__PURE__ */ i(
|
|
134
|
-
|
|
263
|
+
/* @__PURE__ */ i(Ie, { alignHorizontal: "center", columnGap: 2, children: c && c.loaded && a.tags && a.tags.map((s) => s.enabled && s.label && s.content && /* @__PURE__ */ i(Ce, { children: /* @__PURE__ */ i("div", { className: m, children: /* @__PURE__ */ i(
|
|
264
|
+
ge,
|
|
135
265
|
{
|
|
136
266
|
noBorder: !0,
|
|
137
267
|
mode: "dark",
|
|
@@ -141,8 +271,8 @@ const rt = () => {
|
|
|
141
271
|
children: s.label
|
|
142
272
|
}
|
|
143
273
|
) }) }, `tag-button-${s.slot}`)) }),
|
|
144
|
-
|
|
145
|
-
|
|
274
|
+
ue(I, t) && /* @__PURE__ */ i("div", { className: m, children: /* @__PURE__ */ i(
|
|
275
|
+
Se,
|
|
146
276
|
{
|
|
147
277
|
noBorder: !0,
|
|
148
278
|
mode: "dark",
|
|
@@ -168,7 +298,7 @@ try {
|
|
|
168
298
|
});
|
|
169
299
|
} catch {
|
|
170
300
|
}
|
|
171
|
-
const
|
|
301
|
+
const it = "av-bubble", ee = "av-button", st = (e) => {
|
|
172
302
|
let t = "";
|
|
173
303
|
if (typeof e == "number" || typeof e == "string")
|
|
174
304
|
t = "m-" + e;
|
|
@@ -177,7 +307,7 @@ const at = "av-bubble", ee = "av-button", ot = (e) => {
|
|
|
177
307
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
178
308
|
}
|
|
179
309
|
return t;
|
|
180
|
-
}, W = "icon",
|
|
310
|
+
}, W = "icon", dt = "button", lt = "link", ct = ({
|
|
181
311
|
type: e,
|
|
182
312
|
size: t,
|
|
183
313
|
labelRight: r,
|
|
@@ -186,13 +316,13 @@ const at = "av-bubble", ee = "av-button", ot = (e) => {
|
|
|
186
316
|
}) => {
|
|
187
317
|
const o = "text-sm font-medium max-h-8 py-0", c = "text-base font-medium max-h-9 py-1", d = "text-lg font-medium max-h-12 py-2";
|
|
188
318
|
switch (e) {
|
|
189
|
-
case
|
|
319
|
+
case dt:
|
|
190
320
|
return l("px-4", {
|
|
191
321
|
[o]: t === "small",
|
|
192
322
|
[c]: t === "medium",
|
|
193
323
|
[d]: t === "large"
|
|
194
324
|
});
|
|
195
|
-
case
|
|
325
|
+
case lt:
|
|
196
326
|
return l("px-4 text-center", {
|
|
197
327
|
[o]: t === "small",
|
|
198
328
|
[c]: t === "medium",
|
|
@@ -211,7 +341,7 @@ const at = "av-bubble", ee = "av-button", ot = (e) => {
|
|
|
211
341
|
"h-12 px-4 text-lg font-medium": t === "large" && (r || a)
|
|
212
342
|
});
|
|
213
343
|
}
|
|
214
|
-
},
|
|
344
|
+
}, gt = ({
|
|
215
345
|
mode: e,
|
|
216
346
|
noBackground: t,
|
|
217
347
|
noTruncate: r,
|
|
@@ -243,7 +373,7 @@ const at = "av-bubble", ee = "av-button", ot = (e) => {
|
|
|
243
373
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
244
374
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
245
375
|
});
|
|
246
|
-
},
|
|
376
|
+
}, ut = ({
|
|
247
377
|
mode: e,
|
|
248
378
|
disabled: t,
|
|
249
379
|
variant: r
|
|
@@ -271,7 +401,7 @@ const at = "av-bubble", ee = "av-button", ot = (e) => {
|
|
|
271
401
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
272
402
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
273
403
|
});
|
|
274
|
-
},
|
|
404
|
+
}, mt = ({
|
|
275
405
|
mode: e,
|
|
276
406
|
disabled: t,
|
|
277
407
|
variant: r
|
|
@@ -299,7 +429,7 @@ const at = "av-bubble", ee = "av-button", ot = (e) => {
|
|
|
299
429
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
300
430
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
301
431
|
});
|
|
302
|
-
},
|
|
432
|
+
}, ht = ({
|
|
303
433
|
mode: e,
|
|
304
434
|
noBorder: t,
|
|
305
435
|
variant: r
|
|
@@ -327,7 +457,7 @@ const at = "av-bubble", ee = "av-button", ot = (e) => {
|
|
|
327
457
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
328
458
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
329
459
|
});
|
|
330
|
-
},
|
|
460
|
+
}, pt = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
331
461
|
"focus:outline-focus-dark": e === "dark",
|
|
332
462
|
"focus:outline-focus-light": e === "light",
|
|
333
463
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
@@ -352,18 +482,18 @@ const at = "av-bubble", ee = "av-button", ot = (e) => {
|
|
|
352
482
|
}) => (s || (s = "primary"), r ? l(ee, t) : l(
|
|
353
483
|
ee,
|
|
354
484
|
t,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
485
|
+
st(u),
|
|
486
|
+
gt({ mode: a, variant: s, noBackground: b, noTruncate: h }),
|
|
487
|
+
ct({ type: e, size: d, labelRight: g, labelLeft: p, align: y }),
|
|
488
|
+
ht({ mode: a, variant: s, noBorder: m }),
|
|
489
|
+
pt({ focusMode: n }),
|
|
490
|
+
ut({ mode: a, variant: s, disabled: o }),
|
|
491
|
+
mt({ mode: a, variant: s, disabled: o }),
|
|
362
492
|
{
|
|
363
493
|
"w-full": c,
|
|
364
494
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
365
495
|
}
|
|
366
|
-
)),
|
|
496
|
+
)), bt = (e, t, r) => {
|
|
367
497
|
var a;
|
|
368
498
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
369
499
|
}, F = C.forwardRef((e, t) => {
|
|
@@ -373,7 +503,7 @@ const at = "av-bubble", ee = "av-button", ot = (e) => {
|
|
|
373
503
|
{
|
|
374
504
|
ref: t,
|
|
375
505
|
onClick: (o) => {
|
|
376
|
-
|
|
506
|
+
bt(o, a, r);
|
|
377
507
|
},
|
|
378
508
|
...n
|
|
379
509
|
}
|
|
@@ -454,7 +584,7 @@ try {
|
|
|
454
584
|
});
|
|
455
585
|
} catch {
|
|
456
586
|
}
|
|
457
|
-
const
|
|
587
|
+
const ft = C.forwardRef(
|
|
458
588
|
({
|
|
459
589
|
children: e,
|
|
460
590
|
disabled: t = !1,
|
|
@@ -531,8 +661,8 @@ const ht = C.forwardRef(
|
|
|
531
661
|
) });
|
|
532
662
|
}
|
|
533
663
|
);
|
|
534
|
-
|
|
535
|
-
const
|
|
664
|
+
ft.displayName = "ButtonSort";
|
|
665
|
+
const yt = (e) => {
|
|
536
666
|
let t = "";
|
|
537
667
|
if (typeof e == "number" || typeof e == "string")
|
|
538
668
|
t = "m-" + e;
|
|
@@ -553,7 +683,7 @@ const pt = (e) => {
|
|
|
553
683
|
semantic: m = !1,
|
|
554
684
|
...g
|
|
555
685
|
}) => {
|
|
556
|
-
const p =
|
|
686
|
+
const p = yt(c), u = l(
|
|
557
687
|
p,
|
|
558
688
|
a || o
|
|
559
689
|
);
|
|
@@ -588,7 +718,7 @@ try {
|
|
|
588
718
|
});
|
|
589
719
|
} catch {
|
|
590
720
|
}
|
|
591
|
-
const
|
|
721
|
+
const vt = ({
|
|
592
722
|
className: e,
|
|
593
723
|
viewBox: t,
|
|
594
724
|
spacing: r,
|
|
@@ -616,7 +746,7 @@ const bt = ({
|
|
|
616
746
|
/* @__PURE__ */ i("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
|
|
617
747
|
]
|
|
618
748
|
}
|
|
619
|
-
),
|
|
749
|
+
), kt = ({
|
|
620
750
|
className: e,
|
|
621
751
|
viewBox: t,
|
|
622
752
|
spacing: r,
|
|
@@ -649,7 +779,7 @@ try {
|
|
|
649
779
|
});
|
|
650
780
|
} catch {
|
|
651
781
|
}
|
|
652
|
-
const
|
|
782
|
+
const xt = (e) => {
|
|
653
783
|
let t = "";
|
|
654
784
|
if (typeof e == "number" || typeof e == "string")
|
|
655
785
|
t = "m-" + e;
|
|
@@ -658,36 +788,36 @@ const yt = (e) => {
|
|
|
658
788
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
659
789
|
}
|
|
660
790
|
return t;
|
|
661
|
-
},
|
|
791
|
+
}, Tt = () => "p-4 sm:max-w-md md:max-w-2xl", _t = ({ kind: e }) => l({
|
|
662
792
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
|
663
793
|
"bg-surface-accent": e === "right"
|
|
664
|
-
}),
|
|
794
|
+
}), Nt = ({ kind: e }) => l(
|
|
665
795
|
"prose prose-dark dark:prose-lighter prose-p:my-3 prose-blockquote:my-3 prose-ol:my-3 prose-ul:my-3 prose-ul:prose-li:marker:text-black",
|
|
666
796
|
{
|
|
667
797
|
"text-copy-lighter": e === "right"
|
|
668
798
|
}
|
|
669
|
-
),
|
|
799
|
+
), wt = ({ kind: e }) => l("rounded-b-xl", {
|
|
670
800
|
"rounded-tr-xl": e === "left",
|
|
671
801
|
"rounded-tl-xl": e === "right"
|
|
672
|
-
}),
|
|
802
|
+
}), Et = ({
|
|
673
803
|
kind: e,
|
|
674
804
|
className: t,
|
|
675
805
|
spacing: r
|
|
676
806
|
}) => {
|
|
677
807
|
const a = l(
|
|
678
808
|
t,
|
|
679
|
-
|
|
809
|
+
it,
|
|
680
810
|
"flex items-start",
|
|
681
|
-
|
|
811
|
+
xt(r),
|
|
682
812
|
{
|
|
683
813
|
"flex-row-reverse": e === "right"
|
|
684
814
|
}
|
|
685
815
|
), n = l(
|
|
686
816
|
"flex flex-col empty:hidden",
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
817
|
+
Tt(),
|
|
818
|
+
Nt({ kind: e }),
|
|
819
|
+
_t({ kind: e }),
|
|
820
|
+
wt({ kind: e })
|
|
691
821
|
), o = "pr-2 pt-1 text-end text-xs text-copy-light", c = l("flex flex-col-reverse gap-2 sm:flex-row", {
|
|
692
822
|
"ml-2": e === "left",
|
|
693
823
|
"mr-2": e === "right"
|
|
@@ -698,7 +828,7 @@ const yt = (e) => {
|
|
|
698
828
|
footer: o,
|
|
699
829
|
copyButton: c
|
|
700
830
|
};
|
|
701
|
-
},
|
|
831
|
+
}, It = ({
|
|
702
832
|
children: e,
|
|
703
833
|
kind: t = "left",
|
|
704
834
|
className: r,
|
|
@@ -709,7 +839,7 @@ const yt = (e) => {
|
|
|
709
839
|
copyToClipboardMode: d = "system",
|
|
710
840
|
spacing: m
|
|
711
841
|
}) => {
|
|
712
|
-
const [g, p] = A(!1), u =
|
|
842
|
+
const [g, p] = A(!1), u = Et({ kind: t, className: r, spacing: m }), b = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), s = () => {
|
|
713
843
|
p(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
714
844
|
};
|
|
715
845
|
return _(() => {
|
|
@@ -740,11 +870,11 @@ const yt = (e) => {
|
|
|
740
870
|
label: g ? "Copied to clipboard" : "Copy to clipboard",
|
|
741
871
|
onClick: s,
|
|
742
872
|
disabled: g,
|
|
743
|
-
children: g ? /* @__PURE__ */ i(
|
|
873
|
+
children: g ? /* @__PURE__ */ i(vt, { className: "size-3" }) : /* @__PURE__ */ i(kt, { className: "size-3" })
|
|
744
874
|
}
|
|
745
875
|
) })
|
|
746
876
|
] });
|
|
747
|
-
}, te = "av-button",
|
|
877
|
+
}, te = "av-button", Ct = (e) => {
|
|
748
878
|
let t = "";
|
|
749
879
|
if (typeof e == "number" || typeof e == "string")
|
|
750
880
|
t = "m-" + e;
|
|
@@ -753,7 +883,7 @@ const yt = (e) => {
|
|
|
753
883
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
754
884
|
}
|
|
755
885
|
return t;
|
|
756
|
-
}, ye = "icon", ve = "button",
|
|
886
|
+
}, ye = "icon", ve = "button", St = "link", Rt = ({
|
|
757
887
|
type: e,
|
|
758
888
|
size: t,
|
|
759
889
|
labelRight: r,
|
|
@@ -768,7 +898,7 @@ const yt = (e) => {
|
|
|
768
898
|
[c]: t === "medium",
|
|
769
899
|
[d]: t === "large"
|
|
770
900
|
});
|
|
771
|
-
case
|
|
901
|
+
case St:
|
|
772
902
|
return l("px-4 text-center", {
|
|
773
903
|
[o]: t === "small",
|
|
774
904
|
[c]: t === "medium",
|
|
@@ -787,7 +917,7 @@ const yt = (e) => {
|
|
|
787
917
|
"h-12 px-4 text-lg font-medium": t === "large" && (r || a)
|
|
788
918
|
});
|
|
789
919
|
}
|
|
790
|
-
},
|
|
920
|
+
}, Bt = ({
|
|
791
921
|
mode: e,
|
|
792
922
|
noBackground: t,
|
|
793
923
|
noTruncate: r,
|
|
@@ -819,7 +949,7 @@ const yt = (e) => {
|
|
|
819
949
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
820
950
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
821
951
|
});
|
|
822
|
-
},
|
|
952
|
+
}, At = ({
|
|
823
953
|
mode: e,
|
|
824
954
|
disabled: t,
|
|
825
955
|
variant: r
|
|
@@ -847,7 +977,7 @@ const yt = (e) => {
|
|
|
847
977
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
848
978
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
849
979
|
});
|
|
850
|
-
},
|
|
980
|
+
}, Mt = ({
|
|
851
981
|
mode: e,
|
|
852
982
|
disabled: t,
|
|
853
983
|
variant: r
|
|
@@ -875,7 +1005,7 @@ const yt = (e) => {
|
|
|
875
1005
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
876
1006
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
877
1007
|
});
|
|
878
|
-
},
|
|
1008
|
+
}, Lt = ({
|
|
879
1009
|
mode: e,
|
|
880
1010
|
noBorder: t,
|
|
881
1011
|
variant: r
|
|
@@ -903,7 +1033,7 @@ const yt = (e) => {
|
|
|
903
1033
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
904
1034
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
905
1035
|
});
|
|
906
|
-
},
|
|
1036
|
+
}, Ot = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
907
1037
|
"focus:outline-focus-dark": e === "dark",
|
|
908
1038
|
"focus:outline-focus-light": e === "light",
|
|
909
1039
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
@@ -928,18 +1058,18 @@ const yt = (e) => {
|
|
|
928
1058
|
}) => (s || (s = "primary"), r ? l(te, t) : l(
|
|
929
1059
|
te,
|
|
930
1060
|
t,
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
1061
|
+
Ct(u),
|
|
1062
|
+
Bt({ mode: a, variant: s, noBackground: b, noTruncate: h }),
|
|
1063
|
+
Rt({ type: e, size: d, labelRight: g, labelLeft: p, align: y }),
|
|
1064
|
+
Lt({ mode: a, variant: s, noBorder: m }),
|
|
1065
|
+
Ot({ focusMode: n }),
|
|
1066
|
+
At({ mode: a, variant: s, disabled: o }),
|
|
1067
|
+
Mt({ mode: a, variant: s, disabled: o }),
|
|
938
1068
|
{
|
|
939
1069
|
"w-full": c,
|
|
940
1070
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
941
1071
|
}
|
|
942
|
-
)),
|
|
1072
|
+
)), $t = (e, t, r) => {
|
|
943
1073
|
var a;
|
|
944
1074
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
945
1075
|
}, K = C.forwardRef((e, t) => {
|
|
@@ -949,7 +1079,7 @@ const yt = (e) => {
|
|
|
949
1079
|
{
|
|
950
1080
|
ref: t,
|
|
951
1081
|
onClick: (o) => {
|
|
952
|
-
|
|
1082
|
+
$t(o, a, r);
|
|
953
1083
|
},
|
|
954
1084
|
...n
|
|
955
1085
|
}
|
|
@@ -1012,7 +1142,7 @@ try {
|
|
|
1012
1142
|
});
|
|
1013
1143
|
} catch {
|
|
1014
1144
|
}
|
|
1015
|
-
const
|
|
1145
|
+
const Ut = C.forwardRef(
|
|
1016
1146
|
({
|
|
1017
1147
|
children: e,
|
|
1018
1148
|
disabled: t = !1,
|
|
@@ -1089,10 +1219,10 @@ const Lt = C.forwardRef(
|
|
|
1089
1219
|
) });
|
|
1090
1220
|
}
|
|
1091
1221
|
);
|
|
1092
|
-
|
|
1093
|
-
const
|
|
1222
|
+
Ut.displayName = "ButtonSort";
|
|
1223
|
+
const zt = 200, Vt = ({
|
|
1094
1224
|
string: e,
|
|
1095
|
-
idealLength: t =
|
|
1225
|
+
idealLength: t = zt
|
|
1096
1226
|
}) => {
|
|
1097
1227
|
if (e.length <= t)
|
|
1098
1228
|
return { string: e, isTruncated: !1 };
|
|
@@ -1103,7 +1233,7 @@ const Ot = 200, $t = ({
|
|
|
1103
1233
|
string: e.slice(0, t + r),
|
|
1104
1234
|
isTruncated: !0
|
|
1105
1235
|
};
|
|
1106
|
-
},
|
|
1236
|
+
}, Dt = ({
|
|
1107
1237
|
children: e,
|
|
1108
1238
|
length: t = 200,
|
|
1109
1239
|
mode: r = "system",
|
|
@@ -1112,7 +1242,7 @@ const Ot = 200, $t = ({
|
|
|
1112
1242
|
const [n, o] = A(!1);
|
|
1113
1243
|
if (typeof e != "string")
|
|
1114
1244
|
return e;
|
|
1115
|
-
const { string: c, isTruncated: d } =
|
|
1245
|
+
const { string: c, isTruncated: d } = Vt({
|
|
1116
1246
|
string: e,
|
|
1117
1247
|
idealLength: t
|
|
1118
1248
|
});
|
|
@@ -1149,9 +1279,9 @@ try {
|
|
|
1149
1279
|
const re = Fe(
|
|
1150
1280
|
() => import(
|
|
1151
1281
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
1152
|
-
"./LazyMessageAssistant.
|
|
1282
|
+
"./LazyMessageAssistant.BMarDoja.js"
|
|
1153
1283
|
).then((e) => e.LazyMessageAssistant)
|
|
1154
|
-
),
|
|
1284
|
+
), Ht = () => {
|
|
1155
1285
|
const { state: e } = R($);
|
|
1156
1286
|
return /* @__PURE__ */ v(O, { children: [
|
|
1157
1287
|
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
@@ -1164,21 +1294,21 @@ const re = Fe(
|
|
|
1164
1294
|
children: n
|
|
1165
1295
|
}
|
|
1166
1296
|
) }, `${r}-${a}`) : a === H && n ? /* @__PURE__ */ i(
|
|
1167
|
-
|
|
1297
|
+
It,
|
|
1168
1298
|
{
|
|
1169
1299
|
kind: "right",
|
|
1170
1300
|
copyToClipboard: n,
|
|
1171
1301
|
copyToClipboardFocusMode: "light",
|
|
1172
|
-
children: /* @__PURE__ */ i(
|
|
1302
|
+
children: /* @__PURE__ */ i(Dt, { mode: "light", focusMode: "light", children: n })
|
|
1173
1303
|
},
|
|
1174
1304
|
`${r}-${a}`
|
|
1175
1305
|
) : null;
|
|
1176
1306
|
}),
|
|
1177
|
-
|
|
1307
|
+
ue(H, e) && /* @__PURE__ */ i(Q, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(re, { loading: !0 }) })
|
|
1178
1308
|
] });
|
|
1179
1309
|
}, L = (e, t) => {
|
|
1180
1310
|
e({
|
|
1181
|
-
type:
|
|
1311
|
+
type: se,
|
|
1182
1312
|
payload: {
|
|
1183
1313
|
streaming: t
|
|
1184
1314
|
}
|
|
@@ -1189,11 +1319,11 @@ const re = Fe(
|
|
|
1189
1319
|
payload: {
|
|
1190
1320
|
message: {
|
|
1191
1321
|
role: G,
|
|
1192
|
-
content:
|
|
1322
|
+
content: Le
|
|
1193
1323
|
}
|
|
1194
1324
|
}
|
|
1195
1325
|
});
|
|
1196
|
-
},
|
|
1326
|
+
}, jt = () => {
|
|
1197
1327
|
const { state: e, dispatch: t } = R($), { state: r, dispatch: a } = R(j), [n, o] = A(""), { getAccessToken: c, user: d } = U(), m = B(null), g = B(
|
|
1198
1328
|
null
|
|
1199
1329
|
);
|
|
@@ -1205,7 +1335,7 @@ const re = Fe(
|
|
|
1205
1335
|
return;
|
|
1206
1336
|
}
|
|
1207
1337
|
const u = e.messages[e.messages.length - 1];
|
|
1208
|
-
if (!(e.messages.length === 0 || u.message.role === I || u.message.role ===
|
|
1338
|
+
if (!(e.messages.length === 0 || u.message.role === I || u.message.role === Re || u.message.role === G || u.message.role === Be))
|
|
1209
1339
|
try {
|
|
1210
1340
|
const s = await Ge({
|
|
1211
1341
|
accessToken: await c(),
|
|
@@ -1235,7 +1365,7 @@ const re = Fe(
|
|
|
1235
1365
|
k.substring(x + q.length)
|
|
1236
1366
|
);
|
|
1237
1367
|
t({
|
|
1238
|
-
type:
|
|
1368
|
+
type: ne,
|
|
1239
1369
|
payload: {
|
|
1240
1370
|
model: T.model,
|
|
1241
1371
|
usage: T.usage
|
|
@@ -1287,7 +1417,7 @@ const re = Fe(
|
|
|
1287
1417
|
if (r.tag !== "") {
|
|
1288
1418
|
const u = r.tag.endsWith(":") && !r.tag.endsWith(": ") ? r.tag + " " : r.tag;
|
|
1289
1419
|
o(u), m.current && m.current.focus(), a({
|
|
1290
|
-
type:
|
|
1420
|
+
type: le
|
|
1291
1421
|
});
|
|
1292
1422
|
}
|
|
1293
1423
|
}, [r, a]), _(() => {
|
|
@@ -1299,7 +1429,7 @@ const re = Fe(
|
|
|
1299
1429
|
focusMode: "light",
|
|
1300
1430
|
ref: m,
|
|
1301
1431
|
name: "chat-input",
|
|
1302
|
-
label:
|
|
1432
|
+
label: Ae,
|
|
1303
1433
|
helperText: "Press ENTER to add a new line",
|
|
1304
1434
|
helperTextOnFocus: !0,
|
|
1305
1435
|
required: !0,
|
|
@@ -1307,138 +1437,28 @@ const re = Fe(
|
|
|
1307
1437
|
onChange: (u) => o(u.target.value),
|
|
1308
1438
|
onKeyDown: Je([["mod+Enter", p]]),
|
|
1309
1439
|
rightElement: /* @__PURE__ */ i(
|
|
1310
|
-
|
|
1440
|
+
ge,
|
|
1311
1441
|
{
|
|
1312
1442
|
disabled: e == null ? void 0 : e.streaming,
|
|
1313
1443
|
noBorder: !0,
|
|
1314
1444
|
type: "submit",
|
|
1315
1445
|
mode: "light",
|
|
1316
1446
|
focusMode: "light",
|
|
1317
|
-
children:
|
|
1447
|
+
children: Me
|
|
1318
1448
|
}
|
|
1319
1449
|
)
|
|
1320
1450
|
}
|
|
1321
1451
|
) });
|
|
1322
|
-
},
|
|
1323
|
-
const { isAuthenticated: e } = U(), t =
|
|
1452
|
+
}, Gt = () => {
|
|
1453
|
+
const { isAuthenticated: e } = U(), t = Oe(e);
|
|
1324
1454
|
return /* @__PURE__ */ v(O, { children: [
|
|
1325
1455
|
/* @__PURE__ */ v("div", { className: t, children: [
|
|
1326
|
-
/* @__PURE__ */ i(
|
|
1327
|
-
/* @__PURE__ */ i(
|
|
1456
|
+
/* @__PURE__ */ i($e, {}),
|
|
1457
|
+
/* @__PURE__ */ i(Ht, {})
|
|
1328
1458
|
] }),
|
|
1329
|
-
/* @__PURE__ */ i(
|
|
1330
|
-
/* @__PURE__ */ i(
|
|
1459
|
+
/* @__PURE__ */ i(nt, {}),
|
|
1460
|
+
/* @__PURE__ */ i(jt, {})
|
|
1331
1461
|
] });
|
|
1332
|
-
}, Ht = (e, t) => (t == null ? void 0 : t.type) === de ? {
|
|
1333
|
-
tags: e.tags,
|
|
1334
|
-
tag: t.payload.tag
|
|
1335
|
-
} : (t == null ? void 0 : t.type) === ce ? {
|
|
1336
|
-
tags: e.tags,
|
|
1337
|
-
tag: ""
|
|
1338
|
-
} : (t == null ? void 0 : t.type) === oe ? {
|
|
1339
|
-
tags: t.payload.tags,
|
|
1340
|
-
tag: ""
|
|
1341
|
-
} : e, jt = (e, t) => (t == null ? void 0 : t.type) === Le ? {
|
|
1342
|
-
searchString: t.payload.searchString,
|
|
1343
|
-
sortedCell: e.sortedCell,
|
|
1344
|
-
sortDirection: e.sortDirection
|
|
1345
|
-
} : (t == null ? void 0 : t.type) === Oe ? {
|
|
1346
|
-
searchString: e.searchString,
|
|
1347
|
-
sortedCell: t.payload.sortedCell,
|
|
1348
|
-
sortDirection: t.payload.sortDirection
|
|
1349
|
-
} : e, Gt = (e, t) => {
|
|
1350
|
-
if ((t == null ? void 0 : t.type) === $e) {
|
|
1351
|
-
const r = t.payload.messages.map((a) => ({
|
|
1352
|
-
message: {
|
|
1353
|
-
role: a.role,
|
|
1354
|
-
content: a.content,
|
|
1355
|
-
name: a.name,
|
|
1356
|
-
processingTime: a.processingTime
|
|
1357
|
-
}
|
|
1358
|
-
}));
|
|
1359
|
-
return {
|
|
1360
|
-
id: t.payload.id,
|
|
1361
|
-
model: t.payload.model,
|
|
1362
|
-
usage: t.payload.usage,
|
|
1363
|
-
isComponent: e.isComponent,
|
|
1364
|
-
messages: r,
|
|
1365
|
-
engine: e.engine,
|
|
1366
|
-
tags: e.tags
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
|
-
if ((t == null ? void 0 : t.type) === S) {
|
|
1370
|
-
const r = t.payload.message.role, a = t.payload.message.content, n = t.payload.message.name, o = t.payload.message.processingTime, c = t.payload.message.messageId;
|
|
1371
|
-
if (r !== "") {
|
|
1372
|
-
const d = {
|
|
1373
|
-
role: r,
|
|
1374
|
-
content: a,
|
|
1375
|
-
name: n,
|
|
1376
|
-
processingTime: o,
|
|
1377
|
-
messageId: c
|
|
1378
|
-
};
|
|
1379
|
-
if (r === I) {
|
|
1380
|
-
const m = e.messages.findIndex(
|
|
1381
|
-
(g) => g.message.messageId === c
|
|
1382
|
-
);
|
|
1383
|
-
if (m !== -1) {
|
|
1384
|
-
const g = e.messages.map((p, u) => u === m ? {
|
|
1385
|
-
message: {
|
|
1386
|
-
...p.message,
|
|
1387
|
-
content: `${p.message.content}${a}`,
|
|
1388
|
-
processingTime: o,
|
|
1389
|
-
name: n
|
|
1390
|
-
}
|
|
1391
|
-
} : p);
|
|
1392
|
-
return {
|
|
1393
|
-
id: e.id,
|
|
1394
|
-
model: e.model,
|
|
1395
|
-
usage: e.usage,
|
|
1396
|
-
isComponent: e.isComponent,
|
|
1397
|
-
messages: g,
|
|
1398
|
-
engine: e.engine,
|
|
1399
|
-
tags: e.tags
|
|
1400
|
-
};
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
return {
|
|
1404
|
-
id: e.id,
|
|
1405
|
-
model: e.model,
|
|
1406
|
-
engine: e.engine,
|
|
1407
|
-
tags: e.tags,
|
|
1408
|
-
usage: e.usage,
|
|
1409
|
-
isComponent: e.isComponent,
|
|
1410
|
-
messages: [
|
|
1411
|
-
...e.messages,
|
|
1412
|
-
{
|
|
1413
|
-
message: d
|
|
1414
|
-
}
|
|
1415
|
-
]
|
|
1416
|
-
};
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
return (t == null ? void 0 : t.type) === se ? {
|
|
1420
|
-
id: P(),
|
|
1421
|
-
model: e.model,
|
|
1422
|
-
engine: e.engine,
|
|
1423
|
-
usage: 0,
|
|
1424
|
-
messages: [],
|
|
1425
|
-
isComponent: e.isComponent,
|
|
1426
|
-
tags: e.tags
|
|
1427
|
-
} : (t == null ? void 0 : t.type) === le ? {
|
|
1428
|
-
id: e.id,
|
|
1429
|
-
model: t.payload.model,
|
|
1430
|
-
engine: e.engine,
|
|
1431
|
-
tags: e.tags,
|
|
1432
|
-
usage: t.payload.usage,
|
|
1433
|
-
messages: e.messages,
|
|
1434
|
-
isComponent: e.isComponent
|
|
1435
|
-
} : (t == null ? void 0 : t.type) === ue ? {
|
|
1436
|
-
...e,
|
|
1437
|
-
engine: t.payload.engine
|
|
1438
|
-
} : (t == null ? void 0 : t.type) === ge ? {
|
|
1439
|
-
...e,
|
|
1440
|
-
streaming: t.payload.streaming
|
|
1441
|
-
} : e;
|
|
1442
1462
|
};
|
|
1443
1463
|
function Te({ isComponent: e = !1 }) {
|
|
1444
1464
|
const t = B(!1), { getAccessToken: r, user: a } = U(), [n] = J({
|
|
@@ -1447,7 +1467,7 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1447
1467
|
}), [o] = J({
|
|
1448
1468
|
key: X + He,
|
|
1449
1469
|
initialValue: We.ASC
|
|
1450
|
-
}), [c, d] = V(
|
|
1470
|
+
}), [c, d] = V(rt, {
|
|
1451
1471
|
id: P(),
|
|
1452
1472
|
model: M,
|
|
1453
1473
|
engine: M,
|
|
@@ -1455,12 +1475,13 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1455
1475
|
messages: [],
|
|
1456
1476
|
tags: [],
|
|
1457
1477
|
isComponent: e
|
|
1458
|
-
}), [m, g] = V(
|
|
1478
|
+
}), [m, g] = V(at, {
|
|
1459
1479
|
searchString: n,
|
|
1460
1480
|
sortedCell: "timestamp",
|
|
1461
1481
|
sortDirection: o
|
|
1462
|
-
}), [p, u] = V(
|
|
1463
|
-
tag: ""
|
|
1482
|
+
}), [p, u] = V(ot, {
|
|
1483
|
+
tag: "",
|
|
1484
|
+
tags: []
|
|
1464
1485
|
}), [b, s] = A({
|
|
1465
1486
|
version: "",
|
|
1466
1487
|
models: [],
|
|
@@ -1480,7 +1501,7 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1480
1501
|
}
|
|
1481
1502
|
});
|
|
1482
1503
|
t.current = !1, h.status === 200 && (s(h.data), d({
|
|
1483
|
-
type:
|
|
1504
|
+
type: ie,
|
|
1484
1505
|
payload: {
|
|
1485
1506
|
engine: h.data.engine
|
|
1486
1507
|
}
|
|
@@ -1506,7 +1527,7 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1506
1527
|
{
|
|
1507
1528
|
value: { state: p, dispatch: u },
|
|
1508
1529
|
children: [
|
|
1509
|
-
/* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(
|
|
1530
|
+
/* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Gt, {}) }),
|
|
1510
1531
|
/* @__PURE__ */ i(Ve, { serverStats: b })
|
|
1511
1532
|
]
|
|
1512
1533
|
}
|
|
@@ -1517,6 +1538,6 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1517
1538
|
Te.displayName = "App";
|
|
1518
1539
|
const qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Te }, Symbol.toStringTag, { value: "Module" }));
|
|
1519
1540
|
export {
|
|
1520
|
-
qt as
|
|
1521
|
-
|
|
1541
|
+
qt as LazyApp,
|
|
1542
|
+
It as le
|
|
1522
1543
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as v, Fragment as A } from "react/jsx-runtime";
|
|
2
|
-
import { g as O, E as B, CARDS as N, renderDataAsList as se, pluralize as be, AppContext as ue, ABOUT_TITLE as Rt, DEFAULT_AI_ENGINE as ae, numberFormatter as At, durationFormatter as qe, NA as Mt, ROLE_ASSISTANT as Lt, extractAverage as Pt, GPT4_MAX_TOKENS as $t, rn as X, STATS as Xe, b as ie, j as $, R as G, HistoryContext as Ze, LOCAL_STORAGE_PREFIX as me, LOCAL_STORAGE_SORT as Bt, O as Y, ACTION_RESET as Je, ACTION_RESTORE as zt, truncate as Ot, ACTION_SORT as we, LOCAL_STORAGE_SEARCH as Vt, me as xe, ACTION_SEARCH as Dt, HISTORY_TITLE as Ft, LOCAL_STORAGE_ENGINE_TOGGLE as Qe, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as fe, APP_NAME as Ht, ACTION_ENGINE as et, getCurrentGeoLocation as Gt, TagsContext as Ut, TAGS_DESCRIPTION as jt, ACTION_SET_TAGS as Kt, LOCAL_STORAGE_CHAT_DETAILS as Wt, G as Yt, v as Oe, PROFILE_TITLE as qt, LOG_OUT as Ve } from "./index.
|
|
3
|
-
import { serviceCall as F, SERVICE_TYPES as H, E as he, f as D, ge as Xt, he as Zt, ue as Ne, de as P, pe as Jt, me as Qt, be as eo, we as De, n as Fe } from "./index.
|
|
2
|
+
import { g as O, E as B, CARDS as N, renderDataAsList as se, pluralize as be, AppContext as ue, ABOUT_TITLE as Rt, DEFAULT_AI_ENGINE as ae, numberFormatter as At, durationFormatter as qe, NA as Mt, ROLE_ASSISTANT as Lt, extractAverage as Pt, GPT4_MAX_TOKENS as $t, rn as X, STATS as Xe, b as ie, j as $, R as G, HistoryContext as Ze, LOCAL_STORAGE_PREFIX as me, LOCAL_STORAGE_SORT as Bt, O as Y, ACTION_RESET as Je, ACTION_RESTORE as zt, truncate as Ot, ACTION_SORT as we, LOCAL_STORAGE_SEARCH as Vt, me as xe, ACTION_SEARCH as Dt, HISTORY_TITLE as Ft, LOCAL_STORAGE_ENGINE_TOGGLE as Qe, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as fe, APP_NAME as Ht, ACTION_ENGINE as et, getCurrentGeoLocation as Gt, TagsContext as Ut, TAGS_DESCRIPTION as jt, ACTION_SET_TAGS as Kt, LOCAL_STORAGE_CHAT_DETAILS as Wt, G as Yt, v as Oe, PROFILE_TITLE as qt, LOG_OUT as Ve } from "./index.Cox6Ux55.js";
|
|
3
|
+
import { serviceCall as F, SERVICE_TYPES as H, E as he, f as D, ge as Xt, he as Zt, ue as Ne, de as P, pe as Jt, me as Qt, be as eo, we as De, n as Fe } from "./index.p6kaA5n7.js";
|
|
4
4
|
import * as f from "react";
|
|
5
5
|
import x, { useId as to, forwardRef as tt, useState as S, useRef as le, useContext as z, useEffect as U, Suspense as oo, lazy as ro, useMemo as ao } from "react";
|
|
6
6
|
import w from "clsx";
|
|
@@ -1640,8 +1640,8 @@ const re = "panel", pe = "messagebox", zr = ({
|
|
|
1640
1640
|
header: N.ABOUT.TITLE_CLIENT,
|
|
1641
1641
|
className: "prose-dark dark:prose-lighter",
|
|
1642
1642
|
children: se(n, {
|
|
1643
|
-
[N.ABOUT.VERSION]: "5.6.
|
|
1644
|
-
[N.ABOUT.BUILD_TIMESTAMP]: "12/
|
|
1643
|
+
[N.ABOUT.VERSION]: "5.6.4",
|
|
1644
|
+
[N.ABOUT.BUILD_TIMESTAMP]: "12/12/2024 06:18 PM EST"
|
|
1645
1645
|
})
|
|
1646
1646
|
}
|
|
1647
1647
|
) }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _i } from "react/jsx-runtime";
|
|
2
|
-
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.
|
|
2
|
+
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.BMarDoja.js";
|
|
3
3
|
const U0 = (
|
|
4
4
|
// Note: overloads like this are needed to support optional generics.
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
|
|
2
|
-
import { le as ot } from "./
|
|
3
|
-
import { E as wi } from "./index.
|
|
2
|
+
import { le as ot } from "./LazyApp.DLcaKEZm.js";
|
|
3
|
+
import { E as wi } from "./index.p6kaA5n7.js";
|
|
4
4
|
import cn from "clsx";
|
|
5
5
|
import { lazy as Si, useContext as Ci, Suspense as Ei } from "react";
|
|
6
|
-
import { AppContext as Ai, LOCAL_STORAGE_PREFIX as Ii, LOCAL_STORAGE_CHAT_DETAILS as Ti, durationFormatter as Pi } from "./index.
|
|
6
|
+
import { AppContext as Ai, LOCAL_STORAGE_PREFIX as Ii, LOCAL_STORAGE_CHAT_DETAILS as Ti, durationFormatter as Pi } from "./index.Cox6Ux55.js";
|
|
7
7
|
var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
8
|
function Li(e) {
|
|
9
9
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -8642,7 +8642,7 @@ function sf(e) {
|
|
|
8642
8642
|
const cf = Si(
|
|
8643
8643
|
() => import(
|
|
8644
8644
|
/* webpackChunkName: "LazyMarkdownWithExtra" */
|
|
8645
|
-
"./LazyMarkdownWithExtra.
|
|
8645
|
+
"./LazyMarkdownWithExtra.CFDuqeUh.js"
|
|
8646
8646
|
)
|
|
8647
8647
|
), In = {
|
|
8648
8648
|
MODEL: "Model",
|
|
@@ -3497,7 +3497,7 @@ try {
|
|
|
3497
3497
|
});
|
|
3498
3498
|
} catch {
|
|
3499
3499
|
}
|
|
3500
|
-
const Kn = "ASK! ME! ANYTHING!", sr = "
|
|
3500
|
+
const Kn = "ASK! ME! ANYTHING!", sr = "LeeLou", Hn = "gizmette.com", Wn = "Log in", Bn = "Sign in with a Passkey", Fo = "Log out", Gn = "Password", Vn = "Powered by ", zo = "Send", jo = "Profile", qo = "Statistics", Xo = "Chat history", Qo = "About", Zo = "Type your question here", es = {
|
|
3501
3501
|
ACTION_WHILE_STREAMING: {
|
|
3502
3502
|
content: "Cancel chat"
|
|
3503
3503
|
},
|
|
@@ -3620,7 +3620,7 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3620
3620
|
row1: /* @__PURE__ */ I("div", { children: [
|
|
3621
3621
|
sr,
|
|
3622
3622
|
" v",
|
|
3623
|
-
"5.6.
|
|
3623
|
+
"5.6.4",
|
|
3624
3624
|
" - ",
|
|
3625
3625
|
Vn,
|
|
3626
3626
|
t && t.engine,
|
|
@@ -3637,7 +3637,7 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3637
3637
|
}, qn = _t(
|
|
3638
3638
|
() => import(
|
|
3639
3639
|
/* webpackChunkName: "LazyHeader" */
|
|
3640
|
-
"./LazyHeader.
|
|
3640
|
+
"./LazyHeader.DF_XuYxS.js"
|
|
3641
3641
|
)
|
|
3642
3642
|
), Xn = () => {
|
|
3643
3643
|
const { isAuthenticated: e } = tt();
|
|
@@ -3645,7 +3645,7 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3645
3645
|
e && /* @__PURE__ */ l(Nt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(qn, {}) }),
|
|
3646
3646
|
/* @__PURE__ */ I("div", { className: "flex items-center justify-center", children: [
|
|
3647
3647
|
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(ln, {}) }),
|
|
3648
|
-
/* @__PURE__ */ I("div", { className: "prose prose-
|
|
3648
|
+
/* @__PURE__ */ I("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
3649
3649
|
/* @__PURE__ */ l("h1", { children: sr }),
|
|
3650
3650
|
/* @__PURE__ */ l("h2", { children: Kn })
|
|
3651
3651
|
] })
|
|
@@ -3746,10 +3746,12 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3746
3746
|
] }),
|
|
3747
3747
|
/* @__PURE__ */ l(jn, {})
|
|
3748
3748
|
] });
|
|
3749
|
-
}, Zn = new URL(document.location.href).searchParams, eo = !!Zn.get("debug") || !1, to = _t(
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3749
|
+
}, Zn = new URL(document.location.href).searchParams, eo = !!Zn.get("debug") || !1, to = _t(
|
|
3750
|
+
() => import(
|
|
3751
|
+
/* webpackChunkName: "LazyApp" */
|
|
3752
|
+
"./LazyApp.DLcaKEZm.js"
|
|
3753
|
+
).then((e) => e.LazyApp)
|
|
3754
|
+
), ro = ({ isComponent: e }) => {
|
|
3753
3755
|
const { isAuthenticated: t } = tt();
|
|
3754
3756
|
return t ? /* @__PURE__ */ l(Nt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(to, { isComponent: e }) }) : /* @__PURE__ */ l(Qn, {});
|
|
3755
3757
|
}, ao = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as x, jsx as c, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
-
import { g as Se } from "./index.
|
|
2
|
+
import { g as Se } from "./index.Cox6Ux55.js";
|
|
3
3
|
import z, { useSyncExternalStore as Ce, useCallback as O, useEffect as $, useContext as R, useRef as f, useState as I, useLayoutEffect as M, useMemo as ie, useId as Ae, useReducer as Ie } from "react";
|
|
4
4
|
import l from "clsx";
|
|
5
5
|
const It = ({
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SassySaint as r } from "./chunks/index.
|
|
1
|
+
import { SassySaint as r } from "./chunks/index.Cox6Ux55.js";
|
|
2
2
|
/*!
|
|
3
|
-
@sassysaint/client v5.6.
|
|
3
|
+
@sassysaint/client v5.6.4
|
|
4
4
|
© 2024 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
|
|
8
|
-
version: "5.6.
|
|
9
|
-
buildTime: "12/
|
|
8
|
+
version: "5.6.4",
|
|
9
|
+
buildTime: "12/12/2024 06:18 PM EST",
|
|
10
10
|
license: "MIT"
|
|
11
11
|
});
|
|
12
12
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/sassysaint",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react-dom": "18.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@sassysaint/client": "5.6.
|
|
33
|
+
"@sassysaint/client": "5.6.4",
|
|
34
34
|
"@versini/ui-styles": "1.11.1"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"sideEffects": [
|
|
42
42
|
"**/*.css"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "db33468774b1e3ba3913b032b2864ac95f32dd4a"
|
|
45
45
|
}
|