1import{_ as j}from"./DVdNvSqw.js";import{_ as B}from"./C_EV-Q5x.js";import{_ as D}from"./Dd-Kethe.js";import{a as E}from"./BJNvnALV.js";import{_ as I}from"./C7cmB7AU.js";import{_ as L,u as z,a as F,k as H,j as q}from"./DsNXojSX.js";import{x as A,p as J,E as p,F as s,N as l,b as M,u as t,R as O,H as S,J as T,L as U,j as a,n as w,D as i}from"./BzqdGKr5.js";import"./BtvKMRAp.js";const G={class:"bg-inner-head mb-20 sm:mb-6"},K={class:"grid-layout pb-20 pt-[125px] sm:pb-[68px]"},Q={class:"col-span-12"},W={class:"grid-layout mb-12"},X={class:"col-span-12 flex items-center justify-end sm:flex-wrap"},Y={class:"flex items-center gap-4 sm:flex-wrap sm:gap-0 md:w-full"},Z={class:"dropdown-wrap flex items-center gap-2 sm:flex-wrap md:w-full"},ee={class:"grid-layout gap-y-10 mb-10 md:px-4"},se={key:0,class:"col-span-12"},te={class:"text-center py-10"},ae={class:"text-cn-paragraph-sm-5 text-league-secondary-200 my-6"},oe={class:"grid-layout mb-[200px]"},ne={class:"col-span-12"},le={__name:"index",setup(ce){const{$api:_}=z();F({title:"ææ°æ¶æ¯"});const c=a(!0),o=a(!1),d=a([]),b=H(),g=q(),f=w(()=>b.query.category);A(async()=>{c.value=!0;const{result:e}=await _.posts.getCategories(1);d.value=e,f.value?o.value=f.value:m()});const n=a(1),v=a(1),x=a(12),h=a(0),u=a([]),m=async()=>{c.value=!0;const e=await _.posts.getPosts(1,o.value,n.value);u.value=e.result,n.value=e.meta.current_page,v.value=e.meta.last_page,x.value=e.meta.per_page,h.value=e.meta.total,c.value=!1},P=e=>{n.value=e,m()},C=w(()=>[{label:"å
¨é¨åé¡",val:""},...d.value.map(e=>({label:e.title,val:e.id}))]);return J(o,e=>{n.value=1,e==""||e==null?g.replace("/news"):g.replace(`/news?category=${e}`),m()}),(e,y)=>{const N=j,k=B,$=D,R=E,V=I;return i(),p("article",null,[s("section",G,[s("div",K,[s("div",Q,[l(N,{en:"News",title:"ææ°æ¶æ¯"})])])]),s("section",W,[s("div",X,[s("div",Y,[s("div",Z,[l(k,{class:"sm:w-full",options:t(C),modelValue:t(o),"onUpdate:modelValue":y[0]||(y[0]=r=>M(o)?o.value=r:null),default:""},null,8,["options","modelValue"])])])])]),s("section",ee,[t(u).length==0?(i(),p("div",se,[s("div",te,[l($,{class:"mt-10 mx-auto"}),s("div",ae,O(t(c)?"è³æè®åä¸...":"篩é¸ä¸æ²æä»»ä½è³æ"),1)])])):S("",!0),(i(!0),p(T,null,U(t(u),r=>(i(),p("div",{class:"col-span-3 lg:col-span-4 md:col-span-6 sm:col-span-12",key:r.id},[l(R,{post:r},null,8,["post"])]))),128))]),s("section",oe,[s("div",ne,[l(V,{total:t(h),"page-size":t(x),"current-page":t(n),"last-page":t(v),onPageChange:P},null,8,["total","page-size","current-page","last-page"])])])])}}},fe=L(le,[["__scopeId","data-v-edce0210"]]);export{fe 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.