{
  "business-account-section": {
    "create-account": {
      "title": "Create a Business Account",
      "description": "View account members’ order histories and share Click & Collect PINS",
      "actions": [
        {
          "name": "Create Business Account",
          "url": "page_create-account-hub.html"
        },
        {
          "name": "Terms & Conditions",
          "url": "https://www.wickes.co.uk/termsAndConditions",
          "new-tab": true
        }
      ],
      "notification": {
        "classModifier": "notification_success",
        "text": "You have now left the Account Hub ‘Joe Bloggs Builders’. You will receive email confirmation shortly.",
        "success": true
      }
    },
    "account-created": {
      "title": "Business Account",
      "description": "View account members’ order histories and share Click & Collect PINS",
      "actions": [
        {
          "name": "View Account Hub",
          "url": "page_empty-account-hub.html"
        },
        {
          "name": "Edit Account Hub",
          "url": "page_edit-account-hub.html"
        },
        {
          "name": "Delete Account Hub",
          "toggle-modal": true,
          "target": "#delete-account"
        },
        {
          "name": "Terms & Conditions",
          "url": "https://www.wickes.co.uk/termsAndConditions",
          "new-tab": true
        }
      ],
      "remove-account-modal": {
        "form-required": true,
        "header": "Delete Account Hub?",
        "description": "<span class='strong'>This action cannot be undone.</span> You will no longer be able to view members' order histories",
        "actions": {
          "mod": "actions",
          "buttons": [
            {
              "title": "Cancel",
              "isSecondary": true,
              "close-modal": true
            },
            {
              "title": "Delete Account",
              "isPrimary": true
            }
          ]
        }
      }
    },
    "account-member": {
      "title": "Business Account: <span class='table__content-name'>Joe Bloggs Builder</span>",
      "description": "View account members’ order histories and share Click & Collect PINS",
        "notification": {
        "classModifier": "notification_success",
        "text": "You have joined the Account Hub ‘Joe Bloggs Builders’. You will receive email confirmation shortly.",
        "success": true
      },
      "actions": [
        {
          "name": "View Account Hub",
          "url": "page_empty-account-hub.html"
        },
        {
          "name": "Leave Account Hub",
          "toggle-modal": true,
          "target": "#leave-account"
        },
        {
          "name": "Terms & Conditions",
          "url": "https://www.wickes.co.uk/termsAndConditions",
          "new-tab": true
        }
      ],
      "leave-account-modal": {
        "form-required": true,
        "header": "Leave Account Hub?",
        "description": "<span class='strong'>This action cannot be undone.</span> You will no longer be a member of this Account Hub and won't be able to view other members' order histories",
        "actions": {
          "mod": "actions",
          "buttons": [
            {
              "title": "Cancel",
              "isSecondary": true,
              "close-modal": true
            },
            {
              "title": "Leave Account Hub",
              "isPrimary": true
            }
          ]
        }
      }
    },
    "account-invite": {
      "title": "Business Account invite: <span class='table__content-name'>Joe Bloggs Builder</span>",
      "description": "You have been invited to join a Business Account hub. <br> You will be asked if you have read & agree to the Terms & Conditions when you click 'Accept invite'",
      "actions": [
        {
          "name": "Accept invite",
          "toggle-modal": true,
          "target": "#terms-condition"
        },
        {
          "name": "Decline invite",
          "toggle-modal": true,
          "target": "#leave-account"
        },
        {
          "name": "Terms & Conditions",
          "url": "https://www.wickes.co.uk/termsAndConditions",
          "new-tab": true
        }
      ],
      "terms-condition-modal": {
        "form-required": true,
        "header": "Terms & Conditions",
        "description": "By clicking ‘Accept’, you are agreeing to our <a target='_blank' href='https://www.wickes.co.uk/termsAndConditions'>Business Account Terms & Conditions</a> and accepting the invite to join the Account Hub",
        "actions": {
          "mod": "actions",
          "buttons": [
            {
              "title": "Cancel",
              "isSecondary": true,
              "close-modal": true
            },
            {
              "title": "Accept",
              "isPrimary": true
            }
          ]
        }
      }
    }
  },
  "create-account-form": {
    "notification": {
      "text": "Please correct the errors below.",
      "error": true
    },
    "required-field": "Required fields",
    "sections": [
      {
        "fields": [
          {
            "id": "business-name",
            "label": "Business Name",
            "required": true,
            "value": "Joe Bloggs Buldders"
          }
        ]
      },
      {
        "title": "Business details",
        "postcode-lookup": true
      },
      {
        "title": "Contact details",
        "fields": [
          {
            "id": "email",
            "label": "Email",
            "required": false,
            "read-only": true,
            "type": "email",
            "value": "joe.bloggs@wickes.co.uk"
          },
          {
            "id": "mobile-telephone",
            "label": "Mobile telephone",
            "required": true,
            "type": "tel",
            "value": "07770 111111"
          },
          {
            "id": "business-phone",
            "label": "Business Phone",
            "type": "tel"
          }
        ]
      }
    ],
    "actions": {
      "mod": "account-form__actions",
      "buttons": [
        {
          "title": "Submit Business Account Creation",
          "isPrimary": true,
          "mod": "btn-submit"
        },
        {
          "url": "page_my-account-create-account-hub.html",
          "mod": "btn-cancel-change",
          "title": "Cancel",
          "isSecondary": true
        }
      ]
    },
    "leave-popup": {
      "header": "Leave page?",
      "description": "Data you have entered on this page will not be saved",
      "actions": {
        "mod": "actions",
        "buttons": [
          {
            "title": "Cancel",
            "isSecondary": true,
            "close-modal": true
          },
          {
            "mod": "btn-confirm-leave",
            "title": "Leave",
            "isPrimary": true,
            "url": "page_my-account-create-account-hub.html"
          }
        ]
      }
    }
  },
  "empty-account-hub": {
    "header": "Joe Bloggs Builders",
    "description": "You don't have any Business Account members yet!",
    "url-edit": "page_edit-account-hub.html",
    "url-add": "page_add-members.html"
  },
  "account-hub": {
    "header": "Joe Bloggs Builders",
    "notification": {
      "text": "Member(s) successfully removed. Email confirmation will be sent shortly",
      "success": true
    },
    "admin-members": [
      {
        "id": "loremipsumdolorsitamet@email.com",
        "name": "LoremipsumdolorsitametconsecteturadipiscingelitLoremipsumdolorsitametconsecteturadipiscingelit",
        "email": "LoremipsumdolorsitametLoremipsumdolorsitametconsecteturadipiscingelit@email.com",
        "date": "16/12/2022",
        "order-history-url": "page_tradePro_order-history.html"
      }
    ],
    "members-list": [
      {
        "id": "fred.mann@email.com",
        "name": "Fred Mann",
        "email": "fred.mann@email.com",
        "date": "16/12/2022",
        "order-history-url": "page_tradePro_order-history.html"
      },
      {
        "id": "fred.mann2@email.com",
        "name": "Fred Mann",
        "email": "fred.mann2@email.com",
        "date": "16/12/2022",
        "order-history-url": "page_tradePro_order-history.html",
        "label": "Pending"
      },
      {
        "id": "fred.mann3@email.com",
        "name": "Fred Mann",
        "email": "fred.mann3@email.com",
        "date": "16/12/2022",
        "order-history-url": "page_tradePro_order-history.html",
        "status": "PENDING",
        "card-label": "Pending"
      },
      {
        "id": "fred.mann4@email.com",
        "name": "Fred Mann",
        "email": "fred.mann4@email.com",
        "date": "16/12/2022",
        "order-history-url": "page_tradePro_order-history.html"
      }
    ],
    "actions": {
      "mod": "account-hub__remove",
      "buttons": [
        {
          "mod": "btn-cancel-remove",
          "title": "Cancel",
          "isSecondary": true,
          "url": "page_account-hub.html"
        },
        {
          "mod": "btn-remove",
          "title": "Remove member(s)",
          "isPrimary": true,
          "toggle-modal": true,
          "target": "#confirm-member-removing"
        }
      ]
    },
    "remove-account-modal-confirmation": {
      "header": "Are you sure?",
      "description": "By clicking 'yes', you will remove the selected member(s) from your Business Account. <span class='strong'>This action cannot be undone.</span> ",
      "actions": {
        "mod": "actions",
        "buttons": [
          {
            "title": "No",
            "isSecondary": true,
            "close-modal": true
          },
          {
            "title": "Yes",
            "isPrimary": true,
            "url": "page_account-hub.html"
          }
        ]
      }
    },
    "leave-popup": {
      "header": "Leave page?",
      "description": "Data you have entered on this page will not be saved",
      "actions": {
        "mod": "actions",
        "buttons": [
          {
            "title": "Cancel",
            "isSecondary": true,
            "close-modal": true
          },
          {
            "mod": "btn-confirm-leave",
            "title": "Leave",
            "isPrimary": true,
            "url": "page_account-hub.html"
          }
        ]
      }
    }
  },
  "add-members": {
    "add-members-form": {
      "field-id": "tp-email",
      "field-label": "TradePro Email",
      "button-text": "Add to new member list",
      "error-message": "Please enter a valid TradePro email"
    },
    "new-member-list": {
      "title": "New member list"
    },
    "actions": {
      "mod": "add-members__actions",
      "buttons": [
        {
          "mod": "btn-submit-request",
          "title": "Submit new member request(s)",
          "isPrimary": true
        },
        {
          "mod": "btn-cancel-adding",
          "title": "Cancel",
          "url": "page_account-hub.html",
          "isSecondary": true
        }
      ]
    },
    "leave-popup": {
      "header": "Leave page?",
      "description": "Data you have entered on this page will not be saved",
      "actions": {
        "mod": "actions",
        "buttons": [
          {
            "title": "Cancel",
            "isSecondary": true,
            "close-modal": true
          },
          {
            "mod": "btn-confirm-leave",
            "title": "Leave",
            "isPrimary": true,
            "url": "page_account-hub.html"
          }
        ]
      }
    }
  },
  "edit-account-form": {
    "notification": {
      "text": "Please correct the errors below.",
      "error": true
    },
    "top-action": {
      "mod": "account-form__top-action",
      "buttons": [
        {
          "title": "Delete Account Hub",
          "isSecondary": true,
          "toggle-modal": true,
          "target": "#delete-account"
        }
      ]
    },
    "sections": [
      {
        "title": "Business details",
        "postcode-lookup": true,
        "fields": [
          {
            "id": "business-name",
            "label": "Business Name",
            "required": true,
            "value": "Joe Bloggs Builders"
          }
        ]
      },
      {
        "title": "Contact details",
        "fields": [
          {
            "id": "email",
            "label": "Email",
            "required": false,
            "read-only": true,
            "type": "email",
            "value": "joe.bloggs@wickes.co.uk"
          },
          {
            "id": "mobile-telephone",
            "label": "Mobile telephone",
            "required": true,
            "type": "tel",
            "value": "07770 111111"
          },
          {
            "id": "business-phone",
            "label": "Business Phone",
            "type": "tel"
          }
        ]
      }
    ],
    "actions": {
      "mod": "account-form__actions",
      "buttons": [
        {
          "title": "Save changes",
          "isPrimary": true,
          "mod": "btn-submit"
        },
        {
          "url": "page_account-hub.html",
          "mod": "btn-cancel-change",
          "title": "Cancel",
          "isSecondary": true
        }
      ]
    },
    "leave-popup": {
      "header": "Leave page?",
      "description": "Data you have entered on this page will not be saved",
      "actions": {
        "mod": "actions",
        "buttons": [
          {
            "title": "Cancel",
            "isSecondary": true,
            "close-modal": true
          },
          {
            "mod": "btn-confirm-leave",
            "title": "Leave",
            "isPrimary": true,
            "url": "page_account-hub.html"
          }
        ]
      }
    },
    "remove-account-modal": {
      "form-required": true,
      "header": "Delete Account Hub?",
      "description": "<span class='strong'>This action cannot be undone.</span> You will no longer be able to view members' order histories",
      "actions": {
        "mod": "actions",
        "buttons": [
          {
            "title": "Cancel",
            "isSecondary": true,
            "close-modal": true
          },
          {
            "title": "Delete Account",
            "mod": "btn-delete",
            "isPrimary": true
          }
        ]
      }
    }
  }
}
