1import{u as f,r as o,j as e,a as p,L as u}from"./index-C-BaFvQy.js";import{P as _,B as w,d as N}from"./dec-dot-line-Csr-KFFv.js";import{N as b}from"./NewsCard-PVXfpwvO.js";import{u as P,b as y}from"./wpClient-y4JYpgz9.js";import"./fetchWithTimeout-0_CYL2C1.js";const x=12;function v(d){const a=[{name:"ãç¥ãã",slug:"info"},{name:"ã¤ãã³ã",slug:"event"},{name:"ã°ããº",slug:"goods"}],m=[];for(let r=0;r<x;r++){const t=(d-1)*x+r,i=a[t%3],n=new Date("2026-02-18");n.setDate(n.getDate()-t),m.push({id:t+1,date:n.toISOString(),title:`ãã¥ã¼ã¹ã¿ã¤ãã«ãµã³ãã« ${t+1} ãããã«å
¥ãã¾ã`,category:i.name,categorySlug:i.slug})}return m}function D(){const[d]=f(),a=Number(d.get("page"))||1,[m,r]=o.useState([]),[t,i]=o.useState(0),[n,g]=o.useState(!1);o.useEffect(()=>{if(g(!0),P)y({page:a,perPage:x}).then(({posts:s,totalPages:l})=>{r(s),i(l)}).catch(s=>{console.error("Failed to fetch news:",s),r([]),i(0)}).finally(()=>g(!1));else{const s=setTimeout(()=>{r(v(a)),i(3),g(!1)},400);return()=>clearTimeout(s)}},[a]);const j=o.useMemo(()=>{const l=[];for(let c=Math.max(1,a-2);c<=Math.min(t,a+2);c++)l.push(c);return l},[a,t]);function h(s){const l=new URLSearchParams(d);s===1?l.delete("page"):l.set("page",s);const c=l.toString();return`/news/${c?"?"+c:""}`}return e.jsxs("main",{id:"l-main",className:"l-sub",role:"main",children:[e.jsx(_,{title:"ãã¥ã¼ã¹",description:"TVã¢ãã¡ãæ¨ã¦ããè女ã®ç°ä¸çãã¯ãæ
é ãã¹ãã«ã§ãã£ã³ãã³ã°ã«ã¼ãå¬åãã¾ãããææ°ãã¥ã¼ã¹ä¸è¦§",path:"/news/"}),e.jsx("div",{className:"l-sub__bg",children:e.jsx(w,{svgRaw:N,direction:"ltr",duration:12})}),e.jsxs("section",{className:"p-news",children:[e.jsx("header",{className:"p-news__header",children:e.jsx("h2",{className:"p-news__title",children:e.jsx("img",{className:"object-contain object-left size-full",src:p("/assets/img/common/ttl-news.png"),alt:""})})}),e.jsx("div",{className:"p-news__main",children:e.jsxs("div",{className:`p-news__list-wrap${n?" is-loading":""}`,"aria-live":"polite","aria-busy":n,children:[m.length?e.jsx("section",{className:"p-news__list",children:m.map(s=>e.jsx(b,{to:`/news/${s.id}/`,date:s.date,title:s.title},s.id))}):n?null:e.jsx("div",{className:"text-center py-10",children:e.jsx("p",{children:"è¨äºãããã¾ãã"})}),n&&e.jsx("div",{className:"p-news__loader","aria-hidden":"true",children:e.jsx("span",{className:"p-news__loader-ring"})})]})}),e.jsx("footer",{className:"p-news__footer",children:t>1&&e.jsx("nav",{className:"p-news__pager","aria-label":"ãã¼ã¸ãã¼ã·ã§ã³",children:e.jsxs("ul",{className:"p-news__pager-list",children:[a>1&&e.jsx("li",{className:"absolute bottom-0 md:bottom-auto md:top-1/2 left-0 md:transform-[translate3d(0,-50%,0)] ml-[7.5rem] md:ml-0",children:e.jsx(u,{to:h(a-1),className:"c-btn-more inline-flex font-geologica font-black md:px-[2.5em] md:py-[1em] text-[1.25rem] w-[4.2rem] md:w-auto h-[4.2rem] md:h-auto items-center justify-center","aria-label":"åã®ãã¼ã¸",children:e.jsxs("span",{className:"c-btn-more__inner -scale-x-100",children:[e.jsx("span",{className:"c-btn-more__text -scale-x-100 hidden md:inline-block",children:"PREV"}),e.jsx("img",{className:"object-contain w-full h-[0.9em] md:ml-[2.5em] ",src:p("/assets/img/common/icon-arrow.png"),alt:""})]})})}),j.map(s=>e.jsx("li",{children:s===a?e.jsx("span",{className:"p-news__pager-item is-current",children:s}):e.jsx(u,{to:h(s),className:"p-news__pager-item",children:s})},s)),a<t&&e.jsx("li",{className:"absolute bottom-0 md:bottom-auto md:top-1/2 right-0 md:transform-[translate3d(0,-50%,0)] mr-[7.5rem] md:mr-0",children:e.jsx(u,{to:h(a+1),className:"c-btn-more inline-flex font-geologica font-black md:px-[2.5em] md:py-[1em] text-[1.25rem] w-[4.2rem] md:w-auto h-[4.2rem] md:h-auto items-center justify-center","aria-label":"次ã®ãã¼ã¸",children:e.jsxs("span",{className:"c-btn-more__inner",children:[e.jsx("span",{className:"c-btn-more__text hidden md:inline-block",children:"NEXT"}),e.jsx("img",{className:"object-contain w-full h-[0.9em] md:ml-[2.5em] ",src:p("/assets/img/common/icon-arrow.png"),alt:""})]})})})]})})})]})]})}export{D 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.