1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0ce64-55c7-7e43-b67c-5aa41b5c12be")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72717],{75984:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/bulk-checkout",function(){return a(94289)}])},94289:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var s=a(37876),n=a(89099),c=a(14232),o=a(31658);function l(){let e=(0,n.useRouter)(),[t,a]=(0,c.useState)("loading"),l=(0,c.useRef)(null),r=e.isReady?e.query._ptxn:void 0;(0,c.useEffect)(()=>{if(!e.isReady)return;if(!r)return void a("error");let t=!1;return(0,o.Pm)({token:"live_8148ad1c85a5a75d82e1f026e1c",eventCallback:e=>{let t=e?.name||e?.event;"checkout.completed"===t&&a("done"),"checkout.closed"===t&&a(e=>"done"===e?"done":"closed")}}).then(e=>{if(!t){if(!e)return void a("blocked");l.current=e,a("ready")}}).catch(()=>{t||a("blocked")}),()=>{t=!0}},[e.isReady,r]);let i=(0,c.useCallback)(()=>{let e=l.current;if(e&&r){try{e.Checkout.close()}catch{}a("opening");try{e.Checkout.open({transactionId:r})}catch{a("error")}}},[r]);return(0,c.useEffect)(()=>{"ready"===t&&i()},[t,i]),(0,s.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-gray-50",children:(0,s.jsxs)("div",{className:"text-center space-y-4 max-w-md px-4",children:["loading"===t&&(0,s.jsx)("p",{className:"text-gray-500",children:"Loading..."}),"opening"===t&&(0,s.jsx)("p",{className:"text-gray-500",children:"Opening checkout..."}),"done"===t&&(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-2xl font-semibold",children:"Payment completed!"}),(0,s.jsx)("p",{className:"text-gray-500 mt-2",children:"Thank you for your purchase."})]}),"closed"===t&&(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-gray-700",children:"Checkout was closed."}),(0,s.jsx)("button",{onClick:i,className:"rounded-lg bg-black px-6 py-2.5 text-sm font-medium text-white hover:bg-gray-800 transition-colors",children:"Reopen Checkout"})]}),"blocked"===t&&(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-gray-900 font-semibold",children:"Unable to load the payment system"}),(0,s.jsx)("p",{className:"text-gray-500 text-sm leading-relaxed",children:"An ad blocker or privacy extension may be preventing the checkout from loading. Please disable it for this page and try again."}),(0,s.jsx)("button",{onClick:()=>window.location.reload(),className:"rounded-lg bg-black px-6 py-2.5 text-sm font-medium text-white hover:bg-gray-800 transition-colors",children:"Reload Page"})]}),"error"===t&&(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-red-500",children:r?"Failed to open checkout. Please try again.":"Invalid checkout link â transaction ID is missing."}),r&&(0,s.jsx)("button",{onClick:()=>window.location.reload(),className:"rounded-lg bg-black px-6 py-2.5 text-sm font-medium text-white hover:bg-gray-800 transition-colors",children:"Reload Page"})]})]})})}}},e=>{e.O(0,[31658,90636,46593,38792],()=>e(e.s=75984)),_N_E=e.O()}]); 2//# chunkId=01a0ce64-55c7-7e43-b67c-5aa41b5c12be
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.