@telia-ace/widget-components-copyright-flamingo 1.1.28 → 1.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,385 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const I=globalThis,tt=I.ShadowRoot&&(I.ShadyCSS===void 0||I.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,et=Symbol(),lt=new WeakMap;let Et=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==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 i=e!==void 0&&e.length===1;i&&(t=lt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&lt.set(e,t))}return t}toString(){return this.cssText}};const It=r=>new Et(typeof r=="string"?r:r+"",void 0,et),P=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((i,s,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[n+1],r[0]);return new Et(e,r,et)},Vt=(r,t)=>{if(tt)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=I.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)}},ct=tt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return It(e)})(r):r;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */const{is:Wt,defineProperty:Zt,getOwnPropertyDescriptor:Ft,getOwnPropertyNames:Gt,getOwnPropertySymbols:qt,getPrototypeOf:Yt}=Object,v=globalThis,dt=v.trustedTypes,Kt=dt?dt.emptyScript:"",G=v.reactiveElementPolyfillSupport,k=(r,t)=>r,V={toAttribute(r,t){switch(t){case Boolean:r=r?Kt: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}},it=(r,t)=>!Wt(r,t),pt={attribute:!0,type:String,converter:V,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),v.litPropertyMetadata??(v.litPropertyMetadata=new WeakMap);let E=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=pt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Zt(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:n}=Ft(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return s==null?void 0:s.call(this)},set(o){const h=s==null?void 0:s.call(this);n.call(this,o),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;const t=Yt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){const e=this.properties,i=[...Gt(e),...qt(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(ct(s))}else t!==void 0&&e.push(ct(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Vt(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 i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){var n;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:V).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const o=i.getPropertyOptions(s),h=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:V;this._$Em=s,this[s]=h.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i,s=!1,n){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??it)(s?n:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$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 i;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 s=this.constructor.elementProperties;if(s.size>0)for(const[n,o]of s)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),(i=this._$ES)==null||i.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(e)):this._$ET()}catch(s){throw t=!1,this._$ET(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$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[k("elementProperties")]=new Map,E[k("finalized")]=new Map,G==null||G({ReactiveElement:E}),(v.reactiveElementVersions??(v.reactiveElementVersions=[])).push("2.0.1");/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */const H=globalThis,W=H.trustedTypes,ut=W?W.createPolicy("lit-html",{createHTML:r=>r}):void 0,St="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,Pt="?"+$,Xt=`<${Pt}>`,w=document,N=()=>w.createComment(""),U=r=>r===null||typeof r!="object"&&typeof r!="function",Ot=Array.isArray,Jt=r=>Ot(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",q=`[
14
+ \f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gt=/-->/g,ft=/>/g,_=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),mt=/'/g,$t=/"/g,Tt=/^(?:script|style|textarea|title)$/i,kt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),A=kt(1),Qt=kt(2),x=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),vt=new WeakMap,C=w.createTreeWalker(w,129);function Ht(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ut!==void 0?ut.createHTML(t):t}const te=(r,t)=>{const e=r.length-1,i=[];let s,n=t===2?"<svg>":"",o=T;for(let h=0;h<e;h++){const a=r[h];let l,c,d=-1,u=0;for(;u<a.length&&(o.lastIndex=u,c=o.exec(a),c!==null);)u=o.lastIndex,o===T?c[1]==="!--"?o=gt:c[1]!==void 0?o=ft:c[2]!==void 0?(Tt.test(c[2])&&(s=RegExp("</"+c[2],"g")),o=_):c[3]!==void 0&&(o=_):o===_?c[0]===">"?(o=s??T,d=-1):c[1]===void 0?d=-2:(d=o.lastIndex-c[2].length,l=c[1],o=c[3]===void 0?_:c[3]==='"'?$t:mt):o===$t||o===mt?o=_:o===gt||o===ft?o=T:(o=_,s=void 0);const m=o===_&&r[h+1].startsWith("/>")?" ":"";n+=o===T?a+Xt:d>=0?(i.push(l),a.slice(0,d)+St+a.slice(d)+$+m):a+$+(d===-2?h:m)}return[Ht(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),i]};class L{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const h=t.length-1,a=this.parts,[l,c]=te(t,e);if(this.el=L.createElement(l,i),C.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=C.nextNode())!==null&&a.length<h;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(St)){const u=c[o++],m=s.getAttribute(d).split($),D=/([.?@])?(.*)/.exec(u);a.push({type:1,index:n,name:D[2],strings:m,ctor:D[1]==="."?ie:D[1]==="?"?se:D[1]==="@"?re:F}),s.removeAttribute(d)}else d.startsWith($)&&(a.push({type:6,index:n}),s.removeAttribute(d));if(Tt.test(s.tagName)){const d=s.textContent.split($),u=d.length-1;if(u>0){s.textContent=W?W.emptyScript:"";for(let m=0;m<u;m++)s.append(d[m],N()),C.nextNode(),a.push({type:2,index:++n});s.append(d[u],N())}}}else if(s.nodeType===8)if(s.data===Pt)a.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf($,d+1))!==-1;)a.push({type:7,index:n}),d+=$.length-1}n++}}static createElement(t,e){const i=w.createElement("template");return i.innerHTML=t,i}}function S(r,t,e=r,i){var o,h;if(t===x)return t;let s=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=U(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((h=s==null?void 0:s._$AO)==null||h.call(s,!1),n===void 0?s=void 0:(s=new n(r),s._$AT(r,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=S(r,s._$AS(r,t.values),s,i)),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:i}=this._$AD,s=((t==null?void 0:t.creationScope)??w).importNode(e,!0);C.currentNode=s;let n=C.nextNode(),o=0,h=0,a=i[0];for(;a!==void 0;){if(o===a.index){let l;a.type===2?l=new R(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new ne(n,this,t)),this._$AV.push(l),a=i[++h]}o!==(a==null?void 0:a.index)&&(n=C.nextNode(),o++)}return C.currentNode=w,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class R{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),U(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==x&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Jt(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!==p&&U(this._$AH)?this._$AA.nextSibling.data=t:this.$(w.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=L.createElement(Ht(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(e);else{const o=new ee(s,this),h=o.u(this.options);o.p(e),this.$(h),this._$AH=o}}_$AC(t){let e=vt.get(t.strings);return e===void 0&&vt.set(t.strings,e=new L(t)),e}T(t){Ot(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new R(this.k(N()),this.k(N()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class F{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(n===void 0)t=S(this,t,e,0),o=!U(t)||t!==this._$AH&&t!==x,o&&(this._$AH=t);else{const h=t;let a,l;for(t=n[0],a=0;a<n.length-1;a++)l=S(this,h[i+a],e,a),l===x&&(l=this._$AH[a]),o||(o=!U(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}o&&!s&&this.O(t)}O(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ie extends F{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===p?void 0:t}}class se extends F{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class re extends F{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??p)===x)return;const i=this._$AH,s=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==p&&(i===p||s);s&&this.element.removeEventListener(this.name,this,i),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 ne{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const Y=H.litHtmlPolyfillSupport;Y==null||Y(L,R),(H.litHtmlVersions??(H.litHtmlVersions=[])).push("3.0.2");const oe=(r,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new R(t.insertBefore(N(),n),n,void 0,e??{})}return s._$AI(r),s};/**
16
+ * @license
17
+ * Copyright 2017 Google LLC
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=oe(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 x}};var xt;f._$litElement$=!0,f.finalized=!0,(xt=globalThis.litElementHydrateSupport)==null||xt.call(globalThis,{LitElement:f});const K=globalThis.litElementPolyfillSupport;K==null||K({LitElement:f});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */const st={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},rt=r=>(...t)=>({_$litDirective$:r,values:t});let Mt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
24
+ * @license
25
+ * Copyright 2020 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */const ae=r=>r.strings===void 0;/**
28
+ * @license
29
+ * Copyright 2017 Google LLC
30
+ * SPDX-License-Identifier: BSD-3-Clause
31
+ */const M=(r,t)=>{var i;const e=r._$AN;if(e===void 0)return!1;for(const s of e)(i=s._$AO)==null||i.call(s,t,!1),M(s,t);return!0},Z=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)},Nt=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),ce(t)}};function he(r){this._$AN!==void 0?(Z(this),this._$AM=r,Nt(this)):this._$AM=r}function le(r,t=!1,e=0){const i=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(i))for(let n=e;n<i.length;n++)M(i[n],!1),Z(i[n]);else i!=null&&(M(i,!1),Z(i));else M(this,r)}const ce=r=>{r.type==st.CHILD&&(r._$AP??(r._$AP=le),r._$AQ??(r._$AQ=he))};class Ut extends Mt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Nt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,s;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(s=this.disconnected)==null||s.call(this)),e&&(M(this,t),Z(this))}setValue(t){if(ae(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 de=new WeakMap;let yt=0;const X=new Map,_t=new WeakSet,bt=()=>new Promise(r=>requestAnimationFrame(r)),pe=[{transform:"translateX(100%) scale(0)",opacity:0}],At=(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=At(r,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(r,t)=>{const e=At(r,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(r,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Ct(r,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(r,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Ct(r,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},ue={duration:333,easing:"ease-in-out"},ge=["left","top","width","height","opacity","color","background"],wt=new WeakMap;class fe extends Ut{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===st.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.h=e})}async resolveFinished(){var t;(t=this.h)==null||t.call(this),this.h=void 0}render(t){return p}getController(){return de.get(this.l)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var s;const i=this.l===void 0;return i&&(this.l=(s=t.options)==null?void 0:s.host,this.l.addController(this),this.element=t.element,wt.set(this.element,this)),this.optionsOrCallback=e,(i||typeof e!="function")&&this.u(e),this.render(e)}u(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=ge),this.options=t}p(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(s=>{const n=e[s]??(J[s]?void 0:i[s]),o=Number(n);t[s]=isNaN(o)?n+"":o}),t}m(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((i,s)=>{if(Array.isArray(i)){if(Array.isArray(s)&&s.length===i.length&&i.every((n,o)=>n===s[o]))return!1}else if(s===i)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await bt;const e=this._(),i=this.A(this.options.keyframeOptions,e),s=this.p();if(this.g!==void 0){const{from:n,to:o}=this.O(this.g,s,e);this.log("measured",[this.g,s,n,o]),t=this.calculateKeyframes(n,o)}else{const n=X.get(this.options.inId);if(n){X.delete(this.options.inId);const{from:o,to:h}=this.O(n,s,e);t=this.calculateKeyframes(o,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)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.j!==void 0&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,e;this.j=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.o||(this.options.id!==void 0&&X.set(this.options.id,this.g),this.options.out===void 0))return;if(this.prepare(),await bt(),(e=this.t)==null?void 0:e.isConnected){const i=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,i),this.options.stabilizeOut){const s=this.p();this.log("stabilizing out");const n=this.g.left-s.left,o=this.g.top-s.top;getComputedStyle(this.element).position!=="static"||n===0&&o===0||(this.element.style.position="relative"),n!==0&&(this.element.style.left=n+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.A(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,i;t&&((i=(e=this.options).onComplete)==null||i.call(e,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const i=wt.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=_t.has(this.l);return t||this.l.updateComplete.then(()=>{_t.add(this.l)}),t}A(t,e=this._()){const i={...ue};return e.forEach(s=>Object.assign(i,s.options.keyframeOptions)),Object.assign(i,t),i}O(t,e,i){t={...t},e={...e};const s=i.map(h=>h.animatingProperties).filter(h=>h!==void 0);let n=1,o=1;return s!==void 0&&(s.forEach(h=>{h.width&&(n/=h.width),h.height&&(o/=h.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=n*t.left,e.left=n*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const s={},n={};let o=!1;const h={};for(const a in e){const l=t[a],c=e[a];if(a in J){const d=J[a];if(l===void 0||c===void 0)continue;const u=d(l,c);u.transform!==void 0&&(h[a]=u.value,o=!0,s.transform=`${s.transform??""} ${u.transform}`,u.overrideFrom!==void 0&&Object.assign(s,u.overrideFrom))}else l!==c&&l!==void 0&&c!==void 0&&(o=!0,s[a]=l,n[a]=c)}return s.transformOrigin=n.transformOrigin=i?"center center":"top left",this.animatingProperties=h,o?[s,n]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),i=!0,this.webAnimation=this.element.animate(t,e);const s=this.getController();s==null||s.add(this);try{await this.webAnimation.finished}catch{}s==null||s.remove(this)}return this.didFinish(i),i}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const me=rt(fe);/**
32
+ * @license
33
+ * Copyright 2017 Google LLC
34
+ * SPDX-License-Identifier: BSD-3-Clause
35
+ */const $e={attribute:!0,type:String,converter:V,reflect:!1,hasChanged:it},ve=(r=$e,t,e)=>{const{kind:i,metadata:s}=e;let n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(e.name,r),i==="accessor"){const{name:o}=e;return{set(h){const a=t.get.call(this);t.set.call(this,h),this.requestUpdate(o,a,r)},init(h){return h!==void 0&&this.C(o,void 0,r),h}}}if(i==="setter"){const{name:o}=e;return function(h){const a=this[o];t.call(this,h),this.requestUpdate(o,a,r)}}throw Error("Unsupported decorator location: "+i)};function g(r){return(t,e)=>typeof e=="object"?ve(r,t,e):((i,s,n)=>{const o=s.hasOwnProperty(n);return s.constructor.createProperty(n,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(s,n):void 0})(r,t,e)}/**
36
+ * @license
37
+ * Copyright 2017 Google LLC
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */function O(r){return g({...r,state:!0,attribute:!1})}/**
40
+ * @license
41
+ * Copyright 2018 Google LLC
42
+ * SPDX-License-Identifier: BSD-3-Clause
43
+ */const ye=rt(class extends Mt{constructor(r){var t;if(super(r),r.type!==st.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,s;if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((i=this.st)!=null&&i.has(n))&&this.it.add(n);return this.render(t)}const e=r.element.classList;for(const n of this.it)n in t||(e.remove(n),this.it.delete(n));for(const n in t){const o=!!t[n];o===this.it.has(n)||(s=this.st)!=null&&s.has(n)||(o?(e.add(n),this.it.add(n)):(e.remove(n),this.it.delete(n)))}return x}}),B=(r,t,e)=>{r&&e.style.setProperty(t,r)},Lt=(r,t)=>{var e,i,s,n;B((e=r.colors)==null?void 0:e.primaryBackground,"--primary-background",t),B((i=r.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),B((s=r.colors)==null?void 0:s.secondaryBackground,"--secondary-background",t),B((n=r.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};/**
44
+ * @license
45
+ * Copyright 2020 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */const Rt=()=>new _e;class _e{}const Q=new WeakMap,jt=rt(class extends Ut{render(r){return p}update(r,[t]){var i;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=(i=r.options)==null?void 0:i.host,this.ot(this.lt=r.element)),p}ot(r){if(typeof this.G=="function"){const t=this.ct??globalThis;let e=Q.get(t);e===void 0&&(e=new WeakMap,Q.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ct,void 0),e.set(this.G,r),r!==void 0&&this.G.call(this.ct,r)}else this.G.value=r}get rt(){var r,t;return typeof this.G=="function"?(r=Q.get(this.ct??globalThis))==null?void 0:r.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var be=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,j=(r,t,e,i)=>{for(var s=i>1?void 0:i?Ae(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(s=(i?o(t,e,s):o(s))||s);return i&&s&&be(t,e,s),s};class y extends f{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.offset=0,this.buttonRef=Rt()}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding(),this.offset>0&&this.buttonRef.value&&(this.buttonRef.value.style.right=`calc(${this.offset}px + 20px)`)}_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&&Lt(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 A` <img src=${e} class="trigger-icon" alt="" /> `;const i=(l=this.application)==null?void 0:l.triggerIcon;if(!i)return p;const s=async c=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(u=>u[c]),{type:n,content:o}=i;switch(n){case"Telia":{const c=await s(o);return c?A`<telia-icon
48
+ class="trigger-icon"
49
+ svg=${c.svg}
50
+ size="lg"
51
+ ></telia-icon>`:p}default:return p}}setOffset(t){this.offset=t}render(){var t,e,i,s;return A`<div class="trigger-container">
52
+ ${!this.active&&((s=(i=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:i.other)!=null&&s.showButtonLabel)?A`
53
+ <button
54
+ class="trigger-label"
55
+ @click=${this._toggleActive}
56
+ ${me({keyframeOptions:{},in:pe,stabilizeOut:!0,skipInitial:!1})}
57
+ >
58
+ ${this.application.settings.branding.other.buttonLabelText}
59
+ </button>
60
+ `:p}
61
+
62
+ <button
63
+ class=${ye({trigger:!0,active:this.active,rendered:this.loaded})}
64
+ @click=${this._toggleActive}
65
+ ${jt(this.buttonRef)}
66
+ >
67
+ ${this.icon}
68
+ <span class="trigger-close">
69
+ <svg
70
+ width="18"
71
+ height="9"
72
+ viewBox="0 0 18 9"
73
+ fill="none"
74
+ xmlns="http://www.w3.org/2000/svg"
75
+ >
76
+ <path
77
+ d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
78
+ fill="white"
79
+ />
80
+ </svg>
81
+ </span>
82
+ <span class="trigger-loader">
83
+ <svg viewBox="25 25 50 50">
84
+ <circle
85
+ cx="50"
86
+ cy="50"
87
+ r="20"
88
+ fill="none"
89
+ stroke="#000"
90
+ stroke-width="2"
91
+ stroke-miterlimit="10"
92
+ />
93
+ </svg>
94
+ </span>
95
+ </button>
96
+ </div>`}}y.styles=[P`
97
+ :host {
98
+ --voca-rem-multiplier: 0.625;
99
+ --trigger-label-bg: #f5e0ff;
100
+ --trigger-label-text-color: rgba(0, 0, 0, 0.8);
101
+ display: block;
102
+ box-sizing: border-box;
103
+ /* font-family: var(--font-family); */
104
+ font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
105
+ }
106
+
107
+ .trigger-container {
108
+ position: fixed;
109
+ bottom: 20px;
110
+ right: 20px;
111
+ display: flex;
112
+ align-items: center;
113
+ gap: 1rem;
114
+ }
115
+
116
+ .trigger {
117
+ transform: scale(0);
118
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
119
+ z-index: 5;
120
+ display: flex;
121
+ align-items: center;
122
+ justify-content: center;
123
+ border: none;
124
+ line-height: 55px;
125
+ height: 55px;
126
+ width: 55px;
127
+ border-radius: 55px;
128
+ cursor: pointer;
129
+ background-color: var(--trigger-bg, var(--primary-background));
130
+ font-family: Lato;
131
+ text-decoration: none;
132
+ border: 3px dashed transparent;
133
+ box-sizing: border-box;
134
+ transition: transform 200ms ease-out;
135
+ }
136
+ .trigger:active {
137
+ transform: scale(0.8) !important;
138
+ }
139
+ .trigger:hover:not(:active) {
140
+ transform: scale(1.1) !important;
141
+ }
142
+ .trigger.rendered {
143
+ transform: scale(1);
144
+ }
145
+ .trigger.active .trigger-icon {
146
+ opacity: 0;
147
+ transform: rotate(-180deg) scale(0);
148
+ }
149
+ .trigger.active .trigger-close {
150
+ opacity: 1;
151
+ transform: rotate(0deg) scale(1);
152
+ }
153
+
154
+ .trigger-icon {
155
+ display: inline-block;
156
+ line-height: inherit;
157
+ text-align: center;
158
+ opacity: 1;
159
+ transform: rotate(0deg) scale(1);
160
+ transition: opacity 200ms ease-out, transform 200ms ease-out;
161
+ color: var(--trigger-text-color, var(--text-on-primary-background));
162
+ }
163
+ .trigger-close {
164
+ opacity: 0;
165
+ transition: transform 200ms ease-out;
166
+ transform: rotate(180deg) scale(0);
167
+ position: absolute;
168
+ top: 0;
169
+ bottom: 0;
170
+ left: 0;
171
+ right: 0;
172
+ display: flex;
173
+ justify-content: center;
174
+ align-items: center;
175
+ fill: var(--trigger-text-color, var(--text-on-primary-background));
176
+ }
177
+
178
+ img {
179
+ max-width: 100%;
180
+ }
181
+
182
+ .trigger-label {
183
+ box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
184
+ background-color: var(--trigger-label-bg);
185
+ color: var(--trigger-label-text-color);
186
+ white-space: nowrap;
187
+ padding: 0.7rem 1rem;
188
+ border-radius: 0.3rem;
189
+ font-weight: 500;
190
+ display: flex;
191
+ justify-content: center;
192
+ align-items: center;
193
+ cursor: pointer;
194
+ border: none;
195
+ font-size: 1rem;
196
+ font-family: inherit;
197
+ transition: all 300ms ease-in-out;
198
+ }
199
+
200
+ .trigger-label:hover {
201
+ opacity: 0.8;
202
+ }
203
+ `];j([g({attribute:!1})],y.prototype,"application",2);j([O()],y.prototype,"active",2);j([O()],y.prototype,"loaded",2);j([O()],y.prototype,"icon",2);j([O()],y.prototype,"offset",2);var Ce=Object.defineProperty,we=Object.getOwnPropertyDescriptor,b=(r,t,e,i)=>{for(var s=i>1?void 0:i?we(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(s=(i?o(t,e,s):o(s))||s);return i&&s&&Ce(t,e,s),s};const zt=r=>{class t extends r{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[P`
204
+ :host {
205
+ font-family: var(--font-family);
206
+ grid-column: span var(--width);
207
+ max-width: 100%;
208
+ overflow: hidden;
209
+ box-sizing: border-box;
210
+ display: block;
211
+ }
212
+ * {
213
+ box-sizing: border-box;
214
+ }
215
+ `],b([g()],t.prototype,"properties",2),b([g()],t.prototype,"context",2),b([g()],t.prototype,"layout",2),b([g()],t.prototype,"name",2),b([g()],t.prototype,"type",2),b([g({attribute:!1})],t.prototype,"application",2),b([g({attribute:!1})],t.prototype,"parent",2),t};class Dt extends zt(f){render(){return A`Non resolved component`}}Dt.styles=[P`
216
+ :host {
217
+ display: block;
218
+ }
219
+ `];/**
220
+ * @license
221
+ * Copyright 2021 Google LLC
222
+ * SPDX-License-Identifier: BSD-3-Clause
223
+ */function*xe(r,t){if(r!==void 0){let e=0;for(const i of r)yield t(i,e++)}}var nt=(r=>(r.Inline="inline",r.Trigger="trigger",r))(nt||{}),Ee=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Pe=(r,t,e,i)=>{for(var s=i>1?void 0:i?Se(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(s=(i?o(t,e,s):o(s))||s);return i&&s&&Ee(t,e,s),s};class ot extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=Rt()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Lt(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,s])=>{e.style.setProperty(`--${i}`,s)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){return this.application.renderStrategy===nt.Trigger&&this.renderRoot.host.classList.add("floating"),A`<div class="widget-container" ${jt(this.wrapperRef)}>
224
+ ${xe(this.nodes,t=>t)}
225
+ </div>`}}ot.styles=P`
226
+ :host {
227
+ --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
228
+ --spacing-xs: 0.2rem;
229
+ --spacing-sm: 0.5rem;
230
+ --spacing-md: 1rem;
231
+ --spacing-lg: 1.2rem;
232
+ --spacing-xl: 1.8rem;
233
+
234
+ --text-color: #222222;
235
+ --link-color: #990ae3;
236
+ --gray-color: #f3f3f8;
237
+ --gray-dark-color: #a6a6a6;
238
+
239
+ --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
240
+ --border-radius: var(--spacing-sm);
241
+ --border-radius-sm: var(--spacing-sm);
242
+ --gap: var(--spacing-sm);
243
+ }
244
+ :host {
245
+ --voca-rem-multiplier: 0.625;
246
+ box-sizing: border-box;
247
+ display: block;
248
+ }
249
+
250
+ :host(.inline) {
251
+ height: 100%;
252
+ position: fixed;
253
+ inset: 0 0 0 0;
254
+ }
255
+
256
+ :host(.floating) {
257
+ z-index: 6;
258
+ position: fixed;
259
+ }
260
+ @media screen and (max-width: 800px) {
261
+ :host(.floating) {
262
+ inset: 0 0 95px 0;
263
+ }
264
+ }
265
+ @media screen and (min-width: 801px) {
266
+ :host(.floating) {
267
+ inset: auto 20px 95px auto;
268
+ max-height: calc(100vh - 120px);
269
+ width: 400px;
270
+ height: 700px;
271
+ }
272
+ }
273
+
274
+ :host(.floating) .widget-container {
275
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
276
+ border-radius: 0.7rem;
277
+ }
278
+
279
+ * {
280
+ box-sizing: border-box;
281
+ }
282
+ .widget-container {
283
+ height: 100%;
284
+ background-color: var(--primary-background);
285
+ padding: var(--spacing-sm);
286
+ border: var(--widget-border, none);
287
+ }
288
+ @keyframes slideDown {
289
+ from {
290
+ transform: translateY(0);
291
+ opacity: 1;
292
+ }
293
+ to {
294
+ transform: translateY(100%);
295
+ opacity: 0;
296
+ }
297
+ }
298
+ @keyframes slideUp {
299
+ from {
300
+ transform: translateY(100%);
301
+ opacity: 0;
302
+ }
303
+ to {
304
+ transform: translateY(0);
305
+ opacity: 1;
306
+ }
307
+ }
308
+ :host(.expanded) {
309
+ opacity: 1;
310
+ animation: slideUp 0.3s linear;
311
+ }
312
+ :host(.hidden) {
313
+ opacity: 0;
314
+ animation: slideDown 0.3s linear;
315
+ }
316
+ `;Pe([g({attribute:!1})],ot.prototype,"application",2);var Oe=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,at=(r,t,e,i)=>{for(var s=i>1?void 0:i?Te(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(s=(i?o(t,e,s):o(s))||s);return i&&s&&Oe(t,e,s),s};class z extends f{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===nt.Trigger){const t=new y;return t.application=this.widget,t}return this.widget.render()}}z.styles=[P`
317
+ :host {
318
+ display: block;
319
+ }
320
+ `];at([g({attribute:!0})],z.prototype,"name",2);at([O()],z.prototype,"widget",2);at([O()],z.prototype,"status",2);customElements.get("ace-trigger")||customElements.define("ace-trigger",y);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Dt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",ot);customElements.get("ace-widget")||customElements.define("ace-widget",z);const ke=Qt`
321
+ <g clip-path="url(#clip0_119_1665)">
322
+ <path d="M16.9321 27.4656C11.5983 29.6245 8.54568 28.9365 6.85856 27.5904L6.83398 27.5712C9.44534 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z" fill="#990AE3"/>
323
+ <path d="M20.9805 22.4843C25.1369 20.0779 28.8809 15.9968 30.0615 13.0869C30.397 10.6784 30.4654 10.3744 30.506 7.72479C30.5113 7.35786 30.4889 7.00586 30.4547 6.66879C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43734 23.5435 1.74585 20.6027C2.68077 22.4459 3.29407 23.3408 4.34545 24.7083C7.45044 27.4539 13.9852 26.5355 20.9805 22.4843Z" fill="#990AE3"/>
324
+ <path d="M17.5721 15.8923C25.1562 12.24 30.4387 7.04427 29.5177 3.6C28.0058 0.993067 24.9457 0 21.6644 0C11.9381 0 0 6.4 0 14.5653C0 15.6149 0.231859 16.7883 0.647496 18.0181C2.86565 20.9568 9.64833 19.7077 17.5721 15.8923Z" fill="#990AE3"/>
325
+ </g>
326
+ <path d="M84.228 15.9056V24.3077H81.4938V22.9307C80.5664 24.1413 79.0919 24.5925 77.8557 24.5925C75.2881 24.5925 73.7666 22.9787 73.7666 20.9605C73.7666 18.6587 76.3587 16.7835 79.5203 16.7835C80.139 16.7835 80.8046 16.8315 81.3987 17.0213V16.2384C81.3987 15.0512 80.7096 14.4347 79.3066 14.4347C78.0469 14.4347 76.9293 15.0757 76.2401 15.9067L74.1716 14.3877C75.3362 13.0352 77.3342 12.0859 79.3547 12.0859C82.5163 12.0837 84.228 13.4608 84.228 15.9056ZM81.3987 19.7264V19.2037C80.9232 19.0373 80.4243 18.9904 79.8056 18.9904C77.6655 18.9904 76.5724 19.8448 76.5724 20.8891C76.5724 21.7435 77.3097 22.2896 78.4273 22.2896C79.9007 22.2896 81.3987 21.4117 81.3987 19.7264Z" fill="#990AE3"/>
327
+ <path d="M68.75 9.06934C68.75 8.14347 69.5588 7.384 70.4852 7.384C71.3891 7.384 72.1969 8.14347 72.1969 9.06934C72.1969 9.9952 71.3881 10.7547 70.4852 10.7547C69.5588 10.7547 68.75 9.9952 68.75 9.06934ZM69.0118 24.3077V12.44H71.9362V24.3077H69.0118Z" fill="#990AE3"/>
328
+ <path d="M67.2286 24.3547C66.7766 24.4496 66.3012 24.4731 65.8738 24.4731C63.7817 24.4731 62.8542 23.4757 62.8542 21.4587V7.69226H65.7787V21.0555C65.7787 22.0763 66.3973 22.2181 67.2286 22.1232V24.3547Z" fill="#990AE3"/>
329
+ <path d="M60.9994 19.2048H52.2262C52.535 20.9616 53.7958 22.1243 55.4124 22.1243C56.6251 22.1243 57.5995 21.5781 58.1947 20.6768L60.525 22.0773C59.3358 23.6677 57.3869 24.6171 55.4134 24.6171C52.1567 24.6171 49.3274 22.0304 49.3274 18.3269C49.3274 14.6235 52.1332 12.0613 55.2713 12.0613C59.3828 12.0603 61.4033 15.336 60.9994 19.2048ZM52.3213 16.9968H58.1701C57.8132 15.4544 56.8153 14.4805 55.2692 14.4805C53.8193 14.4816 52.7251 15.4779 52.3213 16.9968Z" fill="#990AE3"/>
330
+ <path d="M51.5839 10.3984H46.6379V24.3077H43.4998V10.3984H38.5068V7.69226H51.5839V10.3984Z" fill="#990AE3"/>
331
+ <path d="M126.394 7.98875H138.935V10.7756H129.668V14.2592H137.889V17.0461H129.668V21.4587H139.167V24.2456H126.394V7.98875Z" fill="#990AE3"/>
332
+ <path d="M117.4 24.6171C115.682 24.6171 114.126 24.261 112.732 23.5488C111.339 22.8366 110.24 21.8379 109.434 20.5529C108.645 19.2523 108.25 17.7737 108.25 16.1171C108.25 14.4604 108.645 12.9896 109.434 11.7045C110.24 10.404 111.339 9.39758 112.732 8.68537C114.126 7.97317 115.682 7.61707 117.4 7.61707C118.84 7.61707 120.148 7.84156 121.325 8.29056C122.502 8.72408 123.477 9.32016 124.251 10.0788L121.999 12.2154C120.868 11.0078 119.359 10.404 117.47 10.404C116.34 10.404 115.326 10.6517 114.428 11.1471C113.53 11.6271 112.825 12.3006 112.314 13.1676C111.819 14.0346 111.571 15.0178 111.571 16.1171C111.571 17.2163 111.819 18.1995 112.314 19.0665C112.825 19.9336 113.53 20.6148 114.428 21.1102C115.326 21.5902 116.34 21.8302 117.47 21.8302C118.523 21.8302 119.429 21.6521 120.187 21.296C120.961 20.9399 121.627 20.4367 122.184 19.7865L124.414 21.8302C123.609 22.7127 122.61 23.4017 121.418 23.8971C120.241 24.3771 118.902 24.6171 117.4 24.6171Z" fill="#990AE3"/>
333
+ <path d="M97.1488 7.98875H100.656L107.46 24.2456H103.977L102.514 20.6226H95.0122L93.5026 24.2456H90.228L97.1488 7.98875ZM101.445 17.9751L98.8209 11.5188L96.1269 17.9751H101.445Z" fill="#990AE3"/>
334
+ <defs>
335
+ <clipPath id="clip0_119_1665">
336
+ <rect width="30.5068" height="32.0011" fill="white"/>
337
+ </clipPath>
338
+ </defs>`,Bt=zt(f);class ht extends Bt{render(){var e;return(e=this.application.branding().other)!=null&&e.whiteLabel?p:A` <div class="copyright">
339
+ <a
340
+ aria-label="Powered by Telia ACE"
341
+ href="https://ace-showcase.com"
342
+ target="_blank"
343
+ rel="noopener noreferrer"
344
+ >
345
+ <span>Powered by</span>
346
+ <svg
347
+ width="142"
348
+ height="32"
349
+ viewBox="0 0 142 32"
350
+ fill="none"
351
+ xmlns="http://www.w3.org/2000/svg"
352
+ >
353
+ ${ke}
354
+ </svg>
355
+ </a>
356
+ </div>`}}ht.styles=[Bt.styles||[],P`
357
+ :host {
358
+ --copyright-text-color: var(--text-on-primary-background);
359
+ }
360
+
361
+ .copyright {
362
+ padding: var(--spacing-sm);
363
+ box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.1);
364
+ z-index: 6;
365
+ background-color: transparent;
366
+ }
367
+
368
+ a {
369
+ display: flex;
370
+ justify-content: center;
371
+ align-items: center;
372
+ color: var(--copyright-text-color);
373
+ text-decoration: none;
374
+ font-size: 0.8rem;
375
+ gap: var(--spacing-sm);
376
+ }
377
+
378
+ span {
379
+ opacity: 0.55;
380
+ }
381
+
382
+ svg {
383
+ width: 88px;
384
+ }
385
+ `];exports.Copyright=ht;exports.default=ht;