1import{_ as j}from"./Dfp5BaFJ.js";import{_ as z}from"./fiOkwwFR.js";import{_ as H}from"./zDgqSOkx.js";import{_ as P}from"./5LM4b9sl.js";import{_ as R}from"./DQFdnqVW.js";import{_ as A}from"./C3O0BpPA.js";import{_ as M,l as o,f as g,q as N,s as S,x as U,c as D,y as J,g as t,d as u,a as q,w as Y,z as I,F as G,E as K,C as O,o as h}from"./ZjLcrLUj.js";import{u as Q,l as W}from"./19x6Zq2q.js";import{a as X}from"./BzdV8tdO.js";import{u as Z}from"./Crh3G0UO.js";import"./gTYMY1Gz.js";import"./DM1BiA8Y.js";import"./BrVTkNzt.js";import"./c-9WvvWz.js";const ee={class:"page-max-width mx-auto"},te={class:"page-content",id:"page-content"},ae={__name:"index",async setup(oe){let c,y;const a=O(),p=K(),f=o(200),n=g({get(){return parseInt(a.query.page)||parseInt(1)},set(e){p.push({query:{...a.query,page:e}})}}),m=g({get(){return parseInt(a.query.count)||parseInt(8)},set(e){p.push({query:{...a.query,count:e}})}});g({get(){return a.query.year||new Date().getFullYear()},set(e){p.push({query:{...a.query,year:e}})}});const l=o("special-issue"),r=o({}),v=o([]),b=o(0),_=o(!1),k=o([]),w=o([{id:"magazine",title:"éèª",link:"/magazine"},{id:"special-issue",title:"ç¹å",link:"/special-issue"},{id:"book",title:"æ¸ç±",link:"/book"}]),T=async()=>{_.value=!0;try{const e=await W(`/api/periodical/get_list?periodicalType=${l.value}&page=${n.value}&count=${m.value}`);e&&(x(e),X("page-content",{offsetTop:150}))}catch{}finally{_.value=!1}},x=e=>{v.value=[...e.newest,...e.queryList],b.value=e.totalElements},{data:s,error:V}=([c,y]=N(()=>Q(`/api/periodical/get_list?periodicalType=${l.value}&page=${n.value}&count=${m.value}`)),c=await c,y(),c);return V.value===null&&s!==404?(r.value=s.value.list_header,x(s.value),k.value=[{label:s.value.breadCrumbs.rank01.title,to:s.value.breadCrumbs.rank01.link}],S(s.value.headMeta),Z(s.value.jsonld)):f.value=404,U([()=>a.query.page,()=>a.query.count,()=>a.query.year],async()=>{await T()}),(e,i)=>{const B=j,$=z,C=H,E=P,F=R,L=A;return t(f)==200?(h(),D(G,{key:0},[u($,{enTitle:t(r).projectEn,cnTitle:t(r).project,desc:t(r).desc,backgroundImage:t(r).backgroundImg},{"bread-crumb":Y(()=>[u(B,{breadcrumbs:t(k)},null,8,["breadcrumbs"])]),_:1},8,["enTitle","cnTitle","desc","backgroundImage"]),u(C,{tagItems:t(w),modelValue:t(l),"onUpdate:modelValue":i[0]||(i[0]=d=>I(l)?l.value=d:null)},null,8,["tagItems","modelValue"]),q("div",ee,[q("div",te,[u(E,{list:t(v),loading:t(_)},null,8,["list","loading"]),u(F,{modelValue:t(n),"onUpdate:modelValue":i[1]||(i[1]=d=>I(n)?n.value=d:null),totalItem:t(b),perPage:t(m)},null,8,["modelValue","totalItem","perPage"])])])],64)):(h(),J(L,{key:1}))}}},ve=M(ae,[["__scopeId","data-v-c3fc06c6"]]);export{ve 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.