1import{Fn as e,Fr as t,Gn as n,Gt as r,In as i,It as a,Mr as o,Un as s,Wr as c,Wt as l,br as u,ht as d,i as f,jn as p,lr as m,sr as h,vr as g,zn as _,zr as v}from"./BpGcXV2e.js";import{i as y,t as b}from"./eaYuiTZg.js";import{m as x}from"./4gh-ulZd.js";import{t as S}from"./CturPZPS.js";import{t as C}from"./BaRTHmz_2.js";import{t as w}from"./2sKOpk5D2.js";import{t as T}from"./sDkqmXqQ2.js";import{t as E}from"./BzqSi7Tt2.js";import{n as D}from"./DuSf96Zi2.js";import{t as O}from"./CKBH38Rn2.js";import{t as k}from"./PmizqQ-R.js";import{t as A}from"./DAdgV-sU.js";import{t as j}from"./CIv6l8P42.js";var M={class:`mt-9 text-center typo-headline-1 dark:text-white`},N={class:`mt-4 md:m-8 md:min-h-80`},P=Object.assign(n({__name:`Topic`,async setup(n){let P,F,I=r(),L=l(),{pageType:R,pageSubType:z}=E(),B=S().isApp;w(B);let V=o(Number(L.params.page||1));if(Number.isNaN(V.value))throw a({status:404,statusText:`Page not found`});let H=x(L.params.slug),U=e(()=>({topic:H,page:V.value,perPage:30,pageType:R,pageSubType:z,skipContentZones:V.value>1})),{data:W}=([P,F]=u(()=>f(j,U,`default`,{context:{batchGroup:`critical`}},{watch:[V]})),P=await P,F(),P),G=o({posts:{hits:W.value?.topic?.hitsTotal??0,totalPages:W.value?.topic?.hitsPerPage?Math.ceil((W.value?.topic?.hitsTotal??0)/W.value.topic.hitsPerPage):0,posts:W.value?.topic?.hits??[]},contentZones:W.value?.contentZones??[]}),{getStream:K}=D(),q=t(K(G,`firstLargeRestSmall`));h(()=>{g(G,e=>{e&&(q.value=K(G,`firstLargeRestSmall`))})});function J(e){e===1?I.push(`/themen/${H}`):L.params.page?I.push({params:{...L.params,slug:H,page:e.toString()}}):I.push(`/themen/${H}/page/${e}`)}if(W.value?.topic?.post){let{setCanonical:e,addPagingToCanonical:t}=A();e(t(W.value.topic.post.canonical??``,V.value)),k().setupPageMeta(W.value.topic.post,`topic`),k().setupAdCategory([H],[H],[`news`]);let{setMocaMetaData:n}=O();n(`topic`,H),n(`pageType`,`topic`);let r=`${W.value?.topic?.post?.meta?.rmTopic?.robots?.noindex||V.value>1?`noindex`:`index`}, follow, noarchive, max-image-preview:large`;d({meta:[{name:`robots`,content:r}]});let{preparePath:i}=C();C().setupData(i(W.value?.topic?.post?.meta?.rmTopic?.tracking?.ivw||`RedCont/Nachrichten/Nachrichtenueberblick`,H,`topic`))}return b().setInitialData({dimension30:`topic-page`,dimension2:H,page_url:V.value>1?`${W.value?.topic?.post?.link}/page/${V.value}`:W.value?.topic?.post?.link}),y().setData(W.value?.topic?.post?.title??``),(e,t)=>{let n=T;return m(),_(p,null,[i(`h1`,M,c(v(W)?.topic?.post?.title),1),i(`div`,N,[s(n,{posts:v(q).posts,river:v(q).river,aside:v(q).aside,top:v(q).top,"total-pages":v(G).posts?.totalPages??0,"current-page":v(V),"use-endless-scrolling":!1,onPageClicked:J},null,8,[`posts`,`river`,`aside`,`top`,`total-pages`,`current-page`])])],64)}}}),{__name:`PagesTopic`});export{P as t}; 2//# sourceMappingURL=BxHUXfNs.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.