1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1265],{39894:function(e,t,a){var s=a(85893),r=a(75021),n=a(11163),i=a(86501),o=a(88767),l=a(44862),c=a(55756),u=a(67294),d=a(23650);let m=async e=>{let t=await fetch("/api/check-database?firebase_id=".concat(e));!1==(await t.json()).existsInDatabase||console.log("exists in database")};t.Z=e=>{let{selected:t,showWallet:a,paypalPlanId:h,creation:p,discount:g,loading:f,setLoading:x,user:b}=e,w=(0,o.useQueryClient)(),y=(0,n.useRouter)(),[j]=(0,c.fP)(),[v,C]=(0,u.useState)({userAgent:"",ip:""}),{userRecord:N,userLoading:k}=(0,u.useContext)(d.S);(0,u.useEffect)(()=>{k||m(b.uid)},[k]);let{_fbp:S,_fbc:A}=j,T=S||"",Z=A||"";(0,u.useEffect)(()=>{fetch("/api/client").then(e=>e.json()).then(e=>C(e))},[]);let{userAgent:E,ip:P}=v,_=async e=>{x(!0);try{let a=await b.getIdToken(!0),s=await fetch("/api/handle-paypal",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(a)},body:JSON.stringify({selected:t,subscriptionId:e,fbp:T,fbc:Z,userAgent:E,ip:P})});if(!s.ok){let e=await s.json();throw x(!1),Error(e.error.message)}await w.invalidateQueries("subscription"),await w.invalidateQueries("user"),i.Am.success("Thanks for subscribing!",{duration:5e4,position:"top-center"}),await y.push("/welcome")}catch(e){console.error(e),(0,l.Jc)("".concat(e))}finally{x(!1)}};return(0,s.jsx)("div",{className:"".concat(a?"mb-4":""),children:h&&!p&&!(g&&"Annual"===t.name)&&!t.offer&&(0,s.jsx)(r.ch,{disabled:f,style:{layout:"horizontal",label:"subscribe",color:"silver",tagline:!1,height:40},createSubscription:(e,t)=>t.subscription.create({plan_id:h}).then(e=>e),onApprove:async(e,t)=>{await _(e.subscriptionID)},onError:e=>{console.error(e)},onCancel:()=>console.log("Cancelled"),forceReRender:[h]})})}},5473:function(e,t,a){var s=a(85893),r=a(22600),n=a(96361),i=a(81627),o=a(89755),l=a.n(o),c=a(67294),u=a(50259),d=a(5038),m=a(2663),h=a(44862);let p=()=>(0,s.jsxs)("div",{className:"flex items-center my-8",children:[(0,s.jsx)("div",{className:"flex-1 border-t-2 border-gray-300"}),(0,s.jsx)("p",{className:"px-3 uppercase text-sm font-semibold text-black",children:"or"}),(0,s.jsx)("div",{className:"flex-1 border-t-2 border-gray-300"})]});t.Z=e=>{let{email:t,setEmail:a,selected:o,selectedLifetime:g,subscriptionState:f,setLoading:x,loading:b,showPassword:w,handleShowPassword:y,setSomethingWentWrong:j}=e,[v,C]=(0,c.useState)(""),[N,k]=(0,c.useState)(""),{executeRecaptcha:S}=(0,u.xX)(),A=(0,i.v0)(),[T,Z]=(0,c.useState)(""),[E,P]=(0,c.useState)(0),[_,M]=(0,c.useState)(null),[B,J]=(0,c.useState)(null),[q,I]=(0,c.useState)(null);(0,c.useEffect)(()=>{window.localStorage&&a(localStorage.getItem("emailForSignIn")||"")},[]);let z=async(e,t)=>{let{firstName:a,lastName:s,email:r,password:n}=t;if(e.preventDefault(),b)return;if(x(!0),!S){x(!1);return}if(!a||!s||!r||!n){I("All fields must be filled in."),x(!1);return}let o=await S("createAccountFormSubmit");try{let{user:e}=await (0,i.Xb)(A,r,n);if(!e)throw Error("No user found");await (0,i.w$)(e,{url:"https://thejuggernaut.com/"});let t=await e.getIdToken(!0),l=await fetch("/api/create-account",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify({first_name:a.trim(),last_name:s.trim(),token:o})});if(!l||!l.ok){let e=await l.json();throw Error(e.error.message)}j(!1)}catch(e){if(null==e?void 0:e.code)switch(e.code){case"auth/email-already-in-use":(0,h.IZ)(),M("Email is already in use. Please log in.");break;case"auth/invalid-email":M("The email address is badly formatted.");break;case"auth/weak-password":J("Please pick a password with 6 or more characters.");break;case"auth/too-many-requests":I("Too many requests. Please try again later.");break;case"auth/user-disabled":I("This user has been disabled. Please contact support.");break;default:I("An error occurred. Please try again.")}else{var l;console.error("Error occurred:",e),(null===(l=e.message)||void 0===l?void 0:l.toLowerCase().includes("user already"))?((0,h.IZ)(),I("User already exists. Please log in.")):(j(!0),(0,h.Jc)(e.message||"Something went wrong")),A.signOut()}x(!1)}finally{x(!1)}},F=async()=>
1{if(b)return;if(x(!0),!S){x(!1);return}let e=await S("createAccountFormSubmit");try{let t=(await (0,i.rh)(A,d.qV)).user,{displayName:a}=t,s=a?a.split(" "):[],r=s.length>0?s[0]:"",n=s.length>1?s[s.length-1]:"",o=await t.getIdToken(!0),l=await fetch("/api/create-account",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},body:JSON.stringify({first_name:r.trim(),last_name:n.trim(),token:e})});if(!l.ok){let e=await l.json();throw await (0,i.w7)(A),Error(e.error.message)}x(!1)}catch(e){if(null==e?void 0:e.code)switch(e.code){case"auth/account-exists-with-different-credential":M("An account already exists with the same email address but different sign-in credentials. Please sign in with the same provider as before.");break;case"auth/too-many-requests":I("Too many requests. Please try again later.");break;case"auth/user-disabled":I("This user has been disabled. Please contact support.");break;default:I("An error occurred. Please try again.")}else{console.error("Error occurred:",e);let t=e.message;t.toLowerCase().includes("user already")?((0,h.IZ)(),I("User already exists. Please log in.")):I(t||"Something went wrong with Google Sign-In")}}finally{x(!1)}};return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("form",{onSubmit:e=>z(e,{firstName:v,lastName:N,email:t,password:T}),className:"grid grid-cols-1 gap-y-2 sm:grid-cols-2 sm:gap-x-2",children:[(0,s.jsxs)("div",{className:"sm:col-span-2",children:[(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsx)("input",{id:"email",name:"email",type:"email",placeholder:"Email address",autoComplete:"email",value:t,onChange:e=>{a(e.target.value),M(null),I(null)},required:!0,className:"py-3 px-4 block shadow-sm focus:ring-blue-500 focus:border-blue-500 border-gray-300 rounded-md w-full"})}),_&&(0,s.jsx)("p",{className:"text-red-600 text-sm mt-1",children:_})]}),(0,s.jsx)("div",{className:"sm:col-span-2",children:(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsxs)("div",{className:"absolute inset-y-0 right-0 flex items-center px-2",children:[(0,s.jsx)("input",{className:"hidden js-password-toggle",id:"toggle",type:"checkbox"}),(0,s.jsx)("button",{onClick:y,className:"bg-white rounded px-2 py-1 text-sm font-mono cursor-pointer",tabIndex:-1,type:"button",children:w?(0,s.jsx)(r.Z,{className:"h-5 w-5","aria-hidden":"true"}):(0,s.jsx)(n.Z,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,s.jsx)("input",{id:"password",name:"password",type:w?"text":"password",placeholder:"Password",autoComplete:"password",autoCapitalize:"none",value:T,onChange:e=>{Z(e.target.value),J(null),I(null)},required:!0,className:"appearance-none py-3 px-4 block w-full shadow-sm focus:ring-blue-500 focus:border-blue-500 border-gray-300 rounded-md"}),B&&(0,s.jsx)("p",{className:"text-red-600 text-sm mt-1",children:B})]})}),1===E?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsx)("input",{id:"first-name",name:"first-name",type:"text",placeholder:"First name",value:v,onChange:e=>C(e.target.value),required:!0,className:"py-3 px-4 block w-full shadow-sm focus:ring-blue-500 focus:border-blue-500 border-gray-300 rounded-md"})})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsx)("input",{type:"text",name:"last-name",id:"last-name",placeholder:"Last name",value:N,onChange:e=>k(e.target.value),required:!0,className:"py-3 px-4 block w-full shadow-sm focus:ring-blue-500 focus:border-blue-500 border-gray-300 rounded-md"})})}),(0,s.jsxs)("button",{type:"submit",className:"sm:col-span-2 uppercase w-full flex justify-center items-center py-2 px-4 border border-transparent rounded-md shadow-sm text-lg font-medium text-white ".concat(b||""===v||""===N?"bg-green-400":"bg-green-500 hover:bg-green-600"," focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"),disabled:b||""===v||""===N,children:[b&&(0,s.jsxs)("svg",{role:"status",className:"inline w-4 h-4 mr-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),(0,s.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),b?"Creating Account":"Create Account â"]})]}):(0,s.jsx)("button",{onClick:()=>(P(1),(0,m.Q)({email:t})),className:" ".concat(""===t||""===T?"bg-green-400":"bg-green-500 hover:bg-green-600"," sm:col-span-2 uppercase w-full flex justify-center items-center py-2 px-4 border border-transparent rounded-md shadow-sm text-lg font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"),disabled:""===t||""===T,children:"Continue â"}),(0,s.jsxs)("div",{className:"sm:col-span-2",children:[q&&(0,s.jsx)("p",{className:"text-red-600 text-sm mt-1",children:q}),(0,s.jsx)(p,{}),(0,s.jsx)("button",{type:"submit",className:"hover:bg-gray-100 uppercase w-full flex justify-center items-center py-2 px-4 border border-black rounded-md shadow-sm text-lg font-medium text-black bg-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:F,disabled:b,children:(0,s.jsxs)("div",{className:"relative flex items-center space-x-4 justify-center",children:[(0,s.jsx)(l(),{src:"https://www.svgrepo.com/show/475656/google-color.svg",className:"absolute left-0 w-5",alt:"google logo",width:20,height:20}),(0,s.jsx)("span",{className:"block w-full ",children:"Continue with Google"})]})}),(0,s.jsx)("div",{className:"mt-4"})]})]})})}},62138:function(e,t,a){a.d(t,{Z:function(){return y}});var s=a(85893),r=a(86664),n=a(67294),i=a(88767),o=a(2663),l=a(44862),c=a(98997),u=a(41664),d=a.n(u),m=a(31372),h=a(87633),p=a(97930),g=a(60932),f=a(88057),x=a(42743),b=e=>{var t;let{selected:a,selectedLifetime:r,subscriptionState:n}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("p",{className:"mt-4 text-sm md:text-sm text-left text-gray-500",children:[(0,s.jsxs)(s.Fragment,{children:["By signing up, you agree to our"," ",(0,s.jsx)(d(),{href:"/terms",className:"underline",children:"terms"})," ","and"," ",(0,s.jsx)(d(),{href:"/privacy",className:"underline",children:"privacy policy"}),"."," "]}),(0,s.jsxs)(s.Fragment,{children:["You will be charged"," ",a.chargePrice||"".concat(null===(t=x.y_.get(a.currency))||void 0===t?void 0:t.currencySymbol).concat((0,x.x6)(r/100))," ","for the ",a.name.toLowerCase()," plan",a.trial?" on ".concat((0,m.Z)((0,h.Z)(new Date,7),"MMMM d")," ").concat((null==n?void 0:n.status)!=="needsToRestart"&&"after your free trial ends","."):".","Lifetime"!==a.name&&" Your plan will auto-renew on ".concat("Monthly"===a.name?(0,m.Z)((0,p.Z)(new Date,1),"MMMM d, yyyy"):(0,m.Z)((0,g.Z)(new Date,1),"MMMM d, yyyy"),"."),a.coupon&&"Lifetime"!==a.name?" at $".concat(f.P8/100,"."):""," ","Lifetime"!==a.name&&"Cancel anytime."]})]})})},w=a(55756),y=e=>{let{selected:t,selectedLifetime:a,subscriptionState:u,loading:d,setLoading:m,referId:h,user:p}=e,g=(0,r.useStripe)(),f=(0,r.useElements)(),x=(0,i.useQueryClient)(),[y,j]=(0,n.useState)(!1),[v,C]=(0,n.useState)(!0),[N]=(0,w.fP)(),[k,S]=(0,n.useState)({userAgent:"",ip:""}),A=p.uid,{_fbp:T,_fbc:Z}=N,E=T||"",P=Z||"";(0,n.useEffect)(()=>{fetch("/api/client").then(e=>e.json()).then(e=>S(e))},[]);let{userAgent:_,ip:M}=k;(0,n.useEffect)(()=>{y&&(0,o.c_)()},[y]);let B=async e=>{e.complete?(j(!0),C(!1)):C(!0)},J=async e=>{if(e.preventDefault(),!g||!f)return;m(!0);let{error:s}=await f.submit();if(s){(0,l.Jc)(s.message||"An unexpected error occurred."),m(!1);return}let r={return_url:c.BB?"https://www.thejuggernaut.com/welcome":"http://localhost:3000/welcome"},n=await p.getIdToken(!0),i=await fetch("/api/create-subscription",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n)},body:JSON.stringify({userId:A,selected:t,selectedLifetime:a,fbp:E,fbc:P,userAgent:_,ip:M,referId:h})});if(!i.ok){let e=await i.json();m(!1),(0,l.Jc)(e.error.message||"An unexpected error occurred.");return}let o=(await i.json()).clientSecret;if(t.trial){let{error:e}=await g.confirmSetup({elements:f,clientSecret:o,confirmParams:r});await x.invalidateQueries("subscription"),"card_error"===e.type||"validation_error"===e.type?(0,l.Jc)(e.message||"An unexpected error occurred."):(0,l.Jc)("An unexpected error occurred.")}else{let{error:e}=await g.confirmPayment({elements:f,clientSecret:o,confirmParams:r});await x.invalidateQueries("subscription"),"card_error"===e.type||"validation_error"===e.type?(0,l.Jc)(e.message||"An unexpected error occurred."):(0,l.Jc)("An unexpected error occurred.")}m(!1)};return(0,s.jsxs)("form",{id:"payment-form",onSubmit:J,children:[(0,s.jsx)(r.PaymentElement,{onChange:B,id:"payment-element",className:"p-5 mb-5 border-2 rounded-md border-gray-300",options:{defaultValues:{billingDetails:{email:p.email||""}}}}),(0,s.jsxs)("button",{type:"submit",className:"uppercase w-full flex justify-center items-center py-2 px-4 border border-transparent roun
1ded-md shadow-sm text-lg font-medium text-white ".concat(d||v?"bg-green-400":"bg-green-500 hover:bg-green-600"," focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"),disabled:d||v,children:[d&&(0,s.jsxs)("svg",{role:"status",className:"inline w-4 h-4 mr-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),(0,s.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),d?"".concat("Annual"===t.name||"Student"===t.name?(null==u?void 0:u.status)==="needsToRestart"||(null==u?void 0:u.status)==="isEnding"?"Restarting Subscription":"Signing up":(null==u?void 0:u.status)==="needsToRestart"||(null==u?void 0:u.status)==="isEnding"?"Restarting Subscription":"Subscribing"):"".concat(("Annual"===t.name||t.name,(null==u?void 0:u.status)==="needsToRestart"||(null==u?void 0:u.status)==="isEnding"?"Restart Subscription":"Subscribe â"))]}),(0,s.jsx)(b,{subscriptionState:u,selected:t,selectedLifetime:a})]})}},83845:function(e,t,a){var s=a(85893),r=a(22600),n=a(96361),i=a(81627),o=a(77004),l=a(20512),c=a(50259),u=a(52692),d=a(88767),m=a(67294),h=a(44862);t.Z=e=>{let{selected:t,selectedLifetime:a,subscriptionState:p,setLoading:g,loading:f,showPassword:x,handleShowPassword:b,setSomethingWentWrong:w}=e,{executeRecaptcha:y}=(0,c.xX)(),j=(0,o.$C)(),v=(0,i.v0)(),C=(0,d.useQueryClient)(),[N,k]=(0,m.useState)(null),[S,A]=(0,m.useState)(null),[T,Z]=(0,m.useState)(null),E=async e=>{let{firstName:t,lastName:a,email:s,password:r}=e;if(g(!0),!y){g(!1);return}let n=await y("createAccountFormSubmit");try{await (0,i.Xb)(v,s,r)}catch(e){if(null==e?void 0:e.code)switch(e.code){case"auth/email-already-in-use":k("Email is already in use. Please log in.");break;case"auth/invalid-email":k("The email address is badly formatted.");break;case"auth/weak-password":A("Please pick a password with 6 or more characters.");break;case"auth/too-many-requests":Z("Too many requests. Please try again later.");break;case"auth/user-disabled":Z("This user has been disabled. Please contact support.");break;default:Z("An error occurred. Please try again.")}else console.error("Error occurred:",e),w(!0),(0,h.Jc)(e.message||"Something went wrong"),v.signOut();g(!1);return}let l=(0,o.V1)(j,"createAccount"),c=await l({first_name:t,last_name:a,email:s,token:n});if(!c||!c.data){g(!1);return}let{data:u}=c,{error:d}=u;if(d){Z("".concat(d.message)),g(!1),w(!0),v.signOut();return}await C.invalidateQueries("subscription"),await C.invalidateQueries("user"),w(!1),g(!1)};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l.J9,{initialValues:{firstName:"",lastName:"",email:"",password:""},validationSchema:u.d,onSubmit:e=>E(e),children:e=>{let{isSubmitting:t,isValid:a}=e;return(0,s.jsxs)(l.l0,{onChange:()=>{Z(null),k(null),A(null)},className:"grid grid-cols-1 gap-y-2 sm:grid-cols-2 sm:gap-x-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsx)(l.gN,{id:"firstName",name:"firstName",type:"text",placeholder:"First name",required:!0,className:"py-3 px-4 block w-full shadow-sm focus:ring-red-500 focus:border-red-500 border-gray-300 rounded-md"})}),(0,s.jsx)(l.Bc,{component:"a",className:"text-red-500 text-sm",name:"firstName"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsx)(l.gN,{id:"lastName",name:"lastName",type:"text",placeholder:"Last name",required:!0,className:"py-3 px-4 block w-full shadow-sm focus:ring-red-500 focus:border-red-500 border-gray-300 rounded-md"})}),(0,s.jsx)(l.Bc,{component:"a",className:"text-red-500 text-sm",name:"lastName"})]}),(0,s.jsxs)("div",{className:"sm:col-span-2",children:[(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsx)(l.gN,{id:"email",name:"email",type:"email",placeholder:"Student email address",autoComplete:"email",required:!0,className:"py-3 px-4 block w-full shadow-sm focus:ring-red-500 focus:border-red-500 border-gray-300 rounded-md"})}),N&&(0,s.jsx)("p",{className:"text-red-600 text-sm mt-1",children:N}),(0,s.jsx)(l.Bc,{component:"a",className:"text-red-500 text-sm",name:"email"})]}),(0,s.jsxs)("div",{className:"sm:col-span-2",children:[(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsxs)("div",{className:"absolute inset-y-0 right-0 flex items-center px-2",children:[(0,s.jsx)("input",{className:"hidden js-password-toggle",id:"toggle",type:"checkbox"}),(0,s.jsx)("button",{onClick:b,className:"bg-white rounded px-2 py-1 text-sm font-mono curs
1or-pointer",tabIndex:-1,children:x?(0,s.jsx)(r.Z,{className:"h-5 w-5","aria-hidden":"true"}):(0,s.jsx)(n.Z,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,s.jsx)(l.gN,{id:"password",name:"password",type:x?"text":"password",placeholder:"Password",autoComplete:"password",autoCapitalize:"none",required:!0,className:"appearance-none py-3 px-4 block w-full shadow-sm focus:ring-red-500 focus:border-red-500 border-gray-300 rounded-md"})]}),S&&(0,s.jsx)("p",{className:"text-red-600 text-sm mt-1",children:S}),(0,s.jsx)(l.Bc,{component:"a",className:"text-red-500 text-sm",name:"password"})]}),(0,s.jsxs)("div",{className:"sm:col-span-2",children:[(0,s.jsxs)("button",{type:"submit",className:"uppercase w-full flex justify-center items-center py-2 px-4 border border-transparent rounded-md shadow-sm text-lg font-medium text-white ".concat(f&&t&&!a?"bg-red-400":"bg-red-500 hover:bg-red-600"," focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"),disabled:f||t||!a,children:[f&&(0,s.jsxs)("svg",{role:"status",className:"inline w-4 h-4 mr-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),(0,s.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),f?"Creating Account":"Create Account"]}),T&&(0,s.jsx)("p",{className:"text-red-600 text-sm mt-1",children:T})]})]})}})})}},66002:function(e,t,a){var s=a(85893),r=a(2962);t.Z=()=>(0,s.jsx)(r.PB,{title:"Subscribe to The Juggernaut",description:"Weâre The Juggernaut. We tell in-depth, nuanced stories on South Asians around the world. Join thousands and subscribe today.",canonical:"https://www.thejuggernaut.com/subscribe",twitter:{cardType:"summary_large_image"},openGraph:{title:"Subscribe to The Juggernaut",type:"website",site_name:"The Juggernaut",description:"Weâre The Juggernaut. We tell in-depth, nuanced stories on South Asians around the world. Join thousands and subscribe today.",images:[{url:"https://www.thejuggernaut.com/static/juggernaut_wordmark_preview.png"}]}})},71322:function(e,t,a){var s=a(85893);t.Z=e=>{let{serif:t}=e;return(0,s.jsx)("div",{className:"bg-amber-50 max-w-5xl pt-6 md:pt-6 sm:mb-2 mx-auto px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("p",{className:"mt-2 text-2xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl ".concat(t?"font-serif":""),children:"Access the best South Asian stories and exclusive events"}),(0,s.jsx)("p",{className:"mt-2 text-sm md:text-xl text-gray-500 lg:mx-auto",children:"âThis is 100% overdue!â â Balaji S."})]})})}},6192:function(e,t,a){let s=(0,a(64529).Ue)(e=>({creation:!1,toggleCreation:()=>e(e=>({creation:!e.creation})),wallet:!1}));t.Z=s},98997:function(e,t,a){a.d(t,{AK:function(){return r},BB:function(){return s},TV:function(){return n}});let s=!0,r=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter(Boolean).join(" ")};function n(e){let t=e.length;for(;0!=t;){let a=Math.floor(Math.random()*t);t--,[e[t],e[a]]=[e[a],e[t]]}return e}},52692:function(e,t,a){a.d(t,{d:function(){return n},h:function(){return i}});var s=a(74231);let r=/.edu|uwaterloo.ca|yorku.ca|aucklanduni.ac.nz|ucalgary.ca|mcgill.ca|.ac.u
1k|.ac.in|.waseda.jp|sciencespo.fr|utoronto.ca|ryerson.ca|centennialcollege.ca|uvic.ca|mcmaster.ca|dal.ca|.ac.nz|sfu\.ca|uwo\.ca|spjain\.org|nls.ac.in|mun.ca|mumail.ie|students.unibe.ch|graduateinstitute.ch|mamcs.christuniversity.in|umail.ucc.ie|uva.nl|stud.macromedia.de|lhi.is|torontomu.ca|ekohist.su.se|ph-heidelberg.de|tcd.ie|uni-kiel.de|mail.uni-kiel.de|nmims.in|uni-stuttgart.de|myumanitoba.ca|student.ubc.ca|uzh.ch|micamail.in|lf1.cuni.cz|bishops.com|wur.nl|astranova.org|gsom.polimi.it|mail.toronto.ca|uoguelph.ca|stud.uni-heidelberg.de|zu.ac.ae|student.ocadu.ca|mcpsmd.org|our.ecu.edu.au|beaconsfield.school|stu.palmbeachschools.org|dalton.org|[email protected]|my.bpp.com|mylangara.ca|ualberta.ca|iu-study.org|student.eur.nl|uni-muenster.de|juggernaut.com/,n=s.Ry().shape({firstName:s.Z_().required("You forgot to write your first name."),lastName:s.Z_().required("You forgot to write your last name."),email:s.Z_().email("The email you added is invalid.").required("You forgot to add your student email address.").matches(r,"Please enter a valid student email."),password:s.Z_().required("You forgot to create a password").min(3,"Your password is too short.")}),i=e=>!!e.match(r)&&!e.includes("alumni")}}]);
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.