{
  "Page": {
    "template": "stack",
    "pageType": "moleculeStack",
    "screenHeading": "Manage Profile",
    "hideFabOverlay": true,
    "suppressPostLaunchRequests": false,
    "tabBarHidden": true,
    "analyticsData": {
      "vzdl.events.flowinitiated": "1",
      "vzdl.page.sourceChannel": "MVA",
      "vzdl.target.engagement.intent": " ",
      "vzdl.page.channel": " ",
      "vzdl.page.displayChannel": "MVA",
      "vzdl.page.id": "moleculeStack",
      "vzdl.page.siteSection": " ",
      "contentSquarePageName": "Manage Profile",
      "vzdl.page.name": "moleculeStack"
    },
    "chaticon": {
      "moleculeName": "chatIcon",
      "hideFabOverlay": true
    },
    "pageStatNames": [
      "/mf/get/email/verify/indicator",
      "/vision/customer/profile",
      "/mf/cntrlr/mngpfl"
    ],
    "navigationBar": {
      "moleculeName": "navigationBar",
      "title": "Manage Profile"
    },
    "header": {
      "moleculeName": "headerH2Link",
      "headlineBody": {
        "moleculeName": "headlineBody",
        "headline": {
          "moleculeName": "label",
          "text": "Tell us about yourself."
        },
        "body": {
          "moleculeName": "label",
          "text": "We'll use your preferred name and pronouns online, in print, on the phone and in person to refer to you and your account."
        }
      },
      "link": {
        "moleculeName": "caretLink",
        "title": "Why are we asking?",
        "action": {
          "actionType": "openPage",
          "pageType": "learnMorePronouns"
        }
      }
    },
    "stack": {
      "moleculeName": "stack",
      "molecules": [
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "textField",
            "fieldKey": "preferredFirstName",
            "type": "text",
            "errorMessage": "Please enter a valid first name.",
            "titleLabel": {
                "moleculeName": "label",
                "text": "Preferred First Name Optional",
                "attributes": [
                  {
                    "type": "color",
                    "location": 21,
                    "length": 8,
                    "textColor": "#747676"
                  }
                ]
            },
            "feedbackLabel": {
                "moleculeName": "label",
                "text": "This will replace greeting name if you have one.",
                "textColor": "#747676"
            }
          }
        },
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "textField",
            "fieldKey": "preferredLastName",
            "type": "text",
            "text": "",
            "errorMessage": "Please enter a valid last name.",
            "titleLabel": {
                "moleculeName": "label",
                "text": "Preferred Last Name Optional",
                "attributes": [
                  {
                    "type": "color",
                    "location": 20,
                    "length": 8,
                    "textColor": "#747676"
                  }
                ]
            }
          }
        },
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "dropDown",
            "fieldKey": "pronoun",
            "accessibilityIdentifier": "pronounDropdown",
            "options": [
              "",
              "He, Him, His",
              "She, Her, Hers",
              "They, Them, Theirs",
              "None of these"
            ],
            "titleLabel": {
                "moleculeName": "label",
                "text": "Pronouns Optional",
                "attributes": [
                  {
                    "type": "color",
                    "location": 9,
                    "length": 8,
                    "textColor": "#747676"
                  }
                ]
            }
            ,
            "errorMessage": "Please select a pronoun"
          }
        },
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "textField",
            "fieldKey": "greetingName",
            "type": "text",
            "text": "",
            "title": "Greeting name",
            "errorMessage": "Please enter a valid greeting name."
          }
        },
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "emailVerifyField",
            "email": "",
            "emailField": {
              "text": "",
              "fieldKey": "emailID",
              "moleculeName": "textField",
              "type": "email",
              "title": "Email",
              "errorMessage": "Please enter a valid email address."
            },
            "bottomMolecule": {
              "moleculeName": "label",
              "attributes": [
                {
                  "length": 6,
                  "type": "action",
                  "location": 0,
                  "action": {
                    "analyticsData": {
                      "vzdl.page.linkName": "Verify",
                      "vzdl.page.pageLinkName": "/mf/Manage Profile|Email Verify"
                    },
                    "actionType": "openPage",
                    "pageType": "verifyEmail"
                  }
                }
              ],
              "text": "Verify"
            }
          }
        },
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "textField",
            "fieldKey": "alternateNo",
            "type": "phone",
            "text": "",
            "title": "Alternate contact number",
            "feedback" : "This is your easiest way to contact you.",
            "errorMessage": "Please enter a valid phone number."
          }
        }
      ]
    },
    "footer": {
      "moleculeName": "footer",
      "molecule": {
        "moleculeName": "twoButtonView",
        "primaryButton": {
          "moleculeName": "button",
          "title": "Update",
          "groupName": "default",
          "action": {
            "actionType": "openPage",
            "pageType": "updateProfile",
            "extraParameters": {
              "from": "none"
            },
            "presentationStyle": "push"
          }
        },
        "secondaryButton": {
          "moleculeName": "button",
          "title": "Cancel",
          "action": {
            "actionType": "back",
            "presentationStyle": "push",
            "pageType": "backButton"
          }
        }
      }
    },
    "formRules": [
      {
        "groupName": "default",
        "rules": [
          {
            "type": "regex",
            "fields": [
              "emailID"
            ],
            "regex": "^[a-zA-Z0-9](\\.?\\_?\\-?[a-zA-Z0-9]){0,}@[a-zA-Z0-9-_]+\\.([a-zA-Z0-9-_]{1,}\\.){0,}[a-zA-Z]{2,}$"
          },
          {
            "regex": "^(\\d{3})[\\s.-]{0,1}(\\d{3})[\\s.-]{0,1}(\\d{4})$",
            "type": "regex",
            "fields": [
              "alternateNo"
            ]
          },
          {
            "type": "allRequired",
            "ruleId": "requiredRule",
            "fields": [
              "greetingName",
              "emailID",
              "alternateNo"
            ]
          }
        ],
        "effects": [
          {
            "type": "enableFormFieldEffect",
            "fieldKey": "preferredLastName",
            "rules": [
              {
                "type": "anyRequired",
                "fields": [
                  "preferredFirstName"
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}
