PageSourceSearch

https://www.stuttgarter-zeitung.de/static/assets/UW-V4l1m.js

js stuttgarter-zeitung.de collected 2026-09-24 08:29:41 UTC 3,488 bytes, 1 lines download raw bytes

1import{_ as U}from"./C4d1hAjh.js";import G from"./8m2FUGz1.js";import{_ as O}from"./CFWPVuf4.js";import{_ as q}from"./DIu70L6q.js";import{d as I,c as m,e as _,F as D,l as j,i as a,w as c,h as A,t as F,L as Q,k as z,an as y,K as b,a as g,U as K,p as w,r as W,o as J,S as L,A as X,f as Y,g as u,q as Z,H as V,ap as ee,I as te}from"./wGaC-Zcn.js";import{_ as se}from"./fDRy0GRi.js";import{_ as oe}from"./s1JnHLeW.js";import{u as ae}from"./DK2t9tc5.js";import{u as ne}from"./8Btfm6zX.js";import{u as k}from"./DTy25NDx.js";import{u as ie}from"./DElT1bP8.js";import{u as ce}from"./B-8IwvwF.js";import"./sTTMYkzP.js";import"./BehRJDZa.js";const re={key:0,class:"u-topic-glossary-list"},le=I({__name:"TopicGlossaryList",props:{items:{},selectedTopics:{}},setup(C){return(s,r)=>{const p=se;return s.items?(m(),_("div",re,[(m(!0),_(D,null,j(s.items,i=>(m(),_("div",{class:"u-topic-glossary-list__list-item",key:i.id},[a(p,{class:"fw-bold",url:i.url},{default:c(()=>[A(F(i.label),1)]),_:2},1032,["url"]),Q(s.$slots,"default",{topic:i})]))),128))])):z("",!0)}}}),ue=Object.assign(le,{__name:"MoleculesTopicGlossaryList"}),me={class:"u-content-width--default mx-auto py-7"},_e={class:"u-topic__head"},pe=I({__name:"index",async setup(C){let s,r;y()?.context!==void 0&&(y().context.responseTimeMetricName="retresco-topics"),ne();const p=b(()=>({headline:"Alle Themen der "+g().toUpperCase()})),i=K(),{data:h,error:de}=([s,r]=w(()=>Z("/api/"+g()+"/retresco/topics","$P49MsH_rLl")),s=await s,r(),s),l=h.value.groups,d=l.map(e=>e.items).flat().map(e=>({topicId:e.id,topic:e.label})),S=h.value.trending,n=W([]),M=b(()=>`Die wichtigsten Themen der ${g().toUpperCase()} im Überblick: Aktuelle Nachrichten zu Ereignissen, Orten, Personen, Organisationen, Produkten und mehr.`),v=ae("active"),B=v.value?l.findIndex(e=>e.label===v.value):l.findIndex(e=>e.items.length>0);return J(async()=>{if(L()){const[e]=await Promise.all([fetch("/api/no-cache/user/user-favourites/favourite-topics").then(t=>t.json())]);n.value=e?.map(t=>t.topicId)}}),X(n,(e,t)=>{if(!L()){if(n.value?.length){const o=d.find(f=>f.topicId===n.value[0]);ee().rememberTopicForLogin=o,document.body.dispatchEvent(new CustomEvent("show-login-required-modal",{detail:{messageType:"topic"}})),n.value=[]}return}t!==null&&[...new Set([...e,...t])].forEach(async o=>{e.includes(o)&&!t.includes(o)&&await k(o,d,"add"),!e.includes(o)&&t.includes(o)&&await k(o,d,"delete")})}),ie("Alle Themen"),[s,r]=w(()=>ce([{label:"Alle Themen"}])),await s,r(),(e,t)=>{const o=U,f=G,P=O,T=q,E=V,N=ue,$=oe;return m(),_("div",me,[Y("div",_e,[a(o,{class:"u-topic__headline lh-sm",tag:"h2"},{default:c(()=>[A(F(p.value?.headline),1)]),_:1}),a(f,{text:M.value},null,8,["text"])]),a(P,{class:"u-tags--topics",title:"Weitere beliebte Themen",tags:u(S)},null,8,["tags"]),a($,{header:"Themenglossar",groups:u(l),activeIndex:u(B),path:u(i).path},{default:c(H=>[a(N,{items:H.items,selectedTopics:n.value},{default:c(({topic:x})=>[a(E,null,{fallback:c(()=>[a(T,{class:"u-my-topics-form__topics",name:"tags",tagList:[{title:"Folge ich<>Folgen",key:x.id}],value:[]},null,8,["tagList"])]),default:c(()=>[a(T,{class:"u-my-topics-form__topics",name:"tags",tagList:[{title:"Folge ich<>Folgen",key:x.id}],"selected-tags":n.value,"onUpdate:selectedTags":t[0]||(t[0]=R=>n.value=R)},null,8,["tagList","selected-tags"])]),_:2},1024)]),_:2},1032,["items","selectedTopics"])]),_:1},8,["groups","activeIndex","path"])])}}}),Ce=te(pe,[["__scopeId","data-v-f24a553d"]]);export{Ce 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.