@telia-ace/widget-components-copyright-flamingo 1.1.76-rc.24 → 1.1.76-rc.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ht=function(s,t){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},ht(s,t)};function D(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ht(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ht=function(s,t){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},ht(s,t)};function D(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ht(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function pt(s){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&s[t],i=0;if(e)return e.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&i>=s.length&&(s=void 0),{value:s&&s[i++],done:!s}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function q(s,t){var e=typeof Symbol=="function"&&s[Symbol.iterator];if(!e)return s;var i=e.call(s),r,o=[],n;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return o}function K(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return s.concat(o||Array.prototype.slice.call(t))}function b(s){return typeof s=="function"}function Gt(s){var t=function(i){Error.call(i),i.stack=new Error().stack},e=s(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var et=Gt(function(s){return function(e){s(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
2
|
`+e.map(function(i,r){return r+1+") "+i.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function dt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var Q=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=pt(n),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var h=this.initialTeardown;if(b(h))try{h()}catch(v){o=v instanceof et?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var u=pt(p),f=u.next();!f.done;f=u.next()){var T=f.value;try{Et(T)}catch(v){o=o??[],v instanceof et?o=K(K([],q(o)),q(v.errors)):o.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}}if(o)throw new et(o)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Et(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&dt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&dt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),Xt=Q.EMPTY;function Jt(s){return s instanceof Q||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Et(s){b(s)?s():s.unsubscribe()}var Qt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ut={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];var r=ut.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,K([s,t],q(e))):setTimeout.apply(void 0,K([s,t],q(e)))},clearTimeout:function(s){var t=ut.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(s)},delegate:void 0};function me(s){ut.setTimeout(function(){throw s})}function St(){}function F(s){s()}var te=function(s){D(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Jt(e)&&e.add(i)):i.destination=_e,i}return t.create=function(e,i,r){return new ft(e,i,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,s.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Q),ye=Function.prototype.bind;function it(s,t){return ye.call(s,t)}var be=function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Y(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Y(i)}else Y(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Y(e)}},s}(),ft=function(s){D(t,s);function t(e,i,r){var o=s.call(this)||this,n;if(b(e)||!e)n={next:e??void 0,error:i??void 0,complete:r??void 0};else{var a;o&&Qt.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return o.unsubscribe()},n={next:e.next&&it(e.next,a),error:e.error&&it(e.error,a),complete:e.complete&&it(e.complete,a)}):n=e}return o.destination=new be(n),o}return t}(te);function Y(s){me(s)}function $e(s){throw s}var _e={closed:!0,next:St,error:$e,complete:St},we=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ce(s){return s}function Ae(s){return s.length===0?Ce:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var Pt=function(){function s(t){t&&(this._subscribe=t)}return s.prototype.lift=function(t){var e=new s;return e.source=this,e.operator=t,e},s.prototype.subscribe=function(t,e,i){var r=this,o=Ee(t)?t:new ft(t,e,i);return F(function(){var n=r,a=n.operator,c=n.source;o.add(a?a.call(o,c):c?r._subscribe(o):r._trySubscribe(o))}),o},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(t,e){var i=this;return e=Ot(e),new e(function(r,o){var n=new ft({next:function(a){try{t(a)}catch(c){o(c),n.unsubscribe()}},error:o,complete:r});i.subscribe(n)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[we]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ae(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=Ot(t),new t(function(i,r){var o;e.subscribe(function(n){return o=n},function(n){return r(n)},function(){return i(o)})})},s.create=function(t){return new s(t)},s}();function Ot(s){var t;return(t=s??Qt.Promise)!==null&&t!==void 0?t:Promise}function xe(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function Ee(s){return s&&s instanceof te||xe(s)&&Jt(s)}var Se=Gt(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),gt=function(s){D(t,s);function t(){var e=s.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Tt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Se},t.prototype.next=function(e){var i=this;F(function(){var r,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=pt(i.currentObservers),a=n.next();!a.done;a=n.next()){var c=a.value;c.next(e)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;F(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var r=i.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;F(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),s.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,r=this,o=r.hasError,n=r.isStopped,a=r.observers;return o||n?Xt:(this.currentObservers=null,a.push(e),new Q(function(){i.currentObservers=null,dt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,o=i.thrownError,n=i.isStopped;r?e.error(o):n&&e.complete()},t.prototype.asObservable=function(){var e=new Pt;return e.source=this,e},t.create=function(e,i){return new Tt(e,i)},t}(Pt),Tt=function(s){D(t,s);function t(e,i){var r=s.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,e)},t.prototype.error=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&r!==void 0?r:Xt},t}(gt),Pe=function(s){D(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,r=e.thrownError,o=e._value;if(i)throw r;return this._throwIfClosed(),o},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}(gt);/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2019 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
15
|
*/const R=globalThis,X=R.trustedTypes,Lt=X?X.createPolicy("lit-html",{createHTML:s=>s}):void 0,ie="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,se="?"+$,Ne=`<${se}>`,S=document,N=()=>S.createComment(""),I=s=>s===null||typeof s!="object"&&typeof s!="function",re=Array.isArray,Ie=s=>re(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",rt=`[
|
|
16
16
|
\f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,jt=/>/g,C=RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Nt=/'/g,It=/"/g,oe=/^(?:script|style|textarea|title)$/i,ne=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),x=ne(1),Be=ne(2),P=Symbol.for("lit-noChange"),
|
|
17
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Nt=/'/g,It=/"/g,oe=/^(?:script|style|textarea|title)$/i,ne=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),x=ne(1),Be=ne(2),P=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Bt=new WeakMap,E=S.createTreeWalker(S,129);function ae(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lt!==void 0?Lt.createHTML(t):t}const De=(s,t)=>{const e=s.length-1,i=[];let r,o=t===2?"<svg>":"",n=H;for(let a=0;a<e;a++){const c=s[a];let l,h,p=-1,u=0;for(;u<c.length&&(n.lastIndex=u,h=n.exec(c),h!==null);)u=n.lastIndex,n===H?h[1]==="!--"?n=Rt:h[1]!==void 0?n=jt:h[2]!==void 0?(oe.test(h[2])&&(r=RegExp("</"+h[2],"g")),n=C):h[3]!==void 0&&(n=C):n===C?h[0]===">"?(n=r??H,p=-1):h[1]===void 0?p=-2:(p=n.lastIndex-h[2].length,l=h[1],n=h[3]===void 0?C:h[3]==='"'?It:Nt):n===It||n===Nt?n=C:n===Rt||n===jt?n=H:(n=C,r=void 0);const f=n===C&&s[a+1].startsWith("/>")?" ":"";o+=n===H?c+Ne:p>=0?(i.push(l),c.slice(0,p)+ie+c.slice(p)+$+f):c+$+(p===-2?a:f)}return[ae(s,o+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class B{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[l,h]=De(t,e);if(this.el=B.createElement(l,i),E.currentNode=this.el.content,e===2){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(r=E.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const p of r.getAttributeNames())if(p.endsWith(ie)){const u=h[n++],f=r.getAttribute(p).split($),T=/([.?@])?(.*)/.exec(u);c.push({type:1,index:o,name:T[2],strings:f,ctor:T[1]==="."?ze:T[1]==="?"?We:T[1]==="@"?Ye:tt}),r.removeAttribute(p)}else p.startsWith($)&&(c.push({type:6,index:o}),r.removeAttribute(p));if(oe.test(r.tagName)){const p=r.textContent.split($),u=p.length-1;if(u>0){r.textContent=X?X.emptyScript:"";for(let f=0;f<u;f++)r.append(p[f],N()),E.nextNode(),c.push({type:2,index:++o});r.append(p[u],N())}}}else if(r.nodeType===8)if(r.data===se)c.push({type:2,index:o});else{let p=-1;for(;(p=r.data.indexOf($,p+1))!==-1;)c.push({type:7,index:o}),p+=$.length-1}o++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}}function M(s,t,e=s,i){var n,a;if(t===P)return t;let r=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const o=I(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==o&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),o===void 0?r=void 0:(r=new o(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=M(s,r._$AS(s,t.values),r,i)),t}class Ve{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??S).importNode(e,!0);E.currentNode=r;let o=E.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new V(o,o.nextSibling,this,t):c.type===1?l=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(l=new Fe(o,this,t)),this._$AV.push(l),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=E.nextNode(),n++)}return E.currentNode=S,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),I(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ie(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==d&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=B.createElement(ae(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===r)this._$AH.p(e);else{const n=new Ve(r,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Bt.get(t.strings);return e===void 0&&Bt.set(t.strings,e=new B(t)),e}k(t){re(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new V(this.S(N()),this.S(N()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=d}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(o===void 0)t=M(this,t,e,0),n=!I(t)||t!==this._$AH&&t!==P,n&&(this._$AH=t);else{const a=t;let c,l;for(t=o[0],c=0;c<o.length-1;c++)l=M(this,a[i+c],e,c),l===P&&(l=this._$AH[c]),n||(n=!I(l)||l!==this._$AH[c]),l===d?t=d:t!==d&&(t+=(l??"")+o[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ze extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class We extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Ye extends tt{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??d)===P)return;const i=this._$AH,r=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==d&&(i===d||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Fe{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const ot=R.litHtmlPolyfillSupport;ot==null||ot(B,V),(R.litHtmlVersions??(R.litHtmlVersions=[])).push("3.1.2");const Ze=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const o=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new V(t.insertBefore(N(),o),o,void 0,e??{})}return r._$AI(s),r};/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/function U(s){return g({...s,state:!0,attribute:!1})}var Ge=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,Je=(s,t,e,i)=>{for(var r=i>1?void 0:i?Xe(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&Ge(t,e,r),r};class bt extends m{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),
|
|
29
|
+
*/function U(s){return g({...s,state:!0,attribute:!1})}var Ge=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,Je=(s,t,e,i)=>{for(var r=i>1?void 0:i?Xe(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&Ge(t,e,r),r};class bt extends m{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),d}}bt.styles=[O`
|
|
30
30
|
:host {
|
|
31
31
|
position: fixed;
|
|
32
32
|
display: flex;
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/const j=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),j(r,t);return!0},J=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},le=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),ii(t)}};function ti(s){this._$AN!==void 0?(J(this),this._$AM=s,le(this)):this._$AM=s}function ei(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let o=e;o<i.length;o++)j(i[o],!1),J(i[o]);else i!=null&&(j(i,!1),J(i));else j(this,s)}const ii=s=>{s.type==$t.CHILD&&(s._$AP??(s._$AP=ei),s._$AQ??(s._$AQ=ti))};class he extends ce{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),le(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(j(this,t),J(this))}setValue(t){if(Qe(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const si=new WeakMap;let Dt=0;const at=new Map,Vt=new WeakSet,zt=()=>new Promise(s=>requestAnimationFrame(s)),ri=[{transform:"translateX(100%) scale(0)",opacity:0}],Wt=(s,t)=>{const e=s-t;return e===0?void 0:e},Yt=(s,t)=>{const e=s/t;return e===1?void 0:e},ct={left:(s,t)=>{const e=Wt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Wt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(s,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Yt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(s,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Yt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},oi={duration:333,easing:"ease-in-out"},ni=["left","top","width","height","opacity","color","background"],Ft=new WeakMap;class ai extends he{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!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(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return
|
|
57
|
+
*/const j=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),j(r,t);return!0},J=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},le=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),ii(t)}};function ti(s){this._$AN!==void 0?(J(this),this._$AM=s,le(this)):this._$AM=s}function ei(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let o=e;o<i.length;o++)j(i[o],!1),J(i[o]);else i!=null&&(j(i,!1),J(i));else j(this,s)}const ii=s=>{s.type==$t.CHILD&&(s._$AP??(s._$AP=ei),s._$AQ??(s._$AQ=ti))};class he extends ce{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),le(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(j(this,t),J(this))}setValue(t){if(Qe(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const si=new WeakMap;let Dt=0;const at=new Map,Vt=new WeakSet,zt=()=>new Promise(s=>requestAnimationFrame(s)),ri=[{transform:"translateX(100%) scale(0)",opacity:0}],Wt=(s,t)=>{const e=s-t;return e===0?void 0:e},Yt=(s,t)=>{const e=s/t;return e===1?void 0:e},ct={left:(s,t)=>{const e=Wt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Wt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(s,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Yt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(s,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Yt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},oi={duration:333,easing:"ease-in-out"},ni=["left","top","width","height","opacity","color","background"],Ft=new WeakMap;class ai extends he{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!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(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return d}getController(){return si.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var r;const i=this.u===void 0;return i&&(this.u=(r=t.options)==null?void 0:r.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,Ft.set(this.element,this)),this.optionsOrCallback=e,(i||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=ni),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const o=e[r]??(ct[r]?void 0:i[r]),n=Number(o);t[r]=isNaN(n)?o+"":n}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every((o,n)=>o===r[n]))return!1}else if(r===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await zt;const e=this.O(),i=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,r,e);this.log("measured",[this.A,r,o,n]),t=this.calculateKeyframes(o,n)}else{const o=at.get(this.options.inId);if(o){at.delete(this.options.inId);const{from:n,to:a}=this.N(o,r,e);t=this.calculateKeyframes(n,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Dt++,t.forEach(c=>c.zIndex=Dt)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&at.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await zt(),(e=this.i)==null?void 0:e.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const o=this.A.left-r.left,n=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,i;t&&((i=(e=this.options).onComplete)==null||i.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const i=Ft.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Vt.has(this.u);return t||this.u.updateComplete.then(()=>{Vt.add(this.u)}),t}j(t,e=this.O()){const i={...oi};return e.forEach(r=>Object.assign(i,r.options.keyframeOptions)),Object.assign(i,t),i}N(t,e,i){t={...t},e={...e};const r=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let o=1,n=1;return r.length>0&&(r.forEach(a=>{a.width&&(o/=a.width),a.height&&(n/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=o*t.left,e.left=o*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=n*t.top,e.top=n*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const r={},o={};let n=!1;const a={};for(const c in e){const l=t[c],h=e[c];if(c in ct){const p=ct[c];if(l===void 0||h===void 0)continue;const u=p(l,h);u.transform!==void 0&&(a[c]=u.value,n=!0,r.transform=`${r.transform??""} ${u.transform}`,u.overrideFrom!==void 0&&Object.assign(r,u.overrideFrom))}else l!==h&&l!==void 0&&h!==void 0&&(n=!0,r[c]=l,o[c]=h)}return r.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[r,o]:void 0}async animate(t,e=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,e]),i=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const ci=_t(ai),li={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2018 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/const Zt=_t(class extends ce{constructor(s){var t;if(super(s),s.type!==$t.ATTRIBUTE||s.name!=="class"||((t=s.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(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var i,r;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const e=s.element.classList;for(const o of this.st)o in t||(e.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(r=this.nt)!=null&&r.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return P}}),y=(s,t,e)=>{s&&e.style.setProperty(t,s)},
|
|
61
|
+
*/const Zt=_t(class extends ce{constructor(s){var t;if(super(s),s.type!==$t.ATTRIBUTE||s.name!=="class"||((t=s.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(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var i,r;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const e=s.element.classList;for(const o of this.st)o in t||(e.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(r=this.nt)!=null&&r.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return P}}),y=(s,t,e)=>{s&&e.style.setProperty(t,s)},pe=(s,t)=>{var e,i,r,o,n,a,c,l,h;y((e=s.colors)==null?void 0:e.primaryBackground,"--primary-background",t),y((i=s.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),y((r=s.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),y((o=s.colors)==null?void 0:o.textOnSecondaryBackground,"--text-on-secondary-background",t),y((n=s.colors)==null?void 0:n.interactiveDestructiveBackground,"--destructive-color",t),y((a=s.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),y((c=s.colors)==null?void 0:c.interactivePrimaryBackground,"--interactive-primary-background",t),y((l=s.colors)==null?void 0:l.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),y((h=s.colors)==null?void 0:h.focusColor,"--focus-color",t)};/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2020 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/const
|
|
65
|
+
*/const de=()=>new hi;class hi{}const lt=new WeakMap,ue=_t(class extends he{render(s){return d}update(s,[t]){var i;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),d}rt(s){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=lt.get(t);e===void 0&&(e=new WeakMap,lt.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,s),s!==void 0&&this.Y.call(this.ht,s)}else this.Y.value=s}get lt(){var s,t;return typeof this.Y=="function"?(s=lt.get(this.ht??globalThis))==null?void 0:s.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var pi=Object.defineProperty,di=Object.getOwnPropertyDescriptor,z=(s,t,e,i)=>{for(var r=i>1?void 0:i?di(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&pi(t,e,r),r};class w extends m{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=de(),this.widgetActive$=new Pe(!1),this.componentIsDestroyed$=new gt}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}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.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&pe(this.application.settings.branding,this)}async _renderSymbol(){var a,c,l;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return x` <img src=${e} class="trigger-icon" alt="" /> `;const i=(l=this.application)==null?void 0:l.triggerIcon;if(!i)return d;const r=async h=>li,{type:o,content:n}=i;switch(o){case"Telia":{const h=await r();return h?x`<telia-icon
|
|
66
66
|
class="trigger-icon"
|
|
67
67
|
svg=${h.svg}
|
|
68
68
|
size="lg"
|
|
69
|
-
></telia-icon>`:
|
|
69
|
+
></telia-icon>`:d}default:return d}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,i,r;return x`<div
|
|
70
70
|
class=${Zt({"trigger-container":!0,hidden:!this.triggerVisible})}
|
|
71
71
|
${ue(this.containerRef)}
|
|
72
72
|
>
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
>
|
|
80
80
|
${this.application.settings.branding.other.buttonLabelText}
|
|
81
81
|
</button>
|
|
82
|
-
`:
|
|
82
|
+
`:d}
|
|
83
83
|
|
|
84
84
|
<button
|
|
85
85
|
label="Widget trigger"
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
* @license
|
|
285
285
|
* Copyright 2017 Google LLC
|
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
|
-
*/function bi({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new qt(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var o;return(o=i.get(this))==null||o.setValue(r),t.set.call(this,r)},init(r){var o;return(o=i.get(this))==null||o.setValue(r),r}};{t.constructor.addInitializer(n=>{i.set(n,new qt(n,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let o;if(r===void 0){const n=new WeakMap;o={get:function(){return n.get(this)},set:function(a){i.get(this).setValue(a),n.set(this,a)},configurable:!0,enumerable:!0}}else{const n=r.set;o={...r,set:function(a){i.get(this).setValue(a),n==null||n.call(this,a)}}}return void Object.defineProperty(t,e,o)}}}var $i=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,wi=(s,t,e,i)=>{for(var r=i>1?void 0:i?_i(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&$i(t,e,r),r};const Ci="application";class Ct extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=
|
|
287
|
+
*/function bi({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new qt(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var o;return(o=i.get(this))==null||o.setValue(r),t.set.call(this,r)},init(r){var o;return(o=i.get(this))==null||o.setValue(r),r}};{t.constructor.addInitializer(n=>{i.set(n,new qt(n,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let o;if(r===void 0){const n=new WeakMap;o={get:function(){return n.get(this)},set:function(a){i.get(this).setValue(a),n.set(this,a)},configurable:!0,enumerable:!0}}else{const n=r.set;o={...r,set:function(a){i.get(this).setValue(a),n==null||n.call(this,a)}}}return void Object.defineProperty(t,e,o)}}}var $i=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,wi=(s,t,e,i)=>{for(var r=i>1?void 0:i?_i(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&$i(t,e,r),r};const Ci="application";class Ct extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=de()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&pe(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===wt.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),x`<div class="widget-container" ${ue(this.wrapperRef)}>
|
|
288
288
|
${gi(this.nodes,o=>o)}
|
|
289
289
|
</div>`}}Ct.styles=O`
|
|
290
290
|
:host {
|
|
@@ -331,23 +331,6 @@
|
|
|
331
331
|
position: fixed;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
:host(.embedded) {
|
|
335
|
-
padding: 40px 20px 20px 40px !important;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
@media screen and (max-device-width: 800px) {
|
|
339
|
-
:host(.embedded) {
|
|
340
|
-
padding: 0 !important;
|
|
341
|
-
}
|
|
342
|
-
:host(.embedded) .widget-container {
|
|
343
|
-
border-radius: none !important;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
:host(.embedded) .widget-container {
|
|
348
|
-
border-radius: var(--border-radius) !important;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
334
|
@media screen and (max-width: 800px) {
|
|
352
335
|
:host(.floating) {
|
|
353
336
|
inset: 0;
|
|
@@ -438,7 +421,7 @@
|
|
|
438
421
|
animation: slideDown 0.3s linear;
|
|
439
422
|
pointer-events: none;
|
|
440
423
|
}
|
|
441
|
-
`;wi([g({attribute:!1}),bi({context:Ci})],Ct.prototype,"application",2);var Ai=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,At=(s,t,e,i)=>{for(var r=i>1?void 0:i?xi(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&Ai(t,e,r),r};class W extends m{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(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return
|
|
424
|
+
`;wi([g({attribute:!1}),bi({context:Ci})],Ct.prototype,"application",2);var Ai=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,At=(s,t,e,i)=>{for(var r=i>1?void 0:i?xi(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&Ai(t,e,r),r};class W extends m{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(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return d;if(this.widget.renderStrategy===wt.Trigger){const t=new w;return t.application=this.widget,t}return this.widget.render()}}W.styles=[O`
|
|
442
425
|
:host {
|
|
443
426
|
display: block;
|
|
444
427
|
}
|
|
@@ -460,7 +443,7 @@
|
|
|
460
443
|
<clipPath id="clip0_119_1665">
|
|
461
444
|
<rect width="30.5068" height="32.0011" fill="white"/>
|
|
462
445
|
</clipPath>
|
|
463
|
-
</defs>`,ve=fe(m);class xt extends ve{render(){var e;return(e=this.application.branding().other)!=null&&e.whiteLabel?
|
|
446
|
+
</defs>`,ve=fe(m);class xt extends ve{render(){var e;return(e=this.application.branding().other)!=null&&e.whiteLabel?d:x` <div class="copyright">
|
|
464
447
|
<a
|
|
465
448
|
aria-label="Powered by Telia ACE"
|
|
466
449
|
href="https://ace-showcase.com"
|
|
@@ -15,7 +15,7 @@ function D(s, t) {
|
|
|
15
15
|
}
|
|
16
16
|
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function pt(s) {
|
|
19
19
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
|
20
20
|
if (e)
|
|
21
21
|
return e.call(s);
|
|
@@ -71,7 +71,7 @@ var et = Kt(function(s) {
|
|
|
71
71
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
72
72
|
};
|
|
73
73
|
});
|
|
74
|
-
function
|
|
74
|
+
function dt(s, t) {
|
|
75
75
|
if (s) {
|
|
76
76
|
var e = s.indexOf(t);
|
|
77
77
|
0 <= e && s.splice(e, 1);
|
|
@@ -89,7 +89,7 @@ var Q = function() {
|
|
|
89
89
|
if (n)
|
|
90
90
|
if (this._parentage = null, Array.isArray(n))
|
|
91
91
|
try {
|
|
92
|
-
for (var a =
|
|
92
|
+
for (var a = pt(n), c = a.next(); !c.done; c = a.next()) {
|
|
93
93
|
var l = c.value;
|
|
94
94
|
l.remove(this);
|
|
95
95
|
}
|
|
@@ -112,11 +112,11 @@ var Q = function() {
|
|
|
112
112
|
} catch (v) {
|
|
113
113
|
o = v instanceof et ? v.errors : [v];
|
|
114
114
|
}
|
|
115
|
-
var
|
|
116
|
-
if (
|
|
115
|
+
var p = this._finalizers;
|
|
116
|
+
if (p) {
|
|
117
117
|
this._finalizers = null;
|
|
118
118
|
try {
|
|
119
|
-
for (var u =
|
|
119
|
+
for (var u = pt(p), f = u.next(); !f.done; f = u.next()) {
|
|
120
120
|
var T = f.value;
|
|
121
121
|
try {
|
|
122
122
|
xt(T);
|
|
@@ -159,10 +159,10 @@ var Q = function() {
|
|
|
159
159
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
160
160
|
}, s.prototype._removeParent = function(t) {
|
|
161
161
|
var e = this._parentage;
|
|
162
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
162
|
+
e === t ? this._parentage = null : Array.isArray(e) && dt(e, t);
|
|
163
163
|
}, s.prototype.remove = function(t) {
|
|
164
164
|
var e = this._finalizers;
|
|
165
|
-
e &&
|
|
165
|
+
e && dt(e, t), t instanceof s && t._removeParent(this);
|
|
166
166
|
}, s.EMPTY = function() {
|
|
167
167
|
var t = new s();
|
|
168
168
|
return t.closed = !0, t;
|
|
@@ -410,7 +410,7 @@ var Ee = Kt(function(s) {
|
|
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
412
412
|
try {
|
|
413
|
-
for (var n =
|
|
413
|
+
for (var n = pt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
|
414
414
|
var c = a.value;
|
|
415
415
|
c.next(e);
|
|
416
416
|
}
|
|
@@ -460,7 +460,7 @@ var Ee = Kt(function(s) {
|
|
|
460
460
|
}, t.prototype._innerSubscribe = function(e) {
|
|
461
461
|
var i = this, r = this, o = r.hasError, n = r.isStopped, a = r.observers;
|
|
462
462
|
return o || n ? Gt : (this.currentObservers = null, a.push(e), new Q(function() {
|
|
463
|
-
i.currentObservers = null,
|
|
463
|
+
i.currentObservers = null, dt(a, e);
|
|
464
464
|
}));
|
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
466
466
|
var i = this, r = i.hasError, o = i.thrownError, n = i.isStopped;
|
|
@@ -816,7 +816,7 @@ k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[L("elementProper
|
|
|
816
816
|
*/
|
|
817
817
|
const R = globalThis, X = R.trustedTypes, Ht = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, ee = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, ie = "?" + $, je = `<${ie}>`, S = document, N = () => S.createComment(""), I = (s) => s === null || typeof s != "object" && typeof s != "function", se = Array.isArray, Ne = (s) => se(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", rt = `[
|
|
818
818
|
\f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Rt = />/g, C = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
819
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Nt = /"/g, re = /^(?:script|style|textarea|title)$/i, oe = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), x = oe(1), Ie = oe(2), P = Symbol.for("lit-noChange"),
|
|
819
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Nt = /"/g, re = /^(?:script|style|textarea|title)$/i, oe = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), x = oe(1), Ie = oe(2), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), It = /* @__PURE__ */ new WeakMap(), E = S.createTreeWalker(S, 129);
|
|
820
820
|
function ne(s, t) {
|
|
821
821
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
|
822
822
|
throw Error("invalid template strings array");
|
|
@@ -827,11 +827,11 @@ const Be = (s, t) => {
|
|
|
827
827
|
let r, o = t === 2 ? "<svg>" : "", n = H;
|
|
828
828
|
for (let a = 0; a < e; a++) {
|
|
829
829
|
const c = s[a];
|
|
830
|
-
let l, h,
|
|
830
|
+
let l, h, p = -1, u = 0;
|
|
831
831
|
for (; u < c.length && (n.lastIndex = u, h = n.exec(c), h !== null); )
|
|
832
|
-
u = n.lastIndex, n === H ? h[1] === "!--" ? n = Lt : h[1] !== void 0 ? n = Rt : h[2] !== void 0 ? (re.test(h[2]) && (r = RegExp("</" + h[2], "g")), n = C) : h[3] !== void 0 && (n = C) : n === C ? h[0] === ">" ? (n = r ?? H,
|
|
832
|
+
u = n.lastIndex, n === H ? h[1] === "!--" ? n = Lt : h[1] !== void 0 ? n = Rt : h[2] !== void 0 ? (re.test(h[2]) && (r = RegExp("</" + h[2], "g")), n = C) : h[3] !== void 0 && (n = C) : n === C ? h[0] === ">" ? (n = r ?? H, p = -1) : h[1] === void 0 ? p = -2 : (p = n.lastIndex - h[2].length, l = h[1], n = h[3] === void 0 ? C : h[3] === '"' ? Nt : jt) : n === Nt || n === jt ? n = C : n === Lt || n === Rt ? n = H : (n = C, r = void 0);
|
|
833
833
|
const f = n === C && s[a + 1].startsWith("/>") ? " " : "";
|
|
834
|
-
o += n === H ? c + je :
|
|
834
|
+
o += n === H ? c + je : p >= 0 ? (i.push(l), c.slice(0, p) + ee + c.slice(p) + $ + f) : c + $ + (p === -2 ? a : f);
|
|
835
835
|
}
|
|
836
836
|
return [ne(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
|
837
837
|
};
|
|
@@ -842,34 +842,34 @@ class B {
|
|
|
842
842
|
let o = 0, n = 0;
|
|
843
843
|
const a = t.length - 1, c = this.parts, [l, h] = Be(t, e);
|
|
844
844
|
if (this.el = B.createElement(l, i), E.currentNode = this.el.content, e === 2) {
|
|
845
|
-
const
|
|
846
|
-
|
|
845
|
+
const p = this.el.content.firstChild;
|
|
846
|
+
p.replaceWith(...p.childNodes);
|
|
847
847
|
}
|
|
848
848
|
for (; (r = E.nextNode()) !== null && c.length < a; ) {
|
|
849
849
|
if (r.nodeType === 1) {
|
|
850
850
|
if (r.hasAttributes())
|
|
851
|
-
for (const
|
|
852
|
-
if (
|
|
853
|
-
const u = h[n++], f = r.getAttribute(
|
|
854
|
-
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Ve : T[1] === "?" ? ze : T[1] === "@" ? We : tt }), r.removeAttribute(
|
|
851
|
+
for (const p of r.getAttributeNames())
|
|
852
|
+
if (p.endsWith(ee)) {
|
|
853
|
+
const u = h[n++], f = r.getAttribute(p).split($), T = /([.?@])?(.*)/.exec(u);
|
|
854
|
+
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Ve : T[1] === "?" ? ze : T[1] === "@" ? We : tt }), r.removeAttribute(p);
|
|
855
855
|
} else
|
|
856
|
-
|
|
856
|
+
p.startsWith($) && (c.push({ type: 6, index: o }), r.removeAttribute(p));
|
|
857
857
|
if (re.test(r.tagName)) {
|
|
858
|
-
const
|
|
858
|
+
const p = r.textContent.split($), u = p.length - 1;
|
|
859
859
|
if (u > 0) {
|
|
860
860
|
r.textContent = X ? X.emptyScript : "";
|
|
861
861
|
for (let f = 0; f < u; f++)
|
|
862
|
-
r.append(
|
|
863
|
-
r.append(
|
|
862
|
+
r.append(p[f], N()), E.nextNode(), c.push({ type: 2, index: ++o });
|
|
863
|
+
r.append(p[u], N());
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
} else if (r.nodeType === 8)
|
|
867
867
|
if (r.data === ie)
|
|
868
868
|
c.push({ type: 2, index: o });
|
|
869
869
|
else {
|
|
870
|
-
let
|
|
871
|
-
for (; (
|
|
872
|
-
c.push({ type: 7, index: o }),
|
|
870
|
+
let p = -1;
|
|
871
|
+
for (; (p = r.data.indexOf($, p + 1)) !== -1; )
|
|
872
|
+
c.push({ type: 7, index: o }), p += $.length - 1;
|
|
873
873
|
}
|
|
874
874
|
o++;
|
|
875
875
|
}
|
|
@@ -922,7 +922,7 @@ class V {
|
|
|
922
922
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
923
923
|
}
|
|
924
924
|
constructor(t, e, i, r) {
|
|
925
|
-
this.type = 2, this._$AH =
|
|
925
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
|
926
926
|
}
|
|
927
927
|
get parentNode() {
|
|
928
928
|
let t = this._$AA.parentNode;
|
|
@@ -936,7 +936,7 @@ class V {
|
|
|
936
936
|
return this._$AB;
|
|
937
937
|
}
|
|
938
938
|
_$AI(t, e = this) {
|
|
939
|
-
t = M(this, t, e), I(t) ? t ===
|
|
939
|
+
t = M(this, t, e), I(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ne(t) ? this.k(t) : this._(t);
|
|
940
940
|
}
|
|
941
941
|
S(t) {
|
|
942
942
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -945,7 +945,7 @@ class V {
|
|
|
945
945
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
|
946
946
|
}
|
|
947
947
|
_(t) {
|
|
948
|
-
this._$AH !==
|
|
948
|
+
this._$AH !== d && I(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
|
|
949
949
|
}
|
|
950
950
|
$(t) {
|
|
951
951
|
var o;
|
|
@@ -989,7 +989,7 @@ class tt {
|
|
|
989
989
|
return this._$AM._$AU;
|
|
990
990
|
}
|
|
991
991
|
constructor(t, e, i, r, o) {
|
|
992
|
-
this.type = 1, this._$AH =
|
|
992
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
|
|
993
993
|
}
|
|
994
994
|
_$AI(t, e = this, i, r) {
|
|
995
995
|
const o = this.strings;
|
|
@@ -1000,12 +1000,12 @@ class tt {
|
|
|
1000
1000
|
const a = t;
|
|
1001
1001
|
let c, l;
|
|
1002
1002
|
for (t = o[0], c = 0; c < o.length - 1; c++)
|
|
1003
|
-
l = M(this, a[i + c], e, c), l === P && (l = this._$AH[c]), n || (n = !I(l) || l !== this._$AH[c]), l ===
|
|
1003
|
+
l = M(this, a[i + c], e, c), l === P && (l = this._$AH[c]), n || (n = !I(l) || l !== this._$AH[c]), l === d ? t = d : t !== d && (t += (l ?? "") + o[c + 1]), this._$AH[c] = l;
|
|
1004
1004
|
}
|
|
1005
1005
|
n && !r && this.j(t);
|
|
1006
1006
|
}
|
|
1007
1007
|
j(t) {
|
|
1008
|
-
t ===
|
|
1008
|
+
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
1011
|
class Ve extends tt {
|
|
@@ -1013,7 +1013,7 @@ class Ve extends tt {
|
|
|
1013
1013
|
super(...arguments), this.type = 3;
|
|
1014
1014
|
}
|
|
1015
1015
|
j(t) {
|
|
1016
|
-
this.element[this.name] = t ===
|
|
1016
|
+
this.element[this.name] = t === d ? void 0 : t;
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
class ze extends tt {
|
|
@@ -1021,7 +1021,7 @@ class ze extends tt {
|
|
|
1021
1021
|
super(...arguments), this.type = 4;
|
|
1022
1022
|
}
|
|
1023
1023
|
j(t) {
|
|
1024
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
1024
|
+
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
class We extends tt {
|
|
@@ -1029,9 +1029,9 @@ class We extends tt {
|
|
|
1029
1029
|
super(t, e, i, r, o), this.type = 5;
|
|
1030
1030
|
}
|
|
1031
1031
|
_$AI(t, e = this) {
|
|
1032
|
-
if ((t = M(this, t, e, 0) ??
|
|
1032
|
+
if ((t = M(this, t, e, 0) ?? d) === P)
|
|
1033
1033
|
return;
|
|
1034
|
-
const i = this._$AH, r = t ===
|
|
1034
|
+
const i = this._$AH, r = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== d && (i === d || r);
|
|
1035
1035
|
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1036
1036
|
}
|
|
1037
1037
|
handleEvent(t) {
|
|
@@ -1150,7 +1150,7 @@ class bt extends m {
|
|
|
1150
1150
|
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
|
1151
1151
|
}
|
|
1152
1152
|
render() {
|
|
1153
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
|
1153
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), d;
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
bt.styles = [
|
|
@@ -1317,7 +1317,7 @@ class ni extends le {
|
|
|
1317
1317
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
|
1318
1318
|
}
|
|
1319
1319
|
render(t) {
|
|
1320
|
-
return
|
|
1320
|
+
return d;
|
|
1321
1321
|
}
|
|
1322
1322
|
getController() {
|
|
1323
1323
|
return ii.get(this.u);
|
|
@@ -1446,10 +1446,10 @@ class ni extends le {
|
|
|
1446
1446
|
for (const c in e) {
|
|
1447
1447
|
const l = t[c], h = e[c];
|
|
1448
1448
|
if (c in ct) {
|
|
1449
|
-
const
|
|
1449
|
+
const p = ct[c];
|
|
1450
1450
|
if (l === void 0 || h === void 0)
|
|
1451
1451
|
continue;
|
|
1452
|
-
const u =
|
|
1452
|
+
const u = p(l, h);
|
|
1453
1453
|
u.transform !== void 0 && (a[c] = u.value, n = !0, r.transform = `${r.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(r, u.overrideFrom));
|
|
1454
1454
|
} else
|
|
1455
1455
|
l !== h && l !== void 0 && h !== void 0 && (n = !0, r[c] = l, o[c] = h);
|
|
@@ -1550,17 +1550,17 @@ const Ft = _t(class extends ae {
|
|
|
1550
1550
|
* Copyright 2020 Google LLC
|
|
1551
1551
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1552
1552
|
*/
|
|
1553
|
-
const
|
|
1553
|
+
const pe = () => new li();
|
|
1554
1554
|
class li {
|
|
1555
1555
|
}
|
|
1556
|
-
const lt = /* @__PURE__ */ new WeakMap(),
|
|
1556
|
+
const lt = /* @__PURE__ */ new WeakMap(), de = _t(class extends le {
|
|
1557
1557
|
render(s) {
|
|
1558
|
-
return
|
|
1558
|
+
return d;
|
|
1559
1559
|
}
|
|
1560
1560
|
update(s, [t]) {
|
|
1561
1561
|
var i;
|
|
1562
1562
|
const e = t !== this.Y;
|
|
1563
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)),
|
|
1563
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)), d;
|
|
1564
1564
|
}
|
|
1565
1565
|
rt(s) {
|
|
1566
1566
|
if (typeof this.Y == "function") {
|
|
@@ -1581,14 +1581,14 @@ const lt = /* @__PURE__ */ new WeakMap(), pe = _t(class extends le {
|
|
|
1581
1581
|
this.rt(this.ct);
|
|
1582
1582
|
}
|
|
1583
1583
|
});
|
|
1584
|
-
var hi = Object.defineProperty,
|
|
1585
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
1584
|
+
var hi = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, z = (s, t, e, i) => {
|
|
1585
|
+
for (var r = i > 1 ? void 0 : i ? pi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
1586
1586
|
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
1587
1587
|
return i && r && hi(t, e, r), r;
|
|
1588
1588
|
};
|
|
1589
1589
|
class w extends m {
|
|
1590
1590
|
constructor() {
|
|
1591
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
|
1591
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = pe(), this.widgetActive$ = new Se(!1), this.componentIsDestroyed$ = new gt();
|
|
1592
1592
|
}
|
|
1593
1593
|
async connectedCallback() {
|
|
1594
1594
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
|
@@ -1632,7 +1632,7 @@ class w extends m {
|
|
|
1632
1632
|
return x` <img src=${e} class="trigger-icon" alt="" /> `;
|
|
1633
1633
|
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
|
1634
1634
|
if (!i)
|
|
1635
|
-
return
|
|
1635
|
+
return d;
|
|
1636
1636
|
const r = async (h) => ci, { type: o, content: n } = i;
|
|
1637
1637
|
switch (o) {
|
|
1638
1638
|
case "Telia": {
|
|
@@ -1641,10 +1641,10 @@ class w extends m {
|
|
|
1641
1641
|
class="trigger-icon"
|
|
1642
1642
|
svg=${h.svg}
|
|
1643
1643
|
size="lg"
|
|
1644
|
-
></telia-icon>` :
|
|
1644
|
+
></telia-icon>` : d;
|
|
1645
1645
|
}
|
|
1646
1646
|
default:
|
|
1647
|
-
return
|
|
1647
|
+
return d;
|
|
1648
1648
|
}
|
|
1649
1649
|
}
|
|
1650
1650
|
hideTrigger() {
|
|
@@ -1660,7 +1660,7 @@ class w extends m {
|
|
|
1660
1660
|
"trigger-container": !0,
|
|
1661
1661
|
hidden: !this.triggerVisible
|
|
1662
1662
|
})}
|
|
1663
|
-
${
|
|
1663
|
+
${de(this.containerRef)}
|
|
1664
1664
|
>
|
|
1665
1665
|
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? x`
|
|
1666
1666
|
<button
|
|
@@ -1676,7 +1676,7 @@ class w extends m {
|
|
|
1676
1676
|
>
|
|
1677
1677
|
${this.application.settings.branding.other.buttonLabelText}
|
|
1678
1678
|
</button>
|
|
1679
|
-
` :
|
|
1679
|
+
` : d}
|
|
1680
1680
|
|
|
1681
1681
|
<button
|
|
1682
1682
|
label="Widget trigger"
|
|
@@ -1866,10 +1866,10 @@ z([
|
|
|
1866
1866
|
z([
|
|
1867
1867
|
U()
|
|
1868
1868
|
], w.prototype, "icon", 2);
|
|
1869
|
-
var
|
|
1869
|
+
var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, A = (s, t, e, i) => {
|
|
1870
1870
|
for (var r = i > 1 ? void 0 : i ? ui(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
1871
1871
|
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
1872
|
-
return i && r &&
|
|
1872
|
+
return i && r && di(t, e, r), r;
|
|
1873
1873
|
};
|
|
1874
1874
|
const ue = (s) => {
|
|
1875
1875
|
class t extends s {
|
|
@@ -2085,7 +2085,7 @@ var bi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, _i = (s, t
|
|
|
2085
2085
|
const wi = "application";
|
|
2086
2086
|
class Ct extends m {
|
|
2087
2087
|
constructor() {
|
|
2088
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
|
2088
|
+
super(...arguments), this.nodes = [], this.wrapperRef = pe();
|
|
2089
2089
|
}
|
|
2090
2090
|
addChild(t) {
|
|
2091
2091
|
t.parent = this, this.nodes.push(t);
|
|
@@ -2110,7 +2110,7 @@ class Ct extends m {
|
|
|
2110
2110
|
render() {
|
|
2111
2111
|
var i, r;
|
|
2112
2112
|
const t = this.application.settings.components.conversation;
|
|
2113
|
-
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top
|
|
2113
|
+
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), x`<div class="widget-container" ${de(this.wrapperRef)}>
|
|
2114
2114
|
${fi(this.nodes, (o) => o)}
|
|
2115
2115
|
</div>`;
|
|
2116
2116
|
}
|
|
@@ -2160,23 +2160,6 @@ Ct.styles = O`
|
|
|
2160
2160
|
position: fixed;
|
|
2161
2161
|
}
|
|
2162
2162
|
|
|
2163
|
-
:host(.embedded) {
|
|
2164
|
-
padding: 40px 20px 20px 40px !important;
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
@media screen and (max-device-width: 800px) {
|
|
2168
|
-
:host(.embedded) {
|
|
2169
|
-
padding: 0 !important;
|
|
2170
|
-
}
|
|
2171
|
-
:host(.embedded) .widget-container {
|
|
2172
|
-
border-radius: none !important;
|
|
2173
|
-
}
|
|
2174
|
-
}
|
|
2175
|
-
|
|
2176
|
-
:host(.embedded) .widget-container {
|
|
2177
|
-
border-radius: var(--border-radius) !important;
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
2163
|
@media screen and (max-width: 800px) {
|
|
2181
2164
|
:host(.floating) {
|
|
2182
2165
|
inset: 0;
|
|
@@ -2301,7 +2284,7 @@ class W extends m {
|
|
|
2301
2284
|
}
|
|
2302
2285
|
render() {
|
|
2303
2286
|
if (!this.widget || this.status !== "activated")
|
|
2304
|
-
return
|
|
2287
|
+
return d;
|
|
2305
2288
|
if (this.widget.renderStrategy === wt.Trigger) {
|
|
2306
2289
|
const t = new w();
|
|
2307
2290
|
return t.application = this.widget, t;
|
|
@@ -2352,7 +2335,7 @@ const xi = Ie`
|
|
|
2352
2335
|
class Ei extends ge {
|
|
2353
2336
|
render() {
|
|
2354
2337
|
var e;
|
|
2355
|
-
return (e = this.application.branding().other) != null && e.whiteLabel ?
|
|
2338
|
+
return (e = this.application.branding().other) != null && e.whiteLabel ? d : x` <div class="copyright">
|
|
2356
2339
|
<a
|
|
2357
2340
|
aria-label="Powered by Telia ACE"
|
|
2358
2341
|
href="https://ace-showcase.com"
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-
|
|
1
|
+
"use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-50da6f56.js")))};module.exports=o;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-copyright-flamingo",
|
|
3
|
-
"version": "1.1.76-rc.
|
|
3
|
+
"version": "1.1.76-rc.25",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.76-rc.
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.76-rc.25"
|
|
7
7
|
},
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"module": "./index.mjs",
|