PageSourceSearch

https://www.arabella-bayern.de/wp-content/themes/cmms-theme-arabella/assets/dist/1.141/Weather.js

js arabella-bayern.de collected 2026-09-24 10:15:54 UTC 6,954 bytes, 1 lines download raw bytes

1import{_ as u,w as y,e as p}from"./app.js";import"./swiper.js";const v={name:"Weather",components:{SoylentThirdPartyDelivery:y},data(){return{activeLocationId:null,activeDayIndex:0,profileIdWatcher:null}},props:{element:{type:Object}},computed:{...p("profile",["authenticated","weatherLocationId"]),activeLocationDayData(){let i={};return this.activeLocationId?this.element.data.weather_locations[this.activeLocationId].data[this.activeDayIndex].day:i},activeLocationForecastData(){const i=[];return this.activeLocationId&&this.element.data.weather_locations[this.activeLocationId].data.forEach(t=>{i.push(t.day)}),i},activeLocationHourData(){return this.activeLocationId?this.element.data.weather_locations[this.activeLocationId].data[this.activeDayIndex].hour:[]},zoneElement(){return this.element.data.zone?{data:{zone:this.element.data.zone}}:null}},methods:{getDayLabel:function(i,t=!1){const l=t?"short":"long";return this.element.data.day_labels[i][l]},getLocationName:function(i){return this.element.data.weather_locations&&this.element.data.weather_locations[i]?this.element.data.weather_locations[i].name:""},setDayIndex:function(i){this.activeDayIndex=i}},mounted(){this.authenticated&&this.weatherLocationId?this.activeLocationId=this.weatherLocationId:this.activeLocationId=this.element.data.location_id,this.profileIdWatcher=this.$watch("weatherLocationId",i=>{i&&(this.activeLocationId=this.weatherLocationId,this.profileIdWatcher())},{deep:!0})}},h=window.Vue.renderList,w=window.Vue.Fragment,n=window.Vue.openBlock,o=window.Vue.createElementBlock,_=window.Vue.toDisplayString,e=window.Vue.createElementVNode,c=window.Vue.normalizeClass,L=window.Vue.vModelSelect,f=window.Vue.withDirectives,D=window.Vue.resolveComponent,I=window.Vue.createBlock,g=window.Vue.createCommentVNode,k={class:"element arabella weather"},V={class:"weather__week"},b={class:"weather__week__days weather__slider"},x=["onClick"],C={class:"weather__slider__item__label"},S={class:"weather__slider__item__icon"},z={class:"weather__slider__item__max"},E={class:"weather__slider__item__min"},W={class:"weather__location"},B={class:"weather__location__form"},N={class:"weather__location__form__select-wrapper"},F=["value"],P={class:"weather__day"},T={class:"weather__day__header"},U={class:"weather__day__header__item --description"},H={class:"weather__day__header__label"},M={class:"weather__day__header__description"},G={class:"weather__day__header__item --degree"},q={class:"weather__day__header__degree"},A={class:"weather__day__header__degree__icon"},J={class:"weather__day__header__degree__max"},K={class:"weather__day__header__degree__min"},O={class:"weather__day__header__item --sun-position"},Q={class:"weather__day__header__sun-position"},R={class:"weather__day__header__sun-position__item --sunrise",title:"Sonnenaufgang"},X={class:"weather__day__header__sun-position__time"},Y={class:"weather__day__header__sun-position__item --sunset",title:"Sonnenuntergang"},Z={class:"weather__day__header__sun-position__time"},j={class:"weather__day__detail"},$={class:"weather__day__detail__item --header"},ee={class:"weather__day__detail__time"},te={class:"weather__day__detail__description"},ae={class:"weather__day__detail__item --temperature",title:"Temperatur"},_e={class:"weather__day__detail__label"},ie={class:"weather__day__detail__item",title:"Luftfeuchtigkeit"},se={class:"weather__day__detail__label"},ne={class:"weather__day__detail__item",title:"Luftdruck"},oe={class:"weather__day__detail__label"},de={class:"weather__day__detail__item",title:"Fernsicht"},re={class:"weather__day__detail__label"},ce={class:"weather__day__detail__item",title:"Windrichtung"},le={class:"weather__day__detail__label"},he={class:"weather__day__detail__item",title:"Windgeschwindigkeit"},we={class:"weather__day__detail__label"};function me(i,t,l,ue,r,s){const m=D("SoylentThirdPartyDelivery");return n(),o("div",k,[e("div",V,[e("div",b,[(n(!0),o(w,null,h(s.activeLocationForecastData,(a,d)=>(n(),o("button",{key:"".concat(r.activeLocationId,"_").concat(d),class:c({weather__week__item:1,weather__slider__item:1,"--active":d===r.activeDayIndex}),onClick:ye=>s.setDayIndex(d)},[e("span",C,_(s.getDayLabel(d,!0)),1),e("span",S,[e("em",{class:c("weather-icon wi ".concat(a.icon))},null,2)]),e("span",z,_(a.max_temperature)+"°C",1),e("span",E,_(a.min_temperature)+"°C",1)],10,x))),128))]),e("div",W,[t[2]||(t[2]=e("p",null,"Wählen Sie Ihren Ort",-1)),e("form",B,[e("span",N,[f(e("select",{class:"weather__location__form__select",name:"location","onUpdate:modelValue":t[0]||(t[0]=a=>r.activeLocationId=a)},[(n(!0),o(w,null,h(l.element.data.weather_location_sort,a=>(n(),o("option",{value:a}
1,_(s.getLocationName(a)),9,F))),256))],512),[[L,r.activeLocationId]]),t[1]||(t[1]=e("span",{class:"weather__location__form__expand-icon"},null,-1))])])])]),e("div",P,[e("div",T,[e("div",U,[e("span",H,_(s.getDayLabel(this.activeDayIndex)),1),e("span",M,_(s.activeLocationDayData.description),1)]),e("div",G,[e("div",q,[e("span",A,[e("em",{class:c("weather-icon wi ".concat(s.activeLocationDayData.icon))},null,2)]),e("span",J,_(s.activeLocationDayData.max_temperature)+"°C ",1),e("span",K,_(s.activeLocationDayData.min_temperature)+"°C ",1)])]),e("div",O,[e("div",Q,[e("div",R,[t[3]||(t[3]=e("span",{class:"weather__day__header__sun-position__icon"},[e("em",{class:"weather-icon wi wi-sunrise"})],-1)),e("span",X,_(s.activeLocationDayData.sunrise)+" Uhr ",1)]),e("div",Y,[t[4]||(t[4]=e("span",{class:"weather__day__header__sun-position__icon"},[e("em",{class:"weather-icon wi wi-sunset"})],-1)),e("span",Z,_(s.activeLocationDayData.sunset)+" Uhr ",1)])])]),s.zoneElement?(n(),I(m,{key:0,class:"weather__day__header__item thirdPartyDelivery --medium-rectangle",element:s.zoneElement},null,8,["element"])):g("",!0)]),e("div",j,[(n(!0),o(w,null,h(s.activeLocationHourData,(a,d)=>(n(),o("div",{class:"weather__day__detail__row",key:"".concat(r.activeLocationId,"_hour_").concat(d)},[e("span",$,[e("span",ee,_(a.hour),1),e("span",te,_(a.description),1)]),e("span",ae,[e("em",{class:c("weather__day__detail__icon weather-icon wi ".concat(a.icon))},null,2),e("span",_e,_(a.temperature)+"°",1)]),e("span",ie,[t[5]||(t[5]=e("em",{class:"weather__day__detail__icon weather-icon wi wi-humidity"},null,-1)),e("span",se,_(a.humidity)+"%",1)]),e("span",ne,[t[6]||(t[6]=e("em",{class:"weather__day__detail__icon weather-icon wi wi-barometer"},null,-1)),e("span",oe,_(a.pressure)+" hPa",1)]),e("span",de,[t[7]||(t[7]=e("em",{class:"weather__day__detail__icon weather-icon wi wi-horizon"},null,-1)),e("span",re,_(a.visibility),1)]),e("span",ce,[t[8]||(t[8]=e("em",{class:"weather__day__detail__icon weather-icon wi wi-wind-direction"},null,-1)),e("span",le,_(a.wind_direction),1)]),e("span",he,[t[9]||(t[9]=e("em",{class:"weather__day__detail__icon weather-icon wi wi-strong-wind"},null,-1)),e("span",we,_(a.wind_speed)+" km/h",1)])]))),128))])])])}const Le=u(v,[["render",me]]);export{Le 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.