@telia-ace/widget-components-copyright-flamingo 1.1.75 → 1.1.76
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,32 +1,32 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ht=function(
|
|
2
|
-
`+e.map(function(i,
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function dt(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ht=function(r,t){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])},ht(r,t)};function D(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ht(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function pt(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],i=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function q(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var i=e.call(r),s,o=[],n;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(a){n={error:a}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return o}function K(r,t,e){if(e||arguments.length===2)for(var i=0,s=t.length,o;i<s;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return r.concat(o||Array.prototype.slice.call(t))}function b(r){return typeof r=="function"}function Gt(r){var t=function(i){Error.call(i),i.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var et=Gt(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
|
+
`+e.map(function(i,s){return s+1+") "+i.toString()}).join(`
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function dt(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var Q=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,s,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&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}}if(o)throw new et(o)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Et(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&dt(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&dt(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),Xt=Q.EMPTY;function Jt(r){return r instanceof Q||r&&"closed"in r&&b(r.remove)&&b(r.add)&&b(r.unsubscribe)}function Et(r){b(r)?r():r.unsubscribe()}var Qt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ut={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];var s=ut.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,K([r,t],q(e))):setTimeout.apply(void 0,K([r,t],q(e)))},clearTimeout:function(r){var t=ut.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(r)},delegate:void 0};function me(r){ut.setTimeout(function(){throw r})}function St(){}function F(r){r()}var te=function(r){D(t,r);function t(e){var i=r.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,s){return new ft(e,i,s)},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,r.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(r,t){return ye.call(r,t)}var be=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Y(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Y(i)}else Y(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Y(e)}},r}(),ft=function(r){D(t,r);function t(e,i,s){var o=r.call(this)||this,n;if(b(e)||!e)n={next:e??void 0,error:i??void 0,complete:s??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(r){me(r)}function $e(r){throw r}var _e={closed:!0,next:St,error:$e,complete:St},we=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ce(r){return r}function Ae(r){return r.length===0?Ce:r.length===1?r[0]:function(e){return r.reduce(function(i,s){return s(i)},e)}}var Pt=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var s=this,o=Ee(t)?t:new ft(t,e,i);return F(function(){var n=s,a=n.operator,c=n.source;o.add(a?a.call(o,c):c?s._subscribe(o):s._trySubscribe(o))}),o},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Ot(e),new e(function(s,o){var n=new ft({next:function(a){try{t(a)}catch(c){o(c),n.unsubscribe()}},error:o,complete:s});i.subscribe(n)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[we]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ae(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Ot(t),new t(function(i,s){var o;e.subscribe(function(n){return o=n},function(n){return s(n)},function(){return i(o)})})},r.create=function(t){return new r(t)},r}();function Ot(r){var t;return(t=r??Qt.Promise)!==null&&t!==void 0?t:Promise}function xe(r){return r&&b(r.next)&&b(r.error)&&b(r.complete)}function Ee(r){return r&&r instanceof te||xe(r)&&Jt(r)}var Se=Gt(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),gt=function(r){D(t,r);function t(){var e=r.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 s,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){s={error:l}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(s)throw s.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 s=i.observers;s.length;)s.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(),r.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,s=this,o=s.hasError,n=s.isStopped,a=s.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,s=i.hasError,o=i.thrownError,n=i.isStopped;s?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(r){D(t,r);function t(e,i){var s=r.call(this)||this;return s.destination=e,s.source=i,s}return t.prototype.next=function(e){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,e)},t.prototype.error=function(e){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.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,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&s!==void 0?s:Xt},t}(gt),Pe=function(r){D(t,r);function t(e){var i=r.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=r.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,s=e.thrownError,o=e._value;if(i)throw s;return this._throwIfClosed(),o},t.prototype.next=function(e){r.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
|
|
7
|
-
*/const Z=globalThis,vt=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),
|
|
7
|
+
*/const Z=globalThis,vt=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),kt=new WeakMap;let ee=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(vt&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&kt.set(e,t))}return t}toString(){return this.cssText}};const Oe=r=>new ee(typeof r=="string"?r:r+"",void 0,mt),O=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[o+1],r[0]);return new ee(e,r,mt)},Te=(r,t)=>{if(vt)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=Z.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)}},Mt=vt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Oe(e)})(r):r;/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/const{is:
|
|
11
|
+
*/const{is:ke,defineProperty:Me,getOwnPropertyDescriptor:Ue,getOwnPropertyNames:He,getOwnPropertySymbols:Le,getPrototypeOf:Re}=Object,_=globalThis,Ut=_.trustedTypes,je=Ut?Ut.emptyScript:"",rt=_.reactiveElementPolyfillSupport,L=(r,t)=>r,G={toAttribute(r,t){switch(t){case Boolean:r=r?je:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},yt=(r,t)=>!ke(r,t),Ht={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:yt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);let k=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(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Me(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=Ue(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return s==null?void 0:s.call(this)},set(n){const a=s==null?void 0:s.call(this);o.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ht}static _$Ei(){if(this.hasOwnProperty(L("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(L("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(L("properties"))){const e=this.properties,i=[...He(e),...Le(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,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 s of i)e.unshift(Mt(s))}else t!==void 0&&e.push(Mt(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 o;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:G).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var o;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const n=i.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:G;this._$Em=s,this[s]=a.fromAttribute(e,n.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[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,n]of s)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.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){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[L("elementProperties")]=new Map,k[L("finalized")]=new Map,rt==null||rt({ReactiveElement:k}),(_.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]`,
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Nt=/'/g,It=/"/g,
|
|
15
|
+
*/const R=globalThis,X=R.trustedTypes,Lt=X?X.createPolicy("lit-html",{createHTML:r=>r}):void 0,ie="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,re="?"+$,Ne=`<${re}>`,S=document,N=()=>S.createComment(""),I=r=>r===null||typeof r!="object"&&typeof r!="function",se=Array.isArray,Ie=r=>se(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",st=`[
|
|
16
|
+
\f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,jt=/>/g,C=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
|
|
17
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Nt=/'/g,It=/"/g,oe=/^(?:script|style|textarea|title)$/i,ne=r=>(t,...e)=>({_$litType$:r,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(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lt!==void 0?Lt.createHTML(t):t}const De=(r,t)=>{const e=r.length-1,i=[];let s,o=t===2?"<svg>":"",n=H;for(let a=0;a<e;a++){const c=r[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])&&(s=RegExp("</"+h[2],"g")),n=C):h[3]!==void 0&&(n=C):n===C?h[0]===">"?(n=s??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,s=void 0);const f=n===C&&r[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(r,o+(r[e]||"<?>")+(t===2?"</svg>":"")),i]};class B{constructor({strings:t,_$litType$:e},i){let s;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(;(s=E.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const p of s.getAttributeNames())if(p.endsWith(ie)){const u=h[n++],f=s.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}),s.removeAttribute(p)}else p.startsWith($)&&(c.push({type:6,index:o}),s.removeAttribute(p));if(oe.test(s.tagName)){const p=s.textContent.split($),u=p.length-1;if(u>0){s.textContent=X?X.emptyScript:"";for(let f=0;f<u;f++)s.append(p[f],N()),E.nextNode(),c.push({type:2,index:++o});s.append(p[u],N())}}}else if(s.nodeType===8)if(s.data===re)c.push({type:2,index:o});else{let p=-1;for(;(p=s.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(r,t,e=r,i){var n,a;if(t===P)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const o=I(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),o===void 0?s=void 0:(s=new o(r),s._$AT(r,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=M(r,s._$AS(r,t.values),s,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,s=((t==null?void 0:t.creationScope)??S).importNode(e,!0);E.currentNode=s;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,s}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,s){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.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,s=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)===s)this._$AH.p(e);else{const n=new Ve(s,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){se(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new V(this.S(N()),this.S(N()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$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 s=t.nextSibling;t.remove(),t=s}}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,s,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,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,s){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&&!s&&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,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??d)===P)return;const i=this._$AH,s=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==d&&(i===d||s);s&&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=(r,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const o=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new V(t.insertBefore(N(),o),o,void 0,e??{})}return s._$AI(r),s};/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/let m=class extends
|
|
21
|
+
*/let m=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ze(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return P}};var Kt;m._$litElement$=!0,m.finalized=!0,(Kt=globalThis.litElementHydrateSupport)==null||Kt.call(globalThis,{LitElement:m});const nt=globalThis.litElementPolyfillSupport;nt==null||nt({LitElement:m});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const qe={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:yt},Ke=(
|
|
25
|
+
*/const qe={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:yt},Ke=(r=qe,t,e)=>{const{kind:i,metadata:s}=e;let o=globalThis.litPropertyMetadata.get(s);if(o===void 0&&globalThis.litPropertyMetadata.set(s,o=new Map),o.set(e.name,r),i==="accessor"){const{name:n}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,c,r)},init(a){return a!==void 0&&this.P(n,void 0,r),a}}}if(i==="setter"){const{name:n}=e;return function(a){const c=this[n];t.call(this,a),this.requestUpdate(n,c,r)}}throw Error("Unsupported decorator location: "+i)};function g(r){return(t,e)=>typeof e=="object"?Ke(r,t,e):((i,s,o)=>{const n=s.hasOwnProperty(o);return s.constructor.createProperty(o,n?{...i,wrapped:!0}:i),n?Object.getOwnPropertyDescriptor(s,o):void 0})(r,t,e)}/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/function
|
|
29
|
+
*/function U(r){return g({...r,state:!0,attribute:!1})}var Ge=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,Je=(r,t,e,i)=>{for(var s=i>1?void 0:i?Xe(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ge(t,e,s),s};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;
|
|
@@ -46,36 +46,36 @@
|
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
-
*/const $t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_t=
|
|
49
|
+
*/const $t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_t=r=>(...t)=>({_$litDirective$:r,values:t});let ce=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2020 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/const Qe=
|
|
53
|
+
*/const Qe=r=>r.strings===void 0;/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/const
|
|
57
|
+
*/const j=(r,t)=>{var i;const e=r._$AN;if(e===void 0)return!1;for(const s of e)(i=s._$AO)==null||i.call(s,t,!1),j(s,t);return!0},J=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while((e==null?void 0:e.size)===0)},le=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),ii(t)}};function ti(r){this._$AN!==void 0?(J(this),this._$AM=r,le(this)):this._$AM=r}function ei(r,t=!1,e=0){const i=this._$AH,s=this._$AN;if(s!==void 0&&s.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,r)}const ii=r=>{r.type==$t.CHILD&&(r._$AP??(r._$AP=ei),r._$AQ??(r._$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,s;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(s=this.disconnected)==null||s.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 ri=new WeakMap;let Dt=0;const at=new Map,Vt=new WeakSet,zt=()=>new Promise(r=>requestAnimationFrame(r)),si=[{transform:"translateX(100%) scale(0)",opacity:0}],Wt=(r,t)=>{const e=r-t;return e===0?void 0:e},Yt=(r,t)=>{const e=r/t;return e===1?void 0:e},ct={left:(r,t)=>{const e=Wt(r,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(r,t)=>{const e=Wt(r,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(r,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Yt(r,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(r,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Yt(r,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 ri.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var s;const i=this.u===void 0;return i&&(this.u=(s=t.options)==null?void 0:s.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(s=>{const o=e[s]??(ct[s]?void 0:i[s]),n=Number(o);t[s]=isNaN(n)?o+"":n}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((i,s)=>{if(Array.isArray(i)){if(Array.isArray(s)&&s.length===i.length&&i.every((o,n)=>o===s[n]))return!1}else if(s===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),s=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,s,e);this.log("measured",[this.A,s,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,s,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 s=this.m();this.log("stabilizing out");const o=this.A.left-s.left,n=this.A.top-s.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(s=>Object.assign(i,s.options.keyframeOptions)),Object.assign(i,t),i}N(t,e,i){t={...t},e={...e};const s=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let o=1,n=1;return s.length>0&&(s.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 s={},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,s.transform=`${s.transform??""} ${u.transform}`,u.overrideFrom!==void 0&&Object.assign(s,u.overrideFrom))}else l!==h&&l!==void 0&&h!==void 0&&(n=!0,s[c]=l,o[c]=h)}return s.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[s,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 s=this.getController();s==null||s.add(this);try{await this.webAnimation.finished}catch{}s==null||s.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
|
|
61
|
+
*/const Zt=_t(class extends ce{constructor(r){var t;if(super(r),r.type!==$t.ATTRIBUTE||r.name!=="class"||((t=r.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(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,s;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.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=r.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)||(s=this.nt)!=null&&s.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return P}}),y=(r,t,e)=>{r&&e.style.setProperty(t,r)},pe=(r,t)=>{var e,i,s,o,n,a,c,l,h;y((e=r.colors)==null?void 0:e.primaryBackground,"--primary-background",t),y((i=r.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),y((s=r.colors)==null?void 0:s.secondaryBackground,"--secondary-background",t),y((o=r.colors)==null?void 0:o.textOnSecondaryBackground,"--text-on-secondary-background",t),y((n=r.colors)==null?void 0:n.interactiveDestructiveBackground,"--destructive-color",t),y((a=r.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),y((c=r.colors)==null?void 0:c.interactivePrimaryBackground,"--interactive-primary-background",t),y((l=r.colors)==null?void 0:l.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),y((h=r.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 de=()=>new hi;class hi{}const
|
|
65
|
+
*/const de=()=>new hi;class hi{}const lt=new WeakMap,ue=_t(class extends he{render(r){return d}update(r,[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=r.options)==null?void 0:i.host,this.rt(this.ct=r.element)),d}rt(r){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,r),r!==void 0&&this.Y.call(this.ht,r)}else this.Y.value=r}get lt(){var r,t;return typeof this.Y=="function"?(r=lt.get(this.ht??globalThis))==null?void 0:r.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=(r,t,e,i)=>{for(var s=i>1?void 0:i?di(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&pi(t,e,s),s};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.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.widgetActive$.next(!1),this.showTrigger())}_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 s=async h=>li,{type:o,content:n}=i;switch(o){case"Telia":{const h=await s();return h?x`<telia-icon
|
|
66
66
|
class="trigger-icon"
|
|
67
67
|
svg=${h.svg}
|
|
68
68
|
size="lg"
|
|
69
|
-
></telia-icon>`:d}default:return d}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,i,
|
|
69
|
+
></telia-icon>`:d}default:return d}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,i,s;return x`<div
|
|
70
70
|
class=${Zt({"trigger-container":!0,hidden:!this.triggerVisible})}
|
|
71
71
|
${ue(this.containerRef)}
|
|
72
72
|
>
|
|
73
|
-
${!this.active&&((
|
|
73
|
+
${!this.active&&((s=(i=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:i.other)!=null&&s.showButtonLabel)?x`
|
|
74
74
|
<button
|
|
75
75
|
label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
|
|
76
76
|
class="trigger-label"
|
|
77
77
|
@click=${this.toggleActive}
|
|
78
|
-
${
|
|
78
|
+
${ci({keyframeOptions:{},in:si,stabilizeOut:!0,skipInitial:!1})}
|
|
79
79
|
>
|
|
80
80
|
${this.application.settings.branding.other.buttonLabelText}
|
|
81
81
|
</button>
|
|
@@ -115,22 +115,26 @@
|
|
|
115
115
|
</svg>
|
|
116
116
|
</span>
|
|
117
117
|
</button>
|
|
118
|
-
</div>`}}
|
|
118
|
+
</div>`}}w.styles=[O`
|
|
119
119
|
:host {
|
|
120
120
|
--voca-rem-multiplier: 0.625;
|
|
121
121
|
--trigger-label-bg: #f5e0ff;
|
|
122
122
|
--trigger-label-text-color: rgba(0, 0, 0, 0.8);
|
|
123
123
|
display: block;
|
|
124
124
|
box-sizing: border-box;
|
|
125
|
-
/* font-family: var(--font-family); */
|
|
126
125
|
font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
127
126
|
}
|
|
128
127
|
|
|
128
|
+
:focus {
|
|
129
|
+
outline-color: var(--focus-color);
|
|
130
|
+
}
|
|
131
|
+
|
|
129
132
|
.trigger-container {
|
|
130
133
|
display: flex;
|
|
131
134
|
align-items: center;
|
|
132
135
|
gap: 1rem;
|
|
133
136
|
}
|
|
137
|
+
|
|
134
138
|
.trigger-container.hidden {
|
|
135
139
|
display: none;
|
|
136
140
|
}
|
|
@@ -148,26 +152,34 @@
|
|
|
148
152
|
width: 55px;
|
|
149
153
|
border-radius: 55px;
|
|
150
154
|
cursor: pointer;
|
|
151
|
-
background-color: var(
|
|
155
|
+
background-color: var(
|
|
156
|
+
--interactive-primary-background,
|
|
157
|
+
var(--primary-background)
|
|
158
|
+
);
|
|
152
159
|
font-family: Lato;
|
|
153
160
|
text-decoration: none;
|
|
154
161
|
border: 3px dashed transparent;
|
|
155
162
|
box-sizing: border-box;
|
|
156
163
|
transition: transform 200ms ease-out;
|
|
157
164
|
}
|
|
165
|
+
|
|
158
166
|
.trigger:active {
|
|
159
167
|
transform: scale(0.8) !important;
|
|
160
168
|
}
|
|
169
|
+
|
|
161
170
|
.trigger:hover:not(:active) {
|
|
162
171
|
transform: scale(1.1) !important;
|
|
163
172
|
}
|
|
173
|
+
|
|
164
174
|
.trigger.rendered {
|
|
165
175
|
transform: scale(1);
|
|
166
176
|
}
|
|
177
|
+
|
|
167
178
|
.trigger.active .trigger-icon {
|
|
168
179
|
opacity: 0;
|
|
169
180
|
transform: rotate(-180deg) scale(0);
|
|
170
181
|
}
|
|
182
|
+
|
|
171
183
|
.trigger.active .trigger-close {
|
|
172
184
|
opacity: 1;
|
|
173
185
|
transform: rotate(0deg) scale(1);
|
|
@@ -180,8 +192,12 @@
|
|
|
180
192
|
opacity: 1;
|
|
181
193
|
transform: rotate(0deg) scale(1);
|
|
182
194
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
183
|
-
color: var(
|
|
195
|
+
color: var(
|
|
196
|
+
--interactive-text-on-primary-background,
|
|
197
|
+
var(--text-on-primary-background)
|
|
198
|
+
);
|
|
184
199
|
}
|
|
200
|
+
|
|
185
201
|
.trigger-close {
|
|
186
202
|
opacity: 0;
|
|
187
203
|
transition: transform 200ms ease-out;
|
|
@@ -195,8 +211,12 @@
|
|
|
195
211
|
justify-content: center;
|
|
196
212
|
align-items: center;
|
|
197
213
|
}
|
|
214
|
+
|
|
198
215
|
.trigger-close svg path {
|
|
199
|
-
fill: var(
|
|
216
|
+
fill: var(
|
|
217
|
+
--interactive-text-on-primary-background,
|
|
218
|
+
var(--text-on-primary-background)
|
|
219
|
+
);
|
|
200
220
|
}
|
|
201
221
|
|
|
202
222
|
img {
|
|
@@ -205,8 +225,8 @@
|
|
|
205
225
|
|
|
206
226
|
.trigger-label {
|
|
207
227
|
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
|
|
208
|
-
background-color: var(--
|
|
209
|
-
color: var(--
|
|
228
|
+
background-color: var(--secondary-background);
|
|
229
|
+
color: var(--text-on-secondary-background);
|
|
210
230
|
white-space: nowrap;
|
|
211
231
|
padding: 0.7rem 1rem;
|
|
212
232
|
border-radius: 0.3rem;
|
|
@@ -224,7 +244,7 @@
|
|
|
224
244
|
.trigger-label:hover {
|
|
225
245
|
opacity: 0.8;
|
|
226
246
|
}
|
|
227
|
-
`];
|
|
247
|
+
`];z([g({attribute:!1})],w.prototype,"application",2);z([U()],w.prototype,"active",2);z([U()],w.prototype,"triggerVisible",2);z([U()],w.prototype,"loaded",2);z([U()],w.prototype,"icon",2);var ui=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,A=(r,t,e,i)=>{for(var s=i>1?void 0:i?fi(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&ui(t,e,s),s};const fe=r=>{class t extends r{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}}return t.styles=[O`
|
|
228
248
|
:host {
|
|
229
249
|
font-family: var(--font-family);
|
|
230
250
|
grid-column: span var(--width);
|
|
@@ -236,7 +256,7 @@
|
|
|
236
256
|
* {
|
|
237
257
|
box-sizing: border-box;
|
|
238
258
|
}
|
|
239
|
-
`],
|
|
259
|
+
`],A([g()],t.prototype,"properties",2),A([g()],t.prototype,"context",2),A([g()],t.prototype,"layout",2),A([g()],t.prototype,"name",2),A([g()],t.prototype,"type",2),A([g({attribute:!1})],t.prototype,"application",2),A([g({attribute:!1})],t.prototype,"parent",2),t};class ge extends fe(m){render(){return x`Non resolved component`}}ge.styles=[O`
|
|
240
260
|
:host {
|
|
241
261
|
display: block;
|
|
242
262
|
}
|
|
@@ -244,7 +264,7 @@
|
|
|
244
264
|
* @license
|
|
245
265
|
* Copyright 2021 Google LLC
|
|
246
266
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
247
|
-
*/function*gi(
|
|
267
|
+
*/function*gi(r,t){if(r!==void 0){let e=0;for(const i of r)yield t(i,e++)}}var wt=(r=>(r.Inline="inline",r.Trigger="trigger",r))(wt||{});/**
|
|
248
268
|
* @license
|
|
249
269
|
* Copyright 2021 Google LLC
|
|
250
270
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -256,17 +276,17 @@
|
|
|
256
276
|
* @license
|
|
257
277
|
* Copyright 2021 Google LLC
|
|
258
278
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
259
|
-
*/class mi{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:i}]of this.subscriptions)e(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:
|
|
279
|
+
*/class mi{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:i}]of this.subscriptions)e(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}}/**
|
|
260
280
|
* @license
|
|
261
281
|
* Copyright 2021 Google LLC
|
|
262
282
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
263
|
-
*/let yi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class qt extends mi{constructor(t,e,i){var
|
|
283
|
+
*/let yi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class qt extends mi{constructor(t,e,i){var s,o;super(e.context!==void 0?e.initialValue:i),this.onContextRequest=n=>{const a=n.composedPath()[0];n.context===this.context&&a!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,a,n.subscribe))},this.onProviderRequest=n=>{const a=n.composedPath()[0];if(n.context!==this.context||a===this.host)return;const c=new Set;for(const[l,{consumerHost:h}]of this.subscriptions)c.has(l)||(c.add(l),h.dispatchEvent(new vi(this.context,l,!0)));n.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(o=(s=this.host).addController)==null||o.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new yi(this.context))}}/**
|
|
264
284
|
* @license
|
|
265
285
|
* Copyright 2017 Google LLC
|
|
266
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
267
|
-
*/function bi({context:
|
|
268
|
-
${gi(this.nodes,
|
|
269
|
-
</div>`}}Ct.styles=
|
|
287
|
+
*/function bi({context:r}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new qt(this,{context:r}))}),{get(){return t.get.call(this)},set(s){var o;return(o=i.get(this))==null||o.setValue(s),t.set.call(this,s)},init(s){var o;return(o=i.get(this))==null||o.setValue(s),s}};{t.constructor.addInitializer(n=>{i.set(n,new qt(n,{context:r}))});const s=Object.getOwnPropertyDescriptor(t,e);let o;if(s===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=s.set;o={...s,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=(r,t,e,i)=>{for(var s=i>1?void 0:i?_i(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&$i(t,e,s),s};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,s])=>{e.style.setProperty(`--${i}`,s)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,s;const t=this.application.settings.components.conversation;return((s=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:s.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")),x`<div class="widget-container" ${ue(this.wrapperRef)}>
|
|
288
|
+
${gi(this.nodes,o=>o)}
|
|
289
|
+
</div>`}}Ct.styles=O`
|
|
270
290
|
:host {
|
|
271
291
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
272
292
|
--spacing-xs: 0.2rem;
|
|
@@ -282,6 +302,7 @@
|
|
|
282
302
|
--gray-color: #f3f3f8;
|
|
283
303
|
--white-color: #fff;
|
|
284
304
|
--gray-dark-color: #a6a6a6;
|
|
305
|
+
--black-border-color: #00000054;
|
|
285
306
|
|
|
286
307
|
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
|
287
308
|
--border-radius: var(--spacing-sm);
|
|
@@ -292,6 +313,7 @@
|
|
|
292
313
|
|
|
293
314
|
--header-height: 69px;
|
|
294
315
|
}
|
|
316
|
+
|
|
295
317
|
:host {
|
|
296
318
|
--voca-rem-multiplier: 0.625;
|
|
297
319
|
box-sizing: border-box;
|
|
@@ -308,23 +330,27 @@
|
|
|
308
330
|
z-index: 6;
|
|
309
331
|
position: fixed;
|
|
310
332
|
}
|
|
333
|
+
|
|
311
334
|
@media screen and (max-width: 800px) {
|
|
312
335
|
:host(.floating) {
|
|
313
|
-
inset: 0
|
|
336
|
+
inset: 0;
|
|
314
337
|
height: 100%;
|
|
315
338
|
}
|
|
339
|
+
|
|
316
340
|
:host(.third-party) {
|
|
317
|
-
inset: 0
|
|
341
|
+
inset: 0;
|
|
318
342
|
height: 100vh;
|
|
319
343
|
}
|
|
320
344
|
}
|
|
345
|
+
|
|
321
346
|
@media screen and (min-width: 801px) {
|
|
322
347
|
:host(.floating) {
|
|
323
|
-
inset: auto 20px
|
|
348
|
+
inset: auto 20px 20px auto;
|
|
324
349
|
max-height: calc(100vh - 120px);
|
|
325
350
|
width: 400px;
|
|
326
|
-
height:
|
|
351
|
+
height: 775px;
|
|
327
352
|
}
|
|
353
|
+
|
|
328
354
|
:host(.third-party) {
|
|
329
355
|
max-width: 1000px;
|
|
330
356
|
height: 100vh;
|
|
@@ -333,11 +359,13 @@
|
|
|
333
359
|
transform: translateX(-50%);
|
|
334
360
|
margin: -10px 0;
|
|
335
361
|
}
|
|
362
|
+
|
|
336
363
|
:host(.floating.bottom-right) {
|
|
337
|
-
inset: auto 20px
|
|
364
|
+
inset: auto 20px 20px auto;
|
|
338
365
|
}
|
|
366
|
+
|
|
339
367
|
:host(.floating.bottom-left) {
|
|
340
|
-
inset: auto auto
|
|
368
|
+
inset: auto auto 20px 20px;
|
|
341
369
|
}
|
|
342
370
|
}
|
|
343
371
|
|
|
@@ -353,14 +381,14 @@
|
|
|
353
381
|
* {
|
|
354
382
|
box-sizing: border-box;
|
|
355
383
|
}
|
|
384
|
+
|
|
356
385
|
.widget-container {
|
|
357
386
|
height: 100%;
|
|
358
387
|
background-color: var(--primary-background);
|
|
359
388
|
padding: var(--spacing-sm);
|
|
360
389
|
border: var(--widget-border, none);
|
|
361
|
-
border-left: 1px solid #00000054;
|
|
362
|
-
border-right: 1px solid #00000054;
|
|
363
390
|
}
|
|
391
|
+
|
|
364
392
|
@keyframes slideDown {
|
|
365
393
|
from {
|
|
366
394
|
transform: translateY(0);
|
|
@@ -371,6 +399,7 @@
|
|
|
371
399
|
opacity: 0;
|
|
372
400
|
}
|
|
373
401
|
}
|
|
402
|
+
|
|
374
403
|
@keyframes slideUp {
|
|
375
404
|
from {
|
|
376
405
|
transform: translateY(100%);
|
|
@@ -381,20 +410,22 @@
|
|
|
381
410
|
opacity: 1;
|
|
382
411
|
}
|
|
383
412
|
}
|
|
413
|
+
|
|
384
414
|
:host(.expanded) {
|
|
385
415
|
opacity: 1;
|
|
386
416
|
animation: slideUp 0.3s linear;
|
|
387
417
|
}
|
|
418
|
+
|
|
388
419
|
:host(.hidden) {
|
|
389
420
|
opacity: 0;
|
|
390
421
|
animation: slideDown 0.3s linear;
|
|
391
422
|
pointer-events: none;
|
|
392
423
|
}
|
|
393
|
-
`;wi([g({attribute:!1}),bi({context:Ci})],Ct.prototype,"application",2);var Ai=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,At=(
|
|
424
|
+
`;wi([g({attribute:!1}),bi({context:Ci})],Ct.prototype,"application",2);var Ai=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,At=(r,t,e,i)=>{for(var s=i>1?void 0:i?xi(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ai(t,e,s),s};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`
|
|
394
425
|
:host {
|
|
395
426
|
display: block;
|
|
396
427
|
}
|
|
397
|
-
`];At([g({attribute:!0})],
|
|
428
|
+
`];At([g({attribute:!0})],W.prototype,"name",2);At([U()],W.prototype,"widget",2);At([U()],W.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",bt);customElements.get("ace-trigger")||customElements.define("ace-trigger",w);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",ge);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",Ct);customElements.get("ace-widget")||customElements.define("ace-widget",W);const Ei=Be`
|
|
398
429
|
<g clip-path="url(#clip0_119_1665)">
|
|
399
430
|
<path d="M16.9321 27.4656C11.5983 29.6245 8.54568 28.9365 6.85856 27.5904L6.83398 27.5712C9.44534 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z" fill="#990AE3"/>
|
|
400
431
|
<path d="M20.9805 22.4843C25.1369 20.0779 28.8809 15.9968 30.0615 13.0869C30.397 10.6784 30.4654 10.3744 30.506 7.72479C30.5113 7.35786 30.4889 7.00586 30.4547 6.66879C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43734 23.5435 1.74585 20.6027C2.68077 22.4459 3.29407 23.3408 4.34545 24.7083C7.45044 27.4539 13.9852 26.5355 20.9805 22.4843Z" fill="#990AE3"/>
|
|
@@ -412,7 +443,7 @@
|
|
|
412
443
|
<clipPath id="clip0_119_1665">
|
|
413
444
|
<rect width="30.5068" height="32.0011" fill="white"/>
|
|
414
445
|
</clipPath>
|
|
415
|
-
</defs>`,ve=fe(m);class xt extends ve{render(){var e;return(e=this.application.branding().other)!=null&&e.whiteLabel?d:
|
|
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">
|
|
416
447
|
<a
|
|
417
448
|
aria-label="Powered by Telia ACE"
|
|
418
449
|
href="https://ace-showcase.com"
|
|
@@ -430,11 +461,15 @@
|
|
|
430
461
|
${Ei}
|
|
431
462
|
</svg>
|
|
432
463
|
</a>
|
|
433
|
-
</div>`}}xt.styles=[ve.styles||[],
|
|
464
|
+
</div>`}}xt.styles=[ve.styles||[],O`
|
|
434
465
|
:host {
|
|
435
466
|
--copyright-text-color: var(--text-on-primary-background);
|
|
436
467
|
}
|
|
437
468
|
|
|
469
|
+
:focus {
|
|
470
|
+
outline-color: var(--focus-color);
|
|
471
|
+
}
|
|
472
|
+
|
|
438
473
|
.copyright {
|
|
439
474
|
padding: var(--spacing-sx);
|
|
440
475
|
box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.1);
|