PageSourceSearch

https://www.die-neue-welle.de/wp-content/themes/cmms-theme-radio_die_neue_welle/assets/dist/1.63/Weather.js

js die-neue-welle.de collected 2026-09-24 21:16:29 UTC 10,348 bytes, 1 lines download raw bytes

1import{_ as C,a as W}from"./app.js";import"./swiper.js";const B={name:"WeatherShortcut",components:{},props:["element","weatherClass"],computed:{hours(){let a=[],e=this.element.weather.hour,t=u=>e.find(m=>u.includes(m.hour));return a.morning=t(["06:00","07:00","05:00","04:00"]),a.noon=t(["12:00","13:00","11:00"]),a.evening=t(["18:00","19:00"]),a.night=t(["23:00","22:00"]),a}}},o=window.Vue.toDisplayString,n=window.Vue.createElementVNode,d=window.Vue.normalizeClass,r=window.Vue.createTextVNode,i=window.Vue.openBlock,c=window.Vue.createElementBlock,_=window.Vue.createCommentVNode,S={class:"weather-shortcut__main"},E={class:"weather-shortcut__main__date"},O={class:"weather-shortcut__main__entry"},D={class:"weather-shortcut__main__entry__temperature"},F={class:"weather-shortcut__main__entry__temperature__high",title:"Maximaltemperatur"},L={class:"weather-shortcut__main__entry__temperature__low",title:"Minimaltemperatur"},M={class:"weather-shortcut__main__entry__temperature__rain",title:"Regenwahrscheinlichkeit"},T={class:"weather-shortcut__detail"},R={key:0,class:"weather-shortcut__detail__time"},j={key:0,class:"weather-shortcut__detail__time__icon"},I={key:1,class:"weather-shortcut__detail__time__icon"},A={key:2,class:"weather-shortcut__detail__time__icon"},P={key:3,class:"weather-shortcut__detail__time__icon"},q={class:"weather-shortcut__detail__data"},G={key:0,class:"weather-shortcut__detail__data__item"},H={title:"Sonnenaufgang"},J={title:"Sonnenuntergang"},K={key:1,class:"weather-shortcut__detail__data__item"},Q={title:"Mondaufgang"},U={title:"Monduntergang"},X={class:"weather-shortcut__detail__data__item"},Y={title:"Windgeschwindigkeit"},Z={title:"Luftdruck"};function $(a,e,t,u,m,s){return t.element.weather.day?(i(),c("div",{key:0,class:d(["weather-shortcut",t.weatherClass?t.weatherClass:""])},[n("div",S,[n("span",E,o(t.element.label.long),1),n("div",O,[n("span",{class:d(["weather-shortcut__main__entry__icon","wi",t.element.weather.day.icon])},null,2),n("div",D,[n("span",F,o(t.element.weather.day.max_temperature)+" °C ",1),n("span",L,o(t.element.weather.day.min_temperature)+" °C ",1),n("span",M,[e[0]||(e[0]=n("span",{class:"wi wi-umbrella"},null,-1)),r(" "+o(t.element.weather.day.rain_probability)+" % ",1)])])])]),n("div",T,[t.weatherClass?_("",!0):(i(),c("div",R,[s.hours.morning?(i(),c("span",j,[n("span",{class:d(["wi",s.hours.morning.icon])},null,2),e[1]||(e[1]=r(" Morgen "))])):_("",!0),s.hours.noon?(i(),c("span",I,[n("span",{class:d(["wi",s.hours.noon.icon])},null,2),e[2]||(e[2]=r(" Mittag "))])):_("",!0),s.hours.evening?(i(),c("span",A,[n("span",{class:d(["wi",s.hours.evening.icon])},null,2),e[3]||(e[3]=r(" Abend "))])):_("",!0),s.hours.night?(i(),c("span",P,[n("span",{class:d(["wi",s.hours.night.icon])},null,2),e[4]||(e[4]=r(" Nacht "))])):_("",!0)])),n("div",q,[t.element.weather.day.sunrise||t.element.weather.day.sunset?(i(),c("span",G,[n("span",H,[e[5]||(e[5]=n("span",{class:"wi wi-sunrise"},null,-1)),r(" "+o(t.element.weather.day.sunrise),1)]),n("span",J,[e[6]||(e[6]=n("span",{class:"wi wi-sunset"},null,-1)),r(" "+o(t.element.weather.day.sunset),1)])])):_("",!0),t.element.weather.day.moonrise||t.element.weather.day.moonset?(i(),c("span",K,[n("span",Q,[e[7]||(e[7]=n("span",{class:"wi wi-moonrise"},null,-1)),r(" "+o(t.element.weather.day.moonrise),1)]),n("span",U,[e[8]||(e[8]=n("span",{class:"wi wi-moonset"},null,-1)),r(" "+o(t.element.weather.day.moonset),1)])])):_("",!0),n("span",X,[n("span",Y,[e[9]||(e[9]=n("span",{class:"wi wi-wind-direction"},null,-1)),r(" "+o(t.element.weather.day.wind_speed)+" km/h ",1)]),n("span",Z,[e[10]||(e[10]=n("span",{class:"wi wi-barometer"},null,-1)),r(" "+o(t.element.weather.day.pressure)+" hPa ",1)])])])])],2)):_("",!0)}const ee=C(B,[["render",$]]),te={name:"SoylentRadioWeather",components:{WeatherShortcut:ee,CmmsResponsiveImage:W},props:{element:{type:Object}},computed:{locationId(){return this.element.data.location_id>0?[this.element.data.location_id]:this.element.data.weather_location_sort}},methods:{getLocation:function(a){return this.element.data.weather_locations[a]},isOpenWeather(a=null){var e;return this.element.data.provider==="open_weather_map"?!0:a!==null?((e=this.element.data)==null?void 0:e.weather_locations[a].provider)==="open_weather_map":!1},getDays:function(a){let e={},t=this.element.data.day_labels,u=this.getLocation(a);for(let m in t)e[m]={name:u.name,label:t[m],weather:u.data[m]};return e},getToday:function(a){return this.getDays(a)[0]},getForecast:function(a){return Object.fromEntries(Object.entries(this.getDays(a)).slice(1))},getForecastAmount:function(a){return Object.values(this.getForecast(a)).filter(e=>e.weather.day!==void 0).length}}},p=window.Vue.renderList,V=window.Vue.Fragment,h=window.Vue.openBlock,w=window.Vue.createElementBlock,ne=window.Vue.toDisplayString,g=window.Vue.createCommentVNode,f=window.Vue.resolve
1Component,k=window.Vue.createBlock,ae=window.Vue.createVNode,z=window.Vue.normalizeClass,v=window.Vue.createElementVNode,b=window.Vue.createTextVNode,se={key:0,class:"weather__headline"},re={key:1,class:"weather__forecast"},oe={key:2,href:"https://openweathermap.org",target:"_blank",class:"weather-attribution",title:"OpenWeatherMap"};function le(a,e,t,u,m,s){const N=f("CmmsResponsiveImage"),y=f("WeatherShortcut");return h(!0),w(V,null,p(s.locationId,l=>(h(),w("div",{key:l,class:z(["element",t.element.type,"weather"])},[s.getLocation(l)?(h(),w("h2",se,ne(s.getToday(l).name),1)):g("",!0),s.getLocation(l)?(h(),w("div",re,[t.element.data.background_image?(h(),k(N,{key:0,image:t.element.data.background_image,fill:!0,blur:!0},null,8,["image"])):g("",!0),ae(y,{element:s.getToday(l)},null,8,["element"]),v("div",{class:z(["weather__forecast__day","--amount-"+s.getForecastAmount(l)])},[(h(!0),w(V,null,p(s.getForecast(l),x=>(h(),k(y,{element:x,"weather-class":"--small"},null,8,["element"]))),256))],2)])):g("",!0),s.isOpenWeather(l)?(h(),w("a",oe,e[0]||(e[0]=[v("span",{class:"weather-attribution__label"},[b("Weather data provided"),v("br"),b("by OpenWeather")],-1),v("svg",{class:"weather-attribution__icon",xmlns:"http://www.w3.org/2000/svg",width:"188.97",height:"75",viewBox:"0 0 188.87 75"},[v("path",{d:"m39.336 0.596c-13.581 0-24.611 11.018-24.611 24.61 0 1.34 0.113 2.662 0.314 3.95h-1.512a1.99 1.99 0 0 0-1.994 1.982v0.153c0 1.097 0.896 1.992 1.994 1.992h7.713c1.098 0 1.994 0.885 1.994 1.982v0.15a1.988 1.988 0 0 1-1.994 1.983h-0.668c-0.834 0-1.555 0.504-1.846 1.236-0.1 0.227-0.15 0.493-0.15 0.758v0.15c0 1.1 0.885 1.983 1.996 1.983h12.795c1.1 0 1.994 0.895 1.994 1.994v0.152c0 1.098-0.894 1.98-1.994 1.98h-8.61a1.998 1.998 0 0 0-1.994 1.995v0.152c0 1.098 0.896 1.98 1.994 1.98h35.934c1.099 0 1.98-0.882 1.98-1.98v-0.152a1.987 1.987 0 0 0-1.98-1.994h-13.556a1.988 1.988 0 0 1-1.994-1.98v-0.153c0-1.099 0.897-1.994 1.994-1.994h2.475a1.988 1.988 0 0 0 1.994-1.982v-0.15a1.998 1.998 0 0 0-1.994-1.995h-0.82a1.978 1.978 0 0 1-1.983-1.982v-0.15c0-1.098 0.884-1.983 1.983-1.983h20.834c1.098 0 1.98-0.895 1.98-1.992v-0.153a1.977 1.977 0 0 0-1.98-1.982h-5.99c0.2-1.288 0.314-2.61 0.314-3.95 0-13.592-11.02-24.61-24.611-24.61zm17.189 36.803a1.988 1.988 0 0 0-1.982 1.994v0.15c0 1.099 0.883 1.983 1.982 1.983h4.43a1.988 1.988 0 0 0 1.994-1.983v-0.15a1.998 1.998 0 0 0-1.994-1.994zm11.764 0a1.99 1.99 0 0 0-1.984 1.994v0.15a1.98 1.98 0 0 0 1.984 1.983h4.428a1.99 1.99 0 0 0 1.996-1.983v-0.15a2 2 0 0 0-1.996-1.994z",fill:"#de6e4e"}),v("path",{d:"m8.738 53.334c-5.432 0-8.738 3.368-8.738 8.799v4.492c0 5.584 3.306 8.799 8.738 8.799 5.43 0 8.738-3.215 8.738-8.799v-4.492c0-5.43-3.307-8.799-8.738-8.799zm62.701 0.426 3.336 21.24h6.525l3.246-17.355h0.366l3.246 17.355h6.523l3.338-21.24h-4.006l-2.549 17.355h-0.363l-3.246-17.355h-6.252l-3.246 17.355h-0.363l-2.551-17.355zm73.777 0v21.24h3.822v-7.768c0-2.67 1.305-4.187 3.762-4.187 2.184 0 3.398 1.243 3.398 3.338v8.617h3.825v-8.983c0-3.913-2.52-6.31-5.858-6.31-2.763 0-4.154 1.274-4.764 2.67h-0.363v-8.617zm-10.502 1.517v4.672h-3.822v3.217h3.822v8.922c0 1.697 1.274 2.912 2.973 2.912h4.127v-3.217h-2.427c-0.545 0-0.852-0.305-0.852-0.912v-7.705h4.13v-3.217h-4.13v-4.672zm-125.98 1.637c2.972 0 4.732 2.034 4.732 5.037v4.856c0 2.944-1.425 5.037-4.732 5.037-3.216 0-4.734-1.973-4.734-5.037v-4.856c0-2.881 1.669-5.037 4.734-5.037zm20.332 2.61c-2.67 0-4.006 1.276-4.795 2.55h-0.424v-2.125h-3.763v21.12h3.824v-8.192h0.363c0.79 1.273 2.126 2.547 4.795 2.547 3.763 0 6.918-3.337 6.918-7.95 0-4.611-3.155-7.95-6.918-7.95zm16.057 0c-4.432 0-7.557 3.278-7.557 7.83 0 4.672 3.246 8.07 7.737 8.07 4.037 0 5.796-2.124 6.828-3.701l-3.125-1.82c-0.518 1.06-1.64 2.243-3.762 2.243-2.185 0-3.61-1.547-3.762-3.61h10.951v-1.425c0-4.52-2.942-7.588-7.31-7.588zm61.09 0c-4.43 0-7.557 3.278-7.557 7.83 0 4.672 3.248 8.07 7.739 8.07 4.036 0 5.796-2.124 6.828-3.701l-3.127-1.82c-0.516 1.06-1.638 2.243-3.762 2.243-2.185 0-3.612-1.547-3.764-3.61h10.955v-1.425c0-4.52-2.944-7.588-7.312-7.588zm16.508 0c-4.004 0-6.188 2.398-7.371 4.128l3.094 1.881c0.789-1.7 2.003-2.914 4.127-2.914s3.156 1.214 3.156 2.61v0.486l-5.766 0.637c-2.882 0.302-4.976 1.971-4.976 4.369 0 2.882 2.244 4.703 5.644 4.703 3.187 0 4.247-1.549 4.735-2.549h0.423v2.125h3.76v-9.498c0-3.641-2.82-5.978-6.826-5.978zm47.164 0c-4.432 0-7.557 3.278-7.557 7.83 0 4.672 3.246 8.07 7.737 8.07 4.037 0 5.796-2.124 6.828-3.701l-3.125-1.82c-0.518 1.06-1.64 2.243-3.762 2.243-2.187 0-3.612-1.547-3.764-3.61h10.953v-1.425c0-4.52-2.942-7.588-7.31-7.588zm-106.13 0.183c-2.763 0-4.158 1.274-4.766 2.67h-0.421v-2.428h-3.764v15.051h3.824v-7.767c0-2.67 1.303-4.19 3.762-4.19 2.184 0 3.398 1.247 3.398 3.34v8.617h3.822v-8.982c0-3.915-2.518-6.31-5.855-6.31zm123.76 0.182c-1.912 0-3.186 0.576-3.764 2.244h-0.422v-2.184h-3.763v15.051h3.822v-8.617c0-2.124 1.397-3.156 3.338-3.156h2.244v-3.338zm-142.42 2.912c1.972 0 3.246 1.215 3.457 3.187h-7.037c0.241-1.913 1.425-3.187 3.58-3.187zm61.09 0c1.973 0 3.248 1.215 3.459 3.187h-7.037c0.24-1.913 1.423-3.187 3.578-3.187zm63.672 0c1.972 0 3.246 1.215 3.457 3.187h-7.037c0.241-1.913 1.425-3.187 3.58-3.187zm-141.82 0.123c2.307 0 4.127 1.637 4.127 4.55 0 2.914-1.82 4.551-4.127 4.551-2.367 0-4.127-1.698-4.127-4.55 0-2.854 1.76-4.551 4.127-4.551zm97.691 5.338v0.365c0 2.063-1.488 3.64-4.158 3.64-1.698 0-2.578-0.727-2.578-1.757 0-0.88 0.697-1.519 2.123-1.701z",fill:"#484849"})],-1)]))):g("",!0)],2))),128)}const _e=C(te,[["render",le]]);export{_e 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.