1import{_ as A}from"./D2QgBLkr.js";import{_ as D}from"./5b9mtY5Z.js";import{_ as P}from"./9Sb1xHSx.js";import{k as T,u as C,w as F,$ as I,e as L,f as R,g as U,i as g}from"./Dq6yr8be.js";import{a as c,N as i,I as h,O as s,L as o,V as n,u as e,W as b,X as V,ab as q,U as x,P as $,D as M,Q as z}from"./HrPAxp1u.js";import{N as v,a as E}from"./BOyRTxvN.js";import{N as G}from"./6Yh_jd7H.js";import"./D7CZB2qd.js";import"./DOxoLeB4.js";import"./9onRcwUD.js";import"./Ralo_SK5.js";import"./C2DGAFlB.js";import"./ClTt060b.js";import"./DABwZdyy.js";import"./CMmzhA-N.js";import"./Bfn4DVvf.js";import"./D4LKCpKE.js";import"./DwPhl1Gg.js";import"./c9l2dkp-.js";import"./CR2E8-JR.js";import"./C4J8sofl.js";const S={class:"container"},W={class:"h-56 flex items-center text-20 c-#999","lt-md":"hidden"},j={class:"grid grid-cols-10 gap-40 pb-80","lt-lg":"gap-30","lt-md":"gap-0 grid-cols-1 pb-30"},H={class:"col-span-7"},O={class:"relative flex-1 of-hidden p-25","lt-xl":"p-20","lt-lg":"p-15 pb-40"},Q={class:"text-24 lh-120% font-AT-B","lt-xl":"text-20","lt-lg":"text-18","lt-md":"text-14"},X={class:"ellipsis-3","lt-md":"ellipsis-2"},J={class:"absolute-lb flex items-center p-25 text-12 c-#999 lh-16","lt-xl":"p-20","lt-lg":"p-15"},K={class:"col-span-3","lt-md":"hidden"},vt={__name:"pulse",async setup(Z){let m,u;const w=T(),r=C(),p=c([]),l=c(1),d=c(0);r.query.page&&(l.value=r.query.page*1),[m,u]=F(()=>R([_()])),await m,u();async function _(){try{const{data:t}=await U.gbaPulseList({page:l.value,page_size:10});p.value=t.list,d.value=t.total}catch{}}function y(t){return t.publish_id.startsWith("mp-")?`/article/${t.publish_id.replace("mp-","")}#${encodeURIComponent(t.title.replace(/(^\s+)|(\s+$)|\s+/g,"-"))}-${g(t.publish_time*1e3).format("YYYY-MM-DD")}`:`/newsletter/${t.nlt_code}/article/${t.publish_id.replace("np-","")}#${encodeURIComponent(t.title.replace(/(^\s+)|(\s+$)|\s+/g,"-"))}-${g(t.publish_time*1e3).format("YYYY-MM-DD")}`}function B(){_(),w.replace({path:r.path,query:{...r.query,page:l.value}}),window.scrollTo({top:0})}return(t,f)=>{const N=A,Y=D,k=P;return i(),h("div",S,[s("div",W,[o(e(E),{separator:">"},{default:n(()=>[o(e(v),null,{default:n(()=>[b("GBA")]),_:1}),o(e(v),null,{default:n(()=>[b("GBA Pulse")]),_:1})]),_:1})]),s("div",j,[s("div",H,[(i(!0),h(V,null,q(e(p),a=>(i(),x(Y,{key:a.publish_id,to:y(a),class:"mb-40 flex bg-#fff shadow-[0_2px_20px_rgba(0,0,0,0.1)]","lt-lg":"mb-30","lt-md":"mb-15",target:"_self"},{default:n(()=>[o(N,{class:"aspect-480/270 w-300","lt-xl":"w-250","lt-lg":"w-220","lt-md":"w-160",src:("$$domain"in t?t.$$domain:e(I))(a.cover_thumb)},null,8,["src"]),s("div",O,[s("div",Q,[s("span",X,$(a.title),1)]),s("div",J,[s("span",null,$(("articleTimeFormat"in t?t.articleTimeFormat:e(L))(a.publish_time,{withHour:!1})),1)])])]),_:2},1032,["to"]))),128)),e(p).length?(i(),x(e(G),{key:0,page:e(l),"onUpdate:page":[f[0]||(f[0]=a=>M(l)?l.value=a:null),B],"page-size":10,"item-count":e(d)},null,8,["page","item-count"])):z("",!0)]),s("div",K,[o(k)])])])}}};export{vt 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.