1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2077],{20005:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(73943).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},76459:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(73943).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},12966:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(73943).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},14299:(e,s,t)=>{t.d(s,{A:()=>h});var a=t(74848),l=t(96540),n=t(20005),r=t(82042),i=t(11934),c=t(71884),d=t(39622),o=t(86715),x=t(45959),m=t(90568);let h=()=>{let[e,s]=(0,l.useState)("weekly"),[t,h]=(0,l.useState)(!1),{user:u,userData:f}=(0,i.J)(),{openSignupPopup:p}=(0,x.w)(),j=(0,o.useRouter)(),N={weekly:{id:0,title:"TRY FOR $0.99",subtitle:"<strong>Unlimited Access</strong> to QuizCat",renewalPrice:"$5.99/wk",savingsPercent:"45%"},"3-month":{id:1,originalPrice:"$72.99",price:"$39.99",subtitle:"Save <strong>$33</strong> with SEMESTER PLAN",renewalPrice:"Billed every 3 months",savingsPercent:"60%"}},b=async()=>{if(!u){p("/upgrade?plan=".concat(N[e].id));return}h(!0);let s=f.customerID||null;if((0,m.r)("subscribe-attempt",{user:u.uid,plan:N[e].id}),!s){let e=await fetch("/api/stripe/createcustomer",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("aaRwTXQ0engJ6cZ6RpVeQDFHPR2FmS0IWFfJfQLnbO1hx22qDV0uha8GY7PnwHgjB9Rv20Lbmry8hHdTBDe4Ppn59j01lZjclBMdhQbi3lqnTZCElZaS0DX-AZoE8lUItfGSMa1cMXNPouIpXKHVNcKmPIdxnYH5zvwpoDdC2GLlSCGiAAdRMxK!Z?2IxWLzJheSBOY!S3Le2HR-VfQIPeYPlRfYYZuVWlB-Im2R!l9Ye!8dgUAR9EFBd")},body:JSON.stringify({firstName:f.firstName||"",lastName:f.lastName||"",email:f.email})}),t=(await e.json()).cid;await (0,c.mZ)((0,c.H9)(d.db,"users",u.uid),{customerID:t}),await (0,c.BN)((0,c.H9)(d.db,"cids",t),{userID:u.uid}),s=t}let t=await fetch("/api/stripe/newcheckout",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("aaRwTXQ0engJ6cZ6RpVeQDFHPR2FmS0IWFfJfQLnbO1hx22qDV0uha8GY7PnwHgjB9Rv20Lbmry8hHdTBDe4Ppn59j01lZjclBMdhQbi3lqnTZCElZaS0DX-AZoE8lUItfGSMa1cMXNPouIpXKHVNcKmPIdxnYH5zvwpoDdC2GLlSCGiAAdRMxK!Z?2IxWLzJheSBOY!S3Le2HR-VfQIPeYPlRfYYZuVWlB-Im2R!l9Ye!8dgUAR9EFBd")},body:JSON.stringify({cid:s,id:N[e].id,userid:u.uid})}),a=(await t.json()).url;j.push(a)};return(0,a.jsxs)("div",{className:"max-w-lg mx-auto w-full p-6 lg:p-8",children:[(0,a.jsxs)("div",{className:"text-center mb-12",children:[(0,a.jsx)("h1",{className:"text-4xl font-bold mb-4",children:"Choose Your Plan"}),(0,a.jsx)("p",{className:"text-xl text-gray-600",children:"Start learning smarter today"})]}),(0,a.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg ",children:[(0,a.jsx)("div",{className:"w-full flex justify-center text-center",children:(0,a.jsx)("div",{className:"max-w-sm bg-gray-200 px-5 text-sm rounded rounded-b-lg",children:(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:N[e].subtitle}})})}),(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsxs)("div",{className:"text-center mb-6",children:["weekly"===e?(0,a.jsx)("h2",{className:"text-5xl font-bold",children:N.weekly.title}):(0,a.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,a.jsx)("span",{className:"text-gray-400 line-through text-2xl",children:N["3-month"].originalPrice}),(0,a.jsx)("span",{className:"text-4xl font-bold",children:N["3-month"].price})]}),(0,a.jsx)("div",{className:"p-2 rounded-lg inline-block",children:(0,a.jsxs)("p",{className:"text-sm text-gray-600 flex items-center gap-1 text-xs sm:text-sm",children:[(0,a.jsx)("span",{className:"text-yellow-500 text-lg",children:"â¡"}),(0,a.jsx)(function(){let e=new Date,s=new Date(e);s.setDate(e.getDate()+1);let t=s.toLocaleDateString("en-US",{month:"long",day:"numeric"});return(0,a.jsxs)(a.Fragment,{children:["Offer valid until ",(0,a.jsx)("strong",{children:t})]})},{})]})})]}),(0,a.jsx)("button",{onClick:b,className:"w-full bg-[#5b6bff] text-white py-4 rounded-xl font-bold mb-8 hover:bg-[#4a5aff] transition-colors text-lg shadow-md hover:shadow-lg transform hover:-translate-y-0.5 transition-all",children:t?(0,a.jsx)("span",{className:"loader"}):"Get Started"}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-y-3 gap-x-4 mb-8 sm:grid-cols-2 lg:grid-cols-2",children:[["Instant","Study Materials"],["5M+","Quizzes Created"],["Powered by","Advanced AI"],["100%","Original Content"],["Trusted by","400K+ Students"],["Learn","Anywhere, Anytime"]].map((e,s)=>{let[t,l]=e;return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"w-5 h-5 rounded-full bg-black flex items-center justify-center flex-shrink-0",children:(0,a.jsx)(n.A,{className:"w-3 h-3 text-white"})}),(0,a.jsxs)("span",{className:"text-sm",children:[(0,a.jsx)("strong",{children:t})," ",l]})]},s)})}),(0,a.jsxs)("p",{className:"text-center text-xs text-gray-500 mb-8",children:["Cancel Anytime | Satisfaction Guarantee | ",N[e].renewalPrice]}),(0,a.jsx)("div",{className:"flex justify-between items-center border-t pt-2",children:(0,a.jsxs)("div",{className:"flex space-x-4",children:[(0,a.jsx)(r.eG,{size:32,className:"text-[#1A1F71]"}),(0,a.jsx)(r.vDk,{size:32,className:"text-[#EB001B]"}),(0,a.jsx)(r.BIm,{size:32,className:"text-[#2E77BB]"}),(0,a.jsx)(r.W60,{size:32,className:"text-[#5F6368]"}),(0,a.jsx)(r.xtw,{size:32,className:"text-black"})]})})]})]})]})}},2077:(e,s,t)=>{t.d(s,{A:()=>S});var a=t(74848),l=t(96540),n=t(91660),r=t(20005),i=t(12966),c=t(82042),d=t(56486),o=t(29965),x=t.n(o),m=t(11934),h=t(45959),u=t(86715),f=t(71884),p=t(39622);let j=()=>{let[e,s]=(0,l.useState)(null),{user:t,userData:n}=(0,m.J)(),{openSignupPopup:o}=(0,h.w)(),j=(0,u.useRouter)(),N={monthly:{id:4,name:"Monthly Access"},semester:{id:5,name:"Semester Access"}},b=async e=>{if(!t){o("/upgrade?plan=".concat(N[e].id));return}s(e);try{let s=(null==n?void 0:n.customerID)||null;if(!s){let e=await fetch("/api/stripe/createcustomer",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("aaRwTXQ0engJ6cZ6RpVeQDFHPR2FmS0IWFfJfQLnbO1hx22qDV0uha8GY7PnwHgjB9Rv20Lbmry8hHdTBDe4Ppn59j01lZjclBMdhQbi3lqnTZCElZaS0DX-AZoE8lUItfGSMa1cMXNPouIpXKHVNcKmPIdxnYH5zvwpoDdC2GLlSCGiAAdRMxK!Z?2IxWLzJheSBOY!S3Le2HR-VfQIPeYPlRfYYZuVWlB-Im2R!l9Ye!8dgUAR9EFBd")},body:JSON.stringify({firstName:(null==n?void 0:n.firstName)||"",lastName:(null==n?void 0:n.lastName)||"",email:null==n?void 0:n.email})});s=(await e.json()).cid,await (0,f.mZ)((0,f.H9)(p.db,"users",t.uid),{customerID:s}),await (0,f.BN)((0,f.H9)(p.db,"cids",s),{userID:t.uid})}let a=await fetch("/api/stripe/newcheckout",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("aaRwTXQ0engJ6cZ6RpVeQDFHPR2FmS0IWFfJfQLnbO1hx22qDV0uha8GY7PnwHgjB9Rv20Lbmry8hHdTBDe4Ppn59j01lZjclBMdhQbi3lqnTZCElZaS0DX-AZoE8lUItfGSMa1cMXNPouIpXKHVNcKmPIdxnYH5zvwpoDdC2GLlSCGiAAdRMxK!Z?2IxWLzJheSBOY!S3Le2HR-VfQIPeYPlRfYYZuVWlB-Im2R!l9Ye!8dgUAR9EFBd")},body:JSON.stringify({cid:s,id:N[e].id,userid:t.uid})}),l=await a.json();j.push(l.url)}catch(e){console.error("Error during checkout:",e),s(null)}};return(0,a.jsxs)("div",{className:"max-w-6xl mx-auto p-6",children:[(0,a.jsxs)("div",{className:"text-center mb-12",children:[(0,a.jsx)("h1",{className:"text-4xl font-bold mb-4",children:"Choose Your Plan"}),(0,a.jsx)("p",{className:"text-xl text-gray-600",children:"Start learning smarter today"})]}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-8 items-center",children:[(0,a.jsx)("div",{className:"relative rounded-2xl bg-white shadow-lg hover:shadow-xl transition-all duration-300 border border-gray-100",children:(0,a.jsxs)("div",{className:"p-8",children:[(0,a.jsxs)("div",{className:"text-center mb-6",children:[(0,a.jsx)("div",{className:"w-full flex justify-center",children:(0,a.jsx)("div",{className:"bg-[#5b6bff]/10 rounded-full px-4 py-1 mb-3 max-w-xs",children:(0,a.jsx)("span",{className:"text-[#5b6bff] font-medium",children:"24-Hour Free Trial"})})}),(0,a.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"Monthly Access"}),(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)("span",{className:"text-4xl font-bold text-[#5b6bff]",children:"Free Trial"})}),(0,a.jsx)("span",{className:"text-sm text-gray-600",children:"Rebills at $14.99 / Month"})]}),(0,a.jsx)("button",{onClick:()=>!e&&b("monthly"),disabled:"monthly"===e,className:"w-full ".concat("monthly"===e?"bg-[#5b6bff]":"bg-white"," border-2 border-[#5b6bff] text-[#5b6bff] py-4 rounded-xl font-bold mb-8 hover:bg-[#5b6bff] hover:text-white transition-all transform hover:-translate-y-0.5 ").concat("monthly"===e?"cursor-not-allowed opacity-80":""),children:"monthly"===e?(0,a.jsx)("span",{className:"loader "}):"Start For Free"}),(0,a.jsx)("div",{className:"space-y-4",children:["⨠Create Unlimited AI Study Materials","\uD83D\uDCF1 Access on All Your Devices","\uD83D\uDCCA Track Your Learning Progress","\uD83E\uDD16 Basic AI Study Tools","\uD83D\uDCAC Standard Support Acce
1ss"].map((e,s)=>(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#5b6bff] flex items-center justify-center flex-shrink-0 mt-1",children:(0,a.jsx)(r.A,{className:"w-3 h-3 text-white"})}),(0,a.jsx)("span",{className:"text-gray-700",children:e})]},s))})]})}),(0,a.jsxs)("div",{className:"relative rounded-2xl bg-gradient-to-b from-[#fff8f3] to-white shadow-xl hover:shadow-2xl transition-all duration-300 border-2 border-[#ff7849]",children:[(0,a.jsxs)("div",{className:"w-full px-4 py-2 flex items-center justify-between gap-2 bg-orange-50/50 rounded-t-2xl border-b border-orange-100",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex -space-x-3",children:["/users/u1.png","/users/u2.png","/users/u3.png"].map((e,s)=>(0,a.jsx)("div",{className:"w-6 h-6 rounded-full border-2 border-white overflow-hidden bg-gray-200",children:(0,a.jsx)(x(),{src:e,alt:"User ".concat(s+1),width:24,height:24,className:"w-full h-full object-cover"})},s))}),(0,a.jsxs)("div",{className:"text-sm",children:[(0,a.jsx)("span",{className:"font-semibold",children:"5.3K+"}),(0,a.jsx)("span",{className:"text-gray-600 hidden sm:inline",children:" students joined today!"})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(d.P.div,{className:"w-2 h-2 rounded-full bg-orange-500",animate:{opacity:[1,.5,1],scale:[1,1.2,1]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"}}),(0,a.jsx)("span",{className:"text-xs text-gray-600",children:"Live now"})]})]}),(0,a.jsxs)("div",{className:"p-8 pt-4",children:[(0,a.jsx)("div",{className:"flex justify-center w-full pb-2",children:(0,a.jsxs)("div",{className:"bg-[#ff7849]/10 rounded-full px-4 py-1 flex items-center gap-2 max-w-fit",children:[(0,a.jsx)(i.A,{className:"w-4 h-4 text-[#ff7849]"}),(0,a.jsx)("span",{className:"text-[#ff7849] font-medium text-sm",children:"BEST VALUE"}),(0,a.jsx)(i.A,{className:"w-4 h-4 text-[#ff7849]"})]})}),(0,a.jsxs)("div",{className:"text-center mb-6",children:[(0,a.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"Semester Access"}),(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("span",{className:"text-4xl font-bold text-[#ff7849]",children:"$29.99"}),(0,a.jsx)("span",{className:"text-lg text-gray-600",children:" / 3 months"})]}),(0,a.jsxs)("div",{className:"text-[#ff7849] font-medium",children:[(0,a.jsx)("span",{className:"text-gray-500 line-through mr-2",children:"$44.97"}),(0,a.jsx)("span",{className:"text-[#ff7849]",children:"Get 1 Month for free!"})]})]}),(0,a.jsx)("button",{onClick:()=>!e&&b("semester"),disabled:"semester"===e,className:"w-full bg-[#ff7849] text-white py-4 rounded-xl font-bold mb-8 hover:bg-[#ff6830] transition-all shadow-md hover:shadow-lg transform hover:-translate-y-0.5 ".concat("semester"===e?"cursor-not-allowed opacity-80":""),children:"semester"===e?(0,a.jsx)("span",{className:"loader "}):"Get Semester Access"}),(0,a.jsx)("div",{className:"space-y-4",children:["\uD83C\uDFAF Personalized Study Path with AI","\uD83C\uDFA7 Convert Any Text to Audio Lessons","\uD83E\uDD16 Advanced AI Flashcard Generation","\uD83D\uDCA1 Smart Quiz Creation & Analysis","⡠Priority 24/7 Support","\uD83D\uDCF1 Download for Offline Learning"].map((e,s)=>(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#ff7849] flex items-center justify-center flex-shrink-0 mt-1",children:(0,a.jsx)(r.A,{className:"w-3 h-3 text-white"})}),(0,a.jsx)("span",{className:"text-gray-700 font-medium",children:e})]},s))})]})]})]}),(0,a.jsxs)("div",{className:"mt-12 text-center",children:[(0,a.jsx)("div",{className:"mb-6 p-4 bg-white rounded-xl shadow-sm inline-block",children:(0,a.jsxs)("div",{className:"flex justify-center space-x-6",children:[(0,a.jsx)(c.eG,{size:32,className:"text-[#1A1F71]"}),(0,a.jsx)(c.vDk,{size:32,className:"text-[#EB001B]"}),(0,a.jsx)(c.BIm,{size:32,className:"text-[#2E77BB]"}),(0,a.jsx)(c.W60,{size:32,className:"text-[#5F6368]"}),(0,a.jsx)(c.xtw,{size:32,className:"text-black"})]})}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Secure Payment ⢠Instant Access ⢠100% Satisfaction Guaranteed"})]})]})};var N=t(90568),b=t(76459);let g=()=>{let[e,s]=(0,l.useState)(null),{user:t,userData:n}=(0,m.J)(),{openSignupPopup:i}=(0,h.w)(),o=(0,u.useRouter)(),j={monthly:{id:3,name:"Monthly Access"}},N=async e=>{if(!t){i("/upgrade?plan=".concat(j[e].id));return}s(e);try{let s=(null==n?void 0:n.customerID)||null;if(!s){let e=await fetch("/api/stripe/createcustomer",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("aaRwTXQ0engJ6cZ6RpVeQDFHPR2FmS0IWFfJfQLnbO1hx22qDV0uha8GY7PnwHgjB9Rv20Lbmry8hHdTBDe4Ppn59j01lZjclBMdhQbi3lqnTZCElZaS0DX-AZoE8lUItfGSMa1cMXNPouIpXKHVNcKmPIdxnYH5zvwpoDdC2GLlSCGiAAdRMxK!Z?2IxWLzJheSBOY!S3Le2HR-VfQIPeYPlRfYYZuVWlB-Im2R!l9Ye!8dgUAR9EFBd")},body:JSON.stringify({firstName:(null==n?void 0:n.firstName)||"",lastName:(null==n?void 0:n.lastName)||"",email:null==n?void 0:n.email})});s=(await e.json()).cid,await (0,f.mZ)((0,f.H9)(p.db,"users",t.uid),{customerID:s}),await (0,f.BN)((0,f.H9)(p.db,"cids",s),{userID:t.uid})}let a=await fetch("/api/stripe/newcheckout",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("aaRwTXQ0engJ6cZ6RpVeQDFHPR2FmS0IWFfJfQLnbO1hx22qDV0uha8GY7PnwHgjB9Rv20Lbmry8hHdTBDe4Ppn59j01lZjclBMdhQbi3lqnTZCElZaS0DX-AZoE8lUItfGSMa1cMXNPouIpXKHVNcKmPIdxnYH5zvwpoDdC2GLlSCGiAAdRMxK!Z?2IxWLzJheSBOY!S3Le2HR-VfQIPeYPlRfYYZuVWlB-Im2R!l9Ye!8dgUAR9EFBd")},body:JSON.stringify({cid:s,id:j[e].id,userid:t.uid})}),l=await a.json();o.push(l.url)}catch(e){console.error("Error during checkout:",e),s(null)}},[g,y]=(0,l.useState)(10),[w,v]=(0,l.useState)(!0);return(0,a.jsxs)("div",{className:"max-w-6xl mx-auto p-6",children:[(0,a.jsxs)("div",{className:"text-center mb-12",children:[(0,a.jsx)("h1",{className:"text-4xl font-bold mb-4",children:"Start Your Free Trial"}),(0,a.jsx)("p",{className:"text-xl text-gray-600",children:"Experience the full power of AI-powered learning"})]}),(0,a.jsx)("div",{className:"flex w-full justify-center items-center",children:(0,a.jsxs)("div",{className:"relative rounded-2xl bg-gradient-to-b from-[#fff8f3] to-white shadow-xl hover:shadow-2xl transition-all duration-300 border-2 border-[#ff7849]",children:[(0,a.jsxs)("div",{className:"w-full px-4 py-2 flex items-center justify-between gap-2 bg-orange-50/50 rounded-t-2xl border-b border-orange-100",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex -sp
1ace-x-3",children:["/users/u1.png","/users/u2.png","/users/u3.png"].map((e,s)=>(0,a.jsx)("div",{className:"w-6 h-6 rounded-full border-2 border-white overflow-hidden bg-gray-200",children:(0,a.jsx)(x(),{src:e,alt:"User ".concat(s+1),width:24,height:24,className:"w-full h-full object-cover"})},s))}),(0,a.jsxs)("div",{className:"text-sm",children:[(0,a.jsx)("span",{className:"font-semibold",children:"5.3K+"}),(0,a.jsx)("span",{className:"text-gray-600 hidden sm:inline",children:" students started their trial today!"})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(d.P.div,{className:"w-2 h-2 rounded-full bg-orange-500",animate:{opacity:[1,.5,1],scale:[1,1.2,1]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"}}),(0,a.jsx)("span",{className:"text-xs text-gray-600",children:"Live now"})]})]}),(0,a.jsxs)("div",{className:"p-8 pt-4",children:[(0,a.jsx)("div",{className:"flex justify-center w-full pb-2",children:(0,a.jsxs)("div",{className:"bg-[#ff7849]/10 rounded-full px-4 py-1 flex items-center gap-2 max-w-fit",children:[(0,a.jsx)(b.A,{className:"w-4 h-4 text-[#ff7849]"}),(0,a.jsx)("span",{className:"text-[#ff7849] font-medium text-sm",children:"3-Day Free Trial"}),(0,a.jsx)(b.A,{className:"w-4 h-4 text-[#ff7849]"})]})}),(0,a.jsxs)("div",{className:"text-center mb-6",children:[(0,a.jsx)("div",{className:"my-2",children:(0,a.jsx)("span",{className:"text-4xl font-bold text-[#ff7849]",children:"Try For Free"})}),(0,a.jsx)("div",{className:"text-[#ff7849] font-medium",children:(0,a.jsx)("span",{className:"text-gray-500 text-sm mr-2",children:"Rebills at $9.99/month"})})]}),(0,a.jsx)("button",{onClick:()=>!e&&N("monthly"),disabled:"monthly"===e,className:"w-full bg-[#ff7849] text-white py-4 rounded-xl font-bold mb-8 hover:bg-[#ff6830] transition-all shadow-md hover:shadow-lg transform hover:-translate-y-0.5 ".concat(e?"cursor-not-allowed opacity-80":""),children:e?(0,a.jsx)("span",{className:"loader"}):"Get Started"}),(0,a.jsx)("div",{className:"space-y-4",children:["\uD83C\uDFAF Personalized Study Path with AI","\uD83C\uDFA7 Convert Any Text to Audio Lessons","\uD83E\uDD16 Advanced AI Flashcard Generation","\uD83D\uDCA1 Smart Quiz Creation & Analysis","⡠Priority 24/7 Support","\uD83D\uDCF1 Cancel anytime"].map((e,s)=>(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#ff7849] flex items-center justify-center flex-shrink-0 mt-1",children:(0,a.jsx)(r.A,{className:"w-3 h-3 text-white"})}),(0,a.jsx)("span",{className:"text-gray-700 font-medium",children:e})]},s))})]})]})}),(0,a.jsxs)("div",{className:"mt-12 text-center",children:[(0,a.jsx)("div",{className:"mb-6 p-4 bg-white rounded-xl shadow-sm inline-block",children:(0,a.jsxs)("div",{className:"flex justify-center space-x-6",children:[(0,a.jsx)(c.eG,{size:32,className:"text-[#1A1F71]"}),(0,a.jsx)(c.vDk,{size:32,className:"text-[#EB001B]"}),(0,a.jsx)(c.BIm,{size:32,className:"text-[#2E77BB]"}),(0,a.jsx)(c.W60,{size:32,className:"text-[#5F6368]"}),(0,a.jsx)(c.xtw,{size:32,className:"text-black"})]})}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"No Credit Card Required ⢠Cancel Anytime ⢠100% Risk Free"})]})]})};var y=t(1274);let w=()=>{let[e,s]=(0,l.useState)(!1),{user:t,userData:n}=(0,m.J)(),{openSignupPopup:i}=(0,h.w)(),d=(0,u.useRouter)(),o={id:0,title:"TRY FOR $0.99",subtitle:"Unlimited Access to QuizCat",renewalPrice:"$5.99/wk",contentId:"plan_weekly_trial",contentName:"QuizCat Weekly (trial)",trialPrice:.99};(0,l.useEffect)(()=>{(0,y.a5)("ViewContent",{content_type:"product",content_id:o.contentId,content_name:o.contentName,currency:"USD",value:o.trialPrice})},[]);let x=async()=>{let e={content_type:"product",content_id:o.contentId,content_name:o.contentName,currency:"USD",value:o.trialPrice,contents:[{content_id:o.contentId,content_type:"product",content_name:o.contentName,quantity:1,price:o.trialPrice}]};if(!t){(0,y.a5)("AddToCart",e),i("/upgrade?plan=".concat(o.id));return}(0,y.a5)("InitiateCheckout",e),s(!0);try{let e=(null==n?void 0:n.customerID)||null;if(!e){let s=await fetch("/api/stripe/createcustomer",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("aaRwTXQ0engJ6cZ6RpVeQDFHPR2FmS0IWFfJfQLnbO1hx22qDV0uha8GY7PnwHgjB9Rv20Lbmry8hHdTBDe4Ppn59j01lZjclBMdhQbi3lqnTZCElZaS0DX-AZoE8lUItfGSMa1cMXNPouIpXKHVNcKmPIdxnYH5zvwpoDdC2GLlSCGiAAdRMxK!Z?2IxWLzJheSBOY!S3Le2HR-VfQIPeYPlRfYYZuVWlB-Im2R!l9Ye!8dgUAR9EFBd")},body:JSON.stringify({firstName:(null==n?void 0:n.firstName)||"",lastName:(null==n?void 0:n.lastName)||"",email:null==n?void 0:n.email})});e=(await s.json()).cid,await (0,f.mZ)((0,f.H9)(p.db,"users",t.uid),{customerID:e}),await (0,f.BN)((0,f.H9)(p.db,"cids",e),{userID:t.uid})}let s=await fetch("/api/stripe/newcheckout",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("aaRwTXQ0engJ6cZ6RpVeQDFHPR2FmS0IWFfJfQLnbO1hx22qDV0uha8GY7PnwHgjB9Rv20Lbmry8hHdTBDe4Ppn59j01lZjclBMdhQbi3lqnTZCElZaS0DX-AZoE8lUItfGSMa1cMXNPouIpXKHVNcKmPIdxnYH5zvwpoDdC2GLlSCGiAAdRMxK!Z?2IxWLzJheSBOY!S3Le2HR-VfQIPeYPlRfYYZuVWlB-Im2R!l9Ye!8dgUAR9EFBd")},body:JSON.stringify({cid:e,id:o.id,userid:t.uid})}),a=await s.json();d.push(a.url)}catch(e){console.error("Error during checkout:",e),s(!1)}};return(0,a.jsxs)("div",{className:"max-w-6xl mx-auto p-6",children:[(0,a.jsxs)("div",{className:"text-center mb-12",children:[(0,a.jsx)("h1",{className:"text-4xl font-bold mb-4",children:"Choose Your Plan"}),(0,a.jsx)("p",{className:"text-xl text-gray-600",children:"Start learning smarter today"})]}),(0,a.jsx)("div",{className:"flex w-full justify-center items-center",children:(0,a.jsxs)("div",{className:"relative rounded-2xl bg-white shadow-xl hover:shadow-2xl transition-all duration-300 border-2 border-[#5b6bff] max-w-lg w-full",children:[(0,a.jsx)("div",{className:"w-full flex justify-center text-center",children:(0,a.jsx)("div",{className:"bg-gray-200 px-5 py-2 text-sm rounded rounded-b-lg",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:"<strong>".concat(o.subtitle,"</strong>")}})})}),(0,a.jsxs)("div",{className:"p-8",children:[(0,a.jsx)("div",{className:"text-center mb-6",children:(0,a.jsx)("h2",{className:"text-5xl font-bold mb-4",children:o.title})}),(0,a.jsx)("button",{onClick:x,disabled:e,className:"w-full bg-[#5b6bff] text-white py-4 rounded-xl font-bold mb-8 hover:bg-[#4a5aff] transition-all shadow-md hover:shadow-lg transform hover:-translate-y-0.5 ".concat(e?"cursor-not-allowed opacity-80":""),children:e?(0,a.jsx)("span",{className:"loader"}):"Get Started"}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-y-3 gap-x-4 mb-8",children:[["Instant","Study Materials"],["5M+","Quizzes Created"],["Powered by","Advanced AI"],["100%","Original Content"],["Trusted by","400K+ Students"],["Learn","Anywhere, Anytime"]].map((e,s)=>{let[t,l]=e;return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"w-5 h-5 rounded-full bg-black flex items-center justify-center flex-shrink-0",children:(0,a.jsx)(r.A,{className:"w-3 h-3 text-white"})}),(0,a.jsxs)("span",{className:"text-sm",children:[(0,a.jsx)("strong",{children:t})," ",l]})]},s)})}),(0,a.jsxs)("p",{className:"text-center text-xs text-gray-500 mb-6",children:["Cancel Anytime | Satisfaction Guarantee | ",o.renewalPrice]}),(0,a.jsx)("div",{className:"flex justify-center items-center border-t pt-4",children:(0,a.jsxs)("div",{className:"flex space-x-4",children:[(0,a.jsx)(c.eG,{size:32,className:"text-[#1A1F71]"}),(0,a.jsx)(c.vDk,{size:32,className:"text-[#EB001B]"}),(0,a.jsx)(c.BIm,{size:32,className:"text-[#2E77BB]"}),(0,a.jsx)(c.W60,{size:32,className:"text-[#5F6368]"}),(0,a.jsx)(c.xtw,{size:32,className:"text-black"})]})})]})]})})]})};
1var v=t(14299);let S=()=>{let[e,s]=l.useState(null),[t,r]=l.useState(!0),i=()=>((0,N.r)("paywall_viewed",{variant:"4"}),"E");if((0,l.useEffect)(()=>{s(i()),r(!1)},[]),t||!e)return(0,a.jsx)("div",{className:"flex justify-center items-center min-h-screen",children:(0,a.jsx)("div",{className:"w-12 h-12 border-4 border-orange-500 border-r-transparent rounded-full inline-block box-border animate-spin",role:"status","aria-label":"Loading"})});switch(e){case"A":default:return(0,a.jsx)(n.A,{});case"B":return(0,a.jsx)(j,{});case"C":return(0,a.jsx)(g,{});case"D":return(0,a.jsx)(v.A,{});case"E":return(0,a.jsx)(w,{})}}},91660:(e,s,t)=>{t.d(s,{A:()=>p});var a=t(74848),l=t(96540),n=t(12966),r=t(20005),i=t(82042),c=t(56486),d=t(29965),o=t.n(d),x=t(11934),m=t(45959),h=t(86715),u=t(71884),f=t(39622);let p=()=>{let[e,s]=(0,l.useState)(null),{user:t,userData:d}=(0,x.J)(),{openSignupPopup:p}=(0,m.w)(),j=(0,h.useRouter)(),N={monthly:{id:2,name:"Monthly Access"}},b=async e=>{if(!t){p("/upgrade?plan=".concat(N[e].id));return}s(e);try{let s=(null==d?void 0:d.customerID)||null;if(!s){let e=await fetch("/api/stripe/createcustomer",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("aaRwTXQ0engJ6cZ6RpVeQDFHPR2FmS0IWFfJfQLnbO1hx22qDV0uha8GY7PnwHgjB9Rv20Lbmry8hHdTBDe4Ppn59j01lZjclBMdhQbi3lqnTZCElZaS0DX-AZoE8lUItfGSMa1cMXNPouIpXKHVNcKmPIdxnYH5zvwpoDdC2GLlSCGiAAdRMxK!Z?2IxWLzJheSBOY!S3Le2HR-VfQIPeYPlRfYYZuVWlB-Im2R!l9Ye!8dgUAR9EFBd")},body:JSON.stringify({firstName:(null==d?void 0:d.firstName)||"",lastName:(null==d?void 0:d.lastName)||"",email:null==d?void 0:d.email})});s=(await e.json()).cid,await (0,u.mZ)((0,u.H9)(f.db,"users",t.uid),{customerID:s}),await (0,u.BN)((0,u.H9)(f.db,"cids",s),{userID:t.uid})}let a=await fetch("/api/stripe/newcheckout",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("aaRwTXQ0engJ6cZ6RpVeQDFHPR2FmS0IWFfJfQLnbO1hx22qDV0uha8GY7PnwHgjB9Rv20Lbmry8hHdTBDe4Ppn59j01lZjclBMdhQbi3lqnTZCElZaS0DX-AZoE8lUItfGSMa1cMXNPouIpXKHVNcKmPIdxnYH5zvwpoDdC2GLlSCGiAAdRMxK!Z?2IxWLzJheSBOY!S3Le2HR-VfQIPeYPlRfYYZuVWlB-Im2R!l9Ye!8dgUAR9EFBd")},body:JSON.stringify({cid:s,id:N[e].id,userid:t.uid})}),l=await a.json();j.push(l.url)}catch(e){console.error("Error during checkout:",e),s(null)}},[g,y]=(0,l.useState)(10),[w,v]=(0,l.useState)(!0);return(0,l.useEffect)(()=>{if(w&&g>1){if(g>6){let e=setInterval(()=>{y(s=>{let t=Math.max(6,s-(Math.floor(3*Math.random())+1));return 6===t&&clearInterval(e),t})},1e3);return()=>clearInterval(e)}{let e=setInterval(()=>{y(s=>s<=1?(clearInterval(e),v(!1),1):6===s?5:5===s?4:4===s?3:3===s?2:Math.max(1,s-1))},1e4);return()=>clearInterval(e)}}},[w,g]),(0,a.jsxs)("div",{className:"max-w-6xl mx-auto p-6",children:[(0,a.jsxs)("div",{className:"text-center mb-12",children:[(0,a.jsx)("h1",{className:"text-4xl font-bold mb-4",children:"Choose Your Plan"}),(0,a.jsx)("p",{className:"text-xl text-gray-600",children:"Start learning smarter today"})]}),(0,a.jsx)("div",{className:"flex w-full justify-center items-center",children:(0,a.jsxs)("div",{className:"relative rounded-2xl bg-gradient-to-b from-[#fff8f3] to-white shadow-xl hover:shadow-2xl transition-all duration-300 border-2 border-[#ff7849]",children:[(0,a.jsxs)("div",{className:"w-full px-4 py-2 flex items-center justify-between gap-2 bg-orange-50/50 rounded-t-2xl border-b border-orange-100",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex -space-x-3",children:["/users/u1.png","/users/u2.png","/users/u3.png"].map((e,s)=>(0,a.jsx)("div",{className:"w-6 h-6 rounded-full border-2 border-white overflow-hidden bg-gray-200",children:(0,a.jsx)(o(),{src:e,alt:"User ".concat(s+1),width:24,height:24,className:"w-full h-full object-cover"})},s))}),(0,a.jsxs)("div",{className:"text-sm",children:[(0,a.jsx)("span",{className:"font-semibold",children:"5.3K+"}),(0,a.jsx)("span",{className:"text-gray-600 hidden sm:inline",children:" students joined today!"})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(c.P.div,{className:"w-2 h-2 rounded-full bg-orange-500",animate:{o
1pacity:[1,.5,1],scale:[1,1.2,1]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"}}),(0,a.jsx)("span",{className:"text-xs text-gray-600",children:"Live now"})]})]}),(0,a.jsxs)("div",{className:"p-8 pt-4",children:[(0,a.jsx)("div",{className:"flex justify-center w-full pb-2",children:(0,a.jsxs)("div",{className:"bg-[#ff7849]/10 rounded-full px-4 py-1 flex items-center gap-2 max-w-fit",children:[(0,a.jsx)(n.A,{className:"w-4 h-4 text-[#ff7849]"}),(0,a.jsx)("span",{className:"text-[#ff7849] font-medium text-sm",children:"Flash Sale"}),(0,a.jsx)(n.A,{className:"w-4 h-4 text-[#ff7849]"})]})}),(0,a.jsxs)("div",{className:"text-center mb-6",children:[(0,a.jsxs)("div",{className:"my-2",children:[(0,a.jsx)("span",{className:"text-4xl font-bold text-[#ff7849]",children:"$9.99"}),(0,a.jsx)("span",{className:"text-lg text-gray-600",children:" / month"})]}),(0,a.jsxs)("div",{className:"text-[#ff7849] font-medium",children:[(0,a.jsx)("span",{className:"text-gray-500 line-through mr-2",children:"$14.99/month"}),(0,a.jsxs)(c.P.div,{className:"inline-block bg-white px-3 py-1 rounded-full shadow-sm border border-orange-100",initial:{y:-20,opacity:0},animate:{y:0,opacity:1},exit:{y:20,opacity:0},transition:{type:"spring",stiffness:500,damping:30,duration:.3},children:[(0,a.jsx)("span",{className:"text-[#ff7849] font-bold",children:"Next "}),(0,a.jsx)("span",{className:"text-[#ff7849] font-bold text-xl",children:g}),(0,a.jsxs)("span",{className:"text-[#ff7849] font-bold",children:[" ",1===g?"spot":"spots"," left at 50% off!"]})]},g)]})]}),(0,a.jsx)("button",{onClick:()=>!e&&b("monthly"),disabled:"monthly"===e,className:"w-full bg-[#ff7849] text-white py-4 rounded-xl font-bold mb-8 hover:bg-[#ff6830] transition-all shadow-md hover:shadow-lg transform hover:-translate-y-0.5 ".concat("semester"===e?"cursor-not-allowed opacity-80":""),children:"monthly"===e?(0,a.jsx)("span",{className:"loader "}):"Get Started"}),(0,a.jsx)("div",{className:"space-y-4",children:["\uD83C\uDFAF Personalized Study Path with AI","\uD83C\uDFA7 Convert Any Text to Audio Lessons","\uD83E\uDD16 Advanced AI Flashcard Generation","\uD83D\uDCA1 Smart Quiz Creation & Analysis","⡠Priority 24/7 Support","\uD83D\uDCF1 Download for Offline Learning"].map((e,s)=>(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#ff7849] flex items-center justify-center flex-shrink-0 mt-1",children:(0,a.jsx)(r.A,{className:"w-3 h-3 text-white"})}),(0,a.jsx)("span",{className:"text-gray-700 font-medium",children:e})]},s))})]})]})}),(0,a.jsxs)("div",{className:"mt-12 text-center",children:[(0,a.jsx)("div",{className:"mb-6 p-4 bg-white rounded-xl shadow-sm inline-block",children:(0,a.jsxs)("div",{className:"flex justify-center space-x-6",children:[(0,a.jsx)(i.eG,{size:32,className:"text-[#1A1F71]"}),(0,a.jsx)(i.vDk,{size:32,className:"text-[#EB001B]"}),(0,a.jsx)(i.BIm,{size:32,className:"text-[#2E77BB]"}),(0,a.jsx)(i.W60,{size:32,className:"text-[#5F6368]"}),(0,a.jsx)(i.xtw,{size:32,className:"text-black"})]})}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Secure Payment ⢠Instant Access ⢠100% Satisfaction Guaranteed"})]})]})}}}]);
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.