@telia-ace/widget-components-widget-header-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.
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-c8615da3.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-79ee6f0e.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const t = async (e) => {
2
- e.registerComponent("widget-header", import("./widget-header-3707d1b3.mjs"));
2
+ e.registerComponent("widget-header", import("./widget-header-8b5add7f.mjs"));
3
3
  };
4
4
  export {
5
5
  t as default
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-widget-header-flamingo",
3
- "version": "1.1.28",
3
+ "version": "1.1.29",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
- "@telia-ace/widget-core-flamingo": "1.1.28"
6
+ "@telia-ace/widget-core-flamingo": "1.1.29"
7
7
  },
8
8
  "main": "./index.js",
9
9
  "module": "./index.mjs",
@@ -0,0 +1,360 @@
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 Bt=r=>new Et(typeof r=="string"?r:r+"",void 0,et),O=(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)},It=(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 Bt(e)})(r):r;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */const{is:Wt,defineProperty:Ft,getOwnPropertyDescriptor:Gt,getOwnPropertyNames:Vt,getOwnPropertySymbols:qt,getPrototypeOf:Yt}=Object,y=globalThis,dt=y.trustedTypes,Kt=dt?dt.emptyScript:"",q=y.reactiveElementPolyfillSupport,k=(r,t)=>r,W={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:W,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),y.litPropertyMetadata??(y.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&&Ft(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:n}=Gt(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=[...Vt(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 It(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:W).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:W;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,q==null||q({ReactiveElement:E}),(y.reactiveElementVersions??(y.reactiveElementVersions=[])).push("2.0.1");/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */const N=globalThis,F=N.trustedTypes,ut=F?F.createPolicy("lit-html",{createHTML:r=>r}):void 0,St="$lit$",v=`lit$${(Math.random()+"").slice(9)}$`,Ot="?"+v,Xt=`<${Ot}>`,x=document,R=()=>x.createComment(""),H=r=>r===null||typeof r!="object"&&typeof r!="function",Pt=Array.isArray,Jt=r=>Pt(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Y=`[
14
+ \f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gt=/-->/g,ft=/>/g,b=RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),mt=/'/g,$t=/"/g,Tt=/^(?:script|style|textarea|title)$/i,Zt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),f=Zt(1),C=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),vt=new WeakMap,w=x.createTreeWalker(x,129);function kt(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ut!==void 0?ut.createHTML(t):t}const Qt=(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 c,d,p=-1,u=0;for(;u<a.length&&(o.lastIndex=u,d=o.exec(a),d!==null);)u=o.lastIndex,o===T?d[1]==="!--"?o=gt:d[1]!==void 0?o=ft:d[2]!==void 0?(Tt.test(d[2])&&(s=RegExp("</"+d[2],"g")),o=b):d[3]!==void 0&&(o=b):o===b?d[0]===">"?(o=s??T,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?b:d[3]==='"'?$t:mt):o===$t||o===mt?o=b:o===gt||o===ft?o=T:(o=b,s=void 0);const $=o===b&&r[h+1].startsWith("/>")?" ":"";n+=o===T?a+Xt:p>=0?(i.push(c),a.slice(0,p)+St+a.slice(p)+v+$):a+v+(p===-2?h:$)}return[kt(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),i]};class M{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const h=t.length-1,a=this.parts,[c,d]=Qt(t,e);if(this.el=M.createElement(c,i),w.currentNode=this.el.content,e===2){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=w.nextNode())!==null&&a.length<h;){if(s.nodeType===1){if(s.hasAttributes())for(const p of s.getAttributeNames())if(p.endsWith(St)){const u=d[o++],$=s.getAttribute(p).split(v),D=/([.?@])?(.*)/.exec(u);a.push({type:1,index:n,name:D[2],strings:$,ctor:D[1]==="."?ee:D[1]==="?"?ie:D[1]==="@"?se:V}),s.removeAttribute(p)}else p.startsWith(v)&&(a.push({type:6,index:n}),s.removeAttribute(p));if(Tt.test(s.tagName)){const p=s.textContent.split(v),u=p.length-1;if(u>0){s.textContent=F?F.emptyScript:"";for(let $=0;$<u;$++)s.append(p[$],R()),w.nextNode(),a.push({type:2,index:++n});s.append(p[u],R())}}}else if(s.nodeType===8)if(s.data===Ot)a.push({type:2,index:n});else{let p=-1;for(;(p=s.data.indexOf(v,p+1))!==-1;)a.push({type:7,index:n}),p+=v.length-1}n++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function S(r,t,e=r,i){var o,h;if(t===C)return t;let s=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=H(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 te{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)??x).importNode(e,!0);w.currentNode=s;let n=w.nextNode(),o=0,h=0,a=i[0];for(;a!==void 0;){if(o===a.index){let c;a.type===2?c=new L(n,n.nextSibling,this,t):a.type===1?c=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(c=new re(n,this,t)),this._$AV.push(c),a=i[++h]}o!==(a==null?void 0:a.index)&&(n=w.nextNode(),o++)}return w.currentNode=x,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 L{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=l,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),H(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==C&&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!==l&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.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=M.createElement(kt(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 te(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 M(t)),e}T(t){Pt(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 L(this.k(R()),this.k(R()),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 V{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,n){this.type=1,this._$AH=l,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=l}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(n===void 0)t=S(this,t,e,0),o=!H(t)||t!==this._$AH&&t!==C,o&&(this._$AH=t);else{const h=t;let a,c;for(t=n[0],a=0;a<n.length-1;a++)c=S(this,h[i+a],e,a),c===C&&(c=this._$AH[a]),o||(o=!H(c)||c!==this._$AH[a]),c===l?t=l:t!==l&&(t+=(c??"")+n[a+1]),this._$AH[a]=c}o&&!s&&this.O(t)}O(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ee extends V{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===l?void 0:t}}class ie extends V{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}}class se extends V{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)??l)===C)return;const i=this._$AH,s=t===l&&i!==l||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==l&&(i===l||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 re{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 K=N.litHtmlPolyfillSupport;K==null||K(M,L),(N.litHtmlVersions??(N.litHtmlVersions=[])).push("3.0.2");const ne=(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 L(t.insertBefore(R(),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 m=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=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 Ct;m._$litElement$=!0,m.finalized=!0,(Ct=globalThis.litElementHydrateSupport)==null||Ct.call(globalThis,{LitElement:m});const X=globalThis.litElementPolyfillSupport;X==null||X({LitElement:m});(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 Nt=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 oe=r=>r.strings===void 0;/**
28
+ * @license
29
+ * Copyright 2017 Google LLC
30
+ * SPDX-License-Identifier: BSD-3-Clause
31
+ */const U=(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),U(s,t);return!0},G=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)},Ut=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),le(t)}};function ae(r){this._$AN!==void 0?(G(this),this._$AM=r,Ut(this)):this._$AM=r}function he(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++)U(i[n],!1),G(i[n]);else i!=null&&(U(i,!1),G(i));else U(this,r)}const le=r=>{r.type==st.CHILD&&(r._$AP??(r._$AP=he),r._$AQ??(r._$AQ=ae))};class Rt extends Nt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Ut(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&&(U(this,t),G(this))}setValue(t){if(oe(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 ce=new WeakMap;let yt=0;const J=new Map,_t=new WeakSet,bt=()=>new Promise(r=>requestAnimationFrame(r)),de=[{transform:"translateX(100%) scale(0)",opacity:0}],At=(r,t)=>{const e=r-t;return e===0?void 0:e},wt=(r,t)=>{const e=r/t;return e===1?void 0:e},Z={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=wt(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=wt(r,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},pe={duration:333,easing:"ease-in-out"},ue=["left","top","width","height","opacity","color","background"],xt=new WeakMap;class ge extends Rt{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 l}getController(){return ce.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,xt.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=ue),this.options=t}p(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(s=>{const n=e[s]??(Z[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=J.get(this.options.inId);if(n){J.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&&J.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=xt.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={...pe};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 c=t[a],d=e[a];if(a in Z){const p=Z[a];if(c===void 0||d===void 0)continue;const u=p(c,d);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 c!==d&&c!==void 0&&d!==void 0&&(o=!0,s[a]=c,n[a]=d)}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 fe=rt(ge);/**
32
+ * @license
33
+ * Copyright 2017 Google LLC
34
+ * SPDX-License-Identifier: BSD-3-Clause
35
+ */const me={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it},$e=(r=me,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"?$e(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 P(r){return g({...r,state:!0,attribute:!1})}/**
40
+ * @license
41
+ * Copyright 2018 Google LLC
42
+ * SPDX-License-Identifier: BSD-3-Clause
43
+ */const ve=rt(class extends Nt{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 C}}),B=(r,t,e)=>{r&&e.style.setProperty(t,r)},Ht=(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 Mt=()=>new ye;class ye{}const Q=new WeakMap,Lt=rt(class extends Rt{render(r){return l}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)),l}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 _e=Object.defineProperty,be=Object.getOwnPropertyDescriptor,j=(r,t,e,i)=>{for(var s=i>1?void 0:i?be(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&&_e(t,e,s),s};class _ extends m{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.offset=0,this.buttonRef=Mt()}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&&Ht(this.application.settings.branding,this)}async _renderSymbol(){var h,a,c;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 f` <img src=${e} class="trigger-icon" alt="" /> `;const i=(c=this.application)==null?void 0:c.triggerIcon;if(!i)return l;const s=async d=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(u=>u[d]),{type:n,content:o}=i;switch(n){case"Telia":{const d=await s(o);return d?f`<telia-icon
48
+ class="trigger-icon"
49
+ svg=${d.svg}
50
+ size="lg"
51
+ ></telia-icon>`:l}default:return l}}setOffset(t){this.offset=t}render(){var t,e,i,s;return f`<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)?f`
53
+ <button
54
+ class="trigger-label"
55
+ @click=${this._toggleActive}
56
+ ${fe({keyframeOptions:{},in:de,stabilizeOut:!0,skipInitial:!1})}
57
+ >
58
+ ${this.application.settings.branding.other.buttonLabelText}
59
+ </button>
60
+ `:l}
61
+
62
+ <button
63
+ class=${ve({trigger:!0,active:this.active,rendered:this.loaded})}
64
+ @click=${this._toggleActive}
65
+ ${Lt(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>`}}_.styles=[O`
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})],_.prototype,"application",2);j([P()],_.prototype,"active",2);j([P()],_.prototype,"loaded",2);j([P()],_.prototype,"icon",2);j([P()],_.prototype,"offset",2);var Ae=Object.defineProperty,we=Object.getOwnPropertyDescriptor,A=(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&&Ae(t,e,s),s};const jt=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=[O`
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
+ `],A([g()],t.prototype,"properties",2),A([g()],t.prototype,"context",2),A([g()],t.prototype,"layout",2),A([g()],t.prototype,"name",2),A([g()],t.prototype,"type",2),A([g({attribute:!1})],t.prototype,"application",2),A([g({attribute:!1})],t.prototype,"parent",2),t};class zt extends jt(m){render(){return f`Non resolved component`}}zt.styles=[O`
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||{}),Ce=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Se=(r,t,e,i)=>{for(var s=i>1?void 0:i?Ee(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};class ot extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=Mt()}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(([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"),f`<div class="widget-container" ${Lt(this.wrapperRef)}>
224
+ ${xe(this.nodes,t=>t)}
225
+ </div>`}}ot.styles=O`
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
+ `;Se([g({attribute:!1})],ot.prototype,"application",2);var Oe=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,at=(r,t,e,i)=>{for(var s=i>1?void 0:i?Pe(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 m{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 l;if(this.widget.renderStrategy===nt.Trigger){const t=new _;return t.application=this.widget,t}return this.widget.render()}}z.styles=[O`
317
+ :host {
318
+ display: block;
319
+ }
320
+ `];at([g({attribute:!0})],z.prototype,"name",2);at([P()],z.prototype,"widget",2);at([P()],z.prototype,"status",2);customElements.get("ace-trigger")||customElements.define("ace-trigger",_);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",zt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",ot);customElements.get("ace-widget")||customElements.define("ace-widget",z);const Dt=jt(m);class ht extends Dt{render(){var n;const t=this.application.branding(),e=(n=t==null?void 0:t.graphics)==null?void 0:n.logotype,s=this.application.texts.get("widget-header.header","ACE Widget");return f` <div class="widget-header">
321
+ <!-- <telia-icon svg={aiRobot.svg} size="lg"></telia-icon> -->
322
+ ${e?f` <img src=${e} class="logotype" alt="" />`:l}
323
+
324
+ <div>
325
+ <h1>${s}</h1>
326
+
327
+ ${this.properties.tagline?f`<p>${this.properties.tagline}</p>`:l}
328
+ </div>
329
+ </div>`}}ht.styles=[Dt.styles||[],O`
330
+ :host {
331
+ --header-text-color: var(--text-on-primary-background);
332
+ }
333
+
334
+ img {
335
+ max-width: 140px;
336
+ max-height: 80%;
337
+ }
338
+
339
+ .widget-header {
340
+ background-color: transparent;
341
+ color: var(--header-text-color);
342
+ height: 69px;
343
+ display: flex;
344
+ gap: var(--spacing-md);
345
+ flex-direction: row;
346
+ align-items: center;
347
+ border-radius: var(--spacing-sm) var(--spacing-sm) 0px 0px;
348
+ padding: 0 var(--spacing-md);
349
+ }
350
+
351
+ h1 {
352
+ font-size: 1.2rem;
353
+ }
354
+
355
+ h1,
356
+ p {
357
+ margin: 0;
358
+ padding: 0;
359
+ }
360
+ `];exports.WidgetHeader=ht;exports.default=ht;