@telia-ace/widget-components-copyright-flamingo 1.1.72-rc.3 → 1.1.72-rc.5
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
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 V(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,n=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return n}function K(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return s.concat(n||Array.prototype.slice.call(t))}function y(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 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,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=pt(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(v){t={error:v}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var h=this.initialTeardown;if(y(h))try{h()}catch(v){n=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 O=f.value;try{Et(O)}catch(v){n=n??[],v instanceof et?n=K(K([],q(n)),q(v.errors)):n.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(n)throw new et(n)}},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&&y(s.remove)&&y(s.add)&&y(s.unsubscribe)}function Et(s){y(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
|
|
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,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=pt(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(v){t={error:v}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var h=this.initialTeardown;if(y(h))try{h()}catch(v){n=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 O=f.value;try{Et(O)}catch(v){n=n??[],v instanceof et?n=K(K([],q(n)),q(v.errors)):n.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(n)throw new et(n)}},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&&y(s.remove)&&y(s.add)&&y(s.unsubscribe)}function Et(s){y(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){V(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){W(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){W(i)}else W(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){W(e)}},s}(),ft=function(s){V(t,s);function t(e,i,r){var n=s.call(this)||this,o;if(y(e)||!e)o={next:e??void 0,error:i??void 0,complete:r??void 0};else{var a;n&&Qt.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return n.unsubscribe()},o={next:e.next&&it(e.next,a),error:e.error&&it(e.error,a),complete:e.complete&&it(e.complete,a)}):o=e}return n.destination=new be(o),n}return t}(te);function W(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,n=Ee(t)?t:new ft(t,e,i);return F(function(){var o=r,a=o.operator,l=o.source;n.add(a?a.call(n,l):l?r._subscribe(n):r._trySubscribe(n))}),n},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,n){var o=new ft({next:function(a){try{t(a)}catch(l){n(l),o.unsubscribe()}},error:n,complete:r});i.subscribe(o)})},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 n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return i(n)})})},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&&y(s.next)&&y(s.error)&&y(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){V(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,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=pt(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}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,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?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,n=i.thrownError,o=i.isStopped;r?e.error(n):o&&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){V(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){V(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,n=e._value;if(i)throw r;return this._throwIfClosed(),n},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
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/const{is:Me,defineProperty:ke,getOwnPropertyDescriptor:Ue,getOwnPropertyNames:He,getOwnPropertySymbols:
|
|
11
|
+
*/const{is:Me,defineProperty:ke,getOwnPropertyDescriptor:Ue,getOwnPropertyNames:He,getOwnPropertySymbols:Le,getPrototypeOf:Re}=Object,$=globalThis,Ut=$.trustedTypes,je=Ut?Ut.emptyScript:"",st=$.reactiveElementPolyfillSupport,H=(s,t)=>s,G={toAttribute(s,t){switch(t){case Boolean:s=s?je:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},yt=(s,t)=>!Me(s,t),Ht={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:yt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),$.litPropertyMetadata??($.litPropertyMetadata=new WeakMap);let T=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,e=Ht){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&ke(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:n}=Ue(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);n.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ht}static _$Ei(){if(this.hasOwnProperty(H("elementProperties")))return;const t=Re(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(H("properties"))){const e=this.properties,i=[...He(e),...Le(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(kt(r))}else t!==void 0&&e.push(kt(t));return e}static _$Eu(t,e){const i=e.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._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.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 Te(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var n;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:G).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:G;this._$Em=r,this[r]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??yt)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}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.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[H("elementProperties")]=new Map,T[H("finalized")]=new Map,st==null||st({ReactiveElement:T}),($.reactiveElementVersions??($.reactiveElementVersions=[])).push("2.0.4");/**
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2017 Google LLC
|
|
14
14
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
-
*/const
|
|
16
|
-
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Nt=/'/g,It=/"/g,ne=/^(?:script|style|textarea|title)$/i,oe=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),A=oe(1),Ve=oe(2),S=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Vt=new WeakMap,x=E.createTreeWalker(E,129);function ae(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return
|
|
15
|
+
*/const L=globalThis,X=L.trustedTypes,Lt=X?X.createPolicy("lit-html",{createHTML:s=>s}):void 0,ie="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,se="?"+b,Ne=`<${se}>`,E=document,j=()=>E.createComment(""),N=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
|
+
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,jt=/>/g,w=RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
17
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Nt=/'/g,It=/"/g,ne=/^(?:script|style|textarea|title)$/i,oe=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),A=oe(1),Ve=oe(2),S=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Vt=new WeakMap,x=E.createTreeWalker(E,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,n=t===2?"<svg>":"",o=U;for(let a=0;a<e;a++){const l=s[a];let c,h,p=-1,u=0;for(;u<l.length&&(o.lastIndex=u,h=o.exec(l),h!==null);)u=o.lastIndex,o===U?h[1]==="!--"?o=Rt:h[1]!==void 0?o=jt:h[2]!==void 0?(ne.test(h[2])&&(r=RegExp("</"+h[2],"g")),o=w):h[3]!==void 0&&(o=w):o===w?h[0]===">"?(o=r??U,p=-1):h[1]===void 0?p=-2:(p=o.lastIndex-h[2].length,c=h[1],o=h[3]===void 0?w:h[3]==='"'?It:Nt):o===It||o===Nt?o=w:o===Rt||o===jt?o=U:(o=w,r=void 0);const f=o===w&&s[a+1].startsWith("/>")?" ":"";n+=o===U?l+Ne:p>=0?(i.push(c),l.slice(0,p)+ie+l.slice(p)+b+f):l+b+(p===-2?a:f)}return[ae(s,n+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class I{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,o=0;const a=t.length-1,l=this.parts,[c,h]=De(t,e);if(this.el=I.createElement(c,i),x.currentNode=this.el.content,e===2){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(r=x.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const p of r.getAttributeNames())if(p.endsWith(ie)){const u=h[o++],f=r.getAttribute(p).split(b),O=/([.?@])?(.*)/.exec(u);l.push({type:1,index:n,name:O[2],strings:f,ctor:O[1]==="."?ze:O[1]==="?"?We:O[1]==="@"?Ye:tt}),r.removeAttribute(p)}else p.startsWith(b)&&(l.push({type:6,index:n}),r.removeAttribute(p));if(ne.test(r.tagName)){const p=r.textContent.split(b),u=p.length-1;if(u>0){r.textContent=X?X.emptyScript:"";for(let f=0;f<u;f++)r.append(p[f],j()),x.nextNode(),l.push({type:2,index:++n});r.append(p[u],j())}}}else if(r.nodeType===8)if(r.data===se)l.push({type:2,index:n});else{let p=-1;for(;(p=r.data.indexOf(b,p+1))!==-1;)l.push({type:7,index:n}),p+=b.length-1}n++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}}function M(s,t,e=s,i){var o,a;if(t===S)return t;let r=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=N(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),n===void 0?r=void 0:(r=new n(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 Be{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)??E).importNode(e,!0);x.currentNode=r;let n=x.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new D(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new Fe(n,this,t)),this._$AV.push(c),l=i[++a]}o!==(l==null?void 0:l.index)&&(n=x.nextNode(),o++)}return x.currentNode=E,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 D{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),N(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==S&&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&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(E.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=I.createElement(ae(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Be(r,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Vt.get(t.strings);return e===void 0&&Vt.set(t.strings,e=new I(t)),e}k(t){re(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new D(this.S(j()),this.S(j()),this,this.options)):i=e[r],i._$AI(n),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,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,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 n=this.strings;let o=!1;if(n===void 0)t=M(this,t,e,0),o=!N(t)||t!==this._$AH&&t!==S,o&&(this._$AH=t);else{const a=t;let l,c;for(t=n[0],l=0;l<n.length-1;l++)c=M(this,a[i+l],e,l),c===S&&(c=this._$AH[l]),o||(o=!N(c)||c!==this._$AH[l]),c===d?t=d:t!==d&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}o&&!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,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??d)===S)return;const i=this._$AH,r=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==d&&(i===d||r);r&&this.element.removeEventListener(this.name,this,i),n&&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 nt=L.litHtmlPolyfillSupport;nt==null||nt(I,D),(L.litHtmlVersions??(L.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 n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new D(t.insertBefore(j(),n),n,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
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/const
|
|
57
|
+
*/const R=(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),R(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)},ce=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,ce(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 n=e;n<i.length;n++)R(i[n],!1),J(i[n]);else i!=null&&(R(i,!1),J(i));else R(this,s)}const ii=s=>{s.type==$t.CHILD&&(s._$AP??(s._$AP=ei),s._$AQ??(s._$AQ=ti))};class he extends le{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),ce(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&&(R(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,Bt=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},lt={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})`}}},ni={duration:333,easing:"ease-in-out"},oi=["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(n=>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=oi),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const n=e[r]??(lt[r]?void 0:i[r]),o=Number(n);t[r]=isNaN(o)?n+"":o}),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((n,o)=>n===r[o]))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:n,to:o}=this.N(this.A,r,e);this.log("measured",[this.A,r,n,o]),t=this.calculateKeyframes(n,o)}else{const n=at.get(this.options.inId);if(n){at.delete(this.options.inId);const{from:o,to:a}=this.N(n,r,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Dt++,t.forEach(l=>l.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 n=this.A.left-r.left,o=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||n===0&&o===0||(this.element.style.position="relative"),n!==0&&(this.element.style.left=n+"px"),o!==0&&(this.element.style.top=o+"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=Bt.has(this.u);return t||this.u.updateComplete.then(()=>{Bt.add(this.u)}),t}j(t,e=this.O()){const i={...ni};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 n=1,o=1;return r.length>0&&(r.forEach(a=>{a.width&&(n/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=n*t.left,e.left=n*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const r={},n={};let o=!1;const a={};for(const l in e){const c=t[l],h=e[l];if(l in lt){const p=lt[l];if(c===void 0||h===void 0)continue;const u=p(c,h);u.transform!==void 0&&(a[l]=u.value,o=!0,r.transform=`${r.transform??""} ${u.transform}`,u.overrideFrom!==void 0&&Object.assign(r,u.overrideFrom))}else c!==h&&c!==void 0&&h!==void 0&&(o=!0,r[l]=c,n[l]=h)}return r.transformOrigin=n.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[r,n]: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 li=_t(ai),ci={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 le{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(n=>n!=="")));for(const n in t)t[n]&&!((i=this.nt)!=null&&i.has(n))&&this.st.add(n);return this.render(t)}const e=s.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(r=this.nt)!=null&&r.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return S}}),
|
|
61
|
+
*/const Zt=_t(class extends le{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(n=>n!=="")));for(const n in t)t[n]&&!((i=this.nt)!=null&&i.has(n))&&this.st.add(n);return this.render(t)}const e=s.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(r=this.nt)!=null&&r.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return S}}),Y=(s,t,e)=>{s&&e.style.setProperty(t,s)},pe=(s,t)=>{var e,i,r,n;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((n=s.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2020 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -264,8 +264,8 @@
|
|
|
264
264
|
* @license
|
|
265
265
|
* Copyright 2017 Google LLC
|
|
266
266
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
267
|
-
*/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 n;return(n=i.get(this))==null||n.setValue(r),t.set.call(this,r)},init(r){var n;return(n=i.get(this))==null||n.setValue(r),r}};{t.constructor.addInitializer(o=>{i.set(o,new qt(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get:function(){return o.get(this)},set:function(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set:function(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var $i=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,wi=(s,t,e,i)=>{for(var r=i>1?void 0:i?_i(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(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(){return 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")),A`<div class="widget-container" ${ue(this.wrapperRef)}>
|
|
268
|
-
${gi(this.nodes,
|
|
267
|
+
*/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 n;return(n=i.get(this))==null||n.setValue(r),t.set.call(this,r)},init(r){var n;return(n=i.get(this))==null||n.setValue(r),r}};{t.constructor.addInitializer(o=>{i.set(o,new qt(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get:function(){return o.get(this)},set:function(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set:function(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var $i=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,wi=(s,t,e,i)=>{for(var r=i>1?void 0:i?_i(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(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")),A`<div class="widget-container" ${ue(this.wrapperRef)}>
|
|
268
|
+
${gi(this.nodes,n=>n)}
|
|
269
269
|
</div>`}}Ct.styles=P`
|
|
270
270
|
:host {
|
|
271
271
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
@@ -313,6 +313,10 @@
|
|
|
313
313
|
inset: 0 0 95px 0;
|
|
314
314
|
height: 100%;
|
|
315
315
|
}
|
|
316
|
+
:host(.third-party) {
|
|
317
|
+
inset: 0 0 95px 0;
|
|
318
|
+
height: 100vh;
|
|
319
|
+
}
|
|
316
320
|
}
|
|
317
321
|
@media screen and (min-width: 801px) {
|
|
318
322
|
:host(.floating) {
|
|
@@ -321,6 +325,14 @@
|
|
|
321
325
|
width: 400px;
|
|
322
326
|
height: 700px;
|
|
323
327
|
}
|
|
328
|
+
:host(.third-party) {
|
|
329
|
+
max-width: 1000px;
|
|
330
|
+
height: 100vh;
|
|
331
|
+
position: relative;
|
|
332
|
+
left: 50%;
|
|
333
|
+
transform: translateX(-50%);
|
|
334
|
+
margin: -10px 0;
|
|
335
|
+
}
|
|
324
336
|
:host(.floating.bottom-right) {
|
|
325
337
|
inset: auto 20px 95px auto;
|
|
326
338
|
}
|
|
@@ -346,6 +358,8 @@
|
|
|
346
358
|
background-color: var(--primary-background);
|
|
347
359
|
padding: var(--spacing-sm);
|
|
348
360
|
border: var(--widget-border, none);
|
|
361
|
+
border-left: 1px solid #00000054;
|
|
362
|
+
border-right: 1px solid #00000054;
|
|
349
363
|
}
|
|
350
364
|
@keyframes slideDown {
|
|
351
365
|
from {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
return
|
|
1
|
+
var ct = function(s, t) {
|
|
2
|
+
return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
3
3
|
e.__proto__ = i;
|
|
4
4
|
} || function(e, i) {
|
|
5
5
|
for (var r in i)
|
|
6
6
|
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
|
7
|
-
},
|
|
7
|
+
}, ct(s, t);
|
|
8
8
|
};
|
|
9
9
|
function V(s, t) {
|
|
10
10
|
if (typeof t != "function" && t !== null)
|
|
11
11
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
12
|
-
|
|
12
|
+
ct(s, t);
|
|
13
13
|
function e() {
|
|
14
14
|
this.constructor = s;
|
|
15
15
|
}
|
|
@@ -90,8 +90,8 @@ var Q = function() {
|
|
|
90
90
|
if (this._parentage = null, Array.isArray(o))
|
|
91
91
|
try {
|
|
92
92
|
for (var a = pt(o), l = a.next(); !l.done; l = a.next()) {
|
|
93
|
-
var
|
|
94
|
-
|
|
93
|
+
var h = l.value;
|
|
94
|
+
h.remove(this);
|
|
95
95
|
}
|
|
96
96
|
} catch (v) {
|
|
97
97
|
t = { error: v };
|
|
@@ -105,10 +105,10 @@ var Q = function() {
|
|
|
105
105
|
}
|
|
106
106
|
else
|
|
107
107
|
o.remove(this);
|
|
108
|
-
var
|
|
109
|
-
if (y(
|
|
108
|
+
var c = this.initialTeardown;
|
|
109
|
+
if (y(c))
|
|
110
110
|
try {
|
|
111
|
-
|
|
111
|
+
c();
|
|
112
112
|
} catch (v) {
|
|
113
113
|
n = v instanceof et ? v.errors : [v];
|
|
114
114
|
}
|
|
@@ -200,7 +200,7 @@ function ve(s) {
|
|
|
200
200
|
}
|
|
201
201
|
function Et() {
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function F(s) {
|
|
204
204
|
s();
|
|
205
205
|
}
|
|
206
206
|
var Qt = function(s) {
|
|
@@ -248,7 +248,7 @@ var ye = function() {
|
|
|
248
248
|
try {
|
|
249
249
|
e.next(t);
|
|
250
250
|
} catch (i) {
|
|
251
|
-
|
|
251
|
+
W(i);
|
|
252
252
|
}
|
|
253
253
|
}, s.prototype.error = function(t) {
|
|
254
254
|
var e = this.partialObserver;
|
|
@@ -256,17 +256,17 @@ var ye = function() {
|
|
|
256
256
|
try {
|
|
257
257
|
e.error(t);
|
|
258
258
|
} catch (i) {
|
|
259
|
-
|
|
259
|
+
W(i);
|
|
260
260
|
}
|
|
261
261
|
else
|
|
262
|
-
|
|
262
|
+
W(t);
|
|
263
263
|
}, s.prototype.complete = function() {
|
|
264
264
|
var t = this.partialObserver;
|
|
265
265
|
if (t.complete)
|
|
266
266
|
try {
|
|
267
267
|
t.complete();
|
|
268
268
|
} catch (e) {
|
|
269
|
-
|
|
269
|
+
W(e);
|
|
270
270
|
}
|
|
271
271
|
}, s;
|
|
272
272
|
}(), ft = function(s) {
|
|
@@ -293,7 +293,7 @@ var ye = function() {
|
|
|
293
293
|
}
|
|
294
294
|
return t;
|
|
295
295
|
}(Qt);
|
|
296
|
-
function
|
|
296
|
+
function W(s) {
|
|
297
297
|
ve(s);
|
|
298
298
|
}
|
|
299
299
|
function be(s) {
|
|
@@ -326,7 +326,7 @@ var St = function() {
|
|
|
326
326
|
return e.source = this, e.operator = t, e;
|
|
327
327
|
}, s.prototype.subscribe = function(t, e, i) {
|
|
328
328
|
var r = this, n = xe(t) ? t : new ft(t, e, i);
|
|
329
|
-
return
|
|
329
|
+
return F(function() {
|
|
330
330
|
var o = r, a = o.operator, l = o.source;
|
|
331
331
|
n.add(a ? a.call(n, l) : l ? r._subscribe(n) : r._trySubscribe(n));
|
|
332
332
|
}), n;
|
|
@@ -405,7 +405,7 @@ var Ee = Kt(function(s) {
|
|
|
405
405
|
throw new Ee();
|
|
406
406
|
}, t.prototype.next = function(e) {
|
|
407
407
|
var i = this;
|
|
408
|
-
|
|
408
|
+
F(function() {
|
|
409
409
|
var r, n;
|
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
@@ -414,8 +414,8 @@ var Ee = Kt(function(s) {
|
|
|
414
414
|
var l = a.value;
|
|
415
415
|
l.next(e);
|
|
416
416
|
}
|
|
417
|
-
} catch (
|
|
418
|
-
r = { error:
|
|
417
|
+
} catch (h) {
|
|
418
|
+
r = { error: h };
|
|
419
419
|
} finally {
|
|
420
420
|
try {
|
|
421
421
|
a && !a.done && (n = o.return) && n.call(o);
|
|
@@ -428,7 +428,7 @@ var Ee = Kt(function(s) {
|
|
|
428
428
|
});
|
|
429
429
|
}, t.prototype.error = function(e) {
|
|
430
430
|
var i = this;
|
|
431
|
-
|
|
431
|
+
F(function() {
|
|
432
432
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
433
433
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
|
434
434
|
for (var r = i.observers; r.length; )
|
|
@@ -437,7 +437,7 @@ var Ee = Kt(function(s) {
|
|
|
437
437
|
});
|
|
438
438
|
}, t.prototype.complete = function() {
|
|
439
439
|
var e = this;
|
|
440
|
-
|
|
440
|
+
F(function() {
|
|
441
441
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
442
442
|
e.isStopped = !0;
|
|
443
443
|
for (var i = e.observers; i.length; )
|
|
@@ -827,11 +827,11 @@ const Ve = (s, t) => {
|
|
|
827
827
|
let r, n = t === 2 ? "<svg>" : "", o = U;
|
|
828
828
|
for (let a = 0; a < e; a++) {
|
|
829
829
|
const l = s[a];
|
|
830
|
-
let
|
|
831
|
-
for (; u < l.length && (o.lastIndex = u,
|
|
832
|
-
u = o.lastIndex, o === U ?
|
|
830
|
+
let h, c, p = -1, u = 0;
|
|
831
|
+
for (; u < l.length && (o.lastIndex = u, c = o.exec(l), c !== null); )
|
|
832
|
+
u = o.lastIndex, o === U ? c[1] === "!--" ? o = Lt : c[1] !== void 0 ? o = Rt : c[2] !== void 0 ? (re.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = w) : c[3] !== void 0 && (o = w) : o === w ? c[0] === ">" ? (o = r ?? U, p = -1) : c[1] === void 0 ? p = -2 : (p = o.lastIndex - c[2].length, h = c[1], o = c[3] === void 0 ? w : c[3] === '"' ? Nt : jt) : o === Nt || o === jt ? o = w : o === Lt || o === Rt ? o = U : (o = w, r = void 0);
|
|
833
833
|
const f = o === w && s[a + 1].startsWith("/>") ? " " : "";
|
|
834
|
-
n += o === U ? l + je : p >= 0 ? (i.push(
|
|
834
|
+
n += o === U ? l + je : p >= 0 ? (i.push(h), l.slice(0, p) + ee + l.slice(p) + b + f) : l + b + (p === -2 ? a : f);
|
|
835
835
|
}
|
|
836
836
|
return [oe(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
|
837
837
|
};
|
|
@@ -840,8 +840,8 @@ class I {
|
|
|
840
840
|
let r;
|
|
841
841
|
this.parts = [];
|
|
842
842
|
let n = 0, o = 0;
|
|
843
|
-
const a = t.length - 1, l = this.parts, [
|
|
844
|
-
if (this.el = I.createElement(
|
|
843
|
+
const a = t.length - 1, l = this.parts, [h, c] = Ve(t, e);
|
|
844
|
+
if (this.el = I.createElement(h, i), x.currentNode = this.el.content, e === 2) {
|
|
845
845
|
const p = this.el.content.firstChild;
|
|
846
846
|
p.replaceWith(...p.childNodes);
|
|
847
847
|
}
|
|
@@ -850,8 +850,8 @@ class I {
|
|
|
850
850
|
if (r.hasAttributes())
|
|
851
851
|
for (const p of r.getAttributeNames())
|
|
852
852
|
if (p.endsWith(ee)) {
|
|
853
|
-
const u =
|
|
854
|
-
l.push({ type: 1, index: n, name: O[2], strings: f, ctor: O[1] === "." ? Be : O[1] === "?" ? ze : O[1] === "@" ?
|
|
853
|
+
const u = c[o++], f = r.getAttribute(p).split(b), O = /([.?@])?(.*)/.exec(u);
|
|
854
|
+
l.push({ type: 1, index: n, name: O[2], strings: f, ctor: O[1] === "." ? Be : O[1] === "?" ? ze : O[1] === "@" ? We : tt }), r.removeAttribute(p);
|
|
855
855
|
} else
|
|
856
856
|
p.startsWith(b) && (l.push({ type: 6, index: n }), r.removeAttribute(p));
|
|
857
857
|
if (re.test(r.tagName)) {
|
|
@@ -903,8 +903,8 @@ class De {
|
|
|
903
903
|
let n = x.nextNode(), o = 0, a = 0, l = i[0];
|
|
904
904
|
for (; l !== void 0; ) {
|
|
905
905
|
if (o === l.index) {
|
|
906
|
-
let
|
|
907
|
-
l.type === 2 ?
|
|
906
|
+
let h;
|
|
907
|
+
l.type === 2 ? h = new D(n, n.nextSibling, this, t) : l.type === 1 ? h = new l.ctor(n, l.name, l.strings, this, t) : l.type === 6 && (h = new Ye(n, this, t)), this._$AV.push(h), l = i[++a];
|
|
908
908
|
}
|
|
909
909
|
o !== (l == null ? void 0 : l.index) && (n = x.nextNode(), o++);
|
|
910
910
|
}
|
|
@@ -998,9 +998,9 @@ class tt {
|
|
|
998
998
|
t = M(this, t, e, 0), o = !N(t) || t !== this._$AH && t !== S, o && (this._$AH = t);
|
|
999
999
|
else {
|
|
1000
1000
|
const a = t;
|
|
1001
|
-
let l,
|
|
1001
|
+
let l, h;
|
|
1002
1002
|
for (t = n[0], l = 0; l < n.length - 1; l++)
|
|
1003
|
-
|
|
1003
|
+
h = M(this, a[i + l], e, l), h === S && (h = this._$AH[l]), o || (o = !N(h) || h !== this._$AH[l]), h === d ? t = d : t !== d && (t += (h ?? "") + n[l + 1]), this._$AH[l] = h;
|
|
1004
1004
|
}
|
|
1005
1005
|
o && !r && this.j(t);
|
|
1006
1006
|
}
|
|
@@ -1024,7 +1024,7 @@ class ze extends tt {
|
|
|
1024
1024
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
class
|
|
1027
|
+
class We extends tt {
|
|
1028
1028
|
constructor(t, e, i, r, n) {
|
|
1029
1029
|
super(t, e, i, r, n), this.type = 5;
|
|
1030
1030
|
}
|
|
@@ -1039,7 +1039,7 @@ class Ye extends tt {
|
|
|
1039
1039
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
|
-
class
|
|
1042
|
+
class Ye {
|
|
1043
1043
|
constructor(t, e, i) {
|
|
1044
1044
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
1045
1045
|
}
|
|
@@ -1052,7 +1052,7 @@ class Fe {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
const nt = L.litHtmlPolyfillSupport;
|
|
1054
1054
|
nt == null || nt(I, D), (L.litHtmlVersions ?? (L.litHtmlVersions = [])).push("3.1.2");
|
|
1055
|
-
const
|
|
1055
|
+
const Fe = (s, t, e) => {
|
|
1056
1056
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
1057
1057
|
let r = i._$litPart$;
|
|
1058
1058
|
if (r === void 0) {
|
|
@@ -1077,7 +1077,7 @@ let m = class extends T {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
update(t) {
|
|
1079
1079
|
const e = this.render();
|
|
1080
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
1080
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Fe(e, this.renderRoot, this.renderOptions);
|
|
1081
1081
|
}
|
|
1082
1082
|
connectedCallback() {
|
|
1083
1083
|
var t;
|
|
@@ -1251,7 +1251,7 @@ function ti(s, t = !1, e = 0) {
|
|
|
1251
1251
|
const ei = (s) => {
|
|
1252
1252
|
s.type == $t.CHILD && (s._$AP ?? (s._$AP = ti), s._$AQ ?? (s._$AQ = Qe));
|
|
1253
1253
|
};
|
|
1254
|
-
class
|
|
1254
|
+
class he extends ae {
|
|
1255
1255
|
constructor() {
|
|
1256
1256
|
super(...arguments), this._$AN = void 0;
|
|
1257
1257
|
}
|
|
@@ -1280,7 +1280,7 @@ let Vt = 0;
|
|
|
1280
1280
|
const at = /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ new WeakSet(), Bt = () => new Promise((s) => requestAnimationFrame(s)), si = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], zt = (s, t) => {
|
|
1281
1281
|
const e = s - t;
|
|
1282
1282
|
return e === 0 ? void 0 : e;
|
|
1283
|
-
},
|
|
1283
|
+
}, Wt = (s, t) => {
|
|
1284
1284
|
const e = s / t;
|
|
1285
1285
|
return e === 1 ? void 0 : e;
|
|
1286
1286
|
}, lt = { left: (s, t) => {
|
|
@@ -1292,15 +1292,15 @@ const at = /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ new WeakSet(), Bt = (
|
|
|
1292
1292
|
}, width: (s, t) => {
|
|
1293
1293
|
let e;
|
|
1294
1294
|
t === 0 && (t = 1, e = { width: "1px" });
|
|
1295
|
-
const i =
|
|
1295
|
+
const i = Wt(s, t);
|
|
1296
1296
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
|
1297
1297
|
}, height: (s, t) => {
|
|
1298
1298
|
let e;
|
|
1299
1299
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1300
|
-
const i =
|
|
1300
|
+
const i = Wt(s, t);
|
|
1301
1301
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
1302
|
-
} }, ri = { duration: 333, easing: "ease-in-out" }, ni = ["left", "top", "width", "height", "opacity", "color", "background"],
|
|
1303
|
-
class oi extends
|
|
1302
|
+
} }, ri = { duration: 333, easing: "ease-in-out" }, ni = ["left", "top", "width", "height", "opacity", "color", "background"], Yt = /* @__PURE__ */ new WeakMap();
|
|
1303
|
+
class oi extends he {
|
|
1304
1304
|
constructor(t) {
|
|
1305
1305
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === $t.CHILD)
|
|
1306
1306
|
throw Error("The `animate` directive must be used in attribute position.");
|
|
@@ -1329,7 +1329,7 @@ class oi extends ce {
|
|
|
1329
1329
|
update(t, [e]) {
|
|
1330
1330
|
var r;
|
|
1331
1331
|
const i = this.u === void 0;
|
|
1332
|
-
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element,
|
|
1332
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Yt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
|
1333
1333
|
}
|
|
1334
1334
|
p(t) {
|
|
1335
1335
|
t = t ?? {};
|
|
@@ -1416,7 +1416,7 @@ class oi extends ce {
|
|
|
1416
1416
|
O() {
|
|
1417
1417
|
const t = [];
|
|
1418
1418
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
|
1419
|
-
const i =
|
|
1419
|
+
const i = Yt.get(e);
|
|
1420
1420
|
i && !i.isDisabled() && i && t.push(i);
|
|
1421
1421
|
}
|
|
1422
1422
|
return t;
|
|
@@ -1444,15 +1444,15 @@ class oi extends ce {
|
|
|
1444
1444
|
let o = !1;
|
|
1445
1445
|
const a = {};
|
|
1446
1446
|
for (const l in e) {
|
|
1447
|
-
const
|
|
1447
|
+
const h = t[l], c = e[l];
|
|
1448
1448
|
if (l in lt) {
|
|
1449
1449
|
const p = lt[l];
|
|
1450
|
-
if (
|
|
1450
|
+
if (h === void 0 || c === void 0)
|
|
1451
1451
|
continue;
|
|
1452
|
-
const u = p(
|
|
1452
|
+
const u = p(h, c);
|
|
1453
1453
|
u.transform !== void 0 && (a[l] = u.value, o = !0, r.transform = `${r.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(r, u.overrideFrom));
|
|
1454
1454
|
} else
|
|
1455
|
-
|
|
1455
|
+
h !== c && h !== void 0 && c !== void 0 && (o = !0, r[l] = h, n[l] = c);
|
|
1456
1456
|
}
|
|
1457
1457
|
return r.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [r, n] : void 0;
|
|
1458
1458
|
}
|
|
@@ -1485,7 +1485,7 @@ const ai = _t(oi), li = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns
|
|
|
1485
1485
|
* Copyright 2018 Google LLC
|
|
1486
1486
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1487
1487
|
*/
|
|
1488
|
-
const
|
|
1488
|
+
const Ft = _t(class extends ae {
|
|
1489
1489
|
constructor(s) {
|
|
1490
1490
|
var t;
|
|
1491
1491
|
if (super(s), s.type !== $t.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
|
@@ -1511,19 +1511,19 @@ const Wt = _t(class extends ae {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
return S;
|
|
1513
1513
|
}
|
|
1514
|
-
}),
|
|
1514
|
+
}), Y = (s, t, e) => {
|
|
1515
1515
|
s && e.style.setProperty(t, s);
|
|
1516
|
-
},
|
|
1516
|
+
}, ce = (s, t) => {
|
|
1517
1517
|
var e, i, r, n;
|
|
1518
|
-
|
|
1518
|
+
Y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), Y(
|
|
1519
1519
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
|
1520
1520
|
"--text-on-primary-background",
|
|
1521
1521
|
t
|
|
1522
|
-
),
|
|
1522
|
+
), Y(
|
|
1523
1523
|
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
|
1524
1524
|
"--secondary-background",
|
|
1525
1525
|
t
|
|
1526
|
-
),
|
|
1526
|
+
), Y(
|
|
1527
1527
|
(n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
|
1528
1528
|
"--text-on-secondary-background",
|
|
1529
1529
|
t
|
|
@@ -1534,10 +1534,10 @@ const Wt = _t(class extends ae {
|
|
|
1534
1534
|
* Copyright 2020 Google LLC
|
|
1535
1535
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1536
1536
|
*/
|
|
1537
|
-
const pe = () => new
|
|
1538
|
-
class
|
|
1537
|
+
const pe = () => new hi();
|
|
1538
|
+
class hi {
|
|
1539
1539
|
}
|
|
1540
|
-
const
|
|
1540
|
+
const ht = /* @__PURE__ */ new WeakMap(), de = _t(class extends he {
|
|
1541
1541
|
render(s) {
|
|
1542
1542
|
return d;
|
|
1543
1543
|
}
|
|
@@ -1549,14 +1549,14 @@ const ct = /* @__PURE__ */ new WeakMap(), de = _t(class extends ce {
|
|
|
1549
1549
|
rt(s) {
|
|
1550
1550
|
if (typeof this.Y == "function") {
|
|
1551
1551
|
const t = this.ht ?? globalThis;
|
|
1552
|
-
let e =
|
|
1553
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
1552
|
+
let e = ht.get(t);
|
|
1553
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ht.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);
|
|
1554
1554
|
} else
|
|
1555
1555
|
this.Y.value = s;
|
|
1556
1556
|
}
|
|
1557
1557
|
get lt() {
|
|
1558
1558
|
var s, t;
|
|
1559
|
-
return typeof this.Y == "function" ? (s =
|
|
1559
|
+
return typeof this.Y == "function" ? (s = ht.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
|
1560
1560
|
}
|
|
1561
1561
|
disconnected() {
|
|
1562
1562
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1565,10 +1565,10 @@ const ct = /* @__PURE__ */ new WeakMap(), de = _t(class extends ce {
|
|
|
1565
1565
|
this.rt(this.ct);
|
|
1566
1566
|
}
|
|
1567
1567
|
});
|
|
1568
|
-
var
|
|
1568
|
+
var ci = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, B = (s, t, e, i) => {
|
|
1569
1569
|
for (var r = i > 1 ? void 0 : i ? pi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
1570
1570
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
1571
|
-
return i && r &&
|
|
1571
|
+
return i && r && ci(t, e, r), r;
|
|
1572
1572
|
};
|
|
1573
1573
|
class _ extends m {
|
|
1574
1574
|
constructor() {
|
|
@@ -1592,23 +1592,23 @@ class _ extends m {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
_applyBranding() {
|
|
1594
1594
|
var t;
|
|
1595
|
-
(t = this.application) != null && t.settings &&
|
|
1595
|
+
(t = this.application) != null && t.settings && ce(this.application.settings.branding, this);
|
|
1596
1596
|
}
|
|
1597
1597
|
async _renderSymbol() {
|
|
1598
|
-
var a, l,
|
|
1598
|
+
var a, l, h;
|
|
1599
1599
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (l = t == null ? void 0 : t.graphics) == null ? void 0 : l.trigger;
|
|
1600
1600
|
if (e)
|
|
1601
1601
|
return A` <img src=${e} class="trigger-icon" alt="" /> `;
|
|
1602
|
-
const i = (
|
|
1602
|
+
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
|
1603
1603
|
if (!i)
|
|
1604
1604
|
return d;
|
|
1605
|
-
const r = async (
|
|
1605
|
+
const r = async (c) => li, { type: n, content: o } = i;
|
|
1606
1606
|
switch (n) {
|
|
1607
1607
|
case "Telia": {
|
|
1608
|
-
const
|
|
1609
|
-
return
|
|
1608
|
+
const c = await r();
|
|
1609
|
+
return c ? A`<telia-icon
|
|
1610
1610
|
class="trigger-icon"
|
|
1611
|
-
svg=${
|
|
1611
|
+
svg=${c.svg}
|
|
1612
1612
|
size="lg"
|
|
1613
1613
|
></telia-icon>` : d;
|
|
1614
1614
|
}
|
|
@@ -1625,7 +1625,7 @@ class _ extends m {
|
|
|
1625
1625
|
render() {
|
|
1626
1626
|
var t, e, i, r;
|
|
1627
1627
|
return A`<div
|
|
1628
|
-
class=${
|
|
1628
|
+
class=${Ft({
|
|
1629
1629
|
"trigger-container": !0,
|
|
1630
1630
|
hidden: !this.triggerVisible
|
|
1631
1631
|
})}
|
|
@@ -1649,7 +1649,7 @@ class _ extends m {
|
|
|
1649
1649
|
|
|
1650
1650
|
<button
|
|
1651
1651
|
label="Widget trigger"
|
|
1652
|
-
class=${
|
|
1652
|
+
class=${Ft({
|
|
1653
1653
|
trigger: !0,
|
|
1654
1654
|
active: this.active,
|
|
1655
1655
|
rendered: this.loaded
|
|
@@ -1971,8 +1971,8 @@ class Zt extends vi {
|
|
|
1971
1971
|
if (o.context !== this.context || a === this.host)
|
|
1972
1972
|
return;
|
|
1973
1973
|
const l = /* @__PURE__ */ new Set();
|
|
1974
|
-
for (const [
|
|
1975
|
-
l.has(
|
|
1974
|
+
for (const [h, { consumerHost: c }] of this.subscriptions)
|
|
1975
|
+
l.has(h) || (l.add(h), c.dispatchEvent(new gi(this.context, h, !0)));
|
|
1976
1976
|
o.stopPropagation();
|
|
1977
1977
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
|
|
1978
1978
|
}
|
|
@@ -2043,7 +2043,7 @@ class Ct extends m {
|
|
|
2043
2043
|
if (!this.wrapperRef.value)
|
|
2044
2044
|
return;
|
|
2045
2045
|
const t = this.application.settings;
|
|
2046
|
-
t != null && t.branding &&
|
|
2046
|
+
t != null && t.branding && ce(t.branding, this.wrapperRef.value);
|
|
2047
2047
|
}
|
|
2048
2048
|
applyStyles() {
|
|
2049
2049
|
if (!this.wrapperRef.value)
|
|
@@ -2057,8 +2057,10 @@ class Ct extends m {
|
|
|
2057
2057
|
this.applyBranding(), this.applyStyles();
|
|
2058
2058
|
}
|
|
2059
2059
|
render() {
|
|
2060
|
-
|
|
2061
|
-
|
|
2060
|
+
var i, r;
|
|
2061
|
+
const t = this.application.settings.components.conversation;
|
|
2062
|
+
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")), A`<div class="widget-container" ${de(this.wrapperRef)}>
|
|
2063
|
+
${fi(this.nodes, (n) => n)}
|
|
2062
2064
|
</div>`;
|
|
2063
2065
|
}
|
|
2064
2066
|
}
|
|
@@ -2109,6 +2111,10 @@ Ct.styles = P`
|
|
|
2109
2111
|
inset: 0 0 95px 0;
|
|
2110
2112
|
height: 100%;
|
|
2111
2113
|
}
|
|
2114
|
+
:host(.third-party) {
|
|
2115
|
+
inset: 0 0 95px 0;
|
|
2116
|
+
height: 100vh;
|
|
2117
|
+
}
|
|
2112
2118
|
}
|
|
2113
2119
|
@media screen and (min-width: 801px) {
|
|
2114
2120
|
:host(.floating) {
|
|
@@ -2117,6 +2123,14 @@ Ct.styles = P`
|
|
|
2117
2123
|
width: 400px;
|
|
2118
2124
|
height: 700px;
|
|
2119
2125
|
}
|
|
2126
|
+
:host(.third-party) {
|
|
2127
|
+
max-width: 1000px;
|
|
2128
|
+
height: 100vh;
|
|
2129
|
+
position: relative;
|
|
2130
|
+
left: 50%;
|
|
2131
|
+
transform: translateX(-50%);
|
|
2132
|
+
margin: -10px 0;
|
|
2133
|
+
}
|
|
2120
2134
|
:host(.floating.bottom-right) {
|
|
2121
2135
|
inset: auto 20px 95px auto;
|
|
2122
2136
|
}
|
|
@@ -2142,6 +2156,8 @@ Ct.styles = P`
|
|
|
2142
2156
|
background-color: var(--primary-background);
|
|
2143
2157
|
padding: var(--spacing-sm);
|
|
2144
2158
|
border: var(--widget-border, none);
|
|
2159
|
+
border-left: 1px solid #00000054;
|
|
2160
|
+
border-right: 1px solid #00000054;
|
|
2145
2161
|
}
|
|
2146
2162
|
@keyframes slideDown {
|
|
2147
2163
|
from {
|
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-06f81736.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.72-rc.
|
|
3
|
+
"version": "1.1.72-rc.5",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.72-rc.
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.72-rc.5"
|
|
7
7
|
},
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"module": "./index.mjs",
|