@burtson-labs/bandit-engine 2.0.53 → 2.0.55

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.
Files changed (37) hide show
  1. package/README.md +23 -12
  2. package/dist/{chat-U4SE4JQK.mjs → chat-IDE6Z4Q4.mjs} +4 -4
  3. package/dist/{chunk-EULV5CHD.mjs → chunk-KM7FUWCM.mjs} +4 -4
  4. package/dist/chunk-KM7FUWCM.mjs.map +1 -0
  5. package/dist/{chunk-NZKLKZJT.mjs → chunk-KNBWR4DS.mjs} +773 -486
  6. package/dist/chunk-KNBWR4DS.mjs.map +1 -0
  7. package/dist/{chunk-O54PTFJM.mjs → chunk-NP2OHTTX.mjs} +113 -149
  8. package/dist/chunk-NP2OHTTX.mjs.map +1 -0
  9. package/dist/{chunk-GNE4TTSI.mjs → chunk-TLY6A6XL.mjs} +78 -135
  10. package/dist/chunk-TLY6A6XL.mjs.map +1 -0
  11. package/dist/{chunk-2BGORTWS.mjs → chunk-WL7NV4WJ.mjs} +26 -30
  12. package/dist/chunk-WL7NV4WJ.mjs.map +1 -0
  13. package/dist/index.d.mts +5 -3
  14. package/dist/index.d.ts +5 -3
  15. package/dist/index.js +4045 -4034
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +7 -11
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/management/management.js +4016 -4005
  20. package/dist/management/management.js.map +1 -1
  21. package/dist/management/management.mjs +4 -4
  22. package/dist/modals/chat-modal/chat-modal.js +1384 -1270
  23. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  24. package/dist/modals/chat-modal/chat-modal.mjs +2 -2
  25. package/dist/{gateway-C5T5FfCy.d.mts → public-BzsEWB08.d.mts} +2 -145
  26. package/dist/{gateway-C5T5FfCy.d.ts → public-BzsEWB08.d.ts} +2 -145
  27. package/dist/public-types.d.mts +2 -32
  28. package/dist/public-types.d.ts +2 -32
  29. package/package.json +3 -11
  30. package/dist/chunk-2BGORTWS.mjs.map +0 -1
  31. package/dist/chunk-EULV5CHD.mjs.map +0 -1
  32. package/dist/chunk-GNE4TTSI.mjs.map +0 -1
  33. package/dist/chunk-NZKLKZJT.mjs.map +0 -1
  34. package/dist/chunk-O54PTFJM.mjs.map +0 -1
  35. package/dist/cli.js +0 -4084
  36. package/dist/cli.js.map +0 -1
  37. /package/dist/{chat-U4SE4JQK.mjs.map → chat-IDE6Z4Q4.mjs.map} +0 -0
@@ -21,6 +21,258 @@ import {
21
21
  debugLogger
22
22
  } from "./chunk-KCI46M23.mjs";
23
23
 
24
+ // src/icons/lucide-icons.tsx
25
+ import React from "react";
26
+ import { Box } from "@mui/material";
27
+ import {
28
+ AlertTriangle,
29
+ Archive,
30
+ ArrowDown,
31
+ ArrowUp,
32
+ AudioLines,
33
+ BookOpen,
34
+ BookOpenText,
35
+ Brain,
36
+ Braces,
37
+ Brush,
38
+ BrushCleaning,
39
+ Check,
40
+ ChevronDown,
41
+ ChevronLeft,
42
+ ChevronUp,
43
+ CircleAlert,
44
+ CircleCheck,
45
+ CirclePlus,
46
+ Cloud,
47
+ CloudCheck,
48
+ CloudOff,
49
+ Copy,
50
+ Cpu,
51
+ Database,
52
+ Download,
53
+ EarOff,
54
+ Eye,
55
+ FileText,
56
+ FileUp,
57
+ Folder,
58
+ FolderOpen,
59
+ Globe,
60
+ Grip,
61
+ History,
62
+ House,
63
+ Info,
64
+ LayoutGrid,
65
+ Link,
66
+ List,
67
+ Lock,
68
+ Maximize,
69
+ MessageSquare,
70
+ Mic,
71
+ Minimize,
72
+ Minus,
73
+ NotebookPen,
74
+ Pencil,
75
+ Pin,
76
+ PinOff,
77
+ Play,
78
+ Plus,
79
+ RectangleHorizontal,
80
+ RectangleVertical,
81
+ RefreshCw,
82
+ Rocket,
83
+ RotateCcw,
84
+ RotateCw,
85
+ Save,
86
+ ScanFace,
87
+ Search,
88
+ Send,
89
+ Settings,
90
+ ShieldCheck,
91
+ SlidersHorizontal,
92
+ Sparkles,
93
+ Square,
94
+ TriangleAlert,
95
+ Trash2,
96
+ Type,
97
+ Upload,
98
+ User,
99
+ UserCog,
100
+ Users,
101
+ Wifi,
102
+ WifiHigh,
103
+ WifiLow,
104
+ WifiOff,
105
+ Wrench,
106
+ X,
107
+ ZoomIn,
108
+ ZoomOut
109
+ } from "lucide-react";
110
+ import { jsx } from "react/jsx-runtime";
111
+ var fontSizeMap = {
112
+ inherit: "inherit",
113
+ small: "1.25rem",
114
+ medium: "1.5rem",
115
+ large: "2.1875rem"
116
+ };
117
+ var colorMap = {
118
+ inherit: "inherit",
119
+ action: "action.active",
120
+ disabled: "action.disabled",
121
+ primary: "primary.main",
122
+ secondary: "secondary.main",
123
+ error: "error.main",
124
+ info: "info.main",
125
+ success: "success.main",
126
+ warning: "warning.main"
127
+ };
128
+ var toSxArray = (sx) => Array.isArray(sx) ? sx : sx ? [sx] : [];
129
+ var resolveFontSize = (fontSize = "medium") => {
130
+ if (typeof fontSize === "number") {
131
+ return `${fontSize}px`;
132
+ }
133
+ return fontSizeMap[fontSize] ?? fontSize;
134
+ };
135
+ var resolveColor = (color = "inherit") => colorMap[color] ?? color;
136
+ var createMuiLucideIcon = (Icon) => {
137
+ const MuiLucideIcon = React.forwardRef(
138
+ function MuiLucideIcon2({
139
+ sx,
140
+ size,
141
+ fontSize = "medium",
142
+ color = "inherit",
143
+ htmlColor,
144
+ absoluteStrokeWidth = true,
145
+ titleAccess,
146
+ role,
147
+ ...props
148
+ }, ref) {
149
+ const BoxIcon = Box;
150
+ const forwardedProps = props;
151
+ return /* @__PURE__ */ jsx(
152
+ BoxIcon,
153
+ {
154
+ component: Icon,
155
+ ref,
156
+ size: size ?? "1em",
157
+ absoluteStrokeWidth,
158
+ "aria-hidden": titleAccess ? void 0 : true,
159
+ "aria-label": titleAccess,
160
+ role: titleAccess ? "img" : role,
161
+ sx: [
162
+ {
163
+ color: htmlColor ?? resolveColor(color),
164
+ fontSize: size ? void 0 : resolveFontSize(fontSize),
165
+ flexShrink: 0
166
+ },
167
+ ...toSxArray(sx)
168
+ ],
169
+ ...forwardedProps
170
+ }
171
+ );
172
+ }
173
+ );
174
+ MuiLucideIcon.displayName = `${Icon.displayName ?? Icon.name ?? "Lucide"}MuiIcon`;
175
+ return MuiLucideIcon;
176
+ };
177
+ var AddIcon = createMuiLucideIcon(Plus);
178
+ var CloudDoneIcon = createMuiLucideIcon(CloudCheck);
179
+ var CloudOffIcon = createMuiLucideIcon(CloudOff);
180
+ var ErrorOutlineIcon = createMuiLucideIcon(CircleAlert);
181
+ var HomeIcon = createMuiLucideIcon(House);
182
+ var NotesIcon = createMuiLucideIcon(NotebookPen);
183
+ var NotesIconOutlined = createMuiLucideIcon(NotebookPen);
184
+ var RecordVoiceOverIcon = createMuiLucideIcon(Mic);
185
+ var SettingsIcon = createMuiLucideIcon(Settings);
186
+ var SyncIcon = createMuiLucideIcon(RefreshCw);
187
+ var ArrowUpwardIcon = createMuiLucideIcon(ArrowUp);
188
+ var CloseIcon = createMuiLucideIcon(X);
189
+ var ExpandMoreIcon = createMuiLucideIcon(ChevronDown);
190
+ var FeedbackIcon = createMuiLucideIcon(MessageSquare);
191
+ var GraphicEqIcon = createMuiLucideIcon(AudioLines);
192
+ var HearingDisabledIcon = createMuiLucideIcon(EarOff);
193
+ var PsychologyIcon = createMuiLucideIcon(Brain);
194
+ var ArrowDownwardIcon = createMuiLucideIcon(ArrowDown);
195
+ var CheckCircleIcon = createMuiLucideIcon(CircleCheck);
196
+ var SignalWifi2BarIcon = createMuiLucideIcon(WifiLow);
197
+ var SignalWifiStatusbar4BarIcon = createMuiLucideIcon(WifiHigh);
198
+ var WifiOffIcon = createMuiLucideIcon(WifiOff);
199
+ var DeleteIcon = createMuiLucideIcon(Trash2);
200
+ var PushPinIcon = createMuiLucideIcon(Pin);
201
+ var PushPinOutlinedIcon = createMuiLucideIcon(PinOff);
202
+ var CloudSyncIcon = createMuiLucideIcon(RefreshCw);
203
+ var RotateLeftIcon = createMuiLucideIcon(RotateCcw);
204
+ var RotateRightIcon = createMuiLucideIcon(RotateCw);
205
+ var ZoomInIcon = createMuiLucideIcon(ZoomIn);
206
+ var ZoomOutIcon = createMuiLucideIcon(ZoomOut);
207
+ var WifiIcon = createMuiLucideIcon(Wifi);
208
+ var Crop169Icon = createMuiLucideIcon(RectangleHorizontal);
209
+ var CropPortraitIcon = createMuiLucideIcon(RectangleVertical);
210
+ var CropSquareIcon = createMuiLucideIcon(Square);
211
+ var ContentCopyIcon = createMuiLucideIcon(Copy);
212
+ var FileUploadIcon = createMuiLucideIcon(FileUp);
213
+ var PreviewIcon = createMuiLucideIcon(Eye);
214
+ var RestoreIcon = createMuiLucideIcon(RotateCcw);
215
+ var SaveIcon = createMuiLucideIcon(Save);
216
+ var UploadIcon = createMuiLucideIcon(Upload);
217
+ var AutoAwesomeIcon = createMuiLucideIcon(Sparkles);
218
+ var AutoStoriesIcon = createMuiLucideIcon(BookOpenText);
219
+ var DescriptionIcon = createMuiLucideIcon(FileText);
220
+ var ArticleIcon = createMuiLucideIcon(FileText);
221
+ var CheckIcon = createMuiLucideIcon(Check);
222
+ var CodeIcon = createMuiLucideIcon(Braces);
223
+ var DataObjectIcon = createMuiLucideIcon(Braces);
224
+ var DownloadIcon = createMuiLucideIcon(Download);
225
+ var ErrorIcon = createMuiLucideIcon(CircleAlert);
226
+ var FolderIcon = createMuiLucideIcon(Folder);
227
+ var GroupIcon = createMuiLucideIcon(Users);
228
+ var LockIcon = createMuiLucideIcon(Lock);
229
+ var PersonIcon = createMuiLucideIcon(User);
230
+ var PictureAsPdfIcon = createMuiLucideIcon(FileText);
231
+ var PublicIcon = createMuiLucideIcon(Globe);
232
+ var SearchIcon = createMuiLucideIcon(Search);
233
+ var UploadFileIcon = createMuiLucideIcon(FileUp);
234
+ var ViewListIcon = createMuiLucideIcon(List);
235
+ var ViewModuleIcon = createMuiLucideIcon(LayoutGrid);
236
+ var AddCircleIcon = createMuiLucideIcon(CirclePlus);
237
+ var EditIcon = createMuiLucideIcon(Pencil);
238
+ var PlayArrowIcon = createMuiLucideIcon(Play);
239
+ var VisibilityIcon = createMuiLucideIcon(Eye);
240
+ var HealthAndSafetyIcon = createMuiLucideIcon(ShieldCheck);
241
+ var RefreshIcon = createMuiLucideIcon(RefreshCw);
242
+ var EditNoteOutlinedIcon = createMuiLucideIcon(NotebookPen);
243
+ var ManageAccountsOutlinedIcon = createMuiLucideIcon(UserCog);
244
+ var PlayArrowRoundedIcon = createMuiLucideIcon(Play);
245
+ var RocketLaunchOutlinedIcon = createMuiLucideIcon(Rocket);
246
+ var ViewModuleOutlinedIcon = createMuiLucideIcon(LayoutGrid);
247
+ var LinkIcon = createMuiLucideIcon(Link);
248
+ var ArchiveIcon = createMuiLucideIcon(Archive);
249
+ var FolderOpenIcon = createMuiLucideIcon(FolderOpen);
250
+ var PublishIcon = createMuiLucideIcon(Upload);
251
+ var ChatIcon = createMuiLucideIcon(MessageSquare);
252
+ var CleaningServicesIcon = createMuiLucideIcon(BrushCleaning);
253
+ var InfoIcon = createMuiLucideIcon(Info);
254
+ var WarningIcon = createMuiLucideIcon(AlertTriangle);
255
+ var BrushIcon = createMuiLucideIcon(Brush);
256
+ var BuildIcon = createMuiLucideIcon(Wrench);
257
+ var ChevronLeftIcon = createMuiLucideIcon(ChevronLeft);
258
+ var CloudIcon = createMuiLucideIcon(Cloud);
259
+ var FaceRetouchingNaturalIcon = createMuiLucideIcon(ScanFace);
260
+ var MenuBookIcon = createMuiLucideIcon(BookOpen);
261
+ var StorageIcon = createMuiLucideIcon(Database);
262
+ var TuneIcon = createMuiLucideIcon(SlidersHorizontal);
263
+ var SendIcon = createMuiLucideIcon(Send);
264
+ var ExpandLessIcon = createMuiLucideIcon(ChevronUp);
265
+ var HistoryIcon = createMuiLucideIcon(History);
266
+ var InfoOutlinedIcon = createMuiLucideIcon(Info);
267
+ var MemoryIcon = createMuiLucideIcon(Cpu);
268
+ var FullscreenIcon = createMuiLucideIcon(Maximize);
269
+ var FullscreenExitIcon = createMuiLucideIcon(Minimize);
270
+ var MinimizeIcon = createMuiLucideIcon(Minus);
271
+ var DragIndicatorIcon = createMuiLucideIcon(Grip);
272
+ var MicIcon = createMuiLucideIcon(Mic);
273
+ var TextFieldsIcon = createMuiLucideIcon(Type);
274
+ var TriangleAlertIcon = createMuiLucideIcon(TriangleAlert);
275
+
24
276
  // src/services/tts/voiceService.ts
25
277
  var VoiceService = class _VoiceService {
26
278
  static instance;
@@ -768,12 +1020,12 @@ var useGlobalTTS = () => {
768
1020
  };
769
1021
 
770
1022
  // src/modals/chat-modal/ai-response-text-field.tsx
771
- import React4, { useCallback as useCallback3, useEffect as useEffect5, useMemo as useMemo3, useRef as useRef3, useState as useState5 } from "react";
1023
+ import React5, { useCallback as useCallback3, useEffect as useEffect5, useMemo as useMemo3, useRef as useRef3, useState as useState5 } from "react";
772
1024
 
773
1025
  // src/shared/DocumentCard.tsx
774
1026
  import { useState as useState2, useEffect as useEffect2 } from "react";
775
1027
  import {
776
- Box,
1028
+ Box as Box2,
777
1029
  Typography,
778
1030
  Button,
779
1031
  Tooltip,
@@ -783,21 +1035,8 @@ import {
783
1035
  Chip,
784
1036
  Alert
785
1037
  } from "@mui/material";
786
- import SearchIcon from "@mui/icons-material/Search";
787
- import DownloadIcon from "@mui/icons-material/Download";
788
- import InfoIcon from "@mui/icons-material/Info";
789
- import DeleteIcon from "@mui/icons-material/Delete";
790
- import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
791
- import CloudOffIcon from "@mui/icons-material/CloudOff";
792
- import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";
793
- import DescriptionIcon from "@mui/icons-material/Description";
794
- import ArticleIcon from "@mui/icons-material/Article";
795
- import CodeIcon from "@mui/icons-material/Code";
796
- import DataObjectIcon from "@mui/icons-material/DataObject";
797
- import PersonIcon from "@mui/icons-material/Person";
798
- import CloudIcon from "@mui/icons-material/Cloud";
799
1038
  import { useTheme } from "@mui/material/styles";
800
- import { jsx, jsxs } from "react/jsx-runtime";
1039
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
801
1040
  var getFileTypeInfo = (filename) => {
802
1041
  const ext = filename.split(".").pop()?.toLowerCase() || "";
803
1042
  const languageMap = {
@@ -1006,9 +1245,9 @@ var DocumentCard = ({
1006
1245
  const renderErrorOverlay = () => {
1007
1246
  if (documentState === "available" || documentState === "checking") return null;
1008
1247
  const errorIcon = documentState === "access-changed" ? CloudOffIcon : ErrorOutlineIcon;
1009
- const ErrorIcon = errorIcon;
1010
- return /* @__PURE__ */ jsx(
1011
- Box,
1248
+ const ErrorIcon2 = errorIcon;
1249
+ return /* @__PURE__ */ jsx2(
1250
+ Box2,
1012
1251
  {
1013
1252
  sx: {
1014
1253
  position: "absolute",
@@ -1016,8 +1255,8 @@ var DocumentCard = ({
1016
1255
  right: 8,
1017
1256
  zIndex: 2
1018
1257
  },
1019
- children: /* @__PURE__ */ jsx(Tooltip, { title: errorMessage, arrow: true, children: /* @__PURE__ */ jsx(
1020
- ErrorIcon,
1258
+ children: /* @__PURE__ */ jsx2(Tooltip, { title: errorMessage, arrow: true, children: /* @__PURE__ */ jsx2(
1259
+ ErrorIcon2,
1021
1260
  {
1022
1261
  sx: {
1023
1262
  fontSize: variant === "mini" ? 16 : 20,
@@ -1059,8 +1298,8 @@ var DocumentCard = ({
1059
1298
  onClick: handleCardClick,
1060
1299
  children: [
1061
1300
  renderErrorOverlay(),
1062
- /* @__PURE__ */ jsx(
1063
- Box,
1301
+ /* @__PURE__ */ jsx2(
1302
+ Box2,
1064
1303
  {
1065
1304
  sx: {
1066
1305
  display: "flex",
@@ -1068,10 +1307,10 @@ var DocumentCard = ({
1068
1307
  justifyContent: "center",
1069
1308
  mb: 1
1070
1309
  },
1071
- children: /* @__PURE__ */ jsx(IconComponent, { sx: { fontSize: 32, color: fileInfo.color } })
1310
+ children: /* @__PURE__ */ jsx2(IconComponent, { sx: { fontSize: 32, color: fileInfo.color } })
1072
1311
  }
1073
1312
  ),
1074
- /* @__PURE__ */ jsx(Tooltip, { title: doc.name, arrow: true, children: /* @__PURE__ */ jsx(
1313
+ /* @__PURE__ */ jsx2(Tooltip, { title: doc.name, arrow: true, children: /* @__PURE__ */ jsx2(
1075
1314
  Typography,
1076
1315
  {
1077
1316
  variant: "caption",
@@ -1088,11 +1327,11 @@ var DocumentCard = ({
1088
1327
  children: doc.name
1089
1328
  }
1090
1329
  ) }),
1091
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", gap: 0.5, mb: 1, flexWrap: "wrap", justifyContent: "center" }, children: [
1092
- /* @__PURE__ */ jsx(
1330
+ /* @__PURE__ */ jsxs(Box2, { sx: { display: "flex", gap: 0.5, mb: 1, flexWrap: "wrap", justifyContent: "center" }, children: [
1331
+ /* @__PURE__ */ jsx2(
1093
1332
  Chip,
1094
1333
  {
1095
- icon: /* @__PURE__ */ jsx(sourceInfo.icon, { sx: { fontSize: "0.8rem !important" } }),
1334
+ icon: /* @__PURE__ */ jsx2(sourceInfo.icon, { sx: { fontSize: "0.8rem !important" } }),
1096
1335
  label: sourceInfo.label,
1097
1336
  size: "small",
1098
1337
  sx: {
@@ -1103,7 +1342,7 @@ var DocumentCard = ({
1103
1342
  }
1104
1343
  }
1105
1344
  ),
1106
- /* @__PURE__ */ jsx(
1345
+ /* @__PURE__ */ jsx2(
1107
1346
  Chip,
1108
1347
  {
1109
1348
  label: fileInfo.category,
@@ -1117,8 +1356,8 @@ var DocumentCard = ({
1117
1356
  }
1118
1357
  )
1119
1358
  ] }),
1120
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", gap: 1, mt: 1 }, children: [
1121
- /* @__PURE__ */ jsx(Tooltip, { title: documentState === "available" ? "View" : "Document not available", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
1359
+ /* @__PURE__ */ jsxs(Box2, { sx: { display: "flex", gap: 1, mt: 1 }, children: [
1360
+ /* @__PURE__ */ jsx2(Tooltip, { title: documentState === "available" ? "View" : "Document not available", children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(
1122
1361
  Button,
1123
1362
  {
1124
1363
  size: "small",
@@ -1135,10 +1374,10 @@ var DocumentCard = ({
1135
1374
  e.stopPropagation();
1136
1375
  if (documentState === "available") onView();
1137
1376
  },
1138
- children: /* @__PURE__ */ jsx(SearchIcon, { fontSize: "small" })
1377
+ children: /* @__PURE__ */ jsx2(SearchIcon, { fontSize: "small" })
1139
1378
  }
1140
1379
  ) }) }),
1141
- /* @__PURE__ */ jsx(Tooltip, { title: documentState === "available" ? "Download" : errorMessage, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
1380
+ /* @__PURE__ */ jsx2(Tooltip, { title: documentState === "available" ? "Download" : errorMessage, children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(
1142
1381
  Button,
1143
1382
  {
1144
1383
  size: "small",
@@ -1152,7 +1391,7 @@ var DocumentCard = ({
1152
1391
  height: 32
1153
1392
  },
1154
1393
  onClick: handleDownload,
1155
- children: /* @__PURE__ */ jsx(DownloadIcon, { fontSize: "small" })
1394
+ children: /* @__PURE__ */ jsx2(DownloadIcon, { fontSize: "small" })
1156
1395
  }
1157
1396
  ) }) })
1158
1397
  ] })
@@ -1190,10 +1429,10 @@ var DocumentCard = ({
1190
1429
  flexDirection: "column",
1191
1430
  overflow: "hidden"
1192
1431
  }, children: [
1193
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", mb: 1, height: 32 }, children: [
1194
- /* @__PURE__ */ jsx(IconComponent, { sx: { fontSize: 32, color: fileInfo.color, flexShrink: 0 } }),
1195
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", gap: 0.5, flexShrink: 0 }, children: [
1196
- showSelection && /* @__PURE__ */ jsx(
1432
+ /* @__PURE__ */ jsxs(Box2, { sx: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", mb: 1, height: 32 }, children: [
1433
+ /* @__PURE__ */ jsx2(IconComponent, { sx: { fontSize: 32, color: fileInfo.color, flexShrink: 0 } }),
1434
+ /* @__PURE__ */ jsxs(Box2, { sx: { display: "flex", gap: 0.5, flexShrink: 0 }, children: [
1435
+ showSelection && /* @__PURE__ */ jsx2(
1197
1436
  IconButton,
1198
1437
  {
1199
1438
  size: "small",
@@ -1213,7 +1452,7 @@ var DocumentCard = ({
1213
1452
  children: isSelected ? "\u2713" : "\u25CB"
1214
1453
  }
1215
1454
  ),
1216
- showDelete && /* @__PURE__ */ jsx(
1455
+ showDelete && /* @__PURE__ */ jsx2(
1217
1456
  IconButton,
1218
1457
  {
1219
1458
  size: "small",
@@ -1223,13 +1462,13 @@ var DocumentCard = ({
1223
1462
  onDelete?.(doc.id);
1224
1463
  },
1225
1464
  sx: { width: 24, height: 24 },
1226
- children: /* @__PURE__ */ jsx(DeleteIcon, { fontSize: "small" })
1465
+ children: /* @__PURE__ */ jsx2(DeleteIcon, { fontSize: "small" })
1227
1466
  }
1228
1467
  )
1229
1468
  ] })
1230
1469
  ] }),
1231
- showPreview && /* @__PURE__ */ jsx(
1232
- Box,
1470
+ showPreview && /* @__PURE__ */ jsx2(
1471
+ Box2,
1233
1472
  {
1234
1473
  sx: {
1235
1474
  mb: 1.5,
@@ -1263,13 +1502,13 @@ var DocumentCard = ({
1263
1502
  "..."
1264
1503
  ]
1265
1504
  }
1266
- ) : /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1, opacity: 0.6 }, children: [
1267
- /* @__PURE__ */ jsx(InfoIcon, { sx: { fontSize: 16 } }),
1268
- /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "text.disabled", children: "No preview available" })
1505
+ ) : /* @__PURE__ */ jsxs(Box2, { sx: { display: "flex", alignItems: "center", gap: 1, opacity: 0.6 }, children: [
1506
+ /* @__PURE__ */ jsx2(InfoIcon, { sx: { fontSize: 16 } }),
1507
+ /* @__PURE__ */ jsx2(Typography, { variant: "caption", color: "text.disabled", children: "No preview available" })
1269
1508
  ] })
1270
1509
  }
1271
1510
  ),
1272
- /* @__PURE__ */ jsx(Tooltip, { title: doc.name, arrow: true, children: /* @__PURE__ */ jsx(
1511
+ /* @__PURE__ */ jsx2(Tooltip, { title: doc.name, arrow: true, children: /* @__PURE__ */ jsx2(
1273
1512
  Typography,
1274
1513
  {
1275
1514
  variant: "body2",
@@ -1286,12 +1525,12 @@ var DocumentCard = ({
1286
1525
  children: doc.name
1287
1526
  }
1288
1527
  ) }),
1289
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", mb: 1, minHeight: 40 }, children: [
1290
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", gap: 0.5, flexWrap: "wrap", flex: 1, mr: 1 }, children: [
1291
- /* @__PURE__ */ jsx(
1528
+ /* @__PURE__ */ jsxs(Box2, { sx: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", mb: 1, minHeight: 40 }, children: [
1529
+ /* @__PURE__ */ jsxs(Box2, { sx: { display: "flex", gap: 0.5, flexWrap: "wrap", flex: 1, mr: 1 }, children: [
1530
+ /* @__PURE__ */ jsx2(
1292
1531
  Chip,
1293
1532
  {
1294
- icon: /* @__PURE__ */ jsx(sourceInfo.icon, { sx: { fontSize: "0.9rem !important" } }),
1533
+ icon: /* @__PURE__ */ jsx2(sourceInfo.icon, { sx: { fontSize: "0.9rem !important" } }),
1295
1534
  label: sourceInfo.label,
1296
1535
  size: "small",
1297
1536
  sx: {
@@ -1307,7 +1546,7 @@ var DocumentCard = ({
1307
1546
  }
1308
1547
  }
1309
1548
  ),
1310
- /* @__PURE__ */ jsx(
1549
+ /* @__PURE__ */ jsx2(
1311
1550
  Chip,
1312
1551
  {
1313
1552
  label: fileInfo.category,
@@ -1320,7 +1559,7 @@ var DocumentCard = ({
1320
1559
  }
1321
1560
  }
1322
1561
  ),
1323
- fileInfo.language && /* @__PURE__ */ jsx(
1562
+ fileInfo.language && /* @__PURE__ */ jsx2(
1324
1563
  Chip,
1325
1564
  {
1326
1565
  label: fileInfo.language,
@@ -1335,10 +1574,10 @@ var DocumentCard = ({
1335
1574
  }
1336
1575
  )
1337
1576
  ] }),
1338
- /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "text.secondary", sx: { flexShrink: 0 }, children: formatFileSize((doc.content?.length || 0) * 2) })
1577
+ /* @__PURE__ */ jsx2(Typography, { variant: "caption", color: "text.secondary", sx: { flexShrink: 0 }, children: formatFileSize((doc.content?.length || 0) * 2) })
1339
1578
  ] }),
1340
- /* @__PURE__ */ jsxs(Box, { sx: { mt: "auto" }, children: [
1341
- /* @__PURE__ */ jsx(
1579
+ /* @__PURE__ */ jsxs(Box2, { sx: { mt: "auto" }, children: [
1580
+ /* @__PURE__ */ jsx2(
1342
1581
  Button,
1343
1582
  {
1344
1583
  variant: "outlined",
@@ -1366,11 +1605,11 @@ var DocumentCard = ({
1366
1605
  }
1367
1606
  },
1368
1607
  onClick: handleDownload,
1369
- startIcon: /* @__PURE__ */ jsx(DownloadIcon, { sx: { fontSize: { xs: "1rem", sm: "1.1rem" } } }),
1608
+ startIcon: /* @__PURE__ */ jsx2(DownloadIcon, { sx: { fontSize: { xs: "1rem", sm: "1.1rem" } } }),
1370
1609
  children: documentState === "available" ? "Download" : "Unavailable"
1371
1610
  }
1372
1611
  ),
1373
- documentState !== "available" && documentState !== "checking" && /* @__PURE__ */ jsx(
1612
+ documentState !== "available" && documentState !== "checking" && /* @__PURE__ */ jsx2(
1374
1613
  Alert,
1375
1614
  {
1376
1615
  severity: "warning",
@@ -1399,7 +1638,7 @@ import {
1399
1638
  Toolbar,
1400
1639
  IconButton as IconButton2,
1401
1640
  Typography as Typography2,
1402
- Box as Box2,
1641
+ Box as Box3,
1403
1642
  CircularProgress,
1404
1643
  Alert as Alert2,
1405
1644
  Button as Button2,
@@ -1410,16 +1649,6 @@ import {
1410
1649
  useTheme as useTheme2,
1411
1650
  useMediaQuery
1412
1651
  } from "@mui/material";
1413
- import CloseIcon from "@mui/icons-material/Close";
1414
- import DownloadIcon2 from "@mui/icons-material/Download";
1415
- import ZoomInIcon from "@mui/icons-material/ZoomIn";
1416
- import ZoomOutIcon from "@mui/icons-material/ZoomOut";
1417
- import CodeIcon2 from "@mui/icons-material/Code";
1418
- import TextFieldsIcon from "@mui/icons-material/TextFields";
1419
- import DescriptionIcon2 from "@mui/icons-material/Description";
1420
- import PictureAsPdfIcon2 from "@mui/icons-material/PictureAsPdf";
1421
- import DataObjectIcon2 from "@mui/icons-material/DataObject";
1422
- import ArticleIcon2 from "@mui/icons-material/Article";
1423
1652
  import * as pdfjsLib from "pdfjs-dist/legacy/build/pdf";
1424
1653
 
1425
1654
  // src/utils/lowlight.ts
@@ -1502,7 +1731,7 @@ function getHighlightTree(code, language) {
1502
1731
  }
1503
1732
 
1504
1733
  // src/utils/markdownRendering.tsx
1505
- import React2 from "react";
1734
+ import React3 from "react";
1506
1735
  import { defaultSchema } from "rehype-sanitize";
1507
1736
  var markdownSanitizeSchema = (() => {
1508
1737
  const schema = JSON.parse(JSON.stringify(defaultSchema));
@@ -1562,7 +1791,7 @@ var renderLowlightChildren = (nodes, keyPrefix) => nodes.map((node, index) => {
1562
1791
  reactProps[propKey] = value;
1563
1792
  }
1564
1793
  });
1565
- return React2.createElement(
1794
+ return React3.createElement(
1566
1795
  tagName,
1567
1796
  reactProps,
1568
1797
  renderLowlightChildren(children, key)
@@ -1572,55 +1801,55 @@ var renderLowlightChildren = (nodes, keyPrefix) => nodes.map((node, index) => {
1572
1801
  });
1573
1802
 
1574
1803
  // src/modals/knowlege/knowledge-file-modal.tsx
1575
- import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
1804
+ import { Fragment, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
1576
1805
  var getFileTypeInfo2 = (filename) => {
1577
1806
  const ext = filename.split(".").pop()?.toLowerCase() || "";
1578
1807
  const languageMap = {
1579
1808
  // Documents
1580
- "pdf": { icon: PictureAsPdfIcon2, color: "#d32f2f", category: "Document" },
1581
- "doc": { icon: ArticleIcon2, color: "#1976d2", category: "Document" },
1582
- "docx": { icon: ArticleIcon2, color: "#1976d2", category: "Document" },
1583
- "odt": { icon: ArticleIcon2, color: "#1976d2", category: "Document" },
1584
- "rtf": { icon: ArticleIcon2, color: "#1976d2", category: "Document" },
1809
+ "pdf": { icon: PictureAsPdfIcon, color: "#d32f2f", category: "Document" },
1810
+ "doc": { icon: ArticleIcon, color: "#1976d2", category: "Document" },
1811
+ "docx": { icon: ArticleIcon, color: "#1976d2", category: "Document" },
1812
+ "odt": { icon: ArticleIcon, color: "#1976d2", category: "Document" },
1813
+ "rtf": { icon: ArticleIcon, color: "#1976d2", category: "Document" },
1585
1814
  // Text files
1586
- "txt": { icon: DescriptionIcon2, color: "#388e3c", category: "Text" },
1587
- "md": { icon: DescriptionIcon2, color: "#388e3c", category: "Text", language: "Markdown" },
1588
- "markdown": { icon: DescriptionIcon2, color: "#388e3c", category: "Text", language: "Markdown" },
1815
+ "txt": { icon: DescriptionIcon, color: "#388e3c", category: "Text" },
1816
+ "md": { icon: DescriptionIcon, color: "#388e3c", category: "Text", language: "Markdown" },
1817
+ "markdown": { icon: DescriptionIcon, color: "#388e3c", category: "Text", language: "Markdown" },
1589
1818
  // Web languages
1590
- "js": { icon: CodeIcon2, color: "#f7df1e", category: "Code", language: "JavaScript" },
1591
- "jsx": { icon: CodeIcon2, color: "#61dafb", category: "Code", language: "JavaScript" },
1592
- "ts": { icon: CodeIcon2, color: "#3178c6", category: "Code", language: "TypeScript" },
1593
- "tsx": { icon: CodeIcon2, color: "#61dafb", category: "Code", language: "TypeScript" },
1594
- "html": { icon: CodeIcon2, color: "#e34f26", category: "Code", language: "HTML" },
1595
- "css": { icon: CodeIcon2, color: "#1572b6", category: "Code", language: "CSS" },
1596
- "scss": { icon: CodeIcon2, color: "#cf649a", category: "Code", language: "SCSS" },
1597
- "sass": { icon: CodeIcon2, color: "#cf649a", category: "Code", language: "Sass" },
1598
- "php": { icon: CodeIcon2, color: "#777bb4", category: "Code", language: "PHP" },
1819
+ "js": { icon: CodeIcon, color: "#f7df1e", category: "Code", language: "JavaScript" },
1820
+ "jsx": { icon: CodeIcon, color: "#61dafb", category: "Code", language: "JavaScript" },
1821
+ "ts": { icon: CodeIcon, color: "#3178c6", category: "Code", language: "TypeScript" },
1822
+ "tsx": { icon: CodeIcon, color: "#61dafb", category: "Code", language: "TypeScript" },
1823
+ "html": { icon: CodeIcon, color: "#e34f26", category: "Code", language: "HTML" },
1824
+ "css": { icon: CodeIcon, color: "#1572b6", category: "Code", language: "CSS" },
1825
+ "scss": { icon: CodeIcon, color: "#cf649a", category: "Code", language: "SCSS" },
1826
+ "sass": { icon: CodeIcon, color: "#cf649a", category: "Code", language: "Sass" },
1827
+ "php": { icon: CodeIcon, color: "#777bb4", category: "Code", language: "PHP" },
1599
1828
  // Systems languages
1600
- "c": { icon: CodeIcon2, color: "#a8b9cc", category: "Code", language: "C" },
1601
- "cpp": { icon: CodeIcon2, color: "#f34b7d", category: "Code", language: "C++" },
1602
- "cs": { icon: CodeIcon2, color: "#239120", category: "Code", language: "C#" },
1603
- "java": { icon: CodeIcon2, color: "#ed8b00", category: "Code", language: "Java" },
1604
- "py": { icon: CodeIcon2, color: "#3776ab", category: "Code", language: "Python" },
1605
- "go": { icon: CodeIcon2, color: "#00add8", category: "Code", language: "Go" },
1606
- "rs": { icon: CodeIcon2, color: "#ce422b", category: "Code", language: "Rust" },
1607
- "kt": { icon: CodeIcon2, color: "#7f52ff", category: "Code", language: "Kotlin" },
1608
- "swift": { icon: CodeIcon2, color: "#fa7343", category: "Code", language: "Swift" },
1609
- "scala": { icon: CodeIcon2, color: "#dc322f", category: "Code", language: "Scala" },
1610
- "rb": { icon: CodeIcon2, color: "#cc342d", category: "Code", language: "Ruby" },
1829
+ "c": { icon: CodeIcon, color: "#a8b9cc", category: "Code", language: "C" },
1830
+ "cpp": { icon: CodeIcon, color: "#f34b7d", category: "Code", language: "C++" },
1831
+ "cs": { icon: CodeIcon, color: "#239120", category: "Code", language: "C#" },
1832
+ "java": { icon: CodeIcon, color: "#ed8b00", category: "Code", language: "Java" },
1833
+ "py": { icon: CodeIcon, color: "#3776ab", category: "Code", language: "Python" },
1834
+ "go": { icon: CodeIcon, color: "#00add8", category: "Code", language: "Go" },
1835
+ "rs": { icon: CodeIcon, color: "#ce422b", category: "Code", language: "Rust" },
1836
+ "kt": { icon: CodeIcon, color: "#7f52ff", category: "Code", language: "Kotlin" },
1837
+ "swift": { icon: CodeIcon, color: "#fa7343", category: "Code", language: "Swift" },
1838
+ "scala": { icon: CodeIcon, color: "#dc322f", category: "Code", language: "Scala" },
1839
+ "rb": { icon: CodeIcon, color: "#cc342d", category: "Code", language: "Ruby" },
1611
1840
  // Scripts
1612
- "sh": { icon: CodeIcon2, color: "#4eaa25", category: "Code", language: "Shell" },
1613
- "bash": { icon: CodeIcon2, color: "#4eaa25", category: "Code", language: "Bash" },
1614
- "bat": { icon: CodeIcon2, color: "#c1f12e", category: "Code", language: "Batch" },
1615
- "ps1": { icon: CodeIcon2, color: "#012456", category: "Code", language: "PowerShell" },
1841
+ "sh": { icon: CodeIcon, color: "#4eaa25", category: "Code", language: "Shell" },
1842
+ "bash": { icon: CodeIcon, color: "#4eaa25", category: "Code", language: "Bash" },
1843
+ "bat": { icon: CodeIcon, color: "#c1f12e", category: "Code", language: "Batch" },
1844
+ "ps1": { icon: CodeIcon, color: "#012456", category: "Code", language: "PowerShell" },
1616
1845
  // Data formats
1617
- "json": { icon: DataObjectIcon2, color: "#f7df1e", category: "Data", language: "JSON" },
1618
- "xml": { icon: DataObjectIcon2, color: "#ff6600", category: "Data", language: "XML" },
1619
- "yaml": { icon: DataObjectIcon2, color: "#cb171e", category: "Data", language: "YAML" },
1620
- "yml": { icon: DataObjectIcon2, color: "#cb171e", category: "Data", language: "YAML" },
1621
- "csv": { icon: DataObjectIcon2, color: "#217346", category: "Data", language: "CSV" }
1846
+ "json": { icon: DataObjectIcon, color: "#f7df1e", category: "Data", language: "JSON" },
1847
+ "xml": { icon: DataObjectIcon, color: "#ff6600", category: "Data", language: "XML" },
1848
+ "yaml": { icon: DataObjectIcon, color: "#cb171e", category: "Data", language: "YAML" },
1849
+ "yml": { icon: DataObjectIcon, color: "#cb171e", category: "Data", language: "YAML" },
1850
+ "csv": { icon: DataObjectIcon, color: "#217346", category: "Data", language: "CSV" }
1622
1851
  };
1623
- return languageMap[ext] || { icon: DescriptionIcon2, color: "#666", category: "Other" };
1852
+ return languageMap[ext] || { icon: DescriptionIcon, color: "#666", category: "Other" };
1624
1853
  };
1625
1854
  var isPDF = (filename) => filename.toLowerCase().endsWith(".pdf");
1626
1855
  var LANGUAGE_MAP = {
@@ -1953,13 +2182,13 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
1953
2182
  }
1954
2183
  };
1955
2184
  return /* @__PURE__ */ jsxs2(Dialog, { fullScreen: true, open, onClose, children: [
1956
- /* @__PURE__ */ jsx2(AppBar, { sx: { position: "relative" }, children: /* @__PURE__ */ jsxs2(Toolbar, { children: [
1957
- /* @__PURE__ */ jsxs2(Box2, { sx: { display: "flex", alignItems: "center", flex: 1, minWidth: 0 }, children: [
1958
- doc && /* @__PURE__ */ jsx2(Box2, { sx: { mr: 1, flexShrink: 0 }, children: (() => {
2185
+ /* @__PURE__ */ jsx3(AppBar, { sx: { position: "relative" }, children: /* @__PURE__ */ jsxs2(Toolbar, { children: [
2186
+ /* @__PURE__ */ jsxs2(Box3, { sx: { display: "flex", alignItems: "center", flex: 1, minWidth: 0 }, children: [
2187
+ doc && /* @__PURE__ */ jsx3(Box3, { sx: { mr: 1, flexShrink: 0 }, children: (() => {
1959
2188
  const fileInfo = getFileTypeInfo2(doc.name);
1960
2189
  const IconComponent = fileInfo.icon;
1961
- return /* @__PURE__ */ jsx2(Tooltip2, { title: `${fileInfo.category} file`, placement: "bottom", children: /* @__PURE__ */ jsxs2(
1962
- Box2,
2190
+ return /* @__PURE__ */ jsx3(Tooltip2, { title: `${fileInfo.category} file`, placement: "bottom", children: /* @__PURE__ */ jsxs2(
2191
+ Box3,
1963
2192
  {
1964
2193
  sx: {
1965
2194
  display: "flex",
@@ -1973,13 +2202,13 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
1973
2202
  fontWeight: "bold"
1974
2203
  },
1975
2204
  children: [
1976
- /* @__PURE__ */ jsx2(IconComponent, { sx: { fontSize: "1rem", mr: 0.5 } }),
2205
+ /* @__PURE__ */ jsx3(IconComponent, { sx: { fontSize: "1rem", mr: 0.5 } }),
1977
2206
  fileInfo.language || fileInfo.category
1978
2207
  ]
1979
2208
  }
1980
2209
  ) });
1981
2210
  })() }),
1982
- /* @__PURE__ */ jsx2(Tooltip2, { title: doc?.name || "", placement: "bottom-start", children: /* @__PURE__ */ jsx2(
2211
+ /* @__PURE__ */ jsx3(Tooltip2, { title: doc?.name || "", placement: "bottom-start", children: /* @__PURE__ */ jsx3(
1983
2212
  Typography2,
1984
2213
  {
1985
2214
  sx: {
@@ -2007,7 +2236,7 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
2007
2236
  children: doc?.name
2008
2237
  }
2009
2238
  ) }),
2010
- /* @__PURE__ */ jsx2(Box2, { sx: { display: "flex", alignItems: "center", flexShrink: 0, ml: 1 }, children: isPDF(doc?.name || "") && totalPages > 0 && /* @__PURE__ */ jsxs2(Typography2, { component: "span", variant: "body2", sx: { opacity: 0.8 }, children: [
2239
+ /* @__PURE__ */ jsx3(Box3, { sx: { display: "flex", alignItems: "center", flexShrink: 0, ml: 1 }, children: isPDF(doc?.name || "") && totalPages > 0 && /* @__PURE__ */ jsxs2(Typography2, { component: "span", variant: "body2", sx: { opacity: 0.8 }, children: [
2011
2240
  "(",
2012
2241
  totalPages,
2013
2242
  " page",
@@ -2015,7 +2244,7 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
2015
2244
  ")"
2016
2245
  ] }) })
2017
2246
  ] }),
2018
- /* @__PURE__ */ jsxs2(Box2, { sx: { display: "flex", alignItems: "center", flexShrink: 0, gap: 1 }, children: [
2247
+ /* @__PURE__ */ jsxs2(Box3, { sx: { display: "flex", alignItems: "center", flexShrink: 0, gap: 1 }, children: [
2019
2248
  !isPDF(doc?.name || "") && isCodeFile(doc?.name || "") && /* @__PURE__ */ jsxs2(
2020
2249
  ToggleButtonGroup,
2021
2250
  {
@@ -2025,22 +2254,22 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
2025
2254
  size: "small",
2026
2255
  children: [
2027
2256
  /* @__PURE__ */ jsxs2(ToggleButton, { value: "formatted", sx: { color: "inherit" }, children: [
2028
- /* @__PURE__ */ jsx2(CodeIcon2, { sx: { mr: 1, fontSize: "1rem" } }),
2257
+ /* @__PURE__ */ jsx3(CodeIcon, { sx: { mr: 1, fontSize: "1rem" } }),
2029
2258
  "Formatted"
2030
2259
  ] }),
2031
2260
  /* @__PURE__ */ jsxs2(ToggleButton, { value: "raw", sx: { color: "inherit" }, children: [
2032
- /* @__PURE__ */ jsx2(TextFieldsIcon, { sx: { mr: 1, fontSize: "1rem" } }),
2261
+ /* @__PURE__ */ jsx3(TextFieldsIcon, { sx: { mr: 1, fontSize: "1rem" } }),
2033
2262
  "Raw"
2034
2263
  ] })
2035
2264
  ]
2036
2265
  }
2037
2266
  ),
2038
2267
  isPDF(doc?.name || "") && pdfDocument && !isMobile && /* @__PURE__ */ jsxs2(Fragment, { children: [
2039
- /* @__PURE__ */ jsx2(
2268
+ /* @__PURE__ */ jsx3(
2040
2269
  Button2,
2041
2270
  {
2042
2271
  color: "inherit",
2043
- startIcon: /* @__PURE__ */ jsx2(ZoomOutIcon, {}),
2272
+ startIcon: /* @__PURE__ */ jsx3(ZoomOutIcon, {}),
2044
2273
  onClick: handleZoomOut,
2045
2274
  disabled: pdfScale <= 0.5,
2046
2275
  size: "small",
@@ -2051,11 +2280,11 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
2051
2280
  Math.round(pdfScale * 100),
2052
2281
  "%"
2053
2282
  ] }),
2054
- /* @__PURE__ */ jsx2(
2283
+ /* @__PURE__ */ jsx3(
2055
2284
  Button2,
2056
2285
  {
2057
2286
  color: "inherit",
2058
- startIcon: /* @__PURE__ */ jsx2(ZoomInIcon, {}),
2287
+ startIcon: /* @__PURE__ */ jsx3(ZoomInIcon, {}),
2059
2288
  onClick: handleZoomIn,
2060
2289
  disabled: pdfScale >= 3,
2061
2290
  size: "small",
@@ -2063,17 +2292,17 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
2063
2292
  }
2064
2293
  )
2065
2294
  ] }),
2066
- isVectorDocument && /* @__PURE__ */ jsx2(IconButton2, { edge: "end", color: "inherit", onClick: handleDownload, children: /* @__PURE__ */ jsx2(DownloadIcon2, {}) }),
2067
- /* @__PURE__ */ jsx2(IconButton2, { edge: "end", color: "inherit", onClick: onClose, children: /* @__PURE__ */ jsx2(CloseIcon, {}) })
2295
+ isVectorDocument && /* @__PURE__ */ jsx3(IconButton2, { edge: "end", color: "inherit", onClick: handleDownload, children: /* @__PURE__ */ jsx3(DownloadIcon, {}) }),
2296
+ /* @__PURE__ */ jsx3(IconButton2, { edge: "end", color: "inherit", onClick: onClose, children: /* @__PURE__ */ jsx3(CloseIcon, {}) })
2068
2297
  ] })
2069
2298
  ] }) }),
2070
- /* @__PURE__ */ jsxs2(Box2, { sx: { p: 3, bgcolor: "background.default", height: "100%", overflowY: "auto" }, children: [
2071
- loading && /* @__PURE__ */ jsxs2(Box2, { sx: { display: "flex", justifyContent: "center", alignItems: "center", height: "50vh" }, children: [
2072
- /* @__PURE__ */ jsx2(CircularProgress, {}),
2073
- /* @__PURE__ */ jsx2(Typography2, { sx: { ml: 2 }, children: isPDF(doc?.name || "") ? "Loading PDF document..." : "Loading full file content..." })
2299
+ /* @__PURE__ */ jsxs2(Box3, { sx: { p: 3, bgcolor: "background.default", height: "100%", overflowY: "auto" }, children: [
2300
+ loading && /* @__PURE__ */ jsxs2(Box3, { sx: { display: "flex", justifyContent: "center", alignItems: "center", height: "50vh" }, children: [
2301
+ /* @__PURE__ */ jsx3(CircularProgress, {}),
2302
+ /* @__PURE__ */ jsx3(Typography2, { sx: { ml: 2 }, children: isPDF(doc?.name || "") ? "Loading PDF document..." : "Loading full file content..." })
2074
2303
  ] }),
2075
- error && /* @__PURE__ */ jsx2(Alert2, { severity: "warning", sx: { mb: 2 }, children: error }),
2076
- !loading && isPDF(doc?.name || "") && pdfCanvases.length > 0 && /* @__PURE__ */ jsx2(Box2, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: 2 }, children: pdfCanvases.map((canvas, index) => /* @__PURE__ */ jsxs2(
2304
+ error && /* @__PURE__ */ jsx3(Alert2, { severity: "warning", sx: { mb: 2 }, children: error }),
2305
+ !loading && isPDF(doc?.name || "") && pdfCanvases.length > 0 && /* @__PURE__ */ jsx3(Box3, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: 2 }, children: pdfCanvases.map((canvas, index) => /* @__PURE__ */ jsxs2(
2077
2306
  Paper,
2078
2307
  {
2079
2308
  elevation: 3,
@@ -2112,8 +2341,8 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
2112
2341
  " of ",
2113
2342
  totalPages
2114
2343
  ] }),
2115
- /* @__PURE__ */ jsx2(
2116
- Box2,
2344
+ /* @__PURE__ */ jsx3(
2345
+ Box3,
2117
2346
  {
2118
2347
  ref: (el) => {
2119
2348
  if (el && canvas) {
@@ -2136,18 +2365,18 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
2136
2365
  },
2137
2366
  index
2138
2367
  )) }),
2139
- !loading && !isPDF(doc?.name || "") && /* @__PURE__ */ jsx2(Box2, { children: isCodeFile(doc?.name || "") && viewMode === "formatted" ? /* @__PURE__ */ jsxs2(Box2, { children: [
2140
- /* @__PURE__ */ jsxs2(Box2, { sx: { mb: 2, display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
2368
+ !loading && !isPDF(doc?.name || "") && /* @__PURE__ */ jsx3(Box3, { children: isCodeFile(doc?.name || "") && viewMode === "formatted" ? /* @__PURE__ */ jsxs2(Box3, { children: [
2369
+ /* @__PURE__ */ jsxs2(Box3, { sx: { mb: 2, display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
2141
2370
  /* @__PURE__ */ jsxs2(Typography2, { variant: "body2", color: "text.secondary", children: [
2142
2371
  "Syntax highlighted as ",
2143
- /* @__PURE__ */ jsx2("strong", { children: getLanguageFromFilename(doc?.name || "").toUpperCase() })
2372
+ /* @__PURE__ */ jsx3("strong", { children: getLanguageFromFilename(doc?.name || "").toUpperCase() })
2144
2373
  ] }),
2145
2374
  /* @__PURE__ */ jsxs2(Typography2, { variant: "caption", color: "text.secondary", children: [
2146
2375
  (fullContent || doc?.content || "").split("\n").length,
2147
2376
  " lines"
2148
2377
  ] })
2149
2378
  ] }),
2150
- /* @__PURE__ */ jsx2(
2379
+ /* @__PURE__ */ jsx3(
2151
2380
  Paper,
2152
2381
  {
2153
2382
  elevation: 1,
@@ -2190,8 +2419,8 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
2190
2419
  overflowWrap: "anywhere"
2191
2420
  }
2192
2421
  },
2193
- children: /* @__PURE__ */ jsx2(
2194
- Box2,
2422
+ children: /* @__PURE__ */ jsx3(
2423
+ Box3,
2195
2424
  {
2196
2425
  sx: {
2197
2426
  "& .hljs": {
@@ -2226,12 +2455,12 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
2226
2455
  color: isDarkTheme ? "#f07178" : "#d97706"
2227
2456
  }
2228
2457
  },
2229
- children: /* @__PURE__ */ jsx2("pre", { className: `hljs language-${resolvedHighlightLanguage || "text"}`, children: /* @__PURE__ */ jsx2("code", { className: "hljs", children: highlightedNodes.length > 0 ? highlightedNodes : formattedContent }) })
2458
+ children: /* @__PURE__ */ jsx3("pre", { className: `hljs language-${resolvedHighlightLanguage || "text"}`, children: /* @__PURE__ */ jsx3("code", { className: "hljs", children: highlightedNodes.length > 0 ? highlightedNodes : formattedContent }) })
2230
2459
  }
2231
2460
  )
2232
2461
  }
2233
2462
  )
2234
- ] }) : /* @__PURE__ */ jsx2(
2463
+ ] }) : /* @__PURE__ */ jsx3(
2235
2464
  Typography2,
2236
2465
  {
2237
2466
  component: "pre",
@@ -2252,14 +2481,14 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
2252
2481
  children: fullContent || doc?.content
2253
2482
  }
2254
2483
  ) }),
2255
- !loading && isPDF(doc?.name || "") && pdfCanvases.length === 0 && !error && /* @__PURE__ */ jsxs2(Box2, { sx: { textAlign: "center", py: 4 }, children: [
2256
- /* @__PURE__ */ jsx2(Typography2, { variant: "h6", color: "text.secondary", gutterBottom: true, children: "PDF Preview Not Available" }),
2257
- /* @__PURE__ */ jsx2(Typography2, { variant: "body2", color: "text.secondary", children: "This PDF file cannot be previewed. You can download it to view the full content." }),
2258
- isVectorDocument && /* @__PURE__ */ jsx2(
2484
+ !loading && isPDF(doc?.name || "") && pdfCanvases.length === 0 && !error && /* @__PURE__ */ jsxs2(Box3, { sx: { textAlign: "center", py: 4 }, children: [
2485
+ /* @__PURE__ */ jsx3(Typography2, { variant: "h6", color: "text.secondary", gutterBottom: true, children: "PDF Preview Not Available" }),
2486
+ /* @__PURE__ */ jsx3(Typography2, { variant: "body2", color: "text.secondary", children: "This PDF file cannot be previewed. You can download it to view the full content." }),
2487
+ isVectorDocument && /* @__PURE__ */ jsx3(
2259
2488
  Button2,
2260
2489
  {
2261
2490
  variant: "contained",
2262
- startIcon: /* @__PURE__ */ jsx2(DownloadIcon2, {}),
2491
+ startIcon: /* @__PURE__ */ jsx3(DownloadIcon, {}),
2263
2492
  onClick: handleDownload,
2264
2493
  sx: { mt: 2 },
2265
2494
  children: "Download PDF"
@@ -2279,7 +2508,7 @@ import rehypeRaw from "rehype-raw";
2279
2508
  import rehypeSanitize from "rehype-sanitize";
2280
2509
  import {
2281
2510
  Avatar,
2282
- Box as Box4,
2511
+ Box as Box5,
2283
2512
  IconButton as IconButton4,
2284
2513
  Modal,
2285
2514
  Tooltip as Tooltip4,
@@ -2292,22 +2521,12 @@ import {
2292
2521
  TableRow,
2293
2522
  Paper as Paper2
2294
2523
  } from "@mui/material";
2295
- import ContentCopyIcon2 from "@mui/icons-material/ContentCopy";
2296
- import CheckIcon2 from "@mui/icons-material/Check";
2297
- import CloseIcon2 from "@mui/icons-material/Close";
2298
2524
 
2299
2525
  // src/modals/chat-modal/ai-response-action-bar.tsx
2300
2526
  import { useState as useState4, useEffect as useEffect4 } from "react";
2301
- import { Box as Box3, CircularProgress as CircularProgress2, IconButton as IconButton3, Tooltip as Tooltip3 } from "@mui/material";
2302
- import CheckIcon from "@mui/icons-material/Check";
2303
- import ThumbUpIcon from "@mui/icons-material/ThumbUp";
2304
- import ThumbDownIcon from "@mui/icons-material/ThumbDown";
2305
- import ContentCopyIcon from "@mui/icons-material/ContentCopy";
2306
- import { CampaignOutlined, CampaignRounded } from "@mui/icons-material";
2307
- import StopIcon from "@mui/icons-material/Stop";
2308
- import PauseIcon from "@mui/icons-material/Pause";
2309
- import PlayArrowIcon from "@mui/icons-material/PlayArrow";
2310
- import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
2527
+ import { Box as Box4, CircularProgress as CircularProgress2, IconButton as IconButton3, Tooltip as Tooltip3 } from "@mui/material";
2528
+ import { Check as CheckIcon2, ThumbsUp as ThumbUpIcon, ThumbsDown as ThumbDownIcon, Copy as ContentCopyIcon2, Megaphone as CampaignOutlined, Megaphone as CampaignRounded, Square as StopIcon, Pause as PauseIcon, Play as PlayArrowIcon2 } from "lucide-react";
2529
+ import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
2311
2530
  var AiResponseActionsBar = ({ text }) => {
2312
2531
  const [copied, setCopied] = useState4(false);
2313
2532
  const [feedback, setFeedback] = useState4(null);
@@ -2381,8 +2600,8 @@ var AiResponseActionsBar = ({ text }) => {
2381
2600
  const handleFeedback = (type) => {
2382
2601
  setFeedback(type);
2383
2602
  };
2384
- return /* @__PURE__ */ jsxs3(Box3, { sx: { mt: 2, display: "flex", gap: 2, alignItems: "center", flexWrap: "wrap" }, children: [
2385
- /* @__PURE__ */ jsx3(Tooltip3, { title: copied ? "Copied!" : "Copy entire response", children: /* @__PURE__ */ jsx3(
2603
+ return /* @__PURE__ */ jsxs3(Box4, { sx: { mt: 2, display: "flex", gap: 2, alignItems: "center", flexWrap: "wrap" }, children: [
2604
+ /* @__PURE__ */ jsx4(Tooltip3, { title: copied ? "Copied!" : "Copy entire response", children: /* @__PURE__ */ jsx4(
2386
2605
  IconButton3,
2387
2606
  {
2388
2607
  onClick: handleCopy,
@@ -2393,15 +2612,15 @@ var AiResponseActionsBar = ({ text }) => {
2393
2612
  color: (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
2394
2613
  }
2395
2614
  },
2396
- children: copied ? /* @__PURE__ */ jsx3(CheckIcon, { sx: { fontSize: 18 } }) : /* @__PURE__ */ jsx3(ContentCopyIcon, { sx: { fontSize: 18 } })
2615
+ children: copied ? /* @__PURE__ */ jsx4(CheckIcon2, { size: 18 }) : /* @__PURE__ */ jsx4(ContentCopyIcon2, { size: 18 })
2397
2616
  }
2398
2617
  ) }),
2399
2618
  isTTSAvailable && /* @__PURE__ */ jsxs3(Fragment2, { children: [
2400
- /* @__PURE__ */ jsx3(
2619
+ /* @__PURE__ */ jsx4(
2401
2620
  Tooltip3,
2402
2621
  {
2403
2622
  title: !isTTSAvailable ? "TTS not available - check configuration" : isLoading ? "Loading audio..." : isPaused ? "Resume playback" : isPlaying ? "Playing audio..." : "Play response with voice",
2404
- children: /* @__PURE__ */ jsx3(
2623
+ children: /* @__PURE__ */ jsx4(
2405
2624
  IconButton3,
2406
2625
  {
2407
2626
  onClick: handleTTSClick,
@@ -2416,12 +2635,12 @@ var AiResponseActionsBar = ({ text }) => {
2416
2635
  color: (theme) => theme.palette.mode === "dark" ? "#666" : "#aaa"
2417
2636
  }
2418
2637
  },
2419
- children: isLoading ? /* @__PURE__ */ jsx3(CircularProgress2, { size: 18 }) : isPaused ? /* @__PURE__ */ jsx3(PlayArrowIcon, { sx: { fontSize: 18 } }) : !isPlaying ? /* @__PURE__ */ jsx3(CampaignOutlined, { sx: { fontSize: 18 } }) : /* @__PURE__ */ jsx3(CampaignRounded, { sx: { fontSize: 18, color: "#4caf50" } })
2638
+ children: isLoading ? /* @__PURE__ */ jsx4(CircularProgress2, { size: 18 }) : isPaused ? /* @__PURE__ */ jsx4(PlayArrowIcon2, { size: 18 }) : !isPlaying ? /* @__PURE__ */ jsx4(CampaignOutlined, { size: 18 }) : /* @__PURE__ */ jsx4(CampaignRounded, { size: 18, color: "#4caf50" })
2420
2639
  }
2421
2640
  )
2422
2641
  }
2423
2642
  ),
2424
- isPlaying && /* @__PURE__ */ jsx3(Tooltip3, { title: "Pause playback", children: /* @__PURE__ */ jsx3(
2643
+ isPlaying && /* @__PURE__ */ jsx4(Tooltip3, { title: "Pause playback", children: /* @__PURE__ */ jsx4(
2425
2644
  IconButton3,
2426
2645
  {
2427
2646
  onClick: () => ttsPause(),
@@ -2432,10 +2651,10 @@ var AiResponseActionsBar = ({ text }) => {
2432
2651
  color: (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
2433
2652
  }
2434
2653
  },
2435
- children: /* @__PURE__ */ jsx3(PauseIcon, { sx: { fontSize: 18 } })
2654
+ children: /* @__PURE__ */ jsx4(PauseIcon, { size: 18 })
2436
2655
  }
2437
2656
  ) }),
2438
- (isPlaying || isPaused) && /* @__PURE__ */ jsx3(Tooltip3, { title: "Stop playback", children: /* @__PURE__ */ jsx3(
2657
+ (isPlaying || isPaused) && /* @__PURE__ */ jsx4(Tooltip3, { title: "Stop playback", children: /* @__PURE__ */ jsx4(
2439
2658
  IconButton3,
2440
2659
  {
2441
2660
  onClick: () => ttsStop(),
@@ -2446,11 +2665,11 @@ var AiResponseActionsBar = ({ text }) => {
2446
2665
  color: (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
2447
2666
  }
2448
2667
  },
2449
- children: /* @__PURE__ */ jsx3(StopIcon, { sx: { fontSize: 18 } })
2668
+ children: /* @__PURE__ */ jsx4(StopIcon, { size: 18 })
2450
2669
  }
2451
2670
  ) })
2452
2671
  ] }),
2453
- /* @__PURE__ */ jsx3(Tooltip3, { title: "Like this response", children: /* @__PURE__ */ jsx3(
2672
+ /* @__PURE__ */ jsx4(Tooltip3, { title: "Like this response", children: /* @__PURE__ */ jsx4(
2454
2673
  IconButton3,
2455
2674
  {
2456
2675
  onClick: () => handleFeedback("like"),
@@ -2461,10 +2680,10 @@ var AiResponseActionsBar = ({ text }) => {
2461
2680
  color: feedback === "like" ? "#00e676" : (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
2462
2681
  }
2463
2682
  },
2464
- children: /* @__PURE__ */ jsx3(ThumbUpIcon, { sx: { fontSize: 18 } })
2683
+ children: /* @__PURE__ */ jsx4(ThumbUpIcon, { size: 18 })
2465
2684
  }
2466
2685
  ) }),
2467
- /* @__PURE__ */ jsx3(Tooltip3, { title: "Dislike this response", children: /* @__PURE__ */ jsx3(
2686
+ /* @__PURE__ */ jsx4(Tooltip3, { title: "Dislike this response", children: /* @__PURE__ */ jsx4(
2468
2687
  IconButton3,
2469
2688
  {
2470
2689
  onClick: () => handleFeedback("dislike"),
@@ -2474,7 +2693,7 @@ var AiResponseActionsBar = ({ text }) => {
2474
2693
  color: feedback === "dislike" ? "#ff1744" : (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
2475
2694
  }
2476
2695
  },
2477
- children: /* @__PURE__ */ jsx3(ThumbDownIcon, { sx: { fontSize: 18 } })
2696
+ children: /* @__PURE__ */ jsx4(ThumbDownIcon, { size: 18 })
2478
2697
  }
2479
2698
  ) })
2480
2699
  ] });
@@ -2482,7 +2701,7 @@ var AiResponseActionsBar = ({ text }) => {
2482
2701
  var ai_response_action_bar_default = AiResponseActionsBar;
2483
2702
 
2484
2703
  // src/modals/chat-modal/ai-response-text-field.tsx
2485
- import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
2704
+ import { Fragment as Fragment3, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
2486
2705
  var brainIcon = "https://cdn.burtson.ai/images/brain-icon.png";
2487
2706
  var avatarFilenames = {
2488
2707
  "Bandit-Core": "core-avatar.png",
@@ -2616,7 +2835,7 @@ var MarkdownCodeBlock = ({
2616
2835
  variable: "#d97706"
2617
2836
  };
2618
2837
  if (!isProbablyBlock) {
2619
- return /* @__PURE__ */ jsx4(
2838
+ return /* @__PURE__ */ jsx5(
2620
2839
  "code",
2621
2840
  {
2622
2841
  style: {
@@ -2630,7 +2849,7 @@ var MarkdownCodeBlock = ({
2630
2849
  );
2631
2850
  }
2632
2851
  return /* @__PURE__ */ jsxs4(
2633
- Box4,
2852
+ Box5,
2634
2853
  {
2635
2854
  sx: {
2636
2855
  borderRadius: "4px",
@@ -2648,7 +2867,7 @@ var MarkdownCodeBlock = ({
2648
2867
  },
2649
2868
  children: [
2650
2869
  /* @__PURE__ */ jsxs4(
2651
- Box4,
2870
+ Box5,
2652
2871
  {
2653
2872
  sx: {
2654
2873
  px: 2,
@@ -2663,8 +2882,8 @@ var MarkdownCodeBlock = ({
2663
2882
  fontFamily: "inherit"
2664
2883
  },
2665
2884
  children: [
2666
- /* @__PURE__ */ jsx4("span", { children: languageLabel }),
2667
- /* @__PURE__ */ jsx4(Tooltip4, { title: copied ? "Copied!" : "Copy", arrow: true, children: /* @__PURE__ */ jsx4(
2885
+ /* @__PURE__ */ jsx5("span", { children: languageLabel }),
2886
+ /* @__PURE__ */ jsx5(Tooltip4, { title: copied ? "Copied!" : "Copy", arrow: true, children: /* @__PURE__ */ jsx5(
2668
2887
  IconButton4,
2669
2888
  {
2670
2889
  size: "small",
@@ -2674,14 +2893,14 @@ var MarkdownCodeBlock = ({
2674
2893
  "&:hover": { color: theme.palette.text.primary },
2675
2894
  padding: "4px"
2676
2895
  },
2677
- children: copied ? /* @__PURE__ */ jsx4(CheckIcon2, { fontSize: "small" }) : /* @__PURE__ */ jsx4(ContentCopyIcon2, { fontSize: "small" })
2896
+ children: copied ? /* @__PURE__ */ jsx5(CheckIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx5(ContentCopyIcon, { fontSize: "small" })
2678
2897
  }
2679
2898
  ) })
2680
2899
  ]
2681
2900
  }
2682
2901
  ),
2683
- /* @__PURE__ */ jsx4(
2684
- Box4,
2902
+ /* @__PURE__ */ jsx5(
2903
+ Box5,
2685
2904
  {
2686
2905
  sx: {
2687
2906
  overflowX: "auto",
@@ -2715,7 +2934,7 @@ var MarkdownCodeBlock = ({
2715
2934
  color: highlightColors.variable
2716
2935
  }
2717
2936
  },
2718
- children: /* @__PURE__ */ jsx4("pre", { className: `hljs language-${languageClass}`, ...props, children: /* @__PURE__ */ jsx4("code", { className: "hljs", children: highlightedNodes }) })
2937
+ children: /* @__PURE__ */ jsx5("pre", { className: `hljs language-${languageClass}`, ...props, children: /* @__PURE__ */ jsx5("code", { className: "hljs", children: highlightedNodes }) })
2719
2938
  }
2720
2939
  )
2721
2940
  ]
@@ -2734,7 +2953,7 @@ var AIResponseTextField = ({
2734
2953
  cancelled = false
2735
2954
  }) => {
2736
2955
  useEffect5(() => {
2737
- if (typeof response !== "string" && !React4.isValidElement(response)) {
2956
+ if (typeof response !== "string" && !React5.isValidElement(response)) {
2738
2957
  debugLogger.warn("\u26A0\uFE0F AIResponseTextField received a non-string, non-ReactElement response:", { response });
2739
2958
  }
2740
2959
  }, [response]);
@@ -2888,9 +3107,9 @@ ${sourcesMarkdownList.join("\n")}`;
2888
3107
  }, [response, sourcesMarkdownList]);
2889
3108
  const components = {
2890
3109
  mark({ children, node: _node, className, style, ...markProps }) {
2891
- const contentText = React4.Children.toArray(children).map((child) => typeof child === "string" ? child : "").join("").trim();
2892
- return /* @__PURE__ */ jsx4(
2893
- Box4,
3110
+ const contentText = React5.Children.toArray(children).map((child) => typeof child === "string" ? child : "").join("").trim();
3111
+ return /* @__PURE__ */ jsx5(
3112
+ Box5,
2894
3113
  {
2895
3114
  component: "span",
2896
3115
  className,
@@ -2915,7 +3134,7 @@ ${sourcesMarkdownList.join("\n")}`;
2915
3134
  );
2916
3135
  },
2917
3136
  code({ inline, className, children, node: _node, ...codeProps }) {
2918
- return /* @__PURE__ */ jsx4(
3137
+ return /* @__PURE__ */ jsx5(
2919
3138
  MarkdownCodeBlock,
2920
3139
  {
2921
3140
  inline,
@@ -2928,7 +3147,7 @@ ${sourcesMarkdownList.join("\n")}`;
2928
3147
  );
2929
3148
  },
2930
3149
  a({ href, children, node: _node, style, ...anchorProps }) {
2931
- return /* @__PURE__ */ jsx4(
3150
+ return /* @__PURE__ */ jsx5(
2932
3151
  "a",
2933
3152
  {
2934
3153
  href,
@@ -2951,8 +3170,8 @@ ${sourcesMarkdownList.join("\n")}`;
2951
3170
  if (typeof inner === "string" && inner.trim().toUpperCase() === "CODE") {
2952
3171
  return null;
2953
3172
  }
2954
- return /* @__PURE__ */ jsx4(
2955
- Box4,
3173
+ return /* @__PURE__ */ jsx5(
3174
+ Box5,
2956
3175
  {
2957
3176
  sx: {
2958
3177
  fontFamily: "monospace",
@@ -2969,10 +3188,10 @@ ${sourcesMarkdownList.join("\n")}`;
2969
3188
  }
2970
3189
  );
2971
3190
  }
2972
- return /* @__PURE__ */ jsx4("em", { className, style, ...emProps, children });
3191
+ return /* @__PURE__ */ jsx5("em", { className, style, ...emProps, children });
2973
3192
  },
2974
3193
  ol({ children, node: _node, style, ...orderedListProps }) {
2975
- const childArray = React4.Children.toArray(children);
3194
+ const childArray = React5.Children.toArray(children);
2976
3195
  const cleanedChildren = [];
2977
3196
  for (let i = 0; i < childArray.length; i++) {
2978
3197
  const item = childArray[i];
@@ -2981,7 +3200,7 @@ ${sourcesMarkdownList.join("\n")}`;
2981
3200
  }
2982
3201
  if (typeof item === "string" && item.trim().startsWith(":")) {
2983
3202
  cleanedChildren.push(
2984
- /* @__PURE__ */ jsx4(
3203
+ /* @__PURE__ */ jsx5(
2985
3204
  Typography3,
2986
3205
  {
2987
3206
  sx: {
@@ -3000,7 +3219,7 @@ ${sourcesMarkdownList.join("\n")}`;
3000
3219
  cleanedChildren.push(item);
3001
3220
  }
3002
3221
  }
3003
- return /* @__PURE__ */ jsx4(
3222
+ return /* @__PURE__ */ jsx5(
3004
3223
  "ol",
3005
3224
  {
3006
3225
  ...orderedListProps,
@@ -3015,7 +3234,7 @@ ${sourcesMarkdownList.join("\n")}`;
3015
3234
  );
3016
3235
  },
3017
3236
  ul({ children, node: _node, style, ...unorderedListProps }) {
3018
- return /* @__PURE__ */ jsx4(
3237
+ return /* @__PURE__ */ jsx5(
3019
3238
  "ul",
3020
3239
  {
3021
3240
  ...unorderedListProps,
@@ -3026,7 +3245,7 @@ ${sourcesMarkdownList.join("\n")}`;
3026
3245
  listStyle: "disc",
3027
3246
  ...style ?? {}
3028
3247
  },
3029
- children: React4.Children.toArray(children).filter((child) => {
3248
+ children: React5.Children.toArray(children).filter((child) => {
3030
3249
  if (typeof child === "string" && child.trim() === ":") return false;
3031
3250
  return true;
3032
3251
  })
@@ -3034,8 +3253,8 @@ ${sourcesMarkdownList.join("\n")}`;
3034
3253
  );
3035
3254
  },
3036
3255
  li({ children, node: _node, style, ...listItemProps }) {
3037
- const childArray = React4.Children.toArray(children);
3038
- if (childArray.length >= 2 && React4.isValidElement(childArray[0]) && childArray[0].type === "strong") {
3256
+ const childArray = React5.Children.toArray(children);
3257
+ if (childArray.length >= 2 && React5.isValidElement(childArray[0]) && childArray[0].type === "strong") {
3039
3258
  let labelText = "";
3040
3259
  const strongChild = childArray[0];
3041
3260
  if (typeof strongChild.props.children === "string") {
@@ -3049,8 +3268,8 @@ ${sourcesMarkdownList.join("\n")}`;
3049
3268
  if (typeof labelText === "string" && labelText.trim().endsWith(":")) {
3050
3269
  const rest = childArray.slice(1);
3051
3270
  const isAllInline = rest.every(
3052
- (el) => typeof el === "string" || React4.isValidElement(el) && // allow inline tags, but not <Box>
3053
- el.type !== Box4
3271
+ (el) => typeof el === "string" || React5.isValidElement(el) && // allow inline tags, but not <Box>
3272
+ el.type !== Box5
3054
3273
  );
3055
3274
  if (isAllInline) {
3056
3275
  const displayLabel = labelText.replace(/:\s*$/, "");
@@ -3079,16 +3298,16 @@ ${sourcesMarkdownList.join("\n")}`;
3079
3298
  }
3080
3299
  }
3081
3300
  }
3082
- if (childArray.length === 2 && React4.isValidElement(childArray[0]) && childArray[0].type === "strong" && React4.isValidElement(childArray[1]) && childArray[1].type === Box4) {
3301
+ if (childArray.length === 2 && React5.isValidElement(childArray[0]) && childArray[0].type === "strong" && React5.isValidElement(childArray[1]) && childArray[1].type === Box5) {
3083
3302
  const label = childArray[0].props.children;
3084
3303
  const desc = childArray[1].props.children;
3085
- return /* @__PURE__ */ jsx4(
3304
+ return /* @__PURE__ */ jsx5(
3086
3305
  "li",
3087
3306
  {
3088
3307
  style: { marginBottom: "0.5rem", lineHeight: 1.4, whiteSpace: "pre-wrap" },
3089
3308
  ...listItemProps,
3090
3309
  children: /* @__PURE__ */ jsxs4("span", { children: [
3091
- /* @__PURE__ */ jsx4("strong", { children: label }),
3310
+ /* @__PURE__ */ jsx5("strong", { children: label }),
3092
3311
  " ",
3093
3312
  desc
3094
3313
  ] })
@@ -3102,9 +3321,9 @@ ${sourcesMarkdownList.join("\n")}`;
3102
3321
  if (typeof item === "string" && item.trim() === ":") continue;
3103
3322
  if (i > 0 && typeof item === "string" && item.trim().startsWith(":")) {
3104
3323
  const prev = contentArray[i - 1];
3105
- if (React4.isValidElement(prev) && prev.type === "strong") {
3324
+ if (React5.isValidElement(prev) && prev.type === "strong") {
3106
3325
  const desc = item.replace(/^:\s*/, "");
3107
- const prevKey = React4.isValidElement(prev) && prev.key != null ? prev.key : `li-strong-${i}`;
3326
+ const prevKey = React5.isValidElement(prev) && prev.key != null ? prev.key : `li-strong-${i}`;
3108
3327
  filtered.pop();
3109
3328
  filtered.push(
3110
3329
  /* @__PURE__ */ jsxs4("span", { children: [
@@ -3118,7 +3337,7 @@ ${sourcesMarkdownList.join("\n")}`;
3118
3337
  }
3119
3338
  filtered.push(item);
3120
3339
  }
3121
- return /* @__PURE__ */ jsx4(
3340
+ return /* @__PURE__ */ jsx5(
3122
3341
  "li",
3123
3342
  {
3124
3343
  ...listItemProps,
@@ -3133,35 +3352,35 @@ ${sourcesMarkdownList.join("\n")}`;
3133
3352
  );
3134
3353
  },
3135
3354
  table({ children, node: _node, className, style, ...tableProps }) {
3136
- return /* @__PURE__ */ jsx4(
3355
+ return /* @__PURE__ */ jsx5(
3137
3356
  TableContainer,
3138
3357
  {
3139
3358
  component: Paper2,
3140
3359
  className,
3141
3360
  style,
3142
3361
  sx: { my: 2, bgcolor: theme.palette.background.paper },
3143
- children: /* @__PURE__ */ jsx4(Table, { size: "small", ...tableProps, children })
3362
+ children: /* @__PURE__ */ jsx5(Table, { size: "small", ...tableProps, children })
3144
3363
  }
3145
3364
  );
3146
3365
  },
3147
3366
  thead({ children, node: _node, ...tableHeadProps }) {
3148
- return /* @__PURE__ */ jsx4(TableHead, { ...tableHeadProps, children });
3367
+ return /* @__PURE__ */ jsx5(TableHead, { ...tableHeadProps, children });
3149
3368
  },
3150
3369
  tbody({ children, node: _node, ...tableBodyProps }) {
3151
- const rows = React4.Children.toArray(children).filter((row) => {
3152
- if (!React4.isValidElement(row)) return true;
3153
- const cells = React4.Children.toArray(row.props.children);
3370
+ const rows = React5.Children.toArray(children).filter((row) => {
3371
+ if (!React5.isValidElement(row)) return true;
3372
+ const cells = React5.Children.toArray(row.props.children);
3154
3373
  return !cells.every(
3155
- (cell) => React4.isValidElement(cell) && typeof cell.props.children === "string" && /^-+$/.test(cell.props.children.trim())
3374
+ (cell) => React5.isValidElement(cell) && typeof cell.props.children === "string" && /^-+$/.test(cell.props.children.trim())
3156
3375
  );
3157
3376
  });
3158
- return /* @__PURE__ */ jsx4(TableBody, { ...tableBodyProps, children: rows });
3377
+ return /* @__PURE__ */ jsx5(TableBody, { ...tableBodyProps, children: rows });
3159
3378
  },
3160
3379
  tr({ children, node: _node, ...tableRowProps }) {
3161
- return /* @__PURE__ */ jsx4(TableRow, { ...tableRowProps, children });
3380
+ return /* @__PURE__ */ jsx5(TableRow, { ...tableRowProps, children });
3162
3381
  },
3163
3382
  th({ children, node: _node, ...tableCellProps }) {
3164
- return /* @__PURE__ */ jsx4(
3383
+ return /* @__PURE__ */ jsx5(
3165
3384
  TableCell,
3166
3385
  {
3167
3386
  ...tableCellProps,
@@ -3178,7 +3397,7 @@ ${sourcesMarkdownList.join("\n")}`;
3178
3397
  );
3179
3398
  },
3180
3399
  td({ children, node: _node, ...tableCellProps }) {
3181
- return /* @__PURE__ */ jsx4(
3400
+ return /* @__PURE__ */ jsx5(
3182
3401
  TableCell,
3183
3402
  {
3184
3403
  ...tableCellProps,
@@ -3193,14 +3412,14 @@ ${sourcesMarkdownList.join("\n")}`;
3193
3412
  );
3194
3413
  },
3195
3414
  p({ children, node: _node, className, style, ...paragraphProps }) {
3196
- const flattened = React4.Children.toArray(children).flat();
3415
+ const flattened = React5.Children.toArray(children).flat();
3197
3416
  const hasBlock = flattened.some(
3198
3417
  (child) => typeof child === "object" && child !== null && "type" in child && typeof child.type === "string" && ["div", "Box", "section", "ul", "ol", "table"].includes(child.type)
3199
3418
  );
3200
3419
  if (hasBlock) {
3201
- return /* @__PURE__ */ jsx4(Fragment3, { children: flattened });
3420
+ return /* @__PURE__ */ jsx5(Fragment3, { children: flattened });
3202
3421
  }
3203
- return /* @__PURE__ */ jsx4(Box4, { component: "div", sx: { margin: "0.25rem 0" }, children: /* @__PURE__ */ jsx4(
3422
+ return /* @__PURE__ */ jsx5(Box5, { component: "div", sx: { margin: "0.25rem 0" }, children: /* @__PURE__ */ jsx5(
3204
3423
  Typography3,
3205
3424
  {
3206
3425
  component: "div",
@@ -3216,7 +3435,7 @@ ${sourcesMarkdownList.join("\n")}`;
3216
3435
  };
3217
3436
  return /* @__PURE__ */ jsxs4(Fragment3, { children: [
3218
3437
  /* @__PURE__ */ jsxs4(
3219
- Box4,
3438
+ Box5,
3220
3439
  {
3221
3440
  sx: {
3222
3441
  width: "100%",
@@ -3235,7 +3454,7 @@ ${sourcesMarkdownList.join("\n")}`;
3235
3454
  },
3236
3455
  children: [
3237
3456
  /* @__PURE__ */ jsxs4(
3238
- Box4,
3457
+ Box5,
3239
3458
  {
3240
3459
  sx: {
3241
3460
  display: "flex",
@@ -3250,7 +3469,7 @@ ${sourcesMarkdownList.join("\n")}`;
3250
3469
  },
3251
3470
  children: [
3252
3471
  /* @__PURE__ */ jsxs4(
3253
- Box4,
3472
+ Box5,
3254
3473
  {
3255
3474
  sx: {
3256
3475
  display: "flex",
@@ -3258,7 +3477,7 @@ ${sourcesMarkdownList.join("\n")}`;
3258
3477
  alignItems: "center"
3259
3478
  },
3260
3479
  children: [
3261
- /* @__PURE__ */ jsx4(
3480
+ /* @__PURE__ */ jsx5(
3262
3481
  Avatar,
3263
3482
  {
3264
3483
  alt: "You",
@@ -3277,7 +3496,7 @@ ${sourcesMarkdownList.join("\n")}`;
3277
3496
  }
3278
3497
  }
3279
3498
  ),
3280
- /* @__PURE__ */ jsx4(
3499
+ /* @__PURE__ */ jsx5(
3281
3500
  Typography3,
3282
3501
  {
3283
3502
  variant: "caption",
@@ -3288,9 +3507,9 @@ ${sourcesMarkdownList.join("\n")}`;
3288
3507
  ]
3289
3508
  }
3290
3509
  ),
3291
- /* @__PURE__ */ jsxs4(Box4, { sx: { flex: 1 }, children: [
3292
- /* @__PURE__ */ jsx4(
3293
- Box4,
3510
+ /* @__PURE__ */ jsxs4(Box5, { sx: { flex: 1 }, children: [
3511
+ /* @__PURE__ */ jsx5(
3512
+ Box5,
3294
3513
  {
3295
3514
  sx: {
3296
3515
  display: "inline-block",
@@ -3307,7 +3526,7 @@ ${sourcesMarkdownList.join("\n")}`;
3307
3526
  overflowWrap: "break-word",
3308
3527
  mt: { xs: 0.5, sm: 0.25 }
3309
3528
  },
3310
- children: /* @__PURE__ */ jsx4(
3529
+ children: /* @__PURE__ */ jsx5(
3311
3530
  Typography3,
3312
3531
  {
3313
3532
  sx: {
@@ -3321,7 +3540,7 @@ ${sourcesMarkdownList.join("\n")}`;
3321
3540
  )
3322
3541
  }
3323
3542
  ),
3324
- images && images.length > 0 && /* @__PURE__ */ jsx4(Box4, { sx: { display: "flex", gap: 1, mt: 1, flexWrap: "wrap" }, children: images.map((img, i) => /* @__PURE__ */ jsx4(
3543
+ images && images.length > 0 && /* @__PURE__ */ jsx5(Box5, { sx: { display: "flex", gap: 1, mt: 1, flexWrap: "wrap" }, children: images.map((img, i) => /* @__PURE__ */ jsx5(
3325
3544
  Avatar,
3326
3545
  {
3327
3546
  src: img,
@@ -3341,9 +3560,9 @@ ${sourcesMarkdownList.join("\n")}`;
3341
3560
  ]
3342
3561
  }
3343
3562
  ),
3344
- /* @__PURE__ */ jsx4(Box4, { sx: { borderBottom: `1px solid ${theme.palette.divider}`, my: 2 } }),
3563
+ /* @__PURE__ */ jsx5(Box5, { sx: { borderBottom: `1px solid ${theme.palette.divider}`, my: 2 } }),
3345
3564
  /* @__PURE__ */ jsxs4(
3346
- Box4,
3565
+ Box5,
3347
3566
  {
3348
3567
  sx: {
3349
3568
  display: "flex",
@@ -3357,7 +3576,7 @@ ${sourcesMarkdownList.join("\n")}`;
3357
3576
  },
3358
3577
  children: [
3359
3578
  typeof response === "string" && response.trim() !== "" && /* @__PURE__ */ jsxs4(
3360
- Box4,
3579
+ Box5,
3361
3580
  {
3362
3581
  sx: {
3363
3582
  display: "flex",
@@ -3367,7 +3586,7 @@ ${sourcesMarkdownList.join("\n")}`;
3367
3586
  position: "relative"
3368
3587
  },
3369
3588
  children: [
3370
- /* @__PURE__ */ jsx4(
3589
+ /* @__PURE__ */ jsx5(
3371
3590
  Avatar,
3372
3591
  {
3373
3592
  src: resolveAvatar(selectedModel),
@@ -3382,7 +3601,7 @@ ${sourcesMarkdownList.join("\n")}`;
3382
3601
  }
3383
3602
  }
3384
3603
  ),
3385
- /* @__PURE__ */ jsx4(Box4, { sx: { display: { xs: "none", sm: "block" } }, children: /* @__PURE__ */ jsxs4(
3604
+ /* @__PURE__ */ jsx5(Box5, { sx: { display: { xs: "none", sm: "block" } }, children: /* @__PURE__ */ jsxs4(
3386
3605
  Typography3,
3387
3606
  {
3388
3607
  variant: "caption",
@@ -3396,8 +3615,8 @@ ${sourcesMarkdownList.join("\n")}`;
3396
3615
  ]
3397
3616
  }
3398
3617
  ),
3399
- /* @__PURE__ */ jsx4(
3400
- Box4,
3618
+ /* @__PURE__ */ jsx5(
3619
+ Box5,
3401
3620
  {
3402
3621
  sx: {
3403
3622
  display: { xs: "flex", sm: "none" },
@@ -3419,9 +3638,9 @@ ${sourcesMarkdownList.join("\n")}`;
3419
3638
  )
3420
3639
  }
3421
3640
  ),
3422
- /* @__PURE__ */ jsxs4(Box4, { sx: { position: "relative", width: "100%" }, children: [
3423
- cancelled && /* @__PURE__ */ jsx4(
3424
- Box4,
3641
+ /* @__PURE__ */ jsxs4(Box5, { sx: { position: "relative", width: "100%" }, children: [
3642
+ cancelled && /* @__PURE__ */ jsx5(
3643
+ Box5,
3425
3644
  {
3426
3645
  sx: {
3427
3646
  position: "absolute",
@@ -3433,11 +3652,11 @@ ${sourcesMarkdownList.join("\n")}`;
3433
3652
  pl: 1,
3434
3653
  zIndex: 1
3435
3654
  },
3436
- children: /* @__PURE__ */ jsx4(Typography3, { variant: "caption", sx: { fontStyle: "italic", opacity: 0.85 }, children: "Cancelled by you" })
3655
+ children: /* @__PURE__ */ jsx5(Typography3, { variant: "caption", sx: { fontStyle: "italic", opacity: 0.85 }, children: "Cancelled by you" })
3437
3656
  }
3438
3657
  ),
3439
3658
  showMemoryUpdated && /* @__PURE__ */ jsxs4(
3440
- Box4,
3659
+ Box5,
3441
3660
  {
3442
3661
  sx: {
3443
3662
  position: "absolute",
@@ -3451,7 +3670,7 @@ ${sourcesMarkdownList.join("\n")}`;
3451
3670
  zIndex: 1
3452
3671
  },
3453
3672
  children: [
3454
- /* @__PURE__ */ jsx4(
3673
+ /* @__PURE__ */ jsx5(
3455
3674
  "img",
3456
3675
  {
3457
3676
  src: brainIcon,
@@ -3459,7 +3678,7 @@ ${sourcesMarkdownList.join("\n")}`;
3459
3678
  style: { width: 18, height: 18 }
3460
3679
  }
3461
3680
  ),
3462
- /* @__PURE__ */ jsx4(
3681
+ /* @__PURE__ */ jsx5(
3463
3682
  Typography3,
3464
3683
  {
3465
3684
  variant: "caption",
@@ -3470,8 +3689,8 @@ ${sourcesMarkdownList.join("\n")}`;
3470
3689
  ]
3471
3690
  }
3472
3691
  ),
3473
- /* @__PURE__ */ jsx4(
3474
- Box4,
3692
+ /* @__PURE__ */ jsx5(
3693
+ Box5,
3475
3694
  {
3476
3695
  sx: {
3477
3696
  bgcolor: chatResponse.aiBubble ?? "#2f2f2f",
@@ -3487,7 +3706,7 @@ ${sourcesMarkdownList.join("\n")}`;
3487
3706
  alignSelf: "flex-start",
3488
3707
  mt: { xs: 0.5, sm: 0.25 }
3489
3708
  },
3490
- children: /* @__PURE__ */ jsx4(Box4, { sx: { width: "100%", maxWidth: "100%" }, children: typeof response === "string" ? /* @__PURE__ */ jsx4(
3709
+ children: /* @__PURE__ */ jsx5(Box5, { sx: { width: "100%", maxWidth: "100%" }, children: typeof response === "string" ? /* @__PURE__ */ jsx5(
3491
3710
  ReactMarkdown,
3492
3711
  {
3493
3712
  remarkPlugins: [remarkGfm],
@@ -3495,21 +3714,21 @@ ${sourcesMarkdownList.join("\n")}`;
3495
3714
  components,
3496
3715
  children: enrichedMarkdown ?? sanitizeMarkdown(response)
3497
3716
  }
3498
- ) : React4.isValidElement(response) ? response : /* @__PURE__ */ jsx4(Typography3, { color: "error", children: "\u26A0\uFE0F Invalid AI response" }) })
3717
+ ) : React5.isValidElement(response) ? response : /* @__PURE__ */ jsx5(Typography3, { color: "error", children: "\u26A0\uFE0F Invalid AI response" }) })
3499
3718
  }
3500
3719
  )
3501
3720
  ] })
3502
3721
  ]
3503
3722
  }
3504
3723
  ),
3505
- !!(responseText || typeof response === "string" && response) && /* @__PURE__ */ jsx4(ai_response_action_bar_default, { text: responseText || response }),
3506
- displaySourceFiles && displaySourceFiles.length > 0 && /* @__PURE__ */ jsx4(Box4, { sx: { mt: 1.5, display: "flex", gap: 2, flexWrap: "wrap", justifyContent: "flex-start" }, children: displaySourceFiles.map((doc, idx) => {
3724
+ !!(responseText || typeof response === "string" && response) && /* @__PURE__ */ jsx5(ai_response_action_bar_default, { text: responseText || response }),
3725
+ 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) => {
3507
3726
  debugLogger.debug("Rendering DocumentCard in AI response", {
3508
3727
  index: idx,
3509
3728
  id: doc.id,
3510
3729
  name: doc.name
3511
3730
  });
3512
- return /* @__PURE__ */ jsx4(
3731
+ return /* @__PURE__ */ jsx5(
3513
3732
  DocumentCard_default,
3514
3733
  {
3515
3734
  doc,
@@ -3524,8 +3743,8 @@ ${sourcesMarkdownList.join("\n")}`;
3524
3743
  ]
3525
3744
  }
3526
3745
  ),
3527
- /* @__PURE__ */ jsx4(Modal, { open: !!openImage, onClose: () => setOpenImage(null), children: /* @__PURE__ */ jsxs4(
3528
- Box4,
3746
+ /* @__PURE__ */ jsx5(Modal, { open: !!openImage, onClose: () => setOpenImage(null), children: /* @__PURE__ */ jsxs4(
3747
+ Box5,
3529
3748
  {
3530
3749
  sx: {
3531
3750
  display: "flex",
@@ -3537,7 +3756,7 @@ ${sourcesMarkdownList.join("\n")}`;
3537
3756
  position: "relative"
3538
3757
  },
3539
3758
  children: [
3540
- /* @__PURE__ */ jsx4(
3759
+ /* @__PURE__ */ jsx5(
3541
3760
  IconButton4,
3542
3761
  {
3543
3762
  onClick: () => setOpenImage(null),
@@ -3551,11 +3770,11 @@ ${sourcesMarkdownList.join("\n")}`;
3551
3770
  bgcolor: "rgba(255,255,255,0.2)"
3552
3771
  }
3553
3772
  },
3554
- children: /* @__PURE__ */ jsx4(CloseIcon2, {})
3773
+ children: /* @__PURE__ */ jsx5(CloseIcon, {})
3555
3774
  }
3556
3775
  ),
3557
- /* @__PURE__ */ jsx4(
3558
- Box4,
3776
+ /* @__PURE__ */ jsx5(
3777
+ Box5,
3559
3778
  {
3560
3779
  component: "img",
3561
3780
  src: openImage || "",
@@ -3573,7 +3792,7 @@ ${sourcesMarkdownList.join("\n")}`;
3573
3792
  ]
3574
3793
  }
3575
3794
  ) }),
3576
- /* @__PURE__ */ jsx4(
3795
+ /* @__PURE__ */ jsx5(
3577
3796
  knowledge_file_modal_default,
3578
3797
  {
3579
3798
  open: !!openDoc,
@@ -3608,7 +3827,7 @@ import {
3608
3827
  InputLabel,
3609
3828
  Select,
3610
3829
  MenuItem,
3611
- Box as Box5,
3830
+ Box as Box6,
3612
3831
  Typography as Typography4,
3613
3832
  IconButton as IconButton5,
3614
3833
  Chip as Chip2,
@@ -3622,22 +3841,9 @@ import {
3622
3841
  useMediaQuery as useMediaQuery2,
3623
3842
  Snackbar
3624
3843
  } from "@mui/material";
3625
- import {
3626
- Close as CloseIcon3,
3627
- BugReport as BugReportIcon,
3628
- Lightbulb as LightbulbIcon,
3629
- TrendingUp as TrendingUpIcon,
3630
- Help as HelpIcon,
3631
- Message as MessageIcon,
3632
- PhotoCamera as PhotoCameraIcon,
3633
- AttachFile as AttachFileIcon,
3634
- Delete as DeleteIcon2,
3635
- Mail as MailIcon,
3636
- PsychologyAltRounded,
3637
- AttachFileRounded
3638
- } from "@mui/icons-material";
3844
+ import { X as CloseIcon2, Bug as BugReportIcon, Lightbulb as LightbulbIcon, TrendingUp as TrendingUpIcon, HelpCircle as HelpIcon, MessageSquare as MessageIcon, Camera as PhotoCameraIcon, Paperclip as AttachFileIcon, Trash2 as DeleteIcon2, Mail as MailIcon, Brain as PsychologyAltRounded, Paperclip as AttachFileRounded } from "lucide-react";
3639
3845
  import { useTheme as useTheme4, alpha as alpha2 } from "@mui/material/styles";
3640
- import { Fragment as Fragment4, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
3846
+ import { Fragment as Fragment4, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
3641
3847
  var feedbackCategories = {
3642
3848
  bug: {
3643
3849
  label: "Bug Report",
@@ -3939,7 +4145,7 @@ var FeedbackModal = ({
3939
4145
  const IconComponent = iconMap[selectedCategory?.icon] || MessageIcon;
3940
4146
  const isValid = !!formData.title?.trim() && !!formData.description?.trim();
3941
4147
  return /* @__PURE__ */ jsxs5(Fragment4, { children: [
3942
- /* @__PURE__ */ jsx5(GlobalStyles, { styles: {
4148
+ /* @__PURE__ */ jsx6(GlobalStyles, { styles: {
3943
4149
  "::-webkit-scrollbar": {
3944
4150
  width: "8px"
3945
4151
  },
@@ -4009,8 +4215,8 @@ var FeedbackModal = ({
4009
4215
  touchAction: "pan-y"
4010
4216
  },
4011
4217
  children: [
4012
- isMobile && /* @__PURE__ */ jsx5(
4013
- Box5,
4218
+ isMobile && /* @__PURE__ */ jsx6(
4219
+ Box6,
4014
4220
  {
4015
4221
  sx: {
4016
4222
  width: 56,
@@ -4023,7 +4229,7 @@ var FeedbackModal = ({
4023
4229
  }
4024
4230
  ),
4025
4231
  /* @__PURE__ */ jsxs5(
4026
- Box5,
4232
+ Box6,
4027
4233
  {
4028
4234
  sx: {
4029
4235
  display: "flex",
@@ -4034,10 +4240,10 @@ var FeedbackModal = ({
4034
4240
  },
4035
4241
  children: [
4036
4242
  /* @__PURE__ */ jsxs5(Stack, { spacing: 0.5, sx: { minWidth: 0 }, children: [
4037
- /* @__PURE__ */ jsx5(Typography4, { variant: "h6", fontWeight: "bold", noWrap: true, children: "Send Feedback" }),
4038
- /* @__PURE__ */ jsx5(Typography4, { variant: "body2", color: "text.secondary", noWrap: true, children: "Help us improve Bandit AI" })
4243
+ /* @__PURE__ */ jsx6(Typography4, { variant: "h6", fontWeight: "bold", noWrap: true, children: "Send Feedback" }),
4244
+ /* @__PURE__ */ jsx6(Typography4, { variant: "body2", color: "text.secondary", noWrap: true, children: "Help us improve Bandit AI" })
4039
4245
  ] }),
4040
- /* @__PURE__ */ jsx5(IconButton5, { onClick: handleClose, size: "small", children: /* @__PURE__ */ jsx5(CloseIcon3, {}) })
4246
+ /* @__PURE__ */ jsx6(IconButton5, { onClick: handleClose, size: "small", children: /* @__PURE__ */ jsx6(CloseIcon2, {}) })
4041
4247
  ]
4042
4248
  }
4043
4249
  )
@@ -4069,12 +4275,12 @@ var FeedbackModal = ({
4069
4275
  borderRadius: 2
4070
4276
  },
4071
4277
  children: [
4072
- /* @__PURE__ */ jsx5(Typography4, { variant: "body2", sx: { fontWeight: 600 }, children: "Feedback submitted successfully!" }),
4073
- /* @__PURE__ */ jsx5(Typography4, { variant: "caption", display: "block", sx: { mt: 0.5, opacity: 0.9 }, children: formData.images && formData.images.length > 0 ? "Your email client should open with the feedback details. The image has been copied to your clipboard - paste it in the email!" : formData.attachments && formData.attachments.length > 0 ? "Your email client should open with the feedback details. Please manually attach your files to the email." : "Your email client should open with the feedback details." })
4278
+ /* @__PURE__ */ jsx6(Typography4, { variant: "body2", sx: { fontWeight: 600 }, children: "Feedback submitted successfully!" }),
4279
+ /* @__PURE__ */ jsx6(Typography4, { variant: "caption", display: "block", sx: { mt: 0.5, opacity: 0.9 }, children: formData.images && formData.images.length > 0 ? "Your email client should open with the feedback details. The image has been copied to your clipboard - paste it in the email!" : formData.attachments && formData.attachments.length > 0 ? "Your email client should open with the feedback details. Please manually attach your files to the email." : "Your email client should open with the feedback details." })
4074
4280
  ]
4075
4281
  }
4076
4282
  ),
4077
- errorMessage && /* @__PURE__ */ jsx5(
4283
+ errorMessage && /* @__PURE__ */ jsx6(
4078
4284
  Alert3,
4079
4285
  {
4080
4286
  severity: "error",
@@ -4091,7 +4297,7 @@ var FeedbackModal = ({
4091
4297
  }
4092
4298
  ),
4093
4299
  /* @__PURE__ */ jsxs5(
4094
- Box5,
4300
+ Box6,
4095
4301
  {
4096
4302
  sx: {
4097
4303
  display: "grid",
@@ -4102,7 +4308,7 @@ var FeedbackModal = ({
4102
4308
  },
4103
4309
  children: [
4104
4310
  /* @__PURE__ */ jsxs5(
4105
- Box5,
4311
+ Box6,
4106
4312
  {
4107
4313
  sx: {
4108
4314
  display: "grid",
@@ -4113,7 +4319,7 @@ var FeedbackModal = ({
4113
4319
  },
4114
4320
  children: [
4115
4321
  /* @__PURE__ */ jsxs5(
4116
- Box5,
4322
+ Box6,
4117
4323
  {
4118
4324
  sx: {
4119
4325
  gridColumn: "1 / -1",
@@ -4125,8 +4331,8 @@ var FeedbackModal = ({
4125
4331
  alignSelf: "end"
4126
4332
  },
4127
4333
  children: [
4128
- /* @__PURE__ */ jsx5(MessageIcon, { sx: { color: theme.palette.text.primary } }),
4129
- /* @__PURE__ */ jsx5(
4334
+ /* @__PURE__ */ jsx6(MessageIcon, { size: 20, color: theme.palette.text.primary }),
4335
+ /* @__PURE__ */ jsx6(
4130
4336
  Typography4,
4131
4337
  {
4132
4338
  variant: "h6",
@@ -4141,7 +4347,7 @@ var FeedbackModal = ({
4141
4347
  ]
4142
4348
  }
4143
4349
  ),
4144
- /* @__PURE__ */ jsx5(
4350
+ /* @__PURE__ */ jsx6(
4145
4351
  TextField,
4146
4352
  {
4147
4353
  fullWidth: true,
@@ -4197,8 +4403,8 @@ var FeedbackModal = ({
4197
4403
  }
4198
4404
  },
4199
4405
  children: [
4200
- /* @__PURE__ */ jsx5(InputLabel, { shrink: true, id: "category-label", children: "Category" }),
4201
- /* @__PURE__ */ jsx5(
4406
+ /* @__PURE__ */ jsx6(InputLabel, { shrink: true, id: "category-label", children: "Category" }),
4407
+ /* @__PURE__ */ jsx6(
4202
4408
  Select,
4203
4409
  {
4204
4410
  labelId: "category-label",
@@ -4208,11 +4414,11 @@ var FeedbackModal = ({
4208
4414
  onChange: handleInputChange("category"),
4209
4415
  children: Object.entries(feedbackCategories).map(([key, category]) => {
4210
4416
  const Icon = iconMap[category.icon];
4211
- return /* @__PURE__ */ jsx5(MenuItem, { value: key, children: /* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
4212
- /* @__PURE__ */ jsx5(Icon, { sx: { color: category.color, fontSize: 20 } }),
4213
- /* @__PURE__ */ jsxs5(Box5, { children: [
4214
- /* @__PURE__ */ jsx5(Typography4, { variant: "body2", sx: { fontWeight: 500 }, children: category.label }),
4215
- /* @__PURE__ */ jsx5(Typography4, { variant: "caption", color: "text.secondary", children: category.description })
4417
+ return /* @__PURE__ */ jsx6(MenuItem, { value: key, children: /* @__PURE__ */ jsxs5(Box6, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
4418
+ /* @__PURE__ */ jsx6(Icon, { size: 20, color: category.color }),
4419
+ /* @__PURE__ */ jsxs5(Box6, { children: [
4420
+ /* @__PURE__ */ jsx6(Typography4, { variant: "body2", sx: { fontWeight: 500 }, children: category.label }),
4421
+ /* @__PURE__ */ jsx6(Typography4, { variant: "caption", color: "text.secondary", children: category.description })
4216
4422
  ] })
4217
4423
  ] }) }, key);
4218
4424
  })
@@ -4245,8 +4451,8 @@ var FeedbackModal = ({
4245
4451
  }
4246
4452
  },
4247
4453
  children: [
4248
- /* @__PURE__ */ jsx5(InputLabel, { shrink: true, id: "priority-label", children: "Priority" }),
4249
- /* @__PURE__ */ jsx5(
4454
+ /* @__PURE__ */ jsx6(InputLabel, { shrink: true, id: "priority-label", children: "Priority" }),
4455
+ /* @__PURE__ */ jsx6(
4250
4456
  Select,
4251
4457
  {
4252
4458
  labelId: "priority-label",
@@ -4254,9 +4460,9 @@ var FeedbackModal = ({
4254
4460
  value: formData.priority,
4255
4461
  label: "Priority",
4256
4462
  onChange: handleInputChange("priority"),
4257
- children: Object.entries(feedbackPriorities).map(([key, priority]) => /* @__PURE__ */ jsx5(MenuItem, { value: key, children: /* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
4258
- /* @__PURE__ */ jsx5(
4259
- Box5,
4463
+ children: Object.entries(feedbackPriorities).map(([key, priority]) => /* @__PURE__ */ jsx6(MenuItem, { value: key, children: /* @__PURE__ */ jsxs5(Box6, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
4464
+ /* @__PURE__ */ jsx6(
4465
+ Box6,
4260
4466
  {
4261
4467
  sx: {
4262
4468
  width: 12,
@@ -4267,9 +4473,9 @@ var FeedbackModal = ({
4267
4473
  }
4268
4474
  }
4269
4475
  ),
4270
- /* @__PURE__ */ jsxs5(Box5, { children: [
4271
- /* @__PURE__ */ jsx5(Typography4, { variant: "body2", sx: { fontWeight: 500 }, children: priority.label }),
4272
- /* @__PURE__ */ jsx5(Typography4, { variant: "caption", color: "text.secondary", children: priority.description })
4476
+ /* @__PURE__ */ jsxs5(Box6, { children: [
4477
+ /* @__PURE__ */ jsx6(Typography4, { variant: "body2", sx: { fontWeight: 500 }, children: priority.label }),
4478
+ /* @__PURE__ */ jsx6(Typography4, { variant: "caption", color: "text.secondary", children: priority.description })
4273
4479
  ] })
4274
4480
  ] }) }, key))
4275
4481
  }
@@ -4277,7 +4483,7 @@ var FeedbackModal = ({
4277
4483
  ]
4278
4484
  }
4279
4485
  ),
4280
- /* @__PURE__ */ jsx5(
4486
+ /* @__PURE__ */ jsx6(
4281
4487
  TextField,
4282
4488
  {
4283
4489
  fullWidth: true,
@@ -4317,7 +4523,7 @@ var FeedbackModal = ({
4317
4523
  }
4318
4524
  ),
4319
4525
  /* @__PURE__ */ jsxs5(
4320
- Box5,
4526
+ Box6,
4321
4527
  {
4322
4528
  className: "feedback-section-row",
4323
4529
  sx: {
@@ -4331,7 +4537,7 @@ var FeedbackModal = ({
4331
4537
  },
4332
4538
  children: [
4333
4539
  /* @__PURE__ */ jsxs5(
4334
- Box5,
4540
+ Box6,
4335
4541
  {
4336
4542
  className: "impact-assessment-card impact-section",
4337
4543
  sx: {
@@ -4343,11 +4549,11 @@ var FeedbackModal = ({
4343
4549
  p: 0
4344
4550
  },
4345
4551
  children: [
4346
- /* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", alignItems: "center", gap: "8px", mb: 3 }, children: [
4347
- /* @__PURE__ */ jsx5(PsychologyAltRounded, { sx: { color: theme.palette.warning.main } }),
4348
- /* @__PURE__ */ jsx5(Typography4, { variant: "h6", sx: { fontWeight: 600, color: theme.palette.text.primary }, children: "Impact Assessment" })
4552
+ /* @__PURE__ */ jsxs5(Box6, { sx: { display: "flex", alignItems: "center", gap: "8px", mb: 3 }, children: [
4553
+ /* @__PURE__ */ jsx6(PsychologyAltRounded, { size: 20, color: theme.palette.warning.main }),
4554
+ /* @__PURE__ */ jsx6(Typography4, { variant: "h6", sx: { fontWeight: 600, color: theme.palette.text.primary }, children: "Impact Assessment" })
4349
4555
  ] }),
4350
- /* @__PURE__ */ jsx5("div", { style: { height: "100%", display: "flex", flexDirection: "column", justifyContent: "space-between" }, children: /* @__PURE__ */ jsx5(
4556
+ /* @__PURE__ */ jsx6("div", { style: { height: "100%", display: "flex", flexDirection: "column", justifyContent: "space-between" }, children: /* @__PURE__ */ jsx6(
4351
4557
  Paper3,
4352
4558
  {
4353
4559
  variant: "outlined",
@@ -4370,8 +4576,8 @@ var FeedbackModal = ({
4370
4576
  },
4371
4577
  children: /* @__PURE__ */ jsxs5(Stack, { spacing: 3, children: [
4372
4578
  /* @__PURE__ */ jsxs5(Typography4, { variant: "subtitle1", sx: { fontWeight: 600, display: "flex", alignItems: "center", gap: 2 }, children: [
4373
- /* @__PURE__ */ jsx5(
4374
- Box5,
4579
+ /* @__PURE__ */ jsx6(
4580
+ Box6,
4375
4581
  {
4376
4582
  sx: {
4377
4583
  width: 28,
@@ -4383,14 +4589,14 @@ var FeedbackModal = ({
4383
4589
  justifyContent: "center",
4384
4590
  fontSize: "14px"
4385
4591
  },
4386
- children: /* @__PURE__ */ jsx5(PsychologyAltRounded, { sx: { color: theme.palette.warning.main, fontSize: 22 } })
4592
+ children: /* @__PURE__ */ jsx6(PsychologyAltRounded, { size: 22, color: theme.palette.warning.main })
4387
4593
  }
4388
4594
  ),
4389
4595
  "How annoying is this issue? (",
4390
4596
  formData.annoyanceLevel,
4391
4597
  "/5)"
4392
4598
  ] }),
4393
- /* @__PURE__ */ jsx5(Box5, { sx: { px: 2, py: 1 }, children: /* @__PURE__ */ jsx5(
4599
+ /* @__PURE__ */ jsx6(Box6, { sx: { px: 2, py: 1 }, children: /* @__PURE__ */ jsx6(
4394
4600
  Slider,
4395
4601
  {
4396
4602
  value: formData.annoyanceLevel,
@@ -4451,7 +4657,7 @@ var FeedbackModal = ({
4451
4657
  }
4452
4658
  ),
4453
4659
  /* @__PURE__ */ jsxs5(
4454
- Box5,
4660
+ Box6,
4455
4661
  {
4456
4662
  className: "attachments-upload-card attachments-section",
4457
4663
  sx: {
@@ -4463,12 +4669,12 @@ var FeedbackModal = ({
4463
4669
  p: 0
4464
4670
  },
4465
4671
  children: [
4466
- /* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", alignItems: "center", gap: "8px", mb: 3 }, children: [
4467
- /* @__PURE__ */ jsx5(AttachFileRounded, { sx: { color: theme.palette.primary.main } }),
4468
- /* @__PURE__ */ jsx5(Typography4, { variant: "h6", sx: { fontWeight: 600, color: theme.palette.text.primary }, children: "Attachments" })
4672
+ /* @__PURE__ */ jsxs5(Box6, { sx: { display: "flex", alignItems: "center", gap: "8px", mb: 3 }, children: [
4673
+ /* @__PURE__ */ jsx6(AttachFileRounded, { size: 20, color: theme.palette.primary.main }),
4674
+ /* @__PURE__ */ jsx6(Typography4, { variant: "h6", sx: { fontWeight: 600, color: theme.palette.text.primary }, children: "Attachments" })
4469
4675
  ] }),
4470
- /* @__PURE__ */ jsx5("div", { style: { height: "100%", display: "flex", flexDirection: "column", justifyContent: "space-between" }, children: /* @__PURE__ */ jsxs5(
4471
- Box5,
4676
+ /* @__PURE__ */ jsx6("div", { style: { height: "100%", display: "flex", flexDirection: "column", justifyContent: "space-between" }, children: /* @__PURE__ */ jsxs5(
4677
+ Box6,
4472
4678
  {
4473
4679
  sx: {
4474
4680
  height: "100%",
@@ -4483,7 +4689,7 @@ var FeedbackModal = ({
4483
4689
  },
4484
4690
  onClick: () => fileInputRef.current?.click(),
4485
4691
  children: [
4486
- /* @__PURE__ */ jsx5(
4692
+ /* @__PURE__ */ jsx6(
4487
4693
  "input",
4488
4694
  {
4489
4695
  ref: fileInputRef,
@@ -4494,7 +4700,7 @@ var FeedbackModal = ({
4494
4700
  }
4495
4701
  ),
4496
4702
  /* @__PURE__ */ jsxs5(
4497
- Box5,
4703
+ Box6,
4498
4704
  {
4499
4705
  sx: {
4500
4706
  flex: 1,
@@ -4512,7 +4718,7 @@ var FeedbackModal = ({
4512
4718
  boxShadow: "none"
4513
4719
  },
4514
4720
  children: [
4515
- /* @__PURE__ */ jsx5(
4721
+ /* @__PURE__ */ jsx6(
4516
4722
  Avatar2,
4517
4723
  {
4518
4724
  sx: {
@@ -4523,13 +4729,13 @@ var FeedbackModal = ({
4523
4729
  boxShadow: `0 4px 16px ${theme.palette.primary.main}20`,
4524
4730
  transition: "all 0.3s ease"
4525
4731
  },
4526
- children: /* @__PURE__ */ jsx5(AttachFileIcon, { sx: { fontSize: 28 } })
4732
+ children: /* @__PURE__ */ jsx6(AttachFileIcon, { size: 28 })
4527
4733
  }
4528
4734
  ),
4529
- /* @__PURE__ */ jsxs5(Box5, { sx: { textAlign: "center" }, children: [
4530
- /* @__PURE__ */ jsx5(Typography4, { variant: "h6", sx: { fontWeight: 600, mb: 1, fontSize: "1.1rem" }, children: "Attach One Image" }),
4531
- /* @__PURE__ */ jsx5(Typography4, { variant: "body2", color: "text.secondary", sx: { mb: 1, fontSize: "0.95rem" }, children: "Click here to upload a single image" }),
4532
- /* @__PURE__ */ jsx5(Typography4, { variant: "caption", color: "text.secondary", sx: {
4735
+ /* @__PURE__ */ jsxs5(Box6, { sx: { textAlign: "center" }, children: [
4736
+ /* @__PURE__ */ jsx6(Typography4, { variant: "h6", sx: { fontWeight: 600, mb: 1, fontSize: "1.1rem" }, children: "Attach One Image" }),
4737
+ /* @__PURE__ */ jsx6(Typography4, { variant: "body2", color: "text.secondary", sx: { mb: 1, fontSize: "0.95rem" }, children: "Click here to upload a single image" }),
4738
+ /* @__PURE__ */ jsx6(Typography4, { variant: "caption", color: "text.secondary", sx: {
4533
4739
  opacity: 0.8,
4534
4740
  fontSize: "0.85rem",
4535
4741
  background: theme.palette.mode === "dark" ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)",
@@ -4541,7 +4747,7 @@ var FeedbackModal = ({
4541
4747
  ]
4542
4748
  }
4543
4749
  ),
4544
- (formData.images && formData.images.length > 0 || formData.attachments && formData.attachments.length > 0) && /* @__PURE__ */ jsx5(
4750
+ (formData.images && formData.images.length > 0 || formData.attachments && formData.attachments.length > 0) && /* @__PURE__ */ jsx6(
4545
4751
  Alert3,
4546
4752
  {
4547
4753
  severity: "info",
@@ -4560,20 +4766,20 @@ var FeedbackModal = ({
4560
4766
  fontSize: "0.75rem"
4561
4767
  }
4562
4768
  },
4563
- children: /* @__PURE__ */ jsx5(Typography4, { variant: "caption", sx: { fontWeight: 600, display: "block" }, children: formData.images && formData.images.length > 0 ? "\u{1F4CE} Image will be copied to clipboard - paste in email!" : "\u{1F4CE} Files ready for email attachment" })
4769
+ children: /* @__PURE__ */ jsx6(Typography4, { variant: "caption", sx: { fontWeight: 600, display: "block" }, children: formData.images && formData.images.length > 0 ? "\u{1F4CE} Image will be copied to clipboard - paste in email!" : "\u{1F4CE} Files ready for email attachment" })
4564
4770
  }
4565
4771
  )
4566
4772
  ]
4567
4773
  }
4568
4774
  ) }),
4569
- formData.images && formData.images.length > 0 && /* @__PURE__ */ jsxs5(Box5, { sx: { mt: 2 }, children: [
4570
- /* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", alignItems: "center", gap: 1, mb: 1.5 }, children: [
4571
- /* @__PURE__ */ jsx5(PhotoCameraIcon, { color: "primary", fontSize: "small" }),
4572
- /* @__PURE__ */ jsx5(Typography4, { variant: "subtitle2", sx: { fontWeight: 600 }, children: "Attached Image" })
4775
+ formData.images && formData.images.length > 0 && /* @__PURE__ */ jsxs5(Box6, { sx: { mt: 2 }, children: [
4776
+ /* @__PURE__ */ jsxs5(Box6, { sx: { display: "flex", alignItems: "center", gap: 1, mb: 1.5 }, children: [
4777
+ /* @__PURE__ */ jsx6(PhotoCameraIcon, { size: 16 }),
4778
+ /* @__PURE__ */ jsx6(Typography4, { variant: "subtitle2", sx: { fontWeight: 600 }, children: "Attached Image" })
4573
4779
  ] }),
4574
- /* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", gap: 1.5 }, children: [
4780
+ /* @__PURE__ */ jsxs5(Box6, { sx: { display: "flex", gap: 1.5 }, children: [
4575
4781
  /* @__PURE__ */ jsxs5(
4576
- Box5,
4782
+ Box6,
4577
4783
  {
4578
4784
  sx: {
4579
4785
  position: "relative",
@@ -4587,7 +4793,7 @@ var FeedbackModal = ({
4587
4793
  }
4588
4794
  },
4589
4795
  children: [
4590
- /* @__PURE__ */ jsx5(
4796
+ /* @__PURE__ */ jsx6(
4591
4797
  "img",
4592
4798
  {
4593
4799
  src: formData.images[0],
@@ -4600,7 +4806,7 @@ var FeedbackModal = ({
4600
4806
  }
4601
4807
  }
4602
4808
  ),
4603
- /* @__PURE__ */ jsx5(
4809
+ /* @__PURE__ */ jsx6(
4604
4810
  IconButton5,
4605
4811
  {
4606
4812
  size: "small",
@@ -4618,20 +4824,20 @@ var FeedbackModal = ({
4618
4824
  transform: "scale(1.1)"
4619
4825
  }
4620
4826
  },
4621
- children: /* @__PURE__ */ jsx5(DeleteIcon2, { sx: { fontSize: 14 } })
4827
+ children: /* @__PURE__ */ jsx6(DeleteIcon2, { size: 14 })
4622
4828
  }
4623
4829
  )
4624
4830
  ]
4625
4831
  }
4626
4832
  ),
4627
- /* @__PURE__ */ jsxs5(Box5, { sx: { flex: 1, display: "flex", flexDirection: "column", justifyContent: "center" }, children: [
4628
- /* @__PURE__ */ jsx5(
4833
+ /* @__PURE__ */ jsxs5(Box6, { sx: { flex: 1, display: "flex", flexDirection: "column", justifyContent: "center" }, children: [
4834
+ /* @__PURE__ */ jsx6(
4629
4835
  Button3,
4630
4836
  {
4631
4837
  variant: "outlined",
4632
4838
  size: "small",
4633
4839
  onClick: copyImageToClipboard,
4634
- startIcon: /* @__PURE__ */ jsx5(AttachFileIcon, {}),
4840
+ startIcon: /* @__PURE__ */ jsx6(AttachFileIcon, {}),
4635
4841
  sx: {
4636
4842
  mb: 1,
4637
4843
  borderColor: theme.palette.primary.main + "50",
@@ -4644,22 +4850,22 @@ var FeedbackModal = ({
4644
4850
  children: "Copy to Clipboard"
4645
4851
  }
4646
4852
  ),
4647
- /* @__PURE__ */ jsx5(Typography4, { variant: "caption", color: "text.secondary", sx: { textAlign: "center" }, children: "Image will be copied when you submit" })
4853
+ /* @__PURE__ */ jsx6(Typography4, { variant: "caption", color: "text.secondary", sx: { textAlign: "center" }, children: "Image will be copied when you submit" })
4648
4854
  ] })
4649
4855
  ] })
4650
4856
  ] }),
4651
- formData.attachments && formData.attachments.length > 0 && /* @__PURE__ */ jsxs5(Box5, { sx: { mt: 2 }, children: [
4857
+ formData.attachments && formData.attachments.length > 0 && /* @__PURE__ */ jsxs5(Box6, { sx: { mt: 2 }, children: [
4652
4858
  /* @__PURE__ */ jsxs5(Typography4, { variant: "subtitle2", gutterBottom: true, children: [
4653
4859
  "Attached Files (",
4654
4860
  formData.attachments.length,
4655
4861
  ")"
4656
4862
  ] }),
4657
- /* @__PURE__ */ jsx5(Box5, { sx: { display: "flex", flexWrap: "wrap", gap: 1 }, children: formData.attachments.map((attachment, index) => /* @__PURE__ */ jsx5(
4863
+ /* @__PURE__ */ jsx6(Box6, { sx: { display: "flex", flexWrap: "wrap", gap: 1 }, children: formData.attachments.map((attachment, index) => /* @__PURE__ */ jsx6(
4658
4864
  Chip2,
4659
4865
  {
4660
4866
  label: attachment.name,
4661
4867
  onDelete: () => removeAttachment(index),
4662
- deleteIcon: /* @__PURE__ */ jsx5(DeleteIcon2, {}),
4868
+ deleteIcon: /* @__PURE__ */ jsx6(DeleteIcon2, {}),
4663
4869
  variant: "outlined",
4664
4870
  sx: { maxWidth: 200 }
4665
4871
  },
@@ -4678,7 +4884,7 @@ var FeedbackModal = ({
4678
4884
  ]
4679
4885
  }
4680
4886
  ),
4681
- /* @__PURE__ */ jsx5(
4887
+ /* @__PURE__ */ jsx6(
4682
4888
  DialogActions,
4683
4889
  {
4684
4890
  sx: {
@@ -4692,11 +4898,11 @@ var FeedbackModal = ({
4692
4898
  borderColor: "divider",
4693
4899
  justifyContent: "center"
4694
4900
  },
4695
- children: /* @__PURE__ */ jsx5(
4901
+ children: /* @__PURE__ */ jsx6(
4696
4902
  Button3,
4697
4903
  {
4698
4904
  fullWidth: true,
4699
- startIcon: /* @__PURE__ */ jsx5(MailIcon, {}),
4905
+ startIcon: /* @__PURE__ */ jsx6(MailIcon, {}),
4700
4906
  disabled: !isValid,
4701
4907
  onClick: handleSubmit,
4702
4908
  variant: "contained",
@@ -4708,7 +4914,7 @@ var FeedbackModal = ({
4708
4914
  ]
4709
4915
  }
4710
4916
  ),
4711
- /* @__PURE__ */ jsx5(
4917
+ /* @__PURE__ */ jsx6(
4712
4918
  Snackbar,
4713
4919
  {
4714
4920
  open: snackbarOpen,
@@ -4753,7 +4959,7 @@ var FeedbackModal = ({
4753
4959
  alignItems: "center",
4754
4960
  gap: 2
4755
4961
  }, children: [
4756
- /* @__PURE__ */ jsx5(
4962
+ /* @__PURE__ */ jsx6(
4757
4963
  Avatar2,
4758
4964
  {
4759
4965
  sx: {
@@ -4762,15 +4968,15 @@ var FeedbackModal = ({
4762
4968
  width: 40,
4763
4969
  height: 40
4764
4970
  },
4765
- children: /* @__PURE__ */ jsx5(PhotoCameraIcon, {})
4971
+ children: /* @__PURE__ */ jsx6(PhotoCameraIcon, {})
4766
4972
  }
4767
4973
  ),
4768
- /* @__PURE__ */ jsxs5(Box5, { children: [
4769
- /* @__PURE__ */ jsx5(Typography4, { variant: "h6", sx: { fontWeight: 600 }, children: "Ready to Submit with Image" }),
4770
- /* @__PURE__ */ jsx5(Typography4, { variant: "caption", color: "text.secondary", children: "Here's what will happen when you submit" })
4974
+ /* @__PURE__ */ jsxs5(Box6, { children: [
4975
+ /* @__PURE__ */ jsx6(Typography4, { variant: "h6", sx: { fontWeight: 600 }, children: "Ready to Submit with Image" }),
4976
+ /* @__PURE__ */ jsx6(Typography4, { variant: "caption", color: "text.secondary", children: "Here's what will happen when you submit" })
4771
4977
  ] })
4772
4978
  ] }),
4773
- /* @__PURE__ */ jsx5(DialogContent, { sx: { pt: 1 }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
4979
+ /* @__PURE__ */ jsx6(DialogContent, { sx: { pt: 1 }, children: /* @__PURE__ */ jsxs5(Box6, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
4774
4980
  /* @__PURE__ */ jsxs5(
4775
4981
  Paper3,
4776
4982
  {
@@ -4783,7 +4989,7 @@ var FeedbackModal = ({
4783
4989
  },
4784
4990
  children: [
4785
4991
  /* @__PURE__ */ jsxs5(Typography4, { variant: "subtitle1", sx: { fontWeight: 600, mb: 2, display: "flex", alignItems: "center", gap: 1 }, children: [
4786
- /* @__PURE__ */ jsx5(Box5, { sx: {
4992
+ /* @__PURE__ */ jsx6(Box6, { sx: {
4787
4993
  bgcolor: theme.palette.info.main + "20",
4788
4994
  color: theme.palette.info.main,
4789
4995
  borderRadius: "50%",
@@ -4798,7 +5004,7 @@ var FeedbackModal = ({
4798
5004
  "Your image will be copied to clipboard"
4799
5005
  ] }),
4800
5006
  /* @__PURE__ */ jsxs5(Typography4, { variant: "subtitle1", sx: { fontWeight: 600, mb: 2, display: "flex", alignItems: "center", gap: 1 }, children: [
4801
- /* @__PURE__ */ jsx5(Box5, { sx: {
5007
+ /* @__PURE__ */ jsx6(Box6, { sx: {
4802
5008
  bgcolor: theme.palette.info.main + "20",
4803
5009
  color: theme.palette.info.main,
4804
5010
  borderRadius: "50%",
@@ -4813,7 +5019,7 @@ var FeedbackModal = ({
4813
5019
  "Your email client will open"
4814
5020
  ] }),
4815
5021
  /* @__PURE__ */ jsxs5(Typography4, { variant: "subtitle1", sx: { fontWeight: 600, mb: 1, display: "flex", alignItems: "center", gap: 1 }, children: [
4816
- /* @__PURE__ */ jsx5(Box5, { sx: {
5022
+ /* @__PURE__ */ jsx6(Box6, { sx: {
4817
5023
  bgcolor: theme.palette.info.main + "20",
4818
5024
  color: theme.palette.info.main,
4819
5025
  borderRadius: "50%",
@@ -4827,20 +5033,20 @@ var FeedbackModal = ({
4827
5033
  }, children: "3" }),
4828
5034
  "Paste the image with Ctrl+V (or Cmd+V)"
4829
5035
  ] }),
4830
- /* @__PURE__ */ jsx5(Typography4, { variant: "body2", color: "text.secondary", sx: { ml: 4, fontStyle: "italic" }, children: "The email will have a clear spot where you should paste" })
5036
+ /* @__PURE__ */ jsx6(Typography4, { variant: "body2", color: "text.secondary", sx: { ml: 4, fontStyle: "italic" }, children: "The email will have a clear spot where you should paste" })
4831
5037
  ]
4832
5038
  }
4833
5039
  ),
4834
- /* @__PURE__ */ jsx5(Alert3, { severity: "info", sx: {
5040
+ /* @__PURE__ */ jsx6(Alert3, { severity: "info", sx: {
4835
5041
  background: "transparent",
4836
5042
  border: `1px solid ${theme.palette.info.main}30`
4837
5043
  }, children: /* @__PURE__ */ jsxs5(Typography4, { variant: "body2", children: [
4838
- /* @__PURE__ */ jsx5("strong", { children: "\u{1F4A1} Tip:" }),
5044
+ /* @__PURE__ */ jsx6("strong", { children: "\u{1F4A1} Tip:" }),
4839
5045
  " Make sure to paste the image before sending your email!"
4840
5046
  ] }) })
4841
5047
  ] }) }),
4842
5048
  /* @__PURE__ */ jsxs5(DialogActions, { sx: { p: 2.5, pt: 1 }, children: [
4843
- /* @__PURE__ */ jsx5(
5049
+ /* @__PURE__ */ jsx6(
4844
5050
  Button3,
4845
5051
  {
4846
5052
  onClick: () => setConfirmDialogOpen(false),
@@ -4848,13 +5054,13 @@ var FeedbackModal = ({
4848
5054
  children: "Cancel"
4849
5055
  }
4850
5056
  ),
4851
- /* @__PURE__ */ jsx5(
5057
+ /* @__PURE__ */ jsx6(
4852
5058
  Button3,
4853
5059
  {
4854
5060
  variant: "contained",
4855
5061
  onClick: performSubmit,
4856
5062
  disabled: isSubmitting,
4857
- startIcon: isSubmitting ? /* @__PURE__ */ jsx5(CircularProgress3, { size: 16 }) : /* @__PURE__ */ jsx5(MailIcon, {}),
5063
+ startIcon: isSubmitting ? /* @__PURE__ */ jsx6(CircularProgress3, { size: 16 }) : /* @__PURE__ */ jsx6(MailIcon, {}),
4858
5064
  sx: {
4859
5065
  background: `linear-gradient(135deg, ${theme.palette.primary.main} 0%, ${theme.palette.primary.dark} 100%)`,
4860
5066
  "&:hover": {
@@ -7243,10 +7449,8 @@ import {
7243
7449
  Button as Button4,
7244
7450
  IconButton as IconButton6
7245
7451
  } from "@mui/material";
7246
- import {
7247
- Feedback as FeedbackIcon
7248
- } from "@mui/icons-material";
7249
- import { Fragment as Fragment5, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
7452
+ import { MessageCircle as FeedbackIcon2 } from "lucide-react";
7453
+ import { Fragment as Fragment5, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
7250
7454
  var FeedbackButton = ({
7251
7455
  fullScreen = false,
7252
7456
  className,
@@ -7264,11 +7468,11 @@ var FeedbackButton = ({
7264
7468
  const handleClose = () => setOpen(false);
7265
7469
  if (inline) {
7266
7470
  return /* @__PURE__ */ jsxs6(Fragment5, { children: [
7267
- buttonText ? /* @__PURE__ */ jsx6(
7471
+ buttonText ? /* @__PURE__ */ jsx7(
7268
7472
  Button4,
7269
7473
  {
7270
7474
  variant: "outlined",
7271
- startIcon: /* @__PURE__ */ jsx6(FeedbackIcon, {}),
7475
+ startIcon: /* @__PURE__ */ jsx7(FeedbackIcon2, {}),
7272
7476
  onClick: handleOpen,
7273
7477
  className,
7274
7478
  size,
@@ -7282,7 +7486,7 @@ var FeedbackButton = ({
7282
7486
  },
7283
7487
  children: buttonText
7284
7488
  }
7285
- ) : /* @__PURE__ */ jsx6(Tooltip5, { title: "Send Feedback", arrow: true, children: /* @__PURE__ */ jsx6(
7489
+ ) : /* @__PURE__ */ jsx7(Tooltip5, { title: "Send Feedback", arrow: true, children: /* @__PURE__ */ jsx7(
7286
7490
  IconButton6,
7287
7491
  {
7288
7492
  onClick: handleOpen,
@@ -7297,10 +7501,10 @@ var FeedbackButton = ({
7297
7501
  transform: "translateY(-1px)"
7298
7502
  }
7299
7503
  },
7300
- children: /* @__PURE__ */ jsx6(FeedbackIcon, {})
7504
+ children: /* @__PURE__ */ jsx7(FeedbackIcon2, {})
7301
7505
  }
7302
7506
  ) }),
7303
- /* @__PURE__ */ jsx6(
7507
+ /* @__PURE__ */ jsx7(
7304
7508
  FeedbackModal,
7305
7509
  {
7306
7510
  open,
@@ -7311,13 +7515,13 @@ var FeedbackButton = ({
7311
7515
  ] });
7312
7516
  }
7313
7517
  return /* @__PURE__ */ jsxs6(Fragment5, { children: [
7314
- /* @__PURE__ */ jsx6(Zoom, { in: true, timeout: 300, children: /* @__PURE__ */ jsx6(
7518
+ /* @__PURE__ */ jsx7(Zoom, { in: true, timeout: 300, children: /* @__PURE__ */ jsx7(
7315
7519
  Tooltip5,
7316
7520
  {
7317
7521
  title: "Send Feedback",
7318
7522
  placement: "left",
7319
7523
  arrow: true,
7320
- children: /* @__PURE__ */ jsx6(
7524
+ children: /* @__PURE__ */ jsx7(
7321
7525
  Fab,
7322
7526
  {
7323
7527
  size,
@@ -7356,12 +7560,12 @@ var FeedbackButton = ({
7356
7560
  }
7357
7561
  }
7358
7562
  },
7359
- children: /* @__PURE__ */ jsx6(FeedbackIcon, {})
7563
+ children: /* @__PURE__ */ jsx7(FeedbackIcon2, {})
7360
7564
  }
7361
7565
  )
7362
7566
  }
7363
7567
  ) }),
7364
- /* @__PURE__ */ jsx6(
7568
+ /* @__PURE__ */ jsx7(
7365
7569
  FeedbackModal,
7366
7570
  {
7367
7571
  open,
@@ -7389,17 +7593,17 @@ var useNotificationService = () => {
7389
7593
  };
7390
7594
 
7391
7595
  // src/chat/memory-modal.tsx
7392
- import React7, { useState as useState8, useEffect as useEffect7 } from "react";
7596
+ import React8, { useState as useState8, useEffect as useEffect7 } from "react";
7393
7597
  import { useTheme as useTheme6, alpha as alpha3, keyframes } from "@mui/material/styles";
7394
7598
  import {
7395
- Box as Box6,
7599
+ Box as Box7,
7396
7600
  Typography as Typography5,
7397
7601
  Modal as Modal2,
7398
7602
  SwipeableDrawer,
7399
7603
  IconButton as IconButton7,
7400
7604
  TextField as TextField2,
7401
7605
  Button as Button5,
7402
- List,
7606
+ List as List2,
7403
7607
  ListItem,
7404
7608
  Divider,
7405
7609
  Tabs,
@@ -7416,12 +7620,7 @@ import {
7416
7620
  FormControl as FormControl2,
7417
7621
  useMediaQuery as useMediaQuery3
7418
7622
  } from "@mui/material";
7419
- import CloseIcon4 from "@mui/icons-material/Close";
7420
- import DeleteIcon3 from "@mui/icons-material/Delete";
7421
- import PushPinIcon from "@mui/icons-material/PushPin";
7422
- import PushPinOutlinedIcon from "@mui/icons-material/PushPinOutlined";
7423
- import CloudSyncIcon from "@mui/icons-material/CloudSync";
7424
- import { Fragment as Fragment6, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
7623
+ import { Fragment as Fragment6, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
7425
7624
  var MemoryModal = ({ open, onClose }) => {
7426
7625
  const { entries, addMemory, togglePinMemory, removeMemory, clearMemories, hydrate, _hasHydrated } = useMemoryStore();
7427
7626
  const isAdvancedVectorFeaturesEnabled = useConversationSyncStore(
@@ -7815,7 +8014,7 @@ var MemoryModal = ({ open, onClose }) => {
7815
8014
  };
7816
8015
  const filteredMemories = getMemoriesForDisplay();
7817
8016
  const sheet = /* @__PURE__ */ jsxs7(
7818
- Box6,
8017
+ Box7,
7819
8018
  {
7820
8019
  sx: {
7821
8020
  width: "100%",
@@ -7834,8 +8033,8 @@ var MemoryModal = ({ open, onClose }) => {
7834
8033
  // Ensure it's on top
7835
8034
  },
7836
8035
  children: [
7837
- isMobileView && /* @__PURE__ */ jsx7(
7838
- Box6,
8036
+ isMobileView && /* @__PURE__ */ jsx8(
8037
+ Box7,
7839
8038
  {
7840
8039
  sx: {
7841
8040
  height: 6,
@@ -7849,7 +8048,7 @@ var MemoryModal = ({ open, onClose }) => {
7849
8048
  }
7850
8049
  ),
7851
8050
  /* @__PURE__ */ jsxs7(
7852
- Box6,
8051
+ Box7,
7853
8052
  {
7854
8053
  sx: {
7855
8054
  flexShrink: 0,
@@ -7862,7 +8061,7 @@ var MemoryModal = ({ open, onClose }) => {
7862
8061
  },
7863
8062
  children: [
7864
8063
  /* @__PURE__ */ jsxs7(
7865
- Box6,
8064
+ Box7,
7866
8065
  {
7867
8066
  sx: {
7868
8067
  width: "100%",
@@ -7873,9 +8072,9 @@ var MemoryModal = ({ open, onClose }) => {
7873
8072
  flexWrap: "wrap"
7874
8073
  },
7875
8074
  children: [
7876
- /* @__PURE__ */ jsxs7(Box6, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
7877
- /* @__PURE__ */ jsx7(Typography5, { variant: "h6", sx: { fontWeight: 600 }, children: "Memory" }),
7878
- shouldUseVectorForMemories && /* @__PURE__ */ jsx7(Tooltip6, { title: "Memories stay in your private knowledge space for faster, more accurate answers.", children: /* @__PURE__ */ jsx7(
8075
+ /* @__PURE__ */ jsxs7(Box7, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
8076
+ /* @__PURE__ */ jsx8(Typography5, { variant: "h6", sx: { fontWeight: 600 }, children: "Memory" }),
8077
+ shouldUseVectorForMemories && /* @__PURE__ */ jsx8(Tooltip6, { title: "Memories stay in your private knowledge space for faster, more accurate answers.", children: /* @__PURE__ */ jsx8(
7879
8078
  Typography5,
7880
8079
  {
7881
8080
  variant: "caption",
@@ -7895,7 +8094,7 @@ var MemoryModal = ({ open, onClose }) => {
7895
8094
  ) })
7896
8095
  ] }),
7897
8096
  /* @__PURE__ */ jsxs7(
7898
- Box6,
8097
+ Box7,
7899
8098
  {
7900
8099
  sx: {
7901
8100
  display: "flex",
@@ -7910,7 +8109,7 @@ var MemoryModal = ({ open, onClose }) => {
7910
8109
  selectedIds.length,
7911
8110
  " selected"
7912
8111
  ] }),
7913
- /* @__PURE__ */ jsx7(
8112
+ /* @__PURE__ */ jsx8(
7914
8113
  Button5,
7915
8114
  {
7916
8115
  variant: "outlined",
@@ -7970,7 +8169,7 @@ var MemoryModal = ({ open, onClose }) => {
7970
8169
  )
7971
8170
  ] })
7972
8171
  ] }) : filteredMemories.length > 0 && /* @__PURE__ */ jsxs7(Fragment6, { children: [
7973
- /* @__PURE__ */ jsx7(
8172
+ /* @__PURE__ */ jsx8(
7974
8173
  Button5,
7975
8174
  {
7976
8175
  variant: "outlined",
@@ -7980,19 +8179,19 @@ var MemoryModal = ({ open, onClose }) => {
7980
8179
  children: "Clear All"
7981
8180
  }
7982
8181
  ),
7983
- isVectorEnabled && entries.length > 0 && /* @__PURE__ */ jsx7(
8182
+ isVectorEnabled && entries.length > 0 && /* @__PURE__ */ jsx8(
7984
8183
  Button5,
7985
8184
  {
7986
8185
  variant: "outlined",
7987
8186
  size: "small",
7988
8187
  color: "primary",
7989
8188
  onClick: () => setBulkImportOpen(true),
7990
- startIcon: /* @__PURE__ */ jsx7(CloudSyncIcon, {}),
8189
+ startIcon: /* @__PURE__ */ jsx8(CloudSyncIcon, {}),
7991
8190
  sx: { textTransform: "none", borderRadius: 2, fontSize: "0.75rem" },
7992
8191
  children: "Import to workspace"
7993
8192
  }
7994
8193
  ),
7995
- /* @__PURE__ */ jsx7(
8194
+ /* @__PURE__ */ jsx8(
7996
8195
  Button5,
7997
8196
  {
7998
8197
  variant: "outlined",
@@ -8007,7 +8206,7 @@ var MemoryModal = ({ open, onClose }) => {
8007
8206
  }
8008
8207
  )
8009
8208
  ] }),
8010
- !multiSelectMode && isMobileView && /* @__PURE__ */ jsx7(
8209
+ !multiSelectMode && isMobileView && /* @__PURE__ */ jsx8(
8011
8210
  Button5,
8012
8211
  {
8013
8212
  variant: "contained",
@@ -8023,7 +8222,7 @@ var MemoryModal = ({ open, onClose }) => {
8023
8222
  children: "Save"
8024
8223
  }
8025
8224
  ),
8026
- /* @__PURE__ */ jsx7(
8225
+ /* @__PURE__ */ jsx8(
8027
8226
  IconButton7,
8028
8227
  {
8029
8228
  onClick: onClose,
@@ -8033,7 +8232,7 @@ var MemoryModal = ({ open, onClose }) => {
8033
8232
  borderRadius: 2
8034
8233
  },
8035
8234
  size: "small",
8036
- children: /* @__PURE__ */ jsx7(CloseIcon4, { fontSize: "small" })
8235
+ children: /* @__PURE__ */ jsx8(CloseIcon, { fontSize: "small" })
8037
8236
  }
8038
8237
  )
8039
8238
  ]
@@ -8043,7 +8242,7 @@ var MemoryModal = ({ open, onClose }) => {
8043
8242
  }
8044
8243
  ),
8045
8244
  /* @__PURE__ */ jsxs7(
8046
- Box6,
8245
+ Box7,
8047
8246
  {
8048
8247
  sx: {
8049
8248
  display: "flex",
@@ -8052,7 +8251,7 @@ var MemoryModal = ({ open, onClose }) => {
8052
8251
  color: theme.palette.text.secondary
8053
8252
  },
8054
8253
  children: [
8055
- /* @__PURE__ */ jsx7(
8254
+ /* @__PURE__ */ jsx8(
8056
8255
  Typography5,
8057
8256
  {
8058
8257
  variant: "caption",
@@ -8094,7 +8293,7 @@ var MemoryModal = ({ open, onClose }) => {
8094
8293
  ]
8095
8294
  }
8096
8295
  ),
8097
- shouldUseVectorForMemories && /* @__PURE__ */ jsxs7(Box6, { sx: {
8296
+ shouldUseVectorForMemories && /* @__PURE__ */ jsxs7(Box7, { sx: {
8098
8297
  flexShrink: 0,
8099
8298
  mx: isMobileView ? 1.5 : 2,
8100
8299
  mt: 1,
@@ -8108,7 +8307,7 @@ var MemoryModal = ({ open, onClose }) => {
8108
8307
  position: "relative",
8109
8308
  overflow: "hidden"
8110
8309
  }, children: [
8111
- /* @__PURE__ */ jsx7(Box6, { sx: {
8310
+ /* @__PURE__ */ jsx8(Box7, { sx: {
8112
8311
  position: "absolute",
8113
8312
  top: 0,
8114
8313
  left: "-100%",
@@ -8117,7 +8316,7 @@ var MemoryModal = ({ open, onClose }) => {
8117
8316
  background: `linear-gradient(90deg, transparent, ${alpha3(theme.palette.primary.main, 0.1)}, transparent)`,
8118
8317
  animation: `${shimmer} 3s infinite`
8119
8318
  } }),
8120
- /* @__PURE__ */ jsx7(Box6, { sx: {
8319
+ /* @__PURE__ */ jsx8(Box7, { sx: {
8121
8320
  width: 8,
8122
8321
  height: 8,
8123
8322
  borderRadius: "50%",
@@ -8125,15 +8324,15 @@ var MemoryModal = ({ open, onClose }) => {
8125
8324
  animation: `${pulse} 2s infinite`,
8126
8325
  zIndex: 1
8127
8326
  } }),
8128
- /* @__PURE__ */ jsx7(Typography5, { variant: "body2", sx: {
8327
+ /* @__PURE__ */ jsx8(Typography5, { variant: "body2", sx: {
8129
8328
  color: theme.palette.primary.main,
8130
8329
  fontSize: "0.8rem",
8131
8330
  fontWeight: 500,
8132
8331
  zIndex: 1
8133
8332
  }, children: "Advanced Vector Memory Active \u2022 Memories synced to AI database for enhanced semantic search" })
8134
8333
  ] }),
8135
- /* @__PURE__ */ jsxs7(Box6, { sx: { flexShrink: 0 }, children: [
8136
- /* @__PURE__ */ jsx7(Box6, { sx: { px: isMobileView ? 1.5 : 2, py: isMobileView ? 1.25 : 1.5 }, children: /* @__PURE__ */ jsx7(
8334
+ /* @__PURE__ */ jsxs7(Box7, { sx: { flexShrink: 0 }, children: [
8335
+ /* @__PURE__ */ jsx8(Box7, { sx: { px: isMobileView ? 1.5 : 2, py: isMobileView ? 1.25 : 1.5 }, children: /* @__PURE__ */ jsx8(
8137
8336
  Typography5,
8138
8337
  {
8139
8338
  variant: "body2",
@@ -8162,12 +8361,12 @@ var MemoryModal = ({ open, onClose }) => {
8162
8361
  }
8163
8362
  },
8164
8363
  children: [
8165
- /* @__PURE__ */ jsx7(
8364
+ /* @__PURE__ */ jsx8(
8166
8365
  Tab,
8167
8366
  {
8168
- label: /* @__PURE__ */ jsxs7(Box6, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8367
+ label: /* @__PURE__ */ jsxs7(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8169
8368
  "User",
8170
- getUserMemoryCount() > 0 && /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
8369
+ getUserMemoryCount() > 0 && /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
8171
8370
  bgcolor: alpha3(theme.palette.primary.main, 0.2),
8172
8371
  color: theme.palette.primary.main,
8173
8372
  px: 0.75,
@@ -8180,12 +8379,12 @@ var MemoryModal = ({ open, onClose }) => {
8180
8379
  value: "user"
8181
8380
  }
8182
8381
  ),
8183
- /* @__PURE__ */ jsx7(
8382
+ /* @__PURE__ */ jsx8(
8184
8383
  Tab,
8185
8384
  {
8186
- label: /* @__PURE__ */ jsxs7(Box6, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8385
+ label: /* @__PURE__ */ jsxs7(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8187
8386
  "Auto",
8188
- getAutoMemoryCount() > 0 && /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
8387
+ getAutoMemoryCount() > 0 && /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
8189
8388
  bgcolor: alpha3(theme.palette.secondary.main, 0.2),
8190
8389
  color: theme.palette.secondary.main,
8191
8390
  px: 0.75,
@@ -8202,8 +8401,8 @@ var MemoryModal = ({ open, onClose }) => {
8202
8401
  }
8203
8402
  )
8204
8403
  ] }),
8205
- /* @__PURE__ */ jsx7(
8206
- Box6,
8404
+ /* @__PURE__ */ jsx8(
8405
+ Box7,
8207
8406
  {
8208
8407
  sx: {
8209
8408
  flexGrow: 1,
@@ -8211,7 +8410,7 @@ var MemoryModal = ({ open, onClose }) => {
8211
8410
  px: isMobileView ? 1.5 : 2,
8212
8411
  py: isMobileView ? 1 : 1
8213
8412
  },
8214
- children: filteredMemories.length === 0 ? /* @__PURE__ */ jsxs7(Box6, { sx: {
8413
+ children: filteredMemories.length === 0 ? /* @__PURE__ */ jsxs7(Box7, { sx: {
8215
8414
  display: "flex",
8216
8415
  flexDirection: "column",
8217
8416
  alignItems: "center",
@@ -8228,14 +8427,14 @@ var MemoryModal = ({ open, onClose }) => {
8228
8427
  selectedTab,
8229
8428
  " memories yet"
8230
8429
  ] }),
8231
- /* @__PURE__ */ jsx7(Typography5, { variant: "body2", sx: {
8430
+ /* @__PURE__ */ jsx8(Typography5, { variant: "body2", sx: {
8232
8431
  color: alpha3(theme.palette.text.secondary, 0.7),
8233
8432
  maxWidth: 280
8234
8433
  }, 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." })
8235
8434
  ] }) : filteredMemories.map((memory) => {
8236
8435
  const isSelected = selectedIds.includes(memory.id);
8237
- return /* @__PURE__ */ jsxs7(React7.Fragment, { children: [
8238
- /* @__PURE__ */ jsx7(List, { sx: { listStyle: "none", pl: 0, m: 0 }, children: /* @__PURE__ */ jsxs7(
8436
+ return /* @__PURE__ */ jsxs7(React8.Fragment, { children: [
8437
+ /* @__PURE__ */ jsx8(List2, { sx: { listStyle: "none", pl: 0, m: 0 }, children: /* @__PURE__ */ jsxs7(
8239
8438
  ListItem,
8240
8439
  {
8241
8440
  onClick: () => multiSelectMode && toggleSelection(memory.id),
@@ -8257,7 +8456,7 @@ var MemoryModal = ({ open, onClose }) => {
8257
8456
  },
8258
8457
  children: [
8259
8458
  /* @__PURE__ */ jsxs7(
8260
- Box6,
8459
+ Box7,
8261
8460
  {
8262
8461
  sx: {
8263
8462
  display: "flex",
@@ -8266,7 +8465,7 @@ var MemoryModal = ({ open, onClose }) => {
8266
8465
  gap: 1.5
8267
8466
  },
8268
8467
  children: [
8269
- /* @__PURE__ */ jsx7(
8468
+ /* @__PURE__ */ jsx8(
8270
8469
  Avatar3,
8271
8470
  {
8272
8471
  src: "https://cdn.burtson.ai/images/brain-icon.png",
@@ -8279,7 +8478,7 @@ var MemoryModal = ({ open, onClose }) => {
8279
8478
  border: isVectorEnabled ? `2px solid ${alpha3(theme.palette.primary.main, 0.4)}` : `1px solid ${theme.palette.divider}`,
8280
8479
  position: "relative"
8281
8480
  },
8282
- children: isVectorEnabled && /* @__PURE__ */ jsx7(Box6, { sx: {
8481
+ children: isVectorEnabled && /* @__PURE__ */ jsx8(Box7, { sx: {
8283
8482
  position: "absolute",
8284
8483
  top: -2,
8285
8484
  right: -2,
@@ -8296,7 +8495,7 @@ var MemoryModal = ({ open, onClose }) => {
8296
8495
  }, children: "\u26A1" })
8297
8496
  }
8298
8497
  ),
8299
- editingId === memory.id ? /* @__PURE__ */ jsx7(
8498
+ editingId === memory.id ? /* @__PURE__ */ jsx8(
8300
8499
  TextField2,
8301
8500
  {
8302
8501
  fullWidth: true,
@@ -8343,8 +8542,8 @@ var MemoryModal = ({ open, onClose }) => {
8343
8542
  },
8344
8543
  helperText: "Press Cmd/Ctrl+Enter to save, Escape to cancel"
8345
8544
  }
8346
- ) : /* @__PURE__ */ jsxs7(Box6, { sx: { flex: 1 }, children: [
8347
- /* @__PURE__ */ jsx7(
8545
+ ) : /* @__PURE__ */ jsxs7(Box7, { sx: { flex: 1 }, children: [
8546
+ /* @__PURE__ */ jsx8(
8348
8547
  Typography5,
8349
8548
  {
8350
8549
  sx: {
@@ -8366,7 +8565,7 @@ var MemoryModal = ({ open, onClose }) => {
8366
8565
  children: memory.content
8367
8566
  }
8368
8567
  ),
8369
- memory.pinned && /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
8568
+ memory.pinned && /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
8370
8569
  color: alpha3(theme.palette.secondary.main, 0.7),
8371
8570
  fontStyle: "italic",
8372
8571
  mt: 0.5,
@@ -8376,8 +8575,8 @@ var MemoryModal = ({ open, onClose }) => {
8376
8575
  ]
8377
8576
  }
8378
8577
  ),
8379
- !multiSelectMode && /* @__PURE__ */ jsxs7(Box6, { sx: { display: "flex", gap: 0.5, mt: 0.5 }, children: [
8380
- /* @__PURE__ */ jsx7(Tooltip6, { title: memory.pinned ? "Unpin memory" : "Pin memory", children: /* @__PURE__ */ jsx7(
8578
+ !multiSelectMode && /* @__PURE__ */ jsxs7(Box7, { sx: { display: "flex", gap: 0.5, mt: 0.5 }, children: [
8579
+ /* @__PURE__ */ jsx8(Tooltip6, { title: memory.pinned ? "Unpin memory" : "Pin memory", children: /* @__PURE__ */ jsx8(
8381
8580
  IconButton7,
8382
8581
  {
8383
8582
  onClick: async () => {
@@ -8410,10 +8609,10 @@ var MemoryModal = ({ open, onClose }) => {
8410
8609
  }
8411
8610
  },
8412
8611
  size: "small",
8413
- children: memory.pinned ? /* @__PURE__ */ jsx7(PushPinIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx7(PushPinOutlinedIcon, { fontSize: "small" })
8612
+ children: memory.pinned ? /* @__PURE__ */ jsx8(PushPinIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx8(PushPinOutlinedIcon, { fontSize: "small" })
8414
8613
  }
8415
8614
  ) }),
8416
- /* @__PURE__ */ jsx7(Tooltip6, { title: "Delete memory", children: /* @__PURE__ */ jsx7(
8615
+ /* @__PURE__ */ jsx8(Tooltip6, { title: "Delete memory", children: /* @__PURE__ */ jsx8(
8417
8616
  IconButton7,
8418
8617
  {
8419
8618
  onClick: async () => await handleDeleteMemory(memory.id),
@@ -8425,20 +8624,20 @@ var MemoryModal = ({ open, onClose }) => {
8425
8624
  }
8426
8625
  },
8427
8626
  size: "small",
8428
- children: /* @__PURE__ */ jsx7(DeleteIcon3, { fontSize: "small" })
8627
+ children: /* @__PURE__ */ jsx8(DeleteIcon, { fontSize: "small" })
8429
8628
  }
8430
8629
  ) })
8431
8630
  ] })
8432
8631
  ]
8433
8632
  }
8434
8633
  ) }),
8435
- filteredMemories.indexOf(memory) < filteredMemories.length - 1 && /* @__PURE__ */ jsx7(Divider, { sx: { bgcolor: alpha3(appBar.border, 0.5), my: 0.5 } })
8634
+ filteredMemories.indexOf(memory) < filteredMemories.length - 1 && /* @__PURE__ */ jsx8(Divider, { sx: { bgcolor: alpha3(appBar.border, 0.5), my: 0.5 } })
8436
8635
  ] }, memory.id);
8437
8636
  })
8438
8637
  }
8439
8638
  ),
8440
- multiSelectMode && /* @__PURE__ */ jsx7(
8441
- Box6,
8639
+ multiSelectMode && /* @__PURE__ */ jsx8(
8640
+ Box7,
8442
8641
  {
8443
8642
  sx: {
8444
8643
  p: isMobileView ? 1.5 : 2,
@@ -8446,12 +8645,12 @@ var MemoryModal = ({ open, onClose }) => {
8446
8645
  bgcolor: alpha3(theme.palette.error.main, 0.05),
8447
8646
  borderBottom: selectedIds.length > 0 ? `2px solid ${alpha3(theme.palette.error.main, 0.2)}` : void 0
8448
8647
  },
8449
- children: selectedIds.length === 0 ? /* @__PURE__ */ jsx7(Typography5, { variant: "body2", sx: {
8648
+ children: selectedIds.length === 0 ? /* @__PURE__ */ jsx8(Typography5, { variant: "body2", sx: {
8450
8649
  textAlign: "center",
8451
8650
  color: theme.palette.text.secondary,
8452
8651
  fontStyle: "italic"
8453
- }, children: "Tap memories to select them for deletion" }) : /* @__PURE__ */ jsxs7(Box6, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
8454
- /* @__PURE__ */ jsx7(
8652
+ }, children: "Tap memories to select them for deletion" }) : /* @__PURE__ */ jsxs7(Box7, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
8653
+ /* @__PURE__ */ jsx8(
8455
8654
  Button5,
8456
8655
  {
8457
8656
  variant: "outlined",
@@ -8486,7 +8685,7 @@ var MemoryModal = ({ open, onClose }) => {
8486
8685
  }
8487
8686
  ),
8488
8687
  /* @__PURE__ */ jsxs7(
8489
- Box6,
8688
+ Box7,
8490
8689
  {
8491
8690
  sx: {
8492
8691
  flexShrink: 0,
@@ -8496,7 +8695,7 @@ var MemoryModal = ({ open, onClose }) => {
8496
8695
  pb: `calc(env(safe-area-inset-bottom, 0px) + 8px)`
8497
8696
  },
8498
8697
  children: [
8499
- /* @__PURE__ */ jsx7(
8698
+ /* @__PURE__ */ jsx8(
8500
8699
  TextField2,
8501
8700
  {
8502
8701
  fullWidth: true,
@@ -8542,7 +8741,7 @@ var MemoryModal = ({ open, onClose }) => {
8542
8741
  mb: 1.5
8543
8742
  },
8544
8743
  InputProps: {
8545
- endAdornment: newMemory.trim() && /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
8744
+ endAdornment: newMemory.trim() && /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
8546
8745
  color: alpha3(theme.palette.text.secondary, 0.7),
8547
8746
  fontSize: "0.7rem",
8548
8747
  whiteSpace: "nowrap"
@@ -8550,7 +8749,7 @@ var MemoryModal = ({ open, onClose }) => {
8550
8749
  }
8551
8750
  }
8552
8751
  ),
8553
- !isMobileView && /* @__PURE__ */ jsx7(
8752
+ !isMobileView && /* @__PURE__ */ jsx8(
8554
8753
  Button5,
8555
8754
  {
8556
8755
  fullWidth: true,
@@ -8589,9 +8788,9 @@ var MemoryModal = ({ open, onClose }) => {
8589
8788
  selectedIds.length === 1 ? "Memory" : "Memories",
8590
8789
  "?"
8591
8790
  ] }),
8592
- /* @__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." }) }),
8791
+ /* @__PURE__ */ jsx8(DialogContent2, { children: /* @__PURE__ */ jsx8(Typography5, { variant: "body2", sx: { color: theme.palette.text.secondary }, children: "This will permanently remove the selected memory entries. This action cannot be undone." }) }),
8593
8792
  /* @__PURE__ */ jsxs7(DialogActions2, { sx: { p: 3, pt: 1 }, children: [
8594
- /* @__PURE__ */ jsx7(
8793
+ /* @__PURE__ */ jsx8(
8595
8794
  Button5,
8596
8795
  {
8597
8796
  onClick: () => setConfirmOpen(false),
@@ -8630,23 +8829,23 @@ var MemoryModal = ({ open, onClose }) => {
8630
8829
  sx: { borderRadius: 3, minWidth: 320 }
8631
8830
  },
8632
8831
  children: [
8633
- /* @__PURE__ */ jsx7(DialogTitle2, { sx: { pb: 1, fontWeight: 600 }, children: "Clear Memories" }),
8832
+ /* @__PURE__ */ jsx8(DialogTitle2, { sx: { pb: 1, fontWeight: 600 }, children: "Clear Memories" }),
8634
8833
  /* @__PURE__ */ jsxs7(DialogContent2, { sx: { pb: 2 }, children: [
8635
- /* @__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:" }),
8636
- /* @__PURE__ */ jsx7(FormControl2, { component: "fieldset", children: /* @__PURE__ */ jsxs7(
8834
+ /* @__PURE__ */ jsx8(Typography5, { variant: "body2", sx: { mb: 3, color: theme.palette.text.secondary }, children: "This will permanently remove selected memory types. Choose which ones to clear:" }),
8835
+ /* @__PURE__ */ jsx8(FormControl2, { component: "fieldset", children: /* @__PURE__ */ jsxs7(
8637
8836
  RadioGroup,
8638
8837
  {
8639
8838
  value: clearOption,
8640
8839
  onChange: (e) => setClearOption(e.target.value),
8641
8840
  children: [
8642
- /* @__PURE__ */ jsx7(
8841
+ /* @__PURE__ */ jsx8(
8643
8842
  FormControlLabel,
8644
8843
  {
8645
8844
  value: "user",
8646
- control: /* @__PURE__ */ jsx7(Radio, {}),
8647
- label: /* @__PURE__ */ jsxs7(Box6, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8648
- /* @__PURE__ */ jsx7(Typography5, { children: "User Memories" }),
8649
- /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
8845
+ control: /* @__PURE__ */ jsx8(Radio, {}),
8846
+ label: /* @__PURE__ */ jsxs7(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8847
+ /* @__PURE__ */ jsx8(Typography5, { children: "User Memories" }),
8848
+ /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
8650
8849
  bgcolor: alpha3(theme.palette.primary.main, 0.1),
8651
8850
  color: theme.palette.primary.main,
8652
8851
  px: 1,
@@ -8657,14 +8856,14 @@ var MemoryModal = ({ open, onClose }) => {
8657
8856
  ] })
8658
8857
  }
8659
8858
  ),
8660
- /* @__PURE__ */ jsx7(
8859
+ /* @__PURE__ */ jsx8(
8661
8860
  FormControlLabel,
8662
8861
  {
8663
8862
  value: "auto",
8664
- control: /* @__PURE__ */ jsx7(Radio, {}),
8665
- label: /* @__PURE__ */ jsxs7(Box6, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8666
- /* @__PURE__ */ jsx7(Typography5, { children: "Auto Memories" }),
8667
- /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
8863
+ control: /* @__PURE__ */ jsx8(Radio, {}),
8864
+ label: /* @__PURE__ */ jsxs7(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8865
+ /* @__PURE__ */ jsx8(Typography5, { children: "Auto Memories" }),
8866
+ /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
8668
8867
  bgcolor: alpha3(theme.palette.secondary.main, 0.1),
8669
8868
  color: theme.palette.secondary.main,
8670
8869
  px: 1,
@@ -8675,14 +8874,14 @@ var MemoryModal = ({ open, onClose }) => {
8675
8874
  ] })
8676
8875
  }
8677
8876
  ),
8678
- /* @__PURE__ */ jsx7(
8877
+ /* @__PURE__ */ jsx8(
8679
8878
  FormControlLabel,
8680
8879
  {
8681
8880
  value: "both",
8682
- control: /* @__PURE__ */ jsx7(Radio, {}),
8683
- label: /* @__PURE__ */ jsxs7(Box6, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8684
- /* @__PURE__ */ jsx7(Typography5, { children: "Both Types" }),
8685
- /* @__PURE__ */ jsx7(Typography5, { variant: "caption", sx: {
8881
+ control: /* @__PURE__ */ jsx8(Radio, {}),
8882
+ label: /* @__PURE__ */ jsxs7(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8883
+ /* @__PURE__ */ jsx8(Typography5, { children: "Both Types" }),
8884
+ /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
8686
8885
  bgcolor: alpha3(theme.palette.error.main, 0.1),
8687
8886
  color: theme.palette.error.main,
8688
8887
  px: 1,
@@ -8698,7 +8897,7 @@ var MemoryModal = ({ open, onClose }) => {
8698
8897
  ) })
8699
8898
  ] }),
8700
8899
  /* @__PURE__ */ jsxs7(DialogActions2, { sx: { p: 3, pt: 1 }, children: [
8701
- /* @__PURE__ */ jsx7(
8900
+ /* @__PURE__ */ jsx8(
8702
8901
  Button5,
8703
8902
  {
8704
8903
  onClick: () => setClearAllOpen(false),
@@ -8742,23 +8941,23 @@ var MemoryModal = ({ open, onClose }) => {
8742
8941
  alignItems: "center",
8743
8942
  gap: 1
8744
8943
  }, children: [
8745
- /* @__PURE__ */ jsx7(CloudSyncIcon, { color: "primary" }),
8944
+ /* @__PURE__ */ jsx8(CloudSyncIcon, { color: "primary" }),
8746
8945
  "Import Memories to Secure Workspace"
8747
8946
  ] }),
8748
- /* @__PURE__ */ jsx7(DialogContent2, { sx: { py: 2 }, children: !importProgress.isImporting ? /* @__PURE__ */ jsxs7(Box6, { children: [
8947
+ /* @__PURE__ */ jsx8(DialogContent2, { sx: { py: 2 }, children: !importProgress.isImporting ? /* @__PURE__ */ jsxs7(Box7, { children: [
8749
8948
  /* @__PURE__ */ jsxs7(Typography5, { variant: "body2", color: "text.secondary", sx: { mb: 2 }, children: [
8750
8949
  "This will import all your local memories (",
8751
8950
  entries.length,
8752
8951
  " memories) to your secure workspace for faster, more reliable answers."
8753
8952
  ] }),
8754
- /* @__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" }),
8953
+ /* @__PURE__ */ jsx8(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" }),
8755
8954
  /* @__PURE__ */ jsxs7(Typography5, { variant: "body2", color: "primary", sx: { fontWeight: 500 }, children: [
8756
8955
  "Ready to import ",
8757
8956
  entries.length,
8758
8957
  " memories?"
8759
8958
  ] })
8760
- ] }) : /* @__PURE__ */ jsxs7(Box6, { sx: { textAlign: "center", py: 2 }, children: [
8761
- /* @__PURE__ */ jsx7(
8959
+ ] }) : /* @__PURE__ */ jsxs7(Box7, { sx: { textAlign: "center", py: 2 }, children: [
8960
+ /* @__PURE__ */ jsx8(
8762
8961
  CloudSyncIcon,
8763
8962
  {
8764
8963
  sx: {
@@ -8769,9 +8968,9 @@ var MemoryModal = ({ open, onClose }) => {
8769
8968
  }
8770
8969
  }
8771
8970
  ),
8772
- /* @__PURE__ */ jsx7(Typography5, { variant: "body1", sx: { mb: 1 }, children: importProgress.progress }),
8971
+ /* @__PURE__ */ jsx8(Typography5, { variant: "body1", sx: { mb: 1 }, children: importProgress.progress }),
8773
8972
  importProgress.result && /* @__PURE__ */ jsxs7(Fragment6, { children: [
8774
- /* @__PURE__ */ jsx7(
8973
+ /* @__PURE__ */ jsx8(
8775
8974
  Typography5,
8776
8975
  {
8777
8976
  variant: "body2",
@@ -8780,7 +8979,7 @@ var MemoryModal = ({ open, onClose }) => {
8780
8979
  children: importProgress.result.message
8781
8980
  }
8782
8981
  ),
8783
- importProgress.result.details && /* @__PURE__ */ jsxs7(Box6, { sx: {
8982
+ importProgress.result.details && /* @__PURE__ */ jsxs7(Box7, { sx: {
8784
8983
  textAlign: "left",
8785
8984
  backgroundColor: "background.paper",
8786
8985
  border: 1,
@@ -8789,7 +8988,7 @@ var MemoryModal = ({ open, onClose }) => {
8789
8988
  p: 2,
8790
8989
  mt: 2
8791
8990
  }, children: [
8792
- /* @__PURE__ */ jsx7(Typography5, { variant: "caption", color: "text.secondary", sx: { display: "block", mb: 1 }, children: "Import Details:" }),
8991
+ /* @__PURE__ */ jsx8(Typography5, { variant: "caption", color: "text.secondary", sx: { display: "block", mb: 1 }, children: "Import Details:" }),
8793
8992
  /* @__PURE__ */ jsxs7(Typography5, { variant: "body2", sx: { mb: 0.5 }, children: [
8794
8993
  "\u2022 Total: ",
8795
8994
  importProgress.result.details.totalMemories,
@@ -8815,7 +9014,7 @@ var MemoryModal = ({ open, onClose }) => {
8815
9014
  ] })
8816
9015
  ] }) }),
8817
9016
  /* @__PURE__ */ jsxs7(DialogActions2, { sx: { p: 3, pt: 1 }, children: [
8818
- /* @__PURE__ */ jsx7(
9017
+ /* @__PURE__ */ jsx8(
8819
9018
  Button5,
8820
9019
  {
8821
9020
  onClick: () => {
@@ -8833,7 +9032,7 @@ var MemoryModal = ({ open, onClose }) => {
8833
9032
  color: "primary",
8834
9033
  variant: "contained",
8835
9034
  onClick: handleBulkImport,
8836
- startIcon: /* @__PURE__ */ jsx7(CloudSyncIcon, {}),
9035
+ startIcon: /* @__PURE__ */ jsx8(CloudSyncIcon, {}),
8837
9036
  sx: { textTransform: "none", borderRadius: 3 },
8838
9037
  children: [
8839
9038
  "Import ",
@@ -8850,7 +9049,7 @@ var MemoryModal = ({ open, onClose }) => {
8850
9049
  }
8851
9050
  );
8852
9051
  if (isMobileView) {
8853
- return /* @__PURE__ */ jsx7(
9052
+ return /* @__PURE__ */ jsx8(
8854
9053
  SwipeableDrawer,
8855
9054
  {
8856
9055
  anchor: "bottom",
@@ -8874,7 +9073,7 @@ var MemoryModal = ({ open, onClose }) => {
8874
9073
  }
8875
9074
  );
8876
9075
  }
8877
- return /* @__PURE__ */ jsx7(
9076
+ return /* @__PURE__ */ jsx8(
8878
9077
  Modal2,
8879
9078
  {
8880
9079
  open,
@@ -8894,6 +9093,94 @@ var MemoryModal = ({ open, onClose }) => {
8894
9093
  var memory_modal_default = MemoryModal;
8895
9094
 
8896
9095
  export {
9096
+ AddIcon,
9097
+ CloudDoneIcon,
9098
+ CloudOffIcon,
9099
+ ErrorOutlineIcon,
9100
+ HomeIcon,
9101
+ NotesIcon,
9102
+ NotesIconOutlined,
9103
+ RecordVoiceOverIcon,
9104
+ SettingsIcon,
9105
+ SyncIcon,
9106
+ ArrowUpwardIcon,
9107
+ CloseIcon,
9108
+ ExpandMoreIcon,
9109
+ FeedbackIcon,
9110
+ GraphicEqIcon,
9111
+ HearingDisabledIcon,
9112
+ PsychologyIcon,
9113
+ ArrowDownwardIcon,
9114
+ CheckCircleIcon,
9115
+ SignalWifi2BarIcon,
9116
+ WifiOffIcon,
9117
+ DeleteIcon,
9118
+ RotateLeftIcon,
9119
+ RotateRightIcon,
9120
+ ZoomInIcon,
9121
+ ZoomOutIcon,
9122
+ WifiIcon,
9123
+ Crop169Icon,
9124
+ CropPortraitIcon,
9125
+ CropSquareIcon,
9126
+ ContentCopyIcon,
9127
+ FileUploadIcon,
9128
+ PreviewIcon,
9129
+ RestoreIcon,
9130
+ SaveIcon,
9131
+ UploadIcon,
9132
+ AutoAwesomeIcon,
9133
+ AutoStoriesIcon,
9134
+ DescriptionIcon,
9135
+ ArticleIcon,
9136
+ CheckIcon,
9137
+ CodeIcon,
9138
+ DataObjectIcon,
9139
+ DownloadIcon,
9140
+ ErrorIcon,
9141
+ FolderIcon,
9142
+ GroupIcon,
9143
+ LockIcon,
9144
+ PersonIcon,
9145
+ PictureAsPdfIcon,
9146
+ PublicIcon,
9147
+ SearchIcon,
9148
+ UploadFileIcon,
9149
+ ViewListIcon,
9150
+ ViewModuleIcon,
9151
+ HealthAndSafetyIcon,
9152
+ RefreshIcon,
9153
+ EditNoteOutlinedIcon,
9154
+ ManageAccountsOutlinedIcon,
9155
+ PlayArrowRoundedIcon,
9156
+ RocketLaunchOutlinedIcon,
9157
+ ViewModuleOutlinedIcon,
9158
+ LinkIcon,
9159
+ ArchiveIcon,
9160
+ FolderOpenIcon,
9161
+ PublishIcon,
9162
+ ChatIcon,
9163
+ CleaningServicesIcon,
9164
+ InfoIcon,
9165
+ WarningIcon,
9166
+ BrushIcon,
9167
+ BuildIcon,
9168
+ ChevronLeftIcon,
9169
+ CloudIcon,
9170
+ FaceRetouchingNaturalIcon,
9171
+ MenuBookIcon,
9172
+ StorageIcon,
9173
+ TuneIcon,
9174
+ SendIcon,
9175
+ ExpandLessIcon,
9176
+ HistoryIcon,
9177
+ InfoOutlinedIcon,
9178
+ MemoryIcon,
9179
+ FullscreenIcon,
9180
+ FullscreenExitIcon,
9181
+ MinimizeIcon,
9182
+ DragIndicatorIcon,
9183
+ MicIcon,
8897
9184
  DocumentCard_default,
8898
9185
  getHighlightTree,
8899
9186
  markdownSanitizeSchema,
@@ -8922,4 +9209,4 @@ export {
8922
9209
  FeedbackButton,
8923
9210
  useNotificationService
8924
9211
  };
8925
- //# sourceMappingURL=chunk-NZKLKZJT.mjs.map
9212
+ //# sourceMappingURL=chunk-KNBWR4DS.mjs.map