PageSourceSearch

https://www.article.com/assets/PaymentLinkConfirmationPage.94a82aa7.js

js article.com collected 2026-10-01 10:19:58 UTC 4,349 bytes, 2 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="a5f0eeb6-1a41-4d38-89f0-3950c9810eee",e._sentryDebugIdIdentifier="sentry-dbid-a5f0eeb6-1a41-4d38-89f0-3950c9810eee")}catch(T){}import{c7 as e,cz as a,c5 as n,di as t,c1 as l,en as i,d6 as r,gJ as s,f7 as o,c3 as d,de as u,ca as c,cs as y,cx as v,cf as f,ce as m,d0 as p,c$ as g,d1 as _,cc as h}from"./index.92caaaf3.js";import{L as b}from"./LinkButton.405b1d13.js";import{g as w,i as k,c as C,a as L}from"./paymentLinkService.21d80dcd.js";import{f as P}from"./formatCurrency.45aff23e.js";const z={class:"confirmation"},I={key:0,class:"loading-screen"},x={key:1,class:"error-screen"},j={key:2,class:"complete-screen"},B={class:"row"},D={key:0,class:"row"};var E=e(a({__name:"PaymentLinkConfirmationPage",setup(e){n({title:"Payment Link Confirmation"});const a=t(),E=l((()=>a.params.checkoutHashKey)),A=i("loading"),O=i(null);let S=0,U=null;const H=l((()=>{var e,a,n;const t=r.getCountryByCurrencyCode(null==(e=O.value)?void 0:e.currency).code;return P(t,(null!=(n=null==(a=O.value)?void 0:a.amountCents)?n:0)/100)})),J=l((()=>{var e;return w(null==(e=O.value)?void 0:e.balanceCents)})),K=l((()=>{var e;const a=r.getCountryByCurrencyCode(null==(e=O.value)?void 0:e.currency).code;return P(a,J.value/100)})),W=l((()=>{var e;return k(null==(e=O.value)?void 0:e.status)})),$=l((()=>W.value&&J.value>0)),{data:q,init:F}=s("payment-link-full-balance-confirmation-text","We’ve sent confirmation to the email address used to place the order. Our local delivery partner will be in touch to schedule a day and time for your delivery."),{data:G,init:M}=s("payment-link-partial-balance-confirmation-text","After your outstanding balance is paid in full, we’ll send you a confirmation email with a link to view your order details with tracking information in your Article account."),N=l((()=>$.value?G.value:q.value));async function Q(){var e;const a=await C(E.value);(null==(e=a.confirmPaymentLink)?void 0:e.success)&&a.confirmPaymentLink.paymentLinkInfo?(O.value=a.confirmPaymentLink.paymentLinkInfo,L(O.value.status)?A.value="error":k(O.value.status)&&(A.value="ready")):A.value="error"}async function R(){if("loading"===A.value){if(S>=10)return A.value="error",void(U=null);S++,U=setTimeout((async()=>{try{await Q()}catch(T){d.sentryCaptureError(T)}await R()}),500*S)}else U=null}return o((async()=>{Promise.all([F(),M()]);try{if(!E.value)return void(A.value="error");await Q(),await R()}catch(T){d.sentryCaptureError(T),A.value="error"}})),u((()=>{U&&(clearTimeout(U),U=null)})),(e,a)=>(c(),y("div",z,["loading"===A.value?(c(),y("div",I,[a[1]||(a[1]=v("div",{class:"loader large"},null,-1)),f(g,{element:"span",size:"display6"},{default:m((()=>a[0]||(a[0]=[p("Loading...",-1)]))),_:1,__:[0]})])):"error"===A.value?(c(),y("div",x,[f(g,{element:"h2",size:"display5",weight:"bold"},{default:m((()=>a[2]||(a[2]=[p("Payment Error",-1)]))),_:1,__:[2]}),f(g,{element:"span",size:"display8",weight:"regular"},{default:m((()=>a[3]||(a[3]=[p("Unable to confirm payment. Please contact us for assistance.",-1)]))),_:1,__:[3]}),a[4]||(a[4]=v("a",{class:"contact-link",href:"/contact"},"Contact Us",-1))])):"ready"===A.value?(c(),y("div",j,[f(g,{element:"h2",size:"display5",weight:"bold"},{default:m((()=>a[5]||(a[5]=[p("Payment received!",-1)]))),_:1,__:[5]}),f(g,{element:"span",size:"display8",weight:"regular"},{default:m((()=>[p(_(N.value),1)])),_:1}),v("div",B,[f(g,{class:"heading",weight:"bold",size:"display7",element:"div"},{default:m((()=>a[6]||(a[6]=[p("Payment received",-1)]))),_:1,__:[6]}),f(g,{weight:"bold",size:"display7",element:"div"},{default:m((()=>[p(_(H.value),1)])),_:1})]),$.value?(c(),y("div",D,[f(g,{class:"heading",weight:"bold",size:"display7",element:"div"},{default:m((()=>a[7]||(a[7]=[p("Outstanding Balance",-1)]))),_:1,__:[7]}),f(g,{weight:"bold",size:"display7",element:"div"},{default:m((()=>[p(_(K.value),1)])),_:1})])):h("",!0),f(b,{class:"contact-button",to:{name:"home"}},{default:m((()=>a[8]||(a[8]=[p("Continue Shopping",-1)]))),_:1,__:[8]})])):h("",!0)]))}}),[["__scopeId","data-v-20bc54be"]]);export{E as default};
2//# sourceMappingURL=PaymentLinkConfirmationPage.94a82aa7.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.