PageSourceSearch

https://napaincu.github.io/_nuxt/YhNf2z4_.js

js napaincu.github.io collected 2026-10-03 09:39:44 UTC 10,872 bytes, 1 lines download raw bytes

1import K from"./ORdspK0P.js";import{_ as W}from"./BMvFWDje.js";import{N as A,m as M,s as Y,_ as J}from"./0bhT0rVF.js";import{e as Q,r as I,f as X,g as Z,h as g,i as F,y as ee,C as te,j as se,c as a,a as l,p as f,t as s,b as n,d,w as b,q as v,F as k,k as E,n as j,o}from"./BwiL4MjS.js";import{u as T}from"./D1E5sCy5.js";import{q}from"./CA9UX039.js";const le={class:"min-h-screen bg-white py-20"},ae={class:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8"},oe={class:"mb-12 text-center"},ne={class:"relative inline-block text-4xl font-bold text-[#004d80] after:mx-auto after:mt-2 after:block after:h-1 after:w-2/3 after:bg-blue-500 after:content-['']"},re={key:0,class:"mb-10 rounded-2xl border border-teal-200 bg-teal-50/50 px-5 py-4 md:px-6"},ie={class:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1"},de={class:"inline-flex items-center gap-1.5 text-sm font-bold text-teal-800"},ce={class:"flex flex-wrap items-center gap-2 text-xs"},ue={class:"text-slate-400"},he={class:"mt-1.5 text-lg font-bold leading-snug text-slate-900 transition group-hover:text-teal-800"},pe={class:"mt-1 line-clamp-1 text-sm text-slate-600"},xe={"data-landmark":"news"},fe=["aria-label"],be=["aria-pressed","onClick"],me={class:"ml-1 tabular-nums"},_e={class:"sr-only",role:"status","aria-live":"polite"},ge={class:"mb-6 flex items-center justify-between gap-4"},ve={class:"border-l-4 border-blue-500 pl-4 text-2xl font-bold text-slate-800"},we=["aria-label"],ye=["aria-label"],ke=["aria-label"],$e={key:0,class:"rounded-xl border border-slate-200 bg-white p-6 text-slate-600"},Ce={key:1,class:"rounded-xl border border-red-200 bg-red-50 p-6 text-red-700"},Ne={key:0,class:"space-y-4"},Ee={class:"flex flex-col p-5 md:p-6"},je={class:"mb-2 flex flex-wrap items-center gap-2 text-xs"},De={key:0,class:"inline-flex items-center gap-1 rounded-md px-2.5 py-1 font-semibold text-slate-900 shadow-sm",style:{"background-color":"#f59e0b !important"}},Le={key:1,class:"inline-flex items-center gap-1 rounded-md bg-rose-100 px-2 py-1 font-semibold text-rose-700"},Se={class:"rounded-md bg-slate-100 px-2 py-1 font-semibold text-slate-700"},Ae={class:"text-slate-400"},Me={key:2,class:"inline-flex items-center gap-1 text-teal-600"},Ie={class:"text-xl font-bold leading-snug text-slate-900 transition group-hover:text-teal-700"},Fe={class:"mt-3 flex items-start justify-between gap-4"},Te={class:"line-clamp-2 flex-1 text-sm leading-relaxed text-slate-600"},qe={key:1,class:"grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3"},Be=["src","alt"],Pe={key:1,class:"flex h-full w-full items-center justify-center bg-gradient-to-br from-slate-200 to-slate-300 text-slate-500"},Ve={class:"flex flex-1 flex-col p-5"},ze={class:"mb-2 flex flex-wrap items-center gap-2 text-xs"},He={key:0,class:"inline-flex items-center gap-1 rounded-md px-2.5 py-1 font-semibold text-slate-900 shadow-sm",style:{"background-color":"#f59e0b !important"}},Ue={key:1,class:"inline-flex items-center gap-1 rounded-md bg-rose-100 px-2 py-1 font-semibold text-rose-700"},Oe={class:"rounded-md bg-slate-100 px-2 py-1 font-semibold text-slate-700"},Re={class:"text-slate-400"},Ge={key:2,class:"inline-flex items-center gap-1 text-teal-600"},Ke={class:"line-clamp-2 min-h-[3.5rem] text-xl font-bold leading-snug text-slate-900 transition group-hover:text-teal-700"},We={class:"mt-2 line-clamp-3 min-h-[5.25rem] text-sm leading-relaxed text-slate-600"},Ye={class:"mt-auto flex justify-end pt-4"},Je={key:3,class:"rounded-xl border border-slate-200 bg-white p-8 text-center text-slate-500"},B="news:viewMode",ot=Q({__name:"index",async setup(Qe){let c,$;const m=I("all"),{t:C,locale:w}=X(),P=Z(),V=g(()=>w.value==="en"?"news_en":"news"),z={application:"bg-sky-100 text-sky-800",developer:"bg-violet-100 text-violet-800",researcher:"bg-emerald-100 text-emerald-800"},D=g(()=>w.value==="en"?"insights_en":"insights"),{data:H}=([c,$]=F(()=>T(()=>`news-insights-${w.value}`,()=>q(D.value).order("date","DESC").all(),{watch:[D]})),c=await c,$(),c),_=g(()=>(H.value??[]).filter(t=>!t.draft)[0]??null),{data:U,pending:O,error:R}=([c,$]=F(()=>T(()=>`news-list-${w.value}`,()=>q(V.value).order("date","DESC").all(),{watch:[w]})),c=await c,$(),c),u=I("detailed");ee(()=>{const t=localStorage.getItem(B);(t==="compact"||t==="detailed")&&(u.value=t)}),te(u,t=>{localStorage.setItem(B,t)});const L=g(()=>(U.value??[]).filter(t=>!t.draft)),G=g(()=>Object.fromEntries(A.map(t=>[t,L.value.filter(p=>M(p,t)).length]))),N=g(()=>Y(L.value.filter(t=>
1M(t,m.value)))),r=t=>t.urlname==="aaic2026"&&!!t.externalLink?.trim(),h=t=>r(t)?t.externalLink.trim():t.path&&t.path.trim()?t.path:t.stem&&t.stem.trim()?`/news/${t.stem.replace(/^news\//,"")}`:"/news",y=t=>t;return se({title:()=>C("news.meta.listTitle"),description:()=>C("news.meta.listDescription")}),(t,p)=>{const i=K,x=W,S=J;return o(),a("section",le,[l("div",ae,[l("div",oe,[l("h1",ne,s(t.$t("news.pageTitle")),1)]),_.value?(o(),a("div",re,[l("div",ie,[l("span",de,[n(i,{name:"heroicons:light-bulb",class:"h-4 w-4"}),d(" "+s(t.$t("insights.sectionHeading")),1)]),n(x,{to:v(P)("/insights"),class:"inline-flex items-center gap-1 text-sm font-semibold text-teal-700 transition hover:text-teal-900"},{default:b(()=>[d(s(t.$t("insights.viewAll"))+" ",1),n(i,{name:"heroicons:arrow-right",class:"h-4 w-4"})]),_:1},8,["to"])]),n(x,{to:_.value.path,class:"group mt-2 block"},{default:b(()=>[l("div",ce,[(o(!0),a(k,null,E(_.value.audiences,e=>(o(),a("span",{key:e,class:j(["rounded-md px-2 py-0.5 font-semibold",z[e]])},s(t.$t(`insights.audiences.${e}`)),3))),128)),l("span",ue,s(y(_.value.date)),1)]),l("h2",he,s(_.value.title),1),l("p",pe,s(_.value.description),1)]),_:1},8,["to"])])):f("",!0),l("section",xe,[l("div",{class:"mb-6 flex flex-wrap gap-2",role:"group","aria-label":t.$t("news.filterLabel")},[(o(!0),a(k,null,E(v(A),e=>(o(),a("button",{key:e,type:"button","aria-pressed":m.value===e,onClick:Xe=>m.value=e,class:j(["min-h-11 rounded-full border px-4 py-2 text-sm font-semibold transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-teal-600",m.value===e?"border-teal-700 bg-teal-700 text-white":"border-slate-200 bg-white text-slate-700 hover:bg-teal-50"])},[d(s(t.$t(`news.filters.${e}`))+" ",1),l("span",me,s(G.value[e]),1)],10,be))),128))],8,fe),l("p",_e,s(t.$t(`news.filters.${m.value}`))+": "+s(N.value.length),1),l("div",ge,[l("h2",ve,s(t.$t("news.listHeading")),1),l("div",{class:"inline-flex items-center rounded-xl border border-slate-300 bg-white p-1.5 shadow-sm",role:"group","aria-label":t.$t("news.viewMode")},[l("button",{type:"button",class:j(["inline-flex h-10 w-10 items-center justify-center rounded-lg transition",u.value==="compact"?"bg-teal-100 text-teal-800 shadow-sm":"text-slate-600 hover:bg-slate-100 hover:text-slate-800"]),"aria-label":t.$t("news.viewCompact"),onClick:p[0]||(p[0]=e=>u.value="compact")},[n(i,{name:"heroicons:list-bullet",class:"h-4 w-4"})],10,ye),l("button",{type:"button",class:j(["inline-flex h-10 w-10 items-center justify-center rounded-lg transition",u.value==="detailed"?"bg-teal-100 text-teal-800 shadow-sm":"text-slate-600 hover:bg-slate-100 hover:text-slate-800"]),"aria-label":t.$t("news.viewDetailed"),onClick:p[1]||(p[1]=e=>u.value="detailed")},[n(i,{name:"heroicons:squares-2x2",class:"h-4 w-4"})],10,ke)],8,we)]),v(O)?(o(),a("div",$e,s(t.$t("news.loading")),1)):v(R)?(o(),a("div",Ce,s(t.$t("news.error")),1)):N.value.length?(o(),a(k,{key:2},[u.value==="compact"?(o(),a("div",Ne,[(o(!0),a(k,null,E(N.value,e=>(o(),a("article",{key:h(e),class:"flex h-full flex-col overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm transition hover:border-slate-300 hover:shadow-md"},[l("div",Ee,[n(S,{item:e,class:"mb-3"},null,8,["item"]),l("div",je,[e.featured?(o(),a("span",De,[n(i,{name:"heroicons:star-solid",class:"h-3.5 w-3.5 text-slate-900"}),d(" "+s(t.$t("news.featured")),1)])):f("",!0),e.videos?.length||e.videoLink?(o(),a("span",Le,[n(i,{name:"heroicons:play-circle-solid",class:"h-3.5 w-3.5"}),d(" "+s(t.$t("news.videoUploaded")),1)])):f("",!0),l("span",Se,s(e.category),1),l("span",Ae,s(`${v(C)("news.published")} ${y(e.date)}`),1),e.updatedAt?(o(),a("span",Me,[n(i,{name:"heroicons:clock",class:"h-3.5 w-3.5"}),d(" "+s(t.$t("news.updatedLabel"))+" "+s(y(e.updatedAt)),1)])):f("",!0)]),n(x,{to:h(e),external:r(e),target:r(e)?"_blank":void 0,rel:r(e)?"noopener noreferrer":void 0,class:"group inline-block"},{default:b(()=>
1[l("h3",Ie,s(e.title),1)]),_:2},1032,["to","external","target","rel"]),l("div",Fe,[l("p",Te,s(e.description),1),n(x,{to:h(e),external:r(e),target:r(e)?"_blank":void 0,rel:r(e)?"noopener noreferrer":void 0,class:"inline-flex shrink-0 items-center text-sm font-semibold text-teal-700 transition hover:text-teal-800"},{default:b(()=>[d(s(t.$t("news.readMore"))+" ",1),n(i,{name:"heroicons:arrow-right",class:"ml-1.5 h-4 w-4"})]),_:1},8,["to","external","target","rel"])])])]))),128))])):(o(),a("div",qe,[(o(!0),a(k,null,E(N.value,e=>(o(),a("article",{key:h(e),class:"overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm transition hover:border-slate-300 hover:shadow-md"},[n(x,{to:h(e),external:r(e),target:r(e)?"_blank":void 0,rel:r(e)?"noopener noreferrer":void 0,class:"flex h-72 items-center justify-center overflow-hidden bg-slate-100"},{default:b(()=>[e.cover?(o(),a("img",{key:0,src:e.cover,alt:e.title,class:"h-full w-full object-contain p-2"},null,8,Be)):(o(),a("div",Pe,[n(i,{name:"heroicons:newspaper",class:"h-12 w-12"})]))]),_:2},1032,["to","external","target","rel"]),l("div",Ve,[n(S,{item:e,class:"mb-3"},null,8,["item"]),l("div",ze,[e.featured?(o(),a("span",He,[n(i,{name:"heroicons:star-solid",class:"h-3.5 w-3.5 text-slate-900"}),d(" "+s(t.$t("news.featured")),1)])):f("",!0),e.videos?.length||e.videoLink?(o(),a("span",Ue,[n(i,{name:"heroicons:play-circle-solid",class:"h-3.5 w-3.5"}),d(" "+s(t.$t("news.videoUploaded")),1)])):f("",!0),l("span",Oe,s(e.category),1),l("span",Re,s(`${v(C)("news.published")} ${y(e.date)}`),1),e.updatedAt?(o(),a("span",Ge,[n(i,{name:"heroicons:clock",class:"h-3.5 w-3.5"}),d(" "+s(t.$t("news.updatedLabel"))+" "+s(y(e.updatedAt)),1)])):f("",!0)]),n(x,{to:h(e),external:r(e),target:r(e)?"_blank":void 0,rel:r(e)?"noopener noreferrer":void 0,class:"group inline-block"},{default:b(()=>
1[l("h3",Ke,s(e.title),1)]),_:2},1032,["to","external","target","rel"]),l("p",We,s(e.description),1),l("div",Ye,[n(x,{to:h(e),external:r(e),target:r(e)?"_blank":void 0,rel:r(e)?"noopener noreferrer":void 0,class:"inline-flex items-center text-sm font-semibold text-teal-700 transition hover:text-teal-800"},{default:b(()=>[d(s(t.$t("news.readMore"))+" ",1),n(i,{name:"heroicons:arrow-right",class:"ml-1.5 h-4 w-4"})]),_:1},8,["to","external","target","rel"])])])]))),128))]))],64)):(o(),a("div",Je,s(t.$t(m.value==="all"?"news.empty":"news.filterEmpty")),1))])])])}}});export{ot 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.