@burtson-labs/bandit-engine 2.0.128 → 2.0.130
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/{chat-MLDKHXUH.mjs → chat-KITNRSFA.mjs} +4 -4
- package/dist/{chunk-FWFDOSRM.mjs → chunk-BVYSGIWG.mjs} +2 -2
- package/dist/{chunk-BQW7DSJ6.mjs → chunk-JONBKV2S.mjs} +177 -302
- package/dist/chunk-JONBKV2S.mjs.map +1 -0
- package/dist/{chunk-N3TVVQVS.mjs → chunk-PA4VYO4R.mjs} +207 -69
- package/dist/chunk-PA4VYO4R.mjs.map +1 -0
- package/dist/{chunk-LQJ6OD7F.mjs → chunk-POQY66ZJ.mjs} +322 -154
- package/dist/chunk-POQY66ZJ.mjs.map +1 -0
- package/dist/{chunk-QDTMVQWD.mjs → chunk-R7LKVTK7.mjs} +5 -5
- package/dist/index.js +2154 -1977
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/management/management.js +587 -409
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +4 -4
- package/dist/modals/chat-modal/chat-modal.js +16 -3
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-BQW7DSJ6.mjs.map +0 -1
- package/dist/chunk-LQJ6OD7F.mjs.map +0 -1
- package/dist/chunk-N3TVVQVS.mjs.map +0 -1
- /package/dist/{chat-MLDKHXUH.mjs.map → chat-KITNRSFA.mjs.map} +0 -0
- /package/dist/{chunk-FWFDOSRM.mjs.map → chunk-BVYSGIWG.mjs.map} +0 -0
- /package/dist/{chunk-QDTMVQWD.mjs.map → chunk-R7LKVTK7.mjs.map} +0 -0
|
@@ -2972,7 +2972,8 @@ var AIResponseTextField = ({
|
|
|
2972
2972
|
memoryUpdated,
|
|
2973
2973
|
sourceFiles,
|
|
2974
2974
|
isMobile = false,
|
|
2975
|
-
cancelled = false
|
|
2975
|
+
cancelled = false,
|
|
2976
|
+
revealActionsOnHover = false
|
|
2976
2977
|
}) => {
|
|
2977
2978
|
useEffect5(() => {
|
|
2978
2979
|
if (typeof response !== "string" && !React5.isValidElement(response)) {
|
|
@@ -3460,7 +3461,8 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3460
3461
|
color: chatResponse.aiText || theme.palette.text.primary,
|
|
3461
3462
|
px: isMobile ? 0.5 : 2,
|
|
3462
3463
|
py: 1,
|
|
3463
|
-
userSelect: "text"
|
|
3464
|
+
userSelect: "text",
|
|
3465
|
+
"&:hover .ai-response-actions": { opacity: 1 }
|
|
3464
3466
|
},
|
|
3465
3467
|
children: [
|
|
3466
3468
|
/* @__PURE__ */ jsx5(Box5, { sx: { display: "flex", justifyContent: "flex-end", mb: 2.5 }, children: /* @__PURE__ */ jsxs4(Box5, { sx: { maxWidth: { xs: "100%", sm: "85%" }, minWidth: 0 }, children: [
|
|
@@ -3560,7 +3562,18 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3560
3562
|
}
|
|
3561
3563
|
) : React5.isValidElement(response) ? response : /* @__PURE__ */ jsx5(Typography3, { color: "error", children: "\u26A0\uFE0F Invalid AI response" }) })
|
|
3562
3564
|
] }),
|
|
3563
|
-
!!(responseText || typeof response === "string" && response) && /* @__PURE__ */ jsx5(
|
|
3565
|
+
!!(responseText || typeof response === "string" && response) && /* @__PURE__ */ jsx5(
|
|
3566
|
+
Box5,
|
|
3567
|
+
{
|
|
3568
|
+
className: "ai-response-actions",
|
|
3569
|
+
sx: revealActionsOnHover ? {
|
|
3570
|
+
opacity: 0,
|
|
3571
|
+
transition: "opacity 0.15s ease",
|
|
3572
|
+
"&:focus-within": { opacity: 1 }
|
|
3573
|
+
} : void 0,
|
|
3574
|
+
children: /* @__PURE__ */ jsx5(ai_response_action_bar_default, { text: responseText || response })
|
|
3575
|
+
}
|
|
3576
|
+
),
|
|
3564
3577
|
displaySourceFiles && displaySourceFiles.length > 0 && /* @__PURE__ */ jsx5(Box5, { sx: { mt: 1.5, display: "flex", gap: 2, flexWrap: "wrap", justifyContent: "flex-start" }, children: displaySourceFiles.map((doc, idx) => {
|
|
3565
3578
|
debugLogger.debug("Rendering DocumentCard in AI response", {
|
|
3566
3579
|
index: idx,
|
|
@@ -7128,143 +7141,6 @@ var predefinedThemes = {
|
|
|
7128
7141
|
};
|
|
7129
7142
|
var themeMap_default = themeMap;
|
|
7130
7143
|
|
|
7131
|
-
// src/components/feedback/FeedbackButton.tsx
|
|
7132
|
-
import { useState as useState7 } from "react";
|
|
7133
|
-
import {
|
|
7134
|
-
Fab,
|
|
7135
|
-
Tooltip as Tooltip5,
|
|
7136
|
-
useTheme as useTheme5,
|
|
7137
|
-
Zoom,
|
|
7138
|
-
Button as Button4,
|
|
7139
|
-
IconButton as IconButton6
|
|
7140
|
-
} from "@mui/material";
|
|
7141
|
-
import { MessageCircle as FeedbackIcon2 } from "lucide-react";
|
|
7142
|
-
import { Fragment as Fragment5, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
7143
|
-
var FeedbackButton = ({
|
|
7144
|
-
fullScreen = false,
|
|
7145
|
-
className,
|
|
7146
|
-
zIndex = 1400,
|
|
7147
|
-
feedbackEmail,
|
|
7148
|
-
inline = false,
|
|
7149
|
-
buttonText = "Send Feedback",
|
|
7150
|
-
size = "small",
|
|
7151
|
-
position,
|
|
7152
|
-
absolute = false
|
|
7153
|
-
}) => {
|
|
7154
|
-
const theme = useTheme5();
|
|
7155
|
-
const [open, setOpen] = useState7(false);
|
|
7156
|
-
const handleOpen = () => setOpen(true);
|
|
7157
|
-
const handleClose = () => setOpen(false);
|
|
7158
|
-
if (inline) {
|
|
7159
|
-
return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
7160
|
-
buttonText ? /* @__PURE__ */ jsx7(
|
|
7161
|
-
Button4,
|
|
7162
|
-
{
|
|
7163
|
-
variant: "outlined",
|
|
7164
|
-
startIcon: /* @__PURE__ */ jsx7(FeedbackIcon2, {}),
|
|
7165
|
-
onClick: handleOpen,
|
|
7166
|
-
className,
|
|
7167
|
-
size,
|
|
7168
|
-
sx: {
|
|
7169
|
-
borderRadius: 2,
|
|
7170
|
-
textTransform: "none",
|
|
7171
|
-
"&:hover": {
|
|
7172
|
-
transform: "translateY(-1px)",
|
|
7173
|
-
boxShadow: theme.shadows[4]
|
|
7174
|
-
}
|
|
7175
|
-
},
|
|
7176
|
-
children: buttonText
|
|
7177
|
-
}
|
|
7178
|
-
) : /* @__PURE__ */ jsx7(Tooltip5, { title: "Send Feedback", arrow: true, children: /* @__PURE__ */ jsx7(
|
|
7179
|
-
IconButton6,
|
|
7180
|
-
{
|
|
7181
|
-
onClick: handleOpen,
|
|
7182
|
-
className,
|
|
7183
|
-
size,
|
|
7184
|
-
sx: {
|
|
7185
|
-
color: theme.palette.primary.main,
|
|
7186
|
-
borderRadius: 2,
|
|
7187
|
-
transition: "all 0.2s ease",
|
|
7188
|
-
"&:hover": {
|
|
7189
|
-
bgcolor: theme.palette.primary.main + "15",
|
|
7190
|
-
transform: "translateY(-1px)"
|
|
7191
|
-
}
|
|
7192
|
-
},
|
|
7193
|
-
children: /* @__PURE__ */ jsx7(FeedbackIcon2, {})
|
|
7194
|
-
}
|
|
7195
|
-
) }),
|
|
7196
|
-
/* @__PURE__ */ jsx7(
|
|
7197
|
-
FeedbackModal,
|
|
7198
|
-
{
|
|
7199
|
-
open,
|
|
7200
|
-
onClose: handleClose,
|
|
7201
|
-
feedbackEmail
|
|
7202
|
-
}
|
|
7203
|
-
)
|
|
7204
|
-
] });
|
|
7205
|
-
}
|
|
7206
|
-
return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
7207
|
-
/* @__PURE__ */ jsx7(Zoom, { in: true, timeout: 300, children: /* @__PURE__ */ jsx7(
|
|
7208
|
-
Tooltip5,
|
|
7209
|
-
{
|
|
7210
|
-
title: "Send Feedback",
|
|
7211
|
-
placement: "left",
|
|
7212
|
-
arrow: true,
|
|
7213
|
-
children: /* @__PURE__ */ jsx7(
|
|
7214
|
-
Fab,
|
|
7215
|
-
{
|
|
7216
|
-
size,
|
|
7217
|
-
onClick: handleOpen,
|
|
7218
|
-
className,
|
|
7219
|
-
sx: {
|
|
7220
|
-
position: absolute ? "absolute" : "relative",
|
|
7221
|
-
...absolute && {
|
|
7222
|
-
bottom: position?.bottom ?? (fullScreen ? 16 : 20),
|
|
7223
|
-
right: position?.right ?? 16,
|
|
7224
|
-
top: position?.top,
|
|
7225
|
-
left: position?.left
|
|
7226
|
-
},
|
|
7227
|
-
zIndex,
|
|
7228
|
-
bgcolor: theme.palette.primary.main,
|
|
7229
|
-
color: theme.palette.primary.contrastText,
|
|
7230
|
-
boxShadow: theme.palette.mode === "dark" ? "0 8px 32px rgba(0,0,0,0.4)" : "0 8px 32px rgba(0,0,0,0.15)",
|
|
7231
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
7232
|
-
transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
7233
|
-
"&:hover": {
|
|
7234
|
-
bgcolor: theme.palette.primary.dark,
|
|
7235
|
-
transform: "scale(1.05) translateY(-2px)",
|
|
7236
|
-
boxShadow: theme.palette.mode === "dark" ? "0 12px 40px rgba(0,0,0,0.5)" : "0 12px 40px rgba(0,0,0,0.2)"
|
|
7237
|
-
},
|
|
7238
|
-
"&:active": {
|
|
7239
|
-
transform: "scale(0.98) translateY(0px)"
|
|
7240
|
-
},
|
|
7241
|
-
// Subtle pulsing animation
|
|
7242
|
-
animation: "feedbackPulse 3s ease-in-out infinite",
|
|
7243
|
-
"@keyframes feedbackPulse": {
|
|
7244
|
-
"0%, 100%": {
|
|
7245
|
-
boxShadow: theme.palette.mode === "dark" ? "0 8px 32px rgba(0,0,0,0.4)" : "0 8px 32px rgba(0,0,0,0.15)"
|
|
7246
|
-
},
|
|
7247
|
-
"50%": {
|
|
7248
|
-
boxShadow: theme.palette.mode === "dark" ? `0 8px 32px ${theme.palette.primary.main}40` : `0 8px 32px ${theme.palette.primary.main}30`
|
|
7249
|
-
}
|
|
7250
|
-
}
|
|
7251
|
-
},
|
|
7252
|
-
children: /* @__PURE__ */ jsx7(FeedbackIcon2, {})
|
|
7253
|
-
}
|
|
7254
|
-
)
|
|
7255
|
-
}
|
|
7256
|
-
) }),
|
|
7257
|
-
/* @__PURE__ */ jsx7(
|
|
7258
|
-
FeedbackModal,
|
|
7259
|
-
{
|
|
7260
|
-
open,
|
|
7261
|
-
onClose: handleClose,
|
|
7262
|
-
feedbackEmail
|
|
7263
|
-
}
|
|
7264
|
-
)
|
|
7265
|
-
] });
|
|
7266
|
-
};
|
|
7267
|
-
|
|
7268
7144
|
// src/hooks/useNotificationService.ts
|
|
7269
7145
|
import { useEffect as useEffect6 } from "react";
|
|
7270
7146
|
var useNotificationService = () => {
|
|
@@ -7282,22 +7158,22 @@ var useNotificationService = () => {
|
|
|
7282
7158
|
};
|
|
7283
7159
|
|
|
7284
7160
|
// src/chat/memory-modal.tsx
|
|
7285
|
-
import
|
|
7286
|
-
import { useTheme as
|
|
7161
|
+
import React7, { useState as useState7, useEffect as useEffect7 } from "react";
|
|
7162
|
+
import { useTheme as useTheme5, alpha as alpha3, keyframes } from "@mui/material/styles";
|
|
7287
7163
|
import {
|
|
7288
7164
|
Box as Box7,
|
|
7289
7165
|
Typography as Typography5,
|
|
7290
7166
|
Modal as Modal2,
|
|
7291
7167
|
SwipeableDrawer,
|
|
7292
|
-
IconButton as
|
|
7168
|
+
IconButton as IconButton6,
|
|
7293
7169
|
TextField as TextField2,
|
|
7294
|
-
Button as
|
|
7170
|
+
Button as Button4,
|
|
7295
7171
|
List as List2,
|
|
7296
7172
|
ListItem,
|
|
7297
7173
|
Divider,
|
|
7298
7174
|
Tabs,
|
|
7299
7175
|
Tab,
|
|
7300
|
-
Tooltip as
|
|
7176
|
+
Tooltip as Tooltip5,
|
|
7301
7177
|
Dialog as Dialog3,
|
|
7302
7178
|
DialogTitle as DialogTitle2,
|
|
7303
7179
|
DialogContent as DialogContent2,
|
|
@@ -7309,7 +7185,7 @@ import {
|
|
|
7309
7185
|
FormControl as FormControl2,
|
|
7310
7186
|
useMediaQuery as useMediaQuery3
|
|
7311
7187
|
} from "@mui/material";
|
|
7312
|
-
import { Fragment as
|
|
7188
|
+
import { Fragment as Fragment5, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
7313
7189
|
var MemoryModal = ({ open, onClose }) => {
|
|
7314
7190
|
const { entries, addMemory, togglePinMemory, removeMemory, clearMemories, hydrate, _hasHydrated } = useMemoryStore();
|
|
7315
7191
|
const isAdvancedVectorFeaturesEnabled = useConversationSyncStore(
|
|
@@ -7335,22 +7211,22 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7335
7211
|
});
|
|
7336
7212
|
}
|
|
7337
7213
|
}, [open, isVectorEnabled, isAdvancedVectorFeaturesEnabled, shouldUseVectorForMemories]);
|
|
7338
|
-
const [newMemory, setNewMemory] =
|
|
7339
|
-
const [selectedTab, setSelectedTab] =
|
|
7340
|
-
const [editingId, setEditingId] =
|
|
7341
|
-
const [editedContent, setEditedContent] =
|
|
7342
|
-
const [multiSelectMode, setMultiSelectMode] =
|
|
7343
|
-
const [selectedIds, setSelectedIds] =
|
|
7344
|
-
const [confirmOpen, setConfirmOpen] =
|
|
7345
|
-
const [clearAllOpen, setClearAllOpen] =
|
|
7346
|
-
const [clearOption, setClearOption] =
|
|
7347
|
-
const [vectorMemories, setVectorMemories] =
|
|
7348
|
-
const [bulkImportOpen, setBulkImportOpen] =
|
|
7349
|
-
const [importProgress, setImportProgress] =
|
|
7214
|
+
const [newMemory, setNewMemory] = useState7("");
|
|
7215
|
+
const [selectedTab, setSelectedTab] = useState7("user");
|
|
7216
|
+
const [editingId, setEditingId] = useState7(null);
|
|
7217
|
+
const [editedContent, setEditedContent] = useState7("");
|
|
7218
|
+
const [multiSelectMode, setMultiSelectMode] = useState7(false);
|
|
7219
|
+
const [selectedIds, setSelectedIds] = useState7([]);
|
|
7220
|
+
const [confirmOpen, setConfirmOpen] = useState7(false);
|
|
7221
|
+
const [clearAllOpen, setClearAllOpen] = useState7(false);
|
|
7222
|
+
const [clearOption, setClearOption] = useState7("both");
|
|
7223
|
+
const [vectorMemories, setVectorMemories] = useState7([]);
|
|
7224
|
+
const [bulkImportOpen, setBulkImportOpen] = useState7(false);
|
|
7225
|
+
const [importProgress, setImportProgress] = useState7({
|
|
7350
7226
|
isImporting: false,
|
|
7351
7227
|
progress: ""
|
|
7352
7228
|
});
|
|
7353
|
-
const theme =
|
|
7229
|
+
const theme = useTheme5();
|
|
7354
7230
|
const isMobileView = useMediaQuery3(theme.breakpoints.down("sm"));
|
|
7355
7231
|
const pulse = keyframes`
|
|
7356
7232
|
0% {
|
|
@@ -7702,7 +7578,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7702
7578
|
setClearAllOpen(false);
|
|
7703
7579
|
};
|
|
7704
7580
|
const filteredMemories = getMemoriesForDisplay();
|
|
7705
|
-
const sheet = /* @__PURE__ */
|
|
7581
|
+
const sheet = /* @__PURE__ */ jsxs6(
|
|
7706
7582
|
Box7,
|
|
7707
7583
|
{
|
|
7708
7584
|
sx: {
|
|
@@ -7722,7 +7598,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7722
7598
|
// Ensure it's on top
|
|
7723
7599
|
},
|
|
7724
7600
|
children: [
|
|
7725
|
-
isMobileView && /* @__PURE__ */
|
|
7601
|
+
isMobileView && /* @__PURE__ */ jsx7(
|
|
7726
7602
|
Box7,
|
|
7727
7603
|
{
|
|
7728
7604
|
sx: {
|
|
@@ -7736,7 +7612,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7736
7612
|
}
|
|
7737
7613
|
}
|
|
7738
7614
|
),
|
|
7739
|
-
/* @__PURE__ */
|
|
7615
|
+
/* @__PURE__ */ jsxs6(
|
|
7740
7616
|
Box7,
|
|
7741
7617
|
{
|
|
7742
7618
|
sx: {
|
|
@@ -7749,7 +7625,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7749
7625
|
gap: isMobileView ? 0.9 : 1.25
|
|
7750
7626
|
},
|
|
7751
7627
|
children: [
|
|
7752
|
-
/* @__PURE__ */
|
|
7628
|
+
/* @__PURE__ */ jsxs6(
|
|
7753
7629
|
Box7,
|
|
7754
7630
|
{
|
|
7755
7631
|
sx: {
|
|
@@ -7761,9 +7637,9 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7761
7637
|
flexWrap: "wrap"
|
|
7762
7638
|
},
|
|
7763
7639
|
children: [
|
|
7764
|
-
/* @__PURE__ */
|
|
7765
|
-
/* @__PURE__ */
|
|
7766
|
-
shouldUseVectorForMemories && /* @__PURE__ */
|
|
7640
|
+
/* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
|
|
7641
|
+
/* @__PURE__ */ jsx7(Typography5, { variant: "h6", sx: { fontWeight: 600 }, children: "Memory" }),
|
|
7642
|
+
shouldUseVectorForMemories && /* @__PURE__ */ jsx7(Tooltip5, { title: "Memories stay in your private knowledge space for faster, more accurate answers.", children: /* @__PURE__ */ jsx7(
|
|
7767
7643
|
Typography5,
|
|
7768
7644
|
{
|
|
7769
7645
|
variant: "caption",
|
|
@@ -7782,7 +7658,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7782
7658
|
}
|
|
7783
7659
|
) })
|
|
7784
7660
|
] }),
|
|
7785
|
-
/* @__PURE__ */
|
|
7661
|
+
/* @__PURE__ */ jsxs6(
|
|
7786
7662
|
Box7,
|
|
7787
7663
|
{
|
|
7788
7664
|
sx: {
|
|
@@ -7793,13 +7669,13 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7793
7669
|
flexWrap: "wrap"
|
|
7794
7670
|
},
|
|
7795
7671
|
children: [
|
|
7796
|
-
multiSelectMode ? /* @__PURE__ */
|
|
7797
|
-
/* @__PURE__ */
|
|
7672
|
+
multiSelectMode ? /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
7673
|
+
/* @__PURE__ */ jsxs6(Typography5, { variant: "caption", sx: { color: theme.palette.text.secondary, mr: 0.5 }, children: [
|
|
7798
7674
|
selectedIds.length,
|
|
7799
7675
|
" selected"
|
|
7800
7676
|
] }),
|
|
7801
|
-
/* @__PURE__ */
|
|
7802
|
-
|
|
7677
|
+
/* @__PURE__ */ jsx7(
|
|
7678
|
+
Button4,
|
|
7803
7679
|
{
|
|
7804
7680
|
variant: "outlined",
|
|
7805
7681
|
size: "small",
|
|
@@ -7811,9 +7687,9 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7811
7687
|
children: "Cancel"
|
|
7812
7688
|
}
|
|
7813
7689
|
),
|
|
7814
|
-
selectedIds.length > 0 && /* @__PURE__ */
|
|
7815
|
-
/* @__PURE__ */
|
|
7816
|
-
|
|
7690
|
+
selectedIds.length > 0 && /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
7691
|
+
/* @__PURE__ */ jsxs6(
|
|
7692
|
+
Button4,
|
|
7817
7693
|
{
|
|
7818
7694
|
variant: "outlined",
|
|
7819
7695
|
size: "small",
|
|
@@ -7827,8 +7703,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7827
7703
|
]
|
|
7828
7704
|
}
|
|
7829
7705
|
),
|
|
7830
|
-
/* @__PURE__ */
|
|
7831
|
-
|
|
7706
|
+
/* @__PURE__ */ jsxs6(
|
|
7707
|
+
Button4,
|
|
7832
7708
|
{
|
|
7833
7709
|
variant: "outlined",
|
|
7834
7710
|
size: "small",
|
|
@@ -7841,8 +7717,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7841
7717
|
]
|
|
7842
7718
|
}
|
|
7843
7719
|
),
|
|
7844
|
-
/* @__PURE__ */
|
|
7845
|
-
|
|
7720
|
+
/* @__PURE__ */ jsxs6(
|
|
7721
|
+
Button4,
|
|
7846
7722
|
{
|
|
7847
7723
|
variant: "contained",
|
|
7848
7724
|
size: "small",
|
|
@@ -7857,9 +7733,9 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7857
7733
|
}
|
|
7858
7734
|
)
|
|
7859
7735
|
] })
|
|
7860
|
-
] }) : filteredMemories.length > 0 && /* @__PURE__ */
|
|
7861
|
-
/* @__PURE__ */
|
|
7862
|
-
|
|
7736
|
+
] }) : filteredMemories.length > 0 && /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
7737
|
+
/* @__PURE__ */ jsx7(
|
|
7738
|
+
Button4,
|
|
7863
7739
|
{
|
|
7864
7740
|
variant: "outlined",
|
|
7865
7741
|
size: "small",
|
|
@@ -7868,20 +7744,20 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7868
7744
|
children: "Clear All"
|
|
7869
7745
|
}
|
|
7870
7746
|
),
|
|
7871
|
-
isVectorEnabled && entries.length > 0 && /* @__PURE__ */
|
|
7872
|
-
|
|
7747
|
+
isVectorEnabled && entries.length > 0 && /* @__PURE__ */ jsx7(
|
|
7748
|
+
Button4,
|
|
7873
7749
|
{
|
|
7874
7750
|
variant: "outlined",
|
|
7875
7751
|
size: "small",
|
|
7876
7752
|
color: "primary",
|
|
7877
7753
|
onClick: () => setBulkImportOpen(true),
|
|
7878
|
-
startIcon: /* @__PURE__ */
|
|
7754
|
+
startIcon: /* @__PURE__ */ jsx7(CloudSyncIcon, {}),
|
|
7879
7755
|
sx: { textTransform: "none", borderRadius: 2, fontSize: "0.75rem" },
|
|
7880
7756
|
children: "Import to workspace"
|
|
7881
7757
|
}
|
|
7882
7758
|
),
|
|
7883
|
-
/* @__PURE__ */
|
|
7884
|
-
|
|
7759
|
+
/* @__PURE__ */ jsx7(
|
|
7760
|
+
Button4,
|
|
7885
7761
|
{
|
|
7886
7762
|
variant: "outlined",
|
|
7887
7763
|
size: "small",
|
|
@@ -7895,8 +7771,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7895
7771
|
}
|
|
7896
7772
|
)
|
|
7897
7773
|
] }),
|
|
7898
|
-
!multiSelectMode && isMobileView && /* @__PURE__ */
|
|
7899
|
-
|
|
7774
|
+
!multiSelectMode && isMobileView && /* @__PURE__ */ jsx7(
|
|
7775
|
+
Button4,
|
|
7900
7776
|
{
|
|
7901
7777
|
variant: "contained",
|
|
7902
7778
|
size: "small",
|
|
@@ -7911,8 +7787,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7911
7787
|
children: "Save"
|
|
7912
7788
|
}
|
|
7913
7789
|
),
|
|
7914
|
-
/* @__PURE__ */
|
|
7915
|
-
|
|
7790
|
+
/* @__PURE__ */ jsx7(
|
|
7791
|
+
IconButton6,
|
|
7916
7792
|
{
|
|
7917
7793
|
onClick: onClose,
|
|
7918
7794
|
sx: {
|
|
@@ -7921,7 +7797,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7921
7797
|
borderRadius: 2
|
|
7922
7798
|
},
|
|
7923
7799
|
size: "small",
|
|
7924
|
-
children: /* @__PURE__ */
|
|
7800
|
+
children: /* @__PURE__ */ jsx7(CloseIcon, { fontSize: "small" })
|
|
7925
7801
|
}
|
|
7926
7802
|
)
|
|
7927
7803
|
]
|
|
@@ -7930,7 +7806,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7930
7806
|
]
|
|
7931
7807
|
}
|
|
7932
7808
|
),
|
|
7933
|
-
/* @__PURE__ */
|
|
7809
|
+
/* @__PURE__ */ jsxs6(
|
|
7934
7810
|
Box7,
|
|
7935
7811
|
{
|
|
7936
7812
|
sx: {
|
|
@@ -7940,7 +7816,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7940
7816
|
color: theme.palette.text.secondary
|
|
7941
7817
|
},
|
|
7942
7818
|
children: [
|
|
7943
|
-
/* @__PURE__ */
|
|
7819
|
+
/* @__PURE__ */ jsx7(
|
|
7944
7820
|
Typography5,
|
|
7945
7821
|
{
|
|
7946
7822
|
variant: "caption",
|
|
@@ -7956,7 +7832,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7956
7832
|
children: shouldUseVectorForMemories ? "Cloud memory" : "Local memory"
|
|
7957
7833
|
}
|
|
7958
7834
|
),
|
|
7959
|
-
filteredMemories.length > 0 && /* @__PURE__ */
|
|
7835
|
+
filteredMemories.length > 0 && /* @__PURE__ */ jsxs6(
|
|
7960
7836
|
Typography5,
|
|
7961
7837
|
{
|
|
7962
7838
|
variant: "caption",
|
|
@@ -7982,7 +7858,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7982
7858
|
]
|
|
7983
7859
|
}
|
|
7984
7860
|
),
|
|
7985
|
-
shouldUseVectorForMemories && /* @__PURE__ */
|
|
7861
|
+
shouldUseVectorForMemories && /* @__PURE__ */ jsxs6(Box7, { sx: {
|
|
7986
7862
|
flexShrink: 0,
|
|
7987
7863
|
mx: isMobileView ? 1.5 : 2,
|
|
7988
7864
|
mt: 1,
|
|
@@ -7996,7 +7872,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7996
7872
|
position: "relative",
|
|
7997
7873
|
overflow: "hidden"
|
|
7998
7874
|
}, children: [
|
|
7999
|
-
/* @__PURE__ */
|
|
7875
|
+
/* @__PURE__ */ jsx7(Box7, { sx: {
|
|
8000
7876
|
position: "absolute",
|
|
8001
7877
|
top: 0,
|
|
8002
7878
|
left: "-100%",
|
|
@@ -8005,7 +7881,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8005
7881
|
background: `linear-gradient(90deg, transparent, ${alpha3(theme.palette.primary.main, 0.1)}, transparent)`,
|
|
8006
7882
|
animation: `${shimmer} 3s infinite`
|
|
8007
7883
|
} }),
|
|
8008
|
-
/* @__PURE__ */
|
|
7884
|
+
/* @__PURE__ */ jsx7(Box7, { sx: {
|
|
8009
7885
|
width: 8,
|
|
8010
7886
|
height: 8,
|
|
8011
7887
|
borderRadius: "50%",
|
|
@@ -8013,15 +7889,15 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8013
7889
|
animation: `${pulse} 2s infinite`,
|
|
8014
7890
|
zIndex: 1
|
|
8015
7891
|
} }),
|
|
8016
|
-
/* @__PURE__ */
|
|
7892
|
+
/* @__PURE__ */ jsx7(Typography5, { variant: "body2", sx: {
|
|
8017
7893
|
color: theme.palette.primary.main,
|
|
8018
7894
|
fontSize: "0.8rem",
|
|
8019
7895
|
fontWeight: 500,
|
|
8020
7896
|
zIndex: 1
|
|
8021
7897
|
}, children: "Cloud memory \xB7 synced to your account" })
|
|
8022
7898
|
] }),
|
|
8023
|
-
/* @__PURE__ */
|
|
8024
|
-
/* @__PURE__ */
|
|
7899
|
+
/* @__PURE__ */ jsxs6(Box7, { sx: { flexShrink: 0 }, children: [
|
|
7900
|
+
/* @__PURE__ */ jsx7(Box7, { sx: { px: isMobileView ? 1.5 : 2, py: isMobileView ? 1.25 : 1.5 }, children: /* @__PURE__ */ jsx7(
|
|
8025
7901
|
Typography5,
|
|
8026
7902
|
{
|
|
8027
7903
|
variant: "body2",
|
|
@@ -8029,7 +7905,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8029
7905
|
children: shouldUseVectorForMemories ? "Synced to your account for quick recall." : "Private and local. You decide what's remembered."
|
|
8030
7906
|
}
|
|
8031
7907
|
) }),
|
|
8032
|
-
/* @__PURE__ */
|
|
7908
|
+
/* @__PURE__ */ jsxs6(
|
|
8033
7909
|
Tabs,
|
|
8034
7910
|
{
|
|
8035
7911
|
value: selectedTab,
|
|
@@ -8050,12 +7926,12 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8050
7926
|
}
|
|
8051
7927
|
},
|
|
8052
7928
|
children: [
|
|
8053
|
-
/* @__PURE__ */
|
|
7929
|
+
/* @__PURE__ */ jsx7(
|
|
8054
7930
|
Tab,
|
|
8055
7931
|
{
|
|
8056
|
-
label: /* @__PURE__ */
|
|
7932
|
+
label: /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8057
7933
|
"User",
|
|
8058
|
-
getUserMemoryCount() > 0 && /* @__PURE__ */
|
|
7934
|
+
getUserMemoryCount() > 0 && /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
|
|
8059
7935
|
bgcolor: alpha3(theme.palette.primary.main, 0.2),
|
|
8060
7936
|
color: theme.palette.primary.main,
|
|
8061
7937
|
px: 0.75,
|
|
@@ -8068,12 +7944,12 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8068
7944
|
value: "user"
|
|
8069
7945
|
}
|
|
8070
7946
|
),
|
|
8071
|
-
/* @__PURE__ */
|
|
7947
|
+
/* @__PURE__ */ jsx7(
|
|
8072
7948
|
Tab,
|
|
8073
7949
|
{
|
|
8074
|
-
label: /* @__PURE__ */
|
|
7950
|
+
label: /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8075
7951
|
"Auto",
|
|
8076
|
-
getAutoMemoryCount() > 0 && /* @__PURE__ */
|
|
7952
|
+
getAutoMemoryCount() > 0 && /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
|
|
8077
7953
|
bgcolor: alpha3(theme.palette.secondary.main, 0.2),
|
|
8078
7954
|
color: theme.palette.secondary.main,
|
|
8079
7955
|
px: 0.75,
|
|
@@ -8090,7 +7966,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8090
7966
|
}
|
|
8091
7967
|
)
|
|
8092
7968
|
] }),
|
|
8093
|
-
/* @__PURE__ */
|
|
7969
|
+
/* @__PURE__ */ jsx7(
|
|
8094
7970
|
Box7,
|
|
8095
7971
|
{
|
|
8096
7972
|
sx: {
|
|
@@ -8099,7 +7975,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8099
7975
|
px: isMobileView ? 1.5 : 2,
|
|
8100
7976
|
py: isMobileView ? 1 : 1
|
|
8101
7977
|
},
|
|
8102
|
-
children: filteredMemories.length === 0 ? /* @__PURE__ */
|
|
7978
|
+
children: filteredMemories.length === 0 ? /* @__PURE__ */ jsxs6(Box7, { sx: {
|
|
8103
7979
|
display: "flex",
|
|
8104
7980
|
flexDirection: "column",
|
|
8105
7981
|
alignItems: "center",
|
|
@@ -8107,7 +7983,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8107
7983
|
height: "200px",
|
|
8108
7984
|
textAlign: "center"
|
|
8109
7985
|
}, children: [
|
|
8110
|
-
/* @__PURE__ */
|
|
7986
|
+
/* @__PURE__ */ jsxs6(Typography5, { variant: "h6", sx: {
|
|
8111
7987
|
color: theme.palette.text.secondary,
|
|
8112
7988
|
mb: 1,
|
|
8113
7989
|
fontSize: "1.1rem"
|
|
@@ -8116,14 +7992,14 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8116
7992
|
selectedTab,
|
|
8117
7993
|
" memories yet"
|
|
8118
7994
|
] }),
|
|
8119
|
-
/* @__PURE__ */
|
|
7995
|
+
/* @__PURE__ */ jsx7(Typography5, { variant: "body2", sx: {
|
|
8120
7996
|
color: alpha3(theme.palette.text.secondary, 0.7),
|
|
8121
7997
|
maxWidth: 280
|
|
8122
7998
|
}, children: selectedTab === "user" ? shouldUseVectorForMemories ? "Start by adding something you'd like me to remember. Your memories will be kept in a private workspace for quick recall." : "Start by adding something you'd like me to remember about you or your preferences." : shouldUseVectorForMemories ? "Auto memories are created automatically based on our conversations and kept in your private workspace for better answers." : "Auto memories are created automatically based on our conversations." })
|
|
8123
7999
|
] }) : filteredMemories.map((memory) => {
|
|
8124
8000
|
const isSelected = selectedIds.includes(memory.id);
|
|
8125
|
-
return /* @__PURE__ */
|
|
8126
|
-
/* @__PURE__ */
|
|
8001
|
+
return /* @__PURE__ */ jsxs6(React7.Fragment, { children: [
|
|
8002
|
+
/* @__PURE__ */ jsx7(List2, { sx: { listStyle: "none", pl: 0, m: 0 }, children: /* @__PURE__ */ jsxs6(
|
|
8127
8003
|
ListItem,
|
|
8128
8004
|
{
|
|
8129
8005
|
onClick: () => multiSelectMode && toggleSelection(memory.id),
|
|
@@ -8144,7 +8020,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8144
8020
|
}
|
|
8145
8021
|
},
|
|
8146
8022
|
children: [
|
|
8147
|
-
/* @__PURE__ */
|
|
8023
|
+
/* @__PURE__ */ jsxs6(
|
|
8148
8024
|
Box7,
|
|
8149
8025
|
{
|
|
8150
8026
|
sx: {
|
|
@@ -8154,7 +8030,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8154
8030
|
gap: 1.5
|
|
8155
8031
|
},
|
|
8156
8032
|
children: [
|
|
8157
|
-
/* @__PURE__ */
|
|
8033
|
+
/* @__PURE__ */ jsx7(
|
|
8158
8034
|
Avatar3,
|
|
8159
8035
|
{
|
|
8160
8036
|
src: "https://cdn.burtson.ai/images/brain-icon.png",
|
|
@@ -8167,7 +8043,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8167
8043
|
border: isVectorEnabled ? `2px solid ${alpha3(theme.palette.primary.main, 0.4)}` : `1px solid ${theme.palette.divider}`,
|
|
8168
8044
|
position: "relative"
|
|
8169
8045
|
},
|
|
8170
|
-
children: isVectorEnabled && /* @__PURE__ */
|
|
8046
|
+
children: isVectorEnabled && /* @__PURE__ */ jsx7(Box7, { sx: {
|
|
8171
8047
|
position: "absolute",
|
|
8172
8048
|
top: -2,
|
|
8173
8049
|
right: -2,
|
|
@@ -8184,7 +8060,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8184
8060
|
}, children: "\u26A1" })
|
|
8185
8061
|
}
|
|
8186
8062
|
),
|
|
8187
|
-
editingId === memory.id ? /* @__PURE__ */
|
|
8063
|
+
editingId === memory.id ? /* @__PURE__ */ jsx7(
|
|
8188
8064
|
TextField2,
|
|
8189
8065
|
{
|
|
8190
8066
|
fullWidth: true,
|
|
@@ -8231,8 +8107,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8231
8107
|
},
|
|
8232
8108
|
helperText: "Press Cmd/Ctrl+Enter to save, Escape to cancel"
|
|
8233
8109
|
}
|
|
8234
|
-
) : /* @__PURE__ */
|
|
8235
|
-
/* @__PURE__ */
|
|
8110
|
+
) : /* @__PURE__ */ jsxs6(Box7, { sx: { flex: 1 }, children: [
|
|
8111
|
+
/* @__PURE__ */ jsx7(
|
|
8236
8112
|
Typography5,
|
|
8237
8113
|
{
|
|
8238
8114
|
sx: {
|
|
@@ -8254,7 +8130,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8254
8130
|
children: memory.content
|
|
8255
8131
|
}
|
|
8256
8132
|
),
|
|
8257
|
-
memory.pinned && /* @__PURE__ */
|
|
8133
|
+
memory.pinned && /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
|
|
8258
8134
|
color: alpha3(theme.palette.secondary.main, 0.7),
|
|
8259
8135
|
fontStyle: "italic",
|
|
8260
8136
|
mt: 0.5,
|
|
@@ -8264,9 +8140,9 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8264
8140
|
]
|
|
8265
8141
|
}
|
|
8266
8142
|
),
|
|
8267
|
-
!multiSelectMode && /* @__PURE__ */
|
|
8268
|
-
/* @__PURE__ */
|
|
8269
|
-
|
|
8143
|
+
!multiSelectMode && /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", gap: 0.5, mt: 0.5 }, children: [
|
|
8144
|
+
/* @__PURE__ */ jsx7(Tooltip5, { title: memory.pinned ? "Unpin memory" : "Pin memory", children: /* @__PURE__ */ jsx7(
|
|
8145
|
+
IconButton6,
|
|
8270
8146
|
{
|
|
8271
8147
|
onClick: async () => {
|
|
8272
8148
|
if (shouldUseVectorForMemories) {
|
|
@@ -8298,11 +8174,11 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8298
8174
|
}
|
|
8299
8175
|
},
|
|
8300
8176
|
size: "small",
|
|
8301
|
-
children: memory.pinned ? /* @__PURE__ */
|
|
8177
|
+
children: memory.pinned ? /* @__PURE__ */ jsx7(PushPinIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx7(PushPinOutlinedIcon, { fontSize: "small" })
|
|
8302
8178
|
}
|
|
8303
8179
|
) }),
|
|
8304
|
-
/* @__PURE__ */
|
|
8305
|
-
|
|
8180
|
+
/* @__PURE__ */ jsx7(Tooltip5, { title: "Delete memory", children: /* @__PURE__ */ jsx7(
|
|
8181
|
+
IconButton6,
|
|
8306
8182
|
{
|
|
8307
8183
|
onClick: async () => await handleDeleteMemory(memory.id),
|
|
8308
8184
|
sx: {
|
|
@@ -8313,19 +8189,19 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8313
8189
|
}
|
|
8314
8190
|
},
|
|
8315
8191
|
size: "small",
|
|
8316
|
-
children: /* @__PURE__ */
|
|
8192
|
+
children: /* @__PURE__ */ jsx7(DeleteIcon, { fontSize: "small" })
|
|
8317
8193
|
}
|
|
8318
8194
|
) })
|
|
8319
8195
|
] })
|
|
8320
8196
|
]
|
|
8321
8197
|
}
|
|
8322
8198
|
) }),
|
|
8323
|
-
filteredMemories.indexOf(memory) < filteredMemories.length - 1 && /* @__PURE__ */
|
|
8199
|
+
filteredMemories.indexOf(memory) < filteredMemories.length - 1 && /* @__PURE__ */ jsx7(Divider, { sx: { bgcolor: alpha3(appBar.border, 0.5), my: 0.5 } })
|
|
8324
8200
|
] }, memory.id);
|
|
8325
8201
|
})
|
|
8326
8202
|
}
|
|
8327
8203
|
),
|
|
8328
|
-
multiSelectMode && /* @__PURE__ */
|
|
8204
|
+
multiSelectMode && /* @__PURE__ */ jsx7(
|
|
8329
8205
|
Box7,
|
|
8330
8206
|
{
|
|
8331
8207
|
sx: {
|
|
@@ -8334,13 +8210,13 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8334
8210
|
bgcolor: alpha3(theme.palette.error.main, 0.05),
|
|
8335
8211
|
borderBottom: selectedIds.length > 0 ? `2px solid ${alpha3(theme.palette.error.main, 0.2)}` : void 0
|
|
8336
8212
|
},
|
|
8337
|
-
children: selectedIds.length === 0 ? /* @__PURE__ */
|
|
8213
|
+
children: selectedIds.length === 0 ? /* @__PURE__ */ jsx7(Typography5, { variant: "body2", sx: {
|
|
8338
8214
|
textAlign: "center",
|
|
8339
8215
|
color: theme.palette.text.secondary,
|
|
8340
8216
|
fontStyle: "italic"
|
|
8341
|
-
}, children: "Tap memories to select them for deletion" }) : /* @__PURE__ */
|
|
8342
|
-
/* @__PURE__ */
|
|
8343
|
-
|
|
8217
|
+
}, children: "Tap memories to select them for deletion" }) : /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
8218
|
+
/* @__PURE__ */ jsx7(
|
|
8219
|
+
Button4,
|
|
8344
8220
|
{
|
|
8345
8221
|
variant: "outlined",
|
|
8346
8222
|
onClick: () => {
|
|
@@ -8355,8 +8231,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8355
8231
|
children: "Select All"
|
|
8356
8232
|
}
|
|
8357
8233
|
),
|
|
8358
|
-
/* @__PURE__ */
|
|
8359
|
-
|
|
8234
|
+
/* @__PURE__ */ jsxs6(
|
|
8235
|
+
Button4,
|
|
8360
8236
|
{
|
|
8361
8237
|
fullWidth: true,
|
|
8362
8238
|
variant: "contained",
|
|
@@ -8373,7 +8249,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8373
8249
|
] })
|
|
8374
8250
|
}
|
|
8375
8251
|
),
|
|
8376
|
-
/* @__PURE__ */
|
|
8252
|
+
/* @__PURE__ */ jsxs6(
|
|
8377
8253
|
Box7,
|
|
8378
8254
|
{
|
|
8379
8255
|
sx: {
|
|
@@ -8384,7 +8260,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8384
8260
|
pb: `calc(env(safe-area-inset-bottom, 0px) + 8px)`
|
|
8385
8261
|
},
|
|
8386
8262
|
children: [
|
|
8387
|
-
/* @__PURE__ */
|
|
8263
|
+
/* @__PURE__ */ jsx7(
|
|
8388
8264
|
TextField2,
|
|
8389
8265
|
{
|
|
8390
8266
|
fullWidth: true,
|
|
@@ -8430,7 +8306,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8430
8306
|
mb: 1.5
|
|
8431
8307
|
},
|
|
8432
8308
|
InputProps: {
|
|
8433
|
-
endAdornment: newMemory.trim() && /* @__PURE__ */
|
|
8309
|
+
endAdornment: newMemory.trim() && /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
|
|
8434
8310
|
color: alpha3(theme.palette.text.secondary, 0.7),
|
|
8435
8311
|
fontSize: "0.7rem",
|
|
8436
8312
|
whiteSpace: "nowrap"
|
|
@@ -8438,8 +8314,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8438
8314
|
}
|
|
8439
8315
|
}
|
|
8440
8316
|
),
|
|
8441
|
-
!isMobileView && /* @__PURE__ */
|
|
8442
|
-
|
|
8317
|
+
!isMobileView && /* @__PURE__ */ jsx7(
|
|
8318
|
+
Button4,
|
|
8443
8319
|
{
|
|
8444
8320
|
fullWidth: true,
|
|
8445
8321
|
variant: "contained",
|
|
@@ -8457,7 +8333,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8457
8333
|
]
|
|
8458
8334
|
}
|
|
8459
8335
|
),
|
|
8460
|
-
/* @__PURE__ */
|
|
8336
|
+
/* @__PURE__ */ jsxs6(
|
|
8461
8337
|
Dialog3,
|
|
8462
8338
|
{
|
|
8463
8339
|
open: confirmOpen,
|
|
@@ -8470,25 +8346,25 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8470
8346
|
sx: { borderRadius: 3, minWidth: 320 }
|
|
8471
8347
|
},
|
|
8472
8348
|
children: [
|
|
8473
|
-
/* @__PURE__ */
|
|
8349
|
+
/* @__PURE__ */ jsxs6(DialogTitle2, { sx: { pb: 1 }, children: [
|
|
8474
8350
|
"Delete ",
|
|
8475
8351
|
selectedIds.length,
|
|
8476
8352
|
" ",
|
|
8477
8353
|
selectedIds.length === 1 ? "Memory" : "Memories",
|
|
8478
8354
|
"?"
|
|
8479
8355
|
] }),
|
|
8480
|
-
/* @__PURE__ */
|
|
8481
|
-
/* @__PURE__ */
|
|
8482
|
-
/* @__PURE__ */
|
|
8483
|
-
|
|
8356
|
+
/* @__PURE__ */ jsx7(DialogContent2, { children: /* @__PURE__ */ jsx7(Typography5, { variant: "body2", sx: { color: theme.palette.text.secondary }, children: "This will permanently remove the selected memory entries. This action cannot be undone." }) }),
|
|
8357
|
+
/* @__PURE__ */ jsxs6(DialogActions2, { sx: { p: 3, pt: 1 }, children: [
|
|
8358
|
+
/* @__PURE__ */ jsx7(
|
|
8359
|
+
Button4,
|
|
8484
8360
|
{
|
|
8485
8361
|
onClick: () => setConfirmOpen(false),
|
|
8486
8362
|
sx: { textTransform: "none", borderRadius: 3 },
|
|
8487
8363
|
children: "Cancel"
|
|
8488
8364
|
}
|
|
8489
8365
|
),
|
|
8490
|
-
/* @__PURE__ */
|
|
8491
|
-
|
|
8366
|
+
/* @__PURE__ */ jsxs6(
|
|
8367
|
+
Button4,
|
|
8492
8368
|
{
|
|
8493
8369
|
onClick: handleMultiDelete,
|
|
8494
8370
|
color: "error",
|
|
@@ -8505,7 +8381,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8505
8381
|
]
|
|
8506
8382
|
}
|
|
8507
8383
|
),
|
|
8508
|
-
/* @__PURE__ */
|
|
8384
|
+
/* @__PURE__ */ jsxs6(
|
|
8509
8385
|
Dialog3,
|
|
8510
8386
|
{
|
|
8511
8387
|
open: clearAllOpen,
|
|
@@ -8518,23 +8394,23 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8518
8394
|
sx: { borderRadius: 3, minWidth: 320 }
|
|
8519
8395
|
},
|
|
8520
8396
|
children: [
|
|
8521
|
-
/* @__PURE__ */
|
|
8522
|
-
/* @__PURE__ */
|
|
8523
|
-
/* @__PURE__ */
|
|
8524
|
-
/* @__PURE__ */
|
|
8397
|
+
/* @__PURE__ */ jsx7(DialogTitle2, { sx: { pb: 1, fontWeight: 600 }, children: "Clear Memories" }),
|
|
8398
|
+
/* @__PURE__ */ jsxs6(DialogContent2, { sx: { pb: 2 }, children: [
|
|
8399
|
+
/* @__PURE__ */ jsx7(Typography5, { variant: "body2", sx: { mb: 3, color: theme.palette.text.secondary }, children: "This will permanently remove selected memory types. Choose which ones to clear:" }),
|
|
8400
|
+
/* @__PURE__ */ jsx7(FormControl2, { component: "fieldset", children: /* @__PURE__ */ jsxs6(
|
|
8525
8401
|
RadioGroup,
|
|
8526
8402
|
{
|
|
8527
8403
|
value: clearOption,
|
|
8528
8404
|
onChange: (e) => setClearOption(e.target.value),
|
|
8529
8405
|
children: [
|
|
8530
|
-
/* @__PURE__ */
|
|
8406
|
+
/* @__PURE__ */ jsx7(
|
|
8531
8407
|
FormControlLabel,
|
|
8532
8408
|
{
|
|
8533
8409
|
value: "user",
|
|
8534
|
-
control: /* @__PURE__ */
|
|
8535
|
-
label: /* @__PURE__ */
|
|
8536
|
-
/* @__PURE__ */
|
|
8537
|
-
/* @__PURE__ */
|
|
8410
|
+
control: /* @__PURE__ */ jsx7(Radio, {}),
|
|
8411
|
+
label: /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8412
|
+
/* @__PURE__ */ jsx7(Typography5, { children: "User Memories" }),
|
|
8413
|
+
/* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
|
|
8538
8414
|
bgcolor: alpha3(theme.palette.primary.main, 0.1),
|
|
8539
8415
|
color: theme.palette.primary.main,
|
|
8540
8416
|
px: 1,
|
|
@@ -8545,14 +8421,14 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8545
8421
|
] })
|
|
8546
8422
|
}
|
|
8547
8423
|
),
|
|
8548
|
-
/* @__PURE__ */
|
|
8424
|
+
/* @__PURE__ */ jsx7(
|
|
8549
8425
|
FormControlLabel,
|
|
8550
8426
|
{
|
|
8551
8427
|
value: "auto",
|
|
8552
|
-
control: /* @__PURE__ */
|
|
8553
|
-
label: /* @__PURE__ */
|
|
8554
|
-
/* @__PURE__ */
|
|
8555
|
-
/* @__PURE__ */
|
|
8428
|
+
control: /* @__PURE__ */ jsx7(Radio, {}),
|
|
8429
|
+
label: /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8430
|
+
/* @__PURE__ */ jsx7(Typography5, { children: "Auto Memories" }),
|
|
8431
|
+
/* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
|
|
8556
8432
|
bgcolor: alpha3(theme.palette.secondary.main, 0.1),
|
|
8557
8433
|
color: theme.palette.secondary.main,
|
|
8558
8434
|
px: 1,
|
|
@@ -8563,14 +8439,14 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8563
8439
|
] })
|
|
8564
8440
|
}
|
|
8565
8441
|
),
|
|
8566
|
-
/* @__PURE__ */
|
|
8442
|
+
/* @__PURE__ */ jsx7(
|
|
8567
8443
|
FormControlLabel,
|
|
8568
8444
|
{
|
|
8569
8445
|
value: "both",
|
|
8570
|
-
control: /* @__PURE__ */
|
|
8571
|
-
label: /* @__PURE__ */
|
|
8572
|
-
/* @__PURE__ */
|
|
8573
|
-
/* @__PURE__ */
|
|
8446
|
+
control: /* @__PURE__ */ jsx7(Radio, {}),
|
|
8447
|
+
label: /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8448
|
+
/* @__PURE__ */ jsx7(Typography5, { children: "Both Types" }),
|
|
8449
|
+
/* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
|
|
8574
8450
|
bgcolor: alpha3(theme.palette.error.main, 0.1),
|
|
8575
8451
|
color: theme.palette.error.main,
|
|
8576
8452
|
px: 1,
|
|
@@ -8585,17 +8461,17 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8585
8461
|
}
|
|
8586
8462
|
) })
|
|
8587
8463
|
] }),
|
|
8588
|
-
/* @__PURE__ */
|
|
8589
|
-
/* @__PURE__ */
|
|
8590
|
-
|
|
8464
|
+
/* @__PURE__ */ jsxs6(DialogActions2, { sx: { p: 3, pt: 1 }, children: [
|
|
8465
|
+
/* @__PURE__ */ jsx7(
|
|
8466
|
+
Button4,
|
|
8591
8467
|
{
|
|
8592
8468
|
onClick: () => setClearAllOpen(false),
|
|
8593
8469
|
sx: { textTransform: "none", borderRadius: 3 },
|
|
8594
8470
|
children: "Cancel"
|
|
8595
8471
|
}
|
|
8596
8472
|
),
|
|
8597
|
-
/* @__PURE__ */
|
|
8598
|
-
|
|
8473
|
+
/* @__PURE__ */ jsxs6(
|
|
8474
|
+
Button4,
|
|
8599
8475
|
{
|
|
8600
8476
|
color: "error",
|
|
8601
8477
|
variant: "contained",
|
|
@@ -8612,7 +8488,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8612
8488
|
]
|
|
8613
8489
|
}
|
|
8614
8490
|
),
|
|
8615
|
-
/* @__PURE__ */
|
|
8491
|
+
/* @__PURE__ */ jsxs6(
|
|
8616
8492
|
Dialog3,
|
|
8617
8493
|
{
|
|
8618
8494
|
open: bulkImportOpen,
|
|
@@ -8623,30 +8499,30 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8623
8499
|
sx: { borderRadius: 3 }
|
|
8624
8500
|
},
|
|
8625
8501
|
children: [
|
|
8626
|
-
/* @__PURE__ */
|
|
8502
|
+
/* @__PURE__ */ jsxs6(DialogTitle2, { sx: {
|
|
8627
8503
|
fontWeight: 600,
|
|
8628
8504
|
pb: 1,
|
|
8629
8505
|
display: "flex",
|
|
8630
8506
|
alignItems: "center",
|
|
8631
8507
|
gap: 1
|
|
8632
8508
|
}, children: [
|
|
8633
|
-
/* @__PURE__ */
|
|
8509
|
+
/* @__PURE__ */ jsx7(CloudSyncIcon, { color: "primary" }),
|
|
8634
8510
|
"Import Memories to Secure Workspace"
|
|
8635
8511
|
] }),
|
|
8636
|
-
/* @__PURE__ */
|
|
8637
|
-
/* @__PURE__ */
|
|
8512
|
+
/* @__PURE__ */ jsx7(DialogContent2, { sx: { py: 2 }, children: !importProgress.isImporting ? /* @__PURE__ */ jsxs6(Box7, { children: [
|
|
8513
|
+
/* @__PURE__ */ jsxs6(Typography5, { variant: "body2", color: "text.secondary", sx: { mb: 2 }, children: [
|
|
8638
8514
|
"This will import all your local memories (",
|
|
8639
8515
|
entries.length,
|
|
8640
8516
|
" memories) to your secure workspace for faster, more reliable answers."
|
|
8641
8517
|
] }),
|
|
8642
|
-
/* @__PURE__ */
|
|
8643
|
-
/* @__PURE__ */
|
|
8518
|
+
/* @__PURE__ */ jsx7(Typography5, { variant: "body2", color: "text.secondary", sx: { mb: 2 }, children: "\u2022 Memories will be added to your synced workspace \u2022 Local memories will remain unchanged \u2022 You can switch between synced and local storage anytime" }),
|
|
8519
|
+
/* @__PURE__ */ jsxs6(Typography5, { variant: "body2", color: "primary", sx: { fontWeight: 500 }, children: [
|
|
8644
8520
|
"Ready to import ",
|
|
8645
8521
|
entries.length,
|
|
8646
8522
|
" memories?"
|
|
8647
8523
|
] })
|
|
8648
|
-
] }) : /* @__PURE__ */
|
|
8649
|
-
/* @__PURE__ */
|
|
8524
|
+
] }) : /* @__PURE__ */ jsxs6(Box7, { sx: { textAlign: "center", py: 2 }, children: [
|
|
8525
|
+
/* @__PURE__ */ jsx7(
|
|
8650
8526
|
CloudSyncIcon,
|
|
8651
8527
|
{
|
|
8652
8528
|
sx: {
|
|
@@ -8657,9 +8533,9 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8657
8533
|
}
|
|
8658
8534
|
}
|
|
8659
8535
|
),
|
|
8660
|
-
/* @__PURE__ */
|
|
8661
|
-
importProgress.result && /* @__PURE__ */
|
|
8662
|
-
/* @__PURE__ */
|
|
8536
|
+
/* @__PURE__ */ jsx7(Typography5, { variant: "body1", sx: { mb: 1 }, children: importProgress.progress }),
|
|
8537
|
+
importProgress.result && /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
8538
|
+
/* @__PURE__ */ jsx7(
|
|
8663
8539
|
Typography5,
|
|
8664
8540
|
{
|
|
8665
8541
|
variant: "body2",
|
|
@@ -8668,7 +8544,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8668
8544
|
children: importProgress.result.message
|
|
8669
8545
|
}
|
|
8670
8546
|
),
|
|
8671
|
-
importProgress.result.details && /* @__PURE__ */
|
|
8547
|
+
importProgress.result.details && /* @__PURE__ */ jsxs6(Box7, { sx: {
|
|
8672
8548
|
textAlign: "left",
|
|
8673
8549
|
backgroundColor: "background.paper",
|
|
8674
8550
|
border: 1,
|
|
@@ -8677,34 +8553,34 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8677
8553
|
p: 2,
|
|
8678
8554
|
mt: 2
|
|
8679
8555
|
}, children: [
|
|
8680
|
-
/* @__PURE__ */
|
|
8681
|
-
/* @__PURE__ */
|
|
8556
|
+
/* @__PURE__ */ jsx7(Typography5, { variant: "caption", color: "text.secondary", sx: { display: "block", mb: 1 }, children: "Import Details:" }),
|
|
8557
|
+
/* @__PURE__ */ jsxs6(Typography5, { variant: "body2", sx: { mb: 0.5 }, children: [
|
|
8682
8558
|
"\u2022 Total: ",
|
|
8683
8559
|
importProgress.result.details.totalMemories,
|
|
8684
8560
|
" memories"
|
|
8685
8561
|
] }),
|
|
8686
|
-
/* @__PURE__ */
|
|
8562
|
+
/* @__PURE__ */ jsxs6(Typography5, { variant: "body2", sx: { mb: 0.5 }, children: [
|
|
8687
8563
|
"\u2022 Success: ",
|
|
8688
8564
|
importProgress.result.details.successCount
|
|
8689
8565
|
] }),
|
|
8690
|
-
/* @__PURE__ */
|
|
8566
|
+
/* @__PURE__ */ jsxs6(Typography5, { variant: "body2", sx: { mb: 0.5 }, children: [
|
|
8691
8567
|
"\u2022 Failed: ",
|
|
8692
8568
|
importProgress.result.details.failureCount
|
|
8693
8569
|
] }),
|
|
8694
|
-
/* @__PURE__ */
|
|
8570
|
+
/* @__PURE__ */ jsxs6(Typography5, { variant: "body2", sx: { mb: 0.5 }, children: [
|
|
8695
8571
|
"\u2022 Duration: ",
|
|
8696
8572
|
importProgress.result.details.duration
|
|
8697
8573
|
] }),
|
|
8698
|
-
importProgress.result.details.warnings && importProgress.result.details.warnings.length > 0 && /* @__PURE__ */
|
|
8574
|
+
importProgress.result.details.warnings && importProgress.result.details.warnings.length > 0 && /* @__PURE__ */ jsxs6(Typography5, { variant: "body2", color: "warning.main", sx: { mt: 1 }, children: [
|
|
8699
8575
|
"\u26A0\uFE0F ",
|
|
8700
8576
|
importProgress.result.details.warnings.join(", ")
|
|
8701
8577
|
] })
|
|
8702
8578
|
] })
|
|
8703
8579
|
] })
|
|
8704
8580
|
] }) }),
|
|
8705
|
-
/* @__PURE__ */
|
|
8706
|
-
/* @__PURE__ */
|
|
8707
|
-
|
|
8581
|
+
/* @__PURE__ */ jsxs6(DialogActions2, { sx: { p: 3, pt: 1 }, children: [
|
|
8582
|
+
/* @__PURE__ */ jsx7(
|
|
8583
|
+
Button4,
|
|
8708
8584
|
{
|
|
8709
8585
|
onClick: () => {
|
|
8710
8586
|
setBulkImportOpen(false);
|
|
@@ -8715,13 +8591,13 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8715
8591
|
children: importProgress.isImporting ? "Importing..." : "Cancel"
|
|
8716
8592
|
}
|
|
8717
8593
|
),
|
|
8718
|
-
!importProgress.isImporting && !importProgress.result && /* @__PURE__ */
|
|
8719
|
-
|
|
8594
|
+
!importProgress.isImporting && !importProgress.result && /* @__PURE__ */ jsxs6(
|
|
8595
|
+
Button4,
|
|
8720
8596
|
{
|
|
8721
8597
|
color: "primary",
|
|
8722
8598
|
variant: "contained",
|
|
8723
8599
|
onClick: handleBulkImport,
|
|
8724
|
-
startIcon: /* @__PURE__ */
|
|
8600
|
+
startIcon: /* @__PURE__ */ jsx7(CloudSyncIcon, {}),
|
|
8725
8601
|
sx: { textTransform: "none", borderRadius: 3 },
|
|
8726
8602
|
children: [
|
|
8727
8603
|
"Import ",
|
|
@@ -8738,7 +8614,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8738
8614
|
}
|
|
8739
8615
|
);
|
|
8740
8616
|
if (isMobileView) {
|
|
8741
|
-
return /* @__PURE__ */
|
|
8617
|
+
return /* @__PURE__ */ jsx7(
|
|
8742
8618
|
SwipeableDrawer,
|
|
8743
8619
|
{
|
|
8744
8620
|
anchor: "bottom",
|
|
@@ -8763,7 +8639,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8763
8639
|
}
|
|
8764
8640
|
);
|
|
8765
8641
|
}
|
|
8766
|
-
return /* @__PURE__ */
|
|
8642
|
+
return /* @__PURE__ */ jsx7(
|
|
8767
8643
|
Modal2,
|
|
8768
8644
|
{
|
|
8769
8645
|
open,
|
|
@@ -8894,7 +8770,6 @@ export {
|
|
|
8894
8770
|
banditDarkTheme,
|
|
8895
8771
|
predefinedThemes,
|
|
8896
8772
|
themeMap_default,
|
|
8897
|
-
FeedbackButton,
|
|
8898
8773
|
useNotificationService
|
|
8899
8774
|
};
|
|
8900
|
-
//# sourceMappingURL=chunk-
|
|
8775
|
+
//# sourceMappingURL=chunk-JONBKV2S.mjs.map
|