@burtson-labs/bandit-engine 2.0.153 → 2.0.155
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-4UZ5QT7B.mjs → chat-W5E6FD2Z.mjs} +5 -5
- package/dist/chat-provider.js +23 -1
- package/dist/chat-provider.js.map +1 -1
- package/dist/chat-provider.mjs +2 -2
- package/dist/{chunk-DADHPWB7.mjs → chunk-6JTXYVOW.mjs} +6 -6
- package/dist/{chunk-GQ3X6VPR.mjs → chunk-HQZXTOOK.mjs} +2 -2
- package/dist/{chunk-6KOEXQJN.mjs → chunk-IS2LWSBZ.mjs} +24 -2
- package/dist/chunk-IS2LWSBZ.mjs.map +1 -0
- package/dist/{chunk-RN7FRSMX.mjs → chunk-NTG4V34T.mjs} +426 -378
- package/dist/chunk-NTG4V34T.mjs.map +1 -0
- package/dist/{chunk-AJL3JOD6.mjs → chunk-TVPYBRWF.mjs} +2 -2
- package/dist/{chunk-2HGBMNX4.mjs → chunk-XONVE5DJ.mjs} +4 -2
- package/dist/chunk-XONVE5DJ.mjs.map +1 -0
- package/dist/{chunk-6NYYYKYZ.mjs → chunk-YWCROXF2.mjs} +5 -4
- package/dist/chunk-YWCROXF2.mjs.map +1 -0
- package/dist/index.js +3350 -3279
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/management/management.js +3216 -3145
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +5 -5
- package/dist/modals/chat-modal/chat-modal.js +822 -775
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-2HGBMNX4.mjs.map +0 -1
- package/dist/chunk-6KOEXQJN.mjs.map +0 -1
- package/dist/chunk-6NYYYKYZ.mjs.map +0 -1
- package/dist/chunk-RN7FRSMX.mjs.map +0 -1
- /package/dist/{chat-4UZ5QT7B.mjs.map → chat-W5E6FD2Z.mjs.map} +0 -0
- /package/dist/{chunk-DADHPWB7.mjs.map → chunk-6JTXYVOW.mjs.map} +0 -0
- /package/dist/{chunk-GQ3X6VPR.mjs.map → chunk-HQZXTOOK.mjs.map} +0 -0
- /package/dist/{chunk-AJL3JOD6.mjs.map → chunk-TVPYBRWF.mjs.map} +0 -0
|
@@ -1656,7 +1656,7 @@ import {
|
|
|
1656
1656
|
Toolbar,
|
|
1657
1657
|
IconButton as IconButton2,
|
|
1658
1658
|
Typography as Typography2,
|
|
1659
|
-
Box as
|
|
1659
|
+
Box as Box4,
|
|
1660
1660
|
CircularProgress,
|
|
1661
1661
|
Alert as Alert2,
|
|
1662
1662
|
Button as Button2,
|
|
@@ -1750,7 +1750,9 @@ function getHighlightTree(code, language) {
|
|
|
1750
1750
|
|
|
1751
1751
|
// src/utils/markdownRendering.tsx
|
|
1752
1752
|
import React3 from "react";
|
|
1753
|
+
import { Box as Box3 } from "@mui/material";
|
|
1753
1754
|
import { defaultSchema } from "rehype-sanitize";
|
|
1755
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1754
1756
|
var markdownSanitizeSchema = (() => {
|
|
1755
1757
|
const schema = JSON.parse(JSON.stringify(defaultSchema));
|
|
1756
1758
|
schema.tagNames = Array.from(
|
|
@@ -1794,6 +1796,50 @@ var markdownSanitizeSchema = (() => {
|
|
|
1794
1796
|
schema.strip = ["script", "style"];
|
|
1795
1797
|
return schema;
|
|
1796
1798
|
})();
|
|
1799
|
+
var MarkdownImage = ({ src, alt }) => {
|
|
1800
|
+
if (!src) return null;
|
|
1801
|
+
return /* @__PURE__ */ jsxs2(Box3, { component: "span", sx: { display: "block", my: 1 }, children: [
|
|
1802
|
+
/* @__PURE__ */ jsx3(
|
|
1803
|
+
Box3,
|
|
1804
|
+
{
|
|
1805
|
+
component: "img",
|
|
1806
|
+
src,
|
|
1807
|
+
alt: alt || "Image",
|
|
1808
|
+
loading: "lazy",
|
|
1809
|
+
sx: {
|
|
1810
|
+
display: "block",
|
|
1811
|
+
maxWidth: "min(480px, 100%)",
|
|
1812
|
+
maxHeight: 420,
|
|
1813
|
+
width: "auto",
|
|
1814
|
+
height: "auto",
|
|
1815
|
+
borderRadius: 2,
|
|
1816
|
+
border: "1px solid",
|
|
1817
|
+
borderColor: "divider"
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
),
|
|
1821
|
+
/* @__PURE__ */ jsx3(
|
|
1822
|
+
Box3,
|
|
1823
|
+
{
|
|
1824
|
+
component: "a",
|
|
1825
|
+
href: src,
|
|
1826
|
+
download: true,
|
|
1827
|
+
target: "_blank",
|
|
1828
|
+
rel: "noreferrer noopener",
|
|
1829
|
+
sx: {
|
|
1830
|
+
display: "inline-block",
|
|
1831
|
+
mt: 0.5,
|
|
1832
|
+
fontSize: 13,
|
|
1833
|
+
fontWeight: 600,
|
|
1834
|
+
color: "primary.main",
|
|
1835
|
+
textDecoration: "none",
|
|
1836
|
+
"&:hover": { textDecoration: "underline" }
|
|
1837
|
+
},
|
|
1838
|
+
children: "Save image"
|
|
1839
|
+
}
|
|
1840
|
+
)
|
|
1841
|
+
] });
|
|
1842
|
+
};
|
|
1797
1843
|
var renderLowlightChildren = (nodes, keyPrefix) => nodes.map((node, index) => {
|
|
1798
1844
|
if (node.type === "text") {
|
|
1799
1845
|
return node.value;
|
|
@@ -1819,7 +1865,7 @@ var renderLowlightChildren = (nodes, keyPrefix) => nodes.map((node, index) => {
|
|
|
1819
1865
|
});
|
|
1820
1866
|
|
|
1821
1867
|
// src/modals/knowlege/knowledge-file-modal.tsx
|
|
1822
|
-
import { Fragment, jsx as
|
|
1868
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1823
1869
|
var getFileTypeInfo2 = (filename) => {
|
|
1824
1870
|
const ext = filename.split(".").pop()?.toLowerCase() || "";
|
|
1825
1871
|
const languageMap = {
|
|
@@ -2199,14 +2245,14 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2199
2245
|
debugLogger.error("Vector document download failed", { error: err, docId: doc.id });
|
|
2200
2246
|
}
|
|
2201
2247
|
};
|
|
2202
|
-
return /* @__PURE__ */
|
|
2203
|
-
/* @__PURE__ */
|
|
2204
|
-
/* @__PURE__ */
|
|
2205
|
-
doc && /* @__PURE__ */
|
|
2248
|
+
return /* @__PURE__ */ jsxs3(Dialog, { fullScreen: true, open, onClose, children: [
|
|
2249
|
+
/* @__PURE__ */ jsx4(AppBar, { sx: { position: "relative" }, children: /* @__PURE__ */ jsxs3(Toolbar, { children: [
|
|
2250
|
+
/* @__PURE__ */ jsxs3(Box4, { sx: { display: "flex", alignItems: "center", flex: 1, minWidth: 0 }, children: [
|
|
2251
|
+
doc && /* @__PURE__ */ jsx4(Box4, { sx: { mr: 1, flexShrink: 0 }, children: (() => {
|
|
2206
2252
|
const fileInfo = getFileTypeInfo2(doc.name);
|
|
2207
2253
|
const IconComponent = fileInfo.icon;
|
|
2208
|
-
return /* @__PURE__ */
|
|
2209
|
-
|
|
2254
|
+
return /* @__PURE__ */ jsx4(Tooltip2, { title: `${fileInfo.category} file`, placement: "bottom", children: /* @__PURE__ */ jsxs3(
|
|
2255
|
+
Box4,
|
|
2210
2256
|
{
|
|
2211
2257
|
sx: {
|
|
2212
2258
|
display: "flex",
|
|
@@ -2220,13 +2266,13 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2220
2266
|
fontWeight: "bold"
|
|
2221
2267
|
},
|
|
2222
2268
|
children: [
|
|
2223
|
-
/* @__PURE__ */
|
|
2269
|
+
/* @__PURE__ */ jsx4(IconComponent, { sx: { fontSize: "1rem", mr: 0.5 } }),
|
|
2224
2270
|
fileInfo.language || fileInfo.category
|
|
2225
2271
|
]
|
|
2226
2272
|
}
|
|
2227
2273
|
) });
|
|
2228
2274
|
})() }),
|
|
2229
|
-
/* @__PURE__ */
|
|
2275
|
+
/* @__PURE__ */ jsx4(Tooltip2, { title: doc?.name || "", placement: "bottom-start", children: /* @__PURE__ */ jsx4(
|
|
2230
2276
|
Typography2,
|
|
2231
2277
|
{
|
|
2232
2278
|
sx: {
|
|
@@ -2254,7 +2300,7 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2254
2300
|
children: doc?.name
|
|
2255
2301
|
}
|
|
2256
2302
|
) }),
|
|
2257
|
-
/* @__PURE__ */
|
|
2303
|
+
/* @__PURE__ */ jsx4(Box4, { sx: { display: "flex", alignItems: "center", flexShrink: 0, ml: 1 }, children: isPDF(doc?.name || "") && totalPages > 0 && /* @__PURE__ */ jsxs3(Typography2, { component: "span", variant: "body2", sx: { opacity: 0.8 }, children: [
|
|
2258
2304
|
"(",
|
|
2259
2305
|
totalPages,
|
|
2260
2306
|
" page",
|
|
@@ -2262,8 +2308,8 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2262
2308
|
")"
|
|
2263
2309
|
] }) })
|
|
2264
2310
|
] }),
|
|
2265
|
-
/* @__PURE__ */
|
|
2266
|
-
!isPDF(doc?.name || "") && isCodeFile(doc?.name || "") && /* @__PURE__ */
|
|
2311
|
+
/* @__PURE__ */ jsxs3(Box4, { sx: { display: "flex", alignItems: "center", flexShrink: 0, gap: 1 }, children: [
|
|
2312
|
+
!isPDF(doc?.name || "") && isCodeFile(doc?.name || "") && /* @__PURE__ */ jsxs3(
|
|
2267
2313
|
ToggleButtonGroup,
|
|
2268
2314
|
{
|
|
2269
2315
|
value: viewMode,
|
|
@@ -2271,38 +2317,38 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2271
2317
|
onChange: (e, newMode) => newMode && setViewMode(newMode),
|
|
2272
2318
|
size: "small",
|
|
2273
2319
|
children: [
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
/* @__PURE__ */
|
|
2320
|
+
/* @__PURE__ */ jsxs3(ToggleButton, { value: "formatted", sx: { color: "inherit" }, children: [
|
|
2321
|
+
/* @__PURE__ */ jsx4(CodeIcon, { sx: { mr: 1, fontSize: "1rem" } }),
|
|
2276
2322
|
"Formatted"
|
|
2277
2323
|
] }),
|
|
2278
|
-
/* @__PURE__ */
|
|
2279
|
-
/* @__PURE__ */
|
|
2324
|
+
/* @__PURE__ */ jsxs3(ToggleButton, { value: "raw", sx: { color: "inherit" }, children: [
|
|
2325
|
+
/* @__PURE__ */ jsx4(TextFieldsIcon, { sx: { mr: 1, fontSize: "1rem" } }),
|
|
2280
2326
|
"Raw"
|
|
2281
2327
|
] })
|
|
2282
2328
|
]
|
|
2283
2329
|
}
|
|
2284
2330
|
),
|
|
2285
|
-
isPDF(doc?.name || "") && pdfDocument && !isMobile && /* @__PURE__ */
|
|
2286
|
-
/* @__PURE__ */
|
|
2331
|
+
isPDF(doc?.name || "") && pdfDocument && !isMobile && /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
2332
|
+
/* @__PURE__ */ jsx4(
|
|
2287
2333
|
Button2,
|
|
2288
2334
|
{
|
|
2289
2335
|
color: "inherit",
|
|
2290
|
-
startIcon: /* @__PURE__ */
|
|
2336
|
+
startIcon: /* @__PURE__ */ jsx4(ZoomOutIcon, {}),
|
|
2291
2337
|
onClick: handleZoomOut,
|
|
2292
2338
|
disabled: pdfScale <= 0.5,
|
|
2293
2339
|
size: "small",
|
|
2294
2340
|
children: "Zoom Out"
|
|
2295
2341
|
}
|
|
2296
2342
|
),
|
|
2297
|
-
/* @__PURE__ */
|
|
2343
|
+
/* @__PURE__ */ jsxs3(Typography2, { variant: "body2", sx: { color: "inherit", mx: 1 }, children: [
|
|
2298
2344
|
Math.round(pdfScale * 100),
|
|
2299
2345
|
"%"
|
|
2300
2346
|
] }),
|
|
2301
|
-
/* @__PURE__ */
|
|
2347
|
+
/* @__PURE__ */ jsx4(
|
|
2302
2348
|
Button2,
|
|
2303
2349
|
{
|
|
2304
2350
|
color: "inherit",
|
|
2305
|
-
startIcon: /* @__PURE__ */
|
|
2351
|
+
startIcon: /* @__PURE__ */ jsx4(ZoomInIcon, {}),
|
|
2306
2352
|
onClick: handleZoomIn,
|
|
2307
2353
|
disabled: pdfScale >= 3,
|
|
2308
2354
|
size: "small",
|
|
@@ -2310,17 +2356,17 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2310
2356
|
}
|
|
2311
2357
|
)
|
|
2312
2358
|
] }),
|
|
2313
|
-
isVectorDocument && /* @__PURE__ */
|
|
2314
|
-
/* @__PURE__ */
|
|
2359
|
+
isVectorDocument && /* @__PURE__ */ jsx4(IconButton2, { edge: "end", color: "inherit", onClick: handleDownload, children: /* @__PURE__ */ jsx4(DownloadIcon, {}) }),
|
|
2360
|
+
/* @__PURE__ */ jsx4(IconButton2, { edge: "end", color: "inherit", onClick: onClose, children: /* @__PURE__ */ jsx4(CloseIcon, {}) })
|
|
2315
2361
|
] })
|
|
2316
2362
|
] }) }),
|
|
2317
|
-
/* @__PURE__ */
|
|
2318
|
-
loading && /* @__PURE__ */
|
|
2319
|
-
/* @__PURE__ */
|
|
2320
|
-
/* @__PURE__ */
|
|
2363
|
+
/* @__PURE__ */ jsxs3(Box4, { sx: { p: 3, bgcolor: "background.default", height: "100%", overflowY: "auto" }, children: [
|
|
2364
|
+
loading && /* @__PURE__ */ jsxs3(Box4, { sx: { display: "flex", justifyContent: "center", alignItems: "center", height: "50vh" }, children: [
|
|
2365
|
+
/* @__PURE__ */ jsx4(CircularProgress, {}),
|
|
2366
|
+
/* @__PURE__ */ jsx4(Typography2, { sx: { ml: 2 }, children: isPDF(doc?.name || "") ? "Loading PDF document..." : "Loading full file content..." })
|
|
2321
2367
|
] }),
|
|
2322
|
-
error && /* @__PURE__ */
|
|
2323
|
-
!loading && isPDF(doc?.name || "") && pdfCanvases.length > 0 && /* @__PURE__ */
|
|
2368
|
+
error && /* @__PURE__ */ jsx4(Alert2, { severity: "warning", sx: { mb: 2 }, children: error }),
|
|
2369
|
+
!loading && isPDF(doc?.name || "") && pdfCanvases.length > 0 && /* @__PURE__ */ jsx4(Box4, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: 2 }, children: pdfCanvases.map((canvas, index) => /* @__PURE__ */ jsxs3(
|
|
2324
2370
|
Paper,
|
|
2325
2371
|
{
|
|
2326
2372
|
elevation: 3,
|
|
@@ -2353,14 +2399,14 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2353
2399
|
scrollbarColor: isDarkTheme ? "#555 #2d2d2d" : "#c1c1c1 #f5f5f5"
|
|
2354
2400
|
},
|
|
2355
2401
|
children: [
|
|
2356
|
-
/* @__PURE__ */
|
|
2402
|
+
/* @__PURE__ */ jsxs3(Typography2, { variant: "caption", color: "text.secondary", sx: { mb: 1, display: "block" }, children: [
|
|
2357
2403
|
"Page ",
|
|
2358
2404
|
index + 1,
|
|
2359
2405
|
" of ",
|
|
2360
2406
|
totalPages
|
|
2361
2407
|
] }),
|
|
2362
|
-
/* @__PURE__ */
|
|
2363
|
-
|
|
2408
|
+
/* @__PURE__ */ jsx4(
|
|
2409
|
+
Box4,
|
|
2364
2410
|
{
|
|
2365
2411
|
ref: (el) => {
|
|
2366
2412
|
if (el && canvas) {
|
|
@@ -2383,18 +2429,18 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2383
2429
|
},
|
|
2384
2430
|
index
|
|
2385
2431
|
)) }),
|
|
2386
|
-
!loading && !isPDF(doc?.name || "") && /* @__PURE__ */
|
|
2387
|
-
/* @__PURE__ */
|
|
2388
|
-
/* @__PURE__ */
|
|
2432
|
+
!loading && !isPDF(doc?.name || "") && /* @__PURE__ */ jsx4(Box4, { children: isCodeFile(doc?.name || "") && viewMode === "formatted" ? /* @__PURE__ */ jsxs3(Box4, { children: [
|
|
2433
|
+
/* @__PURE__ */ jsxs3(Box4, { sx: { mb: 2, display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
2434
|
+
/* @__PURE__ */ jsxs3(Typography2, { variant: "body2", color: "text.secondary", children: [
|
|
2389
2435
|
"Syntax highlighted as ",
|
|
2390
|
-
/* @__PURE__ */
|
|
2436
|
+
/* @__PURE__ */ jsx4("strong", { children: getLanguageFromFilename(doc?.name || "").toUpperCase() })
|
|
2391
2437
|
] }),
|
|
2392
|
-
/* @__PURE__ */
|
|
2438
|
+
/* @__PURE__ */ jsxs3(Typography2, { variant: "caption", color: "text.secondary", children: [
|
|
2393
2439
|
(fullContent || doc?.content || "").split("\n").length,
|
|
2394
2440
|
" lines"
|
|
2395
2441
|
] })
|
|
2396
2442
|
] }),
|
|
2397
|
-
/* @__PURE__ */
|
|
2443
|
+
/* @__PURE__ */ jsx4(
|
|
2398
2444
|
Paper,
|
|
2399
2445
|
{
|
|
2400
2446
|
elevation: 1,
|
|
@@ -2437,8 +2483,8 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2437
2483
|
overflowWrap: "anywhere"
|
|
2438
2484
|
}
|
|
2439
2485
|
},
|
|
2440
|
-
children: /* @__PURE__ */
|
|
2441
|
-
|
|
2486
|
+
children: /* @__PURE__ */ jsx4(
|
|
2487
|
+
Box4,
|
|
2442
2488
|
{
|
|
2443
2489
|
sx: {
|
|
2444
2490
|
"& .hljs": {
|
|
@@ -2473,12 +2519,12 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2473
2519
|
color: isDarkTheme ? "#f07178" : "#d97706"
|
|
2474
2520
|
}
|
|
2475
2521
|
},
|
|
2476
|
-
children: /* @__PURE__ */
|
|
2522
|
+
children: /* @__PURE__ */ jsx4("pre", { className: `hljs language-${resolvedHighlightLanguage || "text"}`, children: /* @__PURE__ */ jsx4("code", { className: "hljs", children: highlightedNodes.length > 0 ? highlightedNodes : formattedContent }) })
|
|
2477
2523
|
}
|
|
2478
2524
|
)
|
|
2479
2525
|
}
|
|
2480
2526
|
)
|
|
2481
|
-
] }) : /* @__PURE__ */
|
|
2527
|
+
] }) : /* @__PURE__ */ jsx4(
|
|
2482
2528
|
Typography2,
|
|
2483
2529
|
{
|
|
2484
2530
|
component: "pre",
|
|
@@ -2499,14 +2545,14 @@ var KnowledgeFileModal = ({ open, onClose, doc, isVectorDocument = false }) => {
|
|
|
2499
2545
|
children: fullContent || doc?.content
|
|
2500
2546
|
}
|
|
2501
2547
|
) }),
|
|
2502
|
-
!loading && isPDF(doc?.name || "") && pdfCanvases.length === 0 && !error && /* @__PURE__ */
|
|
2503
|
-
/* @__PURE__ */
|
|
2504
|
-
/* @__PURE__ */
|
|
2505
|
-
isVectorDocument && /* @__PURE__ */
|
|
2548
|
+
!loading && isPDF(doc?.name || "") && pdfCanvases.length === 0 && !error && /* @__PURE__ */ jsxs3(Box4, { sx: { textAlign: "center", py: 4 }, children: [
|
|
2549
|
+
/* @__PURE__ */ jsx4(Typography2, { variant: "h6", color: "text.secondary", gutterBottom: true, children: "PDF Preview Not Available" }),
|
|
2550
|
+
/* @__PURE__ */ jsx4(Typography2, { variant: "body2", color: "text.secondary", children: "This PDF file cannot be previewed. You can download it to view the full content." }),
|
|
2551
|
+
isVectorDocument && /* @__PURE__ */ jsx4(
|
|
2506
2552
|
Button2,
|
|
2507
2553
|
{
|
|
2508
2554
|
variant: "contained",
|
|
2509
|
-
startIcon: /* @__PURE__ */
|
|
2555
|
+
startIcon: /* @__PURE__ */ jsx4(DownloadIcon, {}),
|
|
2510
2556
|
onClick: handleDownload,
|
|
2511
2557
|
sx: { mt: 2 },
|
|
2512
2558
|
children: "Download PDF"
|
|
@@ -2526,7 +2572,7 @@ import rehypeRaw from "rehype-raw";
|
|
|
2526
2572
|
import rehypeSanitize from "rehype-sanitize";
|
|
2527
2573
|
import {
|
|
2528
2574
|
Avatar,
|
|
2529
|
-
Box as
|
|
2575
|
+
Box as Box6,
|
|
2530
2576
|
IconButton as IconButton4,
|
|
2531
2577
|
Modal,
|
|
2532
2578
|
Tooltip as Tooltip4,
|
|
@@ -2575,9 +2621,9 @@ var maybeHandleFileLinkClick = (event, href) => {
|
|
|
2575
2621
|
|
|
2576
2622
|
// src/modals/chat-modal/ai-response-action-bar.tsx
|
|
2577
2623
|
import { useState as useState4, useEffect as useEffect4 } from "react";
|
|
2578
|
-
import { Box as
|
|
2624
|
+
import { Box as Box5, CircularProgress as CircularProgress2, IconButton as IconButton3, Tooltip as Tooltip3 } from "@mui/material";
|
|
2579
2625
|
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, PanelRight as CanvasIcon } from "lucide-react";
|
|
2580
|
-
import { Fragment as Fragment2, jsx as
|
|
2626
|
+
import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2581
2627
|
var AiResponseActionsBar = ({ text }) => {
|
|
2582
2628
|
const [copied, setCopied] = useState4(false);
|
|
2583
2629
|
const openCanvas = useCanvasStore((s) => s.openCanvas);
|
|
@@ -2660,8 +2706,8 @@ var AiResponseActionsBar = ({ text }) => {
|
|
|
2660
2706
|
const handleFeedback = (type) => {
|
|
2661
2707
|
setFeedback(type);
|
|
2662
2708
|
};
|
|
2663
|
-
return /* @__PURE__ */
|
|
2664
|
-
/* @__PURE__ */
|
|
2709
|
+
return /* @__PURE__ */ jsxs4(Box5, { sx: { mt: 2, display: "flex", gap: 2, alignItems: "center", flexWrap: "wrap" }, children: [
|
|
2710
|
+
/* @__PURE__ */ jsx5(Tooltip3, { title: copied ? "Copied!" : "Copy entire response", children: /* @__PURE__ */ jsx5(
|
|
2665
2711
|
IconButton3,
|
|
2666
2712
|
{
|
|
2667
2713
|
onClick: handleCopy,
|
|
@@ -2672,10 +2718,10 @@ var AiResponseActionsBar = ({ text }) => {
|
|
|
2672
2718
|
color: (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
|
|
2673
2719
|
}
|
|
2674
2720
|
},
|
|
2675
|
-
children: copied ? /* @__PURE__ */
|
|
2721
|
+
children: copied ? /* @__PURE__ */ jsx5(CheckIcon2, { size: 18 }) : /* @__PURE__ */ jsx5(ContentCopyIcon2, { size: 18 })
|
|
2676
2722
|
}
|
|
2677
2723
|
) }),
|
|
2678
|
-
/* @__PURE__ */
|
|
2724
|
+
/* @__PURE__ */ jsx5(Tooltip3, { title: "Open in canvas \u2014 edit & export", children: /* @__PURE__ */ jsx5(
|
|
2679
2725
|
IconButton3,
|
|
2680
2726
|
{
|
|
2681
2727
|
onClick: openInCanvas,
|
|
@@ -2686,15 +2732,15 @@ var AiResponseActionsBar = ({ text }) => {
|
|
|
2686
2732
|
color: (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
|
|
2687
2733
|
}
|
|
2688
2734
|
},
|
|
2689
|
-
children: /* @__PURE__ */
|
|
2735
|
+
children: /* @__PURE__ */ jsx5(CanvasIcon, { size: 18 })
|
|
2690
2736
|
}
|
|
2691
2737
|
) }),
|
|
2692
|
-
isTTSAvailable && /* @__PURE__ */
|
|
2693
|
-
/* @__PURE__ */
|
|
2738
|
+
isTTSAvailable && /* @__PURE__ */ jsxs4(Fragment2, { children: [
|
|
2739
|
+
/* @__PURE__ */ jsx5(
|
|
2694
2740
|
Tooltip3,
|
|
2695
2741
|
{
|
|
2696
2742
|
title: !isTTSAvailable ? "TTS not available - check configuration" : isLoading ? "Loading audio..." : isPaused ? "Resume playback" : isPlaying ? "Playing audio..." : "Play response with voice",
|
|
2697
|
-
children: /* @__PURE__ */
|
|
2743
|
+
children: /* @__PURE__ */ jsx5(
|
|
2698
2744
|
IconButton3,
|
|
2699
2745
|
{
|
|
2700
2746
|
onClick: handleTTSClick,
|
|
@@ -2709,12 +2755,12 @@ var AiResponseActionsBar = ({ text }) => {
|
|
|
2709
2755
|
color: (theme) => theme.palette.mode === "dark" ? "#666" : "#aaa"
|
|
2710
2756
|
}
|
|
2711
2757
|
},
|
|
2712
|
-
children: isLoading ? /* @__PURE__ */
|
|
2758
|
+
children: isLoading ? /* @__PURE__ */ jsx5(CircularProgress2, { size: 18 }) : isPaused ? /* @__PURE__ */ jsx5(PlayArrowIcon2, { size: 18 }) : !isPlaying ? /* @__PURE__ */ jsx5(CampaignOutlined, { size: 18 }) : /* @__PURE__ */ jsx5(CampaignRounded, { size: 18, color: "#4caf50" })
|
|
2713
2759
|
}
|
|
2714
2760
|
)
|
|
2715
2761
|
}
|
|
2716
2762
|
),
|
|
2717
|
-
isPlaying && /* @__PURE__ */
|
|
2763
|
+
isPlaying && /* @__PURE__ */ jsx5(Tooltip3, { title: "Pause playback", children: /* @__PURE__ */ jsx5(
|
|
2718
2764
|
IconButton3,
|
|
2719
2765
|
{
|
|
2720
2766
|
onClick: () => ttsPause(),
|
|
@@ -2725,10 +2771,10 @@ var AiResponseActionsBar = ({ text }) => {
|
|
|
2725
2771
|
color: (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
|
|
2726
2772
|
}
|
|
2727
2773
|
},
|
|
2728
|
-
children: /* @__PURE__ */
|
|
2774
|
+
children: /* @__PURE__ */ jsx5(PauseIcon, { size: 18 })
|
|
2729
2775
|
}
|
|
2730
2776
|
) }),
|
|
2731
|
-
(isPlaying || isPaused) && /* @__PURE__ */
|
|
2777
|
+
(isPlaying || isPaused) && /* @__PURE__ */ jsx5(Tooltip3, { title: "Stop playback", children: /* @__PURE__ */ jsx5(
|
|
2732
2778
|
IconButton3,
|
|
2733
2779
|
{
|
|
2734
2780
|
onClick: () => ttsStop(),
|
|
@@ -2739,11 +2785,11 @@ var AiResponseActionsBar = ({ text }) => {
|
|
|
2739
2785
|
color: (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
|
|
2740
2786
|
}
|
|
2741
2787
|
},
|
|
2742
|
-
children: /* @__PURE__ */
|
|
2788
|
+
children: /* @__PURE__ */ jsx5(StopIcon, { size: 18 })
|
|
2743
2789
|
}
|
|
2744
2790
|
) })
|
|
2745
2791
|
] }),
|
|
2746
|
-
/* @__PURE__ */
|
|
2792
|
+
/* @__PURE__ */ jsx5(Tooltip3, { title: "Like this response", children: /* @__PURE__ */ jsx5(
|
|
2747
2793
|
IconButton3,
|
|
2748
2794
|
{
|
|
2749
2795
|
onClick: () => handleFeedback("like"),
|
|
@@ -2754,10 +2800,10 @@ var AiResponseActionsBar = ({ text }) => {
|
|
|
2754
2800
|
color: feedback === "like" ? "#00e676" : (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
|
|
2755
2801
|
}
|
|
2756
2802
|
},
|
|
2757
|
-
children: /* @__PURE__ */
|
|
2803
|
+
children: /* @__PURE__ */ jsx5(ThumbUpIcon, { size: 18 })
|
|
2758
2804
|
}
|
|
2759
2805
|
) }),
|
|
2760
|
-
/* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ jsx5(Tooltip3, { title: "Dislike this response", children: /* @__PURE__ */ jsx5(
|
|
2761
2807
|
IconButton3,
|
|
2762
2808
|
{
|
|
2763
2809
|
onClick: () => handleFeedback("dislike"),
|
|
@@ -2767,7 +2813,7 @@ var AiResponseActionsBar = ({ text }) => {
|
|
|
2767
2813
|
color: feedback === "dislike" ? "#ff1744" : (theme) => theme.palette.mode === "dark" ? "#fff" : "#000"
|
|
2768
2814
|
}
|
|
2769
2815
|
},
|
|
2770
|
-
children: /* @__PURE__ */
|
|
2816
|
+
children: /* @__PURE__ */ jsx5(ThumbDownIcon, { size: 18 })
|
|
2771
2817
|
}
|
|
2772
2818
|
) })
|
|
2773
2819
|
] });
|
|
@@ -2775,7 +2821,7 @@ var AiResponseActionsBar = ({ text }) => {
|
|
|
2775
2821
|
var ai_response_action_bar_default = AiResponseActionsBar;
|
|
2776
2822
|
|
|
2777
2823
|
// src/modals/chat-modal/ai-response-text-field.tsx
|
|
2778
|
-
import { Fragment as Fragment3, jsx as
|
|
2824
|
+
import { Fragment as Fragment3, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2779
2825
|
var brainIcon = "https://cdn.burtson.ai/images/brain-icon.png";
|
|
2780
2826
|
var normalizeTables = (markdown2) => {
|
|
2781
2827
|
const lines = markdown2.split("\n");
|
|
@@ -2890,7 +2936,7 @@ var MarkdownCodeBlock = ({
|
|
|
2890
2936
|
variable: "#d97706"
|
|
2891
2937
|
};
|
|
2892
2938
|
if (!isProbablyBlock) {
|
|
2893
|
-
return /* @__PURE__ */
|
|
2939
|
+
return /* @__PURE__ */ jsx6(
|
|
2894
2940
|
"code",
|
|
2895
2941
|
{
|
|
2896
2942
|
style: {
|
|
@@ -2903,8 +2949,8 @@ var MarkdownCodeBlock = ({
|
|
|
2903
2949
|
}
|
|
2904
2950
|
);
|
|
2905
2951
|
}
|
|
2906
|
-
return /* @__PURE__ */
|
|
2907
|
-
|
|
2952
|
+
return /* @__PURE__ */ jsxs5(
|
|
2953
|
+
Box6,
|
|
2908
2954
|
{
|
|
2909
2955
|
sx: {
|
|
2910
2956
|
borderRadius: "4px",
|
|
@@ -2921,8 +2967,8 @@ var MarkdownCodeBlock = ({
|
|
|
2921
2967
|
maxWidth: "100%"
|
|
2922
2968
|
},
|
|
2923
2969
|
children: [
|
|
2924
|
-
/* @__PURE__ */
|
|
2925
|
-
|
|
2970
|
+
/* @__PURE__ */ jsxs5(
|
|
2971
|
+
Box6,
|
|
2926
2972
|
{
|
|
2927
2973
|
sx: {
|
|
2928
2974
|
px: 2,
|
|
@@ -2937,8 +2983,8 @@ var MarkdownCodeBlock = ({
|
|
|
2937
2983
|
fontFamily: "inherit"
|
|
2938
2984
|
},
|
|
2939
2985
|
children: [
|
|
2940
|
-
/* @__PURE__ */
|
|
2941
|
-
/* @__PURE__ */
|
|
2986
|
+
/* @__PURE__ */ jsx6("span", { children: languageLabel }),
|
|
2987
|
+
/* @__PURE__ */ jsx6(Tooltip4, { title: copied ? "Copied!" : "Copy", arrow: true, children: /* @__PURE__ */ jsx6(
|
|
2942
2988
|
IconButton4,
|
|
2943
2989
|
{
|
|
2944
2990
|
size: "small",
|
|
@@ -2948,14 +2994,14 @@ var MarkdownCodeBlock = ({
|
|
|
2948
2994
|
"&:hover": { color: theme.palette.text.primary },
|
|
2949
2995
|
padding: "4px"
|
|
2950
2996
|
},
|
|
2951
|
-
children: copied ? /* @__PURE__ */
|
|
2997
|
+
children: copied ? /* @__PURE__ */ jsx6(CheckIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx6(ContentCopyIcon, { fontSize: "small" })
|
|
2952
2998
|
}
|
|
2953
2999
|
) })
|
|
2954
3000
|
]
|
|
2955
3001
|
}
|
|
2956
3002
|
),
|
|
2957
|
-
/* @__PURE__ */
|
|
2958
|
-
|
|
3003
|
+
/* @__PURE__ */ jsx6(
|
|
3004
|
+
Box6,
|
|
2959
3005
|
{
|
|
2960
3006
|
sx: {
|
|
2961
3007
|
overflowX: "auto",
|
|
@@ -2989,7 +3035,7 @@ var MarkdownCodeBlock = ({
|
|
|
2989
3035
|
color: highlightColors.variable
|
|
2990
3036
|
}
|
|
2991
3037
|
},
|
|
2992
|
-
children: /* @__PURE__ */
|
|
3038
|
+
children: /* @__PURE__ */ jsx6("pre", { className: `hljs language-${languageClass}`, ...props, children: /* @__PURE__ */ jsx6("code", { className: "hljs", children: highlightedNodes }) })
|
|
2993
3039
|
}
|
|
2994
3040
|
)
|
|
2995
3041
|
]
|
|
@@ -3153,10 +3199,11 @@ var AIResponseTextField = ({
|
|
|
3153
3199
|
${sourcesMarkdownList.join("\n")}`;
|
|
3154
3200
|
}, [response, sourcesMarkdownList]);
|
|
3155
3201
|
const components = {
|
|
3202
|
+
img: MarkdownImage,
|
|
3156
3203
|
mark({ children, node: _node, className, style, ...markProps }) {
|
|
3157
3204
|
const contentText = React5.Children.toArray(children).map((child) => typeof child === "string" ? child : "").join("").trim();
|
|
3158
|
-
return /* @__PURE__ */
|
|
3159
|
-
|
|
3205
|
+
return /* @__PURE__ */ jsx6(
|
|
3206
|
+
Box6,
|
|
3160
3207
|
{
|
|
3161
3208
|
component: "span",
|
|
3162
3209
|
className,
|
|
@@ -3181,7 +3228,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3181
3228
|
);
|
|
3182
3229
|
},
|
|
3183
3230
|
code({ inline, className, children, node: _node, ...codeProps }) {
|
|
3184
|
-
return /* @__PURE__ */
|
|
3231
|
+
return /* @__PURE__ */ jsx6(
|
|
3185
3232
|
MarkdownCodeBlock,
|
|
3186
3233
|
{
|
|
3187
3234
|
inline,
|
|
@@ -3194,7 +3241,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3194
3241
|
);
|
|
3195
3242
|
},
|
|
3196
3243
|
a({ href, children, node: _node, style, ...anchorProps }) {
|
|
3197
|
-
return /* @__PURE__ */
|
|
3244
|
+
return /* @__PURE__ */ jsx6(
|
|
3198
3245
|
"a",
|
|
3199
3246
|
{
|
|
3200
3247
|
href,
|
|
@@ -3218,8 +3265,8 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3218
3265
|
if (typeof inner === "string" && inner.trim().toUpperCase() === "CODE") {
|
|
3219
3266
|
return null;
|
|
3220
3267
|
}
|
|
3221
|
-
return /* @__PURE__ */
|
|
3222
|
-
|
|
3268
|
+
return /* @__PURE__ */ jsx6(
|
|
3269
|
+
Box6,
|
|
3223
3270
|
{
|
|
3224
3271
|
sx: {
|
|
3225
3272
|
fontFamily: "monospace",
|
|
@@ -3236,7 +3283,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3236
3283
|
}
|
|
3237
3284
|
);
|
|
3238
3285
|
}
|
|
3239
|
-
return /* @__PURE__ */
|
|
3286
|
+
return /* @__PURE__ */ jsx6("em", { className, style, ...emProps, children });
|
|
3240
3287
|
},
|
|
3241
3288
|
ol({ children, node: _node, style, ...orderedListProps }) {
|
|
3242
3289
|
const childArray = React5.Children.toArray(children);
|
|
@@ -3248,7 +3295,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3248
3295
|
}
|
|
3249
3296
|
if (typeof item === "string" && item.trim().startsWith(":")) {
|
|
3250
3297
|
cleanedChildren.push(
|
|
3251
|
-
/* @__PURE__ */
|
|
3298
|
+
/* @__PURE__ */ jsx6(
|
|
3252
3299
|
Typography3,
|
|
3253
3300
|
{
|
|
3254
3301
|
sx: {
|
|
@@ -3267,7 +3314,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3267
3314
|
cleanedChildren.push(item);
|
|
3268
3315
|
}
|
|
3269
3316
|
}
|
|
3270
|
-
return /* @__PURE__ */
|
|
3317
|
+
return /* @__PURE__ */ jsx6(
|
|
3271
3318
|
"ol",
|
|
3272
3319
|
{
|
|
3273
3320
|
...orderedListProps,
|
|
@@ -3282,7 +3329,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3282
3329
|
);
|
|
3283
3330
|
},
|
|
3284
3331
|
ul({ children, node: _node, style, ...unorderedListProps }) {
|
|
3285
|
-
return /* @__PURE__ */
|
|
3332
|
+
return /* @__PURE__ */ jsx6(
|
|
3286
3333
|
"ul",
|
|
3287
3334
|
{
|
|
3288
3335
|
...unorderedListProps,
|
|
@@ -3317,11 +3364,11 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3317
3364
|
const rest = childArray.slice(1);
|
|
3318
3365
|
const isAllInline = rest.every(
|
|
3319
3366
|
(el) => typeof el === "string" || React5.isValidElement(el) && // allow inline tags, but not <Box>
|
|
3320
|
-
el.type !==
|
|
3367
|
+
el.type !== Box6
|
|
3321
3368
|
);
|
|
3322
3369
|
if (isAllInline) {
|
|
3323
3370
|
const displayLabel = labelText.replace(/:\s*$/, "");
|
|
3324
|
-
return /* @__PURE__ */
|
|
3371
|
+
return /* @__PURE__ */ jsxs5(
|
|
3325
3372
|
"li",
|
|
3326
3373
|
{
|
|
3327
3374
|
style: {
|
|
@@ -3332,11 +3379,11 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3332
3379
|
},
|
|
3333
3380
|
...listItemProps,
|
|
3334
3381
|
children: [
|
|
3335
|
-
/* @__PURE__ */
|
|
3382
|
+
/* @__PURE__ */ jsxs5("strong", { children: [
|
|
3336
3383
|
displayLabel,
|
|
3337
3384
|
":"
|
|
3338
3385
|
] }),
|
|
3339
|
-
rest.length > 0 && /* @__PURE__ */
|
|
3386
|
+
rest.length > 0 && /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
3340
3387
|
" ",
|
|
3341
3388
|
rest
|
|
3342
3389
|
] })
|
|
@@ -3346,16 +3393,16 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3346
3393
|
}
|
|
3347
3394
|
}
|
|
3348
3395
|
}
|
|
3349
|
-
if (childArray.length === 2 && React5.isValidElement(childArray[0]) && childArray[0].type === "strong" && React5.isValidElement(childArray[1]) && childArray[1].type ===
|
|
3396
|
+
if (childArray.length === 2 && React5.isValidElement(childArray[0]) && childArray[0].type === "strong" && React5.isValidElement(childArray[1]) && childArray[1].type === Box6) {
|
|
3350
3397
|
const label = childArray[0].props.children;
|
|
3351
3398
|
const desc = childArray[1].props.children;
|
|
3352
|
-
return /* @__PURE__ */
|
|
3399
|
+
return /* @__PURE__ */ jsx6(
|
|
3353
3400
|
"li",
|
|
3354
3401
|
{
|
|
3355
3402
|
style: { marginBottom: "0.5rem", lineHeight: 1.4, whiteSpace: "pre-wrap" },
|
|
3356
3403
|
...listItemProps,
|
|
3357
|
-
children: /* @__PURE__ */
|
|
3358
|
-
/* @__PURE__ */
|
|
3404
|
+
children: /* @__PURE__ */ jsxs5("span", { children: [
|
|
3405
|
+
/* @__PURE__ */ jsx6("strong", { children: label }),
|
|
3359
3406
|
" ",
|
|
3360
3407
|
desc
|
|
3361
3408
|
] })
|
|
@@ -3374,7 +3421,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3374
3421
|
const prevKey = React5.isValidElement(prev) && prev.key != null ? prev.key : `li-strong-${i}`;
|
|
3375
3422
|
filtered.pop();
|
|
3376
3423
|
filtered.push(
|
|
3377
|
-
/* @__PURE__ */
|
|
3424
|
+
/* @__PURE__ */ jsxs5("span", { children: [
|
|
3378
3425
|
prev,
|
|
3379
3426
|
": ",
|
|
3380
3427
|
desc
|
|
@@ -3385,7 +3432,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3385
3432
|
}
|
|
3386
3433
|
filtered.push(item);
|
|
3387
3434
|
}
|
|
3388
|
-
return /* @__PURE__ */
|
|
3435
|
+
return /* @__PURE__ */ jsx6(
|
|
3389
3436
|
"li",
|
|
3390
3437
|
{
|
|
3391
3438
|
...listItemProps,
|
|
@@ -3400,19 +3447,19 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3400
3447
|
);
|
|
3401
3448
|
},
|
|
3402
3449
|
table({ children, node: _node, className, style, ...tableProps }) {
|
|
3403
|
-
return /* @__PURE__ */
|
|
3450
|
+
return /* @__PURE__ */ jsx6(
|
|
3404
3451
|
TableContainer,
|
|
3405
3452
|
{
|
|
3406
3453
|
component: Paper2,
|
|
3407
3454
|
className,
|
|
3408
3455
|
style,
|
|
3409
3456
|
sx: { my: 2, bgcolor: theme.palette.background.paper },
|
|
3410
|
-
children: /* @__PURE__ */
|
|
3457
|
+
children: /* @__PURE__ */ jsx6(Table, { size: "small", ...tableProps, children })
|
|
3411
3458
|
}
|
|
3412
3459
|
);
|
|
3413
3460
|
},
|
|
3414
3461
|
thead({ children, node: _node, ...tableHeadProps }) {
|
|
3415
|
-
return /* @__PURE__ */
|
|
3462
|
+
return /* @__PURE__ */ jsx6(TableHead, { ...tableHeadProps, children });
|
|
3416
3463
|
},
|
|
3417
3464
|
tbody({ children, node: _node, ...tableBodyProps }) {
|
|
3418
3465
|
const rows = React5.Children.toArray(children).filter((row) => {
|
|
@@ -3422,13 +3469,13 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3422
3469
|
(cell) => React5.isValidElement(cell) && typeof cell.props.children === "string" && /^-+$/.test(cell.props.children.trim())
|
|
3423
3470
|
);
|
|
3424
3471
|
});
|
|
3425
|
-
return /* @__PURE__ */
|
|
3472
|
+
return /* @__PURE__ */ jsx6(TableBody, { ...tableBodyProps, children: rows });
|
|
3426
3473
|
},
|
|
3427
3474
|
tr({ children, node: _node, ...tableRowProps }) {
|
|
3428
|
-
return /* @__PURE__ */
|
|
3475
|
+
return /* @__PURE__ */ jsx6(TableRow, { ...tableRowProps, children });
|
|
3429
3476
|
},
|
|
3430
3477
|
th({ children, node: _node, ...tableCellProps }) {
|
|
3431
|
-
return /* @__PURE__ */
|
|
3478
|
+
return /* @__PURE__ */ jsx6(
|
|
3432
3479
|
TableCell,
|
|
3433
3480
|
{
|
|
3434
3481
|
...tableCellProps,
|
|
@@ -3445,7 +3492,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3445
3492
|
);
|
|
3446
3493
|
},
|
|
3447
3494
|
td({ children, node: _node, ...tableCellProps }) {
|
|
3448
|
-
return /* @__PURE__ */
|
|
3495
|
+
return /* @__PURE__ */ jsx6(
|
|
3449
3496
|
TableCell,
|
|
3450
3497
|
{
|
|
3451
3498
|
...tableCellProps,
|
|
@@ -3465,9 +3512,9 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3465
3512
|
(child) => typeof child === "object" && child !== null && "type" in child && typeof child.type === "string" && ["div", "Box", "section", "ul", "ol", "table"].includes(child.type)
|
|
3466
3513
|
);
|
|
3467
3514
|
if (hasBlock) {
|
|
3468
|
-
return /* @__PURE__ */
|
|
3515
|
+
return /* @__PURE__ */ jsx6(Fragment3, { children: flattened });
|
|
3469
3516
|
}
|
|
3470
|
-
return /* @__PURE__ */
|
|
3517
|
+
return /* @__PURE__ */ jsx6(Box6, { component: "div", sx: { margin: "0.25rem 0" }, children: /* @__PURE__ */ jsx6(
|
|
3471
3518
|
Typography3,
|
|
3472
3519
|
{
|
|
3473
3520
|
component: "div",
|
|
@@ -3481,9 +3528,9 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3481
3528
|
) });
|
|
3482
3529
|
}
|
|
3483
3530
|
};
|
|
3484
|
-
return /* @__PURE__ */
|
|
3485
|
-
/* @__PURE__ */
|
|
3486
|
-
|
|
3531
|
+
return /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
3532
|
+
/* @__PURE__ */ jsxs5(
|
|
3533
|
+
Box6,
|
|
3487
3534
|
{
|
|
3488
3535
|
sx: {
|
|
3489
3536
|
width: "100%",
|
|
@@ -3499,9 +3546,9 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3499
3546
|
"&:hover .ai-response-actions": { opacity: 1 }
|
|
3500
3547
|
},
|
|
3501
3548
|
children: [
|
|
3502
|
-
/* @__PURE__ */
|
|
3503
|
-
/* @__PURE__ */
|
|
3504
|
-
|
|
3549
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { display: "flex", justifyContent: "flex-end", mb: 2.5 }, children: /* @__PURE__ */ jsxs5(Box6, { sx: { maxWidth: { xs: "100%", sm: "85%" }, minWidth: 0 }, children: [
|
|
3550
|
+
/* @__PURE__ */ jsx6(
|
|
3551
|
+
Box6,
|
|
3505
3552
|
{
|
|
3506
3553
|
sx: {
|
|
3507
3554
|
bgcolor: chatResponse.userBubble || alpha(theme.palette.common.white, 0.07),
|
|
@@ -3512,7 +3559,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3512
3559
|
whiteSpace: "pre-wrap",
|
|
3513
3560
|
overflowWrap: "break-word"
|
|
3514
3561
|
},
|
|
3515
|
-
children: /* @__PURE__ */
|
|
3562
|
+
children: /* @__PURE__ */ jsx6(
|
|
3516
3563
|
Typography3,
|
|
3517
3564
|
{
|
|
3518
3565
|
sx: {
|
|
@@ -3526,7 +3573,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3526
3573
|
)
|
|
3527
3574
|
}
|
|
3528
3575
|
),
|
|
3529
|
-
images && images.length > 0 && /* @__PURE__ */
|
|
3576
|
+
images && images.length > 0 && /* @__PURE__ */ jsx6(Box6, { sx: { display: "flex", gap: 1, mt: 1, flexWrap: "wrap", justifyContent: "flex-end" }, children: images.map((img, i) => /* @__PURE__ */ jsx6(
|
|
3530
3577
|
Avatar,
|
|
3531
3578
|
{
|
|
3532
3579
|
src: img,
|
|
@@ -3544,9 +3591,9 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3544
3591
|
i
|
|
3545
3592
|
)) })
|
|
3546
3593
|
] }) }),
|
|
3547
|
-
/* @__PURE__ */
|
|
3548
|
-
cancelled && /* @__PURE__ */
|
|
3549
|
-
|
|
3594
|
+
/* @__PURE__ */ jsxs5(Box6, { sx: { position: "relative", width: "100%", maxWidth: { xs: "100%", sm: "768px" } }, children: [
|
|
3595
|
+
cancelled && /* @__PURE__ */ jsx6(
|
|
3596
|
+
Box6,
|
|
3550
3597
|
{
|
|
3551
3598
|
sx: {
|
|
3552
3599
|
position: "absolute",
|
|
@@ -3557,11 +3604,11 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3557
3604
|
gap: 1,
|
|
3558
3605
|
zIndex: 1
|
|
3559
3606
|
},
|
|
3560
|
-
children: /* @__PURE__ */
|
|
3607
|
+
children: /* @__PURE__ */ jsx6(Typography3, { variant: "caption", sx: { fontStyle: "italic", opacity: 0.85 }, children: "Cancelled by you" })
|
|
3561
3608
|
}
|
|
3562
3609
|
),
|
|
3563
|
-
showMemoryUpdated && /* @__PURE__ */
|
|
3564
|
-
|
|
3610
|
+
showMemoryUpdated && /* @__PURE__ */ jsxs5(
|
|
3611
|
+
Box6,
|
|
3565
3612
|
{
|
|
3566
3613
|
sx: {
|
|
3567
3614
|
position: "absolute",
|
|
@@ -3574,8 +3621,8 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3574
3621
|
zIndex: 1
|
|
3575
3622
|
},
|
|
3576
3623
|
children: [
|
|
3577
|
-
/* @__PURE__ */
|
|
3578
|
-
/* @__PURE__ */
|
|
3624
|
+
/* @__PURE__ */ jsx6("img", { src: brainIcon, alt: "Memory", style: { width: 16, height: 16 } }),
|
|
3625
|
+
/* @__PURE__ */ jsx6(
|
|
3579
3626
|
Typography3,
|
|
3580
3627
|
{
|
|
3581
3628
|
variant: "caption",
|
|
@@ -3586,7 +3633,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3586
3633
|
]
|
|
3587
3634
|
}
|
|
3588
3635
|
),
|
|
3589
|
-
/* @__PURE__ */
|
|
3636
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { width: "100%", maxWidth: "100%" }, children: typeof response === "string" ? /* @__PURE__ */ jsx6(
|
|
3590
3637
|
ReactMarkdown,
|
|
3591
3638
|
{
|
|
3592
3639
|
remarkPlugins: [remarkGfm],
|
|
@@ -3594,10 +3641,10 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3594
3641
|
components,
|
|
3595
3642
|
children: enrichedMarkdown ?? sanitizeMarkdown(response)
|
|
3596
3643
|
}
|
|
3597
|
-
) : React5.isValidElement(response) ? response : /* @__PURE__ */
|
|
3644
|
+
) : React5.isValidElement(response) ? response : /* @__PURE__ */ jsx6(Typography3, { color: "error", children: "\u26A0\uFE0F Invalid AI response" }) })
|
|
3598
3645
|
] }),
|
|
3599
|
-
!!(responseText || typeof response === "string" && response) && /* @__PURE__ */
|
|
3600
|
-
|
|
3646
|
+
!!(responseText || typeof response === "string" && response) && /* @__PURE__ */ jsx6(
|
|
3647
|
+
Box6,
|
|
3601
3648
|
{
|
|
3602
3649
|
className: "ai-response-actions",
|
|
3603
3650
|
sx: revealActionsOnHover ? {
|
|
@@ -3605,16 +3652,16 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3605
3652
|
transition: "opacity 0.15s ease",
|
|
3606
3653
|
"&:focus-within": { opacity: 1 }
|
|
3607
3654
|
} : void 0,
|
|
3608
|
-
children: /* @__PURE__ */
|
|
3655
|
+
children: /* @__PURE__ */ jsx6(ai_response_action_bar_default, { text: responseText || response })
|
|
3609
3656
|
}
|
|
3610
3657
|
),
|
|
3611
|
-
displaySourceFiles && displaySourceFiles.length > 0 && /* @__PURE__ */
|
|
3658
|
+
displaySourceFiles && displaySourceFiles.length > 0 && /* @__PURE__ */ jsx6(Box6, { sx: { mt: 1.5, display: "flex", gap: 2, flexWrap: "wrap", justifyContent: "flex-start" }, children: displaySourceFiles.map((doc, idx) => {
|
|
3612
3659
|
debugLogger.debug("Rendering DocumentCard in AI response", {
|
|
3613
3660
|
index: idx,
|
|
3614
3661
|
id: doc.id,
|
|
3615
3662
|
name: doc.name
|
|
3616
3663
|
});
|
|
3617
|
-
return /* @__PURE__ */
|
|
3664
|
+
return /* @__PURE__ */ jsx6(
|
|
3618
3665
|
DocumentCard_default,
|
|
3619
3666
|
{
|
|
3620
3667
|
doc,
|
|
@@ -3629,8 +3676,8 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3629
3676
|
]
|
|
3630
3677
|
}
|
|
3631
3678
|
),
|
|
3632
|
-
/* @__PURE__ */
|
|
3633
|
-
|
|
3679
|
+
/* @__PURE__ */ jsx6(Modal, { open: !!openImage, onClose: () => setOpenImage(null), children: /* @__PURE__ */ jsxs5(
|
|
3680
|
+
Box6,
|
|
3634
3681
|
{
|
|
3635
3682
|
sx: {
|
|
3636
3683
|
display: "flex",
|
|
@@ -3642,7 +3689,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3642
3689
|
position: "relative"
|
|
3643
3690
|
},
|
|
3644
3691
|
children: [
|
|
3645
|
-
/* @__PURE__ */
|
|
3692
|
+
/* @__PURE__ */ jsx6(
|
|
3646
3693
|
IconButton4,
|
|
3647
3694
|
{
|
|
3648
3695
|
onClick: () => setOpenImage(null),
|
|
@@ -3656,11 +3703,11 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3656
3703
|
bgcolor: "rgba(255,255,255,0.2)"
|
|
3657
3704
|
}
|
|
3658
3705
|
},
|
|
3659
|
-
children: /* @__PURE__ */
|
|
3706
|
+
children: /* @__PURE__ */ jsx6(CloseIcon, {})
|
|
3660
3707
|
}
|
|
3661
3708
|
),
|
|
3662
|
-
/* @__PURE__ */
|
|
3663
|
-
|
|
3709
|
+
/* @__PURE__ */ jsx6(
|
|
3710
|
+
Box6,
|
|
3664
3711
|
{
|
|
3665
3712
|
component: "img",
|
|
3666
3713
|
src: openImage || "",
|
|
@@ -3678,7 +3725,7 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3678
3725
|
]
|
|
3679
3726
|
}
|
|
3680
3727
|
) }),
|
|
3681
|
-
/* @__PURE__ */
|
|
3728
|
+
/* @__PURE__ */ jsx6(
|
|
3682
3729
|
knowledge_file_modal_default,
|
|
3683
3730
|
{
|
|
3684
3731
|
open: !!openDoc,
|
|
@@ -3713,7 +3760,7 @@ import {
|
|
|
3713
3760
|
InputLabel,
|
|
3714
3761
|
Select,
|
|
3715
3762
|
MenuItem,
|
|
3716
|
-
Box as
|
|
3763
|
+
Box as Box7,
|
|
3717
3764
|
Typography as Typography4,
|
|
3718
3765
|
IconButton as IconButton5,
|
|
3719
3766
|
Chip as Chip2,
|
|
@@ -3729,7 +3776,7 @@ import {
|
|
|
3729
3776
|
} from "@mui/material";
|
|
3730
3777
|
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 } from "lucide-react";
|
|
3731
3778
|
import { useTheme as useTheme4, alpha as alpha2 } from "@mui/material/styles";
|
|
3732
|
-
import { Fragment as Fragment4, jsx as
|
|
3779
|
+
import { Fragment as Fragment4, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
3733
3780
|
var feedbackCategories = {
|
|
3734
3781
|
bug: {
|
|
3735
3782
|
label: "Bug Report",
|
|
@@ -4030,8 +4077,8 @@ var FeedbackModal = ({
|
|
|
4030
4077
|
const selectedPriority = feedbackPriorities[formData.priority];
|
|
4031
4078
|
const IconComponent = iconMap[selectedCategory?.icon] || MessageIcon;
|
|
4032
4079
|
const isValid = !!formData.title?.trim() && !!formData.description?.trim();
|
|
4033
|
-
return /* @__PURE__ */
|
|
4034
|
-
/* @__PURE__ */
|
|
4080
|
+
return /* @__PURE__ */ jsxs6(Fragment4, { children: [
|
|
4081
|
+
/* @__PURE__ */ jsx7(GlobalStyles, { styles: {
|
|
4035
4082
|
"::-webkit-scrollbar": {
|
|
4036
4083
|
width: "8px"
|
|
4037
4084
|
},
|
|
@@ -4044,7 +4091,7 @@ var FeedbackModal = ({
|
|
|
4044
4091
|
border: "1px solid #222"
|
|
4045
4092
|
}
|
|
4046
4093
|
} }),
|
|
4047
|
-
/* @__PURE__ */
|
|
4094
|
+
/* @__PURE__ */ jsxs6(
|
|
4048
4095
|
Dialog2,
|
|
4049
4096
|
{
|
|
4050
4097
|
open,
|
|
@@ -4086,7 +4133,7 @@ var FeedbackModal = ({
|
|
|
4086
4133
|
}
|
|
4087
4134
|
},
|
|
4088
4135
|
children: [
|
|
4089
|
-
/* @__PURE__ */
|
|
4136
|
+
/* @__PURE__ */ jsxs6(
|
|
4090
4137
|
DialogTitle,
|
|
4091
4138
|
{
|
|
4092
4139
|
onTouchStart: handleHeaderTouchStart,
|
|
@@ -4103,8 +4150,8 @@ var FeedbackModal = ({
|
|
|
4103
4150
|
touchAction: "pan-y"
|
|
4104
4151
|
},
|
|
4105
4152
|
children: [
|
|
4106
|
-
isMobile && /* @__PURE__ */
|
|
4107
|
-
|
|
4153
|
+
isMobile && /* @__PURE__ */ jsx7(
|
|
4154
|
+
Box7,
|
|
4108
4155
|
{
|
|
4109
4156
|
sx: {
|
|
4110
4157
|
width: 56,
|
|
@@ -4116,8 +4163,8 @@ var FeedbackModal = ({
|
|
|
4116
4163
|
}
|
|
4117
4164
|
}
|
|
4118
4165
|
),
|
|
4119
|
-
/* @__PURE__ */
|
|
4120
|
-
|
|
4166
|
+
/* @__PURE__ */ jsxs6(
|
|
4167
|
+
Box7,
|
|
4121
4168
|
{
|
|
4122
4169
|
sx: {
|
|
4123
4170
|
display: "flex",
|
|
@@ -4127,18 +4174,18 @@ var FeedbackModal = ({
|
|
|
4127
4174
|
width: "100%"
|
|
4128
4175
|
},
|
|
4129
4176
|
children: [
|
|
4130
|
-
/* @__PURE__ */
|
|
4131
|
-
/* @__PURE__ */
|
|
4132
|
-
/* @__PURE__ */
|
|
4177
|
+
/* @__PURE__ */ jsxs6(Stack, { spacing: 0.5, sx: { minWidth: 0 }, children: [
|
|
4178
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "h6", fontWeight: "bold", noWrap: true, children: "Send Feedback" }),
|
|
4179
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "body2", color: "text.secondary", noWrap: true, children: "Help us improve Bandit AI" })
|
|
4133
4180
|
] }),
|
|
4134
|
-
/* @__PURE__ */
|
|
4181
|
+
/* @__PURE__ */ jsx7(IconButton5, { onClick: handleClose, size: "small", children: /* @__PURE__ */ jsx7(CloseIcon2, {}) })
|
|
4135
4182
|
]
|
|
4136
4183
|
}
|
|
4137
4184
|
)
|
|
4138
4185
|
]
|
|
4139
4186
|
}
|
|
4140
4187
|
),
|
|
4141
|
-
/* @__PURE__ */
|
|
4188
|
+
/* @__PURE__ */ jsxs6(
|
|
4142
4189
|
DialogContent,
|
|
4143
4190
|
{
|
|
4144
4191
|
sx: {
|
|
@@ -4149,7 +4196,7 @@ var FeedbackModal = ({
|
|
|
4149
4196
|
scrollbarGutter: "stable"
|
|
4150
4197
|
},
|
|
4151
4198
|
children: [
|
|
4152
|
-
submitStatus === "success" && /* @__PURE__ */
|
|
4199
|
+
submitStatus === "success" && /* @__PURE__ */ jsxs6(
|
|
4153
4200
|
Alert3,
|
|
4154
4201
|
{
|
|
4155
4202
|
severity: "success",
|
|
@@ -4163,12 +4210,12 @@ var FeedbackModal = ({
|
|
|
4163
4210
|
borderRadius: 2
|
|
4164
4211
|
},
|
|
4165
4212
|
children: [
|
|
4166
|
-
/* @__PURE__ */
|
|
4167
|
-
/* @__PURE__ */
|
|
4213
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "body2", sx: { fontWeight: 600 }, children: "Feedback submitted successfully!" }),
|
|
4214
|
+
/* @__PURE__ */ jsx7(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." })
|
|
4168
4215
|
]
|
|
4169
4216
|
}
|
|
4170
4217
|
),
|
|
4171
|
-
errorMessage && /* @__PURE__ */
|
|
4218
|
+
errorMessage && /* @__PURE__ */ jsx7(
|
|
4172
4219
|
Alert3,
|
|
4173
4220
|
{
|
|
4174
4221
|
severity: "error",
|
|
@@ -4184,8 +4231,8 @@ var FeedbackModal = ({
|
|
|
4184
4231
|
children: errorMessage
|
|
4185
4232
|
}
|
|
4186
4233
|
),
|
|
4187
|
-
/* @__PURE__ */
|
|
4188
|
-
|
|
4234
|
+
/* @__PURE__ */ jsxs6(
|
|
4235
|
+
Box7,
|
|
4189
4236
|
{
|
|
4190
4237
|
sx: {
|
|
4191
4238
|
display: "grid",
|
|
@@ -4199,8 +4246,8 @@ var FeedbackModal = ({
|
|
|
4199
4246
|
pt: 1.5
|
|
4200
4247
|
},
|
|
4201
4248
|
children: [
|
|
4202
|
-
/* @__PURE__ */
|
|
4203
|
-
|
|
4249
|
+
/* @__PURE__ */ jsxs6(
|
|
4250
|
+
Box7,
|
|
4204
4251
|
{
|
|
4205
4252
|
sx: {
|
|
4206
4253
|
display: "grid",
|
|
@@ -4210,7 +4257,7 @@ var FeedbackModal = ({
|
|
|
4210
4257
|
mb: 0
|
|
4211
4258
|
},
|
|
4212
4259
|
children: [
|
|
4213
|
-
/* @__PURE__ */
|
|
4260
|
+
/* @__PURE__ */ jsx7(
|
|
4214
4261
|
TextField,
|
|
4215
4262
|
{
|
|
4216
4263
|
fullWidth: true,
|
|
@@ -4242,7 +4289,7 @@ var FeedbackModal = ({
|
|
|
4242
4289
|
}
|
|
4243
4290
|
}
|
|
4244
4291
|
),
|
|
4245
|
-
/* @__PURE__ */
|
|
4292
|
+
/* @__PURE__ */ jsxs6(
|
|
4246
4293
|
FormControl,
|
|
4247
4294
|
{
|
|
4248
4295
|
fullWidth: true,
|
|
@@ -4266,8 +4313,8 @@ var FeedbackModal = ({
|
|
|
4266
4313
|
}
|
|
4267
4314
|
},
|
|
4268
4315
|
children: [
|
|
4269
|
-
/* @__PURE__ */
|
|
4270
|
-
/* @__PURE__ */
|
|
4316
|
+
/* @__PURE__ */ jsx7(InputLabel, { shrink: true, id: "category-label", children: "Category" }),
|
|
4317
|
+
/* @__PURE__ */ jsx7(
|
|
4271
4318
|
Select,
|
|
4272
4319
|
{
|
|
4273
4320
|
labelId: "category-label",
|
|
@@ -4277,11 +4324,11 @@ var FeedbackModal = ({
|
|
|
4277
4324
|
onChange: handleInputChange("category"),
|
|
4278
4325
|
children: Object.entries(feedbackCategories).map(([key, category]) => {
|
|
4279
4326
|
const Icon = iconMap[category.icon];
|
|
4280
|
-
return /* @__PURE__ */
|
|
4281
|
-
/* @__PURE__ */
|
|
4282
|
-
/* @__PURE__ */
|
|
4283
|
-
/* @__PURE__ */
|
|
4284
|
-
/* @__PURE__ */
|
|
4327
|
+
return /* @__PURE__ */ jsx7(MenuItem, { value: key, children: /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
|
|
4328
|
+
/* @__PURE__ */ jsx7(Icon, { size: 20, color: category.color }),
|
|
4329
|
+
/* @__PURE__ */ jsxs6(Box7, { children: [
|
|
4330
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "body2", sx: { fontWeight: 500 }, children: category.label }),
|
|
4331
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "caption", color: "text.secondary", children: category.description })
|
|
4285
4332
|
] })
|
|
4286
4333
|
] }) }, key);
|
|
4287
4334
|
})
|
|
@@ -4290,7 +4337,7 @@ var FeedbackModal = ({
|
|
|
4290
4337
|
]
|
|
4291
4338
|
}
|
|
4292
4339
|
),
|
|
4293
|
-
/* @__PURE__ */
|
|
4340
|
+
/* @__PURE__ */ jsxs6(
|
|
4294
4341
|
FormControl,
|
|
4295
4342
|
{
|
|
4296
4343
|
fullWidth: true,
|
|
@@ -4314,8 +4361,8 @@ var FeedbackModal = ({
|
|
|
4314
4361
|
}
|
|
4315
4362
|
},
|
|
4316
4363
|
children: [
|
|
4317
|
-
/* @__PURE__ */
|
|
4318
|
-
/* @__PURE__ */
|
|
4364
|
+
/* @__PURE__ */ jsx7(InputLabel, { shrink: true, id: "priority-label", children: "Priority" }),
|
|
4365
|
+
/* @__PURE__ */ jsx7(
|
|
4319
4366
|
Select,
|
|
4320
4367
|
{
|
|
4321
4368
|
labelId: "priority-label",
|
|
@@ -4323,9 +4370,9 @@ var FeedbackModal = ({
|
|
|
4323
4370
|
value: formData.priority,
|
|
4324
4371
|
label: "Priority",
|
|
4325
4372
|
onChange: handleInputChange("priority"),
|
|
4326
|
-
children: Object.entries(feedbackPriorities).map(([key, priority]) => /* @__PURE__ */
|
|
4327
|
-
/* @__PURE__ */
|
|
4328
|
-
|
|
4373
|
+
children: Object.entries(feedbackPriorities).map(([key, priority]) => /* @__PURE__ */ jsx7(MenuItem, { value: key, children: /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
|
|
4374
|
+
/* @__PURE__ */ jsx7(
|
|
4375
|
+
Box7,
|
|
4329
4376
|
{
|
|
4330
4377
|
sx: {
|
|
4331
4378
|
width: 12,
|
|
@@ -4336,9 +4383,9 @@ var FeedbackModal = ({
|
|
|
4336
4383
|
}
|
|
4337
4384
|
}
|
|
4338
4385
|
),
|
|
4339
|
-
/* @__PURE__ */
|
|
4340
|
-
/* @__PURE__ */
|
|
4341
|
-
/* @__PURE__ */
|
|
4386
|
+
/* @__PURE__ */ jsxs6(Box7, { children: [
|
|
4387
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "body2", sx: { fontWeight: 500 }, children: priority.label }),
|
|
4388
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "caption", color: "text.secondary", children: priority.description })
|
|
4342
4389
|
] })
|
|
4343
4390
|
] }) }, key))
|
|
4344
4391
|
}
|
|
@@ -4346,7 +4393,7 @@ var FeedbackModal = ({
|
|
|
4346
4393
|
]
|
|
4347
4394
|
}
|
|
4348
4395
|
),
|
|
4349
|
-
/* @__PURE__ */
|
|
4396
|
+
/* @__PURE__ */ jsx7(
|
|
4350
4397
|
TextField,
|
|
4351
4398
|
{
|
|
4352
4399
|
fullWidth: true,
|
|
@@ -4385,8 +4432,8 @@ var FeedbackModal = ({
|
|
|
4385
4432
|
]
|
|
4386
4433
|
}
|
|
4387
4434
|
),
|
|
4388
|
-
/* @__PURE__ */
|
|
4389
|
-
|
|
4435
|
+
/* @__PURE__ */ jsxs6(
|
|
4436
|
+
Box7,
|
|
4390
4437
|
{
|
|
4391
4438
|
className: "feedback-section-row",
|
|
4392
4439
|
sx: {
|
|
@@ -4399,13 +4446,13 @@ var FeedbackModal = ({
|
|
|
4399
4446
|
flexDirection: { xs: "column", md: "row" }
|
|
4400
4447
|
},
|
|
4401
4448
|
children: [
|
|
4402
|
-
/* @__PURE__ */
|
|
4403
|
-
|
|
4449
|
+
/* @__PURE__ */ jsxs6(
|
|
4450
|
+
Box7,
|
|
4404
4451
|
{
|
|
4405
4452
|
className: "impact-section",
|
|
4406
4453
|
sx: { flex: 1, minWidth: 260, display: "flex", flexDirection: "column" },
|
|
4407
4454
|
children: [
|
|
4408
|
-
/* @__PURE__ */
|
|
4455
|
+
/* @__PURE__ */ jsxs6(Typography4, { variant: "body2", sx: { fontWeight: 600, mb: 0.5 }, children: [
|
|
4409
4456
|
"How annoying is this?",
|
|
4410
4457
|
" ",
|
|
4411
4458
|
["\u{1F60A}", "\u{1F610}", "\u{1F644}", "\u{1F620}", "\u{1F92C}"][(formData.annoyanceLevel ?? 3) - 1],
|
|
@@ -4414,7 +4461,7 @@ var FeedbackModal = ({
|
|
|
4414
4461
|
formData.annoyanceLevel ?? 3,
|
|
4415
4462
|
"/5)"
|
|
4416
4463
|
] }),
|
|
4417
|
-
/* @__PURE__ */
|
|
4464
|
+
/* @__PURE__ */ jsx7(Box7, { sx: { px: 1 }, children: /* @__PURE__ */ jsx7(
|
|
4418
4465
|
Slider,
|
|
4419
4466
|
{
|
|
4420
4467
|
size: "small",
|
|
@@ -4438,8 +4485,8 @@ var FeedbackModal = ({
|
|
|
4438
4485
|
]
|
|
4439
4486
|
}
|
|
4440
4487
|
),
|
|
4441
|
-
/* @__PURE__ */
|
|
4442
|
-
|
|
4488
|
+
/* @__PURE__ */ jsxs6(
|
|
4489
|
+
Box7,
|
|
4443
4490
|
{
|
|
4444
4491
|
className: "attachments-upload-card attachments-section",
|
|
4445
4492
|
sx: {
|
|
@@ -4451,8 +4498,8 @@ var FeedbackModal = ({
|
|
|
4451
4498
|
p: 0
|
|
4452
4499
|
},
|
|
4453
4500
|
children: [
|
|
4454
|
-
/* @__PURE__ */
|
|
4455
|
-
/* @__PURE__ */
|
|
4501
|
+
/* @__PURE__ */ jsx7("div", { style: { display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ jsxs6(Box7, { onClick: () => fileInputRef.current?.click(), children: [
|
|
4502
|
+
/* @__PURE__ */ jsx7(
|
|
4456
4503
|
"input",
|
|
4457
4504
|
{
|
|
4458
4505
|
ref: fileInputRef,
|
|
@@ -4462,8 +4509,8 @@ var FeedbackModal = ({
|
|
|
4462
4509
|
onChange: handleFileUpload
|
|
4463
4510
|
}
|
|
4464
4511
|
),
|
|
4465
|
-
/* @__PURE__ */
|
|
4466
|
-
|
|
4512
|
+
/* @__PURE__ */ jsxs6(
|
|
4513
|
+
Box7,
|
|
4467
4514
|
{
|
|
4468
4515
|
sx: {
|
|
4469
4516
|
display: "flex",
|
|
@@ -4479,13 +4526,13 @@ var FeedbackModal = ({
|
|
|
4479
4526
|
"&:hover": { borderColor: theme.palette.primary.main, color: theme.palette.primary.main }
|
|
4480
4527
|
},
|
|
4481
4528
|
children: [
|
|
4482
|
-
/* @__PURE__ */
|
|
4483
|
-
/* @__PURE__ */
|
|
4484
|
-
/* @__PURE__ */
|
|
4529
|
+
/* @__PURE__ */ jsx7(AttachFileIcon, { size: 18 }),
|
|
4530
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "body2", sx: { fontWeight: 500 }, children: "Attach an image" }),
|
|
4531
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "caption", color: "text.secondary", sx: { ml: "auto" }, children: "JPG/PNG/GIF \xB7 10MB" })
|
|
4485
4532
|
]
|
|
4486
4533
|
}
|
|
4487
4534
|
),
|
|
4488
|
-
(formData.images && formData.images.length > 0 || formData.attachments && formData.attachments.length > 0) && /* @__PURE__ */
|
|
4535
|
+
(formData.images && formData.images.length > 0 || formData.attachments && formData.attachments.length > 0) && /* @__PURE__ */ jsx7(
|
|
4489
4536
|
Alert3,
|
|
4490
4537
|
{
|
|
4491
4538
|
severity: "info",
|
|
@@ -4504,18 +4551,18 @@ var FeedbackModal = ({
|
|
|
4504
4551
|
fontSize: "0.75rem"
|
|
4505
4552
|
}
|
|
4506
4553
|
},
|
|
4507
|
-
children: /* @__PURE__ */
|
|
4554
|
+
children: /* @__PURE__ */ jsx7(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" })
|
|
4508
4555
|
}
|
|
4509
4556
|
)
|
|
4510
4557
|
] }) }),
|
|
4511
|
-
formData.images && formData.images.length > 0 && /* @__PURE__ */
|
|
4512
|
-
/* @__PURE__ */
|
|
4513
|
-
/* @__PURE__ */
|
|
4514
|
-
/* @__PURE__ */
|
|
4558
|
+
formData.images && formData.images.length > 0 && /* @__PURE__ */ jsxs6(Box7, { sx: { mt: 2 }, children: [
|
|
4559
|
+
/* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", alignItems: "center", gap: 1, mb: 1.5 }, children: [
|
|
4560
|
+
/* @__PURE__ */ jsx7(PhotoCameraIcon, { size: 16 }),
|
|
4561
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "subtitle2", sx: { fontWeight: 600 }, children: "Attached Image" })
|
|
4515
4562
|
] }),
|
|
4516
|
-
/* @__PURE__ */
|
|
4517
|
-
/* @__PURE__ */
|
|
4518
|
-
|
|
4563
|
+
/* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", gap: 1.5 }, children: [
|
|
4564
|
+
/* @__PURE__ */ jsxs6(
|
|
4565
|
+
Box7,
|
|
4519
4566
|
{
|
|
4520
4567
|
sx: {
|
|
4521
4568
|
position: "relative",
|
|
@@ -4529,7 +4576,7 @@ var FeedbackModal = ({
|
|
|
4529
4576
|
}
|
|
4530
4577
|
},
|
|
4531
4578
|
children: [
|
|
4532
|
-
/* @__PURE__ */
|
|
4579
|
+
/* @__PURE__ */ jsx7(
|
|
4533
4580
|
"img",
|
|
4534
4581
|
{
|
|
4535
4582
|
src: formData.images[0],
|
|
@@ -4542,7 +4589,7 @@ var FeedbackModal = ({
|
|
|
4542
4589
|
}
|
|
4543
4590
|
}
|
|
4544
4591
|
),
|
|
4545
|
-
/* @__PURE__ */
|
|
4592
|
+
/* @__PURE__ */ jsx7(
|
|
4546
4593
|
IconButton5,
|
|
4547
4594
|
{
|
|
4548
4595
|
size: "small",
|
|
@@ -4560,20 +4607,20 @@ var FeedbackModal = ({
|
|
|
4560
4607
|
transform: "scale(1.1)"
|
|
4561
4608
|
}
|
|
4562
4609
|
},
|
|
4563
|
-
children: /* @__PURE__ */
|
|
4610
|
+
children: /* @__PURE__ */ jsx7(DeleteIcon2, { size: 14 })
|
|
4564
4611
|
}
|
|
4565
4612
|
)
|
|
4566
4613
|
]
|
|
4567
4614
|
}
|
|
4568
4615
|
),
|
|
4569
|
-
/* @__PURE__ */
|
|
4570
|
-
/* @__PURE__ */
|
|
4616
|
+
/* @__PURE__ */ jsxs6(Box7, { sx: { flex: 1, display: "flex", flexDirection: "column", justifyContent: "center" }, children: [
|
|
4617
|
+
/* @__PURE__ */ jsx7(
|
|
4571
4618
|
Button3,
|
|
4572
4619
|
{
|
|
4573
4620
|
variant: "outlined",
|
|
4574
4621
|
size: "small",
|
|
4575
4622
|
onClick: copyImageToClipboard,
|
|
4576
|
-
startIcon: /* @__PURE__ */
|
|
4623
|
+
startIcon: /* @__PURE__ */ jsx7(AttachFileIcon, {}),
|
|
4577
4624
|
sx: {
|
|
4578
4625
|
mb: 1,
|
|
4579
4626
|
borderColor: theme.palette.primary.main + "50",
|
|
@@ -4586,22 +4633,22 @@ var FeedbackModal = ({
|
|
|
4586
4633
|
children: "Copy to Clipboard"
|
|
4587
4634
|
}
|
|
4588
4635
|
),
|
|
4589
|
-
/* @__PURE__ */
|
|
4636
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "caption", color: "text.secondary", sx: { textAlign: "center" }, children: "Image will be copied when you submit" })
|
|
4590
4637
|
] })
|
|
4591
4638
|
] })
|
|
4592
4639
|
] }),
|
|
4593
|
-
formData.attachments && formData.attachments.length > 0 && /* @__PURE__ */
|
|
4594
|
-
/* @__PURE__ */
|
|
4640
|
+
formData.attachments && formData.attachments.length > 0 && /* @__PURE__ */ jsxs6(Box7, { sx: { mt: 2 }, children: [
|
|
4641
|
+
/* @__PURE__ */ jsxs6(Typography4, { variant: "subtitle2", gutterBottom: true, children: [
|
|
4595
4642
|
"Attached Files (",
|
|
4596
4643
|
formData.attachments.length,
|
|
4597
4644
|
")"
|
|
4598
4645
|
] }),
|
|
4599
|
-
/* @__PURE__ */
|
|
4646
|
+
/* @__PURE__ */ jsx7(Box7, { sx: { display: "flex", flexWrap: "wrap", gap: 1 }, children: formData.attachments.map((attachment, index) => /* @__PURE__ */ jsx7(
|
|
4600
4647
|
Chip2,
|
|
4601
4648
|
{
|
|
4602
4649
|
label: attachment.name,
|
|
4603
4650
|
onDelete: () => removeAttachment(index),
|
|
4604
|
-
deleteIcon: /* @__PURE__ */
|
|
4651
|
+
deleteIcon: /* @__PURE__ */ jsx7(DeleteIcon2, {}),
|
|
4605
4652
|
variant: "outlined",
|
|
4606
4653
|
sx: { maxWidth: 200 }
|
|
4607
4654
|
},
|
|
@@ -4620,7 +4667,7 @@ var FeedbackModal = ({
|
|
|
4620
4667
|
]
|
|
4621
4668
|
}
|
|
4622
4669
|
),
|
|
4623
|
-
/* @__PURE__ */
|
|
4670
|
+
/* @__PURE__ */ jsx7(
|
|
4624
4671
|
DialogActions,
|
|
4625
4672
|
{
|
|
4626
4673
|
sx: {
|
|
@@ -4634,11 +4681,11 @@ var FeedbackModal = ({
|
|
|
4634
4681
|
borderColor: "divider",
|
|
4635
4682
|
justifyContent: "center"
|
|
4636
4683
|
},
|
|
4637
|
-
children: /* @__PURE__ */
|
|
4684
|
+
children: /* @__PURE__ */ jsx7(
|
|
4638
4685
|
Button3,
|
|
4639
4686
|
{
|
|
4640
4687
|
fullWidth: true,
|
|
4641
|
-
startIcon: /* @__PURE__ */
|
|
4688
|
+
startIcon: /* @__PURE__ */ jsx7(MailIcon, {}),
|
|
4642
4689
|
disabled: !isValid,
|
|
4643
4690
|
onClick: handleSubmit,
|
|
4644
4691
|
variant: "contained",
|
|
@@ -4650,7 +4697,7 @@ var FeedbackModal = ({
|
|
|
4650
4697
|
]
|
|
4651
4698
|
}
|
|
4652
4699
|
),
|
|
4653
|
-
/* @__PURE__ */
|
|
4700
|
+
/* @__PURE__ */ jsx7(
|
|
4654
4701
|
Snackbar,
|
|
4655
4702
|
{
|
|
4656
4703
|
open: snackbarOpen,
|
|
@@ -4671,7 +4718,7 @@ var FeedbackModal = ({
|
|
|
4671
4718
|
message: snackbarMessage
|
|
4672
4719
|
}
|
|
4673
4720
|
),
|
|
4674
|
-
/* @__PURE__ */
|
|
4721
|
+
/* @__PURE__ */ jsxs6(
|
|
4675
4722
|
Dialog2,
|
|
4676
4723
|
{
|
|
4677
4724
|
open: confirmDialogOpen,
|
|
@@ -4689,13 +4736,13 @@ var FeedbackModal = ({
|
|
|
4689
4736
|
}
|
|
4690
4737
|
},
|
|
4691
4738
|
children: [
|
|
4692
|
-
/* @__PURE__ */
|
|
4739
|
+
/* @__PURE__ */ jsxs6(DialogTitle, { sx: {
|
|
4693
4740
|
pb: 1,
|
|
4694
4741
|
display: "flex",
|
|
4695
4742
|
alignItems: "center",
|
|
4696
4743
|
gap: 2
|
|
4697
4744
|
}, children: [
|
|
4698
|
-
/* @__PURE__ */
|
|
4745
|
+
/* @__PURE__ */ jsx7(
|
|
4699
4746
|
Avatar2,
|
|
4700
4747
|
{
|
|
4701
4748
|
sx: {
|
|
@@ -4704,16 +4751,16 @@ var FeedbackModal = ({
|
|
|
4704
4751
|
width: 40,
|
|
4705
4752
|
height: 40
|
|
4706
4753
|
},
|
|
4707
|
-
children: /* @__PURE__ */
|
|
4754
|
+
children: /* @__PURE__ */ jsx7(PhotoCameraIcon, {})
|
|
4708
4755
|
}
|
|
4709
4756
|
),
|
|
4710
|
-
/* @__PURE__ */
|
|
4711
|
-
/* @__PURE__ */
|
|
4712
|
-
/* @__PURE__ */
|
|
4757
|
+
/* @__PURE__ */ jsxs6(Box7, { children: [
|
|
4758
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "h6", sx: { fontWeight: 600 }, children: "Ready to Submit with Image" }),
|
|
4759
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "caption", color: "text.secondary", children: "Here's what will happen when you submit" })
|
|
4713
4760
|
] })
|
|
4714
4761
|
] }),
|
|
4715
|
-
/* @__PURE__ */
|
|
4716
|
-
/* @__PURE__ */
|
|
4762
|
+
/* @__PURE__ */ jsx7(DialogContent, { sx: { pt: 1 }, children: /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
4763
|
+
/* @__PURE__ */ jsxs6(
|
|
4717
4764
|
Paper3,
|
|
4718
4765
|
{
|
|
4719
4766
|
variant: "outlined",
|
|
@@ -4724,8 +4771,8 @@ var FeedbackModal = ({
|
|
|
4724
4771
|
border: `1px solid ${theme.palette.info.main}20`
|
|
4725
4772
|
},
|
|
4726
4773
|
children: [
|
|
4727
|
-
/* @__PURE__ */
|
|
4728
|
-
/* @__PURE__ */
|
|
4774
|
+
/* @__PURE__ */ jsxs6(Typography4, { variant: "subtitle1", sx: { fontWeight: 600, mb: 2, display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
4775
|
+
/* @__PURE__ */ jsx7(Box7, { sx: {
|
|
4729
4776
|
bgcolor: theme.palette.info.main + "20",
|
|
4730
4777
|
color: theme.palette.info.main,
|
|
4731
4778
|
borderRadius: "50%",
|
|
@@ -4739,8 +4786,8 @@ var FeedbackModal = ({
|
|
|
4739
4786
|
}, children: "1" }),
|
|
4740
4787
|
"Your image will be copied to clipboard"
|
|
4741
4788
|
] }),
|
|
4742
|
-
/* @__PURE__ */
|
|
4743
|
-
/* @__PURE__ */
|
|
4789
|
+
/* @__PURE__ */ jsxs6(Typography4, { variant: "subtitle1", sx: { fontWeight: 600, mb: 2, display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
4790
|
+
/* @__PURE__ */ jsx7(Box7, { sx: {
|
|
4744
4791
|
bgcolor: theme.palette.info.main + "20",
|
|
4745
4792
|
color: theme.palette.info.main,
|
|
4746
4793
|
borderRadius: "50%",
|
|
@@ -4754,8 +4801,8 @@ var FeedbackModal = ({
|
|
|
4754
4801
|
}, children: "2" }),
|
|
4755
4802
|
"Your email client will open"
|
|
4756
4803
|
] }),
|
|
4757
|
-
/* @__PURE__ */
|
|
4758
|
-
/* @__PURE__ */
|
|
4804
|
+
/* @__PURE__ */ jsxs6(Typography4, { variant: "subtitle1", sx: { fontWeight: 600, mb: 1, display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
4805
|
+
/* @__PURE__ */ jsx7(Box7, { sx: {
|
|
4759
4806
|
bgcolor: theme.palette.info.main + "20",
|
|
4760
4807
|
color: theme.palette.info.main,
|
|
4761
4808
|
borderRadius: "50%",
|
|
@@ -4769,20 +4816,20 @@ var FeedbackModal = ({
|
|
|
4769
4816
|
}, children: "3" }),
|
|
4770
4817
|
"Paste the image with Ctrl+V (or Cmd+V)"
|
|
4771
4818
|
] }),
|
|
4772
|
-
/* @__PURE__ */
|
|
4819
|
+
/* @__PURE__ */ jsx7(Typography4, { variant: "body2", color: "text.secondary", sx: { ml: 4, fontStyle: "italic" }, children: "The email will have a clear spot where you should paste" })
|
|
4773
4820
|
]
|
|
4774
4821
|
}
|
|
4775
4822
|
),
|
|
4776
|
-
/* @__PURE__ */
|
|
4823
|
+
/* @__PURE__ */ jsx7(Alert3, { severity: "info", sx: {
|
|
4777
4824
|
background: "transparent",
|
|
4778
4825
|
border: `1px solid ${theme.palette.info.main}30`
|
|
4779
|
-
}, children: /* @__PURE__ */
|
|
4780
|
-
/* @__PURE__ */
|
|
4826
|
+
}, children: /* @__PURE__ */ jsxs6(Typography4, { variant: "body2", children: [
|
|
4827
|
+
/* @__PURE__ */ jsx7("strong", { children: "\u{1F4A1} Tip:" }),
|
|
4781
4828
|
" Make sure to paste the image before sending your email!"
|
|
4782
4829
|
] }) })
|
|
4783
4830
|
] }) }),
|
|
4784
|
-
/* @__PURE__ */
|
|
4785
|
-
/* @__PURE__ */
|
|
4831
|
+
/* @__PURE__ */ jsxs6(DialogActions, { sx: { p: 2.5, pt: 1 }, children: [
|
|
4832
|
+
/* @__PURE__ */ jsx7(
|
|
4786
4833
|
Button3,
|
|
4787
4834
|
{
|
|
4788
4835
|
onClick: () => setConfirmDialogOpen(false),
|
|
@@ -4790,13 +4837,13 @@ var FeedbackModal = ({
|
|
|
4790
4837
|
children: "Cancel"
|
|
4791
4838
|
}
|
|
4792
4839
|
),
|
|
4793
|
-
/* @__PURE__ */
|
|
4840
|
+
/* @__PURE__ */ jsx7(
|
|
4794
4841
|
Button3,
|
|
4795
4842
|
{
|
|
4796
4843
|
variant: "contained",
|
|
4797
4844
|
onClick: performSubmit,
|
|
4798
4845
|
disabled: isSubmitting,
|
|
4799
|
-
startIcon: isSubmitting ? /* @__PURE__ */
|
|
4846
|
+
startIcon: isSubmitting ? /* @__PURE__ */ jsx7(CircularProgress3, { size: 16 }) : /* @__PURE__ */ jsx7(MailIcon, {}),
|
|
4800
4847
|
sx: {
|
|
4801
4848
|
background: `linear-gradient(135deg, ${theme.palette.primary.main} 0%, ${theme.palette.primary.dark} 100%)`,
|
|
4802
4849
|
"&:hover": {
|
|
@@ -7195,7 +7242,7 @@ var useNotificationService = () => {
|
|
|
7195
7242
|
import React7, { useState as useState7, useEffect as useEffect7 } from "react";
|
|
7196
7243
|
import { useTheme as useTheme5, alpha as alpha3, keyframes } from "@mui/material/styles";
|
|
7197
7244
|
import {
|
|
7198
|
-
Box as
|
|
7245
|
+
Box as Box8,
|
|
7199
7246
|
Typography as Typography5,
|
|
7200
7247
|
Modal as Modal2,
|
|
7201
7248
|
SwipeableDrawer,
|
|
@@ -7219,7 +7266,7 @@ import {
|
|
|
7219
7266
|
FormControl as FormControl2,
|
|
7220
7267
|
useMediaQuery as useMediaQuery3
|
|
7221
7268
|
} from "@mui/material";
|
|
7222
|
-
import { Fragment as Fragment5, jsx as
|
|
7269
|
+
import { Fragment as Fragment5, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
7223
7270
|
var MemoryModal = ({ open, onClose }) => {
|
|
7224
7271
|
const { entries, addMemory, togglePinMemory, removeMemory, clearMemories, hydrate, _hasHydrated } = useMemoryStore();
|
|
7225
7272
|
const isAdvancedVectorFeaturesEnabled = useConversationSyncStore(
|
|
@@ -7612,8 +7659,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7612
7659
|
setClearAllOpen(false);
|
|
7613
7660
|
};
|
|
7614
7661
|
const filteredMemories = getMemoriesForDisplay();
|
|
7615
|
-
const sheet = /* @__PURE__ */
|
|
7616
|
-
|
|
7662
|
+
const sheet = /* @__PURE__ */ jsxs7(
|
|
7663
|
+
Box8,
|
|
7617
7664
|
{
|
|
7618
7665
|
sx: {
|
|
7619
7666
|
width: "100%",
|
|
@@ -7632,8 +7679,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7632
7679
|
// Ensure it's on top
|
|
7633
7680
|
},
|
|
7634
7681
|
children: [
|
|
7635
|
-
isMobileView && /* @__PURE__ */
|
|
7636
|
-
|
|
7682
|
+
isMobileView && /* @__PURE__ */ jsx8(
|
|
7683
|
+
Box8,
|
|
7637
7684
|
{
|
|
7638
7685
|
sx: {
|
|
7639
7686
|
height: 6,
|
|
@@ -7646,8 +7693,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7646
7693
|
}
|
|
7647
7694
|
}
|
|
7648
7695
|
),
|
|
7649
|
-
/* @__PURE__ */
|
|
7650
|
-
|
|
7696
|
+
/* @__PURE__ */ jsxs7(
|
|
7697
|
+
Box8,
|
|
7651
7698
|
{
|
|
7652
7699
|
sx: {
|
|
7653
7700
|
flexShrink: 0,
|
|
@@ -7659,8 +7706,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7659
7706
|
gap: isMobileView ? 0.9 : 1.25
|
|
7660
7707
|
},
|
|
7661
7708
|
children: [
|
|
7662
|
-
/* @__PURE__ */
|
|
7663
|
-
|
|
7709
|
+
/* @__PURE__ */ jsxs7(
|
|
7710
|
+
Box8,
|
|
7664
7711
|
{
|
|
7665
7712
|
sx: {
|
|
7666
7713
|
width: "100%",
|
|
@@ -7671,9 +7718,9 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7671
7718
|
flexWrap: "wrap"
|
|
7672
7719
|
},
|
|
7673
7720
|
children: [
|
|
7674
|
-
/* @__PURE__ */
|
|
7675
|
-
/* @__PURE__ */
|
|
7676
|
-
shouldUseVectorForMemories && /* @__PURE__ */
|
|
7721
|
+
/* @__PURE__ */ jsxs7(Box8, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
|
|
7722
|
+
/* @__PURE__ */ jsx8(Typography5, { variant: "h6", sx: { fontWeight: 600 }, children: "Memory" }),
|
|
7723
|
+
shouldUseVectorForMemories && /* @__PURE__ */ jsx8(Tooltip5, { title: "Memories stay in your private knowledge space for faster, more accurate answers.", children: /* @__PURE__ */ jsx8(
|
|
7677
7724
|
Typography5,
|
|
7678
7725
|
{
|
|
7679
7726
|
variant: "caption",
|
|
@@ -7692,8 +7739,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7692
7739
|
}
|
|
7693
7740
|
) })
|
|
7694
7741
|
] }),
|
|
7695
|
-
/* @__PURE__ */
|
|
7696
|
-
|
|
7742
|
+
/* @__PURE__ */ jsxs7(
|
|
7743
|
+
Box8,
|
|
7697
7744
|
{
|
|
7698
7745
|
sx: {
|
|
7699
7746
|
display: "flex",
|
|
@@ -7703,12 +7750,12 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7703
7750
|
flexWrap: "wrap"
|
|
7704
7751
|
},
|
|
7705
7752
|
children: [
|
|
7706
|
-
multiSelectMode ? /* @__PURE__ */
|
|
7707
|
-
/* @__PURE__ */
|
|
7753
|
+
multiSelectMode ? /* @__PURE__ */ jsxs7(Fragment5, { children: [
|
|
7754
|
+
/* @__PURE__ */ jsxs7(Typography5, { variant: "caption", sx: { color: theme.palette.text.secondary, mr: 0.5 }, children: [
|
|
7708
7755
|
selectedIds.length,
|
|
7709
7756
|
" selected"
|
|
7710
7757
|
] }),
|
|
7711
|
-
/* @__PURE__ */
|
|
7758
|
+
/* @__PURE__ */ jsx8(
|
|
7712
7759
|
Button4,
|
|
7713
7760
|
{
|
|
7714
7761
|
variant: "outlined",
|
|
@@ -7721,8 +7768,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7721
7768
|
children: "Cancel"
|
|
7722
7769
|
}
|
|
7723
7770
|
),
|
|
7724
|
-
selectedIds.length > 0 && /* @__PURE__ */
|
|
7725
|
-
/* @__PURE__ */
|
|
7771
|
+
selectedIds.length > 0 && /* @__PURE__ */ jsxs7(Fragment5, { children: [
|
|
7772
|
+
/* @__PURE__ */ jsxs7(
|
|
7726
7773
|
Button4,
|
|
7727
7774
|
{
|
|
7728
7775
|
variant: "outlined",
|
|
@@ -7737,7 +7784,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7737
7784
|
]
|
|
7738
7785
|
}
|
|
7739
7786
|
),
|
|
7740
|
-
/* @__PURE__ */
|
|
7787
|
+
/* @__PURE__ */ jsxs7(
|
|
7741
7788
|
Button4,
|
|
7742
7789
|
{
|
|
7743
7790
|
variant: "outlined",
|
|
@@ -7751,7 +7798,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7751
7798
|
]
|
|
7752
7799
|
}
|
|
7753
7800
|
),
|
|
7754
|
-
/* @__PURE__ */
|
|
7801
|
+
/* @__PURE__ */ jsxs7(
|
|
7755
7802
|
Button4,
|
|
7756
7803
|
{
|
|
7757
7804
|
variant: "contained",
|
|
@@ -7767,8 +7814,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7767
7814
|
}
|
|
7768
7815
|
)
|
|
7769
7816
|
] })
|
|
7770
|
-
] }) : filteredMemories.length > 0 && /* @__PURE__ */
|
|
7771
|
-
/* @__PURE__ */
|
|
7817
|
+
] }) : filteredMemories.length > 0 && /* @__PURE__ */ jsxs7(Fragment5, { children: [
|
|
7818
|
+
/* @__PURE__ */ jsx8(
|
|
7772
7819
|
Button4,
|
|
7773
7820
|
{
|
|
7774
7821
|
variant: "outlined",
|
|
@@ -7778,19 +7825,19 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7778
7825
|
children: "Clear All"
|
|
7779
7826
|
}
|
|
7780
7827
|
),
|
|
7781
|
-
isVectorEnabled && entries.length > 0 && /* @__PURE__ */
|
|
7828
|
+
isVectorEnabled && entries.length > 0 && /* @__PURE__ */ jsx8(
|
|
7782
7829
|
Button4,
|
|
7783
7830
|
{
|
|
7784
7831
|
variant: "outlined",
|
|
7785
7832
|
size: "small",
|
|
7786
7833
|
color: "primary",
|
|
7787
7834
|
onClick: () => setBulkImportOpen(true),
|
|
7788
|
-
startIcon: /* @__PURE__ */
|
|
7835
|
+
startIcon: /* @__PURE__ */ jsx8(CloudSyncIcon, {}),
|
|
7789
7836
|
sx: { textTransform: "none", borderRadius: 2, fontSize: "0.75rem" },
|
|
7790
7837
|
children: "Import to workspace"
|
|
7791
7838
|
}
|
|
7792
7839
|
),
|
|
7793
|
-
/* @__PURE__ */
|
|
7840
|
+
/* @__PURE__ */ jsx8(
|
|
7794
7841
|
Button4,
|
|
7795
7842
|
{
|
|
7796
7843
|
variant: "outlined",
|
|
@@ -7805,7 +7852,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7805
7852
|
}
|
|
7806
7853
|
)
|
|
7807
7854
|
] }),
|
|
7808
|
-
!multiSelectMode && isMobileView && /* @__PURE__ */
|
|
7855
|
+
!multiSelectMode && isMobileView && /* @__PURE__ */ jsx8(
|
|
7809
7856
|
Button4,
|
|
7810
7857
|
{
|
|
7811
7858
|
variant: "contained",
|
|
@@ -7821,7 +7868,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7821
7868
|
children: "Save"
|
|
7822
7869
|
}
|
|
7823
7870
|
),
|
|
7824
|
-
/* @__PURE__ */
|
|
7871
|
+
/* @__PURE__ */ jsx8(
|
|
7825
7872
|
IconButton6,
|
|
7826
7873
|
{
|
|
7827
7874
|
onClick: onClose,
|
|
@@ -7831,7 +7878,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7831
7878
|
borderRadius: 2
|
|
7832
7879
|
},
|
|
7833
7880
|
size: "small",
|
|
7834
|
-
children: /* @__PURE__ */
|
|
7881
|
+
children: /* @__PURE__ */ jsx8(CloseIcon, { fontSize: "small" })
|
|
7835
7882
|
}
|
|
7836
7883
|
)
|
|
7837
7884
|
]
|
|
@@ -7840,8 +7887,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7840
7887
|
]
|
|
7841
7888
|
}
|
|
7842
7889
|
),
|
|
7843
|
-
/* @__PURE__ */
|
|
7844
|
-
|
|
7890
|
+
/* @__PURE__ */ jsxs7(
|
|
7891
|
+
Box8,
|
|
7845
7892
|
{
|
|
7846
7893
|
sx: {
|
|
7847
7894
|
display: "flex",
|
|
@@ -7850,7 +7897,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7850
7897
|
color: theme.palette.text.secondary
|
|
7851
7898
|
},
|
|
7852
7899
|
children: [
|
|
7853
|
-
/* @__PURE__ */
|
|
7900
|
+
/* @__PURE__ */ jsx8(
|
|
7854
7901
|
Typography5,
|
|
7855
7902
|
{
|
|
7856
7903
|
variant: "caption",
|
|
@@ -7866,7 +7913,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7866
7913
|
children: shouldUseVectorForMemories ? "Cloud memory" : "Local memory"
|
|
7867
7914
|
}
|
|
7868
7915
|
),
|
|
7869
|
-
filteredMemories.length > 0 && /* @__PURE__ */
|
|
7916
|
+
filteredMemories.length > 0 && /* @__PURE__ */ jsxs7(
|
|
7870
7917
|
Typography5,
|
|
7871
7918
|
{
|
|
7872
7919
|
variant: "caption",
|
|
@@ -7892,7 +7939,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7892
7939
|
]
|
|
7893
7940
|
}
|
|
7894
7941
|
),
|
|
7895
|
-
shouldUseVectorForMemories && /* @__PURE__ */
|
|
7942
|
+
shouldUseVectorForMemories && /* @__PURE__ */ jsxs7(Box8, { sx: {
|
|
7896
7943
|
flexShrink: 0,
|
|
7897
7944
|
mx: isMobileView ? 1.5 : 2,
|
|
7898
7945
|
mt: 1,
|
|
@@ -7906,7 +7953,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7906
7953
|
position: "relative",
|
|
7907
7954
|
overflow: "hidden"
|
|
7908
7955
|
}, children: [
|
|
7909
|
-
/* @__PURE__ */
|
|
7956
|
+
/* @__PURE__ */ jsx8(Box8, { sx: {
|
|
7910
7957
|
position: "absolute",
|
|
7911
7958
|
top: 0,
|
|
7912
7959
|
left: "-100%",
|
|
@@ -7915,7 +7962,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7915
7962
|
background: `linear-gradient(90deg, transparent, ${alpha3(theme.palette.primary.main, 0.1)}, transparent)`,
|
|
7916
7963
|
animation: `${shimmer} 3s infinite`
|
|
7917
7964
|
} }),
|
|
7918
|
-
/* @__PURE__ */
|
|
7965
|
+
/* @__PURE__ */ jsx8(Box8, { sx: {
|
|
7919
7966
|
width: 8,
|
|
7920
7967
|
height: 8,
|
|
7921
7968
|
borderRadius: "50%",
|
|
@@ -7923,15 +7970,15 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7923
7970
|
animation: `${pulse} 2s infinite`,
|
|
7924
7971
|
zIndex: 1
|
|
7925
7972
|
} }),
|
|
7926
|
-
/* @__PURE__ */
|
|
7973
|
+
/* @__PURE__ */ jsx8(Typography5, { variant: "body2", sx: {
|
|
7927
7974
|
color: theme.palette.primary.main,
|
|
7928
7975
|
fontSize: "0.8rem",
|
|
7929
7976
|
fontWeight: 500,
|
|
7930
7977
|
zIndex: 1
|
|
7931
7978
|
}, children: "Cloud memory \xB7 synced to your account" })
|
|
7932
7979
|
] }),
|
|
7933
|
-
/* @__PURE__ */
|
|
7934
|
-
/* @__PURE__ */
|
|
7980
|
+
/* @__PURE__ */ jsxs7(Box8, { sx: { flexShrink: 0 }, children: [
|
|
7981
|
+
/* @__PURE__ */ jsx8(Box8, { sx: { px: isMobileView ? 1.5 : 2, py: isMobileView ? 1.25 : 1.5 }, children: /* @__PURE__ */ jsx8(
|
|
7935
7982
|
Typography5,
|
|
7936
7983
|
{
|
|
7937
7984
|
variant: "body2",
|
|
@@ -7939,7 +7986,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7939
7986
|
children: shouldUseVectorForMemories ? "Synced to your account for quick recall." : "Private and local. You decide what's remembered."
|
|
7940
7987
|
}
|
|
7941
7988
|
) }),
|
|
7942
|
-
/* @__PURE__ */
|
|
7989
|
+
/* @__PURE__ */ jsxs7(
|
|
7943
7990
|
Tabs,
|
|
7944
7991
|
{
|
|
7945
7992
|
value: selectedTab,
|
|
@@ -7960,12 +8007,12 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7960
8007
|
}
|
|
7961
8008
|
},
|
|
7962
8009
|
children: [
|
|
7963
|
-
/* @__PURE__ */
|
|
8010
|
+
/* @__PURE__ */ jsx8(
|
|
7964
8011
|
Tab,
|
|
7965
8012
|
{
|
|
7966
|
-
label: /* @__PURE__ */
|
|
8013
|
+
label: /* @__PURE__ */ jsxs7(Box8, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
7967
8014
|
"User",
|
|
7968
|
-
getUserMemoryCount() > 0 && /* @__PURE__ */
|
|
8015
|
+
getUserMemoryCount() > 0 && /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
|
|
7969
8016
|
bgcolor: alpha3(theme.palette.primary.main, 0.2),
|
|
7970
8017
|
color: theme.palette.primary.main,
|
|
7971
8018
|
px: 0.75,
|
|
@@ -7978,12 +8025,12 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
7978
8025
|
value: "user"
|
|
7979
8026
|
}
|
|
7980
8027
|
),
|
|
7981
|
-
/* @__PURE__ */
|
|
8028
|
+
/* @__PURE__ */ jsx8(
|
|
7982
8029
|
Tab,
|
|
7983
8030
|
{
|
|
7984
|
-
label: /* @__PURE__ */
|
|
8031
|
+
label: /* @__PURE__ */ jsxs7(Box8, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
7985
8032
|
"Auto",
|
|
7986
|
-
getAutoMemoryCount() > 0 && /* @__PURE__ */
|
|
8033
|
+
getAutoMemoryCount() > 0 && /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
|
|
7987
8034
|
bgcolor: alpha3(theme.palette.secondary.main, 0.2),
|
|
7988
8035
|
color: theme.palette.secondary.main,
|
|
7989
8036
|
px: 0.75,
|
|
@@ -8000,8 +8047,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8000
8047
|
}
|
|
8001
8048
|
)
|
|
8002
8049
|
] }),
|
|
8003
|
-
/* @__PURE__ */
|
|
8004
|
-
|
|
8050
|
+
/* @__PURE__ */ jsx8(
|
|
8051
|
+
Box8,
|
|
8005
8052
|
{
|
|
8006
8053
|
sx: {
|
|
8007
8054
|
flexGrow: 1,
|
|
@@ -8009,7 +8056,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8009
8056
|
px: isMobileView ? 1.5 : 2,
|
|
8010
8057
|
py: isMobileView ? 1 : 1
|
|
8011
8058
|
},
|
|
8012
|
-
children: filteredMemories.length === 0 ? /* @__PURE__ */
|
|
8059
|
+
children: filteredMemories.length === 0 ? /* @__PURE__ */ jsxs7(Box8, { sx: {
|
|
8013
8060
|
display: "flex",
|
|
8014
8061
|
flexDirection: "column",
|
|
8015
8062
|
alignItems: "center",
|
|
@@ -8017,7 +8064,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8017
8064
|
height: "200px",
|
|
8018
8065
|
textAlign: "center"
|
|
8019
8066
|
}, children: [
|
|
8020
|
-
/* @__PURE__ */
|
|
8067
|
+
/* @__PURE__ */ jsxs7(Typography5, { variant: "h6", sx: {
|
|
8021
8068
|
color: theme.palette.text.secondary,
|
|
8022
8069
|
mb: 1,
|
|
8023
8070
|
fontSize: "1.1rem"
|
|
@@ -8026,14 +8073,14 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8026
8073
|
selectedTab,
|
|
8027
8074
|
" memories yet"
|
|
8028
8075
|
] }),
|
|
8029
|
-
/* @__PURE__ */
|
|
8076
|
+
/* @__PURE__ */ jsx8(Typography5, { variant: "body2", sx: {
|
|
8030
8077
|
color: alpha3(theme.palette.text.secondary, 0.7),
|
|
8031
8078
|
maxWidth: 280
|
|
8032
8079
|
}, 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." })
|
|
8033
8080
|
] }) : filteredMemories.map((memory) => {
|
|
8034
8081
|
const isSelected = selectedIds.includes(memory.id);
|
|
8035
|
-
return /* @__PURE__ */
|
|
8036
|
-
/* @__PURE__ */
|
|
8082
|
+
return /* @__PURE__ */ jsxs7(React7.Fragment, { children: [
|
|
8083
|
+
/* @__PURE__ */ jsx8(List2, { sx: { listStyle: "none", pl: 0, m: 0 }, children: /* @__PURE__ */ jsxs7(
|
|
8037
8084
|
ListItem,
|
|
8038
8085
|
{
|
|
8039
8086
|
onClick: () => multiSelectMode && toggleSelection(memory.id),
|
|
@@ -8054,8 +8101,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8054
8101
|
}
|
|
8055
8102
|
},
|
|
8056
8103
|
children: [
|
|
8057
|
-
/* @__PURE__ */
|
|
8058
|
-
|
|
8104
|
+
/* @__PURE__ */ jsxs7(
|
|
8105
|
+
Box8,
|
|
8059
8106
|
{
|
|
8060
8107
|
sx: {
|
|
8061
8108
|
display: "flex",
|
|
@@ -8064,7 +8111,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8064
8111
|
gap: 1.5
|
|
8065
8112
|
},
|
|
8066
8113
|
children: [
|
|
8067
|
-
/* @__PURE__ */
|
|
8114
|
+
/* @__PURE__ */ jsx8(
|
|
8068
8115
|
Avatar3,
|
|
8069
8116
|
{
|
|
8070
8117
|
src: "https://cdn.burtson.ai/images/brain-icon.png",
|
|
@@ -8077,7 +8124,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8077
8124
|
border: isVectorEnabled ? `2px solid ${alpha3(theme.palette.primary.main, 0.4)}` : `1px solid ${theme.palette.divider}`,
|
|
8078
8125
|
position: "relative"
|
|
8079
8126
|
},
|
|
8080
|
-
children: isVectorEnabled && /* @__PURE__ */
|
|
8127
|
+
children: isVectorEnabled && /* @__PURE__ */ jsx8(Box8, { sx: {
|
|
8081
8128
|
position: "absolute",
|
|
8082
8129
|
top: -2,
|
|
8083
8130
|
right: -2,
|
|
@@ -8094,7 +8141,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8094
8141
|
}, children: "\u26A1" })
|
|
8095
8142
|
}
|
|
8096
8143
|
),
|
|
8097
|
-
editingId === memory.id ? /* @__PURE__ */
|
|
8144
|
+
editingId === memory.id ? /* @__PURE__ */ jsx8(
|
|
8098
8145
|
TextField2,
|
|
8099
8146
|
{
|
|
8100
8147
|
fullWidth: true,
|
|
@@ -8141,8 +8188,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8141
8188
|
},
|
|
8142
8189
|
helperText: "Press Cmd/Ctrl+Enter to save, Escape to cancel"
|
|
8143
8190
|
}
|
|
8144
|
-
) : /* @__PURE__ */
|
|
8145
|
-
/* @__PURE__ */
|
|
8191
|
+
) : /* @__PURE__ */ jsxs7(Box8, { sx: { flex: 1 }, children: [
|
|
8192
|
+
/* @__PURE__ */ jsx8(
|
|
8146
8193
|
Typography5,
|
|
8147
8194
|
{
|
|
8148
8195
|
sx: {
|
|
@@ -8164,7 +8211,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8164
8211
|
children: memory.content
|
|
8165
8212
|
}
|
|
8166
8213
|
),
|
|
8167
|
-
memory.pinned && /* @__PURE__ */
|
|
8214
|
+
memory.pinned && /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
|
|
8168
8215
|
color: alpha3(theme.palette.secondary.main, 0.7),
|
|
8169
8216
|
fontStyle: "italic",
|
|
8170
8217
|
mt: 0.5,
|
|
@@ -8174,8 +8221,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8174
8221
|
]
|
|
8175
8222
|
}
|
|
8176
8223
|
),
|
|
8177
|
-
!multiSelectMode && /* @__PURE__ */
|
|
8178
|
-
/* @__PURE__ */
|
|
8224
|
+
!multiSelectMode && /* @__PURE__ */ jsxs7(Box8, { sx: { display: "flex", gap: 0.5, mt: 0.5 }, children: [
|
|
8225
|
+
/* @__PURE__ */ jsx8(Tooltip5, { title: memory.pinned ? "Unpin memory" : "Pin memory", children: /* @__PURE__ */ jsx8(
|
|
8179
8226
|
IconButton6,
|
|
8180
8227
|
{
|
|
8181
8228
|
onClick: async () => {
|
|
@@ -8208,10 +8255,10 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8208
8255
|
}
|
|
8209
8256
|
},
|
|
8210
8257
|
size: "small",
|
|
8211
|
-
children: memory.pinned ? /* @__PURE__ */
|
|
8258
|
+
children: memory.pinned ? /* @__PURE__ */ jsx8(PushPinIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx8(PushPinOutlinedIcon, { fontSize: "small" })
|
|
8212
8259
|
}
|
|
8213
8260
|
) }),
|
|
8214
|
-
/* @__PURE__ */
|
|
8261
|
+
/* @__PURE__ */ jsx8(Tooltip5, { title: "Delete memory", children: /* @__PURE__ */ jsx8(
|
|
8215
8262
|
IconButton6,
|
|
8216
8263
|
{
|
|
8217
8264
|
onClick: async () => await handleDeleteMemory(memory.id),
|
|
@@ -8223,20 +8270,20 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8223
8270
|
}
|
|
8224
8271
|
},
|
|
8225
8272
|
size: "small",
|
|
8226
|
-
children: /* @__PURE__ */
|
|
8273
|
+
children: /* @__PURE__ */ jsx8(DeleteIcon, { fontSize: "small" })
|
|
8227
8274
|
}
|
|
8228
8275
|
) })
|
|
8229
8276
|
] })
|
|
8230
8277
|
]
|
|
8231
8278
|
}
|
|
8232
8279
|
) }),
|
|
8233
|
-
filteredMemories.indexOf(memory) < filteredMemories.length - 1 && /* @__PURE__ */
|
|
8280
|
+
filteredMemories.indexOf(memory) < filteredMemories.length - 1 && /* @__PURE__ */ jsx8(Divider, { sx: { bgcolor: alpha3(appBar.border, 0.5), my: 0.5 } })
|
|
8234
8281
|
] }, memory.id);
|
|
8235
8282
|
})
|
|
8236
8283
|
}
|
|
8237
8284
|
),
|
|
8238
|
-
multiSelectMode && /* @__PURE__ */
|
|
8239
|
-
|
|
8285
|
+
multiSelectMode && /* @__PURE__ */ jsx8(
|
|
8286
|
+
Box8,
|
|
8240
8287
|
{
|
|
8241
8288
|
sx: {
|
|
8242
8289
|
p: isMobileView ? 1.5 : 2,
|
|
@@ -8244,12 +8291,12 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8244
8291
|
bgcolor: alpha3(theme.palette.error.main, 0.05),
|
|
8245
8292
|
borderBottom: selectedIds.length > 0 ? `2px solid ${alpha3(theme.palette.error.main, 0.2)}` : void 0
|
|
8246
8293
|
},
|
|
8247
|
-
children: selectedIds.length === 0 ? /* @__PURE__ */
|
|
8294
|
+
children: selectedIds.length === 0 ? /* @__PURE__ */ jsx8(Typography5, { variant: "body2", sx: {
|
|
8248
8295
|
textAlign: "center",
|
|
8249
8296
|
color: theme.palette.text.secondary,
|
|
8250
8297
|
fontStyle: "italic"
|
|
8251
|
-
}, children: "Tap memories to select them for deletion" }) : /* @__PURE__ */
|
|
8252
|
-
/* @__PURE__ */
|
|
8298
|
+
}, children: "Tap memories to select them for deletion" }) : /* @__PURE__ */ jsxs7(Box8, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
8299
|
+
/* @__PURE__ */ jsx8(
|
|
8253
8300
|
Button4,
|
|
8254
8301
|
{
|
|
8255
8302
|
variant: "outlined",
|
|
@@ -8265,7 +8312,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8265
8312
|
children: "Select All"
|
|
8266
8313
|
}
|
|
8267
8314
|
),
|
|
8268
|
-
/* @__PURE__ */
|
|
8315
|
+
/* @__PURE__ */ jsxs7(
|
|
8269
8316
|
Button4,
|
|
8270
8317
|
{
|
|
8271
8318
|
fullWidth: true,
|
|
@@ -8283,8 +8330,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8283
8330
|
] })
|
|
8284
8331
|
}
|
|
8285
8332
|
),
|
|
8286
|
-
/* @__PURE__ */
|
|
8287
|
-
|
|
8333
|
+
/* @__PURE__ */ jsxs7(
|
|
8334
|
+
Box8,
|
|
8288
8335
|
{
|
|
8289
8336
|
sx: {
|
|
8290
8337
|
flexShrink: 0,
|
|
@@ -8294,7 +8341,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8294
8341
|
pb: `calc(env(safe-area-inset-bottom, 0px) + 8px)`
|
|
8295
8342
|
},
|
|
8296
8343
|
children: [
|
|
8297
|
-
/* @__PURE__ */
|
|
8344
|
+
/* @__PURE__ */ jsx8(
|
|
8298
8345
|
TextField2,
|
|
8299
8346
|
{
|
|
8300
8347
|
fullWidth: true,
|
|
@@ -8340,7 +8387,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8340
8387
|
mb: 1.5
|
|
8341
8388
|
},
|
|
8342
8389
|
InputProps: {
|
|
8343
|
-
endAdornment: newMemory.trim() && /* @__PURE__ */
|
|
8390
|
+
endAdornment: newMemory.trim() && /* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
|
|
8344
8391
|
color: alpha3(theme.palette.text.secondary, 0.7),
|
|
8345
8392
|
fontSize: "0.7rem",
|
|
8346
8393
|
whiteSpace: "nowrap"
|
|
@@ -8348,7 +8395,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8348
8395
|
}
|
|
8349
8396
|
}
|
|
8350
8397
|
),
|
|
8351
|
-
!isMobileView && /* @__PURE__ */
|
|
8398
|
+
!isMobileView && /* @__PURE__ */ jsx8(
|
|
8352
8399
|
Button4,
|
|
8353
8400
|
{
|
|
8354
8401
|
fullWidth: true,
|
|
@@ -8367,7 +8414,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8367
8414
|
]
|
|
8368
8415
|
}
|
|
8369
8416
|
),
|
|
8370
|
-
/* @__PURE__ */
|
|
8417
|
+
/* @__PURE__ */ jsxs7(
|
|
8371
8418
|
Dialog3,
|
|
8372
8419
|
{
|
|
8373
8420
|
open: confirmOpen,
|
|
@@ -8380,16 +8427,16 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8380
8427
|
sx: { borderRadius: 3, minWidth: 320 }
|
|
8381
8428
|
},
|
|
8382
8429
|
children: [
|
|
8383
|
-
/* @__PURE__ */
|
|
8430
|
+
/* @__PURE__ */ jsxs7(DialogTitle2, { sx: { pb: 1 }, children: [
|
|
8384
8431
|
"Delete ",
|
|
8385
8432
|
selectedIds.length,
|
|
8386
8433
|
" ",
|
|
8387
8434
|
selectedIds.length === 1 ? "Memory" : "Memories",
|
|
8388
8435
|
"?"
|
|
8389
8436
|
] }),
|
|
8390
|
-
/* @__PURE__ */
|
|
8391
|
-
/* @__PURE__ */
|
|
8392
|
-
/* @__PURE__ */
|
|
8437
|
+
/* @__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." }) }),
|
|
8438
|
+
/* @__PURE__ */ jsxs7(DialogActions2, { sx: { p: 3, pt: 1 }, children: [
|
|
8439
|
+
/* @__PURE__ */ jsx8(
|
|
8393
8440
|
Button4,
|
|
8394
8441
|
{
|
|
8395
8442
|
onClick: () => setConfirmOpen(false),
|
|
@@ -8397,7 +8444,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8397
8444
|
children: "Cancel"
|
|
8398
8445
|
}
|
|
8399
8446
|
),
|
|
8400
|
-
/* @__PURE__ */
|
|
8447
|
+
/* @__PURE__ */ jsxs7(
|
|
8401
8448
|
Button4,
|
|
8402
8449
|
{
|
|
8403
8450
|
onClick: handleMultiDelete,
|
|
@@ -8415,7 +8462,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8415
8462
|
]
|
|
8416
8463
|
}
|
|
8417
8464
|
),
|
|
8418
|
-
/* @__PURE__ */
|
|
8465
|
+
/* @__PURE__ */ jsxs7(
|
|
8419
8466
|
Dialog3,
|
|
8420
8467
|
{
|
|
8421
8468
|
open: clearAllOpen,
|
|
@@ -8428,23 +8475,23 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8428
8475
|
sx: { borderRadius: 3, minWidth: 320 }
|
|
8429
8476
|
},
|
|
8430
8477
|
children: [
|
|
8431
|
-
/* @__PURE__ */
|
|
8432
|
-
/* @__PURE__ */
|
|
8433
|
-
/* @__PURE__ */
|
|
8434
|
-
/* @__PURE__ */
|
|
8478
|
+
/* @__PURE__ */ jsx8(DialogTitle2, { sx: { pb: 1, fontWeight: 600 }, children: "Clear Memories" }),
|
|
8479
|
+
/* @__PURE__ */ jsxs7(DialogContent2, { sx: { pb: 2 }, children: [
|
|
8480
|
+
/* @__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:" }),
|
|
8481
|
+
/* @__PURE__ */ jsx8(FormControl2, { component: "fieldset", children: /* @__PURE__ */ jsxs7(
|
|
8435
8482
|
RadioGroup,
|
|
8436
8483
|
{
|
|
8437
8484
|
value: clearOption,
|
|
8438
8485
|
onChange: (e) => setClearOption(e.target.value),
|
|
8439
8486
|
children: [
|
|
8440
|
-
/* @__PURE__ */
|
|
8487
|
+
/* @__PURE__ */ jsx8(
|
|
8441
8488
|
FormControlLabel,
|
|
8442
8489
|
{
|
|
8443
8490
|
value: "user",
|
|
8444
|
-
control: /* @__PURE__ */
|
|
8445
|
-
label: /* @__PURE__ */
|
|
8446
|
-
/* @__PURE__ */
|
|
8447
|
-
/* @__PURE__ */
|
|
8491
|
+
control: /* @__PURE__ */ jsx8(Radio, {}),
|
|
8492
|
+
label: /* @__PURE__ */ jsxs7(Box8, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8493
|
+
/* @__PURE__ */ jsx8(Typography5, { children: "User Memories" }),
|
|
8494
|
+
/* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
|
|
8448
8495
|
bgcolor: alpha3(theme.palette.primary.main, 0.1),
|
|
8449
8496
|
color: theme.palette.primary.main,
|
|
8450
8497
|
px: 1,
|
|
@@ -8455,14 +8502,14 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8455
8502
|
] })
|
|
8456
8503
|
}
|
|
8457
8504
|
),
|
|
8458
|
-
/* @__PURE__ */
|
|
8505
|
+
/* @__PURE__ */ jsx8(
|
|
8459
8506
|
FormControlLabel,
|
|
8460
8507
|
{
|
|
8461
8508
|
value: "auto",
|
|
8462
|
-
control: /* @__PURE__ */
|
|
8463
|
-
label: /* @__PURE__ */
|
|
8464
|
-
/* @__PURE__ */
|
|
8465
|
-
/* @__PURE__ */
|
|
8509
|
+
control: /* @__PURE__ */ jsx8(Radio, {}),
|
|
8510
|
+
label: /* @__PURE__ */ jsxs7(Box8, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8511
|
+
/* @__PURE__ */ jsx8(Typography5, { children: "Auto Memories" }),
|
|
8512
|
+
/* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
|
|
8466
8513
|
bgcolor: alpha3(theme.palette.secondary.main, 0.1),
|
|
8467
8514
|
color: theme.palette.secondary.main,
|
|
8468
8515
|
px: 1,
|
|
@@ -8473,14 +8520,14 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8473
8520
|
] })
|
|
8474
8521
|
}
|
|
8475
8522
|
),
|
|
8476
|
-
/* @__PURE__ */
|
|
8523
|
+
/* @__PURE__ */ jsx8(
|
|
8477
8524
|
FormControlLabel,
|
|
8478
8525
|
{
|
|
8479
8526
|
value: "both",
|
|
8480
|
-
control: /* @__PURE__ */
|
|
8481
|
-
label: /* @__PURE__ */
|
|
8482
|
-
/* @__PURE__ */
|
|
8483
|
-
/* @__PURE__ */
|
|
8527
|
+
control: /* @__PURE__ */ jsx8(Radio, {}),
|
|
8528
|
+
label: /* @__PURE__ */ jsxs7(Box8, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8529
|
+
/* @__PURE__ */ jsx8(Typography5, { children: "Both Types" }),
|
|
8530
|
+
/* @__PURE__ */ jsx8(Typography5, { variant: "caption", sx: {
|
|
8484
8531
|
bgcolor: alpha3(theme.palette.error.main, 0.1),
|
|
8485
8532
|
color: theme.palette.error.main,
|
|
8486
8533
|
px: 1,
|
|
@@ -8495,8 +8542,8 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8495
8542
|
}
|
|
8496
8543
|
) })
|
|
8497
8544
|
] }),
|
|
8498
|
-
/* @__PURE__ */
|
|
8499
|
-
/* @__PURE__ */
|
|
8545
|
+
/* @__PURE__ */ jsxs7(DialogActions2, { sx: { p: 3, pt: 1 }, children: [
|
|
8546
|
+
/* @__PURE__ */ jsx8(
|
|
8500
8547
|
Button4,
|
|
8501
8548
|
{
|
|
8502
8549
|
onClick: () => setClearAllOpen(false),
|
|
@@ -8504,7 +8551,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8504
8551
|
children: "Cancel"
|
|
8505
8552
|
}
|
|
8506
8553
|
),
|
|
8507
|
-
/* @__PURE__ */
|
|
8554
|
+
/* @__PURE__ */ jsxs7(
|
|
8508
8555
|
Button4,
|
|
8509
8556
|
{
|
|
8510
8557
|
color: "error",
|
|
@@ -8522,7 +8569,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8522
8569
|
]
|
|
8523
8570
|
}
|
|
8524
8571
|
),
|
|
8525
|
-
/* @__PURE__ */
|
|
8572
|
+
/* @__PURE__ */ jsxs7(
|
|
8526
8573
|
Dialog3,
|
|
8527
8574
|
{
|
|
8528
8575
|
open: bulkImportOpen,
|
|
@@ -8533,30 +8580,30 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8533
8580
|
sx: { borderRadius: 3 }
|
|
8534
8581
|
},
|
|
8535
8582
|
children: [
|
|
8536
|
-
/* @__PURE__ */
|
|
8583
|
+
/* @__PURE__ */ jsxs7(DialogTitle2, { sx: {
|
|
8537
8584
|
fontWeight: 600,
|
|
8538
8585
|
pb: 1,
|
|
8539
8586
|
display: "flex",
|
|
8540
8587
|
alignItems: "center",
|
|
8541
8588
|
gap: 1
|
|
8542
8589
|
}, children: [
|
|
8543
|
-
/* @__PURE__ */
|
|
8590
|
+
/* @__PURE__ */ jsx8(CloudSyncIcon, { color: "primary" }),
|
|
8544
8591
|
"Import Memories to Secure Workspace"
|
|
8545
8592
|
] }),
|
|
8546
|
-
/* @__PURE__ */
|
|
8547
|
-
/* @__PURE__ */
|
|
8593
|
+
/* @__PURE__ */ jsx8(DialogContent2, { sx: { py: 2 }, children: !importProgress.isImporting ? /* @__PURE__ */ jsxs7(Box8, { children: [
|
|
8594
|
+
/* @__PURE__ */ jsxs7(Typography5, { variant: "body2", color: "text.secondary", sx: { mb: 2 }, children: [
|
|
8548
8595
|
"This will import all your local memories (",
|
|
8549
8596
|
entries.length,
|
|
8550
8597
|
" memories) to your secure workspace for faster, more reliable answers."
|
|
8551
8598
|
] }),
|
|
8552
|
-
/* @__PURE__ */
|
|
8553
|
-
/* @__PURE__ */
|
|
8599
|
+
/* @__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" }),
|
|
8600
|
+
/* @__PURE__ */ jsxs7(Typography5, { variant: "body2", color: "primary", sx: { fontWeight: 500 }, children: [
|
|
8554
8601
|
"Ready to import ",
|
|
8555
8602
|
entries.length,
|
|
8556
8603
|
" memories?"
|
|
8557
8604
|
] })
|
|
8558
|
-
] }) : /* @__PURE__ */
|
|
8559
|
-
/* @__PURE__ */
|
|
8605
|
+
] }) : /* @__PURE__ */ jsxs7(Box8, { sx: { textAlign: "center", py: 2 }, children: [
|
|
8606
|
+
/* @__PURE__ */ jsx8(
|
|
8560
8607
|
CloudSyncIcon,
|
|
8561
8608
|
{
|
|
8562
8609
|
sx: {
|
|
@@ -8567,9 +8614,9 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8567
8614
|
}
|
|
8568
8615
|
}
|
|
8569
8616
|
),
|
|
8570
|
-
/* @__PURE__ */
|
|
8571
|
-
importProgress.result && /* @__PURE__ */
|
|
8572
|
-
/* @__PURE__ */
|
|
8617
|
+
/* @__PURE__ */ jsx8(Typography5, { variant: "body1", sx: { mb: 1 }, children: importProgress.progress }),
|
|
8618
|
+
importProgress.result && /* @__PURE__ */ jsxs7(Fragment5, { children: [
|
|
8619
|
+
/* @__PURE__ */ jsx8(
|
|
8573
8620
|
Typography5,
|
|
8574
8621
|
{
|
|
8575
8622
|
variant: "body2",
|
|
@@ -8578,7 +8625,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8578
8625
|
children: importProgress.result.message
|
|
8579
8626
|
}
|
|
8580
8627
|
),
|
|
8581
|
-
importProgress.result.details && /* @__PURE__ */
|
|
8628
|
+
importProgress.result.details && /* @__PURE__ */ jsxs7(Box8, { sx: {
|
|
8582
8629
|
textAlign: "left",
|
|
8583
8630
|
backgroundColor: "background.paper",
|
|
8584
8631
|
border: 1,
|
|
@@ -8587,33 +8634,33 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8587
8634
|
p: 2,
|
|
8588
8635
|
mt: 2
|
|
8589
8636
|
}, children: [
|
|
8590
|
-
/* @__PURE__ */
|
|
8591
|
-
/* @__PURE__ */
|
|
8637
|
+
/* @__PURE__ */ jsx8(Typography5, { variant: "caption", color: "text.secondary", sx: { display: "block", mb: 1 }, children: "Import Details:" }),
|
|
8638
|
+
/* @__PURE__ */ jsxs7(Typography5, { variant: "body2", sx: { mb: 0.5 }, children: [
|
|
8592
8639
|
"\u2022 Total: ",
|
|
8593
8640
|
importProgress.result.details.totalMemories,
|
|
8594
8641
|
" memories"
|
|
8595
8642
|
] }),
|
|
8596
|
-
/* @__PURE__ */
|
|
8643
|
+
/* @__PURE__ */ jsxs7(Typography5, { variant: "body2", sx: { mb: 0.5 }, children: [
|
|
8597
8644
|
"\u2022 Success: ",
|
|
8598
8645
|
importProgress.result.details.successCount
|
|
8599
8646
|
] }),
|
|
8600
|
-
/* @__PURE__ */
|
|
8647
|
+
/* @__PURE__ */ jsxs7(Typography5, { variant: "body2", sx: { mb: 0.5 }, children: [
|
|
8601
8648
|
"\u2022 Failed: ",
|
|
8602
8649
|
importProgress.result.details.failureCount
|
|
8603
8650
|
] }),
|
|
8604
|
-
/* @__PURE__ */
|
|
8651
|
+
/* @__PURE__ */ jsxs7(Typography5, { variant: "body2", sx: { mb: 0.5 }, children: [
|
|
8605
8652
|
"\u2022 Duration: ",
|
|
8606
8653
|
importProgress.result.details.duration
|
|
8607
8654
|
] }),
|
|
8608
|
-
importProgress.result.details.warnings && importProgress.result.details.warnings.length > 0 && /* @__PURE__ */
|
|
8655
|
+
importProgress.result.details.warnings && importProgress.result.details.warnings.length > 0 && /* @__PURE__ */ jsxs7(Typography5, { variant: "body2", color: "warning.main", sx: { mt: 1 }, children: [
|
|
8609
8656
|
"\u26A0\uFE0F ",
|
|
8610
8657
|
importProgress.result.details.warnings.join(", ")
|
|
8611
8658
|
] })
|
|
8612
8659
|
] })
|
|
8613
8660
|
] })
|
|
8614
8661
|
] }) }),
|
|
8615
|
-
/* @__PURE__ */
|
|
8616
|
-
/* @__PURE__ */
|
|
8662
|
+
/* @__PURE__ */ jsxs7(DialogActions2, { sx: { p: 3, pt: 1 }, children: [
|
|
8663
|
+
/* @__PURE__ */ jsx8(
|
|
8617
8664
|
Button4,
|
|
8618
8665
|
{
|
|
8619
8666
|
onClick: () => {
|
|
@@ -8625,13 +8672,13 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8625
8672
|
children: importProgress.isImporting ? "Importing..." : "Cancel"
|
|
8626
8673
|
}
|
|
8627
8674
|
),
|
|
8628
|
-
!importProgress.isImporting && !importProgress.result && /* @__PURE__ */
|
|
8675
|
+
!importProgress.isImporting && !importProgress.result && /* @__PURE__ */ jsxs7(
|
|
8629
8676
|
Button4,
|
|
8630
8677
|
{
|
|
8631
8678
|
color: "primary",
|
|
8632
8679
|
variant: "contained",
|
|
8633
8680
|
onClick: handleBulkImport,
|
|
8634
|
-
startIcon: /* @__PURE__ */
|
|
8681
|
+
startIcon: /* @__PURE__ */ jsx8(CloudSyncIcon, {}),
|
|
8635
8682
|
sx: { textTransform: "none", borderRadius: 3 },
|
|
8636
8683
|
children: [
|
|
8637
8684
|
"Import ",
|
|
@@ -8648,7 +8695,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8648
8695
|
}
|
|
8649
8696
|
);
|
|
8650
8697
|
if (isMobileView) {
|
|
8651
|
-
return /* @__PURE__ */
|
|
8698
|
+
return /* @__PURE__ */ jsx8(
|
|
8652
8699
|
SwipeableDrawer,
|
|
8653
8700
|
{
|
|
8654
8701
|
anchor: "bottom",
|
|
@@ -8673,7 +8720,7 @@ var MemoryModal = ({ open, onClose }) => {
|
|
|
8673
8720
|
}
|
|
8674
8721
|
);
|
|
8675
8722
|
}
|
|
8676
|
-
return /* @__PURE__ */
|
|
8723
|
+
return /* @__PURE__ */ jsx8(
|
|
8677
8724
|
Modal2,
|
|
8678
8725
|
{
|
|
8679
8726
|
open,
|
|
@@ -8696,6 +8743,7 @@ export {
|
|
|
8696
8743
|
useCanvasStore,
|
|
8697
8744
|
getHighlightTree,
|
|
8698
8745
|
markdownSanitizeSchema,
|
|
8746
|
+
MarkdownImage,
|
|
8699
8747
|
renderLowlightChildren,
|
|
8700
8748
|
AddIcon,
|
|
8701
8749
|
GhostIcon,
|
|
@@ -8806,4 +8854,4 @@ export {
|
|
|
8806
8854
|
themeMap_default,
|
|
8807
8855
|
useNotificationService
|
|
8808
8856
|
};
|
|
8809
|
-
//# sourceMappingURL=chunk-
|
|
8857
|
+
//# sourceMappingURL=chunk-NTG4V34T.mjs.map
|