PageSourceSearch

https://enneagramtest.com/_next/static/chunks/pages/checkout-cd3f0560d0934a50.js

js enneagramtest.com collected 2026-09-28 22:44:45 UTC 19,095 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d7a5c1fe-ce51-41cb-9530-6d2d4c5e2659",e._sentryDebugIdIdentifier="sentry-dbid-d7a5c1fe-ce51-41cb-9530-6d2d4c5e2659")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2222],{62013:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout",function(){return t(94769)}])},98600:function(e,a){"use strict";a.Z={src:"/_next/static/media/cross.515c1af8.svg",height:40,width:40,blurWidth:0,blurHeight:0}},53191:function(e,a,t){"use strict";t.d(a,{Z:function(){return s}});var r=t(85893),n=t(85659);function s(e){let{message:a,className:t,...s}=e;return(0,r.jsx)("div",{className:(0,n.m)("text-red text-s",t),...s,children:a})}},80436:function(e,a,t){"use strict";t.d(a,{Ou:function(){return i},cI:function(){return u}});var r=t(85893),n=t(67294),s=t(55278),c=t(48056),l=t(22200);function o(e,a){return"function"==typeof e?e(a):e}function i(e){let{mutation:a,fields:t,loader:n,isLoading:i,error:m,errorElement:d,successMessage:_="",successElement:p,formValidationSchema:h,hasSuccessScreen:x=!0,children:f,onSuccessClick:y,onSuccess:g,onError:b}=e,v=function(e){let{mutation:a,fields:t,formValidationSchema:r,onSuccess:n,onError:s}=e,c=u({fields:t,formValidationSchema:r}),o=async e=>{e.preventDefault(),e.currentTarget.checkValidity()&&c.validate()&&a.mutate(c.form,{onSuccess:e=>{if(n){var a,t;n({fields:c.form,data:e}),(null==c?void 0:null===(a=c.form)||void 0===a?void 0:a.firstName)&&(0,l.xP)({name:c.form.firstName}),(null==c?void 0:null===(t=c.form)||void 0===t?void 0:t.email)&&(0,l.xP)({email:email})}},onError(e){s&&s(e)}})};return{...c,error:a.error?a.error.message:c.error,onSubmit:o}}({mutation:a,fields:t,formValidationSchema:h,onSuccess:g,onError:b}),j=i||a.isLoading||a.isSuccess&&!x&&g,k=m||a.error;return j?n||(0,r.jsx)(c.Z,{}):a.isSuccess&&x?p||(0,r.jsx)(s.Z,{message:_,onClick:y}):k&&d?o(d,{error:a.error}):o(f,v)}function u(e){let{fields:a,formValidationSchema:t}
1=e,[r,s]=(0,n.useState)(a),[c,l]=(0,n.useState)(a),[o,i]=(0,n.useState)(null);return{form:r,errors:c,error:o,onChange:e=>{let{name:a,value:t}=e.currentTarget;s(e=>({...e,[a]:t})),l(e=>({...e,[a]:""})),i(null)},validate:()=>{if(t){let e=t.validate(r);if(e[0]){let a={};for(let t of e[0].failures())a[t.path[0]]=t.message;return l(e=>({...e,...a})),i(e[0].path.length?"Please correct errors before submitting the form":e[0].message),!1}}return!0}}}},48056:function(e,a,t){"use strict";t.d(a,{Z:function(){return o}});var r=t(85893),n=t(85659),s=t(66178),c=t(94184),l=t.n(c);function o(e){let{className:a,variant:t,title:c="Processing",message:o="Just a moment while we process your request.",...i}=e;return(0,r.jsxs)("div",{className:(0,n.m)("text-center px-5",a),...i,children:[(0,r.jsx)("h1",{className:(0,n.m)("text-h3-bold-mobile px-3 mb-[30px]",l()({"text-h1-mobile mb-5 lg:text-h3-regular":"form"===t})),children:c}),(0,r.jsx)("p",{className:"text-l mb-10",children:o}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(s.Z,{})})]})}},55278:function(e,a,t){"use strict";t.d(a,{Z:function(){return m}});var r=t(85893),n=t(25675),s=t.n(n),c=t(85659),l=t(65808),o={src:"/_next/static/media/done.779e321f.svg",height:64,width:64,blurWidth:0,blurHeight:0},i=t(94184),u=t.n(i);function m(e){let{message:a,className:t,action:n,title:i="Success!",variant:m,onClick:d,..._}=e;return(0,r.jsxs)("div",{className:(0,c.m)("text-center px-5 flex flex-col items-center",t),"data-testid":"success-message-block",..._,children:[(0,r.jsx)("h1",{className:(0,c.m)("text-h3-bold-mobile px-3 mb-[30px]",u()({"text-h1-mobile mb-5":"form"===m})),children:i}),(0,r.jsx)("p",{className:"text-l mb-10",children:a}),(0,r.jsx)("div",{className:"p-12",children:(0,r.jsx)(s(),{src:o,alt:""})}),n||(0,r.jsx)(l.u,{"data-testid":"success-button",className:"mt-[30px]",onClick:d,children:"Ok"})]})}},94769:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return ec}});var r=t(85893),n=t(36688),s=t(65562),c=t(67294),l=t(47166),o=t.n(l),i=t(94184),u=t.n(i),m=t(12526),d=t(41887),_=t(87573),p=t(41664),h=t.n(p),x={src:"/_next/static/media/paypal-logo.533020e4.svg",height:24,width:102,blurWidth:0,blurHeight:0},f=t(21165),y=t(32206),g=t(47078),b=t(59366),v=t.n(b),j=t(25675),k=t.n(j),N=t(41195),C=t(28629),P=t(53191),w=t(44110),I=t.n(w);let S=o().bind(I());var F=e=>{let{className:a,text:t,error:n,showErrorMessage:s=!0,children:c,...l}=e,o=S("label",a,{error:n});return(0,r.jsxs)("label",{className:o,...l,children:[(0,r.jsx)("span",{className:S("text"),children:t}),c,n&&s&&(0,r.jsx)(P.Z,{className:S("errorMessage"),message:n})]})},E=t(98782),L=t.n(E);let B=o().bind(L());var R=e=>{let{className:a,type:t,placeholder:n,label:s,disabled:c,error:l,showErrorMessage:o=!0,value:i,format:u,onChange:m,...d}=e,_=B("input",{disabled:c,error:l,number:"number"===t,textarea:"textarea"===t});return(0,r.jsx)(F,{showErrorMessage:o,className:a,error:l,text:s,children:(0,r.jsx)(C.Z,{tag:"textarea"===t?"textarea":"input",disabled:c,placeholder:n,t
1ype:t,value:i,className:_,onChange:e=>{if(!m)return;let{value:a}=e.target;u&&(e.currentTarget.value=u(e.currentTarget.value)),"number"===t?(0,N.hj)(a)&&m(e):m(e)},...d})})},Z=t(86752),D=t(73708),T=t(92555),W=t(47866),M=t(80436),O=t(10874),V=t(89186),U=t(11163);let q=o().bind(v()),Y=(0,c.lazy)(()=>Promise.all([t.e(5021),t.e(5581)]).then(t.bind(t,75581))),z=(0,c.lazy)(()=>t.e(3971).then(t.bind(t,33971))),A=(0,c.lazy)(()=>t.e(8439).then(t.bind(t,18439))),G=e=>{let{isOpen:a,totalPrice:t,trialPrice:n,price:s,onClose:l}=e,o=(0,c.useMemo)(()=>{let e="";return n?e+="Your $".concat(s," package lasts ",7," days, and"):e+="Your package $".concat(s),e+=" will renew every month\n      unless you cancel before the start of the next term. Enneagramtest.com will\n      charge the recurring membership fee of $".concat(t," to the same payment option you use today until you cancel, which can be done\n      at by contacting customer support at ").concat(V.UE," / ").concat("[email protected]","\n    ")},[s,t,n]);return(0,r.jsx)(f.Z,{isOpen:a,header:"Billing Details",className:q("billingPopupContent"),onClose:l,children:o})};var $=()=>{let e;let a=(0,m.Mg)(),t=(0,U.useRouter)(),{isActive:n,open:s,close:l}=(0,y.Z)(),o=(0,M.cI)({fields:{cardNumber:"",cardCvc:"",cardDate:"",postalCode:""},formValidationSchema:O.RF});(0,c.useEffect)(()=>{a.reportDownloadUrl&&a.mutation.isSuccess&&t.push({pathname:"/checkout/success",query:{downloadUrl:a.reportDownloadUrl}},"/checkout/success")},[a.mutation.isSuccess,a.reportDownloadUrl,t]);let{execute:i}=(0,T.Z)(),[u,d]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{d(!0)},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("form",{className:q("form"),"data-testid":"checkout-form",id:"checkout-form",onSubmit:(e=a.pay,async a=>{if(a.preventDefault(),!a.currentTarget.checkValidity()||!o.validate())return;let t=await i("checkout");return e({cardData:{cardNumber:o.form.cardNumber,expiry:o.form.cardDate,cvv:o.form.cardCvc},recaptchaToken:t,data:{zip:o.form.postalCode}})}),children:[(0,r.jsxs)("div",{className:q("formInfo"),children:[(0,r.jsx)("div",{className:q("cardsImageContainer"),children:(0,r.jsx)("img",{className:q("paymentImage"),src:"/images/brainable/cards.png",alt:""})}),(0,r.jsxs)("p",{className:q("totalWrapper"),children:[(0,r.jsx)("span",{className:q("totalLabel"),children:"Total:"}),(0,r.jsxs)("span",{className:q("totalValue"),children:["$",a.plan.trialPrice||a.plan.price]})]})]}),(0,r.jsx)("fieldset",{className:q("fieldset"),children:(0,r.jsx)(R,{name:"cardNumber",placeholder:"1234 1234 1234 1234",label:"Card number","data-testid":"card-number",format:W.yx,value:o.form.cardNumber,error:o.errors.cardNumber&&"Please input valid credit card",onChange:o.onChange})}),(0,r.jsx)("fieldset",{className:q("fieldset"),children:(0,r.jsx)(R,{name:"cardDate","data-testid":"card-expiration-date",placeholder:"MM / YY",label:"Expiration date",format:W.aO,value:o.form.cardDate,error:o.errors.cardDate&&"Please input valid credit card expiration date",onChange:o.onChange})}),(0,r.jsx)("fieldset",{className:q("fieldset"),children:(0,r.jsx)(R,{name:"cardCvc","data-testid":"card-cvc",label:"CVC",placeholder:"CVC",value:o.form.cardCvc,format:W.pJ,error:o.errors.cardCvc&&"Please input valid credit card CVC",onChange:o.onChange})}),(0,r.jsx)("fieldset",{className:q("fieldset"),children:(0,r.jsx)(R,{name:"postalCode","data-testid":"postal-code",label:"Postal code",placeholder:"90210",value:o.form.postalCode,type:"tel",inputMode:"numeric",onChange:o.onChange})}),(0,r.jsx)("div",{className:q("terms"),children:(0,r.jsx)(g.o,{name:"isAgreement","data-testid":"agreement",required:!0,label:(0,r.jsxs)("p",{className:q("agreementText","ml-[14px] font-montserrat"),children:['By clicking "Subscribe", you agree to provide your electronic signature authorizing Enneagramtest.com to charge your card as described in the'," ",(0,r.jsx)("a",{className:q("link"),onClick:s,children:"Billing Terms"}),", including for the automatic renewal of your membership, until you cancel. I agree to the Enneagramtest.com"," ",(0,r.jsx)(h(),{href:"/terms-of-use",target:"_blank",className:q("link"),
1children:"Terms of Use"})," ","and"," ",(0,r.jsx)(h(),{href:"/privacy-policy",target:"_blank",className:q("link"),children:"Privacy Policy"}),"."]})})}),a.error&&(0,r.jsx)(P.Z,{className:"my-4 text-center ",message:a.error}),(0,r.jsx)(Z.Z,{className:q("checkoutButton"),disabled:a.mutation.isLoading||a.mutation.isSuccess,hasAnimation:!1,type:"submit",onClick:()=>{(0,D.IJ)("Subscribe button clicked")},children:"Subscribe"}),(0,r.jsxs)("div",{className:q("flex flex-col mt-6 gap-4 items-center"),children:[u&&"undefined"!=typeof ApplePaySession&&(0,r.jsx)(c.Suspense,{fallback:(0,r.jsx)("div",{className:q("flex flex-col items-center"),children:(0,r.jsx)("div",{className:q("lds-dual-ring")})}),children:!a.mutation.isLoading&&(0,r.jsx)(z,{})}),u&&(0,r.jsx)(c.Suspense,{fallback:(0,r.jsx)("div",{className:q("flex flex-col items-center"),children:(0,r.jsx)("div",{className:q("lds-dual-ring")})}),children:!a.mutation.isLoading&&(0,r.jsx)(A,{})})]}),u&&(0,r.jsx)(c.Suspense,{children:(0,r.jsxs)("div",{className:q("paypal"),children:[(0,r.jsxs)("div",{className:q("paypal__prefer"),children:["Prefer"," ",(0,r.jsx)(k(),{src:x,alt:"",className:q("paypal__icon")})," ","?"]}),(0,r.jsx)("div",{className:q("paypalButtonWrapper","max-w-[310px]"),children:(0,r.jsx)(Y,{fullWidth:!0})}),(0,r.jsx)("p",{className:q("paypal__text"),children:"Pay securely with your Credit Card"})]})})]}),(0,r.jsx)(G,{isOpen:n,trialPrice:a.plan.trialPrice,price:a.plan.trialPrice||a.plan.price,totalPrice:a.plan.price,onClose:l})]})},H=t(48309),J=t(19662),K=t(23743),Q=t.n(K);let X=o().bind(Q()),ee=e=>{let{description:a}=e;return(0,r.jsxs)("div",{className:Q().billing,children:[(0,r.jsx)("p",{className:Q().summary__label,children:"Billing"}),(0,r.jsx)("p",{className:Q().billing__description,children:a})]})},ea=e=>{let{pricePlan:a,priceToPay:t,totalPrice:n}=e;return(0,r.jsxs)("div",{className:X("package","summary__block"),children:[(0,r.jsx)("p",{className:Q().summary__label,children:"Package"}),(0,r.jsxs)("div",{className:X("packages"),children:[(0,r.jsxs)("div",{className:X("package__item"),children:[(0,r.jsx)("div",{className:X("package__col"),children:(0,r.jsx)("p",{className:X("package__label"),children:a.title})}),(0,r.jsx)("div",{className:X("package__col"),children:(0,r.jsxs)("p",{className:X("package__label","package__label--highlighted"),children:["$",t," today"]})})]}),(0,r.jsxs)("div",{className:X("package__item"),children:[(0,r.jsx)("div",{className:X("package__col"),children:(0,r.jsxs)("p",{className:Q().package__info,children:[7," Day Access"]})}),(0,r.jsx)("div",{className:X("package__col"),children:(0,r.jsxs)("p",{className:Q().package__info,children:["Then ","$",n,"/month"]})})]})]})]})},et=e=>{let{firstName:a,email:t,lastName:n}=e,s=e=>{let{header:a,value:t}=e;return(0,r.jsxs)("li",{className:Q().account__item,children:[(0,r.jsx)("p",{className:Q().account__header,children:a}),(0,r.jsx)("p",{className:Q().account__text,children:t})]})};return(0,r.jsxs)("div",{className:Q().account,children:[(0,r.jsx)("div",{className:Q().summary__label,children:"Account information"}),(0,r.jsxs)("ul",{className:Q().account__list,children:[(0,r.jsx)(s,{header:"First name",value:a}),n&&(0,r.jsx)(s,{header:"Last name",value:n}),(0,r.jsx)(s,{header:"Email address",value:t})]})]})};var er=e=>{let{user:a}=e,{plan:t}=(0,m.Mg)(),n=t.trialPrice||t.price,s=t.price,l=(0,c.useMemo)(()=>{var e;let a;return e={...t,price:s},a='<slot1>\n    By clicking "Subscribe" you are providing your\n    electronic signature authorizing Enneagramtest.com to charge your\n    card as described. You also agree that <slot2>you will be billed $'.concat(e.price," \n    every month\n    until you cancel your account, which can be done\n    quickly and easily by contacting our support team at ").concat(V.UE," / ").concat("[email protected]","\n    "),a=e.trialPrice?(a=a.replace("<slot1>","Your $".concat(e.trialPrice," package lasts ",7," days. "))).replace("<slot2>","unless you cancel your account during your ".concat(7," day try out period ")):(a=a.replace("<slot1>","")).replace("<slot2>","")},[s,t]);return(0,r.jsx)(_.Z,{children:(0,r.jsx)("div",{className:X("payment__wrapper","bgBlueHalf"),children:(0,r.jsx)("div",{className:u()("container-fluid",Q().c
1ontainer),children:(0,r.jsx)("div",{className:u()(X("customRow"),"row"),children:(0,r.jsx)("div",{className:u()(X("customCol"),"col"),children:(0,r.jsx)(d.Z,{title:"Payment Information",dense:!0,children:(0,r.jsx)("div",{className:Q().payment__content,children:(0,r.jsxs)("div",{className:u()(X("customRow"),"row"),children:[(0,r.jsx)("div",{className:u()(X("customCol","summary__col"),"col md:col-5"),children:(0,r.jsxs)("div",{className:Q().summary,children:[(0,r.jsxs)("div",{className:Q().summary__block,children:[(0,r.jsx)("div",{className:Q().summary__title,children:"Summary"}),(0,r.jsx)(ee,{description:l})]}),(0,r.jsx)(ea,{pricePlan:t,priceToPay:n,totalPrice:s}),!!a&&(0,r.jsx)(et,{firstName:a.firstName,lastName:a.lastName,email:a.email})]})}),(0,r.jsxs)("div",{className:u()(X("customCol","checkout__col"),"col md:col-7 bg-white "),children:[(0,r.jsx)($,{}),(0,r.jsxs)("div",{className:X("checkout-col-footer"),children:[(0,r.jsx)(H.Z,{className:X("features")}),(0,r.jsx)(J.Z,{})]})]})]})})})})})})})})},en=t(37367);let es=()=>{var e;let a=(0,U.useRouter)().query.resultId||"",t=null===(e=en.S.result.getResult.useQuery({id:a},{enabled:!!a}).data)||void 0===e?void 0:e.result,c={email:(null==t?void 0:t.email)||"",firstName:(null==t?void 0:t.firstName)||"",lastName:(null==t?void 0:t.lastName)||""};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{seo_title:"Payment"}),(0,r.jsx)(m.oo,{plan:n.mv,shouldRedirect:!1,children:(0,r.jsx)(er,{user:c})})]})};es.marketingName="Quiz Checkout";var ec=es},32206:function(e,a,t){"use strict";t.d(a,{Z:function(){return n}});var r=t(67294);function n(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[a,t]=(0,r.useState)(e),n=(0,r.useRef)(()=>{t(!0)}),s=(0,r.useRef)(()=>{t(!1)}),c=(0,r.useRef)(()=>{t(e=>!e)});return{isActive:a,open:n.current,close:s.current,toggle:c.current}}},15951:function(e,a,t){"use strict";t.d(a,{a:function(){return u}});var r=t(62286),n=t.n(r),s=t(67294),c=t(81557),l=t(37367);let o=()=>
1{let[e,a]=(0,s.useState)((0,r.parseCookies)().auth);return(0,s.useEffect)(()=>{let e=()=>{a((0,r.parseCookies)().auth)};return document.addEventListener("oncookiechange",e),()=>{document.removeEventListener("oncookiechange",e)}},[]),e};var i=t(11163);let u=()=>{let{user:e,setUser:a,isUserLoaded:t}=(0,s.useContext)(c.S),r=o(),u=(0,i.useRouter)();return{isLoading:l.S.user.getUser.useQuery(void 0,{onSuccess:e=>{a(e.user)},onError:()=>{a(null),n().destroy(null,"auth",{path:"/"})},enabled:!!r,refetchInterval:!1,retry:!1}).isLoading,logout:()=>{n().destroy(null,"auth",{path:"/"}),a(null),u.push("/login")},isLoggedIn:!!e,user:e,setUser:a,isUserLoaded:t}}},98782:function(e){e.exports={input:"BrainableInput_input__swr3_",textarea:"BrainableInput_textarea__zDW5j"}},44110:function(e){e.exports={label:"BrainableInputLabel_label__REBEF",error:"BrainableInputLabel_error__nFO37",errorMessage:"BrainableInputLabel_errorMessage__yL60l",text:"BrainableInputLabel_text__myG61"}},59366:function(e){e.exports={cardsImageContainer:"CheckoutForm_cardsImageContainer__U7Xv6",paymentImage:"CheckoutForm_paymentImage__GKHGM",formInfo:"CheckoutForm_formInfo__tZYQQ",totalWrapper:"CheckoutForm_totalWrapper__WKzq1",totalLabel:"CheckoutForm_totalLabel__SfnAR",totalValue:"CheckoutForm_totalValue__oFLRv",fieldset:"CheckoutForm_fieldset___GBI2",form:"CheckoutForm_form__RqjkW",agreementText:"CheckoutForm_agreementText__C1nQK",link:"CheckoutForm_link__LKk1I",checkoutButton:"CheckoutForm_checkoutButton__WN_f8",terms:"CheckoutForm_terms__qKUyj",paypal:"CheckoutForm_paypal__oTOqk",paypal__btn:"CheckoutForm_paypal__btn__bGVXv",paypal__payment:"CheckoutForm_paypal__payment__yKneL",paypal__text:"CheckoutForm_paypal__text__MBk6Y",paypal__prefer:"CheckoutForm_paypal__prefer__IS5y2",paypal__icon:"CheckoutForm_paypal__icon__O92N6",paypalButtonWrapper:"CheckoutForm_paypalButtonWrapper__BVaxJ",billingPopupContent:"CheckoutForm_billingPopupContent__MOy_Y",hiddenPaypal:"CheckoutForm_hiddenPaypal__E6ahW",error:"CheckoutForm_error__ami6Q","lds-dual-ring":"CheckoutForm_lds-dual-ring__6VAVC"}},23743:function(e){e.exports={payment__wrapper:"PaymentContent_payment__wrapper__WLRTm",payment__content:"PaymentContent_payment__content__JeVmr",summary:"PaymentContent_summary__3KItR",summary__block:"PaymentContent_summary__block__ypX38",summary__col:"PaymentContent_summary__col__LMpHx",summary__title:"PaymentContent_summary__title__17E9R",summary__label:"PaymentContent_summary__label__uSU3T",billing__description:"PaymentContent_billing__description__qsws5",package:"PaymentContent_package__2irte",package__item:"PaymentContent_package__item__CdWl8",package__label:"PaymentContent_package__label__NxXlx","package__label--highlighted":"PaymentContent_package__label--highlighted__aIdiO",package__info:"PaymentContent_package__info__awHGy",package__price:"PaymentContent_package__price__6aDmd",packages:"PaymentContent_packages__uyGt3","checkout-col-footer":"PaymentContent_checkout-col-footer__svR_i",features:"PaymentContent_features__OuT9u",account:"PaymentContent_account__002q2",account__list:"PaymentContent_account__list__423Jb",account__item:"PaymentContent_account__item__SOEdJ",account__header:"PaymentContent_account__header__pGRec",account__text:"PaymentContent_account__text__U8Bad",container:"PaymentContent_container__LvSys",customRow:"PaymentContent_customRow__W7354",customCol:"PaymentContent_customCol__vm0eY",checkout__col:"PaymentContent_checkout__col__0AdvN"}}},function(e){e.O(0,[1696,2842,9615,5110,7056,7093,2888,9774,179],function(){return e(e.s=62013)}),_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.