123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
{
  "surface_id": "onboadring-nutrition-goal-picker",
  "surface_version": 1,
  "payload": {
    "objects": [
      {
        "beginRendering": {
          "surfaceId": "onboadring-nutrition-goal-picker",
          "root": "root-card"
        }
      },
      {
        "surfaceUpdate": {
          "surfaceId": "onboadring-nutrition-goal-picker",
          "components": [
            {
              "id": "root-card",
              "component": {
                "Card": {
                  "child": "main-column"
                }
              }
            },
            {
              "id": "main-column",
              "component": {
                "Column": {
                  "alignment": "stretch",
                  "children": {
                    "explicitList": [
                      "core-goal-row",
                      "core-goal-wrap",
                      "section-divider",
                      "special-needs-row",
                      "allergies-label",
                      "allergies-wrap",
                      "submit-button"
                    ]
                  }
                }
              }
            },
            {
              "id": "core-goal-row",
              "component": {
                "Row": {
                  "alignment": "center",
                  "children": {
                    "explicitList": [
                      "core-goal-title",
                      "core-goal-required"
                    ]
                  }
                }
              }
            },
            {
              "id": "core-goal-title",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Core Goal"
                  },
                  "variant": "title"
                }
              }
            },
            {
              "id": "core-goal-required",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "*Req"
                  },
                  "color": "secondary",
                  "variant": "bodySansSemibold"
                }
              }
            },
            {
              "id": "core-goal-wrap",
              "component": {
                "SelectionWrap": {
                  "selection": {
                    "path": "/selectedCoreGoal",
                    "literalArray": []
                  },
                  "maxSelection": 1,
                  "requiredSelection": 1,
                  "hasSelection": {
                    "path": "/readyCoreGoal",
                    "literalBoolean": false
                  },
                  "items": [
                    {
                      "value": "fat_loss",
                      "child": "goal-fat-loss"
                    },
                    {
                      "value": "balanced",
                      "child": "goal-balanced"
                    },
                    {
                      "value": "muscle_gain",
                      "child": "goal-muscle-gain"
                    },
                    {
                      "value": "gut_friendly",
                      "child": "goal-gut-friendly"
                    },
                    {
                      "value": "allergy_safe",
                      "child": "goal-allergy-safe"
                    }
                  ]
                }
              }
            },
            {
              "id": "goal-fat-loss",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Fat Loss"
                  },
                  "variant": "subheadline"
                }
              }
            },
            {
              "id": "goal-balanced",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Balanced"
                  },
                  "variant": "subheadline"
                }
              }
            },
            {
              "id": "goal-muscle-gain",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Muscle Gain"
                  },
                  "variant": "subheadline"
                }
              }
            },
            {
              "id": "goal-gut-friendly",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Gut Friendly"
                  },
                  "variant": "subheadline"
                }
              }
            },
            {
              "id": "goal-allergy-safe",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Allergy Safe"
                  },
                  "variant": "subheadline"
                }
              }
            },
            {
              "id": "section-divider",
              "component": {
                "Divider": {}
              }
            },
            {
              "id": "special-needs-row",
              "component": {
                "Row": {
                  "alignment": "center",
                  "children": {
                    "explicitList": [
                      "special-needs-title",
                      "special-needs-optional"
                    ]
                  }
                }
              }
            },
            {
              "id": "special-needs-title",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Special Needs"
                  },
                  "variant": "title"
                }
              }
            },
            {
              "id": "special-needs-optional",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "(Opt)"
                  },
                  "color": "secondary",
                  "variant": "bodySansSemibold"
                }
              }
            },
            {
              "id": "allergies-label",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Allergies"
                  },
                  "variant": "bodySansSemibold"
                }
              }
            },
            {
              "id": "allergies-wrap",
              "component": {
                "SelectionWrap": {
                  "selection": {
                    "path": "/selectedSpecialNeeds",
                    "literalArray": []
                  },
                  "maxSelection": 5,
                  "items": [
                    {
                      "value": "peanut",
                      "child": "allergy-peanut"
                    },
                    {
                      "value": "seafood",
                      "child": "allergy-seafood"
                    },
                    {
                      "value": "dairy",
                      "child": "allergy-dairy"
                    },
                    {
                      "value": "gluten",
                      "child": "allergy-gluten"
                    },
                    {
                      "value": "soy",
                      "child": "allergy-soy"
                    }
                  ]
                }
              }
            },
            {
              "id": "allergy-peanut",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Peanut"
                  },
                  "variant": "subheadline"
                }
              }
            },
            {
              "id": "allergy-seafood",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Seafood"
                  },
                  "variant": "subheadline"
                }
              }
            },
            {
              "id": "allergy-dairy",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Dairy"
                  },
                  "variant": "subheadline"
                }
              }
            },
            {
              "id": "allergy-gluten",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Gluten"
                  },
                  "variant": "subheadline"
                }
              }
            },
            {
              "id": "allergy-soy",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Soy"
                  },
                  "variant": "subheadline"
                }
              }
            },
            {
              "id": "submit-button",
              "component": {
                "Button": {
                  "child": "submit-button-label",
                  "style": "primary",
                  "enabled": {
                    "path": "/readyCoreGoal"
                  },
                  "action": {
                    "name": "onboarding_summon_nutritionist",
                    "context": [
                      {
                        "key": "selectedCoreGoal",
                        "value": {
                          "path": "/selectedCoreGoal"
                        }
                      },
                      {
                        "key": "selectedSpecialNeeds",
                        "value": {
                          "path": "/selectedSpecialNeeds"
                        }
                      },
                      {
                        "key": "readyCoreGoal",
                        "value": {
                          "path": "/readyCoreGoal"
                        }
                      }
                    ]
                  }
                }
              }
            },
            {
              "id": "submit-button-label",
              "component": {
                "Label": {
                  "text": {
                    "literalString": "Summon Nutritionist"
                  },
                  "variant": "bodySansSemibold"
                }
              }
            }
          ]
        }
      },
      {
        "dataModelUpdate": {
          "surfaceId": "onboadring-nutrition-goal-picker",
          "path": "/",
          "contents": [
            {
              "key": "readyCoreGoal",
              "valueBoolean": false
            }
          ]
        }
      }
    ]
  }
}
0 tokens
Core Goal
*Req
Special Needs
(Opt)
Allergies