PageSourceSearch

https://maisondequeen.com/_nuxt/auth.CFk97mxs.js

js maisondequeen.com collected 2026-10-02 19:45:47 UTC 4,804 bytes, 1 lines download raw bytes

1import{_ as v}from"./Modal.D-6wzDfu.js";import{u as E}from"./useErrorHandler.D-pSod8-.js";import{f as J,g as k,h as w,r as C,o as T,i as D,w as H,j as _,c as U,a as l,t as q,F as B,d as O,k as M,P as g,l as $,m as G}from"./entry.woA2EO7W.js";import{S as b}from"./signup.0AtBfwuH.js";import{g as i,S as j,a as r,s as A}from"./storageKey.DvW6XA1X.js";import{u as X}from"./useSnackbar.D_W0AUTk.js";import"./index.CS7R4WcE.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";const Y={key:0,class:"text-lg mb-5"},F=l("p",{class:"text-lg mb-2.5"},"プランの決済",-1),L=l("span",null,"次のプランの決済を実施しています",-1),z={class:"my-5 py-[15px] px-2.5 border-2 border-solid border-grayExtraDark rounded-[10px]"},K=l("p",{class:"mb-2.5 text-custom-red"},"自動で画面が切り替わります",-1),Q=l("div",{class:"text-xs"},[l("span",null,[O("ご本人様確認のため、"),l("br",{class:"sm:hidden block"}),O("クレジットカード会社が提供する")]),l("br"),l("span",null,"認証画面に自動遷移する場合がございます")],-1),as=J({__name:"auth",setup(W){const c=k(),m=w(),{alert:y}=X(),h=typeof m.query.AccessID=="string"?m.query.AccessID:"",S=typeof m.query.authType=="string"?m.query.authType:"",x=typeof m.query.subscriptionPlanId=="string"?m.query.subscriptionPlanId:"",N=i(j),o=N?JSON.parse(N):void 0,n=o?o.plans.map(s=>s.subscriptionPlanId):[],P=C(!1);let a=n.findIndex(s=>s===x);const f=o==null?void 0:o.plans[a],I=o==null?void 0:o.plans[a-1],R=async(s,e)=>{const t=e?`?authType=subscriptionPlan&subscriptionPlanId=${encodeURIComponent(e).replace(/!/g,"%21")}`:`?authType=lastSubscriptionPlan&subscriptionPlanId=${encodeURIComponent(n[n.length-1]).replace(/!/g,"%21")}`,u={subscriptionPlanId:s,shippingAddressId:o==null?void 0:o.shippingAddressId,isRequiredAuthentication:!0,retUrl:`${window.location.origin}/signup/auth${t}`},p=await G(u);return p?(location.href=p,!1):!0},d=(s,e,t)=>{if(t)e?(t.successPlans.push(s),t.isDone=!0):t.errorPlans.push(s),A(r,JSON.stringify(t),900);else{const p={successPlans:[],errorPlans:[],paymentType:"gmoCredit",isDone:!1};e?(p.successPlans.push(s),p.isDone=!0):p.errorPlans.push(s),A(r,JSON.stringify(p),900)}};return(async()=>{if(!o){c.replace("/signup/subscription/form"),y("セッションが切れました。再度お手続きをお願いします");return}if(!h){c.replace("/signup/subscription/form"),y("認証コードが不正です");return}if(a===-1){c.replace("/signup/subscription/form"),y("指定されたプランIDが不正です");return}P.value=!0;try{if(S==="credit"){await M(h);let s=!0;do try{if(s=await R(n[a],n[a+1]),s){const e=i(r),t=e?JSON.parse(e):void 0;d(f,!0,t)}}catch{const t=i(r),u=t?JSON.parse(t):void 0;d(f,!1,u)}finally{if(!s)break;if(n.length===a+1){const e=i(r),t=e?JSON.parse(e):void 0;t&&t.successPlans.length>0?c.replace(`/signup/subscription/done?status=${b.AUTH}`):(y("決済に失敗しました。決済情報を確認してください。"),c.replace(`/signup/subscription/form?type=${g.GMO_CREDIT}&status=${b.AUTH}&plans=${n.join(",")}`));break}s&&a++}while(s);return}if(S==="subscriptionPlan"){try{await $(h);const s=i(r),e=s?JSON.parse(s):void 0;d(I,!0,e)}catch{const e=i(r),t=e?JSON.parse(e):void 0;d(I,!1,t)}finally{let s=!0;do try{if(s=await R(n[a],n[a+1]),s){const e=i(r),t=e?JSON.parse(e):void 0;d(f,!0,t)}}catch{const t=i(r),u=t?JSON.parse(t):void 0;d(f,!1,u)}finally{if(!s)break;if(n.length===a+1){const e=i(r),t=e?JSON.parse(e):void 0;t&&t.successPlans.length>0?c.replace(`/signup/subscription/done?status=${b.AUTH}`):(y("決済に失敗しました。決済情報を確認してください。"),c.replace(`/signup/subscription/form?type=${g.GMO_CREDIT}&status=${b.AUTH}&plans=${n.join(",")}`));break}s&&a++}while(s)}return}if(S==="lastSubscriptionPlan"){try{await $(h);const s=i(r),e=s?JSON.parse(s):void 0;d(f,!0,e)}catch{const e=i(r),t=e?JSON.parse(e):void 0;d(f,!1,t)}finally{const s=i(r),e=s?JSON.parse(s):void 0;e&&e.successPlans.length>0?c.replace(`/signup/subscription/done?status=${b.AUTH}`):(y("決済に失敗しました。決済情報を確認してください。"),c.replace(`/signup/subscription/form?type=${g.GMO_CREDIT}&status=${b.AUTH}&plans=${n.join(",")}`))}return}}catch(s){if(S==="credit"){E(s),c.replace(`/signup/subscription/form?type=${g.GMO_CREDIT}&status=${b.AUTH}&plans=${n.join(",")}`);return}}finally{P.value=!1}})(),(s,e)=>{const t=v;return T(),D(t,{"is-open":_(P),"is-closable":!1,class:"text-center"},{default:H(()=>{var u,p;
1return[_(S)==="credit"?(T(),U("p",Y,"カード情報の登録をしています")):(T(),U(B,{key:1},[F,L,l("div",z,q(_(S)==="lastSubscriptionPlan"?(u=_(f))==null?void 0:u.subscriptionPlanName:(p=_(I))==null?void 0:p.subscriptionPlanName),1)],64)),K,Q]}),_:1},8,["is-open"])}}});export{as 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.