1import K from"./ORdspK0P.js";import{_ as G}from"./BMvFWDje.js";import{_ as J,i as Q,a as b}from"./0bhT0rVF.js";import{_ as W}from"./BIbpa7II.js";import{e as X,O as Z,f as ee,g as te,h as m,i as V,r as A,y as se,K as B,C as oe,N as ne,j as ae,u as re,c as r,p as c,q as e,F as g,a as s,b as d,w as D,t as n,d as _,k as v,o as a,n as le,x as ie}from"./BwiL4MjS.js";import{u as S}from"./D1E5sCy5.js";import{q as F}from"./CA9UX039.js";import{_ as ce}from"./DlAUqK2U.js";const de={class:"min-h-screen bg-slate-50"},ue={class:"border-b border-slate-200 bg-white"},he={class:"mx-auto max-w-7xl px-4 py-10 sm:px-6 lg:px-8 lg:py-14"},pe={class:"mt-6 flex flex-wrap items-center gap-2 text-sm"},me={class:"rounded-md bg-teal-100 px-2.5 py-1 font-semibold text-teal-800"},_e={class:"text-slate-500"},xe={key:0,class:"inline-flex items-center gap-1 text-teal-600"},ge={key:0,class:"mt-4 rounded-lg bg-slate-100 p-3 text-sm text-slate-600"},we={class:"mt-4 max-w-5xl text-3xl/[1.35] font-bold text-slate-900 md:text-4xl/[1.35] lg:text-[2.75rem]/[1.35]"},fe={class:"mt-5 max-w-3xl text-lg leading-relaxed text-slate-600"},be={key:1,class:"mt-5 flex flex-wrap gap-2"},ve={class:"mx-auto flex max-w-7xl gap-10 px-4 py-12 sm:px-6 lg:px-8"},ye={key:0,class:"hidden w-56 shrink-0 lg:block"},ke=["aria-label"],$e={class:"mb-3 text-xs font-semibold uppercase tracking-wider text-slate-400"},Le={class:"space-y-1 border-l border-slate-200"},Te=["href","aria-current"],Ne=["src","alt"],Ee={class:"news-content max-w-none"},Ce={key:1,class:"mt-10 border-t border-slate-100 pt-6"},qe={class:"mb-4 text-xl font-bold text-slate-900"},Ie={class:"space-y-8"},Ue={key:0,class:"mb-2 text-sm font-semibold text-slate-600"},Ve={class:"overflow-hidden rounded-xl border border-slate-200 bg-slate-100"},Ae=["src","title"],Be=["href"],De={class:"hidden w-64 shrink-0 xl:block"},Se={class:"sticky top-24 space-y-6"},Fe={class:"rounded-2xl border border-slate-200 bg-white p-5"},Re={class:"mb-4 text-xs font-semibold uppercase tracking-wider text-slate-400"},je={class:"space-y-3 text-sm"},Oe={class:"flex items-start gap-2"},Pe={class:"text-slate-700"},ze={key:0,class:"mt-5 space-y-2 border-t border-slate-100 pt-5"},Me=["href"],Ye=["href"],He={key:0,class:"mx-auto max-w-7xl px-4 pb-12 sm:px-6 lg:px-8 xl:hidden"},Ke={class:"flex flex-wrap gap-3"},Ge=["href"],Je=["href"],Qe={key:1,class:"border-t border-slate-200 bg-white py-14"},We={class:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8"},Xe={class:"mb-6 text-xl font-bold text-slate-900"},Ze={class:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3"},et={class:"mb-2 flex items-center gap-2 text-xs"},tt={class:"rounded bg-teal-100 px-1.5 py-0.5 font-semibold text-teal-800"},st={class:"text-slate-400"},ot={class:"font-bold leading-snug text-slate-900 transition-colors group-hover:text-teal-700"},nt={class:"mt-2 line-clamp-3 text-sm leading-relaxed text-slate-600"},at={key:1,class:"mx-auto max-w-3xl px-4 py-20 text-center text-slate-600 sm:px-6 lg:px-8"},rt=96,lt=X({__name:"[...slug]",async setup(it){let u,w;const h=Z(),{t:f,locale:R}=ee(),j=te(),y=m(()=>R.value==="en"?"news_en":"news"),{data:t,pending:O}=([u,w]=V(()=>S(()=>`news-${h.path}`,()=>F(y.value).path(h.path).first(),{watch:[()=>h.path]})),u=await u,w(),u),{data:P}=([u,w]=V(()=>S(()=>`news-more-${h.path}`,()=>F(y.value).order("date","DESC").limit(4).all(),{watch:[()=>h.path,y]})),u=await u,w(),u),L=m(()=>(P.value??[]).filter(o=>!o.draft&&o.path!==h.path).slice(0,3)),T=m(()=>t.value?.body?.toc?.links??[]),N=A(null),k=A(null);function x(){const o=N.value?.querySelectorAll("h2[id]");if(!o?.length)return;let p=o[0].id;for(const i of o)i.getBoundingClientRect().top<=rt&&(p=i.id);k.value=p}se(async()=>{await B(),x(),window.addEventListener("scroll",x,{passive:!0}),window.addEventListener("resize",x)}),oe(()=>h.path,async()=>{await B(),x()}),ne(()=>{window.removeEventListener("scroll",x),window.removeEventListener("resize",x)});const E=m(()=>`https://napaincu.github.io${h.path}`),z=m(()=>f("project.shortName")),M=m(()=>f("news.meta.listTitle")),C=m(()=>f("news.meta.listDescription"));ae({title:()=>t.value?`${t.value.title} - ${z.value}
1`:M.value,description:()=>t.value?.description??C.value,ogTitle:()=>t.value?.title??f("news.pageTitle"),ogDescription:()=>t.value?.description??C.value,ogImage:()=>t.value?.cover,ogUrl:()=>E.value}),re({link:[{rel:"canonical",href:E.value}]});const $=m(()=>{const o=t.value?.videos;return o?.length?o:t.value?.videoLink?[t.value.videoLink]:[]}),q=o=>{if(!o)return null;try{const p=new URL(o);if(p.hostname.includes("youtube.com")){const i=p.searchParams.get("v");if(i)return`https://www.youtube.com/embed/${i}`}if(p.hostname.includes("youtu.be")){const i=p.pathname.replace(/^\/+/,"");if(i)return`https://www.youtube.com/embed/${i}`}}catch{return null}return null};return(o,p)=>{const i=K,I=G,U=J,Y=W;return a(),r("div",de,[e(t)?(a(),r(g,{key:0},[s("header",ue,[s("div",he,[d(I,{to:e(j)("/news"),class:"inline-flex items-center gap-2 text-sm font-medium text-teal-700 transition hover:text-teal-800"},{default:D(()=>[d(i,{name:"heroicons:arrow-left",class:"h-4 w-4"}),_(" "+n(o.$t("news.backToList")),1)]),_:1},8,["to"]),s("div",pe,[s("span",me,n(e(t).category),1),s("span",_e,n(o.$t("news.published"))+"ï¼"+n(e(t).date),1),e(t).updatedAt?(a(),r("span",xe,[d(i,{name:"heroicons:clock",class:"h-4 w-4"}),_(" "+n(o.$t("news.updatedLabel"))+" "+n(e(t).updatedAt),1)])):c("",!0)]),d(U,{item:e(t),class:"mt-4"},null,8,["item"]),e(t).externalLinkType==="registration"&&!e(Q)(e(t))?(a(),r("p",ge,n(o.$t("news.registrationClosedNotice")),1)):c("",!0),s("h1",we,n(e(t).title),1),s("p",fe,n(e(t).description),1),e(t).tags?.length?(a(),r("div",be,[(a(!0),r(g,null,v(e(t).tags,l=>(a(),r("span",{key:l,class:"rounded-full bg-slate-100 px-3 py-1 text-xs font-medium text-slate-600"}," #"+n(l),1))),128))])):c("",!0)])]),s("div",ve,[e(T).length?(a(),r("aside",ye,[s("nav",{class:"sticky top-24","aria-label":o.$t("insights.toc")},[s("p",$e,n(o.$t("insights.toc")),1),s("ul",Le,[(a(!0),r(g,null,v(e(T),l=>(a(),r("li",{key:l.id},[s("a",{href:`#${l.id}`,class:le(["-ml-px block border-l-2 py-1.5 pl-4 text-sm transition",e(k)===l.id?"border-teal-500 font-semibold text-teal-700":"border-transparent text-slate-500 hover:border-slate-300 hover:text-slate-800"]),"aria-current":e(k)===l.id?"true":void 0},n(l.text),11,Te)]))),128))])],8,ke)])):c("",!0),s("article",{ref_key:"articleEl",ref:N,class:"min-w-0 flex-1 rounded-2xl border border-slate-200 bg-white p-6 shadow-sm md:p-10"},[e(t).cover?(a(),r("img",{key:0,src:e(t).cover,alt:e(t).title,class:"mb-8 h-auto w-full rounded-xl border border-slate-200"},null,8,Ne)):c("",!0),s("div",Ee,[d(Y,{value:e(t)},null,8,["value"])]),e($).length?(a(),r("div",Ce,[s("h2",qe,n(o.$t("news.eventVideo")),1),s("div",Ie,[(a(!0),r(g,null,v(e($),(l,H)=>(a(),r("div",{key:l},[e($).length>1?(a(),r("p",Ue,n(o.$t("news.videoPart"))+" "+n(H+1),1)):c("",!0),s("div",Ve,[q(l)?(a(),r("iframe",{key:0,src:q(l),class:"aspect-video w-full",title:o.$t("news.youTubeTitle"),frameborder:"0",allow:` 2 accelerometer; 3 autoplay; 4 clipboard-write; 5 encrypted-media; 6 gyroscope; 7 picture-in-picture; 8 web-share; 9 `,referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""},null,8,Ae)):c("",!0)]),s("a",{href:l,target:"_blank",rel:"noopener noreferrer",class:"mt-2 inline-flex items-center text-sm font-semibold text-teal-700 transition hover:text-teal-800"},[_(n(o.$t("news.watchOnYouTube"))+" ",1),d(i,{name:"heroicons:arrow-top-right-on-square",class:"ml-1.5 h-4 w-4"})],8,Be)]))),128))])])):c("",!0)],512),s("aside",De,[s("div",Se,[s("div",Fe,[s("p",Re,n(o.$t("news.eventInfo")),1),s("dl",je,[s("div",Oe,[d(i,{name:"heroicons:calendar-days",class:"mt-0.5 h-4 w-4 shrink-0 text-slate-400"}),s("dd",Pe,n(o.$t("news.published"))+"ï¼"+n(e(t).date),1)])]),d(U,{item:e(t),class:"mt-3"},null,8,["item"]),e(b)(e(t))||e(t).notesLink?(a(),r("div",ze,[e(b)(e(t))?(a(),r("a",{key:0,href:e(t).externalLink,target:"_blank",rel:"noopener noreferrer",class:"flex items-center justify-center gap-2 rounded-lg bg-teal-600 px-4 py-2.5 text-sm font-medium text-white transition hover:bg-teal-700"},[_(n(o.$t(e(t).externalLinkType==="registration"?"news.register":"news.externalLink"))+" ",1),d(i,{name:"heroicons:arrow-top-right-on-square",class:"h-4 w-4"})],8,Me)):c("",!0),e(t).notesLink?(a(),r("a",{key:1,href:e(t).notesLink,target:"_blank",rel:"noopener noreferrer",class:"flex items-center justify-center gap-2 rounded-lg border border-teal-600 px-4 py-2.5 text-sm font-medium text-teal-700 transition hover:bg-teal-50"},[d(i,{name:"heroicons:document-text",class:"h-4 w-4"}),_(" "+n(o.$t("news.notes")),1)],8,Ye)):c("",!0)])):c("",!0)])])])]),e(b)(e(t))||e(t).notesLink?(a(),r("div",He,[s("div",Ke,[e(b)(e(t))?(a(),r("a",{key:0,href:e(t).externalLink,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-2 rounded-lg bg-teal-600 px-5 py-2.5 font-medium text-white transition hover:bg-teal-700"},[_(n(o.$t(e(t).externalLinkType==="registration"?"news.register":"news.externalLink"))+" ",1),d(i,{name:"heroicons:arrow-top-right-on-square",class:"h-4 w-4"})],8,Ge)):c("",!0),e(t).notesLink?(a(),r("a",{key:1,href:e(t).notesLink,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-2 rounded-lg border border-teal-600 px-5 py-2.5 font-medium text-teal-700 transition hover:bg-teal-50"},[d(i,{name:"heroicons:document-text",class:"h-5 w-5"}),_(" "+n(o.$t("news.notes")),1)],8,Je)):c("",!0)])])):c("",!0),e(L).length?(a(),r("section",Qe,[s("div",We,[s("h2",Xe,n(o.$t("news.moreNews")),1),s("div",Ze,[(a(!0),r(g,null,v(e(L),l=>(a(),ie(I,{key:l.path,to:l.path,class:"group rounded-2xl border border-slate-200 p-5 transition hover:-translate-y-1 hover:border-teal-200 hover:shadow-lg"},{default:D(()=>[s("div",et,[s("span",tt,n(l.category),1),s("span",st,n(l.date),1)]),s("h3",ot,n(l.title),
91),s("p",nt,n(l.description),1)]),_:2},1032,["to"]))),128))])])])):c("",!0)],64)):e(O)?c("",!0):(a(),r("div",at,n(o.$t("news.notFound")),1))])}}}),gt=ce(lt,[["__scopeId","data-v-2aca9a64"]]);export{gt 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.