PageSourceSearch

https://member.junmatsumoto.com/_nuxt/DIKhyVB-.js

js junmatsumoto.com collected 2026-10-05 09:46:31 UTC 9,179 bytes, 1 lines download raw bytes

1import{_ as W}from"./BM23AAY9.js";import{_ as J}from"./ChlusO0q.js";import{_ as K}from"./DHHlzgGZ.js";import{_ as Q}from"./CVgB3osQ.js";import{g as X,c as Z,_ as ee,b as te}from"./D4Sv6l2u.js";import{d as U,e as c,o as p,c as g,X as ne,v as s,a as P,t as r,_ as j,u as z,j as S,w as ae,s as l,x as e,I as a,L as f,M as y,G as F,H as oe,b as se,f as le,au as re,n as ie,l as pe,k as me,av as $,P as ue,J as ce,K as ye,V as _e}from"./-4BYBH-V.js";import{_ as fe,a as de}from"./CVKR5F3Y.js";import{_ as ve}from"./Bs0QBDMd.js";import{f as N}from"./K48dao-h.js";import{_ as Ie}from"./DwXGBlWy.js";import"./CD2uQZBu.js";import"./CbGd9jhU.js";import"./2G003c2N.js";import"./CmdRPbGd.js";const be={unpaid:{label:"未入金",variant:"warning",value:0},paid:{label:"入金済み",variant:"success",value:1},cancelled:{label:"キャンセル",variant:"neutral",value:3},"payment-failed":{label:"決済失敗",variant:"warning",value:4},expired:{label:"期限切れ",variant:"warning",value:5},"renewal-failed":{label:"継続失敗",variant:"warning",value:6}},ge={label:"不明",variant:"neutral",value:-1},xe=x=>{const I=be[x];return I||ge},Te={class:"status-text__text"},De=U({__name:"StatusText",props:{label:{},variant:{}},setup(x){const I=x,T=c(()=>({[`status-text--${I.variant}`]:!0}));return(n,A)=>(p(),g("div",{class:ne(["status-text",s(T)])},[P("span",Te,r(x.label),1)],2))}}),we=Object.assign(j(De,[["__scopeId","data-v-056312b8"]]),{__name:"AccountStatusText"}),Pe={class:"payment-info"},Ce={class:"payment-info__header"},ke={class:"payment-info__fc-info"},Ne={class:"payment-info__payment-method"},Se={class:"payment-info__content"},Ae=U({__name:"PaymentInfo",props:{paymentInfo:{},isOpen:{type:Boolean},disabled:{type:Boolean}},emits:["update:isOpen"],setup(x,{emit:I}){const{getSiteText:T}=z(),n=x,A=I,b=S(n.isOpen);ae(()=>n.isOpen,o=>{b.value=o});const d=o=>`${o.toLocaleString("ja-JP")}円`,v=c(()=>xe(n.paymentInfo.status)),_=c(()=>v.value.label),C=c(()=>v.value.variant),h=c(()=>X(n.paymentInfo.paymentType)),L=c(()=>{switch(n.paymentInfo.paymentType){case"monthly":return"月会費(税込)";case"yearly":return"年会費(税込)";default:return"会費(税込)"}}),Y=c(()=>n.paymentInfo.paymentType==="monthly"),D=c(()=>n.paymentInfo.renewalAuto?"オン":"オフ"),M=c(()=>n.paymentInfo.isNew?"新規":"継続"),O=c(()=>Z(n.paymentInfo.fcPayCvsType)),E=c(()=>n.paymentInfo.status==="paid"?N(n.paymentInfo.applicationDate?new Date(n.paymentInfo.applicationDate):""):N(n.paymentInfo.receptionDate?new Date(n.paymentInfo.receptionDate):"")),H=o=>{b.value=o,A("update:isOpen",o)};return(o,t)=>{const m=ee,u=oe,i=de,B=we,w=fe,k=ve,R=te;return p(),g("div",Pe,[l(R,{id:`payment-info-${n.paymentInfo.paymentId}`,"is-open":n.isOpen,disabled:n.disabled,"onUpdate:isOpen":H},{header:e(()=>[P("div",Ce,[l(m,{class:"payment-info__status",label:s(_),variant:s(C)},null,8,["label","variant"]),P("div",ke,[l(u,{class:"payment-info__fc-link",url:n.paymentInfo.fcUrl,"is-blank":!1},{default:e(()=>[a(r(n.paymentInfo.fcName),1)]),_:1},8,["url"]),P("span",Ne,r(s(E)),1)])])]),content:e(()=>[P("div",Se,[l(w,{class:"payment-info__description-list",size:"small"},{default:e(()=>[l(i,null,{label:e(()=>[...t[0]||(t[0]=[a("サービス名",-1)])]),content:e(()=>[a(r(n.paymentInfo.fcName),1)]),_:1}),l(i,null,{label:e(()=>[...t[1]||(t[1]=[a("支払番号",-1)])]),content:e(()=>[a(r(n.paymentInfo.paymentNumber),1)]),_:1}),l(i,null,{label:e(()=>[...t[2]||(t[2]=[a("会費種別",-1)])]),content:e(()=>[a(r(s(h)),1)]),_:1}),l(i,null,{label:e(()=>[...t[3]||(t[3]=[a("継続設定",-1)])]),content:e(()=>[a(r(s(D)),1)]),_:1}),l(i,null,{label:e(()=>[...t[4]||(t[4]=[a("決済手段",-1)])]),content:e(()=>[a(r(n.paymentInfo.paymentMethodName),1)]),_:1}),l(i,null,{label:e(()=>[...t[5]||(t[5]=[a("支払状況",-1)])]),content:e(()=>[l(B,{label:s(_),variant:s(C)},null,8,["label","variant"])]),_:1}),l(i,null,{label:e(()=>[...t[6]||(t[6]=[a("申し込み日",-1)])]),content:e(()=>[a(r(("formatDate"in o?o.formatDate:s(N))(n.paymentInfo.receptionDate?new Date(n.paymentInfo.receptionDate):"","YYYY/MM/DD HH:mm")),1)]),_:1}),s(C)==="success"?(p(),f(i,{key:0},{label:e(()=>[...t[7]||(t[7]=[a("決済日時",-1)])]),content:e(()=>[a(r(("formatDate"in o?o.formatDate:s(N))(n.paymentInfo.applicationDate?new Date(n.paymentInfo.applicationDate):"","YYYY/MM/DD HH:mm")),1)]),_:1})):y("",!0),l(i,null,{label:e(()=>[...t[8]||(t[8]=[a("新規/継続",-1)])]),content:e(()=>[a(r(s(M)),1)]),_:1})]),_:1}),n.paymentInfo.paymentMethod==="cvs"?(p(),g(F,{key:0},[l(k,{type:"dashed"}),l(w,{class:"payment-info__description-list",size:"small"},{default:e(()=>[n.paymentInfo.fcPayLimit?(p(),f(i,{key:0},{label:e(()=>[...t[9]||(t[9]=[a("支払期限",-1)])]),content:e(()=>[a(r(("formatDate"in o?o.formatDate:s(N))(new Date(n.paymentInfo.fcPayLimit))),1)]),_:1})):y("",!0),n.paymentInfo.fcPayReceiptNo?(p(),f(i,{key:1},{label:e(()=>[...t[10]||(t[10]=[a("受付番号",-1)])]),content:e(()=>[a(r(n.paymentInfo.fcPayReceiptNo),1)]),_:1})):y("",!0),n.paymentInfo.fcPayCvsType?(p(),f(i,{key:2},{label:e(()=>[...t[11]||(t[11]=[a("種別",-1)])]),content:e(()=>[a(r(s(O)),1)]),_:1})):y("",!0),n.paymentInfo.fcPaySlipUrl?(p(),f(i,{key:3},{label:e(()=>[...t[12]||(t[12]=[a("払込票URL",-1)])]),content:e(()=>[l(u,{url:n.paymentInfo.fcPaySlipUrl,"is-blank":!0},{default:e(()=>[a(r(n.paymentInfo.fcPaySlipUrl),1)]),_:1},8,["url"])]),_:1})):y("",!0)]),_:1})],64)):y("",!0),n.paymentInfo.status==="paid"||n.paymentInfo.status==="unpaid"?(p(),g(F,{key:1},[l(k,{type:"dashed"}),l(w,{class:"payment-info__description-list",size:"small"},{default:e(()=>[s(Y)?y("",!0):(p(),f(i,{key:0},{label:e(()=>[a(r(s(T)("enrollmentFeeLabel")),1)]),content:e(()=>[a(r(d(n.paymentInfo.entranceFee)),1)]),_:1})),l(i,null,{label:e(()=>[a(r(s(L)),1)]),content:e(()=>[a(r(d(n.paymentInfo.annualFee)),1)]),_:1}),s(Y)?y("",!0):(p(),f(i,{key:1},{label:e(()=>[...t[13]||(t[13]=[a("手数料(税込)",-1)])]),content:e(()=>[a(r(d(n.paymentInfo.serviceFee)),1)]),_:1}))]),_:1}),l(k,{type:"dashed"}),l(w,{class:"payment-info__description-list",size:"small"},{default:e(()=>[l(i,null,{label:e(()=>[...t[14]||(t[14]=[a("支払金額(税込)",-1)])]),content:e(()=>[a(r(d(n.paymentInfo.amount)),1)]),_:1})]),_:1})],64)):y("",!0)])]),_:1},8,["id","is-open","disabled"])])}}}),Ye=Object.assign(j(Ae,[["__scopeId","data-v-7d9a50d1"]]),{__name:"AccountPaymentInfo"}),$e={class:"fc-payment"},Fe={class:"fc-payment__container"},he={key:1,class:"fc-payment__filter-section"},V=8,Le=U({__name:"index",setup(x){const{getSiteText:I}=z();se({title:I("enrollmentAndRenewalHistoryTitle")});const T=le(),n=re(),{$authFetch:A}=ie(),b=S(V),d=S([]),v=S(!0),_=S(null),{setFieldValue:C}=pe({initialValues:{yearFilter:""}});me(async()=>{const o=T.query.year;o&&C("yearFilter",`y${o}`),await h()});const h=async()=>{try{v.value=!0,_.value=null;const o=await A("/api/mypage/payment-history");o.status==="OK"&&o.body?d.value=o.body.paymentHistory??[]:_.value=o.message||"データの取得に失敗しました"}catch{_.value="データの取得中にエラーが発生しました"}finally{v.value=!1}},L=c(()=>
1d.value.length===0?$().year():d.value.reduce((t,m)=>{if(!m.applicationDate)return t;const u=$(new Date(m.applicationDate)).year();return u<t?u:t},Number.POSITIVE_INFINITY)),Y=c(()=>{const o={},t=$().year(),m=L.value;for(let u=t;u>=m;u--)o[`y${u}`]=`${u}年`;return o}),D=c(()=>{const o=T.query.year;if(!o||o==="")return d.value;const t=Number.parseInt(o,10);return d.value.filter(m=>m.applicationDate?$(new Date(m.applicationDate)).year()===t:!1)}),M=c(()=>D.value.slice(0,b.value)),O=c(()=>D.value.length>b.value),E=o=>{const m=o.target.value,u=m?m.replace("y",""):void 0;b.value=V,n.push({query:{...T.query,year:u}})},H=async()=>{const o=b.value;b.value+=V,await _e();const m=document.querySelectorAll(".payment-info")[o];if(m){const u=m.getBoundingClientRect().top+window.scrollY,i=Math.max(0,u-80);window.scrollTo({top:i,behavior:"smooth"})}};return(o,t)=>{const m=W,u=J,i=K,B=Q,w=Ye,k=ye,R=ce,G=Ie;return p(),g("div",$e,[l(m,{"heading-level":"1"},{default:e(()=>[a(r(s(I)("enrollmentAndRenewalHistoryTitle")),1)]),_:1}),P("div",Fe,[l(G,null,{default:e(()=>[l(u,{"is-loading":s(v),message:"読み込み中..."},null,8,["is-loading"]),s(_)&&!s(v)?(p(),f(i,{key:0,class:"mb-24",variant:"error"},{default:e(()=>[a(r(s(_)),1)]),_:1})):y("",!0),!s(v)&&!s(_)&&s(D).length>0?(p(),g("div",he,[l(B,{name:"yearFilter","default-text":"すべて","aria-label":"表示年度",options:s(Y),"show-valid-state":!1,onChange:E},null,8,["options"])])):y("",!0),!s(v)&&!s(_)&&s(D).length===0?(p(),f(i,{key:2,type:"default"},{default:e(()=>[...t[0]||(t[0]=[a("該当するデータはありません",-1)])]),_:1})):y("",!0),!s(v)&&!s(_)&&s(D).length>0?(p(),g(F,{key:3},[(p(!0),g(F,null,ue(s(M),q=>(p(),f(w,{key:q.paymentId,class:"mt-16","payment-info":q,"is-open":!0},null,8,["payment-info"]))),128)),s(O)?(p(),f(R,{key:0,class:"mt-24"},{default:e(()=>[l(k,{variant:"secondary",onClick:H},{default:e(()=>[...t[1]||(t[1]=[a("もっと見る",-1)])]),_:1})]),_:1})):y("",!0)],64)):y("",!0)]),_:1})])])}}}),Ke=j(Le,[["__scopeId","data-v-a1395f27"]]);export{Ke 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.