1import{_ as h,S as u}from"./app.js";import"./swiper.js";const f={name:"SoylentRadioTrafficWidget",components:{SoylentLink:u},props:["element","item","descriptionClass"],computed:{headline(){return this.element&&this.element.data.headline?this.element.data.headline:this.item?this.item.label?this.item.label:this.item.nav_label:"Verkehr"},icon(){return this.element&&this.element.data.icon?this.element.data.icon:this.item?this.item.icon:"directions_car"},items(){return this.element&&this.element.data.items?this.element.data.items:this.item?this.item.items:[]},moreUrl(){return this.element&&this.element.data.link_url?this.element.data.link_url:window.soylent_settings.child_settings.header_pages.traffic},showMore(){return this.element&&this.element.data.more_button===1}},methods:{getTimeDate:function(_){return _.split(" ").join(" · ")},parseMaxSpeed:function(_){return _===-1?"?":_}}},a=window.Vue.toDisplayString,t=window.Vue.createElementVNode,c=window.Vue.createTextVNode,w=window.Vue.resolveComponent,p=window.Vue.withCtx,s=window.Vue.openBlock,g=window.Vue.createBlock,o=window.Vue.createCommentVNode,x=window.Vue.renderList,y=window.Vue.Fragment,i=window.Vue.createElementBlock,l=window.Vue.normalizeClass,k={class:"traffic-widget__head"},V={class:"traffic-widget__head__title --text-size-xl --text-weight-medium"},z={class:"traffic-widget__head__title__icon iconSet"},S={class:"traffic-widget__head__title__text"},C={class:"traffic-widget__main"},v={key:0,class:"traffic-widget__main__entry__speed-limit --text-size-s"},T={class:"traffic-widget__main__entry__meta"},M={key:0,class:"iconSet --text-size-s"},L={key:1,class:"iconSet --text-size-s"},B=["innerHTML"],N={class:"traffic-widget__main__entry__title --text-size-m --text-weight-medium"},D={key:0,class:"iconSet --text-size-s"},b={class:"traffic-widget__main__entry__description --text-size-s"},E={key:0,class:"iconSet --text-size-s"},H=["innerHTML"],F={key:1,class:"traffic-widget__main__entry__source --text-size-s"},U={key:1,class:"traffic-widget__main__entry"};function W(_,r,d,j,G,n){const m=w("soylent-link");return s(),i("div",{class:l(["traffic-widget",d.descriptionClass?d.descriptionClass:""])},[t("div",k,[t("span",V,[t("span",z,a(n.icon),1),t("span",S,a(n.headline),1)]),n.showMore?(s(),g(m,{key:0,url:n.moreUrl,class:"traffic-widget__head__link --text-size-m"},{default:p(()=>[...r[0]||(r[0]=[c(" mehr ",-1),t("span",{class:"iconSet"},"arrow_forward",-1)])]),_:1},8,["url"])):o("",!0)]),t("div",C,[n.items.length>0?(s(!0),i(y,{key:0},x(n.items,e=>(s(),i("div",{key:e.post_id,class:l(["traffic-widget__main__entry",e.max_speed?"--with-speed-limit":""])},[e.max_speed?(s(),i("span",v,a(n.parseMaxSpeed(e.max_speed)),1)):o("",!0),t("span",T,[e.icon?(s(),i("span",M,a(e.icon),1)):(s(),i("span",L,a(n.icon),1)),t("span",{class:"--text-size-xxs --text-weight-medium",innerHTML:n.getTimeDate(e.date)},null,8,B)]),t("span",N,[e.max_speed?(s(),i("span",D,"place")):o("",!0),c(" "+a(e.title),
11)]),t("span",b,[e.max_speed?(s(),i("span",E,"signpost")):o("",!0),t("span",{innerHTML:e.description},null,8,H)]),e.source?(s(),i("span",F,[r[1]||(r[1]=t("strong",null,"Gemeldet von:",-1)),c(" "+a(e.source),1)])):o("",!0)],2))),128)):(s(),i("div",U,[...r[2]||(r[2]=[t("span",{class:"traffic-widget__main__entry__description"},"Derzeit sind keine Meldungen vorhanden.",-1)])]))])],2)}const A=h(f,[["render",W]]);export{A 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.