PageSourceSearch

https://snapsnap.jp/_nuxt/CErvxzcy.js

js snapsnap.jp collected 2026-10-04 08:43:27 UTC 4,842 bytes, 1 lines download raw bytes

1import{g as I,H as O,o as $,l as f,D as i,E as v,x as e,F as w,z as T,C as s,t as p,r as m,_ as P,n as l,M as N,X as b,q as g,k as C}from"./DI3PNiO9.js";import{af as R}from"./CNOTg4N2.js";import{t as B,h as V,c}from"./Xw51q4Lw.js";import{S as G}from"./CHjrH4BF.js";import"./CRuDVgv9.js";import"./eozJKf9a.js";import"./B1W1FnVL.js";import"./s8xyuD0G.js";import"./DV_zImrl.js";import"./COzxLwH9.js";import"./DvOG9iyB.js";import"./By8fn14q.js";const L={class:"paypayError"},M={key:0,class:"loading"},U={key:0,class:"tpointError"},q={class:"linkButtonContainer"},A={class:"return-top"},H=I({__name:"Error",props:{orderId:{}},emits:["handleIsSystemErrorFlagChange"],setup(_,{emit:t}){const o=_,y=t,{$snapsnapGateway:u}=O(),E=m(!1),n=m(!0),d=m(!0),x=m(!0),S=m(!1);async function F(a){try{return await new R({snapsnapGateway:u}).execute(a)}catch{d.value=!1,n.value=!1,y("handleIsSystemErrorFlagChange")}}return $(async()=>{for(;d.value;){const a=await F(o.orderId);a&&a.status==="CREATING"?(x.value&&(setTimeout(()=>{S.value=!0},2e4),x.value=!1),S.value&&(d.value=!1,y("handleIsSystemErrorFlagChange")),await new Promise(r=>setTimeout(r,5e3))):a&&(a.status==="NEW"||a.status==="CREATED")?(d.value=!1,y("handleIsSystemErrorFlagChange")):a&&a.status==="ERROR"?(d.value=!1,n.value=!1,a.errorMsg&&a.errorMsg.match(/tpoint/g)&&(E.value=!0)):(d.value=!1,y("handleIsSystemErrorFlagChange"))}}),(a,r)=>{const k=P;return l(),f("div",L,[n.value?(l(),f("div",M,[i(v(B)),r[0]||(r[0]=e("p",{class:"processing"},"処理中",-1))])):(l(),f(w,{key:1},[r[3]||(r[3]=e("h1",null,"注文に失敗しました",-1)),E.value?(l(),f("p",U,"Vポイント残高が足りません。")):T("",!0),r[4]||(r[4]=e("p",{class:"caution"},[s(" 大変お手数ですが、時間を置いてから、PayPay支払いがキャンセルされていることをご確認ください。 "),e("br"),s(" もう一度、カートから注文手続きをしてください。 ")],-1)),e("div",q,[i(v(V),{class:"button purchase",to:"/order",type:"primary"},{default:p(()=>[...r[1]||(r[1]=[s("支払い方法選択に戻る",-1)])]),_:1})]),e("div",A,[i(k,{to:"/"},{default:p(()=>[...r[2]||(r[2]=[s("トップページ",-1)])]),_:1})])],64))])}}}),D=c(H,[["__scopeId","data-v-20f4b3c7"]]),z={},W={class:"paypayError"},X={class:"paymentExpired"},j={class:"return-top"};function J(_,t){const o=P;return l(),f("div",W,[t[6]||(t[6]=e("h1",null,"PayPayでエラーが発生しました",-1)),t[7]||(t[7]=e("p",{class:"caution"},"注文は確定していません。",-1)),e("p",X,[t[1]||(t[1]=s(" 支払い有効期限(5分)を過ぎた可能性があります。 ",-1)),t[2]||(t[2]=e("br",null,null,-1)),t[3]||(t[3]=s(" もう一度、 ",-1)),i(o,{to:"/cart",class:"cartLink"},{default:p(()=>[...t[0]||(t[0]=[s("カート",-1)])]),_:1}),t[4]||(t[4]=s(" から注文手続きをしてください。 ",-1))]),e("div",j,[i(o,{to:"/"},{default:p(()=>[...t[5]||(t[5]=[s("トップページ",-1)])]),_:1})])])}const K=c(z,[["render",J],["__scopeId","data-v-de5a5d43"]]),Q={},Y={class:"paypayError"},Z={class:"notFountText"},h={class:"return-top"};function tt(_,t){const o=P;return l(),f("div",Y,[t[7]||(t[7]=e("h1",null,"PayPayでエラーが発生しました",-1)),t[8]||(t[8]=e("p",{class:"notFountText"},[s(" 以下の可能性があります。 "),e("br"),s(" ・支払い有効期限(5分)を過ぎた "),e("br"),s(" ・支払いコード無効 ")],-1)),e("p",Z,[t[1]||(t[1]=s(" PayPayでお支払いがお済みでない方は、もう一度、 ",-1)),i(o,{to:"/cart",class:"link"},{default:p(()=>[...t[0]||(t[0]=[s("カート",-1)])]),_:1}),t[2]||(t[2]=s(" から注文手続きをしてください。 ",-1))]),e("p",null,[t[4]||(t[4]=s(" PayPayで支払い完了された方は、 ",-1)),i(o,{to:"/orders",class:"link"},{default:p(()=>[...t[3]||(t[3]=[s("注文履歴",-1)])]),_:1}),t[5]||(t[5]=s(" をご確認ください。 ",-1))]),e("div",h,[i(o,{to:"/"},{default:p(()=>[...t[6]||(t[6]=[s("トップページ",-1)])]),_:1})])])}const st=c(Q,[["render",tt],["__scopeId","data-v-28fa0857"]]),ft=I({__name:"error",setup(_){const t=N(),o=m(!1);b(()=>{let n;return u.value==="paymentExpired"?n="PayPayでエラーが発生しました":u.value==="systemError"?n="システムエラーが発生しております":u.value==="notFoundError"?n="PayPayでエラーが発生しました(支払いコード無効)":n="注文に失敗しました",{title:n,meta:[{hid:"og:title",property:"og:title",content:n}]}});const y=C(()=>parseInt(t.params.orderId,10)),u=C(()=>t.query.status),E=()=>{o.value=!0};return(n,d)=>u.value==="paymentExpired"?(l(),g(v(K),{key:0})):u.value==="notFoundError"?(l(),g(v(st),{key:1})):u.value==="systemError"||o.value?(l(),g(v(G),{key:2})):(l(),g(v(D),{key:3,"order-id":y.value,onHandleIsSystemErrorFlagChange:E},null,8,["order-id"]))}});
1export{ft 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.