PageSourceSearch

https://founderstory.net/assets/PublicationSuccessPage-Dn_WK3JN.js

js founderstory.net collected 2026-10-02 23:18:36 UTC 3,673 bytes, 1 lines download raw bytes

1import{r as d,j as e}from"./react-vendor-BPbn954S.js";import{e as p,L as u}from"./router-DQ6mY92b.js";import{a as f}from"./publicationApi-Dmz7GUHq.js";import{r as h,I as g,d as b}from"./icons-BMKKeYko.js";import"./vendor-DXFwZorC.js";function _(){const[x]=p(),i=x.get("checkout_id")||"",[t,s]=d.useState({kind:"pending"});return d.useEffect(()=>{let n=!0,r=0;const o=i&&sessionStorage.getItem(`publication:${i}`)||"";if(!i||!o){s({kind:"pending",message:"We cannot display private order details in this browser, but your confirmation and questionnaire link will arrive by email after Bachs verifies payment."});return}const l=async()=>{var c,m;try{const a=await f(i,o);if(!n)return;if(a.confirmed){(c=window.gtag)==null||c.call(window,"event",a.pricingType==="launch_offer"?"launch_offer_payment_confirmed":"standard_publication_payment_confirmed"),s({kind:"confirmed",path:a.questionnairePath});return}if(["payment_failed","expired"].includes(a.status)){(m=window.gtag)==null||m.call(window,"event",a.status==="expired"?"publication_checkout_expired":"publication_payment_failed"),s({kind:"failed",message:a.status==="expired"?"This checkout expired before payment was confirmed.":"Bachs could not confirm this payment."});return}}catch{r>2&&s({kind:"pending",message:"Confirmation is taking a little longer. We will email your secure questionnaire link as soon as payment is verified."})}r+=1,n&&r<12&&setTimeout(l,3e3)};return l(),()=>{n=!1}},[i]),e.jsx("main",{className:"min-h-[80vh] bg-[#f6f1e9] text-[#17120e] pt-28 px-5 pb-20",children:e.jsx("div",{className:"max-w-2xl mx-auto bg-white border border-black/10 rounded-xl p-7 sm:p-12 shadow-[0_24px_60px_rgba(45,29,11,.08)]",children:t.kind==="confirmed"?e.jsxs(e.Fragment,{children:[e.jsx(h,{size:38,className:"text-green-700"}),e.jsx("p",{className:"text-[#c80a0a] text-xs tracking-[.2em] font-semibold mt-7",children:"ORDER CONFIRMED"}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold tracking-[-.045em] mt-3",children:"Payment confirmed—let’s tell your story."}),e.jsx("p",{className:"text-black/60 leading-relaxed mt-5",children:"Your Founder Story Publication is confirmed. Your secure questionnaire link has also been emailed to you."}),t.path&&e.jsx(u,{to:t.path,className:"inline-flex items-center mt-8 bg-[#d80a0a] text-white px-6 py-4 rounded-sm font-semibold",children:"Complete My Questionnaire"}),e.jsx("p",{className:"text-sm text-black/48 mt-6",children:"Your 48-hour editorial timeline begins after the complete questionnaire and required images are received."})]}):t.kind==="failed"?e.jsxs(e.Fragment,{children:[e.jsx(g,{size:38,className:"text-[#c80a0a]"}),e.jsx("h1",{className:"text-4xl font-bold tracking-[-.04em] mt-6",children:"Payment not confirmed."}),e.jsx("p",{className:"text-black/60 mt-4",children:t.message}),e.jsx(u,{to:"/share-your-story#publication-order",className:"inline-block mt-7 font-semibold underline",children:"Return to publication page"})]}):e.jsxs(e.Fragment,{children:[e.jsx(b,{size:38,className:"text-[#c80a0a] animate-pulse"}),e.jsx("p",{className:"text-[#c80a0a] text-xs tracking-[.2em] font-semibold mt-7",children:"SECURE CONFIRMATION"}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold tracking-[-.045em] mt-3",children:"Confirming your payment…"}),e.jsx("p",{className:"text-black/60 leading-relaxed mt-5",children:t.message||"Bachs is securely confirming your payment with our server. This usually takes only a moment. Please keep this page open."}),e.jsx("p",{className:"text-sm text-black/48 mt-6",children:"You will receive an email with your questionnaire link once verification is complete."})]})})})}export{_ as PublicationSuccessPage};

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.