PageSourceSearch

https://asiatischehornisse.ch/assets/News-Dp4QjS8X.js

js asiatischehornisse.ch collected 2026-10-07 00:08:57 UTC 3,033 bytes, 1 lines download raw bytes

1import{S as L}from"./StaticPageLayout-Blu-Bu9R.js";import{c as D,aX as I,ai as $,k as E,w as x,g as s,J as b,bK as T,e as g,cB as U,M as m,H as V,I as R,h as n,t as u,d8 as j,ae as z,E as H,ao as M,ah as F,aV as J,o as _,ac as K}from"./index-CYJxTLhB.js";import{u as X}from"./directus-BMwM1Drm.js";import{u as q,a as A,b as G,c as O}from"./static-C0XARS4A.js";import{E as Q}from"./index-cXv0Sowi.js";import"./StaticPageFooter-Q5A9DYc1.js";const W={key:0,class:"layout content min-h-[400px]"},Y={key:1,class:"layout content"},Z={class:"grid grid-cols-[188px_1fr] gap-x-[15px] mb-[45px]"},tt=["src"],et={class:"grid grid-rows-[180px_32px]"},at={class:"texte-1-lines font-bold text-lg mb-[6px]"},st={class:"texte-1-lines font-bold mb-[6px]"},nt={class:"texte-1-lines text-xs mb-[12px]"},ot={class:"texte-2-lines text-sm"},y=10,it=D({__name:"News",setup(lt){const N="https://neovelutina-cms.infofauna.ch/",{changePage:P,loading:v}=q(S);I("meta.news.title","meta.news.description","/news");const{locale:f,t:w}=$({useScope:"global"}),B=J(),c=X(),i=b(1),h=b(0);async function S(l){if(h.value===0&&(h.value=await A()),c.getNewsByLang(l,i.value))return;const a=(await G(l,y,i.value)).data,p=[];for(let e=0;e<a.length;e++){let t=c.getUsers.find(d=>d.id===a[e].user_created);t||(t=(await O(a[e].user_created)).data,c.setUsers({id:a[e].user_created,first_name:(t==null?void 0:t.first_name)||"",last_name:(t==null?void 0:t.last_name)||""})),p.push({id:a[e].id,title:a[e].news_translations[0].title,subtitle:a[e].news_translations[0].subtitle,abstract:a[e].news_translations[0].abstract,content:a[e].news_translations[0].content,date:a[e].publication_date,author:`${t==null?void 0:t.first_name} ${t==null?void 0:t.last_name}`,image:`${N}assets/${a[e].image}`})}c.setNewsPageItems(l,i.value,p)}function k(l){var r;B.push(`/news/${(r=c.getNewsByLang(f.value,i.value))==null?void 0:r.news[l].id}`)}return(l,r)=>{const a=H,p=F,e=Q,t=U;return _(),E(L,{title:s(w)("static.newsTitle"),headline:s(w)("static.newsSubtitle"),"button-text":s(w)("footer.signNewletter")},{default:x(()=>{var d;return[s(v)?T((_(),g("div",W,null,512)),[[t,s(v)]]):(_(),g("div",Y,[(_(!0),g(V,null,R((d=s(c).getNewsByLang(s(f),i.value))==null?void 0:d.news,(o,C)=>(_(),g("div",null,[n("div",Z,[n("img",{class:"image",src:o.image},null,8,tt),n("div",et,[n("div",null,[n("p",at,u(o.title),1),n("p",st,u(o.subtitle),1),n("p",nt,"par "+u(o.author)+" le "+u(s(j)(new Date(o.date),s(f))),1),n("p",ot,u(o.abstract),1)]),n("div",null,[m(p,{type:"primary",plain:"",onClick:ct=>k(C)},{default:x(()=>[z(u(l.$t("static.readNews")),1),m(a,{class:"el-icon--right"},{default:x(()=>[m(s(M))]),_:1})]),_:1},8,["onClick"])])])])]))),256)),m(e,{class:"justify-end","current-page":i.value,"onUpdate:currentPage":r[0]||(r[0]=o=>i.value=o),"page-size":y,layout:"total, prev, pager, next, jumper",total:h.value,onCurrentChange:s(P)},null,8,["current-page","total","onCurrentChange"])]))]}),_:1},8,["title","headline","button-text"])}}}),mt=K(it,[["__scopeId","data-v-541ff2a6"]]);export{mt 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.