1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[105],{6764:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/quiz/questions",function(){return i(8349)}])},7883:(e,t,i)=>{"use strict";i.d(t,{c:()=>l});var a=i(1085),r=i(4041);function l(e){let{text:t,textClassName:i="text",highlightClassName:l="text highlight",className:s}=e,n=t.split(/(\[[^\]]+\])/g);return(0,a.jsx)("div",{className:s,children:n.map((e,t)=>{if(e.startsWith("[")&&e.endsWith("]"))return(0,a.jsx)("span",{className:l,children:e.slice(1,-1)},"hl-".concat(t));{let l=e.split(/(\s+)/g);return(0,a.jsx)(r.Fragment,{children:l.map((e,r)=>(0,a.jsx)("span",{className:"".concat(i),children:e},"word-".concat(t,"-").concat(r)))},"reg-".concat(t))}})})}},8349:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>eQ});var a=i(1085),r=i(3973);let l=["WOQ_Device","WOQ_Experience","WOQ_Goal","WOQ_SocialProof_1","WOQ_Frequency","WOQ_Duration","WOQ_Location","WOQ_SocialProof_2","WOQ_Equipment","WOQ_Weight","WOQ_Age","WOQ_Sex","WOQ_SocialProof_3","WOQ_HearFrom","WOQ_Loading","WOQ_Email","WOQ_Paywall"];var s=i(5851),n=i(4041),o=i(75),c=i(2563),d=i(8521);let u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;(0,d.K)("".concat(i,"_continue_press"),a);let l=r.e.getState().currentStep,s=r.e.getState().incrementStep;window.history.pushState({step:l+e},"",window.location.pathname),t?t():s(e)};var h=i(1865),m=i(4318);let p="WOQ_Age",g=m.X[p];function f(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let i=[...e].sort(),a=[...t].sort();return i.every((e,t)=>f(e,a[t]))}if("object"==typeof e&&"object"==typeof t){let i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&i.every(i=>a.includes(i)&&f(e[i],t[i]))}return!1}function x(e){let{selections:t,selectionCallback:i,multiSelect:r=!1,initialSelectionIds:l=[]}=e,[s,o]=(0,n.useState)(l),[c,d]=(0,n.useState)(!1),u=(0,n.useRef)(l),h=e=>{c||d(!0),!r&&s.includes(e.id)||(r?s.includes(e.id)?o(s.filter(t=>t!==e.id)):o([...s,e.id]):o([e.id]))};return(0,n.useEffect)(()=>{!c&&f(l,s)||f(u.current,s)||(i&&i(r?s:s[0]||""),u.current=[...s])},[s,c,r,i,l]),(0,a.jsx)("div",{className:"gb-selector",children:t.map((e,t)=>(0,a.jsxs)("button",{onClick:()=>h(e),className:"gb-selector-option gb-selector-option-animation ".concat(s.includes(e.id)?"gb-selector-option-active":""),style:{"--index":t},children:[(0,a.jsx)("p",{className:"gb-selector-option-label",children:e.label}),e.subLabel&&(0,a.jsx)("p",{className:"gb-selector-option-subLabel",children:e.subLabel})]},t))})}function b(e){let{headerTitle:t,selections:i,screenId:l,withConfirmation:s=!1,optional:n=!1,onAltPress:c,...h}=e,p=(0,r.e)(e=>e.setAnswer),g=(0,r.e)(e=>e.answers[l]),f=m.X[l];return(0,a.jsxs)("div",{className:"w-full h-full",children:[(0,a.jsx)("div",{className:"quiz-header mb-4",children:(0,a.jsx)("p",{className:"quiz-headerTitle",children:t})}),(0,a.jsx)(x,{selections:i,selectionCallback:e=>{if(p(l,e),(0,d.K)("".concat(f,"_selection_").concat(null==e?void 0:e.toString())),!s){let e=setTimeout(()=>{u(1,c,f)},200);return()=>clearTimeout(e)}},...h}),s&&(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(o.A,{disabled:!n&&(!g||0===g.length),onClick:()=>u(1,c,m.X[l]),text:"CONTINUE"})})]})}let w="WOQ_Device",y=[{id:"device_ios",label:"iPhone",subLabel:"I'll use an iPhone or iPad"},{id:"device_android",label:"Android",subLabel:"I'll use an Android device or tablet"}];var j=i(6402);let _="WOQ_Duration",v=[{id:"15",label:"15 minutes"},{id:"30",label:"30 minutes"},{id:"45",label:"45 minutes"},{id:"60",label:"60+ minutes"}];var N=i(3132),O=i(482),k=i(8231),W=i(5271),S=i(528);let T="WOQ_Email",Q=m.X[T],I=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;var E=function(e){return e.LARGE_GYM="largeGym",e.SMALL_GYM="smallGym",e.GARAGE_GYM="garageGym",e.AT_HOME="atHome",e.BODYWEIGHT="bodyweight",e}({});let A="WOQ_Equipment",C=[{id:E.LARGE_GYM,label:"Large Commercial Gym"},{id:E.SMALL_GYM,label:"Small Public Gym"},{id:E.GARAGE_GYM,label:"Garage Gym"},{id:E.AT_HOME,label:"At Home"},{id:E.BODYWEIGHT,label:"Bodyweight Only"}
1],L="WOQ_Experience",P=[{id:"experience_none",label:"No experience",subLabel:"I've never worked out"},{id:"experience_beginner",label:"Beginner",subLabel:"Tried it before"},{id:"experience_intermediate",label:"Intermediate",subLabel:"Regularly training"},{id:"experience_advanced",label:"Advanced",subLabel:"Years of experience"}],M="WOQ_Frequency",G=[{id:"2",label:"2 days / week"},{id:"3",label:"3 days / week"},{id:"4",label:"4 days / week"},{id:"5",label:"5 days / week"},{id:"6",label:"6 days / week"}];var F=function(e){return e.MUSCLE="MUSCLE",e.STRENGTH="STRENGTH",e.TONED="TONED",e.LEAN="LEAN",e.OVERALL="OVERALL",e}({});let D="WOQ_Goal",z=[{id:F.MUSCLE,label:"Get bigger",subLabel:"I want to gain muscle mass and get stronger"},{id:F.LEAN,label:"Lose weight",subLabel:"I want to lose weight & get fit"},{id:F.TONED,label:"Get shredded",subLabel:"I want to get lean & cut"}],R=[{id:"Friends or Family",label:"Friends or Family"},{id:"TikTok",label:"TikTok"},{id:"Instagram",label:"Instagram"},{id:"Facebook",label:"Facebook"},{id:"Youtube",label:"Youtube"},{id:"Snapchat",label:"Snapchat"},{id:"Other",label:"Other"}],q=e=>{let{title:t,color:i,highlightColor:r,duration:l,delay:s=0,barWidth:n="100%",barHeight:o=16,easing:c}=e;return(0,a.jsxs)("div",{className:"progress-bar-container",style:{marginBottom:"16px","--progress-delay":"".concat(s,"ms"),"--progress-duration":"".concat(l,"ms"),"--progress-color":i,"--progress-highlight-color":r,"--progress-easing":c},children:[(0,a.jsx)("div",{className:"progress-bar-title",style:{color:i},children:t}),(0,a.jsx)("div",{className:"progress-bar-background",style:{width:n,height:"".concat(o,"px"),borderRadius:"".concat(o/2,"px")},children:(0,a.jsx)("div",{className:"progress-bar-fill",children:(0,a.jsx)("div",{className:"progress-bar-fill-inner"})})})]})};var Y=i(7883),H=i(868);function U(e){let{title:t,description:i,name:r,date:l,animated:s=!0,className:n}=e;return(0,a.jsxs)("div",{className:"review-card ".concat(s?"review-card-animation":""," ").concat(n),children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h3",{className:"text bold",children:t}),(0,a.jsx)("div",{className:"flex gap-1",children:[,,,,,].fill(0).map((e,t)=>(0,a.jsx)(H.A,{size:18},t))})]}),(0,a.jsx)(Y.c,{text:i,className:"my-4"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-small subText",children:r}),(0,a.jsx)("p",{className:"text-small subText",children:l})]})]})}let K={title:"This is the app for you",description:"Before, I could never tell if I was getting stronger and felt stuck. Now I see my ranks shoot up every workout. [It's like proof my work is paying off].",name:"Jacky",date:"Aug 24"},B=[{title:"Compiling user profile",color:"#97D6FF",highlightColor:"#C1E6FF",duration:5e3,easing:"cubic-bezier(0.25, 0.1, 0.25, 1.05)"},{title:"Calculating strength levels",color:"#59B9F9",highlightColor:"#97D6FF",duration:6e3,delay:5e3,easing:"cubic-bezier(0.42, 0.0, 0.58, 1.0)"},{title:"Generating workout plan",color:"#FFCE3E",highlightColor:"#FFECA0",duration:7e3,delay:11e3,easing:"cubic-bezier(0.22, 0.61, 0.36, 1.0)"}],X="WOQ_Location",$=[{id:"location_gym",label:"At the gym"},{id:"location_home",label:"At home"},{id:"location_both",label:"Both at home and the gym"}];var J=i(6356);function Z(e){var t;let{plans:i,selectionCallback:r,initialPlanId:l,className:s}=e,[o,c]=(0,n.useState)(l),u=null===(t=i[1])||void 0===t?void 0:t.price,h=e=>{(0,d.K)("".concat(m.X.WOQ_Paywall,"_selection_press"),e.id),c(e.id)};return(0,n.useEffect)(()=>{let e=i.find(e=>e.id===o);e&&(null==r||r(e))},[o]),(0,a.jsx)("div",{className:"gb-selector ".concat(s),children:i.map((e,t)=>{let i=(0,J.D1)(e,u);return(0,a.jsxs)("button",{onClick:()=>h(e),className:"gb-selector-option gb-selector-option-animation ".concat(o===e.id?"gb-selector-option-active":""),style:{"--index":t,height:100},children:[(0,a.jsxs)("div",{className:"w-full flex flex-row items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,a.jsx)("p",{className:"text bold",children:i.label}),i.titleTag&&(0,a.jsx)("p",{className:"gb-selector-option-title-tag mb-[2px]",children:i.titleTag})]}),i.subLabel&&(0,a.jsx)("p",{className:"text subText",children:i.subLabel})]}),i.rightLabel&&(0,a.jsx)("p",{className:"text",children:i.rightLabel})]}),i.cardTag&&(0,a.jsx)("p",{className:"gb-selector-option-card-tag",children:i.cardTag})]},t)})})}function V(e){let{product:t,className:i="",style:r,onSubscriptionStart:l,onLimitedExperience:s}=e,n=t.trialPeriodDays>0?"Start My Free ".concat(t.trialPeriodDays," Day Trial"):"Continue";return(0,a.jsxs)("div",{className:"flex flex-col items-center w-full gap-4 ".concat(i),style:r,children:[(0,a.jsx)(o.A,{onClick:l,text:n}),(0,a.jsx)("button",{onClick:s,className:"text subText background-none border-none cursor-pointer mt-2",children:"Maybe later, use limited experience"})]})}var ee=i(7284);
1async function et(e,t){let i=O.K.getState().stripe,a=O.K.getState().user;if(i){if(!(null==a?void 0:a.stripeCustomerId)){null==t||t("Stripe customer ID not found.");return}}else{null==t||t("Stripe failed to load.");return}try{let r=await fetch("/api/payment/checkout-session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product:e,userInfo:{id:a.id,email:a.email,stripeCustomerId:a.stripeCustomerId,revenueCatUserId:a.rcUserId}})}),{sessionId:l,error:s}=await r.json();if(s||!l){null==t||t(s||"Failed to create checkout session.");return}let{error:n}=await i.redirectToCheckout({sessionId:l});if(n)return null==t||t(n.message||"Unknown error occurred."),!1;return!0}catch(e){console.error("Checkout error:",e),null==t||t(e.message||"Unknown error occurred.")}}var ei=i(1242),ea=i(4747),er=i.n(ea);let el="WOQ_Sex",es=[{id:"Male",label:"Male",subLabel:"Optimized for men"},{id:"Female",label:"Female",subLabel:"Optimized for women"},{id:"None",label:"Prefer not to say"}],en=m.X.WOQ_SocialProof_1,eo=j.N0,ec={header:"Liftoff was made for people like you, who could use [long-term motivation.]",review:{title:"Absolutely love it",description:"I struggled to [stay consistent] for the past year, always falling off every few weeks. Not anymore! This app [keeps things exciting] every workout and now I'm on a [160 day streak]!",name:"Aleck S.",date:"Feb 2"}},ed=m.X.WOQ_SocialProof_2,eu={title:"Your answers help us craft workouts you'll stick to",description:"We'll favour [{duration_adjective}] workouts with exercises you can do [{location}.]"},eh={title:"The perfect companion",description:"I love lifting but [hate planning my workouts]. This app has been amazing, no guesswork required. [It sets up everything for me], so I just show up and lift!",name:"_valery",date:"Jan 28"},em=m.X.WOQ_SocialProof_3,ep={title:"Almost there!",description:"You're less than a minute away from getting your [first personalized workout]."},eg={title:"Can't go without it",description:"I wasn't sure what to expect, but this app surprised me. There's so many features like [streaks, custom routines] and a whole [rank system]. Whether you're experienced or brand new, [I highly recommend it].",name:"Agnus Hype",date:"May 7"},ef="WOQ_TrainingType",ex=[{id:"weightlifting",label:"Weightlifting"},{id:"calisthenics",label:"Calisthenics"}],eb=(e,t)=>"metric"===t?2.20462*e:e,ew=e=>"metric"===e?"kg":"lbs",ey=e=>"metric"===e?"cm":"ft",ej=(e,t)=>"metric"===t?"weight"===e?"Metric (".concat(ew(t),")"):"Metric (".concat(ey(t),")"):"weight"===e?"Imperial (".concat(ew(t),")"):"Imperial (".concat(ey(t),")");function e_(e){let{measurement:t="weight",onUnitChange:i=()=>{},className:l=""}=e,s=(0,r.e)(e=>e.unit),n=(0,r.e)(e=>e.setUnit),o="metric"===s,c=e=>{(0,d.K)("".concat(m.X.WOQ_Weight,"_").concat(e,"_press")),n(e),i(e)};return(0,a.jsxs)("div",{className:"unit-selector-container flex overflow-hidden gap-2 ".concat(l),children:[(0,a.jsx)("button",{className:"unit-selector-button py-2 px-4 flex-1 text-center ".concat(o?"unit-selector-inactive":"unit-selector-active"),onClick:()=>c("imperial"),children:(0,a.jsx)("p",{className:"text ".concat(o?"subText ":"highlight-text"),children:ej(t,"imperial")})}),(0,a.jsx)("button",{className:"unit-selector-button py-2 px-4 flex-1 text-center ".concat(o?"unit-selector-active":"unit-selector-inactive"),onClick:()=>c("metric"),children:(0,a.jsx)("p",{className:"text ".concat(o?"highlight-text":"subText"),children:ej(t,"metric")})})]})}let ev="WOQ_Weight",eN=m.X[ev],eO={WOQ_Device:{id:"WOQ_Device",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers[w]);return(0,a.jsx)(b,{headerTitle:"What device will you use?",selections:y,screenId:w,initialSelectionIds:(0,h.j)(e)})},{})},WOQ_Sex:{id:"WOQ_Sex",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers[el]);return(0,a.jsx)(b,{headerTitle:"What is your gender?",selections:es,screenId:el,initialSelectionIds:(0,h.j)(e)})},{})},WOQ_Experience:{id:"WOQ_Experience",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers[L]);return(0,a.jsx)(b,{headerTitle:"How much experience do you have?",selections:P,screenId:L,initialSelectionIds:(0,h.j)(e)})},{})},WOQ_Goal:{id:"WOQ_Goal",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers[D]);return(0,a.jsx)(b,{headerTitle:"What's your fitness goal?",selections:z,screenId:D,initialSelectionIds:(0,h.j)(e)})},{})},WOQ_SocialProof_1:{id:"WOQ_SocialProof_1",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers.WOQ_Goal),t=j.x[(0,h.m)(e)]||ec;return(0,a.jsxs)("div",{className:"w-full h-full",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-large bold highlight",children:eo.title}),(0,a.jsx)(Y.c,{text:t.header,textClassName:"text-large bold",highlightClassName:"highlight text-large bold"})]}),(0,a.jsx)(U,{...t.review,className:"mb-8 mt-4"}),(0,a.jsx)(o.A,{onClick:()=>u(1,void 0,en),text:"CONTINUE"})]})},{})},WOQ_Frequency:{id:"WOQ_Frequency",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers[M]),t=(0,r.e)(e=>e.answers[M]),i=(0,j.$G)((0,h.m)(t)).frequency;return(0,a.jsx)(b,{headerTitle:i,selections:G,screenId:M,initialSelectionIds:(0,h.j)(e)})},{})},WOQ_Duration:{id:"WOQ_Duration",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers[_]),t=(0,r.e)(e=>e.answers[_]),i=(0,j.$G)((0,h.m)(t)).duration;return(0,a.jsx)(b,{headerTitle:i,selections:v,screenId:_,initialSelectionIds:(0,h.j)(e)})},{})},WOQ_Location:{id:"WOQ_Location",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers[X]),t=(0,r.e)(e=>e.answers[X]),i=(0,j.$G)((0,h.m)(t)).location;return(0,a.jsx)(b,{headerTitle:i,selections:$,screenId:X,initialSelectionIds:(0,h.j)(e)})},{})},WOQ_SocialProof_2:{id:"WOQ_SocialProof_2",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers.WOQ_Location),t=(0,r.e)(e=>e.answers.WOQ_Duration),i=j.ip[(0,h.m)(e)]||"anywhere",l=j.dg[(0,h.m)(t)]||"balanced",s={...eu,description:eu.description.replace("{duration_adjective}",l).replace("{location}",i)};return(0,a.jsxs)("div",{className:"w-full h-full",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-large bold highlight",children:s.title}),(0,a.jsx)(Y.c,{text:s.description,textClassName:"text-large bold",highlightClassName:"highlight text-large bold"})]}),(0,a.jsx)(U,{...eh,className:"mb-8 mt-4"}),(0,a.jsx)(o.A,{onClick:()=>u(1,void 0,ed),text:"CONTINUE"})]})},{})},WOQ_Equipment:{id:"WOQ_Equipment",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers[A]);return(0,a.jsx)(b,{headerTitle:"Where do you usually exercise?",selections:C,screenId:A,initialSelectionIds:(0,h.j)(e)})},{})},WOQ_Weight:{id:"WOQ_Weight",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.unit),t=(0,r.e)(e=>e.setAnswer),i=(0,r.e)(e=>e.incrementStep),l=(0,r.e)(e=>
1e.answers[ev]),[s,d]=(0,n.useState)((0,h.m)(l)),[m,p]=(0,n.useState)(""),g=()=>{let a=eb(parseFloat(s),e);if(isNaN(a)){p("Please enter a valid weight");return}if(a<50){p("Weight must be at least ".concat("imperial"===e?50:22.5," ").concat(ew(e)));return}if(a>500){p("Weight cannot exceed ".concat("imperial"===e?500:225," ").concat(ew(e)));return}t(ev,a.toFixed(2).replace(/\.?0+$/,"")),i(1)};return(0,a.jsxs)("div",{className:"w-full h-full",children:[(0,a.jsx)("div",{className:"quiz-header mb-4",children:(0,a.jsx)("p",{className:"quiz-headerTitle",children:"What is your weight?"})}),(0,a.jsx)(c.A,{inputMode:"numeric",placeholder:"Enter your weight",className:"w-full",value:s,onChange:e=>{let t=e.target.value;/^\d*\.?\d{0,2}$/.test(t)&&(d(t),p(""))},rightLabel:ew(e)}),(0,a.jsx)(e_,{className:"mt-4"}),m&&(0,a.jsx)("p",{className:"gb-input-error-indicator mt-2",children:m}),(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(o.A,{disabled:!s,onClick:()=>u(1,g,eN,s),text:"CONTINUE"})})]})},{})},WOQ_Age:{id:"WOQ_Age",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.setAnswer),t=(0,r.e)(e=>e.incrementStep),i=(0,r.e)(e=>
1e.answers[p]),[l,s]=(0,n.useState)((0,h.m)(i)),[d,m]=(0,n.useState)(""),f=()=>{let i=parseInt(l);if(isNaN(i)){m("Please enter a valid age");return}if(i<13){m("You must be at least ".concat(13," years old"));return}if(i>120){m("Age cannot exceed ".concat(120));return}e(p,i.toString()),t(1)};return(0,a.jsxs)("div",{className:"w-full h-full",children:[(0,a.jsx)("div",{className:"quiz-header mb-4",children:(0,a.jsx)("p",{className:"quiz-headerTitle",children:"How old are you?"})}),(0,a.jsx)(c.A,{inputMode:"numeric",placeholder:"Enter your age",className:"w-full",value:l,onChange:e=>{let t=e.target.value;if(/^\d*\.?\d*$/.test(t)){s(t);let e=parseFloat(t);!isNaN(e)&&t.includes(".")&&!t.endsWith(".")&&s(Math.round(e).toString()),m("")}else""===t&&(s(""),m(""))}}),d&&(0,a.jsx)("p",{className:"gb-input-error-indicator mt-2",children:d}),(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(o.A,{onClick:()=>u(1,f,g,l),text:"CONTINUE"})})]})},{})},WOQ_SocialProof_3:{id:"WOQ_SocialProof_3",component:(0,a.jsx)(function(){return(0,a.jsxs)("div",{className:"w-full h-full",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-large bold highlight",children:ep.title}),(0,a.jsx)(Y.c,{text:ep.description,textClassName:"text-large bold",highlightClassName:"highlight text-large bold"})]}),(0,a.jsx)(U,{...eg,className:"mb-8 mt-4"}),(0,a.jsx)(o.A,{onClick:()=>u(1,void 0,em),text:"CONTINUE"})]})},{})},WOQ_HearFrom:{id:"WOQ_HearFrom",component:(0,a.jsx)(function(){return(0,a.jsx)(b,{headerTitle:"How did you hear about us?",selections:R,screenId:"WOQ_HearFrom"})},{})},WOQ_Loading:{id:"WOQ_Loading",component:(0,a.jsx)(function(){return(0,n.useEffect)(()=>{let e=setTimeout(()=>{u(1,void 0,"quizLoading")},18400);return()=>clearTimeout(e)},[]),(0,a.jsxs)("div",{className:"w-full h-full",children:[(0,a.jsx)("h1",{className:"quiz-headerTitle w-[85%]",children:"We're setting everything up for you"}),(0,a.jsx)("div",{className:"loading-progress-container my-8",children:B.map((e,t)=>(0,a.jsx)(q,{...e},t))}),(0,a.jsxs)("div",{className:"loading-footer",style:{"--footer-animation-delay":"".concat(3750,"ms"),"--footer-animation-duration":"0.5s","--footer-transition-duration":"1s"},children:[(0,a.jsx)(Y.c,{text:"Get ready to join over [1,000,000 people] getting stronger with Liftoff",className:"text-center",textClassName:"text bold",highlightClassName:"highlight bold"}),(0,a.jsx)(U,{...K})]})]})},{})},WOQ_QuizResults:{id:"WOQ_QuizResults",component:(0,a.jsx)(function(){return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"quiz-headerTitle",children:"Choose the custom workout you want to start with!"}),(0,a.jsx)("p",{className:"quiz-headerSubtitle my-4",children:"Show some kind of result to the user. Intice them to subscribe."}),(0,a.jsx)(er(),{href:"/appLink",children:(0,a.jsx)(o.A,{text:"Go to paywall"})})]})},{})},WOQ_Email:{id:"WOQ_Email",component:(0,a.jsx)(function(){(0,O.K)(e=>e.updateUser);let e=(0,r.e)(e=>e.setAnswer),t=(0,r.e)(e=>e.incrementStep),i=(0,r.e)(e=>
1e.answers[T]),[l,s]=(0,n.useState)((0,h.m)(i)),[d,m]=(0,n.useState)(""),[p,g]=(0,n.useState)(!0),{refetch:f}=N.i.user.checkEmailValidity.useQuery(l,{enabled:!1,refetchOnWindowFocus:!1}),x=async()=>{let i=l.trim();if(!i||!I.test(i)){m(i?"Please enter a valid email address":"Email is required");return}g(!0);try{let{data:a}=await f();a?m("This email is already registered"):u(1,()=>{e(T,i),(0,S.C)({email:i}),t(1)},Q)}catch(e){m("Something went wrong. Try again.")}finally{g(!1)}};return(0,a.jsxs)("div",{className:"w-full h-full",children:[(0,a.jsxs)("div",{className:"quiz-header mb-4",children:[(0,a.jsx)("p",{className:"text-large bold highlight",children:"Your results are almost ready!"}),(0,a.jsx)("p",{className:"quiz-headerSubtitle mt-2",children:"Enter your email to get your results"})]}),(0,a.jsx)(c.A,{inputMode:"email",type:"email",placeholder:"Enter your email",className:"w-full",value:l,onChange:e=>{let t=e.target.value,i=(0,W.c)((0,W.e)(t));s(i),g(i.length<=5),d&&m("")},onKeyDown:e=>{" "===e.key&&e.preventDefault()},autoCorrect:"off",autoCapitalize:"none",spellCheck:!1,error:d}),(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(o.A,{disabled:p,onClick:x,text:"CONTINUE"})}),(0,a.jsx)("div",{className:"mt-8 text-center",children:(0,a.jsx)("button",{onClick:k.i,className:"subText underline",children:"Already have an account?"})})]})},{})},WOQ_TrainingType:{id:"WOQ_TrainingType",component:(0,a.jsx)(function(){let e=(0,r.e)(e=>e.answers[ef]);return(0,a.jsx)(b,{headerTitle:"Which type of workout do you prefer?",selections:ex,screenId:ef,initialSelectionIds:(0,h.j)(e)})},{})},WOQ_RankDemo:{id:"WOQ_RankDemo",component:(0,a.jsx)(function(){return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"quiz-headerTitle",children:"Choose the atom yoju'll be using th whooole time!"}),(0,a.jsx)("p",{className:"quiz-headerSubtitle my-4",children:"Show some kind of result to the user. Intice them to subscribe."}),(0,a.jsx)(o.A,{text:"Go to paywall",onClick:()=>{window.location.href="https://liftoffrank.superwall.app/subscribe"}})]})},{})},WOQ_RankChart:{id:"WOQ_RankChart",component:(0,a.jsx)(function(){return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"quiz-headerTitle",children:"You have sooo much potential"}),(0,a.jsx)("p",{className:"quiz-headerSubtitle my-4",children:"Show some kind of result to the user. Intice them to subscribe."}),(0,a.jsx)(o.A,{text:"Go to paywall",onClick:()=>{window.location.href="https://liftoffrank.superwall.app/subscribe"}})]})},{})},WOQ_Paywall:{id:"WOQ_Paywall",component:(0,a.jsx)(function(){let e=(0,ei.useRouter)(),t=(0,O.K)(e=>e.subPackages),i=(0,J.le)(t,"yearly"),r=(0,J.le)(t,"monthly"),l=i.id,[s,o]=(0,n.useState)(i),c=async()=>{(0,d.K)("".concat(m.X.WOQ_Paywall,"_subscription_press"),null==s?void 0:s.id),s&&await et(s)&&(0,d.K)("str
1ipe_".concat(s.id,"_bought"),void 0,void 0,!0)};return(0,a.jsxs)("div",{className:"w-full h-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"quiz-headerTitle",children:"Grow Stronger, Every Single Workout."}),(0,a.jsx)("p",{className:"quiz-headerSubtitle mt-2",children:"Experience the best of Liftoff with Pro. Get the best tools to improve and achieve your goals."}),(0,a.jsxs)("div",{className:"flex flex-row items-center justify-start gap-2 mt-2",children:[(0,a.jsx)(ee.A,{}),(0,a.jsx)("p",{className:"text highlight text-right",children:"4.9 stars (30,000+ reviews)"})]})]}),(0,a.jsx)(Z,{plans:[i,r],selectionCallback:o,initialPlanId:l,className:"my-12"}),(0,a.jsx)(V,{product:s,onSubscriptionStart:c,onLimitedExperience:()=>{(0,d.K)("".concat(m.X.WOQ_Paywall,"_skip_press")),e.push("/quiz/signup")}})]})},{})},WOQ_Signup:{id:"WOQ_Signup",component:(0,a.jsx)(s.default,{})}};var ek=i(5629),eW=i(8836),eS=i(8062),eT=i(5317);let eQ=function(){var e,t;let i=(0,r.e)(e=>e.currentStep),s=(0,r.e)(e=>e.incrementStep),o=(0,r.e)(e=>e.resetQuiz),c=l[i],u=(i+1)/l.length,h=async()=>{let e=await eT.P.generateRevenueCatAnonymousAppUserId();await eT.P.getSharedInstance().changeUser(e);let t=await (0,eS.Y)();(0,S.C)({email:"",rcUserId:e,stripeCustomerId:null!=t?t:void 0,createdAt:new Date})};if(e=()=>{let e=i-1;e>=0&&("WOQ_Loading"===l[e]?s(-2):s(-1))},t=()=>{let e=i+1;e<l.length&&("WOQ_Loading"===l[e]?s(2):s(1))},(0,n.useEffect)(()=>{let i=i=>{var a;let l=null===(a=i.state)||void 0===a?void 0:a.step;if(null==l)return;let s=r.e.getState().currentStep;l<s?((0,d.K)("navigation_back_press",l),e()):l>s&&t&&((0,d.K)("navigation_forward_press",l),t())};return window.addEventListener("popstate",i),()=>window.removeEventListener("popstate",i)},[e,t]),(0,n.useEffect)(()=>{h()},[]),!c)return(0,a.jsx)("div",{className:"text text-center text-2xl",children:"404 - Screen not found"});let m=eO[c].component;return(0,a.jsxs)("div",{className:"mobile-container",children:[(0,a.jsx)(er(),{onClick:()=>{(0,d.K)("quiz_header_press"),o()},href:"/start",children:(0,a.jsx)(ek.A,{})}),(0,a.jsx)(eW.A,{progress:u,className:"w-screen mt-4 mb-6"}),m]})}},6402:(e,t,i)=>{"use strict";i.d(t,{$G:()=>u,Ed:()=>s,Ho:()=>a,N0:()=>r,Yw:()=>l,_B:()=>n,dg:()=>d,ip:()=>c,x:()=>o});let a={title:"You're in the right place!",description:"Liftoff was made for people like you, who could [spice up their workouts.]"},r={title:"You're in the right place!",description:"Liftoff was made for people like you, who could use [long-term motivation.]"},l="Meet your [STRONGEST SELF]",s="PLAY YOUR WORKOUTS,\nGET STRONGER",n="Rank up and get stronger with easy-to-follow workouts made just for you!",o={Muscle:{header:"Liftoff was made for people like you, [committed to getting stronger.]",review:{title:"Game changer!",description:"I used to struggle to gain muscle consistently, but the personalized workouts I got completely changed that. I feel stronger every week and my rank ups show it!",name:"Jason T.",date:"Mar 14"}},Lean:{header:"Liftoff was made for people like you, who could use [long-term motivation.]",review:{title:"Absolutely love it",description:"I struggled to [stay consistent] with my weight loss, always falling off every few weeks. Not anymore! This app [makes fitness fun] and now I'm on a [160 day streak]!",name:"Aleck S.",date:"Feb 2"}},Toned:{header:"Liftoff was made for people like you, [who want to look their best.]",review:{title:"Exactly what I needed!",description:"I've always wanted that shredded look but kept losing motivation. This app can [target muscles for you] and keeps workouts engaging, and now [I'm finally seeing abs!]",name:"Kyle H.",date:"May 7"}}},c={location_gym:"at the gym",location_home:"at home",location_both:"anywhere"},d={15:"shorter",30:"balanced",45:"balanced",60:"longer"},u=e=>{switch(e){case"experience_none":case"experience_beginner":return{frequency:"How often do you want to work out?",duration:"How long do you want to work out?",location:"Where do you want to work out?"};default:return{frequency:"How often do you usually work out?",duration:"How long do you usually work out?",location:"Where do you usually work out?"}}}},8062:(e,t,i)=>{"use strict";i.d(t,{Y:()=>r});var a=i(482);let r=async()=>{let{user:e}=a.K.getState();if(e.stripeCustomerId&&""!==e.stripeCustomerId)return e.stripeCustomerId;try{let e=await fetch("/api/payment/create-stripe-customer",{method:"POST",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error("Failed to create Stripe customer");let{customerId:t}=await e.json();return t}catch(e){return console.error("Error creating Stripe customer:",e),null}}},6356:(e,t,i)=>{"use strict";i.d(t,{D1:()=>u,Z2:()=>d,le:()=>c}),i(482);var a,r,l=i(9096),s=i(8317);let n=parseInt(null!==(a=s.env.STRIPE_PREMIUM_YEARLY_TRIAL_DAYS)&&void 0!==a?a:"7"),o=parseInt(null!==(r=s.env.STRIPE_PREMIUM_MONTHLY_TRIAL_DAYS)&&void 0!==r?r:"0"),c=(e,t)=>{if(!e)throw Error("Packages not found");
1let i="yearly"===t?"$rc_annual":"$rc_monthly",a=e.find(e=>e.identifier===i),r=null==a?void 0:a.webBillingProduct;if(!r)throw Error("".concat(t," product not found"));return{id:r.identifier,period:t,price:r.currentPrice.amountMicros/1e6,formattedPrice:r.currentPrice.formattedPrice,billingPeriodMonths:"yearly"===t?12:1,trialPeriodDays:"yearly"===t?n:o}},d=(e,t)=>{if(!e)throw Error("Packages not found");let i=e.find(e=>e.webBillingProduct.identifier===t),a=null==i?void 0:i.webBillingProduct;if(!a)throw Error("Product not found");return{id:a.identifier,period:"yearly",price:a.currentPrice.amountMicros/1e6,formattedPrice:a.currentPrice.formattedPrice,billingPeriodMonths:12,trialPeriodDays:n}},u=(e,t)=>{let i,a;let r="yearly"===e.period?"Yearly":"Monthly",s="".concat(e.billingPeriodMonths," months ⢠").concat(e.formattedPrice),n=e.formattedPrice[0],o=(0,l.LI)(e.price/e.billingPeriodMonths,2),c="".concat(n).concat(o," / MO");if(t&&"yearly"===e.period){let e=(t-o)/t;i="Get ".concat((100*e).toFixed(0),"% off")}return e.trialPeriodDays>0&&(a="".concat(e.trialPeriodDays," DAY FREE TRIAL")),{label:r,subLabel:s,rightLabel:c,cardTag:i,titleTag:a}}},9096:(e,t,i)=>{"use strict";i.d(t,{LI:()=>a,Qu:()=>r});let a=(e,t)=>
1{let i=Math.pow(10,t||0);return Math.round(e*i)/i},r=(e,t,i,r)=>{if(0===t)return 0;let l=r?t+r:t;switch(i){case"WR":{if(1==l)return a(e);let t=e*(1+Math.min(l,30)/30);return l>30&&(t+=Math.log2(l-30+1)),a(t)}case"BR":case"WB":return function(e,t){if(!e||e<=0)return t;let i=Math.min(t,30);1==t&&a(e);let r=.2*a(e*(1+i/30)),l=0;for(let e=0;e<t;e++)l+=1/Math.pow(2,e)*r;return Math.max(t,l)}(e,l);case"DD":if(e<1.6||e>42.2)break;return t/60/e;case"AB":return e;case"WD":case"ND":return t}return 0}}},e=>{var t=t=>e(e.s=t);e.O(0,[5851,636,6593,8792],()=>t(6764)),_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.