1import{h as v}from"./moment-a9aaa855.js";import{_ as f,G as N,m as b,p as c,k,x as m,q as x,r as y,o as d,c as _,b as s,f as n,t as i,F as C,l as Y,d as M,s as D}from"./index-b0eff4fc.js";const L="/en/assets/bg3-77658ab3.png";const $={class:"comtainer"},F={class:"banner flex-center"},V={class:"banner-container"},B={class:"date"},q={class:"text"},R={class:"content"},j={class:"news-list"},E=["onClick"],G={class:"title pointer"},I=["href"],O={class:"date"},P={class:"text"},S={class:"pagination-container flex-center"},U={__name:"Newslist",setup(z){N();let w=b(),r=c(1);c("first");let l=k({state:[],topNews:{}}),p=c(10);const u=t=>{let a=t.id,o=t.title,e=t.title.indexOf("(");e!==-1?(o="",o=t.title.substring(0,e).toLowerCase().replace(/\s+/g,"-").replace(/\[\]/g,"")+t.title.substring(e).replace(/\s+/g,"")):o=o.toLowerCase().replace(/\s+/g,"-"),w.push({path:`/news/detail/${o}`,query:{id:a}})},h=m("$axios"),g=()=>{try{h.get(`/api/uniapi/newsdata?page=${r.value}`).then(t=>{var a,o;l.state=(a=t==null?void 0:t.data)==null?void 0:a.data,l.topNews=t==null?void 0:t.topNews,p.value=(o=t==null?void 0:t.data)==null?void 0:o.total}).catch(t=>{console.log("err",t)})}catch(t){console.log("err",t)}};return x(()=>{g()}),(t,a)=>{const o=y("el-pagination");return d(),_("div",$,[s("div",F,[a[2]||(a[2]=s("img",{src:L,alt:""},null,-1)),s("div",V,[s("div",{class:"title pointer",onClick:a[0]||(a[0]=e=>u(n(l).topNews))},i(n(l).topNews.title),1),s("div",B,i(n(v)(n(l).topNews.created_at).format("MMM DD, YYYY [by VariFlight News]")),1),s("div",q,i(n(l).topNews.summary),1)])]),s("div",R,[a[3]||(a[3]=s("div",{class:"section-title"},"Company news",-1)),s("div",j,[(d(!0),_(C,null,Y(n(l).state,e=>(d(),_("div",{class:"news",key:e.id,onClick:A=>u(e)},[s("div",G,[s("a",{style:{color:"#0b173d"},href:e.link,target:"_blank"},i(e.title),9,I)]),s("div",O,i(n(v)(e.created_at).format("MMM DD, YYYY [by VariFlight News]")),1),s("div",P,i(e.summary),1)],8,E))),128))]),s("div",S,[M(o,{"current-page":n(r),"onUpdate:currentPage":a[1]||(a[1]=e=>D(r)?r.value=e:r=e),background:t.background,layout:"prev, pager, next",total:n(p),onCurrentChange:g},null,8,["current-page","background","total"])])])])}}},K=f(U,[["__scopeId","data-v-ba055504"]]);export{K 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.