@telia-ace/widget-components-area-flamingo 1.1.56-rc.1 → 1.1.56-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-f7a0a255.js → area-974e1552.js} +17 -15
- package/{area-315d1f4f.mjs → area-aebd1405.mjs} +150 -148
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -2,29 +2,29 @@
|
|
2
2
|
* @license
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
-
*/const z=globalThis,tt=z.ShadowRoot&&(z.ShadyCSS===void 0||z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,et=Symbol(),ct=new WeakMap;let St=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==et)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(tt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=ct.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ct.set(e,t))}return t}toString(){return this.cssText}};const It=r=>new St(typeof r=="string"?r:r+"",void 0,et),x=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[o+1],r[0]);return new St(e,r,et)},
|
5
|
+
*/const z=globalThis,tt=z.ShadowRoot&&(z.ShadyCSS===void 0||z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,et=Symbol(),ct=new WeakMap;let St=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==et)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(tt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=ct.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ct.set(e,t))}return t}toString(){return this.cssText}};const It=r=>new St(typeof r=="string"?r:r+"",void 0,et),x=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[o+1],r[0]);return new St(e,r,et)},Wt=(r,t)=>{if(tt)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=z.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},dt=tt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return It(e)})(r):r;/**
|
6
6
|
* @license
|
7
7
|
* Copyright 2017 Google LLC
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
9
|
-
*/const{is:
|
9
|
+
*/const{is:Yt,defineProperty:Ft,getOwnPropertyDescriptor:Vt,getOwnPropertyNames:qt,getOwnPropertySymbols:Zt,getPrototypeOf:Kt}=Object,v=globalThis,pt=v.trustedTypes,Gt=pt?pt.emptyScript:"",q=v.reactiveElementPolyfillSupport,T=(r,t)=>r,I={toAttribute(r,t){switch(t){case Boolean:r=r?Gt: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}},st=(r,t)=>!Yt(r,t),ut={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:st};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),v.litPropertyMetadata??(v.litPropertyMetadata=new WeakMap);let S=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ut){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&&Ft(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=Vt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){const h=i==null?void 0:i.call(this);o.call(this,n),this.requestUpdate(t,h,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ut}static _$Ei(){if(this.hasOwnProperty(T("elementProperties")))return;const t=Kt(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=[...qt(e),...Zt(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(dt(i))}else t!==void 0&&e.push(dt(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._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const 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 Wt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var o;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const n=(((o=s.converter)==null?void 0:o.toAttribute)!==void 0?s.converter:I).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=s.getPropertyOptions(i),h=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:I;this._$Em=i,this[i]=h.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??st)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(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 _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[T("elementProperties")]=new Map,S[T("finalized")]=new Map,q==null||q({ReactiveElement:S}),(v.reactiveElementVersions??(v.reactiveElementVersions=[])).push("2.0.4");/**
|
10
10
|
* @license
|
11
11
|
* Copyright 2017 Google LLC
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
13
|
-
*/const N=globalThis,
|
14
|
-
\f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ft=/-->/g,mt=/>/g,y=RegExp(`>|${
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,vt=/"/g,Nt=/^(?:script|style|textarea|title)$/i,Qt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),b=Qt(1),C=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),yt=new WeakMap,A=w.createTreeWalker(w,129);function Ut(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return gt!==void 0?gt.createHTML(t):t}const te=(r,t)=>{const e=r.length-1,s=[];let i,o=t===2?"<svg>":"",n=O;for(let h=0;h<e;h++){const a=r[h];let l,d,p=-1,u=0;for(;u<a.length&&(n.lastIndex=u,d=n.exec(a),d!==null);)u=n.lastIndex,n===O?d[1]==="!--"?n=ft:d[1]!==void 0?n=mt:d[2]!==void 0?(Nt.test(d[2])&&(i=RegExp("</"+d[2],"g")),n=y):d[3]!==void 0&&(n=y):n===y?d[0]===">"?(n=i??O,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,l=d[1],n=d[3]===void 0?y:d[3]==='"'?vt:$t):n===vt||n===$t?n=y:n===ft||n===mt?n=O:(n=y,i=void 0);const m=n===y&&r[h+1].startsWith("/>")?" ":"";o+=n===O?a+Xt:p>=0?(s.push(l),a.slice(0,p)+Pt+a.slice(p)+$+m):a+$+(p===-2?h:m)}return[Ut(r,o+(r[e]||"<?>")+(t===2?"</svg>":"")),s]};class M{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0;const h=t.length-1,a=this.parts,[l,d]=te(t,e);if(this.el=M.createElement(l,s),A.currentNode=this.el.content,e===2){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=A.nextNode())!==null&&a.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(Pt)){const u=d[n++],m=i.getAttribute(p).split($),B=/([.?@])?(.*)/.exec(u);a.push({type:1,index:o,name:B[2],strings:m,ctor:B[1]==="."?se:B[1]==="?"?ie:B[1]==="@"?re:
|
13
|
+
*/const N=globalThis,W=N.trustedTypes,gt=W?W.createPolicy("lit-html",{createHTML:r=>r}):void 0,Pt="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,Ot="?"+$,Xt=`<${Ot}>`,w=document,R=()=>w.createComment(""),k=r=>r===null||typeof r!="object"&&typeof r!="function",Tt=Array.isArray,Jt=r=>Tt(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Z=`[
|
14
|
+
\f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ft=/-->/g,mt=/>/g,y=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,vt=/"/g,Nt=/^(?:script|style|textarea|title)$/i,Qt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),b=Qt(1),C=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),yt=new WeakMap,A=w.createTreeWalker(w,129);function Ut(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return gt!==void 0?gt.createHTML(t):t}const te=(r,t)=>{const e=r.length-1,s=[];let i,o=t===2?"<svg>":"",n=O;for(let h=0;h<e;h++){const a=r[h];let l,d,p=-1,u=0;for(;u<a.length&&(n.lastIndex=u,d=n.exec(a),d!==null);)u=n.lastIndex,n===O?d[1]==="!--"?n=ft:d[1]!==void 0?n=mt:d[2]!==void 0?(Nt.test(d[2])&&(i=RegExp("</"+d[2],"g")),n=y):d[3]!==void 0&&(n=y):n===y?d[0]===">"?(n=i??O,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,l=d[1],n=d[3]===void 0?y:d[3]==='"'?vt:$t):n===vt||n===$t?n=y:n===ft||n===mt?n=O:(n=y,i=void 0);const m=n===y&&r[h+1].startsWith("/>")?" ":"";o+=n===O?a+Xt:p>=0?(s.push(l),a.slice(0,p)+Pt+a.slice(p)+$+m):a+$+(p===-2?h:m)}return[Ut(r,o+(r[e]||"<?>")+(t===2?"</svg>":"")),s]};class M{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0;const h=t.length-1,a=this.parts,[l,d]=te(t,e);if(this.el=M.createElement(l,s),A.currentNode=this.el.content,e===2){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=A.nextNode())!==null&&a.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(Pt)){const u=d[n++],m=i.getAttribute(p).split($),B=/([.?@])?(.*)/.exec(u);a.push({type:1,index:o,name:B[2],strings:m,ctor:B[1]==="."?se:B[1]==="?"?ie:B[1]==="@"?re:F}),i.removeAttribute(p)}else p.startsWith($)&&(a.push({type:6,index:o}),i.removeAttribute(p));if(Nt.test(i.tagName)){const p=i.textContent.split($),u=p.length-1;if(u>0){i.textContent=W?W.emptyScript:"";for(let m=0;m<u;m++)i.append(p[m],R()),A.nextNode(),a.push({type:2,index:++o});i.append(p[u],R())}}}else if(i.nodeType===8)if(i.data===Ot)a.push({type:2,index:o});else{let p=-1;for(;(p=i.data.indexOf($,p+1))!==-1;)a.push({type:7,index:o}),p+=$.length-1}o++}}static createElement(t,e){const s=w.createElement("template");return s.innerHTML=t,s}}function P(r,t,e=r,s){var n,h;if(t===C)return t;let i=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl;const o=k(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=P(r,i._$AS(r,t.values),i,s)),t}class ee{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)??w).importNode(e,!0);A.currentNode=i;let o=A.nextNode(),n=0,h=0,a=s[0];for(;a!==void 0;){if(n===a.index){let l;a.type===2?l=new L(o,o.nextSibling,this,t):a.type===1?l=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(l=new oe(o,this,t)),this._$AV.push(l),a=s[++h]}n!==(a==null?void 0:a.index)&&(o=A.nextNode(),n++)}return A.currentNode=w,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 L{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=P(this,t,e),k(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==C&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Jt(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==c&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(w.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=M.createElement(Ut(s.h,s.h[0]),this.options)),s);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const n=new ee(i,this),h=n.u(this.options);n.p(e),this.T(h),this._$AH=n}}_$AC(t){let e=yt.get(t.strings);return e===void 0&&yt.set(t.strings,e=new M(t)),e}k(t){Tt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new L(this.S(R()),this.S(R()),this,this.options)):s=e[i],s._$AI(o),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 F{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,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 o=this.strings;let n=!1;if(o===void 0)t=P(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==C,n&&(this._$AH=t);else{const h=t;let a,l;for(t=o[0],a=0;a<o.length-1;a++)l=P(this,h[s+a],e,a),l===C&&(l=this._$AH[a]),n||(n=!k(l)||l!==this._$AH[a]),l===c?t=c:t!==c&&(t+=(l??"")+o[a+1]),this._$AH[a]=l}n&&!i&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class se extends F{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}}class ie extends F{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class re extends F{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??c)===C)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class oe{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){P(this,t)}}const K=N.litHtmlPolyfillSupport;K==null||K(M,L),(N.litHtmlVersions??(N.litHtmlVersions=[])).push("3.1.2");const ne=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new L(t.insertBefore(R(),o),o,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
|
19
|
-
*/let f=class extends S{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=ne(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 C}};var Et;f._$litElement$=!0,f.finalized=!0,(Et=globalThis.litElementHydrateSupport)==null||Et.call(globalThis,{LitElement:f});const
|
19
|
+
*/let f=class extends S{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=ne(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 C}};var Et;f._$litElement$=!0,f.finalized=!0,(Et=globalThis.litElementHydrateSupport)==null||Et.call(globalThis,{LitElement:f});const G=globalThis.litElementPolyfillSupport;G==null||G({LitElement:f});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
|
20
20
|
* @license
|
21
21
|
* Copyright 2021 Google LLC
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
23
|
-
*/function*
|
23
|
+
*/function*Rt(r,t){if(r!==void 0){let e=0;for(const s of r)yield t(s,e++)}}/**
|
24
24
|
* @license
|
25
25
|
* Copyright 2017 Google LLC
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
27
|
-
*/const ae={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:st},he=(r=ae,t,e)=>{const{kind:s,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,r),s==="accessor"){const{name:n}=e;return{set(h){const a=t.get.call(this);t.set.call(this,h),this.requestUpdate(n,a,r)},init(h){return h!==void 0&&this.
|
27
|
+
*/const ae={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:st},he=(r=ae,t,e)=>{const{kind:s,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,r),s==="accessor"){const{name:n}=e;return{set(h){const a=t.get.call(this);t.set.call(this,h),this.requestUpdate(n,a,r)},init(h){return h!==void 0&&this.P(n,void 0,r),h}}}if(s==="setter"){const{name:n}=e;return function(h){const a=this[n];t.call(this,h),this.requestUpdate(n,a,r)}}throw Error("Unsupported decorator location: "+s)};function g(r){return(t,e)=>typeof e=="object"?he(r,t,e):((s,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(i,o):void 0})(r,t,e)}/**
|
28
28
|
* @license
|
29
29
|
* Copyright 2017 Google LLC
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -48,7 +48,7 @@
|
|
48
48
|
* @license
|
49
49
|
* Copyright 2017 Google LLC
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
51
|
-
*/const rt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ot=r=>(...t)=>({_$litDirective$:r,values:t});let
|
51
|
+
*/const rt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ot=r=>(...t)=>({_$litDirective$:r,values:t});let kt=class{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)}};/**
|
52
52
|
* @license
|
53
53
|
* Copyright 2020 Google LLC
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -56,21 +56,22 @@
|
|
56
56
|
* @license
|
57
57
|
* Copyright 2017 Google LLC
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
59
|
-
*/const U=(r,t)=>{var s;const e=r._$AN;if(e===void 0)return!1;for(const i of e)(s=i._$AO)==null||s.call(i,t,!1),U(i,t);return!0},
|
59
|
+
*/const U=(r,t)=>{var s;const e=r._$AN;if(e===void 0)return!1;for(const i of e)(s=i._$AO)==null||s.call(i,t,!1),U(i,t);return!0},Y=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while((e==null?void 0:e.size)===0)},Mt=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),fe(t)}};function ue(r){this._$AN!==void 0?(Y(this),this._$AM=r,Mt(this)):this._$AM=r}function ge(r,t=!1,e=0){const s=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(s))for(let o=e;o<s.length;o++)U(s[o],!1),Y(s[o]);else s!=null&&(U(s,!1),Y(s));else U(this,r)}const fe=r=>{r.type==rt.CHILD&&(r._$AP??(r._$AP=ge),r._$AQ??(r._$AQ=ue))};class Lt extends kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Mt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,i;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(i=this.disconnected)==null||i.call(this)),e&&(U(this,t),Y(this))}setValue(t){if(pe(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const me=new WeakMap;let _t=0;const X=new Map,bt=new WeakSet,At=()=>new Promise(r=>requestAnimationFrame(r)),$e=[{transform:"translateX(100%) scale(0)",opacity:0}],wt=(r,t)=>{const e=r-t;return e===0?void 0:e},Ct=(r,t)=>{const e=r/t;return e===1?void 0:e},J={left:(r,t)=>{const e=wt(r,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(r,t)=>{const e=wt(r,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(r,t)=>{let e;t===0&&(t=1,e={width:"1px"});const s=Ct(r,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(r,t)=>{let e;t===0&&(t=1,e={height:"1px"});const s=Ct(r,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},ve={duration:333,easing:"ease-in-out"},ye=["left","top","width","height","opacity","color","background"],xt=new WeakMap;class _e extends Lt{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===rt.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return c}getController(){return me.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var i;const s=this.u===void 0;return s&&(this.u=(i=t.options)==null?void 0:i.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,xt.set(this.element,this)),this.optionsOrCallback=e,(s||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=ye),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach(i=>{const o=e[i]??(J[i]?void 0:s[i]),n=Number(o);t[i]=isNaN(n)?o+"":n}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((s,i)=>{if(Array.isArray(s)){if(Array.isArray(i)&&i.length===s.length&&s.every((o,n)=>o===i[n]))return!1}else if(i===s)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await At;const e=this.O(),s=this.j(this.options.keyframeOptions,e),i=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,i,e);this.log("measured",[this.A,i,o,n]),t=this.calculateKeyframes(o,n)}else{const o=X.get(this.options.inId);if(o){X.delete(this.options.inId);const{from:n,to:h}=this.N(o,i,e);t=this.calculateKeyframes(n,h),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,_t++,t.forEach(a=>a.zIndex=_t)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&X.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await At(),(e=this.i)==null?void 0:e.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),this.options.stabilizeOut){const i=this.m();this.log("stabilizing out");const o=this.A.left-i.left,n=this.A.top-i.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,s;t&&((s=(e=this.options).onComplete)==null||s.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const s=xt.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=bt.has(this.u);return t||this.u.updateComplete.then(()=>{bt.add(this.u)}),t}j(t,e=this.O()){const s={...ve};return e.forEach(i=>Object.assign(s,i.options.keyframeOptions)),Object.assign(s,t),s}N(t,e,s){t={...t},e={...e};const i=s.map(h=>h.animatingProperties).filter(h=>h!==void 0);let o=1,n=1;return i.length>0&&(i.forEach(h=>{h.width&&(o/=h.width),h.height&&(n/=h.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=o*t.left,e.left=o*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=n*t.top,e.top=n*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const i={},o={};let n=!1;const h={};for(const a in e){const l=t[a],d=e[a];if(a in J){const p=J[a];if(l===void 0||d===void 0)continue;const u=p(l,d);u.transform!==void 0&&(h[a]=u.value,n=!0,i.transform=`${i.transform??""} ${u.transform}`,u.overrideFrom!==void 0&&Object.assign(i,u.overrideFrom))}else l!==d&&l!==void 0&&d!==void 0&&(n=!0,i[a]=l,o[a]=d)}return i.transformOrigin=o.transformOrigin=s?"center center":"top left",this.animatingProperties=h,n?[i,o]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),s=!0,this.webAnimation=this.element.animate(t,e);const i=this.getController();i==null||i.add(this);try{await this.webAnimation.finished}catch{}i==null||i.remove(this)}return this.didFinish(s),s}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const be=ot(_e),Ae={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
|
60
60
|
* @license
|
61
61
|
* Copyright 2018 Google LLC
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
63
|
-
*/const we=ot(class extends
|
63
|
+
*/const we=ot(class extends kt{constructor(r){var t;if(super(r),r.type!==rt.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.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((s=this.nt)!=null&&s.has(o))&&this.st.add(o);return this.render(t)}const e=r.element.classList;for(const o of this.st)o in t||(e.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(i=this.nt)!=null&&i.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return C}}),D=(r,t,e)=>{r&&e.style.setProperty(t,r)},Ht=(r,t)=>{var e,s,i,o;D((e=r.colors)==null?void 0:e.primaryBackground,"--primary-background",t),D((s=r.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),D((i=r.colors)==null?void 0:i.secondaryBackground,"--secondary-background",t),D((o=r.colors)==null?void 0:o.textOnSecondaryBackground,"--text-on-secondary-background",t)};/**
|
64
64
|
* @license
|
65
65
|
* Copyright 2020 Google LLC
|
66
66
|
* SPDX-License-Identifier: BSD-3-Clause
|
67
|
-
*/const jt=()=>new Ce;class Ce{}const Q=new WeakMap,Bt=ot(class extends Lt{render(r){return c}update(r,[t]){var s;const e=t!==this.
|
67
|
+
*/const jt=()=>new Ce;class Ce{}const Q=new WeakMap,Bt=ot(class extends Lt{render(r){return c}update(r,[t]){var s;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(s=r.options)==null?void 0:s.host,this.rt(this.ct=r.element)),c}rt(r){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=Q.get(t);e===void 0&&(e=new WeakMap,Q.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,r),r!==void 0&&this.Y.call(this.ht,r)}else this.Y.value=r}get lt(){var r,t;return typeof this.Y=="function"?(r=Q.get(this.ht??globalThis))==null?void 0:r.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var xe=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,V=(r,t,e,s)=>{for(var i=s>1?void 0:s?Ee(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&xe(t,e,i),i};class E extends f{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.containerRef=jt()}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&&Ht(this.application.settings.branding,this)}async _renderSymbol(){var h,a,l;const t=(h=this.application)==null?void 0:h.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.trigger;if(e)return b` <img src=${e} class="trigger-icon" alt="" /> `;const s=(l=this.application)==null?void 0:l.triggerIcon;if(!s)return c;const i=async d=>Ae,{type:o,content:n}=s;switch(o){case"Telia":{const d=await i();return d?b`<telia-icon
|
68
68
|
class="trigger-icon"
|
69
69
|
svg=${d.svg}
|
70
70
|
size="lg"
|
71
71
|
></telia-icon>`:c}default:return c}}render(){var t,e,s,i;return b`<div class="trigger-container" ${Bt(this.containerRef)}>
|
72
72
|
${!this.active&&((i=(s=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:s.other)!=null&&i.showButtonLabel)?b`
|
73
73
|
<button
|
74
|
+
label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
|
74
75
|
class="trigger-label"
|
75
76
|
@click=${this.toggleActive}
|
76
77
|
${be({keyframeOptions:{},in:$e,stabilizeOut:!0,skipInitial:!1})}
|
@@ -80,6 +81,7 @@
|
|
80
81
|
`:c}
|
81
82
|
|
82
83
|
<button
|
84
|
+
label="Widget trigger"
|
83
85
|
class=${we({trigger:!0,active:this.active,rendered:this.loaded})}
|
84
86
|
@click=${this.toggleActive}
|
85
87
|
>
|
@@ -233,7 +235,7 @@
|
|
233
235
|
display: block;
|
234
236
|
}
|
235
237
|
`];var nt=(r=>(r.Inline="inline",r.Trigger="trigger",r))(nt||{}),Oe=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,Ne=(r,t,e,s)=>{for(var i=s>1?void 0:s?Te(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Oe(t,e,i),i};class at extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=jt()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ht(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([s,i])=>{e.style.setProperty(`--${s}`,i)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){return this.application.renderStrategy===nt.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),b`<div class="widget-container" ${Bt(this.wrapperRef)}>
|
236
|
-
${
|
238
|
+
${Rt(this.nodes,t=>t)}
|
237
239
|
</div>`}}at.styles=x`
|
238
240
|
:host {
|
239
241
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
@@ -331,11 +333,11 @@
|
|
331
333
|
opacity: 0;
|
332
334
|
animation: slideDown 0.3s linear;
|
333
335
|
}
|
334
|
-
`;Ne([g({attribute:!1})],at.prototype,"application",2);var Ue=Object.defineProperty,
|
336
|
+
`;Ne([g({attribute:!1})],at.prototype,"application",2);var Ue=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,ht=(r,t,e,s)=>{for(var i=s>1?void 0:s?Re(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Ue(t,e,i),i};class j 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===nt.Trigger){const t=new E;return t.application=this.widget,t}return this.widget.render()}}j.styles=[x`
|
335
337
|
:host {
|
336
338
|
display: block;
|
337
339
|
}
|
338
|
-
`];ht([g({attribute:!0})],j.prototype,"name",2);ht([H()],j.prototype,"widget",2);ht([H()],j.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",it);customElements.get("ace-trigger")||customElements.define("ace-trigger",E);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",zt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",at);customElements.get("ace-widget")||customElements.define("ace-widget",j);const
|
340
|
+
`];ht([g({attribute:!0})],j.prototype,"name",2);ht([H()],j.prototype,"widget",2);ht([H()],j.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",it);customElements.get("ace-trigger")||customElements.define("ace-trigger",E);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",zt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",at);customElements.get("ace-widget")||customElements.define("ace-widget",j);const ke=r=>{const t={};return Object.keys(r).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=r[e])}),t},Me=(r,t)=>{const e=ke(t);Object.entries(e).forEach(([s,i])=>{r.style.setProperty(s.replace("css-",""),i)})};class lt extends Dt(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"),b`${Rt(this.nodes,e=>e)}`}}lt.styles=[x`
|
339
341
|
:host {
|
340
342
|
height: 100%;
|
341
343
|
display: grid;
|
@@ -23,7 +23,7 @@ let Et = class {
|
|
23
23
|
return this.cssText;
|
24
24
|
}
|
25
25
|
};
|
26
|
-
const zt = (r) => new Et(typeof r == "string" ? r : r + "", void 0, et),
|
26
|
+
const zt = (r) => new Et(typeof r == "string" ? r : r + "", void 0, et), C = (r, ...t) => {
|
27
27
|
const e = r.length === 1 ? r[0] : t.reduce((s, i, o) => s + ((n) => {
|
28
28
|
if (n._$cssResult$ === !0)
|
29
29
|
return n.cssText;
|
@@ -51,10 +51,10 @@ const zt = (r) => new Et(typeof r == "string" ? r : r + "", void 0, et), x = (r,
|
|
51
51
|
* Copyright 2017 Google LLC
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
53
53
|
*/
|
54
|
-
const { is:
|
54
|
+
const { is: Wt, defineProperty: Yt, getOwnPropertyDescriptor: Ft, getOwnPropertyNames: Vt, getOwnPropertySymbols: qt, getPrototypeOf: Zt } = Object, v = globalThis, dt = v.trustedTypes, Kt = dt ? dt.emptyScript : "", q = v.reactiveElementPolyfillSupport, T = (r, t) => r, I = { toAttribute(r, t) {
|
55
55
|
switch (t) {
|
56
56
|
case Boolean:
|
57
|
-
r = r ?
|
57
|
+
r = r ? Kt : null;
|
58
58
|
break;
|
59
59
|
case Object:
|
60
60
|
case Array:
|
@@ -79,7 +79,7 @@ const { is: Ft, defineProperty: Wt, getOwnPropertyDescriptor: Gt, getOwnProperty
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
return e;
|
82
|
-
} }, st = (r, t) => !
|
82
|
+
} }, st = (r, t) => !Wt(r, t), pt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: st };
|
83
83
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), v.litPropertyMetadata ?? (v.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
84
|
let S = class extends HTMLElement {
|
85
85
|
static addInitializer(t) {
|
@@ -91,11 +91,11 @@ let S = class extends HTMLElement {
|
|
91
91
|
static createProperty(t, e = pt) {
|
92
92
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
93
93
|
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
94
|
-
i !== void 0 &&
|
94
|
+
i !== void 0 && Yt(this.prototype, t, i);
|
95
95
|
}
|
96
96
|
}
|
97
97
|
static getPropertyDescriptor(t, e, s) {
|
98
|
-
const { get: i, set: o } =
|
98
|
+
const { get: i, set: o } = Ft(this.prototype, t) ?? { get() {
|
99
99
|
return this[e];
|
100
100
|
}, set(n) {
|
101
101
|
this[e] = n;
|
@@ -113,7 +113,7 @@ let S = class extends HTMLElement {
|
|
113
113
|
static _$Ei() {
|
114
114
|
if (this.hasOwnProperty(T("elementProperties")))
|
115
115
|
return;
|
116
|
-
const t =
|
116
|
+
const t = Zt(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() {
|
@@ -157,15 +157,15 @@ let S = class extends HTMLElement {
|
|
157
157
|
}
|
158
158
|
_$Ev() {
|
159
159
|
var t;
|
160
|
-
this._$
|
160
|
+
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
161
161
|
}
|
162
162
|
addController(t) {
|
163
163
|
var e;
|
164
|
-
(this._$
|
164
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
165
165
|
}
|
166
166
|
removeController(t) {
|
167
167
|
var e;
|
168
|
-
(e = this._$
|
168
|
+
(e = this._$EO) == null || e.delete(t);
|
169
169
|
}
|
170
170
|
_$E_() {
|
171
171
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
@@ -179,7 +179,7 @@ let S = class extends HTMLElement {
|
|
179
179
|
}
|
180
180
|
connectedCallback() {
|
181
181
|
var t;
|
182
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$
|
182
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
183
183
|
var s;
|
184
184
|
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
185
185
|
});
|
@@ -188,7 +188,7 @@ let S = class extends HTMLElement {
|
|
188
188
|
}
|
189
189
|
disconnectedCallback() {
|
190
190
|
var t;
|
191
|
-
(t = this._$
|
191
|
+
(t = this._$EO) == null || t.forEach((e) => {
|
192
192
|
var s;
|
193
193
|
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
194
194
|
});
|
@@ -196,7 +196,7 @@ let S = class extends HTMLElement {
|
|
196
196
|
attributeChangedCallback(t, e, s) {
|
197
197
|
this._$AK(t, s);
|
198
198
|
}
|
199
|
-
_$
|
199
|
+
_$EC(t, e) {
|
200
200
|
var o;
|
201
201
|
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
202
202
|
if (i !== void 0 && s.reflect === !0) {
|
@@ -212,21 +212,21 @@ let S = class extends HTMLElement {
|
|
212
212
|
this._$Em = i, this[i] = h.fromAttribute(e, n.type), this._$Em = null;
|
213
213
|
}
|
214
214
|
}
|
215
|
-
requestUpdate(t, e, s
|
215
|
+
requestUpdate(t, e, s) {
|
216
216
|
if (t !== void 0) {
|
217
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? st)(
|
217
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? st)(this[t], e))
|
218
218
|
return;
|
219
|
-
this.
|
219
|
+
this.P(t, e, s);
|
220
220
|
}
|
221
|
-
this.isUpdatePending === !1 && (this._$
|
221
|
+
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
222
222
|
}
|
223
|
-
|
223
|
+
P(t, e, s) {
|
224
224
|
this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
225
225
|
}
|
226
|
-
async _$
|
226
|
+
async _$ET() {
|
227
227
|
this.isUpdatePending = !0;
|
228
228
|
try {
|
229
|
-
await this._$
|
229
|
+
await this._$ES;
|
230
230
|
} catch (e) {
|
231
231
|
Promise.reject(e);
|
232
232
|
}
|
@@ -241,7 +241,7 @@ let S = class extends HTMLElement {
|
|
241
241
|
if (!this.isUpdatePending)
|
242
242
|
return;
|
243
243
|
if (!this.hasUpdated) {
|
244
|
-
if (this._$Ep) {
|
244
|
+
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
245
245
|
for (const [o, n] of this._$Ep)
|
246
246
|
this[o] = n;
|
247
247
|
this._$Ep = void 0;
|
@@ -249,17 +249,17 @@ let S = class extends HTMLElement {
|
|
249
249
|
const i = this.constructor.elementProperties;
|
250
250
|
if (i.size > 0)
|
251
251
|
for (const [o, n] of i)
|
252
|
-
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.
|
252
|
+
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
253
253
|
}
|
254
254
|
let t = !1;
|
255
255
|
const e = this._$AL;
|
256
256
|
try {
|
257
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$
|
257
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
|
258
258
|
var o;
|
259
259
|
return (o = i.hostUpdate) == null ? void 0 : o.call(i);
|
260
|
-
}), this.update(e)) : this._$
|
260
|
+
}), this.update(e)) : this._$EU();
|
261
261
|
} catch (i) {
|
262
|
-
throw t = !1, this._$
|
262
|
+
throw t = !1, this._$EU(), i;
|
263
263
|
}
|
264
264
|
t && this._$AE(e);
|
265
265
|
}
|
@@ -267,40 +267,40 @@ let S = class extends HTMLElement {
|
|
267
267
|
}
|
268
268
|
_$AE(t) {
|
269
269
|
var e;
|
270
|
-
(e = this._$
|
270
|
+
(e = this._$EO) == null || e.forEach((s) => {
|
271
271
|
var i;
|
272
272
|
return (i = s.hostUpdated) == null ? void 0 : i.call(s);
|
273
273
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
274
274
|
}
|
275
|
-
_$
|
275
|
+
_$EU() {
|
276
276
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
277
277
|
}
|
278
278
|
get updateComplete() {
|
279
279
|
return this.getUpdateComplete();
|
280
280
|
}
|
281
281
|
getUpdateComplete() {
|
282
|
-
return this._$
|
282
|
+
return this._$ES;
|
283
283
|
}
|
284
284
|
shouldUpdate(t) {
|
285
285
|
return !0;
|
286
286
|
}
|
287
287
|
update(t) {
|
288
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$
|
288
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
|
289
289
|
}
|
290
290
|
updated(t) {
|
291
291
|
}
|
292
292
|
firstUpdated(t) {
|
293
293
|
}
|
294
294
|
};
|
295
|
-
S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[T("elementProperties")] = /* @__PURE__ */ new Map(), S[T("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: S }), (v.reactiveElementVersions ?? (v.reactiveElementVersions = [])).push("2.0.
|
295
|
+
S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[T("elementProperties")] = /* @__PURE__ */ new Map(), S[T("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: S }), (v.reactiveElementVersions ?? (v.reactiveElementVersions = [])).push("2.0.4");
|
296
296
|
/**
|
297
297
|
* @license
|
298
298
|
* Copyright 2017 Google LLC
|
299
299
|
* SPDX-License-Identifier: BSD-3-Clause
|
300
300
|
*/
|
301
|
-
const N = globalThis,
|
302
|
-
\f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, gt = /-->/g, ft = />/g, y = RegExp(`>|${
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, $t = /"/g, Tt = /^(?:script|style|textarea|title)$/i, Jt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), b = Jt(1),
|
301
|
+
const N = globalThis, W = N.trustedTypes, ut = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, St = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, Pt = "?" + $, Gt = `<${Pt}>`, w = document, R = () => w.createComment(""), k = (r) => r === null || typeof r != "object" && typeof r != "function", Ot = Array.isArray, Xt = (r) => Ot(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Z = `[
|
302
|
+
\f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, gt = /-->/g, ft = />/g, y = RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, $t = /"/g, Tt = /^(?:script|style|textarea|title)$/i, Jt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), b = Jt(1), x = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), vt = /* @__PURE__ */ new WeakMap(), A = w.createTreeWalker(w, 129);
|
304
304
|
function Nt(r, t) {
|
305
305
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
@@ -315,7 +315,7 @@ const Qt = (r, t) => {
|
|
315
315
|
for (; u < a.length && (n.lastIndex = u, d = n.exec(a), d !== null); )
|
316
316
|
u = n.lastIndex, n === O ? d[1] === "!--" ? n = gt : d[1] !== void 0 ? n = ft : d[2] !== void 0 ? (Tt.test(d[2]) && (i = RegExp("</" + d[2], "g")), n = y) : d[3] !== void 0 && (n = y) : n === y ? d[0] === ">" ? (n = i ?? O, p = -1) : d[1] === void 0 ? p = -2 : (p = n.lastIndex - d[2].length, l = d[1], n = d[3] === void 0 ? y : d[3] === '"' ? $t : mt) : n === $t || n === mt ? n = y : n === gt || n === ft ? n = O : (n = y, i = void 0);
|
317
317
|
const m = n === y && r[h + 1].startsWith("/>") ? " " : "";
|
318
|
-
o += n === O ? a +
|
318
|
+
o += n === O ? a + Gt : p >= 0 ? (s.push(l), a.slice(0, p) + St + a.slice(p) + $ + m) : a + $ + (p === -2 ? h : m);
|
319
319
|
}
|
320
320
|
return [Nt(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
321
321
|
};
|
@@ -335,16 +335,16 @@ class M {
|
|
335
335
|
for (const p of i.getAttributeNames())
|
336
336
|
if (p.endsWith(St)) {
|
337
337
|
const u = d[n++], m = i.getAttribute(p).split($), B = /([.?@])?(.*)/.exec(u);
|
338
|
-
a.push({ type: 1, index: o, name: B[2], strings: m, ctor: B[1] === "." ? ee : B[1] === "?" ? se : B[1] === "@" ? ie :
|
338
|
+
a.push({ type: 1, index: o, name: B[2], strings: m, ctor: B[1] === "." ? ee : B[1] === "?" ? se : B[1] === "@" ? ie : F }), i.removeAttribute(p);
|
339
339
|
} else
|
340
340
|
p.startsWith($) && (a.push({ type: 6, index: o }), i.removeAttribute(p));
|
341
341
|
if (Tt.test(i.tagName)) {
|
342
342
|
const p = i.textContent.split($), u = p.length - 1;
|
343
343
|
if (u > 0) {
|
344
|
-
i.textContent =
|
344
|
+
i.textContent = W ? W.emptyScript : "";
|
345
345
|
for (let m = 0; m < u; m++)
|
346
|
-
i.append(p[m],
|
347
|
-
i.append(p[u],
|
346
|
+
i.append(p[m], R()), A.nextNode(), a.push({ type: 2, index: ++o });
|
347
|
+
i.append(p[u], R());
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (i.nodeType === 8)
|
@@ -365,10 +365,10 @@ class M {
|
|
365
365
|
}
|
366
366
|
function P(r, t, e = r, s) {
|
367
367
|
var n, h;
|
368
|
-
if (t ===
|
368
|
+
if (t === x)
|
369
369
|
return t;
|
370
370
|
let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
|
371
|
-
const o =
|
371
|
+
const o = k(t) ? void 0 : t._$litDirective$;
|
372
372
|
return (i == null ? void 0 : i.constructor) !== o && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = P(r, i._$AS(r, t.values), i, s)), t;
|
373
373
|
}
|
374
374
|
class te {
|
@@ -420,37 +420,37 @@ class L {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t = P(this, t, e),
|
423
|
+
t = P(this, t, e), k(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== x && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Xt(t) ? this.k(t) : this._(t);
|
424
424
|
}
|
425
|
-
|
425
|
+
S(t) {
|
426
426
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
427
427
|
}
|
428
|
-
|
429
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
428
|
+
T(t) {
|
429
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !== c &&
|
432
|
+
this._$AH !== c && k(this._$AH) ? this._$AA.nextSibling.data = t : this.T(w.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
|
-
|
434
|
+
$(t) {
|
435
435
|
var o;
|
436
436
|
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = M.createElement(Nt(s.h, s.h[0]), this.options)), s);
|
437
437
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === i)
|
438
438
|
this._$AH.p(e);
|
439
439
|
else {
|
440
440
|
const n = new te(i, this), h = n.u(this.options);
|
441
|
-
n.p(e), this
|
441
|
+
n.p(e), this.T(h), this._$AH = n;
|
442
442
|
}
|
443
443
|
}
|
444
444
|
_$AC(t) {
|
445
445
|
let e = vt.get(t.strings);
|
446
446
|
return e === void 0 && vt.set(t.strings, e = new M(t)), e;
|
447
447
|
}
|
448
|
-
|
448
|
+
k(t) {
|
449
449
|
Ot(this._$AH) || (this._$AH = [], this._$AR());
|
450
450
|
const e = this._$AH;
|
451
451
|
let s, i = 0;
|
452
452
|
for (const o of t)
|
453
|
-
i === e.length ? e.push(s = new L(this.
|
453
|
+
i === e.length ? e.push(s = new L(this.S(R()), this.S(R()), this, this.options)) : s = e[i], s._$AI(o), i++;
|
454
454
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
455
455
|
}
|
456
456
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -465,7 +465,7 @@ class L {
|
|
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 F {
|
469
469
|
get tagName() {
|
470
470
|
return this.element.tagName;
|
471
471
|
}
|
@@ -479,41 +479,41 @@ class G {
|
|
479
479
|
const o = this.strings;
|
480
480
|
let n = !1;
|
481
481
|
if (o === void 0)
|
482
|
-
t = P(this, t, e, 0), n = !
|
482
|
+
t = P(this, t, e, 0), n = !k(t) || t !== this._$AH && t !== x, n && (this._$AH = t);
|
483
483
|
else {
|
484
484
|
const h = t;
|
485
485
|
let a, l;
|
486
486
|
for (t = o[0], a = 0; a < o.length - 1; a++)
|
487
|
-
l = P(this, h[s + a], e, a), l ===
|
487
|
+
l = P(this, h[s + a], e, a), l === x && (l = this._$AH[a]), n || (n = !k(l) || l !== this._$AH[a]), l === c ? t = c : t !== c && (t += (l ?? "") + o[a + 1]), this._$AH[a] = l;
|
488
488
|
}
|
489
|
-
n && !i && this.
|
489
|
+
n && !i && this.j(t);
|
490
490
|
}
|
491
|
-
|
491
|
+
j(t) {
|
492
492
|
t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
|
-
class ee extends
|
495
|
+
class ee extends F {
|
496
496
|
constructor() {
|
497
497
|
super(...arguments), this.type = 3;
|
498
498
|
}
|
499
|
-
|
499
|
+
j(t) {
|
500
500
|
this.element[this.name] = t === c ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
|
-
class se extends
|
503
|
+
class se extends F {
|
504
504
|
constructor() {
|
505
505
|
super(...arguments), this.type = 4;
|
506
506
|
}
|
507
|
-
|
507
|
+
j(t) {
|
508
508
|
this.element.toggleAttribute(this.name, !!t && t !== c);
|
509
509
|
}
|
510
510
|
}
|
511
|
-
class ie extends
|
511
|
+
class ie extends F {
|
512
512
|
constructor(t, e, s, i, o) {
|
513
513
|
super(t, e, s, i, o), this.type = 5;
|
514
514
|
}
|
515
515
|
_$AI(t, e = this) {
|
516
|
-
if ((t = P(this, t, e, 0) ?? c) ===
|
516
|
+
if ((t = P(this, t, e, 0) ?? c) === x)
|
517
517
|
return;
|
518
518
|
const s = this._$AH, i = t === c && s !== c || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== c && (s === c || i);
|
519
519
|
i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
@@ -534,14 +534,14 @@ class re {
|
|
534
534
|
P(this, t);
|
535
535
|
}
|
536
536
|
}
|
537
|
-
const
|
538
|
-
|
537
|
+
const K = N.litHtmlPolyfillSupport;
|
538
|
+
K == null || K(M, L), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.1.2");
|
539
539
|
const oe = (r, t, e) => {
|
540
540
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
541
541
|
let i = s._$litPart$;
|
542
542
|
if (i === void 0) {
|
543
543
|
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
-
s._$litPart$ = i = new L(t.insertBefore(
|
544
|
+
s._$litPart$ = i = new L(t.insertBefore(R(), o), o, void 0, e ?? {});
|
545
545
|
}
|
546
546
|
return i._$AI(r), i;
|
547
547
|
};
|
@@ -572,14 +572,14 @@ let f = class extends S {
|
|
572
572
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
573
573
|
}
|
574
574
|
render() {
|
575
|
-
return
|
575
|
+
return x;
|
576
576
|
}
|
577
577
|
};
|
578
|
-
var
|
579
|
-
f._$litElement$ = !0, f.finalized = !0, (
|
580
|
-
const
|
581
|
-
|
582
|
-
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.
|
578
|
+
var Ct;
|
579
|
+
f._$litElement$ = !0, f.finalized = !0, (Ct = globalThis.litElementHydrateSupport) == null || Ct.call(globalThis, { LitElement: f });
|
580
|
+
const G = globalThis.litElementPolyfillSupport;
|
581
|
+
G == null || G({ LitElement: f });
|
582
|
+
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
583
583
|
/**
|
584
584
|
* @license
|
585
585
|
* Copyright 2021 Google LLC
|
@@ -606,7 +606,7 @@ const ne = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged:
|
|
606
606
|
const a = t.get.call(this);
|
607
607
|
t.set.call(this, h), this.requestUpdate(n, a, r);
|
608
608
|
}, init(h) {
|
609
|
-
return h !== void 0 && this.
|
609
|
+
return h !== void 0 && this.P(n, void 0, r), h;
|
610
610
|
} };
|
611
611
|
}
|
612
612
|
if (s === "setter") {
|
@@ -650,7 +650,7 @@ class it extends f {
|
|
650
650
|
}
|
651
651
|
}
|
652
652
|
it.styles = [
|
653
|
-
|
653
|
+
C`
|
654
654
|
:host {
|
655
655
|
position: fixed;
|
656
656
|
display: flex;
|
@@ -677,7 +677,7 @@ ce([
|
|
677
677
|
* SPDX-License-Identifier: BSD-3-Clause
|
678
678
|
*/
|
679
679
|
const rt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ot = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
680
|
-
let
|
680
|
+
let Rt = class {
|
681
681
|
constructor(t) {
|
682
682
|
}
|
683
683
|
get _$AU() {
|
@@ -712,14 +712,14 @@ const U = (r, t) => {
|
|
712
712
|
for (const i of e)
|
713
713
|
(s = i._$AO) == null || s.call(i, t, !1), U(i, t);
|
714
714
|
return !0;
|
715
|
-
},
|
715
|
+
}, Y = (r) => {
|
716
716
|
let t, e;
|
717
717
|
do {
|
718
718
|
if ((t = r._$AM) === void 0)
|
719
719
|
break;
|
720
720
|
e = t._$AN, e.delete(r), r = t;
|
721
721
|
} while ((e == null ? void 0 : e.size) === 0);
|
722
|
-
},
|
722
|
+
}, kt = (r) => {
|
723
723
|
for (let t; t = r._$AM; r = t) {
|
724
724
|
let e = t._$AN;
|
725
725
|
if (e === void 0)
|
@@ -730,7 +730,7 @@ const U = (r, t) => {
|
|
730
730
|
}
|
731
731
|
};
|
732
732
|
function pe(r) {
|
733
|
-
this._$AN !== void 0 ? (
|
733
|
+
this._$AN !== void 0 ? (Y(this), this._$AM = r, kt(this)) : this._$AM = r;
|
734
734
|
}
|
735
735
|
function ue(r, t = !1, e = 0) {
|
736
736
|
const s = this._$AH, i = this._$AN;
|
@@ -738,25 +738,25 @@ function ue(r, t = !1, e = 0) {
|
|
738
738
|
if (t)
|
739
739
|
if (Array.isArray(s))
|
740
740
|
for (let o = e; o < s.length; o++)
|
741
|
-
U(s[o], !1),
|
741
|
+
U(s[o], !1), Y(s[o]);
|
742
742
|
else
|
743
|
-
s != null && (U(s, !1),
|
743
|
+
s != null && (U(s, !1), Y(s));
|
744
744
|
else
|
745
745
|
U(this, r);
|
746
746
|
}
|
747
747
|
const ge = (r) => {
|
748
748
|
r.type == rt.CHILD && (r._$AP ?? (r._$AP = ue), r._$AQ ?? (r._$AQ = pe));
|
749
749
|
};
|
750
|
-
class Mt extends
|
750
|
+
class Mt extends Rt {
|
751
751
|
constructor() {
|
752
752
|
super(...arguments), this._$AN = void 0;
|
753
753
|
}
|
754
754
|
_$AT(t, e, s) {
|
755
|
-
super._$AT(t, e, s),
|
755
|
+
super._$AT(t, e, s), kt(this), this.isConnected = t._$AU;
|
756
756
|
}
|
757
757
|
_$AO(t, e = !0) {
|
758
758
|
var s, i;
|
759
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (U(this, t),
|
759
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (U(this, t), Y(this));
|
760
760
|
}
|
761
761
|
setValue(t) {
|
762
762
|
if (de(this._$Ct))
|
@@ -795,28 +795,28 @@ const X = /* @__PURE__ */ new Map(), _t = /* @__PURE__ */ new WeakSet(), bt = ()
|
|
795
795
|
t === 0 && (t = 1, e = { height: "1px" });
|
796
796
|
const s = wt(r, t);
|
797
797
|
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
798
|
-
} }, $e = { duration: 333, easing: "ease-in-out" }, ve = ["left", "top", "width", "height", "opacity", "color", "background"],
|
798
|
+
} }, $e = { duration: 333, easing: "ease-in-out" }, ve = ["left", "top", "width", "height", "opacity", "color", "background"], xt = /* @__PURE__ */ new WeakMap();
|
799
799
|
class ye extends Mt {
|
800
800
|
constructor(t) {
|
801
|
-
if (super(t), this.t =
|
801
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === rt.CHILD)
|
802
802
|
throw Error("The `animate` directive must be used in attribute position.");
|
803
803
|
this.createFinished();
|
804
804
|
}
|
805
805
|
createFinished() {
|
806
806
|
var t;
|
807
807
|
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
|
808
|
-
this.
|
808
|
+
this.l = e;
|
809
809
|
});
|
810
810
|
}
|
811
811
|
async resolveFinished() {
|
812
812
|
var t;
|
813
|
-
(t = this.
|
813
|
+
(t = this.l) == null || t.call(this), this.l = void 0;
|
814
814
|
}
|
815
815
|
render(t) {
|
816
816
|
return c;
|
817
817
|
}
|
818
818
|
getController() {
|
819
|
-
return fe.get(this.
|
819
|
+
return fe.get(this.u);
|
820
820
|
}
|
821
821
|
isDisabled() {
|
822
822
|
var t;
|
@@ -824,22 +824,22 @@ class ye extends Mt {
|
|
824
824
|
}
|
825
825
|
update(t, [e]) {
|
826
826
|
var i;
|
827
|
-
const s = this.
|
828
|
-
return s && (this.
|
827
|
+
const s = this.u === void 0;
|
828
|
+
return s && (this.u = (i = t.options) == null ? void 0 : i.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, xt.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.p(e), this.render(e);
|
829
829
|
}
|
830
|
-
|
830
|
+
p(t) {
|
831
831
|
t = t ?? {};
|
832
832
|
const e = this.getController();
|
833
833
|
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = ve), this.options = t;
|
834
834
|
}
|
835
|
-
|
835
|
+
m() {
|
836
836
|
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
837
837
|
return this.options.properties.forEach((i) => {
|
838
838
|
const o = e[i] ?? (J[i] ? void 0 : s[i]), n = Number(o);
|
839
839
|
t[i] = isNaN(n) ? o + "" : n;
|
840
840
|
}), t;
|
841
841
|
}
|
842
|
-
|
842
|
+
v() {
|
843
843
|
let t, e = !0;
|
844
844
|
return this.options.guard && (t = this.options.guard(), e = ((s, i) => {
|
845
845
|
if (Array.isArray(s)) {
|
@@ -848,25 +848,25 @@ class ye extends Mt {
|
|
848
848
|
} else if (i === s)
|
849
849
|
return !1;
|
850
850
|
return !0;
|
851
|
-
})(t, this.
|
851
|
+
})(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
|
852
852
|
}
|
853
853
|
hostUpdate() {
|
854
|
-
typeof this.optionsOrCallback == "function" && this.
|
854
|
+
typeof this.optionsOrCallback == "function" && this.p(this.optionsOrCallback()), this.v() && (this.A = this.m(), this.i = this.i ?? this.element.parentNode, this.o = this.element.nextSibling);
|
855
855
|
}
|
856
856
|
async hostUpdated() {
|
857
|
-
if (!this.
|
857
|
+
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
858
858
|
return;
|
859
859
|
let t;
|
860
860
|
this.prepare(), await bt;
|
861
|
-
const e = this.
|
862
|
-
if (this.
|
863
|
-
const { from: o, to: n } = this.
|
864
|
-
this.log("measured", [this.
|
861
|
+
const e = this.O(), s = this.j(this.options.keyframeOptions, e), i = this.m();
|
862
|
+
if (this.A !== void 0) {
|
863
|
+
const { from: o, to: n } = this.N(this.A, i, e);
|
864
|
+
this.log("measured", [this.A, i, o, n]), t = this.calculateKeyframes(o, n);
|
865
865
|
} else {
|
866
866
|
const o = X.get(this.options.inId);
|
867
867
|
if (o) {
|
868
868
|
X.delete(this.options.inId);
|
869
|
-
const { from: n, to: h } = this.
|
869
|
+
const { from: n, to: h } = this.N(o, i, e);
|
870
870
|
t = this.calculateKeyframes(n, h), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, yt++, t.forEach((a) => a.zIndex = yt);
|
871
871
|
} else
|
872
872
|
this.options.in && (t = [...this.options.in, {}]);
|
@@ -874,28 +874,28 @@ class ye extends Mt {
|
|
874
874
|
this.animate(t, s);
|
875
875
|
}
|
876
876
|
resetStyles() {
|
877
|
-
this.
|
877
|
+
this.P !== void 0 && (this.element.setAttribute("style", this.P ?? ""), this.P = void 0);
|
878
878
|
}
|
879
879
|
commitStyles() {
|
880
880
|
var t, e;
|
881
|
-
this.
|
881
|
+
this.P = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (e = this.webAnimation) == null || e.cancel();
|
882
882
|
}
|
883
883
|
reconnected() {
|
884
884
|
}
|
885
885
|
async disconnected() {
|
886
886
|
var e;
|
887
|
-
if (!this.
|
887
|
+
if (!this.h || (this.options.id !== void 0 && X.set(this.options.id, this.A), this.options.out === void 0))
|
888
888
|
return;
|
889
|
-
if (this.prepare(), await bt(), (e = this.
|
890
|
-
const s = this.
|
891
|
-
if (this.
|
892
|
-
const i = this.
|
889
|
+
if (this.prepare(), await bt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
890
|
+
const s = this.o && this.o.parentNode === this.i ? this.o : null;
|
891
|
+
if (this.i.insertBefore(this.element, s), this.options.stabilizeOut) {
|
892
|
+
const i = this.m();
|
893
893
|
this.log("stabilizing out");
|
894
|
-
const o = this.
|
894
|
+
const o = this.A.left - i.left, n = this.A.top - i.top;
|
895
895
|
getComputedStyle(this.element).position !== "static" || o === 0 && n === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), n !== 0 && (this.element.style.top = n + "px");
|
896
896
|
}
|
897
897
|
}
|
898
|
-
const t = this.
|
898
|
+
const t = this.j(this.options.keyframeOptions);
|
899
899
|
await this.animate(this.options.out, t), this.element.remove();
|
900
900
|
}
|
901
901
|
prepare() {
|
@@ -907,31 +907,31 @@ class ye extends Mt {
|
|
907
907
|
}
|
908
908
|
didFinish(t) {
|
909
909
|
var e, s;
|
910
|
-
t && ((s = (e = this.options).onComplete) == null || s.call(e, this)), this.
|
910
|
+
t && ((s = (e = this.options).onComplete) == null || s.call(e, this)), this.A = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
|
911
911
|
}
|
912
|
-
|
912
|
+
O() {
|
913
913
|
const t = [];
|
914
914
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
915
|
-
const s =
|
915
|
+
const s = xt.get(e);
|
916
916
|
s && !s.isDisabled() && s && t.push(s);
|
917
917
|
}
|
918
918
|
return t;
|
919
919
|
}
|
920
920
|
get isHostRendered() {
|
921
|
-
const t = _t.has(this.
|
922
|
-
return t || this.
|
923
|
-
_t.add(this.
|
921
|
+
const t = _t.has(this.u);
|
922
|
+
return t || this.u.updateComplete.then(() => {
|
923
|
+
_t.add(this.u);
|
924
924
|
}), t;
|
925
925
|
}
|
926
|
-
|
926
|
+
j(t, e = this.O()) {
|
927
927
|
const s = { ...$e };
|
928
928
|
return e.forEach((i) => Object.assign(s, i.options.keyframeOptions)), Object.assign(s, t), s;
|
929
929
|
}
|
930
|
-
|
930
|
+
N(t, e, s) {
|
931
931
|
t = { ...t }, e = { ...e };
|
932
932
|
const i = s.map((h) => h.animatingProperties).filter((h) => h !== void 0);
|
933
933
|
let o = 1, n = 1;
|
934
|
-
return i
|
934
|
+
return i.length > 0 && (i.forEach((h) => {
|
935
935
|
h.width && (o /= h.width), h.height && (n /= h.height);
|
936
936
|
}), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
|
937
937
|
}
|
@@ -981,7 +981,7 @@ const _e = ot(ye), be = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns
|
|
981
981
|
* Copyright 2018 Google LLC
|
982
982
|
* SPDX-License-Identifier: BSD-3-Clause
|
983
983
|
*/
|
984
|
-
const Ae = ot(class extends
|
984
|
+
const Ae = ot(class extends Rt {
|
985
985
|
constructor(r) {
|
986
986
|
var t;
|
987
987
|
if (super(r), r.type !== rt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
@@ -992,20 +992,20 @@ const Ae = ot(class extends kt {
|
|
992
992
|
}
|
993
993
|
update(r, [t]) {
|
994
994
|
var s, i;
|
995
|
-
if (this.
|
996
|
-
this.
|
995
|
+
if (this.st === void 0) {
|
996
|
+
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
997
997
|
for (const o in t)
|
998
|
-
t[o] && !((s = this.
|
998
|
+
t[o] && !((s = this.nt) != null && s.has(o)) && this.st.add(o);
|
999
999
|
return this.render(t);
|
1000
1000
|
}
|
1001
1001
|
const e = r.element.classList;
|
1002
|
-
for (const o of this.
|
1003
|
-
o in t || (e.remove(o), this.
|
1002
|
+
for (const o of this.st)
|
1003
|
+
o in t || (e.remove(o), this.st.delete(o));
|
1004
1004
|
for (const o in t) {
|
1005
1005
|
const n = !!t[o];
|
1006
|
-
n === this.
|
1006
|
+
n === this.st.has(o) || (i = this.nt) != null && i.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
|
1007
1007
|
}
|
1008
|
-
return
|
1008
|
+
return x;
|
1009
1009
|
}
|
1010
1010
|
}), D = (r, t, e) => {
|
1011
1011
|
r && e.style.setProperty(t, r);
|
@@ -1039,32 +1039,32 @@ const Q = /* @__PURE__ */ new WeakMap(), jt = ot(class extends Mt {
|
|
1039
1039
|
}
|
1040
1040
|
update(r, [t]) {
|
1041
1041
|
var s;
|
1042
|
-
const e = t !== this.
|
1043
|
-
return e && this.
|
1042
|
+
const e = t !== this.Y;
|
1043
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (s = r.options) == null ? void 0 : s.host, this.rt(this.ct = r.element)), c;
|
1044
1044
|
}
|
1045
|
-
|
1046
|
-
if (typeof this.
|
1047
|
-
const t = this.
|
1045
|
+
rt(r) {
|
1046
|
+
if (typeof this.Y == "function") {
|
1047
|
+
const t = this.ht ?? globalThis;
|
1048
1048
|
let e = Q.get(t);
|
1049
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Q.set(t, e)), e.get(this.
|
1049
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Q.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, r), r !== void 0 && this.Y.call(this.ht, r);
|
1050
1050
|
} else
|
1051
|
-
this.
|
1051
|
+
this.Y.value = r;
|
1052
1052
|
}
|
1053
|
-
get
|
1053
|
+
get lt() {
|
1054
1054
|
var r, t;
|
1055
|
-
return typeof this.
|
1055
|
+
return typeof this.Y == "function" ? (r = Q.get(this.ht ?? globalThis)) == null ? void 0 : r.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
1056
1056
|
}
|
1057
1057
|
disconnected() {
|
1058
|
-
this.
|
1058
|
+
this.lt === this.ct && this.rt(void 0);
|
1059
1059
|
}
|
1060
1060
|
reconnected() {
|
1061
|
-
this.
|
1061
|
+
this.rt(this.ct);
|
1062
1062
|
}
|
1063
1063
|
});
|
1064
|
-
var
|
1065
|
-
for (var i = s > 1 ? void 0 : s ?
|
1064
|
+
var xe = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, V = (r, t, e, s) => {
|
1065
|
+
for (var i = s > 1 ? void 0 : s ? Ce(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1066
1066
|
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1067
|
-
return s && i &&
|
1067
|
+
return s && i && xe(t, e, i), i;
|
1068
1068
|
};
|
1069
1069
|
class E extends f {
|
1070
1070
|
constructor() {
|
@@ -1114,6 +1114,7 @@ class E extends f {
|
|
1114
1114
|
return b`<div class="trigger-container" ${jt(this.containerRef)}>
|
1115
1115
|
${!this.active && ((i = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && i.showButtonLabel) ? b`
|
1116
1116
|
<button
|
1117
|
+
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1117
1118
|
class="trigger-label"
|
1118
1119
|
@click=${this.toggleActive}
|
1119
1120
|
${_e({
|
@@ -1128,6 +1129,7 @@ class E extends f {
|
|
1128
1129
|
` : c}
|
1129
1130
|
|
1130
1131
|
<button
|
1132
|
+
label="Widget trigger"
|
1131
1133
|
class=${Ae({
|
1132
1134
|
trigger: !0,
|
1133
1135
|
active: this.active,
|
@@ -1168,7 +1170,7 @@ class E extends f {
|
|
1168
1170
|
}
|
1169
1171
|
}
|
1170
1172
|
E.styles = [
|
1171
|
-
|
1173
|
+
C`
|
1172
1174
|
:host {
|
1173
1175
|
--voca-rem-multiplier: 0.625;
|
1174
1176
|
--trigger-label-bg: #f5e0ff;
|
@@ -1317,7 +1319,7 @@ const Bt = (r) => {
|
|
1317
1319
|
}
|
1318
1320
|
return t.styles = [
|
1319
1321
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1320
|
-
|
1322
|
+
C`
|
1321
1323
|
:host {
|
1322
1324
|
font-family: var(--font-family);
|
1323
1325
|
grid-column: span var(--width);
|
@@ -1352,7 +1354,7 @@ class Dt extends Bt(f) {
|
|
1352
1354
|
}
|
1353
1355
|
}
|
1354
1356
|
Dt.styles = [
|
1355
|
-
|
1357
|
+
C`
|
1356
1358
|
:host {
|
1357
1359
|
display: block;
|
1358
1360
|
}
|
@@ -1393,7 +1395,7 @@ class at extends f {
|
|
1393
1395
|
</div>`;
|
1394
1396
|
}
|
1395
1397
|
}
|
1396
|
-
at.styles =
|
1398
|
+
at.styles = C`
|
1397
1399
|
:host {
|
1398
1400
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1399
1401
|
--spacing-xs: 0.2rem;
|
@@ -1532,7 +1534,7 @@ class j extends f {
|
|
1532
1534
|
}
|
1533
1535
|
}
|
1534
1536
|
j.styles = [
|
1535
|
-
|
1537
|
+
C`
|
1536
1538
|
:host {
|
1537
1539
|
display: block;
|
1538
1540
|
}
|
@@ -1552,13 +1554,13 @@ customElements.get("ace-trigger") || customElements.define("ace-trigger", E);
|
|
1552
1554
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Dt);
|
1553
1555
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", at);
|
1554
1556
|
customElements.get("ace-widget") || customElements.define("ace-widget", j);
|
1555
|
-
const
|
1557
|
+
const Re = (r) => {
|
1556
1558
|
const t = {};
|
1557
1559
|
return Object.keys(r).forEach((e) => {
|
1558
1560
|
e.indexOf("css-") > -1 && (t[e] = r[e]);
|
1559
1561
|
}), t;
|
1560
|
-
},
|
1561
|
-
const e =
|
1562
|
+
}, ke = (r, t) => {
|
1563
|
+
const e = Re(t);
|
1562
1564
|
Object.entries(e).forEach(([s, i]) => {
|
1563
1565
|
r.style.setProperty(s.replace("css-", ""), i);
|
1564
1566
|
});
|
@@ -1569,14 +1571,14 @@ class Me extends Bt(f) {
|
|
1569
1571
|
}
|
1570
1572
|
render() {
|
1571
1573
|
var t;
|
1572
|
-
return
|
1574
|
+
return ke(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
1573
1575
|
"--columns",
|
1574
1576
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
1575
1577
|
), b`${Ut(this.nodes, (e) => e)}`;
|
1576
1578
|
}
|
1577
1579
|
}
|
1578
1580
|
Me.styles = [
|
1579
|
-
|
1581
|
+
C`
|
1580
1582
|
:host {
|
1581
1583
|
height: 100%;
|
1582
1584
|
display: grid;
|
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-974e1552.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.56-rc.
|
3
|
+
"version": "1.1.56-rc.2",
|
4
4
|
"dependencies": {
|
5
|
-
"@telia-ace/widget-core-flamingo": "1.1.56-rc.
|
5
|
+
"@telia-ace/widget-core-flamingo": "1.1.56-rc.2",
|
6
6
|
"lit": "^3.0.2"
|
7
7
|
},
|
8
8
|
"main": "./index.js",
|