PageSourceSearch

https://naturesbakery.com/cdn/shop/t/232/assets/FlavorCrushQuizSection.BON1FL4h.chunk.min.js

js naturesbakery.com collected 2026-10-03 20:53:42 UTC 35,364 bytes, 1 lines download raw bytes

1import{c as h,b as r,t as l,k as j,x as _,F as z,G as L,n as Y,J as D,s as C,r as B,e as b,o as T}from"./theme.zi3gfQ3c.bundle.min.js";import{u as E,a as G}from"./useMiniCart.CudqSgUX.chunk.min.js";import{_ as Q}from"./_plugin-vue_export-helper.DlAUqK2U.chunk.min.js";import"./cartStore.X3gS0Hkc.chunk.min.js";const K=["dietary","whySnack","snackMoment","movement","flavorCrush"],U={dietary:[{label:"Gluten free only, please"},{label:"No dietary restrictions"}],whySnack:[{label:"I'm in motion 🏃‍♂️ and need a quick bite between things"},{label:"I'm restocking for the household 🏠 (kids/partner/roommates)"},{label:"I’m craving a treat 🍫 and want my snack to feel like a dessert"},{label:"I just want something easy and dependable 😋"}],snackMoment:[{label:"Pre/post workout or between errands"},{label:"Lunchbox / after-school"},{label:"Desk snack that keeps me on track at work"},{label:"Late-night treats"}],movement:[{label:"Strength training / lifting / CrossFit-style"},{label:"Cycling"},{label:"Walking / hiking / steps"},{label:"Yoga / pilates / mobility"},{label:"I prefer just being cozy"}],flavorCrush:[{label:"Soft + sweet + romantic"},{label:"Bright + bold with a little zing"},{label:"Smooth + calm + cozy"},{label:"Decadent + chocolatey (treat-first energy)"},{label:"Fruity + fun (sweet, not sharp)"},{label:"Berry with a little pop (playfully tangy)"},{label:"Smooth fruit + mellow vibes"},{label:"Bright + zesty (sparkly citrus mood)"},{label:"Cozy + classic (warm, comforting)"},{label:"Decadent + Indulgent"},{label:"Chocolatey but not too sweet"}]},J={dietary:{id:"dietary",label:"Let's start with any dietary preferences:",helper:"If you choose gluten free, your results will ONLY show gluten free options."},whySnack:{id:"whySnack",label:"Why are you snacking today?",helper:"Your reason helps us match you to the right bar moment."},snackMoment:{id:"snackMoment",label:"Pick your perfect snack-time moment:",helper:'This helps us decide your bar "type."'},movement:{id:"movement",label:"What kind of exercise is your favorite?",helper:"No wrong answers—just helps us understand your pace."},flavorCrush:{id:"flavorCrush",label:"Pick the vibe you're craving:",helper:"One choice—then we reveal your Flavor Crush."}},V="Whole Wheat Original Fig Bars",X=[{dietary:"Gluten free only, please",whySnack:null,snackMoment:null,movement:null,vibe:"Soft + sweet + romantic",resultKey:"Gluten Free Fig Bars Strawberry"},{dietary:"Gluten free only, please",whySnack:null,snackMoment:null,movement:null,vibe:"Bright + bold with a little zing",resultKey:"Gluten Free Fig Bars Raspberry"},{dietary:"Gluten free only, please",whySnack:null,snackMoment:null,movement:null,vibe:"Smooth + calm + cozy",resultKey:"Gluten Free Fig Bars Blueberry"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"Strength training / lifting / CrossFit-style",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"Strength training / lifting / CrossFit-style",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"Cycling",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"Cycling",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Berry with a little pop (playfully tangy)",resultKey:"Fig Bar Minis Raspberry"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Fig Bar Minis Blueberry"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Bright + zesty (sparkly citrus mood)",resultKey:"Oatmeal Crumble Raspberry Lemon"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Cozy + classic (warm, comforting)",resultKey:"Oatmeal Crumble Strawberry"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Bright + zesty (sparkly citrus mood)",resultKey:"Oatmeal Crumble Raspberry Lemon"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Cozy + classic (warm, comforting)",resultKey:"Oatmeal Crumble Strawberry"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Fig Bar Minis Raspberry"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Berry with a little pop (playfully tangy)",resultKey:"Fig Bar Minis Blueberry"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Smooth fruit + mellow vibes",resultKey:"Fig Bar Minis Raspberry"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Desk snack that keeps me on track at work",movement:null,vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Desk snack that keeps me on track at work",movement:null,vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Late-night treats",movement:null,vibe:"Decadent + Indulgent",resultKey:"Brownie Bars Double Chocolate"},{dietary:"No dietary restrictions",whySnack:"I'm in motion 🏃‍♂️ and need a quick bite between things",snackMoment:"Late-night treats",movement:null,vibe:"Chocolatey but not too sweet",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Strength training / lifting / CrossFit-style",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Strength training / lifting / CrossFit-style",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Cycling",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Cycling",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Bright + zesty (sparkly citrus mood)",resultKey:"Oatmeal Crumble Raspberry Lemon"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Cozy + classic (warm, comforting)",resultKey:"Whole Wheat Original Fig Bars"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Brownie Bars Double Chocolate"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Whole Wheat Fig Bars Strawberry"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Berry with a little pop (playfully tangy)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Bright + zesty (sparkly citrus mood)",resultKey:"Oatmeal Crumble Raspberry Lemon"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Cozy + classic (warm, comforting)",resultKey:"Oatmeal Crumble Strawberry"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Bright + zesty (sparkly citrus mood)",resultKey:"Oatmeal Crumble Raspberry Lemon"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Cozy + classic (warm, comforting)",resultKey:"Oatmeal Crumble Strawberry"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Fig Bar Minis Raspberry"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Berry with a little pop (playfully tangy)",resultKey:"Fig Bar Minis Blueberry"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Cozy + classic (warm, comforting)",resultKey:"Oatmeal Crumble Apple"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Smooth fruit + mellow vibes",resultKey:"Fig Bar Minis Raspberry"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Desk snack that keeps me on track at work",movement:null,vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Desk snack that keeps me on track at work",movement:null,vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Desk snack that keeps me on track at work",movement:null,vibe:"Cozy + classic (warm, comforting)",resultKey:"Oatmeal Crumble Strawberry"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Desk snack that keeps me on track at work",movement:null,vibe:"Bright + zesty (sparkly citrus mood)",resultKey:"Oatmeal Crumble Raspberry Lemon"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Late-night treats",movement:null,vibe:"Decadent + Indulgent",resultKey:"Brownie Bars Double Chocolate"},{dietary:"No dietary restrictions",whySnack:"I'm restocking for the household 🏠 (kids/partner/roommates)",snackMoment:"Late-night treats",movement:null,vibe:"Chocolatey but not too sweet",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I’m craving a treat 🍫 and want my snack to feel like a dessert",snackMoment:null,movement:null,vibe:"Decadent + Indulgent",resultKey:"Brownie Bars Double Chocolate"},{dietary:"No dietary restrictions",whySnack:"I’m craving a treat 🍫 and want my snack to feel like a dessert",snackMoment:null,movement:null,vibe:"Chocolatey but not too sweet",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout 
1or between errands",movement:"Strength training / lifting / CrossFit-style",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Strength training / lifting / CrossFit-style",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Cycling",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Cycling",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Bright + zesty (sparkly citrus mood)",resultKey:"Oatmeal Crumble Raspberry Lemon"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Cozy + classic (warm, comforting)",resultKey:"Whole Wheat Original Fig Bars"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Brownie Bars Double Chocolate"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Whole Wheat Fig Bars Strawberry"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Walking / hiking / steps",vibe:"Berry with a little pop (playfully tangy)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Bright + zesty (sparkly citrus mood)",resultKey:"Oatmeal Crumble Raspberry Lemon"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Cozy + classic (warm, comforting)",resultKey:"Oatmeal Crumble Strawberry"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Smooth fruit + mellow vibes",resultKey:"Whole Wheat Fig Bars Peach Apricot"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"Yoga / pilates / mobility",vibe:"Berry with a little pop (playfully tangy)",resultKey:"Whole Wheat Fig Bars Blueberry"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Bright + zesty (sparkly citrus mood)",resultKey:"Oatmeal Crumble Raspberry Lemon"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Cozy + classic (warm, comforting)",resultKey:"Oatmeal Crumble Strawberry"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Smooth fruit + mellow vibes",resultKey:"Whole Wheat Fig Bars Peach Apricot"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Pre/post workout or between errands",movement:"I prefer just being cozy",vibe:"Berry with a little pop (playfully tangy)",resultKey:"Whole Wheat Fig Bars Blueberry"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Fig Bar Minis Raspberry"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Berry with a little pop (playfully tangy)",resultKey:"Fig Bar Minis Blueberry"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Cozy + classic (warm, comforting)",resultKey:"Oatmeal Crumble Apple"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Lunchbox / after-school",movement:null,vibe:"Smooth fruit + mellow vibes",resultKey:"Fig Bar Minis Raspberry"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Desk snack that keeps me on track at work",movement:null,vibe:"Decadent + chocolatey (treat-first energy)",resultKey:"Hearty Bars Chocolate Chip"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Desk snack that keeps me on track at work",movement:null,vibe:"Fruity + fun (sweet, not sharp)",resultKey:"Hearty Bar Blueberry (9g plant protein)"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Desk snack that keeps me on track at work",movement:null,vibe:"Cozy + classic (warm, comforting)",resultKey:"Oatmeal Crumble Strawberry"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Desk snack that keeps me on track at work",movement:null,vibe:"Bright + zesty (sparkly citrus mood)",resultKey:"Oatmeal Crumble Raspberry Lemon"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Late-night treats",movement:null,vibe:"Decadent + Indulgent",resultKey:"Brownie Bars Double Chocolate"},{dietary:"No dietary restrictions",whySnack:"I just want something easy and dependable 😋",snackMoment:"Late-night treats",movement:null,vibe:"Chocolatey but not too sweet",resultKey:"Hearty Bars Chocolate Chip"}];function M(o,t){const n=o==null?void 0:o[t];return(n==null?void 0:n.label)??null}function d(o){return o==null||typeof o!="string"?"":o.replace(new RegExp("\\p{Emoji}","gu"),"").replace(/\s+/g," ").trim()}function P(o){const t=M(o,"dietary"),n=M(o,"whySnack"),e=M(o,"snackMoment"),m=M(o,"movement"),y=M(o,"flavorCrush");return X.filter(a=>!(t!=null&&a.dietary!==null&&d(a.dietary)!==d(t)||n!=null&&a.whySnack!==null&&d(a.whySnack)!==d(n)||e!=null&&a.snackMoment!==null&&d(a.snackMoment)!==d(e)||m!=null&&a.movement!==null&&d(a.movement)!==d(m)||y!=null&&a.vibe!==null&&d(a.vibe)!==d(y)))}
1function Z(o){for(const t of K){if(t in(o||{}))continue;const n=P(o||{}),e=t==="flavorCrush"?"vibe":t;if(n.some(y=>y[e]!==null))return t}return null}function $(o,t){const n=P(t||{}),e=o==="flavorCrush"?"vibe":o,m=new Set;return n.forEach(a=>{a[e]!==null&&m.add(d(a[e]))}),(U[o]||[]).filter(a=>m.has(d(a.label)))}function ee(o){const t=P(o||{}),n=t.length>0?t[0].resultKey:V,e=d(M(o,"dietary"))==="Gluten free only, please";return{segmentKey:e?"GF":"",segmentLabel:"",recTitle:"Your Flavor Crush",recSubtitle:"Here’s your perfect match based on your answers.",primary:{name:n,note:""},alsoGreat:[],gfLocked:e}}function te(o,t,n){return Math.max(t,Math.min(n,o))}const re={props:{productsMap:{type:Object,default:()=>({})},discountPercent:{type:[Number,String],default:14},discountCode:{type:String,default:""},termsAndConditions:{type:String,default:""}},setup(o){const t=B({}),n=B(!1),{addItems:e,pending:m,success:y,resetState:a}=G(),{open:w}=E(),u=C(()=>Z(t.value)),k=C(()=>u.value?J[u.value]:null),S=C(()=>{const i=u.value;return i?$(i,t.value):[]}),g=5,f=C(()=>{const i=u.value;if(!i)return g;const c=K.indexOf(i);return c>=0?c:0}),v=C(()=>u.value===null&&Object.keys(t.value).length>0?100:Math.round(f.value/g*100)),I=C(()=>ee(t.value)),s=C(()=>u.value===null),x=C(()=>{var c,p;const i=(p=(c=I.value)==null?void 0:c.primary)==null?void 0:p.name;return i?o.productsMap[i]:null});function N(i){k.value&&(t.value={...t.value,[k.value.id]:i},n.value=!1)}function H(){const i=K.filter(F=>F in t.value),c=i[i.length-1];if(!c)return;const p={...t.value};delete p[c],t.value=p,n.value=!1}function R(){t.value={},n.value=!1,a()}async function O(){try{await navigator.clipboard.writeText(o.discountCode),n.value=!0,setTimeout(()=>{n.value=!1},1800)}catch{n.value=!1}}function W(i){const c=document.cookie.match(new RegExp(`(?:^|; )${i}=([^;]*)`));return c?decodeURIComponent(c[1]):null}async function q(){const i=x.value,c=i==null?void 0:i.first_variant_id;if(!c||(a(),await e([{id:c,quantity:1}]),!y.value))return;const p=(o.discountCode||"").trim();if(p){if((W("discount_code")||"").trim().toLowerCase()===p.toLowerCase()){w();return}const A=encodeURIComponent(window.location.pathname+window.location.search+window.location.hash||"/");window.location.href=`/discount/${encodeURIComponent(p)}?redirect=${A}`}else w()}return{step:f,answers:t,copied:n,totalSteps:g,progress:v,current:k,currentAnswers:S,result:I,isComplete:s,primaryProduct:x,addToCartPending:m,addToCartSuccess:y,onSelect:N,onBack:H,onRestart:R,copyCode:O,addToCart:q,clamp:te}}},ne={class:"min-h-[50vh] w-full text-scheme-text"},oe={class:"rounded-general border border-scheme-border bg-scheme-background p-4 tb:p-6"},ae={class:"flex flex-wrap items-start justify-between gap-4"},se={class:"flex flex-wrap items-center gap-2"},ie={class:"inline-flex items-center rounded-buttons border border-scheme-border bg-scheme-alternate-background px-3 py-1 text-caption font-semibold text-scheme-text"},le={class:"mt-2 text-body text-scheme-text/80"},ce={class:"sm:flex hidden flex-col items-end gap-2"},de={class:"h-2 w-40 overflow-hidden rounded-full bg-scheme-alternate-background"},me={class:"text-caption font-semibold text-scheme-text/80"},ye={class:"sm:hidden mt-5"},ue={class:"mb-2 flex items-center justify-between text-caption text-scheme-text/60"},he={class:"font-semibold"},be={class:"h-2 overflow-hidden rounded-full bg-scheme-alternate-background"},ke={class:"mt-6"},pe={key:0,class:"rounded-general border border-scheme-border bg-scheme-background p-4 tb:p-6"},we={class:"flex items-center justify-between gap-4"},ge={class:"mt-2 text-sm font-bold tracking-tight"},fe={key:0,class:"mt-2 text-body text-scheme-text/80"},ve={class:"mt-6 grid gap-3"},Ce=["onClick"],Se={class:"font-semibold"},xe={class:"mt-6 flex items-center justify-between"},Be=["disabled"],Me={key:1,class:"rounded-general border border-scheme-border bg-scheme-background p-4 tb:p-6"},Ie={class:"flex flex-col gap-3"},Ne={class:"text-md font-bold tracking-tight"},_e={class:"text-body text-scheme-text/80"},Ke=["data-product-id"],Pe={class:"sm:grid-cols-[160px_1fr] mt-3 grid gap-4 tb:mx-auto tb:flex tb:max-w-[250px] tb:flex-col tb:items-center"},Fe={class:"aspect-square overflow-hidden rounded-general border border-scheme-border bg-scheme-background tb:w-[250px] tb:max-w-full"},je=["src","alt"],ze={key:1,class:"flex size-full items-center justify-center px-4 text-center text-caption text-scheme-text/50"},Le={class:"tb:w-full tb:text-center"},De={class:"text-sm font-bold"},He={class:"mt-2 text-body text-scheme-text/80"},Re={class:"mt-4 tb:flex tb:justify-center"},Oe=["disabled"],We={key:0,class:"mt-5"},qe={class:"mt-2 grid gap-2"},Ae=["data-product-id"],Ye={class:"font-semibold"},Te={class:"mt-5 rounded-general border border-scheme-border bg-scheme-accent p-4 tb:p-5"},Ee={class:"sm:flex-row sm:items-center sm:justify-between flex flex-col gap-4"},Ge={class:"mt-1 text-sm font-bold text-white"},Qe={class:"mt-2 text-white/80"},Ue={class:"font-bold tracking-wider"},Je={class:"flex items-center gap-3"},Ve={key:0,class:"mt-4 whitespace-pre-line text-caption text-scheme-text/80"};function Xe(o,t,n,e,m,y){var a,w,u,k,S,g,f,v,I;return b(),h("div",ne,[r("div",oe,[r("div",ae,[r("div",null,[r("div",se,[r("span",ie," Save "+l(n.discountPercent)+"% ",1)]),t[5]||(t[5]=r("h1",{class:"mt-3 text-md font-bold tracking-tight"}," Meet your Nature's Bakery Flavor Crush ",-1)),r("p",le," Answer a few quick questions to find your perfect match—then take "+l(n.discountPercent)+"% off when you shop. ",1)]),r("div",ce,[t[6]||(t[6]=r("div",{class:"text-caption text-scheme-text/60"},"Quiz progress",-1)),r("div",de,[r("div",{class:"h-full rounded-full bg-scheme-text/70 transition-all",style:j({width:`${e.clamp(e.isComplete?100:e.progress,0,100)}%`})},null,4)]),r("div",me,l(e.isComplete?"Complete":`${e.step+1} / ${e.totalSteps}`),1)])]),r("div",ye,[r("div",ue,[t[7]||(t[7]=r("span",null,"Progress",-1)),r("span",he,l(e.isComplete?"100%":`${e.progress}%`),1)]),r("div",be,[r("div",{class:"h-full rounded-full bg-scheme-text/70 transition-all",style:j({width:`${e.clamp(e.isComplete?100:e.progress,0,100)}%`})},null,4)])])]),r("div",ke,[e.isComplete?(b(),h("div",Me,[r("div",Ie,[r("h2",Ne,l(e.result.recTitle),1),r("p",_e,l(e.result.recSubtitle),
11),r("div",{class:"mt-4 rounded-general border border-scheme-border bg-scheme-alternate-background p-4 tb:p-5","data-product-id":((u=e.primaryProduct)==null?void 0:u.id)??null},[t[10]||(t[10]=r("div",{class:"text-caption font-semibold text-scheme-text/80"},"Your top match",-1)),r("div",Pe,[r("div",Fe,[(k=e.primaryProduct)!=null&&k.featured_image_url?(b(),h("img",{key:0,src:e.primaryProduct.featured_image_url,alt:e.primaryProduct.title,class:"size-full object-cover",width:"160",height:"160"},null,8,je)):(b(),h("div",ze," Product image "))]),r("div",Le,[r("div",De,l(((S=e.primaryProduct)==null?void 0:S.title)??((g=e.result.primary)==null?void 0:g.name)),1),r("p",He,l((f=e.result.primary)==null?void 0:f.note),1),r("div",Re,[r("button",{type:"button",class:"btn-primary w-fit px-1 disabled:pointer-events-none disabled:opacity-70 tb:w-full",disabled:!((v=e.primaryProduct)!=null&&v.first_variant_id)||e.addToCartPending,onClick:t[2]||(t[2]=(...s)=>e.addToCart&&e.addToCart(...s))},l(e.addToCartPending?"Adding…":e.addToCartSuccess?"Added!":"Add to cart"),9,Oe)])])]),e.result.segmentKey==="FAMILY"&&((I=e.result.alsoGreat)!=null&&I.length)?(b(),h("div",We,[t[9]||(t[9]=r("div",{class:"text-caption font-semibold text-scheme-text/80"},"Also great for the crew",-1)),r("ul",qe,[(b(!0),h(z,null,L(e.result.alsoGreat,s=>{var x,N;return b(),h("li",{key:s,class:"rounded-general border border-scheme-border bg-scheme-background px-4 py-3","data-product-id":((x=n.productsMap[s])==null?void 0:x.id)??null},[r("div",Ye,l(((N=n.productsMap[s])==null?void 0:N.title)??s),1)],8,Ae)}),128))])])):_("",!0)],8,Ke),r("div",Te,[r("div",Ee,[r("div",null,[t[13]||(t[13]=r("div",{class:"text-caption font-semibold text-white/80"},"Your quiz reward",-1)),r("div",Ge," Save "+l(n.discountPercent)+"% ",1),r("div",Qe,[t[11]||(t[11]=D(" Use code ",-1)),r("span",Ue,l(n.discountCode),1),t[12]||(t[12]=D(" at checkout. ",-1))])]),r("div",Je,[r("button",{type:"button",class:"btn-primary w-fit bg-scheme-background px-1 text-scheme-text tb:w-full",onClick:t[3]||(t[3]=(...s)=>e.copyCode&&e.copyCode(...s))},l(e.copied?"Copied!":"Copy code"),1),r("button",{type:"button",class:"btn-primary w-fit bg-scheme-background px-1 text-scheme-text tb:w-full",onClick:t[4]||(t[4]=(...s)=>e.onRestart&&e.onRestart(...s))}," Retake quiz ")])])]),n.termsAndConditions&&n.termsAndConditions.trim()?(b(),h("div",Ve,l(n.termsAndConditions),1)):_("",!0)])])):(b(),h("div",pe,[r("div",we,[r("div",null,[r("h2",ge,l((a=e.current)==null?void 0:a.label),1),(w=e.current)!=null&&w.helper?(b(),h("p",fe,l(e.current.helper),1)):_("",!0)])]),r("div",ve,[(b(!0),h(z,null,L(e.currentAnswers,(s,x)=>(b(),h("button",{key:x,type:"button",class:"focus-visible:focus-ring w-full rounded-general border border-scheme-border bg-scheme-background p-4 text-left transition hover:bg-scheme-alternate-background focus:outline-none",onClick:N=>e.onSelect(s)},[r("div",Se,l(s.label),1),t[8]||(t[8]=r("div",{class:"mt-1 text-caption text-scheme-text/60"},"Tap to choose",-1))],8,Ce))),128))]),r("div",xe,[r("button",{type:"button",class:Y(["rounded-buttons px-3 py-2 text-caption font-semibold transition disabled:text-scheme-disabled",e.step===0?"cursor-default":"text-scheme-text/80 hover:bg-scheme-alternate-background"]),disabled:e.step===0,onClick:t[0]||(t[0]=(...s)=>e.onBack&&e.onBack(...s))}," ← Back ",10,Be),r("button",{type:"button",class:"rounded-buttons px-3 py-2 text-caption font-semibold text-scheme-text/80 transition hover:bg-scheme-alternate-background",onClick:t[1]||(t[1]=(...s)=>e.onRestart&&e.onRestart(...s))}," Restart ")])]))])])}const Ze=Q(re,[["render",Xe]]),nt={components:{FlavorCrushQuiz:Ze},setup(){const o=B(null),t=B({}),n=B(14),e=B(""),m=B("");return T(()=>{if(!o.value)return;const{productMappings:y,discountPercent:a,discountCode:w,termsAndConditions:u}=o.value.dataset;try{if(y){const k=JSON.parse(y),S={};(k||[]).forEach(({id:g,key:f,product:v})=>{f&&v&&(S[f]={id:g??v.id,...v})}),t.value=S}}catch(k){window.console.warn("FlavorCrushQuiz: failed to parse product mappings",k)}a!==void 0&&a!==""&&(n.value=Number(a)||14),w!==void 0&&(e.value=w),u!==void 0&&(m.value=u||"")}),{rootElement:o,productsMap:t,discountPercent:n,discountCode:e,termsAndConditions:m}}};export{nt as default};

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.