@telia-ace/widget-components-widget-header-flamingo 1.1.123-rc.16 → 1.1.123-rc.17

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-DcPEQLSE.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-BmEclz7G.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-CUY9q0ZX.mjs"));
2
+ e.registerComponent("widget-header", import("./widget-header-464lCFqT.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.123-rc.16",
3
+ "version": "1.1.123-rc.17",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
- "@telia-ace/widget-core-flamingo": "1.1.123-rc.16",
6
+ "@telia-ace/widget-core-flamingo": "1.1.123-rc.17",
7
7
  "@teliads/components": "^22.1.1",
8
8
  "@teliads/icons": "^8.4.0",
9
9
  "@lit-labs/motion": "^1.0.8",
@@ -3540,16 +3540,13 @@ const ei = Ui(A), be = class be extends ei {
3540
3540
  }), this.application.storage.set("open", !1));
3541
3541
  }
3542
3542
  notify(t, e = {}) {
3543
- if (window != null && window.parent) {
3544
- const s = window.location.origin;
3545
- window.parent.postMessage(
3546
- {
3547
- type: t,
3548
- data: e
3549
- },
3550
- s
3551
- );
3552
- }
3543
+ window != null && window.parent && window.parent.postMessage(
3544
+ {
3545
+ type: t,
3546
+ data: e
3547
+ },
3548
+ "*"
3549
+ );
3553
3550
  }
3554
3551
  onStartAuth() {
3555
3552
  this.actions$.next({ key: "start-auth" }), this.optionsIsVisible = !1;
@@ -457,7 +457,7 @@
457
457
  :host {
458
458
  display: block;
459
459
  }
460
- `];let X=ye;ue([w({attribute:!0})],X.prototype,"name");ue([S()],X.prototype,"widget");ue([S()],X.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",At);customElements.get("ace-trigger")||customElements.define("ace-trigger",E);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Qt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",at);customElements.get("ace-widget")||customElements.define("ace-widget",X);const z={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let D,ji,Lt,Ni=!1,kt=!1,he=!1,b=!1,De=null,Jt=!1;const Rt=typeof window<"u"?window:{},k=Rt.document||{head:{}},Fi=Rt.HTMLElement||class{},y={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,s)=>i.addEventListener(t,e,s),rel:(i,t,e,s)=>i.removeEventListener(t,e,s),ce:(i,t)=>new CustomEvent(i,t)},Tn=(()=>{let i=!1;try{k.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Pn=i=>Promise.resolve(i),In=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Hi=(i,t,e,s)=>{e&&e.map(([n,r,o])=>{const a=Rn(i,n),l=Ln(t,o),c=Un(n);y.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>y.rel(a,r,l,c))})},Ln=(i,t)=>e=>{try{z.lazyLoad||i.$hostElement$[t](e)}catch(s){dt(s)}},Rn=(i,t)=>t&4?k:t&8?Rt:t&16?k.body:i,Un=i=>Tn?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,We="http://www.w3.org/1999/xlink",F=(i,t="")=>()=>{},qe=new WeakMap,Mn=(i,t,e)=>{let s=Ot.get(i);In&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,Ot.set(i,s)},jn=(i,t,e,s)=>{let n=Bi(t,e),r=Ot.get(n);if(i=i.nodeType===11?i:k,r)if(typeof r=="string"){i=i.head||i;let o=qe.get(i),a;o||qe.set(i,o=new Set),o.has(n)||(a=k.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(n))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return n},Nn=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,n=F("attachStyles",t.$tagName$),r=jn(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),s&2&&e.classList.add(r+"-s")),n()},Bi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Fn=i=>fr.map(t=>t(i)).find(t=>!!t),Ge={},Hn="http://www.w3.org/2000/svg",Bn="http://www.w3.org/1999/xhtml",zn=i=>i!=null,de=i=>(i=typeof i,i==="object"||i==="function"),G=(i,t,...e)=>{let s=null,n=null,r=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)s=h[d],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((o=typeof i!="function"&&!de(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?Ct(null,s):s),a=o)};if(c(e),t){t.key&&(n=t.key),t.name&&(r=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,Wn);const u=Ct(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=n,u.$name$=r,u},Ct=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},fe={},Dn=i=>i&&i.$tag$===fe,Wn={forEach:(i,t)=>i.map(Ye).forEach(t),map:(i,t)=>i.map(Ye).map(t).map(qn)},Ye=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),qn=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),G(i.vtag,e,...i.vchildren||[])}const t=Ct(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Ke=(i,t,e,s,n,r)=>{if(e!==s){let o=Je(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Ze(e),u=Ze(s);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in e)(!s||s[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in s)(!e||s[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,s[l]):i.style[l]=s[l])}else if(t!=="key")if(t==="ref")s&&s(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Je(Rt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&y.rel(i,t,e,!1),s&&y.ael(i,t,s,!1);else{const l=de(s);if((o||l&&s!==null)&&!n)try{if(i.tagName.includes("-"))i[t]=s;else{let u=s??"";t==="list"?o=!1:(e==null||i[t]!=u)&&(i[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?(s!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(We,t):i.removeAttribute(t)):(!o||r&4||n)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(We,t,s):i.setAttribute(t,s))}}},Gn=/\s/,Ze=i=>i?i.split(Gn):[],zi=(i,t,e,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||Ge,o=t.$attrs$||Ge;for(s in r)s in o||Ke(n,s,r[s],void 0,e,t.$flags$);for(s in o)Ke(n,s,r[s],o[s],e,t.$flags$)},Et=(i,t,e,s)=>{let n=t.$children$[e],r=0,o,a,l;if(Ni||(he=!0,n.$tag$==="slot"&&(D&&s.classList.add(D+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=k.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=k.createTextNode("");else{if(b||(b=n.$tag$==="svg"),o=n.$elm$=k.createElementNS(b?Hn:Bn,n.$flags$&2?"slot-fb":n.$tag$),b&&n.$tag$==="foreignObject"&&(b=!1),zi(null,n,b),zn(D)&&o["s-si"]!==D&&o.classList.add(o["s-si"]=D),n.$children$)for(r=0;r<n.$children$.length;++r)a=Et(i,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?b=!1:o.tagName==="foreignObject"&&(b=!0)}return o["s-hn"]=Lt,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=ji,o["s-sn"]=n.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===n.$tag$&&i.$elm$&&lt(i.$elm$,!1)),o},lt=(i,t)=>{y.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const n=e[s];n["s-hn"]!==Lt&&n["s-ol"]&&(qi(n).insertBefore(n,pe(n)),n["s-ol"].remove(),n["s-ol"]=void 0,he=!0),t&&lt(n,t)}y.$flags$&=-2},Di=(i,t,e,s,n,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Lt&&(o=o.shadowRoot);n<=r;++n)s[n]&&(a=Et(null,e,n,i),a&&(s[n].$elm$=a,o.insertBefore(a,pe(t))))},Wi=(i,t,e,s,n)=>{for(;t<=e;++t)(s=i[t])&&(n=s.$elm$,Ki(s),kt=!0,n["s-ol"]?n["s-ol"].remove():lt(n,!0),n.remove())},Yn=(i,t,e,s)=>{let n=0,r=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=s.length-1,d=s[0],f=s[h],v,g;for(;n<=l&&r<=h;)if(c==null)c=t[++n];else if(u==null)u=t[--l];else if(d==null)d=s[++r];else if(f==null)f=s[--h];else if(vt(c,d))W(c,d),c=t[++n],d=s[++r];else if(vt(u,f))W(u,f),u=t[--l],f=s[--h];else if(vt(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&lt(c.$elm$.parentNode,!1),W(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++n],f=s[--h];else if(vt(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&lt(u.$elm$.parentNode,!1),W(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++r];else{for(o=-1,a=n;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?v=Et(t&&t[r],e,o,i):(W(g,d),t[o]=void 0,v=g.$elm$),d=s[++r]):(v=Et(t&&t[r],e,r,i),d=s[++r]),v&&qi(c.$elm$).insertBefore(v,pe(c.$elm$))}n>l?Di(i,s[h+1]==null?null:s[h+1].$elm$,e,s,r,h):r>h&&Wi(t,n,l)},vt=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,pe=i=>i&&i["s-ol"]||i,qi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,W=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(b=r==="svg"?!0:r==="foreignObject"?!1:b,r==="slot"||zi(i,t,b),s!==null&&n!==null?Yn(e,s,t,n):n!==null?(i.$text$!==null&&(e.textContent=""),Di(e,null,t,n,0,n.length-1)):s!==null&&Wi(s,0,s.length-1),b&&r==="svg"&&(b=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Gi=i=>{let t=i.childNodes,e,s,n,r,o,a;for(s=0,n=t.length;s<n;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){e.hidden=!0;break}}Gi(e)}},x=[],Yi=i=>{let t,e,s,n,r,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(s=e.parentNode.childNodes,n=t["s-sn"],o=s.length-1;o>=0;o--)e=s[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Xe(e,n)?(r=x.find(u=>u.$nodeToRelocate$===e),kt=!0,e["s-sn"]=e["s-sn"]||n,r?r.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(u=>{Xe(u.$nodeToRelocate$,e["s-sn"])&&(r=x.find(h=>h.$nodeToRelocate$===e),r&&!u.$slotRefNode$&&(u.$slotRefNode$=r.$slotRefNode$))})):x.some(u=>u.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Yi(t)}},Xe=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Ki=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Ki)},Kn=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,n=i.$vnode$||Ct(null,null),r=Dn(t)?t:G(null,null,t);Lt=e.tagName,s.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=n.$elm$=e.shadowRoot||e,D=e["s-sc"],ji=e["s-cr"],Ni=(s.$flags$&1)!==0,kt=!1,W(n,r);{if(y.$flags$|=1,he){Yi(r.$elm$);let o,a,l,c,u,h,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=k.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<x.length;d++)if(o=x[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}kt&&Gi(r.$elm$),y.$flags$&=-2,x.length=0}},Zn=i=>i,Xn=(i,t,e)=>{const s=Zn(i);return{emit:n=>Qn(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},Qn=(i,t,e)=>{const s=y.ce(t,e);return i.dispatchEvent(s),s},Jn=(i,t)=>{},Zi=(i,t)=>(i.$flags$|=16,Jn(i,i.$ancestorComponent$),vr(()=>Vn(i,t))),Vn=(i,t)=>{const e=i.$hostElement$,s=F("scheduleUpdate",i.$cmpMeta$.$tagName$),n=e;let r;return t?r=Y(n,"componentWillLoad"):r=Y(n,"componentWillUpdate"),r=Qe(r,()=>Y(n,"componentWillRender")),s(),Qe(r,()=>tr(i,n,t))},tr=async(i,t,e)=>{const s=i.$hostElement$,n=F("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Nn(i);const r=F("render",i.$cmpMeta$.$tagName$);er(i,t,s),r(),n(),ir(i)},er=(i,t,e)=>{try{De=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(z.hasRenderFn||z.reflect)&&(z.vdomRender||z.reflect)&&(z.hydrateServerSide||Kn(i,t))}catch(a){dt(a,i.$hostElement$)}return De=null,null},ir=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=F("postUpdate",t),n=e;i.$ancestorComponent$,Y(n,"componentDidRender"),i.$flags$&64?(Y(n,"componentDidUpdate"),s()):(i.$flags$|=64,Y(n,"componentDidLoad"),s())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){dt(s)}},Qe=(i,t)=>i&&i.then?i.then(t):t(),sr=(i,t)=>i!=null&&!de(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,nr=(i,t)=>Ut(i).$instanceValues$.get(t),rr=(i,t,e,s)=>{const n=Ut(i),r=i,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;e=sr(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){n.$instanceValues$.set(t,e);{if(s.$watchers$&&a&128){const h=s.$watchers$[t];h&&h.map(d=>{try{l[d](e,o,t)}catch(f){dt(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Zi(n,!1)}}}},or=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),n=i.prototype;s.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return nr(this,r)},set(a){rr(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){y.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=s.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},ar=async(i,t,e,s,n)=>{if((t.$flags$&32)===0&&(n=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=Fn(i)]);const a=Bi(e,t.$modeName$);if(!Ot.has(a)){const l=F("registerStyles",e.$tagName$);Mn(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Zi(t,!0)},lr=i=>{},cr=i=>{if((y.$flags$&1)===0){const t=Ut(i),e=t.$cmpMeta$,s=F("connectedCallback",e.$tagName$);t.$flags$&1?(Hi(i,t,e.$listeners$),lr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&ur(i),e.$members$&&Object.entries(e.$members$).map(([n,[r]])=>{if(r&31&&i.hasOwnProperty(n)){const o=i[n];delete i[n],i[n]=o}}),ar(i,t,e)),s()}},ur=i=>{const t=i["s-cr"]=k.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},hr=i=>{if((y.$flags$&1)===0){const t=Ut(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Xi=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const s=i.prototype.connectedCallback,n=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){dr(this,e)},connectedCallback(){cr(this),s&&s.call(this)},disconnectedCallback(){hr(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,or(i,e)},Qi=new WeakMap,Ut=i=>Qi.get(i),dr=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Hi(i,e,t.$listeners$),Qi.set(i,e)},Je=(i,t)=>t in i,dt=(i,t)=>(0,console.error)(i,t),Ot=new Map,fr=[],Ve=[],Ji=[],pr=(i,t)=>e=>{i.push(e),Jt||(Jt=!0,t&&y.$flags$&4?gr(Vt):y.raf(Vt))},ti=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){dt(e)}i.length=0},Vt=()=>{ti(Ve),ti(Ji),(Jt=Ve.length>0)&&y.raf(Vt)},gr=i=>Pn().then(i),vr=pr(Ji,!0),$r=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(n=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},mr=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function yr(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class br{constructor(t){this.voca_component=t,this.voca_added=yr(new Date)}}const wr="telia-vst{display:none}",_r=Xi(class extends Fi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Xn(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new br(this.dataTrackingId))}render(){return G(fe,null)}static get style(){return wr}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Vi(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,_r);break}})}Vi();function te(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function xr(){if(typeof te().vocadsIcons!==void 0)return te().vocadsIcons}function Sr(){return te().vocadsIconsRegistered}const Ar=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",kr=Xi(class extends Fi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Sr()&&this.name){const i=xr();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const e=$r({content:mr(i),attributes:t,title:this.allyTitle});return G(fe,{class:`telia-icon telia-icon--${this.size}`},G("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),G("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Ar}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Cr(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,kr);break;case"telia-vst":customElements.get(t)||Vi();break}})}Cr();const Er=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Or=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():Er();class Tr{constructor(t,e,s,n,r,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=n,this.key=r,this.update=new ut,this.id=Or(),this._controller=o,this.enabled=a}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Pr{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const e=new Tr(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=ln(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}var Ir=Object.defineProperty,ft=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Ir(t,e,n),n};const ei=Ui(A),be=class be extends ei{constructor(){super(...arguments),this.optionsIsVisible=!1,this.authState=et.NonAuthenticated,this.userName="",this.authUrl="",this.showAuthOptions=!0,this.shouldUseAuth=!1,this.options=new Pr(this),this.optionsRef=_t(),this.optionsTriggerRef=_t(),this.actions$=new ut,this.onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)},this.onGlobalKeyDown=t=>{var e,s;if(t.key==="Escape"){if(this.optionsIsVisible&&this.optionsRef.value){this.optionsIsVisible=!1,(e=this.optionsTriggerRef.value)==null||e.focus();return}if((s=this.application.trigger)!=null&&s.active){this.onMinimizeClick();return}return}t.key==="Tab"&&this.optionsIsVisible&&this.optionsRef.value&&this.handleFocusTrap(t)}}addOption(t){return this.options.addOption(t)}removeOption(t){return this.options.removeOption(t)}onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}onMinimizeClick(){this.application.trigger?this.application.trigger.toggleActive():(this.notify("widget-minimize",{widgetId:this.application.id}),this.application.storage.set("open",!1))}notify(t,e={}){if(window!=null&&window.parent){const s=window.location.origin;window.parent.postMessage({type:t,data:e},s)}}onStartAuth(){this.actions$.next({key:"start-auth"}),this.optionsIsVisible=!1}handleFocusTrap(t){var o,a;const e=(o=this.optionsRef.value)==null?void 0:o.querySelectorAll('button:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])');if(!e||e.length===0)return;const s=e[0],n=e[e.length-1],r=(a=this.shadowRoot)==null?void 0:a.activeElement;t.shiftKey?r===s&&(t.preventDefault(),n.focus()):r===n&&(t.preventDefault(),s.focus())}renderAuthSection(t){return!this.showAuthOptions||!(this.shouldUseAuth&&this.authState!==et.ChatEnded)?p:m`<div class="options-menu__auth-container">
460
+ `];let X=ye;ue([w({attribute:!0})],X.prototype,"name");ue([S()],X.prototype,"widget");ue([S()],X.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",At);customElements.get("ace-trigger")||customElements.define("ace-trigger",E);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Qt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",at);customElements.get("ace-widget")||customElements.define("ace-widget",X);const z={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let D,ji,Lt,Ni=!1,kt=!1,he=!1,b=!1,De=null,Jt=!1;const Rt=typeof window<"u"?window:{},k=Rt.document||{head:{}},Fi=Rt.HTMLElement||class{},y={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,s)=>i.addEventListener(t,e,s),rel:(i,t,e,s)=>i.removeEventListener(t,e,s),ce:(i,t)=>new CustomEvent(i,t)},Tn=(()=>{let i=!1;try{k.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Pn=i=>Promise.resolve(i),In=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Hi=(i,t,e,s)=>{e&&e.map(([n,r,o])=>{const a=Rn(i,n),l=Ln(t,o),c=Un(n);y.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>y.rel(a,r,l,c))})},Ln=(i,t)=>e=>{try{z.lazyLoad||i.$hostElement$[t](e)}catch(s){dt(s)}},Rn=(i,t)=>t&4?k:t&8?Rt:t&16?k.body:i,Un=i=>Tn?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,We="http://www.w3.org/1999/xlink",F=(i,t="")=>()=>{},qe=new WeakMap,Mn=(i,t,e)=>{let s=Ot.get(i);In&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,Ot.set(i,s)},jn=(i,t,e,s)=>{let n=Bi(t,e),r=Ot.get(n);if(i=i.nodeType===11?i:k,r)if(typeof r=="string"){i=i.head||i;let o=qe.get(i),a;o||qe.set(i,o=new Set),o.has(n)||(a=k.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(n))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return n},Nn=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,n=F("attachStyles",t.$tagName$),r=jn(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),s&2&&e.classList.add(r+"-s")),n()},Bi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Fn=i=>fr.map(t=>t(i)).find(t=>!!t),Ge={},Hn="http://www.w3.org/2000/svg",Bn="http://www.w3.org/1999/xhtml",zn=i=>i!=null,de=i=>(i=typeof i,i==="object"||i==="function"),G=(i,t,...e)=>{let s=null,n=null,r=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)s=h[d],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((o=typeof i!="function"&&!de(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?Ct(null,s):s),a=o)};if(c(e),t){t.key&&(n=t.key),t.name&&(r=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,Wn);const u=Ct(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=n,u.$name$=r,u},Ct=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},fe={},Dn=i=>i&&i.$tag$===fe,Wn={forEach:(i,t)=>i.map(Ye).forEach(t),map:(i,t)=>i.map(Ye).map(t).map(qn)},Ye=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),qn=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),G(i.vtag,e,...i.vchildren||[])}const t=Ct(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Ke=(i,t,e,s,n,r)=>{if(e!==s){let o=Je(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Ze(e),u=Ze(s);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in e)(!s||s[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in s)(!e||s[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,s[l]):i.style[l]=s[l])}else if(t!=="key")if(t==="ref")s&&s(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Je(Rt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&y.rel(i,t,e,!1),s&&y.ael(i,t,s,!1);else{const l=de(s);if((o||l&&s!==null)&&!n)try{if(i.tagName.includes("-"))i[t]=s;else{let u=s??"";t==="list"?o=!1:(e==null||i[t]!=u)&&(i[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?(s!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(We,t):i.removeAttribute(t)):(!o||r&4||n)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(We,t,s):i.setAttribute(t,s))}}},Gn=/\s/,Ze=i=>i?i.split(Gn):[],zi=(i,t,e,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||Ge,o=t.$attrs$||Ge;for(s in r)s in o||Ke(n,s,r[s],void 0,e,t.$flags$);for(s in o)Ke(n,s,r[s],o[s],e,t.$flags$)},Et=(i,t,e,s)=>{let n=t.$children$[e],r=0,o,a,l;if(Ni||(he=!0,n.$tag$==="slot"&&(D&&s.classList.add(D+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=k.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=k.createTextNode("");else{if(b||(b=n.$tag$==="svg"),o=n.$elm$=k.createElementNS(b?Hn:Bn,n.$flags$&2?"slot-fb":n.$tag$),b&&n.$tag$==="foreignObject"&&(b=!1),zi(null,n,b),zn(D)&&o["s-si"]!==D&&o.classList.add(o["s-si"]=D),n.$children$)for(r=0;r<n.$children$.length;++r)a=Et(i,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?b=!1:o.tagName==="foreignObject"&&(b=!0)}return o["s-hn"]=Lt,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=ji,o["s-sn"]=n.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===n.$tag$&&i.$elm$&&lt(i.$elm$,!1)),o},lt=(i,t)=>{y.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const n=e[s];n["s-hn"]!==Lt&&n["s-ol"]&&(qi(n).insertBefore(n,pe(n)),n["s-ol"].remove(),n["s-ol"]=void 0,he=!0),t&&lt(n,t)}y.$flags$&=-2},Di=(i,t,e,s,n,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Lt&&(o=o.shadowRoot);n<=r;++n)s[n]&&(a=Et(null,e,n,i),a&&(s[n].$elm$=a,o.insertBefore(a,pe(t))))},Wi=(i,t,e,s,n)=>{for(;t<=e;++t)(s=i[t])&&(n=s.$elm$,Ki(s),kt=!0,n["s-ol"]?n["s-ol"].remove():lt(n,!0),n.remove())},Yn=(i,t,e,s)=>{let n=0,r=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=s.length-1,d=s[0],f=s[h],v,g;for(;n<=l&&r<=h;)if(c==null)c=t[++n];else if(u==null)u=t[--l];else if(d==null)d=s[++r];else if(f==null)f=s[--h];else if(vt(c,d))W(c,d),c=t[++n],d=s[++r];else if(vt(u,f))W(u,f),u=t[--l],f=s[--h];else if(vt(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&lt(c.$elm$.parentNode,!1),W(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++n],f=s[--h];else if(vt(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&lt(u.$elm$.parentNode,!1),W(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++r];else{for(o=-1,a=n;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?v=Et(t&&t[r],e,o,i):(W(g,d),t[o]=void 0,v=g.$elm$),d=s[++r]):(v=Et(t&&t[r],e,r,i),d=s[++r]),v&&qi(c.$elm$).insertBefore(v,pe(c.$elm$))}n>l?Di(i,s[h+1]==null?null:s[h+1].$elm$,e,s,r,h):r>h&&Wi(t,n,l)},vt=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,pe=i=>i&&i["s-ol"]||i,qi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,W=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(b=r==="svg"?!0:r==="foreignObject"?!1:b,r==="slot"||zi(i,t,b),s!==null&&n!==null?Yn(e,s,t,n):n!==null?(i.$text$!==null&&(e.textContent=""),Di(e,null,t,n,0,n.length-1)):s!==null&&Wi(s,0,s.length-1),b&&r==="svg"&&(b=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Gi=i=>{let t=i.childNodes,e,s,n,r,o,a;for(s=0,n=t.length;s<n;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){e.hidden=!0;break}}Gi(e)}},x=[],Yi=i=>{let t,e,s,n,r,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(s=e.parentNode.childNodes,n=t["s-sn"],o=s.length-1;o>=0;o--)e=s[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Xe(e,n)?(r=x.find(u=>u.$nodeToRelocate$===e),kt=!0,e["s-sn"]=e["s-sn"]||n,r?r.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(u=>{Xe(u.$nodeToRelocate$,e["s-sn"])&&(r=x.find(h=>h.$nodeToRelocate$===e),r&&!u.$slotRefNode$&&(u.$slotRefNode$=r.$slotRefNode$))})):x.some(u=>u.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Yi(t)}},Xe=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Ki=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Ki)},Kn=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,n=i.$vnode$||Ct(null,null),r=Dn(t)?t:G(null,null,t);Lt=e.tagName,s.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=n.$elm$=e.shadowRoot||e,D=e["s-sc"],ji=e["s-cr"],Ni=(s.$flags$&1)!==0,kt=!1,W(n,r);{if(y.$flags$|=1,he){Yi(r.$elm$);let o,a,l,c,u,h,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=k.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<x.length;d++)if(o=x[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}kt&&Gi(r.$elm$),y.$flags$&=-2,x.length=0}},Zn=i=>i,Xn=(i,t,e)=>{const s=Zn(i);return{emit:n=>Qn(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},Qn=(i,t,e)=>{const s=y.ce(t,e);return i.dispatchEvent(s),s},Jn=(i,t)=>{},Zi=(i,t)=>(i.$flags$|=16,Jn(i,i.$ancestorComponent$),vr(()=>Vn(i,t))),Vn=(i,t)=>{const e=i.$hostElement$,s=F("scheduleUpdate",i.$cmpMeta$.$tagName$),n=e;let r;return t?r=Y(n,"componentWillLoad"):r=Y(n,"componentWillUpdate"),r=Qe(r,()=>Y(n,"componentWillRender")),s(),Qe(r,()=>tr(i,n,t))},tr=async(i,t,e)=>{const s=i.$hostElement$,n=F("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Nn(i);const r=F("render",i.$cmpMeta$.$tagName$);er(i,t,s),r(),n(),ir(i)},er=(i,t,e)=>{try{De=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(z.hasRenderFn||z.reflect)&&(z.vdomRender||z.reflect)&&(z.hydrateServerSide||Kn(i,t))}catch(a){dt(a,i.$hostElement$)}return De=null,null},ir=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=F("postUpdate",t),n=e;i.$ancestorComponent$,Y(n,"componentDidRender"),i.$flags$&64?(Y(n,"componentDidUpdate"),s()):(i.$flags$|=64,Y(n,"componentDidLoad"),s())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){dt(s)}},Qe=(i,t)=>i&&i.then?i.then(t):t(),sr=(i,t)=>i!=null&&!de(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,nr=(i,t)=>Ut(i).$instanceValues$.get(t),rr=(i,t,e,s)=>{const n=Ut(i),r=i,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;e=sr(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){n.$instanceValues$.set(t,e);{if(s.$watchers$&&a&128){const h=s.$watchers$[t];h&&h.map(d=>{try{l[d](e,o,t)}catch(f){dt(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Zi(n,!1)}}}},or=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),n=i.prototype;s.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return nr(this,r)},set(a){rr(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){y.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=s.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},ar=async(i,t,e,s,n)=>{if((t.$flags$&32)===0&&(n=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=Fn(i)]);const a=Bi(e,t.$modeName$);if(!Ot.has(a)){const l=F("registerStyles",e.$tagName$);Mn(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Zi(t,!0)},lr=i=>{},cr=i=>{if((y.$flags$&1)===0){const t=Ut(i),e=t.$cmpMeta$,s=F("connectedCallback",e.$tagName$);t.$flags$&1?(Hi(i,t,e.$listeners$),lr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&ur(i),e.$members$&&Object.entries(e.$members$).map(([n,[r]])=>{if(r&31&&i.hasOwnProperty(n)){const o=i[n];delete i[n],i[n]=o}}),ar(i,t,e)),s()}},ur=i=>{const t=i["s-cr"]=k.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},hr=i=>{if((y.$flags$&1)===0){const t=Ut(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Xi=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const s=i.prototype.connectedCallback,n=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){dr(this,e)},connectedCallback(){cr(this),s&&s.call(this)},disconnectedCallback(){hr(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,or(i,e)},Qi=new WeakMap,Ut=i=>Qi.get(i),dr=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Hi(i,e,t.$listeners$),Qi.set(i,e)},Je=(i,t)=>t in i,dt=(i,t)=>(0,console.error)(i,t),Ot=new Map,fr=[],Ve=[],Ji=[],pr=(i,t)=>e=>{i.push(e),Jt||(Jt=!0,t&&y.$flags$&4?gr(Vt):y.raf(Vt))},ti=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){dt(e)}i.length=0},Vt=()=>{ti(Ve),ti(Ji),(Jt=Ve.length>0)&&y.raf(Vt)},gr=i=>Pn().then(i),vr=pr(Ji,!0),$r=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(n=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},mr=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function yr(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class br{constructor(t){this.voca_component=t,this.voca_added=yr(new Date)}}const wr="telia-vst{display:none}",_r=Xi(class extends Fi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Xn(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new br(this.dataTrackingId))}render(){return G(fe,null)}static get style(){return wr}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Vi(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,_r);break}})}Vi();function te(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function xr(){if(typeof te().vocadsIcons!==void 0)return te().vocadsIcons}function Sr(){return te().vocadsIconsRegistered}const Ar=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",kr=Xi(class extends Fi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Sr()&&this.name){const i=xr();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const e=$r({content:mr(i),attributes:t,title:this.allyTitle});return G(fe,{class:`telia-icon telia-icon--${this.size}`},G("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),G("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Ar}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Cr(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,kr);break;case"telia-vst":customElements.get(t)||Vi();break}})}Cr();const Er=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Or=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():Er();class Tr{constructor(t,e,s,n,r,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=n,this.key=r,this.update=new ut,this.id=Or(),this._controller=o,this.enabled=a}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Pr{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const e=new Tr(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=ln(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}var Ir=Object.defineProperty,ft=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Ir(t,e,n),n};const ei=Ui(A),be=class be extends ei{constructor(){super(...arguments),this.optionsIsVisible=!1,this.authState=et.NonAuthenticated,this.userName="",this.authUrl="",this.showAuthOptions=!0,this.shouldUseAuth=!1,this.options=new Pr(this),this.optionsRef=_t(),this.optionsTriggerRef=_t(),this.actions$=new ut,this.onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)},this.onGlobalKeyDown=t=>{var e,s;if(t.key==="Escape"){if(this.optionsIsVisible&&this.optionsRef.value){this.optionsIsVisible=!1,(e=this.optionsTriggerRef.value)==null||e.focus();return}if((s=this.application.trigger)!=null&&s.active){this.onMinimizeClick();return}return}t.key==="Tab"&&this.optionsIsVisible&&this.optionsRef.value&&this.handleFocusTrap(t)}}addOption(t){return this.options.addOption(t)}removeOption(t){return this.options.removeOption(t)}onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}onMinimizeClick(){this.application.trigger?this.application.trigger.toggleActive():(this.notify("widget-minimize",{widgetId:this.application.id}),this.application.storage.set("open",!1))}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}onStartAuth(){this.actions$.next({key:"start-auth"}),this.optionsIsVisible=!1}handleFocusTrap(t){var o,a;const e=(o=this.optionsRef.value)==null?void 0:o.querySelectorAll('button:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])');if(!e||e.length===0)return;const s=e[0],n=e[e.length-1],r=(a=this.shadowRoot)==null?void 0:a.activeElement;t.shiftKey?r===s&&(t.preventDefault(),n.focus()):r===n&&(t.preventDefault(),s.focus())}renderAuthSection(t){return!this.showAuthOptions||!(this.shouldUseAuth&&this.authState!==et.ChatEnded)?p:m`<div class="options-menu__auth-container">
461
461
  <p class="options-menu__auth-helper-text" data-testid="auth-helper-text">
462
462
  ${t.getOrFallback("widget-header.authentication-text","AUTHENTICATED AS")}
463
463
  </p>