@versini/sassysaint 8.119.5 → 8.120.0
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.YIdNPblU.js → AboutChangelog.CiMwDFMv.js} +2 -2
- package/dist/chunks/{AboutEntry.DzPowElg.js → AboutEntry.BN0WAKwk.js} +7 -7
- package/dist/chunks/{App.D4Sc4WUI.js → App.DWOS3-Zr.js} +1291 -1294
- package/dist/chunks/{BubbleActions.9H1J0SPh.js → BubbleActions.Bwci7Shh.js} +3 -3
- package/dist/chunks/{ButtonIconDelete.YIF5s9qQ.js → ButtonIconDelete.zhEJV79_.js} +2 -2
- package/dist/chunks/{Chart.DVbHlnsH.js → Chart.CXWAz5RP.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.W1BzCjwE.js → ChatBubbleAssistant.DJzpCo47.js} +5 -5
- package/dist/chunks/{ChatBubbleUser.C6WcbWH1.js → ChatBubbleUser.2kbd2O17.js} +4 -4
- package/dist/chunks/{HistoryDataGrid.CqCjjo0a.js → HistoryDataGrid.BXOaTXSG.js} +4 -4
- package/dist/chunks/{HistoryEntry.DVVZ45yL.js → HistoryEntry.BeQftxF9.js} +5 -5
- package/dist/chunks/{InlineFilter.Cw46MfSE.js → InlineFilter.tyGlTl4e.js} +3 -3
- package/dist/chunks/{LoginEntry.BKYAfYnE.js → LoginEntry.s60F2Jzq.js} +4 -4
- package/dist/chunks/{LogoEntry.Bpt705Mg.js → LogoEntry.dZNdv5Tq.js} +80 -82
- package/dist/chunks/{MemoriesEntry.DOaCXnYS.js → MemoriesEntry.iVK99wYu.js} +6 -6
- package/dist/chunks/{ProfileEntry.C6XElcik.js → ProfileEntry.D7XIXrR4.js} +4 -4
- package/dist/chunks/{SettingsEntry.CzKLagTH.js → SettingsEntry.Dp4NzTB8.js} +176 -188
- package/dist/chunks/{UsageEntry.5H8aeXx4.js → UsageEntry.BjLeuZLM.js} +5 -5
- package/dist/chunks/{_baseUniq.D6VNg6mO.js → _baseUniq.CO3fOjjz.js} +1 -1
- package/dist/chunks/{arc.BARRQO3r.js → arc.DrpQdQXi.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.BcBrEHVV.js → architecture-U656AL7Q.D7UmVFPx.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.zlWfCJeB.js → architectureDiagram-VXUJARFQ.Cqk4SoU-.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.DwuIn14q.js → blockDiagram-VD42YOAC.C4szqmNL.js} +5 -5
- package/dist/chunks/{browser.DfSXqAX3.js → browser.DApHYfe-.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.Z3suOI4w.js → c4Diagram-YG6GDRKO.CmBoi2CR.js} +2 -2
- package/dist/chunks/{channel.Dkl8dKhC.js → channel.DrMqe6AY.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.au4FMWDh.js → chunk-4BX2VUAB.Pos-9qpF.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.q3YZn1zi.js → chunk-55IACEB6.B9i63c8G.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.Ma7R9_Wo.js → chunk-B4BG7PRW.0T_ifPoF.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.DrfEhKnv.js → chunk-DI55MBZ5.YMa8NzWA.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.B-7lXEBc.js → chunk-FMBD7UC4.BhsL3jH5.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.DRX_VOB9.js → chunk-QN33PNHL.DNFUGOVy.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.DDlg4qcq.js → chunk-QZHKN3VN.DEpYL9kG.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.D3D7UsBR.js → chunk-TZMSLE5B.Ds0xNHua.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.CoiZoRsR.js → classDiagram-2ON5EDUG.D2ZRzQeQ.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.CoiZoRsR.js → classDiagram-v2-WZHVMYZB.D2ZRzQeQ.js} +2 -2
- package/dist/chunks/{clone.MmuDLVNv.js → clone.BRhiI_Y1.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.Bk7BICd6.js → cose-bilkent-S5V4N54A.JoGjaGrW.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.qUyA6wME.js → dagre-6UL2VRFP.Dl1RqOFy.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.CosefdxZ.js → diagram-PSM6KHXK.CH1ttRjI.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.Dj-fFwSL.js → diagram-QEK2KX5R.Dthkf53P.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.quOA__jS.js → diagram-S2PKOQOG.BYAF58op.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.C_MeTvaQ.js → erDiagram-Q2GNP2WA.B-c3fUAE.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.DH0vtpYX.js → flowDiagram-NV44I4VS.d3Crkflv.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.2ii6-CTy.js → ganttDiagram-JELNMOA3.BZUslaPj.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.CofHaA2o.js → gitGraph-F6HP7TQM.Dg9KWB-l.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.Bab92B1G.js → gitGraphDiagram-NY62KEGX.Bxd84EzU.js} +4 -4
- package/dist/chunks/{graph.Chas7SQQ.js → graph.Cy2iRpMo.js} +2 -2
- package/dist/chunks/{index.cTFMsxbf.js → index.BRCD1cnC.js} +3 -3
- package/dist/chunks/{index.DBd7vRs9.js → index.B_ffBXUs.js} +97 -99
- package/dist/chunks/{index.DPwUHjkH.js → index.Bkx9ZaWG.js} +1 -1
- package/dist/chunks/{index.4O3DJSDa.js → index.CjtYvTpj.js} +3 -3
- package/dist/chunks/{index.D4WnwwFo.js → index.D2ekUV-1.js} +1 -1
- package/dist/chunks/{index.GUMWScg6.js → index.D95hByw4.js} +1 -1
- package/dist/chunks/{index.DUuEOX8c.js → index.D9RU5gfP.js} +1 -1
- package/dist/chunks/{index.g-JYsaEk.js → index.DSidfZIc.js} +1 -1
- package/dist/chunks/{index.CA_O5YCP.js → index.Hh_cKRWI.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.WshtQh4L.js → info-NVLQJR56.CgqtZDeD.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.ChAh_81N.js → infoDiagram-WHAUD3N6.0odiErPl.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.BnWdPf1u.js → journeyDiagram-XKPGCS4Q.0lqSaVMS.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.CxKO0M-K.js → kanban-definition-3W4ZIXB7.BaLDZtyY.js} +2 -2
- package/dist/chunks/{layout.B7g0808G.js → layout.BBoJB8uY.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.CvEN1PGT.js → mermaid-parser.core.CJcQT_To.js} +10 -10
- package/dist/chunks/{min.Vi7mEu6x.js → min.BZKGCI-7.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.Dgl2Am33.js → mindmap-definition-VGOIOE7T.DoyH4D1g.js} +3 -3
- package/dist/chunks/{packet-BFZMPI3H.C2dDja_3.js → packet-BFZMPI3H.BLBWjL2V.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.CHPQaQLQ.js → pie-7BOR55EZ.BjVCVhip.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.BoRuG9Kl.js → pieDiagram-ADFJNKIX.DKVDErlN.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.CAv7hyzI.js → quadrantDiagram-AYHSOK5B.CHSROtbs.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.DrGkpeaq.js → radar-NHE76QYJ.D24Z9Uz6.js} +1 -1
- package/dist/chunks/{rehype-mermaid.Cci5Eyz0.js → rehype-mermaid.tmq66h-d.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.UZYft8tk.js → requirementDiagram-UZGBJVZJ.B-9f1NHl.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.C9z542jD.js → sankeyDiagram-TZEHDZUN.Ck4-1oi0.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.C1pyhJgS.js → sequenceDiagram-WL72ISMW.DhJKjOWr.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.C4BstJDl.js → stateDiagram-FKZM4ZOC.Bmp-JjZo.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BdBPwQWl.js → stateDiagram-v2-4FDKWEC3.D_7_HtL6.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.BAv9b1WS.js → timeline-definition-IT6M3QCI.BBb9SFUZ.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.BTGZuOgQ.js → treemap-KMMF4GRG.C9MtDnr0.js} +1 -1
- package/dist/chunks/{useMarkdown.BzjWPQ6n.js → useMarkdown.BCe3_oFc.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.CWcW4E01.js → xychartDiagram-PRI3JC2R.CsTEcbFT.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e, Fragment as L } from "react/jsx-runtime";
|
|
2
|
-
import { preloadToast as M, showSuccessToast as j, showErrorToast as D, LazyToastContainerWrapper as K, ConfirmationPanel as O, Panel as W, ButtonCancel as Y } from "./App.
|
|
2
|
+
import { preloadToast as M, showSuccessToast as j, showErrorToast as D, LazyToastContainerWrapper as K, ConfirmationPanel as O, Panel as W, ButtonCancel as Y } from "./App.DWOS3-Zr.js";
|
|
3
3
|
import { useState as d, useMemo as H, useCallback as b, useRef as $ } from "react";
|
|
4
|
-
import { useUniqueId as q, CARDS as n, Button as G, ButtonIcon as V, IconPasskey as y, PROFILE_TITLE as J } from "./LogoEntry.
|
|
5
|
-
import { n as Q, useUserPreferences as X, useServerCapabilities as Z, c as ee, setUserPlan as se, renderDataAsList as ae, st as re, isTauri as ne } from "./index.
|
|
6
|
-
import { Card as S } from "./index.
|
|
4
|
+
import { useUniqueId as q, CARDS as n, Button as G, ButtonIcon as V, IconPasskey as y, PROFILE_TITLE as J } from "./LogoEntry.dZNdv5Tq.js";
|
|
5
|
+
import { n as Q, useUserPreferences as X, useServerCapabilities as Z, c as ee, setUserPlan as se, renderDataAsList as ae, st as re, isTauri as ne } from "./index.B_ffBXUs.js";
|
|
6
|
+
import { Card as S } from "./index.Bkx9ZaWG.js";
|
|
7
7
|
import te from "clsx";
|
|
8
8
|
const ie = ({
|
|
9
9
|
requestConfirmation: m
|
|
@@ -1,150 +1,148 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { n as
|
|
3
|
-
import { AppContext as
|
|
4
|
-
import { Card as
|
|
5
|
-
import { Toggle as
|
|
6
|
-
import { TextArea as
|
|
7
|
-
import { useRef as
|
|
8
|
-
const
|
|
9
|
-
label:
|
|
1
|
+
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { n as we, useEntitlements as ye, useUserPreferences as Ae, F as te, LOCAL_STORAGE_OLED_MODE as Ie, LOCAL_STORAGE_FULL_SCREEN as Re, canEvaluateModels as ke, j as Pe, B as Be, applyOledMode as se, getCurrentGeoLocation as ve, graphQLRequest as ae, SERVICE_TYPES as ne, Z as xe } from "./index.B_ffBXUs.js";
|
|
3
|
+
import { AppContext as Ue, SETTINGS_TITLE as Ge, Button as le, CARDS as n, PROMPTS_DESCRIPTION as Fe, APP_SET_OLED_MODE as re, APP_SET_FULL_SCREEN as ce } from "./LogoEntry.dZNdv5Tq.js";
|
|
4
|
+
import { Card as p } from "./index.Bkx9ZaWG.js";
|
|
5
|
+
import { Toggle as L, useCapability as ie, useLocalStorage as de, Panel as Ve, ButtonCancel as $e } from "./App.DWOS3-Zr.js";
|
|
6
|
+
import { TextArea as ue } from "./index.D2ekUV-1.js";
|
|
7
|
+
import { useRef as je, useContext as ze, useState as s, useMemo as He, useEffect as Ye } from "react";
|
|
8
|
+
const c = ({
|
|
9
|
+
label: M,
|
|
10
10
|
subLabel: N,
|
|
11
|
-
onChange:
|
|
12
|
-
checked:
|
|
13
|
-
name:
|
|
14
|
-
}) => /* @__PURE__ */
|
|
15
|
-
|
|
11
|
+
onChange: f,
|
|
12
|
+
checked: S,
|
|
13
|
+
name: T
|
|
14
|
+
}) => /* @__PURE__ */ o(
|
|
15
|
+
L,
|
|
16
16
|
{
|
|
17
17
|
noBorder: !0,
|
|
18
18
|
narrow: !0,
|
|
19
19
|
className: "mt-2 justify-between",
|
|
20
20
|
labelPosition: "left",
|
|
21
|
-
label:
|
|
21
|
+
label: M,
|
|
22
22
|
subLabel: N,
|
|
23
|
-
name:
|
|
24
|
-
onChange:
|
|
25
|
-
checked:
|
|
23
|
+
name: T,
|
|
24
|
+
onChange: f,
|
|
25
|
+
checked: S
|
|
26
26
|
}
|
|
27
|
-
),
|
|
28
|
-
open:
|
|
27
|
+
), eo = ({
|
|
28
|
+
open: M,
|
|
29
29
|
onOpenChange: N
|
|
30
30
|
}) => {
|
|
31
|
-
const
|
|
32
|
-
data:
|
|
33
|
-
isSuccess:
|
|
34
|
-
refetch:
|
|
35
|
-
} =
|
|
36
|
-
user:
|
|
37
|
-
getAccessToken:
|
|
31
|
+
const f = je(null), { getAccessToken: S, user: T } = we(), { allowedModels: O, status: B } = ye(), { dispatch: C } = ze(Ue), {
|
|
32
|
+
data: t,
|
|
33
|
+
isSuccess: me,
|
|
34
|
+
refetch: v
|
|
35
|
+
} = Ae({
|
|
36
|
+
user: T?.username,
|
|
37
|
+
getAccessToken: S
|
|
38
38
|
}), [x, b] = s({
|
|
39
39
|
loadingLocation: !1
|
|
40
|
-
}), [
|
|
40
|
+
}), [w, U] = s({
|
|
41
41
|
prompts: []
|
|
42
|
-
}), [G,
|
|
43
|
-
key:
|
|
42
|
+
}), [G, F] = s(""), [V, _] = s(""), [$, j] = s(!1), [z, H] = s(!1), [Y, W] = s(!1), [y, q] = s(!1), [K, Q] = s(!1), Z = ie(te.TOOL.MEMORIES), J = ie(te.ADDON.REASONING), [i, he] = de({
|
|
43
|
+
key: Ie,
|
|
44
44
|
initialValue: !1
|
|
45
|
-
}), [u,
|
|
46
|
-
key:
|
|
45
|
+
}), [u, Se] = de({
|
|
46
|
+
key: Re,
|
|
47
47
|
initialValue: !1
|
|
48
|
-
}), [m,
|
|
48
|
+
}), [m, A] = s(!1), [E, I] = s(!1), [X, ee] = s(!1), Ee = He(() => ke(O, B) ? Pe(O) : !1, [O, B]), ge = (e) => {
|
|
49
49
|
Q(e);
|
|
50
|
-
},
|
|
50
|
+
}, pe = (e) => {
|
|
51
51
|
j(e);
|
|
52
|
-
},
|
|
53
|
-
Z &&
|
|
54
|
-
},
|
|
52
|
+
}, Ne = (e) => {
|
|
53
|
+
Z && H(e);
|
|
54
|
+
}, fe = (e) => {
|
|
55
55
|
J && W(e);
|
|
56
|
-
},
|
|
56
|
+
}, Te = (e) => {
|
|
57
57
|
q(e);
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
ee(e
|
|
64
|
-
},
|
|
65
|
-
te(e);
|
|
66
|
-
}, Ie = async (e) => {
|
|
58
|
+
}, Ce = (e) => {
|
|
59
|
+
A(e);
|
|
60
|
+
}, be = (e) => {
|
|
61
|
+
I(e);
|
|
62
|
+
}, _e = (e) => {
|
|
63
|
+
ee(e);
|
|
64
|
+
}, De = async (e) => {
|
|
67
65
|
e.preventDefault();
|
|
68
66
|
try {
|
|
69
|
-
await
|
|
70
|
-
accessToken: await
|
|
71
|
-
type:
|
|
67
|
+
await ae({
|
|
68
|
+
accessToken: await S(),
|
|
69
|
+
type: ne.SET_USER_PREFERENCES,
|
|
72
70
|
params: {
|
|
73
|
-
user:
|
|
71
|
+
user: T?.username,
|
|
74
72
|
instructions: G,
|
|
75
|
-
location:
|
|
76
|
-
provider:
|
|
73
|
+
location: V,
|
|
74
|
+
provider: t?.provider,
|
|
77
75
|
/**
|
|
78
76
|
* When nested model selection is disabled, explicitly clear any stored
|
|
79
77
|
* model preference so the user relies solely on provider defaults. Empty
|
|
80
78
|
* string signals to backend to use provider's default model.
|
|
81
79
|
*/
|
|
82
|
-
model:
|
|
83
|
-
tags:
|
|
80
|
+
model: y && t?.model || "",
|
|
81
|
+
tags: w.prompts,
|
|
84
82
|
sendOnEnter: $,
|
|
85
|
-
useMemory:
|
|
83
|
+
useMemory: z,
|
|
86
84
|
showDetails: K,
|
|
87
85
|
showReasoningButton: Y,
|
|
88
|
-
useNestedModelSelection:
|
|
89
|
-
themeMode:
|
|
90
|
-
useBranchNewChat:
|
|
86
|
+
useNestedModelSelection: y,
|
|
87
|
+
themeMode: xe,
|
|
88
|
+
useBranchNewChat: X
|
|
91
89
|
}
|
|
92
|
-
}), m !== i && (
|
|
93
|
-
type:
|
|
90
|
+
}), m !== i && (he(m), se(m), C({
|
|
91
|
+
type: re,
|
|
94
92
|
payload: { oledMode: m }
|
|
95
|
-
})),
|
|
96
|
-
type:
|
|
97
|
-
payload: { fullScreen:
|
|
98
|
-
})),
|
|
93
|
+
})), E !== u && (Se(E), C({
|
|
94
|
+
type: ce,
|
|
95
|
+
payload: { fullScreen: E }
|
|
96
|
+
})), v(), b({
|
|
99
97
|
loadingLocation: !1
|
|
100
98
|
});
|
|
101
99
|
} catch {
|
|
102
100
|
}
|
|
103
|
-
},
|
|
101
|
+
}, Le = async () => {
|
|
104
102
|
b({
|
|
105
103
|
loadingLocation: !0
|
|
106
|
-
}),
|
|
104
|
+
}), _("...");
|
|
107
105
|
try {
|
|
108
|
-
const e = Date.now(),
|
|
109
|
-
accessToken: await
|
|
110
|
-
type:
|
|
106
|
+
const e = Date.now(), a = await ve(), D = await ae({
|
|
107
|
+
accessToken: await S(),
|
|
108
|
+
type: ne.GET_LOCATION,
|
|
111
109
|
params: {
|
|
112
|
-
latitude:
|
|
113
|
-
longitude:
|
|
110
|
+
latitude: a.latitude,
|
|
111
|
+
longitude: a.longitude
|
|
114
112
|
}
|
|
115
113
|
}), h = Date.now() - e;
|
|
116
|
-
h < 2e3 && await new Promise((
|
|
117
|
-
const { city: d, state: l, country: g, displayName: P } =
|
|
114
|
+
h < 2e3 && await new Promise((Oe) => setTimeout(Oe, 2e3 - h));
|
|
115
|
+
const { city: d, state: l, country: g, displayName: P } = D.data, Me = d && l && g ? `${d}, ${l}, ${g}` : P;
|
|
118
116
|
b({
|
|
119
117
|
loadingLocation: !1
|
|
120
|
-
}),
|
|
118
|
+
}), _(Me);
|
|
121
119
|
} catch {
|
|
122
120
|
b({
|
|
123
121
|
loadingLocation: !1
|
|
124
122
|
});
|
|
125
123
|
}
|
|
126
|
-
},
|
|
127
|
-
m !== i && (
|
|
128
|
-
type:
|
|
124
|
+
}, oe = () => {
|
|
125
|
+
m !== i && (A(i), se(i), C({
|
|
126
|
+
type: re,
|
|
129
127
|
payload: { oledMode: i }
|
|
130
|
-
})),
|
|
131
|
-
type:
|
|
128
|
+
})), E !== u && (I(u), C({
|
|
129
|
+
type: ce,
|
|
132
130
|
payload: { fullScreen: u }
|
|
133
|
-
})),
|
|
131
|
+
})), v(), N(!1);
|
|
134
132
|
}, R = ({
|
|
135
133
|
enabled: e = !1,
|
|
136
|
-
privateChat:
|
|
137
|
-
clipboardAccess:
|
|
134
|
+
privateChat: a = !1,
|
|
135
|
+
clipboardAccess: D = !1,
|
|
138
136
|
...k
|
|
139
137
|
}) => {
|
|
140
138
|
U((h) => {
|
|
141
139
|
const d = h.prompts, l = {
|
|
142
140
|
...k,
|
|
143
141
|
enabled: e,
|
|
144
|
-
privateChat:
|
|
145
|
-
clipboardAccess:
|
|
142
|
+
privateChat: a,
|
|
143
|
+
clipboardAccess: D
|
|
146
144
|
};
|
|
147
|
-
|
|
145
|
+
D ? l.content = l.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : l.content = l.content.replace(/{{clipboard}}/g, "");
|
|
148
146
|
const g = d.findIndex((P) => P.slot === k.slot);
|
|
149
147
|
return g === -1 ? {
|
|
150
148
|
...h,
|
|
@@ -155,54 +153,54 @@ const r = ({
|
|
|
155
153
|
});
|
|
156
154
|
});
|
|
157
155
|
};
|
|
158
|
-
return
|
|
159
|
-
|
|
160
|
-
}, [
|
|
161
|
-
|
|
156
|
+
return Ye(() => {
|
|
157
|
+
t && (t.instructions && F(t.instructions), t.location && _(t.location), t.tags && U({ prompts: t.tags }), t.sendOnEnter !== void 0 && j(t.sendOnEnter), t.useMemory !== void 0 && H(t.useMemory), t.showDetails !== void 0 && Q(t.showDetails), t.showReasoningButton !== void 0 && W(t.showReasoningButton), t.useNestedModelSelection !== void 0 && q(t.useNestedModelSelection), t.useBranchNewChat !== void 0 && ee(t.useBranchNewChat), A(i), I(u));
|
|
158
|
+
}, [t, i, u]), me ? /* @__PURE__ */ r(
|
|
159
|
+
Ve,
|
|
162
160
|
{
|
|
163
|
-
open:
|
|
164
|
-
onOpenChange:
|
|
165
|
-
title:
|
|
161
|
+
open: M,
|
|
162
|
+
onOpenChange: oe,
|
|
163
|
+
title: Ge,
|
|
166
164
|
animation: !0,
|
|
167
165
|
animationType: "fade",
|
|
168
166
|
blurEffect: "large",
|
|
169
|
-
initialFocus:
|
|
170
|
-
footer: /* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
|
|
167
|
+
initialFocus: f,
|
|
168
|
+
footer: /* @__PURE__ */ r("div", { className: "flex flex-wrap justify-end gap-x-2 pb-8 sm:pb-0", children: [
|
|
169
|
+
/* @__PURE__ */ o("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ o(
|
|
170
|
+
$e,
|
|
173
171
|
{
|
|
174
|
-
onOpenChange:
|
|
172
|
+
onOpenChange: oe,
|
|
175
173
|
label: "Cancel",
|
|
176
|
-
ref:
|
|
174
|
+
ref: f
|
|
177
175
|
}
|
|
178
176
|
) }),
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
-
|
|
177
|
+
/* @__PURE__ */ o("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ o(
|
|
178
|
+
le,
|
|
181
179
|
{
|
|
182
180
|
mode: "light",
|
|
183
181
|
focusMode: "light",
|
|
184
182
|
onClick: async (e) => {
|
|
185
|
-
N(!1), await
|
|
183
|
+
N(!1), await De(e);
|
|
186
184
|
},
|
|
187
185
|
children: "Save"
|
|
188
186
|
}
|
|
189
187
|
) })
|
|
190
188
|
] }),
|
|
191
189
|
children: [
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
|
|
190
|
+
/* @__PURE__ */ r(
|
|
191
|
+
p,
|
|
194
192
|
{
|
|
195
193
|
header: "Custom Instructions",
|
|
196
194
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
197
195
|
noBorder: !0,
|
|
198
196
|
children: [
|
|
199
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ r("p", { className: "text-sm", children: [
|
|
200
198
|
"What would you like ",
|
|
201
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ o("em", { children: Be }),
|
|
202
200
|
" to know about you to provide better responses?"
|
|
203
201
|
] }),
|
|
204
|
-
/* @__PURE__ */
|
|
205
|
-
|
|
202
|
+
/* @__PURE__ */ o(
|
|
203
|
+
ue,
|
|
206
204
|
{
|
|
207
205
|
mode: "alt-system",
|
|
208
206
|
autoCapitalize: "off",
|
|
@@ -212,7 +210,7 @@ const r = ({
|
|
|
212
210
|
label: "Custom Instructions",
|
|
213
211
|
value: G,
|
|
214
212
|
onChange: (e) => {
|
|
215
|
-
|
|
213
|
+
F(e.target.value);
|
|
216
214
|
},
|
|
217
215
|
helperText: "Press ENTER to add a new line."
|
|
218
216
|
}
|
|
@@ -220,61 +218,61 @@ const r = ({
|
|
|
220
218
|
]
|
|
221
219
|
}
|
|
222
220
|
),
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
|
|
221
|
+
/* @__PURE__ */ r(
|
|
222
|
+
p,
|
|
225
223
|
{
|
|
226
224
|
header: "Location",
|
|
227
225
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
228
226
|
noBorder: !0,
|
|
229
227
|
children: [
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
/* @__PURE__ */
|
|
232
|
-
|
|
228
|
+
/* @__PURE__ */ o("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
|
|
229
|
+
/* @__PURE__ */ o(
|
|
230
|
+
ue,
|
|
233
231
|
{
|
|
234
232
|
mode: "alt-system",
|
|
235
233
|
name: "location",
|
|
236
234
|
label: "Location",
|
|
237
|
-
value:
|
|
235
|
+
value: V,
|
|
238
236
|
onChange: (e) => {
|
|
239
|
-
|
|
237
|
+
_(e.target.value);
|
|
240
238
|
},
|
|
241
239
|
helperText: "Enter your location or press auto-detect."
|
|
242
240
|
}
|
|
243
241
|
),
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
|
|
242
|
+
/* @__PURE__ */ o(
|
|
243
|
+
le,
|
|
246
244
|
{
|
|
247
245
|
className: "mt-2",
|
|
248
246
|
size: "small",
|
|
249
247
|
noBorder: !0,
|
|
250
248
|
variant: "secondary",
|
|
251
249
|
disabled: x.loadingLocation,
|
|
252
|
-
onClick:
|
|
250
|
+
onClick: Le,
|
|
253
251
|
children: x.loadingLocation ? "Detecting..." : "Auto-detect"
|
|
254
252
|
}
|
|
255
253
|
)
|
|
256
254
|
]
|
|
257
255
|
}
|
|
258
256
|
),
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
|
|
257
|
+
/* @__PURE__ */ r(
|
|
258
|
+
p,
|
|
261
259
|
{
|
|
262
|
-
header:
|
|
260
|
+
header: n.SETTINGS_PROMPTS.TITLE,
|
|
263
261
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
264
262
|
noBorder: !0,
|
|
265
263
|
children: [
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
|
|
268
|
-
|
|
264
|
+
/* @__PURE__ */ o("p", { className: "text-sm", children: Fe }),
|
|
265
|
+
w.prompts && w.prompts.slice(0, 3).map((e) => /* @__PURE__ */ r(
|
|
266
|
+
p,
|
|
269
267
|
{
|
|
270
268
|
mode: "dark",
|
|
271
269
|
noBorder: !0,
|
|
272
270
|
header: e.label.replace("...", ""),
|
|
273
271
|
className: "prose-light mb-2",
|
|
274
272
|
children: [
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
|
|
273
|
+
/* @__PURE__ */ o("p", { className: "text-sm", children: e.description }),
|
|
274
|
+
/* @__PURE__ */ o(
|
|
275
|
+
L,
|
|
278
276
|
{
|
|
279
277
|
noBorder: !0,
|
|
280
278
|
narrow: !0,
|
|
@@ -283,17 +281,17 @@ const r = ({
|
|
|
283
281
|
className: "mt-2",
|
|
284
282
|
label: "Enabled",
|
|
285
283
|
name: e.slot.toString(),
|
|
286
|
-
onChange: (
|
|
284
|
+
onChange: (a) => {
|
|
287
285
|
R({
|
|
288
286
|
...e,
|
|
289
|
-
enabled:
|
|
287
|
+
enabled: a
|
|
290
288
|
});
|
|
291
289
|
},
|
|
292
290
|
checked: e.enabled
|
|
293
291
|
}
|
|
294
292
|
),
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
|
|
293
|
+
/* @__PURE__ */ o(
|
|
294
|
+
L,
|
|
297
295
|
{
|
|
298
296
|
noBorder: !0,
|
|
299
297
|
narrow: !0,
|
|
@@ -302,17 +300,17 @@ const r = ({
|
|
|
302
300
|
className: "mt-2",
|
|
303
301
|
label: "Private Chat",
|
|
304
302
|
name: `private-${e.slot.toString()}`,
|
|
305
|
-
onChange: (
|
|
303
|
+
onChange: (a) => {
|
|
306
304
|
R({
|
|
307
305
|
...e,
|
|
308
|
-
privateChat:
|
|
306
|
+
privateChat: a
|
|
309
307
|
});
|
|
310
308
|
},
|
|
311
309
|
checked: e.privateChat
|
|
312
310
|
}
|
|
313
311
|
),
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
|
|
312
|
+
/* @__PURE__ */ o(
|
|
313
|
+
L,
|
|
316
314
|
{
|
|
317
315
|
noBorder: !0,
|
|
318
316
|
narrow: !0,
|
|
@@ -321,10 +319,10 @@ const r = ({
|
|
|
321
319
|
className: "mt-2",
|
|
322
320
|
label: "Use Clipboard",
|
|
323
321
|
name: `clipboard-${e.slot.toString()}`,
|
|
324
|
-
onChange: (
|
|
322
|
+
onChange: (a) => {
|
|
325
323
|
R({
|
|
326
324
|
...e,
|
|
327
|
-
clipboardAccess:
|
|
325
|
+
clipboardAccess: a
|
|
328
326
|
});
|
|
329
327
|
},
|
|
330
328
|
checked: e.clipboardAccess
|
|
@@ -337,101 +335,91 @@ const r = ({
|
|
|
337
335
|
]
|
|
338
336
|
}
|
|
339
337
|
),
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
|
|
338
|
+
/* @__PURE__ */ r(
|
|
339
|
+
p,
|
|
342
340
|
{
|
|
343
|
-
header:
|
|
341
|
+
header: n.SETTINGS_ADVANCED.TITLE,
|
|
344
342
|
className: "prose-dark dark:prose-lighter mt-4 ",
|
|
345
343
|
noBorder: !0,
|
|
346
344
|
children: [
|
|
347
|
-
/* @__PURE__ */
|
|
348
|
-
|
|
345
|
+
/* @__PURE__ */ o(
|
|
346
|
+
c,
|
|
349
347
|
{
|
|
350
348
|
label: "Message Statistics",
|
|
351
|
-
subLabel:
|
|
349
|
+
subLabel: n.SETTINGS_ADVANCED.SESSION_STATISTICS_DETAILS,
|
|
352
350
|
name: "show-message-statistics",
|
|
353
|
-
onChange:
|
|
351
|
+
onChange: ge,
|
|
354
352
|
checked: K
|
|
355
353
|
}
|
|
356
354
|
),
|
|
357
|
-
/* @__PURE__ */
|
|
358
|
-
|
|
355
|
+
/* @__PURE__ */ o(
|
|
356
|
+
c,
|
|
359
357
|
{
|
|
360
358
|
label: "Send Message on Enter",
|
|
361
|
-
subLabel:
|
|
359
|
+
subLabel: n.SETTINGS_ADVANCED.SEND_ON_ENTER,
|
|
362
360
|
name: "send-message-on-enter",
|
|
363
|
-
onChange:
|
|
361
|
+
onChange: pe,
|
|
364
362
|
checked: $
|
|
365
363
|
}
|
|
366
364
|
),
|
|
367
|
-
Z && /* @__PURE__ */
|
|
368
|
-
|
|
365
|
+
Z && /* @__PURE__ */ o(
|
|
366
|
+
c,
|
|
369
367
|
{
|
|
370
368
|
label: "Use Memory",
|
|
371
|
-
subLabel:
|
|
369
|
+
subLabel: n.SETTINGS_ADVANCED.USE_MEMORY,
|
|
372
370
|
name: "use-memory",
|
|
373
|
-
onChange:
|
|
374
|
-
checked:
|
|
371
|
+
onChange: Ne,
|
|
372
|
+
checked: z
|
|
375
373
|
}
|
|
376
374
|
),
|
|
377
|
-
J && /* @__PURE__ */
|
|
378
|
-
|
|
375
|
+
J && /* @__PURE__ */ o(
|
|
376
|
+
c,
|
|
379
377
|
{
|
|
380
378
|
label: "Reasoning Button",
|
|
381
|
-
subLabel:
|
|
379
|
+
subLabel: n.SETTINGS_ADVANCED.REASONING_BUTTON_DESCRIPTION,
|
|
382
380
|
name: "show-reasoning-button",
|
|
383
|
-
onChange:
|
|
381
|
+
onChange: fe,
|
|
384
382
|
checked: Y
|
|
385
383
|
}
|
|
386
384
|
),
|
|
387
|
-
|
|
388
|
-
|
|
385
|
+
Ee && /* @__PURE__ */ o(
|
|
386
|
+
c,
|
|
389
387
|
{
|
|
390
388
|
label: "Model Selection",
|
|
391
|
-
subLabel:
|
|
389
|
+
subLabel: n.SETTINGS_ADVANCED.NESTED_MODEL_SELECTION_DESCRIPTION,
|
|
392
390
|
name: "use-nested-model-selection",
|
|
393
|
-
onChange:
|
|
394
|
-
checked:
|
|
391
|
+
onChange: Te,
|
|
392
|
+
checked: y
|
|
395
393
|
}
|
|
396
394
|
),
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
|
|
395
|
+
/* @__PURE__ */ o(
|
|
396
|
+
c,
|
|
399
397
|
{
|
|
400
398
|
label: "OLED Mode",
|
|
401
|
-
subLabel:
|
|
399
|
+
subLabel: n.SETTINGS_ADVANCED.BACKGROUND_THEME_DESCRIPTION,
|
|
402
400
|
name: "enable-oled-mode",
|
|
403
|
-
onChange:
|
|
401
|
+
onChange: Ce,
|
|
404
402
|
checked: m
|
|
405
403
|
}
|
|
406
404
|
),
|
|
407
|
-
/* @__PURE__ */
|
|
408
|
-
|
|
409
|
-
{
|
|
410
|
-
label: "Alternative Theme",
|
|
411
|
-
subLabel: a.SETTINGS_ADVANCED.THEME_MODE_DESCRIPTION,
|
|
412
|
-
name: "enable-alternative-theme",
|
|
413
|
-
onChange: Oe,
|
|
414
|
-
checked: X === le
|
|
415
|
-
}
|
|
416
|
-
),
|
|
417
|
-
/* @__PURE__ */ t(
|
|
418
|
-
r,
|
|
405
|
+
/* @__PURE__ */ o(
|
|
406
|
+
c,
|
|
419
407
|
{
|
|
420
408
|
label: "Full Screen",
|
|
421
|
-
subLabel:
|
|
409
|
+
subLabel: n.SETTINGS_ADVANCED.FULL_SCREEN_DESCRIPTION,
|
|
422
410
|
name: "enable-full-screen",
|
|
423
|
-
onChange:
|
|
424
|
-
checked:
|
|
411
|
+
onChange: be,
|
|
412
|
+
checked: E
|
|
425
413
|
}
|
|
426
414
|
),
|
|
427
|
-
/* @__PURE__ */
|
|
428
|
-
|
|
415
|
+
/* @__PURE__ */ o(
|
|
416
|
+
c,
|
|
429
417
|
{
|
|
430
418
|
label: "Branch New Chat",
|
|
431
|
-
subLabel:
|
|
419
|
+
subLabel: n.SETTINGS_ADVANCED.BRANCH_IN_NEW_CHAT,
|
|
432
420
|
name: "enable-branch-new-chat",
|
|
433
|
-
onChange:
|
|
434
|
-
checked:
|
|
421
|
+
onChange: _e,
|
|
422
|
+
checked: X
|
|
435
423
|
}
|
|
436
424
|
)
|
|
437
425
|
]
|
|
@@ -442,5 +430,5 @@ const r = ({
|
|
|
442
430
|
) : null;
|
|
443
431
|
};
|
|
444
432
|
export {
|
|
445
|
-
|
|
433
|
+
eo as SettingsPanel
|
|
446
434
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { n as W, useUserChatStats as q, LOCAL_STORAGE_PREFIX as C, LOCAL_STORAGE_USAGE_VIEW_MODE as X, LOCAL_STORAGE_USAGE_TIME_RANGE as Z, LOCAL_STORAGE_USAGE_SELECTED_MONTH as J, useChatsUsage as Q, renderDataAsList as $ } from "./index.
|
|
3
|
-
import { useUniqueId as ee, TIME_RANGES as e, USAGE_TITLE as te, CARDS as d, TIME_RANGE_LABELS as R, MONTHS as _, ButtonIcon as u, IconChart as re, IconSelected as L, IconUnSelected as v, IconPrevious as se, IconNext as le } from "./LogoEntry.
|
|
4
|
-
import { Card as Y } from "./index.
|
|
5
|
-
import { useLocalStorage as N, Panel as ae, DropdownMenu as ne, DropdownMenuGroupLabel as oe, DropdownMenuItem as k, DropdownMenuSub as ie, ButtonCancel as ce, pluralize as f } from "./App.
|
|
2
|
+
import { n as W, useUserChatStats as q, LOCAL_STORAGE_PREFIX as C, LOCAL_STORAGE_USAGE_VIEW_MODE as X, LOCAL_STORAGE_USAGE_TIME_RANGE as Z, LOCAL_STORAGE_USAGE_SELECTED_MONTH as J, useChatsUsage as Q, renderDataAsList as $ } from "./index.B_ffBXUs.js";
|
|
3
|
+
import { useUniqueId as ee, TIME_RANGES as e, USAGE_TITLE as te, CARDS as d, TIME_RANGE_LABELS as R, MONTHS as _, ButtonIcon as u, IconChart as re, IconSelected as L, IconUnSelected as v, IconPrevious as se, IconNext as le } from "./LogoEntry.dZNdv5Tq.js";
|
|
4
|
+
import { Card as Y } from "./index.Bkx9ZaWG.js";
|
|
5
|
+
import { useLocalStorage as N, Panel as ae, DropdownMenu as ne, DropdownMenuGroupLabel as oe, DropdownMenuItem as k, DropdownMenuSub as ie, ButtonCancel as ce, pluralize as f } from "./App.DWOS3-Zr.js";
|
|
6
6
|
import { useRef as de, useState as z, Suspense as ue, lazy as Te } from "react";
|
|
7
7
|
const n = [0, 3, 6, 9], a = {
|
|
8
8
|
TOKEN: "token",
|
|
@@ -16,7 +16,7 @@ const n = [0, 3, 6, 9], a = {
|
|
|
16
16
|
], me = Te(
|
|
17
17
|
() => import(
|
|
18
18
|
/* webpackChunkName: "chart-highcharts" */
|
|
19
|
-
"./Chart.
|
|
19
|
+
"./Chart.CXWAz5RP.js"
|
|
20
20
|
)
|
|
21
21
|
), _e = ({
|
|
22
22
|
open: P,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isObjectLike as b, baseGetTag as gn, isArray as A, Symbol as v, arrayLikeKeys as an, baseKeys as dn, isArrayLike as W, memoize as hn, isArguments as z, MapCache as pn, eq as An, Uint8Array as m, getTag as N, isBuffer as U, Stack as R, isTypedArray as _n, isObject as on, isLength as wn, isIndex as On, identity as V, baseFor as Pn, Set as S } from "./rehype-mermaid.
|
|
1
|
+
import { isObjectLike as b, baseGetTag as gn, isArray as A, Symbol as v, arrayLikeKeys as an, baseKeys as dn, isArrayLike as W, memoize as hn, isArguments as z, MapCache as pn, eq as An, Uint8Array as m, getTag as N, isBuffer as U, Stack as R, isTypedArray as _n, isObject as on, isLength as wn, isIndex as On, identity as V, baseFor as Pn, Set as S } from "./rehype-mermaid.tmq66h-d.js";
|
|
2
2
|
var vn = "[object Symbol]";
|
|
3
3
|
function x(n) {
|
|
4
4
|
return typeof n == "symbol" || b(n) && gn(n) == vn;
|