@carbon/ai-chat-components 1.13.0 → 1.14.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/custom-elements.json +1147 -462
  2. package/es/components/audio-player/src/audio-player.scss.js +1 -1
  3. package/es/components/audio-player/src/transcript.js +15 -0
  4. package/es/components/audio-player/src/transcript.js.map +1 -1
  5. package/es/components/card/src/card-footer.scss.js +1 -1
  6. package/es/components/card/src/card-steps.scss.js +1 -1
  7. package/es/components/card/src/card.scss.js +1 -1
  8. package/es/components/chat-button/src/chat-button.scss.js +1 -1
  9. package/es/components/chat-history/src/chat-history.scss.js +1 -1
  10. package/es/components/chat-history/src/history-header.js +1 -0
  11. package/es/components/chat-history/src/history-header.js.map +1 -1
  12. package/es/components/chat-history/src/history-toolbar.js +4 -1
  13. package/es/components/chat-history/src/history-toolbar.js.map +1 -1
  14. package/es/components/chat-shell/src/shell.scss.js +1 -1
  15. package/es/components/code-snippet/src/code-snippet.d.ts +3 -2
  16. package/es/components/code-snippet/src/code-snippet.js +4 -3
  17. package/es/components/code-snippet/src/code-snippet.js.map +1 -1
  18. package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
  19. package/es/components/feedback/src/feedback.js +17 -3
  20. package/es/components/feedback/src/feedback.js.map +1 -1
  21. package/es/components/file-uploads/src/file-upload-item.scss.js +1 -1
  22. package/es/components/file-uploads/src/file-uploads.scss.js +1 -1
  23. package/es/components/launcher/src/launcher.scss.js +1 -1
  24. package/es/components/markdown/__tests__/inline-selection-fixture.d.ts +13 -0
  25. package/es/components/markdown/index.d.ts +2 -0
  26. package/es/components/markdown/index.js +3 -0
  27. package/es/components/markdown/index.js.map +1 -1
  28. package/es/components/markdown/src/inline-markdown.d.ts +41 -0
  29. package/es/components/markdown/src/inline-markdown.js +92 -0
  30. package/es/components/markdown/src/inline-markdown.js.map +1 -0
  31. package/es/components/markdown/src/inline-markdown.scss.js +13 -0
  32. package/es/components/markdown/src/inline-markdown.scss.js.map +1 -0
  33. package/es/components/markdown/src/inline-run-projection.scss.js +13 -0
  34. package/es/components/markdown/src/inline-run-projection.scss.js.map +1 -0
  35. package/es/components/markdown/src/markdown-renderer-types.d.ts +132 -0
  36. package/es/components/markdown/src/markdown-renderer.js +131 -25
  37. package/es/components/markdown/src/markdown-renderer.js.map +1 -1
  38. package/es/components/markdown/src/markdown.js +1 -0
  39. package/es/components/markdown/src/markdown.js.map +1 -1
  40. package/es/components/markdown/src/markdown.scss.js +1 -1
  41. package/es/components/markdown/src/utils/inline-run-projection.d.ts +15 -0
  42. package/es/components/markdown/src/utils/inline-run-projection.js +196 -0
  43. package/es/components/markdown/src/utils/inline-run-projection.js.map +1 -0
  44. package/es/components/markdown/src/utils/inline-validation.d.ts +13 -0
  45. package/es/components/markdown/src/utils/inline-validation.js +97 -0
  46. package/es/components/markdown/src/utils/inline-validation.js.map +1 -0
  47. package/es/components/markdown/src/utils/plugin-fallback.js +20 -13
  48. package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -1
  49. package/es/components/markdown/src/utils/plugin-host-container.d.ts +5 -6
  50. package/es/components/markdown/src/utils/plugin-host-container.js.map +1 -1
  51. package/es/components/messages-shell/index.d.ts +11 -0
  52. package/es/components/messages-shell/index.js +9 -0
  53. package/es/components/messages-shell/index.js.map +1 -0
  54. package/es/components/messages-shell/src/messages-shell.d.ts +57 -0
  55. package/es/components/messages-shell/src/messages-shell.js +141 -0
  56. package/es/components/messages-shell/src/messages-shell.js.map +1 -0
  57. package/es/components/messages-shell/src/messages-shell.scss.js +13 -0
  58. package/es/components/messages-shell/src/messages-shell.scss.js.map +1 -0
  59. package/es/components/processing/src/processing.scss.js +1 -1
  60. package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +26 -9
  61. package/es/components/prompt-line/autocomplete/src/autocomplete.js +116 -107
  62. package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -1
  63. package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js +1 -1
  64. package/es/components/prompt-line/src/autocomplete-controller-element.js +13 -1
  65. package/es/components/prompt-line/src/autocomplete-controller-element.js.map +1 -1
  66. package/es/components/prompt-line/src/autocomplete-controller.js +9 -2
  67. package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -1
  68. package/es/components/prompt-line/src/prompt-line-controller.d.ts +7 -0
  69. package/es/components/prompt-line/src/prompt-line-rich-runtime.js +17 -0
  70. package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
  71. package/es/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
  72. package/es/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +1 -0
  73. package/es/components/prompt-line/src/prompt-line-textarea-runtime.js +3 -0
  74. package/es/components/prompt-line/src/prompt-line-textarea-runtime.js.map +1 -1
  75. package/es/components/prompt-line/src/prompt-line.d.ts +7 -0
  76. package/es/components/prompt-line/src/prompt-line.js +9 -0
  77. package/es/components/prompt-line/src/prompt-line.js.map +1 -1
  78. package/es/components/prompt-line/src/send-control.scss.js +1 -1
  79. package/es/components/prompt-line/src/stop-streaming-button.scss.js +1 -1
  80. package/es/components/prompt-line/src/tiptap/carbon-mention.js +43 -21
  81. package/es/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -1
  82. package/es/components/prompt-line/src/tiptap/plain-text-paste.js +8 -3
  83. package/es/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -1
  84. package/es/components/prompt-line/src/tiptap/strip-presentation-fields.d.ts +3 -3
  85. package/es/components/prompt-line/src/tiptap/strip-presentation-fields.js.map +1 -1
  86. package/es/components/prompt-line/src/tiptap/types.d.ts +27 -11
  87. package/es/components/reasoning-steps/src/reasoning-step.d.ts +3 -3
  88. package/es/components/reasoning-steps/src/reasoning-step.js +4 -4
  89. package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  90. package/es/components/reasoning-steps/src/reasoning-step.scss.js +1 -1
  91. package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +1 -1
  92. package/es/components/reasoning-steps/src/reasoning-steps.d.ts +5 -4
  93. package/es/components/reasoning-steps/src/reasoning-steps.js +5 -4
  94. package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  95. package/es/components/truncated-text/src/truncated-text.scss.js +1 -1
  96. package/es/components/video-player/src/video-player.scss.js +1 -1
  97. package/es/globals/scss/common.scss.js +1 -1
  98. package/es/react/hooks/useChatAutocomplete.js +7 -1
  99. package/es/react/hooks/useChatAutocomplete.js.map +1 -1
  100. package/es/react/messages-shell.d.ts +3 -0
  101. package/es/react/messages-shell.js +32 -0
  102. package/es/react/messages-shell.js.map +1 -0
  103. package/es-custom/components/audio-player/src/audio-player.scss.js +1 -1
  104. package/es-custom/components/audio-player/src/transcript.js +15 -0
  105. package/es-custom/components/audio-player/src/transcript.js.map +1 -1
  106. package/es-custom/components/card/src/card-footer.scss.js +1 -1
  107. package/es-custom/components/card/src/card-steps.scss.js +1 -1
  108. package/es-custom/components/card/src/card.scss.js +1 -1
  109. package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
  110. package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
  111. package/es-custom/components/chat-history/src/history-header.js +1 -0
  112. package/es-custom/components/chat-history/src/history-header.js.map +1 -1
  113. package/es-custom/components/chat-history/src/history-toolbar.js +4 -1
  114. package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
  115. package/es-custom/components/chat-shell/src/shell.scss.js +1 -1
  116. package/es-custom/components/code-snippet/src/code-snippet.d.ts +3 -2
  117. package/es-custom/components/code-snippet/src/code-snippet.js +4 -3
  118. package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
  119. package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
  120. package/es-custom/components/feedback/src/feedback.js +17 -3
  121. package/es-custom/components/feedback/src/feedback.js.map +1 -1
  122. package/es-custom/components/file-uploads/src/file-upload-item.scss.js +1 -1
  123. package/es-custom/components/file-uploads/src/file-uploads.scss.js +1 -1
  124. package/es-custom/components/launcher/src/launcher.scss.js +1 -1
  125. package/es-custom/components/markdown/__tests__/inline-selection-fixture.d.ts +13 -0
  126. package/es-custom/components/markdown/index.d.ts +2 -0
  127. package/es-custom/components/markdown/index.js +3 -0
  128. package/es-custom/components/markdown/index.js.map +1 -1
  129. package/es-custom/components/markdown/src/inline-markdown.d.ts +41 -0
  130. package/es-custom/components/markdown/src/inline-markdown.js +92 -0
  131. package/es-custom/components/markdown/src/inline-markdown.js.map +1 -0
  132. package/es-custom/components/markdown/src/inline-markdown.scss.js +13 -0
  133. package/es-custom/components/markdown/src/inline-markdown.scss.js.map +1 -0
  134. package/es-custom/components/markdown/src/inline-run-projection.scss.js +13 -0
  135. package/es-custom/components/markdown/src/inline-run-projection.scss.js.map +1 -0
  136. package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +132 -0
  137. package/es-custom/components/markdown/src/markdown-renderer.js +131 -25
  138. package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
  139. package/es-custom/components/markdown/src/markdown.js +1 -0
  140. package/es-custom/components/markdown/src/markdown.js.map +1 -1
  141. package/es-custom/components/markdown/src/markdown.scss.js +1 -1
  142. package/es-custom/components/markdown/src/utils/inline-run-projection.d.ts +15 -0
  143. package/es-custom/components/markdown/src/utils/inline-run-projection.js +196 -0
  144. package/es-custom/components/markdown/src/utils/inline-run-projection.js.map +1 -0
  145. package/es-custom/components/markdown/src/utils/inline-validation.d.ts +13 -0
  146. package/es-custom/components/markdown/src/utils/inline-validation.js +97 -0
  147. package/es-custom/components/markdown/src/utils/inline-validation.js.map +1 -0
  148. package/es-custom/components/markdown/src/utils/plugin-fallback.js +20 -13
  149. package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +1 -1
  150. package/es-custom/components/markdown/src/utils/plugin-host-container.d.ts +5 -6
  151. package/es-custom/components/markdown/src/utils/plugin-host-container.js.map +1 -1
  152. package/es-custom/components/messages-shell/index.d.ts +11 -0
  153. package/es-custom/components/messages-shell/index.js +9 -0
  154. package/es-custom/components/messages-shell/index.js.map +1 -0
  155. package/es-custom/components/messages-shell/src/messages-shell.d.ts +57 -0
  156. package/es-custom/components/messages-shell/src/messages-shell.js +141 -0
  157. package/es-custom/components/messages-shell/src/messages-shell.js.map +1 -0
  158. package/es-custom/components/messages-shell/src/messages-shell.scss.js +13 -0
  159. package/es-custom/components/messages-shell/src/messages-shell.scss.js.map +1 -0
  160. package/es-custom/components/processing/src/processing.scss.js +1 -1
  161. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +26 -9
  162. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +116 -107
  163. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -1
  164. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js +1 -1
  165. package/es-custom/components/prompt-line/src/autocomplete-controller-element.js +13 -1
  166. package/es-custom/components/prompt-line/src/autocomplete-controller-element.js.map +1 -1
  167. package/es-custom/components/prompt-line/src/autocomplete-controller.js +9 -2
  168. package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -1
  169. package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +7 -0
  170. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +17 -0
  171. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
  172. package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
  173. package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +1 -0
  174. package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js +3 -0
  175. package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js.map +1 -1
  176. package/es-custom/components/prompt-line/src/prompt-line.d.ts +7 -0
  177. package/es-custom/components/prompt-line/src/prompt-line.js +9 -0
  178. package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -1
  179. package/es-custom/components/prompt-line/src/send-control.scss.js +1 -1
  180. package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js +1 -1
  181. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +43 -21
  182. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -1
  183. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +8 -3
  184. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -1
  185. package/es-custom/components/prompt-line/src/tiptap/strip-presentation-fields.d.ts +3 -3
  186. package/es-custom/components/prompt-line/src/tiptap/strip-presentation-fields.js.map +1 -1
  187. package/es-custom/components/prompt-line/src/tiptap/types.d.ts +27 -11
  188. package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +3 -3
  189. package/es-custom/components/reasoning-steps/src/reasoning-step.js +4 -4
  190. package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  191. package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js +1 -1
  192. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +1 -1
  193. package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +5 -4
  194. package/es-custom/components/reasoning-steps/src/reasoning-steps.js +5 -4
  195. package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  196. package/es-custom/components/truncated-text/src/truncated-text.scss.js +1 -1
  197. package/es-custom/components/video-player/src/video-player.scss.js +1 -1
  198. package/es-custom/globals/scss/common.scss.js +1 -1
  199. package/es-custom/react/hooks/useChatAutocomplete.js +7 -1
  200. package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -1
  201. package/es-custom/react/messages-shell.d.ts +3 -0
  202. package/es-custom/react/messages-shell.js +32 -0
  203. package/es-custom/react/messages-shell.js.map +1 -0
  204. package/package.json +6 -6
  205. package/scss/_markdown-inline.scss +138 -0
  206. package/telemetry.yml +4 -0
@@ -1 +1 @@
1
- {"version":3,"file":"code-snippet.js","sources":["../../../../src/components/code-snippet/src/code-snippet.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { LitElement, html, nothing } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { createRef, ref } from 'lit/directives/ref.js';\nimport ChevronDown16 from '@carbon/icons/es/chevron--down/16.js';\nimport Copy16 from '@carbon/icons/es/copy/16.js';\nimport FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';\nimport { iconLoader } from '@carbon/web-components/es/globals/internal/icon-loader.js';\nimport { carbonElement } from '../../../globals/decorators/index.js';\nimport prefix from '../../../globals/settings.js';\nimport { observeResize } from './dom-utils.js';\nimport type {\n LanguageController,\n LanguageStateUpdate,\n} from './codemirror/language-controller.js';\nimport type { ContentSyncHandle } from './codemirror/content-sync.js';\nimport {\n buildContainerStyles,\n evaluateShowMoreButton,\n type ContainerStyleProperties,\n} from './layout-utils.js';\nimport {\n adoptOnRoot,\n setVarsForSelector,\n clearSelector,\n} from '../../shared/dynamic-css-var-sheet.js';\nimport { StreamingManager } from './streaming-manager.js';\nimport { defaultLineCountText, type LineCountFormatter } from './formatters.js';\nimport type { EditorView } from '@codemirror/view';\nimport { Compartment } from '@codemirror/state';\nimport { loadCodeMirrorRuntime } from './codemirror/codemirror-loader.js';\nimport '@carbon/web-components/es/components/skeleton-text/index.js';\nimport '../../toolbar/src/toolbar.js';\nimport type { Action } from '../../toolbar/src/toolbar.js';\n\ntype CodeMirrorRuntime = Awaited<ReturnType<typeof loadCodeMirrorRuntime>>;\n\nconst SNIPPET_INSTANCE_ATTR = 'data-cds-aichat-snippet-id';\nconst CLIPBOARD_HELPER_SELECTOR = '.cds-aichat--clipboard-helper';\nlet snippetInstanceCounter = 0;\nlet clipboardHelperRuleInstalled = false;\n\n/**\n * Install the off-screen clipboard-helper textarea rule on the shared\n * dynamic stylesheet so the legacy execCommand fallback in\n * `_handleCopyClick` doesn't need to write inline styles.\n */\nfunction ensureClipboardHelperRule(): void {\n if (clipboardHelperRuleInstalled) {\n return;\n }\n setVarsForSelector(CLIPBOARD_HELPER_SELECTOR, {\n position: 'fixed',\n left: '-999999px',\n top: '-999999px',\n opacity: '0',\n });\n clipboardHelperRuleInstalled = true;\n}\n\nimport commonStyles from '../../../globals/scss/common.scss?lit';\nimport styles from './code-snippet.scss?lit';\nimport '@carbon/web-components/es/components/button/button.js';\n\n/**\n * AI Chat code snippet orchestrator that keeps CodeMirror in sync with streamed slot content,\n * automatically detects and loads language highlighting, and optionally exposes an editable surface\n * with live language re-detection and change notifications.\n * @element cds-aichat-code-snippet\n * @slot fixed-actions - Actions that never overflow (passed to toolbar)\n * @slot decorator - Decorative elements like AI labels (passed to toolbar)\n */\n@carbonElement(`${prefix}-code-snippet`)\nclass CDSAIChatCodeSnippet extends FocusMixin(LitElement) {\n static styles = [commonStyles, styles];\n\n // Toolbar properties\n /** Array of actions that can overflow into a menu when space is limited. */\n @property({ type: Array, attribute: false })\n actions: Action[] = [];\n\n /** Enable overflow behavior for actions. */\n @property({ type: Boolean, attribute: 'overflow', reflect: true })\n overflow = false;\n\n // CodeMirror properties\n /**\n * Direct code source input.\n */\n @property({ type: String })\n code = '';\n\n /** Language used for syntax highlighting. */\n @property({ type: String, attribute: 'language' }) language = '';\n /** Whether the snippet should be editable. */\n @property({ type: Boolean, attribute: 'editable' }) editable = false;\n /** Whether to enable syntax highlighting. */\n @property({ type: Boolean, attribute: 'highlight' }) highlight = false;\n /** Fallback language to use when detection fails. */\n @property({ type: String, attribute: 'default-language' })\n defaultLanguage = 'javascript';\n /**\n * Show the detected language label in the snippet header. When `false`\n * (the default), only an explicit `language` attribute renders a label.\n */\n @property({ type: Boolean, attribute: 'detect-language' })\n detectLanguage = false;\n /** Text to copy when clicking the copy button. Defaults to slotted content. */\n @property({ attribute: 'copy-text' })\n copyText = '';\n\n /** Disable interactions on the snippet. */\n @property({ type: Boolean, reflect: true, attribute: 'disabled' })\n disabled = false;\n\n /** Hide the copy button. */\n @property({ type: Boolean, reflect: true, attribute: 'hide-copy-button' })\n hideCopyButton = false;\n\n /** Hide the header/toolbar completely. */\n @property({ type: Boolean, reflect: true, attribute: 'hide-header' })\n hideHeader = false;\n\n /** Hide the line-number gutter in the editor. */\n @property({ type: Boolean, reflect: true, attribute: 'hide-line-numbers' })\n hideLineNumbers = false;\n\n /**\n * Hide the fold gutter, removing the ability to collapse and expand code\n * blocks (the fold keyboard shortcuts are dropped along with the gutter).\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-fold' })\n hideFold = false;\n\n /**\n * Maximum rows to show when collapsed.\n * Set to 0 along with maxExpandedNumberOfRows to enable fill-container mode.\n */\n @property({ type: Number, attribute: 'max-collapsed-number-of-rows' })\n maxCollapsedNumberOfRows = 15;\n\n /**\n * Maximum rows to show when expanded (0 = unlimited).\n * Set to 0 along with maxCollapsedNumberOfRows to enable fill-container mode,\n * where the component fills its container's height with a scrollbar.\n */\n @property({ type: Number, attribute: 'max-expanded-number-of-rows' })\n maxExpandedNumberOfRows = 0;\n\n /** Minimum rows to show when collapsed. */\n @property({ type: Number, attribute: 'min-collapsed-number-of-rows' })\n minCollapsedNumberOfRows = 3;\n\n /** Minimum rows to show when expanded. */\n @property({ type: Number, attribute: 'min-expanded-number-of-rows' })\n minExpandedNumberOfRows = 16;\n\n /** Label for the “show less” control. */\n @property({ attribute: 'show-less-text' })\n showLessText = 'Show less';\n\n /** Label for the “show more” control. */\n @property({ attribute: 'show-more-text' })\n showMoreText = 'Show more';\n\n /** Tooltip label for the copy action. */\n @property({ attribute: 'copy-button-tooltip-content' })\n copyButtonTooltipContent = 'Copy to clipboard';\n\n /** Label for folding/collapsing code. */\n @property({ attribute: 'fold-collapse-label' })\n foldCollapseLabel = 'Collapse code block';\n\n /** Label for unfolding/expanding code. */\n @property({ attribute: 'fold-expand-label' })\n foldExpandLabel = 'Expand code block';\n\n /** Aria-label for the code editor when in read-only mode. */\n @property({ attribute: 'aria-label-readonly' })\n ariaLabelReadOnly = 'Code snippet';\n\n /** Aria-label for the code editor when in editable mode. */\n @property({ attribute: 'aria-label-editable' })\n ariaLabelEditable = 'Code editor';\n\n /**\n * The function used to format the line count text.\n * Receives the line count and returns a formatted string.\n * Defaults to `${count} lines` in en-US.\n */\n @property({ attribute: false })\n getLineCountText: LineCountFormatter = defaultLineCountText;\n\n /**\n * @internal\n */\n @property({ attribute: false })\n private _slottedContent = '';\n\n /**\n * @internal\n */\n @state()\n private _detectedLanguage: string | null = null;\n\n /**\n * @internal\n */\n @state()\n private _languageLabelLockedIn = false;\n\n /**\n * @internal\n */\n @state()\n private _lineCount: number | null = null;\n\n /**\n * @internal\n */\n @state()\n private editorView?: EditorView;\n\n /**\n * @internal\n */\n @state()\n private _isEditorLoading = true;\n\n /**\n * Set by `focusEditor()` when CodeMirror has not finished loading yet;\n * drained from `createEditor()` once the editor view exists.\n * @internal\n */\n private _focusOnEditorReady = false;\n\n /**\n * @internal\n */\n @state()\n private _expandedCode = false;\n\n /**\n * @internal\n */\n @state()\n private _shouldShowMoreLessBtn = false;\n\n /**\n * @internal\n */\n private _hObserveResize: { release(): null } | null = null;\n\n /**\n * @internal\n */\n private hasAdoptedLightDomCode = false;\n\n /**\n * @internal\n */\n private _rowHeightInPixels = 16;\n\n /**\n * @internal\n */\n private _isCreatingEditor = false;\n\n /**\n * @internal\n */\n private contentSlot = createRef<HTMLSlotElement>();\n\n /**\n * @internal\n */\n private editorContainer = createRef<HTMLDivElement>();\n\n /**\n * @internal\n */\n private snippetContainer = createRef<HTMLDivElement>();\n\n /**\n * @internal Per-instance identifier used to scope dynamic CSS rules for\n * this snippet's container via the shared dynamic stylesheet.\n */\n private readonly _snippetInstanceId = `snippet-${++snippetInstanceCounter}`;\n\n private get _snippetSelector(): string {\n return `[${SNIPPET_INSTANCE_ATTR}=\"${this._snippetInstanceId}\"]`;\n }\n\n /**\n * @internal\n */\n private languageCompartment: Compartment | null = null;\n\n /**\n * @internal\n */\n private readOnlyCompartment: Compartment | null = null;\n\n /**\n * @internal\n */\n private wrapCompartment: Compartment | null = null;\n\n /**\n * @internal\n */\n private contentAttributesCompartment: Compartment | null = null;\n\n /**\n * @internal\n */\n private contentSync?: ContentSyncHandle;\n\n /**\n * @internal\n */\n private languageController: LanguageController | null = null;\n\n /**\n * @internal\n */\n private streamingManager?: StreamingManager;\n\n /**\n * @internal\n */\n private codemirrorRuntime: CodeMirrorRuntime | null = null;\n\n /**\n * @internal\n */\n private codemirrorRuntimePromise: Promise<CodeMirrorRuntime> | null = null;\n\n /**\n * @internal\n */\n private _resizeObserver = new ResizeObserver(() => {\n // Use requestAnimationFrame to avoid ResizeObserver loop errors\n requestAnimationFrame(() => {\n this._checkShowMoreButton();\n });\n });\n\n /**\n * @internal\n * Ensures the one-time `document.fonts.ready` re-measure is scheduled only once,\n * even though `createEditor` may run repeatedly during streaming.\n */\n private _fontSettleScheduled = false;\n\n /**\n * @internal\n * Computed property to detect fill-container mode\n */\n private get _isFillMode(): boolean {\n return (\n this.maxCollapsedNumberOfRows === 0 && this.maxExpandedNumberOfRows === 0\n );\n }\n\n constructor() {\n super();\n this.streamingManager = new StreamingManager({\n getSlot: () => this.contentSlot.value ?? null,\n getHost: () => this,\n onContentUpdate: (content) => {\n const previous = this._slottedContent;\n // Only update from slot if code property is not set\n if (!this.code && content !== previous) {\n this._slottedContent = content;\n }\n },\n });\n }\n\n private adoptLightDomCode() {\n if (this.hasAdoptedLightDomCode || this.code) {\n return;\n }\n\n // Backward compatibility: treat static light-DOM text as initial code\n // when the explicit `code` property was not provided.\n const lightDomCode = this.textContent?.trim() ?? '';\n if (lightDomCode) {\n this.code = lightDomCode;\n }\n\n this.hasAdoptedLightDomCode = true;\n }\n\n private _applyLanguageState(update: LanguageStateUpdate) {\n if ('detectedLanguage' in update) {\n this._detectedLanguage = update.detectedLanguage ?? null;\n }\n\n if (update.lockLabel !== undefined) {\n this._languageLabelLockedIn = update.lockLabel;\n }\n }\n\n // Carbon methods\n /**\n * Copies the visible snippet so downstream chat experiences can share code without exposing the editor internals.\n */\n private async _handleCopyClick() {\n try {\n const textToCopy = this._slottedContent || this.copyText || '';\n\n // Try modern Clipboard API first (HTTPS only)\n if (navigator.clipboard && navigator.clipboard.writeText) {\n await navigator.clipboard.writeText(textToCopy);\n } else {\n // Fallback for HTTP or older browsers. The off-screen positioning is\n // applied via a class + dynamic stylesheet rule.\n ensureClipboardHelperRule();\n const textArea = document.createElement('textarea');\n textArea.value = textToCopy;\n textArea.className = 'cds-aichat--clipboard-helper';\n textArea.setAttribute('aria-hidden', 'true');\n textArea.setAttribute('tabindex', '-1');\n document.body.appendChild(textArea);\n textArea.select();\n document.execCommand('copy');\n document.body.removeChild(textArea);\n }\n } catch (error) {\n console.error('Failed to copy text:', error);\n }\n }\n\n /**\n * Toggles the expanded state so long snippets can collapse inside chat tiles while still offering full visibility on demand.\n */\n private _handleClickExpanded() {\n this._expandedCode = !this._expandedCode;\n }\n\n // CodeMirror methods\n\n private async ensureCodeMirrorRuntime(): Promise<boolean> {\n if (this.codemirrorRuntime && this.languageController) {\n return true;\n }\n\n if (typeof window === 'undefined') {\n return false;\n }\n\n if (!this.codemirrorRuntimePromise) {\n this._isEditorLoading = true;\n this.codemirrorRuntimePromise = loadCodeMirrorRuntime();\n }\n\n try {\n const runtime = await this.codemirrorRuntimePromise;\n if (!this.codemirrorRuntime) {\n this.codemirrorRuntime = runtime;\n this.languageCompartment = new runtime.Compartment();\n this.readOnlyCompartment = new runtime.Compartment();\n this.wrapCompartment = new runtime.Compartment();\n this.contentAttributesCompartment = new runtime.Compartment();\n this.languageController = new runtime.LanguageController({\n getLanguageAttribute: () => this.language,\n getContent: () => this._slottedContent,\n isHighlightEnabled: () => this.highlight,\n getEditorView: () => this.editorView,\n getLanguageCompartment: () => {\n if (!this.languageCompartment) {\n this.languageCompartment = new Compartment();\n }\n\n return this.languageCompartment;\n },\n isLanguageLabelLocked: () => this._languageLabelLockedIn,\n getDefaultLanguage: () => this.defaultLanguage,\n getDetectedLanguage: () => this._detectedLanguage,\n updateState: (update) => this._applyLanguageState(update),\n });\n this.requestUpdate();\n }\n return true;\n } catch (error) {\n console.error('Failed to load CodeMirror runtime', error);\n this._isEditorLoading = false;\n this.codemirrorRuntimePromise = null;\n return false;\n }\n }\n\n /**\n * Tears down the CodeMirror view when the component is destroyed to avoid leaking editors between chat messages.\n */\n private destroyEditor() {\n if (this.editorView) {\n this.editorView.destroy();\n this.editorView = undefined;\n }\n this.languageController?.reset();\n }\n\n /**\n * Synchronizes CodeMirror with the latest props and streamed slot content while minimizing unnecessary re-creation work and only appending diffs when possible.\n */\n private async updateEditor(changedProperties: Map<string, any>) {\n if (!this.editorContainer.value) {\n return;\n }\n\n const isReady = await this.ensureCodeMirrorRuntime();\n if (\n !isReady ||\n !this.codemirrorRuntime ||\n !this.languageController ||\n !this.languageCompartment ||\n !this.readOnlyCompartment\n ) {\n return;\n }\n\n const {\n createContentSync,\n applyLanguageSupport,\n updateReadOnlyConfiguration,\n updateContentAttributes,\n } = this.codemirrorRuntime;\n const languageController = this.languageController;\n const languageCompartment = this.languageCompartment;\n const readOnlyCompartment = this.readOnlyCompartment;\n const contentAttributesCompartment = this.contentAttributesCompartment;\n\n const needsRecreate =\n !this.editorView ||\n changedProperties.has('editable') ||\n changedProperties.has('hideLineNumbers') ||\n changedProperties.has('hideFold');\n\n if (needsRecreate) {\n // Prevent creating multiple editors simultaneously\n if (this._isCreatingEditor) {\n return;\n }\n this._isCreatingEditor = true;\n this.destroyEditor();\n await this.createEditor();\n this._isCreatingEditor = false;\n } else {\n if (changedProperties.has('_slottedContent')) {\n if (!this.contentSync) {\n this.contentSync = createContentSync({\n getEditorView: () => this.editorView,\n onAfterApply: () => {\n if (this.editorView) {\n this._lineCount = this.editorView.state.doc.lines;\n }\n this._checkShowMoreButton();\n },\n });\n }\n\n this.contentSync.update(this._slottedContent);\n await languageController.handleStreamingLanguageDetection();\n }\n\n if (\n changedProperties.has('language') ||\n changedProperties.has('highlight')\n ) {\n const languageSupport =\n await languageController.resolveLanguageSupport();\n applyLanguageSupport(\n this.editorView,\n languageCompartment,\n languageSupport\n );\n }\n\n if (changedProperties.has('disabled')) {\n updateReadOnlyConfiguration(this.editorView, readOnlyCompartment, {\n editable: this.editable,\n disabled: this.disabled,\n });\n }\n\n if (\n contentAttributesCompartment &&\n (changedProperties.has('_detectedLanguage') ||\n changedProperties.has('editable') ||\n changedProperties.has('ariaLabelReadOnly') ||\n changedProperties.has('ariaLabelEditable'))\n ) {\n updateContentAttributes(\n this.editorView,\n contentAttributesCompartment,\n this._getAriaLabel()\n );\n }\n }\n }\n\n /**\n * Builds the CodeMirror instance that powers the formatted snippet surface inside the chat response tile.\n */\n private async createEditor() {\n const container = this.editorContainer.value;\n const runtime = this.codemirrorRuntime;\n const languageController = this.languageController;\n const languageCompartment = this.languageCompartment;\n const readOnlyCompartment = this.readOnlyCompartment;\n const wrapCompartment = this.wrapCompartment;\n const contentAttributesCompartment = this.contentAttributesCompartment;\n\n if (\n !container ||\n !runtime ||\n !languageController ||\n !languageCompartment ||\n !readOnlyCompartment ||\n !wrapCompartment ||\n !contentAttributesCompartment\n ) {\n return;\n }\n\n this._isEditorLoading = true;\n\n const languageSupport = await languageController.resolveLanguageSupport();\n\n try {\n container.replaceChildren();\n this.editorView = runtime.createEditorView({\n container,\n doc: this._slottedContent,\n languageSupport,\n languageCompartment,\n readOnlyCompartment,\n wrapCompartment,\n contentAttributesCompartment,\n editable: this.editable,\n disabled: this.disabled,\n ariaLabel: this._getAriaLabel(),\n detectedLanguage: this._detectedLanguage,\n onDocChanged: ({ content, lineCount }) => {\n this._lineCount = lineCount;\n\n this.dispatchEvent(\n new CustomEvent('content-change', {\n detail: { content },\n bubbles: true,\n composed: true,\n })\n );\n\n if (this.editable) {\n languageController.detectLanguageForEditable(content);\n }\n },\n setupOptions: {\n foldCollapseLabel: this.foldCollapseLabel,\n foldExpandLabel: this.foldExpandLabel,\n hideLineNumbers: this.hideLineNumbers,\n hideFold: this.hideFold,\n },\n });\n } finally {\n this._isEditorLoading = false;\n }\n\n this._lineCount = this.editorView.state.doc.lines;\n\n // Check height after editor renders, then announce that this snippet's async\n // render has settled so a surrounding scroll manager can recalculate geometry.\n requestAnimationFrame(() => {\n this._checkShowMoreButton();\n this.emitRenderSettled();\n });\n\n if (this._focusOnEditorReady) {\n this._focusOnEditorReady = false;\n this.editorView.focus();\n }\n\n // IBM Plex Mono is a web font that can arrive after first paint and reflow the code,\n // changing height. Re-measure and re-announce once fonts are ready.\n this.scheduleFontSettle();\n\n languageController.handleStreamingLanguageDetection();\n }\n\n /**\n * Announces that this snippet's async render (CodeMirror init and/or font load) has\n * settled, so a host scroll manager can recalculate scroll geometry against the final\n * height. Composed + bubbling so it crosses the shadow boundary up to the message list.\n */\n private emitRenderSettled() {\n this.dispatchEvent(\n new CustomEvent('code-snippet-render-end', {\n bubbles: true,\n composed: true,\n })\n );\n }\n\n /**\n * IBM Plex Mono is delivered as a web font and can arrive after first paint, reflowing\n * the code. Once fonts are ready, re-measure and re-announce a settled render. Scheduled\n * at most once per element to avoid piling up handlers across streaming re-renders.\n */\n private scheduleFontSettle() {\n if (this._fontSettleScheduled || !document.fonts?.ready) {\n return;\n }\n this._fontSettleScheduled = true;\n document.fonts.ready.then(() => {\n if (!this.editorView) {\n return;\n }\n this._checkShowMoreButton();\n this.emitRenderSettled();\n });\n }\n\n /**\n * Generates the appropriate aria-label for the code editor based on language and editable state.\n */\n private _getAriaLabel(): string {\n const language = this._detectedLanguage;\n const editable = this.editable;\n\n if (editable) {\n return language\n ? this.ariaLabelEditable.replace('{language}', language)\n : this.ariaLabelEditable;\n } else {\n return language\n ? this.ariaLabelReadOnly.replace('{language}', language)\n : this.ariaLabelReadOnly;\n }\n }\n\n /**\n * Calculates the CSS custom properties for the snippet container based on expanded state and min/max row constraints.\n * Returned by reference for `_applyContainerStyles`, which writes them via the shared dynamic stylesheet\n * (see `dynamic-css-var-sheet`).\n */\n private _getContainerStyles(expandedCode: boolean): ContainerStyleProperties {\n return buildContainerStyles({\n expanded: expandedCode,\n maxCollapsed: this.maxCollapsedNumberOfRows,\n maxExpanded: this.maxExpandedNumberOfRows,\n minCollapsed: this.minCollapsedNumberOfRows,\n minExpanded: this.minExpandedNumberOfRows,\n rowHeight: this._rowHeightInPixels,\n });\n }\n\n /**\n * Applies CSS custom properties to the snippet container element via the\n * shared dynamic stylesheet. The container is tagged with a per-instance\n * data attribute so each snippet's rule is independent.\n */\n private _applyContainerStyles() {\n const container = this.snippetContainer.value;\n if (!container) {\n return;\n }\n\n container.setAttribute(SNIPPET_INSTANCE_ATTR, this._snippetInstanceId);\n adoptOnRoot(this.renderRoot as ShadowRoot);\n\n const properties = this._getContainerStyles(this._expandedCode);\n const declarations: Record<string, string> = {};\n for (const [property, value] of Object.entries(properties)) {\n if (value !== undefined) {\n declarations[property] = value;\n }\n }\n setVarsForSelector(this._snippetSelector, declarations);\n }\n\n /**\n * Shows or hides the expand button so the chat message can adapt to long snippets without overwhelming the layout.\n */\n private _checkShowMoreButton() {\n const { shouldShowButton, shouldCollapse } = evaluateShowMoreButton({\n shadowRoot: this.shadowRoot,\n rowHeight: this._rowHeightInPixels,\n expanded: this._expandedCode,\n maxCollapsed: this.maxCollapsedNumberOfRows,\n maxExpanded: this.maxExpandedNumberOfRows,\n minExpanded: this.minExpandedNumberOfRows,\n });\n\n if (this._shouldShowMoreLessBtn !== shouldShowButton) {\n this._shouldShowMoreLessBtn = shouldShowButton;\n }\n\n if (shouldCollapse) {\n this._expandedCode = false;\n }\n }\n\n private renderEditorFallback() {\n if (!this._isEditorLoading) {\n return null;\n }\n\n return html`<div\n class=\"${prefix}--snippet__editor-skeleton\"\n aria-hidden=\"true\">\n <cds-skeleton-text lines=\"4\"></cds-skeleton-text>\n </div>`;\n }\n\n /**\n * Focus the editor surface — the contenteditable that accepts text input.\n * Prefer this over `host.focus()`, which delegates via `delegatesFocus`\n * to the first sequentially-focusable child in the shadow tree\n * (`.cm-scroller`, focusable for accessibility but not editable). When\n * CodeMirror is still loading, the call is queued and forwarded once\n * the editor view is created. Useful right after inserting the snippet\n * into a contenteditable host (e.g. a Tiptap atom block) so the next\n * keystroke enters the editor instead of replacing the node.\n */\n focusEditor(): void {\n if (this.editorView) {\n this.editorView.focus();\n return;\n }\n this._focusOnEditorReady = true;\n void this.ensureCodeMirrorRuntime();\n }\n\n // Lifecycle methods\n /**\n * Wires up resize and content observers so the snippet reacts to streaming updates and layout changes as soon as it attaches.\n */\n connectedCallback() {\n super.connectedCallback();\n this.adoptLightDomCode();\n if (this._hObserveResize) {\n this._hObserveResize = this._hObserveResize.release();\n }\n this._hObserveResize = observeResize(this._resizeObserver, this);\n\n this.streamingManager?.reset(this._slottedContent);\n this.streamingManager?.connect();\n\n void this.ensureCodeMirrorRuntime();\n }\n\n /**\n * Hooks into the rendered slot once Lit has stamped the template so we can observe streaming updates.\n */\n protected firstUpdated() {\n this.streamingManager?.syncSlotObservers();\n // Apply initial container styles (CSP-compliant)\n this._applyContainerStyles();\n }\n\n /**\n * Ensures we capture any pre-rendered slot content before the initial paint, keeping the editor in sync from the first frame.\n */\n willUpdate(changedProperties: Map<string, any>) {\n if (changedProperties.has('code')) {\n // When code property changes, update internal content\n if (this.code) {\n this._slottedContent = this.code;\n }\n }\n\n this.streamingManager?.ensureInitialContent();\n\n // Update expanded-code attribute before render to avoid change-in-update warning\n if (this._expandedCode) {\n this.setAttribute('expanded-code', '');\n } else {\n this.removeAttribute('expanded-code');\n }\n }\n\n /**\n * Responds to slot churn caused by streaming tokens emitted from the chat pipeline, forcing a full rescan when the slot re-projects.\n */\n private _handleSlotChange() {\n this.streamingManager?.handleSlotChange();\n }\n\n /**\n * Cleans up observers, throttles, and the editor when the chat snippet unmounts.\n */\n disconnectedCallback() {\n super.disconnectedCallback();\n if (this._hObserveResize) {\n this._hObserveResize = this._hObserveResize.release();\n }\n // Cancel any pending throttled updates\n this.contentSync?.cancel();\n this.streamingManager?.dispose();\n this.languageController?.dispose();\n this.destroyEditor();\n clearSelector(this._snippetSelector);\n }\n\n /**\n * Drives incremental editor updates after Lit commits.\n */\n updated(changedProperties: Map<string, any>) {\n this.updateEditor(changedProperties);\n\n // Apply container styles when expanded state or row constraints change\n if (\n changedProperties.has('_expandedCode') ||\n changedProperties.has('maxCollapsedNumberOfRows') ||\n changedProperties.has('maxExpandedNumberOfRows') ||\n changedProperties.has('minCollapsedNumberOfRows') ||\n changedProperties.has('minExpandedNumberOfRows')\n ) {\n this._applyContainerStyles();\n }\n\n // Apply fill-mode class to host element\n if (this._isFillMode) {\n this.classList.add(`${prefix}--snippet-container--fill-mode`);\n } else {\n this.classList.remove(`${prefix}--snippet-container--fill-mode`);\n }\n }\n\n /**\n * Gets all actions including the copy button prepended if enabled.\n * @returns Array of actions for the toolbar\n */\n private _getToolbarActions(): Action[] {\n if (this.hideCopyButton) {\n return this.actions;\n }\n\n const copyAction: Action = {\n text: this.copyButtonTooltipContent,\n icon: Copy16,\n onClick: () => this._handleCopyClick(),\n };\n\n return [copyAction, ...this.actions];\n }\n\n /**\n * Renders the title content for the toolbar (language label and line count).\n * @returns Template result for title slot\n */\n private renderTitle() {\n // Show the language label when one is locked in and either the host\n // opted into `detectLanguage` or the `language` attribute is set\n // explicitly (explicit always renders its label regardless of the flag).\n const showLanguageLabel =\n !!this._detectedLanguage &&\n this._languageLabelLockedIn &&\n (this.detectLanguage || !!this.language);\n return html`\n <div slot=\"title\" data-rounded=\"top\" class=\"${prefix}--snippet__meta\">\n ${\n showLanguageLabel\n ? html`<div class=\"${prefix}--snippet__language\">\n ${this._detectedLanguage}\n </div>`\n : ''\n }\n ${\n showLanguageLabel && this._lineCount\n ? html`<div class=\"${prefix}--snippet__header-separator\">\n &mdash;\n </div>`\n : ''\n }\n ${\n this._lineCount\n ? html`<div class=\"${prefix}--snippet__linecount\">\n ${this.getLineCountText({ count: this._lineCount })}\n </div>`\n : ''\n }\n </div>\n `;\n }\n\n /**\n * Renders the CodeMirror host along with the controls that make the chat snippet interactive and accessible.\n */\n render() {\n const {\n disabled,\n showMoreText,\n showLessText,\n _expandedCode: expandedCode,\n _shouldShowMoreLessBtn: shouldShowMoreLessBtn,\n } = this;\n\n const expandCodeBtnText = expandedCode ? showLessText : showMoreText;\n\n const containerClasses = {\n [`${prefix}--snippet-container`]: true,\n [`${prefix}--snippet--codemirror`]: true,\n // Fill mode shows no expand affordance, so it is never a \"collapsed\"\n // state. Applying `--collapsed` here would clip with `overflow-y: hidden`\n // (it is defined later in the stylesheet and wins by source order),\n // defeating fill mode's `overflow-y: auto` scroll.\n [`${prefix}--snippet-container--collapsed`]:\n !expandedCode && !this._isFillMode,\n [`${prefix}--snippet-container--fill-mode`]: this._isFillMode,\n };\n\n return html`<div class=\"${prefix}--snippet\">\n ${\n !this.hideHeader\n ? html`\n <cds-aichat-toolbar\n class=\"${prefix}--snippet__header\"\n .actions=${this._getToolbarActions()}\n ?overflow=${this.overflow}>\n ${this.renderTitle()}\n <slot name=\"fixed-actions\" slot=\"fixed-actions\"></slot>\n <slot name=\"decorator\" slot=\"decorator\"></slot>\n </cds-aichat-toolbar>\n `\n : nothing\n }\n\n <div\n class=\"${classMap(containerClasses)}\"\n data-rounded=\"bottom\"\n ${\n this.editable\n ? `aria-label=\"${this.ariaLabelEditable}\" aria-readonly=\"false\" aria-multiline=\"true\"`\n : `aria-label=\"${this._slottedContent || 'code-snippet'}\"`\n }\n ${ref(this.snippetContainer)}>\n <div class=\"${prefix}--code-editor\" ${ref(this.editorContainer)}></div>\n ${this.renderEditorFallback()}\n </div>\n\n ${\n shouldShowMoreLessBtn\n ? html`\n <div\n class=\"${prefix}--snippet__footer\"\n data-rounded=\"bottom-right\">\n <cds-button\n kind=\"ghost\"\n size=\"sm\"\n button-class-name=\"${prefix}--snippet-btn--expand\"\n ?disabled=${disabled}\n @click=${() => this._handleClickExpanded()}>\n <span class=\"${prefix}--snippet-btn--text\">\n ${expandCodeBtnText}\n </span>\n ${iconLoader(ChevronDown16, {\n class: `${prefix}--icon-chevron--down ${prefix}--snippet__icon`,\n role: 'img',\n slot: 'icon',\n })}\n </cds-button>\n </div>\n `\n : nothing\n }\n <div class=\"${prefix}--visually-hidden\">\n <slot\n ${ref(this.contentSlot)}\n @slotchange=${this._handleSlotChange}></slot>\n </div>\n </div>`;\n }\n\n /**\n * @internal\n */\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cds-aichat-code-snippet': CDSAIChatCodeSnippet;\n }\n}\n\nexport { CDSAIChatCodeSnippet };\nexport default CDSAIChatCodeSnippet;\nexport type { Action } from '../../toolbar/src/toolbar.js';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAuCH,MAAM,qBAAqB,GAAG,4BAA4B;AAC1D,MAAM,yBAAyB,GAAG,+BAA+B;AACjE,IAAI,sBAAsB,GAAG,CAAC;AAC9B,IAAI,4BAA4B,GAAG,KAAK;AAExC;;;;AAIG;AACH,SAAS,yBAAyB,GAAA;IAChC,IAAI,4BAA4B,EAAE;QAChC;IACF;IACA,kBAAkB,CAAC,yBAAyB,EAAE;AAC5C,QAAA,QAAQ,EAAE,OAAO;AACjB,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,GAAG,EAAE,WAAW;AAChB,QAAA,OAAO,EAAE,GAAG;AACb,KAAA,CAAC;IACF,4BAA4B,GAAG,IAAI;AACrC;AAMA;;;;;;;AAOG;AAEH,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,UAAU,CAAC,UAAU,CAAC,CAAA;AAwNvD,IAAA,IAAY,gBAAgB,GAAA;AAC1B,QAAA,OAAO,IAAI,qBAAqB,CAAA,EAAA,EAAK,IAAI,CAAC,kBAAkB,IAAI;IAClE;AAgEA;;;AAGG;AACH,IAAA,IAAY,WAAW,GAAA;AACrB,QAAA,QACE,IAAI,CAAC,wBAAwB,KAAK,CAAC,IAAI,IAAI,CAAC,uBAAuB,KAAK,CAAC;IAE7E;AAEA,IAAA,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A,EAAA,wBAAA,EAAA,MAAA,CAAA;AA7KnC,oBAAoB,GAAA,UAAA,CAAA;AADzB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,aAAA,CAAe;AACjC,CAAA,EAAA,oBAAoB,CAo/BzB;AASD,6BAAe,oBAAoB;;"}
1
+ {"version":3,"file":"code-snippet.js","sources":["../../../../src/components/code-snippet/src/code-snippet.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { LitElement, html, nothing } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { createRef, ref } from 'lit/directives/ref.js';\nimport ChevronDown16 from '@carbon/icons/es/chevron--down/16.js';\nimport Copy16 from '@carbon/icons/es/copy/16.js';\nimport FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';\nimport { iconLoader } from '@carbon/web-components/es/globals/internal/icon-loader.js';\nimport { carbonElement } from '../../../globals/decorators/index.js';\nimport prefix from '../../../globals/settings.js';\nimport { observeResize } from './dom-utils.js';\nimport type {\n LanguageController,\n LanguageStateUpdate,\n} from './codemirror/language-controller.js';\nimport type { ContentSyncHandle } from './codemirror/content-sync.js';\nimport {\n buildContainerStyles,\n evaluateShowMoreButton,\n type ContainerStyleProperties,\n} from './layout-utils.js';\nimport {\n adoptOnRoot,\n setVarsForSelector,\n clearSelector,\n} from '../../shared/dynamic-css-var-sheet.js';\nimport { StreamingManager } from './streaming-manager.js';\nimport { defaultLineCountText, type LineCountFormatter } from './formatters.js';\nimport type { EditorView } from '@codemirror/view';\nimport { Compartment } from '@codemirror/state';\nimport { loadCodeMirrorRuntime } from './codemirror/codemirror-loader.js';\nimport '@carbon/web-components/es/components/skeleton-text/index.js';\nimport '../../toolbar/src/toolbar.js';\nimport type { Action } from '../../toolbar/src/toolbar.js';\n\ntype CodeMirrorRuntime = Awaited<ReturnType<typeof loadCodeMirrorRuntime>>;\n\nconst SNIPPET_INSTANCE_ATTR = 'data-cds-aichat-snippet-id';\nconst CLIPBOARD_HELPER_SELECTOR = '.cds-aichat--clipboard-helper';\nlet snippetInstanceCounter = 0;\nlet clipboardHelperRuleInstalled = false;\n\n/**\n * Install the off-screen clipboard-helper textarea rule on the shared\n * dynamic stylesheet so the legacy execCommand fallback in\n * `_handleCopyClick` doesn't need to write inline styles.\n */\nfunction ensureClipboardHelperRule(): void {\n if (clipboardHelperRuleInstalled) {\n return;\n }\n setVarsForSelector(CLIPBOARD_HELPER_SELECTOR, {\n position: 'fixed',\n left: '-999999px',\n top: '-999999px',\n opacity: '0',\n });\n clipboardHelperRuleInstalled = true;\n}\n\nimport commonStyles from '../../../globals/scss/common.scss?lit';\nimport styles from './code-snippet.scss?lit';\nimport '@carbon/web-components/es/components/button/button.js';\n\n/**\n * AI Chat code snippet orchestrator that keeps CodeMirror in sync with streamed slot content,\n * automatically detects and loads language highlighting, and optionally exposes an editable surface\n * with live language re-detection and change notifications.\n * @element cds-aichat-code-snippet\n * @slot fixed-actions - Actions that never overflow (passed to toolbar)\n * @slot decorator - Decorative elements like AI labels (passed to toolbar)\n */\n@carbonElement(`${prefix}-code-snippet`)\nclass CDSAIChatCodeSnippet extends FocusMixin(LitElement) {\n static styles = [commonStyles, styles];\n\n // Toolbar properties\n /** Array of actions that can overflow into a menu when space is limited. */\n @property({ type: Array, attribute: false })\n actions: Action[] = [];\n\n /** Enable overflow behavior for actions. */\n @property({ type: Boolean, attribute: 'overflow', reflect: true })\n overflow = false;\n\n // CodeMirror properties\n /**\n * Direct code source input.\n */\n @property({ type: String })\n code = '';\n\n /** Language used for syntax highlighting. */\n @property({ type: String, attribute: 'language' }) language = '';\n /** Whether the snippet should be editable. */\n @property({ type: Boolean, attribute: 'editable' }) editable = false;\n /** Whether to enable syntax highlighting. */\n @property({ type: Boolean, attribute: 'highlight' }) highlight = false;\n /** Fallback language to use when detection fails. */\n @property({ type: String, attribute: 'default-language' })\n defaultLanguage = 'javascript';\n /**\n * Show the detected language label in the snippet header. When `false`\n * (the default), only an explicit `language` attribute renders a label.\n */\n @property({ type: Boolean, attribute: 'detect-language' })\n detectLanguage = false;\n /** Text to copy when clicking the copy button. Defaults to slotted content. */\n @property({ attribute: 'copy-text' })\n copyText = '';\n\n /** Disable interactions on the snippet. */\n @property({ type: Boolean, reflect: true, attribute: 'disabled' })\n disabled = false;\n\n /** Hide the copy button. */\n @property({ type: Boolean, reflect: true, attribute: 'hide-copy-button' })\n hideCopyButton = false;\n\n /** Hide the header/toolbar completely. */\n @property({ type: Boolean, reflect: true, attribute: 'hide-header' })\n hideHeader = false;\n\n /** Hide the line-number gutter in the editor. */\n @property({ type: Boolean, reflect: true, attribute: 'hide-line-numbers' })\n hideLineNumbers = false;\n\n /**\n * Hide the fold gutter, removing the ability to collapse and expand code\n * blocks (the fold keyboard shortcuts are dropped along with the gutter).\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-fold' })\n hideFold = false;\n\n /**\n * Maximum rows to show when collapsed.\n * Set to 0 along with maxExpandedNumberOfRows to enable fill-container mode.\n */\n @property({ type: Number, attribute: 'max-collapsed-number-of-rows' })\n maxCollapsedNumberOfRows = 15;\n\n /**\n * Maximum rows to show when expanded (0 = unlimited).\n * Set to 0 along with maxCollapsedNumberOfRows to enable fill-container mode,\n * where the component fills its container's height with a scrollbar.\n */\n @property({ type: Number, attribute: 'max-expanded-number-of-rows' })\n maxExpandedNumberOfRows = 0;\n\n /** Minimum rows to show when collapsed. */\n @property({ type: Number, attribute: 'min-collapsed-number-of-rows' })\n minCollapsedNumberOfRows = 3;\n\n /** Minimum rows to show when expanded. */\n @property({ type: Number, attribute: 'min-expanded-number-of-rows' })\n minExpandedNumberOfRows = 16;\n\n /** Label for the “show less” control. */\n @property({ attribute: 'show-less-text' })\n showLessText = 'Show less';\n\n /** Label for the “show more” control. */\n @property({ attribute: 'show-more-text' })\n showMoreText = 'Show more';\n\n /** Tooltip label for the copy action. */\n @property({ attribute: 'copy-button-tooltip-content' })\n copyButtonTooltipContent = 'Copy to clipboard';\n\n /** Label for folding/collapsing code. */\n @property({ attribute: 'fold-collapse-label' })\n foldCollapseLabel = 'Collapse code block';\n\n /** Label for unfolding/expanding code. */\n @property({ attribute: 'fold-expand-label' })\n foldExpandLabel = 'Expand code block';\n\n /** Aria-label for the code editor when in read-only mode. */\n @property({ attribute: 'aria-label-readonly' })\n ariaLabelReadOnly = 'Code snippet';\n\n /** Aria-label for the code editor when in editable mode. */\n @property({ attribute: 'aria-label-editable' })\n ariaLabelEditable = 'Code editor';\n\n /**\n * The function used to format the line count text.\n * Receives the line count and returns a formatted string.\n * Defaults to `${count} lines` in en-US.\n */\n @property({ attribute: false })\n getLineCountText: LineCountFormatter = defaultLineCountText;\n\n /**\n * @internal\n */\n @property({ attribute: false })\n private _slottedContent = '';\n\n /**\n * @internal\n */\n @state()\n private _detectedLanguage: string | null = null;\n\n /**\n * @internal\n */\n @state()\n private _languageLabelLockedIn = false;\n\n /**\n * @internal\n */\n @state()\n private _lineCount: number | null = null;\n\n /**\n * @internal\n */\n @state()\n private editorView?: EditorView;\n\n /**\n * @internal\n */\n @state()\n private _isEditorLoading = true;\n\n /**\n * Set by `focusEditor()` when CodeMirror has not finished loading yet;\n * drained from `createEditor()` once the editor view exists.\n * @internal\n */\n private _focusOnEditorReady = false;\n\n /**\n * @internal\n */\n @state()\n private _expandedCode = false;\n\n /**\n * @internal\n */\n @state()\n private _shouldShowMoreLessBtn = false;\n\n /**\n * @internal\n */\n private _hObserveResize: { release(): null } | null = null;\n\n /**\n * @internal\n */\n private hasAdoptedLightDomCode = false;\n\n /**\n * @internal\n */\n private _rowHeightInPixels = 16;\n\n /**\n * @internal\n */\n private _isCreatingEditor = false;\n\n /**\n * @internal\n */\n private contentSlot = createRef<HTMLSlotElement>();\n\n /**\n * @internal\n */\n private editorContainer = createRef<HTMLDivElement>();\n\n /**\n * @internal\n */\n private snippetContainer = createRef<HTMLDivElement>();\n\n /**\n * @internal Per-instance identifier used to scope dynamic CSS rules for\n * this snippet's container via the shared dynamic stylesheet.\n */\n private readonly _snippetInstanceId = `snippet-${++snippetInstanceCounter}`;\n\n private get _snippetSelector(): string {\n return `[${SNIPPET_INSTANCE_ATTR}=\"${this._snippetInstanceId}\"]`;\n }\n\n /**\n * @internal\n */\n private languageCompartment: Compartment | null = null;\n\n /**\n * @internal\n */\n private readOnlyCompartment: Compartment | null = null;\n\n /**\n * @internal\n */\n private wrapCompartment: Compartment | null = null;\n\n /**\n * @internal\n */\n private contentAttributesCompartment: Compartment | null = null;\n\n /**\n * @internal\n */\n private contentSync?: ContentSyncHandle;\n\n /**\n * @internal\n */\n private languageController: LanguageController | null = null;\n\n /**\n * @internal\n */\n private streamingManager?: StreamingManager;\n\n /**\n * @internal\n */\n private codemirrorRuntime: CodeMirrorRuntime | null = null;\n\n /**\n * @internal\n */\n private codemirrorRuntimePromise: Promise<CodeMirrorRuntime> | null = null;\n\n /**\n * @internal\n */\n private _resizeObserver = new ResizeObserver(() => {\n // Use requestAnimationFrame to avoid ResizeObserver loop errors\n requestAnimationFrame(() => {\n this._checkShowMoreButton();\n });\n });\n\n /**\n * @internal\n * Ensures the one-time `document.fonts.ready` re-measure is scheduled only once,\n * even though `createEditor` may run repeatedly during streaming.\n */\n private _fontSettleScheduled = false;\n\n /**\n * @internal\n * Computed property to detect fill-container mode\n */\n private get _isFillMode(): boolean {\n return (\n this.maxCollapsedNumberOfRows === 0 && this.maxExpandedNumberOfRows === 0\n );\n }\n\n constructor() {\n super();\n this.streamingManager = new StreamingManager({\n getSlot: () => this.contentSlot.value ?? null,\n getHost: () => this,\n onContentUpdate: (content) => {\n const previous = this._slottedContent;\n // Only update from slot if code property is not set\n if (!this.code && content !== previous) {\n this._slottedContent = content;\n }\n },\n });\n }\n\n private adoptLightDomCode() {\n if (this.hasAdoptedLightDomCode || this.code) {\n return;\n }\n\n // Backward compatibility: treat static light-DOM text as initial code\n // when the explicit `code` property was not provided.\n const lightDomCode = this.textContent?.trim() ?? '';\n if (lightDomCode) {\n this.code = lightDomCode;\n }\n\n this.hasAdoptedLightDomCode = true;\n }\n\n private _applyLanguageState(update: LanguageStateUpdate) {\n if ('detectedLanguage' in update) {\n this._detectedLanguage = update.detectedLanguage ?? null;\n }\n\n if (update.lockLabel !== undefined) {\n this._languageLabelLockedIn = update.lockLabel;\n }\n }\n\n // Carbon methods\n /**\n * Copies the visible snippet so downstream chat experiences can share code without exposing the editor internals.\n */\n private async _handleCopyClick() {\n try {\n const textToCopy = this._slottedContent || this.copyText || '';\n\n // Try modern Clipboard API first (HTTPS only)\n if (navigator.clipboard && navigator.clipboard.writeText) {\n await navigator.clipboard.writeText(textToCopy);\n } else {\n // Fallback for HTTP or older browsers. The off-screen positioning is\n // applied via a class + dynamic stylesheet rule.\n ensureClipboardHelperRule();\n const textArea = document.createElement('textarea');\n textArea.value = textToCopy;\n textArea.className = 'cds-aichat--clipboard-helper';\n textArea.setAttribute('aria-hidden', 'true');\n textArea.setAttribute('tabindex', '-1');\n document.body.appendChild(textArea);\n textArea.select();\n document.execCommand('copy');\n document.body.removeChild(textArea);\n }\n } catch (error) {\n console.error('Failed to copy text:', error);\n }\n }\n\n /**\n * Toggles the expanded state so long snippets can collapse inside chat tiles while still offering full visibility on demand.\n */\n private _handleClickExpanded() {\n this._expandedCode = !this._expandedCode;\n }\n\n // CodeMirror methods\n\n private async ensureCodeMirrorRuntime(): Promise<boolean> {\n if (this.codemirrorRuntime && this.languageController) {\n return true;\n }\n\n if (typeof window === 'undefined') {\n return false;\n }\n\n if (!this.codemirrorRuntimePromise) {\n this._isEditorLoading = true;\n this.codemirrorRuntimePromise = loadCodeMirrorRuntime();\n }\n\n try {\n const runtime = await this.codemirrorRuntimePromise;\n if (!this.codemirrorRuntime) {\n this.codemirrorRuntime = runtime;\n this.languageCompartment = new runtime.Compartment();\n this.readOnlyCompartment = new runtime.Compartment();\n this.wrapCompartment = new runtime.Compartment();\n this.contentAttributesCompartment = new runtime.Compartment();\n this.languageController = new runtime.LanguageController({\n getLanguageAttribute: () => this.language,\n getContent: () => this._slottedContent,\n isHighlightEnabled: () => this.highlight,\n getEditorView: () => this.editorView,\n getLanguageCompartment: () => {\n if (!this.languageCompartment) {\n this.languageCompartment = new Compartment();\n }\n\n return this.languageCompartment;\n },\n isLanguageLabelLocked: () => this._languageLabelLockedIn,\n getDefaultLanguage: () => this.defaultLanguage,\n getDetectedLanguage: () => this._detectedLanguage,\n updateState: (update) => this._applyLanguageState(update),\n });\n this.requestUpdate();\n }\n return true;\n } catch (error) {\n console.error('Failed to load CodeMirror runtime', error);\n this._isEditorLoading = false;\n this.codemirrorRuntimePromise = null;\n return false;\n }\n }\n\n /**\n * Tears down the CodeMirror view when the component is destroyed to avoid leaking editors between chat messages.\n */\n private destroyEditor() {\n if (this.editorView) {\n this.editorView.destroy();\n this.editorView = undefined;\n }\n this.languageController?.reset();\n }\n\n /**\n * Synchronizes CodeMirror with the latest props and streamed slot content while minimizing unnecessary re-creation work and only appending diffs when possible.\n */\n private async updateEditor(changedProperties: Map<string, any>) {\n if (!this.editorContainer.value) {\n return;\n }\n\n const isReady = await this.ensureCodeMirrorRuntime();\n if (\n !isReady ||\n !this.codemirrorRuntime ||\n !this.languageController ||\n !this.languageCompartment ||\n !this.readOnlyCompartment\n ) {\n return;\n }\n\n const {\n createContentSync,\n applyLanguageSupport,\n updateReadOnlyConfiguration,\n updateContentAttributes,\n } = this.codemirrorRuntime;\n const languageController = this.languageController;\n const languageCompartment = this.languageCompartment;\n const readOnlyCompartment = this.readOnlyCompartment;\n const contentAttributesCompartment = this.contentAttributesCompartment;\n\n const needsRecreate =\n !this.editorView ||\n changedProperties.has('editable') ||\n changedProperties.has('hideLineNumbers') ||\n changedProperties.has('hideFold');\n\n if (needsRecreate) {\n // Prevent creating multiple editors simultaneously\n if (this._isCreatingEditor) {\n return;\n }\n this._isCreatingEditor = true;\n this.destroyEditor();\n await this.createEditor();\n this._isCreatingEditor = false;\n } else {\n if (changedProperties.has('_slottedContent')) {\n if (!this.contentSync) {\n this.contentSync = createContentSync({\n getEditorView: () => this.editorView,\n onAfterApply: () => {\n if (this.editorView) {\n this._lineCount = this.editorView.state.doc.lines;\n }\n this._checkShowMoreButton();\n },\n });\n }\n\n this.contentSync.update(this._slottedContent);\n await languageController.handleStreamingLanguageDetection();\n }\n\n if (\n changedProperties.has('language') ||\n changedProperties.has('highlight')\n ) {\n const languageSupport =\n await languageController.resolveLanguageSupport();\n applyLanguageSupport(\n this.editorView,\n languageCompartment,\n languageSupport\n );\n }\n\n if (changedProperties.has('disabled')) {\n updateReadOnlyConfiguration(this.editorView, readOnlyCompartment, {\n editable: this.editable,\n disabled: this.disabled,\n });\n }\n\n if (\n contentAttributesCompartment &&\n (changedProperties.has('_detectedLanguage') ||\n changedProperties.has('editable') ||\n changedProperties.has('ariaLabelReadOnly') ||\n changedProperties.has('ariaLabelEditable'))\n ) {\n updateContentAttributes(\n this.editorView,\n contentAttributesCompartment,\n this._getAriaLabel()\n );\n }\n }\n }\n\n /**\n * Builds the CodeMirror instance that powers the formatted snippet surface inside the chat response tile.\n */\n private async createEditor() {\n const container = this.editorContainer.value;\n const runtime = this.codemirrorRuntime;\n const languageController = this.languageController;\n const languageCompartment = this.languageCompartment;\n const readOnlyCompartment = this.readOnlyCompartment;\n const wrapCompartment = this.wrapCompartment;\n const contentAttributesCompartment = this.contentAttributesCompartment;\n\n if (\n !container ||\n !runtime ||\n !languageController ||\n !languageCompartment ||\n !readOnlyCompartment ||\n !wrapCompartment ||\n !contentAttributesCompartment\n ) {\n return;\n }\n\n this._isEditorLoading = true;\n\n const languageSupport = await languageController.resolveLanguageSupport();\n\n try {\n container.replaceChildren();\n this.editorView = runtime.createEditorView({\n container,\n doc: this._slottedContent,\n languageSupport,\n languageCompartment,\n readOnlyCompartment,\n wrapCompartment,\n contentAttributesCompartment,\n editable: this.editable,\n disabled: this.disabled,\n ariaLabel: this._getAriaLabel(),\n detectedLanguage: this._detectedLanguage,\n onDocChanged: ({ content, lineCount }) => {\n this._lineCount = lineCount;\n\n this.dispatchEvent(\n new CustomEvent('content-change', {\n detail: { content },\n bubbles: true,\n composed: true,\n })\n );\n\n if (this.editable) {\n languageController.detectLanguageForEditable(content);\n }\n },\n setupOptions: {\n foldCollapseLabel: this.foldCollapseLabel,\n foldExpandLabel: this.foldExpandLabel,\n hideLineNumbers: this.hideLineNumbers,\n hideFold: this.hideFold,\n },\n });\n } finally {\n this._isEditorLoading = false;\n }\n\n this._lineCount = this.editorView.state.doc.lines;\n\n // Check height after editor renders, then announce that this snippet's async\n // render has settled so host listeners can recalculate geometry.\n requestAnimationFrame(() => {\n this._checkShowMoreButton();\n this.emitRenderSettled();\n });\n\n if (this._focusOnEditorReady) {\n this._focusOnEditorReady = false;\n this.editorView.focus();\n }\n\n // IBM Plex Mono is a web font that can arrive after first paint and reflow the code,\n // changing height. Re-measure and re-announce once fonts are ready.\n this.scheduleFontSettle();\n\n languageController.handleStreamingLanguageDetection();\n }\n\n /**\n * Announces that this snippet's async render (CodeMirror init and/or font load) has\n * settled, so host listeners can recalculate layout against the final height. The event is\n * public; the message list's scroll controller no longer listens to it. Composed + bubbling\n * so it crosses the shadow boundary.\n */\n private emitRenderSettled() {\n this.dispatchEvent(\n new CustomEvent('code-snippet-render-end', {\n bubbles: true,\n composed: true,\n })\n );\n }\n\n /**\n * IBM Plex Mono is delivered as a web font and can arrive after first paint, reflowing\n * the code. Once fonts are ready, re-measure and re-announce a settled render. Scheduled\n * at most once per element to avoid piling up handlers across streaming re-renders.\n */\n private scheduleFontSettle() {\n if (this._fontSettleScheduled || !document.fonts?.ready) {\n return;\n }\n this._fontSettleScheduled = true;\n document.fonts.ready.then(() => {\n if (!this.editorView) {\n return;\n }\n this._checkShowMoreButton();\n this.emitRenderSettled();\n });\n }\n\n /**\n * Generates the appropriate aria-label for the code editor based on language and editable state.\n */\n private _getAriaLabel(): string {\n const language = this._detectedLanguage;\n const editable = this.editable;\n\n if (editable) {\n return language\n ? this.ariaLabelEditable.replace('{language}', language)\n : this.ariaLabelEditable;\n } else {\n return language\n ? this.ariaLabelReadOnly.replace('{language}', language)\n : this.ariaLabelReadOnly;\n }\n }\n\n /**\n * Calculates the CSS custom properties for the snippet container based on expanded state and min/max row constraints.\n * Returned by reference for `_applyContainerStyles`, which writes them via the shared dynamic stylesheet\n * (see `dynamic-css-var-sheet`).\n */\n private _getContainerStyles(expandedCode: boolean): ContainerStyleProperties {\n return buildContainerStyles({\n expanded: expandedCode,\n maxCollapsed: this.maxCollapsedNumberOfRows,\n maxExpanded: this.maxExpandedNumberOfRows,\n minCollapsed: this.minCollapsedNumberOfRows,\n minExpanded: this.minExpandedNumberOfRows,\n rowHeight: this._rowHeightInPixels,\n });\n }\n\n /**\n * Applies CSS custom properties to the snippet container element via the\n * shared dynamic stylesheet. The container is tagged with a per-instance\n * data attribute so each snippet's rule is independent.\n */\n private _applyContainerStyles() {\n const container = this.snippetContainer.value;\n if (!container) {\n return;\n }\n\n container.setAttribute(SNIPPET_INSTANCE_ATTR, this._snippetInstanceId);\n adoptOnRoot(this.renderRoot as ShadowRoot);\n\n const properties = this._getContainerStyles(this._expandedCode);\n const declarations: Record<string, string> = {};\n for (const [property, value] of Object.entries(properties)) {\n if (value !== undefined) {\n declarations[property] = value;\n }\n }\n setVarsForSelector(this._snippetSelector, declarations);\n }\n\n /**\n * Shows or hides the expand button so the chat message can adapt to long snippets without overwhelming the layout.\n */\n private _checkShowMoreButton() {\n const { shouldShowButton, shouldCollapse } = evaluateShowMoreButton({\n shadowRoot: this.shadowRoot,\n rowHeight: this._rowHeightInPixels,\n expanded: this._expandedCode,\n maxCollapsed: this.maxCollapsedNumberOfRows,\n maxExpanded: this.maxExpandedNumberOfRows,\n minExpanded: this.minExpandedNumberOfRows,\n });\n\n if (this._shouldShowMoreLessBtn !== shouldShowButton) {\n this._shouldShowMoreLessBtn = shouldShowButton;\n }\n\n if (shouldCollapse) {\n this._expandedCode = false;\n }\n }\n\n private renderEditorFallback() {\n if (!this._isEditorLoading) {\n return null;\n }\n\n return html`<div\n class=\"${prefix}--snippet__editor-skeleton\"\n aria-hidden=\"true\">\n <cds-skeleton-text lines=\"4\"></cds-skeleton-text>\n </div>`;\n }\n\n /**\n * Focus the editor surface — the contenteditable that accepts text input.\n * Prefer this over `host.focus()`, which delegates via `delegatesFocus`\n * to the first sequentially-focusable child in the shadow tree\n * (`.cm-scroller`, focusable for accessibility but not editable). When\n * CodeMirror is still loading, the call is queued and forwarded once\n * the editor view is created. Useful right after inserting the snippet\n * into a contenteditable host (e.g. a Tiptap atom block) so the next\n * keystroke enters the editor instead of replacing the node.\n */\n focusEditor(): void {\n if (this.editorView) {\n this.editorView.focus();\n return;\n }\n this._focusOnEditorReady = true;\n void this.ensureCodeMirrorRuntime();\n }\n\n // Lifecycle methods\n /**\n * Wires up resize and content observers so the snippet reacts to streaming updates and layout changes as soon as it attaches.\n */\n connectedCallback() {\n super.connectedCallback();\n this.adoptLightDomCode();\n if (this._hObserveResize) {\n this._hObserveResize = this._hObserveResize.release();\n }\n this._hObserveResize = observeResize(this._resizeObserver, this);\n\n this.streamingManager?.reset(this._slottedContent);\n this.streamingManager?.connect();\n\n void this.ensureCodeMirrorRuntime();\n }\n\n /**\n * Hooks into the rendered slot once Lit has stamped the template so we can observe streaming updates.\n */\n protected firstUpdated() {\n this.streamingManager?.syncSlotObservers();\n // Apply initial container styles (CSP-compliant)\n this._applyContainerStyles();\n }\n\n /**\n * Ensures we capture any pre-rendered slot content before the initial paint, keeping the editor in sync from the first frame.\n */\n willUpdate(changedProperties: Map<string, any>) {\n if (changedProperties.has('code')) {\n // When code property changes, update internal content\n if (this.code) {\n this._slottedContent = this.code;\n }\n }\n\n this.streamingManager?.ensureInitialContent();\n\n // Update expanded-code attribute before render to avoid change-in-update warning\n if (this._expandedCode) {\n this.setAttribute('expanded-code', '');\n } else {\n this.removeAttribute('expanded-code');\n }\n }\n\n /**\n * Responds to slot churn caused by streaming tokens emitted from the chat pipeline, forcing a full rescan when the slot re-projects.\n */\n private _handleSlotChange() {\n this.streamingManager?.handleSlotChange();\n }\n\n /**\n * Cleans up observers, throttles, and the editor when the chat snippet unmounts.\n */\n disconnectedCallback() {\n super.disconnectedCallback();\n if (this._hObserveResize) {\n this._hObserveResize = this._hObserveResize.release();\n }\n // Cancel any pending throttled updates\n this.contentSync?.cancel();\n this.streamingManager?.dispose();\n this.languageController?.dispose();\n this.destroyEditor();\n clearSelector(this._snippetSelector);\n }\n\n /**\n * Drives incremental editor updates after Lit commits.\n */\n updated(changedProperties: Map<string, any>) {\n this.updateEditor(changedProperties);\n\n // Apply container styles when expanded state or row constraints change\n if (\n changedProperties.has('_expandedCode') ||\n changedProperties.has('maxCollapsedNumberOfRows') ||\n changedProperties.has('maxExpandedNumberOfRows') ||\n changedProperties.has('minCollapsedNumberOfRows') ||\n changedProperties.has('minExpandedNumberOfRows')\n ) {\n this._applyContainerStyles();\n }\n\n // Apply fill-mode class to host element\n if (this._isFillMode) {\n this.classList.add(`${prefix}--snippet-container--fill-mode`);\n } else {\n this.classList.remove(`${prefix}--snippet-container--fill-mode`);\n }\n }\n\n /**\n * Gets all actions including the copy button prepended if enabled.\n * @returns Array of actions for the toolbar\n */\n private _getToolbarActions(): Action[] {\n if (this.hideCopyButton) {\n return this.actions;\n }\n\n const copyAction: Action = {\n text: this.copyButtonTooltipContent,\n icon: Copy16,\n onClick: () => this._handleCopyClick(),\n };\n\n return [copyAction, ...this.actions];\n }\n\n /**\n * Renders the title content for the toolbar (language label and line count).\n * @returns Template result for title slot\n */\n private renderTitle() {\n // Show the language label when one is locked in and either the host\n // opted into `detectLanguage` or the `language` attribute is set\n // explicitly (explicit always renders its label regardless of the flag).\n const showLanguageLabel =\n !!this._detectedLanguage &&\n this._languageLabelLockedIn &&\n (this.detectLanguage || !!this.language);\n return html`\n <div slot=\"title\" data-rounded=\"top\" class=\"${prefix}--snippet__meta\">\n ${\n showLanguageLabel\n ? html`<div class=\"${prefix}--snippet__language\">\n ${this._detectedLanguage}\n </div>`\n : ''\n }\n ${\n showLanguageLabel && this._lineCount\n ? html`<div class=\"${prefix}--snippet__header-separator\">\n &mdash;\n </div>`\n : ''\n }\n ${\n this._lineCount\n ? html`<div class=\"${prefix}--snippet__linecount\">\n ${this.getLineCountText({ count: this._lineCount })}\n </div>`\n : ''\n }\n </div>\n `;\n }\n\n /**\n * Renders the CodeMirror host along with the controls that make the chat snippet interactive and accessible.\n */\n render() {\n const {\n disabled,\n showMoreText,\n showLessText,\n _expandedCode: expandedCode,\n _shouldShowMoreLessBtn: shouldShowMoreLessBtn,\n } = this;\n\n const expandCodeBtnText = expandedCode ? showLessText : showMoreText;\n\n const containerClasses = {\n [`${prefix}--snippet-container`]: true,\n [`${prefix}--snippet--codemirror`]: true,\n // Fill mode shows no expand affordance, so it is never a \"collapsed\"\n // state. Applying `--collapsed` here would clip with `overflow-y: hidden`\n // (it is defined later in the stylesheet and wins by source order),\n // defeating fill mode's `overflow-y: auto` scroll.\n [`${prefix}--snippet-container--collapsed`]:\n !expandedCode && !this._isFillMode,\n [`${prefix}--snippet-container--fill-mode`]: this._isFillMode,\n };\n\n return html`<div class=\"${prefix}--snippet\">\n ${\n !this.hideHeader\n ? html`\n <cds-aichat-toolbar\n class=\"${prefix}--snippet__header\"\n .actions=${this._getToolbarActions()}\n ?overflow=${this.overflow}>\n ${this.renderTitle()}\n <slot name=\"fixed-actions\" slot=\"fixed-actions\"></slot>\n <slot name=\"decorator\" slot=\"decorator\"></slot>\n </cds-aichat-toolbar>\n `\n : nothing\n }\n\n <div\n class=\"${classMap(containerClasses)}\"\n data-rounded=\"bottom\"\n ${\n this.editable\n ? `aria-label=\"${this.ariaLabelEditable}\" aria-readonly=\"false\" aria-multiline=\"true\"`\n : `aria-label=\"${this._slottedContent || 'code-snippet'}\"`\n }\n ${ref(this.snippetContainer)}>\n <div class=\"${prefix}--code-editor\" ${ref(this.editorContainer)}></div>\n ${this.renderEditorFallback()}\n </div>\n\n ${\n shouldShowMoreLessBtn\n ? html`\n <div\n class=\"${prefix}--snippet__footer\"\n data-rounded=\"bottom-right\">\n <cds-button\n kind=\"ghost\"\n size=\"sm\"\n button-class-name=\"${prefix}--snippet-btn--expand\"\n ?disabled=${disabled}\n @click=${() => this._handleClickExpanded()}>\n <span class=\"${prefix}--snippet-btn--text\">\n ${expandCodeBtnText}\n </span>\n ${iconLoader(ChevronDown16, {\n class: `${prefix}--icon-chevron--down ${prefix}--snippet__icon`,\n role: 'img',\n slot: 'icon',\n })}\n </cds-button>\n </div>\n `\n : nothing\n }\n <div class=\"${prefix}--visually-hidden\">\n <slot\n ${ref(this.contentSlot)}\n @slotchange=${this._handleSlotChange}></slot>\n </div>\n </div>`;\n }\n\n /**\n * @internal\n */\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cds-aichat-code-snippet': CDSAIChatCodeSnippet;\n }\n}\n\nexport { CDSAIChatCodeSnippet };\nexport default CDSAIChatCodeSnippet;\nexport type { Action } from '../../toolbar/src/toolbar.js';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAuCH,MAAM,qBAAqB,GAAG,4BAA4B;AAC1D,MAAM,yBAAyB,GAAG,+BAA+B;AACjE,IAAI,sBAAsB,GAAG,CAAC;AAC9B,IAAI,4BAA4B,GAAG,KAAK;AAExC;;;;AAIG;AACH,SAAS,yBAAyB,GAAA;IAChC,IAAI,4BAA4B,EAAE;QAChC;IACF;IACA,kBAAkB,CAAC,yBAAyB,EAAE;AAC5C,QAAA,QAAQ,EAAE,OAAO;AACjB,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,GAAG,EAAE,WAAW;AAChB,QAAA,OAAO,EAAE,GAAG;AACb,KAAA,CAAC;IACF,4BAA4B,GAAG,IAAI;AACrC;AAMA;;;;;;;AAOG;AAEH,IAAM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AAA,EAAA,oBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAMxB,UAAA,CAAA;AADP,IAAA,KAAK;AAC0B,CAAA,EAAA,oBAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AAaxB,UAAA,CAAA;AADP,IAAA,KAAK;AACwB,CAAA,EAAA,oBAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAMtB,UAAA,CAAA;AADP,IAAA,KAAK;AACiC,CAAA,EAAA,oBAAA,CAAA,SAAA,EAAA,wBAAA,EAAA,MAAA,CAAA;AA7KnC,oBAAoB,GAAA,UAAA,CAAA;AADzB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,aAAA,CAAe;AACjC,CAAA,EAAA,oBAAoB,CAq/BzB;AASD,6BAAe,oBAAoB;;"}
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { css } from 'lit';
9
9
 
10
- var styles = css([":host,:host-context([data-theme=g10]),:host-context([data-theme=white]),:host-context([storybook-carbon-theme=g10]),:host-context([storybook-carbon-theme=white]){display:block}:host :host([data-rounded=\"\"]),:host [data-rounded=\"\"],:host-context([data-theme=g10]) :host([data-rounded=\"\"]),:host-context([data-theme=g10]) [data-rounded=\"\"],:host-context([data-theme=white]) :host([data-rounded=\"\"]),:host-context([data-theme=white]) [data-rounded=\"\"],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"]),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"],:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"]),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=\"\"])::part(button),:host :host([data-rounded=\"\"])::part(link),:host [data-rounded=\"\"]::part(button),:host [data-rounded=\"\"]::part(link),:host-context([data-theme=g10]) :host([data-rounded=\"\"])::part(button),:host-context([data-theme=g10]) :host([data-rounded=\"\"])::part(link),:host-context([data-theme=g10]) [data-rounded=\"\"]::part(button),:host-context([data-theme=g10]) [data-rounded=\"\"]::part(link),:host-context([data-theme=white]) :host([data-rounded=\"\"])::part(button),:host-context([data-theme=white]) :host([data-rounded=\"\"])::part(link),:host-context([data-theme=white]) [data-rounded=\"\"]::part(button),:host-context([data-theme=white]) [data-rounded=\"\"]::part(link),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])::part(link),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]::part(link),:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])::part(link),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]::part(link){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem);outline-offset:-.0625rem}:host :host([data-rounded=\"\"])>:only-child,:host [data-rounded=\"\"]>:only-child,:host-context([data-theme=g10]) :host([data-rounded=\"\"])>:only-child,:host-context([data-theme=g10]) [data-rounded=\"\"]>:only-child,:host-context([data-theme=white]) :host([data-rounded=\"\"])>:only-child,:host-context([data-theme=white]) [data-rounded=\"\"]>:only-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])>:only-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]>:only-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])>:only-child,:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]>:only-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]),:host [data-rounded=top],:host-context([data-theme=g10]) :host([data-rounded=top]),:host-context([data-theme=g10]) [data-rounded=top],:host-context([data-theme=white]) :host([data-rounded=top]),:host-context([data-theme=white]) [data-rounded=top],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]),:host-context([storybook-carbon-theme=white]) [data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]),:host [data-rounded=top-left],:host-context([data-theme=g10]) :host([data-rounded=top-left]),:host-context([data-theme=g10]) [data-rounded=top-left],:host-context([data-theme=white]) :host([data-rounded=top-left]),:host-context([data-theme=white]) [data-rounded=top-left],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]),:host [data-rounded=top-right],:host-context([data-theme=g10]) :host([data-rounded=top-right]),:host-context([data-theme=g10]) [data-rounded=top-right],:host-context([data-theme=white]) :host([data-rounded=top-right]),:host-context([data-theme=white]) [data-rounded=top-right],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]),:host [data-rounded=bottom],:host-context([data-theme=g10]) :host([data-rounded=bottom]),:host-context([data-theme=g10]) [data-rounded=bottom],:host-context([data-theme=white]) :host([data-rounded=bottom]),:host-context([data-theme=white]) [data-rounded=bottom],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]),:host [data-rounded=bottom-left],:host-context([data-theme=g10]) :host([data-rounded=bottom-left]),:host-context([data-theme=g10]) [data-rounded=bottom-left],:host-context([data-theme=white]) :host([data-rounded=bottom-left]),:host-context([data-theme=white]) [data-rounded=bottom-left],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]),:host [data-rounded=bottom-right],:host-context([data-theme=g10]) :host([data-rounded=bottom-right]),:host-context([data-theme=g10]) [data-rounded=bottom-right],:host-context([data-theme=white]) :host([data-rounded=bottom-right]),:host-context([data-theme=white]) [data-rounded=bottom-right],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child,:host [data-rounded=top]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child,:host [data-rounded=top]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child,:host [data-rounded=top][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child::part(button),:host [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child,:host [data-rounded=top-right][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child,:host [data-rounded=top-left][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child,:host [data-rounded=bottom][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child,:host [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child,:host [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host,:host-context([data-theme=g10]),:host-context([data-theme=white]),:host-context([storybook-carbon-theme=g10]),:host-context([storybook-carbon-theme=white]){--cds-syntax-angle-bracket:#697077;--cds-syntax-annotation:#007d79;--cds-syntax-arithmetic-operator:#343a3f;--cds-syntax-atom:#161616;--cds-syntax-attribute:#00539a;--cds-syntax-attribute-name:#00539a;--cds-syntax-attribute-value:#161616;--cds-syntax-bitwise-operator:#343a3f;--cds-syntax-block-comment:#198038;--cds-syntax-bool:#161616;--cds-syntax-brace:#343a3f;--cds-syntax-bracket:#343a3f;--cds-syntax-character:#161616;--cds-syntax-class-name:#007d79;--cds-syntax-color:#161616;--cds-syntax-comment:#198038;--cds-syntax-compare-operator:#343a3f;--cds-syntax-constant:#0f62fe;--cds-syntax-content:#161616;--cds-syntax-content-separator:#343a3f;--cds-syntax-control-keyword:#6929c4;--cds-syntax-control-operator:#6929c4;--cds-syntax-definition:#00539a;--cds-syntax-definition-keyword:#00539a;--cds-syntax-definition-operator:#00539a;--cds-syntax-deleted:#ffd7d9;--cds-syntax-deref-operator:#343a3f;--cds-syntax-doc-comment:#198038;--cds-syntax-doc-string:#161616;--cds-syntax-document-meta:#198038;--cds-syntax-emphasis:#161616;--cds-syntax-escape:#343a3f;--cds-syntax-float:#198038;--cds-syntax-function:#8e6a00;--cds-syntax-heading:#00539a;--cds-syntax-heading-1:#00539a;--cds-syntax-heading-2:#00539a;--cds-syntax-heading-3:#00539a;--cds-syntax-heading-4:#00539a;--cds-syntax-heading-5:#00539a;--cds-syntax-heading-6:#00539a;--cds-syntax-inserted:#a7f0ba;--cds-syntax-integer:#198038;--cds-syntax-invalid:#da1e28;--cds-syntax-keyword:#0f62fe;--cds-syntax-label-name:#0f62fe;--cds-syntax-line-comment:#198038;--cds-syntax-link:#0f62fe;--cds-syntax-list:#161616;--cds-syntax-literal:#161616;--cds-syntax-local:#0f62fe;--cds-syntax-logic-operator:#343a3f;--cds-syntax-macro-name:#161616;--cds-syntax-meta:#198038;--cds-syntax-modifier:#0f62fe;--cds-syntax-module-keyword:#6929c4;--cds-syntax-monospace:#161616;--cds-syntax-name:#0f62fe;--cds-syntax-namespace:#007d79;--cds-syntax-null:#161616;--cds-syntax-number:#198038;--cds-syntax-operator:#343a3f;--cds-syntax-operator-keyword:#0f62fe;--cds-syntax-paren:#343a3f;--cds-syntax-processing-instruction:#161616;--cds-syntax-property-name:#00539a;--cds-syntax-punctuation:#343a3f;--cds-syntax-quote:#198038;--cds-syntax-regexp:#6929c4;--cds-syntax-self:#007d79;--cds-syntax-separator:#343a3f;--cds-syntax-special:#0f62fe;--cds-syntax-special-string:#8a3ffc;--cds-syntax-square-bracket:#343a3f;--cds-syntax-standard:#0f62fe;--cds-syntax-strikethrough:#161616;--cds-syntax-string:#161616;--cds-syntax-strong:#161616;--cds-syntax-tag:#007d79;--cds-syntax-tag-name:#007d79;--cds-syntax-type:#007d79;--cds-syntax-type-name:#007d79;--cds-syntax-type-operator:#007d79;--cds-syntax-unit:#198038;--cds-syntax-update-operator:#343a3f;--cds-syntax-url:#343a3f;--cds-syntax-variable:#0f62fe;--cds-syntax-variable-name:#0f62fe}:host(.cds-aichat--snippet-container--fill-mode){block-size:100%}.cds-aichat--snippet{background:var(--cds-chat-shell-background,#fff);border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem);display:block;font-family:inherit;max-inline-size:100%;padding:0;white-space:normal}.cds-aichat--snippet code{font-family:var(--cds-code-01-font-family,\"IBM Plex Mono\",system-ui,-apple-system,BlinkMacSystemFont,\".SFNSText-Regular\",monospace);font-size:var(--cds-code-01-font-size,.75rem);font-weight:var(--cds-code-01-font-weight,400);letter-spacing:var(--cds-code-01-letter-spacing,.32px);line-height:var(--cds-code-01-line-height,1.33333)}:host(.cds-aichat--snippet-container--fill-mode) .cds-aichat--snippet{block-size:100%;display:flex;flex-direction:column}:host-context([data-theme=g100]),:host-context([data-theme=g90]),:host-context([storybook-carbon-theme=g100]),:host-context([storybook-carbon-theme=g90]){--cds-syntax-angle-bracket:#8d8d8d;--cds-syntax-annotation:#08bdba;--cds-syntax-arithmetic-operator:#e0e0e0;--cds-syntax-atom:#f4f4f4;--cds-syntax-attribute:#33b1ff;--cds-syntax-attribute-name:#33b1ff;--cds-syntax-attribute-value:#f4f4f4;--cds-syntax-bitwise-operator:#e0e0e0;--cds-syntax-block-comment:#42be65;--cds-syntax-bool:#f4f4f4;--cds-syntax-brace:#e0e0e0;--cds-syntax-bracket:#e0e0e0;--cds-syntax-character:#f4f4f4;--cds-syntax-class-name:#3ddbd9;--cds-syntax-color:#f4f4f4;--cds-syntax-comment:#42be65;--cds-syntax-compare-operator:#e0e0e0;--cds-syntax-constant:#4589ff;--cds-syntax-content:#f4f4f4;--cds-syntax-content-separator:#e0e0e0;--cds-syntax-control-keyword:#be95ff;--cds-syntax-control-operator:#be95ff;--cds-syntax-definition:#33b1ff;--cds-syntax-definition-keyword:#33b1ff;--cds-syntax-definition-operator:#33b1ff;--cds-syntax-deleted:#a2191f;--cds-syntax-deref-operator:#e0e0e0;--cds-syntax-doc-comment:#42be65;--cds-syntax-doc-string:#f4f4f4;--cds-syntax-document-meta:#42be65;--cds-syntax-emphasis:#f4f4f4;--cds-syntax-escape:#e0e0e0;--cds-syntax-float:#6fdc8c;--cds-syntax-function:#f1c21b;--cds-syntax-heading:#33b1ff;--cds-syntax-heading-1:#33b1ff;--cds-syntax-heading-2:#33b1ff;--cds-syntax-heading-3:#33b1ff;--cds-syntax-heading-4:#33b1ff;--cds-syntax-heading-5:#33b1ff;--cds-syntax-heading-6:#33b1ff;--cds-syntax-inserted:#198038;--cds-syntax-integer:#6fdc8c;--cds-syntax-invalid:#fa4d56;--cds-syntax-keyword:#4589ff;--cds-syntax-label-name:#a6c8ff;--cds-syntax-line-comment:#42be65;--cds-syntax-link:#4589ff;--cds-syntax-list:#f4f4f4;--cds-syntax-literal:#f4f4f4;--cds-syntax-local:#a6c8ff;--cds-syntax-logic-operator:#e0e0e0;--cds-syntax-macro-name:#f4f4f4;--cds-syntax-meta:#42be65;--cds-syntax-modifier:#4589ff;--cds-syntax-module-keyword:#be95ff;--cds-syntax-monospace:#f4f4f4;--cds-syntax-name:#a6c8ff;--cds-syntax-namespace:#3ddbd9;--cds-syntax-null:#f4f4f4;--cds-syntax-number:#6fdc8c;--cds-syntax-operator:#e0e0e0;--cds-syntax-operator-keyword:#4589ff;--cds-syntax-paren:#e0e0e0;--cds-syntax-processing-instruction:#f4f4f4;--cds-syntax-property-name:#33b1ff;--cds-syntax-punctuation:#e0e0e0;--cds-syntax-quote:#42be65;--cds-syntax-regexp:#be95ff;--cds-syntax-self:#3ddbd9;--cds-syntax-separator:#e0e0e0;--cds-syntax-special:#4589ff;--cds-syntax-special-string:#be95ff;--cds-syntax-square-bracket:#e0e0e0;--cds-syntax-standard:#4589ff;--cds-syntax-strikethrough:#f4f4f4;--cds-syntax-string:#f4f4f4;--cds-syntax-strong:#f4f4f4;--cds-syntax-tag:#3ddbd9;--cds-syntax-tag-name:#3ddbd9;--cds-syntax-type:#3ddbd9;--cds-syntax-type-name:#3ddbd9;--cds-syntax-type-operator:#3ddbd9;--cds-syntax-unit:#6fdc8c;--cds-syntax-update-operator:#e0e0e0;--cds-syntax-url:#e0e0e0;--cds-syntax-variable:#a6c8ff;--cds-syntax-variable-name:#a6c8ff}.cm-diff-line-inserted{background-color:var(--cds-syntax-inserted)}.cm-diff-line-deleted{background-color:var(--cds-syntax-deleted)}:host([disabled]) .cds-aichat--snippet{background-color:var(--cds-layer);color:var(--cds-text-disabled,hsla(0,0%,9%,.25))}:host([disabled]) .cm-gutters{background-color:var(--cds-layer)}:host([disabled]) .cds-aichat--snippet-container{cursor:not-allowed}:host([disabled]) .cm-editor{pointer-events:none}:host([disabled]) .cds-aichat--snippet__icon{fill:var(--cds-icon-disabled,hsla(0,0%,9%,.25))}:host([hide-copy-button]) .cds-aichat--snippet-container pre{padding-inline-end:0}:host([wrap-text]) pre{word-wrap:break-word;white-space:pre-wrap}.cds-aichat--snippet-container{max-block-size:var(--cds-snippet-max-height,none);min-block-size:var(--cds-snippet-min-height,auto);order:1;overflow-y:auto;pointer-events:auto;position:relative;transition:max-height motion(standard,productive) .15s}.cds-aichat--snippet-container:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds-aichat--snippet-container:focus{outline-style:dotted}}.cds-aichat--snippet-container:focus{outline-offset:0}.cds-aichat--snippet-container pre{overflow:auto;padding-block-end:1.5rem;padding-inline-end:1.5rem}.cds-aichat--snippet-container pre code{overflow:hidden}.cds-aichat--snippet-container--fill-mode{block-size:100%;max-block-size:100%;overflow-y:auto}.cds-aichat--snippet--codemirror ::slotted(*){display:none}.cds-aichat--snippet--codemirror .cds-aichat--code-editor{block-size:100%;inline-size:100%}.cds-aichat--snippet__editor-skeleton{align-items:center;background:var(--cds-layer-01,#f4f4f4);display:flex;inset:0;padding:1rem;pointer-events:none;position:absolute;z-index:1}.cds-aichat--snippet__editor-skeleton cds-skeleton-text{inline-size:100%}.cds-aichat--visually-hidden{display:none}.cds-aichat--snippet__header{border-block-end:1px solid var(--cds-border-subtle-02,#e0e0e0)}.cds-aichat--snippet__meta{display:flex}.cds-aichat--snippet__footer{border-block-start:1px solid var(--cds-border-subtle-02,#e0e0e0);display:flex;justify-content:flex-end}.cds-aichat--snippet-btn--text{color:var(--cds-text-primary,#161616)}.cds-aichat--snippet__icon{fill:var(--cds-icon-primary,#161616)}.cds-aichat--snippet__header-separator,.cds-aichat--snippet__language,.cds-aichat--snippet__linecount{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)}.cds-aichat--snippet__header-separator{padding-inline-end:.25rem;padding-inline-start:.25rem}.cds-aichat--snippet-container--collapsed{overflow-x:auto;overflow-y:hidden;transition:max-height motion(standard,productive) .15s}.cds-aichat--icon-chevron--down{transform:rotate(0deg);transition:transform .3s}:host([expanded-code]) .cds-aichat--icon-chevron--down{transform:rotate(180deg);transition:transform .3s}"]);
10
+ var styles = css([":host,:host-context([data-theme=g10]),:host-context([data-theme=white]),:host-context([storybook-carbon-theme=g10]),:host-context([storybook-carbon-theme=white]){display:block}:host :host([data-rounded=\"\"]),:host [data-rounded=\"\"],:host-context([data-theme=g10]) :host([data-rounded=\"\"]),:host-context([data-theme=g10]) [data-rounded=\"\"],:host-context([data-theme=white]) :host([data-rounded=\"\"]),:host-context([data-theme=white]) [data-rounded=\"\"],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"]),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"],:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"]),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=\"\"])::part(button),:host :host([data-rounded=\"\"])::part(link),:host [data-rounded=\"\"]::part(button),:host [data-rounded=\"\"]::part(link),:host-context([data-theme=g10]) :host([data-rounded=\"\"])::part(button),:host-context([data-theme=g10]) :host([data-rounded=\"\"])::part(link),:host-context([data-theme=g10]) [data-rounded=\"\"]::part(button),:host-context([data-theme=g10]) [data-rounded=\"\"]::part(link),:host-context([data-theme=white]) :host([data-rounded=\"\"])::part(button),:host-context([data-theme=white]) :host([data-rounded=\"\"])::part(link),:host-context([data-theme=white]) [data-rounded=\"\"]::part(button),:host-context([data-theme=white]) [data-rounded=\"\"]::part(link),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])::part(link),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]::part(link),:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])::part(link),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]::part(link){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem);outline-offset:-.0625rem}:host :host([data-rounded=\"\"])>:only-child,:host [data-rounded=\"\"]>:only-child,:host-context([data-theme=g10]) :host([data-rounded=\"\"])>:only-child,:host-context([data-theme=g10]) [data-rounded=\"\"]>:only-child,:host-context([data-theme=white]) :host([data-rounded=\"\"])>:only-child,:host-context([data-theme=white]) [data-rounded=\"\"]>:only-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])>:only-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]>:only-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])>:only-child,:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]>:only-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]),:host [data-rounded=top],:host-context([data-theme=g10]) :host([data-rounded=top]),:host-context([data-theme=g10]) [data-rounded=top],:host-context([data-theme=white]) :host([data-rounded=top]),:host-context([data-theme=white]) [data-rounded=top],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]),:host-context([storybook-carbon-theme=white]) [data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]),:host [data-rounded=top-left],:host-context([data-theme=g10]) :host([data-rounded=top-left]),:host-context([data-theme=g10]) [data-rounded=top-left],:host-context([data-theme=white]) :host([data-rounded=top-left]),:host-context([data-theme=white]) [data-rounded=top-left],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]),:host [data-rounded=top-right],:host-context([data-theme=g10]) :host([data-rounded=top-right]),:host-context([data-theme=g10]) [data-rounded=top-right],:host-context([data-theme=white]) :host([data-rounded=top-right]),:host-context([data-theme=white]) [data-rounded=top-right],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]),:host [data-rounded=bottom],:host-context([data-theme=g10]) :host([data-rounded=bottom]),:host-context([data-theme=g10]) [data-rounded=bottom],:host-context([data-theme=white]) :host([data-rounded=bottom]),:host-context([data-theme=white]) [data-rounded=bottom],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]),:host [data-rounded=bottom-left],:host-context([data-theme=g10]) :host([data-rounded=bottom-left]),:host-context([data-theme=g10]) [data-rounded=bottom-left],:host-context([data-theme=white]) :host([data-rounded=bottom-left]),:host-context([data-theme=white]) [data-rounded=bottom-left],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]),:host [data-rounded=bottom-right],:host-context([data-theme=g10]) :host([data-rounded=bottom-right]),:host-context([data-theme=g10]) [data-rounded=bottom-right],:host-context([data-theme=white]) :host([data-rounded=bottom-right]),:host-context([data-theme=white]) [data-rounded=bottom-right],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child,:host [data-rounded=top]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child,:host [data-rounded=top]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child,:host [data-rounded=top][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child::part(button),:host [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child,:host [data-rounded=top-right][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child,:host [data-rounded=top-left][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child,:host [data-rounded=bottom][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child,:host [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child,:host [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host,:host-context([data-theme=g10]),:host-context([data-theme=white]),:host-context([storybook-carbon-theme=g10]),:host-context([storybook-carbon-theme=white]){--cds-syntax-angle-bracket:#697077;--cds-syntax-annotation:#007d79;--cds-syntax-arithmetic-operator:#343a3f;--cds-syntax-atom:#161616;--cds-syntax-attribute:#00539a;--cds-syntax-attribute-name:#00539a;--cds-syntax-attribute-value:#161616;--cds-syntax-bitwise-operator:#343a3f;--cds-syntax-block-comment:#198038;--cds-syntax-bool:#161616;--cds-syntax-brace:#343a3f;--cds-syntax-bracket:#343a3f;--cds-syntax-character:#161616;--cds-syntax-class-name:#007d79;--cds-syntax-color:#161616;--cds-syntax-comment:#198038;--cds-syntax-compare-operator:#343a3f;--cds-syntax-constant:#0f62fe;--cds-syntax-content:#161616;--cds-syntax-content-separator:#343a3f;--cds-syntax-control-keyword:#6929c4;--cds-syntax-control-operator:#6929c4;--cds-syntax-definition:#00539a;--cds-syntax-definition-keyword:#00539a;--cds-syntax-definition-operator:#00539a;--cds-syntax-deleted:#ffd7d9;--cds-syntax-deref-operator:#343a3f;--cds-syntax-doc-comment:#198038;--cds-syntax-doc-string:#161616;--cds-syntax-document-meta:#198038;--cds-syntax-emphasis:#161616;--cds-syntax-escape:#343a3f;--cds-syntax-float:#198038;--cds-syntax-function:#8e6a00;--cds-syntax-heading:#00539a;--cds-syntax-heading-1:#00539a;--cds-syntax-heading-2:#00539a;--cds-syntax-heading-3:#00539a;--cds-syntax-heading-4:#00539a;--cds-syntax-heading-5:#00539a;--cds-syntax-heading-6:#00539a;--cds-syntax-inserted:#a7f0ba;--cds-syntax-integer:#198038;--cds-syntax-invalid:#da1e28;--cds-syntax-keyword:#0f62fe;--cds-syntax-label-name:#0f62fe;--cds-syntax-line-comment:#198038;--cds-syntax-link:#0f62fe;--cds-syntax-list:#161616;--cds-syntax-literal:#161616;--cds-syntax-local:#0f62fe;--cds-syntax-logic-operator:#343a3f;--cds-syntax-macro-name:#161616;--cds-syntax-meta:#198038;--cds-syntax-modifier:#0f62fe;--cds-syntax-module-keyword:#6929c4;--cds-syntax-monospace:#161616;--cds-syntax-name:#0f62fe;--cds-syntax-namespace:#007d79;--cds-syntax-null:#161616;--cds-syntax-number:#198038;--cds-syntax-operator:#343a3f;--cds-syntax-operator-keyword:#0f62fe;--cds-syntax-paren:#343a3f;--cds-syntax-processing-instruction:#161616;--cds-syntax-property-name:#00539a;--cds-syntax-punctuation:#343a3f;--cds-syntax-quote:#198038;--cds-syntax-regexp:#6929c4;--cds-syntax-self:#007d79;--cds-syntax-separator:#343a3f;--cds-syntax-special:#0f62fe;--cds-syntax-special-string:#8a3ffc;--cds-syntax-square-bracket:#343a3f;--cds-syntax-standard:#0f62fe;--cds-syntax-strikethrough:#161616;--cds-syntax-string:#161616;--cds-syntax-strong:#161616;--cds-syntax-tag:#007d79;--cds-syntax-tag-name:#007d79;--cds-syntax-type:#007d79;--cds-syntax-type-name:#007d79;--cds-syntax-type-operator:#007d79;--cds-syntax-unit:#198038;--cds-syntax-update-operator:#343a3f;--cds-syntax-url:#343a3f;--cds-syntax-variable:#0f62fe;--cds-syntax-variable-name:#0f62fe}:host(.cds-aichat--snippet-container--fill-mode){block-size:100%}.cds-aichat--snippet{background:var(--cds-chat-shell-background,#fff);border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem);display:block;font-family:inherit;max-inline-size:100%;padding:0;white-space:normal}.cds-aichat--snippet code{font-family:var(--cds-code-01-font-family,\"IBM Plex Mono\",system-ui,-apple-system,BlinkMacSystemFont,\".SFNSText-Regular\",monospace);font-size:var(--cds-code-01-font-size,.75rem);font-weight:var(--cds-code-01-font-weight,400);letter-spacing:var(--cds-code-01-letter-spacing,.32px);line-height:var(--cds-code-01-line-height,1.33333)}:host(.cds-aichat--snippet-container--fill-mode) .cds-aichat--snippet{block-size:100%;display:flex;flex-direction:column}:host-context([data-theme=g100]),:host-context([data-theme=g90]),:host-context([storybook-carbon-theme=g100]),:host-context([storybook-carbon-theme=g90]){--cds-syntax-angle-bracket:#8d8d8d;--cds-syntax-annotation:#08bdba;--cds-syntax-arithmetic-operator:#e0e0e0;--cds-syntax-atom:#f4f4f4;--cds-syntax-attribute:#33b1ff;--cds-syntax-attribute-name:#33b1ff;--cds-syntax-attribute-value:#f4f4f4;--cds-syntax-bitwise-operator:#e0e0e0;--cds-syntax-block-comment:#42be65;--cds-syntax-bool:#f4f4f4;--cds-syntax-brace:#e0e0e0;--cds-syntax-bracket:#e0e0e0;--cds-syntax-character:#f4f4f4;--cds-syntax-class-name:#3ddbd9;--cds-syntax-color:#f4f4f4;--cds-syntax-comment:#42be65;--cds-syntax-compare-operator:#e0e0e0;--cds-syntax-constant:#4589ff;--cds-syntax-content:#f4f4f4;--cds-syntax-content-separator:#e0e0e0;--cds-syntax-control-keyword:#be95ff;--cds-syntax-control-operator:#be95ff;--cds-syntax-definition:#33b1ff;--cds-syntax-definition-keyword:#33b1ff;--cds-syntax-definition-operator:#33b1ff;--cds-syntax-deleted:#a2191f;--cds-syntax-deref-operator:#e0e0e0;--cds-syntax-doc-comment:#42be65;--cds-syntax-doc-string:#f4f4f4;--cds-syntax-document-meta:#42be65;--cds-syntax-emphasis:#f4f4f4;--cds-syntax-escape:#e0e0e0;--cds-syntax-float:#6fdc8c;--cds-syntax-function:#f1c21b;--cds-syntax-heading:#33b1ff;--cds-syntax-heading-1:#33b1ff;--cds-syntax-heading-2:#33b1ff;--cds-syntax-heading-3:#33b1ff;--cds-syntax-heading-4:#33b1ff;--cds-syntax-heading-5:#33b1ff;--cds-syntax-heading-6:#33b1ff;--cds-syntax-inserted:#198038;--cds-syntax-integer:#6fdc8c;--cds-syntax-invalid:#fa4d56;--cds-syntax-keyword:#4589ff;--cds-syntax-label-name:#a6c8ff;--cds-syntax-line-comment:#42be65;--cds-syntax-link:#4589ff;--cds-syntax-list:#f4f4f4;--cds-syntax-literal:#f4f4f4;--cds-syntax-local:#a6c8ff;--cds-syntax-logic-operator:#e0e0e0;--cds-syntax-macro-name:#f4f4f4;--cds-syntax-meta:#42be65;--cds-syntax-modifier:#4589ff;--cds-syntax-module-keyword:#be95ff;--cds-syntax-monospace:#f4f4f4;--cds-syntax-name:#a6c8ff;--cds-syntax-namespace:#3ddbd9;--cds-syntax-null:#f4f4f4;--cds-syntax-number:#6fdc8c;--cds-syntax-operator:#e0e0e0;--cds-syntax-operator-keyword:#4589ff;--cds-syntax-paren:#e0e0e0;--cds-syntax-processing-instruction:#f4f4f4;--cds-syntax-property-name:#33b1ff;--cds-syntax-punctuation:#e0e0e0;--cds-syntax-quote:#42be65;--cds-syntax-regexp:#be95ff;--cds-syntax-self:#3ddbd9;--cds-syntax-separator:#e0e0e0;--cds-syntax-special:#4589ff;--cds-syntax-special-string:#be95ff;--cds-syntax-square-bracket:#e0e0e0;--cds-syntax-standard:#4589ff;--cds-syntax-strikethrough:#f4f4f4;--cds-syntax-string:#f4f4f4;--cds-syntax-strong:#f4f4f4;--cds-syntax-tag:#3ddbd9;--cds-syntax-tag-name:#3ddbd9;--cds-syntax-type:#3ddbd9;--cds-syntax-type-name:#3ddbd9;--cds-syntax-type-operator:#3ddbd9;--cds-syntax-unit:#6fdc8c;--cds-syntax-update-operator:#e0e0e0;--cds-syntax-url:#e0e0e0;--cds-syntax-variable:#a6c8ff;--cds-syntax-variable-name:#a6c8ff}.cm-diff-line-inserted{background-color:var(--cds-syntax-inserted)}.cm-diff-line-deleted{background-color:var(--cds-syntax-deleted)}:host([disabled]) .cds-aichat--snippet{background-color:var(--cds-layer);color:var(--cds-text-disabled,rgba(22,22,22,.25))}:host([disabled]) .cm-gutters{background-color:var(--cds-layer)}:host([disabled]) .cds-aichat--snippet-container{cursor:not-allowed}:host([disabled]) .cm-editor{pointer-events:none}:host([disabled]) .cds-aichat--snippet__icon{fill:var(--cds-icon-disabled,rgba(22,22,22,.25))}:host([hide-copy-button]) .cds-aichat--snippet-container pre{padding-inline-end:0}:host([wrap-text]) pre{white-space:pre-wrap;word-wrap:break-word}.cds-aichat--snippet-container{max-block-size:var(--cds-snippet-max-height,none);min-block-size:var(--cds-snippet-min-height,auto);order:1;overflow-y:auto;pointer-events:auto;position:relative;transition:max-height motion(standard,productive) .15s}.cds-aichat--snippet-container:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds-aichat--snippet-container:focus{outline-style:dotted}}.cds-aichat--snippet-container:focus{outline-offset:0}.cds-aichat--snippet-container pre{overflow:auto;padding-block-end:1.5rem;padding-inline-end:1.5rem}.cds-aichat--snippet-container pre code{overflow:hidden}.cds-aichat--snippet-container--fill-mode{block-size:100%;max-block-size:100%;overflow-y:auto}.cds-aichat--snippet--codemirror ::slotted(*){display:none}.cds-aichat--snippet--codemirror .cds-aichat--code-editor{block-size:100%;inline-size:100%}.cds-aichat--snippet__editor-skeleton{align-items:center;background:var(--cds-layer-01,#f4f4f4);display:flex;inset:0;padding:1rem;pointer-events:none;position:absolute;z-index:1}.cds-aichat--snippet__editor-skeleton cds-skeleton-text{inline-size:100%}.cds-aichat--visually-hidden{display:none}.cds-aichat--snippet__header{border-block-end:1px solid var(--cds-border-subtle-02,#e0e0e0)}.cds-aichat--snippet__meta{display:flex}.cds-aichat--snippet__footer{border-block-start:1px solid var(--cds-border-subtle-02,#e0e0e0);display:flex;justify-content:flex-end}.cds-aichat--snippet-btn--text{color:var(--cds-text-primary,#161616)}.cds-aichat--snippet__icon{fill:var(--cds-icon-primary,#161616)}.cds-aichat--snippet__header-separator,.cds-aichat--snippet__language,.cds-aichat--snippet__linecount{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)}.cds-aichat--snippet__header-separator{padding-inline-end:.25rem;padding-inline-start:.25rem}.cds-aichat--snippet-container--collapsed{overflow-x:auto;overflow-y:hidden;transition:max-height motion(standard,productive) .15s}.cds-aichat--icon-chevron--down{transform:rotate(0deg);transition:transform .3s}:host([expanded-code]) .cds-aichat--icon-chevron--down{transform:rotate(180deg);transition:transform .3s}"]);
11
11
 
12
12
  export { styles as default };
13
13
  //# sourceMappingURL=code-snippet.scss.js.map
@@ -8,19 +8,33 @@
8
8
  import { __decorate } from 'tslib';
9
9
  import '../../markdown/src/markdown.js';
10
10
  import 'markdown-it';
11
- import '@carbon/web-components/es/components/button/index.js';
11
+ import { LitElement, html, nothing } from 'lit';
12
+ import 'lit/directives/unsafe-html.js';
13
+ import prefix from '../../../globals/settings.js';
14
+ import 'dompurify';
15
+ import '../../markdown/src/utils/inline-validation.js';
16
+ import 'lit/directives/repeat.js';
17
+ import '@carbon/web-components/es/components/list/index.js';
12
18
  import '@carbon/web-components/es/components/checkbox/index.js';
19
+ import '../../code-snippet/src/code-snippet.js';
20
+ import '@carbon/web-components/es/components/code-snippet/defs.js';
21
+ import '../../card/src/card.js';
22
+ import '../../card/src/card-footer.js';
23
+ import '../../card/src/card-steps.js';
24
+ import '../../table/src/table.js';
25
+ import '../../markdown/src/utils/inline-run-projection.js';
26
+ import '../../markdown/src/utils/lit-directives.js';
27
+ import '../../markdown/src/inline-markdown.scss.js';
28
+ import '@carbon/web-components/es/components/button/index.js';
13
29
  import '@carbon/web-components/es/components/tag/index.js';
14
30
  import '@carbon/web-components/es/components/icon-button/index.js';
15
31
  import '@carbon/web-components/es/components/layer/index.js';
16
32
  import '@carbon/web-components/es/components/textarea/index.js';
17
33
  import { iconLoader } from '@carbon/web-components/es/globals/internal/icon-loader.js';
18
34
  import Close16 from '@carbon/icons/es/close/16.js';
19
- import { LitElement, html, nothing } from 'lit';
20
35
  import { property, state } from 'lit/decorators.js';
21
36
  import { classMap } from 'lit/directives/class-map.js';
22
37
  import { carbonElement } from '../../../globals/decorators/carbon-element.js';
23
- import prefix from '../../../globals/settings.js';
24
38
  import commonStyles from '../../../globals/scss/common.scss.js';
25
39
  import styles from './feedback.scss.js';
26
40