PageSourceSearch

https://ai-website-builder--office283.replit.app/assets/DiscoverSales-Cz-sW3QL.js

js ai-website-builder--office283.replit.app collected 2026-10-03 03:50:03 UTC 16,084 bytes, 1 lines download raw bytes

1import{r as n,j as e,y as L,t as H,u as _}from"./index-DHsSAi4B.js";import{u as q}from"./index.esm-DKLbIUxP.js";import{t as O}from"./zod-CmrAkluU.js";import{l as Y,E as W,u as R,a as J,P as K}from"./react-stripe.esm-Dclg0GQo.js";import{l as A}from"./andrew_parr_logo_1250x215R_1781948052575-DeV56Lik.js";import{h as M}from"./andrew-parr-academy-hero-background_1767455344662-DM3_8JbQ.js";import{B as P}from"./button-B5oDHdd_.js";import{I as h}from"./input-Dfv5CNPE.js";import{L as p}from"./label-Cmk8f5dH.js";import{C as S}from"./checkbox-V5wXltfh.js";import{s as U}from"./discoverAuth-gJ1h11o_.js";import{E as V}from"./eye-BYsVZiiL.js";import{P as z}from"./play-BN4jlTMr.js";import{B as G}from"./book-open-CF-yuMHw.js";import{C as T}from"./check-CiEXVFjF.js";import{S as I}from"./shield-UBxKyQUb.js";import{A as $}from"./arrow-right-dUQ2q1nc.js";import{A as D}from"./arrow-left-qAOtEfhf.js";import{C as Q}from"./credit-card-DIUAWngz.js";import{L as F}from"./lock-B1mCGQuI.js";import{ar as X,_ as E,aF as u}from"./types-TjQ6qzEV.js";const Z=[{num:"1",title:"What Hypnosis Really Is — And What It Isn't",desc:"Forget the stage shows and Hollywood myths. Discover what hypnosis actually is and why it's far more natural than most people realise."},{num:"2",title:"How the Mind Actually Works",desc:"The conscious and subconscious mind explained in a way that finally makes sense — and shows you exactly where hypnosis fits in."},{num:"3",title:"Your First Experience of Hypnosis",desc:"Andrew guides you through a genuine hypnotic induction so you know exactly what it feels like from the inside."},{num:"4",title:"Using Hypnosis to Create Real Change",desc:"How hypnotherapy helps people overcome fears, habits and limitations — and how you can start using these tools yourself."}],ee=X({firstName:u().min(1,"First name is required"),lastName:u().min(1,"Last name is required"),email:u().email("Valid email is required"),password:u().min(8,"Password must be at least 8 characters"),confirmPassword:u().min(1,"Please confirm your password"),gdprConsent:E().refine(a=>a===!0,"You must agree to the privacy policy"),marketingConsent:E().default(!1)}).refine(a=>a.password===a.confirmPassword,{message:"Passwords do not match",path:["confirmPassword"]});function se({formData:a,clientSecret:f,onBack:y}){const m=R(),l=J(),[d,i]=n.useState(!1),[g,o]=n.useState(null),[,j]=_(),c=async k=>{if(k.preventDefault(),!m||!l)return;i(!0),o(null);const{error:x}=await l.submit();if(x){o(x.message||"Payment failed"),i(!1);return}const w=`${window.location.origin}/discover/confirmation`,{error:t,paymentIntent:r}=await m.confirmPayment({elements:l,confirmParams:{return_url:w},redirect:"if_required"});if(t){o(t.message||"Payment failed"),i(!1);return}if(r?.status==="succeeded"||r?.status==="processing"){try{const b=await(await fetch("/api/discover/confirm-payment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paymentIntentId:r.id,firstName:a.firstName,lastName:a.lastName,email:a.email})})).json();b.token&&U(b.token)}catch(N){console.error("Post-payment error:",N)}j("/discover-members/welcome")}else r?.status==="requires_payment_method"?(o("Your payment was declined. Please try a different card."),i(!1)):r&&(o(`Payment not completed. Please contact [email protected] quoting status: ${r.status}`),i(!1))};return e.jsxs("form",{onSubmit:c,className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-6 md:p-8 shadow-sm border border-border",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-secondary/20 flex items-center justify-center",children:e.jsx(Q,{className:"w-5 h-5 text-secondary"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"font-serif text-xl font-semibold text-primary",children:"Secure Payment"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Your details are encrypted and secure"})]})]}),e.jsx("div",{className:"bg-muted/30 rounded-lg p-4 mb-6",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-primary",children:"Discover Hypnosis — The Andrew Parr® Way"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Lifetime access · 4 modules · 8 lessons"})]}),e.jsx("p",{className:"text-xl font-bold text-primary ml-4",children:"£97"})]})}),e.jsx(K,{options:{layout:"tabs",wallets:{applePay:"auto",googlePay:"auto"}}}),g&&e.jsxs("div",{className:"bg-red-50 text-red-600 p-4 rounded-lg mt-4 text-sm flex items-start gap-2",children:[e.jsx(L,{className:"w-4 h-4 flex-shrink-0 mt-0.5"}),g]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs(P,{type:"button",variant:"outline",onClick:y,className:"flex-1",disabled:d,children:[e.jsx(D,{className:"w-4 h-4 mr-2"})," Back"]}
1),e.jsxs(P,{type:"submit",disabled:!m||d,className:"flex-1 h-12 text-base font-serif",style:{background:"linear-gradient(to bottom, #F5DCA0 0%, #C79A34 100%)",color:"#2B1A00"},children:[d?"Processing...":"Pay £97 & Get Access",!d&&e.jsx(F,{className:"w-4 h-4 ml-2"})]})]}),e.jsxs("div",{className:"flex items-center justify-center gap-6 text-xs text-muted-foreground pt-2",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(I,{className:"w-3.5 h-3.5"})," SSL Encrypted"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(F,{className:"w-3.5 h-3.5"})," Powered by Stripe"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(T,{className:"w-3.5 h-3.5"})," Lifetime Access"]})]})]})}function ve(){const[a,f]=n.useState("details"),[y,m]=n.useState(null),[l,d]=n.useState(null),[i,g]=n.useState(null),[o,j]=n.useState(null),{register:c,handleSubmit:k,setValue:x,watch:w,formState:{errors:t,isSubmitting:r}}=q({resolver:O(ee),defaultValues:{gdprConsent:!1,marketingConsent:!1}}),N=w("gdprConsent"),b=w("marketingConsent");n.useEffect(()=>{fetch("/api/stripe/publishable-key").then(s=>s.json()).then(s=>{s.publishableKey&&m(Y(s.publishableKey))}).catch(console.error)},[]);const B=async s=>{j(null);try{const v=await fetch("/api/discover/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),C=await v.json();if(!v.ok)throw new Error(C.error||"Failed to initialise checkout");H("checkout_started",{product:"discover",plan:"one_time",source_route:"/discover"}),g(s),d(C.clientSecret),f("payment"),window.scrollTo({top:0,behavior:"smooth"})}catch(v){j(v.message||"Something went wrong. Please try again.")}};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("nav",{className:"sticky top-0 z-50 w-full border-b bg-background/80 backdrop-blur-md",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 md:px-6 py-3 flex items-center justify-between",children:[e.jsx("img",{src:A,alt:"Andrew Parr Academy",className:"h-8 w-auto"}),a==="details"&&e.jsx("a",{href:"/discover-members/login",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Already a member? Log in"})]})}),a==="details"&&e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"relative overflow-hidden py-20 md:py-28",style:{background:"linear-gradient(135deg, #293C56 0%, #1a2840 100%)"},children:[e.jsx("div",{className:"absolute inset-0 opacity-10",children:e.jsx("img",{src:M,alt:"","aria-hidden":!0,width:"1408",height:"768",decoding:"async",fetchPriority:"high",className:"w-full h-full object-cover"})}),e.jsxs("div",{className:"relative max-w-4xl mx-auto px-4 md:px-6 text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 bg-secondary/20 text-secondary border border-secondary/30 px-4 py-1.5 rounded-full text-sm font-medium mb-6",children:[e.jsx(V,{className:"w-4 h-4"})," For the curious — not just the committed"]}),e.jsxs("h1",{className:"font-serif text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-6 leading-tight",children:["Discover Hypnosis —",e.jsx("br",{}),e.jsx("span",{style:{color:"#C9AC82"},children:"The Andrew Parr® Way"})]}),e.jsx("p",{className:"text-white/80 text-xl md:text-2xl mb-4 max-w-2xl mx-auto leading-relaxed",children:"Find out what hypnosis really is, how it works, and what it feels like — from the inside."}),e.jsx("p",{className:"text-white/60 text-lg mb-10 max-w-xl mx-auto",children:"Four video modules. Eight lessons. Lifetime access. Everything you need to go from curious to genuinely informed."}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-6 text-white/70 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(z,{className:"w-4 h-4 text-secondary"})," 4 video modules"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(G,{className:"w-4 h-4 text-secondary"})," 8 lessons"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T,{className:"w-4 h-4 text-secondary"})," Lifetime access"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(I,{className:"w-4 h-4 text-secondary"})," Instant access on purchase"]})]})]})]}),e.jsx("section",{className:"py-16 bg-muted/30",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 md:px-6",children:[e.jsx("h2",{className:"font-serif text-2xl md:text-3xl font-bold text-primary text-center mb-10",children:"What You'll Discover"}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:Z.map(s=>e.jsx("div",{className:"bg-white rounded-2xl p-6 border border-border shadow-sm",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-full flex-shrink-0 flex items-center justify-center font-serif font-bold text-lg",style:{background:"linear-gradient(to bottom, #F5DCA0 0%, #C79A34 100%)",color:"#2B1A00"},children:s.num}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-serif font-semibold text-primary mb-2",children:s.title}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:s.desc})]})]})},s.num))})]})}),e.jsx("section",{className:"py-16 bg-primary text-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 md:px-6 flex flex-col md:flex-row items-center gap-10",children:[e.jsx("img",{src:"/andrew-parr.webp",alt:"Andrew Parr",className:"w-40 h-40 rounded-full object-cover object-top flex-shrink-0 border-4 border-secondary",loading:"lazy",decoding:"async"}),e.jsxs("div",{children:[e.jsx("h2",{className:"font-serif text-2xl font-bold text-secondary mb-3",children:"From Andrew"}),e.jsx("p",{className:"text-white/80 leading-relaxed mb-3",children:`"Most people who are interested in hypnosis never get past the myths. They're curious, but they don't know 
1where to start — or they've watched one too many stage shows and aren't sure what to believe.`}),e.jsx("p",{className:"text-white/80 leading-relaxed",children:`This course is the place to start. It's honest, it's practical, and by the end you'll have experienced a real hypnotic induction for yourself. That tends to answer most of the questions."`}),e.jsx("p",{className:"text-secondary font-serif font-semibold mt-4",children:"Andrew Parr®"})]})]})}),e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"max-w-2xl mx-auto px-4 md:px-6",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("p",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wider mb-2",children:"Get Instant Access"}),e.jsxs("h2",{className:"font-serif text-3xl md:text-4xl font-bold text-primary mb-3",children:["Join For ",e.jsx("span",{style:{color:"#C9AC82"},children:"£97"})]}),e.jsx("p",{className:"text-muted-foreground",children:"One-time payment. Lifetime access. No subscriptions."})]}),e.jsxs("form",{onSubmit:k(B),className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-6 md:p-8 shadow-sm border border-border space-y-5",children:[e.jsx("h3",{className:"font-serif text-lg font-semibold text-primary",children:"Create Your Account"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(p,{htmlFor:"firstName",children:"First name"}),e.jsx(h,{id:"firstName",...c("firstName"),placeholder:"First name"}),t.firstName&&e.jsx("p",{className:"text-red-500 text-xs",children:t.firstName.message})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(p,{htmlFor:"lastName",children:"Last name"}),e.jsx(h,{id:"lastName",...c("lastName"),placeholder:"Last name"}),t.lastName&&e.jsx("p",{className:"text-red-500 text-xs",children:t.lastName.message})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(p,{htmlFor:"email",children:"Email address"}),e.jsx(h,{id:"email",type:"email",...c("email"),placeholder:"[email protected]"}),t.email&&e.jsx("p",{className:"text-red-500 text-xs",children:t.email.message})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(p,{htmlFor:"password",children:"Choose a password"}),e.jsx(h,{id:"password",type:"password",...c("password"),placeholder:"At least 8 characters"}),t.password&&e.jsx("p",{className:"text-red-500 text-xs",children:t.password.message})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(p,{htmlFor:"confirmPassword",children:"Confirm password"}),e.jsx(h,{id:"confirmPassword",type:"password",...c("confirmPassword"),placeholder:"Repeat your password"}),t.confirmPassword&&e.jsx("p",{className:"text-red-500 text-xs",children:t.confirmPassword.message})]}),e.jsxs("div",{className:"space-y-3 pt-2",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(S,{id:"gdpr",checked:N,onCheckedChange:s=>x("gdprConsent",!!s)}),e.jsxs("label",{htmlFor:"gdpr",className:"text-sm text-muted-foreground cursor-pointer leading-snug",children:["I agree to the ",e.jsx("a",{href:"/privacy",className:"underline text-primary",children:"Privacy Policy"})," and ",e.jsx("a",{href:"/terms",className:"underline text-primary",children:"Terms"}),". ",e.jsx("span",{className:"text-red-500",children:"*"})]})]}),t.gdprConsent&&e.jsx("p",{className:"text-red-500 text-xs",children:t.gdprConsent.message}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(S,{id:"marketing",checked:b,onCheckedChange:s=>x("marketingConsent",!!s)}),e.jsx("label",{htmlFor:"marketing",className:"text-sm text-muted-foreground cursor-pointer leading-snug",children:"Keep me updated with tips, training and news from Andrew Parr® Academy (optional)."})]})]})]}),o&&e.jsxs("div",{className:"bg-red-50 text-red-600 p-4 rounded-lg text-sm flex items-start gap-2",children:[e.jsx(L,{className:"w-4 h-4 flex-shrink-0 mt-0.5"}),o]}),e.jsxs(P,{type:"submit",disabled:r,className:"w-full h-14 text-lg font-serif",style:{background:"linear-gradient(to bottom, #F5DCA0 0%, #C79A34 100%)",color:"#2B1A00"},children:[r?"Setting up...":"Continue to Payment",!r&&e.jsx($,{className:"w-5 h-5 ml-2"})]})]})]})})]}),a==="payment"&&y&&l&&i&&e.jsxs("div",{className:"max-w-2xl mx-auto px-4 md:px-6 py-12",children:[e.jsxs("button",{onClick:()=>f("details"),className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground mb-6 transition-colors",children:[e.jsx(D,{className:"w-4 h-4"})," Back to your details"]}
1),e.jsx(W,{stripe:y,options:{clientSecret:l,appearance:{theme:"stripe"}},children:e.jsx(se,{formData:i,clientSecret:l,onBack:()=>f("details")})})]}),e.jsx("footer",{className:"border-t py-8 mt-8",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 md:px-6 flex flex-col md:flex-row items-center justify-between gap-4 text-sm text-muted-foreground",children:[e.jsx("img",{src:A,alt:"Andrew Parr Academy",className:"h-6 w-auto opacity-60"}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("a",{href:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"}),e.jsx("a",{href:"/terms",className:"hover:text-foreground transition-colors",children:"Terms"}),e.jsx("a",{href:"/contact",className:"hover:text-foreground transition-colors",children:"Contact"})]}),e.jsxs("p",{children:["© ",new Date().getFullYear()," Andrew Parr® Academy"]})]})})]})}export{ve as default};

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.