1import{d as k,z as x,c as i,a as c,h as r,y as A,F as P,i as S,t as u,e as p,v as B,w as h,f as C,_ as w,u as V,r as o,o as H,l as I,m as n,L}from"./CBb99Q15.js";import{H as M}from"./MkKP6dUC.js";import{P as T}from"./DVaJ00Jg.js";import{S as D}from"./wZw3oH-b.js";import{b as E}from"./Jd6aBPtE.js";import{h as F}from"./CbGaPIAM.js";import"./BDr1m4Qv.js";const j={class:"notices"},z={class:"notices__list"},K=["data-testid"],R={class:"notice__date-text"},U=["data-testid"],q=["data-testid"],G=k({__name:"notices",props:{notices:{default:()=>[]}},setup(v){const f=v,m=x(()=>f.notices.map(t=>{var s,e;return{title:t.title.rendered,category:t.category||"ãç¥ãã",date:_(t==null?void 0:t.date),href:(s=t.acf)!=null&&s.url?t.acf.url:`/notice/${t.id}`,target:(e=t.acf)!=null&&e.should_open_in_new_tab?"_blank":""}})),_=t=>D.dateToKanji(t);return(t,s)=>(c(),i("div",j,[r("dl",z,[(c(!0),i(P,null,S(m.value,(e,a)=>(c(),i("div",{key:`notices-${a}`,class:"notices__item notice","data-testid":"notice"},[r("dt",{class:"notice__date","data-testid":`date-${a}`},[r("time",R,u(e.date),1)],8,K),r("dd",{class:"notice__category","data-testid":`category-${a}`},u(e.category),9,U),r("dd",{class:"notice__title","data-testid":`title-${a}`},[p(B,{class:"notice__anchor","data-testid":`anchor-${a}`,href:e.href,target:e.target},{default:h(()=>[C(u(e.title),1)]),_:2},1032,["data-testid","href","target"])],8,q)]))),128))]),A(t.$slots,"default",{},void 0,!0)]))}}),J=w(G,[["__scopeId","data-v-4bcbdc81"]]),O={key:0,class:"common-page-content-frame"},g="ãç¥ãã",Q=k({__name:"index",setup(v){const{$wpRestApi:f,$errorHandler:m}=V(),_=o([]),t=o(0),s=o(1),e=o(10),a=o(!0),y=o(),$=async()=>{a.value=!0;const{data:l,totalCount:d,error:b}=await f().noticesApi({page:s.value,perPage:e.value});b.value!==null?m().handle(b.value.statusCode):l&&(a.value=!1,_.value=l,t.value=d)},N=l=>{var d;(d=y.value)==null||d.scrollIntoView(),s.value=l,$()};return H(()=>{$()}),F.set({title:g,canonicalTagEnabled:!0}),E.set([{name:g,path:"/notice/"}]),(l,d)=>(c(),i("div",null,[r("div",{ref_key:"scrollAnchor",ref:y,class:"scroll-anchor"},null,512),n(a)?(c(),I(L,{key:1,loading:n(a)},null,8,["loading"])):(c(),i("div",O,[p(M,null,{default:h(()=>[C(u(g))]),_:1}),p(J,{notices:n(_)},{default:h(()=>[p(T,{"current-page":n(s),"per-page-count":n(e),"list-item-count":n(t),onPageSelected:N},null,8,["current-page","per-page-count","list-item-count"])]),_:1},8,["notices"])]))]))}}),st=w(Q,[["__scopeId","data-v-bb3a9638"]]);export{st 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.