/*!
 * Built with Stencil
 * By PostNord.
 */
import{t as n}from"./p-CAEP792y.js";export{d as setTagTransformer}from"./p-CAEP792y.js";const t=[];for(let n=0;n<256;++n)t.push((n+256).toString(16).slice(1));let o;const e=new Uint8Array(16);var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const u="SE",c="DK",i="FI",p="NO",s="sv",f="en",a="da",m="fi",w="no",y=[u,"DK","FI","NO"],h=[s,f,a,m,w],l={SE:[s,f],DK:[a,f],FI:[m,s,f],NO:[w,f]},g={KB:1024,MB:1048576,GB:1048576,TB:1073741824},b=function(n){const t=/(\d+\.?\d*)\s?([a-zA-Z]{2})?$/;if(t.test(n)){const o=n.match(t),e=(o[2]||"").toLocaleUpperCase(),r=parseInt(o[1]);return e&&g[e]?r*g[e]:r}return 0};function x(){return window.innerWidth/16<55}function E(){const{matches:n}=window.matchMedia("(prefers-reduced-motion: reduce)");return n}const v=()=>r.randomUUID?r.randomUUID():function(n){const r=(n=n||{}).random??n.rng?.()??function(){if(!o){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");o=crypto.getRandomValues.bind(crypto)}return o(e)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(n,o=0){return(t[n[o+0]]+t[n[o+1]]+t[n[o+2]]+t[n[o+3]]+"-"+t[n[o+4]]+t[n[o+5]]+"-"+t[n[o+6]]+t[n[o+7]]+"-"+t[n[o+8]]+t[n[o+9]]+"-"+t[n[o+10]]+t[n[o+11]]+t[n[o+12]]+t[n[o+13]]+t[n[o+14]]+t[n[o+15]]).toLowerCase()}(r)}(undefined);function I(){return document?.querySelector("pn-topbar")?.offsetHeight||0}function A(){return x()&&document?.querySelector("pn-side-menu")?.offsetHeight||0}function B(){return x()?0:document?.querySelector("pn-side-menu")?.offsetWidth||0}function D(){const n=I()+A();return n>window.scrollY?n-window.scrollY:0}async function K(n){const t=()=>window.pnTopbar;function o(o){const e=o||t();return n.market=e.market,n.language=e.language,e.hasLoaded&&(t().onChangeMarket=t=>n.market=t,t().onChangeLanguage=t=>n.language=t),e}return await new Promise((e=>document.querySelector("pn-topbar")?t()?.hasLoaded?e(o()):void window.addEventListener("topbarLoaded",(()=>e(o()))):e(o({hasLoaded:!1,market:n.market||u,language:n.language||f}))))}const T=(t,o,e)=>{if(E())return;const{left:r,top:u,width:c,height:i}=o.getBoundingClientRect(),{clientX:d=0,clientY:p=0}=t||{},s=c>i?c:i,f=document.createElement(n("div"));f.classList.add("pn-ripple"),f.style.height=2*s+"px",f.style.width=2*s+"px",f.style.left=d>0?d-r+"px":"50%",f.style.top=p>0?p-u+"px":"50%",e?o.querySelector(e).appendChild(f):o.appendChild(f),setTimeout((()=>f.remove()),400)};export{c as DK,i as FI,p as NO,u as SE,K as awaitTopbar,a as da,f as en,m as fi,b as getBytesFromHumanReadableFileSize,A as getMenuHeight,B as getMenuWidth,I as getTopbarHeight,D as getTotalHeightOffset,x as isSmallScreen,h as languages,l as marketMap,y as markets,w as no,E as reduceMotion,T as ripple,s as sv,v as uuidv4}