PageSourceSearch

https://messagematch.ai/_next/static/chunks/app/pricing/page-7c348cf42eb4d766.js

js messagematch.ai collected 2026-10-05 13:59:22 UTC 7,021 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6907],{33:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>f});var r=a(5155),s=a(2115),n=a(1978),o=a(5494),i=a(6874),l=a.n(i),d=a(2518),c=a(4541),u=a(5695),m=a(7481),h=a(4165),x=a(285),g=a(2523),p=a(5057);function f(){let[e,t]=(0,s.useState)("lifetime"),{user:a}=(0,c.A)();(0,u.useRouter)();let{toast:i}=(0,m.dj)(),[f,b]=(0,s.useState)(!1),[w,y]=(0,s.useState)(!1),[k,j]=(0,s.useState)(""),[N,v]=(0,s.useState)(""),[P,C]=(0,s.useState)(""),S=async(e,t)=>{b(!0);try{let a="".concat(window.location.origin,"/api/v1/stripe/create-checkout-session");console.log("Sending request to:",a);let r=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({priceId:null,isLifetimePlan:!0,successUrl:window.location.origin+"/dashboard",cancelUrl:window.location.origin+"/pricing",email:e,name:t})});if(!r.ok){let e=await r.json();throw Error(e.error||"Failed to create checkout session")}let s=await r.json();if(console.log("Checkout session created:",s),s.url)console.log("Redirecting to:",s.url),window.location.href=s.url;else throw Error("No checkout URL returned")}catch(e){console.error("Error creating checkout session:",e),i({title:"Error",description:e.message||"Failed to start checkout process",variant:"destructive"}),b(!1),y(!1)}};return(0,r.jsxs)("main",{className:"min-h-screen bg-background",children:[(0,r.jsx)(o.A,{}),(0,r.jsx)("section",{className:"pt-32 pb-16 px-4 bg-gradient-to-b from-white via-white to-cyan-50 dark:bg-gradient-to-br dark:from-green-600/10 dark:to-emerald-800/10",children:(0,r.jsxs)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"max-w-7xl mx-auto text-center",children:[(0,r.jsx)("h1",{className:"text-5xl md:text-6xl font-bold mb-6 text-foreground dark:bg-gradient-to-r dark:from-green-400 dark:to-emerald-500 dark:bg-clip-text dark:text-transparent",children:"Transparent, Simple Pricing"}),(0,r.jsx)("p",{className:"text-xl md:text-2xl text-muted-foreground mb-8 max-w-3xl mx-auto",children:"Choose the plan that's right for your needs, with no hidden fees or surprises."})]})}),(0,r.jsx)("section",{className:"py-16 px-4 bg-background",children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,r.jsx)(d.A,{})})}),(0,r.jsx)("section",{className:"py-20 px-4 bg-background dark:bg-gradient-to-b dark:from-slate-900 dark:via-slate-800 dark:to-slate-900",children:(0,r.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,r.jsx)("h2",{className:"text-3xl font-bold text-center mb-12 text-foreground dark:bg-gradient-to-r dark:from-green-400 dark:to-emerald-500 dark:bg-clip-text dark:text-transparent",children:"Frequently Asked Questions"}),(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-muted/50 dark:bg-slate-800/80 rounded-xl shadow-lg p-8",children:[(0,r.jsx)("h3",{className:"text-xl font-semibold mb-2 text-foreground",children:"Can I switch between plans?"}),(0,r.jsx)("p",{className:"text-muted-foreground",children:"Yes, you can upgrade or downgrade your plan at any time. When upgrading, you'll be prorated for the remainder of your billing cycle. When downgrading, the new rate will take effect at the next billing cycle."})]}),(0,r.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-muted/50 dark:bg-slate-800/80 rounded-xl shadow-lg p-8",children:[(0,r.jsx)("h3",{className:"text-xl font-semibold mb-2 text-foreground",children:"What are impressions?"}),(0,r.jsx)("p",{className:"text-muted-foreground",children:"An impression is counted each time a widget is loaded on a page. If a visitor views multiple pages with your widgets, each page view counts as a separate impression."})]}),(0,r.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-muted/50 dark:bg-slate-800/80 rounded-xl shadow-lg p-8",children:[(0,r.jsx)("h3",{className:"text-xl font-semibold mb-2 text-foreground",children:"Is there a free trial?"}),(0,r.jsx)("p",{className:"text-muted-foreground",children:"Yes! Our free plan allows you to test the platform with no time limit. When you're ready for more features and higher usage limits, you can upgrade to one of our paid plans."})]})]})]})}),(0,r.jsx)("section",{className:"py-20 px-4 bg-background dark:bg-gradient-to-b dark:from-slate-900 dark:to-slate-950",children:(0,r.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,r.jsx)("h2",{className:"text-4xl font-bold mb-6 text-foreground dark:bg-gradient-to-r dark:from-green-400 dark:to-emerald-500 dark:bg-clip-text dark:text-transparent",children:"Ready to Get Started?"}),(0,r.jsx)("p",{className:"text-xl mb-8 text-muted-foreground",children:"Start with our free tier and upgrade as your needs grow. No charge today."}),(0,r.jsx)(l(),{href:"/auth/register",className:"bg-green-600 text-white hover:bg-green-700 py-4 px-10 text-xl rounded-lg shadow-lg transition-all inline-block",children:"Create Your Account"})]})}),(0,r.jsx)(h.lG,{open:w,onOpenChange:y,children:(0,r.jsxs)(h.Cf,{className:"sm:max-w-[425px]",children:[(0,r.jsxs)(h.c7,{children:[(0,r.jsx)(h.L3,{children:"Almost there!"}),(0,r.jsx)(h.rr,{children:"Enter your email to continue to checkout. We'll use this to send your receipt and access information."})]}),(0,r.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-4 items-center gap-4",children:[(0,r.jsx)(p.J,{htmlFor:"email",className:"text-right",children:"Email"}),(0,r.jsx)(g.p,{id:"email",type:"email",value:k,onChange:e=>j(e.target.value),className:"col-span-3",placeholder:"[email protected]"}),P&&(0,r.jsx)("p",{className:"text-red-500 text-sm col-span-3 col-start-2",children:P})]}),(0,r.jsxs)("div",{className:"grid grid-cols-4 items-center gap-4",children:[(0,r.jsx)(p.J,{htmlFor:"name",className:"text-right",children:"Name"}),(0,r.jsx)(g.p,{id:"name",value:N,onChange:e=>v(e.target.value),className:"col-span-3",placeholder:"Your Name (Optional)"})]})]}),(0,r.jsxs)(h.Es,{children:[(0,r.jsx)(x.$,{variant:"outline",onClick:()=>y(!1),children:"Cancel"}),(0,r.jsx)(x.$,{onClick:()=>
1{if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k))return void C("Please enter a valid email address");C(""),y(!1),S(k,N)},children:"Continue to Checkout"})]})]})})]})}},1126:(e,t,a)=>{Promise.resolve().then(a.bind(a,33))},5695:(e,t,a)=>{"use strict";var r=a(8999);a.o(r,"notFound")&&a.d(t,{notFound:function(){return r.notFound}}),a.o(r,"useParams")&&a.d(t,{useParams:function(){return r.useParams}}),a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(t,{useSearchParams:function(){return r.useSearchParams}})}},e=>{e.O(0,[1537,1978,6874,4277,9167,5306,5494,2518,8441,5964,7358],()=>e(e.s=1126)),_N_E=e.O()}]);

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.