@flamingo-stack/openframe-frontend-core 0.0.835 → 0.0.837
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/route-styles-server.mjs +6 -1
- package/dist/{chunk-DQ6JYOHD.cjs → chunk-4644MFU2.cjs} +8 -8
- package/dist/{chunk-AZRDKZNG.cjs → chunk-66ENLZYE.cjs} +4 -4
- package/dist/{chunk-UQS2RI5Y.cjs → chunk-7XRFAHJF.cjs} +5 -5
- package/dist/{chunk-UQ52NWTB.cjs → chunk-BWJHIPB6.cjs} +40 -40
- package/dist/{chunk-IUHV55D7.cjs → chunk-D4DRZIUK.cjs} +9 -9
- package/dist/{chunk-EQB3NSY6.cjs → chunk-EDBQXRKN.cjs} +123 -145
- package/dist/{chunk-4OP2VVPV.cjs → chunk-FEISG7YJ.cjs} +3 -3
- package/dist/{chunk-SFJXIHFR.cjs → chunk-FU7VLVYI.cjs} +11 -11
- package/dist/{chunk-I7QIIZAI.cjs → chunk-J63RYNMW.cjs} +19 -19
- package/dist/{chunk-UFF4TRZH.cjs → chunk-KBPKMASF.cjs} +3 -3
- package/dist/{chunk-XXHCM2XS.cjs → chunk-NAB6HCQ3.cjs} +39 -39
- package/dist/{chunk-VMFBLMP6.cjs → chunk-RJJPOPF7.cjs} +2 -2
- package/dist/{chunk-M5PGFNJG.cjs → chunk-S3CSQIDW.cjs} +53 -53
- package/dist/{chunk-DAOVWHCN.cjs → chunk-S5HBEMZN.cjs} +47 -47
- package/dist/{chunk-VQG2A7GA.cjs → chunk-TRZEFT2N.cjs} +2 -2
- package/dist/{chunk-WAMDWVYC.cjs → chunk-UU5MDCD4.cjs} +11 -11
- package/dist/{chunk-LQDPAMXK.cjs → chunk-WAYYHZFS.cjs} +18 -18
- package/dist/{chunk-D6ZSRGH2.cjs → chunk-Z7A7IZWL.cjs} +10 -5
- package/dist/{chunk-HBFYEBXN.cjs → chunk-ZWI6A4SG.cjs} +4 -4
- package/dist/{cloud-tenants-THCHEWBM.cjs → cloud-tenants-MJHJKTLX.cjs} +5 -5
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +11 -6
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/faq/index.cjs +7 -7
- package/dist/components/features/devices/device-selector/device-selector.d.ts.map +1 -1
- package/dist/components/features/devices/device-selector/device-selector.js +0 -10
- package/dist/components/features/devices/device-selector/narrowing.d.ts +2 -2
- package/dist/components/features/devices/devices-filter-toolbar.d.ts +1 -2
- package/dist/components/features/devices/devices-filter-toolbar.d.ts.map +1 -1
- package/dist/components/features/devices/devices-filter-toolbar.js +0 -2
- package/dist/components/features/devices/devices-list.d.ts +1 -1
- package/dist/components/features/devices/devices-list.d.ts.map +1 -1
- package/dist/components/features/devices/devices-list.js +0 -9
- package/dist/components/features/devices/devices-panel-view.d.ts.map +1 -1
- package/dist/components/features/devices/devices-panel-view.js +0 -1
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/help-center-pages/index.cjs +62 -62
- package/dist/components/index.cjs +38 -38
- package/dist/components/meeting-scheduler/index.cjs +30 -30
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/product-demo/index.cjs +14 -14
- package/dist/components/tickets/index.cjs +10 -10
- package/dist/components/ui/index.cjs +5 -5
- package/dist/{devices-MPRDMXXU.cjs → devices-CXVCHKOY.cjs} +6 -6
- package/dist/{embeddable-chat-TRGESG7U.cjs → embeddable-chat-M7L3DBNO.cjs} +71 -71
- package/dist/index.cjs +9 -9
- package/dist/{knowledge-TFTDHYGR.cjs → knowledge-FLQDJJPG.cjs} +6 -6
- package/dist/{logs-CSSJG4F7.cjs → logs-D5QE4XXT.cjs} +12 -12
- package/dist/{policies-ELFYUN5P.cjs → policies-W62WSRBO.cjs} +9 -9
- package/dist/{scripts-37L6FIKG.cjs → scripts-MVJAIKSW.cjs} +10 -10
- package/dist/{software-update-BSA4NLHO.cjs → software-update-XP5CN7YZ.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/chat/mingo-quick-action-wall.tsx +18 -7
- package/src/components/features/devices/device-selector/device-selector.tsx +1 -12
- package/src/components/features/devices/device-selector/narrowing.ts +2 -2
- package/src/components/features/devices/devices-filter-toolbar.tsx +0 -3
- package/src/components/features/devices/devices-list.tsx +1 -11
- package/src/components/features/devices/devices-panel-view.tsx +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTRZEFT2Ncjs = require('./chunk-TRZEFT2N.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 _chunkZ7A7IZWLcjs = require('./chunk-Z7A7IZWL.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -2011,7 +2011,7 @@ function useChatDialogManager({
|
|
|
2011
2011
|
setArchivedLoading(true);
|
|
2012
2012
|
}
|
|
2013
2013
|
try {
|
|
2014
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2014
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunkZ7A7IZWLcjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2015
2015
|
if (!isCurrent()) return;
|
|
2016
2016
|
setArchivedCursor(result.nextCursor);
|
|
2017
2017
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2130,12 +2130,12 @@ function withoutCode(content) {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
function splitCitedSources(sources, content) {
|
|
2132
2132
|
if (!sources || sources.length === 0) return { cited: [], uncited: [] };
|
|
2133
|
-
const byCards = splitByCards(sources,
|
|
2133
|
+
const byCards = splitByCards(sources, _chunkZ7A7IZWLcjs.extractCardReferences.call(void 0, withoutCode(content)));
|
|
2134
2134
|
if (byCards.cited.length > 0) return byCards;
|
|
2135
|
-
const firstMentionAt = new Map(
|
|
2135
|
+
const firstMentionAt = new Map(_chunkZ7A7IZWLcjs.citedSourceNumbers.call(void 0, withoutCode(content)).map((index, order) => [index, order]));
|
|
2136
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))));
|
|
2137
2137
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2138
|
-
return { cited:
|
|
2138
|
+
return { cited: _chunkZ7A7IZWLcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkZ7A7IZWLcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2139
2139
|
}
|
|
2140
2140
|
function recordsOf(source) {
|
|
2141
2141
|
if (!source.items || source.items.length === 0) return [source];
|
|
@@ -2167,7 +2167,7 @@ function splitByCards(sources, cards) {
|
|
|
2167
2167
|
if (record && !cited.includes(record)) cited.push(record);
|
|
2168
2168
|
}
|
|
2169
2169
|
const uncited = records.filter((record) => !cited.includes(record));
|
|
2170
|
-
return { cited:
|
|
2170
|
+
return { cited: _chunkZ7A7IZWLcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkZ7A7IZWLcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2171
2171
|
}
|
|
2172
2172
|
function groupedRowLabels(items) {
|
|
2173
2173
|
const numbers = new Set(items.flatMap((item) => item.index === void 0 ? [] : [item.index]));
|
|
@@ -2222,7 +2222,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2222
2222
|
// src/components/chat/embeddable-chat.tsx
|
|
2223
2223
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2224
2224
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2225
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2225
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkZ7A7IZWLcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2226
2226
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2227
2227
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2228
2228
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2295,7 +2295,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2295
2295
|
if (!input) return;
|
|
2296
2296
|
switch (actionId) {
|
|
2297
2297
|
case "browse":
|
|
2298
|
-
input.submit(
|
|
2298
|
+
input.submit(_chunkZ7A7IZWLcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2299
2299
|
return;
|
|
2300
2300
|
case "search":
|
|
2301
2301
|
input.setValue(`/${cmdId} `);
|
|
@@ -2316,7 +2316,7 @@ var ONE_TEXT_LINE = "\xA0";
|
|
|
2316
2316
|
var SOURCE_CHIP_SKELETON_COUNT = 1;
|
|
2317
2317
|
function SourceChipSkeleton(props) {
|
|
2318
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: [
|
|
2319
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
2319
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkZ7A7IZWLcjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
|
|
2320
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") }),
|
|
2321
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 })
|
|
2322
2322
|
] }),
|
|
@@ -2327,7 +2327,7 @@ function SourceChip(props) {
|
|
|
2327
2327
|
const { src, onDiscuss } = props;
|
|
2328
2328
|
const marks = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
|
|
2329
2329
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2330
|
-
const cta =
|
|
2330
|
+
const cta = _chunkZ7A7IZWLcjs.resolveSourceRowCTA.call(void 0,
|
|
2331
2331
|
{
|
|
2332
2332
|
sourceRepo: src.sourceRepo,
|
|
2333
2333
|
documentType: src.documentType,
|
|
@@ -2337,16 +2337,16 @@ function SourceChip(props) {
|
|
|
2337
2337
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2338
2338
|
path: src.path
|
|
2339
2339
|
},
|
|
2340
|
-
|
|
2340
|
+
_chunkZ7A7IZWLcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2341
2341
|
);
|
|
2342
2342
|
const Icon = cta.icon;
|
|
2343
2343
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2344
|
-
const chipClass =
|
|
2344
|
+
const chipClass = _chunkZ7A7IZWLcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2345
2345
|
if (src.items && src.items.length > 0) {
|
|
2346
2346
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2347
2347
|
const rowLabels = groupedRowLabels(src.items);
|
|
2348
2348
|
const dropdownItems = src.items.map((item, i) => {
|
|
2349
|
-
const itemCta =
|
|
2349
|
+
const itemCta = _chunkZ7A7IZWLcjs.resolveSourceRowCTA.call(void 0,
|
|
2350
2350
|
{
|
|
2351
2351
|
sourceRepo: src.sourceRepo,
|
|
2352
2352
|
documentType: item.documentType,
|
|
@@ -2356,7 +2356,7 @@ function SourceChip(props) {
|
|
|
2356
2356
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2357
2357
|
path: item.path
|
|
2358
2358
|
},
|
|
2359
|
-
|
|
2359
|
+
_chunkZ7A7IZWLcjs.sourceRowCtxFromRuntime.call(void 0, runtime)
|
|
2360
2360
|
);
|
|
2361
2361
|
const ItemIcon = itemCta.icon;
|
|
2362
2362
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2373,13 +2373,13 @@ function SourceChip(props) {
|
|
|
2373
2373
|
} : void 0
|
|
2374
2374
|
};
|
|
2375
2375
|
});
|
|
2376
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2376
|
+
const groupIndices = itemIndices.length > 0 ? _chunkZ7A7IZWLcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2377
2377
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2378
|
-
|
|
2378
|
+
_chunkTRZEFT2Ncjs.HoverDropdown,
|
|
2379
2379
|
{
|
|
2380
2380
|
items: dropdownItems,
|
|
2381
2381
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2382
|
-
|
|
2382
|
+
_chunkZ7A7IZWLcjs.NavLinkAnchorViaRuntime,
|
|
2383
2383
|
{
|
|
2384
2384
|
href,
|
|
2385
2385
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2412,13 +2412,13 @@ function SourceChip(props) {
|
|
|
2412
2412
|
] });
|
|
2413
2413
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", ...marks, children: [
|
|
2414
2414
|
clickable,
|
|
2415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2416
2416
|
] });
|
|
2417
2417
|
if (cta.href) {
|
|
2418
2418
|
const isEntity = !!src.externalUrl;
|
|
2419
2419
|
return wrapChip(
|
|
2420
2420
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2421
|
-
|
|
2421
|
+
_chunkZ7A7IZWLcjs.NavLinkAnchorViaRuntime,
|
|
2422
2422
|
{
|
|
2423
2423
|
href: cta.href,
|
|
2424
2424
|
path: isEntity ? null : src.path,
|
|
@@ -2444,7 +2444,7 @@ function SourceChips({
|
|
|
2444
2444
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
2445
2445
|
if (loading) {
|
|
2446
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: [
|
|
2447
|
-
/* @__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, _chunkZ7A7IZWLcjs.TextHold, { children: "Sources" }) }),
|
|
2448
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 }) }) })
|
|
2449
2449
|
] });
|
|
2450
2450
|
}
|
|
@@ -2554,7 +2554,7 @@ function EmbeddableChatInner({
|
|
|
2554
2554
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2555
2555
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2556
2556
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2557
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2557
|
+
const { attachmentsEnabled, user: identityUser } = _chunkZ7A7IZWLcjs.useChatIdentity.call(void 0, );
|
|
2558
2558
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2559
2559
|
_react.useEffect.call(void 0, () => {
|
|
2560
2560
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2607,9 +2607,9 @@ function EmbeddableChatInner({
|
|
|
2607
2607
|
const chatInputRef = _react.useRef.call(void 0, null);
|
|
2608
2608
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2609
2609
|
() => ({
|
|
2610
|
-
fetchCommands: (prefix, signal) =>
|
|
2610
|
+
fetchCommands: (prefix, signal) => _chunkZ7A7IZWLcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2611
2611
|
resolveSourceIcon: (sourceId) => {
|
|
2612
|
-
const iconName =
|
|
2612
|
+
const iconName = _chunkZ7A7IZWLcjs.getSourceIconName.call(void 0, sourceId);
|
|
2613
2613
|
if (!iconName) return void 0;
|
|
2614
2614
|
return { Icon: _chunkJQCQCE6Ucjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2615
2615
|
},
|
|
@@ -2638,7 +2638,7 @@ function EmbeddableChatInner({
|
|
|
2638
2638
|
},
|
|
2639
2639
|
[controlledActiveMode, onActiveModeChange]
|
|
2640
2640
|
);
|
|
2641
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2641
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkZ7A7IZWLcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2642
2642
|
enabled: activeMode === "guide"
|
|
2643
2643
|
});
|
|
2644
2644
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2649,7 +2649,7 @@ function EmbeddableChatInner({
|
|
|
2649
2649
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2650
2650
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2651
2651
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2652
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2652
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkZ7A7IZWLcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2653
2653
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2654
2654
|
});
|
|
2655
2655
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2695,7 +2695,7 @@ function EmbeddableChatInner({
|
|
|
2695
2695
|
hasMoreMessages,
|
|
2696
2696
|
loadMoreMessages,
|
|
2697
2697
|
dialogCapabilities
|
|
2698
|
-
} =
|
|
2698
|
+
} = _chunkZ7A7IZWLcjs.useUnifiedChat.call(void 0, {
|
|
2699
2699
|
modes: effectiveModes,
|
|
2700
2700
|
activeMode,
|
|
2701
2701
|
mingoStateOverride: mingoState,
|
|
@@ -2742,8 +2742,8 @@ function EmbeddableChatInner({
|
|
|
2742
2742
|
addFiles: addAttachmentFiles,
|
|
2743
2743
|
removeAttachment,
|
|
2744
2744
|
clear: clearAttachments
|
|
2745
|
-
} =
|
|
2746
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2745
|
+
} = _chunkZ7A7IZWLcjs.useChatAttachments.call(void 0, );
|
|
2746
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkZ7A7IZWLcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2747
2747
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2748
2748
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2749
2749
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2874,7 +2874,7 @@ function EmbeddableChatInner({
|
|
|
2874
2874
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2875
2875
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2876
2876
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2877
|
-
(reference) =>
|
|
2877
|
+
(reference) => _chunkZ7A7IZWLcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2878
2878
|
onDiscuss: askAbout,
|
|
2879
2879
|
onDisplay: displayRef,
|
|
2880
2880
|
extras
|
|
@@ -2894,7 +2894,7 @@ function EmbeddableChatInner({
|
|
|
2894
2894
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2895
2895
|
return mapped;
|
|
2896
2896
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2897
|
-
const whatToAsk =
|
|
2897
|
+
const whatToAsk = _chunkZ7A7IZWLcjs.useWhatToAsk.call(void 0, {
|
|
2898
2898
|
dialogId: activeDialogId,
|
|
2899
2899
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2900
2900
|
user: {
|
|
@@ -2913,7 +2913,7 @@ function EmbeddableChatInner({
|
|
|
2913
2913
|
noteWhatToAskSend();
|
|
2914
2914
|
let augmentedText = text;
|
|
2915
2915
|
if (readyAttachments.length > 0) {
|
|
2916
|
-
const markdown = readyAttachments.map((att) =>
|
|
2916
|
+
const markdown = readyAttachments.map((att) => _chunkZ7A7IZWLcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2917
2917
|
augmentedText = `${text}${markdown}`;
|
|
2918
2918
|
}
|
|
2919
2919
|
void sendMessage(augmentedText, {
|
|
@@ -2952,7 +2952,7 @@ function EmbeddableChatInner({
|
|
|
2952
2952
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2953
2953
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2954
2954
|
// built-in agents.
|
|
2955
|
-
accent: _nullishCoalesce(
|
|
2955
|
+
accent: _nullishCoalesce(_chunkZ7A7IZWLcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkZ7A7IZWLcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2956
2956
|
}));
|
|
2957
2957
|
}
|
|
2958
2958
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -3000,7 +3000,7 @@ function EmbeddableChatInner({
|
|
|
3000
3000
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
3001
3001
|
});
|
|
3002
3002
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
3003
|
-
|
|
3003
|
+
_chunkZ7A7IZWLcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
3004
3004
|
_react.useEffect.call(void 0, () => {
|
|
3005
3005
|
const handler = (e) => {
|
|
3006
3006
|
const detail = e.detail;
|
|
@@ -3008,8 +3008,8 @@ function EmbeddableChatInner({
|
|
|
3008
3008
|
setIsOpen(true);
|
|
3009
3009
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
3010
3010
|
};
|
|
3011
|
-
window.addEventListener(
|
|
3012
|
-
return () => window.removeEventListener(
|
|
3011
|
+
window.addEventListener(_chunkZ7A7IZWLcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3012
|
+
return () => window.removeEventListener(_chunkZ7A7IZWLcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3013
3013
|
}, [source, askAbout, setIsOpen]);
|
|
3014
3014
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
3015
3015
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3043,10 +3043,10 @@ function EmbeddableChatInner({
|
|
|
3043
3043
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3044
3044
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3045
3045
|
};
|
|
3046
|
-
window.addEventListener(
|
|
3047
|
-
return () => window.removeEventListener(
|
|
3046
|
+
window.addEventListener(_chunkZ7A7IZWLcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3047
|
+
return () => window.removeEventListener(_chunkZ7A7IZWLcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3048
3048
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3049
|
-
_react.useEffect.call(void 0, () =>
|
|
3049
|
+
_react.useEffect.call(void 0, () => _chunkZ7A7IZWLcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3050
3050
|
const hasMessages = messages.length > 0;
|
|
3051
3051
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3052
3052
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3084,7 +3084,7 @@ function EmbeddableChatInner({
|
|
|
3084
3084
|
if (sourceSkeletonCount <= 0) return null;
|
|
3085
3085
|
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: [] }) });
|
|
3086
3086
|
}
|
|
3087
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3087
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkZ7A7IZWLcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3088
3088
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3089
3089
|
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 }) });
|
|
3090
3090
|
},
|
|
@@ -3094,7 +3094,7 @@ function EmbeddableChatInner({
|
|
|
3094
3094
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3095
3095
|
const [threadPortalHost, setThreadPortalHost] = _react.useState.call(void 0, null);
|
|
3096
3096
|
const [threadBoundary, setThreadBoundary] = _react.useState.call(void 0, null);
|
|
3097
|
-
const splitMinWidth = (isV2 ?
|
|
3097
|
+
const splitMinWidth = (isV2 ? _chunkZ7A7IZWLcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkZ7A7IZWLcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3098
3098
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3099
3099
|
_react.useEffect.call(void 0, () => {
|
|
3100
3100
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3113,7 +3113,7 @@ function EmbeddableChatInner({
|
|
|
3113
3113
|
[splitMinWidth]
|
|
3114
3114
|
);
|
|
3115
3115
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3116
|
-
const railStorageHydrated =
|
|
3116
|
+
const railStorageHydrated = _chunkZ7A7IZWLcjs.useIsHydrated.call(void 0, );
|
|
3117
3117
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3118
3118
|
if (railStorageHydrated && !railStorageRead) {
|
|
3119
3119
|
setRailStorageRead(true);
|
|
@@ -3167,7 +3167,7 @@ function EmbeddableChatInner({
|
|
|
3167
3167
|
resetToNewChat();
|
|
3168
3168
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3169
3169
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3170
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _67 => _67.length]), () => ( 0))) > 0 ||
|
|
3170
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _67 => _67.length]), () => ( 0))) > 0 || _chunkZ7A7IZWLcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3171
3171
|
const showWhatToAsk = (content) => {
|
|
3172
3172
|
whatToAsk.clearDraft();
|
|
3173
3173
|
resetToNewChat();
|
|
@@ -3267,7 +3267,7 @@ function EmbeddableChatInner({
|
|
|
3267
3267
|
}),
|
|
3268
3268
|
[resetToNewChat, contextMaxItems, contextPicker, openContextPicker]
|
|
3269
3269
|
);
|
|
3270
|
-
const splitHeaderMenuItems =
|
|
3270
|
+
const splitHeaderMenuItems = _chunkZ7A7IZWLcjs.chatDialogMenuItems.call(void 0, {
|
|
3271
3271
|
onCopyLink: headerOnCopyLink,
|
|
3272
3272
|
onRename: headerOnRename,
|
|
3273
3273
|
onCompact: headerOnCompact,
|
|
@@ -3286,7 +3286,7 @@ function EmbeddableChatInner({
|
|
|
3286
3286
|
});
|
|
3287
3287
|
};
|
|
3288
3288
|
const cancelInlineRename = () => setInlineRenameId(null);
|
|
3289
|
-
const mingoHeaderMenuItems =
|
|
3289
|
+
const mingoHeaderMenuItems = _chunkZ7A7IZWLcjs.chatDialogMenuItems.call(void 0, {
|
|
3290
3290
|
onCopyLink: headerOnCopyLink,
|
|
3291
3291
|
onRename: mingoHeaderOnRename,
|
|
3292
3292
|
onCompact: headerOnCompact,
|
|
@@ -3369,7 +3369,7 @@ function EmbeddableChatInner({
|
|
|
3369
3369
|
onRetry: reloadDialogs
|
|
3370
3370
|
};
|
|
3371
3371
|
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,
|
|
3372
|
-
|
|
3372
|
+
_chunkZ7A7IZWLcjs.MingoChatHeader,
|
|
3373
3373
|
{
|
|
3374
3374
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3375
3375
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3390,7 +3390,7 @@ function EmbeddableChatInner({
|
|
|
3390
3390
|
}
|
|
3391
3391
|
) }) : null;
|
|
3392
3392
|
const archiveListNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3393
|
-
|
|
3393
|
+
_chunkZ7A7IZWLcjs.MingoArchiveList,
|
|
3394
3394
|
{
|
|
3395
3395
|
dialogs: archivedDialogs,
|
|
3396
3396
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3415,7 +3415,7 @@ function EmbeddableChatInner({
|
|
|
3415
3415
|
hasAboveComposer && "min-h-32"
|
|
3416
3416
|
),
|
|
3417
3417
|
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,
|
|
3418
|
-
|
|
3418
|
+
_chunkZ7A7IZWLcjs.ChatMessageList,
|
|
3419
3419
|
{
|
|
3420
3420
|
messages,
|
|
3421
3421
|
isLoading: messagesInitialLoading,
|
|
@@ -3434,7 +3434,7 @@ function EmbeddableChatInner({
|
|
|
3434
3434
|
renderMention,
|
|
3435
3435
|
renderAfterMessage: renderMessageSources,
|
|
3436
3436
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3437
|
-
NavLinkAnchor:
|
|
3437
|
+
NavLinkAnchor: _chunkZ7A7IZWLcjs.NavLinkAnchorViaRuntime,
|
|
3438
3438
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3439
3439
|
contentClassName: _chunk63A4GZMBcjs.cn.call(void 0, "max-w-none pb-0", splitMode && threadContentClassName),
|
|
3440
3440
|
fullWidth: true,
|
|
@@ -3448,7 +3448,7 @@ function EmbeddableChatInner({
|
|
|
3448
3448
|
quick-action chips. Guide mode keeps the slash-command
|
|
3449
3449
|
onboarding list below. */
|
|
3450
3450
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3451
|
-
|
|
3451
|
+
_chunkZ7A7IZWLcjs.MingoWelcome,
|
|
3452
3452
|
{
|
|
3453
3453
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3454
3454
|
historyPageSize,
|
|
@@ -3468,7 +3468,7 @@ function EmbeddableChatInner({
|
|
|
3468
3468
|
+ slash-command onboarding list share one scroll region,
|
|
3469
3469
|
with a pinned quick-action chip row above the composer. */
|
|
3470
3470
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3471
|
-
|
|
3471
|
+
_chunkZ7A7IZWLcjs.GuideWelcome,
|
|
3472
3472
|
{
|
|
3473
3473
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3474
3474
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3516,9 +3516,9 @@ function EmbeddableChatInner({
|
|
|
3516
3516
|
children: aboveComposer
|
|
3517
3517
|
}
|
|
3518
3518
|
) : null;
|
|
3519
|
-
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3519
|
+
const attachmentStrip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.ChatAttachmentChipStrip, { attachments: stagedAttachments, onRemove: removeAttachment, disabled: chatLoading });
|
|
3520
3520
|
const composerNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3521
|
-
|
|
3521
|
+
_chunkZ7A7IZWLcjs.ChatComposer,
|
|
3522
3522
|
{
|
|
3523
3523
|
archived: isViewingArchived,
|
|
3524
3524
|
lock: composerLock,
|
|
@@ -3568,7 +3568,7 @@ function EmbeddableChatInner({
|
|
|
3568
3568
|
composerKey
|
|
3569
3569
|
);
|
|
3570
3570
|
const dialogModals = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3571
|
-
|
|
3571
|
+
_chunkZ7A7IZWLcjs.ChatDialogModals,
|
|
3572
3572
|
{
|
|
3573
3573
|
renameTarget,
|
|
3574
3574
|
setRenameTarget,
|
|
@@ -3584,7 +3584,7 @@ function EmbeddableChatInner({
|
|
|
3584
3584
|
const classicBody = (
|
|
3585
3585
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3586
3586
|
// only the thread `ChatMessageList` provides it to.
|
|
3587
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3587
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.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: [
|
|
3588
3588
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3589
3589
|
"div",
|
|
3590
3590
|
{
|
|
@@ -3592,7 +3592,7 @@ function EmbeddableChatInner({
|
|
|
3592
3592
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3593
3593
|
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" : ""}`,
|
|
3594
3594
|
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,
|
|
3595
|
-
|
|
3595
|
+
_chunkZ7A7IZWLcjs.ChatArchivePage,
|
|
3596
3596
|
{
|
|
3597
3597
|
dialogs: archivedDialogs,
|
|
3598
3598
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3622,7 +3622,7 @@ function EmbeddableChatInner({
|
|
|
3622
3622
|
narrow: true,
|
|
3623
3623
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3624
3624
|
innerClassName: "flex min-h-0 flex-col",
|
|
3625
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3625
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3626
3626
|
}
|
|
3627
3627
|
),
|
|
3628
3628
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3661,7 +3661,7 @@ function EmbeddableChatInner({
|
|
|
3661
3661
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3662
3662
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3663
3663
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3664
|
-
|
|
3664
|
+
_chunkZ7A7IZWLcjs.ChatHeaderSearchField,
|
|
3665
3665
|
{
|
|
3666
3666
|
initialValue: mingoCaps.searchQuery,
|
|
3667
3667
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3748,10 +3748,10 @@ function EmbeddableChatInner({
|
|
|
3748
3748
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3749
3749
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3750
3750
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3751
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3751
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3752
3752
|
),
|
|
3753
3753
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3754
|
-
|
|
3754
|
+
_chunkZ7A7IZWLcjs.GuideModeBanner,
|
|
3755
3755
|
{
|
|
3756
3756
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3757
3757
|
}
|
|
@@ -3761,7 +3761,7 @@ function EmbeddableChatInner({
|
|
|
3761
3761
|
// Archive list inside the rail (header lives in the split
|
|
3762
3762
|
// header's left cell above). Right chat block stays put.
|
|
3763
3763
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3764
|
-
|
|
3764
|
+
_chunkZ7A7IZWLcjs.ChatArchivePage,
|
|
3765
3765
|
{
|
|
3766
3766
|
embedded: true,
|
|
3767
3767
|
dialogs: archivedDialogs,
|
|
@@ -3775,7 +3775,7 @@ function EmbeddableChatInner({
|
|
|
3775
3775
|
}
|
|
3776
3776
|
)
|
|
3777
3777
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3778
|
-
|
|
3778
|
+
_chunkZ7A7IZWLcjs.MingoHistoryRail,
|
|
3779
3779
|
{
|
|
3780
3780
|
dialogs,
|
|
3781
3781
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3804,7 +3804,7 @@ function EmbeddableChatInner({
|
|
|
3804
3804
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3805
3805
|
archiveListNode
|
|
3806
3806
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3807
|
-
|
|
3807
|
+
_chunkZ7A7IZWLcjs.MingoChatRail,
|
|
3808
3808
|
{
|
|
3809
3809
|
...mingoRailProps,
|
|
3810
3810
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3823,7 +3823,7 @@ function EmbeddableChatInner({
|
|
|
3823
3823
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3824
3824
|
// the compose view.
|
|
3825
3825
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3826
|
-
|
|
3826
|
+
_chunkZ7A7IZWLcjs.MingoHistoryRail,
|
|
3827
3827
|
{
|
|
3828
3828
|
className: "duration-200 animate-in fade-in-0",
|
|
3829
3829
|
dialogs,
|
|
@@ -3867,11 +3867,11 @@ function EmbeddableChatInner({
|
|
|
3867
3867
|
] }) }) })
|
|
3868
3868
|
);
|
|
3869
3869
|
const pageHeader = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3870
|
-
|
|
3870
|
+
_chunkZ7A7IZWLcjs.MingoChatHeader,
|
|
3871
3871
|
{
|
|
3872
3872
|
variant: "page",
|
|
3873
3873
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3874
|
-
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName,
|
|
3874
|
+
meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName, _chunkZ7A7IZWLcjs.chatDayLabel.call(void 0, _optionalChain([activeDialog, 'optionalAccess', _81 => _81.timestamp]))],
|
|
3875
3875
|
menuItems: headerShowBack && !isViewingArchived && !archiveOpen ? mingoHeaderMenuItems : [],
|
|
3876
3876
|
extraMenuItems: isViewingArchived || archiveOpen ? void 0 : chatMenuExtraItems,
|
|
3877
3877
|
onRestore: isViewingArchived && !archiveOpen ? headerOnRestore : void 0,
|
|
@@ -3891,7 +3891,7 @@ function EmbeddableChatInner({
|
|
|
3891
3891
|
),
|
|
3892
3892
|
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: [
|
|
3893
3893
|
pageHeader,
|
|
3894
|
-
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3894
|
+
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.GuideModeBanner, { className: "duration-200 animate-in fade-in-0" }),
|
|
3895
3895
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: archiveOpen ? archiveListNode : threadArea }),
|
|
3896
3896
|
galleryModal,
|
|
3897
3897
|
dialogModals,
|
|
@@ -3899,7 +3899,7 @@ function EmbeddableChatInner({
|
|
|
3899
3899
|
] }) })
|
|
3900
3900
|
}
|
|
3901
3901
|
);
|
|
3902
|
-
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3902
|
+
const body = splitMode ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: [
|
|
3903
3903
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3904
3904
|
"div",
|
|
3905
3905
|
{
|
|
@@ -3917,14 +3917,14 @@ function EmbeddableChatInner({
|
|
|
3917
3917
|
threadContainer ? null : dialogModals,
|
|
3918
3918
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3919
3919
|
] }) }) : classicBody;
|
|
3920
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3920
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZ7A7IZWLcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3921
3921
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3922
3922
|
sourceLabel,
|
|
3923
3923
|
" AI Assistant"
|
|
3924
3924
|
] }) }),
|
|
3925
3925
|
body
|
|
3926
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3927
|
-
|
|
3926
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRZEFT2Ncjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3927
|
+
_chunkTRZEFT2Ncjs.DrawerContent,
|
|
3928
3928
|
{
|
|
3929
3929
|
side: "right",
|
|
3930
3930
|
flush: true,
|