PageSourceSearch

https://www.maximal-radio.de/wp-content/themes/cmms-theme-maximal_radio/assets/dist/1.56/CategoryNews.js

js maximal-radio.de collected 2026-10-10 00:52:46 UTC 2,657 bytes, 1 lines download raw bytes

1import{S as k}from"./SliderWrapper.js";import{_ as V,C as S,P as B,S as f}from"./app.js";import"./swiper.js";const y={name:"MaximalRadioCategoryNews",props:["element"],components:{SliderWrapper:k,SwiperSlide:f,PostShortcut:B,CtaButton:S},data:function(){return{currentCat:"nachrichten",categories:[{name:"Alle Nachrichten",icon:"logo-m.svg",slug:"nachrichten"},{name:"Landshut",icon:"landshut.png",slug:"landshut"},{name:"Landkreis LA",icon:"landkreis-landshut.png",slug:"landkreis-landshut"},{name:"Dingolfing",icon:"dingolfing.png",slug:"dingolfing-landau"},{name:"Rottal",icon:"rottal-inn.png",slug:"rottal-inn"},{name:"SR-Bogen",icon:"straubing-bogen.png",slug:"straubing-bogen"}],breakpoints:{320:{slidesPerView:2.5,spaceBetween:0},425:{slidesPerView:3.5,spaceBetween:0},768:{slidesPerView:7,spaceBetween:0},1200:{slidesPerView:9,spaceBetween:0}}}},computed:{items(){return this.element.data.items.filter(c=>c.categories.some(a=>a.slug===this.currentCat)||!this.currentCat).slice(0,6)},button(){return{data:{text:"alle Beiträge anzeigen",link:this.currentCat&&this.currentCat!=="nachrichten"?"/kategorie/nachrichten/".concat(this.currentCat,"/"):"/kategorie/nachrichten/"}}}},methods:{selectCategory(n){this.currentCat=n}}},l=window.Vue.renderList,d=window.Vue.Fragment,s=window.Vue.openBlock,i=window.Vue.createElementBlock,t=window.Vue.createElementVNode,b=window.Vue.toDisplayString,u=window.Vue.normalizeClass,o=window.Vue.resolveComponent,_=window.Vue.withCtx,m=window.Vue.createBlock,g=window.Vue.createVNode,v={class:"category-news__header swiper"},P=["onClick"],N={class:"category-news__header__category__icon"},x=["src"],L={class:"category-news__header__category__name"},E={class:"post-grid"},z={class:"post-shortcuts -col-3"},D={class:"button-container --load-more"};function R(n,c,a,W,$,r){const p=o("SwiperSlide"),h=o("SliderWrapper"),w=o("PostShortcut"),C=o("CtaButton");return s(),i("div",{class:u(["element",a.element.type,"category-news"])},[t("div",v,[g(h,{breakpoints:n.breakpoints},{default:_(()=>[(s(!0),i(d,null,l(n.categories,e=>(s(),m(p,{key:"cat_".concat(e.slug)},{default:_(()=>[t("button",{onClick:A=>r.selectCategory(e.slug),class:u(["category-news__header__category",e.slug===n.currentCat?"--active":""])},[t("span",N,[t("img",{src:"/wp-content/themes/cmms-theme-maximal_radio/assets/img/categories/"+e.icon},null,8,x)]),t("span",L,b(e.name),1)],10,P)]),_:2},1024))),128))]),_:1},8,["breakpoints"])]),t("div",E,[t("div",z,[(s(!0),i(d,null,l(r.items,e=>(s(),m(w,{post:e,key:e.post_id},null,8,["post"]))),128))])]),t("div",D,[g(C,{element:r.button},null,8,["element"])])],2)}const q=V(y,[["render",R]]);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.