1import{_ as b}from"./PXjWntUA.js";import{_ as E}from"./Dzyvcplq.js";import{_ as M}from"./CQgPAgBs.js";import{u as F,_ as x}from"./CtB5Z84Q.js";import{a as B}from"./BtCCwW_o.js";import{c as D,d as L}from"./CtwLZcLN.js";import{g as P}from"./CWPJTdx4.js";import{u as S}from"./CwgQ27b-.js";import{a6 as z,H as g,N as J,G as r,R as t,W as N,u as a,C as w,E as m,X as u,F as T,Y as U,a8 as V,U as _}from"./Ck-Sb0JD.js";import{C as y}from"./ylO6s3A5.js";import"./DlAUqK2U.js";import"./DBpHvrME.js";const G={class:"mod-banner"},I={class:"txt xyCenter"},O={key:0,class:"zh Jdh"},R={class:"mod-news Jdh"},H=["onClick"],W=["src","alt"],X={class:"thumb-r"},Y={class:"MultiLine EASE"},j=["href"],q={key:0,class:"desc MultiLine"},A={class:"meta"},K={class:"time"},ds={__name:"index",async setup(Q){var f;let i,p;const{locale:l,t:h}=B();F({title:y.seo.news.t(h)||"",description:y.seo.news.d(h)||""});const{data:e}=([i,p]=z(()=>D("news",s=>{var c;const o=((c=s==null?void 0:s.ssrContext)==null?void 0:c.url)||"",d=P(o);return L(`/api/news/list?limit=10&page=${d.p||1}`)})),i=await i,p(),i),v=(s,o)=>{s&&(s.match(/^http/)||(s="/"+l.value+s),window.open(s))};return(f=e==null?void 0:e.value)!=null&&f.page&&(e.value.page.prefix="/news"),(s,o)=>{const d=b,c=E,k=M,$=x;return r(),g($,null,{default:J(()=>{var C;return[t("div",{class:N(["pg-news",{EN:a(l)==="en"}])},[t("div",G,[t("div",I,[a(l)==="zh"?(r(),m("p",O,"æ°é»å¨æ")):u("",!0),o[1]||(o[1]=t("p",{class:"en Jdh"},"News",-1))])]),t("div",R,[!a(e)||!a(e).results||!a(e).results.length?(r(),g(d,{key:0})):u("",!0),(r(!0),m(T,null,U((C=a(e))==null?void 0:C.results,n=>(r(),m("div",{class:"news-item",key:n.id,onClick:Z=>v(`${n.url}`,!0)},[t("img",{src:n.cover,alt:n.title,class:"thumb"},null,8,W),t("div",X,[t("h3",Y,[t("a",{href:`${n.url}`,rel:"nofollow",class:"EASE",target:"_blank",onClick:o[0]||(o[0]=V(()=>{},["stop"]))},_(n.title),9,j)]),a(l)==="zh"?(r(),m("div",q,_(n.summary),1)):u("",!0),t("div",A,[o[2]||(o[2]=t("i",{class:"ICO"},null,-1)),t("span",K,_(s.$t("homePublishTime"))+_(("useFormatDate"in s?s.useFormatDate:a(S))(n.publishTime,"yyyy/MM/dd")),1)])])],8,H))),128))]),w(c,{data:a(e).page},null,8,["data"]),w(k)],2)]}),_:1})}}};export{ds 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.