PageSourceSearch

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

js upgarage.com collected 2026-10-02 03:28:07 UTC 4,111 bytes, 1 lines download raw bytes

1import{d as S,s as E,c as v,a as c,b as h,h as a,m as r,F as j,i as D,t as P,e as w,v as U,w as k,f as C,_ as B,r as m,z as x,o as F,l as y,L as G,u as I,p as Q,j as z}from"./CBb99Q15.js";import{M as K}from"./dFIXalo2.js";import{S as q}from"./wZw3oH-b.js";import{P as J}from"./DVaJ00Jg.js";import{b as O}from"./Jd6aBPtE.js";import"./HJwVSgq5.js";const X={id:"tab-content1",class:"mypage__notification-tab-content notification"},Y={key:0,class:"notification-read-msg","data-testid":"no-notice"},Z={id:"tab-content2",class:"mypage__notification-tab-content notification"},tt=["data-testid"],at=["data-testid"],et=["data-testid"],nt=S({__name:"mypage_notice_list",props:{notices:{default:()=>[]}},setup(d){const l=t=>q.dateToKanji(t)??"",f=t=>t.__typename==="WordpressAnnouncement"&&!!t.articleUrl,u=t=>{if(t.__typename==="WordpressAnnouncement"&&t.articleUrl){if(t.alreadyRead)return t.articleUrl;const b=t.articleUrl.includes("?")?"&":"?";return`${t.articleUrl}${b}announcementId=${t.id}`}return`/mypage/notice/${t.id}/`},n=t=>f(t)?"_blank":"",g=d,{notices:s}=E(g);return(t,b)=>(c(),v("div",X,[r(s).length===0?(c(),v("div",Y," お知らせはありません。 ")):h("",!0),a("div",Z,[(c(!0),v(j,null,D(r(s),(p,e)=>(c(),v("div",{key:e,class:"notification-box","data-testid":`notice-box-${e}`},[a("div",{class:"notification-date","data-testid":`notice-date-${e}`},P(l(p.publishedAt)),9,at),a("div",{class:"notification-title-wrap","data-testid":`notice-title-wrap-${e}`},[w(U,{href:u(p),target:n(p),class:"notification-title","data-testid":`notice-title-${e}`},{default:k(()=>[C(P(p.title),1)]),_:2},1032,["href","target","data-testid"])],8,et)],8,tt))),128))])]))}}),st=B(nt,[["__scopeId","data-v-180a13f9"]]),M=d=>(Q("data-v-1b624d9c"),d=d(),z(),d),ot={class:"announcement"},it={class:"mypage"},rt={class:"main-tabs"},ct={class:"mypage__notification-tab-area"},lt=M(()=>a("input",{id:"tab-btn1",class:"mypage__notification-tab-btn",name:"tab",type:"radio",checked:""},null,-1)),dt=M(()=>a("input",{id:"tab-btn2",class:"mypage__notification-tab-btn",name:"tab",type:"radio"},null,-1)),ut={class:"mypage__notification-tab-list-wrap"},pt={class:"mypage__notification-tab-content-wrap"},$=10,_t=S({__name:"index",setup(d){const l=m(!1),f=m("unread"),u=m([]),n=m(1),g=m(0),s=m([void 0]),t=async o=>{n.value=o,await e(),window.scroll({top:0,behavior:"smooth"})},b=o=>{f.value=o,n.value=1,s.value=[void 0],e()},p=async()=>{l.value=!1;const{$accountApi:o,$errorHandler:i}=I();u.value=[],l.value=!0;const{errors:_}=await o().readAllNotice();if(_){i().handleGraphQlErrors(_);return}n.value=1,s.value=[void 0],await e()},e=async()=>{l.value=!1;const o=s.value[n.value-1],{$accountApi:i,$errorHandler:_}=I(),{data:R,errors:A}=await i().getNotices(f.value,$,o);if(A){_().handleGraphQlErrors(A);return}const{edges:T,pageInfo:N,totalCount:V}=R.announcements;u.value=T.map(W=>
1W.node).filter(Boolean),N.hasNextPage&&!s.value[n.value]&&(s.value[n.value]=N.endCursor),g.value=V,l.value=!0},H=x(()=>f.value==="unread"&&u.value.length>0),L=x(()=>g.value>$);return F(()=>{O.set([{name:"mypage",translation:!0,path:"/mypage/"},{name:"お知らせ",path:"/mypage/notice/"}]),e()}),(o,i)=>(c(),v("div",ot,[a("main",it,[w(K,null,{default:k(()=>[C(" お知らせ一覧 ")]),_:1}),a("div",rt,[a("div",ct,[lt,dt,a("ul",ut,[a("li",null,[a("label",{id:"tab-list1",class:"mypage__notification-tab-list mypage__notification-tab-list--first",for:"tab-btn1",onClick:i[0]||(i[0]=_=>b("unread"))}," 未読 ")]),a("li",null,[a("label",{id:"tab-list2",class:"mypage__notification-tab-list",for:"tab-btn2",onClick:i[1]||(i[1]=_=>b("read"))}," 既読 ")]),a("li",null,[r(H)?(c(),y(U,{key:0,class:"mypage__read-btn","data-testid":"all-read-btn",onClick:p},{default:k(()=>[C(" 全て既読にする ")]),_:1})):h("",!0)])]),a("div",pt,[w(st,{notices:r(u)},null,8,["notices"]),r(L)?(c(),y(J,{key:0,"list-item-count":r(g),"per-page-count":$,"current-page":r(n),onPageSelected:t},null,8,["list-item-count","current-page"])):h("",!0)])])])]),r(l)?h("",!0):(c(),y(G,{key:0,loading:!0}))]))}}),yt=B(_t,[["__scopeId","data-v-1b624d9c"]]);export{yt 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.