1!function(){"use strict";window.locationWidget={geoId:0,countryCode:"",elements:[],hasInit:!1,init(e,s){if(!this.hasInit)return this.elements=[...document.querySelectorAll(".location-widget")],this.geoId=e,this.countryCode=s,this.hasInit=!0,this.load()},load(){return fetch(`${wpApiUrl}/api/meteo/homewidget/?geoId=${this.geoId}`).then((e=>e.json())).then((e=>{for(let s of this.elements)this.update(s,e)}))},update(e,s){if(!s)throw new Error("Data is missing");const t=e.querySelector(".btn-splash .text");t&&(t.innerHTML=s.splash.text);const n=e.querySelector(".splash-text");n&&(n.innerHTML=s.splash.text);const r=e.querySelector(".splash-bg");r?.classList.add("bg-"+s.splash.color.toLowerCase()),r?.classList.remove("hidden");const i=e.querySelector(".btn-flash .text");i&&(i.innerHTML=s.flash.text);const a=e.querySelector(".flash-text");a&&(a.innerHTML=s.flash.text);const o=e.querySelector(".flash-bg");o?.classList.add("bg-"+s.flash.color.toLowerCase()),o?.classList.remove("hidden");const l=e.querySelector(".weather .type");l&&(l.innerHTML="",s.Obs.WXCO_EXTENDED?l.insertAdjacentHTML("beforeend",`<div class="geo-${this.geoId} wx wx-b60" style="background-image: url('https://icons.weerplaza.nl/extended/normal/${s.Obs.WXCO_EXTENDED}_LB.svg" title="${s.Obs.WXCO_EXTENDED_TEXT}"></div>`):s.Obs.WXCO&&l.insertAdjacentHTML("beforeend",`<div class="geo-${this.geoId} wx wx-b60" style="background-image: url('https://icons.weerplaza.nl/shortlist/normal/${s.Obs.WXCO}.svg')" title="${s.Obs.WXCO_TEXT}"></div>`),null!==s.Obs.TTTT&&l.insertAdjacentHTML("beforeend",'<span class="geo-'+this.geoId+' temp">'+parseInt(s.Obs.TTTT)+"°</span>"));const c=e.querySelector(".rating");c&&(c.innerHTML="",s.Obs.WXNUM&&(c.insertAdjacentHTML("beforeend",'<span class="weather-rating large r-'+s.Obs.WXNUM+'" onclick="modal.show(\'#weather-rating\')">'+s.Obs.WXNUM+"</span>"),c.insertAdjacentHTML("beforeend","<a href=\"javascript:modal.show('#weather-rating')\">Weercijfer</a>")));const d=e.querySelector(".rain");d&&(s.Obs.RRRR?(d.innerHTML=`Neerslag: <em>${s.Obs.RRRR} mm</em>`,d.classList.remove("hidden")):d.classList.add("hidden"));const h=e.querySelector(".humidity");h&&(s.Obs.RHRH?(h.innerHTML=`Vochtigheid: <em>${s.Obs.RHRH}%</em>`,h.classList.remove("hidden")):h.classList.add("hidden"));const g=e.querySelector(".wind");g&&(s.Obs.DDDD&&s.Obs.FFFF?(g.innerHTML=`Wind: <em>${s.Obs.DDDD} ${s.Obs.FFFF}</em>`,g.classList.remove("hidden")):g.classList.add("hidden"));const b=e.querySelector(".pressure");if(b&&(s.Obs.PPPP||(b.innerHTML=""),b.innerHTML=`Druk: <em>${s.Obs.PPPP} hPa</em>`),"undefined"!=typeof newsWarning&&"NL"===this.countryCode){const t=e.querySelector(".warning-text"),n=e.querySelector(".warning-bg");t&&n&&(t.innerHTML=s.warning.title,n.classList.add("bg-"+s.warning.color.toLowerCase()),n.classList.remove("hidden"))}const L=e.querySelector(".meteo-warning-block");if(null!==s.MeteoWarning){L.innerHTML=`<a target="${target}" href="/waarschuwing?geoId=${this.geoId}" class="btn warning warning-small warning-bg bg-${s.meteoWarning.color}"></a>`;const e=L.querySelector("a");e.insertAdjacentHTML("beforeend",'<div class="icon"><i class="fa fa-warning"></i></div>'),e.insertAdjacentHTML("beforeend",'<div class="description"></div>');const t=L.querySelector(".description");t.insertAdjacentHTML("beforeend",'<span class="block-title">WAARSCHUWING</span>'),t.insertAdjacentHTML("beforeend",`<span class="text truncate">${s.meteoWarning.title}</span>`),e.insertAdjacentHTML("beforeend",'<i class="fa fa-chevron-right"></i>')}else L.classList.remove("hidden")}}}();//# sourceMappingURL=SnippetLocationWidget.min.js.map
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.