@telia-ace/widget-components-copyright-flamingo 1.1.110 → 1.1.111-rc.1
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.
- package/copyright-CCzK_P_f.js +514 -0
- package/{copyright-vxGANJlL.mjs → copyright-CckY9LHJ.mjs} +658 -638
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/copyright-Dk-YoeXu.js +0 -514
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-CCzK_P_f.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.
|
|
3
|
+
"version": "1.1.111-rc.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.111-rc.1"
|
|
7
7
|
},
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"module": "./index.mjs",
|
package/copyright-Dk-YoeXu.js
DELETED
|
@@ -1,514 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var dt=function(n,t){return dt=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])},dt(n,t)};function D(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");dt(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ut(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pt(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var i=e.call(n),s,r=[],o;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)r.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return r}function ft(n,t,e){if(e||arguments.length===2)for(var i=0,s=t.length,r;i<s;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))}function v(n){return typeof n=="function"}function re(n){var t=function(i){Error.call(i),i.stack=new Error().stack},e=n(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var nt=re(function(n){return function(e){n(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 gt(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var et=function(){function n(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var t,e,i,s,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ut(o),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(m){t={error:m}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var h=this.initialTeardown;if(v(h))try{h()}catch(m){r=m instanceof nt?m.errors:[m]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=ut(d),f=p.next();!f.done;f=p.next()){var k=f.value;try{Ht(k)}catch(m){r=r??[],m instanceof nt?r=ft(ft([],pt(r)),pt(m.errors)):r.push(m)}}}catch(m){i={error:m}}finally{try{f&&!f.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}}if(r)throw new nt(r)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Ht(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},n.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},n.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},n.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&>(e,t)},n.prototype.remove=function(t){var e=this._finalizers;e&>(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=function(){var t=new n;return t.closed=!0,t}(),n}(),oe=et.EMPTY;function ae(n){return n instanceof et||n&&"closed"in n&&v(n.remove)&&v(n.add)&&v(n.unsubscribe)}function Ht(n){v(n)?n():n.unsubscribe()}var xe={Promise:void 0},Ce={setTimeout:function(n,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,ft([n,t],pt(e)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Ee(n){Ce.setTimeout(function(){throw n})}function Lt(){}function W(n){n()}var ce=function(n){D(t,n);function t(e){var i=n.call(this)||this;return i.isStopped=!1,e?(i.destination=e,ae(e)&&e.add(i)):i.destination=Oe,i}return t.create=function(e,i,s){return new mt(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,n.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}(et),Se=function(){function n(t){this.partialObserver=t}return n.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Z(i)}},n.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Z(i)}else Z(t)},n.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Z(e)}},n}(),mt=function(n){D(t,n);function t(e,i,s){var r=n.call(this)||this,o;return v(e)||!e?o={next:e??void 0,error:i??void 0,complete:s??void 0}:o=e,r.destination=new Se(o),r}return t}(ce);function Z(n){Ee(n)}function Pe(n){throw n}var Oe={closed:!0,next:Lt,error:Pe,complete:Lt},ke=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Te(n){return n}function Me(n){return n.length===0?Te:n.length===1?n[0]:function(e){return n.reduce(function(i,s){return s(i)},e)}}var Ut=function(){function n(t){t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,i){var s=this,r=Le(t)?t:new mt(t,e,i);return W(function(){var o=s,a=o.operator,c=o.source;r.add(a?a.call(r,c):c?s._subscribe(r):s._trySubscribe(r))}),r},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(t,e){var i=this;return e=Rt(e),new e(function(s,r){var o=new mt({next:function(a){try{t(a)}catch(c){r(c),o.unsubscribe()}},error:r,complete:s});i.subscribe(o)})},n.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},n.prototype[ke]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Me(t)(this)},n.prototype.toPromise=function(t){var e=this;return t=Rt(t),new t(function(i,s){var r;e.subscribe(function(o){return r=o},function(o){return s(o)},function(){return i(r)})})},n.create=function(t){return new n(t)},n}();function Rt(n){var t;return(t=n??xe.Promise)!==null&&t!==void 0?t:Promise}function He(n){return n&&v(n.next)&&v(n.error)&&v(n.complete)}function Le(n){return n&&n instanceof ce||He(n)&&ae(n)}var Ue=re(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),vt=function(n){D(t,n);function t(){var e=n.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 jt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ue},t.prototype.next=function(e){var i=this;W(function(){var s,r;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=ut(i.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(e)}}catch(l){s={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}}})},t.prototype.error=function(e){var i=this;W(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;W(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(),n.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,r=s.hasError,o=s.isStopped,a=s.observers;return r||o?oe:(this.currentObservers=null,a.push(e),new et(function(){i.currentObservers=null,gt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,s=i.hasError,r=i.thrownError,o=i.isStopped;s?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new Ut;return e.source=this,e},t.create=function(e,i){return new jt(e,i)},t}(Ut),jt=function(n){D(t,n);function t(e,i){var s=n.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:oe},t}(vt),Re=function(n){D(t,n);function t(e){var i=n.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=n.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,r=e._value;if(i)throw s;return this._throwIfClosed(),r},t.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},t}(vt);/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright 2019 Google LLC
|
|
6
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
*/const q=globalThis,$t=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_t=Symbol(),Nt=new WeakMap;let le=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==_t)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($t&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Nt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Nt.set(e,t))}return t}toString(){return this.cssText}};const je=n=>new le(typeof n=="string"?n:n+"",void 0,_t),O=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,r)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[r+1],n[0]);return new le(e,n,_t)},Ne=(n,t)=>{if($t)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=q.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)}},It=$t?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return je(e)})(n):n;/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2017 Google LLC
|
|
10
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/const{is:Ie,defineProperty:Be,getOwnPropertyDescriptor:Ve,getOwnPropertyNames:ze,getOwnPropertySymbols:De,getPrototypeOf:Fe}=Object,w=globalThis,Bt=w.trustedTypes,Ye=Bt?Bt.emptyScript:"",st=w.reactiveElementPolyfillSupport,R=(n,t)=>n,K={toAttribute(n,t){switch(t){case Boolean:n=n?Ye:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},wt=(n,t)=>!Ie(n,t),Vt={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),w.litPropertyMetadata??(w.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=Vt){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&&Be(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:r}=Ve(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return s==null?void 0:s.call(this)},set(o){const a=s==null?void 0:s.call(this);r.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Vt}static _$Ei(){if(this.hasOwnProperty(R("elementProperties")))return;const t=Fe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(R("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(R("properties"))){const e=this.properties,i=[...ze(e),...De(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(It(s))}else t!==void 0&&e.push(It(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 Ne(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 r;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const o=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:K).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){var r;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const o=i.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)==null?void 0:r.fromAttribute)!==void 0?o.converter:K;this._$Em=s,this[s]=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??wt)(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[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[r,o]of s)o.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var r;return(r=s.hostUpdate)==null?void 0:r.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){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[R("elementProperties")]=new Map,T[R("finalized")]=new Map,st==null||st({ReactiveElement:T}),(w.reactiveElementVersions??(w.reactiveElementVersions=[])).push("2.0.4");/**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright 2017 Google LLC
|
|
14
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
-
*/const j=globalThis,G=j.trustedTypes,zt=G?G.createPolicy("lit-html",{createHTML:n=>n}):void 0,he="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,de="?"+_,Ze=`<${de}>`,S=document,I=()=>S.createComment(""),B=n=>n===null||typeof n!="object"&&typeof n!="function",At=Array.isArray,We=n=>At(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",rt=`[
|
|
16
|
-
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Dt=/-->/g,Ft=/>/g,A=RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yt=/'/g,Zt=/"/g,ue=/^(?:script|style|textarea|title)$/i,pe=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),C=pe(1),qe=pe(2),P=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),Wt=new WeakMap,E=S.createTreeWalker(S,129);function fe(n,t){if(!At(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return zt!==void 0?zt.createHTML(t):t}const Ke=(n,t)=>{const e=n.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",o=U;for(let a=0;a<e;a++){const c=n[a];let l,h,d=-1,p=0;for(;p<c.length&&(o.lastIndex=p,h=o.exec(c),h!==null);)p=o.lastIndex,o===U?h[1]==="!--"?o=Dt:h[1]!==void 0?o=Ft:h[2]!==void 0?(ue.test(h[2])&&(s=RegExp("</"+h[2],"g")),o=A):h[3]!==void 0&&(o=A):o===A?h[0]===">"?(o=s??U,d=-1):h[1]===void 0?d=-2:(d=o.lastIndex-h[2].length,l=h[1],o=h[3]===void 0?A:h[3]==='"'?Zt:Yt):o===Zt||o===Yt?o=A:o===Dt||o===Ft?o=U:(o=A,s=void 0);const f=o===A&&n[a+1].startsWith("/>")?" ":"";r+=o===U?c+Ze:d>=0?(i.push(l),c.slice(0,d)+he+c.slice(d)+_+f):c+_+(d===-2?a:f)}return[fe(n,r+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let yt=class ge{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,o=0;const a=t.length-1,c=this.parts,[l,h]=Ke(t,e);if(this.el=ge.createElement(l,i),E.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=E.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(he)){const p=h[o++],f=s.getAttribute(d).split(_),k=/([.?@])?(.*)/.exec(p);c.push({type:1,index:r,name:k[2],strings:f,ctor:k[1]==="."?Xe:k[1]==="?"?Je:k[1]==="@"?Qe:it}),s.removeAttribute(d)}else d.startsWith(_)&&(c.push({type:6,index:r}),s.removeAttribute(d));if(ue.test(s.tagName)){const d=s.textContent.split(_),p=d.length-1;if(p>0){s.textContent=G?G.emptyScript:"";for(let f=0;f<p;f++)s.append(d[f],I()),E.nextNode(),c.push({type:2,index:++r});s.append(d[p],I())}}}else if(s.nodeType===8)if(s.data===de)c.push({type:2,index:r});else{let d=-1;for(;(d=s.data.indexOf(_,d+1))!==-1;)c.push({type:7,index:r}),d+=_.length-1}r++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}};function M(n,t,e=n,i){var o,a;if(t===P)return t;let s=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const r=B(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),r===void 0?s=void 0:(s=new r(n),s._$AT(n,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=M(n,s._$AS(n,t.values),s,i)),t}class Ge{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 r=E.nextNode(),o=0,a=0,c=i[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new F(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new ti(r,this,t)),this._$AV.push(l),c=i[++a]}o!==(c==null?void 0:c.index)&&(r=E.nextNode(),o++)}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 F{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=u,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),B(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):We(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=yt.createElement(fe(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(e);else{const o=new Ge(s,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Wt.get(t.strings);return e===void 0&&Wt.set(t.strings,e=new yt(t)),e}k(t){At(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new F(this.O(I()),this.O(I()),this,this.options)):i=e[s],i._$AI(r),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 it{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(t,e=this,i,s){const r=this.strings;let o=!1;if(r===void 0)t=M(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let c,l;for(t=r[0],c=0;c<r.length-1;c++)l=M(this,a[i+c],e,c),l===P&&(l=this._$AH[c]),o||(o=!B(l)||l!==this._$AH[c]),l===u?t=u:t!==u&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Xe extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}}class Je extends it{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}}class Qe extends it{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??u)===P)return;const i=this._$AH,s=t===u&&i!==u||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==u&&(i===u||s);s&&this.element.removeEventListener(this.name,this,i),r&&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 ti{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=j.litHtmlPolyfillSupport;ot==null||ot(yt,F),(j.litHtmlVersions??(j.litHtmlVersions=[])).push("3.2.1");const ei=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const r=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new F(t.insertBefore(I(),r),r,void 0,e??{})}return s._$AI(n),s};/**
|
|
18
|
-
* @license
|
|
19
|
-
* Copyright 2017 Google LLC
|
|
20
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/let y=class extends T{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=ei(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 se;y._$litElement$=!0,y.finalized=!0,(se=globalThis.litElementHydrateSupport)==null||se.call(globalThis,{LitElement:y});const at=globalThis.litElementPolyfillSupport;at==null||at({LitElement:y});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright 2017 Google LLC
|
|
24
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const ii={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:wt},ni=(n=ii,t,e)=>{const{kind:i,metadata:s}=e;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),r.set(e.name,n),i==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,n)},init(a){return a!==void 0&&this.P(o,void 0,n),a}}}if(i==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,n)}}throw Error("Unsupported decorator location: "+i)};function g(n){return(t,e)=>typeof e=="object"?ni(n,t,e):((i,s,r)=>{const o=s.hasOwnProperty(r);return s.constructor.createProperty(r,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(s,r):void 0})(n,t,e)}/**
|
|
26
|
-
* @license
|
|
27
|
-
* Copyright 2017 Google LLC
|
|
28
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/function L(n){return g({...n,state:!0,attribute:!1})}var si=Object.defineProperty,ri=(n,t,e,i)=>{for(var s=void 0,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=o(t,e,s)||s);return s&&si(t,e,s),s};const St=class St extends y{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"),u}};St.styles=[O`
|
|
30
|
-
:host {
|
|
31
|
-
position: fixed;
|
|
32
|
-
display: flex;
|
|
33
|
-
align-items: center;
|
|
34
|
-
gap: 1rem;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host(.bottom-right) {
|
|
38
|
-
bottom: 20px;
|
|
39
|
-
right: 20px;
|
|
40
|
-
}
|
|
41
|
-
:host(.bottom-left) {
|
|
42
|
-
bottom: 20px;
|
|
43
|
-
left: 20px;
|
|
44
|
-
}
|
|
45
|
-
`];let X=St;ri([g({attribute:!0})],X.prototype,"anchor");/**
|
|
46
|
-
* @license
|
|
47
|
-
* Copyright 2017 Google LLC
|
|
48
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
-
*/const xt={ATTRIBUTE:1,CHILD:2},Ct=n=>(...t)=>({_$litDirective$:n,values:t});let me=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
|
-
* @license
|
|
51
|
-
* Copyright 2020 Google LLC
|
|
52
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/const oi=n=>n.strings===void 0;/**
|
|
54
|
-
* @license
|
|
55
|
-
* Copyright 2017 Google LLC
|
|
56
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/const N=(n,t)=>{var i;const e=n._$AN;if(e===void 0)return!1;for(const s of e)(i=s._$AO)==null||i.call(s,t,!1),N(s,t);return!0},J=n=>{let t,e;do{if((t=n._$AM)===void 0)break;e=t._$AN,e.delete(n),n=t}while((e==null?void 0:e.size)===0)},ye=n=>{for(let t;t=n._$AM;n=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(n))break;e.add(n),li(t)}};function ai(n){this._$AN!==void 0?(J(this),this._$AM=n,ye(this)):this._$AM=n}function ci(n,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 r=e;r<i.length;r++)N(i[r],!1),J(i[r]);else i!=null&&(N(i,!1),J(i));else N(this,n)}const li=n=>{n.type==xt.CHILD&&(n._$AP??(n._$AP=ci),n._$AQ??(n._$AQ=ai))};class be extends me{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),ye(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&&(N(this,t),J(this))}setValue(t){if(oi(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 hi=new WeakMap;let qt=0;const ct=new Map,Kt=new WeakSet,Gt=()=>new Promise(n=>requestAnimationFrame(n)),di=[{transform:"translateX(100%) scale(0)",opacity:0}],Xt=(n,t)=>{const e=n-t;return e===0?void 0:e},Jt=(n,t)=>{const e=n/t;return e===1?void 0:e},lt={left:(n,t)=>{const e=Xt(n,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(n,t)=>{const e=Xt(n,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(n,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Jt(n,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(n,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Jt(n,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},ui={duration:333,easing:"ease-in-out"},pi=["left","top","width","height","opacity","color","background"],Qt=new WeakMap;class fi extends be{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===xt.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return u}getController(){return hi.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(r=>this.t=!0),this.element=t.element,Qt.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=pi),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(s=>{const r=e[s]??(lt[s]?void 0:i[s]),o=Number(r);t[s]=isNaN(o)?r+"":o}),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((r,o)=>r===s[o]))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 Gt;const e=this.O(),i=this.j(this.options.keyframeOptions,e),s=this.m();if(this.A!==void 0){const{from:r,to:o}=this.N(this.A,s,e);this.log("measured",[this.A,s,r,o]),t=this.calculateKeyframes(r,o)}else{const r=ct.get(this.options.inId);if(r){ct.delete(this.options.inId);const{from:o,to:a}=this.N(r,s,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,qt++,t.forEach(c=>c.zIndex=qt)}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&&ct.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Gt(),(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 r=this.A.left-s.left,o=this.A.top-s.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.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=Qt.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Kt.has(this.u);return t||this.u.updateComplete.then(()=>{Kt.add(this.u)}),t}j(t,e=this.O()){const i={...ui};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 r=1,o=1;return s.length>0&&(s.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=r*t.left,e.left=r*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 s={},r={};let o=!1;const a={};for(const c in e){const l=t[c],h=e[c];if(c in lt){const d=lt[c];if(l===void 0||h===void 0)continue;const p=d(l,h);p.transform!==void 0&&(a[c]=p.value,o=!0,s.transform=`${s.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(s,p.overrideFrom))}else l!==h&&l!==void 0&&h!==void 0&&(o=!0,s[c]=l,r[c]=h)}return s.transformOrigin=r.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[s,r]: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 gi=Ct(fi),mi={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
|
-
* @license
|
|
59
|
-
* Copyright 2018 Google LLC
|
|
60
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/const te=Ct(class extends me{constructor(n){var t;if(super(n),n.type!==xt.ATTRIBUTE||n.name!=="class"||((t=n.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(n){return" "+Object.keys(n).filter(t=>n[t]).join(" ")+" "}update(n,[t]){var i,s;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((i=this.nt)!=null&&i.has(r))&&this.st.add(r);return this.render(t)}const e=n.element.classList;for(const r of this.st)r in t||(e.remove(r),this.st.delete(r));for(const r in t){const o=!!t[r];o===this.st.has(r)||(s=this.nt)!=null&&s.has(r)||(o?(e.add(r),this.st.add(r)):(e.remove(r),this.st.delete(r)))}return P}}),b=(n,t,e)=>{n&&e.style.setProperty(t,n)},ve=(n,t)=>{var e,i,s,r,o,a,c,l,h;b((e=n.colors)==null?void 0:e.primaryBackground,"--primary-background",t),b((i=n.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),b((s=n.colors)==null?void 0:s.secondaryBackground,"--secondary-background",t),b((r=n.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t),b((o=n.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),b((a=n.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),b((c=n.colors)==null?void 0:c.interactivePrimaryBackground,"--interactive-primary-background",t),b((l=n.colors)==null?void 0:l.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),b((h=n.colors)==null?void 0:h.focusColor,"--focus-color",t)};/**
|
|
62
|
-
* @license
|
|
63
|
-
* Copyright 2020 Google LLC
|
|
64
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/const $e=()=>new yi;class yi{}const ht=new WeakMap,_e=Ct(class extends be{render(n){return u}update(n,[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=n.options)==null?void 0:i.host,this.rt(this.ct=n.element)),u}rt(n){if(this.isConnected||(n=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let e=ht.get(t);e===void 0&&(e=new WeakMap,ht.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,t;return typeof this.Y=="function"?(n=ht.get(this.ht??globalThis))==null?void 0:n.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 bi=Object.defineProperty,Y=(n,t,e,i)=>{for(var s=void 0,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=o(t,e,s)||s);return s&&bi(t,e,s),s};const Pt=class Pt extends y{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=$e(),this.widgetActive$=new Re(!1),this.componentIsDestroyed$=new vt}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&ve(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 C` <img src=${e} class="trigger-icon" alt="" /> `;const i=(l=this.application)==null?void 0:l.triggerIcon;if(!i)return u;const s=async h=>mi,{type:r,content:o}=i;switch(r){case"Telia":{const h=await s();return h?C`<telia-icon
|
|
66
|
-
class="trigger-icon"
|
|
67
|
-
svg=${h.svg}
|
|
68
|
-
size="lg"
|
|
69
|
-
></telia-icon>`:u}default:return u}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,i,s;return C`<div
|
|
70
|
-
class=${te({"trigger-container":!0,hidden:!this.triggerVisible})}
|
|
71
|
-
${_e(this.containerRef)}
|
|
72
|
-
>
|
|
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)?C`
|
|
74
|
-
<button
|
|
75
|
-
label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
|
|
76
|
-
class="trigger-label"
|
|
77
|
-
@click=${this.toggleActive}
|
|
78
|
-
${gi({keyframeOptions:{},in:di,stabilizeOut:!0,skipInitial:!1})}
|
|
79
|
-
>
|
|
80
|
-
${this.application.settings.branding.other.buttonLabelText}
|
|
81
|
-
</button>
|
|
82
|
-
`:u}
|
|
83
|
-
|
|
84
|
-
<button
|
|
85
|
-
label="Widget trigger"
|
|
86
|
-
class=${te({trigger:!0,active:this.active,rendered:this.loaded})}
|
|
87
|
-
@click=${this.toggleActive}
|
|
88
|
-
>
|
|
89
|
-
${this.icon}
|
|
90
|
-
<span class="trigger-close">
|
|
91
|
-
<svg
|
|
92
|
-
width="18"
|
|
93
|
-
height="9"
|
|
94
|
-
viewBox="0 0 18 9"
|
|
95
|
-
fill="none"
|
|
96
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
97
|
-
>
|
|
98
|
-
<path
|
|
99
|
-
d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
|
|
100
|
-
fill="white"
|
|
101
|
-
/>
|
|
102
|
-
</svg>
|
|
103
|
-
</span>
|
|
104
|
-
<span class="trigger-loader">
|
|
105
|
-
<svg viewBox="25 25 50 50">
|
|
106
|
-
<circle
|
|
107
|
-
cx="50"
|
|
108
|
-
cy="50"
|
|
109
|
-
r="20"
|
|
110
|
-
fill="none"
|
|
111
|
-
stroke="#000"
|
|
112
|
-
stroke-width="2"
|
|
113
|
-
stroke-miterlimit="10"
|
|
114
|
-
/>
|
|
115
|
-
</svg>
|
|
116
|
-
</span>
|
|
117
|
-
</button>
|
|
118
|
-
</div>`}};Pt.styles=[O`
|
|
119
|
-
:host {
|
|
120
|
-
--voca-rem-multiplier: 0.625;
|
|
121
|
-
--trigger-label-bg: #f5e0ff;
|
|
122
|
-
--trigger-label-text-color: rgba(0, 0, 0, 0.8);
|
|
123
|
-
display: block;
|
|
124
|
-
box-sizing: border-box;
|
|
125
|
-
font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
:focus {
|
|
129
|
-
outline-color: var(--focus-color);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.trigger-container {
|
|
133
|
-
display: flex;
|
|
134
|
-
align-items: center;
|
|
135
|
-
gap: 1rem;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.trigger-container.hidden {
|
|
139
|
-
display: none;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.trigger {
|
|
143
|
-
transform: scale(0);
|
|
144
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
|
145
|
-
z-index: 5;
|
|
146
|
-
display: flex;
|
|
147
|
-
align-items: center;
|
|
148
|
-
justify-content: center;
|
|
149
|
-
border: none;
|
|
150
|
-
line-height: 55px;
|
|
151
|
-
height: 55px;
|
|
152
|
-
width: 55px;
|
|
153
|
-
border-radius: 55px;
|
|
154
|
-
cursor: pointer;
|
|
155
|
-
background-color: var(
|
|
156
|
-
--interactive-primary-background,
|
|
157
|
-
var(--primary-background)
|
|
158
|
-
);
|
|
159
|
-
font-family: Lato;
|
|
160
|
-
text-decoration: none;
|
|
161
|
-
border: 3px dashed transparent;
|
|
162
|
-
box-sizing: border-box;
|
|
163
|
-
transition: transform 200ms ease-out;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.trigger:active {
|
|
167
|
-
transform: scale(0.8) !important;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.trigger:hover:not(:active) {
|
|
171
|
-
transform: scale(1.1) !important;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.trigger.rendered {
|
|
175
|
-
transform: scale(1);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.trigger.active .trigger-icon {
|
|
179
|
-
opacity: 0;
|
|
180
|
-
transform: rotate(-180deg) scale(0);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.trigger.active .trigger-close {
|
|
184
|
-
opacity: 1;
|
|
185
|
-
transform: rotate(0deg) scale(1);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.trigger-icon {
|
|
189
|
-
display: inline-block;
|
|
190
|
-
line-height: inherit;
|
|
191
|
-
text-align: center;
|
|
192
|
-
opacity: 1;
|
|
193
|
-
transform: rotate(0deg) scale(1);
|
|
194
|
-
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
195
|
-
color: var(
|
|
196
|
-
--interactive-text-on-primary-background,
|
|
197
|
-
var(--text-on-primary-background)
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.trigger-close {
|
|
202
|
-
opacity: 0;
|
|
203
|
-
transition: transform 200ms ease-out;
|
|
204
|
-
transform: rotate(180deg) scale(0);
|
|
205
|
-
position: absolute;
|
|
206
|
-
top: 0;
|
|
207
|
-
bottom: 0;
|
|
208
|
-
left: 0;
|
|
209
|
-
right: 0;
|
|
210
|
-
display: flex;
|
|
211
|
-
justify-content: center;
|
|
212
|
-
align-items: center;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.trigger-close svg path {
|
|
216
|
-
fill: var(
|
|
217
|
-
--interactive-text-on-primary-background,
|
|
218
|
-
var(--text-on-primary-background)
|
|
219
|
-
);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
img {
|
|
223
|
-
max-width: 100%;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.trigger-label {
|
|
227
|
-
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
|
|
228
|
-
background-color: var(--secondary-background);
|
|
229
|
-
color: var(--text-on-secondary-background);
|
|
230
|
-
white-space: nowrap;
|
|
231
|
-
padding: 0.7rem 1rem;
|
|
232
|
-
border-radius: 0.3rem;
|
|
233
|
-
font-weight: 500;
|
|
234
|
-
display: flex;
|
|
235
|
-
justify-content: center;
|
|
236
|
-
align-items: center;
|
|
237
|
-
cursor: pointer;
|
|
238
|
-
border: none;
|
|
239
|
-
font-size: 1rem;
|
|
240
|
-
font-family: inherit;
|
|
241
|
-
transition: all 300ms ease-in-out;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.trigger-label:hover {
|
|
245
|
-
opacity: 0.8;
|
|
246
|
-
}
|
|
247
|
-
`];let $=Pt;Y([g({attribute:!1})],$.prototype,"application");Y([L()],$.prototype,"active");Y([L()],$.prototype,"triggerVisible");Y([L()],$.prototype,"loaded");Y([L()],$.prototype,"icon");var vi=Object.defineProperty,x=(n,t,e,i)=>{for(var s=void 0,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=o(t,e,s)||s);return s&&vi(t,e,s),s};const we=n=>{const e=class e extends n{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(s){this.properties=s}writeLayout(s){this.layout=s}writeContext(s){this.context=s}addChild(s){s.parent=this,this.nodes.push(s)}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)}};e.styles=[O`
|
|
248
|
-
:host {
|
|
249
|
-
font-family: var(--font-family);
|
|
250
|
-
grid-column: span var(--width);
|
|
251
|
-
max-width: 100%;
|
|
252
|
-
overflow: hidden;
|
|
253
|
-
box-sizing: border-box;
|
|
254
|
-
display: block;
|
|
255
|
-
}
|
|
256
|
-
* {
|
|
257
|
-
box-sizing: border-box;
|
|
258
|
-
}
|
|
259
|
-
`];let t=e;return x([g()],t.prototype,"properties"),x([g()],t.prototype,"context"),x([g()],t.prototype,"layout"),x([g()],t.prototype,"name"),x([g()],t.prototype,"type"),x([g({attribute:!1})],t.prototype,"application"),x([g({attribute:!1})],t.prototype,"parent"),t},Ot=class Ot extends we(y){render(){return C`Non resolved component`}};Ot.styles=[O`
|
|
260
|
-
:host {
|
|
261
|
-
display: block;
|
|
262
|
-
}
|
|
263
|
-
`];let bt=Ot;/**
|
|
264
|
-
* @license
|
|
265
|
-
* Copyright 2021 Google LLC
|
|
266
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
267
|
-
*/function*$i(n,t){if(n!==void 0){let e=0;for(const i of n)yield t(i,e++)}}var V=(n=>(n.Inline="inline",n.Trigger="trigger",n))(V||{});/**
|
|
268
|
-
* @license
|
|
269
|
-
* Copyright 2021 Google LLC
|
|
270
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
|
-
*/let _i=class extends Event{constructor(t,e,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=i??!1}};/**
|
|
272
|
-
* @license
|
|
273
|
-
* Copyright 2021 Google LLC
|
|
274
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
275
|
-
*//**
|
|
276
|
-
* @license
|
|
277
|
-
* Copyright 2021 Google LLC
|
|
278
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
279
|
-
*/class wi{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()}}/**
|
|
280
|
-
* @license
|
|
281
|
-
* Copyright 2021 Google LLC
|
|
282
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
283
|
-
*/let Ai=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class ee extends wi{constructor(t,e,i){var s,r;super(e.context!==void 0?e.initialValue:i),this.onContextRequest=o=>{const a=o.composedPath()[0];o.context===this.context&&a!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,a,o.subscribe))},this.onProviderRequest=o=>{const a=o.composedPath()[0];if(o.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 _i(this.context,l,!0)));o.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(r=(s=this.host).addController)==null||r.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ai(this.context))}}/**
|
|
284
|
-
* @license
|
|
285
|
-
* Copyright 2017 Google LLC
|
|
286
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
|
-
*/function xi({context:n}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new ee(this,{context:n}))}),{get(){return t.get.call(this)},set(s){var r;return(r=i.get(this))==null||r.setValue(s),t.set.call(this,s)},init(s){var r;return(r=i.get(this))==null||r.setValue(s),s}};{t.constructor.addInitializer(o=>{i.set(o,new ee(o,{context:n}))});const s=Object.getOwnPropertyDescriptor(t,e);let r;if(s===void 0){const o=new WeakMap;r={get(){return o.get(this)},set(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=s.set;r={...s,set(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var Ci=Object.defineProperty,Ae=(n,t,e,i)=>{for(var s=void 0,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=o(t,e,s)||s);return s&&Ci(t,e,s),s};const Ei="application",kt=class kt extends y{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=$e(),this.fullscreen=!1}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&ve(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===V.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")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),C`<div class="widget-container" ${_e(this.wrapperRef)}>
|
|
288
|
-
${$i(this.nodes,r=>r)}
|
|
289
|
-
</div>`}};kt.styles=O`
|
|
290
|
-
:host {
|
|
291
|
-
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
292
|
-
--spacing-xs: 0.2rem;
|
|
293
|
-
--spacing-sm: 0.5rem;
|
|
294
|
-
--spacing-md: 1rem;
|
|
295
|
-
--spacing-lg: 1.2rem;
|
|
296
|
-
--spacing-xl: 1.8rem;
|
|
297
|
-
|
|
298
|
-
--inverted-spacing-lg: -1.2rem;
|
|
299
|
-
|
|
300
|
-
--text-color: #222222;
|
|
301
|
-
--link-color: #990ae3;
|
|
302
|
-
--gray-color: #f3f3f8;
|
|
303
|
-
--white-color: #fff;
|
|
304
|
-
--gray-dark-color: #a6a6a6;
|
|
305
|
-
--black-border-color: #00000054;
|
|
306
|
-
|
|
307
|
-
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
|
308
|
-
--border-radius: var(--spacing-sm);
|
|
309
|
-
--border-radius-sm: var(--spacing-sm);
|
|
310
|
-
--border-radius-lg: var(--spacing-lg);
|
|
311
|
-
--border-radius-xl: var(--spacing-xl);
|
|
312
|
-
--gap: var(--spacing-sm);
|
|
313
|
-
|
|
314
|
-
--header-height: 69px;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
:host {
|
|
318
|
-
--voca-rem-multiplier: 0.625;
|
|
319
|
-
box-sizing: border-box;
|
|
320
|
-
display: block;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
:host(.inline) {
|
|
324
|
-
height: 100%;
|
|
325
|
-
position: fixed;
|
|
326
|
-
inset: 0 0 0 0;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
:host(.floating) {
|
|
330
|
-
z-index: 6;
|
|
331
|
-
position: fixed;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
:host(.fullscreen.floating) {
|
|
335
|
-
inset: 0 !important;
|
|
336
|
-
height: 100% !important;
|
|
337
|
-
width: auto !important;
|
|
338
|
-
max-height: none !important;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
:host(.fullscreen.floating) .widget-container {
|
|
342
|
-
box-shadow: none !important;
|
|
343
|
-
border-radius: 0 !important;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
@media screen and (max-width: 800px) {
|
|
347
|
-
:host(.floating) {
|
|
348
|
-
inset: 0;
|
|
349
|
-
height: 100%;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
:host(.third-party) {
|
|
353
|
-
inset: 0;
|
|
354
|
-
height: 100vh;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
@media screen and (min-width: 801px) {
|
|
359
|
-
:host(.floating) {
|
|
360
|
-
inset: auto 20px 20px auto;
|
|
361
|
-
max-height: calc(100vh - 120px);
|
|
362
|
-
width: 400px;
|
|
363
|
-
height: 775px;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
:host(.third-party) {
|
|
367
|
-
max-width: 1000px;
|
|
368
|
-
height: 100vh;
|
|
369
|
-
position: relative;
|
|
370
|
-
left: 50%;
|
|
371
|
-
transform: translateX(-50%);
|
|
372
|
-
margin: -10px 0;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
:host(.floating.bottom-right) {
|
|
376
|
-
inset: auto 20px 20px auto;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
:host(.floating.bottom-left) {
|
|
380
|
-
inset: auto auto 20px 20px;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
:host(.floating) .widget-container {
|
|
385
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
|
386
|
-
border-radius: 0.7rem;
|
|
387
|
-
|
|
388
|
-
@media screen and (max-width: 800px) {
|
|
389
|
-
border-radius: 0;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
* {
|
|
394
|
-
box-sizing: border-box;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.widget-container {
|
|
398
|
-
height: 100%;
|
|
399
|
-
background-color: var(--primary-background);
|
|
400
|
-
padding: var(--spacing-sm);
|
|
401
|
-
border: var(--widget-border, none);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
@keyframes slideDown {
|
|
405
|
-
from {
|
|
406
|
-
transform: translateY(0);
|
|
407
|
-
opacity: 1;
|
|
408
|
-
}
|
|
409
|
-
to {
|
|
410
|
-
transform: translateY(100%);
|
|
411
|
-
opacity: 0;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
@keyframes slideUp {
|
|
416
|
-
from {
|
|
417
|
-
transform: translateY(100%);
|
|
418
|
-
opacity: 0;
|
|
419
|
-
}
|
|
420
|
-
to {
|
|
421
|
-
transform: translateY(0);
|
|
422
|
-
opacity: 1;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
:host(.expanded) {
|
|
427
|
-
opacity: 1;
|
|
428
|
-
animation: slideUp 0.3s linear;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
:host(.hidden) {
|
|
432
|
-
opacity: 0;
|
|
433
|
-
animation: slideDown 0.3s linear;
|
|
434
|
-
pointer-events: none;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
:host(.hidden.embedded),
|
|
438
|
-
:host(.expanded.embedded) {
|
|
439
|
-
animation: none;
|
|
440
|
-
}
|
|
441
|
-
`;let z=kt;Ae([g({attribute:!0})],z.prototype,"fullscreen");Ae([g({attribute:!1}),xi({context:Ei})],z.prototype,"application");const tt=class tt{constructor(t=tt.endpoint){this._endpoint=t}async getSite(t){const i=await(await fetch(t)).json();return i?{id:i.id,triggers:i.triggers||[],apps:(i.widgets||[]).map(s=>{let r=V.Trigger;s.renderStrategy.toLowerCase()==="inline"&&(r=V.Inline);const o=s.widgetId?s.widgetId:s.id,a=typeof s.autoActivate=="boolean"?s.autoActivate:!1,c=typeof s.anchor=="string"?s.anchor:"BottomRight",l=typeof s.triggerIcon=="string"?s.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:r,autoActivate:a,anchor:c,triggerIcon:{type:"Telia",content:l}}})}:null}async getWidget(t){const i=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return i?{name:i.name,config:JSON.parse(i.configuration)}:null}};tt.endpoint="https://widgets.ace.teliacompany.net/api";let ie=tt;var Si=Object.defineProperty,Et=(n,t,e,i)=>{for(var s=void 0,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=o(t,e,s)||s);return s&&Si(t,e,s),s};const Tt=class Tt extends y{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(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 u;if(this.widget.renderStrategy===V.Trigger){const t=new $;return t.application=this.widget,t}return this.widget.render()}};Tt.styles=[O`
|
|
442
|
-
:host {
|
|
443
|
-
display: block;
|
|
444
|
-
}
|
|
445
|
-
`];let H=Tt;Et([g({attribute:!0})],H.prototype,"name");Et([L()],H.prototype,"widget");Et([L()],H.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",X);customElements.get("ace-trigger")||customElements.define("ace-trigger",$);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",bt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",z);customElements.get("ace-widget")||customElements.define("ace-widget",H);const Pi=qe`
|
|
446
|
-
<g clip-path="url(#clip0_119_1665)">
|
|
447
|
-
<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"/>
|
|
448
|
-
<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"/>
|
|
449
|
-
<path d="M17.5721 15.8923C25.1562 12.24 30.4387 7.04427 29.5177 3.6C28.0058 0.993067 24.9457 0 21.6644 0C11.9381 0 0 6.4 0 14.5653C0 15.6149 0.231859 16.7883 0.647496 18.0181C2.86565 20.9568 9.64833 19.7077 17.5721 15.8923Z" fill="#990AE3"/>
|
|
450
|
-
</g>
|
|
451
|
-
<path d="M84.228 15.9056V24.3077H81.4938V22.9307C80.5664 24.1413 79.0919 24.5925 77.8557 24.5925C75.2881 24.5925 73.7666 22.9787 73.7666 20.9605C73.7666 18.6587 76.3587 16.7835 79.5203 16.7835C80.139 16.7835 80.8046 16.8315 81.3987 17.0213V16.2384C81.3987 15.0512 80.7096 14.4347 79.3066 14.4347C78.0469 14.4347 76.9293 15.0757 76.2401 15.9067L74.1716 14.3877C75.3362 13.0352 77.3342 12.0859 79.3547 12.0859C82.5163 12.0837 84.228 13.4608 84.228 15.9056ZM81.3987 19.7264V19.2037C80.9232 19.0373 80.4243 18.9904 79.8056 18.9904C77.6655 18.9904 76.5724 19.8448 76.5724 20.8891C76.5724 21.7435 77.3097 22.2896 78.4273 22.2896C79.9007 22.2896 81.3987 21.4117 81.3987 19.7264Z" fill="#990AE3"/>
|
|
452
|
-
<path d="M68.75 9.06934C68.75 8.14347 69.5588 7.384 70.4852 7.384C71.3891 7.384 72.1969 8.14347 72.1969 9.06934C72.1969 9.9952 71.3881 10.7547 70.4852 10.7547C69.5588 10.7547 68.75 9.9952 68.75 9.06934ZM69.0118 24.3077V12.44H71.9362V24.3077H69.0118Z" fill="#990AE3"/>
|
|
453
|
-
<path d="M67.2286 24.3547C66.7766 24.4496 66.3012 24.4731 65.8738 24.4731C63.7817 24.4731 62.8542 23.4757 62.8542 21.4587V7.69226H65.7787V21.0555C65.7787 22.0763 66.3973 22.2181 67.2286 22.1232V24.3547Z" fill="#990AE3"/>
|
|
454
|
-
<path d="M60.9994 19.2048H52.2262C52.535 20.9616 53.7958 22.1243 55.4124 22.1243C56.6251 22.1243 57.5995 21.5781 58.1947 20.6768L60.525 22.0773C59.3358 23.6677 57.3869 24.6171 55.4134 24.6171C52.1567 24.6171 49.3274 22.0304 49.3274 18.3269C49.3274 14.6235 52.1332 12.0613 55.2713 12.0613C59.3828 12.0603 61.4033 15.336 60.9994 19.2048ZM52.3213 16.9968H58.1701C57.8132 15.4544 56.8153 14.4805 55.2692 14.4805C53.8193 14.4816 52.7251 15.4779 52.3213 16.9968Z" fill="#990AE3"/>
|
|
455
|
-
<path d="M51.5839 10.3984H46.6379V24.3077H43.4998V10.3984H38.5068V7.69226H51.5839V10.3984Z" fill="#990AE3"/>
|
|
456
|
-
<path d="M126.394 7.98875H138.935V10.7756H129.668V14.2592H137.889V17.0461H129.668V21.4587H139.167V24.2456H126.394V7.98875Z" fill="#990AE3"/>
|
|
457
|
-
<path d="M117.4 24.6171C115.682 24.6171 114.126 24.261 112.732 23.5488C111.339 22.8366 110.24 21.8379 109.434 20.5529C108.645 19.2523 108.25 17.7737 108.25 16.1171C108.25 14.4604 108.645 12.9896 109.434 11.7045C110.24 10.404 111.339 9.39758 112.732 8.68537C114.126 7.97317 115.682 7.61707 117.4 7.61707C118.84 7.61707 120.148 7.84156 121.325 8.29056C122.502 8.72408 123.477 9.32016 124.251 10.0788L121.999 12.2154C120.868 11.0078 119.359 10.404 117.47 10.404C116.34 10.404 115.326 10.6517 114.428 11.1471C113.53 11.6271 112.825 12.3006 112.314 13.1676C111.819 14.0346 111.571 15.0178 111.571 16.1171C111.571 17.2163 111.819 18.1995 112.314 19.0665C112.825 19.9336 113.53 20.6148 114.428 21.1102C115.326 21.5902 116.34 21.8302 117.47 21.8302C118.523 21.8302 119.429 21.6521 120.187 21.296C120.961 20.9399 121.627 20.4367 122.184 19.7865L124.414 21.8302C123.609 22.7127 122.61 23.4017 121.418 23.8971C120.241 24.3771 118.902 24.6171 117.4 24.6171Z" fill="#990AE3"/>
|
|
458
|
-
<path d="M97.1488 7.98875H100.656L107.46 24.2456H103.977L102.514 20.6226H95.0122L93.5026 24.2456H90.228L97.1488 7.98875ZM101.445 17.9751L98.8209 11.5188L96.1269 17.9751H101.445Z" fill="#990AE3"/>
|
|
459
|
-
<defs>
|
|
460
|
-
<clipPath id="clip0_119_1665">
|
|
461
|
-
<rect width="30.5068" height="32.0011" fill="white"/>
|
|
462
|
-
</clipPath>
|
|
463
|
-
</defs>`,ne=we(y),Mt=class Mt extends ne{render(){var e;return(e=this.application.branding().other)!=null&&e.whiteLabel?u:C` <div class="copyright">
|
|
464
|
-
<a
|
|
465
|
-
aria-label="Powered by Telia ACE"
|
|
466
|
-
href="https://ace-showcase.com"
|
|
467
|
-
target="_blank"
|
|
468
|
-
rel="noopener noreferrer"
|
|
469
|
-
>
|
|
470
|
-
<span>Powered by</span>
|
|
471
|
-
<svg
|
|
472
|
-
width="142"
|
|
473
|
-
height="32"
|
|
474
|
-
viewBox="0 0 142 32"
|
|
475
|
-
fill="none"
|
|
476
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
477
|
-
>
|
|
478
|
-
${Pi}
|
|
479
|
-
</svg>
|
|
480
|
-
</a>
|
|
481
|
-
</div>`}};Mt.styles=[ne.styles||[],O`
|
|
482
|
-
:host {
|
|
483
|
-
--copyright-text-color: var(--text-on-primary-background);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
:focus {
|
|
487
|
-
outline-color: var(--focus-color);
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
.copyright {
|
|
491
|
-
padding: var(--spacing-sx);
|
|
492
|
-
box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.1);
|
|
493
|
-
z-index: 6;
|
|
494
|
-
background-color: transparent;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
a {
|
|
498
|
-
display: flex;
|
|
499
|
-
justify-content: center;
|
|
500
|
-
align-items: center;
|
|
501
|
-
color: var(--copyright-text-color);
|
|
502
|
-
text-decoration: none;
|
|
503
|
-
font-size: 0.8rem;
|
|
504
|
-
gap: var(--spacing-sm);
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
span {
|
|
508
|
-
opacity: 0.55;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
svg {
|
|
512
|
-
width: 88px;
|
|
513
|
-
}
|
|
514
|
-
`];let Q=Mt;exports.Copyright=Q;exports.default=Q;
|