1import{S as R}from"./step-DgICsk0Q.js";import{F as E,_ as w}from"./SmsAuthFail.vue_vue_type_script_setup_true_lang-C8IkGlwt.js";import{s as f}from"./smsAuthService-CSu5jAcM.js";import{d as M,A as c,av as D,aL as p,a6 as B,H as L,at as P,K as _,i as T,b as F,e as i,w as n,k as v,L as U,J as o,p as V,a as I,ac as y,o as k}from"./FooterGlobal-CMwk0n_C.js";import{s as j}from"./seoService-DVQUAags.js";import{g as q}from"./errorTypes-Bc7dC4DA.js";import"./button-inversion-BgD_8Lfm.js";import"./input-6code-CEjvHDeh.js";import"./focusErrorElement-DEP-vkS7.js";import"./store-DE85qZal.js";import"./icon_window-Csgogddh.js";import"./zendeskService-CthpgaQB.js";import"./typeAdapter-Db3gt6-k.js";import"./formatUtil-Dv0xU7-b.js";import"./AreaSeriesModel-Cei2Zxsx.js";import"./brandService-BzuD5TKY.js";import"./paginatedList-Sl2KZAGC.js";import"./shopService-C3T7nBhD.js";import"./multiLangUtil-Dtr50sz_.js";import"./newsService-BgvHHLqN.js";import"./featureService-Zogehqor.js";import"./campaignService-BbOAe3Yy.js";import"./swiperUtil-9qyB2PjF.js";import"./scrollbar-BJeMHcVq.js";import"./keyboard-ByomWqjc.js";import"./mousewheel-C7BfmIcL.js";import"./searchResultService-CcRdmIBL.js";import"./recentlyViewedProductService-Dy1BvCxr.js";import"./recommendationService-BtEWQmmb.js";/* empty css */import"./moneyUtil-Bo349m4m.js";/* empty css *//* empty css *//* empty css */import"./accordion-reverse-BQHjSbAq.js";import"./useScrollRestoreFallback-CAcdqzPC.js";import"./ModalLanguage.vue_vue_type_style_index_0_lang-yrIqmlWZ.js";import"./perfect-scrollbar-manager-DB632Giz.js";/* empty css */const H={key:1,class:"l-main l-main--gradation l-main--gray o-o1"},J={class:"l-main__inner"},K={class:"p-section-h1"},$={class:"p-section-h1__title"},z={class:"p-section-bg p-section-bg--white"},G={class:"p-section-inner"},O={class:"p-section-h2__title"},Q={class:"p-lead p-lead--l u-bold"},W={class:"p-lead p-lead--l u-align-left u-mb--48"},Ue=M({__name:"SignUpSmsMultiAuth",setup(X){const d=U(),r=c({}),m=c(!1),g=D(p.signUpData),h=B("formCode"),l=c(!1),C=()=>{var t;const e=(t=r.value)==null?void 0:t.expiredDt;return e?y(e).isBefore(y()):!0},S=async e=>{try{if(C()){a(o({key:"valid.expiredVerifCode2"}));return}const t=await f.validatePhoneNoAuthCode({authCode:e.code,authSn:r.value.authSn});p.setSmsAuth(t),await d.replace(_("/register/confirm"))}catch(t){const s=q(t);(s==null?void 0:s.error)==="MemberAuthLimitExceeded"?m.value=!0:(s==null?void 0:s.error)==="MemberAuthCodeExpired"?a(o({key:"valid.expiredVerifCode3"})):a(o({key:"valid.notMatch",args:[o({key:"msg.smallAuthenticationCode"})]}))}},a=e=>{var t;(t=h.value)==null||t.showError(e)},b=async e=>{var t;if(!l.value){l.value=!0;try{r.value=await f.sendSmsAuthCode({phoneNo:g.phone1}),e&&e()}catch(s){V.isAxiosError(s)&&(((t=s.response)==null?void 0:t.data.error)==="SmsRateLimitExceeded"?a(o({key:"valid.smsTooManyRequest"})):m.value=!0)}finally{l.value=!1}}},x=e=>(e==null?void 0:e.substring((e==null?void 0:e.length)-2,e==null?void 0:e.length))??"";return L(async()=>{const e=P.getItem("smsAuthCode");if(p.hasEmailEmpty()||!e||!e.authCode){await d.replace(_("/500"));return}j.applyEmptySeo({key:"msg.smsAuthentication"}),r.value=e.authCode}),(e,t)=>{var u;const s=I("t");return m.value?(k(),T(w,{key:0})):(k(),F("main",H,[i("div",J,[i("section",K,[n(i("h1",$,null,512),[[s,{key:"msg.memberRegistration"}]]),v(R,{current:2,text:["msg.emailRegistration","msg.enterInformation","msg.confirmation","msg.complete"]}),i("div",z,[i("div",G,[n(i("h2",O,null,512),[[s,{key:"msg.smsAuthentication"}]]),n(i("p",Q,null,512),[[s,{key:"msg.lastFourDigitsRegisteredPhone",args:[x(g.phone1.phoneNo)]}]]),n(i("p",W,null,512),[[s,{key:"msg.authenticationCodeSentSmsNotice",args:[((u=r.value)==null?void 0:u.expireMinutes)??5]}]]),v(E,{ref_key:"formCode",ref:h,"aria-label":{key:"aria.returnToRegistrationPage"},"btn-return":{key:"msg.returnToRegistrationPage"},"btn-submit":{key:"msg.submit"},"parent-title":{key:"msg.authenticationCode"},"return-url":"/us/new-regist/input/index.html","submit-url":"/us/new-regist/confirm/index.html",onSubmit:t[0]||(t[0]=A=>S(A)),onReSend:b},null,512)])])])])]))}}});
1export{Ue 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.