PageSourceSearch

https://melissawoodhealth.com/static/js/7467.2a227d63.chunk.js

js melissawoodhealth.com collected 2026-10-02 10:50:31 UTC 37,687 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunkmwh_website=self.webpackChunkmwh_website||[]).push([[7467],{39557:(e,t,n)=>{n.d(t,{h:()=>o});var i,a,l=n(9950);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r.apply(null,arguments)}function s(e,t){let{title:n,titleId:s,...o}=e;return l.createElement("svg",r({width:64,height:64,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s},o),n?l.createElement("title",{id:s},n):null,i||(i=l.createElement("rect",{width:24,height:24,rx:12,fill:"#E1F7E6"})),a||(a=l.createElement("path",{d:"M17.3334 8.66797L10.0001 16.0013L6.66675 12.668",stroke:"#34C759",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}const o=l.forwardRef(s);n.p},18527:(e,t,n)=>{n.d(t,{h:()=>o});var i,a,l=n(9950);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r.apply(null,arguments)}function s(e,t){let{title:n,titleId:s,...o}=e;return l.createElement("svg",r({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s},o),n?l.createElement("title",{id:s},n):null,i||(i=l.createElement("path",{d:"M12.59 12.59C12.384 12.8111 12.1356 12.9884 11.8596 13.1114C11.5836 13.2343 11.2857 13.3005 10.9836 13.3058C10.6815 13.3111 10.3814 13.2555 10.1012 13.1424C9.82104 13.0292 9.56654 12.8608 9.35288 12.6471C9.13923 12.4335 8.97079 12.179 8.85763 11.8988C8.74447 11.6186 8.68889 11.3186 8.69423 11.0165C8.69956 10.7143 8.76568 10.4164 8.88866 10.1404C9.01163 9.86441 9.18894 9.61601 9.41 9.41002M15.455 15.455C14.1729 16.4323 12.6118 16.9737 11 17C5.75 17 2.75 11 2.75 11C3.68292 9.26144 4.97685 7.74247 6.545 6.54502L15.455 15.455ZM9.425 5.18002C9.94125 5.05918 10.4698 4.99877 11 5.00002C16.25 5.00002 19.25 11 19.25 11C18.7947 11.8517 18.2518 12.6536 17.63 13.3925L9.425 5.18002Z",stroke:"#2F2F2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),a||(a=l.createElement("path",{d:"M2.75 2.75L19.25 19.25",stroke:"#2F2F2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}const o=l.forwardRef(s);n.p},486:(e,t,n)=>{n.d(t,{h:()=>o});var i,a,l=n(9950);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r.apply(null,arguments)}function s(e,t){let{title:n,titleId:s,...o}=e;return l.createElement("svg",r({width:19,height:14,viewBox:"0 0 19 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s},o),n?l.createElement("title",{id:s},n):null,i||(i=l.createElement("path",{d:"M1 7C1 7 4 1 9.25 1C14.5 1 17.5 7 17.5 7C17.5 7 14.5 13 9.25 13C4 13 1 7 1 7Z",stroke:"#2F2F2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),a||(a=l.createElement("path",{d:"M9.25 9.25C10.4926 9.25 11.5 8.24264 11.5 7C11.5 5.75736 10.4926 4.75 9.25 4.75C8.00736 4.75 7 5.75736 7 7C7 8.24264 8.00736 9.25 9.25 9.25Z",stroke:"#2F2F2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}const o=l.forwardRef(s);n.p},16557:(e,t,n)=>{n.d(t,{A:()=>x});var i,a,l,r=n(14053),s=n(9950);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(null,arguments)}function c(e,t){let{title:n,titleId:r,...c}=e;return s.createElement("svg",o({width:64,height:64,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),n?s.createElement("title",{id:r},n):null,i||(i=s.createElement("rect",{width:24,height:24,rx:12,fill:"#FF3B30",fillOpacity:.15})),a||(a=s.createElement("path",{d:"M16 8L8 16",stroke:"#C00000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=s.createElement("path",{d:"M8 8L16 16",stroke:"#C00000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}const d=s.forwardRef(c);n.p;var u,m,v=n(39557);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},h.apply(null,arguments)}function p(e,t){let{title:n,titleId:i,...a}=e;return s.createElement("svg",h({width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},a),n?s.createElement("title",{id:i},n):null,u||(u=s.createElement("rect",{y:.5,width:16,height:16,rx:8,fill:"#EDEBE7"})),m||(m=s.createElement("path",{d:"M12 5.83301L6.95829 11.1663L4.66663 8.7421",stroke:"#9F9D96",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}const f=s.forwardRef(p);n.p;var g=n(44414);const y=e=>{switch(e){case"passed":return(0,g.jsx)(v.h,{});case"failed":return(0,g.jsx)(d,{});default:return(0,g.jsx)(f,{})}},x=e=>{const{value:t}=e;return(0,g.jsxs)("div",{className:"checklist-section mt-8",children:[(0,g.jsx)("h6",{className:"small-copy mb-8",children:"Your new password should contain:"}),r.UJ.map((e=>{const n=t&&e.pattern.exec(t)?"passed":"failed";return(0,g.jsxs)("p",{"data-testid":"password-rule",className:"small-copy ".concat(t&&n),children:[t?y(n):(0,g.jsx)(f,{})," ",e.label]},e.label)}))]})}},87467:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ee});var i=n(9950),a=n(46589),l=n(60899),r=n(10226),s=n(87685),o=n(14053),c=n(57279),d=n(88041),u=n(28429),m=n(42074),v=n(4356),h=n(27280),p=n(34834),f=n(29979),g=n(12463),y=n(92337),x=n(60529),w=n(60213),E=n(54488),S=n(60485),j=n(48657),N=n(41566),C=n(296),b=n(96557),_=n(3927),A=n(2046),I=n(93038),k=n(75208),T=n(85125),P=n(16557),L=n(90188),M=n(79332),R=n(39557),D=n(486),F=n(18527),O=n(44414);const U=e=>{var t,n,c,d,v,h;let{userData:f,isGiftSignup:g=!1,userName:y,onSubmit:x,onEmailBlur:w}=e;const E=(0,u.zy)(),S=(0,a.A)("(max-width:1024px)"),[j,N]=(0,i.useState)(!1),[C,U]=(0,i.useState)({secret:!1,confirmSecret:!1}),B=(e,t)=>{const n=!e;t.length<1&&n?N(!1):N(!0)};return(0,O.jsxs)("div",{children:[!S&&g&&(0,O.jsx)("h3",{className:"licence-detail",children:"Start Your Membership"}),!g&&!f&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"registration-create-account-banner",children:(0,O.jsx)("h2",{className:"registration-create-account-banner__title",children:"CREATE AN ACCOUNT"})}),(0,O.jsxs)("p",{className:"registration-account-login-prompt",children:["Already have an account?"," ",(0,O.jsx)(m.N_,{to:p.bw.LOGIN,className:"underlineAnchor",state:{navigate:"".concat(E.pathname).concat(E.search)},children:"Log in"})]})]}),!g&&f&&(0,O.jsx)("p",{className:"small-copy user-detail-header",children:"ACCOUNT"}),!f&&(0,O.jsx)("div",{children:(0,O.jsx)(T.l1,{initialValues:s.iC,onSubmit:x,validate:(0,L.t)(M.Qk),enableReinitialize:!0,children:e=>{var t;let{values:n,errors:i,touched:a,isValid:s,dirty:c,validateOnBlur:d,setFieldTouched:u,handleChange:v,handleBlur:h}=e;return(0,O.jsxs)(T.lV,{className:"form-wrapper",children:[(0,O.jsx)(l.Ay,{container:!0,justifyContent:"space-between",children:(0,O.jsxs)(l.Ay,{item:!0,xs:12,children:[(0,O.jsxs)(b.A,{children:[(0,O.jsx)("label",{className:"sub-head light no-letter-space",htmlFor:"name",children:"Name"}),(0,O.jsx)(_.A,{name:"name",placeholder:"Name",variant:"outlined",value:n.name,error:a.name&&!!i.name,onBlur:h,onChange:v,inputProps:{maxLength:40},id:"name"}),a.name&&!(null===i||void 0===i||!i.name)&&(0,O.jsx)("span",{className:"error-text full-width",children:i.name})]}),(0,O.jsxs)(b.A,{children:[(0,O.jsx)("label",{className:"sub-head light no-letter-space",htmlFor:"email",children:"Email"}),(0,O.jsx)(_.A,{name:"email",placeholder:"Email",variant:"outlined",value:n.email,error:a.email&&!!i.email,onBlur:e=>{h(e),n.email&&!i.email&&w&&w(n.email)},onChange:v,id:"email"}),a.email&&!(null===i||void 0===i||!i.email)&&(0,O.jsx)("span",{className:"error-text full-width",children:i.email})]}),(0,O.jsxs)(b.A,{children:[(0,O.jsx)("label",{className:"sub-head light no-letter-space",htmlFor:"password",children:"Password"}),(0,O.jsx)(_.A,{placeholder:"Password",name:"secret",variant:"outlined",type:C.secret?"text":"password",value:n.secret,onChange:v,onBlur:e=>{h(e),B(!1,n.secret)},onClick:()=>B(!0,n.secret),onKeyUp:()=>B(!0,n.secret),className:"".concat(n.secret&&!i.secret&&"success"),error:a.secret&&!!i.secret,InputProps:{endAdornment:(0,O.jsx)(A.A,{position:"start",className:"cursor-pointer",onClick:()=>U({...C,secret:!C.secret}),children:C.secret?(0,O.jsx)(D.h,{}):(0,O.jsx)(F.h,{})})},id:"password"}),j&&(0,O.jsx)(P.A,{value:n.secret}),a.secret&&!(null===i||void 0===i||!i.secret)&&!j&&(0,O.jsx)("span",{className:"error-text full-width",children:i.secret})]}),(0,O.jsxs)(b.A,{children:[(0,O.jsx)("label",{className:"sub-head light no-letter-space",htmlFor:"cnf-password",children:"Confirm password"}),(0,O.jsx)(_.A,{placeholder:"Confirm Password",name:"confirmSecret",variant:"outlined",type:C.confirmSecret?"text":"password",value:n.confirmSecret,onChange:v,onBlur:h,className:"".concat(n.confirmSecret&&!i.confirmSecret&&"success"),error:a.confirmSecret&&!!i.confirmSecret,InputProps:{endAdornment:(0,O.jsx)(A.A,{position:"start",className:"cursor-pointer",onClick:()=>U({...C,confirmSecret:!C.confirmSecret}),children:C.confirmSecret?(0,O.jsx)(D.h,{}):(0,O.jsx)(F.h,{})})},id:"cnf-password"}),a.confirmSecret&&!(null===i||void 0===i||!i.confirmSecret)&&(0,O.jsx)("span",{className:"error-text full-width",children:0===(null===n||void 0===n||null===(t=n.confirmSecret)||void 0===t?void 0:t.length)?o.nl.error.confirmPasswordRequired:i.confirmSecret}),n.confirmSecret&&!i.confirmSecret&&(0,O.jsxs)("p",{className:"success-text full-width",children:[(0,O.jsx)(R.h,{})," ",(0,O.jsx)("span",{children:"Confirm password matched"})]})]})]})}),(0,O.jsxs)(b.A,{children:[(0,O.jsxs)("div",{className:"marketing-emails",children:[(0,O.jsx)("div",{children:(0,O.jsx)(I.A,{name:"termsAndConditions",value:n.termsAndConditions,onChange:e=>{v(e),u("termsAndConditions",!0,!1)},onBlur:h,disableRipple:!0})}),(0,O.jsx)("div",{className:"email-text",children:(0,O.jsxs)("p",{children:["I confirm that I have read and agree to the"," ",(0,O.jsx)(m.N_,{to:p.bw.TERMS,target:"_blank",className:"underlineAnchor",children:"Terms of Use"}),","," ",(0,O.jsx)(m.N_,{to:p.bw.MEMBERSHIP_TERMS,target:"_blank",className:"underlineAnchor",children:"Membership Terms"})," ","and"," ",(0,O.jsx)(m.N_,{to:p.bw.PRIVACY_POLICY,target:"_blank",className:"underlineAnchor",children:"Privacy Policy."})]})})]}),a.termsAndConditions&&!(null===i||void 0===i||!i.termsAndConditions)&&(0,O.jsx)("span",{className:"error-text full-width",children:i.termsAndConditions})]}),(0,O.jsxs)("div",{className:"marketing-emails",children:[(0,O.jsx)("div",{children:(0,O.jsx)(I.A,{name:"emailMarketing",value:n.emailMarketing,onChange:v,onBlur:h,disableRipple:!0})}),(0,O.jsx)("div",{className:"email-text",children:(0,O.jsx)("p",{children:"I agree to re
1ceive newsletters and product updates from Melissa Wood Health."})})]}),(0,O.jsx)(r.A,{className:"secondary-btn next-step-btn registration-action-btn",variant:"contained",disabled:!(s&&c),type:"submit",children:g?"REDEEM MY GIFT":"Continue"})]})}})}),f&&(0,O.jsxs)("div",{className:"user-details",children:[(0,O.jsx)(k.A,{src:null!==(t=null===f||void 0===f||null===(n=f.name)||void 0===n?void 0:n.fullName)&&void 0!==t?t:y,alt:null!==(c=null===f||void 0===f||null===(d=f.name)||void 0===d?void 0:d.fullName)&&void 0!==c?c:"MWH",className:"avatar-icon"}),(0,O.jsxs)("div",{children:[(0,O.jsx)("p",{className:"small-copy",children:null!==(v=null===f||void 0===f||null===(h=f.name)||void 0===h?void 0:h.fullName)&&void 0!==v?v:y}),(0,O.jsx)("p",{className:"small-copy user-email",children:null===f||void 0===f?void 0:f.id})]})]})]})};var B=n(41852),G=n(45878),W=n(40194);const K=(e,t)=>{const n=e.licence.name.trim().toLowerCase(),i=t.licence.name.trim().toLowerCase();return n.includes("monthly")&&!i.includes("monthly")?-1:1},V=e=>{let{membershipPlan:t,activePlan:n,handleChange:l,heroTitle:r,heroSubtitle:s}=e;const o=(0,a.A)("(max-width:1024px)"),c=(0,i.useMemo)((()=>(0,w.TE)("11/16/2023","12/22/2023")),[]),d=(0,i.useMemo)((()=>null===t||void 0===t?void 0:t.sort(K)),[t]);return(0,O.jsxs)("div",{children:[o&&(r||s)&&(0,O.jsxs)("div",{className:"plan-trial",children:[r&&(0,O.jsx)("p",{className:"plan-trial__title",children:r}),s&&(0,O.jsx)("p",{className:"plan-trial__subtitle",children:s})]}),(null===d||void 0===d?void 0:d.length)>0&&(null===d||void 0===d?void 0:d.map(((e,t)=>{var i,a,r,s,o,d,u,m,v,h,p,f,g,y,x,E,S,j,N,C;return(0,O.jsx)("div",{children:(0,O.jsx)("div",{role:"none",className:"plan-details-wrapper ".concat((0,w.fr)((null===e||void 0===e||null===(r=e.licence)||void 0===r?void 0:r.name)===(null===n||void 0===n||null===(s=n.licence)||void 0===s?void 0:s.name),"selected-plan")," "),onClick:()=>l(e),children:(0,O.jsxs)("div",{className:"plan-details",children:[(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{className:"plan-description",children:[(0,O.jsx)("p",{className:"big-copy plan-description-margin",children:null===(o=e.licence)||void 0===o?void 0:o.name}),e.licence.name.includes("Annual")&&(0,O.jsx)("div",{className:"discounted-price",children:(0,O.jsxs)("h3",{className:"light",children:["$",(null===e||void 0===e||null===(d=e.licence)||void 0===d?void 0:d.amounts)&&(0,w.vf)(null===e||void 0===e||null===(u=e.licence)||void 0===u?void 0:u.amounts[0].amount,null===e||void 0===e||null===(m=e.licence)||void 0===m?void 0:m.amounts[0].scale)]})}),e.licence.name.includes("Annual")&&(0,O.jsxs)("p",{className:"plans-savings",children:[(0,w.Dm)(e),"% savings"]}),(null===e||void 0===e?void 0:e.licence.helpText)&&(0,O.jsx)("p",{className:"small-copy",children:null===e||void 0===e?void 0:e.licence.helpText})]}),(0,O.jsxs)("p",{className:"small-copy plan-price-per-month",children:["$",e.licence.name.includes("Annual")?(Number((0,w.vf)(null===e||void 0===e||null===(v=e.licence)||void 0===v?void 0:v.amounts[0].amount,null===e||void 0===e||null===(h=e.licence)||void 0===h?void 0:h.amounts[0].scale))/12).toFixed(2):Number((0,w.vf)(null===e||void 0===e||null===(p=e.licence)||void 0===p?void 0:p.amounts[0].amount,null===e||void 0===e||null===(f=e.licence)||void 0===f?void 0:f.amounts[0].scale)),"/month"]}),c&&(0,O.jsxs)("div",{children:[(null===(g=e.licence)||void 0===g?void 0:g.name.includes("Monthly"))&&(null===n||void 0===n||null===(y=n.licence)||void 0===y||null===(x=y.name)||void 0===x?void 0:x.includes("Monthly"))&&(0,O.jsx)("p",{className:"plan-price-increase savings",children:"After Dec. 21, 2023, at your next renewal, price will increase to USD $14.95 (+taxes)"}),(null===(E=e.licence)||void 0===E?void 0:E.name.includes("Annual"))&&(null===n||void 0===n||null===(S=n.licence)||void 0===S||null===(j=S.name)||void 0===j?void 0:j.includes("Annual"))&&(0,O.jsx)("p",{className:"plan-price-increase savings",children:"After Dec. 21, 2023, at your next renewal, price will increase to USD $134.99 (+taxes)"})]})]}),(0,O.jsx)("div",{children:(0,O.jsx)(W.A,{checked:(null===e||void 0===e||null===(N=e.licence)||void 0===N?void 0:N.name)===(null===n||void 0===n||null===(C=n.licence)||void 0===C?void 0:C.name),onChange:()=>l(e),value:t,name:"payment-methods",disableRipple:!0})})]})})},"plan-".concat(null===e||void 0===e||null===(i=e.licence)||void 0===i?void 0:i.name,"-").concat(null===e||void 0===e||null===(a=e.licence)||void 0===a?void 0:a.id))})))]})};var H=n(65604),J=n(58920),Y=n(50309),q=n(76810),Z=n(86896);n(63113),n(7621);var $=n(63137);const z=[(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("strong",{children:"FREE 7 DAY TRIAL"})," for all New Members"]}),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("strong",{children:"1000+ guided workouts and meditations:"})," Pilates, Strength, Sculpt, Yoga, Pre & Postnatal and more"]}),(0,O.jsxs)(O.Fragment,{children:["Perfect for ",(0,O.jsx)("strong",{children:"At-Home"})," and ",(0,O.jsx)("strong",{children:"On-The-Go"})," - stream anywhere or download these on-demand classes"]}
1),(0,O.jsxs)(O.Fragment,{children:["New classes & content ",(0,O.jsx)("strong",{children:"EVERY WEEK"})," + Custom Weekly Schedules and Programs for workouts & meditations"]}),(0,O.jsxs)(O.Fragment,{children:["The ",(0,O.jsx)("strong",{children:"Nutrition"})," hub for 100+ Coveted Recipes, video tutorials, exclusive guides and resources, grocery lists and pantry items"]}),(0,O.jsxs)(O.Fragment,{children:["The ",(0,O.jsx)("strong",{children:"Lifestyle"})," library 30+ thought-provoking posts about beauty, wellness, mindfulness, family and more"]})],Q=()=>{var e,t,n,b,_,A,I,k;const T=(0,u.Zp)(),P=(0,u.zy)(),[L]=(0,m.ok)(),M=(0,H.useStripe)(),R=(0,H.useElements)(),{SnackBarDOM:D,setSnackBarMessage:F}=(0,j.y)(),{handleCardSetup:W,stripeErrorHandleDom:K}=(0,Z.A)(),{handleError:Q}=(0,C.D)(),{verifyUserIsNotBot:X,CaptchaV2DOM:ee}=(0,S.B)(),{triggerEvent:te}=(0,x.s)("REGISTRATION"),[ne,ie]=(0,i.useState)(!1),[ae,le]=(0,i.useState)(""),{setEndeavorToken:re,isUserAddingCard:se}=(0,i.useContext)(h.F),oe=(0,a.A)("(max-width:1024px)"),[ce,de]=(0,i.useState)([]),[ue,me]=(0,i.useState)(),[ve,he]=(0,i.useState)(void 0),[pe,fe]=(0,i.useState)(),[ge,ye]=(0,i.useState)(void 0),[xe,we]=(0,i.useState)(!1),[Ee,Se]=(0,i.useState)(),[je,Ne]=(0,i.useState)(),[Ce,be]=(0,i.useState)(!1),[_e,Ae]=(0,i.useState)(!1),[Ie,ke]=(0,i.useState)(),[Te,Pe]=(0,i.useState)(""),[,Le]=(0,i.useState)(null),[Me,Re]=(0,i.useState)(),De=(0,i.useRef)(null),Fe=(0,i.useRef)(void 0);(0,i.useEffect)((()=>{ge&&(Fe.current=ge)}),[ge]);const Oe=(0,i.useRef)(null),Ue=(0,i.useRef)({name:"",email:""}),Be=(0,i.useRef)(null),Ge=(0,i.useMemo)((()=>{var e;return null===P||void 0===P||null===(e=P.state)||void 0===e?void 0:e.giftData}),[P.state]),We=(0,i.useMemo)((()=>{var e;return null!==Ee&&void 0!==Ee&&Ee.discountedTotal?(0,q.Ln)(Ee.discountedTotal.amount,Ee.discountedTotal.scale):null!==Ee&&void 0!==Ee&&null!==(e=Ee.basketItems)&&void 0!==e&&e[0]?(0,q.Ln)(Ee.basketItems[0].total,Ee.basketItems[0].scale):void 0}),[Ee]);(0,i.useEffect)((()=>{var e;if(localStorage.getItem(p.RF.IS_GUEST_USER)===p.RF.IS_UN_AUTHENTICATED_USER&&P.pathname.includes(p.bw.REGISTRATIONS)&&(!P.state||(null===(e=P.state)||void 0===e?void 0:e.licence))){const e=sessionStorage.getItem(o.kr);if(e&&!P.search)T({pathname:P.pathname,search:(0,w.cX)(JSON.parse(e))},{replace:!0});else{const e=Ke();e&&Object.values(e).length>0&&sessionStorage.setItem(o.kr,JSON.stringify(e))}}}),[]),(0,i.useEffect)((()=>{let e=!1;return(async()=>{const t=await(0,d.ub)();!e&&t&&Re(t)})(),()=>{e=!0}}),[]);const Ke=()=>["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].reduce(((e,t)=>{const n=L.get(t);return n&&(e[t]=n),e}),{});(0,i.useEffect)((()=>{{const e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.avmws.com/10".concat("29925","/");const t=document.getElementsByTagName("script")[0];return null!==t&&void 0!==t&&t.parentNode&&(null===t||void 0===t||t.parentNode.insertBefore(e,t)),()=>{e.parentNode&&e.parentNode.removeChild(e)}}}),[]);const Ve=(0,i.useCallback)((async e=>{if(Ee){var t,n,i,a;const l=[["order",{order_id:"".concat(e),amount:(0,w.vf)(null===Ee||void 0===Ee?void 0:Ee.total.amount,null===Ee||void 0===Ee||null===(t=Ee.total)||void 0===t?void 0:t.scale),state:null===Ie||void 0===Ie?void 0:Ie.administrativeLevel1,country:null===Ie||void 0===Ie?void 0:Ie.countryCode,currency:"USD",new_customer:"N",ecc:Te}],["item",{order_id:"".concat(e),parent_sku:null!==pe&&void 0!==pe&&null!==(n=pe.licence)&&void 0!==n&&null!==(i=n.name)&&void 0!==i&&i.includes("Annual")?"1946":"1945",variant_sku:"",price:(0,w.vf)(null===Ee||void 0===Ee?void 0:Ee.total.amount,null===Ee||void 0===Ee||null===(a=Ee.total)||void 0===a?void 0:a.scale),qty:"1"}]];window._AvantMetrics=window._AvantMetrics||[],l.forEach((e=>{var t,n;return window&&(null===(t=window)||void 0===t||null===(n=t._AvantMetrics)||void 0===n?void 0:n.push(e))}));const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.avmws.com/10".concat("29925","/");const s=document.getElementsByTagName("script")[0];return null!==s&&void 0!==s&&s.parentNode&&(null===s||void 0===s||s.parentNode.insertBefore(r,
1s)),()=>{r.parentNode&&r.parentNode.removeChild(r)}}}),[Ie,Ee,Te,pe]),He=async e=>{var t;await Ve(null===e||void 0===e?void 0:e.purchaseIds[0]),null!==e&&void 0!==e&&e.purchaseIds[0]&&null!==Ee&&void 0!==Ee&&null!==(t=Ee.basketItems[0])&&void 0!==t&&t.total&&(async(e,t,n)=>{const i=document.cookie.split(";").reduce(((e,t)=>({...e,[(t.split("=")[0]||"").trim()]:(t.split("=")[1]||"").trim()})),{}),{sms_click_id:a}=i,l=""===t.trim()?null:t;fetch("https://api.shopmy.us/api/order_confirmation",{method:"POST",headers:{"Content-Type":"application/json"},keepalive:!0,body:JSON.stringify({orderAmount:n/100,orderId:e,clickId:a,currency:"USD",is_returning_customer:!1,page_url:window.location.href,code:l})}).then((e=>{if(!e.ok)throw new Error("Invalid order request sent");return e.json()})).then((()=>{const e=new Date;document.cookie="sms_click_id=;expires=".concat(e.toUTCString(),";path=/;"),document.cookie="sms_click_time=;expires=".concat(e.toUTCString(),";path=/;")})).catch((e=>{console.error("ShopMy order tracking failed:",e)}))})(e.purchaseIds[0],Te,Ee.basketItems[0].total),Le((null===e||void 0===e?void 0:e.purchaseIds[0])||null),(async()=>{var e,t,n,i,a,l,r,s,c,d,u,m,v,h,f,g;const y={},x=localStorage.getItem(p.KP.KEY);null!==ve&&void 0!==ve&&null!==(e=ve.licence)&&void 0!==e&&null!==(t=e.amounts)&&void 0!==t&&null!==(n=t[0])&&void 0!==n&&n.amount&&(y.subscription_value=(0,w.vf)(ve.licence.amounts[0].amount,(null===(i=ve.licence.amounts[0])||void 0===i?void 0:i.scale)||0)),null!==ve&&void 0!==ve&&null!==(a=ve.licence)&&void 0!==a&&null!==(l=a.amounts)&&void 0!==l&&null!==(r=l[0])&&void 0!==r&&r.currency&&(y.subscription_currency=ve.licence.amounts[0].currency),null!==Ue&&void 0!==Ue&&null!==(s=Ue.current)&&void 0!==s&&s.name&&(y.name=Ue.current.name);const E=te(o.sK.USER_LICENSE_PURCHASE,{email:Ue.current.email,dataFields:{subscription_tier:null!==(c=null===ve||void 0===ve?void 0:ve.licence.name)&&void 0!==c?c:"",subscription_period:null!==(d=null===ve||void 0===ve||null===(u=ve.licence)||void 0===u||null===(m=u.purchaseStrategy)||void 0===m?void 0:m.subscriptionPeriod)&&void 0!==d?d:""}},y),S=te(o.sK.USER_LICENSE_PURCHASE_FB,{email:Ue.current.email,dataFields:{subscription_tier:null!==(v=null===ve||void 0===ve?void 0:ve.licence.name)&&void 0!==v?v:"",subscription_period:null!==(h=null===ve||void 0===ve||null===(f=ve.licence)||void 0===f||null===(g=f.purchaseStrategy)||void 0===g?void 0:g.subscriptionPeriod)&&void 0!==h?h:""}},y);await Promise.allSettled([E,S]),sessionStorage.removeItem(o.kr),localStorage.removeItem(p.KP.KEY),T(null!==x&&void 0!==x?x:p.bw.WORKOUTS,{state:p.K5.SUBSCRIBED_USER})})().catch((e=>console.log(e)))},Je=async e=>{try{if(e&&e.cards.length>0)await(async e=>{var t,n;const i=null===e||void 0===e||null===(t=e.cards)||void 0===t?void 0:t.filter((e=>e.paymentMethodType&&e.paymentDetailsExternalId)),a=null!==(n=null===i||void 0===i?void 0:i.find((e=>e.defaultCard)))&&void 0!==n?n:null===i||void 0===i?void 0:i[0];if(!a)throw new Error(o.nl.error.somethingWentWrongWhile("purchasing a licence"));if((0,w.ov)(a.expiryMonth,a.expiryYear))return void F(o.nl.error.invalidExpireDateOfCard);const l={paymentArrangement:{primaryPaymentDetailsAttributes:{paymentMethodType:a.paymentMethodType,targetPaymentProvider:null===e||void 0===e?void 0:e.availablePaymentProviders[0].targetPaymentProvider,paymentDetailsExternalId:a.paymentDetailsExternalId}}},r=await(0,v.oM)(l);await He(r)})(e);else if(ge){const e=(0,q.aq)(ge);if(e){const t=await(0,v.oM)(e);await He(t)}}}catch(n){var t;if(!(n instanceof Error&&n.message===o.nl.error.captchaVerificationFailed))Q(n,"Purchase a licence",{hasPaymentInitData:!!ge,savedCardCount:null===e||void 0===e||null===(t=e.cards)||void 0===t?void 0:t.length}),Ne(!0)}},Ye=async()=>{try{if(be(!0),Ee){const e=await(0,v.sN)();e&&Je(e)}}catch(e){e instanceof Error&&e.message===o.nl.error.captchaVerificationFailed||Ne(!0)}finally{localStorage.removeItem(p.K5.SELECTED_LICENCE),be(!1)}},qe=async e=>{try{if(be(!0),e&&e.length>0){const n=await(0,v.r9)(e[0].sku);if(n){var t;Se(n);const{paymentProvider:{targetPaymentProvider:e,paymentProviderType:i,paymentMethodType:a},discountedTotal:{amount:l,currency:r,scale:s}}=n,o=await(0,v.sN)();if(0===(null===o||void 0===o||null===(t=o.cards)||void 0===t?void 0:t.length)&&null===P.state){const t={primaryPaymentDetails:{targetPaymentProvider:e,paymentProviderType:i,paymentMethodDetails:{paymentMethodType:a,amount:{currency:r,amount:l,scale:s}}}},n=await(0,v._h)(t);n&&ye(n)}else ye(void 0);tt(),setTimeout((()=>{tt()}),1e4)}}}catch(n){Q(n,"Add basket in to card",e),F(n)}finally{be(!1)}},Ze=(0,i.useCallback)((async()=>{be(!0);try{if(P.state){const{licence:{amounts:e}}=P.state;fe(P.state),qe(e).catch((e=>console.log(e)))}const e=localStorage.getItem(p.K5.SELECTED_LICENCE);if(e){const{licence:{amounts:t}}=JSON.parse(e);qe(t).catch((e=>console.log(e)))}}catch(e){Q(e,"Add licence to basket",""),F(e)}}),[]),$e=async e=>{try{be(!0);const{name:t,email:n,secret:i,emailMarketing:a,termsAndConditions:l}=e,r={secret:i,email:n,meta_fields:{name:{fullName:t,preferredName:""}}
1,consentAnswers:[{answer:!!l,promptField:s.DB.TERMS_AND_CONDITIONS},{answer:!!a,promptField:s.DB.EMAIL_MARKETING_ALLOWED}]},c={name:t};await X("user_registration");const d=await(0,v.Tv)(r);if(d){const e=(0,E.Q)(d.authorisationToken);Ue.current={name:t,email:n};const i=Ke(),l=await(0,w.SP)(),s={...i,name:r.meta_fields.name.fullName,id:Date.now(),Active:!1,Cancelled:!1,ipAddress:null!==l&&void 0!==l?l:"",subscription_period:null===ve||void 0===ve?void 0:ve.licence.name},u=te(o.sK.USER_ACCOUNT_SIGNUP,{email:n,dataFields:s}),m=te(o.sK.USER_ACCOUNT_SIGNUP_FB,{email:n,dataFields:s});(0,f.U9)({email:n,...e&&{external_id:e}}),await Promise.allSettled([u,m,(0,f.p)(f.KG.REGISTRATION_ACCOUNT_SIGNUP,{name:r.meta_fields.name.fullName,platform:"Web",subscription_tier:null===ve||void 0===ve?void 0:ve.licence.name})]),re(d),null!==d&&void 0!==d&&d.authorisationToken&&(localStorage.setItem(p.$x.ENDEAVOR_AUTH_TOKEN,JSON.stringify(d)),localStorage.setItem(p.MG.IS_LOGIN_USER,p.MG.IS_AUTHENTICATED_USER),localStorage.removeItem(p.RF.IS_GUEST_USER),ze());const h=await(0,v.DG)(c);await(async(e,t,n)=>{if(t){const a={receiveMarketingEmails:t};await(0,v._R)(a);try{await(0,g.xE)({email:e,klaviyoSource:y.q.REGISTRATION,externalId:n}),await(0,g.pR)(f.KG.EMAIL_SIGNUP,{email:e,source:"Registration Web",platform:"Web"})}catch(i){console.error(i)}}})(n,a,e),Ge?await(async e=>{try{e&&(await(0,v.gs)(e),F(o.nl.success.giftRedeemSuccessfully,"info"),setTimeout((()=>{T("/",{state:p.K5.SUBSCRIBED_USER})}),3e3))}catch(t){Q(t,"gift redeem",e),F(t)}finally{be(!1)}})(Ge.giftCode):ve&&h&&await(async e=>{const{licence:{amounts:t}}=e;if(t&&t.length>0){var n,i;const e=await(0,v.r9)(t[0].sku);Se(e);const{paymentProvider:{targetPaymentProvider:l,paymentProviderType:r,paymentMethodType:s},discountedTotal:{amount:o,currency:c,scale:d}}=e,u=await(0,v.sN)();if(0!==(null===u||void 0===u||null===(n=u.cards)||void 0===n?void 0:n.length)||null!==P.state&&(null===P||void 0===P||null===(i=P.state)||void 0===i?void 0:i.status)!==p.$g.INACTIVE)ye(void 0);else{const e={primaryPaymentDetails:{targetPaymentProvider:l,paymentProviderType:r,paymentMethodDetails:{paymentMethodType:s,amount:{currency:c,amount:o,scale:d}}}},t=await(0,v._h)(e);var a;t&&(ye(t),null===De||void 0===De||null===(a=De.current)||void 0===a||a.scrollIntoView())}tt(),setTimeout((()=>{tt()}),1e4)}})(ve)}}catch(t){Q(t,"captcha verification",e),F(t instanceof Error&&t.message===o.nl.error.captchaVerificationFailed?o.nl.error.captchaVerificationFailed:o.nl.error.userAlreadyExists)}finally{be(!1)}},ze=(0,i.useCallback)((async()=>{const e=await(0,v.yS)();var t;e&&(me(e),Ue.current={name:null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.fullName,email:null===e||void 0===e?void 0:e.id})}),[]);(0,i.useEffect)((()=>{localStorage.getItem(p.MG.IS_LOGIN_USER)&&ze()}),[ze]);const Qe=async e=>{const{termsAndConditions:t,name:n}=e;Ae(!0),le(n),t?$e(e).catch((e=>console.log(e))):F(o.nl.error.termsAndCondition)},Xe=(0,i.useCallback)((async()=>{var e,t;if(M&&R)if(null!==ge&&void 0!==ge&&null!==(e=ge.primaryPaymentDetails)&&void 0!==e&&null!==(t=e.paymentMethodDetails)&&void 0!==t&&t.setupIntentClientSecret&&ge.primaryPaymentDetails.paymentDetailsExid){var n;Ae(!0),await X("purchase_membership");const e=await M.confirmCardSetup(ge.primaryPaymentDetails.paymentMethodDetails.setupIntentClientSecret,{payment_method:{card:R.getElement(H.CardElement)}});await W(e),null!==e&&void 0!==e&&e.setupIntent&&"succeeded"===(null===e||void 0===e||null===(n=e.setupIntent)||void 0===n?void 0:n.status)&&await Ye()}else await Ye()}),[ge,R,W,X,M]),et=(0,i.useCallback)((async e=>{try{ue&&!P.state?(e.preventDefault(),Xe()):Ye()}catch(t){t instanceof Error&&t.message===o.nl.error.captchaVerificationFailed?(Q(t,o.nl.error.captchaVerificationFailed,ue),F(o.nl.error.captchaVerificationFailed)):(Q(t,o.nl.error.invalidStripeError,ue),F(o.nl.error.invalidStripeError))}finally{Ae(!1)}}),[Ye,ge,ue,P,M,R]),tt=async()=>{try{be(!0);const e=await(0,v.mq)();e&&(Se(e),we(!1))}catch(e){Q(e,"get updated basket detail",""),F(e)}finally{be(!1)}},nt=(0,i.useCallback)((async()=>{try{be(!0);
1const e=localStorage.getItem(p.RF.IS_GUEST_USER),t=await(0,v.yh)(),n=(null!==t&&void 0!==t?t:[]).filter((e=>{var t,n;return!(null!==e&&void 0!==e&&null!==(t=e.licence)&&void 0!==t&&null!==(n=t.name)&&void 0!==n&&n.toLowerCase().includes("(old)"))}));if(n&&(null===n||void 0===n?void 0:n.length)>0){const t=null===n||void 0===n?void 0:n.findIndex((e=>{var t,n;return null===e||void 0===e||null===(t=e.licence)||void 0===t||null===(n=t.name)||void 0===n?void 0:n.includes("Annual")}));if(t>-1){const e=n[t];n.splice(t,1),n.splice(0,0,e)}if(de(n),P.state)!Ge&&he(P.state);else{const t=null===n||void 0===n?void 0:n.findIndex((e=>{var t,n;return null===e||void 0===e||null===(t=e.licence)||void 0===t||null===(n=t.name)||void 0===n?void 0:n.toLowerCase().includes("monthly")})),i=t>-1?t:0;he(n[i]),localStorage.setItem(p.K5.SELECTED_LICENCE,JSON.stringify(n[i])),e&&fe(n[i])}}}catch(e){Q(e,"get subscription licence",""),F(e)}finally{be(!1)}}),[]);(0,i.useEffect)((()=>{void 0===ve&&nt().catch((e=>console.log(e)))}),[ve,nt]),(0,i.useEffect)((()=>{be(!0);const e=localStorage.getItem(p.MG.IS_LOGIN_USER);if(P.state){if(!Ge){he(P.state),fe(P.state);localStorage.getItem(p.RF.IS_GUEST_USER)&&be(!1),e&&(Ze().catch((e=>console.log(e))),ie(!0))}}else(async()=>{await(async e=>{const t=localStorage.getItem(p.K5.SELECTED_LICENCE);if(t)if(fe(JSON.parse(t)),he(JSON.parse(t)),e)try{Ze().catch((e=>console.log(e))),ie(!0),Ae(!0),be(!1)}catch(n){Q(n,"get already selected licence",{selectedLicence:t,isUserAlreadyLogin:e}),F(n)}finally{be(!1)}else be(!1)})(e)})()}),[P.state,Ze,T]);const it=(0,i.useMemo)((()=>{var e,t,n;const i=(null===Me||void 0===Me||null===(e=Me.member_benefits_intro)||void 0===e?void 0:e.trim())||"MWH is a fitness & wellness APP created for you to build a better, stronger relationship with yourself. With over 1,000+ on-demand classes, MWH becomes a way of life.",a=(null===Me||void 0===Me||null===(t=Me.member_benefits_heading)||void 0===t?void 0:t.trim())||"Membership Includes Unlimited Access to:",l=(0,O.jsxs)("div",{className:"registration-benefits-intro",children:[(0,O.jsx)("p",{className:"registration-benefits-intro__lead",children:i}),(0,O.jsx)("p",{className:"registration-benefits-intro__heading",children:a})]}),r=null===Me||void 0===Me||null===(n=Me.member_benefits)||void 0===n?void 0:n.trim();return r?(0,O.jsxs)("div",{className:"registration-benefits",children:[l,(0,O.jsx)($.A,{data:r,_class:"registration-benefits__html"})]}):(0,O.jsxs)("div",{className:"registration-benefits",children:[l,(0,O.jsx)("ul",{className:"registration-benefits-list tick-checklist",children:z.map(((e,t)=>(0,O.jsx)("li",{children:e},"registration-benefit-".concat(t))))})]})}),[Me]),at=(null===Me||void 0===Me||null===(e=Me.hero_title)||void 0===e?void 0:e.trim())||"Join The Movement",lt=(null===Me||void 0===Me||null===(t=Me.hero_subtitle)||void 0===t?void 0:t.trim())||"Start for FREE today";if(Ge)return(0,O.jsx)("div",{className:"registration-wrapper",children:(0,O.jsx)("div",{className:"personal-information-form gift-redeem-registration",children:(0,O.jsxs)("div",{className:"gift-auth-wrapper",children:[Ce&&(0,O.jsx)(J.A,{}),D,(0,O.jsx)(U,{userData:ue,onSubmit:Qe,isGiftSignup:!0,onEmailBlur:e=>{Be.current!==e&&(Be.current=e,(0,f.U9)({email:e}),(0,f.p)(f.KG.REGISTRATION_ACCOUNT_EMAIL,{platform:"Web"}))}})]})})});return(0,O.jsxs)("div",{className:"page registration-page",children:[Ce&&(0,O.jsx)(J.A,{transparent:!0}),D,K,(0,O.jsx)(N.A,{state:{meta_title:"MWH | Registration"}}),(0,O.jsxs)(l.Ay,{container:!0,className:"registration-wrapper auth-wrapper",children:[(0,O.jsx)(l.Ay,{xs:12,lg:6,className:"plan-section",children:(0,O.jsxs)("div",{className:"registration-marketing-inner",children:[(0,O.jsx)("div",{className:"registration-logo-row",children:(0,O.jsx)(m.N_,{to:"/",children:(0,O.jsxs)("picture",{children:[(0,O.jsx)("source",{type:"image/webp",srcSet:c}),(0,O.jsx)("img",{src:c,alt:"MWH Logo",className:"registration-page-logo",loading:"lazy"})]})})}),!oe&&(0,O.jsxs)("div",{className:"registration-hero",children:[(0,O.jsx)("h2",{className:"registration-hero__title",children:at}),(0,O.jsx)("p",{className:"registration-hero__subtitle",children:lt})]}),(0,O.jsx)(V,{membershipPlan:ce,activePlan:pe,handleChange:e=>{fe(e),we(!0),he(e),localStorage.setItem(p.K5.SELECTED_LICENCE,JSON.stringify(e)),ue&&qe(e.licence.amounts).catch((e=>console.log(e)))},heroTitle:at,heroSubtitle:lt}),it]})}),(0,O.jsxs)(l.Ay,{xs:12,lg:6,className:"registration stepper-form personal-information-form ",children:[(0,O.jsx)(U,{userName:ae,userData:ue,isGiftSignup:!1,onSubmit:Qe,onEmailBlur:e=>{Be.current!==e&&(Be.current=e,(0,f.U9)({email:e}),(0,f.p)(f.KG.REGISTRATION_ACCOUNT_EMAIL,{platform:"Web"}))}}),ee,(0,O.jsx)("div",{className:(0,w.fr)(!ue,"licence-details-container",""),children:(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{ref:De,children:(0,O.jsx)(B.A,{setBillingAddress:ke,userData:ue,userName:ae,userCheckoutForLoggedIn:ne,getUpdatedBasketDetails:()=>{var e;tt(),Ae(!1),null===Oe||void 0===Oe||null===(e=Oe.current)||void 0===e||e.scrollIntoView()},defaultSelectedCardForGiftPayment:()=>{Ae(!1),ye(void 0)},setupIntentClientSecret:null!==(n=null===ge||void 0===ge||null===(b=ge.primaryPaymentDetails)||void 0===b||null===(_=b.paymentMethodDetails)||void 0===_?void 0:_.setupIntentClientSecret)&&void 0!==n?n:null===(A=Fe.current)||void 0===A||null===(I=A.primaryPaymentDetails)||void 0===I||null===(k=I.paymentMethodDetails)||void 0===k?void 0:k.setupIntentClientSecret,onApplePaySuccess:async e=>{let{billingDetails:t}=e;const n=null!==ge&&void 0!==ge?ge:Fe.current,i=n&&(0,q.aq)(n);if(!i)throw Q(new Error("Missing payment init data"),"Apple Pay finalisation",{hasPaymentInitData:!!n}),Ne(!0),new Error(o.nl.error.somethingWentWrongWhile("purchasing a licence"));
1try{be(!0),await X("purchase_membership"),await(async e=>{var t,n,i,a;const l=null===e||void 0===e?void 0:e.address;if(Ie||null===l||void 0===l||!l.line1||null===l||void 0===l||!l.country)return;const r={line1:l.line1,line2:null!==(t=l.line2)&&void 0!==t?t:"",postalCode:null!==(n=l.postal_code)&&void 0!==n?n:"",countryCode:l.country,town:null!==(i=l.city)&&void 0!==i?i:"",administrativeLevel1:null!==(a=l.state)&&void 0!==a?a:""};await(0,v.yE)({address:r}),ke(r),await tt()})(t);const e=await(0,v.oM)(i);await He(e)}catch(l){var a;throw Q(l,"Apple Pay finalisation",{paymentDetailsExid:null===n||void 0===n||null===(a=n.primaryPaymentDetails)||void 0===a?void 0:a.paymentDetailsExid}),l instanceof Error&&l.message===o.nl.error.captchaVerificationFailed?F(o.nl.error.captchaVerificationFailed):Ne(!0),l}finally{be(!1),localStorage.removeItem(p.K5.SELECTED_LICENCE)}},applePayAmount:We,onApplePayError:e=>F(e)})}),(0,O.jsx)("div",{ref:Oe,children:(0,O.jsx)(G.A,{basketDetailList:Ee,activePlan:pe,userData:ue,afterApplyCode:()=>tt(),setApplyPromoCode:e=>Pe(e),isChangeLicenseAfterApplyCode:xe})}),(0,O.jsx)(r.A,{className:"secondary-btn next-step-btn registration-action-btn",variant:"contained",onClick:et,disabled:!M||!R||_e||se,children:"Join Now"})]})})]})]}),je&&(0,O.jsx)(Y.A,{description:"We can't complete your purchase at this time. Please return to billing information and use another payment method.",btnText:"BACK TO BILLING",headerText:"Sorry!",onModalContinueBtnClick:()=>T(p.bw.BILLING)})]})};const X=(0,n(97202).c)("pk_live_51LNfqvFtZStqvhGogEY72rj5HeBCFv0Q2pin08eCvpDtm5JQu163qFAN3v2NxUV3EzKhfpRYDIJHvEPd5USpF48t00LsWpPC9a"),ee=()=>(0,O.jsx)(H.Elements,{stripe:X,options:q.Nr,children:(0,O.jsx)(Q,{})})},54488:(e,t,n)=>{n.d(t,{Q:()=>a});var i=n(80369);const a=e=>{if(e)try{return(0,i.s)(e).sub}catch{return}}}}]);
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a9270c20-dea0-5625-ae3e-f9b0100e7caf")}catch(e){}}();
3//# debugId=a9270c20-dea0-5625-ae3e-f9b0100e7caf

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.