PageSourceSearch

https://p-bandai.com/assets/ChangeEmailStep2-8iDgaRX2.js

js p-bandai.com collected 2026-09-24 22:01:01 UTC 3,394 bytes, 1 lines download raw bytes

1import{c as w}from"./changeEmailService-BBHtG5BQ.js";import{d as M,A as p,H as R,a3 as T,b as B,e as a,w as n,k as v,ak as I,at as L,K as d,a as q,L as D,p as E,J as C,l as N,o as V,h as P,aP as F,an as H}from"./FooterGlobal-CMwk0n_C.js";import{I as J}from"./input-6code-CEjvHDeh.js";import{B as K}from"./button-inversion-BgD_8Lfm.js";import{s as b}from"./store-DE85qZal.js";import{f as x}from"./focusErrorElement-DEP-vkS7.js";const U={class:"l-main l-main--gradation o-mc1"},$={class:"l-main__inner"},j={class:"p-section-h1"},z={class:"p-section-h1__title"},G={class:"p-section-inner"},O={class:"p-section-h2__title"},Q={class:"p-lead p-lead--l u-align-left u-mb--48"},W={class:"c-form-6code",onsubmit:"return false"},X={class:"c-form-6code__resend u-mt-fixed--12"},Y={class:"p-button__wrap"},re=M({__name:"ChangeEmailStep2",setup(Z){const m=D(),o=p({}),h=p(),_=p(""),f=p(),S=async()=>{var e;try{const t={email:o.value.email,resend:!0};await w.requestAuthCode(t),b("codeSent"),await y()}catch(t){E.isAxiosError(t)&&(((e=t.response)==null?void 0:e.data.error)==="TooManyRequest"?alert(C({key:"valid.mailResendTooManyRequest"})):await m.replace(d("/500")))}},A=async()=>{var t,r,s,i,l,c;(t=h.value)==null||t.checkInput();const e=(r=h.value)==null?void 0:r.authCode;if(!e){await x();return}try{await w.modifyEmailByAuthCode({authCode:e,authSn:(s=o.value.authCode)==null?void 0:s.authSn})}catch(u){E.isAxiosError(u)&&(((i=u.response)==null?void 0:i.data.error)==="MemberAuthLimitExceeded"?await m.replace(d("/500")):((l=u.response)==null?void 0:l.data.error)=="MemberAuthCodeInvalid"?await g(C(F("valid.notMatch",["msg.authenticationCode"]))):((c=u.response)==null?void 0:c.data.error)=="MemberAuthCodeExpired"&&await g(C({key:"valid.expiredVerifCode2"})),await x());return}await m.push(d("/mypage/userinfo")),b("emailAddressSetting")},g=async e=>{_.value="",await H(),_.value=e},y=async()=>{const e=L.getItem("authCode");if(!e){await m.replace(d("/500"));return}o.value.email=e.email,o.value.authCode=e.authCode},k=async e=>{var t;(t=e.target)!=null&&t.closest("#reSend")&&(e.preventDefault(),await S())};return R(async()=>{var t;await y();const e=(t=f.value)==null?void 0:t.parentElement;e==null||e.addEventListener("click",k)}),T(()=>{var t;const e=(t=f.value)==null?void 0:t.parentElement;e==null||e.removeEventListener("click",k)}),(e,t)=>{var i,l,c;const r=N("router-link"),s=q("t");return V(),B("main",U,[a("div",$,[a("section",j,[n(a("h1",z,null,512),[[s,{key:"msg.emailAddressSetting"}]]),a("div",G,[n(a("h2",O,null,512),[[s,{key:"msg.authenticationCodeSentToEmail",args:[(i=o.value)==null?void 0:i.email]}]]),n(a("p",Q,null,512),[[s,{key:"msg.enterReceivedCode",args:[(c=(l=o.value)==null?void 0:l.authCode)==null?void 0:c.expireMinutes]}]]),a("form",W,[v(J,{ref_key:"inputCode",ref:h,"error-message":_.value,title:{key:"msg.authenticationCode"}},null,8,["error-message"]),a("div",X,[n(a("p",{ref_key:"reSend",ref:f,class:"p-lead p-lead--m u-align-left u-mb--0"},null,512),[[s,{key:"msg.smsResendCodeNotice"}]])]),v(K,null,{default:I(()=>[a("div",Y,[n(a("button",{class:"p-button p-button--black","data-id":"submit",type:"submit",onClick:t[0]||(t[0]=u=>A())},null,512),[[s,{key:"msg.submit"}]]),n(v(r,{to:P(d)("/mypage/mailaddress"),class:"p-button p-button--white u-notation--default"},null,8,["to"]),[[s,{key:"msg.returnToEmailEntry"}]])])]),_:1})])])])])])}}});export{re 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.