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