@telia-ace/widget-components-widget-header-flamingo 1.1.15 → 1.1.17-rc.0
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/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-
|
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-39365179.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-widget-header-flamingo",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17-rc.0",
|
|
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.17-rc.0"
|
|
7
7
|
},
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"module": "./index.mjs",
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const j=globalThis,
|
|
5
|
+
*/const j=globalThis,F=j.ShadowRoot&&(j.ShadyCSS===void 0||j.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),nt=new WeakMap;let $t=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==X)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(F&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=nt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&nt.set(e,t))}return t}toString(){return this.cssText}};const Ot=r=>new $t(typeof r=="string"?r:r+"",void 0,X),P=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,n)=>s+(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.")})(i)+r[n+1],r[0]);return new $t(e,r,X)},Ut=(r,t)=>{if(F)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=j.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},ot=F?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Ot(e)})(r):r;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:kt,defineProperty:
|
|
9
|
+
*/const{is:kt,defineProperty:Nt,getOwnPropertyDescriptor:Mt,getOwnPropertyNames:Ht,getOwnPropertySymbols:Rt,getPrototypeOf:Lt}=Object,_=globalThis,at=_.trustedTypes,zt=at?at.emptyScript:"",Y=_.reactiveElementPolyfillSupport,O=(r,t)=>r,I={toAttribute(r,t){switch(t){case Boolean:r=r?zt: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}},tt=(r,t)=>!kt(r,t),ht={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:tt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);class E 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 s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Nt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=Mt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return i==null?void 0:i.call(this)},set(o){const h=i==null?void 0:i.call(this);n.call(this,o),this.requestUpdate(t,h,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ht}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=Lt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const e=this.properties,s=[...Ht(e),...Rt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(ot(i))}else t!==void 0&&e.push(ot(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(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._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ut(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:I).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=s.getPropertyOptions(i),h=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:I;this._$Em=i,this[i]=h.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s,i=!1,n){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??tt)(i?n:this[t],e))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$ES)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[O("elementProperties")]=new Map,E[O("finalized")]=new Map,Y==null||Y({ReactiveElement:E}),(_.reactiveElementVersions??(_.reactiveElementVersions=[])).push("2.0.1");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const U=globalThis,W=U.trustedTypes,
|
|
13
|
+
*/const U=globalThis,W=U.trustedTypes,ct=W?W.createPolicy("lit-html",{createHTML:r=>r}):void 0,mt="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,_t="?"+m,Dt=`<${_t}>`,b=document,N=()=>b.createComment(""),M=r=>r===null||typeof r!="object"&&typeof r!="function",vt=Array.isArray,Bt=r=>vt(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",J=`[
|
|
14
14
|
\f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,dt=/>/g,v=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,yt=/^(?:script|style|textarea|title)$/i,jt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),C=jt(1),w=Symbol.for("lit-noChange"),
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,yt=/^(?:script|style|textarea|title)$/i,jt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),C=jt(1),w=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),gt=new WeakMap,A=b.createTreeWalker(b,129);function At(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ct!==void 0?ct.createHTML(t):t}const It=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":"",o=T;for(let h=0;h<e;h++){const a=r[h];let d,p,l=-1,g=0;for(;g<a.length&&(o.lastIndex=g,p=o.exec(a),p!==null);)g=o.lastIndex,o===T?p[1]==="!--"?o=lt:p[1]!==void 0?o=dt:p[2]!==void 0?(yt.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=v):p[3]!==void 0&&(o=v):o===v?p[0]===">"?(o=i??T,l=-1):p[1]===void 0?l=-2:(l=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?v:p[3]==='"'?ut:pt):o===ut||o===pt?o=v:o===lt||o===dt?o=T:(o=v,i=void 0);const $=o===v&&r[h+1].startsWith("/>")?" ":"";n+=o===T?a+Dt:l>=0?(s.push(d),a.slice(0,l)+mt+a.slice(l)+m+$):a+m+(l===-2?h:$)}return[At(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),s]};class H{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const h=t.length-1,a=this.parts,[d,p]=It(t,e);if(this.el=H.createElement(d,s),A.currentNode=this.el.content,e===2){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=A.nextNode())!==null&&a.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(mt)){const g=p[o++],$=i.getAttribute(l).split(m),D=/([.?@])?(.*)/.exec(g);a.push({type:1,index:n,name:D[2],strings:$,ctor:D[1]==="."?Gt:D[1]==="?"?Vt:D[1]==="@"?qt:V}),i.removeAttribute(l)}else l.startsWith(m)&&(a.push({type:6,index:n}),i.removeAttribute(l));if(yt.test(i.tagName)){const l=i.textContent.split(m),g=l.length-1;if(g>0){i.textContent=W?W.emptyScript:"";for(let $=0;$<g;$++)i.append(l[$],N()),A.nextNode(),a.push({type:2,index:++n});i.append(l[g],N())}}}else if(i.nodeType===8)if(i.data===_t)a.push({type:2,index:n});else{let l=-1;for(;(l=i.data.indexOf(m,l+1))!==-1;)a.push({type:7,index:n}),l+=m.length-1}n++}}static createElement(t,e){const s=b.createElement("template");return s.innerHTML=t,s}}function S(r,t,e=r,s){var o,h;if(t===w)return t;let i=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=M(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=S(r,i._$AS(r,t.values),i,s)),t}class Wt{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:s}=this._$AD,i=((t==null?void 0:t.creationScope)??b).importNode(e,!0);A.currentNode=i;let n=A.nextNode(),o=0,h=0,a=s[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new R(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new Yt(n,this,t)),this._$AV.push(d),a=s[++h]}o!==(a==null?void 0:a.index)&&(n=A.nextNode(),o++)}return A.currentNode=b,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class R{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.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=S(this,t,e),M(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Bt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==c&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(b.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(At(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const o=new Wt(i,this),h=o.u(this.options);o.p(e),this.$(h),this._$AH=o}}_$AC(t){let e=gt.get(t.strings);return e===void 0&>.set(t.strings,e=new H(t)),e}T(t){vt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new R(this.k(N()),this.k(N()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class V{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(n===void 0)t=S(this,t,e,0),o=!M(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const h=t;let a,d;for(t=n[0],a=0;a<n.length-1;a++)d=S(this,h[s+a],e,a),d===w&&(d=this._$AH[a]),o||(o=!M(d)||d!==this._$AH[a]),d===c?t=c:t!==c&&(t+=(d??"")+n[a+1]),this._$AH[a]=d}o&&!i&&this.O(t)}O(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Gt extends V{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===c?void 0:t}}class Vt extends V{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class qt extends V{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??c)===w)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Yt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const K=U.litHtmlPolyfillSupport;K==null||K(H,R),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.0.2");const Jt=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new R(t.insertBefore(N(),n),n,void 0,e??{})}return i._$AI(r),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/const Kt={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:tt},Zt=(r=Kt,t,e)=>{const{kind:s,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,r),s==="accessor"){const{name:o}=e;return{set(
|
|
23
|
+
*/const Kt={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:tt},Zt=(r=Kt,t,e)=>{const{kind:s,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,r),s==="accessor"){const{name:o}=e;return{set(h){const a=t.get.call(this);t.set.call(this,h),this.requestUpdate(o,a,r)},init(h){return h!==void 0&&this.C(o,void 0,r),h}}}if(s==="setter"){const{name:o}=e;return function(h){const a=this[o];t.call(this,h),this.requestUpdate(o,a,r)}}throw Error("Unsupported decorator location: "+s)};function u(r){return(t,e)=>typeof e=="object"?Zt(r,t,e):((s,i,n)=>{const o=i.hasOwnProperty(n);return i.constructor.createProperty(n,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(i,n):void 0})(r,t,e)}/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2018 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/const
|
|
35
|
+
*/const Qt=wt(class extends xt{constructor(r){var t;if(super(r),r.type!==bt.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 s,i;if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((s=this.st)!=null&&s.has(n))&&this.it.add(n);return this.render(t)}const e=r.element.classList;for(const n of this.it)n in t||(e.remove(n),this.it.delete(n));for(const n in t){const o=!!t[n];o===this.it.has(n)||(i=this.st)!=null&&i.has(n)||(o?(e.add(n),this.it.add(n)):(e.remove(n),this.it.delete(n)))}return w}}),B=(r,t,e)=>{r&&e.style.setProperty(t,r)},Et=(r,t)=>{var e,s,i,n;B((e=r.colors)==null?void 0:e.primaryBackground,"--primary-background",t),B((s=r.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),B((i=r.colors)==null?void 0:i.secondaryBackground,"--secondary-background",t),B((n=r.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};var Ft=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,q=(r,t,e,s)=>{for(var i=s>1?void 0:s?Xt(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&Ft(t,e,i),i};class x extends f{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}_toggleActive(){var 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.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Et(this.application.settings.branding,this)}async _renderSymbol(){var n;const t=(n=this.application)==null?void 0:n.triggerIcon;if(!t)return c;const e=async o=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(a=>a[o]),{type:s,content:i}=t;switch(s){case"Telia":{const o=await e(i);return o?C`<telia-icon
|
|
36
36
|
class="trigger-icon"
|
|
37
37
|
svg=${o.svg}
|
|
38
38
|
size="lg"
|
|
39
|
-
></telia-icon>`:
|
|
40
|
-
class=${
|
|
39
|
+
></telia-icon>`:c}default:return c}}render(){return C`<button
|
|
40
|
+
class=${Qt({trigger:!0,active:this.active,rendered:this.loaded})}
|
|
41
41
|
@click=${this._toggleActive}
|
|
42
42
|
>
|
|
43
43
|
${this.icon}
|
|
@@ -164,11 +164,11 @@
|
|
|
164
164
|
* @license
|
|
165
165
|
* Copyright 2020 Google LLC
|
|
166
166
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
167
|
-
*/const ae=()=>new
|
|
167
|
+
*/const ae=()=>new he;class he{}const Q=new WeakMap,ce=wt(class extends oe{render(r){return c}update(r,[t]){var s;const e=t!==this.G;return e&&this.G!==void 0&&this.ot(void 0),(e||this.rt!==this.lt)&&(this.G=t,this.ct=(s=r.options)==null?void 0:s.host,this.ot(this.lt=r.element)),c}ot(r){if(typeof this.G=="function"){const t=this.ct??globalThis;let e=Q.get(t);e===void 0&&(e=new WeakMap,Q.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ct,void 0),e.set(this.G,r),r!==void 0&&this.G.call(this.ct,r)}else this.G.value=r}get rt(){var r,t;return typeof this.G=="function"?(r=Q.get(this.ct??globalThis))==null?void 0:r.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});/**
|
|
168
168
|
* @license
|
|
169
169
|
* Copyright 2021 Google LLC
|
|
170
170
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
171
|
-
*/function*le(r,t){if(r!==void 0){let e=0;for(const s of r)yield t(s,e++)}}var et=(r=>(r.Inline="inline",r.Trigger="trigger",r))(et||{}),de=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,ue=(r,t,e,s)=>{for(var i=s>1?void 0:s?pe(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&de(t,e,i),i};class st extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=ae()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(this.wrapperRef.value){const t=this.application.settings;t!=null&&t.branding&&Et(t.branding,this.wrapperRef.value)}}firstUpdated(t){this.applyBranding()}render(){return this.application.renderStrategy===et.Trigger&&this.renderRoot.host.classList.add("floating"),C`<div class="widget-container" ${
|
|
171
|
+
*/function*le(r,t){if(r!==void 0){let e=0;for(const s of r)yield t(s,e++)}}var et=(r=>(r.Inline="inline",r.Trigger="trigger",r))(et||{}),de=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,ue=(r,t,e,s)=>{for(var i=s>1?void 0:s?pe(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&de(t,e,i),i};class st extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=ae()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(this.wrapperRef.value){const t=this.application.settings;t!=null&&t.branding&&Et(t.branding,this.wrapperRef.value)}}firstUpdated(t){this.applyBranding()}render(){return this.application.renderStrategy===et.Trigger&&this.renderRoot.host.classList.add("floating"),C`<div class="widget-container" ${ce(this.wrapperRef)}>
|
|
172
172
|
${le(this.nodes,t=>t)}
|
|
173
173
|
</div>`}}st.styles=P`
|
|
174
174
|
:host {
|
|
@@ -220,14 +220,6 @@
|
|
|
220
220
|
background-color: var(--primary-background);
|
|
221
221
|
padding: 0 var(--spacing-sm);
|
|
222
222
|
}
|
|
223
|
-
.widget-container.expanded {
|
|
224
|
-
opacity: 1;
|
|
225
|
-
animation: slideUp 0.5s;
|
|
226
|
-
}
|
|
227
|
-
.widget-container.hidden {
|
|
228
|
-
opacity: 0;
|
|
229
|
-
animation: slideDown 0.5s;
|
|
230
|
-
}
|
|
231
223
|
@keyframes slideDown {
|
|
232
224
|
from {
|
|
233
225
|
transform: translateY(0);
|
|
@@ -248,7 +240,15 @@
|
|
|
248
240
|
opacity: 1;
|
|
249
241
|
}
|
|
250
242
|
}
|
|
251
|
-
|
|
243
|
+
:host(.expanded) {
|
|
244
|
+
opacity: 1;
|
|
245
|
+
animation: slideUp 0.3s linear;
|
|
246
|
+
}
|
|
247
|
+
:host(.hidden) {
|
|
248
|
+
opacity: 0;
|
|
249
|
+
animation: slideDown 0.3s linear;
|
|
250
|
+
}
|
|
251
|
+
`;ue([u({attribute:!1})],st.prototype,"application",2);var ge=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,it=(r,t,e,s)=>{for(var i=s>1?void 0:s?fe(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&ge(t,e,i),i};class z extends f{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 c;if(this.widget.renderStrategy===et.Trigger){const t=new x;return t.application=this.widget,t}return this.widget.render()}}z.styles=[P`
|
|
252
252
|
:host {
|
|
253
253
|
display: block;
|
|
254
254
|
}
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
<div>
|
|
258
258
|
<h1>${this.properties.header}</h1>
|
|
259
259
|
|
|
260
|
-
${this.properties.tagline?C`<p>${this.properties.tagline}</p>`:
|
|
260
|
+
${this.properties.tagline?C`<p>${this.properties.tagline}</p>`:c}
|
|
261
261
|
</div>
|
|
262
262
|
</div>`}}rt.styles=[Tt.styles||[],P`
|
|
263
263
|
:host {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const j = globalThis,
|
|
6
|
+
const j = globalThis, F = j.ShadowRoot && (j.ShadyCSS === void 0 || j.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, X = Symbol(), rt = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let ft = class {
|
|
8
8
|
constructor(t, e, s) {
|
|
9
9
|
if (this._$cssResult$ = !0, s !== X)
|
|
@@ -13,7 +13,7 @@ let ft = class {
|
|
|
13
13
|
get styleSheet() {
|
|
14
14
|
let t = this.o;
|
|
15
15
|
const e = this.t;
|
|
16
|
-
if (
|
|
16
|
+
if (F && t === void 0) {
|
|
17
17
|
const s = e !== void 0 && e.length === 1;
|
|
18
18
|
s && (t = rt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && rt.set(e, t));
|
|
19
19
|
}
|
|
@@ -33,14 +33,14 @@ const Tt = (r) => new ft(typeof r == "string" ? r : r + "", void 0, X), P = (r,
|
|
|
33
33
|
})(i) + r[n + 1], r[0]);
|
|
34
34
|
return new ft(e, r, X);
|
|
35
35
|
}, Ot = (r, t) => {
|
|
36
|
-
if (
|
|
36
|
+
if (F)
|
|
37
37
|
r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
38
38
|
else
|
|
39
39
|
for (const e of t) {
|
|
40
40
|
const s = document.createElement("style"), i = j.litNonce;
|
|
41
41
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
42
42
|
}
|
|
43
|
-
}, nt =
|
|
43
|
+
}, nt = F ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
44
44
|
let e = "";
|
|
45
45
|
for (const s of t.cssRules)
|
|
46
46
|
e += s.cssText;
|
|
@@ -103,8 +103,8 @@ class E extends HTMLElement {
|
|
|
103
103
|
return { get() {
|
|
104
104
|
return i == null ? void 0 : i.call(this);
|
|
105
105
|
}, set(o) {
|
|
106
|
-
const
|
|
107
|
-
n.call(this, o), this.requestUpdate(t,
|
|
106
|
+
const h = i == null ? void 0 : i.call(this);
|
|
107
|
+
n.call(this, o), this.requestUpdate(t, h, s);
|
|
108
108
|
}, configurable: !0, enumerable: !0 };
|
|
109
109
|
}
|
|
110
110
|
static getPropertyOptions(t) {
|
|
@@ -208,8 +208,8 @@ class E extends HTMLElement {
|
|
|
208
208
|
var n;
|
|
209
209
|
const s = this.constructor, i = s._$Eh.get(t);
|
|
210
210
|
if (i !== void 0 && this._$Em !== i) {
|
|
211
|
-
const o = s.getPropertyOptions(i),
|
|
212
|
-
this._$Em = i, this[i] =
|
|
211
|
+
const o = s.getPropertyOptions(i), h = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : I;
|
|
212
|
+
this._$Em = i, this[i] = h.fromAttribute(e, o.type), this._$Em = null;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
requestUpdate(t, e, s, i = !1, n) {
|
|
@@ -298,24 +298,24 @@ E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[O("elementProper
|
|
|
298
298
|
* Copyright 2017 Google LLC
|
|
299
299
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
300
300
|
*/
|
|
301
|
-
const U = globalThis, W = U.trustedTypes,
|
|
302
|
-
\f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, vt = /^(?:script|style|textarea|title)$/i, Bt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), C = Bt(1), w = Symbol.for("lit-noChange"),
|
|
301
|
+
const U = globalThis, W = U.trustedTypes, ht = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, zt = `<${mt}>`, b = document, N = () => b.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", _t = Array.isArray, Dt = (r) => _t(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", J = `[
|
|
302
|
+
\f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ct = /-->/g, lt = />/g, v = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, vt = /^(?:script|style|textarea|title)$/i, Bt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), C = Bt(1), w = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), A = b.createTreeWalker(b, 129);
|
|
304
304
|
function yt(r, t) {
|
|
305
305
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
|
306
306
|
throw Error("invalid template strings array");
|
|
307
|
-
return
|
|
307
|
+
return ht !== void 0 ? ht.createHTML(t) : t;
|
|
308
308
|
}
|
|
309
309
|
const jt = (r, t) => {
|
|
310
310
|
const e = r.length - 1, s = [];
|
|
311
311
|
let i, n = t === 2 ? "<svg>" : "", o = T;
|
|
312
|
-
for (let
|
|
313
|
-
const a = r[
|
|
312
|
+
for (let h = 0; h < e; h++) {
|
|
313
|
+
const a = r[h];
|
|
314
314
|
let d, p, l = -1, g = 0;
|
|
315
315
|
for (; g < a.length && (o.lastIndex = g, p = o.exec(a), p !== null); )
|
|
316
|
-
g = o.lastIndex, o === T ? p[1] === "!--" ? o =
|
|
317
|
-
const $ = o === v && r[
|
|
318
|
-
n += o === T ? a + zt : l >= 0 ? (s.push(d), a.slice(0, l) + $t + a.slice(l) + m + $) : a + m + (l === -2 ?
|
|
316
|
+
g = o.lastIndex, o === T ? p[1] === "!--" ? o = ct : p[1] !== void 0 ? o = lt : p[2] !== void 0 ? (vt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = i ?? T, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = v : o === ct || o === lt ? o = T : (o = v, i = void 0);
|
|
317
|
+
const $ = o === v && r[h + 1].startsWith("/>") ? " " : "";
|
|
318
|
+
n += o === T ? a + zt : l >= 0 ? (s.push(d), a.slice(0, l) + $t + a.slice(l) + m + $) : a + m + (l === -2 ? h : $);
|
|
319
319
|
}
|
|
320
320
|
return [yt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
|
321
321
|
};
|
|
@@ -324,12 +324,12 @@ class H {
|
|
|
324
324
|
let i;
|
|
325
325
|
this.parts = [];
|
|
326
326
|
let n = 0, o = 0;
|
|
327
|
-
const
|
|
327
|
+
const h = t.length - 1, a = this.parts, [d, p] = jt(t, e);
|
|
328
328
|
if (this.el = H.createElement(d, s), A.currentNode = this.el.content, e === 2) {
|
|
329
329
|
const l = this.el.content.firstChild;
|
|
330
330
|
l.replaceWith(...l.childNodes);
|
|
331
331
|
}
|
|
332
|
-
for (; (i = A.nextNode()) !== null && a.length <
|
|
332
|
+
for (; (i = A.nextNode()) !== null && a.length < h; ) {
|
|
333
333
|
if (i.nodeType === 1) {
|
|
334
334
|
if (i.hasAttributes())
|
|
335
335
|
for (const l of i.getAttributeNames())
|
|
@@ -364,12 +364,12 @@ class H {
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
function S(r, t, e = r, s) {
|
|
367
|
-
var o,
|
|
367
|
+
var o, h;
|
|
368
368
|
if (t === w)
|
|
369
369
|
return t;
|
|
370
370
|
let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
371
371
|
const n = M(t) ? void 0 : t._$litDirective$;
|
|
372
|
-
return (i == null ? void 0 : i.constructor) !== n && ((
|
|
372
|
+
return (i == null ? void 0 : i.constructor) !== n && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = S(r, i._$AS(r, t.values), i, s)), t;
|
|
373
373
|
}
|
|
374
374
|
class It {
|
|
375
375
|
constructor(t, e) {
|
|
@@ -384,11 +384,11 @@ class It {
|
|
|
384
384
|
u(t) {
|
|
385
385
|
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? b).importNode(e, !0);
|
|
386
386
|
A.currentNode = i;
|
|
387
|
-
let n = A.nextNode(), o = 0,
|
|
387
|
+
let n = A.nextNode(), o = 0, h = 0, a = s[0];
|
|
388
388
|
for (; a !== void 0; ) {
|
|
389
389
|
if (o === a.index) {
|
|
390
390
|
let d;
|
|
391
|
-
a.type === 2 ? d = new R(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new qt(n, this, t)), this._$AV.push(d), a = s[++
|
|
391
|
+
a.type === 2 ? d = new R(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new qt(n, this, t)), this._$AV.push(d), a = s[++h];
|
|
392
392
|
}
|
|
393
393
|
o !== (a == null ? void 0 : a.index) && (n = A.nextNode(), o++);
|
|
394
394
|
}
|
|
@@ -406,7 +406,7 @@ class R {
|
|
|
406
406
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
407
407
|
}
|
|
408
408
|
constructor(t, e, s, i) {
|
|
409
|
-
this.type = 2, this._$AH =
|
|
409
|
+
this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
|
410
410
|
}
|
|
411
411
|
get parentNode() {
|
|
412
412
|
let t = this._$AA.parentNode;
|
|
@@ -420,7 +420,7 @@ class R {
|
|
|
420
420
|
return this._$AB;
|
|
421
421
|
}
|
|
422
422
|
_$AI(t, e = this) {
|
|
423
|
-
t = S(this, t, e), M(t) ? t ===
|
|
423
|
+
t = S(this, t, e), M(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== w && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Dt(t) ? this.T(t) : this._(t);
|
|
424
424
|
}
|
|
425
425
|
k(t) {
|
|
426
426
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -429,7 +429,7 @@ class R {
|
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
430
430
|
}
|
|
431
431
|
_(t) {
|
|
432
|
-
this._$AH !==
|
|
432
|
+
this._$AH !== c && M(this._$AH) ? this._$AA.nextSibling.data = t : this.$(b.createTextNode(t)), this._$AH = t;
|
|
433
433
|
}
|
|
434
434
|
g(t) {
|
|
435
435
|
var n;
|
|
@@ -437,8 +437,8 @@ class R {
|
|
|
437
437
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === i)
|
|
438
438
|
this._$AH.p(e);
|
|
439
439
|
else {
|
|
440
|
-
const o = new It(i, this),
|
|
441
|
-
o.p(e), this.$(
|
|
440
|
+
const o = new It(i, this), h = o.u(this.options);
|
|
441
|
+
o.p(e), this.$(h), this._$AH = o;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
_$AC(t) {
|
|
@@ -473,7 +473,7 @@ class V {
|
|
|
473
473
|
return this._$AM._$AU;
|
|
474
474
|
}
|
|
475
475
|
constructor(t, e, s, i, n) {
|
|
476
|
-
this.type = 1, this._$AH =
|
|
476
|
+
this.type = 1, this._$AH = c, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = c;
|
|
477
477
|
}
|
|
478
478
|
_$AI(t, e = this, s, i) {
|
|
479
479
|
const n = this.strings;
|
|
@@ -481,15 +481,15 @@ class V {
|
|
|
481
481
|
if (n === void 0)
|
|
482
482
|
t = S(this, t, e, 0), o = !M(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
|
|
483
483
|
else {
|
|
484
|
-
const
|
|
484
|
+
const h = t;
|
|
485
485
|
let a, d;
|
|
486
486
|
for (t = n[0], a = 0; a < n.length - 1; a++)
|
|
487
|
-
d = S(this,
|
|
487
|
+
d = S(this, h[s + a], e, a), d === w && (d = this._$AH[a]), o || (o = !M(d) || d !== this._$AH[a]), d === c ? t = c : t !== c && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
|
|
488
488
|
}
|
|
489
489
|
o && !i && this.O(t);
|
|
490
490
|
}
|
|
491
491
|
O(t) {
|
|
492
|
-
t ===
|
|
492
|
+
t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
495
|
class Wt extends V {
|
|
@@ -497,7 +497,7 @@ class Wt extends V {
|
|
|
497
497
|
super(...arguments), this.type = 3;
|
|
498
498
|
}
|
|
499
499
|
O(t) {
|
|
500
|
-
this.element[this.name] = t ===
|
|
500
|
+
this.element[this.name] = t === c ? void 0 : t;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
class Gt extends V {
|
|
@@ -505,7 +505,7 @@ class Gt extends V {
|
|
|
505
505
|
super(...arguments), this.type = 4;
|
|
506
506
|
}
|
|
507
507
|
O(t) {
|
|
508
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
508
|
+
this.element.toggleAttribute(this.name, !!t && t !== c);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
class Vt extends V {
|
|
@@ -513,9 +513,9 @@ class Vt extends V {
|
|
|
513
513
|
super(t, e, s, i, n), this.type = 5;
|
|
514
514
|
}
|
|
515
515
|
_$AI(t, e = this) {
|
|
516
|
-
if ((t = S(this, t, e, 0) ??
|
|
516
|
+
if ((t = S(this, t, e, 0) ?? c) === w)
|
|
517
517
|
return;
|
|
518
|
-
const s = this._$AH, i = t ===
|
|
518
|
+
const s = this._$AH, i = t === c && s !== c || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== c && (s === c || i);
|
|
519
519
|
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
520
520
|
}
|
|
521
521
|
handleEvent(t) {
|
|
@@ -590,18 +590,18 @@ const Jt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged:
|
|
|
590
590
|
let n = globalThis.litPropertyMetadata.get(i);
|
|
591
591
|
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), n.set(e.name, r), s === "accessor") {
|
|
592
592
|
const { name: o } = e;
|
|
593
|
-
return { set(
|
|
593
|
+
return { set(h) {
|
|
594
594
|
const a = t.get.call(this);
|
|
595
|
-
t.set.call(this,
|
|
596
|
-
}, init(
|
|
597
|
-
return
|
|
595
|
+
t.set.call(this, h), this.requestUpdate(o, a, r);
|
|
596
|
+
}, init(h) {
|
|
597
|
+
return h !== void 0 && this.C(o, void 0, r), h;
|
|
598
598
|
} };
|
|
599
599
|
}
|
|
600
600
|
if (s === "setter") {
|
|
601
601
|
const { name: o } = e;
|
|
602
|
-
return function(
|
|
602
|
+
return function(h) {
|
|
603
603
|
const a = this[o];
|
|
604
|
-
t.call(this,
|
|
604
|
+
t.call(this, h), this.requestUpdate(o, a, r);
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
607
|
throw Error("Unsupported decorator location: " + s);
|
|
@@ -691,10 +691,10 @@ const Zt = bt(class extends wt {
|
|
|
691
691
|
t
|
|
692
692
|
);
|
|
693
693
|
};
|
|
694
|
-
var
|
|
695
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
694
|
+
var Qt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, q = (r, t, e, s) => {
|
|
695
|
+
for (var i = s > 1 ? void 0 : s ? Ft(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
|
696
696
|
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
697
|
-
return s && i &&
|
|
697
|
+
return s && i && Qt(t, e, i), i;
|
|
698
698
|
};
|
|
699
699
|
class x extends f {
|
|
700
700
|
constructor() {
|
|
@@ -711,7 +711,7 @@ class x extends f {
|
|
|
711
711
|
);
|
|
712
712
|
return;
|
|
713
713
|
}
|
|
714
|
-
this.active = !this.active, this.active ? this.application.appendToDOM() : this.application.
|
|
714
|
+
this.active = !this.active, this.active ? this.application.appendToDOM() : this.application.hide();
|
|
715
715
|
}
|
|
716
716
|
_applyBranding() {
|
|
717
717
|
var t;
|
|
@@ -721,7 +721,7 @@ class x extends f {
|
|
|
721
721
|
var n;
|
|
722
722
|
const t = (n = this.application) == null ? void 0 : n.triggerIcon;
|
|
723
723
|
if (!t)
|
|
724
|
-
return
|
|
724
|
+
return c;
|
|
725
725
|
const e = async (o) => await import("./index-5087564d.mjs").then(
|
|
726
726
|
(a) => a[o]
|
|
727
727
|
), { type: s, content: i } = t;
|
|
@@ -732,10 +732,10 @@ class x extends f {
|
|
|
732
732
|
class="trigger-icon"
|
|
733
733
|
svg=${o.svg}
|
|
734
734
|
size="lg"
|
|
735
|
-
></telia-icon>` :
|
|
735
|
+
></telia-icon>` : c;
|
|
736
736
|
}
|
|
737
737
|
default:
|
|
738
|
-
return
|
|
738
|
+
return c;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
render() {
|
|
@@ -1019,26 +1019,26 @@ class ne extends wt {
|
|
|
1019
1019
|
const oe = () => new ae();
|
|
1020
1020
|
class ae {
|
|
1021
1021
|
}
|
|
1022
|
-
const
|
|
1022
|
+
const Q = /* @__PURE__ */ new WeakMap(), he = bt(class extends ne {
|
|
1023
1023
|
render(r) {
|
|
1024
|
-
return
|
|
1024
|
+
return c;
|
|
1025
1025
|
}
|
|
1026
1026
|
update(r, [t]) {
|
|
1027
1027
|
var s;
|
|
1028
1028
|
const e = t !== this.G;
|
|
1029
|
-
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = r.options) == null ? void 0 : s.host, this.ot(this.lt = r.element)),
|
|
1029
|
+
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = r.options) == null ? void 0 : s.host, this.ot(this.lt = r.element)), c;
|
|
1030
1030
|
}
|
|
1031
1031
|
ot(r) {
|
|
1032
1032
|
if (typeof this.G == "function") {
|
|
1033
1033
|
const t = this.ct ?? globalThis;
|
|
1034
|
-
let e =
|
|
1035
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
1034
|
+
let e = Q.get(t);
|
|
1035
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Q.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, r), r !== void 0 && this.G.call(this.ct, r);
|
|
1036
1036
|
} else
|
|
1037
1037
|
this.G.value = r;
|
|
1038
1038
|
}
|
|
1039
1039
|
get rt() {
|
|
1040
1040
|
var r, t;
|
|
1041
|
-
return typeof this.G == "function" ? (r =
|
|
1041
|
+
return typeof this.G == "function" ? (r = Q.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
|
1042
1042
|
}
|
|
1043
1043
|
disconnected() {
|
|
1044
1044
|
this.rt === this.lt && this.ot(void 0);
|
|
@@ -1052,7 +1052,7 @@ const F = /* @__PURE__ */ new WeakMap(), ce = bt(class extends ne {
|
|
|
1052
1052
|
* Copyright 2021 Google LLC
|
|
1053
1053
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1054
1054
|
*/
|
|
1055
|
-
function*
|
|
1055
|
+
function* ce(r, t) {
|
|
1056
1056
|
if (r !== void 0) {
|
|
1057
1057
|
let e = 0;
|
|
1058
1058
|
for (const s of r)
|
|
@@ -1081,8 +1081,8 @@ class st extends f {
|
|
|
1081
1081
|
this.applyBranding();
|
|
1082
1082
|
}
|
|
1083
1083
|
render() {
|
|
1084
|
-
return this.application.renderStrategy === et.Trigger && this.renderRoot.host.classList.add("floating"), C`<div class="widget-container" ${
|
|
1085
|
-
${
|
|
1084
|
+
return this.application.renderStrategy === et.Trigger && this.renderRoot.host.classList.add("floating"), C`<div class="widget-container" ${he(this.wrapperRef)}>
|
|
1085
|
+
${ce(this.nodes, (t) => t)}
|
|
1086
1086
|
</div>`;
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
@@ -1136,14 +1136,6 @@ st.styles = P`
|
|
|
1136
1136
|
background-color: var(--primary-background);
|
|
1137
1137
|
padding: 0 var(--spacing-sm);
|
|
1138
1138
|
}
|
|
1139
|
-
.widget-container.expanded {
|
|
1140
|
-
opacity: 1;
|
|
1141
|
-
animation: slideUp 0.5s;
|
|
1142
|
-
}
|
|
1143
|
-
.widget-container.hidden {
|
|
1144
|
-
opacity: 0;
|
|
1145
|
-
animation: slideDown 0.5s;
|
|
1146
|
-
}
|
|
1147
1139
|
@keyframes slideDown {
|
|
1148
1140
|
from {
|
|
1149
1141
|
transform: translateY(0);
|
|
@@ -1164,6 +1156,14 @@ st.styles = P`
|
|
|
1164
1156
|
opacity: 1;
|
|
1165
1157
|
}
|
|
1166
1158
|
}
|
|
1159
|
+
:host(.expanded) {
|
|
1160
|
+
opacity: 1;
|
|
1161
|
+
animation: slideUp 0.3s linear;
|
|
1162
|
+
}
|
|
1163
|
+
:host(.hidden) {
|
|
1164
|
+
opacity: 0;
|
|
1165
|
+
animation: slideDown 0.3s linear;
|
|
1166
|
+
}
|
|
1167
1167
|
`;
|
|
1168
1168
|
pe([
|
|
1169
1169
|
u({ attribute: !1 })
|
|
@@ -1197,7 +1197,7 @@ class z extends f {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
render() {
|
|
1199
1199
|
if (!this.widget || this.status !== "activated")
|
|
1200
|
-
return
|
|
1200
|
+
return c;
|
|
1201
1201
|
if (this.widget.renderStrategy === et.Trigger) {
|
|
1202
1202
|
const t = new x();
|
|
1203
1203
|
return t.application = this.widget, t;
|
|
@@ -1233,7 +1233,7 @@ class fe extends Pt {
|
|
|
1233
1233
|
<div>
|
|
1234
1234
|
<h1>${this.properties.header}</h1>
|
|
1235
1235
|
|
|
1236
|
-
${this.properties.tagline ? C`<p>${this.properties.tagline}</p>` :
|
|
1236
|
+
${this.properties.tagline ? C`<p>${this.properties.tagline}</p>` : c}
|
|
1237
1237
|
</div>
|
|
1238
1238
|
</div>`;
|
|
1239
1239
|
}
|