@telia-ace/widget-conversation-flamingo 1.1.30-rc.1 → 1.1.30-rc.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { C as St } from "./index-1232cb32.mjs";
1
+ import { C as St } from "./index-1e1cabae.mjs";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
@@ -1686,7 +1686,7 @@ class k extends v {
1686
1686
  const i = (c = this.application) == null ? void 0 : c.triggerIcon;
1687
1687
  if (!i)
1688
1688
  return u;
1689
- const n = async (d) => await import("./index-bcce29de.mjs").then(
1689
+ const n = async (d) => await import("./index-217f3c39.mjs").then(
1690
1690
  (p) => p[d]
1691
1691
  ), { type: r, content: o } = i;
1692
1692
  switch (r) {
@@ -1,4 +1,4 @@
1
- "use strict";const St=require("./index-1474d7d6.js");/**
1
+ "use strict";const St=require("./index-a8c06b78.js");/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -48,7 +48,7 @@
48
48
  * @license
49
49
  * Copyright 2018 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const Xt=wt(class extends qt{constructor(e){var t;if(super(e),e.type!==xt.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var i,n;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((i=this.st)!=null&&i.has(r))&&this.it.add(r);return this.render(t)}const s=e.element.classList;for(const r of this.it)r in t||(s.remove(r),this.it.delete(r));for(const r in t){const o=!!t[r];o===this.it.has(r)||(n=this.st)!=null&&n.has(r)||(o?(s.add(r),this.it.add(r)):(s.remove(r),this.it.delete(r)))}return C}}),Pi=new WeakMap;let be=0;const Pt=new Map,_e=new WeakSet,xe=()=>new Promise(e=>requestAnimationFrame(e)),Li=[{transform:"translateX(100%) scale(0)",opacity:0}],Ri=[{opacity:0}],we=[{opacity:0},{opacity:1}],Ae=(e,t)=>{const s=e-t;return s===0?void 0:s},Se=(e,t)=>{const s=e/t;return s===1?void 0:s},Lt={left:(e,t)=>{const s=Ae(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(e,t)=>{const s=Ae(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(e,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=Se(e,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(e,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=Se(e,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},Ui={duration:333,easing:"ease-in-out"},Hi=["left","top","width","height","opacity","color","background"],Ee=new WeakMap;class Ni extends Ve{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===xt.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(s=>{this.h=s})}async resolveFinished(){var t;(t=this.h)==null||t.call(this),this.h=void 0}render(t){return u}getController(){return Pi.get(this.l)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var n;const i=this.l===void 0;return i&&(this.l=(n=t.options)==null?void 0:n.host,this.l.addController(this),this.element=t.element,Ee.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.u(s),this.render(s)}u(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=Hi),this.options=t}p(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=s[n]??(Lt[n]?void 0:i[n]),o=Number(r);t[n]=isNaN(o)?r+"":o}),t}m(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,n)=>{if(Array.isArray(i)){if(Array.isArray(n)&&n.length===i.length&&i.every((r,o)=>r===n[o]))return!1}else if(n===i)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await xe;const s=this._(),i=this.A(this.options.keyframeOptions,s),n=this.p();if(this.g!==void 0){const{from:r,to:o}=this.O(this.g,n,s);this.log("measured",[this.g,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=Pt.get(this.options.inId);if(r){Pt.delete(this.options.inId);const{from:o,to:a}=this.O(r,n,s);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,be++,t.forEach(l=>l.zIndex=be)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.j!==void 0&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,s;this.j=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.o||(this.options.id!==void 0&&Pt.set(this.options.id,this.g),this.options.out===void 0))return;if(this.prepare(),await xe(),(s=this.t)==null?void 0:s.isConnected){const i=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,i),this.options.stabilizeOut){const n=this.p();this.log("stabilizing out");const r=this.g.left-n.left,o=this.g.top-n.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.A(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=Ee.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=_e.has(this.l);return t||this.l.updateComplete.then(()=>{_e.add(this.l)}),t}A(t,s=this._()){const i={...Ui};return s.forEach(n=>Object.assign(i,n.options.keyframeOptions)),Object.assign(i,t),i}O(t,s,i){t={...t},s={...s};const n=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return n!==void 0&&(n.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=r*t.left,s.left=r*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=o*t.top,s.top=o*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const n={},r={};let o=!1;const a={};for(const l in s){const c=t[l],d=s[l];if(l in Lt){const h=Lt[l];if(c===void 0||d===void 0)continue;const p=h(c,d);p.transform!==void 0&&(a[l]=p.value,o=!0,n.transform=`${n.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(n,p.overrideFrom))}else c!==d&&c!==void 0&&d!==void 0&&(o=!0,n[l]=c,r[l]=d)}return n.transformOrigin=r.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[n,r]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),i=!0,this.webAnimation=this.element.animate(t,s);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const Nt=wt(Ni),nt=(e,t,s)=>{e&&s.style.setProperty(t,e)},ts=(e,t)=>{var s,i,n,r;nt((s=e.colors)==null?void 0:s.primaryBackground,"--primary-background",t),nt((i=e.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),nt((n=e.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),nt((r=e.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t)};var Mi=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,tt=(e,t,s,i)=>{for(var n=i>1?void 0:i?ji(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Mi(t,s,n),n};class k extends v{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.offset=0,this.buttonRef=ut()}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding(),this.offset>0&&this.buttonRef.value&&(this.buttonRef.value.style.right=`calc(${this.offset}px + 20px)`)}_toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&ts(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),s=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(s)return f` <img src=${s} class="trigger-icon" alt="" /> `;const i=(c=this.application)==null?void 0:c.triggerIcon;if(!i)return u;const n=async d=>await Promise.resolve().then(()=>require("./index-0173d575.js")).then(p=>p[d]),{type:r,content:o}=i;switch(r){case"Telia":{const d=await n(o);return d?f`<telia-icon
51
+ */const Xt=wt(class extends qt{constructor(e){var t;if(super(e),e.type!==xt.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var i,n;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((i=this.st)!=null&&i.has(r))&&this.it.add(r);return this.render(t)}const s=e.element.classList;for(const r of this.it)r in t||(s.remove(r),this.it.delete(r));for(const r in t){const o=!!t[r];o===this.it.has(r)||(n=this.st)!=null&&n.has(r)||(o?(s.add(r),this.it.add(r)):(s.remove(r),this.it.delete(r)))}return C}}),Pi=new WeakMap;let be=0;const Pt=new Map,_e=new WeakSet,xe=()=>new Promise(e=>requestAnimationFrame(e)),Li=[{transform:"translateX(100%) scale(0)",opacity:0}],Ri=[{opacity:0}],we=[{opacity:0},{opacity:1}],Ae=(e,t)=>{const s=e-t;return s===0?void 0:s},Se=(e,t)=>{const s=e/t;return s===1?void 0:s},Lt={left:(e,t)=>{const s=Ae(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(e,t)=>{const s=Ae(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(e,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=Se(e,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(e,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=Se(e,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},Ui={duration:333,easing:"ease-in-out"},Hi=["left","top","width","height","opacity","color","background"],Ee=new WeakMap;class Ni extends Ve{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===xt.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(s=>{this.h=s})}async resolveFinished(){var t;(t=this.h)==null||t.call(this),this.h=void 0}render(t){return u}getController(){return Pi.get(this.l)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var n;const i=this.l===void 0;return i&&(this.l=(n=t.options)==null?void 0:n.host,this.l.addController(this),this.element=t.element,Ee.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.u(s),this.render(s)}u(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=Hi),this.options=t}p(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=s[n]??(Lt[n]?void 0:i[n]),o=Number(r);t[n]=isNaN(o)?r+"":o}),t}m(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,n)=>{if(Array.isArray(i)){if(Array.isArray(n)&&n.length===i.length&&i.every((r,o)=>r===n[o]))return!1}else if(n===i)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await xe;const s=this._(),i=this.A(this.options.keyframeOptions,s),n=this.p();if(this.g!==void 0){const{from:r,to:o}=this.O(this.g,n,s);this.log("measured",[this.g,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=Pt.get(this.options.inId);if(r){Pt.delete(this.options.inId);const{from:o,to:a}=this.O(r,n,s);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,be++,t.forEach(l=>l.zIndex=be)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.j!==void 0&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,s;this.j=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.o||(this.options.id!==void 0&&Pt.set(this.options.id,this.g),this.options.out===void 0))return;if(this.prepare(),await xe(),(s=this.t)==null?void 0:s.isConnected){const i=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,i),this.options.stabilizeOut){const n=this.p();this.log("stabilizing out");const r=this.g.left-n.left,o=this.g.top-n.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.A(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=Ee.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=_e.has(this.l);return t||this.l.updateComplete.then(()=>{_e.add(this.l)}),t}A(t,s=this._()){const i={...Ui};return s.forEach(n=>Object.assign(i,n.options.keyframeOptions)),Object.assign(i,t),i}O(t,s,i){t={...t},s={...s};const n=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return n!==void 0&&(n.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=r*t.left,s.left=r*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=o*t.top,s.top=o*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const n={},r={};let o=!1;const a={};for(const l in s){const c=t[l],d=s[l];if(l in Lt){const h=Lt[l];if(c===void 0||d===void 0)continue;const p=h(c,d);p.transform!==void 0&&(a[l]=p.value,o=!0,n.transform=`${n.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(n,p.overrideFrom))}else c!==d&&c!==void 0&&d!==void 0&&(o=!0,n[l]=c,r[l]=d)}return n.transformOrigin=r.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[n,r]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),i=!0,this.webAnimation=this.element.animate(t,s);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const Nt=wt(Ni),nt=(e,t,s)=>{e&&s.style.setProperty(t,e)},ts=(e,t)=>{var s,i,n,r;nt((s=e.colors)==null?void 0:s.primaryBackground,"--primary-background",t),nt((i=e.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),nt((n=e.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),nt((r=e.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t)};var Mi=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,tt=(e,t,s,i)=>{for(var n=i>1?void 0:i?ji(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Mi(t,s,n),n};class k extends v{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.offset=0,this.buttonRef=ut()}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding(),this.offset>0&&this.buttonRef.value&&(this.buttonRef.value.style.right=`calc(${this.offset}px + 20px)`)}_toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&ts(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),s=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(s)return f` <img src=${s} class="trigger-icon" alt="" /> `;const i=(c=this.application)==null?void 0:c.triggerIcon;if(!i)return u;const n=async d=>await Promise.resolve().then(()=>require("./index-528d2acc.js")).then(p=>p[d]),{type:r,content:o}=i;switch(r){case"Telia":{const d=await n(o);return d?f`<telia-icon
52
52
  class="trigger-icon"
53
53
  svg=${d.svg}
54
54
  size="lg"
@@ -5,11 +5,11 @@ function yt() {
5
5
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6
6
  return _(vt);
7
7
  }
8
- const d = [];
8
+ const p = [];
9
9
  for (let e = 0; e < 256; ++e)
10
- d.push((e + 256).toString(16).slice(1));
10
+ p.push((e + 256).toString(16).slice(1));
11
11
  function bt(e, r = 0) {
12
- return d[e[r + 0]] + d[e[r + 1]] + d[e[r + 2]] + d[e[r + 3]] + "-" + d[e[r + 4]] + d[e[r + 5]] + "-" + d[e[r + 6]] + d[e[r + 7]] + "-" + d[e[r + 8]] + d[e[r + 9]] + "-" + d[e[r + 10]] + d[e[r + 11]] + d[e[r + 12]] + d[e[r + 13]] + d[e[r + 14]] + d[e[r + 15]];
12
+ return p[e[r + 0]] + p[e[r + 1]] + p[e[r + 2]] + p[e[r + 3]] + "-" + p[e[r + 4]] + p[e[r + 5]] + "-" + p[e[r + 6]] + p[e[r + 7]] + "-" + p[e[r + 8]] + p[e[r + 9]] + "-" + p[e[r + 10]] + p[e[r + 11]] + p[e[r + 12]] + p[e[r + 13]] + p[e[r + 14]] + p[e[r + 15]];
13
13
  }
14
14
  const mt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), H = {
15
15
  randomUUID: mt
@@ -186,8 +186,8 @@ function gt(e, r, t) {
186
186
  }, i;
187
187
  function s(l) {
188
188
  n[l] && (i[l] = function(v) {
189
- return new Promise(function(E, p) {
190
- o.push([l, v, E, p]) > 1 || u(l, v);
189
+ return new Promise(function(E, d) {
190
+ o.push([l, v, E, d]) > 1 || u(l, v);
191
191
  });
192
192
  });
193
193
  }
@@ -271,8 +271,8 @@ var A = function() {
271
271
  var c = a.value;
272
272
  c.remove(this);
273
273
  }
274
- } catch (p) {
275
- r = { error: p };
274
+ } catch (d) {
275
+ r = { error: d };
276
276
  } finally {
277
277
  try {
278
278
  a && !a.done && (t = u.return) && t.call(u);
@@ -287,8 +287,8 @@ var A = function() {
287
287
  if (h(f))
288
288
  try {
289
289
  f();
290
- } catch (p) {
291
- o = p instanceof $ ? p.errors : [p];
290
+ } catch (d) {
291
+ o = d instanceof $ ? d.errors : [d];
292
292
  }
293
293
  var b = this._finalizers;
294
294
  if (b) {
@@ -298,12 +298,12 @@ var A = function() {
298
298
  var E = v.value;
299
299
  try {
300
300
  z(E);
301
- } catch (p) {
302
- o = o ?? [], p instanceof $ ? o = U(U([], O(o)), O(p.errors)) : o.push(p);
301
+ } catch (d) {
302
+ o = o ?? [], d instanceof $ ? o = U(U([], O(o)), O(d.errors)) : o.push(d);
303
303
  }
304
304
  }
305
- } catch (p) {
306
- n = { error: p };
305
+ } catch (d) {
306
+ n = { error: d };
307
307
  } finally {
308
308
  try {
309
309
  v && !v.done && (i = l.return) && i.call(l);
@@ -953,7 +953,7 @@ function ht(e, r) {
953
953
  }));
954
954
  });
955
955
  }
956
- function dt(e, r) {
956
+ function pt(e, r) {
957
957
  return r === void 0 && (r = 0), T(function(t, n) {
958
958
  n.add(e.schedule(function() {
959
959
  return t.subscribe(n);
@@ -961,10 +961,10 @@ function dt(e, r) {
961
961
  });
962
962
  }
963
963
  function Ht(e, r) {
964
- return k(e).pipe(dt(r), ht(r));
964
+ return k(e).pipe(pt(r), ht(r));
965
965
  }
966
966
  function zt(e, r) {
967
- return k(e).pipe(dt(r), ht(r));
967
+ return k(e).pipe(pt(r), ht(r));
968
968
  }
969
969
  function Kt(e, r) {
970
970
  return new y(function(t) {
@@ -993,7 +993,7 @@ function Jt(e, r) {
993
993
  };
994
994
  });
995
995
  }
996
- function pt(e, r) {
996
+ function dt(e, r) {
997
997
  if (!e)
998
998
  throw new Error("Iterable cannot be null");
999
999
  return new y(function(t) {
@@ -1008,7 +1008,7 @@ function pt(e, r) {
1008
1008
  });
1009
1009
  }
1010
1010
  function Qt(e, r) {
1011
- return pt(at(e), r);
1011
+ return dt(at(e), r);
1012
1012
  }
1013
1013
  function Wt(e, r) {
1014
1014
  if (e != null) {
@@ -1019,7 +1019,7 @@ function Wt(e, r) {
1019
1019
  if (nt(e))
1020
1020
  return zt(e, r);
1021
1021
  if (ot(e))
1022
- return pt(e, r);
1022
+ return dt(e, r);
1023
1023
  if (ct(e))
1024
1024
  return Jt(e, r);
1025
1025
  if (lt(e))
@@ -1125,7 +1125,7 @@ class M {
1125
1125
  }
1126
1126
  }
1127
1127
  const ie = async (e) => {
1128
- e.registerComponent("conversation", import("./conversation-d1f8739d.mjs").then((r) => r.c)), await M.getInstance(e.container);
1128
+ e.registerComponent("conversation", import("./conversation-721b2b72.mjs").then((r) => r.c)), await M.getInstance(e.container);
1129
1129
  };
1130
1130
  var j = /* @__PURE__ */ ((e) => (e.User = "user", e.Agent = "agent", e.System = "system", e))(j || {});
1131
1131
  class G {
@@ -1207,7 +1207,7 @@ class oe {
1207
1207
  createAgent(r) {
1208
1208
  const t = new re(r);
1209
1209
  return t.subscribe().subscribe((n) => {
1210
- this.printEntry(n);
1210
+ this.playNotification(), this.printEntry(n);
1211
1211
  }), t;
1212
1212
  }
1213
1213
  createUser(r) {
@@ -1228,6 +1228,10 @@ class oe {
1228
1228
  complete() {
1229
1229
  this.session.completeProvider();
1230
1230
  }
1231
+ playNotification() {
1232
+ const r = "https://publicpoc.blob.core.windows.net/widget-assets/notification.mp3";
1233
+ this.session.component.properties.disableSound || new Audio(r).play();
1234
+ }
1231
1235
  }
1232
1236
  export {
1233
1237
  re as A,