import{_ as t,c as e,j as n,P as o,Q as s}from"./_auto-entry_aftenposten-CGc0ZPFr.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 n(c,d,a,"norstat");if(!s||d||!r)return;const p=o(a);((e,n,...o)=>{t(void 0,[e,n,...o],void 0,function*(t,e,n=!0){if(document.getElementById(e))return;const o=document.createElement("img");o.src=t,o.id=null!=e?e:"",n&&(o.style.display="none"),document.body.appendChild(o)})})(`https://sch-map.norstatsurveys.com/api/nids/${i(a)}/map/${p}`,"norstat")});export{i as getCampaign,a as loadNorstat};
