PageSourceSearch

https://www.ilmatieteenlaitos.fi/v3.0.0/_nuxt/BCXQ5DUQ.js

js ilmatieteenlaitos.fi collected 2026-09-24 08:38:16 UTC 5,822 bytes, 1 lines download raw bytes

1import{d as e,u as l,y as t,c as i,a,n,f as r,t as s,b as o,h as d,w as m,_ as u,o as c,Y as h,k as v,e as f,bR as g,s as p,v as b,a1 as x,x as y,z as w,A as k,B as L,C as I}from"./D8veu8-2.js";import{p as j,a as _}from"./BhELeCin.js";import{a as C}from"./D-KCRpFs.js";import{n as z,b as A}from"./gMNtHMDg.js";import{a as T}from"./DdM9hvf5.js";import{_ as S}from"./CIk0brdg.js";import{_ as q,a as B}from"./X4JOCxm7.js";import{u as D}from"./DQvXguou.js";import"./BKETKPKp.js";const E={class:"flex flex-col justify-center px-12 py-8 text-blueberry"},K={key:0,class:"flex gap-2 pb-2"},M={key:1,class:"flex justify-center"},H={key:0,class:"block w-6 h-6 bg-[url('assets/img/external-window-white.svg')] group-hover:bg-[url('assets/img/external-window-blue.svg')]"},R=["src","alt","lazy-src"],F=e({__name:"SingleItemHighlight",props:{highLightItem:{default:null},darkmode:{type:Boolean},isPinnedArticle:{type:Boolean}},setup(e){const{t:g}=l(),p=e,b=t((()=>{var e,l;const t=z(null!=(l=null==(e=p.highLightItem)?void 0:e.sys.createdAt)?l:"","yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",new Date);return A(t,"d.M.yyyy")})),x=t((()=>{var e,l,t,i,a;let n="",r="",s=!0;const o=p.highLightItem;return o&&"externalLink"in o.fields?(r=null!=(e=o.fields.externalLink)?e:"",s=!1,o.fields.externalLinkText&&(n=o.fields.externalLinkText)):o&&"internalLink"in o.fields?(n=null!=(t=null==(l=o.fields.internalLink)?void 0:l.fields.name)?t:"",r=null!=(a=null==(i=o.fields.internalLink)?void 0:i.fields.path)?a:""):o&&"type"in o.fields&&(n=g("readMore"),r=_(o)),{title:n,href:r,isInternalLink:s}})),y=t((()=>{var e,l,t,i,a,n;const r=null==(l=null==(e=p.highLightItem)?void 0:e.fields)?void 0:l.thumbnail,s=null==(n=null==(a=null==(i=null==(t=null==r?void 0:r.fields)?void 0:t.image)?void 0:i.fields)?void 0:a.file)?void 0:n.url;return s?C(s,1200):{webp:"",fallback:""}})),w=t((()=>{var e,l;return(null==(l=null==(e=p.highLightItem)?void 0:e.fields.thumbnail)?void 0:l.fields.altText)||""}));return(l,t)=>{var p,k,L,I,_;const C=v,z=u;return c(),i("div",{class:n(("cn"in l?l.cn:r(h))("max-w-[100rem] rounded-lg bg-white shadow-lg shadow-blueShadow/30 flex flex-col-reverse md:grid grid-cols-highlightItem overflow-hidden",e.darkmode&&"bg-blueberry"))},[a("div",E,[e.isPinnedArticle&&e.highLightItem&&"type"in e.highLightItem.fields?(c(),i("div",K,[a("div",{class:n(("cn"in l?l.cn:r(h))("text-warmblue font-bold",e.darkmode&&"text-white"))},s(r(j)(e.highLightItem,r(g))),3),a("div",{class:n(("cn"in l?l.cn:r(h))("text-black font-bold",e.darkmode&&"text-white"))},s(r(b)),3)])):o("",!0),a("h2",{class:n(("cn"in l?l.cn:r(h))("pb-5 mt-0",e.darkmode&&"text-white"))},s(null==(k=null==(p=e.highLightItem)?void 0:p.fields)?void 0:k.title),3),r(x).href&&r(x).title?(c(),i("div",M,[d(z,{external:!r(x).isInternalLink,to:r(x).href},{default:m((()=>[d(C,{class:"group text-center px-12",variant:"outline",dark:e.darkmode,size:"lg","aria-label":r(x).isInternalLink?void 0:r(g)("ariaExternalLink")+r(x).title},{default:m((()=>[f(s(r(x).title)+" ",1),r(x).isInternalLink?o("",!0):(c(),i("span",H))])),_:1},8,["dark","aria-label"])])),_:1},8,["external","to"])])):o("",!0)]),a("img",{src:(null==(L=r(y))?void 0:L.webp)||(null==(I=r(y))?void 0:I.fallback),alt:r(w),"lazy-src":null==(_=r(y))?void 0:_.fallback,class:"size-full object-cover md:min-h-[31.25rem] max-h-[37.5rem]"},null,8,R)],2)}}}),N=g("/img/email_big.gif");const P={id:"skip-to-main-content",class:"max-w-[100rem] flex flex-col gap-4"},O={class:"flex flex-col md:flex-row justify-between gap-2"},U={class:"flex gap-2"},Y={class:"md:flex md:items-center"},Z=["aria-label"],G=e({__name:"ajankohtaista",async setup(e){let n,h;const{pinnedArticle:v,recommendedCard:g,themeCard:j,metaDescription:_,metaKeywords:C,suspense:z}=function(){const{isLoading:e,data:l,error:i,suspense:a}=p({queryKey:["newsRoom"],queryFn:()=>b.get("news/newsroom"),staleTime:9e5}),n=t((()=>{var e;return null==(e=l.value)?void 0:e.items[0]}));return{suspense:a,metaKeywords:t((()=>{var e;return null==(e=n.value)?void 0:e.fields.metaKeywords})),metaDescription:t((()=>{var e;return null==(e=n.value)?void 0:e.fields.metaDescription})),pinnedArticle:t((()=>{var e;return null==(e=n.value)?void 0:e.fields.pinnedArticle})),themeCard:t((()=>{var e;return null==(e=n.value)?void 0:e.fields.themeCard})),recommendedCard:t((()=>{var e;return null==(e=n.value)?void 0:e.fields.recommendedCard})),isLoading:e,error:i}}(),{t:A,locale:E}=l(),K=x();[n,h]=y((()=>z())),await n,h();const M=t((()=>{let e="";return C.value&&C.value.forEach((l=>{""!==e&&(e+=","),e+=l})),e})),H=t((()=>{let e="";return _.value&&(e=_.value),e})),R=t((()=>A("currentNews")+" - "+A("copyrightname")));return w(t((()=>({title:R.value,meta:[{name:"keywords",content:M.value},{name:"description",content:H.value},...D({title:R.value,description:H.value,locale:E.value,site_name:A("copyrightname"),stage:"prod",path:decodeURIComponent(K.path)})]})))),k((()=>{L(document),document.title=R.value,I()})),(e,l)=>{const t=u,n=F,h=T,p=S,b=q,x=B;return c(),i("div",P,[a("div",O,[a("h1",null,s(r(A)("currentNews")),1),a("div",U,[l[0]||(l[0]=a("div",{class:"flex justify-center items-center mr-2"},[a("img",{src:N,loading:"lazy",class:"size-7",alt:""})],-1)),a("div",Y,[d(t,{to:r(A)("urlToEmailOrder"),class:"border-b border-turqoiseBlue pb-1 font-bold text-blueberry hover:text-warmblue hover:border-blueberry"},{default:m((()=>[f(s(r(A)("orderEmailFeed")),1)])),_:1},8,["to"])])])]),r(v)?(c(),i("div",{key:0,role:"region","aria-label":r(A)("landmark_newsroom_pinnedItem"),class:"mb-12"},[d(n,{"high-light-item":r(v),"is-pinned-article":!0},null,8,["high-light-item"])],8,Z)):o("",!0),d(h,{"include-filters-and-pagination":"",newsroom:""}),d(p,{"theme-item":r(j)},null,8,["theme-item"]),d(p,{"theme-item":r(g),"white-theme":""},null,8,["theme-item"]),d(b),d(x)])}}});
1export{G 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.