@versini/sassysaint 5.3.12 → 5.3.14
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.B363ojr3.js → LazyApp.BiKOKU9f.js} +235 -211
- package/dist/chunks/{LazyHeader.DreE_0cW.js → LazyHeader.CzPaON9J.js} +75 -67
- package/dist/chunks/{LazyMarkdownWithExtra.uvZu98eh.js → LazyMarkdownWithExtra.CPeY_wwW.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.CfAnbm1d.js → LazyMessageAssistant.BRbekCmk.js} +4 -4
- package/dist/chunks/{index.BuI_vLZB.js → index.BQnOdwWT.js} +10 -8
- package/dist/chunks/{index.CXA5Oh8b.js → index.C37kbuLu.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.BQnOdwWT.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.C37kbuLu.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.BRbekCmk.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
|
|
@@ -1284,9 +1414,12 @@ const re = Fe(
|
|
|
1284
1414
|
}), o("");
|
|
1285
1415
|
};
|
|
1286
1416
|
return _(() => {
|
|
1287
|
-
r.tag !== ""
|
|
1288
|
-
|
|
1289
|
-
|
|
1417
|
+
if (r.tag !== "") {
|
|
1418
|
+
const u = r.tag.endsWith(":") && !r.tag.endsWith(": ") ? r.tag + " " : r.tag;
|
|
1419
|
+
o(u), m.current && m.current.focus(), a({
|
|
1420
|
+
type: le
|
|
1421
|
+
});
|
|
1422
|
+
}
|
|
1290
1423
|
}, [r, a]), _(() => {
|
|
1291
1424
|
e && e.usage === 0 && e.messages.length === 0 && m.current && m.current.focus();
|
|
1292
1425
|
}, [e]), /* @__PURE__ */ i("form", { className: "mt-2", onSubmit: p, children: /* @__PURE__ */ i(
|
|
@@ -1296,7 +1429,7 @@ const re = Fe(
|
|
|
1296
1429
|
focusMode: "light",
|
|
1297
1430
|
ref: m,
|
|
1298
1431
|
name: "chat-input",
|
|
1299
|
-
label:
|
|
1432
|
+
label: Ae,
|
|
1300
1433
|
helperText: "Press ENTER to add a new line",
|
|
1301
1434
|
helperTextOnFocus: !0,
|
|
1302
1435
|
required: !0,
|
|
@@ -1304,138 +1437,28 @@ const re = Fe(
|
|
|
1304
1437
|
onChange: (u) => o(u.target.value),
|
|
1305
1438
|
onKeyDown: Je([["mod+Enter", p]]),
|
|
1306
1439
|
rightElement: /* @__PURE__ */ i(
|
|
1307
|
-
|
|
1440
|
+
ge,
|
|
1308
1441
|
{
|
|
1309
1442
|
disabled: e == null ? void 0 : e.streaming,
|
|
1310
1443
|
noBorder: !0,
|
|
1311
1444
|
type: "submit",
|
|
1312
1445
|
mode: "light",
|
|
1313
1446
|
focusMode: "light",
|
|
1314
|
-
children:
|
|
1447
|
+
children: Me
|
|
1315
1448
|
}
|
|
1316
1449
|
)
|
|
1317
1450
|
}
|
|
1318
1451
|
) });
|
|
1319
|
-
},
|
|
1320
|
-
const { isAuthenticated: e } = U(), t =
|
|
1452
|
+
}, Gt = () => {
|
|
1453
|
+
const { isAuthenticated: e } = U(), t = Oe(e);
|
|
1321
1454
|
return /* @__PURE__ */ v(O, { children: [
|
|
1322
1455
|
/* @__PURE__ */ v("div", { className: t, children: [
|
|
1323
|
-
/* @__PURE__ */ i(
|
|
1324
|
-
/* @__PURE__ */ i(
|
|
1456
|
+
/* @__PURE__ */ i($e, {}),
|
|
1457
|
+
/* @__PURE__ */ i(Ht, {})
|
|
1325
1458
|
] }),
|
|
1326
|
-
/* @__PURE__ */ i(
|
|
1327
|
-
/* @__PURE__ */ i(
|
|
1459
|
+
/* @__PURE__ */ i(nt, {}),
|
|
1460
|
+
/* @__PURE__ */ i(jt, {})
|
|
1328
1461
|
] });
|
|
1329
|
-
}, Ht = (e, t) => (t == null ? void 0 : t.type) === de ? {
|
|
1330
|
-
tags: e.tags,
|
|
1331
|
-
tag: t.payload.tag
|
|
1332
|
-
} : (t == null ? void 0 : t.type) === ce ? {
|
|
1333
|
-
tags: e.tags,
|
|
1334
|
-
tag: ""
|
|
1335
|
-
} : (t == null ? void 0 : t.type) === oe ? {
|
|
1336
|
-
tags: t.payload.tags,
|
|
1337
|
-
tag: ""
|
|
1338
|
-
} : e, jt = (e, t) => (t == null ? void 0 : t.type) === Le ? {
|
|
1339
|
-
searchString: t.payload.searchString,
|
|
1340
|
-
sortedCell: e.sortedCell,
|
|
1341
|
-
sortDirection: e.sortDirection
|
|
1342
|
-
} : (t == null ? void 0 : t.type) === Oe ? {
|
|
1343
|
-
searchString: e.searchString,
|
|
1344
|
-
sortedCell: t.payload.sortedCell,
|
|
1345
|
-
sortDirection: t.payload.sortDirection
|
|
1346
|
-
} : e, Gt = (e, t) => {
|
|
1347
|
-
if ((t == null ? void 0 : t.type) === $e) {
|
|
1348
|
-
const r = t.payload.messages.map((a) => ({
|
|
1349
|
-
message: {
|
|
1350
|
-
role: a.role,
|
|
1351
|
-
content: a.content,
|
|
1352
|
-
name: a.name,
|
|
1353
|
-
processingTime: a.processingTime
|
|
1354
|
-
}
|
|
1355
|
-
}));
|
|
1356
|
-
return {
|
|
1357
|
-
id: t.payload.id,
|
|
1358
|
-
model: t.payload.model,
|
|
1359
|
-
usage: t.payload.usage,
|
|
1360
|
-
isComponent: e.isComponent,
|
|
1361
|
-
messages: r,
|
|
1362
|
-
engine: e.engine,
|
|
1363
|
-
tags: e.tags
|
|
1364
|
-
};
|
|
1365
|
-
}
|
|
1366
|
-
if ((t == null ? void 0 : t.type) === S) {
|
|
1367
|
-
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;
|
|
1368
|
-
if (r !== "") {
|
|
1369
|
-
const d = {
|
|
1370
|
-
role: r,
|
|
1371
|
-
content: a,
|
|
1372
|
-
name: n,
|
|
1373
|
-
processingTime: o,
|
|
1374
|
-
messageId: c
|
|
1375
|
-
};
|
|
1376
|
-
if (r === I) {
|
|
1377
|
-
const m = e.messages.findIndex(
|
|
1378
|
-
(g) => g.message.messageId === c
|
|
1379
|
-
);
|
|
1380
|
-
if (m !== -1) {
|
|
1381
|
-
const g = e.messages.map((p, u) => u === m ? {
|
|
1382
|
-
message: {
|
|
1383
|
-
...p.message,
|
|
1384
|
-
content: `${p.message.content}${a}`,
|
|
1385
|
-
processingTime: o,
|
|
1386
|
-
name: n
|
|
1387
|
-
}
|
|
1388
|
-
} : p);
|
|
1389
|
-
return {
|
|
1390
|
-
id: e.id,
|
|
1391
|
-
model: e.model,
|
|
1392
|
-
usage: e.usage,
|
|
1393
|
-
isComponent: e.isComponent,
|
|
1394
|
-
messages: g,
|
|
1395
|
-
engine: e.engine,
|
|
1396
|
-
tags: e.tags
|
|
1397
|
-
};
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
return {
|
|
1401
|
-
id: e.id,
|
|
1402
|
-
model: e.model,
|
|
1403
|
-
engine: e.engine,
|
|
1404
|
-
tags: e.tags,
|
|
1405
|
-
usage: e.usage,
|
|
1406
|
-
isComponent: e.isComponent,
|
|
1407
|
-
messages: [
|
|
1408
|
-
...e.messages,
|
|
1409
|
-
{
|
|
1410
|
-
message: d
|
|
1411
|
-
}
|
|
1412
|
-
]
|
|
1413
|
-
};
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
return (t == null ? void 0 : t.type) === se ? {
|
|
1417
|
-
id: P(),
|
|
1418
|
-
model: e.model,
|
|
1419
|
-
engine: e.engine,
|
|
1420
|
-
usage: 0,
|
|
1421
|
-
messages: [],
|
|
1422
|
-
isComponent: e.isComponent,
|
|
1423
|
-
tags: e.tags
|
|
1424
|
-
} : (t == null ? void 0 : t.type) === le ? {
|
|
1425
|
-
id: e.id,
|
|
1426
|
-
model: t.payload.model,
|
|
1427
|
-
engine: e.engine,
|
|
1428
|
-
tags: e.tags,
|
|
1429
|
-
usage: t.payload.usage,
|
|
1430
|
-
messages: e.messages,
|
|
1431
|
-
isComponent: e.isComponent
|
|
1432
|
-
} : (t == null ? void 0 : t.type) === ue ? {
|
|
1433
|
-
...e,
|
|
1434
|
-
engine: t.payload.engine
|
|
1435
|
-
} : (t == null ? void 0 : t.type) === ge ? {
|
|
1436
|
-
...e,
|
|
1437
|
-
streaming: t.payload.streaming
|
|
1438
|
-
} : e;
|
|
1439
1462
|
};
|
|
1440
1463
|
function Te({ isComponent: e = !1 }) {
|
|
1441
1464
|
const t = B(!1), { getAccessToken: r, user: a } = U(), [n] = J({
|
|
@@ -1444,7 +1467,7 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1444
1467
|
}), [o] = J({
|
|
1445
1468
|
key: X + He,
|
|
1446
1469
|
initialValue: We.ASC
|
|
1447
|
-
}), [c, d] = V(
|
|
1470
|
+
}), [c, d] = V(rt, {
|
|
1448
1471
|
id: P(),
|
|
1449
1472
|
model: M,
|
|
1450
1473
|
engine: M,
|
|
@@ -1452,12 +1475,13 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1452
1475
|
messages: [],
|
|
1453
1476
|
tags: [],
|
|
1454
1477
|
isComponent: e
|
|
1455
|
-
}), [m, g] = V(
|
|
1478
|
+
}), [m, g] = V(at, {
|
|
1456
1479
|
searchString: n,
|
|
1457
1480
|
sortedCell: "timestamp",
|
|
1458
1481
|
sortDirection: o
|
|
1459
|
-
}), [p, u] = V(
|
|
1460
|
-
tag: ""
|
|
1482
|
+
}), [p, u] = V(ot, {
|
|
1483
|
+
tag: "",
|
|
1484
|
+
tags: []
|
|
1461
1485
|
}), [b, s] = A({
|
|
1462
1486
|
version: "",
|
|
1463
1487
|
models: [],
|
|
@@ -1477,7 +1501,7 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1477
1501
|
}
|
|
1478
1502
|
});
|
|
1479
1503
|
t.current = !1, h.status === 200 && (s(h.data), d({
|
|
1480
|
-
type:
|
|
1504
|
+
type: ie,
|
|
1481
1505
|
payload: {
|
|
1482
1506
|
engine: h.data.engine
|
|
1483
1507
|
}
|
|
@@ -1503,7 +1527,7 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1503
1527
|
{
|
|
1504
1528
|
value: { state: p, dispatch: u },
|
|
1505
1529
|
children: [
|
|
1506
|
-
/* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(
|
|
1530
|
+
/* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Gt, {}) }),
|
|
1507
1531
|
/* @__PURE__ */ i(Ve, { serverStats: b })
|
|
1508
1532
|
]
|
|
1509
1533
|
}
|
|
@@ -1514,6 +1538,6 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1514
1538
|
Te.displayName = "App";
|
|
1515
1539
|
const qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Te }, Symbol.toStringTag, { value: "Module" }));
|
|
1516
1540
|
export {
|
|
1517
|
-
qt as
|
|
1518
|
-
|
|
1541
|
+
qt as LazyApp,
|
|
1542
|
+
It as le
|
|
1519
1543
|
};
|