1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6239],{27984:(e,t,i)=>{i.d(t,{iW:()=>n,jn:()=>o,sc:()=>l});let l=["EAT","MOVE","MIND","SLEEP"],a={pillarQuestions:{eat:[{id:"eat_typical_diet",type:"singleselect",title:"How would you describe your typical diet?",required:!0,config:{options:[{id:"balanced",label:"Mostly balanced and whole foods",value:"Mostly balanced and whole foods",attributes:{dietary_preferences:["omnivore"]}},{id:"healthy",label:"I aim to eat healthy, but I enjoy balance",value:"I aim to eat healthy, but I enjoy balance",attributes:{dietary_preferences:["omnivore"]}},{id:"convenient",label:"I eat what's convenient",value:"I eat what's convenient"},{id:"specific_plan",label:"I follow a specific plan (we'll ask about this next)",value:"I follow a specific plan (we'll ask about this next)"}]},nextQuestion:"eat_energy_tired_times",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"eat_energy_tired_times",type:"singleselect",title:"Let's talk energy. When do you feel the most tired?",required:!0,config:{options:[{id:"morning",label:"Morning",value:"Morning",attributes:{symptom:["fatigue"]}},{id:"afternoon",label:"Afternoon",value:"Afternoon",attributes:{symptom:["afternoon_fatigue"]}},{id:"evening",label:"Evening",value:"Evening",attributes:{symptom:["fatigue"]}},{id:"fine",label:"I feel fine most of the day",value:"I feel fine most of the day"}]},nextQuestion:"eat_caffeine_sugar_reliance",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"eat_caffeine_sugar_reliance",type:"singleselect",title:"Do you rely on caffeine or sugar to get through the day?",required:!0,config:{options:[{id:"yes_regularly",label:"Yes, regularly",value:"Yes, regularly",attributes:{caffeine_reliance:"heavy"}},{id:"occasionally",label:"Occasionally",value:"Occasionally",attributes:{caffeine_reliance:"moderate"}},{id:"rarely",label:"Rarely",value:"Rarely",attributes:{caffeine_reliance:"light"}},{id:"never",label:"Never",value:"Never",attributes:{caffeine_reliance:"none"}}]},nextQuestion:"eat_health_priorities",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"eat_health_priorities",type:"multiselect",title:"Wellbeing isn't one-size-fits-all. Which of these feel most important to you right now?",description:"Select up to three.",required:!0,config:{options:[{id:"digestion",label:"Improving my digestion",value:"Improving my digestion",attributes:{goals:["digestive_comfort","gut_health"]}},{id:"immune",label:"Supporting my immune system",value:"Supporting my immune system",attributes:{goals:["immune_support"]}},{id:"energy",label:"Feeling more energised",value:"Feeling more energised",attributes:{goals:["energy_support"]}},{id:"inflammation",label:"Reducing inflammation",value:"Reducing inflammation",attributes:{goals:["inflammation_reduction"]}},{id:"aging",label:"Supporting health aging",value:"Supporting health aging",attributes:{goals:["longevity"]}},{id:"weight",label:"Maintaining a healthy weight",value:"Maintaining a healthy weight",attributes:{goals:["weight_management"]}},{id:"muscle",label:"Building muscle mass",value:"Building muscle mass",attributes:{goals:["muscle_building"]}},{id:"hormone",label:"Supporting hormone balance",value:"Supporting hormone balance",attributes:{goals:["hormonal_balance"]}},{id:"structure_eating",label:"Getting more structure with my eating",value:"Getting more structure with my eating"},{id:"overall_improvement",label:"Overall improvement",value:"Overall improvement",mutuallyExclusive:!0,attributes:{goals:["general_wellness"]}}],maxSelections:3},conditionalNext:[],canGoBack:!0,showProgress:!0}],move:[{id:"move_activity_level",type:"singleselect",title:"Let's talk movement. How would you describe your current level of physical activity?",required:!0,config:{options:[{id:"very_active",label:"Very active (5+ per week)",value:"Very active (5+ per week)",attributes:{activity_level:"very_active",training_frequency:"daily"}},{id:"moderate",label:"Moderately active (2â4 per week)",value:"Moderately active (2â4 per week)",attributes:{activity_level:"moderately_active",training_frequency:"3_4x_week"}},{id:"occasionally",label:"Occasionally active (1 per week or less)",value:"Occasionally active (1 per week or less)",attributes:{activity_level:"lightly_active",training_frequency:"1_2x_week"}},{id:"inactive",label:"Not currently active, but I'd like to be",value:"Not currently active, but I'd like to be",attributes:{activity_level:"sedentary",training_frequency:"rarely"}}]},nextQuestion:"move_exercise_types",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"move_exercise_types",type:"multiselect",title:"What types of exercise do you typically do?",description:"Select all that apply.",required:!0,config:{options:[{id:"cardio",label:"Running or cardio",value:"Running or cardio",attributes:{training_type:["endurance"]}},{id:"strength",label:"Strength and resistance",value:"Strength and resistance",attributes:{training_type:["strength"]}},{id:"low_impact",label:"Low impact movement",value:"Low impact movement",attributes:{training_type:["low_impact"]}},{id:"yoga_pilates",label:"Yoga or Pilates",value:"Yoga or Pilates",attributes:{training_type:["yoga_pilates"]}},{id:"sports",label:"Sports (e.g. football, tennis)",value:"Sports (e.g. football, tennis)",attributes:{training_type:["sports"]}},{id:"walking",label:"Walking or hiking",value:"Walking or hiking",attributes:{training_type:["walking"]}},{id:"stretching",label:"Stretching & mobility",value:"Stretching & mobility",attributes:{training_type:["flexibility"]}},{id:"high_intensity",label:"High-intensity workouts (e.g. HIIT, Hyrox)",value:"High-intensity workouts (e.g. HIIT, Hyrox)",attributes:{training_type:["hiit"]}},{id:"not_regular",label:"I don't have a regular routine right now",value:"I don't have a regular routine right now",mutuallyExclusive:!0}]},nextQuestion:"move_goals",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"move_goals",type:"multiselect",title:"What would you like to get out of your movement?",description:"Select up to three.",required:!0,config:{options:[{id:"energy",label:"Boost energy levels",value:"Boost energy levels",attributes:{goals:["energy_support"]}},{id:"strength",label:"Build strength or muscle",value:"Build strength or muscle",attributes:{goals:["muscle_building"]}},{id:"flexibility",label:"Improve flexibility or mobility",value:"Improve flexibility or mobility",attributes:{goals:["joint_support"]}},{id:"endurance",label:"Increase endurance",value:"Increase endurance",attributes:{goals:["endurance"]}},{id:"recovery",label:"Speed up recovery",value:"Speed up recovery",attributes:{goals:["recovery"]}},{id:"pain",label:"Reduce inflammation or joint pain",value:"Reduce inflammation or joint pain",attributes:{goals:["inflammation_reduction","joint_support"]}},{id:"aging",label:"Support healthy ageing",value:"Support healthy ageing",attributes:{goals:["longevity"]}},{id:"overall_fitness",label:"Maintain overall fitness",value:"Maintain overall fitness",mutuallyExclusive:!0,attributes:{goals:["general_wellness"]}}],maxSelections:3},nextQuestion:"move_exercise_challenges",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"move_exercise_challenges",type:"multiselect",title:"Do you ever experience any of the following during/after exercise?",description:"Select up to three.",required:!0,config:{options:[{id:"sore_muscles",label:"Sore or slow-to-recover muscles",value:"Sore or slow-to-recover muscles",attributes:{symptom:["muscle_soreness"]}},{id:"joint_pain",label:"Joint pain or stiffness",value:"Joint pain or stiffness",attributes:{symptom:["joint_pain","stiffness"]}},{id:"low_energy",label:"Low energy or motivation",value:"Low energy or motivation",attributes:{symptom:["energy_crashes","low_motivation"]}},{id:"cramps",label:"Cramps or dehydration",value:"Cramps or dehydration",attributes:{symptom:["cramps"],goals:["hydration"]}},{id:"consistency",label:"Trouble staying consistent",value:"Trouble staying consistent"},{id:"nothing_major",label:"No major challenges",value:"No major challenges",mutuallyExclusive:!0},{id:"not_sure",label:"I'm not sure",value:"I'm not sure",mutuallyExclusive:!0}],maxSelections:3},conditionalNext:[],canGoBack:!0,showProgress:!0}],mind:[{id:"mind_current_challenges",type:"multiselect",title:"Let's check in with your mind. Which of these sound most like you?",description:"Select up to three.",required:!0,config:{options:[{id:"struggle_to_switch_off",label:"I struggle to switch off",value:"I struggle to switch off",attributes:{symptom:["racing_mind"],goals:["stress_relief"]}},{id:"trouble_staying_focused",label:"I have trouble staying focused",value:"I have trouble staying focused",attributes:{symptom:["brain_fog"],goals:["focus_clarity"]}},{id:"mood_dips",label:"My mood dips during the day or week",value:"My mood dips during the day or week",attributes:{symptom:["mood_swings"],goals:["mood_support"]}},{id:"hard_to_stick_to_habits",label:"I find it hard to stick to helpful habits",value:"I find it hard to stick to helpful habits"},{id:"easily_lose_motivation",label:"I easily lose motivation",value:"I easily lose motivation",attributes:{symptom:["low_motivation"]}},{id:"feeling_good",label:"I feel good, but looking to improve",value:"I feel good, but looking to improve",attributes:{goals:["general_wellness"]}},{id:"not_sure",label:"I'm not sure",value:"I'm not sure",mutuallyExclusive:!0}],maxSelections:3},nextQuestion:"mind_priorities",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"mind_priorities",type:"multiselect",title:"Which of these feel most important at the moment?",description:"Select up to three.",required:!0,config:{options:[{id:"stress",label:"Managing stress or anxiety",value:"Managing stress or anxiety",attributes:{goals:["stress_relief"]}},{id:"focus",label:"Boosting focus and attention",value:"Boosting focus and attention",attributes:{goals:["focus_clarity"]}},{id:"mood",label:"Lifting mood or motivation",value:"Lifting mood or motivation",attributes:{goals:["mood_support"]}},{id:"emotions",label:"Regulating emotions",value:"Regulating emotions",attributes:{goals:["stress_management"]}},{id:"overstimulation",label:"Reducing overstimulation or burnout",value:"Reducing overstimulation or burnout",attributes:{goals:["stress_relief"]}},{id:"mental_habits",label:"Building better mental habits",value:"Building better mental habits"},{id:"overall_mind",label:"Overall mental wellbeing",value:"Overall mental wellbeing",attributes:{goals:["general_wellness"]}}],maxSelections:3},nextQuestion:"mind_wellness_tools",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"mind_wellness_tools",type:"multiselect",title:"Do you use any of these to supp
1ort your mental wellbeing?",description:"Select up to three.",required:!0,config:{options:[{id:"meditation",label:"Meditation",value:"Meditation",attributes:{wellness_practices:["meditation"]}},{id:"journaling",label:"Journalling",value:"Journalling",attributes:{wellness_practices:["journaling"]}},{id:"therapy",label:"Therapy or coaching",value:"Therapy or coaching",attributes:{wellness_practices:["therapy_coaching"]}},{id:"brain_training",label:"Brain training apps or focus tools",value:"Brain training apps or focus tools",attributes:{wellness_practices:["brain_training"]}},{id:"supplements",label:"Herbal or natural supplements",value:"Herbal or natural supplements",attributes:{wellness_practices:["herbal_supplements"]}},{id:"none",label:"None right now",value:"None right now",mutuallyExclusive:!0},{id:"not_sure",label:"I'm not sure",value:"I'm not sure",mutuallyExclusive:!0}],maxSelections:3},conditionalNext:[],canGoBack:!0,showProgress:!0}],sleep:[{id:"sleep_challenges",type:"multiselect",title:"It all rests on sleep. Which of these sound most familiar?",description:"Select up to three.",required:!0,config:{options:[{id:"long_time_to_fall_asleep",label:"I take a long time to fall asleep",value:"I take a long time to fall asleep",attributes:{symptom:["poor_sleep"],sleep_quality:"poor"}},{id:"wake_up_frequently",label:"I wake up frequently during the night",value:"I wake up frequently during the night",attributes:{symptom:["poor_sleep"],sleep_quality:"poor"}},{id:"tired_after_sleep",label:"I'm tired even after a full night's sleep",value:"I'm tired even after a full night's sleep",attributes:{symptom:["poor_sleep"],sleep_quality:"fair"}},{id:"nightmares_anxiety",label:"I have nightmares and anxiety",value:"I have nightmares and anxiety",attributes:{symptom:["poor_sleep","racing_mind"]}},{id:"inconsistent_sleep",label:"My sleep patterns are inconsistent",value:"My sleep patterns are inconsistent",attributes:{symptom:["poor_sleep"],sleep_quality:"fair"}},{id:"well_rest",label:"I feel well rested most days",value:"I feel well rested most days",attributes:{sleep_quality:"good"}},{id:"not_sure",label:"I'm not sure",value:"I'm not sure",mutuallyExclusive:!0}],maxSelections:3},nextQuestion:"sleep_goals",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"sleep_goals",type:"multiselect",title:"What are your sleep goals?",description:"Select up to three.",required:!0,config:{options:[{id:"fall_asleep",label:"Falling asleep more easily",value:"Falling asleep more easily",attributes:{goals:["sleep_quality"]}},{id:"stay_asleep",label:"Staying asleep through the night",value:"Staying asleep through the night",attributes:{goals:["sleep_quality"]}},{id:"rested",label:"Waking up feeling rested",value:"Waking up feeling rested",attributes:{goals:["sleep_quality"]}},{id:"reduce_anxiety",label:"Reducing nighttime anxiety or restlessness",value:"Reducing nighttime anxiety or restlessness",attributes:{goals:["stress_relief","sleep_quality"]}},{id:"skin_beauty",label:"Improving skin or beauty sleep",value:"Improving skin or beauty sleep",attributes:{goals:["skin_health","sleep_quality"]}},{id:"hormone_balance",label:"Balancing hormones or sexual health",value:"Balancing hormones or sexual health",attributes:{goals:["hormonal_balance"]}},{id:"overall_improvement",label:"Just looking to sleep better",value:"Just looking to sleep better",attributes:{goals:["sleep_quality"]}}],maxSelections:3},nextQuestion:"sleep_tools",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"sleep_tools",type:"multiselect",title:"Do you have any wind-down rituals or tools?",description:"Select all that apply.",required:!0,config:{options:[{id:"herbal_teas",label:"Herbal teas or natural remedies",value:"Herbal teas or natural remedies",attributes:{sleep_tools:["herbal_teas"]}},{id:"white_noise",label:"White noise, music, or sleep stories",value:"White noise, music, or sleep stories",attributes:{sleep_tools:["white_noise"]}},{id:"meditation",label:"Meditation or breathwork",value:"Meditation or breathwork",attributes:{sleep_tools:["meditation","breathwork"]}},{id:"supplements",label:"Melatonin or other supplements",value:"Melatonin or other supplements",attributes:{sleep_tools:["melatonin","supplements"],ingredient_preferences:["melatonin"]}},{id:"nothing_currently",label:"Nothing currently",value:"Nothing currently",mutuallyExclusive:!0,attributes:{wind_down_routine:"none"}},{id:"not_sure",label:"I'm not sure",value:"I'm not sure",mutuallyExclusive:!0}]},conditionalNext:[],canGoBack:!0,showProgress:!0}]},generalQuestions:[{id:"general_lifestyle",type:"singleselect",title:"What best describes your life right now?",required:!0,config:{options:[{id:"high_stress",label:"High-stress and intense",value:"High-stress and intense",attributes:{population_groups:["high_stress_period"],routine_consistency:"low"}},{id:"balanced",label:"Balanced with a regular routine",value:"Balanced with a regular routine",attributes:{routine_consistency:"high"}},{id:"active",label:"Physically active or on-the-go",value:"Physically active or on-the-go"},{id:"unpredictable",label:"Unpredictable or constantly changing",value:"Unpredictable or constantly changing",mutuallyExclusive:!0,attributes:{routine_consistency:"low"}}]},nextQuestion:"general_life_stage",conditionalNext:[{condition:{questionId:"gender",operator:"equals",value:"female"},nextQuestionId:"general_life_stage_female"}],canGoBack:!0,showProgress:!0},{id:"general_life_stage_female",type:"multiselect",title:"Anything we should know about your current life stage?",description:"Select all that apply.",required:!0,config:{options:[{id:"trying_to_conceive",label:"I'm trying to conceive",value:"I'm trying to conceive",attributes:{population_groups:["trying_to_conceive"],goals:["fertility"],fertility_stage:"actively_trying"}},{id:"pregnant",label:"I'm currently pregnant or postpartum",value:"I'm currently pregnant or postpartum",attributes:{population_groups:["pregnant"],goals:["pregnancy_support"]}},{id:"perimenopause",label:"I'm experiencing perimenopause or menopause",value:"I'm experiencing perimenopause or menopause",attributes:{population_groups:["perimenopause"],goals:["menopause_support"]}}
1,{id:"demanding_life_phase",label:"I'm going through a demanding life phase",value:"I'm going through a demanding life phase",attributes:{population_groups:["high_stress_period"]}},{id:"not_sure",label:"I'm not sure",value:"I'm not sure",mutuallyExclusive:!0}]},nextQuestion:"general_supplement_experience",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"general_life_stage",type:"multiselect",title:"Anything we should know about your current life stage?",description:"Select all that apply.",required:!0,config:{options:[{id:"starting_family",label:"I'm planning to start a family soon",value:"I'm planning to start a family soon",attributes:{goals:["fertility"]}},{id:"strength_libido",label:"I've noticed changes in strength/libido",value:"I've noticed changes in strength/libido",attributes:{goals:["hormonal_balance"]}},{id:"muscle_loss",label:"I have a hard time maintain muscles",value:"I have a hard time maintain muscles",attributes:{goals:["muscle_building"]}},{id:"age_related",label:"Age-related concerns (hair loss, wrinkles, stamina)",value:"Age-related concerns (hair loss, wrinkles, stamina)",attributes:{goals:["longevity"]}},{id:"not_sure",label:"I'm not sure",value:"I'm not sure",mutuallyExclusive:!0}]},nextQuestion:"general_supplement_experience",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"general_supplement_experience",type:"singleselect",title:"Have you taken any supplements before?",required:!0,config:{options:[{id:"yes",label:"Yes, I take them regularly",value:"Yes, I take them regularly",attributes:{supplement_experience:"established"}},{id:"sometimes",label:"I've tried them a few times",value:"I've tried them a few times",attributes:{supplement_experience:"occasional"}},{id:"no",label:"No, I'm new to this",value:"No, I'm new to this",attributes:{supplement_experience:"new"}}]},nextQuestion:"general_supplement_frequency",conditionalNext:[{condition:{questionId:"general_supplement_experience",operator:"equals",value:"No, I'm new to this"},nextQuestionId:"general_health_devices"}],canGoBack:!0,showProgress:!0},{id:"general_supplement_frequency",type:"singleselect",title:"How often do you take supplements?",required:!0,config:{options:[{id:"daily",label:"Daily",value:"Daily"},{id:"weekly",label:"A few times a week",value:"A few times a week"},{id:"occasionally",label:"Occasionally",value:"Occasionally"}]},nextQuestion:"general_health_devices",conditionalNext:[],canGoBack:!0,showProgress:!0},{id:"general_health_devices",type:"multiselect",title:"Do you currently use any health devices or wearables?",required:!0,config:{options:[{id:"smart_watch",label:"Smart Watch (Apple, Samsung)",value:"Smart Watch (Apple, Samsung)",attributes:{wearable_usage:["smart_watch"]}},{id:"wearables",label:"Wearbles (Oura, Whoop)",value:"Wearbles (Oura, Whoop)",attributes:{wearable_usage:["recovery_ring"]}},{id:"fitness_tracker",label:"Fitness Tracker (Fitbit, Garmin)",value:"Fitness Tracker (Fitbit, Garmin)",attributes:{wearable_usage:["fitness_tracker"]}},{id:"recovery_tools",label:"Recovery Tools (Therabody)",value:"Recovery Tools (Therabody)",attributes:{wearable_usage:["recovery_tools"]}},{id:"skin_beauty_tools",label:"Skin & Beauty Tech (Red Light Therapy)",value:"Skin & Beauty Tech (Red Light Therapy)",attributes:{wearable_usage:["beauty_tech"]}},{id:"no",label:"No, I don't use any right now",value:"No, I don't use any right now",mutuallyExclusive:!0}]},nextQuestion:"final_loading",conditionalNext:[],canGoBack:!0,showProgress:!0}]},o=()=>{let e={};return Object.entries(a.pillarQuestions).forEach(t=>{let[,i]=t;i.forEach(t=>{e[t.id]=t})}),a.generalQuestions.forEach(t=>{e[t.id]=t}),e},n=e=>a.pillarQuestions[e]||[]},66239:(e,t,i)=>{i.d(t,{useQuizStore:()=>s});var l=i(50948),a=i(16600),o=i(27984);let n={firstName:{id:"firstName",type:"input",title:"Tell us about yourself.",titleKey:"tellAboutYourself",required:!1,config:{inputType:"text",label:"What's your first name?",labelKey:"firstNameLabel",placeholder:"Enter your first name",placeholderKey:"firstNamePlaceholder",validation:{minLength:1,maxLength:50,pattern:"^[a-zA-Z\\s-]+$"}},nextQuestion:"gender",canGoBack:!1,showProgress:!1},gender:{id:"gender",type:"singleselect",title:"How would you describe yourself?",titleKey:"q.gender.title",required:!0,config:{options:[{id:"male",label:"Male",value:"male"},{id:"female",label:"Female",value:"female"},{id:"prefer_not_to_say",label:"Prefer not to say",value:"prefer_not_to_say"}]},nextQuestion:"age",canGoBack:!0,showProgress:!0},age:{id:"age",type:"singleselect",title:"Age is just a number, what's yours?",titleKey:"q.age.title",description:"Choose the one that matters most to you.",descriptionKey:"q.age.description",required:!0,config:{options:[{id:"18-24",label:"18â24",value:"18-24"},{id:"25-34",label:"25â34",value:"25-34"},{id:"35-44",label:"35â44",value:"35-44"},{id:"45-54",label:"45â54",value:"45-54"},{id:"55-64",label:"55â64",value:"55-64"},{id:"65+",label:"65+",value:"65+"}]},nextQuestion:"pillars",canGoBack:!0,showProgress:!0},pillars:{id:"pillars",type:"multiselect",title:"We believe wellbeing is built on four key pillars. Which of these are you interested in today?",titleKey:"q.pillars.title",description:"Select any that apply",descriptionKey:"q.pillars.description",required:!0,config:{options:[{id:"eat",label:"EAT",value:"eat"},{id:"move",label:"MOVE",value:"move"},{id:"mind",label:"MIND",value:"mind"},{id:"sleep",label:"SLEEP",value:"sleep"}],maxSelections:4},nextQuestion:void 0,canGoBack:!0,showProgress:!0},eat_loading:{id:"eat_loading",type:"loading",title:"Tell us about how you EAT .",titleKey:"loading.eat.title",required:!1,config:{content:[{title:"Tell us about how you EAT .",titleKey:"loading.eat.content1Title",subt
1itle:""},{title:"Hippocrates once said food is medicine.",titleKey:"loading.eat.content2Title",subtitle:"He was on to something.",subtitleKey:"loading.eat.content2Subtitle"}],duration:4500,gradientColors:{from:"#386150",to:"#a4b28c"}},nextQuestion:"eat_typical_diet",canGoBack:!0,showProgress:!1},move_loading:{id:"move_loading",type:"loading",title:"Movement is a medicine for creating change.",titleKey:"loading.move.title",description:"Let's get you moving.",descriptionKey:"loading.move.description",required:!1,config:{content:[{title:"How do you love to MOVE ?",titleKey:"loading.move.content1Title",subtitle:""},{title:"",subtitle:"Headstands to half marathons, Pilates to powerlifting, how you move is up to you. ",subtitleKey:"loading.move.content2Subtitle"}],duration:4500,gradientColors:{from:"#5278bb",to:"#acb9a1"}},nextQuestion:"move_activity_level",canGoBack:!0,showProgress:!1},mind_loading:{id:"mind_loading",type:"loading",title:"A healthy mind is the foundation of wellbeing.",titleKey:"loading.mind.title",description:"Let's nurture yours.",descriptionKey:"loading.mind.description",required:!1,config:{content:[{title:"Let's check in with your MIND.",titleKey:"loading.mind.content1Title",subtitle:""},{title:"Life is busy.",titleKey:"loading.mind.content2Title",subtitle:"Take this moment to breathe.",subtitleKey:"loading.mind.content2
1Subtitle"}],duration:4500,gradientColors:{from:"#CC9050",to:"#D1B598"}},nextQuestion:"mind_current_challenges",canGoBack:!0,showProgress:!1},sleep_loading:{id:"sleep_loading",type:"loading",title:"Sleep is the best meditation.",titleKey:"loading.sleep.title",description:"Time to rest and restore.",descriptionKey:"loading.sleep.description",required:!1,config:{content:[{title:"Describe how you SLEEP .",titleKey:"loading.sleep.content1Title",subtitle:""},{title:"",subtitle:"Sleep is a science but the winning formula is what works for you.",subtitleKey:"loading.sleep.content2Subtitle"}],duration:4500,gradientColors:{from:"#D66243",to:"#D49F83"}},nextQuestion:"sleep_challenges",canGoBack:!0,showProgress:!1},general_loading:{id:"general_loading",type:"loading",title:"Finally, let's talk about your lifestyle and where you are on your wellbeing journey right now.",titleKey:"loading.general.title",required:!1,config:{content:[{title:"Finally, let's talk about your lifestyle and where you are on your wellbeing journey right now.",titleKey:"loading.general.content1Title",subtitle:""}],duration:4500,backgroundImage:{src:"/_next/static/media/loading-background-1.f6246624.jpg",height:1800,width:1200,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAIAAUDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAUAQEAAAAAAAAAAAAAAAAAAAAF/9oADAMBAAIQAxAAAACyCGf/xAAcEAACAQUBAAAAAAAAAAAAAAABAgMABAUSMTP/2gAIAQEAAT8Axud1lvY5pj6B124FccFf/8QAFxEBAQEBAAAAAAAAAAAAAAAAAQIDAP/aAAgBAgEBPwDZY0qZUDv/xAAXEQEBAQEAAAAAAAAAAAAAAAACAQAD/9oACAEDAQE/AOYDESMt3//Z",blurWidth:5,blurHeight:8},backgroundOverlayOpacity:.45},nextQuestion:"general_lifestyle",canGoBack:!0,showProgress:!1},final_loading:{id:"final_loading",type:"loading",title:"Thanks for telling us more about your wellbeing.",titleKey:"loading.final.title",required:!1,config:{content:[{title:"",subtitle:"Thanks for telling us more about your wellbeing.",subtitleKey:"loading.final.content1Subtitle"},{title:"",subtitle:"Analyzing your responses to find the perfect products...",subtitleKey:"loading.final.content2Subtitle"},{title:"",subtitle:"Leave the rest to us while we curate your recommendations.",subtitleKey:"loading.final.content3Subtitle"},{title:"",subtitle:"Habits take time but your results will just be a moment.",subtitleKey:"loading.final.content4Subtitle"}],duration:6e4,backgroundImage:{src:"/_next/static/media/loading-background-2.524e8454.jpg",height:1770,width:2200,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAGAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUAQEAAAAAAAAAAAAAAAAAAAAD/9oADAMBAAIQAxAAAAC2CH//xAAcEAADAAEFAAAAAAAAAAAAAAABAgQAAwUSFFH/2gAIAQEAAT8A3KGiihn7j6QUAjgPDn//xAAVEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAgBAgEBPwCv/8QAFxEBAAMAAAAAAAAAAAAAAAAAAQACEf/aAAgBAwEBPwCy7P/Z",blurWidth:8,blurHeight:6},backgroundOverlayOpacity:.6,isResultsLoading:!0},nextQuestion:"",canGoBack:!1,showProgress:!1},...(0,o.jn)()},s=(0,l.v)()((0,a.Zr)((e,t)=>({userUUID:"",firstQuestion:"firstName",questions:n,currentQuestionId:"",questionHistory:[],userResponses:{},isQuizStarted:!1,isQuizCompleted:!1,_hasHydrated:!1,selectedPillars:[],currentSection:"intro",currentPillar:void 0,pillarProgress:{},setUserUUID:t=>e({userUUID:t}),setQuestions:t=>e({questions:t}),setCurrentQuestionId:t=>e({currentQuestionId:t}),setResponse:(t,i)=>e(e=>{if(!i||"string"==typeof i&&""===i.trim()||Array.isArray(i)&&0===i.length){let i={...e.userResponses};return delete i[t],{userResponses:i}}return{userResponses:{...e.userResponses,[t]:i}}}),startQuiz:t=>e({isQuizStarted:!0,currentQuestionId:t,questionHistory:[t],currentSection:"intro"}),goToNextQuestion:()=>{let i=t(),l=i.questions[i.currentQuestionId],a=i.userResponses[i.currentQuestionId];if("final_loading"===i.currentQuestionId)return void e({isQuizCompleted:!0,currentSection:"complete"});if("pillars"===i.currentQuestionId){let t=Array.isArray(a)?a:[];if(e({selectedPillars:t,currentSection:"pillars"}),!(t.length>0))return void e(e=>({currentQuestionId:"general_loading",questionHistory:[...e.questionHistory,"general_loading"],currentSection:"general"}));{let i=t[0],l="".concat(i,"_loading");e(e=>({currentQuestionId:l,questionHistory:[...e.questionHistory,l],currentPillar:i}));return}}if(i.currentQuestionId.includes("_loading")){let t=i.currentQuestionId.replace("_loading","");["eat","move","mind","sleep"].includes(t)?e({currentPillar:t}):"general_loading"===i.currentQuestionId&&e({currentSection:"general",currentPillar:void 0})}let o=r(l,a,i.userResponses,i);o?e(e=>({currentQuestionId:o,questionHistory:[...e.questionHistory,o]})):e(e=>({currentQuestionId:"final_loading",questionHistory:[...e.questionHistory,"final_loading"],currentSection:"complete"}))},goToPreviousQuestion:()=>{let i=t();if(i.questionHistory.length>1){let t=[...i.questionHistory];t.pop(),e({currentQuestionId:t[t.length-1],questionHistory:t})}},resetQuiz:()=>e({firstQuestion:"firstName",questions:n,userResponses:{},currentQuestionId:"firstName",questionHistory:[],isQuizStarted:!1,isQuizC
1ompleted:!1,selectedPillars:[],currentSection:"intro",currentPillar:void 0,pillarProgress:{},_hasHydrated:!0}),setSelectedPillars:t=>e({selectedPillars:t}),setCurrentSection:t=>e({currentSection:t}),setCurrentPillar:t=>e({currentPillar:t})}),{name:"healf-quiz-storage",partialize:e=>({userUUID:e.userUUID,userResponses:e.userResponses,currentQuestionId:e.currentQuestionId,questionHistory:e.questionHistory,isQuizStarted:e.isQuizStarted,isQuizCompleted:e.isQuizCompleted,selectedPillars:e.selectedPillars,currentSection:e.currentSection,currentPillar:e.currentPillar,pillarProgress:e.pillarProgress}),onRehydrateStorage:()=>e=>{e&&(e._hasHydrated=!0)}})),r=(e,t,i,l)=>{if("loading"===e.type)return e.nextQuestion||null;if(e.conditionalNext){for(let l of e.conditionalNext)if(u(l.condition,t,i))return l.nextQuestionId}if("pillars"===l.currentSection&&l.currentPillar){let t=(0,o.iW)(l.currentPillar),i=t.findIndex(t=>t.id===e.id);if(-1!==i)if(i===t.length-1){let e=l.selectedPillars.indexOf(l.currentPillar)+1;if(!(e<l.selectedPillars.length))return"general_loading";{let t=l.selectedPillars[e];return"".concat(t,"_loading")}}else{let e=t[i+1];if(e)return e.id}}return e.nextQuestion||null},u=(e,t,i)=>{let{questionId:l,operator:a,value:o,logic:n,conditions:s}=e;if(s&&s.length>0){let e=s.map(e=>u(e.condition,t,i));return"OR"===n?e.some(e=>e):e.every(e=>e)}let r=l?i[l]:t;if(!r)return!1;switch(a){case"equals":return JSON.stringify(r)===JSON.stringify(o);case"contains":return Array.isArray(r)&&"string"==typeof o&&r.includes(o);case"not_equals":return JSON.stringify(r)!==JSON.stringify(o);case"greater_than":return Number(r)>Number(o);case"less_than":return Number(r)<Number(o);default:return!1}}}}]); 2//# sourceMappingURL=6239-3ca5c2bf6eb46fe7.js.map
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.