PageSourceSearch

https://www.wwt-online.de/_nuxt/B6ZnGno9.js

js wwt-online.de collected 2026-09-25 04:58:41 UTC 6,140 bytes, 1 lines download raw bytes

1import{d as F,au as P,o as j,g as n,e as u,f as R,w as O,i as t,X as b,m as d,v as m,P as _,t as o,q as y,r as x,x as h,_ as T}from"./DRVmXTlH.js";import{d as $,a as q,m as H,b as L,h as V,c as N,e as z,i as E,f as I,g as X,j as J,k as K,l as Q,n as U,o as Y}from"./D1heqHRf.js";import{u as Z}from"./CnGyGRV9.js";const tt={class:"ad-slot__debug-info"},lt={class:"ad-slot__debug-tabs"},et={class:"ad-slot__debug-content"},nt={key:0,class:"ad-slot__debug-tables"},ot={class:"ad-slot__debug-group"},st=["onClick"],ut={class:"ad-slot__debug-group"},dt=["onClick"],it={key:1,class:"ad-slot__debug-panels"},at={key:0,class:"ad-slot__debug-panels-empty"},rt={class:"ad-slot__debug-panel-header"},bt={class:"ad-slot__debug-panel-total"},gt={class:"ad-slot__debug-cell--num"},pt={class:"ad-slot__debug-cell--num"},mt={key:2,class:"ad-slot__debug-config"},_t={class:"ad-slot__debug-config-body"},ft={class:"ad-slot__debug-cell--num"},ct=F({__name:"AdSlotGlobalDebug",setup(vt){const c=x([]),W=Z("ads")||!1,i=x(1),w=P(),G=h(()=>c.value.filter(s=>s.breakpoint==="mobile")),M=h(()=>c.value.filter(s=>s.breakpoint!=="mobile"));function v(s){return s==null?"—":s.toFixed(2)}const A=h(()=>(w.value?.content??[]).filter(l=>l.component==="article-panel").map((l,r)=>{const e=l.content?.contentBlocks??[],a=parseFloat(e.reduce((f,k)=>f+(k.weight??0),0).toFixed(4)),g=e.map((f,k)=>parseFloat(e.slice(0,k+1).reduce((B,D)=>B+(D.weight??0),0).toFixed(4))),p=g.findIndex(f=>f>=Y(r));return{contentBlocks:e,totalWeight:a,cumulativeWeights:g,splitIndex:p}}));function S(){c.value=Array.from(document.querySelectorAll("main .ad-slot__wrapper")).filter(s=>s.dataset.state!=="unknown").map((s,l)=>{const r=s.dataset;return{index:l,type:r.type||"unknown",breakpoint:r.breakpoint||"unknown",visible:"offsetParent"in s?s.offsetParent!==null:!1,hasAd:r.hasAd==="true"}})||[]}function C(s){document.querySelectorAll("main .ad-slot__wrapper")[s]?.scrollIntoView({behavior:"smooth",block:"center"})}return j(()=>{if(!W)return;S(),new MutationObserver(()=>{S()}).observe(document.querySelector("body"),{childList:!0,subtree:!0})}),(s,l)=>{const r=T;return n(W)?(u(),R(r,{key:0},{default:O(()=>[t("details",tt,[l[24]||(l[24]=t("summary",null,"Ad Slots",-1)),t("div",lt,[t("button",{class:b(["ad-slot__debug-tab-btn",{"ad-slot__debug-tab-btn--active":n(i)===1}]),onClick:l[0]||(l[0]=e=>i.value=1)}," Ad Slots ",2),t("button",{class:b(["ad-slot__debug-tab-btn",{"ad-slot__debug-tab-btn--active":n(i)===2}]),onClick:l[1]||(l[1]=e=>i.value=2)}," Article Panels ",2),t("button",{class:b(["ad-slot__debug-tab-btn",{"ad-slot__debug-tab-btn--active":n(i)===3}]),onClick:l[2]||(l[2]=e=>i.value=3)}," Split Config ",2)]),t("div",et,[n(i)===1?(u(),d("div",nt,[t("div",ot,[l[4]||(l[4]=t("h3",null,"Mobile",-1)),t("table",null,[l[3]||(l[3]=t("thead",null,[t("tr",null,[t("th",null,"Type"),t("th",null,"Has Ad")])],-1)),t("tbody",null,[(u(!0),d(m,null,_(n(G),e=>(u(),d("tr",{key:e.type+e.breakpoint,class:b({active:e.visible}),onClick:a=>C(e.index)},[t("td",null,o(e.type),1),t("td",null,o(e.hasAd?"✓":"–"),1)],10,st))),128))])])]),t("div",ut,[l[6]||(l[6]=t("h3",null,"Desktop",-1)),t("table",null,[l[5]||(l[5]=t("thead",null,[t("tr",null,[t("th",null,"Type"),t("th",null,"Has Ad")])],-1)),t("tbody",null,[(u(!0),d(m,null,_(n(M),e=>(u(),d("tr",{key:e.type+e.breakpoint,class:b({active:e.visible}),onClick:a=>C(e.index)},[t("td",null,o(e.type),1),t("td",null,o(e.hasAd?"✓":"–"),1)],10,dt))),128))])])])])):n(i)===2?(u(),d("div",it,[n(A).length===0?(u(),d("div",at," No article panels found ")):y("",!0),(u(!0),d(m,null,_(n(A),(e,a)=>(u(),d("div",{key:a,class:"ad-slot__debug-panel"},[t("div",rt,[t("span",null,"Panel "+o(a+1),1),t("span",bt,"Total weight: "+o(v(e.totalWeight)),1)]),t("table",null,[l[7]||(l[7]=t("colgroup",null,[t("col"),t("col",{class:"ad-slot__debug-col--num"}),t("col",{class:"ad-slot__debug-col--num"})],-1)),l[8]||(l[8]=t("thead",null,[t("tr",null,[t("th",null,"Component"),t("th",{class:"ad-slot__debug-cell--num"},"Weight"),t("th",{class:"ad-slot__debug-cell--num"},"Cumulative")])],-1)),t("tbody",null,[(u(!0),d(m,null,_(e.contentBlocks,(g,p)=>(u(),d("tr",{key:p,class:b({"ad-slot__debug-row--split":p===e.splitIndex})},[t("td",null,o(g.component),1),t("td",gt,o(v(g.weight)),1),t("td",pt,o(v(e.cumulativeWeights[p])),1)],2))),128))])])]))),128))])):n(i)===3?(u(),d("div",mt,[t("div",_t,[t("table",null,[l[22]||(l[22]=t("thead",null,[t("tr",null,[t("th",null,"Setting"),t("th",null,"Value")])],-1)),t("tbody",null,[t("tr",null,[l[9]||(l[9]=t("td",null,"defaultWeight",-1)),t("td",null,o(n($)),1
1)]),t("tr",null,[l[10]||(l[10]=t("td",null,"desktopMinGroupWeights",-1)),t("td",null,o(n(q).join(", ")),1)]),t("tr",null,[l[11]||(l[11]=t("td",null,"mobileMinGroupWeight",-1)),t("td",null,o(n(H)),1)]),t("tr",null,[l[12]||(l[12]=t("td",null,"minLastGroupWeight",-1)),t("td",null,o(n(L)),1)]),t("tr",null,[l[13]||(l[13]=t("td",null,"hasOwnGroup",-1)),t("td",null,o(n(V).join(", ")||"—"),1)]),t("tr",null,[l[14]||(l[14]=t("td",null,"dontSplitAfter",-1)),t("td",null,o(n(N).join(", ")||"—"),1)]),t("tr",null,[l[15]||(l[15]=t("td",null,"dontSplitBefore",-1)),t("td",null,o(n(z).join(", ")||"—"),1)]),t("tr",null,[l[16]||(l[16]=t("td",null,"imageReferenceWeight",-1)),t("td",null,o(n(E)),1)]),t("tr",null,[l[17]||(l[17]=t("td",null,"imageReferenceRatio",-1)),t("td",null,o(n(I).toFixed(2)),1)]),t("tr",null,[l[18]||(l[18]=t("td",null,"imageMinWeight",-1)),t("td",null,o(n(X)),1)]),t("tr",null,[l[19]||(l[19]=t("td",null,"imageMaxWeight",-1)),t("td",null,o(n(J)),1)]),t("tr",null,[l[20]||(l[20]=t("td",null,"infoboxBaseWeight",-1)),t("td",null,o(n(K)),1)]),t("tr",null,[l[21]||(l[21]=t("td",null,"infoboxHeadlineWeight",-1)),t("td",null,o(n(Q)),1)])])]),t("table",null,[l[23]||(l[23]=t("thead",null,[t("tr",null,[t("th",null,"Component"),t("th",{class:"ad-slot__debug-cell--num"},"Weight")])],-1)),t("tbody",null,[(u(!0),d(m,null,_(n(U),(e,a)=>(u(),d("tr",{key:a},[t("td",null,o(a),1),t("td",ft,o(typeof e=="function"?"dynamic":e),1)]))),128))])])])])):y("",!0)])])]),_:1})):y("",!0)}}}),Wt=Object.assign(ct,{__name:"AdsAdSlotGlobalDebug"});export{Wt as default};

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.