import{_ as w}from"./pQrl-3lb.js";import{_ as x}from"./C8e4DHc9.js";import{_ as D,r as h,g as t,l as r,d as l,f as e,t as a,e as d,w as f,F as k,h as A,k as L}from"./CbO2oY48.js";import{u as B}from"./Dsf1ir7F.js";import"./B4b8M273.js";import"./CraZ9g8G.js";import"./DSRStgRO.js";import"./DXi3Lv-Q.js";import"./CwKyeEKj.js";import"./NBejj7rR.js";import"./DX2ItqPB.js";const E={key:0,class:"wait"},I={key:1,class:"rolling-event"},N={class:"main flex"},S={class:"date"},$={class:"hour"},b={class:"day"},j={class:"mainArticle article",left:"false"},z=["src","alt"],F={class:"article-content--title"},M={class:"article-content--title2"},V={class:"article-content--short"},q={class:"date"},C={class:"hour"},H={class:"day"},O={__name:"rollingEvent",props:["items"],setup(v){const _=v,m=h([]),s=h({}),g=()=>{L.postjson("/api/NewAPI/itemsByIDsList",{itemss:_.items}).then(o=>{const i=_.items.split(",")[0];m.value=o.filter(n=>n.id!=i),s.value=o.filter(n=>n.id==i)[0]})},{error:P,pending:y}=B(g,{lazy:!0},"$1DSOeqiE1M"),p=o=>{const i=new Date(o);return i.getHours()+":"+i.getMinutes()},u=o=>new Date(o).toLocaleDateString();return(o,i)=>{const n=w;return t(y)?(r(),l("div",E)):(r(),l("div",I,[e("div",N,[e("div",S,[e("div",$,a(p(t(s).date)),1),e("div",b,a(u(t(s).date)),1)]),e("article",j,[d(n,{to:`/news/${t(s).id}`,class:"article-img"},{default:f(()=>[e("img",{src:`/files/pictures/000/${t(s).largeImage}.jpg`,loading:"lazy",alt:t(s).imageDesc,style:{"background-color":"silver"}},null,8,z)]),_:1},8,["to"]),d(n,{to:`/news/${t(s).id}`,class:"article-content"},{default:f(()=>[e("div",F,a(t(s).title),1),e("div",M,a(t(s).title2),1),e("div",V,a(t(s).shortnews),1)]),_:1},8,["to"])])]),(r(!0),l(k,null,A(t(m),c=>(r(),l("div",{key:c.id,class:"flex"},[e("div",q,[e("div",C,a(p(c.date)),1),e("div",H,a(u(c.date)),1)]),d(t(x),{post:c,"component-name":"SnippetArticleLevel2"},null,8,["post"])]))),128))]))}}},tt=D(O,[["__scopeId","data-v-cbd1f515"]]);export{tt as default};