PageSourceSearch

https://www.ruv.is/_next/static/chunks/pages/vedur/spastod/[id]-a23356ee53ce62eb.js

js ruv.is collected 2026-10-01 10:20:30 UTC 5,281 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3995],{28367:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/vedur/spastod/[id]",function(){return a(57323)}])},57323:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>v,default:()=>N});var r=a(6029),i=a(66616),s=a(50212),n=a(26318),o=a(71024),l=a.n(o),c=a(81278),d=a(55729),u=a(63787),m=a(32014),f=a(83210),g=a(52797),h=a(6797),x=a.n(h);let p=l()(()=>Promise.all([a.e(7229),a.e(6593),a.e(3876),a.e(362),a.e(459),a.e(4628),a.e(151),a.e(8628),a.e(4822)]).then(a.bind(a,44822)).then(e=>e.StationWeatherComponent),{loadableGenerated:{webpack:()=>[44822]},ssr:!1});var v=!0;let N=e=>{let t=(0,c.useRouter)(),[a,o]=(0,d.useState)(),[l,h]=(0,d.useState)(!1),[v,N]=(0,d.useState)(!1),w=(0,d.useRef)(null),j=e.data?.article,_=j?.body;_=_?.filter((e,t)=>"player_block"!==e.block_type||0!==t);let D=(0,i.Zu)(j?.color||"#0073A0");if((0,d.useEffect)(()=>{let a=()=>{N(!0),o(void 0)},r=()=>N(!1),i=async()=>{if(e.id===w.current)return;w.current=e.id;let t=await (0,u.Ae)(e.id),a=t&&"LOADING"!==t&&"NOT FOUND"!==t;t&&a&&!t.error&&o(t),("NOT FOUND"===t||"LOADING"!==t&&t?.error)&&h(!0)};return e.stationPageData&&"LOADING"!==e.stationPageData&&"NOT FOUND"!==e.stationPageData&&e.stationPageData.station?.id&&(e.stationPageData.station.id.toString()===e.id?(o(e.stationPageData),w.current=e.id):i()),("NOT FOUND"===e.stationPageData||"LOADING"!==e.stationPageData&&e.stationPageData?.error)&&h(!0),t.events.on("routeChangeStart",a),t.events.on("routeChangeComplete",r),t.events.on("routeChangeError",r),()=>{t.events.off("routeChangeStart",a),t.events.off("routeChangeComplete",r),t.events.off("routeChangeError",r)}},[e.id,e.stationPageData,t]),!e.data||t.isFallback)return(0,r.jsx)("div",{className:"z-1 flex min-h-screen w-full flex-col items-center gap-5 md:m-
1auto"});let b=e.weatherDescription&&e.correctData?e.weatherDescription:a?(e=>{if(!e.station?.observation)return;let t=e.station.observation,a=0>Math.sign(t?.temperature||0),r=`${x()((0,m.ql)(t?.wind_direction))} ${t?.wind_speed}. ${t?.weather_description?t?.weather_description+", ":""}${a?"Frost":"Hiti"} ${Math.abs(t?.temperature)?.toFixed(0).toString().replace(".",",")||""} stig${t?.precipitation||t?.precipitation===0?`, \xfarkoma ${t?.precipitation} millimetrar.`:"."}`;return`Ve\xf0ur. ${e.station?.name} ${f.Ys.tz(t?.time).locale("is").format("D. MMMM [kl.] HH:mm")}. ${r}`})(a)??"Ve\xf0ursp\xe1 og ve\xf0urfr\xe9ttir \xe1 R\xdaV.is":"Ve\xf0ursp\xe1 og ve\xf0urfr\xe9ttir \xe1 R\xdaV.is",O=e.weatherPageTitle&&e.correctData?e.weatherPageTitle:a&&a.station&&a.station.name?`Ve\xf0ursp\xe1: ${a.station.name} – R\xdaV.is`:"Ve\xf0ursp\xe1 – R\xdaV.is";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.HeadWithMetaDataRest,{color:"ruvOhf",description:b,title:O,twitterSite:"@RUVfrettir",section:"Ve\xf0ur",imageUrl:j?.main_image?.renditions?.social?.src||j?.main_image?.renditions?.large?.src||j?.main_image?.original_url,url:a?.station?.id?`/vedur/spastod/${a.station.id}`:"/vedur"}),(0,r.jsxs)("main",{className:"z-1 mx-auto mt-6 flex min-h-screen w-full flex-col items-center gap-5",id:"main",children:["NOT FOUND"===e.stationPageData?(0,r.jsxs)("section",{className:"lg:w-container-lg m-auto flex max-w-90 flex-col justify-center text-center",children:[(0,r.jsx)("div",{className:"image",children:(0,r.jsx)("img",{alt:"Vindur",src:`${g.$W.staticImageUrl}/weather-icons/34a_thunder_rainSnowHail-512.png`,className:"m-auto w-44"})}),(0,r.jsxs)("div",{className:"message mt-8",children:[(0,r.jsx)("h2",{className:"mt-0 text-2xl md:text-4xl",children:"N\xfa er foki\xf0 \xed flest skj\xf3l!"}),(0,r.jsx)("p",{className:"font-real text-lg",children:"\xdeessi ve\xf0urst\xf6\xf0 finnst ekki."}),(0,r.jsx)("a",{href:"/vedur",className:(0,s.A)("bg-ruvOhf border-ruvOhf font-real hover:text-ruvOhf my-8 block","justify-self-center rounded-full border px-4 py-2 text-lg text-white","transition-all hover:bg-white hover:no-underline"),children:"Til baka \xed yfirlit"})]})]}):!a&&e.stationPageData.error||a?.error?(0,r.jsxs)("section",{className:"lg:w-container-lg m-auto flex max-w-90 flex-col justify-center text-center",children:[(0,r.jsx)("div",{className:"image",children:(0,r.jsx)("img",{alt:"Vindur",src:`${g.$W.staticImageUrl}/weather-icons/36a_Tropical_Storm-512.png`,className:"m-auto w-44"})}),(0,r.jsxs)("div",{className:"message mt-8",children:[(0,r.jsx)("h2",{className:"mt-0 text-2xl md:text-4xl",children:"Saman liggja ve\xf0ur og \xf3ve\xf0ur"}),(0,r.jsx)("p",{className:"font-real text-lg",children:"Eitthva\xf0 hefur fari\xf0 \xfarskei\xf0is og engin skeyti b\xe1rust fr\xe1 vef\xfej\xf3ni."}),(0,r.jsx)("a",{href:"/vedur",className:(0,s.A)("bg-ruvOhf border-ruvOhf font-real hover:text-ruvOhf my-8 block","justify-self-center rounded-full border px-4 py-2 text-lg text-white","transition-all hover:bg-white hover:no-underline"),children:"Til baka \xed yfirlit"})]})]}):v||!a?(0,r.jsx)("div",{className:"z-1 flex min-h-screen w-full flex-col items-center justify-center gap-5 md:m-
1auto"}):t.isReady&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(p,{router:t,stationData:a,loaded:l,setLoaded:h},a.station?.id)}),l&&_?(0,r.jsx)(n.IndexPageRest,{body:_,color:D}):(0,r.jsx)(r.Fragment,{})]})]})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=28367)),_N_E=e.O()}]);

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.