PageSourceSearch

https://static.upgarage.com/_nuxt/C2iYTRgx.js

js upgarage.com collected 2026-10-02 03:28:30 UTC 2,201 bytes, 1 lines download raw bytes

1import{d as b,z as y,c as p,a as u,b as w,F as x,h as r,t as I,m as f,_ as k,u as A,O as C,aT as L,C as M,r as $,a5 as T,o as B,l as D,e as q,L as E}from"./CBb99Q15.js";import{S as F}from"./wZw3oH-b.js";import{h as H}from"./CbGaPIAM.js";import{b as R}from"./Jd6aBPtE.js";import"./BDr1m4Qv.js";const S={class:"notice"},V={class:"notice__title","data-testid":"title"},j={class:"notice__date","data-testid":"date"},z=["innerHTML"],K=b({__name:"notice",props:{notice:{}},setup(h){const _=t=>F.dateToKanji(t),e=h,i=y(()=>{var t,o,l,c,n,a;return{title:((o=(t=e==null?void 0:e.notice)==null?void 0:t.title)==null?void 0:o.rendered)||"",date:(l=e==null?void 0:e.notice)!=null&&l.date?_((c=e==null?void 0:e.notice)==null?void 0:c.date):"",content:((a=(n=e==null?void 0:e.notice)==null?void 0:n.content)==null?void 0:a.rendered)||""}}),{title:s,date:m,content:v}=i.value,d=y(()=>i.value.title!=="");return(t,o)=>(u(),p("div",S,[d.value?(u(),p(x,{key:0},[r("h1",V,I(f(s)),1),r("time",j,I(f(m)),1),r("div",{class:"notice__content wordpress-content","data-testid":"content",innerHTML:f(v)},null,8,z)],64)):w("",!0)]))}}),O=k(K,[["__scopeId","data-v-90a51020"]]),U={class:"notice"},G={class:"notice__detail"},J=b({__name:"[id]",setup(h){const{$wpRestApi:_,$errorHandler:e,$accountApi:i}=A(),s=C(),m=L(),{isLoggedIn:v}=M(),d=s.params.id,t=$(void 0),o=$(!1);T(t,()=>{t.value&&(H.set({title:t.value.title.rendered,canonicalTagEnabled:!0}),R.set([{name:"お知らせ",path:"/notice/"},{name:t.value.title.rendered,path:`/notice/${d}/`}]))});const l=async c=>{var g;o.value=!0;const{data:n,error:a}=await _().noticeApi({id:c});if(n!=null){t.value=n;const N=t.value.acf.url;if(N){window.location=N;return}o.value=!1}else(a==null?void 0:a.value)!=null&&e().handle((g=a==null?void 0:a.value)==null?void 0:g.statusCode)};return B(()=>{const c=s.query.announcementId;c&&(v.value&&i().readNotice(c),m.replace({query:{...s.query,announcementId:void 0}}));const n=parseInt(d);isNaN(n)?e().notFoundError():l(n)}),(c,n)=>(u(),p("div",U,[r("div",G,[o.value?w("",!0):(u(),D(O,{key:0,notice:t.value},null,8,["notice"])),q(E,{loading:o.value},null,8,["loading"])])]))}}),Z=k(J,[["__scopeId","data-v-2669cb28"]]);export{Z 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.