@telia-ace/widget-components-area-flamingo 1.1.12-rc.6 → 1.1.12-rc.8
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-529b76b7.js → area-19c28495.js} +25 -25
- package/{area-08e4846e.mjs → area-e0e878b6.mjs} +166 -175
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -2,50 +2,50 @@
|
|
2
2
|
* @license
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
-
*/const B=globalThis,
|
5
|
+
*/const B=globalThis,X=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tt=Symbol(),nt=new WeakMap;let $t=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==tt)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(X&&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 Tt=i=>new $t(typeof i=="string"?i:i+"",void 0,tt),P=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,r,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.")})(r)+i[n+1],i[0]);return new $t(e,i,tt)},Ut=(i,t)=>{if(X)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=B.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,i.appendChild(s)}},ot=X?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Tt(e)})(i):i;/**
|
6
6
|
* @license
|
7
7
|
* Copyright 2017 Google LLC
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
9
|
-
*/const{is:
|
9
|
+
*/const{is:Mt,defineProperty:Nt,getOwnPropertyDescriptor:kt,getOwnPropertyNames:Ht,getOwnPropertySymbols:Rt,getPrototypeOf:Lt}=Object,_=globalThis,at=_.trustedTypes,Dt=at?at.emptyScript:"",F=_.reactiveElementPolyfillSupport,T=(i,t)=>i,I={toAttribute(i,t){switch(t){case Boolean:i=i?Dt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},et=(i,t)=>!Mt(i,t),ct={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:et};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=ct){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&Nt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:n}=kt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const c=r==null?void 0:r.call(this);n.call(this,o),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ct}static _$Ei(){if(this.hasOwnProperty(T("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(T("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(T("properties"))){const e=this.properties,s=[...Ht(e),...Rt(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,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 r of s)e.unshift(ot(r))}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),r=this.constructor._$Eu(t,s);if(r!==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(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n;const s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=s.getPropertyOptions(r),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:I;this._$Em=r,this[r]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s,r=!1,n){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??et)(r?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 r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.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(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$ET()}catch(r){throw t=!1,this._$ET(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.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[T("elementProperties")]=new Map,E[T("finalized")]=new Map,F==null||F({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,G=U.trustedTypes,
|
14
|
-
\f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
13
|
+
*/const U=globalThis,G=U.trustedTypes,ht=G?G.createPolicy("lit-html",{createHTML:i=>i}):void 0,mt="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,_t="?"+m,jt=`<${_t}>`,b=document,N=()=>b.createComment(""),k=i=>i===null||typeof i!="object"&&typeof i!="function",yt=Array.isArray,zt=i=>yt(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",J=`[
|
14
|
+
\f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,dt=/>/g,y=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,vt=/^(?:script|style|textarea|title)$/i,Bt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),H=Bt(1),w=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),gt=new WeakMap,A=b.createTreeWalker(b,129);function At(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ht!==void 0?ht.createHTML(t):t}const It=(i,t)=>{const e=i.length-1,s=[];let r,n=t===2?"<svg>":"",o=O;for(let c=0;c<e;c++){const a=i[c];let d,p,h=-1,g=0;for(;g<a.length&&(o.lastIndex=g,p=o.exec(a),p!==null);)g=o.lastIndex,o===O?p[1]==="!--"?o=lt:p[1]!==void 0?o=dt:p[2]!==void 0?(vt.test(p[2])&&(r=RegExp("</"+p[2],"g")),o=y):p[3]!==void 0&&(o=y):o===y?p[0]===">"?(o=r??O,h=-1):p[1]===void 0?h=-2:(h=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?y:p[3]==='"'?ut:pt):o===ut||o===pt?o=y:o===lt||o===dt?o=O:(o=y,r=void 0);const $=o===y&&i[c+1].startsWith("/>")?" ":"";n+=o===O?a+jt:h>=0?(s.push(d),a.slice(0,h)+mt+a.slice(h)+m+$):a+m+(h===-2?c:$)}return[At(i,n+(i[e]||"<?>")+(t===2?"</svg>":"")),s]};class R{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let n=0,o=0;const c=t.length-1,a=this.parts,[d,p]=It(t,e);if(this.el=R.createElement(d,s),A.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=A.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(mt)){const g=p[o++],$=r.getAttribute(h).split(m),j=/([.?@])?(.*)/.exec(g);a.push({type:1,index:n,name:j[2],strings:$,ctor:j[1]==="."?Wt:j[1]==="?"?Vt:j[1]==="@"?qt:V}),r.removeAttribute(h)}else h.startsWith(m)&&(a.push({type:6,index:n}),r.removeAttribute(h));if(vt.test(r.tagName)){const h=r.textContent.split(m),g=h.length-1;if(g>0){r.textContent=G?G.emptyScript:"";for(let $=0;$<g;$++)r.append(h[$],N()),A.nextNode(),a.push({type:2,index:++n});r.append(h[g],N())}}}else if(r.nodeType===8)if(r.data===_t)a.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(m,h+1))!==-1;)a.push({type:7,index:n}),h+=m.length-1}n++}}static createElement(t,e){const s=b.createElement("template");return s.innerHTML=t,s}}function C(i,t,e=i,s){var o,c;if(t===w)return t;let r=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=k(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((c=r==null?void 0:r._$AO)==null||c.call(r,!1),n===void 0?r=void 0:(r=new n(i),r._$AT(i,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=r:e._$Cl=r),r!==void 0&&(t=C(i,r._$AS(i,t.values),r,s)),t}class Gt{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,r=((t==null?void 0:t.creationScope)??b).importNode(e,!0);A.currentNode=r;let n=A.nextNode(),o=0,c=0,a=s[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new L(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[++c]}o!==(a==null?void 0:a.index)&&(n=A.nextNode(),o++)}return A.currentNode=b,r}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 L{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),k(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):zt(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!==l&&k(this._$AH)?this._$AA.nextSibling.data=t:this.$(b.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=R.createElement(At(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Gt(r,this),c=o.u(this.options);o.p(e),this.$(c),this._$AH=o}}_$AC(t){let e=gt.get(t.strings);return e===void 0&>.set(t.strings,e=new R(t)),e}T(t){yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const n of t)r===e.length?e.push(s=new L(this.k(N()),this.k(N()),this,this.options)):s=e[r],s._$AI(n),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$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 r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class V{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,n){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=l}_$AI(t,e=this,s,r){const n=this.strings;let o=!1;if(n===void 0)t=C(this,t,e,0),o=!k(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const c=t;let a,d;for(t=n[0],a=0;a<n.length-1;a++)d=C(this,c[s+a],e,a),d===w&&(d=this._$AH[a]),o||(o=!k(d)||d!==this._$AH[a]),d===l?t=l:t!==l&&(t+=(d??"")+n[a+1]),this._$AH[a]=d}o&&!r&&this.O(t)}O(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Wt extends V{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===l?void 0:t}}class Vt extends V{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}}class qt extends V{constructor(t,e,s,r,n){super(t,e,s,r,n),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??l)===w)return;const s=this._$AH,r=t===l&&s!==l||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==l&&(s===l||r);r&&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){C(this,t)}}const K=U.litHtmlPolyfillSupport;K==null||K(R,L),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.0.2");const Ft=(i,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let r=s._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=r=new L(t.insertBefore(N(),n),n,void 0,e??{})}return r._$AI(i),r};/**
|
16
16
|
* @license
|
17
17
|
* Copyright 2017 Google LLC
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
19
|
-
*/let f=class extends E{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=
|
19
|
+
*/let f=class extends E{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=Ft(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 w}};var ft;f._$litElement$=!0,f.finalized=!0,(ft=globalThis.litElementHydrateSupport)==null||ft.call(globalThis,{LitElement:f});const Z=globalThis.litElementPolyfillSupport;Z==null||Z({LitElement:f});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
|
20
20
|
* @license
|
21
21
|
* Copyright 2021 Google LLC
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
23
|
-
*/function*
|
23
|
+
*/function*bt(i,t){if(i!==void 0){let e=0;for(const s of i)yield t(s,e++)}}/**
|
24
24
|
* @license
|
25
25
|
* Copyright 2017 Google LLC
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
27
|
-
*/const
|
27
|
+
*/const Jt=i=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(i,t)}):customElements.define(i,t)};/**
|
28
28
|
* @license
|
29
29
|
* Copyright 2017 Google LLC
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
31
|
-
*/const
|
31
|
+
*/const Kt={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:et},Zt=(i=Kt,t,e)=>{const{kind:s,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,i),s==="accessor"){const{name:o}=e;return{set(c){const a=t.get.call(this);t.set.call(this,c),this.requestUpdate(o,a,i)},init(c){return c!==void 0&&this.C(o,void 0,i),c}}}if(s==="setter"){const{name:o}=e;return function(c){const a=this[o];t.call(this,c),this.requestUpdate(o,a,i)}}throw Error("Unsupported decorator location: "+s)};function u(i){return(t,e)=>typeof e=="object"?Zt(i,t,e):((s,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(r,n):void 0})(i,t,e)}/**
|
32
32
|
* @license
|
33
33
|
* Copyright 2017 Google LLC
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
35
|
-
*/function
|
35
|
+
*/function D(i){return u({...i,state:!0,attribute:!1})}/**
|
36
36
|
* @license
|
37
37
|
* Copyright 2017 Google LLC
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
39
|
-
*/const
|
39
|
+
*/const wt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xt=i=>(...t)=>({_$litDirective$:i,values:t});class Et{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
40
40
|
* @license
|
41
41
|
* Copyright 2018 Google LLC
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
43
|
-
*/const
|
43
|
+
*/const Qt=xt(class extends Et{constructor(i){var t;if(super(i),i.type!==wt.ATTRIBUTE||i.name!=="class"||((t=i.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(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var s,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.st=new Set(i.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=i.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)||(r=this.st)!=null&&r.has(n)||(o?(e.add(n),this.it.add(n)):(e.remove(n),this.it.delete(n)))}return w}}),z=(i,t,e)=>{i&&e.style.setProperty(t,i)},Ct=(i,t)=>{var e,s,r,n;z((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),z((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),z((r=i.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),z((n=i.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};var Xt=Object.defineProperty,te=Object.getOwnPropertyDescriptor,q=(i,t,e,s)=>{for(var r=s>1?void 0:s?te(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&Xt(t,e,r),r};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.removeFromDOM()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Ct(this.application.settings.branding,this)}async _renderSymbol(){var n;const t=(n=this.application)==null?void 0:n.triggerIcon;if(!t)return l;const e=async o=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(a=>a[o]),{type:s,content:r}=t;switch(s){case"Telia":{const o=await e(r);return o?H`<telia-icon
|
44
44
|
class="trigger-icon"
|
45
45
|
svg=${o.svg}
|
46
46
|
size="lg"
|
47
|
-
></telia-icon>`:l}default:return l}}render(){return
|
48
|
-
class=${
|
47
|
+
></telia-icon>`:l}default:return l}}render(){return H`<button
|
48
|
+
class=${Qt({trigger:!0,active:this.active,rendered:this.loaded})}
|
49
49
|
@click=${this._toggleActive}
|
50
50
|
>
|
51
51
|
${this.icon}
|
@@ -144,7 +144,7 @@
|
|
144
144
|
align-items: center;
|
145
145
|
fill: var(--trigger-text-color, var(--text-on-primary-background));
|
146
146
|
}
|
147
|
-
`];
|
147
|
+
`];q([u({attribute:!1})],x.prototype,"application",2);q([D()],x.prototype,"active",2);q([D()],x.prototype,"loaded",2);q([D()],x.prototype,"icon",2);var ee=Object.defineProperty,se=Object.getOwnPropertyDescriptor,v=(i,t,e,s)=>{for(var r=s>1?void 0:s?se(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&ee(t,e,r),r};const St=i=>{class t extends i{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))`)}}return t.styles=[P`
|
148
148
|
:host {
|
149
149
|
font-family: var(--font-family);
|
150
150
|
grid-column: span var(--width);
|
@@ -156,25 +156,25 @@
|
|
156
156
|
* {
|
157
157
|
box-sizing: border-box;
|
158
158
|
}
|
159
|
-
`],v([u()],t.prototype,"properties",2),v([u()],t.prototype,"context",2),v([u()],t.prototype,"layout",2),v([u()],t.prototype,"name",2),v([u()],t.prototype,"type",2),v([u({attribute:!1})],t.prototype,"application",2),v([u({attribute:!1})],t.prototype,"parent",2),t};
|
159
|
+
`],v([u()],t.prototype,"properties",2),v([u()],t.prototype,"context",2),v([u()],t.prototype,"layout",2),v([u()],t.prototype,"name",2),v([u()],t.prototype,"type",2),v([u({attribute:!1})],t.prototype,"application",2),v([u({attribute:!1})],t.prototype,"parent",2),t};class Pt extends St(f){render(){return H`Non resolved component`}}Pt.styles=[P`
|
160
160
|
:host {
|
161
161
|
display: block;
|
162
162
|
}
|
163
|
-
`]
|
163
|
+
`];/**
|
164
164
|
* @license
|
165
165
|
* Copyright 2020 Google LLC
|
166
166
|
* SPDX-License-Identifier: BSD-3-Clause
|
167
|
-
*/const
|
167
|
+
*/const ie=i=>i.strings===void 0;/**
|
168
168
|
* @license
|
169
169
|
* Copyright 2017 Google LLC
|
170
170
|
* SPDX-License-Identifier: BSD-3-Clause
|
171
|
-
*/const M=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const r of e)(s=r._$AO)==null||s.call(r,t,!1),M(r,t);return!0},W=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},
|
171
|
+
*/const M=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const r of e)(s=r._$AO)==null||s.call(r,t,!1),M(r,t);return!0},W=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Ot=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),oe(t)}};function re(i){this._$AN!==void 0?(W(this),this._$AM=i,Ot(this)):this._$AM=i}function ne(i,t=!1,e=0){const s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)M(s[n],!1),W(s[n]);else s!=null&&(M(s,!1),W(s));else M(this,i)}const oe=i=>{i.type==wt.CHILD&&(i._$AP??(i._$AP=ne),i._$AQ??(i._$AQ=re))};class ae extends Et{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ot(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,r;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(r=this.disconnected)==null||r.call(this)),e&&(M(this,t),W(this))}setValue(t){if(ie(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(){}}/**
|
172
172
|
* @license
|
173
173
|
* Copyright 2020 Google LLC
|
174
174
|
* SPDX-License-Identifier: BSD-3-Clause
|
175
|
-
*/const
|
176
|
-
${
|
177
|
-
</div>`}}
|
175
|
+
*/const ce=()=>new he;class he{}const Q=new WeakMap,le=xt(class extends ae{render(i){return l}update(i,[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=i.options)==null?void 0:s.host,this.ot(this.lt=i.element)),l}ot(i){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,i),i!==void 0&&this.G.call(this.ct,i)}else this.G.value=i}get rt(){var i,t;return typeof this.G=="function"?(i=Q.get(this.ct??globalThis))==null?void 0:i.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)}});var st=(i=>(i.Inline="inline",i.Trigger="trigger",i))(st||{}),de=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,ue=(i,t,e,s)=>{for(var r=s>1?void 0:s?pe(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&de(t,e,r),r};class it extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=ce()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(this.wrapperRef.value){const t=this.application.settings;t!=null&&t.branding&&Ct(t.branding,this.wrapperRef.value)}}firstUpdated(t){this.applyBranding()}render(){return this.application.renderStrategy===st.Trigger&&this.renderRoot.host.classList.add("floating"),H`<div class="widget-container" ${le(this.wrapperRef)}>
|
176
|
+
${bt(this.nodes,t=>t)}
|
177
|
+
</div>`}}it.styles=P`
|
178
178
|
:host {
|
179
179
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
180
180
|
--spacing-xs: 0.2rem;
|
@@ -252,11 +252,11 @@
|
|
252
252
|
opacity: 1;
|
253
253
|
}
|
254
254
|
}
|
255
|
-
`;
|
255
|
+
`;ue([u({attribute:!1})],it.prototype,"application",2);var ge=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,Y=(i,t,e,s)=>{for(var r=s>1?void 0:s?fe(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&ge(t,e,r),r};let S=class 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(i){this.widget=i.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const i=globalThis.widgets;i&&(this.widget=i.applications.find(t=>t.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return l;if(this.widget.renderStrategy===st.Trigger){const i=new x;return i.application=this.widget,i}return this.widget.render()}};S.styles=[P`
|
256
256
|
:host {
|
257
257
|
display: block;
|
258
258
|
}
|
259
|
-
`];
|
259
|
+
`];Y([u({attribute:!0})],S.prototype,"name",2);Y([D()],S.prototype,"widget",2);Y([D()],S.prototype,"status",2);S=Y([Jt("ace-widget")],S);customElements.get("ace-trigger")||customElements.define("ace-trigger",x);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Pt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",it);const $e=i=>{const t={};return Object.keys(i).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=i[e])}),t},me=(i,t)=>{const e=$e(t);Object.entries(e).forEach(([s,r])=>{i.style.setProperty(s.replace("css-",""),r)})};class rt extends St(f){constructor(){super(...arguments),this.nodes=[]}render(){var t;return me(this.renderRoot.host,this.properties),this.renderRoot.host.style.setProperty("--columns",((t=this.properties.columns)==null?void 0:t.toString())||"1"),H`${bt(this.nodes,e=>e)}`}}rt.styles=[P`
|
260
260
|
:host {
|
261
261
|
height: 100%;
|
262
262
|
display: grid;
|
@@ -265,4 +265,4 @@
|
|
265
265
|
grid-template-rows: auto;
|
266
266
|
grid-template-columns: repeat(var(--columns), 1fr);
|
267
267
|
}
|
268
|
-
`];exports.Area=
|
268
|
+
`];exports.Area=rt;exports.default=rt;
|
@@ -3,19 +3,19 @@
|
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
5
|
*/
|
6
|
-
const B = globalThis,
|
7
|
-
let
|
6
|
+
const B = globalThis, X = B.ShadowRoot && (B.ShadyCSS === void 0 || B.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, tt = Symbol(), rt = /* @__PURE__ */ new WeakMap();
|
7
|
+
let ft = class {
|
8
8
|
constructor(t, e, s) {
|
9
|
-
if (this._$cssResult$ = !0, s !==
|
9
|
+
if (this._$cssResult$ = !0, s !== tt)
|
10
10
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
11
11
|
this.cssText = t, this.t = e;
|
12
12
|
}
|
13
13
|
get styleSheet() {
|
14
14
|
let t = this.o;
|
15
15
|
const e = this.t;
|
16
|
-
if (
|
16
|
+
if (X && t === void 0) {
|
17
17
|
const s = e !== void 0 && e.length === 1;
|
18
|
-
s && (t =
|
18
|
+
s && (t = rt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && rt.set(e, t));
|
19
19
|
}
|
20
20
|
return t;
|
21
21
|
}
|
@@ -23,7 +23,7 @@ let _t = class {
|
|
23
23
|
return this.cssText;
|
24
24
|
}
|
25
25
|
};
|
26
|
-
const
|
26
|
+
const Ot = (i) => new ft(typeof i == "string" ? i : i + "", void 0, tt), P = (i, ...t) => {
|
27
27
|
const e = i.length === 1 ? i[0] : t.reduce((s, r, n) => s + ((o) => {
|
28
28
|
if (o._$cssResult$ === !0)
|
29
29
|
return o.cssText;
|
@@ -31,30 +31,30 @@ const Ut = (i) => new _t(typeof i == "string" ? i : i + "", void 0, st), P = (i,
|
|
31
31
|
return o;
|
32
32
|
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.");
|
33
33
|
})(r) + i[n + 1], i[0]);
|
34
|
-
return new
|
35
|
-
},
|
36
|
-
if (
|
34
|
+
return new ft(e, i, tt);
|
35
|
+
}, Tt = (i, t) => {
|
36
|
+
if (X)
|
37
37
|
i.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"), r = B.litNonce;
|
41
41
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, i.appendChild(s);
|
42
42
|
}
|
43
|
-
},
|
43
|
+
}, nt = X ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
44
44
|
let e = "";
|
45
45
|
for (const s of t.cssRules)
|
46
46
|
e += s.cssText;
|
47
|
-
return
|
47
|
+
return Ot(e);
|
48
48
|
})(i) : i;
|
49
49
|
/**
|
50
50
|
* @license
|
51
51
|
* Copyright 2017 Google LLC
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
53
53
|
*/
|
54
|
-
const { is:
|
54
|
+
const { is: Ut, defineProperty: Nt, getOwnPropertyDescriptor: Mt, getOwnPropertyNames: kt, getOwnPropertySymbols: Ht, getPrototypeOf: Rt } = Object, _ = globalThis, ot = _.trustedTypes, Lt = ot ? ot.emptyScript : "", F = _.reactiveElementPolyfillSupport, T = (i, t) => i, I = { toAttribute(i, t) {
|
55
55
|
switch (t) {
|
56
56
|
case Boolean:
|
57
|
-
i = i ?
|
57
|
+
i = i ? Lt : null;
|
58
58
|
break;
|
59
59
|
case Object:
|
60
60
|
case Array:
|
@@ -79,8 +79,8 @@ const { is: Mt, defineProperty: Ht, getOwnPropertyDescriptor: Rt, getOwnProperty
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
return e;
|
82
|
-
} },
|
83
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
82
|
+
} }, et = (i, t) => !Ut(i, t), at = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: et };
|
83
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
84
|
class E extends HTMLElement {
|
85
85
|
static addInitializer(t) {
|
86
86
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
@@ -88,14 +88,14 @@ class E extends HTMLElement {
|
|
88
88
|
static get observedAttributes() {
|
89
89
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
90
90
|
}
|
91
|
-
static createProperty(t, e =
|
91
|
+
static createProperty(t, e = at) {
|
92
92
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
93
93
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
94
|
-
r !== void 0 &&
|
94
|
+
r !== void 0 && Nt(this.prototype, t, r);
|
95
95
|
}
|
96
96
|
}
|
97
97
|
static getPropertyDescriptor(t, e, s) {
|
98
|
-
const { get: r, set: n } =
|
98
|
+
const { get: r, set: n } = Mt(this.prototype, t) ?? { get() {
|
99
99
|
return this[e];
|
100
100
|
}, set(o) {
|
101
101
|
this[e] = o;
|
@@ -108,19 +108,19 @@ class E extends HTMLElement {
|
|
108
108
|
}, configurable: !0, enumerable: !0 };
|
109
109
|
}
|
110
110
|
static getPropertyOptions(t) {
|
111
|
-
return this.elementProperties.get(t) ??
|
111
|
+
return this.elementProperties.get(t) ?? at;
|
112
112
|
}
|
113
113
|
static _$Ei() {
|
114
114
|
if (this.hasOwnProperty(T("elementProperties")))
|
115
115
|
return;
|
116
|
-
const t =
|
116
|
+
const t = Rt(this);
|
117
117
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
118
118
|
}
|
119
119
|
static finalize() {
|
120
120
|
if (this.hasOwnProperty(T("finalized")))
|
121
121
|
return;
|
122
122
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) {
|
123
|
-
const e = this.properties, s = [...kt(e), ...
|
123
|
+
const e = this.properties, s = [...kt(e), ...Ht(e)];
|
124
124
|
for (const r of s)
|
125
125
|
this.createProperty(r, e[r]);
|
126
126
|
}
|
@@ -143,9 +143,9 @@ class E extends HTMLElement {
|
|
143
143
|
if (Array.isArray(t)) {
|
144
144
|
const s = new Set(t.flat(1 / 0).reverse());
|
145
145
|
for (const r of s)
|
146
|
-
e.unshift(
|
146
|
+
e.unshift(nt(r));
|
147
147
|
} else
|
148
|
-
t !== void 0 && e.push(
|
148
|
+
t !== void 0 && e.push(nt(t));
|
149
149
|
return e;
|
150
150
|
}
|
151
151
|
static _$Eu(t, e) {
|
@@ -175,7 +175,7 @@ class E extends HTMLElement {
|
|
175
175
|
}
|
176
176
|
createRenderRoot() {
|
177
177
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
178
|
-
return
|
178
|
+
return Tt(t, this.constructor.elementStyles), t;
|
179
179
|
}
|
180
180
|
connectedCallback() {
|
181
181
|
var t;
|
@@ -214,7 +214,7 @@ class E extends HTMLElement {
|
|
214
214
|
}
|
215
215
|
requestUpdate(t, e, s, r = !1, n) {
|
216
216
|
if (t !== void 0) {
|
217
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
217
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? et)(r ? n : this[t], e))
|
218
218
|
return;
|
219
219
|
this.C(t, e, s);
|
220
220
|
}
|
@@ -292,40 +292,40 @@ class E extends HTMLElement {
|
|
292
292
|
firstUpdated(t) {
|
293
293
|
}
|
294
294
|
}
|
295
|
-
E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[T("elementProperties")] = /* @__PURE__ */ new Map(), E[T("finalized")] = /* @__PURE__ */ new Map(),
|
295
|
+
E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[T("elementProperties")] = /* @__PURE__ */ new Map(), E[T("finalized")] = /* @__PURE__ */ new Map(), F == null || F({ ReactiveElement: E }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.1");
|
296
296
|
/**
|
297
297
|
* @license
|
298
298
|
* Copyright 2017 Google LLC
|
299
299
|
* SPDX-License-Identifier: BSD-3-Clause
|
300
300
|
*/
|
301
|
-
const U = globalThis, G = U.trustedTypes,
|
302
|
-
\f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
304
|
-
function
|
301
|
+
const U = globalThis, G = U.trustedTypes, ct = G ? G.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, Dt = `<${mt}>`, b = document, M = () => b.createComment(""), k = (i) => i === null || typeof i != "object" && typeof i != "function", _t = Array.isArray, zt = (i) => _t(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", J = `[
|
302
|
+
\f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, lt = />/g, y = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, yt = /^(?:script|style|textarea|title)$/i, jt = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), H = jt(1), w = Symbol.for("lit-noChange"), l = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), A = b.createTreeWalker(b, 129);
|
304
|
+
function vt(i, t) {
|
305
305
|
if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
307
|
-
return
|
307
|
+
return ct !== void 0 ? ct.createHTML(t) : t;
|
308
308
|
}
|
309
|
-
const
|
309
|
+
const Bt = (i, t) => {
|
310
310
|
const e = i.length - 1, s = [];
|
311
311
|
let r, n = t === 2 ? "<svg>" : "", o = O;
|
312
312
|
for (let c = 0; c < e; c++) {
|
313
313
|
const a = i[c];
|
314
314
|
let d, p, h = -1, g = 0;
|
315
315
|
for (; g < a.length && (o.lastIndex = g, p = o.exec(a), p !== null); )
|
316
|
-
g = o.lastIndex, o === O ? p[1] === "!--" ? o =
|
316
|
+
g = o.lastIndex, o === O ? p[1] === "!--" ? o = ht : p[1] !== void 0 ? o = lt : p[2] !== void 0 ? (yt.test(p[2]) && (r = RegExp("</" + p[2], "g")), o = y) : p[3] !== void 0 && (o = y) : o === y ? p[0] === ">" ? (o = r ?? O, h = -1) : p[1] === void 0 ? h = -2 : (h = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? y : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = y : o === ht || o === lt ? o = O : (o = y, r = void 0);
|
317
317
|
const $ = o === y && i[c + 1].startsWith("/>") ? " " : "";
|
318
|
-
n += o === O ? a +
|
318
|
+
n += o === O ? a + Dt : h >= 0 ? (s.push(d), a.slice(0, h) + $t + a.slice(h) + m + $) : a + m + (h === -2 ? c : $);
|
319
319
|
}
|
320
|
-
return [
|
320
|
+
return [vt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
321
321
|
};
|
322
|
-
class
|
322
|
+
class R {
|
323
323
|
constructor({ strings: t, _$litType$: e }, s) {
|
324
324
|
let r;
|
325
325
|
this.parts = [];
|
326
326
|
let n = 0, o = 0;
|
327
|
-
const c = t.length - 1, a = this.parts, [d, p] =
|
328
|
-
if (this.el =
|
327
|
+
const c = t.length - 1, a = this.parts, [d, p] = Bt(t, e);
|
328
|
+
if (this.el = R.createElement(d, s), A.currentNode = this.el.content, e === 2) {
|
329
329
|
const h = this.el.content.firstChild;
|
330
330
|
h.replaceWith(...h.childNodes);
|
331
331
|
}
|
@@ -333,13 +333,13 @@ class k {
|
|
333
333
|
if (r.nodeType === 1) {
|
334
334
|
if (r.hasAttributes())
|
335
335
|
for (const h of r.getAttributeNames())
|
336
|
-
if (h.endsWith(
|
337
|
-
const g = p[o++], $ = r.getAttribute(h).split(
|
338
|
-
a.push({ type: 1, index: n, name:
|
336
|
+
if (h.endsWith($t)) {
|
337
|
+
const g = p[o++], $ = r.getAttribute(h).split(m), z = /([.?@])?(.*)/.exec(g);
|
338
|
+
a.push({ type: 1, index: n, name: z[2], strings: $, ctor: z[1] === "." ? Gt : z[1] === "?" ? Wt : z[1] === "@" ? Vt : V }), r.removeAttribute(h);
|
339
339
|
} else
|
340
|
-
h.startsWith(
|
341
|
-
if (
|
342
|
-
const h = r.textContent.split(
|
340
|
+
h.startsWith(m) && (a.push({ type: 6, index: n }), r.removeAttribute(h));
|
341
|
+
if (yt.test(r.tagName)) {
|
342
|
+
const h = r.textContent.split(m), g = h.length - 1;
|
343
343
|
if (g > 0) {
|
344
344
|
r.textContent = G ? G.emptyScript : "";
|
345
345
|
for (let $ = 0; $ < g; $++)
|
@@ -348,12 +348,12 @@ class k {
|
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (r.nodeType === 8)
|
351
|
-
if (r.data ===
|
351
|
+
if (r.data === mt)
|
352
352
|
a.push({ type: 2, index: n });
|
353
353
|
else {
|
354
354
|
let h = -1;
|
355
|
-
for (; (h = r.data.indexOf(
|
356
|
-
a.push({ type: 7, index: n }), h +=
|
355
|
+
for (; (h = r.data.indexOf(m, h + 1)) !== -1; )
|
356
|
+
a.push({ type: 7, index: n }), h += m.length - 1;
|
357
357
|
}
|
358
358
|
n++;
|
359
359
|
}
|
@@ -368,10 +368,10 @@ function C(i, t, e = i, s) {
|
|
368
368
|
if (t === w)
|
369
369
|
return t;
|
370
370
|
let r = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
371
|
-
const n =
|
371
|
+
const n = k(t) ? void 0 : t._$litDirective$;
|
372
372
|
return (r == null ? void 0 : r.constructor) !== n && ((c = r == null ? void 0 : r._$AO) == null || c.call(r, !1), n === void 0 ? r = void 0 : (r = new n(i), r._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = r : e._$Cl = r), r !== void 0 && (t = C(i, r._$AS(i, t.values), r, s)), t;
|
373
373
|
}
|
374
|
-
class
|
374
|
+
class It {
|
375
375
|
constructor(t, e) {
|
376
376
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
377
377
|
}
|
@@ -388,7 +388,7 @@ class Wt {
|
|
388
388
|
for (; a !== void 0; ) {
|
389
389
|
if (o === a.index) {
|
390
390
|
let d;
|
391
|
-
a.type === 2 ? d = new
|
391
|
+
a.type === 2 ? d = new L(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[++c];
|
392
392
|
}
|
393
393
|
o !== (a == null ? void 0 : a.index) && (n = A.nextNode(), o++);
|
394
394
|
}
|
@@ -400,7 +400,7 @@ class Wt {
|
|
400
400
|
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
401
401
|
}
|
402
402
|
}
|
403
|
-
class
|
403
|
+
class L {
|
404
404
|
get _$AU() {
|
405
405
|
var t;
|
406
406
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -420,7 +420,7 @@ class D {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t = C(this, t, e),
|
423
|
+
t = C(this, t, e), k(t) ? t === l || t == null || t === "" ? (this._$AH !== l && this._$AR(), this._$AH = l) : t !== this._$AH && t !== w && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : zt(t) ? this.T(t) : this._(t);
|
424
424
|
}
|
425
425
|
k(t) {
|
426
426
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -429,28 +429,28 @@ class D {
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !== l &&
|
432
|
+
this._$AH !== l && k(this._$AH) ? this._$AA.nextSibling.data = t : this.$(b.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
434
|
g(t) {
|
435
435
|
var n;
|
436
|
-
const { values: e, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el =
|
436
|
+
const { values: e, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = R.createElement(vt(s.h, s.h[0]), this.options)), s);
|
437
437
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
|
438
438
|
this._$AH.p(e);
|
439
439
|
else {
|
440
|
-
const o = new
|
440
|
+
const o = new It(r, this), c = o.u(this.options);
|
441
441
|
o.p(e), this.$(c), this._$AH = o;
|
442
442
|
}
|
443
443
|
}
|
444
444
|
_$AC(t) {
|
445
|
-
let e =
|
446
|
-
return e === void 0 &&
|
445
|
+
let e = ut.get(t.strings);
|
446
|
+
return e === void 0 && ut.set(t.strings, e = new R(t)), e;
|
447
447
|
}
|
448
448
|
T(t) {
|
449
|
-
|
449
|
+
_t(this._$AH) || (this._$AH = [], this._$AR());
|
450
450
|
const e = this._$AH;
|
451
451
|
let s, r = 0;
|
452
452
|
for (const n of t)
|
453
|
-
r === e.length ? e.push(s = new
|
453
|
+
r === e.length ? e.push(s = new L(this.k(M()), this.k(M()), this, this.options)) : s = e[r], s._$AI(n), r++;
|
454
454
|
r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
|
455
455
|
}
|
456
456
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -465,7 +465,7 @@ class D {
|
|
465
465
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
466
466
|
}
|
467
467
|
}
|
468
|
-
class
|
468
|
+
class V {
|
469
469
|
get tagName() {
|
470
470
|
return this.element.tagName;
|
471
471
|
}
|
@@ -479,12 +479,12 @@ class q {
|
|
479
479
|
const n = this.strings;
|
480
480
|
let o = !1;
|
481
481
|
if (n === void 0)
|
482
|
-
t = C(this, t, e, 0), o = !
|
482
|
+
t = C(this, t, e, 0), o = !k(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
|
483
483
|
else {
|
484
484
|
const c = t;
|
485
485
|
let a, d;
|
486
486
|
for (t = n[0], a = 0; a < n.length - 1; a++)
|
487
|
-
d = C(this, c[s + a], e, a), d === w && (d = this._$AH[a]), o || (o = !
|
487
|
+
d = C(this, c[s + a], e, a), d === w && (d = this._$AH[a]), o || (o = !k(d) || d !== this._$AH[a]), d === l ? t = l : t !== l && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
|
488
488
|
}
|
489
489
|
o && !r && this.O(t);
|
490
490
|
}
|
@@ -492,7 +492,7 @@ class q {
|
|
492
492
|
t === l ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
|
-
class
|
495
|
+
class Gt extends V {
|
496
496
|
constructor() {
|
497
497
|
super(...arguments), this.type = 3;
|
498
498
|
}
|
@@ -500,7 +500,7 @@ class Vt extends q {
|
|
500
500
|
this.element[this.name] = t === l ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
|
-
class
|
503
|
+
class Wt extends V {
|
504
504
|
constructor() {
|
505
505
|
super(...arguments), this.type = 4;
|
506
506
|
}
|
@@ -508,7 +508,7 @@ class qt extends q {
|
|
508
508
|
this.element.toggleAttribute(this.name, !!t && t !== l);
|
509
509
|
}
|
510
510
|
}
|
511
|
-
class
|
511
|
+
class Vt extends V {
|
512
512
|
constructor(t, e, s, r, n) {
|
513
513
|
super(t, e, s, r, n), this.type = 5;
|
514
514
|
}
|
@@ -523,7 +523,7 @@ class Yt extends q {
|
|
523
523
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
524
524
|
}
|
525
525
|
}
|
526
|
-
class
|
526
|
+
class qt {
|
527
527
|
constructor(t, e, s) {
|
528
528
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
529
529
|
}
|
@@ -534,14 +534,14 @@ class Ft {
|
|
534
534
|
C(this, t);
|
535
535
|
}
|
536
536
|
}
|
537
|
-
const
|
538
|
-
|
539
|
-
const
|
537
|
+
const K = U.litHtmlPolyfillSupport;
|
538
|
+
K == null || K(R, L), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.0.2");
|
539
|
+
const Yt = (i, t, e) => {
|
540
540
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
541
541
|
let r = s._$litPart$;
|
542
542
|
if (r === void 0) {
|
543
543
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
-
s._$litPart$ = r = new
|
544
|
+
s._$litPart$ = r = new L(t.insertBefore(M(), n), n, void 0, e ?? {});
|
545
545
|
}
|
546
546
|
return r._$AI(i), r;
|
547
547
|
};
|
@@ -561,7 +561,7 @@ let f = class extends E {
|
|
561
561
|
}
|
562
562
|
update(t) {
|
563
563
|
const e = this.render();
|
564
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
564
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Yt(e, this.renderRoot, this.renderOptions);
|
565
565
|
}
|
566
566
|
connectedCallback() {
|
567
567
|
var t;
|
@@ -575,17 +575,17 @@ let f = class extends E {
|
|
575
575
|
return w;
|
576
576
|
}
|
577
577
|
};
|
578
|
-
var
|
579
|
-
f._$litElement$ = !0, f.finalized = !0, (
|
580
|
-
const
|
581
|
-
|
578
|
+
var gt;
|
579
|
+
f._$litElement$ = !0, f.finalized = !0, (gt = globalThis.litElementHydrateSupport) == null || gt.call(globalThis, { LitElement: f });
|
580
|
+
const Z = globalThis.litElementPolyfillSupport;
|
581
|
+
Z == null || Z({ LitElement: f });
|
582
582
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
583
583
|
/**
|
584
584
|
* @license
|
585
585
|
* Copyright 2021 Google LLC
|
586
586
|
* SPDX-License-Identifier: BSD-3-Clause
|
587
587
|
*/
|
588
|
-
function*
|
588
|
+
function* At(i, t) {
|
589
589
|
if (i !== void 0) {
|
590
590
|
let e = 0;
|
591
591
|
for (const s of i)
|
@@ -597,7 +597,7 @@ function* wt(i, t) {
|
|
597
597
|
* Copyright 2017 Google LLC
|
598
598
|
* SPDX-License-Identifier: BSD-3-Clause
|
599
599
|
*/
|
600
|
-
const
|
600
|
+
const Ft = (i) => (t, e) => {
|
601
601
|
e !== void 0 ? e.addInitializer(() => {
|
602
602
|
customElements.define(i, t);
|
603
603
|
}) : customElements.define(i, t);
|
@@ -607,7 +607,7 @@ const rt = (i) => (t, e) => {
|
|
607
607
|
* Copyright 2017 Google LLC
|
608
608
|
* SPDX-License-Identifier: BSD-3-Clause
|
609
609
|
*/
|
610
|
-
const
|
610
|
+
const Jt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: et }, Kt = (i = Jt, t, e) => {
|
611
611
|
const { kind: s, metadata: r } = e;
|
612
612
|
let n = globalThis.litPropertyMetadata.get(r);
|
613
613
|
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, i), s === "accessor") {
|
@@ -629,7 +629,7 @@ const Kt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged:
|
|
629
629
|
throw Error("Unsupported decorator location: " + s);
|
630
630
|
};
|
631
631
|
function u(i) {
|
632
|
-
return (t, e) => typeof e == "object" ?
|
632
|
+
return (t, e) => typeof e == "object" ? Kt(i, t, e) : ((s, r, n) => {
|
633
633
|
const o = r.hasOwnProperty(n);
|
634
634
|
return r.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
635
635
|
})(i, t, e);
|
@@ -639,7 +639,7 @@ function u(i) {
|
|
639
639
|
* Copyright 2017 Google LLC
|
640
640
|
* SPDX-License-Identifier: BSD-3-Clause
|
641
641
|
*/
|
642
|
-
function
|
642
|
+
function D(i) {
|
643
643
|
return u({ ...i, state: !0, attribute: !1 });
|
644
644
|
}
|
645
645
|
/**
|
@@ -647,8 +647,8 @@ function L(i) {
|
|
647
647
|
* Copyright 2017 Google LLC
|
648
648
|
* SPDX-License-Identifier: BSD-3-Clause
|
649
649
|
*/
|
650
|
-
const
|
651
|
-
class
|
650
|
+
const bt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wt = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
651
|
+
class xt {
|
652
652
|
constructor(t) {
|
653
653
|
}
|
654
654
|
get _$AU() {
|
@@ -669,10 +669,10 @@ class Ct {
|
|
669
669
|
* Copyright 2018 Google LLC
|
670
670
|
* SPDX-License-Identifier: BSD-3-Clause
|
671
671
|
*/
|
672
|
-
const
|
672
|
+
const Zt = wt(class extends xt {
|
673
673
|
constructor(i) {
|
674
674
|
var t;
|
675
|
-
if (super(i), i.type !==
|
675
|
+
if (super(i), i.type !== bt.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2)
|
676
676
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
677
677
|
}
|
678
678
|
render(i) {
|
@@ -695,28 +695,28 @@ const Qt = Et(class extends Ct {
|
|
695
695
|
}
|
696
696
|
return w;
|
697
697
|
}
|
698
|
-
}),
|
698
|
+
}), j = (i, t, e) => {
|
699
699
|
i && e.style.setProperty(t, i);
|
700
|
-
},
|
700
|
+
}, Et = (i, t) => {
|
701
701
|
var e, s, r, n;
|
702
|
-
|
702
|
+
j((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), j(
|
703
703
|
(s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
704
704
|
"--text-on-primary-background",
|
705
705
|
t
|
706
|
-
),
|
706
|
+
), j(
|
707
707
|
(r = i.colors) == null ? void 0 : r.secondaryBackground,
|
708
708
|
"--secondary-background",
|
709
709
|
t
|
710
|
-
),
|
710
|
+
), j(
|
711
711
|
(n = i.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
712
712
|
"--text-on-secondary-background",
|
713
713
|
t
|
714
714
|
);
|
715
715
|
};
|
716
|
-
var
|
717
|
-
for (var r = s > 1 ? void 0 : s ?
|
716
|
+
var Qt = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, q = (i, t, e, s) => {
|
717
|
+
for (var r = s > 1 ? void 0 : s ? Xt(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
718
718
|
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
719
|
-
return s && r &&
|
719
|
+
return s && r && Qt(t, e, r), r;
|
720
720
|
};
|
721
721
|
class x extends f {
|
722
722
|
constructor() {
|
@@ -737,7 +737,7 @@ class x extends f {
|
|
737
737
|
}
|
738
738
|
_applyBranding() {
|
739
739
|
var t;
|
740
|
-
(t = this.application) != null && t.settings &&
|
740
|
+
(t = this.application) != null && t.settings && Et(this.application.settings.branding, this);
|
741
741
|
}
|
742
742
|
async _renderSymbol() {
|
743
743
|
var n;
|
@@ -750,7 +750,7 @@ class x extends f {
|
|
750
750
|
switch (s) {
|
751
751
|
case "Telia": {
|
752
752
|
const o = await e(r);
|
753
|
-
return o ?
|
753
|
+
return o ? H`<telia-icon
|
754
754
|
class="trigger-icon"
|
755
755
|
svg=${o.svg}
|
756
756
|
size="lg"
|
@@ -761,8 +761,8 @@ class x extends f {
|
|
761
761
|
}
|
762
762
|
}
|
763
763
|
render() {
|
764
|
-
return
|
765
|
-
class=${
|
764
|
+
return H`<button
|
765
|
+
class=${Zt({
|
766
766
|
trigger: !0,
|
767
767
|
active: this.active,
|
768
768
|
rendered: this.loaded
|
@@ -871,24 +871,24 @@ x.styles = [
|
|
871
871
|
}
|
872
872
|
`
|
873
873
|
];
|
874
|
-
|
874
|
+
q([
|
875
875
|
u({ attribute: !1 })
|
876
876
|
], x.prototype, "application", 2);
|
877
|
-
|
878
|
-
|
877
|
+
q([
|
878
|
+
D()
|
879
879
|
], x.prototype, "active", 2);
|
880
|
-
|
881
|
-
|
880
|
+
q([
|
881
|
+
D()
|
882
882
|
], x.prototype, "loaded", 2);
|
883
|
-
|
884
|
-
|
883
|
+
q([
|
884
|
+
D()
|
885
885
|
], x.prototype, "icon", 2);
|
886
|
-
var
|
887
|
-
for (var r = s > 1 ? void 0 : s ?
|
886
|
+
var te = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, v = (i, t, e, s) => {
|
887
|
+
for (var r = s > 1 ? void 0 : s ? ee(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
888
888
|
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
889
|
-
return s && r &&
|
889
|
+
return s && r && te(t, e, r), r;
|
890
890
|
};
|
891
|
-
const
|
891
|
+
const Ct = (i) => {
|
892
892
|
class t extends i {
|
893
893
|
constructor() {
|
894
894
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -943,32 +943,24 @@ const Pt = (i) => {
|
|
943
943
|
u({ attribute: !1 })
|
944
944
|
], t.prototype, "parent", 2), t;
|
945
945
|
};
|
946
|
-
|
947
|
-
for (var r = s > 1 ? void 0 : s ? re(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
948
|
-
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
949
|
-
return s && r && ie(t, e, r), r;
|
950
|
-
};
|
951
|
-
let tt = class extends Pt(f) {
|
946
|
+
class St extends Ct(f) {
|
952
947
|
render() {
|
953
|
-
return
|
948
|
+
return H`Non resolved component`;
|
954
949
|
}
|
955
|
-
}
|
956
|
-
|
950
|
+
}
|
951
|
+
St.styles = [
|
957
952
|
P`
|
958
953
|
:host {
|
959
954
|
display: block;
|
960
955
|
}
|
961
956
|
`
|
962
957
|
];
|
963
|
-
tt = ne([
|
964
|
-
rt("ace-unresolved-component")
|
965
|
-
], tt);
|
966
958
|
/**
|
967
959
|
* @license
|
968
960
|
* Copyright 2020 Google LLC
|
969
961
|
* SPDX-License-Identifier: BSD-3-Clause
|
970
962
|
*/
|
971
|
-
const
|
963
|
+
const se = (i) => i.strings === void 0;
|
972
964
|
/**
|
973
965
|
* @license
|
974
966
|
* Copyright 2017 Google LLC
|
@@ -989,20 +981,20 @@ const N = (i, t) => {
|
|
989
981
|
break;
|
990
982
|
e = t._$AN, e.delete(i), i = t;
|
991
983
|
} while ((e == null ? void 0 : e.size) === 0);
|
992
|
-
},
|
984
|
+
}, Pt = (i) => {
|
993
985
|
for (let t; t = i._$AM; i = t) {
|
994
986
|
let e = t._$AN;
|
995
987
|
if (e === void 0)
|
996
988
|
t._$AN = e = /* @__PURE__ */ new Set();
|
997
989
|
else if (e.has(i))
|
998
990
|
break;
|
999
|
-
e.add(i),
|
991
|
+
e.add(i), ne(t);
|
1000
992
|
}
|
1001
993
|
};
|
1002
|
-
function
|
1003
|
-
this._$AN !== void 0 ? (W(this), this._$AM = i,
|
994
|
+
function ie(i) {
|
995
|
+
this._$AN !== void 0 ? (W(this), this._$AM = i, Pt(this)) : this._$AM = i;
|
1004
996
|
}
|
1005
|
-
function
|
997
|
+
function re(i, t = !1, e = 0) {
|
1006
998
|
const s = this._$AH, r = this._$AN;
|
1007
999
|
if (r !== void 0 && r.size !== 0)
|
1008
1000
|
if (t)
|
@@ -1014,22 +1006,22 @@ function ce(i, t = !1, e = 0) {
|
|
1014
1006
|
else
|
1015
1007
|
N(this, i);
|
1016
1008
|
}
|
1017
|
-
const
|
1018
|
-
i.type ==
|
1009
|
+
const ne = (i) => {
|
1010
|
+
i.type == bt.CHILD && (i._$AP ?? (i._$AP = re), i._$AQ ?? (i._$AQ = ie));
|
1019
1011
|
};
|
1020
|
-
class
|
1012
|
+
class oe extends xt {
|
1021
1013
|
constructor() {
|
1022
1014
|
super(...arguments), this._$AN = void 0;
|
1023
1015
|
}
|
1024
1016
|
_$AT(t, e, s) {
|
1025
|
-
super._$AT(t, e, s),
|
1017
|
+
super._$AT(t, e, s), Pt(this), this.isConnected = t._$AU;
|
1026
1018
|
}
|
1027
1019
|
_$AO(t, e = !0) {
|
1028
1020
|
var s, r;
|
1029
1021
|
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), W(this));
|
1030
1022
|
}
|
1031
1023
|
setValue(t) {
|
1032
|
-
if (
|
1024
|
+
if (se(this._$Ct))
|
1033
1025
|
this._$Ct._$AI(t, this);
|
1034
1026
|
else {
|
1035
1027
|
const e = [...this._$Ct._$AH];
|
@@ -1046,10 +1038,10 @@ class le extends Ct {
|
|
1046
1038
|
* Copyright 2020 Google LLC
|
1047
1039
|
* SPDX-License-Identifier: BSD-3-Clause
|
1048
1040
|
*/
|
1049
|
-
const
|
1050
|
-
class
|
1041
|
+
const ae = () => new ce();
|
1042
|
+
class ce {
|
1051
1043
|
}
|
1052
|
-
const
|
1044
|
+
const Q = /* @__PURE__ */ new WeakMap(), he = wt(class extends oe {
|
1053
1045
|
render(i) {
|
1054
1046
|
return l;
|
1055
1047
|
}
|
@@ -1061,14 +1053,14 @@ const X = /* @__PURE__ */ new WeakMap(), ue = Et(class extends le {
|
|
1061
1053
|
ot(i) {
|
1062
1054
|
if (typeof this.G == "function") {
|
1063
1055
|
const t = this.ct ?? globalThis;
|
1064
|
-
let e =
|
1065
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1056
|
+
let e = Q.get(t);
|
1057
|
+
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, i), i !== void 0 && this.G.call(this.ct, i);
|
1066
1058
|
} else
|
1067
1059
|
this.G.value = i;
|
1068
1060
|
}
|
1069
1061
|
get rt() {
|
1070
1062
|
var i, t;
|
1071
|
-
return typeof this.G == "function" ? (i =
|
1063
|
+
return typeof this.G == "function" ? (i = Q.get(this.ct ?? globalThis)) == null ? void 0 : i.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1072
1064
|
}
|
1073
1065
|
disconnected() {
|
1074
1066
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1077,34 +1069,34 @@ const X = /* @__PURE__ */ new WeakMap(), ue = Et(class extends le {
|
|
1077
1069
|
this.ot(this.lt);
|
1078
1070
|
}
|
1079
1071
|
});
|
1080
|
-
var
|
1081
|
-
for (var r = s > 1 ? void 0 : s ?
|
1072
|
+
var st = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(st || {}), le = Object.defineProperty, de = Object.getOwnPropertyDescriptor, pe = (i, t, e, s) => {
|
1073
|
+
for (var r = s > 1 ? void 0 : s ? de(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
1082
1074
|
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
1083
|
-
return s && r &&
|
1075
|
+
return s && r && le(t, e, r), r;
|
1084
1076
|
};
|
1085
|
-
|
1077
|
+
class it extends f {
|
1086
1078
|
constructor() {
|
1087
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1079
|
+
super(...arguments), this.nodes = [], this.wrapperRef = ae();
|
1088
1080
|
}
|
1089
|
-
addChild(
|
1090
|
-
|
1081
|
+
addChild(t) {
|
1082
|
+
t.parent = this, this.nodes.push(t);
|
1091
1083
|
}
|
1092
1084
|
applyBranding() {
|
1093
1085
|
if (this.wrapperRef.value) {
|
1094
|
-
const
|
1095
|
-
|
1086
|
+
const t = this.application.settings;
|
1087
|
+
t != null && t.branding && Et(t.branding, this.wrapperRef.value);
|
1096
1088
|
}
|
1097
1089
|
}
|
1098
|
-
firstUpdated(
|
1090
|
+
firstUpdated(t) {
|
1099
1091
|
this.applyBranding();
|
1100
1092
|
}
|
1101
1093
|
render() {
|
1102
|
-
return this.application.renderStrategy ===
|
1103
|
-
${
|
1094
|
+
return this.application.renderStrategy === st.Trigger && this.renderRoot.host.classList.add("floating"), H`<div class="widget-container" ${he(this.wrapperRef)}>
|
1095
|
+
${At(this.nodes, (t) => t)}
|
1104
1096
|
</div>`;
|
1105
1097
|
}
|
1106
|
-
}
|
1107
|
-
|
1098
|
+
}
|
1099
|
+
it.styles = P`
|
1108
1100
|
:host {
|
1109
1101
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1110
1102
|
--spacing-xs: 0.2rem;
|
@@ -1183,16 +1175,13 @@ V.styles = P`
|
|
1183
1175
|
}
|
1184
1176
|
}
|
1185
1177
|
`;
|
1186
|
-
|
1178
|
+
pe([
|
1187
1179
|
u({ attribute: !1 })
|
1188
|
-
],
|
1189
|
-
|
1190
|
-
|
1191
|
-
], V);
|
1192
|
-
var $e = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, F = (i, t, e, s) => {
|
1193
|
-
for (var r = s > 1 ? void 0 : s ? _e(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
1180
|
+
], it.prototype, "application", 2);
|
1181
|
+
var ue = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, Y = (i, t, e, s) => {
|
1182
|
+
for (var r = s > 1 ? void 0 : s ? ge(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
1194
1183
|
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
1195
|
-
return s && r &&
|
1184
|
+
return s && r && ue(t, e, r), r;
|
1196
1185
|
};
|
1197
1186
|
let S = class extends f {
|
1198
1187
|
constructor() {
|
@@ -1219,7 +1208,7 @@ let S = class extends f {
|
|
1219
1208
|
render() {
|
1220
1209
|
if (!this.widget || this.status !== "activated")
|
1221
1210
|
return l;
|
1222
|
-
if (this.widget.renderStrategy ===
|
1211
|
+
if (this.widget.renderStrategy === st.Trigger) {
|
1223
1212
|
const i = new x();
|
1224
1213
|
return i.application = this.widget, i;
|
1225
1214
|
}
|
@@ -1233,43 +1222,45 @@ S.styles = [
|
|
1233
1222
|
}
|
1234
1223
|
`
|
1235
1224
|
];
|
1236
|
-
|
1225
|
+
Y([
|
1237
1226
|
u({ attribute: !0 })
|
1238
1227
|
], S.prototype, "name", 2);
|
1239
|
-
|
1240
|
-
|
1228
|
+
Y([
|
1229
|
+
D()
|
1241
1230
|
], S.prototype, "widget", 2);
|
1242
|
-
|
1243
|
-
|
1231
|
+
Y([
|
1232
|
+
D()
|
1244
1233
|
], S.prototype, "status", 2);
|
1245
|
-
S =
|
1246
|
-
|
1234
|
+
S = Y([
|
1235
|
+
Ft("ace-widget")
|
1247
1236
|
], S);
|
1248
1237
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", x);
|
1249
|
-
|
1238
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", St);
|
1239
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", it);
|
1240
|
+
const fe = (i) => {
|
1250
1241
|
const t = {};
|
1251
1242
|
return Object.keys(i).forEach((e) => {
|
1252
1243
|
e.indexOf("css-") > -1 && (t[e] = i[e]);
|
1253
1244
|
}), t;
|
1254
|
-
},
|
1255
|
-
const e =
|
1245
|
+
}, $e = (i, t) => {
|
1246
|
+
const e = fe(t);
|
1256
1247
|
Object.entries(e).forEach(([s, r]) => {
|
1257
1248
|
i.style.setProperty(s.replace("css-", ""), r);
|
1258
1249
|
});
|
1259
1250
|
};
|
1260
|
-
class
|
1251
|
+
class me extends Ct(f) {
|
1261
1252
|
constructor() {
|
1262
1253
|
super(...arguments), this.nodes = [];
|
1263
1254
|
}
|
1264
1255
|
render() {
|
1265
1256
|
var t;
|
1266
|
-
return
|
1257
|
+
return $e(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
1267
1258
|
"--columns",
|
1268
1259
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
1269
|
-
),
|
1260
|
+
), H`${At(this.nodes, (e) => e)}`;
|
1270
1261
|
}
|
1271
1262
|
}
|
1272
|
-
|
1263
|
+
me.styles = [
|
1273
1264
|
P`
|
1274
1265
|
:host {
|
1275
1266
|
height: 100%;
|
@@ -1282,6 +1273,6 @@ ve.styles = [
|
|
1282
1273
|
`
|
1283
1274
|
];
|
1284
1275
|
export {
|
1285
|
-
|
1286
|
-
|
1276
|
+
me as Area,
|
1277
|
+
me as default
|
1287
1278
|
};
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-19c28495.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@telia-ace/widget-components-area-flamingo",
|
3
|
-
"version": "1.1.12-rc.
|
3
|
+
"version": "1.1.12-rc.8",
|
4
4
|
"dependencies": {
|
5
|
-
"@telia-ace/widget-core-flamingo": "1.1.12-rc.
|
5
|
+
"@telia-ace/widget-core-flamingo": "1.1.12-rc.8",
|
6
6
|
"lit": "^3.0.2"
|
7
7
|
},
|
8
8
|
"main": "./index.js",
|