PageSourceSearch

https://loveacrossborders.com/assets/pricing-BpJkxO2N.js

js loveacrossborders.com collected 2026-10-08 14:16:10 UTC 3,504 bytes, 1 lines download raw bytes

1import{u as y,r as x,j as e,L as f,s as b,t as h}from"./index-hs4a0mYW.js";import{I as k,C as u,a as g,N as o,b as N,G as j,R as w,c as v,d as C,e as A,f as S}from"./brand-BVAz6htY.js";import{A as $}from"./arrow-left-bJxZenjV.js";import{C as E}from"./check-rFTGGwOD.js";function L(){const r=y(),[i,t]=x.useState(null),l=async()=>{t("membership");const{data:c}=await b.auth.getSession(),n=c.session?.access_token;if(!n){h.error("Please sign in first."),r({to:"/auth",search:{mode:"signin",redirect:"/pricing"}}),t(null);return}try{const s=await fetch("/api/public/stripe-checkout",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({kind:"membership"})}),a=await s.json();if(!s.ok||!a.url)throw new Error(a.error||"Checkout failed");window.location.href=a.url}catch(s){h.error(s instanceof Error?s.message:"Could not start checkout"),t(null)}};return e.jsxs("div",{className:"min-h-screen",style:{background:u,color:k,fontFamily:"'Inter', system-ui, sans-serif"},children:[e.jsx("header",{style:{borderBottom:`1px solid ${g}`},children:e.jsx("div",{className:"mx-auto max-w-4xl px-8 py-5",children:e.jsxs(f,{to:"/",className:"inline-flex items-center gap-2 text-sm",style:{color:o},children:[e.jsx($,{className:"h-4 w-4","aria-hidden":!0})," Talkable Books"]})})}),e.jsxs("main",{className:"mx-auto max-w-4xl px-8 py-16",children:[e.jsx("h1",{style:{fontFamily:"'Playfair Display', serif",color:o,fontSize:44,lineHeight:1.1},children:"One book, or every book."}),e.jsx("p",{className:"mt-4 text-base",style:{color:`${N}`,maxWidth:580},children:"The first conversation with any book is on the house. After that, choose how far you want to go."}),e.jsxs("div",{className:"mt-12 grid gap-6 md:grid-cols-2",children:[e.jsx(p,{title:"A single book",price:"$9",sub:"One-time. Yours forever.",bullets:["Unlimited conversations with one book","Speak with the Narrator or the Author","Save passages as Marginalia cards"],cta:"Buy from a book page",onClick:()=>r({to:"/library"}),loading:!1,accent:j}),e.jsx(p,{title:"Library Membership",price:"$49",sub:"Per year. Every book, present and future.",bullets:["Every book in the library, unlimited","Every new book added, automatically","Living Footnotes: ask one question across all books"],cta:i?"Opening checkout...":"Become a member",onClick:l,loading:i==="membership",accent:w,featured:!0})]}),e.jsx("p",{className:"mt-10 text-xs",style:{color:`${v}`},children:"Payments processed by Stripe. Cancel a membership any time. A book never invents a fact it does not contain."})]})]})}function p({title:r,price:i,sub:t,bullets:l,cta:c,onClick:n,loading:s,accent:a,featured:m}){return e.jsxs("div",{className:"p-8 bg-card",style:{border:`1px solid ${m?a:`${C}`}`,borderTopWidth:m?4:1,borderTopColor:a},children:[e.jsx("h2",{style:{fontFamily:"'Playfair Display', serif",fontSize:26,color:o},children:r}),e.jsx("p",{className:"mt-2",style:{fontSize:40,color:o,fontFamily:"'Playfair Display', serif"},children:i}),e.jsx("p",{className:"text-sm",style:{color:`${A}`},children:t}),e.jsx("ul",{className:"mt-6 space-y-2",children:l.map(d=>e.jsxs("li",{className:"flex items-start gap-2 text-sm",style:{color:`${S}`},children:[e.jsx(E,{className:"h-4 w-4 mt-0.5 shrink-0",style:{color:a},"aria-hidden":!0}),e.jsx("span",{children:d})]},d))}),e.jsx("button",{onClick:n,disabled:s,className:"mt-8 w-full py-3 text-sm tracking-wide disabled:opacity-60",style:{background:o,color:u},children:c})]})}export{L as component};

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.