@carbon/ai-chat-components 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/custom-elements.json +917 -258
- package/es/components/card/src/card-footer.scss.js +1 -1
- package/es/components/card/src/card-steps.scss.js +1 -1
- package/es/components/card/src/card.scss.js +1 -1
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/chat-shell/index.d.ts +2 -2
- package/es/components/chat-shell/index.js +2 -2
- package/es/components/chat-shell/src/{cds-aichat-panel.d.ts → panel.d.ts} +11 -2
- package/es/components/chat-shell/src/{cds-aichat-panel.js → panel.js} +79 -26
- package/es/components/chat-shell/src/panel.js.map +1 -0
- package/es/components/chat-shell/src/panel.scss.js +13 -0
- package/es/components/chat-shell/src/panel.scss.js.map +1 -0
- package/es/components/chat-shell/src/{cds-aichat-shell.d.ts → shell.d.ts} +20 -3
- package/es/components/chat-shell/src/{cds-aichat-shell.js → shell.js} +298 -97
- package/es/components/chat-shell/src/shell.js.map +1 -0
- package/es/components/chat-shell/src/shell.scss.js +13 -0
- package/es/components/chat-shell/src/shell.scss.js.map +1 -0
- package/es/components/chat-shell/src/workspace-manager-utils.d.ts +90 -0
- package/es/components/chat-shell/src/workspace-manager-utils.js +120 -0
- package/es/components/chat-shell/src/workspace-manager-utils.js.map +1 -0
- package/es/components/chat-shell/src/workspace-manager.d.ts +52 -8
- package/es/components/chat-shell/src/workspace-manager.js +330 -117
- package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.d.ts +27 -11
- package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es/components/markdown/src/markdown.js +1 -1
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +4 -0
- package/es/components/toolbar/src/toolbar.js +62 -28
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.js +6 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js +1 -1
- package/es/components/workspace-shell/src/workspace-shell.d.ts +0 -1
- package/es/components/workspace-shell/src/workspace-shell.js +0 -6
- package/es/components/workspace-shell/src/workspace-shell.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es/react/chat-shell.d.ts +3 -3
- package/es/react/chat-shell.js +4 -4
- package/es/react/chat-shell.js.map +1 -1
- package/es/react/panel.d.ts +3 -3
- package/es/react/panel.js +5 -4
- package/es/react/panel.js.map +1 -1
- package/es/react/toolbar.js +1 -1
- package/es/react/toolbar.js.map +1 -1
- package/es-custom/components/card/src/card-footer.scss.js +1 -1
- package/es-custom/components/card/src/card-steps.scss.js +1 -1
- package/es-custom/components/card/src/card.scss.js +1 -1
- package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
- package/es-custom/components/chat-shell/index.d.ts +2 -2
- package/es-custom/components/chat-shell/index.js +2 -2
- package/es-custom/components/chat-shell/src/{cds-aichat-panel.d.ts → panel.d.ts} +11 -2
- package/es-custom/components/chat-shell/src/{cds-aichat-panel.js → panel.js} +79 -26
- package/es-custom/components/chat-shell/src/panel.js.map +1 -0
- package/es-custom/components/chat-shell/src/panel.scss.js +13 -0
- package/es-custom/components/chat-shell/src/panel.scss.js.map +1 -0
- package/es-custom/components/chat-shell/src/{cds-aichat-shell.d.ts → shell.d.ts} +20 -3
- package/es-custom/components/chat-shell/src/{cds-aichat-shell.js → shell.js} +298 -97
- package/es-custom/components/chat-shell/src/shell.js.map +1 -0
- package/es-custom/components/chat-shell/src/shell.scss.js +13 -0
- package/es-custom/components/chat-shell/src/shell.scss.js.map +1 -0
- package/es-custom/components/chat-shell/src/workspace-manager-utils.d.ts +90 -0
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js +120 -0
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js.map +1 -0
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +52 -8
- package/es-custom/components/chat-shell/src/workspace-manager.js +330 -117
- package/es-custom/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +27 -11
- package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es-custom/components/markdown/src/markdown.js +1 -1
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.d.ts +4 -0
- package/es-custom/components/toolbar/src/toolbar.js +62 -28
- package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +6 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.js +0 -6
- package/es-custom/components/workspace-shell/src/workspace-shell.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es-custom/react/chat-shell.d.ts +3 -3
- package/es-custom/react/chat-shell.js +4 -4
- package/es-custom/react/chat-shell.js.map +1 -1
- package/es-custom/react/panel.d.ts +3 -3
- package/es-custom/react/panel.js +5 -4
- package/es-custom/react/panel.js.map +1 -1
- package/es-custom/react/toolbar.js +1 -1
- package/es-custom/react/toolbar.js.map +1 -1
- package/package.json +13 -10
- package/es/components/chat-shell/src/cds-aichat-panel.js.map +0 -1
- package/es/components/chat-shell/src/cds-aichat-panel.scss.js +0 -13
- package/es/components/chat-shell/src/cds-aichat-panel.scss.js.map +0 -1
- package/es/components/chat-shell/src/cds-aichat-shell.js.map +0 -1
- package/es/components/chat-shell/src/cds-aichat-shell.scss.js +0 -13
- package/es/components/chat-shell/src/cds-aichat-shell.scss.js.map +0 -1
- package/es-custom/components/chat-shell/src/cds-aichat-panel.js.map +0 -1
- package/es-custom/components/chat-shell/src/cds-aichat-panel.scss.js +0 -13
- package/es-custom/components/chat-shell/src/cds-aichat-panel.scss.js.map +0 -1
- package/es-custom/components/chat-shell/src/cds-aichat-shell.js.map +0 -1
- package/es-custom/components/chat-shell/src/cds-aichat-shell.scss.js +0 -13
- package/es-custom/components/chat-shell/src/cds-aichat-shell.scss.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.js","sources":["../../../../src/components/markdown/src/markdown.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAeH;;;AAGG;AAEH,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU,CAAA;AAA1C,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,YAAY,GAAG,KAAK;AAEpB;;AAEG;QAEH,IAAA,CAAA,UAAU,GAAG,KAAK;AAElB;;;AAGG;QAEH,IAAA,CAAA,SAAS,GAAG,KAAK;AAEjB;;AAEG;QAEH,IAAA,CAAA,SAAS,GAAG,IAAI;;;QAKhB,IAAA,CAAA,qBAAqB,GAAG,iBAAiB;;QAIzC,IAAA,CAAA,gBAAgB,GAAG,eAAe;;QAIlC,IAAA,CAAA,YAAY,GAAG,WAAW;;QAI1B,IAAA,CAAA,gBAAgB,GAAG,iBAAiB;;QAIpC,IAAA,CAAA,iBAAiB,GAAG,qBAAqB;;QAIzC,IAAA,CAAA,MAAM,GAAG,IAAI;;;QAqBb,IAAA,CAAA,QAAQ,GAAG,SAAS;;QAIpB,IAAA,CAAA,YAAY,GAAG,WAAW;;QAI1B,IAAA,CAAA,YAAY,GAAG,WAAW;;QAI1B,IAAA,CAAA,cAAc,GAAG,WAAW;AAa5B;;AAEG;QACK,IAAA,CAAA,YAAY,GAAG,KAAK;AAE5B;;AAEG;QACK,IAAA,CAAA,WAAW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EAAA,WAAA,EAAA,MAAA,CAAA;AAMF,UAAA,CAAA;AADC,IAAA,KAAK;AACwC,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,MAAA,CAAA;AAvM1C,iBAAiB,GAAA,UAAA,CAAA;AADtB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,SAAA,CAAW;AAC7B,CAAA,EAAA,iBAAiB,CAiVtB;AASD,0BAAe,iBAAiB;;;;"}
|
|
@@ -26,11 +26,15 @@ declare class CDSAIChatToolbar extends LitElement {
|
|
|
26
26
|
overflow: boolean;
|
|
27
27
|
private measuring;
|
|
28
28
|
private overflowHandler?;
|
|
29
|
+
private visibilityObserver?;
|
|
30
|
+
private static readonly OVERFLOW_MENU_LABEL;
|
|
29
31
|
connectedCallback(): void;
|
|
30
32
|
firstUpdated(): void;
|
|
31
33
|
updated(changedProps: Map<string, unknown>): void;
|
|
32
34
|
private setupOverflowHandler;
|
|
33
35
|
disconnectedCallback(): void;
|
|
36
|
+
private renderIconButton;
|
|
37
|
+
private getOverflowMenuSize;
|
|
34
38
|
render(): import("lit-html").TemplateResult<1>;
|
|
35
39
|
static styles: any;
|
|
36
40
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { __decorate } from 'tslib';
|
|
9
|
-
import { LitElement,
|
|
9
|
+
import { LitElement, html, nothing } from 'lit';
|
|
10
10
|
import { state, property, query } from 'lit/decorators.js';
|
|
11
11
|
import { classMap } from 'lit/directives/class-map.js';
|
|
12
12
|
import { repeat } from 'lit/directives/repeat.js';
|
|
@@ -27,6 +27,7 @@ import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
|
27
27
|
*
|
|
28
28
|
* @license
|
|
29
29
|
*/
|
|
30
|
+
var CDSAIChatToolbar_1;
|
|
30
31
|
/**
|
|
31
32
|
* Toolbar.
|
|
32
33
|
*
|
|
@@ -37,7 +38,7 @@ import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
|
37
38
|
* @slot toolbar-ai-label - Defines the area for displaying the AI label in the toolbar.
|
|
38
39
|
*
|
|
39
40
|
*/
|
|
40
|
-
let CDSAIChatToolbar = class CDSAIChatToolbar extends LitElement {
|
|
41
|
+
let CDSAIChatToolbar = CDSAIChatToolbar_1 = class CDSAIChatToolbar extends LitElement {
|
|
41
42
|
constructor() {
|
|
42
43
|
super(...arguments);
|
|
43
44
|
/** Hidden actions rendered in the overflow menu.
|
|
@@ -49,6 +50,24 @@ let CDSAIChatToolbar = class CDSAIChatToolbar extends LitElement {
|
|
|
49
50
|
/** Should actions be overflowing. */
|
|
50
51
|
this.overflow = false;
|
|
51
52
|
this.measuring = true;
|
|
53
|
+
this.renderIconButton = (action) => {
|
|
54
|
+
return html `
|
|
55
|
+
<cds-icon-button
|
|
56
|
+
?data-fixed=${action.fixed}
|
|
57
|
+
@click=${action.onClick}
|
|
58
|
+
size=${action.size || "md"}
|
|
59
|
+
align="bottom-end"
|
|
60
|
+
kind="ghost"
|
|
61
|
+
enter-delay-ms="0"
|
|
62
|
+
leave-delay-ms="0"
|
|
63
|
+
>
|
|
64
|
+
${iconLoader(action.icon, {
|
|
65
|
+
slot: "icon",
|
|
66
|
+
})}
|
|
67
|
+
<span slot="tooltip-content">${action.text}</span>
|
|
68
|
+
</cds-icon-button>
|
|
69
|
+
`;
|
|
70
|
+
};
|
|
52
71
|
}
|
|
53
72
|
connectedCallback() {
|
|
54
73
|
super.connectedCallback();
|
|
@@ -79,7 +98,27 @@ let CDSAIChatToolbar = class CDSAIChatToolbar extends LitElement {
|
|
|
79
98
|
if (!this.container || !this.overflow) {
|
|
80
99
|
return;
|
|
81
100
|
}
|
|
101
|
+
const containerWidth = Math.round(this.container.getBoundingClientRect().width);
|
|
102
|
+
if (containerWidth === 0) {
|
|
103
|
+
if (!this.visibilityObserver) {
|
|
104
|
+
this.visibilityObserver = new ResizeObserver(() => {
|
|
105
|
+
const width = Math.round(this.container.getBoundingClientRect().width);
|
|
106
|
+
if (width > 0) {
|
|
107
|
+
this.visibilityObserver?.disconnect();
|
|
108
|
+
this.visibilityObserver = undefined;
|
|
109
|
+
// Use requestAnimationFrame to avoid ResizeObserver loop errors
|
|
110
|
+
requestAnimationFrame(() => {
|
|
111
|
+
this.setupOverflowHandler();
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
this.visibilityObserver.observe(this.container);
|
|
116
|
+
}
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
82
119
|
this.overflowHandler?.disconnect();
|
|
120
|
+
this.visibilityObserver?.disconnect();
|
|
121
|
+
this.visibilityObserver = undefined;
|
|
83
122
|
this.overflowHandler = createOverflowHandler({
|
|
84
123
|
container: this.container,
|
|
85
124
|
dimension: "width",
|
|
@@ -90,29 +129,21 @@ let CDSAIChatToolbar = class CDSAIChatToolbar extends LitElement {
|
|
|
90
129
|
}
|
|
91
130
|
disconnectedCallback() {
|
|
92
131
|
this.overflowHandler?.disconnect();
|
|
132
|
+
this.visibilityObserver?.disconnect();
|
|
133
|
+
this.visibilityObserver = undefined;
|
|
93
134
|
super.disconnectedCallback();
|
|
94
135
|
}
|
|
136
|
+
getOverflowMenuSize() {
|
|
137
|
+
return this.actions?.[0]?.size || "md";
|
|
138
|
+
}
|
|
95
139
|
render() {
|
|
96
|
-
const fixedActions = this.actions.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
size=${action.size || "md"}
|
|
104
|
-
align="bottom-end"
|
|
105
|
-
kind="ghost"
|
|
106
|
-
enter-delay-ms="0"
|
|
107
|
-
leave-delay-ms="0"
|
|
108
|
-
>
|
|
109
|
-
${iconLoader(action.icon, {
|
|
110
|
-
slot: "icon",
|
|
111
|
-
})}
|
|
112
|
-
<span slot="tooltip-content">${action.text}</span>
|
|
113
|
-
</cds-icon-button>
|
|
114
|
-
`;
|
|
115
|
-
};
|
|
140
|
+
const { fixedActions, nonFixedActions } = this.actions.reduce((acc, action) => {
|
|
141
|
+
action.fixed
|
|
142
|
+
? acc.fixedActions.push(action)
|
|
143
|
+
: acc.nonFixedActions.push(action);
|
|
144
|
+
return acc;
|
|
145
|
+
}, { fixedActions: [], nonFixedActions: [] });
|
|
146
|
+
const showOverflowMenu = this.measuring || this.hiddenItems.length > 0;
|
|
116
147
|
return html `
|
|
117
148
|
<div
|
|
118
149
|
data-rounded="top"
|
|
@@ -132,11 +163,11 @@ let CDSAIChatToolbar = class CDSAIChatToolbar extends LitElement {
|
|
|
132
163
|
|
|
133
164
|
<div data-fixed><slot name="decorator"></slot></div>
|
|
134
165
|
|
|
135
|
-
${repeat(nonFixedActions, (
|
|
136
|
-
${
|
|
166
|
+
${repeat(nonFixedActions, (action) => action.text, this.renderIconButton)}
|
|
167
|
+
${showOverflowMenu
|
|
137
168
|
? html `
|
|
138
169
|
<cds-overflow-menu
|
|
139
|
-
size=${this.
|
|
170
|
+
size=${this.getOverflowMenuSize()}
|
|
140
171
|
align="bottom-end"
|
|
141
172
|
data-offset
|
|
142
173
|
?data-hidden=${this.hiddenItems.length === 0}
|
|
@@ -149,7 +180,9 @@ let CDSAIChatToolbar = class CDSAIChatToolbar extends LitElement {
|
|
|
149
180
|
class: `${prefix}-toolbar-overflow-icon`,
|
|
150
181
|
slot: "icon",
|
|
151
182
|
})}
|
|
152
|
-
<span slot="tooltip-content"
|
|
183
|
+
<span slot="tooltip-content"
|
|
184
|
+
>${CDSAIChatToolbar_1.OVERFLOW_MENU_LABEL}</span
|
|
185
|
+
>
|
|
153
186
|
<cds-overflow-menu-body flipped>
|
|
154
187
|
${repeat(this.hiddenItems, (item) => item.text, (item) => html `
|
|
155
188
|
<cds-overflow-menu-item @click=${item.onClick}>
|
|
@@ -160,11 +193,12 @@ let CDSAIChatToolbar = class CDSAIChatToolbar extends LitElement {
|
|
|
160
193
|
</cds-overflow-menu>
|
|
161
194
|
`
|
|
162
195
|
: nothing}
|
|
163
|
-
${repeat(fixedActions, (
|
|
196
|
+
${repeat(fixedActions, (action) => action.text, this.renderIconButton)}
|
|
164
197
|
</div>
|
|
165
198
|
`;
|
|
166
199
|
}
|
|
167
200
|
};
|
|
201
|
+
CDSAIChatToolbar.OVERFLOW_MENU_LABEL = "Options";
|
|
168
202
|
CDSAIChatToolbar.styles = styles;
|
|
169
203
|
__decorate([
|
|
170
204
|
state()
|
|
@@ -181,7 +215,7 @@ __decorate([
|
|
|
181
215
|
__decorate([
|
|
182
216
|
state()
|
|
183
217
|
], CDSAIChatToolbar.prototype, "measuring", void 0);
|
|
184
|
-
CDSAIChatToolbar = __decorate([
|
|
218
|
+
CDSAIChatToolbar = CDSAIChatToolbar_1 = __decorate([
|
|
185
219
|
carbonElement(`${prefix}-toolbar`)
|
|
186
220
|
], CDSAIChatToolbar);
|
|
187
221
|
var CDSAIChatToolbar$1 = CDSAIChatToolbar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.js","sources":["../../../../src/components/toolbar/src/toolbar.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG
|
|
1
|
+
{"version":3,"file":"toolbar.js","sources":["../../../../src/components/toolbar/src/toolbar.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;;AAyBH;;;;;;;;;AASG;AAEH,IAAM,gBAAgB,GAAA,kBAAA,GAAtB,MAAM,gBAAiB,SAAQ,UAAU,CAAA;AAAzC,IAAA,WAAA,GAAA;;AACE;;AAEG;QACc,IAAA,CAAA,WAAW,GAAa,EAAE;;QAI3C,IAAA,CAAA,OAAO,GAAa,EAAE;;QAItB,IAAA,CAAA,QAAQ,GAAG,KAAK;QAOC,IAAA,CAAA,SAAS,GAAG,IAAI;AAqFzB,QAAA,IAAA,CAAA,gBAAgB,GAAG,CAAC,MAAc,KAAI;AAC5C,YAAA,OAAO,IAAI,CAAA;;AAEO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,GAAA,kBAAA,GAAA,UAAA,CAAA;AADrB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,QAAA,CAAU;AAC5B,CAAA,EAAA,gBAAgB,CA2MrB;AAGD,yBAAe,gBAAgB;;;;"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css([":host :host([data-rounded=\"\"]),:host [data-rounded=\"\"]{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=\"\"])::part(button),:host :host([data-rounded=\"\"])::part(link),:host [data-rounded=\"\"]::part(button),:host [data-rounded=\"\"]::part(link){border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);outline-offset:-.0625rem}:host :host([data-rounded=\"\"])>:only-child,:host [data-rounded=\"\"]>:only-child{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top]),:host [data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left]),:host [data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right]),:host [data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]),:host [data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]),:host [data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]),:host [data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child,:host [data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-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){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child,:host [data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-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){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host [data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-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){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host [data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-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){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host [data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-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){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host [data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-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){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host [data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-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){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host [data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-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){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child,:host [data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child::part(button),:host [data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child,:host [data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-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){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child,:host [data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-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){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child,:host [data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host [data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child,:host [data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-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){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child,:host [data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-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){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host{display:block}:host .cds-aichat-toolbar{align-items:flex-start;block-size:100%;display:flex;min-block-size:2.5rem}:host .cds-aichat-toolbar cds-button:not(:defined),:host .cds-aichat-toolbar cds-overflow-menu:not(:defined){display:none}:host .cds-aichat-toolbar-overflow-icon{align-self:unset;color:var(--cds-icon-primary,#161616)}:host .cds-aichat-toolbar [data-floating-menu-container]{position:relative}:host .cds-aichat-toolbar [data-hidden]:not([data-fixed]){display:none}:host .cds-aichat-toolbar__title{color:var(--cds-text-secondary,#525252);margin-block:auto;margin-inline-end:auto;min-inline-size:4rem;padding-inline:.75rem}:host .cds-aichat-toolbar__fixed-actions{margin-block:auto}:host ::slotted([slot=decorator]){min-block-size:2.5rem;min-inline-size:2.5rem}"]);
|
|
10
|
+
var styles = css([":host :host([data-rounded=\"\"]),:host [data-rounded=\"\"]{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=\"\"])::part(button),:host :host([data-rounded=\"\"])::part(link),:host [data-rounded=\"\"]::part(button),:host [data-rounded=\"\"]::part(link){border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);outline-offset:-.0625rem}:host :host([data-rounded=\"\"])>:only-child,:host [data-rounded=\"\"]>:only-child{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top]),:host [data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left]),:host [data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right]),:host [data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]),:host [data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]),:host [data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]),:host [data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child,:host [data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-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){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child,:host [data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-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){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host [data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-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){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host [data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-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){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host [data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-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){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host [data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-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){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host [data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-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){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host [data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-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){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child,:host [data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child::part(button),:host [data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child,:host [data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-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){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child,:host [data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-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){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child,:host [data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host [data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child,:host [data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-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){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child,:host [data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-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){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host{display:block;max-inline-size:100%;min-inline-size:0}:host .cds-aichat-toolbar{align-items:flex-start;block-size:100%;display:flex;inline-size:100%;max-inline-size:100%;min-block-size:2.5rem;min-inline-size:0}:host .cds-aichat-toolbar cds-button:not(:defined),:host .cds-aichat-toolbar cds-overflow-menu:not(:defined){display:none}:host .cds-aichat-toolbar-overflow-icon{align-self:unset;color:var(--cds-icon-primary,#161616)}:host .cds-aichat-toolbar [data-floating-menu-container]{position:relative}:host .cds-aichat-toolbar [data-hidden]:not([data-fixed]){display:none}:host .cds-aichat-toolbar__title{color:var(--cds-text-secondary,#525252);margin-block:auto;margin-inline-end:auto;min-inline-size:4rem;padding-inline:.75rem}:host .cds-aichat-toolbar__fixed-actions{margin-block:auto}:host ::slotted([slot=decorator]){align-items:center;display:flex;justify-content:center;margin-block:auto;min-block-size:2.5rem;min-inline-size:2.5rem}"]);
|
|
11
11
|
|
|
12
12
|
export { styles as default };
|
|
13
13
|
//# sourceMappingURL=toolbar.scss.js.map
|
|
@@ -41,7 +41,12 @@ let CDSAIChatWorkspaceShellFooter = class CDSAIChatWorkspaceShellFooter extends
|
|
|
41
41
|
super.connectedCallback();
|
|
42
42
|
this.setAttribute("data-rounded", "bottom");
|
|
43
43
|
// Observe parent size changes
|
|
44
|
-
|
|
44
|
+
// Use requestAnimationFrame to avoid ResizeObserver loop errors
|
|
45
|
+
this._ro = new ResizeObserver(() => {
|
|
46
|
+
requestAnimationFrame(() => {
|
|
47
|
+
this._updateStacked();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
45
50
|
if (this.parentElement) {
|
|
46
51
|
this._ro.observe(this.parentElement);
|
|
47
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-shell-footer.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-footer.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAqBH;;;;AAIG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU,CAAA;AAAtD,IAAA,WAAA,GAAA;;QAMU,IAAA,CAAA,UAAU,GAAG,KAAK;AAE1B;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,QAAQ;QAGf,IAAA,CAAA,OAAO,GAAa,EAAE;
|
|
1
|
+
{"version":3,"file":"workspace-shell-footer.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-footer.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAqBH;;;;AAIG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU,CAAA;AAAtD,IAAA,WAAA,GAAA;;QAMU,IAAA,CAAA,UAAU,GAAG,KAAK;AAE1B;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,QAAQ;QAGf,IAAA,CAAA,OAAO,GAAa,EAAE;IAiHxB;IA/GE,iBAAiB,GAAA;QACf,KAAK,CAAC,iBAAiB,EAAE;AACzB,QAAA,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,QAAQ,CAAC;;;AAI3C,QAAA,IAAI,CAAC,GAAG,GAAG,IAAI,cAAc,CAAC,MAAK;YACjC,qBAAqB,CAAC,MAAK;gBACzB,IAAI,CAAC,cAAc,EAAE;AACvB,YAAA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;AACF,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC;QACtC;IACF;AAEA,IAAA,OAAO,CAAC,YAA8B,EAAA;AACpC,QAAA,IAAI,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;YAC/B,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC7B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA,EAAG,MAAM,CAAA,sCAAA,CAAwC,CAAC;YACv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hB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE;AAClB,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAfnB,6BAA6B,GAAA,UAAA,CAAA;AADlC,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,uBAAA,CAAyB;AAC3C,CAAA,EAAA,6BAA6B,CAgIlC;AAGD,sCAAe,6BAA6B;;;;"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css([":host([data-rounded=\"\"]),[data-rounded=\"\"]{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=\"\"])::part(button),:host([data-rounded=\"\"])::part(link),[data-rounded=\"\"]::part(button),[data-rounded=\"\"]::part(link){border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);outline-offset:-.0625rem}:host([data-rounded=\"\"])>:only-child,[data-rounded=\"\"]>:only-child{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top]),[data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left]),[data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right]),[data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]),[data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left]),[data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right]),[data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:first-child,[data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),[data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:last-child,[data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),[data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left]:not([data-stacked]))>:first-child,[data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),[data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right]:not([data-stacked]))>:last-child,[data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),[data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:first-child,[data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),[data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:last-child,[data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),[data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,[data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),[data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,[data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),[data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top][data-stacked])>:first-child,[data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top][data-stacked])>:first-child::part(button),[data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right][data-stacked])>:first-child,[data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right][data-stacked])>:first-child::part(button),[data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left][data-stacked])>:first-child,[data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left][data-stacked])>:first-child::part(button),[data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom][data-stacked])>:last-child,[data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom][data-stacked])>:last-child::part(button),[data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right][data-stacked])>:last-child,[data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),[data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left][data-stacked])>:last-child,[data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),[data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host(cds-aichat-workspace-shell-footer){--cds-aichat-rounded-modifier-radius:0.5rem;align-items:stretch;border-block-start:solid .0625rem var(--cds-border-subtle-00,#e0e0e0);display:grid}@media (max-width:41.98rem){:host(cds-aichat-workspace-shell-footer){grid-auto-flow:row;grid-template-columns:1fr}}:host(.cds-aichat-workspace-shell-footer__three-buttons){grid-template-columns:50% 25% 25%}@media (max-width:41.98rem){:host(.cds-aichat-workspace-shell-footer__three-buttons){grid-auto-flow:row;grid-template-columns:1fr}}:host(:not(.cds-aichat-workspace-shell-footer__three-buttons)){grid-template-columns:repeat(auto-fit,minmax(80px,auto))}@media (max-width:41.98rem){:host(:not(.cds-aichat-workspace-shell-footer__three-buttons)){grid-auto-flow:row;grid-template-columns:1fr}}"]);
|
|
10
|
+
var styles = css([":host([data-rounded=\"\"]),[data-rounded=\"\"]{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=\"\"])::part(button),:host([data-rounded=\"\"])::part(link),[data-rounded=\"\"]::part(button),[data-rounded=\"\"]::part(link){border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);outline-offset:-.0625rem}:host([data-rounded=\"\"])>:only-child,[data-rounded=\"\"]>:only-child{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top]),[data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left]),[data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right]),[data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]),[data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left]),[data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right]),[data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:first-child,[data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),[data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:last-child,[data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),[data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left]:not([data-stacked]))>:first-child,[data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),[data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right]:not([data-stacked]))>:last-child,[data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),[data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:first-child,[data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),[data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:last-child,[data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),[data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,[data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),[data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,[data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),[data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top][data-stacked])>:first-child,[data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top][data-stacked])>:first-child::part(button),[data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right][data-stacked])>:first-child,[data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right][data-stacked])>:first-child::part(button),[data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left][data-stacked])>:first-child,[data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left][data-stacked])>:first-child::part(button),[data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom][data-stacked])>:last-child,[data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom][data-stacked])>:last-child::part(button),[data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right][data-stacked])>:last-child,[data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),[data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left][data-stacked])>:last-child,[data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),[data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host(cds-aichat-workspace-shell-footer){--cds-aichat-rounded-modifier-radius:0.5rem;align-items:stretch;border-block-start:solid .0625rem var(--cds-border-subtle-00,#e0e0e0);display:grid;margin-block-start:auto}@media (max-width:41.98rem){:host(cds-aichat-workspace-shell-footer){grid-auto-flow:row;grid-template-columns:1fr}}:host(.cds-aichat-workspace-shell-footer__three-buttons){grid-template-columns:50% 25% 25%}@media (max-width:41.98rem){:host(.cds-aichat-workspace-shell-footer__three-buttons){grid-auto-flow:row;grid-template-columns:1fr}}:host(:not(.cds-aichat-workspace-shell-footer__three-buttons)){grid-template-columns:repeat(auto-fit,minmax(80px,auto))}@media (max-width:41.98rem){:host(:not(.cds-aichat-workspace-shell-footer__three-buttons)){grid-auto-flow:row;grid-template-columns:1fr}}"]);
|
|
11
11
|
|
|
12
12
|
export { styles as default };
|
|
13
13
|
//# sourceMappingURL=workspace-shell-footer.scss.js.map
|
|
@@ -13,7 +13,6 @@ import { LitElement } from "lit";
|
|
|
13
13
|
declare class CDSAIChatWorkspaceShell extends LitElement {
|
|
14
14
|
static styles: any;
|
|
15
15
|
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
-
closeWorkspaceShell: () => void;
|
|
17
16
|
}
|
|
18
17
|
export { CDSAIChatWorkspaceShell };
|
|
19
18
|
export default CDSAIChatWorkspaceShell;
|
|
@@ -31,12 +31,6 @@ import styles from './workspace-shell.scss.js';
|
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
let CDSAIChatWorkspaceShell = class CDSAIChatWorkspaceShell extends LitElement {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(...arguments);
|
|
36
|
-
this.closeWorkspaceShell = () => {
|
|
37
|
-
console.log("closes the shell");
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
34
|
render() {
|
|
41
35
|
return html `
|
|
42
36
|
<slot name="toolbar"></slot>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-shell.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH;;;;;;;;;;AAUG;AAEH,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"workspace-shell.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH;;;;;;;;;;AAUG;AAEH,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU,CAAA;IAG9C,MAAM,GAAA;AACJ,QAAA,OAAO,IAAI,CAAA;;;;;;KAMV;IACH;;AAVO,uBAAA,CAAA,MAAM,GAAG,MAAH;AADT,uBAAuB,GAAA,UAAA,CAAA;AAD5B,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,gBAAA,CAAkB;AACpC,CAAA,EAAA,uBAAuB,CAY5B;AAGD,gCAAe,uBAAuB;;;;"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css(["a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{font-feature-settings:\"liga\" 1;border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}button,input,select,textarea{border-radius:0;font-family:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{background-color:var(--cds-background,#fff);color:var(--cds-text-primary,#161616);line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:none}table{border-collapse:collapse;border-spacing:0}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}html{font-size:100%}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;text-rendering:optimizeLegibility}code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:var(--cds-heading-06-font-size,2.625rem);font-weight:var(--cds-heading-06-font-weight,300);letter-spacing:var(--cds-heading-06-letter-spacing,0);line-height:var(--cds-heading-06-line-height,1.199)}h2{font-size:var(--cds-heading-05-font-size,2rem);font-weight:var(--cds-heading-05-font-weight,400);letter-spacing:var(--cds-heading-05-letter-spacing,0);line-height:var(--cds-heading-05-line-height,1.25)}h3{font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);letter-spacing:var(--cds-heading-04-letter-spacing,0);line-height:var(--cds-heading-04-line-height,1.28572)}h4{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}h5{font-size:var(--cds-heading-02-font-size,1rem);font-weight:var(--cds-heading-02-font-weight,600);letter-spacing:var(--cds-heading-02-letter-spacing,0);line-height:var(--cds-heading-02-line-height,1.5)}h6{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}p{font-size:var(--cds-body-02-font-size,1rem);font-weight:var(--cds-body-02-font-weight,400);letter-spacing:var(--cds-body-02-letter-spacing,0);line-height:var(--cds-body-02-line-height,1.5)}a{color:var(--cds-link-primary,#0062fe)}em{font-style:italic}:host(cds-aichat-workspace-shell){background-color:var(--cds-chat-shell-background);block-size:100%;border:.0625rem solid var(--cds-chat-bubble-border,#e0e0e0);border-radius:.5rem;box-shadow:-10px 0 100px -24px var(--cds-ai-popover-shadow-outer-01,rgba(0,67,206,.06)),0 10px 40px -24px var(--cds-ai-popover-shadow-outer-02,rgba(0,0,0,.04));box-sizing:border-box!important;color:var(--cds-text-secondary,#525252);display:flex;flex-direction:column;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);inline-size:100%;letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}:host(cds-aichat-workspace-shell) ::slotted([slot=notification]){box-sizing:border-box;max-inline-size:100%!important}::slotted(cds-aichat-toolbar){border-block-end:.0625rem solid var(--cds-chat-bubble-border);display:grid;
|
|
10
|
+
var styles = css(["a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{font-feature-settings:\"liga\" 1;border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}button,input,select,textarea{border-radius:0;font-family:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{background-color:var(--cds-background,#fff);color:var(--cds-text-primary,#161616);line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:none}table{border-collapse:collapse;border-spacing:0}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}html{font-size:100%}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;text-rendering:optimizeLegibility}code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:var(--cds-heading-06-font-size,2.625rem);font-weight:var(--cds-heading-06-font-weight,300);letter-spacing:var(--cds-heading-06-letter-spacing,0);line-height:var(--cds-heading-06-line-height,1.199)}h2{font-size:var(--cds-heading-05-font-size,2rem);font-weight:var(--cds-heading-05-font-weight,400);letter-spacing:var(--cds-heading-05-letter-spacing,0);line-height:var(--cds-heading-05-line-height,1.25)}h3{font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);letter-spacing:var(--cds-heading-04-letter-spacing,0);line-height:var(--cds-heading-04-line-height,1.28572)}h4{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}h5{font-size:var(--cds-heading-02-font-size,1rem);font-weight:var(--cds-heading-02-font-weight,600);letter-spacing:var(--cds-heading-02-letter-spacing,0);line-height:var(--cds-heading-02-line-height,1.5)}h6{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}p{font-size:var(--cds-body-02-font-size,1rem);font-weight:var(--cds-body-02-font-weight,400);letter-spacing:var(--cds-body-02-letter-spacing,0);line-height:var(--cds-body-02-line-height,1.5)}a{color:var(--cds-link-primary,#0062fe)}em{font-style:italic}:host(cds-aichat-workspace-shell){background-color:var(--cds-chat-shell-background);block-size:100%;border:.0625rem solid var(--cds-chat-bubble-border,#e0e0e0);border-radius:.5rem;box-shadow:-10px 0 100px -24px var(--cds-ai-popover-shadow-outer-01,rgba(0,67,206,.06)),0 10px 40px -24px var(--cds-ai-popover-shadow-outer-02,rgba(0,0,0,.04));box-sizing:border-box!important;color:var(--cds-text-secondary,#525252);display:flex;flex-direction:column;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);inline-size:100%;letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);overflow:auto}:host(cds-aichat-workspace-shell) slot[name=toolbar]{min-inline-size:0}:host(cds-aichat-workspace-shell) ::slotted([slot=notification]){box-sizing:border-box;max-inline-size:100%!important}::slotted(cds-aichat-toolbar){border-block-end:.0625rem solid var(--cds-chat-bubble-border);box-sizing:border-box;display:grid;inline-size:100%;max-inline-size:100%;min-inline-size:0}.cds-aichat-workspace-shell__toolbar-action{display:grid;grid-auto-columns:2.5rem;grid-auto-flow:column}.cds-aichat-workspace-shell__toolbar-action ::slotted(cds-ai-label){block-size:2.5rem}:host(cds-aichat-workspace-shell-body){block-size:100%;display:block;min-block-size:0;overflow:auto;padding:1.5rem 2rem}"]);
|
|
11
11
|
|
|
12
12
|
export { styles as default };
|
|
13
13
|
//# sourceMappingURL=workspace-shell.scss.js.map
|
package/es/react/chat-shell.d.ts
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
import React from "react";
|
|
10
|
-
import
|
|
11
|
-
declare const
|
|
12
|
-
export default
|
|
10
|
+
import CDSChatShellElement from "../components/chat-shell/src/shell.js";
|
|
11
|
+
declare const CDSAIChatShell: React.ForwardRefExoticComponent<Omit<Record<string, unknown>, "ref"> & React.RefAttributes<CDSChatShellElement>>;
|
|
12
|
+
export default CDSAIChatShell;
|
package/es/react/chat-shell.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { createComponent } from '@lit/react';
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import
|
|
10
|
+
import CDSChatShellElement from '../components/chat-shell/src/shell.js';
|
|
11
11
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -18,11 +18,11 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
18
18
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
21
|
+
const CDSAIChatShell = withWebComponentBridge(createComponent({
|
|
22
22
|
tagName: "cds-aichat-shell",
|
|
23
|
-
elementClass:
|
|
23
|
+
elementClass: CDSChatShellElement,
|
|
24
24
|
react: React,
|
|
25
25
|
}));
|
|
26
26
|
|
|
27
|
-
export {
|
|
27
|
+
export { CDSAIChatShell as default };
|
|
28
28
|
//# sourceMappingURL=chat-shell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-shell.js","sources":["../../src/react/chat-shell.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,cAAc,GAAG,sBAAsB,CAC3C,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"chat-shell.js","sources":["../../src/react/chat-shell.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,cAAc,GAAG,sBAAsB,CAC3C,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA,CAAC;;;;"}
|
package/es/react/panel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
2
|
+
import CdsChatPanelElement from "../components/chat-shell/src/panel.js";
|
|
3
|
+
declare const CDSAIChatPanel: React.ForwardRefExoticComponent<Omit<Record<string, unknown>, "ref"> & React.RefAttributes<CdsChatPanelElement>>;
|
|
4
|
+
export default CDSAIChatPanel;
|
package/es/react/panel.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { createComponent } from '@lit/react';
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import
|
|
10
|
+
import CdsChatPanelElement from '../components/chat-shell/src/panel.js';
|
|
11
11
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
12
|
|
|
13
13
|
/*
|
|
@@ -18,17 +18,18 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
18
18
|
*
|
|
19
19
|
* @license
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
21
|
+
const CDSAIChatPanel = withWebComponentBridge(createComponent({
|
|
22
22
|
tagName: "cds-aichat-panel",
|
|
23
|
-
elementClass:
|
|
23
|
+
elementClass: CdsChatPanelElement,
|
|
24
24
|
react: React,
|
|
25
25
|
events: {
|
|
26
26
|
onOpenStart: "openstart",
|
|
27
27
|
onOpenEnd: "openend",
|
|
28
28
|
onCloseStart: "closestart",
|
|
29
29
|
onCloseEnd: "closeend",
|
|
30
|
+
onBodyScroll: "body-scroll",
|
|
30
31
|
},
|
|
31
32
|
}));
|
|
32
33
|
|
|
33
|
-
export {
|
|
34
|
+
export { CDSAIChatPanel as default };
|
|
34
35
|
//# sourceMappingURL=panel.js.map
|
package/es/react/panel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.js","sources":["../../src/react/panel.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,cAAc,GAAG,sBAAsB,CAC3C,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"panel.js","sources":["../../src/react/panel.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,cAAc,GAAG,sBAAsB,CAC3C,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,WAAW,EAAE,WAAW;AACxB,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,YAAY,EAAE,YAAY;AAC1B,QAAA,UAAU,EAAE,UAAU;AACtB,QAAA,YAAY,EAAE,aAAa;AAC5B,KAAA;AACF,CAAA,CAAC;;;;"}
|
package/es/react/toolbar.js
CHANGED
package/es/react/toolbar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.js","sources":["../../src/react/toolbar.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;AAiCA;AACA,MAAM,WAAW,GAAG,sBAAsB,CACxC,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,YAAY,EAAE,gBAAgB;AAC9B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA,CAAC,CACH;AAED;;;;;;;;;;;;;;;;;;AAkBG;AACH;;AAEG;AACH,SAAS,eAAe,CAAC,IAAa,EAAA;IACpC,IAAI,CAAC,IAAI,EAAE;AACT,QAAA,OAAO,EAAE;IACX;;IAGA,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;AACjC,IAAA,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAClB,QAAA,OAAO,MAAM;IACf;;AAGA,IAAA,MAAM,OAAO,GAA2B;AACtC,QAAA,EAAE,EAAE,EAAE;AACN,QAAA,EAAE,EAAE,EAAE;AACN,QAAA,EAAE,EAAE,EAAE;AACN,QAAA,EAAE,EAAE,EAAE;KACP;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE;AAC1C;AAEA,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAW,CAAC,KAAK,EAAE,GAAG,KAAI;IACxD,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;;AAGvC,IAAA,MAAM,kBAAkB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