PageSourceSearch

https://www.article.com/assets/CreditKeyCompletePage.44fcf3ce.js

js article.com collected 2026-09-24 08:50:28 UTC 2,490 bytes, 9 lines download raw bytes

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]="1aa0ad19-b362-45dc-a439-c41ffa59b638",e._sentryDebugIdIdentifier="sentry-dbid-1aa0ad19-b362-45dc-a439-c41ffa59b638")}catch(C){}import{cz as e,cI as t,b$ as r,cj as o,c2 as c,ca as a,cs as n,cx as u,d1 as s,d0 as l,cb as i,e1 as d,c3 as y}from"./index.061e774e.js";import{L as h}from"./Loading.4f1e3a9f.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.",v=e({__name:"CreditKeyCompletePage",setup(e){const v=t`
2  mutation CREDITKEY_COMPLETE($checkoutHashKey: String!, $checkoutToken: String!) {
3    completeCreditKeyCheckout(checkoutHashKey: $checkoutHashKey, checkoutToken: $checkoutToken) {
4      success
5      errors
6    }
7  }
8`,K=r(),g=o(null);return c((async()=>{await async function(){var e,t,r,o,c,a,n,u;try{const s=null!=(r=null==(t=null==(e=K.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=K.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(v,{checkoutHashKey:s,checkoutToken:l}),{completeCreditKeyCheckout:h}=i;if(null==h?void 0:h.success){y.track("CreditKey Checkout Completed",null);const e=!!(null==(n=null==(a=K.currentRoute.value)?void 0:a.query)?void 0:n.paymentLinkToken);window.location.href=e?K.resolve({name:"paymentLinkConfirmation",params:{checkoutHashKey:s}}).href:K.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),g.value=e}}catch(C){y.track("CreditKey Checkout Error",null),y.sentryCaptureError(C),g.value=m}}()})),(e,t)=>(a(),n("div",k,[g.value?(a(),n("div",f,[u("h3",p,"An error occurred during CreditKey checkout. "+s(g.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))])):(a(),i(h,{key:1,message:"Processing..."}))]))}});export{v as default};
9//# sourceMappingURL=CreditKeyCompletePage.44fcf3ce.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.