@carbon/ai-chat-components 0.4.0 → 0.5.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ /**
10
+ * @license
11
+ *
12
+ * This bundle contains the following third-party dependencies:
13
+ *
14
+ * Also refer to the following links for the license of other third-party dependencies:
15
+ *
16
+ * https://www.npmjs.com/package/tslib
17
+ * https://www.npmjs.com/package/lit
18
+ * https://www.npmjs.com/package/@carbon/web-components
19
+ * https://www.npmjs.com/package/lit-html
20
+ * https://www.npmjs.com/package/lit-element
21
+ * https://www.npmjs.com/package/@lit/reactive-element
22
+ */
23
+
24
+ import{f as t,u as e,T as s}from"./settings-XW6XylsZ.js";
25
+ /**
26
+ * @license
27
+ * Copyright 2017 Google LLC
28
+ * SPDX-License-Identifier: BSD-3-Clause
29
+ */const r={attribute:!0,type:String,converter:e,reflect:!1,hasChanged:t},n=(t=r,e,s)=>{const{kind:n,metadata:i}=s;let o=globalThis.litPropertyMetadata.get(i);if(void 0===o&&globalThis.litPropertyMetadata.set(i,o=new Map),"setter"===n&&((t=Object.create(t)).wrapped=!0),o.set(s.name,t),"accessor"===n){const{name:r}=s;return{set(s){const n=e.get.call(this);e.set.call(this,s),this.requestUpdate(r,n,t)},init(e){return void 0!==e&&this.C(r,void 0,t,e),e}}}if("setter"===n){const{name:r}=s;return function(s){const n=this[r];e.call(this,s),this.requestUpdate(r,n,t)}}throw Error("Unsupported decorator location: "+n)};function i(t){return(e,s)=>"object"==typeof s?n(t,e,s):((t,e,s)=>{const r=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),r?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}
30
+ /**
31
+ * @license
32
+ * Copyright 2017 Google LLC
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */const o=1;class a{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
35
+ /**
36
+ * @license
37
+ * Copyright 2018 Google LLC
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */const c=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends a{constructor(t){if(super(t),t.type!==o||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const r=t.element.classList;for(const t of this.st)t in e||(r.remove(t),this.st.delete(t));for(const t in e){const s=!!e[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return s}});export{c as e,i as n};
@@ -15,27 +15,13 @@
15
15
  *
16
16
  * https://www.npmjs.com/package/tslib
17
17
  * https://www.npmjs.com/package/lit
18
+ * https://www.npmjs.com/package/@carbon/web-components
18
19
  * https://www.npmjs.com/package/lit-html
19
20
  * https://www.npmjs.com/package/lit-element
20
21
  * https://www.npmjs.com/package/@lit/reactive-element
21
22
  */
22
23
 
23
- import{f as i,u as e,T as t,i as n,_ as o,a,x as r,c as s,p as d}from"./carbon-element-DAeGleIK.js";
24
- /**
25
- * @license
26
- * Copyright 2017 Google LLC
27
- * SPDX-License-Identifier: BSD-3-Clause
28
- */const l={attribute:!0,type:String,converter:e,reflect:!1,hasChanged:i},m=(i=l,e,t)=>{const{kind:n,metadata:o}=t;let a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),"setter"===n&&((i=Object.create(i)).wrapped=!0),a.set(t.name,i),"accessor"===n){const{name:n}=t;return{set(t){const o=e.get.call(this);e.set.call(this,t),this.requestUpdate(n,o,i)},init(e){return void 0!==e&&this.C(n,void 0,i,e),e}}}if("setter"===n){const{name:n}=t;return function(t){const o=this[n];e.call(this,t),this.requestUpdate(n,o,i)}}throw Error("Unsupported decorator location: "+n)};function c(i){return(e,t)=>"object"==typeof t?m(i,e,t):((i,e,t)=>{const n=e.hasOwnProperty(t);return e.constructor.createProperty(t,i),n?Object.getOwnPropertyDescriptor(e,t):void 0})(i,e,t)}
29
- /**
30
- * @license
31
- * Copyright 2017 Google LLC
32
- * SPDX-License-Identifier: BSD-3-Clause
33
- */const h=1;class f{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,e,t){this._$Ct=i,this._$AM=e,this._$Ci=t}_$AS(i,e){return this.update(i,e)}update(i,e){return this.render(...e)}}
34
- /**
35
- * @license
36
- * Copyright 2018 Google LLC
37
- * SPDX-License-Identifier: BSD-3-Clause
38
- */const g=(i=>(...e)=>({_$litDirective$:i,values:e}))(class extends f{constructor(i){if(super(i),i.type!==h||"class"!==i.name||i.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){if(void 0===this.st){this.st=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(i=>""!==i)));for(const i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}const n=i.element.classList;for(const i of this.st)i in e||(n.remove(i),this.st.delete(i));for(const i in e){const t=!!e[i];t===this.st.has(i)||this.nt?.has(i)||(t?(n.add(i),this.st.add(i)):(n.remove(i),this.st.delete(i)))}return t}});var u=n(['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}.dots{block-size:32px;inline-size:32px}.dot{fill:none;r:0;stroke:var(--cds-interactive,#0f62fe);stroke-width:0;transform:translateY(0)}[data-carbon-theme=g10] .dot,[data-carbon-theme=white] .dot{stroke:var(--cds-interactive,#0f62fe)}[data-carbon-theme=g100] .dot,[data-carbon-theme=g90] .dot{stroke:var(--cds-text-secondary,#525252)}@media screen and (prefers-reduced-motion:reduce){.linear .dot--left{animation:none;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:25% 50%}}.linear .dot--left{animation:linear-load-size,linear-load-stroke,linear-loop-size,linear-loop-stroke;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:25% 50%}@media screen and (prefers-reduced-motion:reduce){.linear .dot--center{animation:none;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:50% 50%}}.linear .dot--center{animation:linear-load-size,linear-load-stroke,linear-loop-size,linear-loop-stroke;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:50% 50%}@media screen and (prefers-reduced-motion:reduce){.linear .dot--right{animation:none;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:75% 50%}}.linear .dot--right{animation:linear-load-size,linear-load-stroke,linear-loop-size,linear-loop-stroke;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:75% 50%}@media screen and (prefers-reduced-motion:reduce){.linear--no-loop .dot--left{animation:none;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:25% 50%}}.linear--no-loop .dot--left{animation:linear-load-size,linear-load-stroke,linear-unload-size,linear-unload-stroke;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:25% 50%}@media screen and (prefers-reduced-motion:reduce){.linear--no-loop .dot--center{animation:none;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:50% 50%}}.linear--no-loop .dot--center{animation:linear-load-size,linear-load-stroke,linear-unload-size,linear-unload-stroke;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:50% 50%}@media screen and (prefers-reduced-motion:reduce){.linear--no-loop .dot--right{animation:none;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:75% 50%}}.linear--no-loop .dot--right{animation:linear-load-size,linear-load-stroke,linear-unload-size,linear-unload-stroke;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:75% 50%}[dir=rtl] .linear .dot--left{animation-delay:1334ms,1334ms,2334ms,2334ms,7334ms,7334ms}[dir=rtl] .linear .dot--center{animation-delay:1167ms,1167ms,2167ms,2167ms,7167ms,7167ms}[dir=rtl] .linear .dot--right{animation-delay:1s,1s,2s,2s,7s,7s}[dir=rtl] .linear--no-loop .dot--left{animation-delay:1334ms,1334ms,2334ms,2334ms}[dir=rtl] .linear--no-loop .dot--center{animation-delay:1167ms,1167ms,2167ms,2167ms}[dir=rtl] .linear--no-loop .dot--right{animation-delay:1s,1s,2s,2s}@keyframes linear-load-size{0%{r:0;animation-timing-function:cubic-bezier(0,0,.3,1)}25%{r:2.5px;animation-timing-function:cubic-bezier(0,0,.3,1)}83.3%{r:.875px}to{r:.875px}}@keyframes linear-load-stroke{0%{stroke-width:0;animation-timing-function:cubic-bezier(0,0,.3,1)}8.33%{stroke-width:1.72}to{stroke-width:1.72}}@keyframes linear-loop-size{0%{r:.875px;animation-timing-function:cubic-bezier(0,0,.3,1)}25%{r:2.5px;animation-timing-function:cubic-bezier(0,0,.3,1)}91.66%{r:.875px}to{r:.875px}}@keyframes linear-loop-stroke{0%{stroke-width:1.72;animation-timing-function:cubic-bezier(.4,.14,1,1)}to{stroke-width:1.72}}@keyframes linear-unload-size{0%{r:.875px}8.33%{r:.875px}33.33%{r:2.5px;animation-timing-function:cubic-bezier(.4,.14,1,1)}58.33%{r:0}to{r:0}}@keyframes linear-unload-stroke{0%{stroke-width:1.72}50%{stroke-width:1.72}58.33%{stroke-width:0}to{stroke-width:0}}@media (prefers-reduced-motion:reduce){.dot--center,.dot--left,.dot--right{animation:none;transition:none}}']);
24
+ import{i,_ as e,a as n,x as t,p as a}from"./settings-XW6XylsZ.js";import{n as o,e as r}from"./class-map-h7IEvsL_.js";import{c as s}from"./carbon-element-CMR7BOhG.js";var d=i(['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}.dots{block-size:32px;inline-size:32px}.dot{fill:none;r:0;stroke:var(--cds-interactive,#0f62fe);stroke-width:0;transform:translateY(0)}[data-carbon-theme=g10] .dot,[data-carbon-theme=white] .dot{stroke:var(--cds-interactive,#0f62fe)}[data-carbon-theme=g100] .dot,[data-carbon-theme=g90] .dot{stroke:var(--cds-text-secondary,#525252)}@media screen and (prefers-reduced-motion:reduce){.linear .dot--left{animation:none;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:25% 50%}}.linear .dot--left{animation:linear-load-size,linear-load-stroke,linear-loop-size,linear-loop-stroke;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:25% 50%}@media screen and (prefers-reduced-motion:reduce){.linear .dot--center{animation:none;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:50% 50%}}.linear .dot--center{animation:linear-load-size,linear-load-stroke,linear-loop-size,linear-loop-stroke;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:50% 50%}@media screen and (prefers-reduced-motion:reduce){.linear .dot--right{animation:none;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:75% 50%}}.linear .dot--right{animation:linear-load-size,linear-load-stroke,linear-loop-size,linear-loop-stroke;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:75% 50%}@media screen and (prefers-reduced-motion:reduce){.linear--no-loop .dot--left{animation:none;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:25% 50%}}.linear--no-loop .dot--left{animation:linear-load-size,linear-load-stroke,linear-unload-size,linear-unload-stroke;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:25% 50%}@media screen and (prefers-reduced-motion:reduce){.linear--no-loop .dot--center{animation:none;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:50% 50%}}.linear--no-loop .dot--center{animation:linear-load-size,linear-load-stroke,linear-unload-size,linear-unload-stroke;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:50% 50%}@media screen and (prefers-reduced-motion:reduce){.linear--no-loop .dot--right{animation:none;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:75% 50%}}.linear--no-loop .dot--right{animation:linear-load-size,linear-load-stroke,linear-unload-size,linear-unload-stroke;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:75% 50%}[dir=rtl] .linear .dot--left{animation-delay:1334ms,1334ms,2334ms,2334ms,7334ms,7334ms}[dir=rtl] .linear .dot--center{animation-delay:1167ms,1167ms,2167ms,2167ms,7167ms,7167ms}[dir=rtl] .linear .dot--right{animation-delay:1s,1s,2s,2s,7s,7s}[dir=rtl] .linear--no-loop .dot--left{animation-delay:1334ms,1334ms,2334ms,2334ms}[dir=rtl] .linear--no-loop .dot--center{animation-delay:1167ms,1167ms,2167ms,2167ms}[dir=rtl] .linear--no-loop .dot--right{animation-delay:1s,1s,2s,2s}@keyframes linear-load-size{0%{r:0;animation-timing-function:cubic-bezier(0,0,.3,1)}25%{r:2.5px;animation-timing-function:cubic-bezier(0,0,.3,1)}83.3%{r:.875px}to{r:.875px}}@keyframes linear-load-stroke{0%{stroke-width:0;animation-timing-function:cubic-bezier(0,0,.3,1)}8.33%{stroke-width:1.72}to{stroke-width:1.72}}@keyframes linear-loop-size{0%{r:.875px;animation-timing-function:cubic-bezier(0,0,.3,1)}25%{r:2.5px;animation-timing-function:cubic-bezier(0,0,.3,1)}91.66%{r:.875px}to{r:.875px}}@keyframes linear-loop-stroke{0%{stroke-width:1.72;animation-timing-function:cubic-bezier(.4,.14,1,1)}to{stroke-width:1.72}}@keyframes linear-unload-size{0%{r:.875px}8.33%{r:.875px}33.33%{r:2.5px;animation-timing-function:cubic-bezier(.4,.14,1,1)}58.33%{r:0}to{r:0}}@keyframes linear-unload-stroke{0%{stroke-width:1.72}50%{stroke-width:1.72}58.33%{stroke-width:0}to{stroke-width:0}}@media (prefers-reduced-motion:reduce){.dot--center,.dot--left,.dot--right{animation:none;transition:none}}']);
39
25
  /*
40
26
  * Copyright IBM Corp. 2025
41
27
  *
@@ -43,10 +29,10 @@ import{f as i,u as e,T as t,i as n,_ as o,a,x as r,c as s,p as d}from"./carbon-e
43
29
  * LICENSE file in the root directory of this source tree.
44
30
  *
45
31
  * @license
46
- */let p=class extends a{constructor(){super(...arguments),this.loop=!1,this.quickLoad=!1,this.carbonTheme="g10"}render(){const i=g({"quick-load":!0===this.quickLoad,linear:!0===this.loop,"linear--no-loop":!1===this.loop});return r`<div data-carbon-theme=${this.carbonTheme} class=${i}>
32
+ */let l=class extends n{constructor(){super(...arguments),this.loop=!1,this.quickLoad=!1,this.carbonTheme="g10"}render(){const i=r({"quick-load":!0===this.quickLoad,linear:!0===this.loop,"linear--no-loop":!1===this.loop});return t`<div data-carbon-theme=${this.carbonTheme} class=${i}>
47
33
  <svg class="dots" viewBox="0 0 32 32">
48
34
  <circle class="dot dot--left" cx="8" cy="16" />
49
35
  <circle class="dot dot--center" cx="16" cy="16" r="2" />
50
36
  <circle class="dot dot--right" cx="24" cy="16" r="2" />
51
37
  </svg>
52
- </div>`}};p.styles=u,o([c({type:Boolean})],p.prototype,"loop",void 0),o([c({type:Boolean})],p.prototype,"quickLoad",void 0),o([c({type:String})],p.prototype,"carbonTheme",void 0),p=o([s(`${d}-processing`)],p);
38
+ </div>`}};l.styles=d,e([o({type:Boolean})],l.prototype,"loop",void 0),e([o({type:Boolean})],l.prototype,"quickLoad",void 0),e([o({type:String})],l.prototype,"carbonTheme",void 0),l=e([s(`${a}-processing`)],l);
@@ -15,34 +15,35 @@
15
15
  *
16
16
  * https://www.npmjs.com/package/tslib
17
17
  * https://www.npmjs.com/package/lit
18
+ * https://www.npmjs.com/package/@carbon/web-components
18
19
  * https://www.npmjs.com/package/lit-html
19
20
  * https://www.npmjs.com/package/lit-element
20
21
  * https://www.npmjs.com/package/@lit/reactive-element
21
22
  */
22
23
 
23
- function t(t,e,s,i){var n,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(n=t[h])&&(o=(r<3?n(o):r>3?n(e,s,o):n(e,s))||o);return r>3&&o&&Object.defineProperty(e,s,o),o}"function"==typeof SuppressedError&&SuppressedError;
24
+ function t(t,e,s,i){var r,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(o=(n<3?r(o):n>3?r(e,s,o):r(e,s))||o);return n>3&&o&&Object.defineProperty(e,s,o),o}"function"==typeof SuppressedError&&SuppressedError;
24
25
  /**
25
26
  * @license
26
27
  * Copyright 2019 Google LLC
27
28
  * SPDX-License-Identifier: BSD-3-Clause
28
29
  */
29
- const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;let r=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&n.set(e,t))}return t}toString(){return this.cssText}};const o=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new r(s,t,i)},h=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new r("string"==typeof t?t:t+"",void 0,i))(e)})(t):t,{is:a,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:p,getPrototypeOf:u}=Object,$=globalThis,_=$.trustedTypes,f=_?_.emptyScript:"",A=$.reactiveElementPolyfillSupport,y=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},g=(t,e)=>!a(t,e),v={attribute:!0,type:String,converter:m,reflect:!1,useDefault:!1,hasChanged:g};
30
+ const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;let n=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}};const o=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new n(s,t,i)},h=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new n("string"==typeof t?t:t+"",void 0,i))(e)})(t):t,{is:a,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:p,getPrototypeOf:u}=Object,$=globalThis,_=$.trustedTypes,f=_?_.emptyScript:"",A=$.reactiveElementPolyfillSupport,y=(t,e)=>t,g={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},m=(t,e)=>!a(t,e),v={attribute:!0,type:String,converter:g,reflect:!1,useDefault:!1,hasChanged:m};
30
31
  /**
31
32
  * @license
32
33
  * Copyright 2017 Google LLC
33
34
  * SPDX-License-Identifier: BSD-3-Clause
34
- */Symbol.metadata??=Symbol("metadata"),$.litPropertyMetadata??=new WeakMap;let E=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);n?.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??v}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=u(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...d(t),...p(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(s)t.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of i){const i=document.createElement("style"),n=e.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=s.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const n=(void 0!==s.converter?.toAttribute?s.converter:m).toAttribute(e,s.type);this._$Em=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i;const r=n.fromAttribute(e,t.type);this[i]=r??this._$Ej?.get(i)??r,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,n=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??g)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[y("elementProperties")]=new Map,E[y("finalized")]=new Map,A?.({ReactiveElement:E}),($.reactiveElementVersions??=[]).push("2.1.1");
35
+ */Symbol.metadata??=Symbol("metadata"),$.litPropertyMetadata??=new WeakMap;let E=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const n=i?.call(this);r?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??v}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=u(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...d(t),...p(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(s)t.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of i){const i=document.createElement("style"),r=e.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=s.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:g).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:g;this._$Em=i;const n=r.fromAttribute(e,t.type);this[i]=n??this._$Ej?.get(i)??n,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,r=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??m)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==r||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[y("elementProperties")]=new Map,E[y("finalized")]=new Map,A?.({ReactiveElement:E}),($.reactiveElementVersions??=[]).push("2.1.1");
35
36
  /**
36
37
  * @license
37
38
  * Copyright 2017 Google LLC
38
39
  * SPDX-License-Identifier: BSD-3-Clause
39
40
  */
40
- const S=globalThis,b=S.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,x="?"+P,U=`<${x}>`,O=document,H=()=>O.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,R=Array.isArray,T="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,j=/>/g,D=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),L=/'/g,z=/"/g,B=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),W=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),q=new WeakMap,J=O.createTreeWalker(O,129);function K(t,e){if(!R(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==w?w.createHTML(e):e}const Z=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":3===e?"<math>":"",o=N;for(let e=0;e<s;e++){const s=t[e];let h,a,l=-1,c=0;for(;c<s.length&&(o.lastIndex=c,a=o.exec(s),null!==a);)c=o.lastIndex,o===N?"!--"===a[1]?o=k:void 0!==a[1]?o=j:void 0!==a[2]?(B.test(a[2])&&(n=RegExp("</"+a[2],"g")),o=D):void 0!==a[3]&&(o=D):o===D?">"===a[0]?(o=n??N,l=-1):void 0===a[1]?l=-2:(l=o.lastIndex-a[2].length,h=a[1],o=void 0===a[3]?D:'"'===a[3]?z:L):o===z||o===L?o=D:o===k||o===j?o=N:(o=D,n=void 0);const d=o===D&&t[e+1].startsWith("/>")?" ":"";r+=o===N?s+U:l>=0?(i.push(h),s.slice(0,l)+C+s.slice(l)+P+d):s+P+(-2===l?e:d)}return[K(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class F{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0;const o=t.length-1,h=this.parts,[a,l]=Z(t,e);if(this.el=F.createElement(a,s),J.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=J.nextNode())&&h.length<o;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(C)){const e=l[r++],s=i.getAttribute(t).split(P),o=/([.?@])?(.*)/.exec(e);h.push({type:1,index:n,name:o[2],strings:s,ctor:"."===o[1]?tt:"?"===o[1]?et:"@"===o[1]?st:Y}),i.removeAttribute(t)}else t.startsWith(P)&&(h.push({type:6,index:n}),i.removeAttribute(t));if(B.test(i.tagName)){const t=i.textContent.split(P),e=t.length-1;if(e>0){i.textContent=b?b.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],H()),J.nextNode(),h.push({type:2,index:++n});i.append(t[e],H())}}}else if(8===i.nodeType)if(i.data===x)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(P,t+1));)h.push({type:7,index:n}),t+=P.length-1}n++}}static createElement(t,e){const s=O.createElement("template");return s.innerHTML=t,s}}function G(t,e,s=t,i){if(e===W)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const r=M(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=G(t,n._$AS(t,e.values),n,i)),e}class Q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??O).importNode(e,!0);J.currentNode=i;let n=J.nextNode(),r=0,o=0,h=s[0];for(;void 0!==h;){if(r===h.index){let e;2===h.type?e=new X(n,n.nextSibling,this,t):1===h.type?e=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(e=new it(n,this,t)),this._$AV.push(e),h=s[++o]}r!==h?.index&&(n=J.nextNode(),r++)}return J.currentNode=O,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class X{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),M(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==W&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>R(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==V&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=F.createElement(K(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new Q(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new F(t)),e}k(t){R(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new X(this.O(H()),this.O(H()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Y{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=V}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=G(this,t,e,0),r=!M(t)||t!==this._$AH&&t!==W,r&&(this._$AH=t);else{const i=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=G(this,i[s+o],e,o),h===W&&(h=this._$AH[o]),r||=!M(h)||h!==this._$AH[o],h===V?t=V:t!==V&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!i&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class tt extends Y{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}class et extends Y{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==V)}}class st extends Y{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=G(this,t,e,0)??V)===W)return;const s=this._$AH,i=t===V&&s!==V||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==V&&(s===V||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const nt=S.litHtmlPolyfillSupport;nt?.(F,X),(S.litHtmlVersions??=[]).push("3.3.1");const rt=globalThis;
41
+ const S=globalThis,b=S.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,x="?"+P,U=`<${x}>`,O=document,H=()=>O.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,R=Array.isArray,T="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,j=/>/g,D=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),L=/'/g,z=/"/g,B=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),W=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),q=new WeakMap,J=O.createTreeWalker(O,129);function K(t,e){if(!R(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==w?w.createHTML(e):e}const Z=(t,e)=>{const s=t.length-1,i=[];let r,n=2===e?"<svg>":3===e?"<math>":"",o=N;for(let e=0;e<s;e++){const s=t[e];let h,a,l=-1,c=0;for(;c<s.length&&(o.lastIndex=c,a=o.exec(s),null!==a);)c=o.lastIndex,o===N?"!--"===a[1]?o=k:void 0!==a[1]?o=j:void 0!==a[2]?(B.test(a[2])&&(r=RegExp("</"+a[2],"g")),o=D):void 0!==a[3]&&(o=D):o===D?">"===a[0]?(o=r??N,l=-1):void 0===a[1]?l=-2:(l=o.lastIndex-a[2].length,h=a[1],o=void 0===a[3]?D:'"'===a[3]?z:L):o===z||o===L?o=D:o===k||o===j?o=N:(o=D,r=void 0);const d=o===D&&t[e+1].startsWith("/>")?" ":"";n+=o===N?s+U:l>=0?(i.push(h),s.slice(0,l)+C+s.slice(l)+P+d):s+P+(-2===l?e:d)}return[K(t,n+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class F{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,n=0;const o=t.length-1,h=this.parts,[a,l]=Z(t,e);if(this.el=F.createElement(a,s),J.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=J.nextNode())&&h.length<o;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(C)){const e=l[n++],s=i.getAttribute(t).split(P),o=/([.?@])?(.*)/.exec(e);h.push({type:1,index:r,name:o[2],strings:s,ctor:"."===o[1]?tt:"?"===o[1]?et:"@"===o[1]?st:Y}),i.removeAttribute(t)}else t.startsWith(P)&&(h.push({type:6,index:r}),i.removeAttribute(t));if(B.test(i.tagName)){const t=i.textContent.split(P),e=t.length-1;if(e>0){i.textContent=b?b.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],H()),J.nextNode(),h.push({type:2,index:++r});i.append(t[e],H())}}}else if(8===i.nodeType)if(i.data===x)h.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(P,t+1));)h.push({type:7,index:r}),t+=P.length-1}r++}}static createElement(t,e){const s=O.createElement("template");return s.innerHTML=t,s}}function G(t,e,s=t,i){if(e===W)return e;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const n=M(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=r:s._$Cl=r),void 0!==r&&(e=G(t,r._$AS(t,e.values),r,i)),e}class Q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??O).importNode(e,!0);J.currentNode=i;let r=J.nextNode(),n=0,o=0,h=s[0];for(;void 0!==h;){if(n===h.index){let e;2===h.type?e=new X(r,r.nextSibling,this,t):1===h.type?e=new h.ctor(r,h.name,h.strings,this,t):6===h.type&&(e=new it(r,this,t)),this._$AV.push(e),h=s[++o]}n!==h?.index&&(r=J.nextNode(),n++)}return J.currentNode=O,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class X{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),M(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==W&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>R(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==V&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=F.createElement(K(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new Q(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new F(t)),e}k(t){R(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const r of t)i===e.length?e.push(s=new X(this.O(H()),this.O(H()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Y{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=V}_$AI(t,e=this,s,i){const r=this.strings;let n=!1;if(void 0===r)t=G(this,t,e,0),n=!M(t)||t!==this._$AH&&t!==W,n&&(this._$AH=t);else{const i=t;let o,h;for(t=r[0],o=0;o<r.length-1;o++)h=G(this,i[s+o],e,o),h===W&&(h=this._$AH[o]),n||=!M(h)||h!==this._$AH[o],h===V?t=V:t!==V&&(t+=(h??"")+r[o+1]),this._$AH[o]=h}n&&!i&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class tt extends Y{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}class et extends Y{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==V)}}class st extends Y{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=G(this,t,e,0)??V)===W)return;const s=this._$AH,i=t===V&&s!==V||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==V&&(s===V||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const rt=S.litHtmlPolyfillSupport;rt?.(F,X),(S.litHtmlVersions??=[]).push("3.3.1");const nt=globalThis;
41
42
  /**
42
43
  * @license
43
44
  * Copyright 2017 Google LLC
44
45
  * SPDX-License-Identifier: BSD-3-Clause
45
- */class ot extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const i=s?.renderBefore??e;let n=i._$litPart$;if(void 0===n){const t=s?.renderBefore??null;i._$litPart$=n=new X(e.insertBefore(H(),t),t,void 0,s??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return W}}ot._$litElement$=!0,ot.finalized=!0,rt.litElementHydrateSupport?.({LitElement:ot});const ht=rt.litElementPolyfillSupport;ht?.({LitElement:ot}),(rt.litElementVersions??=[]).push("4.2.1");
46
+ */class ot extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const i=s?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=s?.renderBefore??null;i._$litPart$=r=new X(e.insertBefore(H(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return W}}ot._$litElement$=!0,ot.finalized=!0,nt.litElementHydrateSupport?.({LitElement:ot});const ht=nt.litElementPolyfillSupport;ht?.({LitElement:ot}),(nt.litElementVersions??=[]).push("4.2.1");
46
47
  /*
47
48
  * Copyright IBM Corp. 2025
48
49
  *
@@ -51,12 +52,4 @@ const S=globalThis,b=S.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:t=
51
52
  *
52
53
  * @license
53
54
  */
54
- const at="cds-aichat";
55
- /*
56
- * Copyright IBM Corp. 2025
57
- *
58
- * This source code is licensed under the Apache-2.0 license found in the
59
- * LICENSE file in the root directory of this source tree.
60
- *
61
- * @license
62
- */function lt(t){return e=>"function"==typeof e?((t,e)=>{try{customElements.define(t,e)}catch(t){}return e})(t,e):((t,e)=>{const{kind:s,elements:i}=e;return{kind:s,elements:i,finisher(e){try{customElements.define(t,e)}catch(t){}}}})(t,e)}export{W as T,t as _,ot as a,lt as c,g as f,o as i,at as p,m as u,I as x};
55
+ const at="cds-aichat";export{V as E,W as T,t as _,ot as a,m as f,o as i,at as p,g as u,I as x};
@@ -15,12 +15,13 @@
15
15
  *
16
16
  * https://www.npmjs.com/package/tslib
17
17
  * https://www.npmjs.com/package/lit
18
+ * https://www.npmjs.com/package/@carbon/web-components
18
19
  * https://www.npmjs.com/package/lit-html
19
20
  * https://www.npmjs.com/package/lit-element
20
21
  * https://www.npmjs.com/package/@lit/reactive-element
21
22
  */
22
23
 
23
- import{i as e,_ as t,c as i,a,p as s,x as d}from"./carbon-element-DAeGleIK.js";
24
+ import{i as e,_ as t,a as i,p as a,x as s}from"./settings-XW6XylsZ.js";import{c as d}from"./carbon-element-CMR7BOhG.js";
24
25
  /**
25
26
  * @license
26
27
  * Copyright 2017 Google LLC
@@ -34,10 +35,10 @@ import{i as e,_ as t,c as i,a,p as s,x as d}from"./carbon-element-DAeGleIK.js";
34
35
  *
35
36
  * @license
36
37
  */
37
- let r=class extends a{connectedCallback(){super.connectedCallback();const e=this.getRootNode();e instanceof Document||e instanceof ShadowRoot?this.ensureLightDomStyles(e):console.warn("Unsupported root node type:",e)}ensureLightDomStyles(e){const t=`${s}-tile-container-light-dom-styles`;if(e.querySelector(`#${t}`))return;const i=document.createElement("style");i.id=t,i.textContent=l,e instanceof ShadowRoot?e.appendChild(i):e.head.appendChild(i)}firstUpdated(){const e=(this.slotEl?.assignedElements()??[])[0];e&&(e.removeAttribute("ai-label"),this.mutationObserver=new MutationObserver(t=>{for(const i of t)if("attributes"===i.type){e.removeAttribute("ai-label");break}}),this.mutationObserver.observe(e,{attributes:!0}))}disconnectedCallback(){this.mutationObserver?.disconnect(),super.disconnectedCallback()}render(){return d`<slot></slot>`}};r.styles=c,t([
38
+ let r=class extends i{connectedCallback(){super.connectedCallback();const e=this.getRootNode();e instanceof Document||e instanceof ShadowRoot?this.ensureLightDomStyles(e):console.warn("Unsupported root node type:",e)}ensureLightDomStyles(e){const t=`${a}-tile-container-light-dom-styles`;if(e.querySelector(`#${t}`))return;const i=document.createElement("style");i.id=t,i.textContent=l,e instanceof ShadowRoot?e.appendChild(i):e.head.appendChild(i)}firstUpdated(){const e=(this.slotEl?.assignedElements()??[])[0];e&&(e.removeAttribute("ai-label"),this.mutationObserver=new MutationObserver(t=>{for(const i of t)if("attributes"===i.type){e.removeAttribute("ai-label");break}}),this.mutationObserver.observe(e,{attributes:!0}))}disconnectedCallback(){this.mutationObserver?.disconnect(),super.disconnectedCallback()}render(){return s`<slot></slot>`}};r.styles=c,t([
38
39
  /**
39
40
  * @license
40
41
  * Copyright 2017 Google LLC
41
42
  * SPDX-License-Identifier: BSD-3-Clause
42
43
  */
43
- function(e){return(t,i,a)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i))(t,i,{get(){return t=this,t.renderRoot?.querySelector(e)??null;var t}})}("slot")],r.prototype,"slotEl",void 0),r=t([i(`${s}-tile-container`)],r);
44
+ function(e){return(t,i,a)=>((e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i))(t,i,{get(){return t=this,t.renderRoot?.querySelector(e)??null;var t}})}("slot")],r.prototype,"slotEl",void 0),r=t([d(`${a}-tile-container`)],r);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { PropertyValues } from "lit";
10
+ import chatButton from "./src/chat-button.template.js";
11
+ /**
12
+ * Component extending the @carbon/web-components' button
13
+ */
14
+ declare class ChatButton extends chatButton {
15
+ /**
16
+ * Specify whether the `ChatButton` should be rendered as a quick action button
17
+ */
18
+ isQuickAction: boolean;
19
+ private readonly allowedSizes;
20
+ protected willUpdate(changedProps: PropertyValues<this>): void;
21
+ private _normalizeButtonState;
22
+ }
23
+ export default ChatButton;
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { __decorate } from 'tslib';
9
+ import { property, customElement } from 'lit/decorators.js';
10
+ import chatButton from './src/chat-button.template.js';
11
+ import { BUTTON_SIZE, BUTTON_KIND } from '@carbon/web-components/es/components/button/button.js';
12
+ import prefix from '../../globals/settings.js';
13
+
14
+ /**
15
+ * @license
16
+ *
17
+ * Copyright IBM Corp. 2025
18
+ *
19
+ * This source code is licensed under the Apache-2.0 license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */
22
+ /**
23
+ * Component extending the @carbon/web-components' button
24
+ */
25
+ let ChatButton = class ChatButton extends chatButton {
26
+ constructor() {
27
+ super(...arguments);
28
+ /**
29
+ * Specify whether the `ChatButton` should be rendered as a quick action button
30
+ */
31
+ this.isQuickAction = false;
32
+ this.allowedSizes = [
33
+ BUTTON_SIZE.SMALL,
34
+ BUTTON_SIZE.MEDIUM,
35
+ BUTTON_SIZE.LARGE,
36
+ ];
37
+ }
38
+ willUpdate(changedProps) {
39
+ if (changedProps.has("isQuickAction") || changedProps.has("size")) {
40
+ this._normalizeButtonState();
41
+ }
42
+ }
43
+ _normalizeButtonState() {
44
+ if (this.isQuickAction) {
45
+ this.kind = BUTTON_KIND.GHOST;
46
+ this.size = BUTTON_SIZE.SMALL;
47
+ return;
48
+ }
49
+ // Do not allow size larger than `lg`
50
+ if (!this.allowedSizes.includes(this.size)) {
51
+ this.size = BUTTON_SIZE.LARGE;
52
+ }
53
+ if (!Object.values(BUTTON_KIND).includes(this.kind)) {
54
+ this.kind = BUTTON_KIND.PRIMARY;
55
+ }
56
+ }
57
+ };
58
+ __decorate([
59
+ property({ type: Boolean, attribute: "is-quick-action" })
60
+ ], ChatButton.prototype, "isQuickAction", void 0);
61
+ ChatButton = __decorate([
62
+ customElement(`${prefix}-button`)
63
+ ], ChatButton);
64
+ var AIChatButton = ChatButton;
65
+
66
+ export { AIChatButton as default };
67
+ //# sourceMappingURL=chat-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-button.js","sources":["../../../src/components/chat-button/chat-button.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAWH;;AAEG;AAEH,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU,CAAA;AAAnC,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAA,CAAA,aAAa,GAAG,KAAK;AAEJ,QAAA,IAAA,CAAA,YAAY,GAAkB;AAC7C,YAAA,WAAW,CAAC,KAAK;AACjB,YAAA,WAAW,CAAC,MAAM;AAClB,YAAA,WAAW,CAAC,KAAK;SAClB;IAuBH;AArBY,IAAA,UAAU,CAAC,YAAkC,EAAA;AACrD,QAAA,IAAI,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;YACjE,IAAI,CAAC,qBAAqB,EAAE;QAC9B;IACF;IAEQ,qBAAqB,GAAA;AAC3B,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;AACtB,YAAA,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,KAAK;AAC7B,YAAA,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,KAAK;YAC7B;QACF;;AAEA,QAAA,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAmB,CAAC,EAAE;AACzD,YAAA,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,KAAK;QAC/B;AAEA,QAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAmB,CAAC,EAAE;AAClE,YAAA,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,OAAO;QACjC;IACF;CACD;AA7BC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE;AACnC,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AALlB,UAAU,GAAA,UAAA,CAAA;AADf,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,OAAA,CAAS;AAC3B,CAAA,EAAA,UAAU,CAkCf;AAED,mBAAe,UAAU;;;;"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import "./chat-button";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import './chat-button.js';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}