@carbon/ai-chat-components 1.4.0 → 1.5.0-rc.0
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/custom-elements.json +1262 -709
- package/es/components/chat-history/src/chat-history.scss.js +1 -1
- package/es/components/chat-history/src/history-panel-item.d.ts +14 -0
- package/es/components/chat-history/src/history-panel-item.js +30 -0
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.d.ts +5 -0
- package/es/components/code-snippet/src/code-snippet.js +17 -5
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +4 -0
- package/es/components/feedback/src/feedback.js +6 -4
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/markdown/index.d.ts +3 -1
- package/es/components/markdown/index.js +1 -1
- package/es/components/markdown/src/markdown-renderer-types.d.ts +100 -0
- package/es/components/markdown/src/markdown-renderer-types.js +8 -0
- package/es/components/markdown/src/markdown-renderer-types.js.map +1 -0
- package/es/components/markdown/src/markdown-renderer.d.ts +14 -64
- package/es/components/markdown/src/markdown-renderer.js +110 -131
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.d.ts +50 -5
- package/es/components/markdown/src/markdown-token-tree.js +182 -47
- package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es/components/markdown/src/markdown.d.ts +49 -1
- package/es/components/markdown/src/markdown.js +317 -106
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +2 -5
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -1
- package/es/components/markdown/src/utils/lit-directives.d.ts +17 -0
- package/es/components/markdown/src/utils/lit-directives.js +84 -0
- package/es/components/markdown/src/utils/lit-directives.js.map +1 -0
- package/es/components/markdown/src/utils/plugin-fallback.d.ts +33 -0
- package/es/components/markdown/src/utils/plugin-fallback.js +216 -0
- package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -0
- package/es/components/markdown/src/utils/streaming-table.d.ts +28 -0
- package/es/components/markdown/src/utils/streaming-table.js +86 -0
- package/es/components/markdown/src/utils/streaming-table.js.map +1 -0
- package/es/components/markdown/src/utils/table-helpers.d.ts +17 -0
- package/es/components/markdown/src/utils/table-helpers.js +104 -2
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es/components/table/src/table.js +4 -1
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es/react/markdown.d.ts +46 -2
- package/es/react/markdown.js +177 -20
- package/es/react/markdown.js.map +1 -1
- package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-item.d.ts +14 -0
- package/es-custom/components/chat-history/src/history-panel-item.js +30 -0
- package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +5 -0
- package/es-custom/components/code-snippet/src/code-snippet.js +17 -5
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.d.ts +4 -0
- package/es-custom/components/feedback/src/feedback.js +6 -4
- package/es-custom/components/feedback/src/feedback.js.map +1 -1
- package/es-custom/components/markdown/index.d.ts +3 -1
- package/es-custom/components/markdown/index.js +1 -1
- package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +100 -0
- package/es-custom/components/markdown/src/markdown-renderer-types.js +8 -0
- package/es-custom/components/markdown/src/markdown-renderer-types.js.map +1 -0
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +14 -64
- package/es-custom/components/markdown/src/markdown-renderer.js +110 -131
- package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.d.ts +50 -5
- package/es-custom/components/markdown/src/markdown-token-tree.js +182 -47
- package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.d.ts +49 -1
- package/es-custom/components/markdown/src/markdown.js +317 -106
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +2 -5
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -1
- package/es-custom/components/markdown/src/utils/lit-directives.d.ts +17 -0
- package/es-custom/components/markdown/src/utils/lit-directives.js +84 -0
- package/es-custom/components/markdown/src/utils/lit-directives.js.map +1 -0
- package/es-custom/components/markdown/src/utils/plugin-fallback.d.ts +33 -0
- package/es-custom/components/markdown/src/utils/plugin-fallback.js +216 -0
- package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +1 -0
- package/es-custom/components/markdown/src/utils/streaming-table.d.ts +28 -0
- package/es-custom/components/markdown/src/utils/streaming-table.js +86 -0
- package/es-custom/components/markdown/src/utils/streaming-table.js.map +1 -0
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +17 -0
- package/es-custom/components/markdown/src/utils/table-helpers.js +104 -2
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es-custom/components/table/src/table.js +4 -1
- package/es-custom/components/table/src/table.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es-custom/react/markdown.d.ts +46 -2
- package/es-custom/react/markdown.js +177 -20
- package/es-custom/react/markdown.js.map +1 -1
- package/package.json +5 -4
- package/es/components/markdown/src/utils.d.ts +0 -4
- package/es/components/markdown/src/utils.js +0 -25
- package/es/components/markdown/src/utils.js.map +0 -1
- package/es-custom/components/markdown/src/utils.d.ts +0 -4
- package/es-custom/components/markdown/src/utils.js +0 -25
- package/es-custom/components/markdown/src/utils.js.map +0 -1
|
@@ -16,7 +16,7 @@ import styles from './table.scss.js';
|
|
|
16
16
|
import prefix from '../../../globals/settings.js';
|
|
17
17
|
|
|
18
18
|
/*
|
|
19
|
-
* Copyright IBM Corp. 2025
|
|
19
|
+
* Copyright IBM Corp. 2025, 2026
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -207,6 +207,9 @@ let CDSAIChatTable = class CDSAIChatTable extends LitElement {
|
|
|
207
207
|
}
|
|
208
208
|
set defaultPageSize(value) {
|
|
209
209
|
this._defaultPageSize = value;
|
|
210
|
+
if (!this._rowsPerPageChanged) {
|
|
211
|
+
this._currentPageSize = value;
|
|
212
|
+
}
|
|
210
213
|
}
|
|
211
214
|
connectedCallback() {
|
|
212
215
|
super.connectedCallback();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sources":["../../../../src/components/table/src/table.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAwCH;AACA,MAAM,yBAAyB,GAAG,GAAG;AAErC;;;AAGG;AAEH,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU,CAAA;AAAvC,IAAA,WAAA,GAAA;;AAaE;;AAEG;QAEH,IAAA,CAAA,OAAO,GAAuB,EAAE;AAEhC;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAsB,EAAE;AAE5B;;AAEG;QAEH,IAAA,CAAA,OAAO,GAAG,KAAK;AAEf;;AAEG;QAEH,IAAA,CAAA,qBAAqB,GAAG,iBAAiB;AAEzC;;AAEG;QAEH,IAAA,CAAA,gBAAgB,GAAG,eAAe;AAElC;;AAEG;QAEH,IAAA,CAAA,YAAY,GAAG,WAAW;AAE1B;;AAEG;QAEH,IAAA,CAAA,gBAAgB,GAAG,iBAAiB;AAEpC;;AAEG;QAEH,IAAA,CAAA,iBAAiB,GAAG,qBAAqB;AAEzC;;AAEG;QAEH,IAAA,CAAA,MAAM,GAAG,IAAI;AAEb;;;;;AAKG;QAEK,IAAA,CAAA,gBAAgB,GAAG,CAAC;AAW5B;;AAEG;QAEH,IAAA,CAAA,6BAA6B,GAAG,CAAC,EAAE,KAAK,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AC1B,CAAA,EAAA,cAAc,CA0pBnB;AASD,6BAAe,cAAc;;;;"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css([":host(cds-aichat-workspace-shell){background-color:var(--cds-chat-shell-background);block-size:100%;border:.0625rem solid var(--cds-chat-bubble-border,#e0e0e0);border-radius:.5rem;box-shadow:-10px 0 100px -24px var(--cds-ai-popover-shadow-outer-01,rgba(0,67,206,.06)),0 10px 40px -24px var(--cds-ai-popover-shadow-outer-02,rgba(0,0,0,.04));box-sizing:border-box!important;color:var(--cds-text-secondary,#525252);display:flex;flex-direction:column;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);inline-size:100%;letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);
|
|
10
|
+
var styles = css([":host(cds-aichat-workspace-shell){background-color:var(--cds-chat-shell-background);block-size:100%;border:.0625rem solid var(--cds-chat-bubble-border,#e0e0e0);border-radius:.5rem;box-shadow:-10px 0 100px -24px var(--cds-ai-popover-shadow-outer-01,rgba(0,67,206,.06)),0 10px 40px -24px var(--cds-ai-popover-shadow-outer-02,rgba(0,0,0,.04));box-sizing:border-box!important;color:var(--cds-text-secondary,#525252);display:flex;flex-direction:column;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);inline-size:100%;letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);overflow:auto}:host(cds-aichat-workspace-shell) slot[name=toolbar]{flex-shrink:0;min-inline-size:0}:host(cds-aichat-workspace-shell) slot[name=notification]{flex-shrink:0}:host(cds-aichat-workspace-shell) ::slotted([slot=notification]){box-sizing:border-box;max-inline-size:100%!important}:host(cds-aichat-workspace-shell) slot[name=header]{flex-shrink:0}:host(cds-aichat-workspace-shell) slot[name=body]{flex:1 1 auto;min-block-size:0}:host(cds-aichat-workspace-shell) slot[name=footer]{flex-shrink:0}::slotted(cds-aichat-toolbar){border-block-end:.0625rem solid var(--cds-chat-bubble-border);box-sizing:border-box;inline-size:100%;max-inline-size:100%;min-inline-size:0}.cds-aichat-workspace-shell__toolbar-action{display:grid;grid-auto-columns:2.5rem;grid-auto-flow:column}.cds-aichat-workspace-shell__toolbar-action ::slotted(cds-ai-label){block-size:2.5rem}:host(cds-aichat-workspace-shell-body){display:flex;flex-direction:column;padding:1.5rem 2rem}"]);
|
|
11
11
|
|
|
12
12
|
export { styles as default };
|
|
13
13
|
//# sourceMappingURL=workspace-shell.scss.js.map
|
package/es/react/markdown.d.ts
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
1
|
+
import React, { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
import CDSAIChatMarkdown from "../components/markdown/src/markdown.js";
|
|
3
|
+
import type { MarkdownRendererCodeBlockArgs, MarkdownRendererTableArgs } from "../components/markdown/src/markdown-renderer-types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Thin `@lit/react` bridge around `<cds-aichat-markdown>`. Handles text vs.
|
|
6
|
+
* element children and the web-component prop bridge, but performs no
|
|
7
|
+
* React-specific `customRenderers` portaling — that is layered on by the
|
|
8
|
+
* `Markdown` wrapper below.
|
|
9
|
+
*/
|
|
10
|
+
declare const BaseMarkdown: React.ComponentType<any>;
|
|
11
|
+
/**
|
|
12
|
+
* React-flavored variant of {@link MarkdownCustomRenderers}: each callback
|
|
13
|
+
* may return a `ReactNode` (portaled into a light-DOM slot host) in addition
|
|
14
|
+
* to the framework-neutral `HTMLElement | null`.
|
|
15
|
+
*/
|
|
16
|
+
export interface MarkdownReactCustomRenderers {
|
|
17
|
+
/**
|
|
18
|
+
* Override the default `cds-aichat-table` rendering. Return a `ReactNode`
|
|
19
|
+
* (rendered via portal into a light-DOM slot host) or an `HTMLElement`
|
|
20
|
+
* (adopted into the slot host as-is); return `null` to fall back to the
|
|
21
|
+
* default Carbon table renderer.
|
|
22
|
+
*/
|
|
23
|
+
table?: (args: MarkdownRendererTableArgs) => ReactNode | HTMLElement | null;
|
|
24
|
+
/**
|
|
25
|
+
* Override the default `cds-aichat-code-snippet` rendering. Return a
|
|
26
|
+
* `ReactNode` (rendered via portal into a light-DOM slot host) or an
|
|
27
|
+
* `HTMLElement` (adopted into the slot host as-is); return `null` to fall
|
|
28
|
+
* back to the default Carbon code snippet renderer.
|
|
29
|
+
*/
|
|
30
|
+
codeBlock?: (args: MarkdownRendererCodeBlockArgs) => ReactNode | HTMLElement | null;
|
|
31
|
+
}
|
|
32
|
+
type BaseMarkdownProps = Omit<ComponentPropsWithoutRef<typeof BaseMarkdown>, "customRenderers">;
|
|
33
|
+
/**
|
|
34
|
+
* Props for the React `<Markdown>` wrapper around `<cds-aichat-markdown>`.
|
|
35
|
+
*/
|
|
36
|
+
export interface MarkdownProps extends BaseMarkdownProps {
|
|
37
|
+
/**
|
|
38
|
+
* Per-element render overrides. Each callback returns either a `ReactNode`
|
|
39
|
+
* (rendered via portal into a light-DOM slot host) or an `HTMLElement`
|
|
40
|
+
* (adopted into the slot host as-is). Return `null` to fall back to the
|
|
41
|
+
* default Carbon rendering. Pass a stable reference (e.g. `useMemo`) — a
|
|
42
|
+
* new object identity each render forces a full re-reconcile.
|
|
43
|
+
*/
|
|
44
|
+
customRenderers?: MarkdownReactCustomRenderers;
|
|
45
|
+
}
|
|
46
|
+
declare const Markdown: React.ForwardRefExoticComponent<Omit<MarkdownProps, "ref"> & React.RefAttributes<CDSAIChatMarkdown>>;
|
|
3
47
|
export default Markdown;
|
package/es/react/markdown.js
CHANGED
|
@@ -5,34 +5,191 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
8
9
|
import { createComponent } from '@lit/react';
|
|
9
|
-
import React from 'react';
|
|
10
|
+
import React, { forwardRef, useRef, useState, useCallback, useEffect, useMemo } from 'react';
|
|
11
|
+
import { createPortal, flushSync } from 'react-dom';
|
|
10
12
|
import CDSAIChatMarkdown from '../components/markdown/src/markdown.js';
|
|
11
13
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
* Copyright IBM Corp. 2025
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*
|
|
19
|
-
* @license
|
|
20
|
-
*/
|
|
21
|
-
const BaseMarkdown = createComponent({
|
|
15
|
+
const LitMarkdown = createComponent({
|
|
22
16
|
tagName: "cds-aichat-markdown",
|
|
23
17
|
elementClass: CDSAIChatMarkdown,
|
|
24
18
|
react: React,
|
|
25
19
|
});
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
const ForwardedBaseMarkdown = React.forwardRef(({ children, markdown, ...rest }, forwardedRef) => {
|
|
21
|
+
const isTextChildren = typeof children === "string" || typeof children === "number";
|
|
22
|
+
return React.createElement(LitMarkdown, {
|
|
23
|
+
...rest,
|
|
24
|
+
ref: forwardedRef,
|
|
25
|
+
markdown: markdown ?? (isTextChildren ? String(children) : undefined),
|
|
26
|
+
},
|
|
27
|
+
// Text children become the `markdown` prop; element children pass through
|
|
28
|
+
// as light-DOM slot children (used by the React wrapper to mount plugin
|
|
29
|
+
// slot forwarders inside the underlying `<cds-aichat-markdown>`).
|
|
30
|
+
isTextChildren ? null : children);
|
|
31
|
+
});
|
|
32
|
+
ForwardedBaseMarkdown.displayName = "BaseMarkdown";
|
|
33
|
+
/**
|
|
34
|
+
* Thin `@lit/react` bridge around `<cds-aichat-markdown>`. Handles text vs.
|
|
35
|
+
* element children and the web-component prop bridge, but performs no
|
|
36
|
+
* React-specific `customRenderers` portaling — that is layered on by the
|
|
37
|
+
* `Markdown` wrapper below.
|
|
38
|
+
*/
|
|
39
|
+
const BaseMarkdown = withWebComponentBridge(ForwardedBaseMarkdown);
|
|
40
|
+
function isElement(value) {
|
|
41
|
+
return (typeof Element !== "undefined" &&
|
|
42
|
+
value instanceof Element &&
|
|
43
|
+
"tagName" in value);
|
|
44
|
+
}
|
|
45
|
+
const Markdown = forwardRef(function Markdown({ customRenderers, ...rest }, forwardedRef) {
|
|
46
|
+
const hostsRef = useRef(new Map());
|
|
47
|
+
const [portalEntries, setPortalEntries] = useState([]);
|
|
48
|
+
// Active plugin-fallback slot names that an outer chat container is hosting
|
|
49
|
+
// in page light DOM. When a chat-container ancestor catches the
|
|
50
|
+
// `cds-aichat-markdown-plugin-host-mount` event (and calls preventDefault),
|
|
51
|
+
// the markdown element skips its own local-host fallback and relies on
|
|
52
|
+
// these forwarders to project the page-level host element through every
|
|
53
|
+
// shadow boundary into its named slot. Storybook standalone usage stays on
|
|
54
|
+
// the local-host path — no listener consumes the event there.
|
|
55
|
+
const [pluginSlotNames, setPluginSlotNames] = useState([]);
|
|
56
|
+
const markdownRef = useRef(null);
|
|
57
|
+
const setMarkdownRef = useCallback((node) => {
|
|
58
|
+
markdownRef.current = node;
|
|
59
|
+
if (typeof forwardedRef === "function") {
|
|
60
|
+
forwardedRef(node);
|
|
61
|
+
}
|
|
62
|
+
else if (forwardedRef && "current" in forwardedRef) {
|
|
63
|
+
forwardedRef.current = node;
|
|
64
|
+
}
|
|
65
|
+
}, [forwardedRef]);
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
const node = markdownRef.current;
|
|
68
|
+
if (!node) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
const handleMount = (event) => {
|
|
72
|
+
const slotName = event.detail
|
|
73
|
+
?.slotName;
|
|
74
|
+
if (!slotName) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
setPluginSlotNames((prev) => prev.includes(slotName) ? prev : [...prev, slotName]);
|
|
78
|
+
};
|
|
79
|
+
const handleUnmount = (event) => {
|
|
80
|
+
const slotName = event.detail
|
|
81
|
+
?.slotName;
|
|
82
|
+
if (!slotName) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
setPluginSlotNames((prev) => prev.includes(slotName) ? prev.filter((n) => n !== slotName) : prev);
|
|
86
|
+
};
|
|
87
|
+
// Optimistic: we render a `<slot>` forwarder for every slot the markdown
|
|
88
|
+
// element emits. If a chat container ancestor takes over hosting (by
|
|
89
|
+
// calling `preventDefault()` on the mount event), the forwarder projects
|
|
90
|
+
// the page-level host through the chain. If nothing intercepts
|
|
91
|
+
// (standalone storybook), the markdown element creates its own local host
|
|
92
|
+
// alongside, and the empty forwarder is harmless.
|
|
93
|
+
node.addEventListener("cds-aichat-markdown-plugin-host-mount", handleMount);
|
|
94
|
+
node.addEventListener("cds-aichat-markdown-plugin-host-unmount", handleUnmount);
|
|
95
|
+
return () => {
|
|
96
|
+
node.removeEventListener("cds-aichat-markdown-plugin-host-mount", handleMount);
|
|
97
|
+
node.removeEventListener("cds-aichat-markdown-plugin-host-unmount", handleUnmount);
|
|
98
|
+
};
|
|
99
|
+
}, []);
|
|
100
|
+
const setPortalForSlot = useCallback((slotName, host, node) => {
|
|
101
|
+
setPortalEntries((prev) => {
|
|
102
|
+
const idx = prev.findIndex((e) => e.slotName === slotName);
|
|
103
|
+
if (idx >= 0 && prev[idx].node === node && prev[idx].host === host) {
|
|
104
|
+
return prev;
|
|
105
|
+
}
|
|
106
|
+
if (idx >= 0) {
|
|
107
|
+
const next = prev.slice();
|
|
108
|
+
next[idx] = { slotName, host, node };
|
|
109
|
+
return next;
|
|
110
|
+
}
|
|
111
|
+
return [...prev, { slotName, host, node }];
|
|
112
|
+
});
|
|
113
|
+
}, []);
|
|
114
|
+
const bridgedRenderers = useMemo(() => {
|
|
115
|
+
if (!customRenderers) {
|
|
116
|
+
return undefined;
|
|
117
|
+
}
|
|
118
|
+
const bridge = (callback) => {
|
|
119
|
+
return (args) => {
|
|
120
|
+
const rendered = callback(args);
|
|
121
|
+
if (rendered == null) {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
if (isElement(rendered)) {
|
|
125
|
+
return rendered;
|
|
126
|
+
}
|
|
127
|
+
// Mint or reuse a stable host for this slot, then flush a portal
|
|
128
|
+
// update synchronously so the host is populated before the Lit
|
|
129
|
+
// element adopts it (no empty-host flash).
|
|
130
|
+
let host = hostsRef.current.get(args.slotName);
|
|
131
|
+
if (!host) {
|
|
132
|
+
host = document.createElement("div");
|
|
133
|
+
hostsRef.current.set(args.slotName, host);
|
|
134
|
+
}
|
|
135
|
+
flushSync(() => {
|
|
136
|
+
setPortalForSlot(args.slotName, host, rendered);
|
|
137
|
+
});
|
|
138
|
+
return host;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
const out = {};
|
|
142
|
+
if (customRenderers.table) {
|
|
143
|
+
out.table = bridge(customRenderers.table);
|
|
144
|
+
}
|
|
145
|
+
if (customRenderers.codeBlock) {
|
|
146
|
+
out.codeBlock = bridge(customRenderers.codeBlock);
|
|
147
|
+
}
|
|
148
|
+
return out;
|
|
149
|
+
}, [customRenderers, setPortalForSlot]);
|
|
150
|
+
// After every commit, prune portals whose host Lit has removed (its slot
|
|
151
|
+
// dropped out of the descriptor batch, leaving the host detached). The
|
|
152
|
+
// connectivity check is deferred to a microtask on purpose: `bridge` mints a
|
|
153
|
+
// host, `flushSync`s the portal into it while it is still detached, and only
|
|
154
|
+
// *returns* it to Lit — which appends it synchronously afterwards. That
|
|
155
|
+
// `flushSync` runs this effect once while the host is not yet adopted, so a
|
|
156
|
+
// synchronous `isConnected` check would prune the entry we just added and
|
|
157
|
+
// leave the slot permanently empty (e.g. a streaming table custom renderer
|
|
158
|
+
// flickering out as later content arrives). Reading `isConnected` a
|
|
159
|
+
// microtask later lets Lit's adoption land first, so we only drop
|
|
160
|
+
// genuinely-removed hosts.
|
|
161
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
162
|
+
useEffect(() => {
|
|
163
|
+
let cancelled = false;
|
|
164
|
+
queueMicrotask(() => {
|
|
165
|
+
if (cancelled) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
let pruned = false;
|
|
169
|
+
const aliveHosts = new Map();
|
|
170
|
+
for (const [slotName, host] of hostsRef.current) {
|
|
171
|
+
if (host.isConnected) {
|
|
172
|
+
aliveHosts.set(slotName, host);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
pruned = true;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if (pruned) {
|
|
179
|
+
hostsRef.current = aliveHosts;
|
|
180
|
+
}
|
|
181
|
+
setPortalEntries((prev) => {
|
|
182
|
+
const filtered = prev.filter((e) => e.host.isConnected);
|
|
183
|
+
return filtered.length === prev.length ? prev : filtered;
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
return () => {
|
|
187
|
+
cancelled = true;
|
|
188
|
+
};
|
|
189
|
+
});
|
|
190
|
+
return (jsxs(Fragment, { children: [jsx(BaseMarkdown, { ...rest, ref: setMarkdownRef, customRenderers: bridgedRenderers, children: pluginSlotNames.map((slotName) => (jsx("slot", { name: slotName, slot: slotName }, slotName))) }), portalEntries.map((entry) => (jsx(React.Fragment, { children: createPortal(entry.node, entry.host) }, entry.slotName)))] }));
|
|
191
|
+
});
|
|
192
|
+
Markdown.displayName = "Markdown";
|
|
36
193
|
|
|
37
194
|
export { Markdown as default };
|
|
38
195
|
//# sourceMappingURL=markdown.js.map
|
package/es/react/markdown.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.js","sources":["../../src/react/markdown.
|
|
1
|
+
{"version":3,"file":"markdown.js","sources":["../../src/react/markdown.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;;;AA+BA,MAAM,WAAW,GAAG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CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css([".cds-custom--layer-one,:root{--cds-layer:var(--cds-layer-01,#f4f4f4);--cds-layer-active:var(--cds-layer-active-01,#c6c6c6);--cds-layer-background:var(--cds-layer-background-01,#fff);--cds-layer-hover:var(--cds-layer-hover-01,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-01,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-01,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-01,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-01,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-01,#a8a8a8);--cds-field:var(--cds-field-01,#f4f4f4);--cds-field-hover:var(--cds-field-hover-01,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-00,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-01,#c6c6c6);--cds-border-strong:var(--cds-border-strong-01,#8d8d8d);--cds-border-tile:var(--cds-border-tile-01,#c6c6c6)}.cds-custom--layer-two{--cds-layer:var(--cds-layer-02,#fff);--cds-layer-active:var(--cds-layer-active-02,#c6c6c6);--cds-layer-background:var(--cds-layer-background-02,#f4f4f4);--cds-layer-hover:var(--cds-layer-hover-02,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-02,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-02,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-02,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-02,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-02,#a8a8a8);--cds-field:var(--cds-field-02,#fff);--cds-field-hover:var(--cds-field-hover-02,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-01,#c6c6c6);--cds-border-subtle-selected:var(--cds-border-subtle-selected-02,#c6c6c6);--cds-border-strong:var(--cds-border-strong-02,#8d8d8d);--cds-border-tile:var(--cds-border-tile-02,#a8a8a8)}.cds-custom--layer-three{--cds-layer:var(--cds-layer-03,#f4f4f4);--cds-layer-active:var(--cds-layer-active-03,#c6c6c6);--cds-layer-background:var(--cds-layer-background-03,#fff);--cds-layer-hover:var(--cds-layer-hover-03,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-03,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-03,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-03,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-03,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-03,#a8a8a8);--cds-field:var(--cds-field-03,#f4f4f4);--cds-field-hover:var(--cds-field-hover-03,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-02,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-03,#c6c6c6);--cds-border-strong:var(--cds-border-strong-03,#8d8d8d);--cds-border-tile:var(--cds-border-tile-03,#c6c6c6)}.cds-custom--layer-one.cds-custom--layer__with-background,.cds-custom--layer-three.cds-custom--layer__with-background,.cds-custom--layer-two.cds-custom--layer__with-background{background-color:var(--cds-layer-background)}.cds-custom--side-nav{background-color:var(--cds-background,#fff);color:var(--cds-text-secondary,#525252);inline-size:3rem;inset-block:0;inset-inline-start:0;max-inline-size:16rem;overflow:hidden;position:fixed;transition:inline-size .11s cubic-bezier(.2,0,1,.9),transform .11s cubic-bezier(.2,0,1,.9);will-change:inline-size;z-index:8000}.cds-custom--side-nav--ux{inline-size:16rem;inset-block-start:3rem}@media (max-width:65.98rem){.cds-custom--side-nav--ux{inline-size:0}}.cds-custom--side-nav--rail{inline-size:3rem}.cds-custom--side-nav--hidden{inline-size:0}.cds-custom--side-nav--expanded{inline-size:16rem}.cds-custom--side-nav__overlay{background-color:transparent;block-size:0;inline-size:0;inset-block-start:3rem;inset-inline-start:0;opacity:0;position:fixed;transition:opacity .3s cubic-bezier(.5,0,.1,1),background-color .3s cubic-bezier(.5,0,.1,1)}@media (max-width:65.98rem){.cds-custom--side-nav__overlay-active{background-color:var(--cds-overlay,rgba(0,0,0,.6));block-size:100vh;inline-size:100vw;opacity:1;transition:opacity .3s cubic-bezier(.5,0,.1,1),background-color .3s cubic-bezier(.5,0,.1,1);z-index:6000}}.cds-custom--header~.cds-custom--side-nav{block-size:calc(100% - 48px);inset-block-start:3rem}.cds-custom--side-nav--fixed{inline-size:16rem}.cds-custom--side-nav--collapsed{inline-size:16rem;transform:translateX(-16rem)}.cds-custom--side-nav__navigation{display:flex;flex-direction:column}.cds-custom--side-nav__items,:host(cds-custom-aichat-history-panel-items),:host(cds-custom-side-nav-items){border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds-custom--side-nav__items *,.cds-custom--side-nav__items :after,.cds-custom--side-nav__items :before,:host(cds-custom-aichat-history-panel-items) *,:host(cds-custom-aichat-history-panel-items) :after,:host(cds-custom-aichat-history-panel-items) :before,:host(cds-custom-side-nav-items) *,:host(cds-custom-side-nav-items) :after,:host(cds-custom-side-nav-items) :before{box-sizing:inherit}.cds-custom--side-nav__items,:host(cds-custom-aichat-history-panel-items),:host(cds-custom-side-nav-items){flex:1 1 0%;overflow:hidden;padding:1rem 0 0}.cds-custom--side-nav--expanded .cds-custom--side-nav__items,.cds-custom--side-nav--expanded :host(cds-custom-aichat-history-panel-items),.cds-custom--side-nav--expanded :host(cds-custom-side-nav-items),.cds-custom--side-nav--fixed .cds-custom--side-nav__items,.cds-custom--side-nav--fixed :host(cds-custom-aichat-history-panel-items),.cds-custom--side-nav--fixed :host(cds-custom-side-nav-items),.cds-custom--side-nav:hover .cds-custom--side-nav__items,.cds-custom--side-nav:hover :host(cds-custom-aichat-history-panel-items),.cds-custom--side-nav:hover :host(cds-custom-side-nav-items){overflow-y:auto}.cds-custom--side-nav--ux .cds-custom--side-nav__items,.cds-custom--side-nav--ux :host(cds-custom-aichat-history-panel-items),.cds-custom--side-nav--ux :host(cds-custom-side-nav-items){overflow-y:auto}.cds-custom--side-nav__item,:host(cds-custom-aichat-history-panel-menu),:host(cds-custom-side-nav-link),:host(cds-custom-side-nav-menu){block-size:auto;inline-size:auto;overflow:hidden}.cds-custom--side-nav--ux .cds-custom--side-nav__item,.cds-custom--side-nav--ux :host(cds-custom-aichat-history-panel-menu),.cds-custom--side-nav--ux :host(cds-custom-side-nav-link),.cds-custom--side-nav--ux :host(cds-custom-side-nav-menu){block-size:auto;inline-size:auto}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]:hover,.cds-custom--side-nav a.cds-custom--header__menu-item:hover,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active):hover .cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active)>.cds-custom--side-nav__submenu:hover,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active):hover :not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu)>.cds-custom--side-nav__submenu:hover,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active):hover :not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link)>.cds-custom--side-nav__submenu:hover,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active):hover :not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu)>.cds-custom--side-nav__submenu:hover,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active)>.cds-custom--side-nav__link:hover,.cds-custom--side-nav__menu a.cds-custom--side-nav__link:not(.cds-custom--side-nav__link--current):not([aria-current=page]):hover,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu)>.cds-custom--side-nav__link:hover,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link)>.cds-custom--side-nav__link:hover,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu)>.cds-custom--side-nav__link:hover{background-color:var(--cds-background-hover,hsla(0,0%,55%,.12));color:var(--cds-text-primary,#161616)}.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active) .cds-custom--side-nav__menu-item>.cds-custom--side-nav__link:hover>span,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active) :host(cds-custom-aichat-history-panel-item)>.cds-custom--side-nav__link:hover>span,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active) :host(cds-custom-aichat-history-search-item)>.cds-custom--side-nav__link:hover>span,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active) :host(cds-custom-side-nav-menu-item)>.cds-custom--side-nav__link:hover>span,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__menu-item>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu) :host(cds-custom-aichat-history-panel-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu) :host(cds-custom-aichat-history-search-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu) :host(cds-custom-side-nav-menu-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link) .cds-custom--side-nav__menu-item>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link) :host(cds-custom-aichat-history-panel-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link) :host(cds-custom-aichat-history-search-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link) :host(cds-custom-side-nav-menu-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu) .cds-custom--side-nav__menu-item>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu) :host(cds-custom-aichat-history-panel-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu) :host(cds-custom-aichat-history-search-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu) :host(cds-custom-side-nav-menu-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu)>.cds-custom--side-nav__link:hover>span{color:var(--cds-text-primary,#161616)}.cds-custom--side-nav__item--large,:host(cds-custom-side-nav-link[large]),:host(cds-custom-side-nav-menu[large]){block-size:auto}.cds-custom--side-nav__divider,:host(cds-custom-side-nav-divider){background-color:var(--cds-border-subtle);block-size:1px;list-style-type:none;margin:.5rem 1rem}.cds-custom--side-nav__divider hr,:host(cds-custom-side-nav-divider) hr{border:none}.cds-custom--side-nav__submenu{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:inherit;font-size:100%;inline-size:100%;margin:0;padding:0;text-align:start;vertical-align:baseline}.cds-custom--side-nav__submenu *,.cds-custom--side-nav__submenu :after,.cds-custom--side-nav__submenu :before{box-sizing:inherit}.cds-custom--side-nav__submenu::-moz-focus-inner{border:0}.cds-custom--side-nav__submenu{align-items:center;block-size:2rem;color:var(--cds-text-secondary,#525252);display:flex;font-size:var(--cds-heading-compact-01-font-size,.875rem);font-weight:var(--cds-heading-compact-01-font-weight,600);letter-spacing:var(--cds-heading-compact-01-letter-spacing,.16px);line-height:var(--cds-heading-compact-01-line-height,1.28572);outline:2px solid transparent;outline-offset:-2px;padding:0 1rem;transition:color .11s,background-color .11s,outline .11s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cds-custom--side-nav__submenu:hover{background-color:var(--cds-background-hover,hsla(0,0%,55%,.12));color:var(--cds-text-primary,#161616)}.cds-custom--side-nav__submenu:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds-custom--side-nav__submenu:focus{outline-style:dotted}}.cds-custom--side-nav__submenu-title{overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap}.cds-custom--side-nav__icon.cds-custom--side-nav__submenu-chevron{display:flex;flex:1;justify-content:flex-end}.cds-custom--side-nav__submenu-chevron>svg{block-size:1rem;inline-size:1rem;transition:transform .11s}.cds-custom--side-nav__submenu[aria-expanded=true] .cds-custom--side-nav__submenu-chevron>svg{transform:rotate(180deg)}.cds-custom--side-nav__item--large .cds-custom--side-nav__submenu,:host(cds-custom-side-nav-link[large]) .cds-custom--side-nav__submenu,:host(cds-custom-side-nav-menu[large]) .cds-custom--side-nav__submenu{block-size:3rem}.cds-custom--side-nav__item--active .cds-custom--side-nav__submenu:hover,:host(cds-custom-side-nav-menu[active]) .cds-custom--side-nav__submenu:hover{background-color:var(--cds-background-selected,hsla(0,0%,55%,.2));color:var(--cds-text-primary,#161616)}.cds-custom--side-nav__item--active .cds-custom--side-nav__submenu[aria-expanded=false],:host(cds-custom-side-nav-menu[active]) .cds-custom--side-nav__submenu[aria-expanded=false]{background-color:var(--cds-background-selected,hsla(0,0%,55%,.2));color:var(--cds-text-primary,#161616);position:relative}.cds-custom--side-nav__item--active .cds-custom--side-nav__submenu[aria-expanded=false]:before,:host(cds-custom-side-nav-menu[active]) .cds-custom--side-nav__submenu[aria-expanded=false]:before{background-color:var(--cds-border-interactive,#0f62fe);content:\"\";inline-size:3px;inset-block:0;inset-inline-start:0;position:absolute}.cds-custom--side-nav__item--active .cds-custom--side-nav__submenu-title,:host(cds-custom-side-nav-menu[active]) .cds-custom--side-nav__submenu-title{color:var(--cds-text-primary,#161616);font-weight:600}.cds-custom--side-nav__item--active .cds-custom--side-nav__icon>svg,:host(cds-custom-side-nav-menu[active]) .cds-custom--side-nav__icon>svg{fill:var(--cds-icon-primary,#161616)}.cds-custom--side-nav__menu{border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds-custom--side-nav__menu *,.cds-custom--side-nav__menu :after,.cds-custom--side-nav__menu :before{box-sizing:inherit}.cds-custom--side-nav__menu{display:block;max-block-size:0;visibility:hidden}.cds-custom--side-nav__submenu[aria-expanded=true]+.cds-custom--side-nav__menu{max-block-size:93.75rem;visibility:inherit}.cds-custom--side-nav__menu a.cds-custom--side-nav__link{block-size:2rem;font-weight:400;min-block-size:2rem;padding-inline-start:2rem}.cds-custom--side-nav__item.cds-custom--side-nav__item--icon a.cds-custom--side-nav__link,:host(cds-custom-side-nav-menu):host(cds-custom-side-nav-menu[has-icon]) a.cds-custom--side-nav__link{padding-inline-start:4.5rem}.cds-custom--side-nav__menu a.cds-custom--side-nav__link--current,.cds-custom--side-nav__menu a.cds-custom--side-nav__link[aria-current=page],a.cds-custom--side-nav__link--current{background-color:var(--cds-background-selected,hsla(0,0%,55%,.2))}.cds-custom--side-nav__menu a.cds-custom--side-nav__link--current>span,.cds-custom--side-nav__menu a.cds-custom--side-nav__link[aria-current=page]>span,a.cds-custom--side-nav__link--current>span{color:var(--cds-text-primary,#161616);font-weight:600}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu,.cds-custom--side-nav a.cds-custom--header__menu-item,a.cds-custom--side-nav__link{align-items:center;display:flex;font-size:var(--cds-heading-compact-01-font-size,.875rem);font-weight:var(--cds-heading-compact-01-font-weight,600);letter-spacing:var(--cds-heading-compact-01-letter-spacing,.16px);line-height:var(--cds-heading-compact-01-line-height,1.28572);min-block-size:2rem;outline:2px solid transparent;outline-offset:-2px;padding:0 1rem;position:relative;text-decoration:none;transition:color .11s,background-color .11s,outline .11s}.cds-custom--side-nav__item--large a.cds-custom--side-nav__link,:host(cds-custom-side-nav-link[large]) a.cds-custom--side-nav__link,:host(cds-custom-side-nav-menu[large]) a.cds-custom--side-nav__link{block-size:3rem}.cds-custom--side-nav a.cds-custom--header__menu-item .cds-custom--text-truncate-end,a.cds-custom--side-nav__link>.cds-custom--side-nav__link-text{color:var(--cds-text-secondary,#525252);font-size:.875rem;letter-spacing:.1px;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.cds-custom--side-nav a.cds-custom--header__menu-item:focus,a.cds-custom--side-nav__link:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds-custom--side-nav a.cds-custom--header__menu-item:focus,a.cds-custom--side-nav__link:focus{outline-style:dotted}}a.cds-custom--side-nav__link--current,a.cds-custom--side-nav__link[aria-current=page]{background-color:var(--cds-background-selected,hsla(0,0%,55%,.2));font-weight:600}a.cds-custom--side-nav__link--current .cds-custom--side-nav__link-text,a.cds-custom--side-nav__link[aria-current=page] .cds-custom--side-nav__link-text{color:var(--cds-text-primary,#161616)}a.cds-custom--side-nav__link--current:before,a.cds-custom--side-nav__link[aria-current=page]:before{background-color:var(--cds-border-interactive,#0f62fe);content:\"\";inline-size:3px;inset-block:0;inset-inline-start:0;position:absolute}.cds-custom--side-nav__icon{align-items:center;display:flex;flex:0 0 1rem;justify-content:center}.cds-custom--side-nav__icon:not(.cds-custom--side-nav__submenu-chevron){margin-inline-end:1.5rem}.cds-custom--side-nav__icon>svg{fill:var(--cds-icon-secondary,#525252);block-size:1rem;inline-size:1rem}.cds-custom--side-nav--expanded .cds-custom--side-nav__icon>svg.cds-custom--side-nav-expand-icon,.cds-custom--side-nav__icon>svg.cds-custom--side-nav-collapse-icon{display:none}.cds-custom--side-nav--expanded .cds-custom--side-nav__icon>svg.cds-custom--side-nav-collapse-icon{display:block}.cds-custom--side-nav--fixed .cds-custom--side-nav__submenu,.cds-custom--side-nav--fixed a.cds-custom--side-nav__link{padding-inline-start:1rem}.cds-custom--side-nav--fixed .cds-custom--side-nav__item:not(.cds-custom--side-nav__item--icon) .cds-custom--side-nav__menu a.cds-custom--side-nav__link,.cds-custom--side-nav--fixed :not(.cds-custom--side-nav__item--icon):host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__menu a.cds-custom--side-nav__link,.cds-custom--side-nav--fixed :not(.cds-custom--side-nav__item--icon):host(cds-custom-side-nav-link) .cds-custom--side-nav__menu a.cds-custom--side-nav__link,.cds-custom--side-nav--fixed :not(.cds-custom--side-nav__item--icon):host(cds-custom-side-nav-menu) .cds-custom--side-nav__menu a.cds-custom--side-nav__link{padding-inline-start:2rem}@media (max-width:65.98rem){.cds-custom--side-nav .cds-custom--header__nav{display:block}}.cds-custom--side-nav__header-navigation,:host(cds-custom-header-side-nav-items){border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds-custom--side-nav__header-navigation *,.cds-custom--side-nav__header-navigation :after,.cds-custom--side-nav__header-navigation :before,:host(cds-custom-header-side-nav-items) *,:host(cds-custom-header-side-nav-items) :after,:host(cds-custom-header-side-nav-items) :before{box-sizing:inherit}.cds-custom--side-nav__header-navigation,:host(cds-custom-header-side-nav-items){display:none}@media (max-width:65.98rem){.cds-custom--side-nav__header-navigation,:host(cds-custom-header-side-nav-items){display:block;margin-block-end:2rem;position:relative}}.cds-custom--side-nav__header-divider:after{background:var(--cds-border-subtle);block-size:.0625rem;content:\"\";inline-size:calc(100% - 32px);inset-block-end:-1rem;inset-inline-start:1rem;position:absolute}.cds-custom--side-nav a.cds-custom--header__menu-item{color:var(--cds-text-secondary,#525252);justify-content:space-between;white-space:nowrap}.cds-custom--side-nav a.cds-custom--header__menu-item[aria-expanded=true]{background-color:transparent}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu{background-color:transparent;box-shadow:none;inline-size:100%;inset-block-end:inherit;padding:0;transform:none}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu li{inline-size:100%}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu a.cds-custom--header__menu-item{font-weight:400;padding-inline-start:4.25rem}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu a.cds-custom--header__menu-item:hover{background-color:var(--cds-background-hover,hsla(0,0%,55%,.12));color:var(--cds-text-primary,#161616)}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu a.cds-custom--header__menu-item--current:hover{background-color:var(--cds-layer-selected-hover)}.cds-custom--side-nav .cds-custom--side-nav__header-navigation .cds-custom--header__menu-item--current:after,.cds-custom--side-nav .cds-custom--side-nav__header-navigation a.cds-custom--header__menu-item[aria-current=page]:after,.cds-custom--side-nav :host(cds-custom-header-side-nav-items) .cds-custom--header__menu-item--current:after,.cds-custom--side-nav :host(cds-custom-header-side-nav-items) a.cds-custom--header__menu-item[aria-current=page]:after{block-size:calc(100% + 4px);inline-size:3px}.cds-custom--side-nav .cds-custom--header__menu a.cds-custom--header__menu-item{block-size:inherit}.cds-custom--side-nav .cds-custom--header__menu-arrow,.cds-custom--side-nav a.cds-custom--header__menu-item:focus .cds-custom--header__menu-arrow,.cds-custom--side-nav a.cds-custom--header__menu-item:hover .cds-custom--header__menu-arrow{fill:var(--cds-icon-secondary,#525252)}:host(cds-custom-side-nav[expanded]) ::slotted(cds-custom-side-nav-items){overflow-y:auto}:host(cds-custom-side-nav-link){block-size:auto;display:block;inline-size:auto;outline:none}:host(cds-custom-side-nav-link) .cds-custom--side-nav__icon{color:var(--cds-text-primary,#161616)}:host(cds-custom-side-nav-link) .cds-custom--side-nav__icon[hidden]{display:none}:host(cds-custom-side-nav-divider){display:block}:host(cds-custom-aichat-history-panel-menu),:host(cds-custom-side-nav-menu){display:block}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__icon[hidden],:host(cds-custom-side-nav-menu) .cds-custom--side-nav__icon[hidden]{display:none}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__menu,:host(cds-custom-side-nav-menu) .cds-custom--side-nav__menu{margin:0;padding:0}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__submenu[aria-expanded=true]+.cds-custom--side-nav__menu,:host(cds-custom-side-nav-menu) .cds-custom--side-nav__submenu[aria-expanded=true]+.cds-custom--side-nav__menu{max-block-size:none}:host(cds-custom-side-nav-menu[active]){color:var(--cds-text-primary,#161616);position:relative}:host(cds-custom-side-nav-menu[active]):before{background-color:var(--cds-border-interactive,#0f62fe);content:\"\";inline-size:.25rem;inset-block:0;inset-inline-start:0;position:absolute}:host(cds-custom-side-nav-menu[active][expanded]){background-color:inherit;color:inherit;position:inherit}:host(cds-custom-side-nav-menu[active][expanded]):before{content:none}:host(cds-custom-aichat-history-panel-item),:host(cds-custom-aichat-history-search-item),:host(cds-custom-side-nav-menu-item){block-size:auto;display:block;inline-size:auto;outline:none}:host(cds-custom-aichat-history-panel-item) a.cds-custom--side-nav__link,:host(cds-custom-aichat-history-search-item) a.cds-custom--side-nav__link,:host(cds-custom-side-nav-menu-item) a.cds-custom--side-nav__link{block-size:2rem;font-weight:400;min-block-size:2rem;padding-inline-start:2rem}:host(cds-custom-side-nav-menu-item[parent-has-icon]) a.cds-custom--side-nav__link{padding-inline-start:4.5rem}:host(cds-custom-aichat-history-panel-item) .cds-custom--side-nav__link:hover,:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__submenu:hover,:host(cds-custom-aichat-history-search-item) .cds-custom--side-nav__link:hover,:host(cds-custom-side-nav-item) .cds-custom--side-nav__link:hover,:host(cds-custom-side-nav-menu) .cds-custom--side-nav__submenu:hover,:host(cds-custom-side-nav-menu-item) .cds-custom--side-nav__link:hover{background-color:var(--cds-background-hover,hsla(0,0%,55%,.12));color:var(--cds-text-primary,#161616)}:host(cds-custom-aichat-history-shell){background:var(--cds-chat-header-background,#fff);block-size:100%;border:var(--history-shell-border,solid .0625rem var(--cds-border-subtle-00,#e0e0e0));border-end-end-radius:var(--cds-aichat-border-radius-end-end,0);border-end-start-radius:var(--cds-aichat-border-radius-end-start,0);border-start-end-radius:var(--cds-aichat-border-radius-start-end,0);border-start-start-radius:var(--cds-aichat-border-radius-start-start,0);display:flex;flex-direction:column;inline-size:100%;position:relative;z-index:1}:host(cds-custom-aichat-history-header){align-items:center;border-block-end:.0625rem solid var(--cds-border-subtle-00,#e0e0e0);display:flex;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);font-weight:600;inline-size:100%;justify-content:space-between;letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);letter-spacing:.1px;line-height:var(--cds-body-compact-01-line-height,1.28572);line-height:1.25rem;min-block-size:2.5rem}:host(cds-custom-aichat-history-header) .cds-custom-aichat--history-header__close-button{padding-inline-end:.125rem}:host(cds-custom-aichat-history-header) .cds-custom-aichat--history-header__title{inline-size:100%;margin-inline-start:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(cds-custom-aichat-history-header[show-close-action]) .cds-custom-aichat--history-header__title{margin-inline-start:0}:host(cds-custom-aichat-history-toolbar){display:flex}:host(cds-custom-aichat-history-toolbar) cds-custom-search::part(input){background-color:var(--cds-chat-header-background,#fff);border-block-end:.0625rem solid var(--cds-border-subtle-00,#e0e0e0)}:host(cds-custom-aichat-history-toolbar) cds-custom-search::part(close-button):before{content:none}:host(cds-custom-aichat-history-toolbar[search-off]){border-block-end:.0625rem solid var(--cds-border-subtle-00,#e0e0e0);justify-content:flex-end}:host(cds-custom-aichat-history-content){display:flex;flex:1;flex-direction:column;overflow-y:auto}:host(cds-custom-aichat-history-content) .cds-custom-aichat--history-content__results-count{display:block;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);padding:.75rem 0 .25rem .75rem}:host(cds-custom-aichat-history-loading){overflow:hidden;padding:1.5rem}:host(cds-custom-aichat-history-loading) cds-custom-skeleton-text{padding:1.5rem 0}:host(cds-custom-aichat-history-loading) .cds-custom-aichat--history-loading__results{border-block-end:1px solid var(--cds-border-subtle);margin-block-end:.75rem}:host(cds-custom-aichat-history-loading) .cds-custom-aichat--history-loading__results cds-custom-skeleton-text{padding:0 0 .75rem}:host(cds-custom-aichat-history-panel){flex:1}:host(cds-custom-aichat-history-panel) .cds-custom--side-nav{background-color:transparent;block-size:100%;inline-size:100%;max-inline-size:100%;position:relative}:host(cds-custom-aichat-history-panel-items){padding:0;position:relative}:host(cds-custom-aichat-history-panel-menu){padding-block-start:.5rem}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__submenu{padding:0 1rem 0 .75rem}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__submenu-title{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);padding-inline-start:.25rem}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__icon:not(.cds-custom--side-nav__submenu-chevron){margin-inline-end:.5rem}:host(cds-custom-aichat-history-panel-item),:host(cds-custom-aichat-history-search-item){position:relative}:host(cds-custom-aichat-history-panel-item) .cds-custom--side-nav__link,:host(cds-custom-aichat-history-search-item) .cds-custom--side-nav__link{align-items:center;background-color:transparent;block-size:2.5rem;border:none;cursor:pointer;display:flex;font-family:inherit;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);inline-size:100%;justify-content:space-between;letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);outline:2px solid transparent;outline-offset:-2px;padding-inline-start:2.5rem;position:relative;text-decoration:none}:host(cds-custom-aichat-history-panel-item) button.cds-custom--side-nav__link:focus,:host(cds-custom-aichat-history-search-item) button.cds-custom--side-nav__link:focus{background-color:var(--cds-background-hover,hsla(0,0%,55%,.12));outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}:host(cds-custom-aichat-history-panel-item) .cds-custom--side-nav__link-text,:host(cds-custom-aichat-history-search-item) .cds-custom--side-nav__link-text{color:var(--cds-text-primary,#161616);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(cds-custom-aichat-history-panel-item) .cds-custom-aichat--overflow-menu__icon,:host(cds-custom-aichat-history-search-item) .cds-custom-aichat--overflow-menu__icon{color:var(--cds-icon-primary,#161616)}:host(cds-custom-aichat-history-panel-item[rename]){align-items:center;block-size:2.5rem;display:flex}:host(cds-custom-aichat-history-panel-item[selected]) button.cds-custom--side-nav__link{background-color:var(--cds-layer-selected)}:host(cds-custom-aichat-history-panel-item[selected]) button.cds-custom--side-nav__link:before{background-color:var(--cds-border-interactive,#0f62fe);content:\"\";inline-size:3px;inset-block:0;inset-inline-start:0;position:absolute}:host(cds-custom-aichat-history-panel-item-input){inline-size:100%;padding:0 1.5rem}:host(cds-custom-aichat-history-panel-item-input) .cds-custom-aichat--history-panel-item--rename__input{align-items:center;block-size:2rem;display:flex;inline-size:100%;justify-content:space-between;outline:.125rem solid var(--cds-focus,#0f62fe)}:host(cds-custom-aichat-history-panel-item-input) input{background-color:transparent;border:none;color:var(--cds-text-primary,#161616);flex-grow:2;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);overflow:hidden;padding-inline-start:.5rem;text-overflow:ellipsis;white-space:nowrap}:host(cds-custom-aichat-history-panel-item-input) input:focus{outline:none}:host(cds-custom-aichat-history-search-item) button.cds-custom--side-nav__link{align-items:flex-start;block-size:4rem;flex-direction:column;justify-content:center;padding-inline-end:1rem}:host(cds-custom-aichat-history-search-item) .cds-custom--side-nav__link-text{inline-size:100%;text-align:start}:host(cds-custom-aichat-history-search-item) .cds-custom--side-nav__link-subtitle{color:var(--cds-text-secondary,#525252);font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);padding-block-start:.125rem}:host(cds-custom-aichat-history-search-item[disabled]) button.cds-custom--side-nav__link{background-color:transparent;cursor:default;outline:none}cds-custom-overflow-menu{visibility:hidden}:host(cds-custom-aichat-history-panel-item[selected]) cds-custom-overflow-menu{visibility:visible}:host(cds-custom-aichat-history-panel-item) cds-custom-overflow-menu[open],:host(cds-custom-aichat-history-panel-item:focus) cds-custom-overflow-menu,:host(cds-custom-aichat-history-panel-item:focus-within) cds-custom-overflow-menu,:host(cds-custom-aichat-history-panel-item:hover) cds-custom-overflow-menu{visibility:visible}:host(cds-custom-aichat-history-panel-item[show-actions]) cds-custom-overflow-menu{visibility:visible}:host(cds-custom-aichat-history-panel-item[parent-has-icon]) button.cds-custom-aichat--side-nav__link{padding-inline-start:4.5rem}:host(cds-custom-aichat-history-delete-panel){display:flex;flex-direction:column;inset:0;justify-content:center;padding:2rem;position:absolute;z-index:9999}:host(cds-custom-aichat-history-delete-panel):before{background:var(--cds-background,#fff);border-radius:var(--cds-aichat-border-radius-start-start,0) var(--cds-aichat-border-radius-start-end,0) var(--cds-aichat-border-radius-end-end,0) var(--cds-aichat-border-radius-end-start,0);content:\"\";inset:0;opacity:.95;position:absolute;z-index:-1}:host(cds-custom-aichat-history-delete-panel) .cds-custom-aichat--history-delete-panel__content{position:relative;z-index:1}:host(cds-custom-aichat-history-delete-panel) h1{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4);margin:0 0 .5rem}:host(cds-custom-aichat-history-delete-panel) span{font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}:host(cds-custom-aichat-history-delete-panel) .cds-custom-aichat--history-delete-panel__actions{display:flex;gap:.5rem;padding-block-start:1.5rem}:host(cds-custom-aichat-history-delete-panel) .cds-custom-aichat--history-delete-panel__actions cds-custom-aichat-button{flex:1}"]);
|
|
10
|
+
var styles = css([".cds-custom--layer-one,:root{--cds-layer:var(--cds-layer-01,#f4f4f4);--cds-layer-active:var(--cds-layer-active-01,#c6c6c6);--cds-layer-background:var(--cds-layer-background-01,#fff);--cds-layer-hover:var(--cds-layer-hover-01,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-01,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-01,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-01,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-01,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-01,#a8a8a8);--cds-field:var(--cds-field-01,#f4f4f4);--cds-field-hover:var(--cds-field-hover-01,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-00,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-01,#c6c6c6);--cds-border-strong:var(--cds-border-strong-01,#8d8d8d);--cds-border-tile:var(--cds-border-tile-01,#c6c6c6)}.cds-custom--layer-two{--cds-layer:var(--cds-layer-02,#fff);--cds-layer-active:var(--cds-layer-active-02,#c6c6c6);--cds-layer-background:var(--cds-layer-background-02,#f4f4f4);--cds-layer-hover:var(--cds-layer-hover-02,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-02,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-02,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-02,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-02,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-02,#a8a8a8);--cds-field:var(--cds-field-02,#fff);--cds-field-hover:var(--cds-field-hover-02,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-01,#c6c6c6);--cds-border-subtle-selected:var(--cds-border-subtle-selected-02,#c6c6c6);--cds-border-strong:var(--cds-border-strong-02,#8d8d8d);--cds-border-tile:var(--cds-border-tile-02,#a8a8a8)}.cds-custom--layer-three{--cds-layer:var(--cds-layer-03,#f4f4f4);--cds-layer-active:var(--cds-layer-active-03,#c6c6c6);--cds-layer-background:var(--cds-layer-background-03,#fff);--cds-layer-hover:var(--cds-layer-hover-03,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-03,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-03,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-03,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-03,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-03,#a8a8a8);--cds-field:var(--cds-field-03,#f4f4f4);--cds-field-hover:var(--cds-field-hover-03,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-02,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-03,#c6c6c6);--cds-border-strong:var(--cds-border-strong-03,#8d8d8d);--cds-border-tile:var(--cds-border-tile-03,#c6c6c6)}.cds-custom--layer-one.cds-custom--layer__with-background,.cds-custom--layer-three.cds-custom--layer__with-background,.cds-custom--layer-two.cds-custom--layer__with-background{background-color:var(--cds-layer-background)}.cds-custom--side-nav{background-color:var(--cds-background,#fff);color:var(--cds-text-secondary,#525252);inline-size:3rem;inset-block:0;inset-inline-start:0;max-inline-size:16rem;overflow:hidden;position:fixed;transition:inline-size .11s cubic-bezier(.2,0,1,.9),transform .11s cubic-bezier(.2,0,1,.9);will-change:inline-size;z-index:8000}.cds-custom--side-nav--ux{inline-size:16rem;inset-block-start:3rem}@media (max-width:65.98rem){.cds-custom--side-nav--ux{inline-size:0}}.cds-custom--side-nav--rail{inline-size:3rem}.cds-custom--side-nav--hidden{inline-size:0}.cds-custom--side-nav--expanded{inline-size:16rem}.cds-custom--side-nav__overlay{background-color:transparent;block-size:0;inline-size:0;inset-block-start:3rem;inset-inline-start:0;opacity:0;position:fixed;transition:opacity .3s cubic-bezier(.5,0,.1,1),background-color .3s cubic-bezier(.5,0,.1,1)}@media (max-width:65.98rem){.cds-custom--side-nav__overlay-active{background-color:var(--cds-overlay,rgba(0,0,0,.6));block-size:100vh;inline-size:100vw;opacity:1;transition:opacity .3s cubic-bezier(.5,0,.1,1),background-color .3s cubic-bezier(.5,0,.1,1);z-index:6000}}.cds-custom--header~.cds-custom--side-nav{block-size:calc(100% - 48px);inset-block-start:3rem}.cds-custom--side-nav--fixed{inline-size:16rem}.cds-custom--side-nav--collapsed{inline-size:16rem;transform:translateX(-16rem)}.cds-custom--side-nav__navigation{display:flex;flex-direction:column}.cds-custom--side-nav__items,:host(cds-custom-aichat-history-panel-items),:host(cds-custom-side-nav-items){border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds-custom--side-nav__items *,.cds-custom--side-nav__items :after,.cds-custom--side-nav__items :before,:host(cds-custom-aichat-history-panel-items) *,:host(cds-custom-aichat-history-panel-items) :after,:host(cds-custom-aichat-history-panel-items) :before,:host(cds-custom-side-nav-items) *,:host(cds-custom-side-nav-items) :after,:host(cds-custom-side-nav-items) :before{box-sizing:inherit}.cds-custom--side-nav__items,:host(cds-custom-aichat-history-panel-items),:host(cds-custom-side-nav-items){flex:1 1 0%;overflow:hidden;padding:1rem 0 0}.cds-custom--side-nav--expanded .cds-custom--side-nav__items,.cds-custom--side-nav--expanded :host(cds-custom-aichat-history-panel-items),.cds-custom--side-nav--expanded :host(cds-custom-side-nav-items),.cds-custom--side-nav--fixed .cds-custom--side-nav__items,.cds-custom--side-nav--fixed :host(cds-custom-aichat-history-panel-items),.cds-custom--side-nav--fixed :host(cds-custom-side-nav-items),.cds-custom--side-nav:hover .cds-custom--side-nav__items,.cds-custom--side-nav:hover :host(cds-custom-aichat-history-panel-items),.cds-custom--side-nav:hover :host(cds-custom-side-nav-items){overflow-y:auto}.cds-custom--side-nav--ux .cds-custom--side-nav__items,.cds-custom--side-nav--ux :host(cds-custom-aichat-history-panel-items),.cds-custom--side-nav--ux :host(cds-custom-side-nav-items){overflow-y:auto}.cds-custom--side-nav__item,:host(cds-custom-aichat-history-panel-menu),:host(cds-custom-side-nav-link),:host(cds-custom-side-nav-menu){block-size:auto;inline-size:auto;overflow:hidden}.cds-custom--side-nav--ux .cds-custom--side-nav__item,.cds-custom--side-nav--ux :host(cds-custom-aichat-history-panel-menu),.cds-custom--side-nav--ux :host(cds-custom-side-nav-link),.cds-custom--side-nav--ux :host(cds-custom-side-nav-menu){block-size:auto;inline-size:auto}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]:hover,.cds-custom--side-nav a.cds-custom--header__menu-item:hover,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active):hover .cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active)>.cds-custom--side-nav__submenu:hover,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active):hover :not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu)>.cds-custom--side-nav__submenu:hover,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active):hover :not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link)>.cds-custom--side-nav__submenu:hover,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active):hover :not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu)>.cds-custom--side-nav__submenu:hover,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active)>.cds-custom--side-nav__link:hover,.cds-custom--side-nav__menu a.cds-custom--side-nav__link:not(.cds-custom--side-nav__link--current):not([aria-current=page]):hover,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu)>.cds-custom--side-nav__link:hover,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link)>.cds-custom--side-nav__link:hover,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu)>.cds-custom--side-nav__link:hover{background-color:var(--cds-background-hover,hsla(0,0%,55%,.12));color:var(--cds-text-primary,#161616)}.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active) .cds-custom--side-nav__menu-item>.cds-custom--side-nav__link:hover>span,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active) :host(cds-custom-aichat-history-panel-item)>.cds-custom--side-nav__link:hover>span,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active) :host(cds-custom-aichat-history-search-item)>.cds-custom--side-nav__link:hover>span,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active) :host(cds-custom-side-nav-menu-item)>.cds-custom--side-nav__link:hover>span,.cds-custom--side-nav__item:not(.cds-custom--side-nav__item--active)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__menu-item>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu) :host(cds-custom-aichat-history-panel-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu) :host(cds-custom-aichat-history-search-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu) :host(cds-custom-side-nav-menu-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-aichat-history-panel-menu)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link) .cds-custom--side-nav__menu-item>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link) :host(cds-custom-aichat-history-panel-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link) :host(cds-custom-aichat-history-search-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link) :host(cds-custom-side-nav-menu-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-link)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu) .cds-custom--side-nav__menu-item>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu) :host(cds-custom-aichat-history-panel-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu) :host(cds-custom-aichat-history-search-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu) :host(cds-custom-side-nav-menu-item)>.cds-custom--side-nav__link:hover>span,:not(.cds-custom--side-nav__item--active):host(cds-custom-side-nav-menu)>.cds-custom--side-nav__link:hover>span{color:var(--cds-text-primary,#161616)}.cds-custom--side-nav__item--large,:host(cds-custom-side-nav-link[large]),:host(cds-custom-side-nav-menu[large]){block-size:auto}.cds-custom--side-nav__divider,:host(cds-custom-side-nav-divider){background-color:var(--cds-border-subtle);block-size:1px;list-style-type:none;margin:.5rem 1rem}.cds-custom--side-nav__divider hr,:host(cds-custom-side-nav-divider) hr{border:none}.cds-custom--side-nav__submenu{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:inherit;font-size:100%;inline-size:100%;margin:0;padding:0;text-align:start;vertical-align:baseline}.cds-custom--side-nav__submenu *,.cds-custom--side-nav__submenu :after,.cds-custom--side-nav__submenu :before{box-sizing:inherit}.cds-custom--side-nav__submenu::-moz-focus-inner{border:0}.cds-custom--side-nav__submenu{align-items:center;block-size:2rem;color:var(--cds-text-secondary,#525252);display:flex;font-size:var(--cds-heading-compact-01-font-size,.875rem);font-weight:var(--cds-heading-compact-01-font-weight,600);letter-spacing:var(--cds-heading-compact-01-letter-spacing,.16px);line-height:var(--cds-heading-compact-01-line-height,1.28572);outline:2px solid transparent;outline-offset:-2px;padding:0 1rem;transition:color .11s,background-color .11s,outline .11s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cds-custom--side-nav__submenu:hover{background-color:var(--cds-background-hover,hsla(0,0%,55%,.12));color:var(--cds-text-primary,#161616)}.cds-custom--side-nav__submenu:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds-custom--side-nav__submenu:focus{outline-style:dotted}}.cds-custom--side-nav__submenu-title{overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap}.cds-custom--side-nav__icon.cds-custom--side-nav__submenu-chevron{display:flex;flex:1;justify-content:flex-end}.cds-custom--side-nav__submenu-chevron>svg{block-size:1rem;inline-size:1rem;transition:transform .11s}.cds-custom--side-nav__submenu[aria-expanded=true] .cds-custom--side-nav__submenu-chevron>svg{transform:rotate(180deg)}.cds-custom--side-nav__item--large .cds-custom--side-nav__submenu,:host(cds-custom-side-nav-link[large]) .cds-custom--side-nav__submenu,:host(cds-custom-side-nav-menu[large]) .cds-custom--side-nav__submenu{block-size:3rem}.cds-custom--side-nav__item--active .cds-custom--side-nav__submenu:hover,:host(cds-custom-side-nav-menu[active]) .cds-custom--side-nav__submenu:hover{background-color:var(--cds-background-selected,hsla(0,0%,55%,.2));color:var(--cds-text-primary,#161616)}.cds-custom--side-nav__item--active .cds-custom--side-nav__submenu[aria-expanded=false],:host(cds-custom-side-nav-menu[active]) .cds-custom--side-nav__submenu[aria-expanded=false]{background-color:var(--cds-background-selected,hsla(0,0%,55%,.2));color:var(--cds-text-primary,#161616);position:relative}.cds-custom--side-nav__item--active .cds-custom--side-nav__submenu[aria-expanded=false]:before,:host(cds-custom-side-nav-menu[active]) .cds-custom--side-nav__submenu[aria-expanded=false]:before{background-color:var(--cds-border-interactive,#0f62fe);content:\"\";inline-size:3px;inset-block:0;inset-inline-start:0;position:absolute}.cds-custom--side-nav__item--active .cds-custom--side-nav__submenu-title,:host(cds-custom-side-nav-menu[active]) .cds-custom--side-nav__submenu-title{color:var(--cds-text-primary,#161616);font-weight:600}.cds-custom--side-nav__item--active .cds-custom--side-nav__icon>svg,:host(cds-custom-side-nav-menu[active]) .cds-custom--side-nav__icon>svg{fill:var(--cds-icon-primary,#161616)}.cds-custom--side-nav__menu{border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds-custom--side-nav__menu *,.cds-custom--side-nav__menu :after,.cds-custom--side-nav__menu :before{box-sizing:inherit}.cds-custom--side-nav__menu{display:block;max-block-size:0;visibility:hidden}.cds-custom--side-nav__submenu[aria-expanded=true]+.cds-custom--side-nav__menu{max-block-size:93.75rem;visibility:inherit}.cds-custom--side-nav__menu a.cds-custom--side-nav__link{block-size:2rem;font-weight:400;min-block-size:2rem;padding-inline-start:2rem}.cds-custom--side-nav__item.cds-custom--side-nav__item--icon a.cds-custom--side-nav__link,:host(cds-custom-side-nav-menu):host(cds-custom-side-nav-menu[has-icon]) a.cds-custom--side-nav__link{padding-inline-start:4.5rem}.cds-custom--side-nav__menu a.cds-custom--side-nav__link--current,.cds-custom--side-nav__menu a.cds-custom--side-nav__link[aria-current=page],a.cds-custom--side-nav__link--current{background-color:var(--cds-background-selected,hsla(0,0%,55%,.2))}.cds-custom--side-nav__menu a.cds-custom--side-nav__link--current>span,.cds-custom--side-nav__menu a.cds-custom--side-nav__link[aria-current=page]>span,a.cds-custom--side-nav__link--current>span{color:var(--cds-text-primary,#161616);font-weight:600}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu,.cds-custom--side-nav a.cds-custom--header__menu-item,a.cds-custom--side-nav__link{align-items:center;display:flex;font-size:var(--cds-heading-compact-01-font-size,.875rem);font-weight:var(--cds-heading-compact-01-font-weight,600);letter-spacing:var(--cds-heading-compact-01-letter-spacing,.16px);line-height:var(--cds-heading-compact-01-line-height,1.28572);min-block-size:2rem;outline:2px solid transparent;outline-offset:-2px;padding:0 1rem;position:relative;text-decoration:none;transition:color .11s,background-color .11s,outline .11s}.cds-custom--side-nav__item--large a.cds-custom--side-nav__link,:host(cds-custom-side-nav-link[large]) a.cds-custom--side-nav__link,:host(cds-custom-side-nav-menu[large]) a.cds-custom--side-nav__link{block-size:3rem}.cds-custom--side-nav a.cds-custom--header__menu-item .cds-custom--text-truncate-end,a.cds-custom--side-nav__link>.cds-custom--side-nav__link-text{color:var(--cds-text-secondary,#525252);font-size:.875rem;letter-spacing:.1px;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.cds-custom--side-nav a.cds-custom--header__menu-item:focus,a.cds-custom--side-nav__link:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds-custom--side-nav a.cds-custom--header__menu-item:focus,a.cds-custom--side-nav__link:focus{outline-style:dotted}}a.cds-custom--side-nav__link--current,a.cds-custom--side-nav__link[aria-current=page]{background-color:var(--cds-background-selected,hsla(0,0%,55%,.2));font-weight:600}a.cds-custom--side-nav__link--current .cds-custom--side-nav__link-text,a.cds-custom--side-nav__link[aria-current=page] .cds-custom--side-nav__link-text{color:var(--cds-text-primary,#161616)}a.cds-custom--side-nav__link--current:before,a.cds-custom--side-nav__link[aria-current=page]:before{background-color:var(--cds-border-interactive,#0f62fe);content:\"\";inline-size:3px;inset-block:0;inset-inline-start:0;position:absolute}.cds-custom--side-nav__icon{align-items:center;display:flex;flex:0 0 1rem;justify-content:center}.cds-custom--side-nav__icon:not(.cds-custom--side-nav__submenu-chevron){margin-inline-end:1.5rem}.cds-custom--side-nav__icon>svg{fill:var(--cds-icon-secondary,#525252);block-size:1rem;inline-size:1rem}.cds-custom--side-nav--expanded .cds-custom--side-nav__icon>svg.cds-custom--side-nav-expand-icon,.cds-custom--side-nav__icon>svg.cds-custom--side-nav-collapse-icon{display:none}.cds-custom--side-nav--expanded .cds-custom--side-nav__icon>svg.cds-custom--side-nav-collapse-icon{display:block}.cds-custom--side-nav--fixed .cds-custom--side-nav__submenu,.cds-custom--side-nav--fixed a.cds-custom--side-nav__link{padding-inline-start:1rem}.cds-custom--side-nav--fixed .cds-custom--side-nav__item:not(.cds-custom--side-nav__item--icon) .cds-custom--side-nav__menu a.cds-custom--side-nav__link,.cds-custom--side-nav--fixed :not(.cds-custom--side-nav__item--icon):host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__menu a.cds-custom--side-nav__link,.cds-custom--side-nav--fixed :not(.cds-custom--side-nav__item--icon):host(cds-custom-side-nav-link) .cds-custom--side-nav__menu a.cds-custom--side-nav__link,.cds-custom--side-nav--fixed :not(.cds-custom--side-nav__item--icon):host(cds-custom-side-nav-menu) .cds-custom--side-nav__menu a.cds-custom--side-nav__link{padding-inline-start:2rem}@media (max-width:65.98rem){.cds-custom--side-nav .cds-custom--header__nav{display:block}}.cds-custom--side-nav__header-navigation,:host(cds-custom-header-side-nav-items){border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds-custom--side-nav__header-navigation *,.cds-custom--side-nav__header-navigation :after,.cds-custom--side-nav__header-navigation :before,:host(cds-custom-header-side-nav-items) *,:host(cds-custom-header-side-nav-items) :after,:host(cds-custom-header-side-nav-items) :before{box-sizing:inherit}.cds-custom--side-nav__header-navigation,:host(cds-custom-header-side-nav-items){display:none}@media (max-width:65.98rem){.cds-custom--side-nav__header-navigation,:host(cds-custom-header-side-nav-items){display:block;margin-block-end:2rem;position:relative}}.cds-custom--side-nav__header-divider:after{background:var(--cds-border-subtle);block-size:.0625rem;content:\"\";inline-size:calc(100% - 32px);inset-block-end:-1rem;inset-inline-start:1rem;position:absolute}.cds-custom--side-nav a.cds-custom--header__menu-item{color:var(--cds-text-secondary,#525252);justify-content:space-between;white-space:nowrap}.cds-custom--side-nav a.cds-custom--header__menu-item[aria-expanded=true]{background-color:transparent}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu{background-color:transparent;box-shadow:none;inline-size:100%;inset-block-end:inherit;padding:0;transform:none}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu li{inline-size:100%}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu a.cds-custom--header__menu-item{font-weight:400;padding-inline-start:4.25rem}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu a.cds-custom--header__menu-item:hover{background-color:var(--cds-background-hover,hsla(0,0%,55%,.12));color:var(--cds-text-primary,#161616)}.cds-custom--side-nav .cds-custom--header__menu-title[aria-expanded=true]+.cds-custom--header__menu a.cds-custom--header__menu-item--current:hover{background-color:var(--cds-layer-selected-hover)}.cds-custom--side-nav .cds-custom--side-nav__header-navigation .cds-custom--header__menu-item--current:after,.cds-custom--side-nav .cds-custom--side-nav__header-navigation a.cds-custom--header__menu-item[aria-current=page]:after,.cds-custom--side-nav :host(cds-custom-header-side-nav-items) .cds-custom--header__menu-item--current:after,.cds-custom--side-nav :host(cds-custom-header-side-nav-items) a.cds-custom--header__menu-item[aria-current=page]:after{block-size:calc(100% + 4px);inline-size:3px}.cds-custom--side-nav .cds-custom--header__menu a.cds-custom--header__menu-item{block-size:inherit}.cds-custom--side-nav .cds-custom--header__menu-arrow,.cds-custom--side-nav a.cds-custom--header__menu-item:focus .cds-custom--header__menu-arrow,.cds-custom--side-nav a.cds-custom--header__menu-item:hover .cds-custom--header__menu-arrow{fill:var(--cds-icon-secondary,#525252)}:host(cds-custom-side-nav[expanded]) ::slotted(cds-custom-side-nav-items){overflow-y:auto}:host(cds-custom-side-nav-link){block-size:auto;display:block;inline-size:auto;outline:none}:host(cds-custom-side-nav-link) .cds-custom--side-nav__icon{color:var(--cds-text-primary,#161616)}:host(cds-custom-side-nav-link) .cds-custom--side-nav__icon[hidden]{display:none}:host(cds-custom-side-nav-divider){display:block}:host(cds-custom-aichat-history-panel-menu),:host(cds-custom-side-nav-menu){display:block}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__icon[hidden],:host(cds-custom-side-nav-menu) .cds-custom--side-nav__icon[hidden]{display:none}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__menu,:host(cds-custom-side-nav-menu) .cds-custom--side-nav__menu{margin:0;padding:0}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__submenu[aria-expanded=true]+.cds-custom--side-nav__menu,:host(cds-custom-side-nav-menu) .cds-custom--side-nav__submenu[aria-expanded=true]+.cds-custom--side-nav__menu{max-block-size:none}:host(cds-custom-side-nav-menu[active]){color:var(--cds-text-primary,#161616);position:relative}:host(cds-custom-side-nav-menu[active]):before{background-color:var(--cds-border-interactive,#0f62fe);content:\"\";inline-size:.25rem;inset-block:0;inset-inline-start:0;position:absolute}:host(cds-custom-side-nav-menu[active][expanded]){background-color:inherit;color:inherit;position:inherit}:host(cds-custom-side-nav-menu[active][expanded]):before{content:none}:host(cds-custom-aichat-history-panel-item),:host(cds-custom-aichat-history-search-item),:host(cds-custom-side-nav-menu-item){block-size:auto;display:block;inline-size:auto;outline:none}:host(cds-custom-aichat-history-panel-item) a.cds-custom--side-nav__link,:host(cds-custom-aichat-history-search-item) a.cds-custom--side-nav__link,:host(cds-custom-side-nav-menu-item) a.cds-custom--side-nav__link{block-size:2rem;font-weight:400;min-block-size:2rem;padding-inline-start:2rem}:host(cds-custom-side-nav-menu-item[parent-has-icon]) a.cds-custom--side-nav__link{padding-inline-start:4.5rem}:host(cds-custom-aichat-history-panel-item) .cds-custom--side-nav__link:hover,:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__submenu:hover,:host(cds-custom-aichat-history-search-item) .cds-custom--side-nav__link:hover,:host(cds-custom-side-nav-item) .cds-custom--side-nav__link:hover,:host(cds-custom-side-nav-menu) .cds-custom--side-nav__submenu:hover,:host(cds-custom-side-nav-menu-item) .cds-custom--side-nav__link:hover{background-color:var(--cds-background-hover,hsla(0,0%,55%,.12));color:var(--cds-text-primary,#161616)}:host(cds-custom-aichat-history-shell){background:var(--cds-chat-header-background,#fff);block-size:100%;border:var(--history-shell-border,solid .0625rem var(--cds-border-subtle-00,#e0e0e0));border-end-end-radius:var(--cds-aichat-border-radius-end-end,0);border-end-start-radius:var(--cds-aichat-border-radius-end-start,0);border-start-end-radius:var(--cds-aichat-border-radius-start-end,0);border-start-start-radius:var(--cds-aichat-border-radius-start-start,0);display:flex;flex-direction:column;inline-size:100%;position:relative;z-index:1}:host(cds-custom-aichat-history-header){align-items:center;border-block-end:.0625rem solid var(--cds-border-subtle-00,#e0e0e0);display:flex;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);font-weight:600;inline-size:100%;justify-content:space-between;letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);letter-spacing:.1px;line-height:var(--cds-body-compact-01-line-height,1.28572);line-height:1.25rem;min-block-size:2.5rem}:host(cds-custom-aichat-history-header) .cds-custom-aichat--history-header__close-button{padding-inline-end:.125rem}:host(cds-custom-aichat-history-header) .cds-custom-aichat--history-header__title{inline-size:100%;margin-inline-start:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(cds-custom-aichat-history-header[show-close-action]) .cds-custom-aichat--history-header__title{margin-inline-start:0}:host(cds-custom-aichat-history-toolbar){display:flex}:host(cds-custom-aichat-history-toolbar) cds-custom-search::part(input){background-color:var(--cds-chat-header-background,#fff);border-block-end:.0625rem solid var(--cds-border-subtle-00,#e0e0e0)}:host(cds-custom-aichat-history-toolbar) cds-custom-search::part(close-button):before{content:none}:host(cds-custom-aichat-history-toolbar[search-off]){border-block-end:.0625rem solid var(--cds-border-subtle-00,#e0e0e0);justify-content:flex-end}:host(cds-custom-aichat-history-content){display:flex;flex:1;flex-direction:column;overflow-y:auto}:host(cds-custom-aichat-history-content) .cds-custom-aichat--history-content__results-count{display:block;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);padding:.75rem 0 .25rem .75rem}:host(cds-custom-aichat-history-loading){overflow:hidden;padding:1.5rem}:host(cds-custom-aichat-history-loading) cds-custom-skeleton-text{padding:1.5rem 0}:host(cds-custom-aichat-history-loading) .cds-custom-aichat--history-loading__results{border-block-end:1px solid var(--cds-border-subtle);margin-block-end:.75rem}:host(cds-custom-aichat-history-loading) .cds-custom-aichat--history-loading__results cds-custom-skeleton-text{padding:0 0 .75rem}:host(cds-custom-aichat-history-panel){flex:1}:host(cds-custom-aichat-history-panel) .cds-custom--side-nav{background-color:transparent;block-size:100%;inline-size:100%;max-inline-size:100%;position:relative}:host(cds-custom-aichat-history-panel-items){padding:0;position:relative}:host(cds-custom-aichat-history-panel-menu){padding-block-start:.5rem}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__submenu{padding:0 1rem 0 .75rem}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__submenu-title{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);padding-inline-start:.25rem}:host(cds-custom-aichat-history-panel-menu) .cds-custom--side-nav__icon:not(.cds-custom--side-nav__submenu-chevron){margin-inline-end:.5rem}:host(cds-custom-aichat-history-panel-item),:host(cds-custom-aichat-history-search-item){position:relative}:host(cds-custom-aichat-history-panel-item) .cds-custom--side-nav__link,:host(cds-custom-aichat-history-search-item) .cds-custom--side-nav__link{align-items:center;background-color:transparent;block-size:2.5rem;border:none;cursor:pointer;display:flex;font-family:inherit;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);inline-size:100%;justify-content:space-between;letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);outline:2px solid transparent;outline-offset:-2px;padding-inline-start:2.5rem;position:relative;text-decoration:none}:host(cds-custom-aichat-history-panel-item) button.cds-custom--side-nav__link:focus,:host(cds-custom-aichat-history-search-item) button.cds-custom--side-nav__link:focus{background-color:var(--cds-background-hover,hsla(0,0%,55%,.12));outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}:host(cds-custom-aichat-history-panel-item) .cds-custom--side-nav__link-text,:host(cds-custom-aichat-history-search-item) .cds-custom--side-nav__link-text{color:var(--cds-text-primary,#161616);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(cds-custom-aichat-history-panel-item) .cds-custom-aichat--overflow-menu__icon,:host(cds-custom-aichat-history-search-item) .cds-custom-aichat--overflow-menu__icon{color:var(--cds-icon-primary,#161616)}:host(cds-custom-aichat-history-panel-item[rename]){align-items:center;block-size:2.5rem;display:flex}:host(cds-custom-aichat-history-panel-item[selected]) button.cds-custom--side-nav__link{background-color:var(--cds-layer-selected)}:host(cds-custom-aichat-history-panel-item[selected]) button.cds-custom--side-nav__link:before{background-color:var(--cds-border-interactive,#0f62fe);content:\"\";inline-size:3px;inset-block:0;inset-inline-start:0;position:absolute}:host(cds-custom-aichat-history-panel-item-input){inline-size:100%;padding:0 1.5rem}:host(cds-custom-aichat-history-panel-item-input) .cds-custom-aichat--history-panel-item--rename__input{align-items:center;block-size:2rem;display:flex;inline-size:100%;justify-content:space-between;outline:.125rem solid var(--cds-focus,#0f62fe)}:host(cds-custom-aichat-history-panel-item-input) input{background-color:transparent;border:none;color:var(--cds-text-primary,#161616);flex-grow:2;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);overflow:hidden;padding-inline-start:.5rem;text-overflow:ellipsis;white-space:nowrap}:host(cds-custom-aichat-history-panel-item-input) input:focus{outline:none}:host(cds-custom-aichat-history-search-item) button.cds-custom--side-nav__link{align-items:flex-start;block-size:4rem;flex-direction:column;justify-content:center;padding-inline-end:1rem}:host(cds-custom-aichat-history-search-item) .cds-custom--side-nav__link-text{inline-size:100%;text-align:start}:host(cds-custom-aichat-history-search-item) .cds-custom--side-nav__link-subtitle{color:var(--cds-text-secondary,#525252);font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);padding-block-start:.125rem}:host(cds-custom-aichat-history-search-item[disabled]) button.cds-custom--side-nav__link{background-color:transparent;cursor:default;outline:none}cds-custom-overflow-menu{visibility:hidden}:host(cds-custom-aichat-history-panel-item[selected][parent-menu-expanded]) cds-custom-overflow-menu{visibility:visible}:host(cds-custom-aichat-history-panel-item) cds-custom-overflow-menu[open],:host(cds-custom-aichat-history-panel-item:focus) cds-custom-overflow-menu,:host(cds-custom-aichat-history-panel-item:focus-within) cds-custom-overflow-menu,:host(cds-custom-aichat-history-panel-item:hover) cds-custom-overflow-menu{visibility:visible}:host(cds-custom-aichat-history-panel-item[show-actions]) cds-custom-overflow-menu{visibility:visible}:host(cds-custom-aichat-history-panel-item[parent-has-icon]) button.cds-custom-aichat--side-nav__link{padding-inline-start:4.5rem}:host(cds-custom-aichat-history-delete-panel){display:flex;flex-direction:column;inset:0;justify-content:center;padding:2rem;position:absolute;z-index:9999}:host(cds-custom-aichat-history-delete-panel):before{background:var(--cds-background,#fff);border-radius:var(--cds-aichat-border-radius-start-start,0) var(--cds-aichat-border-radius-start-end,0) var(--cds-aichat-border-radius-end-end,0) var(--cds-aichat-border-radius-end-start,0);content:\"\";inset:0;opacity:.95;position:absolute;z-index:-1}:host(cds-custom-aichat-history-delete-panel) .cds-custom-aichat--history-delete-panel__content{position:relative;z-index:1}:host(cds-custom-aichat-history-delete-panel) h1{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4);margin:0 0 .5rem}:host(cds-custom-aichat-history-delete-panel) span{font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}:host(cds-custom-aichat-history-delete-panel) .cds-custom-aichat--history-delete-panel__actions{display:flex;gap:.5rem;padding-block-start:1.5rem}:host(cds-custom-aichat-history-delete-panel) .cds-custom-aichat--history-delete-panel__actions cds-custom-aichat-button{flex:1}"]);
|
|
11
11
|
|
|
12
12
|
export { styles as default };
|
|
13
13
|
//# sourceMappingURL=chat-history.scss.js.map
|
|
@@ -64,6 +64,11 @@ declare class CDSAIChatHistoryPanelItem extends CDSAIChatHistoryPanelItem_base {
|
|
|
64
64
|
* Can be set directly on the item or inherited from the parent panel's `show-actions` attribute.
|
|
65
65
|
*/
|
|
66
66
|
showActions: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* `true` if the parent menu is expanded.
|
|
69
|
+
* This is automatically set based on the parent history-panel-menu's expanded attribute.
|
|
70
|
+
*/
|
|
71
|
+
parentMenuExpanded: boolean;
|
|
67
72
|
input: HTMLElement;
|
|
68
73
|
overflowMenu: HTMLElement;
|
|
69
74
|
overflowMenuBody: HTMLElement;
|
|
@@ -76,6 +81,14 @@ declare class CDSAIChatHistoryPanelItem extends CDSAIChatHistoryPanelItem_base {
|
|
|
76
81
|
* MutationObserver to watch for changes to parent panel's always-show-actions attribute
|
|
77
82
|
*/
|
|
78
83
|
private _parentObserver?;
|
|
84
|
+
/**
|
|
85
|
+
* Event listener for parent menu toggle events
|
|
86
|
+
*/
|
|
87
|
+
private _parentMenuToggleListener?;
|
|
88
|
+
/**
|
|
89
|
+
* Reference to parent menu element
|
|
90
|
+
*/
|
|
91
|
+
private _parentMenu?;
|
|
79
92
|
/**
|
|
80
93
|
*
|
|
81
94
|
* The current cds-custom-overflow-menu doesn't support opening the menu body in different
|
|
@@ -106,6 +119,7 @@ declare class CDSAIChatHistoryPanelItem extends CDSAIChatHistoryPanelItem_base {
|
|
|
106
119
|
private _handleKeyDown;
|
|
107
120
|
connectedCallback(): void;
|
|
108
121
|
disconnectedCallback(): void;
|
|
122
|
+
firstUpdated(): void;
|
|
109
123
|
updated(changedProperties: Map<string, any>): void;
|
|
110
124
|
render(): import("lit-html").TemplateResult<1>;
|
|
111
125
|
static styles: any;
|
|
@@ -63,6 +63,11 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
63
63
|
* Can be set directly on the item or inherited from the parent panel's `show-actions` attribute.
|
|
64
64
|
*/
|
|
65
65
|
this.showActions = false;
|
|
66
|
+
/**
|
|
67
|
+
* `true` if the parent menu is expanded.
|
|
68
|
+
* This is automatically set based on the parent history-panel-menu's expanded attribute.
|
|
69
|
+
*/
|
|
70
|
+
this.parentMenuExpanded = true;
|
|
66
71
|
this._overflowMenuBodyFlippedClass = `${prefix}--history-overflow-menu-body--flipped`;
|
|
67
72
|
this._overflowMenuBodyFlippedSelector = `cds-custom-overflow-menu-body.${this._overflowMenuBodyFlippedClass}`;
|
|
68
73
|
/**
|
|
@@ -244,11 +249,33 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
244
249
|
attributeFilter: ["show-actions"],
|
|
245
250
|
});
|
|
246
251
|
}
|
|
252
|
+
// Track parent menu's expanded state
|
|
253
|
+
const parentMenu = this.closest(`${prefix}-history-panel-menu`);
|
|
254
|
+
if (parentMenu) {
|
|
255
|
+
this._parentMenu = parentMenu;
|
|
256
|
+
// Listen for toggle events from the parent menu
|
|
257
|
+
this._parentMenuToggleListener = ((event) => {
|
|
258
|
+
this.parentMenuExpanded = event.detail.expanded;
|
|
259
|
+
});
|
|
260
|
+
parentMenu.addEventListener("cds-custom-side-nav-menu-toggled", this._parentMenuToggleListener);
|
|
261
|
+
}
|
|
247
262
|
}
|
|
248
263
|
disconnectedCallback() {
|
|
249
264
|
this._overflowMenuBodyElement?.classList.remove(this._overflowMenuBodyFlippedClass);
|
|
250
265
|
super.disconnectedCallback();
|
|
251
266
|
this._parentObserver?.disconnect();
|
|
267
|
+
// Remove event listener from parent menu
|
|
268
|
+
if (this._parentMenu && this._parentMenuToggleListener) {
|
|
269
|
+
this._parentMenu.removeEventListener("cds-custom-side-nav-menu-toggled", this._parentMenuToggleListener);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
firstUpdated() {
|
|
273
|
+
if (this._parentMenu) {
|
|
274
|
+
const expandedValue = this._parentMenu.expanded;
|
|
275
|
+
if (expandedValue !== undefined) {
|
|
276
|
+
this.parentMenuExpanded = expandedValue;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
252
279
|
}
|
|
253
280
|
updated(changedProperties) {
|
|
254
281
|
super.updated(changedProperties);
|
|
@@ -328,6 +355,9 @@ __decorate([
|
|
|
328
355
|
__decorate([
|
|
329
356
|
property({ type: Boolean, reflect: true, attribute: "show-actions" })
|
|
330
357
|
], CDSAIChatHistoryPanelItem.prototype, "showActions", void 0);
|
|
358
|
+
__decorate([
|
|
359
|
+
property({ type: Boolean, reflect: true, attribute: "parent-menu-expanded" })
|
|
360
|
+
], CDSAIChatHistoryPanelItem.prototype, "parentMenuExpanded", void 0);
|
|
331
361
|
__decorate([
|
|
332
362
|
query(`${prefix}-history-panel-item-input`)
|
|
333
363
|
], CDSAIChatHistoryPanelItem.prototype, "input", void 0);
|