@telia-ace/widget-side-menu 1.1.116-rc.3 → 1.1.116

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 n=async e=>{e.registerComponent("side-menu",Promise.resolve().then(()=>require("./side-menu-DbCaq5f1.js")))};module.exports=n;
1
+ "use strict";const n=async e=>{e.registerComponent("side-menu",Promise.resolve().then(()=>require("./side-menu-BwjiNYds.js")))};module.exports=n;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const n = async (e) => {
2
- e.registerComponent("side-menu", import("./side-menu-DFwk8hx0.mjs"));
2
+ e.registerComponent("side-menu", import("./side-menu-n6R0ZrvD.mjs"));
3
3
  };
4
4
  export {
5
5
  n as default
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-side-menu",
3
- "version": "1.1.116-rc.3",
3
+ "version": "1.1.116",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
6
  "rxjs": "^7.8.2",
7
- "@telia-ace/widget-core-flamingo": "1.1.116-rc.3",
7
+ "@telia-ace/widget-core-flamingo": "1.1.116",
8
8
  "@teliads/components": "^22.1.1",
9
9
  "@lit-labs/motion": "^1.0.8",
10
10
  "lit-html": "^3.0.2"
@@ -455,7 +455,7 @@
455
455
  :host {
456
456
  display: block;
457
457
  }
458
- `];let Z=me;ce([b({attribute:!0})],Z.prototype,"name");ce([B()],Z.prototype,"widget");ce([B()],Z.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",bt);customElements.get("ace-trigger")||customElements.define("ace-trigger",E);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Xt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",ot);customElements.get("ace-widget")||customElements.define("ace-widget",Z);const Cr=()=>"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():Cr();class Tr{constructor(t,e,s,r,n,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=r,this.key=n,this.update=new Tt,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=js(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}}const F={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,Bi,It,Hi=!1,xt=!1,ue=!1,y=!1,qe=null,Qt=!1;const Lt=typeof window<"u"?window:{},S=Lt.document||{head:{}},Fi=Lt.HTMLElement||class{},m={$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)},Ir=(()=>{let i=!1;try{S.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Lr=i=>Promise.resolve(i),Rr=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Di=(i,t,e,s)=>{e&&e.map(([r,n,o])=>{const a=Mr(i,r),l=Ur(t,o),c=jr(r);m.ael(a,n,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,n,l,c))})},Ur=(i,t)=>e=>{try{F.lazyLoad||i.$hostElement$[t](e)}catch(s){ht(s)}},Mr=(i,t)=>t&4?S:t&8?Lt:t&16?S.body:i,jr=i=>Ir?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,We="http://www.w3.org/1999/xlink",j=(i,t="")=>()=>{},Ge=new WeakMap,Nr=(i,t,e)=>{let s=kt.get(i);Rr&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,kt.set(i,s)},Br=(i,t,e,s)=>{let r=zi(t,e),n=kt.get(r);if(i=i.nodeType===11?i:S,n)if(typeof n=="string"){i=i.head||i;let o=Ge.get(i),a;o||Ge.set(i,o=new Set),o.has(r)||(a=S.createElement("style"),a.innerHTML=n,i.insertBefore(a,i.querySelector("link")),o&&o.add(r))}else i.adoptedStyleSheets.includes(n)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,n]);return r},Hr=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,r=j("attachStyles",t.$tagName$),n=Br(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=n,e.classList.add(n+"-h"),s&2&&e.classList.add(n+"-s")),r()},zi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Fr=i=>$n.map(t=>t(i)).find(t=>!!t),Ye={},Dr="http://www.w3.org/2000/svg",zr="http://www.w3.org/1999/xhtml",qr=i=>i!=null,he=i=>(i=typeof i,i==="object"||i==="function"),W=(i,t,...e)=>{let s=null,r=null,n=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"&&!he(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?St(null,s):s),a=o)};if(c(e),t){t.key&&(r=t.key),t.name&&(n=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,Gr);const u=St(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=n,u},St=(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},de={},Wr=i=>i&&i.$tag$===de,Gr={forEach:(i,t)=>i.map(Ke).forEach(t),map:(i,t)=>i.map(Ke).map(t).map(Yr)},Ke=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Yr=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),W(i.vtag,e,...i.vchildren||[])}const t=St(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Ze=(i,t,e,s,r,n)=>{if(e!==s){let o=Ve(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Xe(e),u=Xe(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):Ve(Lt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),s&&m.ael(i,t,s,!1);else{const l=he(s);if((o||l&&s!==null)&&!r)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||n&4||r)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(We,t,s):i.setAttribute(t,s))}}},Kr=/\s/,Xe=i=>i?i.split(Kr):[],qi=(i,t,e,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=i&&i.$attrs$||Ye,o=t.$attrs$||Ye;for(s in n)s in o||Ze(r,s,n[s],void 0,e,t.$flags$);for(s in o)Ze(r,s,n[s],o[s],e,t.$flags$)},At=(i,t,e,s)=>{let r=t.$children$[e],n=0,o,a,l;if(Hi||(ue=!0,r.$tag$==="slot"&&(D&&s.classList.add(D+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)o=r.$elm$=S.createTextNode(r.$text$);else if(r.$flags$&1)o=r.$elm$=S.createTextNode("");else{if(y||(y=r.$tag$==="svg"),o=r.$elm$=S.createElementNS(y?Dr:zr,r.$flags$&2?"slot-fb":r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),qi(null,r,y),qr(D)&&o["s-si"]!==D&&o.classList.add(o["s-si"]=D),r.$children$)for(n=0;n<r.$children$.length;++n)a=At(i,r,n,o),a&&o.appendChild(a);r.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=It,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Bi,o["s-sn"]=r.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===r.$tag$&&i.$elm$&&at(i.$elm$,!1)),o},at=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const r=e[s];r["s-hn"]!==It&&r["s-ol"]&&(Yi(r).insertBefore(r,fe(r)),r["s-ol"].remove(),r["s-ol"]=void 0,ue=!0),t&&at(r,t)}m.$flags$&=-2},Wi=(i,t,e,s,r,n)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===It&&(o=o.shadowRoot);r<=n;++r)s[r]&&(a=At(null,e,r,i),a&&(s[r].$elm$=a,o.insertBefore(a,fe(t))))},Gi=(i,t,e,s,r)=>{for(;t<=e;++t)(s=i[t])&&(r=s.$elm$,Xi(s),xt=!0,r["s-ol"]?r["s-ol"].remove():at(r,!0),r.remove())},Zr=(i,t,e,s)=>{let r=0,n=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],$,g;for(;r<=l&&n<=h;)if(c==null)c=t[++r];else if(u==null)u=t[--l];else if(d==null)d=s[++n];else if(f==null)f=s[--h];else if(pt(c,d))z(c,d),c=t[++r],d=s[++n];else if(pt(u,f))z(u,f),u=t[--l],f=s[--h];else if(pt(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&at(c.$elm$.parentNode,!1),z(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=s[--h];else if(pt(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&at(u.$elm$.parentNode,!1),z(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++n];else{for(o=-1,a=r;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$?$=At(t&&t[n],e,o,i):(z(g,d),t[o]=void 0,$=g.$elm$),d=s[++n]):($=At(t&&t[n],e,n,i),d=s[++n]),$&&Yi(c.$elm$).insertBefore($,fe(c.$elm$))}r>l?Wi(i,s[h+1]==null?null:s[h+1].$elm$,e,s,n,h):n>h&&Gi(t,r,l)},pt=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,fe=i=>i&&i["s-ol"]||i,Yi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,z=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,r=t.$children$,n=t.$tag$,o=t.$text$;let a;o===null?(y=n==="svg"?!0:n==="foreignObject"?!1:y,n==="slot"||qi(i,t,y),s!==null&&r!==null?Zr(e,s,t,r):r!==null?(i.$text$!==null&&(e.textContent=""),Wi(e,null,t,r,0,r.length-1)):s!==null&&Gi(s,0,s.length-1),y&&n==="svg"&&(y=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Ki=i=>{let t=i.childNodes,e,s,r,n,o,a;for(s=0,r=t.length;s<r;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,n=0;n<r;n++)if(a=t[n].nodeType,t[n]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[n].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[n].textContent.trim()!==""){e.hidden=!0;break}}Ki(e)}},w=[],Zi=i=>{let t,e,s,r,n,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,r=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"]&&(Qe(e,r)?(n=w.find(u=>u.$nodeToRelocate$===e),xt=!0,e["s-sn"]=e["s-sn"]||r,n?n.$slotRefNode$=t:w.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&w.map(u=>{Qe(u.$nodeToRelocate$,e["s-sn"])&&(n=w.find(h=>h.$nodeToRelocate$===e),n&&!u.$slotRefNode$&&(u.$slotRefNode$=n.$slotRefNode$))})):w.some(u=>u.$nodeToRelocate$===e)||w.push({$nodeToRelocate$:e}));t.nodeType===1&&Zi(t)}},Qe=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Xi=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Xi)},Xr=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,r=i.$vnode$||St(null,null),n=Wr(t)?t:W(null,null,t);It=e.tagName,s.$attrsToReflect$&&(n.$attrs$=n.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>n.$attrs$[a]=e[o])),n.$tag$=null,n.$flags$|=4,i.$vnode$=n,n.$elm$=r.$elm$=e.shadowRoot||e,D=e["s-sc"],Bi=e["s-cr"],Hi=(s.$flags$&1)!==0,xt=!1,z(r,n);{if(m.$flags$|=1,ue){Zi(n.$elm$);let o,a,l,c,u,h,d=0;for(;d<w.length;d++)o=w[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=S.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<w.length;d++)if(o=w[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)}xt&&Ki(n.$elm$),m.$flags$&=-2,w.length=0}},Qr=i=>i,Jr=(i,t,e)=>{const s=Qr(i);return{emit:r=>Vr(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},Vr=(i,t,e)=>{const s=m.ce(t,e);return i.dispatchEvent(s),s},tn=(i,t)=>{},Qi=(i,t)=>(i.$flags$|=16,tn(i,i.$ancestorComponent$),yn(()=>en(i,t))),en=(i,t)=>{const e=i.$hostElement$,s=j("scheduleUpdate",i.$cmpMeta$.$tagName$),r=e;let n;return t?n=G(r,"componentWillLoad"):n=G(r,"componentWillUpdate"),n=Je(n,()=>G(r,"componentWillRender")),s(),Je(n,()=>sn(i,r,t))},sn=async(i,t,e)=>{const s=i.$hostElement$,r=j("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Hr(i);const n=j("render",i.$cmpMeta$.$tagName$);rn(i,t,s),n(),r(),nn(i)},rn=(i,t,e)=>{try{qe=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(F.hasRenderFn||F.reflect)&&(F.vdomRender||F.reflect)&&(F.hydrateServerSide||Xr(i,t))}catch(a){ht(a,i.$hostElement$)}return qe=null,null},nn=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=j("postUpdate",t),r=e;i.$ancestorComponent$,G(r,"componentDidRender"),i.$flags$&64?(G(r,"componentDidUpdate"),s()):(i.$flags$|=64,G(r,"componentDidLoad"),s())},G=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){ht(s)}},Je=(i,t)=>i&&i.then?i.then(t):t(),on=(i,t)=>i!=null&&!he(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,an=(i,t)=>Rt(i).$instanceValues$.get(t),ln=(i,t,e,s)=>{const r=Rt(i),n=i,o=r.$instanceValues$.get(t),a=r.$flags$,l=n;e=on(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){r.$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){ht(f,n)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Qi(r,!1)}}}},cn=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),r=i.prototype;s.map(([n,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,n,{get(){return an(this,n)},set(a){ln(this,n,a,t)},configurable:!0,enumerable:!0})});{const n=new Map;r.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=n.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(r.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 n.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},un=async(i,t,e,s,r)=>{if(!(t.$flags$&32)&&(r=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Fr(i)]);const a=zi(e,t.$modeName$);if(!kt.has(a)){const l=j("registerStyles",e.$tagName$);Nr(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Qi(t,!0)},hn=i=>{},dn=i=>{if(!(m.$flags$&1)){const t=Rt(i),e=t.$cmpMeta$,s=j("connectedCallback",e.$tagName$);t.$flags$&1?(Di(i,t,e.$listeners$),hn(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&fn(i),e.$members$&&Object.entries(e.$members$).map(([r,[n]])=>{if(n&31&&i.hasOwnProperty(r)){const o=i[r];delete i[r],i[r]=o}}),un(i,t,e)),s()}},fn=i=>{const t=i["s-cr"]=S.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},pn=i=>{if(!(m.$flags$&1)){const t=Rt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Ji=(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,r=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){gn(this,e)},connectedCallback(){dn(this),s&&s.call(this)},disconnectedCallback(){pn(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,cn(i,e)},Vi=new WeakMap,Rt=i=>Vi.get(i),gn=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Di(i,e,t.$listeners$),Vi.set(i,e)},Ve=(i,t)=>t in i,ht=(i,t)=>(0,console.error)(i,t),kt=new Map,$n=[],ti=[],ts=[],vn=(i,t)=>e=>{i.push(e),Qt||(Qt=!0,t&&m.$flags$&4?mn(Jt):m.raf(Jt))},ei=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ht(e)}i.length=0},Jt=()=>{ei(ti),ei(ts),(Qt=ti.length>0)&&m.raf(Jt)},mn=i=>Lr().then(i),yn=vn(ts,!0),bn=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let r="",n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(r=`<title>${e}</title>`),`<svg ${n.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},_n=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function wn(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class xn{constructor(t){this.voca_component=t,this.voca_added=wn(new Date)}}const Sn="telia-vst{display:none}",An=Ji(class extends Fi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Jr(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new xn(this.dataTrackingId))}render(){return W(de,null)}static get style(){return Sn}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function es(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,An);break}})}es();function Vt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function kn(){if(typeof Vt().vocadsIcons!==void 0)return Vt().vocadsIcons}function En(){return Vt().vocadsIconsRegistered}const Cn=".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))}",On=Ji(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(En()&&this.name){const i=kn();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=bn({content:_n(i),attributes:t,title:this.allyTitle});return W(de,{class:`telia-icon telia-icon--${this.size}`},W("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),W("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Cn}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Tn(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,On);break;case"telia-vst":customElements.get(t)||es();break}})}Tn();var Pn=Object.defineProperty,In=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&Pn(t,e,r),r};const ii=ji(x),ye=class ye extends ii{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Pr(this),this.optionsRef=wt(),this.optionsTriggerRef=wt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){const e=this.options.removeOption(t);return this.requestUpdate(),e}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){return this.options.options.length?k` <div class="side-menu">
458
+ `];let Z=me;ce([b({attribute:!0})],Z.prototype,"name");ce([B()],Z.prototype,"widget");ce([B()],Z.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",bt);customElements.get("ace-trigger")||customElements.define("ace-trigger",E);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Xt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",ot);customElements.get("ace-widget")||customElements.define("ace-widget",Z);const Cr=()=>"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():Cr();class Tr{constructor(t,e,s,r,n,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=r,this.key=n,this.update=new Tt,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=js(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}}const F={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,Bi,It,Hi=!1,xt=!1,ue=!1,y=!1,qe=null,Qt=!1;const Lt=typeof window<"u"?window:{},S=Lt.document||{head:{}},Fi=Lt.HTMLElement||class{},m={$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)},Ir=(()=>{let i=!1;try{S.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Lr=i=>Promise.resolve(i),Rr=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Di=(i,t,e,s)=>{e&&e.map(([r,n,o])=>{const a=Mr(i,r),l=Ur(t,o),c=jr(r);m.ael(a,n,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,n,l,c))})},Ur=(i,t)=>e=>{try{F.lazyLoad||i.$hostElement$[t](e)}catch(s){ht(s)}},Mr=(i,t)=>t&4?S:t&8?Lt:t&16?S.body:i,jr=i=>Ir?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,We="http://www.w3.org/1999/xlink",j=(i,t="")=>()=>{},Ge=new WeakMap,Nr=(i,t,e)=>{let s=kt.get(i);Rr&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,kt.set(i,s)},Br=(i,t,e,s)=>{let r=zi(t,e),n=kt.get(r);if(i=i.nodeType===11?i:S,n)if(typeof n=="string"){i=i.head||i;let o=Ge.get(i),a;o||Ge.set(i,o=new Set),o.has(r)||(a=S.createElement("style"),a.innerHTML=n,i.insertBefore(a,i.querySelector("link")),o&&o.add(r))}else i.adoptedStyleSheets.includes(n)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,n]);return r},Hr=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,r=j("attachStyles",t.$tagName$),n=Br(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=n,e.classList.add(n+"-h"),s&2&&e.classList.add(n+"-s")),r()},zi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Fr=i=>$n.map(t=>t(i)).find(t=>!!t),Ye={},Dr="http://www.w3.org/2000/svg",zr="http://www.w3.org/1999/xhtml",qr=i=>i!=null,he=i=>(i=typeof i,i==="object"||i==="function"),W=(i,t,...e)=>{let s=null,r=null,n=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"&&!he(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?St(null,s):s),a=o)};if(c(e),t){t.key&&(r=t.key),t.name&&(n=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,Gr);const u=St(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=n,u},St=(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},de={},Wr=i=>i&&i.$tag$===de,Gr={forEach:(i,t)=>i.map(Ke).forEach(t),map:(i,t)=>i.map(Ke).map(t).map(Yr)},Ke=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Yr=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),W(i.vtag,e,...i.vchildren||[])}const t=St(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Ze=(i,t,e,s,r,n)=>{if(e!==s){let o=Ve(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Xe(e),u=Xe(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):Ve(Lt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),s&&m.ael(i,t,s,!1);else{const l=he(s);if((o||l&&s!==null)&&!r)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||n&4||r)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(We,t,s):i.setAttribute(t,s))}}},Kr=/\s/,Xe=i=>i?i.split(Kr):[],qi=(i,t,e,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=i&&i.$attrs$||Ye,o=t.$attrs$||Ye;for(s in n)s in o||Ze(r,s,n[s],void 0,e,t.$flags$);for(s in o)Ze(r,s,n[s],o[s],e,t.$flags$)},At=(i,t,e,s)=>{let r=t.$children$[e],n=0,o,a,l;if(Hi||(ue=!0,r.$tag$==="slot"&&(D&&s.classList.add(D+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)o=r.$elm$=S.createTextNode(r.$text$);else if(r.$flags$&1)o=r.$elm$=S.createTextNode("");else{if(y||(y=r.$tag$==="svg"),o=r.$elm$=S.createElementNS(y?Dr:zr,r.$flags$&2?"slot-fb":r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),qi(null,r,y),qr(D)&&o["s-si"]!==D&&o.classList.add(o["s-si"]=D),r.$children$)for(n=0;n<r.$children$.length;++n)a=At(i,r,n,o),a&&o.appendChild(a);r.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=It,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Bi,o["s-sn"]=r.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===r.$tag$&&i.$elm$&&at(i.$elm$,!1)),o},at=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const r=e[s];r["s-hn"]!==It&&r["s-ol"]&&(Yi(r).insertBefore(r,fe(r)),r["s-ol"].remove(),r["s-ol"]=void 0,ue=!0),t&&at(r,t)}m.$flags$&=-2},Wi=(i,t,e,s,r,n)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===It&&(o=o.shadowRoot);r<=n;++r)s[r]&&(a=At(null,e,r,i),a&&(s[r].$elm$=a,o.insertBefore(a,fe(t))))},Gi=(i,t,e,s,r)=>{for(;t<=e;++t)(s=i[t])&&(r=s.$elm$,Xi(s),xt=!0,r["s-ol"]?r["s-ol"].remove():at(r,!0),r.remove())},Zr=(i,t,e,s)=>{let r=0,n=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],$,g;for(;r<=l&&n<=h;)if(c==null)c=t[++r];else if(u==null)u=t[--l];else if(d==null)d=s[++n];else if(f==null)f=s[--h];else if(pt(c,d))z(c,d),c=t[++r],d=s[++n];else if(pt(u,f))z(u,f),u=t[--l],f=s[--h];else if(pt(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&at(c.$elm$.parentNode,!1),z(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=s[--h];else if(pt(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&at(u.$elm$.parentNode,!1),z(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++n];else{for(o=-1,a=r;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$?$=At(t&&t[n],e,o,i):(z(g,d),t[o]=void 0,$=g.$elm$),d=s[++n]):($=At(t&&t[n],e,n,i),d=s[++n]),$&&Yi(c.$elm$).insertBefore($,fe(c.$elm$))}r>l?Wi(i,s[h+1]==null?null:s[h+1].$elm$,e,s,n,h):n>h&&Gi(t,r,l)},pt=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,fe=i=>i&&i["s-ol"]||i,Yi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,z=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,r=t.$children$,n=t.$tag$,o=t.$text$;let a;o===null?(y=n==="svg"?!0:n==="foreignObject"?!1:y,n==="slot"||qi(i,t,y),s!==null&&r!==null?Zr(e,s,t,r):r!==null?(i.$text$!==null&&(e.textContent=""),Wi(e,null,t,r,0,r.length-1)):s!==null&&Gi(s,0,s.length-1),y&&n==="svg"&&(y=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Ki=i=>{let t=i.childNodes,e,s,r,n,o,a;for(s=0,r=t.length;s<r;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,n=0;n<r;n++)if(a=t[n].nodeType,t[n]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[n].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[n].textContent.trim()!==""){e.hidden=!0;break}}Ki(e)}},w=[],Zi=i=>{let t,e,s,r,n,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,r=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"]&&(Qe(e,r)?(n=w.find(u=>u.$nodeToRelocate$===e),xt=!0,e["s-sn"]=e["s-sn"]||r,n?n.$slotRefNode$=t:w.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&w.map(u=>{Qe(u.$nodeToRelocate$,e["s-sn"])&&(n=w.find(h=>h.$nodeToRelocate$===e),n&&!u.$slotRefNode$&&(u.$slotRefNode$=n.$slotRefNode$))})):w.some(u=>u.$nodeToRelocate$===e)||w.push({$nodeToRelocate$:e}));t.nodeType===1&&Zi(t)}},Qe=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Xi=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Xi)},Xr=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,r=i.$vnode$||St(null,null),n=Wr(t)?t:W(null,null,t);It=e.tagName,s.$attrsToReflect$&&(n.$attrs$=n.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>n.$attrs$[a]=e[o])),n.$tag$=null,n.$flags$|=4,i.$vnode$=n,n.$elm$=r.$elm$=e.shadowRoot||e,D=e["s-sc"],Bi=e["s-cr"],Hi=(s.$flags$&1)!==0,xt=!1,z(r,n);{if(m.$flags$|=1,ue){Zi(n.$elm$);let o,a,l,c,u,h,d=0;for(;d<w.length;d++)o=w[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=S.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<w.length;d++)if(o=w[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)}xt&&Ki(n.$elm$),m.$flags$&=-2,w.length=0}},Qr=i=>i,Jr=(i,t,e)=>{const s=Qr(i);return{emit:r=>Vr(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},Vr=(i,t,e)=>{const s=m.ce(t,e);return i.dispatchEvent(s),s},tn=(i,t)=>{},Qi=(i,t)=>(i.$flags$|=16,tn(i,i.$ancestorComponent$),yn(()=>en(i,t))),en=(i,t)=>{const e=i.$hostElement$,s=j("scheduleUpdate",i.$cmpMeta$.$tagName$),r=e;let n;return t?n=G(r,"componentWillLoad"):n=G(r,"componentWillUpdate"),n=Je(n,()=>G(r,"componentWillRender")),s(),Je(n,()=>sn(i,r,t))},sn=async(i,t,e)=>{const s=i.$hostElement$,r=j("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Hr(i);const n=j("render",i.$cmpMeta$.$tagName$);rn(i,t,s),n(),r(),nn(i)},rn=(i,t,e)=>{try{qe=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(F.hasRenderFn||F.reflect)&&(F.vdomRender||F.reflect)&&(F.hydrateServerSide||Xr(i,t))}catch(a){ht(a,i.$hostElement$)}return qe=null,null},nn=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=j("postUpdate",t),r=e;i.$ancestorComponent$,G(r,"componentDidRender"),i.$flags$&64?(G(r,"componentDidUpdate"),s()):(i.$flags$|=64,G(r,"componentDidLoad"),s())},G=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){ht(s)}},Je=(i,t)=>i&&i.then?i.then(t):t(),on=(i,t)=>i!=null&&!he(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,an=(i,t)=>Rt(i).$instanceValues$.get(t),ln=(i,t,e,s)=>{const r=Rt(i),n=i,o=r.$instanceValues$.get(t),a=r.$flags$,l=n;e=on(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){r.$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){ht(f,n)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Qi(r,!1)}}}},cn=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),r=i.prototype;s.map(([n,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,n,{get(){return an(this,n)},set(a){ln(this,n,a,t)},configurable:!0,enumerable:!0})});{const n=new Map;r.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=n.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(r.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 n.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},un=async(i,t,e,s,r)=>{if((t.$flags$&32)===0&&(r=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Fr(i)]);const a=zi(e,t.$modeName$);if(!kt.has(a)){const l=j("registerStyles",e.$tagName$);Nr(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Qi(t,!0)},hn=i=>{},dn=i=>{if((m.$flags$&1)===0){const t=Rt(i),e=t.$cmpMeta$,s=j("connectedCallback",e.$tagName$);t.$flags$&1?(Di(i,t,e.$listeners$),hn(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&fn(i),e.$members$&&Object.entries(e.$members$).map(([r,[n]])=>{if(n&31&&i.hasOwnProperty(r)){const o=i[r];delete i[r],i[r]=o}}),un(i,t,e)),s()}},fn=i=>{const t=i["s-cr"]=S.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},pn=i=>{if((m.$flags$&1)===0){const t=Rt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Ji=(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,r=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){gn(this,e)},connectedCallback(){dn(this),s&&s.call(this)},disconnectedCallback(){pn(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,cn(i,e)},Vi=new WeakMap,Rt=i=>Vi.get(i),gn=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Di(i,e,t.$listeners$),Vi.set(i,e)},Ve=(i,t)=>t in i,ht=(i,t)=>(0,console.error)(i,t),kt=new Map,$n=[],ti=[],ts=[],vn=(i,t)=>e=>{i.push(e),Qt||(Qt=!0,t&&m.$flags$&4?mn(Jt):m.raf(Jt))},ei=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ht(e)}i.length=0},Jt=()=>{ei(ti),ei(ts),(Qt=ti.length>0)&&m.raf(Jt)},mn=i=>Lr().then(i),yn=vn(ts,!0),bn=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let r="",n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(r=`<title>${e}</title>`),`<svg ${n.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},_n=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function wn(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class xn{constructor(t){this.voca_component=t,this.voca_added=wn(new Date)}}const Sn="telia-vst{display:none}",An=Ji(class extends Fi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Jr(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new xn(this.dataTrackingId))}render(){return W(de,null)}static get style(){return Sn}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function es(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,An);break}})}es();function Vt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function kn(){if(typeof Vt().vocadsIcons!==void 0)return Vt().vocadsIcons}function En(){return Vt().vocadsIconsRegistered}const Cn=".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))}",On=Ji(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(En()&&this.name){const i=kn();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=bn({content:_n(i),attributes:t,title:this.allyTitle});return W(de,{class:`telia-icon telia-icon--${this.size}`},W("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),W("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Cn}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Tn(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,On);break;case"telia-vst":customElements.get(t)||es();break}})}Tn();var Pn=Object.defineProperty,In=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&Pn(t,e,r),r};const ii=ji(x),ye=class ye extends ii{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Pr(this),this.optionsRef=wt(),this.optionsTriggerRef=wt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){const e=this.options.removeOption(t);return this.requestUpdate(),e}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){return this.options.options.length?k` <div class="side-menu">
459
459
  <div
460
460
  class="options-menu"
461
461
  ${le(this.optionsRef)}
@@ -3351,7 +3351,7 @@ const It = typeof window < "u" ? window : {}, S = It.document || { head: {} }, F
3351
3351
  }
3352
3352
  return i;
3353
3353
  }, un = async (i, t, e, s, r) => {
3354
- if (!(t.$flags$ & 32) && (r = i.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), r.style)) {
3354
+ if ((t.$flags$ & 32) === 0 && (r = i.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), r.style)) {
3355
3355
  let o = r.style;
3356
3356
  typeof o != "string" && (o = o[t.$modeName$ = Fr(i)]);
3357
3357
  const a = zi(e, t.$modeName$);
@@ -3363,7 +3363,7 @@ const It = typeof window < "u" ? window : {}, S = It.document || { head: {} }, F
3363
3363
  t.$ancestorComponent$, Qi(t, !0);
3364
3364
  }, hn = (i) => {
3365
3365
  }, dn = (i) => {
3366
- if (!(m.$flags$ & 1)) {
3366
+ if ((m.$flags$ & 1) === 0) {
3367
3367
  const t = Lt(i), e = t.$cmpMeta$, s = M("connectedCallback", e.$tagName$);
3368
3368
  t.$flags$ & 1 ? (Di(i, t, e.$listeners$), hn(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && fn(i), e.$members$ && Object.entries(e.$members$).map(([r, [n]]) => {
3369
3369
  if (n & 31 && i.hasOwnProperty(r)) {
@@ -3376,7 +3376,7 @@ const It = typeof window < "u" ? window : {}, S = It.document || { head: {} }, F
3376
3376
  const t = i["s-cr"] = S.createComment("");
3377
3377
  t["s-cn"] = !0, i.insertBefore(t, i.firstChild);
3378
3378
  }, pn = (i) => {
3379
- if (!(m.$flags$ & 1)) {
3379
+ if ((m.$flags$ & 1) === 0) {
3380
3380
  const t = Lt(i);
3381
3381
  t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
3382
3382
  }