1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="34a06312-093d-4bbb-917b-b75658f19238",e._sentryDebugIdIdentifier="sentry-dbid-34a06312-093d-4bbb-917b-b75658f19238")}catch(v){}import{cz as e,cI as t,b$ as r,cj as o,c2 as c,ca as n,cs as a,cx as u,d1 as s,d0 as l,cb as i,e1 as d,c3 as y}from"./index.92caaaf3.js";import{L as h}from"./Loading.30bfc3c2.js";const k={class:"creditKey-complete-page container"},f={key:0,id:"creditKey-error"},p={class:"no-transform"},m="The CreditKey checkout could not be completed at this time.",b=e({__name:"CreditKeyCompletePage",setup(e){const b=t` 2 mutation CREDITKEY_COMPLETE($checkoutHashKey: String!, $checkoutToken: String!) { 3 completeCreditKeyCheckout(checkoutHashKey: $checkoutHashKey, checkoutToken: $checkoutToken) { 4 success 5 errors 6 } 7 } 8`,C=r(),K=o(null);return c((async()=>{await async function(){var e,t,r,o,c,n,a,u;try{const s=null!=(r=null==(t=null==(e=C.currentRoute.value)?void 0:e.query)?void 0:t.checkoutHashKey)?r:"";if(!s)throw new Error("No payment id or Checkout Hash Key provided for completing CreditKey checkout.");const l=null==(c=null==(o=C.currentRoute.value)?void 0:o.query)?void 0:c.ckId;if(!l)throw new Error("No ckId returned for completing CreditKey checkout.");const i=await d(b,{checkoutHashKey:s,checkoutToken:l}),{completeCreditKeyCheckout:h}=i;if(null==h?void 0:h.success){y.track("CreditKey Checkout Completed",null);const e=!!(null==(a=null==(n=C.currentRoute.value)?void 0:n.query)?void 0:a.paymentLinkToken);window.location.href=e?C.resolve({name:"paymentLinkConfirmation",params:{checkoutHashKey:s}}).href:C.resolve({name:"confirmation",query:{cypher:(null==h?void 0:h.token)||void 0,checkoutHashKey:s}}).href}else{y.track("CreditKey Checkout Error",null);const e=null!=(u=null==h?void 0:h.error)?u:m;y.sentryCaptureError(e),K.value=e}}catch(v){y.track("CreditKey Checkout Error",null),y.sentryCaptureError(v),K.value=m}}()})),(e,t)=>(n(),a("div",k,[K.value?(n(),a("div",f,[u("h3",p,"An error occurred during CreditKey checkout. "+s(K.value),1),t[0]||(t[0]=u("p",null,[l("Please return to the "),u("a",{class:"accent",href:"/cart"},"cart"),l(" and try again.")],-1))])):(n(),i(h,{key:1,message:"Processing..."}))]))}});export{b as default}; 9//# sourceMappingURL=CreditKeyCompletePage.dd3baf74.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.