import{_ as t,c as e,j as o,P as n,Q as s}from"./_auto-entry_aftonbladet-BfQGRad2.js";import"react/jsx-runtime";const i=t=>t===s.NO?"schibsted":"schibstedse",a=()=>t(void 0,void 0,void 0,function*(){const{norstat:{enabled:s}={},pageContext:{countryCode:a,isMobileApp:d},tcf:c}=e.get(),r=yield o(c,d,a,"norstat");if(!s||d||!r)return;const m=n(a);((e,o,...n)=>{t(void 0,[e,o,...n],void 0,function*(t,e,o=!0){if(document.getElementById(e))return;const n=document.createElement("img");n.src=t,n.id=null!=e?e:"",o&&(n.style.display="none"),document.body.appendChild(n)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(a)}/map/${m}`,"norstat")});export{i as getCampaign,a as loadNorstat};
