@flamingo-stack/openframe-frontend-core 0.0.828 → 0.0.830
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/build/export-map.json +1 -1
- package/dist/{chunk-DU6AF77X.cjs → chunk-2BGLALP5.cjs} +14 -14
- package/dist/{chunk-QMQWXGCH.cjs → chunk-56EP4QM2.cjs} +29 -25
- package/dist/{chunk-4ZH7RPEA.cjs → chunk-5KSPG3TV.cjs} +388 -388
- package/dist/{chunk-BGT6JFMP.cjs → chunk-5LED4QHZ.cjs} +527 -434
- package/dist/{chunk-6ZLCEIIC.cjs → chunk-CAGQAMJ6.cjs} +23 -23
- package/dist/{chunk-ALRX2VIY.cjs → chunk-D2LXFMZI.cjs} +26 -26
- package/dist/{chunk-VAIML6YU.cjs → chunk-DUGOOTER.cjs} +13 -13
- package/dist/{chunk-XPF74L76.cjs → chunk-E6W4YDPS.cjs} +2 -2
- package/dist/{chunk-UULSSD56.cjs → chunk-FFFN4IY2.cjs} +5 -5
- package/dist/{chunk-UWGPYAB3.cjs → chunk-HYCMMECU.cjs} +51 -51
- package/dist/{chunk-DR4P7AEU.cjs → chunk-HYGWRUEM.cjs} +3 -3
- package/dist/chunk-IX2E3AN7.cjs +77 -0
- package/dist/{chunk-YKUL6JBI.cjs → chunk-M75723HD.cjs} +46 -34
- package/dist/{chunk-RPKWEBHC.cjs → chunk-PUXYAHH3.cjs} +3 -3
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-QTLWU6FY.cjs} +5 -5
- package/dist/{chunk-3WKQ2GCR.cjs → chunk-RRPID7Z7.cjs} +6 -8
- package/dist/{chunk-6SFCI6D4.cjs → chunk-SAW7V7CU.cjs} +14 -16
- package/dist/{chunk-B5H7RKFF.cjs → chunk-TUMSVFVS.cjs} +4 -4
- package/dist/{chunk-7VC5FVWT.cjs → chunk-ULF4ZOUM.cjs} +65 -65
- package/dist/{chunk-ZT7JHN7G.cjs → chunk-WCCE4WF3.cjs} +57 -62
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-WWDNLMB7.cjs} +16 -16
- package/dist/{chunk-K6X7VP2Y.cjs → chunk-WZYBUJJG.cjs} +43 -43
- package/dist/{chunk-SVCTAOJR.cjs → chunk-X425BGXS.cjs} +2 -2
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{cloud-tenants-LKTWIZNS.cjs → cloud-tenants-4KQQPXPM.cjs} +12 -11
- package/dist/components/case-studies/index.cjs +24 -23
- package/dist/components/chat/assistant-ask-prompts.d.ts +5 -1
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/assistant-ask-prompts.js +3 -1
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +22 -14
- package/dist/components/chat/guide-welcome.d.ts +14 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +9 -24
- package/dist/components/chat/hooks/use-empty-state-config.d.ts +13 -3
- package/dist/components/chat/hooks/use-empty-state-config.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-empty-state-config.js +10 -2
- package/dist/components/chat/index.cjs +13 -5
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/contact/index.cjs +13 -12
- package/dist/components/docs/index.cjs +16 -15
- package/dist/components/embeds/index.cjs +13 -12
- package/dist/components/faq/faq-ask-card.d.ts +2 -13
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/faq-ask-card.js +1 -2
- package/dist/components/faq/faq-document-page.d.ts +2 -4
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.js +0 -2
- package/dist/components/faq/faq-section.d.ts +16 -29
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +23 -15
- package/dist/components/faq/index.cjs +14 -13
- package/dist/components/faq/index.d.ts +1 -1
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +12 -11
- package/dist/components/help-center-pages/delivery-page.d.ts +1 -8
- package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/delivery-page.js +4 -16
- package/dist/components/help-center-pages/download-apps-page.d.ts +1 -8
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +3 -4
- package/dist/components/help-center-pages/index.cjs +123 -171
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +1 -8
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.js +14 -26
- package/dist/components/help-center-pages/product-releases-list-page.d.ts +1 -8
- package/dist/components/help-center-pages/product-releases-list-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/product-releases-list-page.js +12 -24
- package/dist/components/help-center-pages/roadmap-page.d.ts +1 -8
- package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/roadmap-page.js +13 -25
- package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/index.cjs +58 -49
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/meeting-scheduler/index.cjs +50 -49
- package/dist/components/navigation/index.cjs +15 -14
- package/dist/components/onboarding-guides/index.cjs +14 -13
- package/dist/components/page-topic-label.d.ts +13 -0
- package/dist/components/page-topic-label.d.ts.map +1 -0
- package/dist/components/page-topic-label.js +20 -0
- package/dist/components/product-demo/index.cjs +23 -22
- package/dist/components/shared/dev-section/dev-section-page.d.ts +1 -8
- package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
- package/dist/components/shared/dev-section/dev-section-page.js +2 -3
- package/dist/components/shared/legal-document/legal-document-page.d.ts +2 -10
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +2 -5
- package/dist/components/shared/legal-document/use-legal-documents.d.ts +0 -2
- package/dist/components/shared/legal-document/use-legal-documents.d.ts.map +1 -1
- package/dist/components/shared/legal-document/use-legal-documents.js +0 -1
- package/dist/components/tickets/index.cjs +17 -16
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +18 -11
- package/dist/contexts/endpoints-runtime-context.d.ts +5 -0
- package/dist/contexts/endpoints-runtime-context.d.ts.map +1 -1
- package/dist/contexts/index.cjs +10 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +4 -0
- package/dist/contexts/page-topics-context.d.ts +30 -0
- package/dist/contexts/page-topics-context.d.ts.map +1 -0
- package/dist/contexts/page-topics-context.js +27 -0
- package/dist/{devices-JWG72ANF.cjs → devices-H6C4NMIY.cjs} +13 -12
- package/dist/{embeddable-chat-5UT6UHEO.cjs → embeddable-chat-KUESE7P6.cjs} +107 -97
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +33 -15
- package/dist/{knowledge-DQXVSHME.cjs → knowledge-O6IBO5Y5.cjs} +13 -12
- package/dist/{logs-Z33VBTVX.cjs → logs-Y2UCF24Z.cjs} +19 -18
- package/dist/{policies-XE4UMH6Z.cjs → policies-J6O3RLJT.cjs} +16 -15
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-RVTFWSU4.cjs} +5 -5
- package/dist/{scripts-MECQG5GG.cjs → scripts-N67MM4T2.cjs} +19 -18
- package/dist/{software-update-PCSIA6BP.cjs → software-update-HB7F6KNG.cjs} +16 -15
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-2K3PBCNW.cjs} +8 -8
- package/dist/utils/index.cjs +46 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +12 -0
- package/dist/utils/page-topics.cjs +48 -0
- package/dist/utils/page-topics.d.ts +34 -0
- package/dist/utils/page-topics.d.ts.map +1 -0
- package/dist/utils/page-topics.js +46 -0
- package/package.json +7 -1
- package/src/components/chat/assistant-ask-prompts.tsx +8 -2
- package/src/components/chat/embeddable-chat.tsx +32 -45
- package/src/components/chat/guide-welcome.tsx +28 -49
- package/src/components/chat/hooks/use-empty-state-config.ts +22 -5
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/faq/faq-ask-card.tsx +2 -12
- package/src/components/faq/faq-document-page.tsx +1 -5
- package/src/components/faq/faq-section.tsx +47 -50
- package/src/components/faq/index.ts +1 -2
- package/src/components/help-center-pages/delivery-page.tsx +1 -16
- package/src/components/help-center-pages/download-apps-page.tsx +2 -9
- package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +1 -16
- package/src/components/help-center-pages/product-releases-list-page.tsx +1 -16
- package/src/components/help-center-pages/roadmap-page.tsx +1 -16
- package/src/components/help-center-pages/trust-center-page.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/page-topic-label.tsx +30 -0
- package/src/components/shared/dev-section/dev-section-page.tsx +2 -9
- package/src/components/shared/legal-document/legal-document-page.tsx +3 -13
- package/src/components/shared/legal-document/use-legal-documents.ts +0 -3
- package/src/components/ui/actions-menu.tsx +35 -1
- package/src/contexts/endpoints-runtime-context.tsx +5 -0
- package/src/contexts/index.ts +1 -0
- package/src/contexts/page-topics-context.tsx +68 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/page-topics.ts +81 -0
- package/dist/{chunk-IKWQW3YJ.cjs → chunk-AY6XJOIN.cjs} +4 -4
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkX425BGXScjs = require('./chunk-X425BGXS.cjs');
|
|
8
8
|
require('./chunk-24I6RFVU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -59,7 +59,7 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunk5LED4QHZcjs = require('./chunk-5LED4QHZ.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -68,10 +68,10 @@ var _chunkBGT6JFMPcjs = require('./chunk-BGT6JFMP.cjs');
|
|
|
68
68
|
var _chunkIBD2FPSXcjs = require('./chunk-IBD2FPSX.cjs');
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
var
|
|
71
|
+
var _chunkQTLWU6FYcjs = require('./chunk-QTLWU6FY.cjs');
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunkYJZ7R3W5cjs = require('./chunk-YJZ7R3W5.cjs');
|
|
75
75
|
require('./chunk-6CZVQ72C.cjs');
|
|
76
76
|
require('./chunk-46547WQW.cjs');
|
|
77
77
|
require('./chunk-LNUFH4E2.cjs');
|
|
@@ -1882,6 +1882,8 @@ require('./chunk-JKX2C3I2.cjs');
|
|
|
1882
1882
|
|
|
1883
1883
|
var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
1884
1884
|
require('./chunk-SKI6NKOE.cjs');
|
|
1885
|
+
require('./chunk-IX2E3AN7.cjs');
|
|
1886
|
+
require('./chunk-7DNL734S.cjs');
|
|
1885
1887
|
|
|
1886
1888
|
|
|
1887
1889
|
var _chunkFMSAN6SRcjs = require('./chunk-FMSAN6SR.cjs');
|
|
@@ -2009,7 +2011,7 @@ function useChatDialogManager({
|
|
|
2009
2011
|
setArchivedLoading(true);
|
|
2010
2012
|
}
|
|
2011
2013
|
try {
|
|
2012
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2014
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunk5LED4QHZcjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2013
2015
|
if (!isCurrent()) return;
|
|
2014
2016
|
setArchivedCursor(result.nextCursor);
|
|
2015
2017
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2128,12 +2130,12 @@ function withoutCode(content) {
|
|
|
2128
2130
|
}
|
|
2129
2131
|
function splitCitedSources(sources, content) {
|
|
2130
2132
|
if (!sources || sources.length === 0) return { cited: [], uncited: [] };
|
|
2131
|
-
const byCards = splitByCards(sources,
|
|
2133
|
+
const byCards = splitByCards(sources, _chunk5LED4QHZcjs.extractCardReferences.call(void 0, withoutCode(content)));
|
|
2132
2134
|
if (byCards.cited.length > 0) return byCards;
|
|
2133
|
-
const firstMentionAt = new Map(
|
|
2135
|
+
const firstMentionAt = new Map(_chunk5LED4QHZcjs.citedSourceNumbers.call(void 0, withoutCode(content)).map((index, order) => [index, order]));
|
|
2134
2136
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2135
2137
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2136
|
-
return { cited:
|
|
2138
|
+
return { cited: _chunk5LED4QHZcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunk5LED4QHZcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2137
2139
|
}
|
|
2138
2140
|
function recordsOf(source) {
|
|
2139
2141
|
if (!source.items || source.items.length === 0) return [source];
|
|
@@ -2165,7 +2167,7 @@ function splitByCards(sources, cards) {
|
|
|
2165
2167
|
if (record && !cited.includes(record)) cited.push(record);
|
|
2166
2168
|
}
|
|
2167
2169
|
const uncited = records.filter((record) => !cited.includes(record));
|
|
2168
|
-
return { cited:
|
|
2170
|
+
return { cited: _chunk5LED4QHZcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunk5LED4QHZcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2169
2171
|
}
|
|
2170
2172
|
function groupedRowLabels(items) {
|
|
2171
2173
|
const numbers = new Set(items.flatMap((item) => item.index === void 0 ? [] : [item.index]));
|
|
@@ -2220,7 +2222,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2220
2222
|
// src/components/chat/embeddable-chat.tsx
|
|
2221
2223
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2222
2224
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2223
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2225
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunk5LED4QHZcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2224
2226
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2225
2227
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2226
2228
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2293,7 +2295,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2293
2295
|
if (!input) return;
|
|
2294
2296
|
switch (actionId) {
|
|
2295
2297
|
case "browse":
|
|
2296
|
-
input.submit(
|
|
2298
|
+
input.submit(_chunk5LED4QHZcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2297
2299
|
return;
|
|
2298
2300
|
case "search":
|
|
2299
2301
|
input.setValue(`/${cmdId} `);
|
|
@@ -2314,7 +2316,7 @@ var ONE_TEXT_LINE = "\xA0";
|
|
|
2314
2316
|
var SOURCE_CHIP_SKELETON_COUNT = 1;
|
|
2315
2317
|
function SourceChipSkeleton(props) {
|
|
2316
2318
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "aria-hidden": true, className: "pointer-events-none inline-flex shrink-0 items-center", ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: [
|
|
2317
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
2319
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk5LED4QHZcjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
|
|
2318
2320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "inline-block h-3.5 w-3.5 rounded-sm") }),
|
|
2319
2321
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "w-28 rounded-sm"), children: ONE_TEXT_LINE })
|
|
2320
2322
|
] }),
|
|
@@ -2325,7 +2327,7 @@ function SourceChip(props) {
|
|
|
2325
2327
|
const { src, onDiscuss } = props;
|
|
2326
2328
|
const marks = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
|
|
2327
2329
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2328
|
-
const cta =
|
|
2330
|
+
const cta = _chunk5LED4QHZcjs.resolveSourceRowCTA.call(void 0,
|
|
2329
2331
|
{
|
|
2330
2332
|
sourceRepo: src.sourceRepo,
|
|
2331
2333
|
documentType: src.documentType,
|
|
@@ -2335,16 +2337,16 @@ function SourceChip(props) {
|
|
|
2335
2337
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2336
2338
|
path: src.path
|
|
2337
2339
|
},
|
|
2338
|
-
|
|
2340
|
+
_chunk5LED4QHZcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2339
2341
|
);
|
|
2340
2342
|
const Icon = cta.icon;
|
|
2341
2343
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2342
|
-
const chipClass =
|
|
2344
|
+
const chipClass = _chunk5LED4QHZcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2343
2345
|
if (src.items && src.items.length > 0) {
|
|
2344
2346
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2345
2347
|
const rowLabels = groupedRowLabels(src.items);
|
|
2346
2348
|
const dropdownItems = src.items.map((item, i) => {
|
|
2347
|
-
const itemCta =
|
|
2349
|
+
const itemCta = _chunk5LED4QHZcjs.resolveSourceRowCTA.call(void 0,
|
|
2348
2350
|
{
|
|
2349
2351
|
sourceRepo: src.sourceRepo,
|
|
2350
2352
|
documentType: item.documentType,
|
|
@@ -2354,7 +2356,7 @@ function SourceChip(props) {
|
|
|
2354
2356
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2355
2357
|
path: item.path
|
|
2356
2358
|
},
|
|
2357
|
-
|
|
2359
|
+
_chunk5LED4QHZcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2358
2360
|
);
|
|
2359
2361
|
const ItemIcon = itemCta.icon;
|
|
2360
2362
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2371,13 +2373,13 @@ function SourceChip(props) {
|
|
|
2371
2373
|
} : void 0
|
|
2372
2374
|
};
|
|
2373
2375
|
});
|
|
2374
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2376
|
+
const groupIndices = itemIndices.length > 0 ? _chunk5LED4QHZcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2375
2377
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2376
|
-
|
|
2378
|
+
_chunkX425BGXScjs.HoverDropdown,
|
|
2377
2379
|
{
|
|
2378
2380
|
items: dropdownItems,
|
|
2379
2381
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2380
|
-
|
|
2382
|
+
_chunk5LED4QHZcjs.NavLinkAnchorViaRuntime,
|
|
2381
2383
|
{
|
|
2382
2384
|
href,
|
|
2383
2385
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2410,13 +2412,13 @@ function SourceChip(props) {
|
|
|
2410
2412
|
] });
|
|
2411
2413
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", ...marks, children: [
|
|
2412
2414
|
clickable,
|
|
2413
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2414
2416
|
] });
|
|
2415
2417
|
if (cta.href) {
|
|
2416
2418
|
const isEntity = !!src.externalUrl;
|
|
2417
2419
|
return wrapChip(
|
|
2418
2420
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2419
|
-
|
|
2421
|
+
_chunk5LED4QHZcjs.NavLinkAnchorViaRuntime,
|
|
2420
2422
|
{
|
|
2421
2423
|
href: cta.href,
|
|
2422
2424
|
path: isEntity ? null : src.path,
|
|
@@ -2442,7 +2444,7 @@ function SourceChips({
|
|
|
2442
2444
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
2443
2445
|
if (loading) {
|
|
2444
2446
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
|
|
2445
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2447
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.TextHold, { children: "Sources" }) }),
|
|
2446
2448
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-nowrap gap-1.5 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: skeletonCount, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChipSkeleton, { "data-loading-item": true }) }) })
|
|
2447
2449
|
] });
|
|
2448
2450
|
}
|
|
@@ -2552,7 +2554,7 @@ function EmbeddableChatInner({
|
|
|
2552
2554
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2553
2555
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2554
2556
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2555
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2557
|
+
const { attachmentsEnabled, user: identityUser } = _chunk5LED4QHZcjs.useChatIdentity.call(void 0, );
|
|
2556
2558
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2557
2559
|
_react.useEffect.call(void 0, () => {
|
|
2558
2560
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2603,12 +2605,23 @@ function EmbeddableChatInner({
|
|
|
2603
2605
|
};
|
|
2604
2606
|
}, [isOpen, shellLess]);
|
|
2605
2607
|
const chatInputRef = _react.useRef.call(void 0, null);
|
|
2606
|
-
const
|
|
2608
|
+
const insertedPromptRef = _react.useRef.call(void 0, null);
|
|
2609
|
+
const insertQuickAction = _react.useCallback.call(void 0, (prompt) => {
|
|
2610
|
+
const input = chatInputRef.current;
|
|
2611
|
+
if (!input) return;
|
|
2612
|
+
const draft = input.getValue().trim();
|
|
2613
|
+
const next = draft === "" || draft === insertedPromptRef.current ? prompt : `${draft}
|
|
2614
|
+
|
|
2615
|
+
${prompt}`;
|
|
2616
|
+
insertedPromptRef.current = next;
|
|
2617
|
+
input.setValue(next);
|
|
2618
|
+
input.focus();
|
|
2619
|
+
}, []);
|
|
2607
2620
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2608
2621
|
() => ({
|
|
2609
|
-
fetchCommands: (prefix, signal) =>
|
|
2622
|
+
fetchCommands: (prefix, signal) => _chunk5LED4QHZcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2610
2623
|
resolveSourceIcon: (sourceId) => {
|
|
2611
|
-
const iconName =
|
|
2624
|
+
const iconName = _chunk5LED4QHZcjs.getSourceIconName.call(void 0, sourceId);
|
|
2612
2625
|
if (!iconName) return void 0;
|
|
2613
2626
|
return { Icon: _chunk2HQNXX2Kcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2614
2627
|
},
|
|
@@ -2637,7 +2650,7 @@ function EmbeddableChatInner({
|
|
|
2637
2650
|
},
|
|
2638
2651
|
[controlledActiveMode, onActiveModeChange]
|
|
2639
2652
|
);
|
|
2640
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2653
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunk5LED4QHZcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2641
2654
|
enabled: activeMode === "guide"
|
|
2642
2655
|
});
|
|
2643
2656
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2648,7 +2661,7 @@ function EmbeddableChatInner({
|
|
|
2648
2661
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2649
2662
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2650
2663
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2651
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2664
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunk5LED4QHZcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2652
2665
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2653
2666
|
});
|
|
2654
2667
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2694,7 +2707,7 @@ function EmbeddableChatInner({
|
|
|
2694
2707
|
hasMoreMessages,
|
|
2695
2708
|
loadMoreMessages,
|
|
2696
2709
|
dialogCapabilities
|
|
2697
|
-
} =
|
|
2710
|
+
} = _chunk5LED4QHZcjs.useUnifiedChat.call(void 0, {
|
|
2698
2711
|
modes: effectiveModes,
|
|
2699
2712
|
activeMode,
|
|
2700
2713
|
mingoStateOverride: mingoState,
|
|
@@ -2741,8 +2754,8 @@ function EmbeddableChatInner({
|
|
|
2741
2754
|
addFiles: addAttachmentFiles,
|
|
2742
2755
|
removeAttachment,
|
|
2743
2756
|
clear: clearAttachments
|
|
2744
|
-
} =
|
|
2745
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2757
|
+
} = _chunk5LED4QHZcjs.useChatAttachments.call(void 0, );
|
|
2758
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunk5LED4QHZcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2746
2759
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2747
2760
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2748
2761
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2873,7 +2886,7 @@ function EmbeddableChatInner({
|
|
|
2873
2886
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2874
2887
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2875
2888
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2876
|
-
(reference) =>
|
|
2889
|
+
(reference) => _chunk5LED4QHZcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2877
2890
|
onDiscuss: askAbout,
|
|
2878
2891
|
onDisplay: displayRef,
|
|
2879
2892
|
extras
|
|
@@ -2881,7 +2894,7 @@ function EmbeddableChatInner({
|
|
|
2881
2894
|
[askAbout, displayRef, extras]
|
|
2882
2895
|
);
|
|
2883
2896
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2884
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2897
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
2885
2898
|
[effectiveAssistantIcon]
|
|
2886
2899
|
);
|
|
2887
2900
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -2893,7 +2906,7 @@ function EmbeddableChatInner({
|
|
|
2893
2906
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2894
2907
|
return mapped;
|
|
2895
2908
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2896
|
-
const whatToAsk =
|
|
2909
|
+
const whatToAsk = _chunk5LED4QHZcjs.useWhatToAsk.call(void 0, {
|
|
2897
2910
|
dialogId: activeDialogId,
|
|
2898
2911
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2899
2912
|
user: {
|
|
@@ -2912,7 +2925,7 @@ function EmbeddableChatInner({
|
|
|
2912
2925
|
noteWhatToAskSend();
|
|
2913
2926
|
let augmentedText = text;
|
|
2914
2927
|
if (readyAttachments.length > 0) {
|
|
2915
|
-
const markdown = readyAttachments.map((att) =>
|
|
2928
|
+
const markdown = readyAttachments.map((att) => _chunk5LED4QHZcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2916
2929
|
augmentedText = `${text}${markdown}`;
|
|
2917
2930
|
}
|
|
2918
2931
|
void sendMessage(augmentedText, {
|
|
@@ -2951,7 +2964,7 @@ function EmbeddableChatInner({
|
|
|
2951
2964
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2952
2965
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2953
2966
|
// built-in agents.
|
|
2954
|
-
accent: _nullishCoalesce(
|
|
2967
|
+
accent: _nullishCoalesce(_chunk5LED4QHZcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunk5LED4QHZcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2955
2968
|
}));
|
|
2956
2969
|
}
|
|
2957
2970
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2999,7 +3012,7 @@ function EmbeddableChatInner({
|
|
|
2999
3012
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
3000
3013
|
});
|
|
3001
3014
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
3002
|
-
|
|
3015
|
+
_chunk5LED4QHZcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
3003
3016
|
_react.useEffect.call(void 0, () => {
|
|
3004
3017
|
const handler = (e) => {
|
|
3005
3018
|
const detail = e.detail;
|
|
@@ -3007,8 +3020,8 @@ function EmbeddableChatInner({
|
|
|
3007
3020
|
setIsOpen(true);
|
|
3008
3021
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
3009
3022
|
};
|
|
3010
|
-
window.addEventListener(
|
|
3011
|
-
return () => window.removeEventListener(
|
|
3023
|
+
window.addEventListener(_chunk5LED4QHZcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3024
|
+
return () => window.removeEventListener(_chunk5LED4QHZcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3012
3025
|
}, [source, askAbout, setIsOpen]);
|
|
3013
3026
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
3014
3027
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3042,10 +3055,10 @@ function EmbeddableChatInner({
|
|
|
3042
3055
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3043
3056
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3044
3057
|
};
|
|
3045
|
-
window.addEventListener(
|
|
3046
|
-
return () => window.removeEventListener(
|
|
3058
|
+
window.addEventListener(_chunk5LED4QHZcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3059
|
+
return () => window.removeEventListener(_chunk5LED4QHZcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3047
3060
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3048
|
-
_react.useEffect.call(void 0, () =>
|
|
3061
|
+
_react.useEffect.call(void 0, () => _chunk5LED4QHZcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3049
3062
|
const hasMessages = messages.length > 0;
|
|
3050
3063
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3051
3064
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3055,8 +3068,6 @@ function EmbeddableChatInner({
|
|
|
3055
3068
|
const messagesInitialLoading = isMessagesLoading && !hasMessages;
|
|
3056
3069
|
const contentViewKey = hasConversation ? "conversation" : activeMode;
|
|
3057
3070
|
const isGuideEmpty = !hasConversation && activeMode === "guide";
|
|
3058
|
-
const isQuickActionEmpty = !hasConversation && (activeMode === "guide" || activeMode === "mingo");
|
|
3059
|
-
if (!isQuickActionEmpty && quickActionPreview !== null) setQuickActionPreview(null);
|
|
3060
3071
|
const guideCanReturnToMingo = isGuideEmpty && hasMingoMode;
|
|
3061
3072
|
const sourceLabel = source === "flamingo" ? "Knowledge Base" : "Data Room";
|
|
3062
3073
|
const enabledSet = _react.useMemo.call(void 0,
|
|
@@ -3085,7 +3096,7 @@ function EmbeddableChatInner({
|
|
|
3085
3096
|
if (sourceSkeletonCount <= 0) return null;
|
|
3086
3097
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChips, { loading: true, skeletonCount: sourceSkeletonCount, cited: [], uncited: [] }) });
|
|
3087
3098
|
}
|
|
3088
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3099
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunk5LED4QHZcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3089
3100
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3090
3101
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChips, { cited, uncited, onDiscuss: askAbout, skeletonCount: sourceSkeletonCount }) });
|
|
3091
3102
|
},
|
|
@@ -3095,7 +3106,7 @@ function EmbeddableChatInner({
|
|
|
3095
3106
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3096
3107
|
const [threadPortalHost, setThreadPortalHost] = _react.useState.call(void 0, null);
|
|
3097
3108
|
const [threadBoundary, setThreadBoundary] = _react.useState.call(void 0, null);
|
|
3098
|
-
const splitMinWidth = (isV2 ?
|
|
3109
|
+
const splitMinWidth = (isV2 ? _chunk5LED4QHZcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunk5LED4QHZcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3099
3110
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3100
3111
|
_react.useEffect.call(void 0, () => {
|
|
3101
3112
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3114,7 +3125,7 @@ function EmbeddableChatInner({
|
|
|
3114
3125
|
[splitMinWidth]
|
|
3115
3126
|
);
|
|
3116
3127
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3117
|
-
const railStorageHydrated =
|
|
3128
|
+
const railStorageHydrated = _chunk5LED4QHZcjs.useIsHydrated.call(void 0, );
|
|
3118
3129
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3119
3130
|
if (railStorageHydrated && !railStorageRead) {
|
|
3120
3131
|
setRailStorageRead(true);
|
|
@@ -3168,7 +3179,7 @@ function EmbeddableChatInner({
|
|
|
3168
3179
|
resetToNewChat();
|
|
3169
3180
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3170
3181
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3171
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _67 => _67.length]), () => ( 0))) > 0 ||
|
|
3182
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _67 => _67.length]), () => ( 0))) > 0 || _chunk5LED4QHZcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3172
3183
|
const showWhatToAsk = (content) => {
|
|
3173
3184
|
whatToAsk.clearDraft();
|
|
3174
3185
|
resetToNewChat();
|
|
@@ -3268,7 +3279,7 @@ function EmbeddableChatInner({
|
|
|
3268
3279
|
}),
|
|
3269
3280
|
[resetToNewChat, contextMaxItems, contextPicker, openContextPicker]
|
|
3270
3281
|
);
|
|
3271
|
-
const splitHeaderMenuItems =
|
|
3282
|
+
const splitHeaderMenuItems = _chunk5LED4QHZcjs.chatDialogMenuItems.call(void 0, {
|
|
3272
3283
|
onCopyLink: headerOnCopyLink,
|
|
3273
3284
|
onRename: headerOnRename,
|
|
3274
3285
|
onCompact: headerOnCompact,
|
|
@@ -3287,7 +3298,7 @@ function EmbeddableChatInner({
|
|
|
3287
3298
|
});
|
|
3288
3299
|
};
|
|
3289
3300
|
const cancelInlineRename = () => setInlineRenameId(null);
|
|
3290
|
-
const mingoHeaderMenuItems =
|
|
3301
|
+
const mingoHeaderMenuItems = _chunk5LED4QHZcjs.chatDialogMenuItems.call(void 0, {
|
|
3291
3302
|
onCopyLink: headerOnCopyLink,
|
|
3292
3303
|
onRename: mingoHeaderOnRename,
|
|
3293
3304
|
onCompact: headerOnCompact,
|
|
@@ -3370,7 +3381,7 @@ function EmbeddableChatInner({
|
|
|
3370
3381
|
onRetry: reloadDialogs
|
|
3371
3382
|
};
|
|
3372
3383
|
const v2Header = isV2 && !stackedListView ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "col-start-2 row-start-1 min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3373
|
-
|
|
3384
|
+
_chunk5LED4QHZcjs.MingoChatHeader,
|
|
3374
3385
|
{
|
|
3375
3386
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3376
3387
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3391,7 +3402,7 @@ function EmbeddableChatInner({
|
|
|
3391
3402
|
}
|
|
3392
3403
|
) }) : null;
|
|
3393
3404
|
const archiveListNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3394
|
-
|
|
3405
|
+
_chunk5LED4QHZcjs.MingoArchiveList,
|
|
3395
3406
|
{
|
|
3396
3407
|
dialogs: archivedDialogs,
|
|
3397
3408
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3416,7 +3427,7 @@ function EmbeddableChatInner({
|
|
|
3416
3427
|
hasAboveComposer && "min-h-32"
|
|
3417
3428
|
),
|
|
3418
3429
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0", children: hasConversation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3419
|
-
|
|
3430
|
+
_chunk5LED4QHZcjs.ChatMessageList,
|
|
3420
3431
|
{
|
|
3421
3432
|
messages,
|
|
3422
3433
|
isLoading: messagesInitialLoading,
|
|
@@ -3435,7 +3446,7 @@ function EmbeddableChatInner({
|
|
|
3435
3446
|
renderMention,
|
|
3436
3447
|
renderAfterMessage: renderMessageSources,
|
|
3437
3448
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3438
|
-
NavLinkAnchor:
|
|
3449
|
+
NavLinkAnchor: _chunk5LED4QHZcjs.NavLinkAnchorViaRuntime,
|
|
3439
3450
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3440
3451
|
contentClassName: _chunk63A4GZMBcjs.cn.call(void 0, "max-w-none pb-0", splitMode && threadContentClassName),
|
|
3441
3452
|
fullWidth: true,
|
|
@@ -3449,15 +3460,19 @@ function EmbeddableChatInner({
|
|
|
3449
3460
|
quick-action chips. Guide mode keeps the slash-command
|
|
3450
3461
|
onboarding list below. */
|
|
3451
3462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3452
|
-
|
|
3463
|
+
_chunk5LED4QHZcjs.MingoWelcome,
|
|
3453
3464
|
{
|
|
3454
3465
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3455
3466
|
historyPageSize,
|
|
3456
3467
|
...mingoWelcome,
|
|
3457
3468
|
hasExistingChats: false,
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3469
|
+
quickActions: _optionalChain([mingoWelcome, 'optionalAccess', _68 => _68.quickActions, 'optionalAccess', _69 => _69.map, 'call', _70 => _70((action) => ({
|
|
3470
|
+
...action,
|
|
3471
|
+
onClick: () => {
|
|
3472
|
+
insertQuickAction(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
3473
|
+
_optionalChain([action, 'access', _71 => _71.onClick, 'optionalCall', _72 => _72()]);
|
|
3474
|
+
}
|
|
3475
|
+
}))])
|
|
3461
3476
|
}
|
|
3462
3477
|
)
|
|
3463
3478
|
) : (
|
|
@@ -3465,21 +3480,16 @@ function EmbeddableChatInner({
|
|
|
3465
3480
|
+ slash-command onboarding list share one scroll region,
|
|
3466
3481
|
with a pinned quick-action chip row above the composer. */
|
|
3467
3482
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3468
|
-
|
|
3483
|
+
_chunk5LED4QHZcjs.GuideWelcome,
|
|
3469
3484
|
{
|
|
3470
3485
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3471
3486
|
subtitleLoading: emptyStateLoading,
|
|
3487
|
+
quickActionsLoading: !!emptyStateUrl && emptyStateLoading,
|
|
3472
3488
|
...guideWelcome,
|
|
3473
|
-
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
3474
|
-
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
3475
|
-
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess',
|
|
3476
|
-
onQuickAction: (action) =>
|
|
3477
|
-
setQuickActionPreview(null);
|
|
3478
|
-
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
3479
|
-
},
|
|
3480
|
-
onQuickActionHover: (action) => setQuickActionPreview(_nullishCoalesce(action.prompt, () => ( action.label))),
|
|
3481
|
-
onQuickActionHoverEnd: () => setQuickActionPreview(null),
|
|
3482
|
-
agentSlug: activeAgentSlug,
|
|
3489
|
+
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _73 => _73.title]))),
|
|
3490
|
+
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _74 => _74.icon]))),
|
|
3491
|
+
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _75 => _75.quickActions]), () => ( guideSuggestedActions)),
|
|
3492
|
+
onQuickAction: (action) => insertQuickAction(_nullishCoalesce(action.prompt, () => ( action.label))),
|
|
3483
3493
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
3484
3494
|
!commandsLoaded && chipCommands.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: _chunkIBD2FPSXcjs.MINGO_ONBOARDING_SKELETON_ROWS, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIBD2FPSXcjs.MingoOnboardingCard, { loading: true, "data-loading-item": true, skeletonIndex: i, title: "" }) }),
|
|
3485
3495
|
chipCommands.map((cmd) => {
|
|
@@ -3518,9 +3528,9 @@ function EmbeddableChatInner({
|
|
|
3518
3528
|
children: aboveComposer
|
|
3519
3529
|
}
|
|
3520
3530
|
) : null;
|
|
3521
|
-
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3531
|
+
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.ChatAttachmentChipStrip, { attachments: stagedAttachments, onRemove: removeAttachment, disabled: chatLoading });
|
|
3522
3532
|
const composerNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3523
|
-
|
|
3533
|
+
_chunk5LED4QHZcjs.ChatComposer,
|
|
3524
3534
|
{
|
|
3525
3535
|
archived: isViewingArchived,
|
|
3526
3536
|
lock: composerLock,
|
|
@@ -3531,7 +3541,7 @@ function EmbeddableChatInner({
|
|
|
3531
3541
|
placeholder: hasInflightUploads ? "Waiting for uploads to finish\u2026" : _nullishCoalesce(composerPlaceholder, () => ( (isV2 ? "Enter your Request..." : "Ask a question..."))),
|
|
3532
3542
|
autoFocus: previewMode ? false : autoFocusInput,
|
|
3533
3543
|
slashCommands: slashCommandsProp,
|
|
3534
|
-
previewText: _nullishCoalesce(
|
|
3544
|
+
previewText: _nullishCoalesce(composerPreviewText, () => ( void 0)),
|
|
3535
3545
|
safeAreaBottom,
|
|
3536
3546
|
edgeLight: composerEdgeLight,
|
|
3537
3547
|
showAttachmentButton: attachmentsEnabled && activeMode === "guide",
|
|
@@ -3542,10 +3552,10 @@ function EmbeddableChatInner({
|
|
|
3542
3552
|
selectedContextItems: contextItems,
|
|
3543
3553
|
onToggleContextItem: toggleContextItem,
|
|
3544
3554
|
onRemoveContextItem: removeContextItem,
|
|
3545
|
-
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess',
|
|
3555
|
+
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _76 => _76.items]),
|
|
3546
3556
|
contextLeading: composerContextLeading,
|
|
3547
|
-
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess',
|
|
3548
|
-
contextMemoryPending: _optionalChain([contextMemory, 'optionalAccess',
|
|
3557
|
+
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _77 => _77.onRemove]),
|
|
3558
|
+
contextMemoryPending: _optionalChain([contextMemory, 'optionalAccess', _78 => _78.pending]),
|
|
3549
3559
|
contextPickerOpen,
|
|
3550
3560
|
onOpenContextPicker: openContextPicker,
|
|
3551
3561
|
onCloseContextPicker: closeContextPicker,
|
|
@@ -3570,7 +3580,7 @@ function EmbeddableChatInner({
|
|
|
3570
3580
|
composerKey
|
|
3571
3581
|
);
|
|
3572
3582
|
const dialogModals = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3573
|
-
|
|
3583
|
+
_chunk5LED4QHZcjs.ChatDialogModals,
|
|
3574
3584
|
{
|
|
3575
3585
|
renameTarget,
|
|
3576
3586
|
setRenameTarget,
|
|
@@ -3586,7 +3596,7 @@ function EmbeddableChatInner({
|
|
|
3586
3596
|
const classicBody = (
|
|
3587
3597
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3588
3598
|
// only the thread `ChatMessageList` provides it to.
|
|
3589
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3599
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
3590
3600
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3591
3601
|
"div",
|
|
3592
3602
|
{
|
|
@@ -3594,7 +3604,7 @@ function EmbeddableChatInner({
|
|
|
3594
3604
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3595
3605
|
className: `flex h-full flex-col overflow-hidden transition-colors duration-200 ${!isV2 && (archiveOpen && !splitActive || stackedListView) ? "bg-ods-card" : "bg-ods-bg"} ${previewMode ? "pointer-events-none select-none" : ""}`,
|
|
3596
3606
|
children: archiveOpen && !splitActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3597
|
-
|
|
3607
|
+
_chunk5LED4QHZcjs.ChatArchivePage,
|
|
3598
3608
|
{
|
|
3599
3609
|
dialogs: archivedDialogs,
|
|
3600
3610
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3624,7 +3634,7 @@ function EmbeddableChatInner({
|
|
|
3624
3634
|
narrow: true,
|
|
3625
3635
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3626
3636
|
innerClassName: "flex min-h-0 flex-col",
|
|
3627
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3637
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3628
3638
|
}
|
|
3629
3639
|
),
|
|
3630
3640
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3663,7 +3673,7 @@ function EmbeddableChatInner({
|
|
|
3663
3673
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3664
3674
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3665
3675
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3666
|
-
|
|
3676
|
+
_chunk5LED4QHZcjs.ChatHeaderSearchField,
|
|
3667
3677
|
{
|
|
3668
3678
|
initialValue: mingoCaps.searchQuery,
|
|
3669
3679
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3734,7 +3744,7 @@ function EmbeddableChatInner({
|
|
|
3734
3744
|
] }),
|
|
3735
3745
|
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
3736
3746
|
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3737
|
-
|
|
3747
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
3738
3748
|
{
|
|
3739
3749
|
triggerAriaLabel: "Chat actions",
|
|
3740
3750
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -3750,10 +3760,10 @@ function EmbeddableChatInner({
|
|
|
3750
3760
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3751
3761
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3752
3762
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3753
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3763
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3754
3764
|
),
|
|
3755
3765
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3756
|
-
|
|
3766
|
+
_chunk5LED4QHZcjs.GuideModeBanner,
|
|
3757
3767
|
{
|
|
3758
3768
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3759
3769
|
}
|
|
@@ -3763,7 +3773,7 @@ function EmbeddableChatInner({
|
|
|
3763
3773
|
// Archive list inside the rail (header lives in the split
|
|
3764
3774
|
// header's left cell above). Right chat block stays put.
|
|
3765
3775
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3766
|
-
|
|
3776
|
+
_chunk5LED4QHZcjs.ChatArchivePage,
|
|
3767
3777
|
{
|
|
3768
3778
|
embedded: true,
|
|
3769
3779
|
dialogs: archivedDialogs,
|
|
@@ -3777,7 +3787,7 @@ function EmbeddableChatInner({
|
|
|
3777
3787
|
}
|
|
3778
3788
|
)
|
|
3779
3789
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3780
|
-
|
|
3790
|
+
_chunk5LED4QHZcjs.MingoHistoryRail,
|
|
3781
3791
|
{
|
|
3782
3792
|
dialogs,
|
|
3783
3793
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3806,13 +3816,13 @@ function EmbeddableChatInner({
|
|
|
3806
3816
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3807
3817
|
archiveListNode
|
|
3808
3818
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3809
|
-
|
|
3819
|
+
_chunk5LED4QHZcjs.MingoChatRail,
|
|
3810
3820
|
{
|
|
3811
3821
|
...mingoRailProps,
|
|
3812
3822
|
onNewChat: () => setComposeOpen(true),
|
|
3813
3823
|
onExpand: onExpand && (() => {
|
|
3814
3824
|
const last = lastDialogIdRef.current;
|
|
3815
|
-
const target = last && dialogs.some((d) => d.id === last) ? last : _optionalChain([dialogs, 'access',
|
|
3825
|
+
const target = last && dialogs.some((d) => d.id === last) ? last : _optionalChain([dialogs, 'access', _79 => _79[0], 'optionalAccess', _80 => _80.id]);
|
|
3816
3826
|
if (archiveOpen) closeArchive();
|
|
3817
3827
|
if (target) handleSelectDialog(target);
|
|
3818
3828
|
else handleNewChat();
|
|
@@ -3825,7 +3835,7 @@ function EmbeddableChatInner({
|
|
|
3825
3835
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3826
3836
|
// the compose view.
|
|
3827
3837
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3828
|
-
|
|
3838
|
+
_chunk5LED4QHZcjs.MingoHistoryRail,
|
|
3829
3839
|
{
|
|
3830
3840
|
className: "duration-200 animate-in fade-in-0",
|
|
3831
3841
|
dialogs,
|
|
@@ -3869,11 +3879,11 @@ function EmbeddableChatInner({
|
|
|
3869
3879
|
] }) }) })
|
|
3870
3880
|
);
|
|
3871
3881
|
const pageHeader = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3872
|
-
|
|
3882
|
+
_chunk5LED4QHZcjs.MingoChatHeader,
|
|
3873
3883
|
{
|
|
3874
3884
|
variant: "page",
|
|
3875
3885
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3876
|
-
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName,
|
|
3886
|
+
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName, _chunk5LED4QHZcjs.chatDayLabel.call(void 0, _optionalChain([activeDialog, 'optionalAccess', _81 => _81.timestamp]))],
|
|
3877
3887
|
menuItems: headerShowBack && !isViewingArchived && !archiveOpen ? mingoHeaderMenuItems : [],
|
|
3878
3888
|
extraMenuItems: isViewingArchived || archiveOpen ? void 0 : chatMenuExtraItems,
|
|
3879
3889
|
onRestore: isViewingArchived && !archiveOpen ? headerOnRestore : void 0,
|
|
@@ -3893,7 +3903,7 @@ function EmbeddableChatInner({
|
|
|
3893
3903
|
),
|
|
3894
3904
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: threadPortalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.CollisionBoundaryContext.Provider, { value: threadBoundary, children: [
|
|
3895
3905
|
pageHeader,
|
|
3896
|
-
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3906
|
+
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.GuideModeBanner, { className: "duration-200 animate-in fade-in-0" }),
|
|
3897
3907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: archiveOpen ? archiveListNode : threadArea }),
|
|
3898
3908
|
galleryModal,
|
|
3899
3909
|
dialogModals,
|
|
@@ -3901,7 +3911,7 @@ function EmbeddableChatInner({
|
|
|
3901
3911
|
] }) })
|
|
3902
3912
|
}
|
|
3903
3913
|
);
|
|
3904
|
-
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3914
|
+
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: [
|
|
3905
3915
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3906
3916
|
"div",
|
|
3907
3917
|
{
|
|
@@ -3919,14 +3929,14 @@ function EmbeddableChatInner({
|
|
|
3919
3929
|
threadContainer ? null : dialogModals,
|
|
3920
3930
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3921
3931
|
] }) }) : classicBody;
|
|
3922
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3932
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5LED4QHZcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3923
3933
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3924
3934
|
sourceLabel,
|
|
3925
3935
|
" AI Assistant"
|
|
3926
3936
|
] }) }),
|
|
3927
3937
|
body
|
|
3928
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3929
|
-
|
|
3938
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX425BGXScjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5LED4QHZcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3939
|
+
_chunkX425BGXScjs.DrawerContent,
|
|
3930
3940
|
{
|
|
3931
3941
|
side: "right",
|
|
3932
3942
|
flush: true,
|
|
@@ -3958,7 +3968,7 @@ function EmbeddableChatInner({
|
|
|
3958
3968
|
_chunkFCZAUK4Dcjs.Button,
|
|
3959
3969
|
{
|
|
3960
3970
|
onClick: handleOpen,
|
|
3961
|
-
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3971
|
+
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "h-5 w-5" }),
|
|
3962
3972
|
tabIndex: isOpen ? -1 : 0,
|
|
3963
3973
|
className: `pointer-events-auto !w-auto shadow-lg ${isOpen ? "!pointer-events-none" : ""}`,
|
|
3964
3974
|
children: "Ask AI"
|