1var f=Object.defineProperty;var y=(a,o,t)=>o in a?f(a,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[o]=t;var n=(a,o,t)=>(y(a,typeof o!="symbol"?o+"":o,t),t);import{V as v,u as C,a as b,b as A,L as R,d as c,A as d,h,M as w,J as N,N as P,k as S,O as x,P as k,_ as L,r as l,o as m,g as O,l as $,w as p,T as D,q as g,B as I,v as M}from"./index-4331113b.js";import{C as V}from"./CheckIcon-a25c97be.js";import{r as B}from"./recaptcha-confirm-b88f4b59.js";var T=Object.defineProperty,U=Object.getOwnPropertyDescriptor,z=(a,o,t,s)=>{for(var e=s>1?void 0:s?U(o,t):o,i=a.length-1,r;i>=0;i--)(r=a[i])&&(e=(s?r(o,t,e):r(e))||e);return s&&e&&T(o,t,e),e};let u=class extends v{constructor(){super(...arguments);n(this,"router",C());n(this,"route",b());n(this,"store",A(S));n(this,"is_done",!1);n(this,"isAuthorize",R());n(this,"canRecovery",null)}created(){var i;const t=this.store.state.phoNumber;this.store.commit("phoNumber",null);const s=this.store.state.code||"";this.store.commit("code",null);const e=new URLSearchParams;e.append("con_code",s),e.append("action",((i=this.route.meta)==null?void 0:i.action)||""),this.canRecovery=this.store.getters["CanRecovery/can_recovery"],this.canRecovery===null&&(this.canRecovery=!0),c.post(d+"/v1/phoneConfirm",e).then(()=>{this.store.commit("User/pho_number",t),this.is_done=!0}).catch(r=>{this.store.commit("phoNumber",t),h(r,this,this.route)})}async getMailStatus(){await c.post(`${d}/v1/mailStatus`).then(t=>{this.store.commit("Attributes/_setMailStatus",t.data)}).catch(t=>{h(t,this,this.route)})}async login(){await c.get(`${d}/v1/login`).then(async t=>{const s=t.data.token;this.store.dispatch("Auth/setToken",s),c.defaults.headers.common.Authorization="Bearer "+s;const e=this.store.getters["Auth/payload"],i={agreed_terms_id:e.agreed_terms_id,agreed_privacy_policy_id:e.agreed_privacy_policy_id,las_logined_at:e.las_logined_at,mem_id:e.mem_id,pref:e.pref,status:e.status,account_type:e.account_type};this.store.commit("User/_set",i),w(i.mem_id);const r=e.cli_names?JSON.parse(e.cli_names):{},_={aud:e.aud,cli_names:r,mem_id:e.mem_id,red_url:e.red_url,mail_con_code_send_count:0,phone_con_code_send_count:0};this.store.commit("Session/_set",_),this.is_done=!0}).catch(t=>{h(t,this,this.route)})}async next(){var e;await this.getMailStatus();const t=this.store.getters["Attributes/mail_status"];let s=(e=this.route.meta)==null?void 0:e.next;this.route.name==="register.store"&&(t.registered_member?s="register.auth.photo.face":this.store.getters["Auth/payload"].email_verified&&t.express_email_status==="unmatched"&&(await this.login(),s="register.photo.live")),N()&&s==="register.photo.live"&&(s="register.photo.selfieFace"),this.route.name==="recovery.phone.new.store"&&(t.email_register_status==P.COMMUNICATED?await this.login():s="mypage.auth.mail"),this.router.push({name:s,params:{lang:this.route.params.lang}})}async verify(){const t=this.route.name||"";await B(c,t).catch(s=>{h(s,this,this.route)})}};u=z([x({components:{CheckIcon:V,Loader:k}})],u);const E={class:"loading"};function J(a,o,t,s,e,i){const r=l("CheckIcon"),_=l("Loader");return m(),O("div",E,[$(D,{name:"fade",mode:"out-in"},{default:p(()=>[a.is_done?(m(),g(r,{key:0,onDone:a.next},null,8,["onDone"])):(m(),g(_,{key:1},{default:p(()=>[I(M(a.$t("register_phone_code.progress")),1)]),_:1}))]),_:1})])}const K=L(u,[["render",J],["__scopeId","data-v-176c9b91"]]);export{K as default}; 2//# sourceMappingURL=RegisterPhoneCodeLoading-c1b7e74e.js.map
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.