PageSourceSearch

https://www.datacenterfrontier.com/_nuxt/useBodyBlocks-qwayUpNT.mjs

js datacenterfrontier.com collected 2026-09-24 08:43:17 UTC 2,494 bytes, 8 lines download raw bytes

1import{a as e}from"./nuxt-Dw3LQvcO.mjs";import{t}from"./useAdUnitPatterns-ERyUa5_N.mjs";import{_ as n}from"#entry";var r=(e,t,n,r,i,a)=>{let o=0,s=[...e];e.forEach((e,i)=>{let c=e.settings?.text??``;c.indexOf(`<p`)!==0&&(c=`<p>${c}</p>`),Array.from(c.matchAll(/<p.*?>([\w\W]*?)<\/p>/g)).forEach(e=>{e?.[1].split(` `).length>=n&&(t.forEach(t=>{o+1===t&&(s[i]?.embeds||(s[i].embeds={}),s[i].settings.text=c.replace(e[0],`${e[0]}${r}`),s[i].embeds[a]=!0)}),o+=1)})});let c=s[s.length-1]?.settings?.text;return i&&c?.substring(0,c.length-r.length)!==c?.replace(r,``)&&s.push({type:`text`,settings:{text:r},embeds:{[a]:!0}}),s},i=(e,t)=>e.type===`content-body-embed`&&!e?.excludePageTypes?.some(e=>e?.toUpperCase()===t?.toUpperCase()),a={addEmbeds(a,o,s,c=[]){let l=JSON.parse(JSON.stringify(a)),{$ss:u}=e();s?.id&&!o?.labels?.includes(`Sponsored`)&&(l=r(l,[s.settings.targetParagraph],s.settings.paragraphLength,`<div id="${s?.id}"> </div>`,!1,`bc`)),o?.labels?.includes(`Sponsored`)||c.forEach((e,t)=>{l=r(l,[e.settings.targetParagraph??3],e.settings.paragraphLength??40,`<div id="${e.id}"> </div>`,!1,`content-recommendation-${t}`)});let d=u?.thirdPartyScripts?.googleAdManager?.iavTargetInjection??4;l=r(l,[d],0,`<div class="iav-target"></div>`,!1,`iav`);let f=t().value.filter(e=>e.type===`content-body-native`);for(let e of f){let t=e?.targetParagraphs??[],n=e?.paragraphLength??40;if(!(e?.excludePageTypes??[]).includes(o.type)){let i=!!e?.showNativeAdAtBottom||t.length===0;l=r(l,t,n,`<div style="line-height: normal" class="native-ad-embed">
2                              <WebContentListNew 
3              teaser-display="truncated"
4              :data="{ items: [] }"
5              image-position="left"
6              :native-ad-slot-index="1"
7              native-type="body">
8            </WebContentListNew></div>`,i,e.type)}}let p=t().value.filter(e=>i(e,o?.type)).flatMap(e=>e.targetParagraphs.map(t=>({...e,target:t,targetId:`gam-`+n()})));for(let e of p){let t=e?.target?[e.target]:[],n=e?.paragraphLength??40,i=`<div class="ebm-ad__embed" id="${e.targetId}"></div>`;l=r(l,t,n,i,!1,e.type)}return t().value.filter(e=>i(e,o?.type)).forEach(e=>{if(e.injectFirstAdAtTop){let t=`gam-`+n();p.push({...e,targetId:t});let r=l.findIndex(e=>e?.settings?.text);if(r>-1){let e=l[r].settings.text,n=Array.from(e.matchAll(/<p.*?>([\w\W]*?)<\/p>/g))[0];l[r].settings.text=e.replace(n?.[1],`<div class="ebm-ad__embed" id="${t}"></div>${n?.[1]}`)}}}),{bodyBlocks:l,embedAdUnits:p}}};export{a as t};

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.