PageSourceSearch

https://www.autozeitung.de/assets/use-ada-molten-bundle-aOh3Qoaw.js

js autozeitung.de collected 2026-09-24 18:56:03 UTC 7,135 bytes, 2 lines download raw bytes

1import{A as e,J as t,a as n,at as r,lt as i}from"./runtime-core.esm-bundler-JAEtUtsi.js";import{t as a}from"./ada-CAWMzYsV.js";import{t as o}from"./dialog-D0EUu2CC.js";function s(){let e=window.scheduler,t=e?.yield;return t?t.call(e):new Promise(e=>setTimeout(e,0))}function c(e,t=50){typeof window.requestIdleCallback==`function`?window.requestIdleCallback(e,{timeout:t}):setTimeout(e,0)}var l=4;function u({metaData:c,pageMeta:u,registerSlots:d,deviceType:f}){let p=a(),m=o(),h=typeof window<`u`?window:void 0,g=r({onInteraction:[],automatically:[]}),_=Math.round(new Date/1e3),v=r(0),y=[`superbanner_1`,`skyscraper_1`,`wallpaper_1`,`mobile_1`],b=r(null),x=r({allowedSlots:[],slotStatus:{},lastActivityTime:null,activityEvents:[`mousemove`,`keypress`,`scroll`,`touchstart`,`touchend`],reloadInterval:2**53-1,reloadIntervalId:null,viewability:{percentage:50,time:1}}),S=n(()=>g.value.automatically.length>0);t(()=>p.isAsyncContentReadyForAdReload,e=>{e&&b.value&&(F(b.value),b.value=null)}),e(()=>{clearInterval(x.value.reloadIntervalId??void 0),P(!0)});function C(){i(c)?.adaAutoNative||O(),h.bxMb=w(),T()}function w(){let e=i(c),t=i(u),n=e?.adKeywords?[...e.adKeywords]:[];return e?.hasVideo&&n.push(`nonsticky`),{siteType:f.value,adZone:e?.adaAutoNative||e?.disallowAds?`_noad`:e?.adAAdZone,indexPage:t?.pageType===`structureterm`,advertorial:e?.advertorial,adKeywords:n,adSlots:e?.adaAutoNative?d.value.filter(e=>y.includes(e)):d.value,autonative:!!e?.adaAutoNative,nudeContent:!!e?.nudeContent,trackingPixelIdContent:e?.adaTrackingPixelIdContent||null,lastAdSlotLoadedTime:null,asideEnabled:!!p.asideEnabled,autoReloadEnabled:S.value,startAutoReloadInterval:E,initSlotStatus:k,ncbTopSlotsStatus:{teaser_11:!1,teaser_12:!1,teaser_13:!1},adAAdKeywords:e?.adAAdKeywords}}function T(){h.MoltenBundle=h.MoltenBundle||{},h.MoltenBundle.cmd=h.MoltenBundle.cmd||[],h.MoltenBundle.cmd.push(async function(){let e=h.bxMb;h.MoltenBundle.getClient().setSiteType(e.siteType),h.MoltenBundle.getClient().setZone(e.adZone),e.autonative||(h.MoltenBundle.getClient().setIsIndexPage(e.indexPage),h.MoltenBundle.getClient().addTargetingParameter(`keywords`,e.adKeywords)),e.asideEnabled&&(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>=1e3&&h.MoltenBundle.getClient().addTargetingParameter(`ct`,`sidebar_art`),e.nudeContent&&h.MoltenBundle.getClient().setKeywords([`nude_content`]),e.adAAdKeywords&&h.MoltenBundle.getClient().setKeywords(e.adAAdKeywords);for(let t=0;t<e.adSlots.length;t+=l)e.adSlots.slice(t,t+l).forEach(e=>{h.MoltenBundle.push(e)}),t+l<e.adSlots.length&&await s();h.MoltenBundle.cmd.push(function(){h.MoltenBundle.finalize()}),h.MoltenBundle.registerAdPositionLoadedHandler(function(e){let t=e.getName(),n=e.containsAd(),r=h.bxMb.clientConfig?.slotList;if(h.bxMb.advertorial&&r?.includes(t)&&!n&&(document.querySelector(`#${t}`)?.closest(`.bx-collection.bx-ada--slot-wrapper`)?.classList.remove(`bx-collection`,`bx-ada--slot-wrapper`),document.querySelector(`.bx-ada--${t}`)?.classList.add(`bx-ada--no-min-height`)),t.includes(`teaser`)&&n&&document.querySelector(`#${t}_fallback`)&&(document.querySelector(`#${t}_fallback`).style.display=`none`),[`teaser_11`,`teaser_12`,`teaser_13`].includes(t)&&document.querySelector(`#${t}_fallback`)&&(h.bxMb.ncbTopSlotsStatus[t]=n?`loaded`:`fallback`,Object.values(h.bxMb.ncbTopSlotsStatus).filter(e=>e===!1).length===0)){let e=Object.values(h.bxMb.ncbTopSlotsStatus).filter(e=>e===`loaded`).length;e===0?document.querySelector(`[data-ncb-position="top"]`).style.display=`none`:e<3&&h.bxMb.siteType===`mobile`&&Object.entries(h.bxMb.ncbTopSlotsStatus).forEach(([e,t])=>{t===`fallback`&&(document.querySelector(`[data-ad-slot-id=${e}]`).style.display=`none`)})}[`teaser_14`,`teaser_15`,`teaser_16`,`teaser_17`,`teaser_18`,`teaser_19`].includes(t)&&n&&setTimeout(()=>{document.querySelector(`#${t} .emsTeaserContainer`)||document.querySelector(`#${t}`)?.parentElement?.classList.add(`bx-ada--teaser-rectangle`)},1e3),!n&&!t.includes(`teaser`)&&!t.includes(`mobile_1`)&&(document.querySelector(`[data-ad-slot-id=${t}]`).style.minHeight=`0`);let i=Math.round(new Date/1e3);h.bxMb.autoReloadEnabled&&!h.bxMb.autonative&&h.bxMb.lastAdSlotLo
1adedTime!==i&&t!==`skyscraper_3`&&(h.bxMb.lastAdSlotLoadedTime=i,h.bxMb.initSlotStatus(),h.bxMb.startAutoReloadInterval())}),h.bxMb.trackingPixelIdContent&&h.MoltenBundle.createTrackingPixel(h.bxMb.trackingPixelIdContent)})}function E(){clearInterval(x.value.reloadIntervalId??void 0),x.value.reloadIntervalId=setInterval(D,x.value.reloadInterval*1e3)}function D(){let e=Math.round(new Date/1e3),t=e-(x.value.lastActivityTime??0)<x.value.reloadInterval,n=document.visibilityState===`visible`,r=!m.isDialogOpen,i=e-(h.bxMb.lastAdSlotLoadedTime??0)>=x.value.reloadInterval;if(t&&n&&r&&i){let e=g.value.automatically.filter(e=>{let{hasViewability:t,isVisible:n}=x.value.slotStatus[e];return t&&n});e.length>0&&h.MoltenBundle.getClient().reloadSpecificAds(e)}}function O(){g.value.automatically=d.value.filter(e=>x.value.allowedSlots.includes(e)),S.value&&(k(),A(),N(),P())}function k(){x.value.slotStatus={},g.value.automatically.forEach(e=>{x.value.slotStatus[e]={hasViewability:!1,isVisible:!1}})}function A(){let e=new IntersectionObserver(j,{root:null,rootMargin:`0px`,threshold:.01}),t=new IntersectionObserver(M,{root:null,rootMargin:`0px`,threshold:x.value.viewability.percentage/100});document.querySelectorAll(g.value.automatically.map(e=>`#${e}`).join(`, `)).forEach(n=>{e.observe(n),t.observe(n)})}function j(e){e.forEach(e=>{x.value.slotStatus[e.target.id].isVisible=e.isIntersecting})}function M(e){e.forEach(e=>{e.intersectionRatio>=x.value.viewability.percentage/100&&e.time>=x.value.viewability.time*1e3&&(x.value.slotStatus[e.target.id].hasViewability=!0)})}function N(){x.value.lastActivityTime=Math.round(new Date/1e3)}function P(e=!1){x.value.activityEvents.forEach(t=>{e?document.removeEventListener(t,N):document.addEventListener(t,N)})}function F(e,t=!1){if(p.blockAds||!h.MoltenBundle||typeof h.MoltenBundle?.getClient!=`function`)return;d.value.length||(d.value=h.bxMb.adSlots),g.value.onInteraction.length||(g.value.onInteraction=d.value.filter(t=>e.reloadAdaSlots?.includes(t)));let n=!1,r=Math.round(new Date/1e3);e.clickCount>0?(v.value++,v.value%e.clickCount>0||(n=!0)):r-_>e.minDisplayDuration&&(n=!0);let i=g.value.onInteraction;if(p.asyncContentMode){if(!p.isAsyncContentReadyForAdReload){b.value=e;return}n=r-_>10;let t=h.bxMb.adSlots,a=h.bxMb.clientConfig;if(a){let{slotList:e,latestRegisteredDynamicAdSlots:n,latestAllocatedDynamicAdSlots:r}=a,o=t.filter(t=>e.includes(t)&&r.includes(t)&&!n.includes(t));i=Array.from(new Set([...o,...g.value.onInteraction]))}}n&&(t&&typeof t==`function`&&t(),h.MoltenBundle.getClient().reloadSpecificAds(i),_=r)}return{reloadSlots:g,reloadTriggerTime:_,clickEventCounter:v,autoReload:x,autoReloadEnabled:S,asyncContentReloadParams:b,initMoltenBundle:C,moltenBundleConfig:w,startAutoReloadInterval:E,initAutoReload:O,initSlotStatus:k,adaSlotReloadOnInteraction:F}}export{c as n,s as r,u as t};
2//# sourceMappingURL=use-ada-molten-bundle-aOh3Qoaw.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.