PageSourceSearch

https://www.stuttgarter-nachrichten.de/static/assets/CdlRfsE0.js

js stuttgarter-nachrichten.de collected 2026-10-01 10:18:12 UTC 3,727 bytes, 1 lines download raw bytes

1import{_ as C}from"./wtnVEmQg.js";import{_ as w}from"./BD_ODaK-.js";import{aR as T,d as A,m as v,ar as I,o as N,R,c as d,e as g,j as L,i as p,f as m,bB as $,k as f,L as B,F as G}from"./2wZnQC37.js";import"./BhVQHxBq.js";import"./Be1JWI0M.js";import"./jZ8yHuX0.js";const q="script[src][data-engagently-community], script[src][data-engagently]",y="data-engagently-script",x="#widgetEngagently, egy-debate, egy-debates, egy-debate-teaser";function P(e){const n=e.dataset.engagentlyCommunity||"",t=e.dataset.engagently||"";return`${n}|${t}|${e.src}`}function D(e,n){const[t,i=""]=e.split("?",2),c=new URLSearchParams(i);n&&c.set("module",n);const o=c.toString();return o?`${t}?${o}`:t}function M(e,n){Array.from(e.attributes).forEach(t=>{n.setAttribute(t.name,t.value)})}function V(e){return Array.from(document.querySelectorAll(`script[${y}]`)).some(n=>n.getAttribute(y)===e)}function b(e){const n=P(e);if(V(n))return;const t=document.createElement("script");M(e,t),t.type="module",t.setAttribute(y,n),document.head.appendChild(t)}function F(e){const n=e.frontendUrl?.trim(),t=e.communityId?.trim(),i=e.mode??"community",c=e.initCallbackName?.trim();if(!n||i==="community"&&!t||i==="init-callback"&&!c)return null;const o=document.createElement("script");return o.src=D(n,e.module),o.type="module",i==="community"?o.dataset.engagentlyCommunity=t:o.dataset.engagently=c,o}function O(){return!!document.querySelector(x)}function U(e={}){const n=Array.from(document.querySelectorAll(q));if(n.length===0&&O()){const t=F(e);t&&b(t)}n.forEach(b)}const Y=()=>{const e=T("engagentlyToken",()=>null);return{token:e,fetchToken:async()=>{try{const t=await $fetch("/api/user/engagently-token");e.value=t?.token??null}catch{e.value=null}return e.value}}},j={key:1,class:"u-widget"},W=["debate-id"],H={key:2,class:"u-widget"},K=A({__name:"Engagently",props:{type:{default:"debate-teaser"},debateId:{default:""}},setup(e){const n=e,t=v(),{fetchToken:i}=Y(),c=I();function o(r,a,s){return r==="debate"?{frontendUrl:a,mode:"init-callback",initCallbackName:"initEngagently"}:r==="debate-teaser"?{frontendUrl:a,communityId:s,mode:"community",module:"debate-teaser"}:{frontendUrl:a,communityId:s,mode:"community"}}return N(async()=>{const r=await i(),a=t.engagently.engagentlyCommunityId?.trim()||"",s=t.engagently.engagentlyFrontendUrl?.trim()||"",l=c.value?"dark":"light",E=n.debateId||window?.location?.pathname?.match(/\/debatten\/([^/]+)/)?.[1]||"";function k(){a&&window.engagently?.Configuration?.({communityId:a,...r?{token:r}:{},theme:"nexus",colorScheme:l,themeSettings:{argumentActionPlacements:{header:["share","edit"],menu:["edit","report","bookmark","ignore","moderate","delete"],footer:["reaction1","reaction2","reply"]}},events:{onExperienceParticipated:function(u){_(u,"participated","debate")}}})}window.initEngagently=k,await R(),s&&U(o(n.type,s,a)),window.engagently?.toggleColorScheme?.(l);function _(u,h,S){document.body.dispatchEvent(new CustomEvent("avo-engagently-experience-interacted",{detail:{action:h,type:S,titleVisible:u.payload?.question?.title,experienceId:E}}))}}),(r,a)=>{const s=C,l=w;return d(),g(G,null,[r.type==="debate-teaser"?(d(),L($,{key:0,to:"#widgetEngagently"},[p(s,{class:"u-engagently-page__widget",title:"Debatten",titleHref:"/debatten"}),a[0]||(a[0]=m("span",{class:"u-engagently-loader-placeholder"},null,-1))])):f("",!0),r.type==="debate"?(d(),g("div",j,[m("egy-debate",{"debate-id":n.debateId},[p(l,{slot:"showResultsIcon",direction:"right",style:{display:"none"}}),B(r.$slots,"default")],8,W)])):r.type==="debates"?(d(),g("div",H,a[1]||(a[1]=[m("egy-debates",{count:"6",target:"_self",sort:"newest"},null,-1)]))):f("",!0)],64)}}}),te=Object.assign(K,{__name:"Engagently"});export{te 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.