PageSourceSearch

https://kuubi.fi/_nuxt/CNb0k-px.js

js kuubi.fi collected 2026-10-06 21:31:28 UTC 2,693 bytes, 1 lines download raw bytes

1import{c as L,v as N,X as A,Z as x,C as a,i,f as e,x as _,L as l,F as V,G as E,m as h,E as v,J as G,Y as K,h as M,K as m,b as P}from"./DHfWl2gh.js";import{_ as S}from"./gbMkq510.js";const W={class:"blogs fulli"},j={class:"container"},z={class:"row pb-2 px-4 pb-md-5"},H={class:"row mt-5 pt-5 gx-sm-0 gx-md-5 justify-content-center"},J={class:"col-12 col-sm-6 blog mb-md-5 reveal"},O=["src"],R={class:"blog-filter"},T={class:"texts"},U={class:"blog-title"},X={key:1,class:"col-12 loading text-center"},Y={__name:"BlogIndex",props:{blok:Object},async setup(f){let d,g;const k=N(),c=v("all"),r=([d,g]=A(()=>k.get("cdn/stories",{version:"published",per_page:"100",starts_with:"ajankohtaista",content_type:"article",sort_by:"content.Publish_date:desc"})),d=await d,g(),d),y=r.data.stories.filter(t=>t.content.post_type==="blogi"),w=r.data.stories.filter(t=>t.content.post_type==="webinaarit"),C=r.data.stories.filter(t=>t.content.post_type==="uutiset"),p=v(!1),o=v([]);o.value=r.data.stories;function B(t,n){return Math.floor(Math.random()*(n-t+1))+t}function $(t){return t.filename?t.filename:t}const u=t=>{if(c.value=t,p.value=!0,setTimeout(()=>{p.value=!1},B(100,400)),t==="blogs"){o.value=y;return}if(t==="webinars"){o.value=w;return}if(t==="news"){o.value=C;return}o.value=r.data.stories},D=t=>new Date(t).toLocaleDateString("fi-FI",{year:"numeric",month:"numeric",day:"numeric"});return(t,n)=>{const F=P,I=S,b=G("editable");return x((a(),i("div",W,[x((a(),i("div",j,[e("div",z,[e("div",{class:"col-6 col-md-3",onClick:n[0]||(n[0]=s=>u("all"))},[e("h1",{class:_(["text-center text-uppercase",l(c)==="all"?"active":""])},"Kaikki",2)]),e("div",{class:"col-6 col-md-3",onClick:n[1]||(n[1]=s=>u("blogs"))},[e("h2",{class:_(["text-center text-uppercase",l(c)==="blogs"?"active":""])},"Blogit",2)]),e("div",{class:"col-6 col-md-3",onClick:n[2]||(n[2]=s=>u("webinars"))},[e("h2",{class:_(["text-center text-uppercase",l(c)==="webinars"?"active":""])},"Webinaarit",2)]),e("div",{class:"col-6 col-md-3",onClick:n[3]||(n[3]=s=>u("news"))},[e("h2",{class:_(["text-center text-uppercase",l(c)==="news"?"active":""])},"Uutiset",2)])]),e("div",H,[l(p)?(a(),i("div",X,[h(I,{color:"black-dots"})])):(a(!0),i(V,{key:0},E(l(o),s=>(a(),i("div",J,[h(F,{to:`/${s.full_slug}`,class:"link-unstyled"},{default:K(()=>[s.content.article_img?(a(),i("img",{key:0,class:"blog-img",src:`${$(s.content.article_img)}/m/`},null,8,O)):M("",!0),e("h3",R,m(s.content.post_type),1),e("div",T,[e("p",null,m(s.content.Author)+" // "+m(D(s.content.Publish_date)),1),e("h4",U,m(s.content.Heading),1)])]),_:2},1032,["to"])]))),256))])])),[[b,f.blok]])])),[[b,f.blok]])}}},Q=L(Y,[["__scopeId","data-v-0a0aabf0"]]);export{Q 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.