1import{_ as C}from"./B1Mqcnb5.js";import D from"./C9FnwOnt.js";import{_ as k}from"./Ch9ndGqj.js";import N from"./Dala1fU0.js";import{a3 as j,a0 as B,d as V,c as m,e as t,a as s,D as l,o as n,z as f,A as b,J as I,R as L,j as o,C as w,y as _}from"./DyD75sSt.js";import{u as R,q}from"./DJ1rmQAK.js";import"./CN-1eFuR.js";import"./CxYJgpPD.js";import"./saqVpc76.js";import"./CDM3n9ul.js";import"./CMv9NKYp.js";const J={class:"min-h-screen bg-slate-200 h-auto p-24 px-4"},S={class:"container mx-auto"},z={class:"prose prose-lg max-w-3xl mx-auto bg-white rounded-lg shadow-xl p-8"},E={class:"mb-8"},F={class:"text-3xl font-bold mb-4"},P={key:0,class:"text-gray-600"},T={class:"bg-gray-50 rounded-lg p-4 mb-8","aria-label":"table of contents"},U=t("h2",{class:"text-lg font-bold mb-4"},"ç®æ¬¡",-1),G={class:"space-y-2"},H={class:"flex justify-between items-center mt-8"},oe={__name:"[...slug]",async setup(K){let i,g;const d=j().params.slug,{data:r}=([i,g]=B(()=>R("articles",()=>q("news").sort({date:-1}).find())),i=await i,g(),i),{previous:p,next:x}=V(()=>{if(!r.value)return{previous:null,next:null};const a=r.value.findIndex(y=>y._path===`/news/${Array.isArray(d)?d.join("/"):d}`);return{previous:a>0?r.value[a-1]:null,next:a<r.value.length-1?r.value[a+1]:null}}),v=a=>new Date(a).toLocaleDateString("ja-JP",{year:"numeric",month:"long",day:"numeric"});return(a,y)=>{const c=C,$=D,h=k,A=N;return n(),m("main",J,[t("div",S,[s(A,null,{default:l(({doc:e})=>[t("article",z,[t("header",E,[t("h1",F,f(e==null?void 0:e.title),1),e!=null&&e.date?(n(),m("time",P,f(v(e.date)),1)):b("",!0)]),t("nav",T,[U,t("ul",G,[(n(!0),m(I,null,L(e.body.toc.links,u=>(n(),m("li",{key:u.id},[s(c,{to:`#${u.id}`,class:"text-gray-600 hover:text-blue-600","aria-label":`${u.text}ã»ã¯ã·ã§ã³ã¸ç§»å`},{default:l(()=>[_(f(u.text),1)]),_:2},1032,["to","aria-label"])]))),128))])]),s($,{id:"content",value:e,excerpt:!1,head:!1},null,8,["value"])]),t("nav",H,[o(p)?(n(),w(c,{key:0,to:`/news/${o(p).slug}`,"aria-label":`åã®è¨äº: ${o(p).title}`,class:"text-blue-600 bg-white py-4 px-6 rounded-md hover:underline flex items-center gap-2"},{default:l(()=>[s(h,{name:"i-heroicons-arrow-left",class:"w-5 h-5"}),_(" åã®è¨äº ")]),_:1},8,["to","aria-label"])):b("",!0),s(c,{to:"/news","aria-label":"ãã¥ã¼ã¹è¨äºä¸è¦§ã¸æ»ã",class:"text-blue-600 bg-white py-4 px-6 rounded-md hover:underline flex items-center"},{default:l(()=>[s(h,{name:"i-heroicons-document-text",class:"w-5 h-5"}),_(" è¨äºä¸è¦§ ")]),_:1}),o(x)?(n(),w(c,{key:1,to:`/news/${o(x).slug}`,"aria-label":`次ã®è¨äº: ${o(x).title}`,class:"text-blue-600 bg-white py-4 px-6 rounded-md hover:underline flex items-center"},{default:l(()=>[_(" 次ã®è¨äº "),s(h,{name:"i-heroicons-arrow-right",class:"w-5 h-5"})]),_:1},8,["to","aria-label"])):b("",!0)])]),_:1})])])}}};export{oe 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.