@telia-ace/widget-conversation-flamingo 1.1.12-rc.0 → 1.1.12-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation-8e924136.js +572 -0
- package/conversation-a518bd92.mjs +2634 -0
- package/conversation-component.d.ts +2 -0
- package/conversation-platform.d.ts +9 -49
- package/conversation-session.d.ts +11 -0
- package/conversation.d.ts +23 -0
- package/entry.d.ts +9 -0
- package/group.d.ts +7 -0
- package/index-231900d1.mjs +780 -0
- package/index-592f145b.js +3 -0
- package/index-b34ddf78.js +1 -0
- package/{index-1ea0fde8.mjs → index-b5ca9962.mjs} +320 -319
- package/index.d.ts +6 -10
- package/index.js +1 -1
- package/index.mjs +7 -9
- package/{components/conversation/ui/message-types → message-types}/message-type-html.d.ts +3 -2
- package/models/agent.d.ts +8 -0
- package/models/conversation-entry.d.ts +11 -0
- package/models/conversation-provider.d.ts +19 -0
- package/models/conversation-session-state.d.ts +13 -0
- package/models/user.d.ts +8 -0
- package/package.json +5 -6
- package/types.d.ts +9 -123
- package/agent.d.ts +0 -20
- package/components/conversation/conversation.d.ts +0 -19
- package/components/conversation/plugin.d.ts +0 -45
- package/components/conversation/ui/message-list.d.ts +0 -9
- package/components/conversation/ui/message-types/message-type-link-list.d.ts +0 -8
- package/components/conversation/ui/message-types/message-type-separator.d.ts +0 -7
- package/components/conversation/ui/message.d.ts +0 -8
- package/components/conversation/utils.d.ts +0 -1
- package/conversation-17a64990.mjs +0 -1865
- package/conversation-b2f9f789.js +0 -446
- package/conversation-controller.d.ts +0 -118
- package/conversation-history.d.ts +0 -26
- package/conversation-provider.d.ts +0 -32
- package/index-c51d4b6a.js +0 -1
- package/index-ecfa0fe7.js +0 -156
- package/index-ffd77508.mjs +0 -3923
- package/send-18482cae.mjs +0 -4
- package/send-eb8b9428.js +0 -1
- package/store.d.ts +0 -31
- package/user.d.ts +0 -9
- package/utils/custom-message.d.ts +0 -2
- package/utils/index.d.ts +0 -1
- package/utils/open-chat-widget.d.ts +0 -4
- package/utils/swap-provider.d.ts +0 -8
@@ -0,0 +1,572 @@
|
|
1
|
+
"use strict";const St=require("./index-592f145b.js");/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2019 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/const rt=globalThis,jt=rt.ShadowRoot&&(rt.ShadyCSS===void 0||rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Dt=Symbol(),Qt=new WeakMap;let Ee=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==Dt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(jt&&t===void 0){const i=s!==void 0&&s.length===1;i&&(t=Qt.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Qt.set(s,t))}return t}toString(){return this.cssText}};const ls=e=>new Ee(typeof e=="string"?e:e+"",void 0,Dt),w=(e,...t)=>{const s=e.length===1?e[0]:t.reduce((i,n,r)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1],e[0]);return new Ee(s,e,Dt)},cs=(e,t)=>{if(jt)e.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(const s of t){const i=document.createElement("style"),n=rt.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=s.cssText,e.appendChild(i)}},Zt=jt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return ls(s)})(e):e;/**
|
6
|
+
* @license
|
7
|
+
* Copyright 2017 Google LLC
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
9
|
+
*/const{is:ds,defineProperty:hs,getOwnPropertyDescriptor:ps,getOwnPropertyNames:us,getOwnPropertySymbols:fs,getPrototypeOf:$s}=Object,C=globalThis,Xt=C.trustedTypes,gs=Xt?Xt.emptyScript:"",Ct=C.reactiveElementPolyfillSupport,q=(e,t)=>e,ot={toAttribute(e,t){switch(t){case Boolean:e=e?gs:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=e!==null;break;case Number:s=e===null?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch{s=null}}return s}},It=(e,t)=>!ds(e,t),Jt={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:It};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),C.litPropertyMetadata??(C.litPropertyMetadata=new WeakMap);let H=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=Jt){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(t,i,s);n!==void 0&&hs(this.prototype,t,n)}}static getPropertyDescriptor(t,s,i){const{get:n,set:r}=ps(this.prototype,t)??{get(){return this[s]},set(o){this[s]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const a=n==null?void 0:n.call(this);r.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Jt}static _$Ei(){if(this.hasOwnProperty(q("elementProperties")))return;const t=$s(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(q("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(q("properties"))){const s=this.properties,i=[...us(s),...fs(s)];for(const n of i)this.createProperty(n,s[n])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[i,n]of s)this.elementProperties.set(i,n)}this._$Eh=new Map;for(const[s,i]of this.elementProperties){const n=this._$Eu(s,i);n!==void 0&&this._$Eh.set(n,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const n of i)s.unshift(Zt(n))}else t!==void 0&&s.push(Zt(t));return s}static _$Eu(t,s){const i=s.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(s=>s(this))}addController(t){var s;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$ES)==null||s.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return cs(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(s=>{var i;return(i=s.hostDisconnected)==null?void 0:i.call(s)})}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EO(t,s){var r;const i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){const o=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:ot).toAttribute(s,i.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,s){var r;const i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=i.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)==null?void 0:r.fromAttribute)!==void 0?o.converter:ot;this._$Em=n,this[n]=a.fromAttribute(s,o.type),this._$Em=null}}requestUpdate(t,s,i,n=!1,r){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??It)(n?r:this[t],s))return;this.C(t,s,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(s){Promise.reject(s)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,o]of n)o.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.C(r,this[r],o)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(i=this._$ES)==null||i.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(s)):this._$ET()}catch(n){throw t=!1,this._$ET(),n}t&&this._$AE(s)}willUpdate(t){}_$AE(t){var s;(s=this._$ES)==null||s.forEach(i=>{var n;return(n=i.hostUpdated)==null?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(s=>this._$EO(s,this[s]))),this._$ET()}updated(t){}firstUpdated(t){}};H.elementStyles=[],H.shadowRootOptions={mode:"open"},H[q("elementProperties")]=new Map,H[q("finalized")]=new Map,Ct==null||Ct({ReactiveElement:H}),(C.reactiveElementVersions??(C.reactiveElementVersions=[])).push("2.0.1");/**
|
10
|
+
* @license
|
11
|
+
* Copyright 2017 Google LLC
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
13
|
+
*/const Y=globalThis,at=Y.trustedTypes,Vt=at?at.createPolicy("lit-html",{createHTML:e=>e}):void 0,Te="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,ke="?"+S,vs=`<${ke}>`,U=document,Q=()=>U.createComment(""),Z=e=>e===null||typeof e!="object"&&typeof e!="function",Oe=Array.isArray,ms=e=>Oe(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Et=`[
|
14
|
+
\f\r]`,G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,te=/-->/g,ee=/>/g,O=RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),se=/'/g,ie=/"/g,Pe=/^(?:script|style|textarea|title)$/i,ys=e=>(t,...s)=>({_$litType$:e,strings:t,values:s}),$=ys(1),E=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ne=new WeakMap,L=U.createTreeWalker(U,129);function Le(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}const bs=(e,t)=>{const s=e.length-1,i=[];let n,r=t===2?"<svg>":"",o=G;for(let a=0;a<s;a++){const l=e[a];let c,h,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,h=o.exec(l),h!==null);)p=o.lastIndex,o===G?h[1]==="!--"?o=te:h[1]!==void 0?o=ee:h[2]!==void 0?(Pe.test(h[2])&&(n=RegExp("</"+h[2],"g")),o=O):h[3]!==void 0&&(o=O):o===O?h[0]===">"?(o=n??G,d=-1):h[1]===void 0?d=-2:(d=o.lastIndex-h[2].length,c=h[1],o=h[3]===void 0?O:h[3]==='"'?ie:se):o===ie||o===se?o=O:o===te||o===ee?o=G:(o=O,n=void 0);const f=o===O&&e[a+1].startsWith("/>")?" ":"";r+=o===G?l+vs:d>=0?(i.push(c),l.slice(0,d)+Te+l.slice(d)+S+f):l+S+(d===-2?a:f)}return[Le(e,r+(e[s]||"<?>")+(t===2?"</svg>":"")),i]};class X{constructor({strings:t,_$litType$:s},i){let n;this.parts=[];let r=0,o=0;const a=t.length-1,l=this.parts,[c,h]=bs(t,s);if(this.el=X.createElement(c,i),L.currentNode=this.el.content,s===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=L.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const d of n.getAttributeNames())if(d.endsWith(Te)){const p=h[o++],f=n.getAttribute(d).split(S),_=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:_[2],strings:f,ctor:_[1]==="."?xs:_[1]==="?"?ws:_[1]==="@"?As:vt}),n.removeAttribute(d)}else d.startsWith(S)&&(l.push({type:6,index:r}),n.removeAttribute(d));if(Pe.test(n.tagName)){const d=n.textContent.split(S),p=d.length-1;if(p>0){n.textContent=at?at.emptyScript:"";for(let f=0;f<p;f++)n.append(d[f],Q()),L.nextNode(),l.push({type:2,index:++r});n.append(d[p],Q())}}}else if(n.nodeType===8)if(n.data===ke)l.push({type:2,index:r});else{let d=-1;for(;(d=n.data.indexOf(S,d+1))!==-1;)l.push({type:7,index:r}),d+=S.length-1}r++}}static createElement(t,s){const i=U.createElement("template");return i.innerHTML=t,i}}function B(e,t,s=e,i){var o,a;if(t===E)return t;let n=i!==void 0?(o=s._$Co)==null?void 0:o[i]:s._$Cl;const r=Z(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),r===void 0?n=void 0:(n=new r(e),n._$AT(e,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=n:s._$Cl=n),n!==void 0&&(t=B(e,n._$AS(e,t.values),n,i)),t}class _s{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,n=((t==null?void 0:t.creationScope)??U).importNode(s,!0);L.currentNode=n;let r=L.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new V(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new Ss(r,this,t)),this._$AV.push(c),l=i[++a]}o!==(l==null?void 0:l.index)&&(r=L.nextNode(),o++)}return L.currentNode=U,n}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class V{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,n){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=B(this,t,s),Z(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==E&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ms(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==u&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.$(U.createTextNode(t)),this._$AH=t}g(t){var r;const{values:s,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=X.createElement(Le(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===n)this._$AH.p(s);else{const o=new _s(n,this),a=o.u(this.options);o.p(s),this.$(a),this._$AH=o}}_$AC(t){let s=ne.get(t.strings);return s===void 0&&ne.set(t.strings,s=new X(t)),s}T(t){Oe(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,n=0;for(const r of t)n===s.length?s.push(i=new V(this.k(Q()),this.k(Q()),this,this.options)):i=s[n],i._$AI(r),n++;n<s.length&&(this._$AR(i&&i._$AB.nextSibling,n),s.length=n)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}}class vt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,n,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=s,this._$AM=n,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(t,s=this,i,n){const r=this.strings;let o=!1;if(r===void 0)t=B(this,t,s,0),o=!Z(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=B(this,a[i+l],s,l),c===E&&(c=this._$AH[l]),o||(o=!Z(c)||c!==this._$AH[l]),c===u?t=u:t!==u&&(t+=(c??"")+r[l+1]),this._$AH[l]=c}o&&!n&&this.O(t)}O(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xs extends vt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===u?void 0:t}}let ws=class extends vt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}};class As extends vt{constructor(t,s,i,n,r){super(t,s,i,n,r),this.type=5}_$AI(t,s=this){if((t=B(this,t,s,0)??u)===E)return;const i=this._$AH,n=t===u&&i!==u||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==u&&(i===u||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class Ss{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){B(this,t)}}const Tt=Y.litHtmlPolyfillSupport;Tt==null||Tt(X,V),(Y.litHtmlVersions??(Y.litHtmlVersions=[])).push("3.0.2");const Cs=(e,t,s)=>{const i=(s==null?void 0:s.renderBefore)??t;let n=i._$litPart$;if(n===void 0){const r=(s==null?void 0:s.renderBefore)??null;i._$litPart$=n=new V(t.insertBefore(Q(),r),r,void 0,s??{})}return n._$AI(e),n};/**
|
16
|
+
* @license
|
17
|
+
* Copyright 2017 Google LLC
|
18
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
19
|
+
*/let y=class extends H{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var s;const t=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=t.firstChild),t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Cs(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return E}};var Ce;y._$litElement$=!0,y.finalized=!0,(Ce=globalThis.litElementHydrateSupport)==null||Ce.call(globalThis,{LitElement:y});const kt=globalThis.litElementPolyfillSupport;kt==null||kt({LitElement:y});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");const Ue={name:"send",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>'},M={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let R,Ne,mt,He=!1,lt=!1,Bt=!1,m=!1,re=null,Ut=!1;const yt=typeof window<"u"?window:{},x=yt.document||{head:{}},Me=yt.HTMLElement||class{},v={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,i)=>e.addEventListener(t,s,i),rel:(e,t,s,i)=>e.removeEventListener(t,s,i),ce:(e,t)=>new CustomEvent(e,t)},Es=(()=>{let e=!1;try{x.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),Ts=e=>Promise.resolve(e),ks=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Re=(e,t,s,i)=>{s&&s.map(([n,r,o])=>{const a=Ps(e,n),l=Os(t,o),c=Ls(n);v.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>v.rel(a,r,l,c))})},Os=(e,t)=>s=>{try{M.lazyLoad||e.$hostElement$[t](s)}catch(i){tt(i)}},Ps=(e,t)=>t&4?x:t&8?yt:t&16?x.body:e,Ls=e=>Es?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,oe="http://www.w3.org/1999/xlink",N=(e,t="")=>()=>{},ae=new WeakMap,Us=(e,t,s)=>{let i=ht.get(e);ks&&s?(i=i||new CSSStyleSheet,i.replace(t)):i=t,ht.set(e,i)},Ns=(e,t,s,i)=>{let n=je(t,s),r=ht.get(n);if(e=e.nodeType===11?e:x,r)if(typeof r=="string"){e=e.head||e;let o=ae.get(e),a;o||ae.set(e,o=new Set),o.has(n)||(a=x.createElement("style"),a.innerHTML=r,e.insertBefore(a,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return n},Hs=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,i=t.$flags$,n=N("attachStyles",t.$tagName$),r=Ns(s.shadowRoot?s.shadowRoot:s.getRootNode(),t,e.$modeName$);i&10&&(s["s-sc"]=r,s.classList.add(r+"-h"),i&2&&s.classList.add(r+"-s")),n()},je=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Ms=e=>di.map(t=>t(e)).find(t=>!!t),le={},Rs="http://www.w3.org/2000/svg",js="http://www.w3.org/1999/xhtml",Ds=e=>e!=null,zt=e=>(e=typeof e,e==="object"||e==="function"),D=(e,t,...s)=>{let i=null,n=null,r=null,o=!1,a=!1,l=[];const c=d=>{for(let p=0;p<d.length;p++)i=d[p],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((o=typeof e!="function"&&!zt(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?ct(null,i):i),a=o)};if(c(s),t){t.key&&(n=t.key),t.name&&(r=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter(p=>d[p]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Bs);const h=ct(e,null);return h.$attrs$=t,l.length>0&&(h.$children$=l),h.$key$=n,h.$name$=r,h},ct=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},Ft={},Is=e=>e&&e.$tag$===Ft,Bs={forEach:(e,t)=>e.map(ce).forEach(t),map:(e,t)=>e.map(ce).map(t).map(zs)},ce=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),zs=e=>{if(typeof e.vtag=="function"){const s=Object.assign({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),D(e.vtag,s,...e.vchildren||[])}const t=ct(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},de=(e,t,s,i,n,r)=>{if(s!==i){let o=fe(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=he(s),h=he(i);l.remove(...c.filter(d=>d&&!h.includes(d))),l.add(...h.filter(d=>d&&!c.includes(d)))}else if(t==="style"){for(const l in s)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!s||i[l]!==s[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):fe(yt,a)?t=a.slice(2):t=a[2]+t.slice(3),s&&v.rel(e,t,s,!1),i&&v.ael(e,t,i,!1);else{const l=zt(i);if((o||l&&i!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=i;else{let h=i??"";t==="list"?o=!1:(s==null||e[t]!=h)&&(e[t]=h)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(oe,t):e.removeAttribute(t)):(!o||r&4||n)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(oe,t,i):e.setAttribute(t,i))}}},Fs=/\s/,he=e=>e?e.split(Fs):[],De=(e,t,s,i)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||le,o=t.$attrs$||le;for(i in r)i in o||de(n,i,r[i],void 0,s,t.$flags$);for(i in o)de(n,i,r[i],o[i],s,t.$flags$)},dt=(e,t,s,i)=>{let n=t.$children$[s],r=0,o,a,l;if(He||(Bt=!0,n.$tag$==="slot"&&(R&&i.classList.add(R+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=x.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=x.createTextNode("");else{if(m||(m=n.$tag$==="svg"),o=n.$elm$=x.createElementNS(m?Rs:js,n.$flags$&2?"slot-fb":n.$tag$),m&&n.$tag$==="foreignObject"&&(m=!1),De(null,n,m),Ds(R)&&o["s-si"]!==R&&o.classList.add(o["s-si"]=R),n.$children$)for(r=0;r<n.$children$.length;++r)a=dt(e,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?m=!1:o.tagName==="foreignObject"&&(m=!0)}return o["s-hn"]=mt,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Ne,o["s-sn"]=n.$name$||"",l=e&&e.$children$&&e.$children$[s],l&&l.$tag$===n.$tag$&&e.$elm$&&J(e.$elm$,!1)),o},J=(e,t)=>{v.$flags$|=1;const s=e.childNodes;for(let i=s.length-1;i>=0;i--){const n=s[i];n["s-hn"]!==mt&&n["s-ol"]&&(ze(n).insertBefore(n,Wt(n)),n["s-ol"].remove(),n["s-ol"]=void 0,Bt=!0),t&&J(n,t)}v.$flags$&=-2},Ie=(e,t,s,i,n,r)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(o.shadowRoot&&o.tagName===mt&&(o=o.shadowRoot);n<=r;++n)i[n]&&(a=dt(null,s,n,e),a&&(i[n].$elm$=a,o.insertBefore(a,Wt(t))))},Be=(e,t,s,i,n)=>{for(;t<=s;++t)(i=e[t])&&(n=i.$elm$,Ge(i),lt=!0,n["s-ol"]?n["s-ol"].remove():J(n,!0),n.remove())},Ws=(e,t,s,i)=>{let n=0,r=0,o=0,a=0,l=t.length-1,c=t[0],h=t[l],d=i.length-1,p=i[0],f=i[d],_,st;for(;n<=l&&r<=d;)if(c==null)c=t[++n];else if(h==null)h=t[--l];else if(p==null)p=i[++r];else if(f==null)f=i[--d];else if(it(c,p))j(c,p),c=t[++n],p=i[++r];else if(it(h,f))j(h,f),h=t[--l],f=i[--d];else if(it(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&J(c.$elm$.parentNode,!1),j(c,f),e.insertBefore(c.$elm$,h.$elm$.nextSibling),c=t[++n],f=i[--d];else if(it(h,p))(c.$tag$==="slot"||f.$tag$==="slot")&&J(h.$elm$.parentNode,!1),j(h,p),e.insertBefore(h.$elm$,c.$elm$),h=t[--l],p=i[++r];else{for(o=-1,a=n;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===p.$key$){o=a;break}o>=0?(st=t[o],st.$tag$!==p.$tag$?_=dt(t&&t[r],s,o,e):(j(st,p),t[o]=void 0,_=st.$elm$),p=i[++r]):(_=dt(t&&t[r],s,r,e),p=i[++r]),_&&ze(c.$elm$).insertBefore(_,Wt(c.$elm$))}n>l?Ie(e,i[d+1]==null?null:i[d+1].$elm$,s,i,r,d):r>d&&Be(t,n,l)},it=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,Wt=e=>e&&e["s-ol"]||e,ze=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,j=(e,t)=>{const s=t.$elm$=e.$elm$,i=e.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(m=r==="svg"?!0:r==="foreignObject"?!1:m,r==="slot"||De(e,t,m),i!==null&&n!==null?Ws(s,i,t,n):n!==null?(e.$text$!==null&&(s.textContent=""),Ie(s,null,t,n,0,n.length-1)):i!==null&&Be(i,0,i.length-1),m&&r==="svg"&&(m=!1)):(a=s["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(s.data=o)},Fe=e=>{let t=e.childNodes,s,i,n,r,o,a;for(i=0,n=t.length;i<n;i++)if(s=t[i],s.nodeType===1){if(s["s-sr"]){for(o=s["s-sn"],s.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==s["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){s.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){s.hidden=!0;break}}Fe(s)}},b=[],We=e=>{let t,s,i,n,r,o,a=0,l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(s=t["s-cr"])&&s.parentNode)for(i=s.parentNode.childNodes,n=t["s-sn"],o=i.length-1;o>=0;o--)s=i[o],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==t["s-hn"]&&(pe(s,n)?(r=b.find(h=>h.$nodeToRelocate$===s),lt=!0,s["s-sn"]=s["s-sn"]||n,r?r.$slotRefNode$=t:b.push({$slotRefNode$:t,$nodeToRelocate$:s}),s["s-sr"]&&b.map(h=>{pe(h.$nodeToRelocate$,s["s-sn"])&&(r=b.find(d=>d.$nodeToRelocate$===s),r&&!h.$slotRefNode$&&(h.$slotRefNode$=r.$slotRefNode$))})):b.some(h=>h.$nodeToRelocate$===s)||b.push({$nodeToRelocate$:s}));t.nodeType===1&&We(t)}},pe=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Ge=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Ge)},Gs=(e,t)=>{const s=e.$hostElement$,i=e.$cmpMeta$,n=e.$vnode$||ct(null,null),r=Is(t)?t:D(null,null,t);mt=s.tagName,i.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},i.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=s[o])),r.$tag$=null,r.$flags$|=4,e.$vnode$=r,r.$elm$=n.$elm$=s.shadowRoot||s,R=s["s-sc"],Ne=s["s-cr"],He=(i.$flags$&1)!==0,lt=!1,j(n,r);{if(v.$flags$|=1,Bt){We(r.$elm$);let o,a,l,c,h,d,p=0;for(;p<b.length;p++)o=b[p],a=o.$nodeToRelocate$,a["s-ol"]||(l=x.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(p=0;p<b.length;p++)if(o=b[p],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,h=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(d=l["s-nr"],d&&d["s-sn"]===a["s-sn"]&&c===d.parentNode&&(d=d.nextSibling,!d||!d["s-nr"])){h=d;break}(!h&&c!==a.parentNode||a.nextSibling!==h)&&a!==h&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,h))}else a.nodeType===1&&(a.hidden=!0)}lt&&Fe(r.$elm$),v.$flags$&=-2,b.length=0}},qs=e=>e,Ys=(e,t,s)=>{const i=qs(e);return{emit:n=>Ks(i,t,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:n})}},Ks=(e,t,s)=>{const i=v.ce(t,s);return e.dispatchEvent(i),i},Qs=(e,t)=>{},qe=(e,t)=>(e.$flags$|=16,Qs(e,e.$ancestorComponent$),ui(()=>Zs(e,t))),Zs=(e,t)=>{const s=e.$hostElement$,i=N("scheduleUpdate",e.$cmpMeta$.$tagName$),n=s;let r;return t?r=I(n,"componentWillLoad"):r=I(n,"componentWillUpdate"),r=ue(r,()=>I(n,"componentWillRender")),i(),ue(r,()=>Xs(e,n,t))},Xs=async(e,t,s)=>{const i=e.$hostElement$,n=N("update",e.$cmpMeta$.$tagName$);i["s-rc"],s&&Hs(e);const r=N("render",e.$cmpMeta$.$tagName$);Js(e,t,i),r(),n(),Vs(e)},Js=(e,t,s)=>{try{re=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(M.hasRenderFn||M.reflect)&&(M.vdomRender||M.reflect)&&(M.hydrateServerSide||Gs(e,t))}catch(a){tt(a,e.$hostElement$)}return re=null,null},Vs=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,i=N("postUpdate",t),n=s;e.$ancestorComponent$,I(n,"componentDidRender"),e.$flags$&64?(I(n,"componentDidUpdate"),i()):(e.$flags$|=64,I(n,"componentDidLoad"),i())},I=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(i){tt(i)}},ue=(e,t)=>e&&e.then?e.then(t):t(),ti=(e,t)=>e!=null&&!zt(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ei=(e,t)=>bt(e).$instanceValues$.get(t),si=(e,t,s,i)=>{const n=bt(e),r=e,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;s=ti(s,i.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(s);if(s!==o&&!c){n.$instanceValues$.set(t,s);{if(i.$watchers$&&a&128){const d=i.$watchers$[t];d&&d.map(p=>{try{l[p](s,o,t)}catch(f){tt(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,o,t)===!1)return;qe(n,!1)}}}},ii=(e,t,s)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),n=e.prototype;i.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return ei(this,r)},set(a){si(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){v.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return e},ni=async(e,t,s,i,n)=>{if(!(t.$flags$&32)&&(n=e.constructor,t.$flags$|=32,customElements.whenDefined(s.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=Ms(e)]);const a=je(s,t.$modeName$);if(!ht.has(a)){const l=N("registerStyles",s.$tagName$);Us(a,o,!!(s.$flags$&1)),l()}}t.$ancestorComponent$,(()=>qe(t,!0))()},ri=e=>{},oi=e=>{if(!(v.$flags$&1)){const t=bt(e),s=t.$cmpMeta$,i=N("connectedCallback",s.$tagName$);t.$flags$&1?(Re(e,t,s.$listeners$),ri(t.$lazyInstance$)):(t.$flags$|=1,s.$flags$&12&&ai(e),s.$members$&&Object.entries(s.$members$).map(([n,[r]])=>{if(r&31&&e.hasOwnProperty(n)){const o=e[n];delete e[n],e[n]=o}}),ni(e,t,s)),i()}},ai=e=>{const t=e["s-cr"]=x.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},li=e=>{if(!(v.$flags$&1)){const t=bt(e);t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0)}},Ye=(e,t)=>{const s={$flags$:t[0],$tagName$:t[1]};s.$members$=t[2],s.$listeners$=t[3],s.$watchers$=e.$watchers$,s.$attrsToReflect$=[];const i=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){ci(this,s)},connectedCallback(){oi(this),i&&i.call(this)},disconnectedCallback(){li(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(s.$flags$&16)})}}),e.is=s.$tagName$,ii(e,s)},Ke=new WeakMap,bt=e=>Ke.get(e),ci=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return Re(e,s,t.$listeners$),Ke.set(e,s)},fe=(e,t)=>t in e,tt=(e,t)=>(0,console.error)(e,t),ht=new Map,di=[],$e=[],Qe=[],hi=(e,t)=>s=>{e.push(s),Ut||(Ut=!0,t&&v.$flags$&4?pi(Nt):v.raf(Nt))},ge=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){tt(s)}e.length=0},Nt=()=>{ge($e),ge(Qe),(Ut=$e.length>0)&&v.raf(Nt)},pi=e=>Ts().then(e),ui=hi(Qe,!0),fi=(e={})=>{const{content:t="",title:s,attributes:i=[]}=e;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...i];return s&&(n=`<title>${s}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},$i=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim();function gi(e){return`${e.getFullYear()}.${e.getMonth()+1}`}class vi{constructor(t){this.voca_component=t,this.voca_added=gi(new Date)}}const mi="telia-vst{display:none}",yi=Ye(class extends Me{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Ys(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new vi(this.dataTrackingId))}render(){return D(Ft,null)}static get style(){return mi}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Ze(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,yi);break}})}Ze();function Ht(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function bi(){if(typeof Ht().vocadsIcons!==void 0)return Ht().vocadsIcons}function _i(){return Ht().vocadsIconsRegistered}const xi=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",wi=Ye(class extends Me{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(_i()&&this.name){const e=bi();return e[this.name]?e[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let e=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const s=fi({content:$i(e),attributes:t,title:this.allyTitle});return D(Ft,{class:`telia-icon telia-icon--${this.size}`},D("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:s}),D("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return xi}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Ai(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,wi);break;case"telia-vst":customElements.get(t)||Ze();break}})}Ai();/**
|
20
|
+
* @license
|
21
|
+
* Copyright 2017 Google LLC
|
22
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
23
|
+
*/const k=e=>(t,s)=>{s!==void 0?s.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/**
|
24
|
+
* @license
|
25
|
+
* Copyright 2017 Google LLC
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
27
|
+
*/const Si={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:It},Ci=(e=Si,t,s)=>{const{kind:i,metadata:n}=s;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),r.set(s.name,e),i==="accessor"){const{name:o}=s;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.C(o,void 0,e),a}}}if(i==="setter"){const{name:o}=s;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+i)};function g(e){return(t,s)=>typeof s=="object"?Ci(e,t,s):((i,n,r)=>{const o=n.hasOwnProperty(r);return n.constructor.createProperty(r,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(n,r):void 0})(e,t,s)}/**
|
28
|
+
* @license
|
29
|
+
* Copyright 2017 Google LLC
|
30
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
31
|
+
*/function A(e){return g({...e,state:!0,attribute:!1})}/**
|
32
|
+
* @license
|
33
|
+
* Copyright 2020 Google LLC
|
34
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
35
|
+
*/const Ei=e=>e.strings===void 0;/**
|
36
|
+
* @license
|
37
|
+
* Copyright 2017 Google LLC
|
38
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
39
|
+
*/const _t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xt=e=>(...t)=>({_$litDirective$:e,values:t});let Gt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,i){this._$Ct=t,this._$AM=s,this._$Ci=i}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
|
40
|
+
* @license
|
41
|
+
* Copyright 2017 Google LLC
|
42
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
43
|
+
*/const K=(e,t)=>{var i;const s=e._$AN;if(s===void 0)return!1;for(const n of s)(i=n._$AO)==null||i.call(n,t,!1),K(n,t);return!0},pt=e=>{let t,s;do{if((t=e._$AM)===void 0)break;s=t._$AN,s.delete(e),e=t}while((s==null?void 0:s.size)===0)},Xe=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),Oi(t)}};function Ti(e){this._$AN!==void 0?(pt(this),this._$AM=e,Xe(this)):this._$AM=e}function ki(e,t=!1,s=0){const i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(i))for(let r=s;r<i.length;r++)K(i[r],!1),pt(i[r]);else i!=null&&(K(i,!1),pt(i));else K(this,e)}const Oi=e=>{e.type==_t.CHILD&&(e._$AP??(e._$AP=ki),e._$AQ??(e._$AQ=Ti))};let Je=class extends Gt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Xe(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,n;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(n=this.disconnected)==null||n.call(this)),s&&(K(this,t),pt(this))}setValue(t){if(Ei(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}};/**
|
44
|
+
* @license
|
45
|
+
* Copyright 2020 Google LLC
|
46
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
47
|
+
*/const Ve=()=>new Pi;class Pi{}const Ot=new WeakMap,ts=xt(class extends Je{render(e){return u}update(e,[t]){var i;const s=t!==this.G;return s&&this.G!==void 0&&this.ot(void 0),(s||this.rt!==this.lt)&&(this.G=t,this.ct=(i=e.options)==null?void 0:i.host,this.ot(this.lt=e.element)),u}ot(e){if(typeof this.G=="function"){const t=this.ct??globalThis;let s=Ot.get(t);s===void 0&&(s=new WeakMap,Ot.set(t,s)),s.get(this.G)!==void 0&&this.G.call(this.ct,void 0),s.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t;return typeof this.G=="function"?(e=Ot.get(this.ct??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});/**
|
48
|
+
* @license
|
49
|
+
* Copyright 2018 Google LLC
|
50
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
51
|
+
*/const qt=xt(class extends Gt{constructor(e){var t;if(super(e),e.type!==_t.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 E}}),nt=(e,t,s)=>{e&&s.style.setProperty(t,e)},es=(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 Li=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,et=(e,t,s,i)=>{for(var n=i>1?void 0:i?Ui(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&&Li(t,s,n),n};let T=class extends y{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}_toggleActive(){var e;if(!((e=this.application)!=null&&e.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.removeFromDOM()}_applyBranding(){var e;(e=this.application)!=null&&e.settings&&es(this.application.settings.branding,this)}async _renderSymbol(){var n;const e=(n=this.application)==null?void 0:n.triggerIcon;if(!e)return u;const t=async r=>await Promise.resolve().then(()=>require("./index-b34ddf78.js")).then(a=>a[r]),{type:s,content:i}=e;switch(s){case"Telia":{const r=await t(i);return r?$`<telia-icon
|
52
|
+
class="trigger-icon"
|
53
|
+
svg=${r.svg}
|
54
|
+
size="lg"
|
55
|
+
></telia-icon>`:u}default:return u}}render(){return $`<button
|
56
|
+
class=${qt({trigger:!0,active:this.active,rendered:this.loaded})}
|
57
|
+
@click=${this._toggleActive}
|
58
|
+
>
|
59
|
+
${this.icon}
|
60
|
+
<span class="trigger-close">
|
61
|
+
<svg
|
62
|
+
width="18"
|
63
|
+
height="9"
|
64
|
+
viewBox="0 0 18 9"
|
65
|
+
fill="none"
|
66
|
+
xmlns="http://www.w3.org/2000/svg"
|
67
|
+
>
|
68
|
+
<path
|
69
|
+
d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
|
70
|
+
fill="white"
|
71
|
+
/>
|
72
|
+
</svg>
|
73
|
+
</span>
|
74
|
+
<span class="trigger-loader">
|
75
|
+
<svg viewBox="25 25 50 50">
|
76
|
+
<circle
|
77
|
+
cx="50"
|
78
|
+
cy="50"
|
79
|
+
r="20"
|
80
|
+
fill="none"
|
81
|
+
stroke="#000"
|
82
|
+
stroke-width="2"
|
83
|
+
stroke-miterlimit="10"
|
84
|
+
/>
|
85
|
+
</svg>
|
86
|
+
</span>
|
87
|
+
</button>`}};T.styles=[w`
|
88
|
+
:host {
|
89
|
+
--voca-rem-multiplier: 0.625;
|
90
|
+
display: block;
|
91
|
+
box-sizing: border-box;
|
92
|
+
}
|
93
|
+
|
94
|
+
.trigger {
|
95
|
+
position: fixed;
|
96
|
+
transform: scale(0);
|
97
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
98
|
+
bottom: 20px;
|
99
|
+
right: 20px;
|
100
|
+
z-index: 5;
|
101
|
+
display: flex;
|
102
|
+
align-items: center;
|
103
|
+
justify-content: center;
|
104
|
+
border: none;
|
105
|
+
line-height: 55px;
|
106
|
+
height: 55px;
|
107
|
+
width: 55px;
|
108
|
+
border-radius: 55px;
|
109
|
+
cursor: pointer;
|
110
|
+
background-color: var(--trigger-bg, var(--primary-background));
|
111
|
+
font-family: Lato;
|
112
|
+
text-decoration: none;
|
113
|
+
border: 3px dashed transparent;
|
114
|
+
box-sizing: border-box;
|
115
|
+
transition: transform 200ms ease-out;
|
116
|
+
}
|
117
|
+
.trigger:hover {
|
118
|
+
transform: scale(1.1) !important;
|
119
|
+
}
|
120
|
+
.trigger.rendered {
|
121
|
+
transform: scale(1);
|
122
|
+
}
|
123
|
+
.trigger.active .trigger-icon {
|
124
|
+
opacity: 0;
|
125
|
+
transform: rotate(-180deg) scale(0);
|
126
|
+
}
|
127
|
+
.trigger.active .trigger-close {
|
128
|
+
opacity: 1;
|
129
|
+
transform: rotate(0deg) scale(1);
|
130
|
+
}
|
131
|
+
|
132
|
+
.trigger-icon {
|
133
|
+
display: inline-block;
|
134
|
+
line-height: inherit;
|
135
|
+
text-align: center;
|
136
|
+
opacity: 1;
|
137
|
+
transform: rotate(0deg) scale(1);
|
138
|
+
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
139
|
+
color: var(--trigger-text-color, var(--text-on-primary-background));
|
140
|
+
}
|
141
|
+
.trigger-close {
|
142
|
+
opacity: 0;
|
143
|
+
transition: transform 200ms ease-out;
|
144
|
+
transform: rotate(180deg) scale(0);
|
145
|
+
position: absolute;
|
146
|
+
top: 0;
|
147
|
+
bottom: 0;
|
148
|
+
left: 0;
|
149
|
+
right: 0;
|
150
|
+
display: flex;
|
151
|
+
justify-content: center;
|
152
|
+
align-items: center;
|
153
|
+
fill: var(--trigger-text-color, var(--text-on-primary-background));
|
154
|
+
}
|
155
|
+
`];et([g({attribute:!1})],T.prototype,"application",2);et([A()],T.prototype,"active",2);et([A()],T.prototype,"loaded",2);et([A()],T.prototype,"icon",2);T=et([k("ace-trigger")],T);var Ni=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,P=(e,t,s,i)=>{for(var n=i>1?void 0:i?Hi(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&&Ni(t,s,n),n};const ss=e=>{class t extends e{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[w`
|
156
|
+
:host {
|
157
|
+
font-family: var(--font-family);
|
158
|
+
grid-column: span var(--width);
|
159
|
+
max-width: 100%;
|
160
|
+
overflow: hidden;
|
161
|
+
box-sizing: border-box;
|
162
|
+
display: block;
|
163
|
+
}
|
164
|
+
* {
|
165
|
+
box-sizing: border-box;
|
166
|
+
}
|
167
|
+
`],P([g()],t.prototype,"properties",2),P([g()],t.prototype,"context",2),P([g()],t.prototype,"layout",2),P([g()],t.prototype,"name",2),P([g()],t.prototype,"type",2),P([g({attribute:!1})],t.prototype,"application",2),P([g({attribute:!1})],t.prototype,"parent",2),t};var Mi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,ji=(e,t,s,i)=>{for(var n=i>1?void 0:i?Ri(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};let Mt=class extends ss(y){render(){return $`Non resolved component`}};Mt.styles=[w`
|
168
|
+
:host {
|
169
|
+
display: block;
|
170
|
+
}
|
171
|
+
`];Mt=ji([k("ace-unresolved-component")],Mt);/**
|
172
|
+
* @license
|
173
|
+
* Copyright 2021 Google LLC
|
174
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
175
|
+
*/function*Di(e,t){if(e!==void 0){let s=0;for(const i of e)yield t(i,s++)}}var Yt=(e=>(e.Inline="inline",e.Trigger="trigger",e))(Yt||{}),Ii=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,is=(e,t,s,i)=>{for(var n=i>1?void 0:i?Bi(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&&Ii(t,s,n),n};let ut=class extends y{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=Ve()}addChild(e){e.parent=this,this.nodes.push(e)}applyBranding(){if(this.wrapperRef.value){const e=this.application.settings;e!=null&&e.branding&&es(e.branding,this.wrapperRef.value)}}firstUpdated(e){this.applyBranding()}render(){return this.application.renderStrategy===Yt.Trigger&&this.renderRoot.host.classList.add("floating"),$`<div class="widget-container" ${ts(this.wrapperRef)}>
|
176
|
+
${Di(this.nodes,e=>e)}
|
177
|
+
</div>`}};ut.styles=w`
|
178
|
+
:host {
|
179
|
+
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
180
|
+
--spacing-xs: 0.2rem;
|
181
|
+
--spacing-sm: 0.5rem;
|
182
|
+
--spacing-md: 1rem;
|
183
|
+
--spacing-lg: 1.2rem;
|
184
|
+
--spacing-xl: 1.8rem;
|
185
|
+
|
186
|
+
--text-color: #222222;
|
187
|
+
--link-color: #990ae3;
|
188
|
+
--gray-color: #f3f3f8;
|
189
|
+
--gray-dark-color: #a6a6a6;
|
190
|
+
|
191
|
+
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
192
|
+
--border-radius: var(--spacing-sm);
|
193
|
+
--border-radius-sm: var(--spacing-sm);
|
194
|
+
}
|
195
|
+
:host {
|
196
|
+
--voca-rem-multiplier: 0.625;
|
197
|
+
box-sizing: border-box;
|
198
|
+
display: block;
|
199
|
+
}
|
200
|
+
|
201
|
+
:host(.floating) {
|
202
|
+
position: fixed;
|
203
|
+
z-index: 6;
|
204
|
+
inset: auto 20px 95px auto;
|
205
|
+
max-height: calc(100vh - 120px);
|
206
|
+
width: 400px;
|
207
|
+
height: 700px;
|
208
|
+
}
|
209
|
+
:host(.floating) .widget-container {
|
210
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
211
|
+
border-radius: 0.7rem;
|
212
|
+
}
|
213
|
+
:host(.inline) {
|
214
|
+
height: 100%;
|
215
|
+
position: fixed;
|
216
|
+
inset: 0 0 0 0;
|
217
|
+
}
|
218
|
+
|
219
|
+
* {
|
220
|
+
box-sizing: border-box;
|
221
|
+
}
|
222
|
+
.widget-container {
|
223
|
+
height: 100%;
|
224
|
+
background-color: var(--primary-background);
|
225
|
+
padding: 0 var(--spacing-sm);
|
226
|
+
}
|
227
|
+
.widget-container.expanded {
|
228
|
+
opacity: 1;
|
229
|
+
animation: slideUp 0.5s;
|
230
|
+
}
|
231
|
+
.widget-container.hidden {
|
232
|
+
opacity: 0;
|
233
|
+
animation: slideDown 0.5s;
|
234
|
+
}
|
235
|
+
@keyframes slideDown {
|
236
|
+
from {
|
237
|
+
transform: translateY(0);
|
238
|
+
opacity: 1;
|
239
|
+
}
|
240
|
+
to {
|
241
|
+
transform: translateY(100%);
|
242
|
+
opacity: 0;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
@keyframes slideUp {
|
246
|
+
from {
|
247
|
+
transform: translateY(100%);
|
248
|
+
opacity: 0;
|
249
|
+
}
|
250
|
+
to {
|
251
|
+
transform: translateY(0);
|
252
|
+
opacity: 1;
|
253
|
+
}
|
254
|
+
}
|
255
|
+
`;is([g({attribute:!1})],ut.prototype,"application",2);ut=is([k("ace-wrapper")],ut);var zi=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,wt=(e,t,s,i)=>{for(var n=i>1?void 0:i?Fi(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&&zi(t,s,n),n};let z=class extends y{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(e){this.widget=e.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const e=globalThis.widgets;e&&(this.widget=e.applications.find(t=>t.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return u;if(this.widget.renderStrategy===Yt.Trigger){const e=new T;return e.application=this.widget,e}return this.widget.render()}};z.styles=[w`
|
256
|
+
:host {
|
257
|
+
display: block;
|
258
|
+
}
|
259
|
+
`];wt([g({attribute:!0})],z.prototype,"name",2);wt([A()],z.prototype,"widget",2);wt([A()],z.prototype,"status",2);z=wt([k("ace-widget")],z);const Wi=new WeakMap;let ve=0;const Pt=new Map,me=new WeakSet,ye=()=>new Promise(e=>requestAnimationFrame(e)),be=[{opacity:0}],_e=[{opacity:0},{opacity:1}],xe=(e,t)=>{const s=e-t;return s===0?void 0:s},we=(e,t)=>{const s=e/t;return s===1?void 0:s},Lt={left:(e,t)=>{const s=xe(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(e,t)=>{const s=xe(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=we(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=we(e,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},Gi={duration:333,easing:"ease-in-out"},qi=["left","top","width","height","opacity","color","background"],Ae=new WeakMap;class Yi extends Je{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===_t.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 Wi.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,Ae.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=qi),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 ye;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,ve++,t.forEach(l=>l.zIndex=ve)}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 ye(),(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=Ae.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=me.has(this.l);return t||this.l.updateComplete.then(()=>{me.add(this.l)}),t}A(t,s=this._()){const i={...Gi};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],h=s[l];if(l in Lt){const d=Lt[l];if(c===void 0||h===void 0)continue;const p=d(c,h);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!==h&&c!==void 0&&h!==void 0&&(o=!0,n[l]=c,r[l]=h)}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 Se=xt(Yi);var Ki=Object.defineProperty,Qi=Object.getOwnPropertyDescriptor,At=(e,t,s,i)=>{for(var n=i>1?void 0:i?Qi(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&&Ki(t,s,n),n};let F=class extends y{constructor(){super(...arguments),this.loading=!1,this.entries=[]}connectedCallback(){super.connectedCallback(),this.session.entries().subscribe(e=>{this.entries=e})}render(){return $`<div class="convesation-session">
|
260
|
+
${this.entries.map(e=>$`<div class="conversation-entry" tabindex="-1">
|
261
|
+
<conversation-entry
|
262
|
+
.entry=${e}
|
263
|
+
${Se({keyframeOptions:{},in:_e,out:be,stabilizeOut:!0,skipInitial:!1})}
|
264
|
+
>
|
265
|
+
</conversation-entry>
|
266
|
+
</div>`)}
|
267
|
+
${this.loading?$`<div
|
268
|
+
class="loader"
|
269
|
+
${Se({in:_e,out:be,skipInitial:!1})}
|
270
|
+
>
|
271
|
+
<div></div>
|
272
|
+
<div></div>
|
273
|
+
<div></div>
|
274
|
+
</div>`:u}
|
275
|
+
</div>`}};F.styles=[w`
|
276
|
+
:host {
|
277
|
+
display: block;
|
278
|
+
}
|
279
|
+
.conversation-session {
|
280
|
+
display: flex;
|
281
|
+
flex-direction: column;
|
282
|
+
justify-content: end;
|
283
|
+
min-height: 100%;
|
284
|
+
}
|
285
|
+
`];At([g({type:Boolean})],F.prototype,"loading",2);At([g({attribute:!1})],F.prototype,"session",2);At([A()],F.prototype,"entries",2);F=At([k("ace-conversation-session")],F);var Zi=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,ns=(e,t,s,i)=>{for(var n=i>1?void 0:i?Xi(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&&Zi(t,s,n),n};let ft=class extends y{connectedCallback(){var e;super.connectedCallback(),(e=this.entry.didUpdate)==null||e.subscribe(()=>{this.requestUpdate()})}_renderTimestamp(e,t){if(!e&&!t)return u;const s=n=>new Date(n).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});let i="";return e?t?i=`${e}: ${s(t)}`:i=e:t&&(i=s(t)),$`<p class="conversation-timestamp">${i}</p>`}render(){var e,t;switch(this.entry.type){case St.ConversationMessageType.System:return"";case St.ConversationMessageType.Agent:return $`<div
|
286
|
+
class=${qt({"conversation-agent-message":!0,"has-avatar":!!((e=this.entry.sender)!=null&&e.avatar)})}
|
287
|
+
>
|
288
|
+
${typeof((t=this.entry.sender)==null?void 0:t.avatar)=="string"?$`<div class="avatar">
|
289
|
+
<img src=${this.entry.sender.avatar} />
|
290
|
+
</div>`:u}
|
291
|
+
|
292
|
+
<div class="entry-content">
|
293
|
+
${this.entry.messages.map(s=>$`
|
294
|
+
<div class="message-container">
|
295
|
+
<div class="message-content">
|
296
|
+
<conversation-group .group=${s}></conversation-group>
|
297
|
+
</div>
|
298
|
+
</div>
|
299
|
+
`)}
|
300
|
+
</div>
|
301
|
+
${this._renderTimestamp(this.entry.sender.name||"",this.entry.timestamp)}
|
302
|
+
</div>`;case St.ConversationMessageType.User:return $`<div class="conversation-user-message">
|
303
|
+
<div class="entry-content">
|
304
|
+
${this.entry.messages.map(s=>$`
|
305
|
+
<div class="message-container">
|
306
|
+
<div class="message-content">
|
307
|
+
<conversation-group .group=${s}></conversation-group>
|
308
|
+
</div>
|
309
|
+
</div>
|
310
|
+
`)}
|
311
|
+
</div>
|
312
|
+
${this._renderTimestamp(this.entry.sender.name||"",this.entry.timestamp)}
|
313
|
+
</div>`;default:return u}}};ft.styles=[w`
|
314
|
+
:host {
|
315
|
+
box-sizing: border-box;
|
316
|
+
display: block;
|
317
|
+
}
|
318
|
+
* {
|
319
|
+
box-sizing: border-box;
|
320
|
+
}
|
321
|
+
.message-content {
|
322
|
+
padding: var(--spacing-md);
|
323
|
+
display: inline-block;
|
324
|
+
margin-top: var(--spacing-md);
|
325
|
+
max-width: 100%;
|
326
|
+
border: 1px solid var(--gray-color);
|
327
|
+
border-radius: var(--border-radius);
|
328
|
+
background-color: var(--bubble-bg-color);
|
329
|
+
color: var(--bubble-text-color);
|
330
|
+
}
|
331
|
+
|
332
|
+
.conversation-user-message {
|
333
|
+
--bubble-bg-color: var(--conversation-user-bg-color);
|
334
|
+
--bubble-text-color: var(--conversation-user-text-color);
|
335
|
+
margin-left: 10%;
|
336
|
+
width: 90%;
|
337
|
+
display: flex;
|
338
|
+
flex-direction: column;
|
339
|
+
align-items: flex-end;
|
340
|
+
}
|
341
|
+
|
342
|
+
.conversation-agent-message {
|
343
|
+
--bubble-bg-color: var(--conversation-agent-bg-color);
|
344
|
+
--bubble-text-color: var(--conversation-agent-text-color);
|
345
|
+
display: grid;
|
346
|
+
margin-right: 10%;
|
347
|
+
width: 90%;
|
348
|
+
|
349
|
+
grid-template-columns: 1fr;
|
350
|
+
grid-template-rows: 1fr auto;
|
351
|
+
grid-template-areas:
|
352
|
+
'content'
|
353
|
+
'info';
|
354
|
+
}
|
355
|
+
.conversation-agent-message.has-avatar {
|
356
|
+
grid-template-columns: auto 1fr;
|
357
|
+
grid-template-rows: 1fr auto;
|
358
|
+
grid-template-areas:
|
359
|
+
'avatar content'
|
360
|
+
'. info';
|
361
|
+
}
|
362
|
+
|
363
|
+
.avatar {
|
364
|
+
grid-area: avatar;
|
365
|
+
place-self: flex-end;
|
366
|
+
width: 32px;
|
367
|
+
height: 32px;
|
368
|
+
border-radius: 50%;
|
369
|
+
align-self: flex-end;
|
370
|
+
justify-self: center;
|
371
|
+
overflow: hidden;
|
372
|
+
margin-right: var(--spacing-md);
|
373
|
+
justify-content: center;
|
374
|
+
align-items: center;
|
375
|
+
}
|
376
|
+
.avatar img {
|
377
|
+
height: 100%;
|
378
|
+
width: 100%;
|
379
|
+
object-fit: cover;
|
380
|
+
}
|
381
|
+
|
382
|
+
.conversation-timestamp {
|
383
|
+
grid-area: info;
|
384
|
+
margin: 0;
|
385
|
+
line-height: 1.5em;
|
386
|
+
grid-area: info;
|
387
|
+
color: var(--text-color);
|
388
|
+
font-size: 0.8rem;
|
389
|
+
font-weight: 300;
|
390
|
+
}
|
391
|
+
|
392
|
+
.entry-content {
|
393
|
+
grid-area: content;
|
394
|
+
}
|
395
|
+
`];ns([g({attribute:!1})],ft.prototype,"entry",2);ft=ns([k("conversation-entry")],ft);var Ji=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,rs=(e,t,s,i)=>{for(var n=i>1?void 0:i?Vi(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&&Ji(t,s,n),n};let $t=class extends y{render(){return $`
|
396
|
+
<div class="message-group">
|
397
|
+
${this.group.items.map(([e,t])=>$`
|
398
|
+
${e==="html"?$`
|
399
|
+
<message-type-html .message=${t}></message-type-html>
|
400
|
+
`:u}
|
401
|
+
`)}
|
402
|
+
</div>
|
403
|
+
`}};$t.styles=[w`
|
404
|
+
:host {
|
405
|
+
box-sizing: border-box;
|
406
|
+
display: block;
|
407
|
+
}
|
408
|
+
* {
|
409
|
+
box-sizing: border-box;
|
410
|
+
}
|
411
|
+
.message-group {
|
412
|
+
display: flex;
|
413
|
+
flex-direction: column;
|
414
|
+
gap: var(--spacing-md);
|
415
|
+
}
|
416
|
+
`];rs([g({attribute:!1})],$t.prototype,"group",2);$t=rs([k("conversation-group")],$t);/**
|
417
|
+
* @license
|
418
|
+
* Copyright 2017 Google LLC
|
419
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
420
|
+
*/class Rt extends Gt{constructor(t){if(super(t),this.et=u,t.type!==_t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===u||t==null)return this.vt=void 0,this.et=t;if(t===E)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const s=[t];return s.raw=s,this.vt={_$litType$:this.constructor.resultType,strings:s,values:[]}}}Rt.directiveName="unsafeHTML",Rt.resultType=1;const tn=xt(Rt);var en=Object.defineProperty,sn=Object.getOwnPropertyDescriptor,os=(e,t,s,i)=>{for(var n=i>1?void 0:i?sn(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&&en(t,s,n),n};let gt=class extends y{render(){return $`<div class="message-type-html">
|
421
|
+
${tn(this.message.content)}
|
422
|
+
</div>`}};gt.styles=[w`
|
423
|
+
:host {
|
424
|
+
box-sizing: border-box;
|
425
|
+
}
|
426
|
+
* {
|
427
|
+
box-sizing: border-box;
|
428
|
+
}
|
429
|
+
p {
|
430
|
+
margin: 0;
|
431
|
+
padding: 0;
|
432
|
+
word-break: break-word;
|
433
|
+
}
|
434
|
+
`];os([g({attribute:!1})],gt.prototype,"message",2);gt=os([k("message-type-html")],gt);var nn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,Kt=(e,t,s,i)=>{for(var n=i>1?void 0:i?rn(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&&nn(t,s,n),n};const on=e=>{e.scrollTo?e.scrollTo({top:e.scrollHeight,behavior:"smooth"}):e.scrollTop=e.scrollHeight},as=ss(y);class W extends as{constructor(){super(...arguments),this.message="",this.platform=null,this.session=null,this.conversationContentRef=Ve(),this.chatScrollHeight=0}async connectedCallback(){var s;super.connectedCallback();const t=await this.application.container.environment.container.get("conversation");this.platform=t||null,this.session=((s=this.platform)==null?void 0:s.createSession(this))||null}async _onSendMessage(t){t.preventDefault();const s=new CustomEvent("user-submit",{detail:{text:this.message}});this.dispatchEvent(s),this.message=""}_inputHandler(t){this.message=t.target.value}_actionHandler(t){}updated(t){const s=this.conversationContentRef.value;s&&setTimeout(()=>{const i=s.scrollHeight;i>this.chatScrollHeight&&(on(s),this.chatScrollHeight=i)},1e3)}render(){return $` <div
|
435
|
+
@action=${this._actionHandler}
|
436
|
+
class=${qt({conversation:!0,"input-has-text":this.message.length>0})}
|
437
|
+
>
|
438
|
+
<div class="conversation-content" ${ts(this.conversationContentRef)}>
|
439
|
+
${this.session?$`<ace-conversation-session
|
440
|
+
.session=${this.session}
|
441
|
+
></ace-conversation-session>`:u}
|
442
|
+
</div>
|
443
|
+
<form class="conversation-bottom" @submit=${this._onSendMessage}>
|
444
|
+
<input
|
445
|
+
placeholder=${this.properties.inputPlaceholder||"Type your message here..."}
|
446
|
+
.value=${this.message}
|
447
|
+
@input=${this._inputHandler}
|
448
|
+
/>
|
449
|
+
<div class="conversation-actions">
|
450
|
+
<button class="conversation-send-button" type="submit">
|
451
|
+
<telia-icon svg=${Ue.svg}></telia-icon>
|
452
|
+
</button>
|
453
|
+
</div>
|
454
|
+
</form>
|
455
|
+
</div>`}}W.styles=[as.styles||[],w`
|
456
|
+
:host {
|
457
|
+
font-family: var(--font-family);
|
458
|
+
/* --send-icon-color: var(--gray-dark-color, #a6a6a6); */
|
459
|
+
--send-icon-opacity: 0.4;
|
460
|
+
--send-icon-color: var(--text-color);
|
461
|
+
--conversation-bg: #fafafa;
|
462
|
+
--conversation-agent-bg-color: var(--secondary-background);
|
463
|
+
--conversation-agent-text-color: var(--text-on-secondary-background);
|
464
|
+
--conversation-user-bg-color: var(--primary-background);
|
465
|
+
--conversation-user-text-color: var(--text-on-primary-background);
|
466
|
+
|
467
|
+
scrollbar-width: thin; /* Firefox */
|
468
|
+
scrollbar-color: #7f7f7f transparent; /* Firefox */
|
469
|
+
}
|
470
|
+
::-webkit-scrollbar {
|
471
|
+
width: 3px !important;
|
472
|
+
background-color: transparent;
|
473
|
+
border-left: none;
|
474
|
+
}
|
475
|
+
::-webkit-scrollbar-thumb {
|
476
|
+
background-color: #7f7f7f;
|
477
|
+
}
|
478
|
+
::-webkit-scrollbar-track {
|
479
|
+
-webkit-box-shadow: none !important;
|
480
|
+
background-color: transparent;
|
481
|
+
}
|
482
|
+
|
483
|
+
.conversation {
|
484
|
+
display: grid;
|
485
|
+
grid-template-rows: 1fr auto;
|
486
|
+
gap: var(--spacing-lg);
|
487
|
+
height: 100%;
|
488
|
+
background-color: transparent;
|
489
|
+
}
|
490
|
+
.conversation.input-has-text {
|
491
|
+
/* --send-icon-color: var(--primary-color); */
|
492
|
+
--send-icon-opacity: 1;
|
493
|
+
}
|
494
|
+
.conversation-content {
|
495
|
+
flex: 1;
|
496
|
+
background-color: var(--conversation-bg);
|
497
|
+
padding: var(--spacing-md);
|
498
|
+
overflow-y: auto;
|
499
|
+
overflow-x: hidden;
|
500
|
+
border-radius: var(--border-radius-sm);
|
501
|
+
}
|
502
|
+
.conversation-bottom {
|
503
|
+
border-top: 1px solid var(--gray-color);
|
504
|
+
border-radius: var(--border-radius-sm);
|
505
|
+
background-color: #fff;
|
506
|
+
min-height: 50px;
|
507
|
+
max-height: 150px;
|
508
|
+
display: flex;
|
509
|
+
align-items: center;
|
510
|
+
padding: 0 var(--spacing-md);
|
511
|
+
margin: 0;
|
512
|
+
}
|
513
|
+
.conversation-bottom-left {
|
514
|
+
border-right: 1px solid var(--gray-color);
|
515
|
+
padding-right: var(--spacing-md);
|
516
|
+
}
|
517
|
+
.conversation-send-button {
|
518
|
+
border: none;
|
519
|
+
background: transparent;
|
520
|
+
cursor: pointer;
|
521
|
+
color: var(--send-icon-color);
|
522
|
+
opacity: var(--send-icon-opacity);
|
523
|
+
transition: opacity 200ms ease-in-out;
|
524
|
+
}
|
525
|
+
.conversation-send-button:hover {
|
526
|
+
--send-icon-opacity: 1;
|
527
|
+
}
|
528
|
+
input {
|
529
|
+
border: none;
|
530
|
+
font-family: inherit;
|
531
|
+
font-size: inherit;
|
532
|
+
flex: 1;
|
533
|
+
height: 2.5rem;
|
534
|
+
outline: none;
|
535
|
+
}
|
536
|
+
|
537
|
+
@keyframes loaderanim {
|
538
|
+
0% {
|
539
|
+
opacity: 0;
|
540
|
+
}
|
541
|
+
75% {
|
542
|
+
opacity: 1;
|
543
|
+
}
|
544
|
+
100% {
|
545
|
+
opacity: 0;
|
546
|
+
}
|
547
|
+
}
|
548
|
+
|
549
|
+
.loader {
|
550
|
+
display: flex;
|
551
|
+
justify-content: center;
|
552
|
+
}
|
553
|
+
|
554
|
+
.loader > div {
|
555
|
+
height: 10px;
|
556
|
+
width: 10px;
|
557
|
+
border-radius: 50%;
|
558
|
+
margin: 5px;
|
559
|
+
background-color: var(--text-color);
|
560
|
+
animation-name: loaderanim;
|
561
|
+
animation-duration: 1s;
|
562
|
+
animation-iteration-count: infinite;
|
563
|
+
}
|
564
|
+
|
565
|
+
.loader > div:nth-of-type(2) {
|
566
|
+
animation-delay: 100ms;
|
567
|
+
}
|
568
|
+
|
569
|
+
.loader > div:nth-of-type(3) {
|
570
|
+
animation-delay: 200ms;
|
571
|
+
}
|
572
|
+
`];Kt([A()],W.prototype,"message",2);Kt([A()],W.prototype,"platform",2);Kt([A()],W.prototype,"session",2);const an=Object.freeze(Object.defineProperty({__proto__:null,Conversation:W,default:W},Symbol.toStringTag,{value:"Module"}));exports.conversation=an;exports.send=Ue;
|