PageSourceSearch

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

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

1import C from"./Be1JWI0M.js";import{_ as v}from"./BD_ODaK-.js";import{d as y,r as m,o as B,c as d,e as g,f as t,t as b,F as D,l as T,i as c,w as f,_ as x,n as S,p as L,K as P,j as w,bB as I,g as N,H as O}from"./2wZnQC37.js";import{S as R}from"./DEHJaEqD.js";const $=["href"],j={id:"traueranzeigen",class:"u-section__title","aria-hidden":"true",focusable:"false"},W={class:"splide__track p-2"},z={class:"splide__list"},E=["href"],F={class:"u-wrapper-slider__arrows splide__arrows"},M=y({__name:"DeathNoticesSlider",props:{deathNoticesData:{},deathNoticesLink:{},withBackground:{type:Boolean,default:!1},deathNoticeCityName:{default:""}},setup(k){const a=m(null);return B(()=>{a.value&&new R(a.value,{pagination:!1,mediaQuery:"min",perPage:1,perMove:1,gap:"2rem",autoWidth:!0,focus:"right",breakpoints:{619:{perPage:2},767:{perPage:3},992:{perPage:4}}}).mount()}),(s,l)=>{const _=C,n=v,e=x;return d(),g("div",{class:S(["u-media-library-slider__wrapper u-content-width--full",[s.withBackground&&"theme-light-grey u-death-notices-slider__wrapper--with-background"]])},[t("a",{class:"u-section__title-link",href:s.deathNoticesLink,target:"_blank"},[t("h2",j," Traueranzeigen "+b(s.deathNoticeCityName),1),l[0]||(l[0]=t("svg",{class:"u-section__title-arrow",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"6",viewBox:"0 0 12 6",fill:"none","aria-hidden":"true",focusable:"false"},[t("path",{d:"M0 .769.882 0 6 4.462 11.118 0 12 .769 6 6 0 .769Z",fill:"currentColor"})],-1))],8,$),t("div",{ref_key:"sliderRef",ref:a,class:"u-media-library-slider splide"},[t("div",W,[t("ul",z,[(d(!0),g(D,null,T(s.deathNoticesData,(i,h)=>(d(),g("li",{class:"u-death-notices-slider__slide splide__slide",key:h},[t("a",{href:i.url,target:"_blank",class:"u-death-notices-slider__item"},[c(_,{class:"u-death-notices-slider__item-image",image:i.teaserImage,alt:i?.caption||i?.altText},null,8,["image","alt"])],8,E)]))),128))])]),t("div",F,[c(e,{class:"splide__arrow splide__arrow--prev",version:"primary-icon",title:"Zurück"},{default:f(()=>[c(n,{direction:"left"})]),_:1}),c(e,{class:"splide__arrow splide__arrow--next",version:"primary-icon",title:"Weiter"},{default:f(()=>[c(n,{direction:"right"})]),_:1})])],512)],2)}}}),U=Object.assign(M,{__name:"OrganismsDeathNoticesSlider"}),V=y({__name:"DeathNotices",async setup(k){let a,s;const l=m([]),_=m(""),n=m(""),e=document?.getElementById("deathNoticesWidget");if(e){const i=e.dataset.deathNoticesTenant??"",h=e.dataset.deathNoticesRegionIds??"";n.value=e.dataset.deathNoticesCityname?e.dataset.deathNoticesCityname:"";try{const o=([a,s]=L(()=>$fetch("/api/advertisement/deathnotices",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({tenant:i,region:h,cityName:n.value})})),a=await a,s(),a),u=o.data;_.value=o.searchUrl,u.Announcements.Announcement.length==0?e.remove():u.Announcements.Announcement.map(function(r,Z){const A=P(()=>`Traueranzeige ${r.FirstName} ${r.LastName}`);let p="";r.Ads.Ad.length>0?p=r.Ads.Ad[0].ThumbnailPath:p=r.Ads.Ad.ThumbnailPath,l.value.push({teaserImage:{url:p,width:500,height:250,altText:A.value},url:r.URL,overline:"ABCD",teaserTitle:"BCDE"})})}catch(o){console.error(o)}}return(i,h)=>{const o=U,u=O;return d(),w(u,null,{default:f(()=>[(d(),w(I,{to:"#deathNoticesWidget"},[c(o,{withBackground:!0,deathNoticeCityName:N(n),deathNoticesData:N(l),deathNoticesLink:N(_)},null,8,["deathNoticeCityName","deathNoticesData","deathNoticesLink"])]))]),_:1})}}}),q=Object.assign(V,{__name:"DeathNotices"});export{q 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.