[
  {
    "id": "enabled",
    "name": "enabled",
    "display_width": null,
    "label": "Enabled",
    "help_text": "You can disable the module, to temporarily hide it.",
    "required": false,
    "locked": false,
    "display": "checkbox",
    "type": "boolean",
    "default": true
  },
  {
    "id": "settings",
    "name": "settings",
    "display_width": null,
    "label": "Module Settings",
    "required": false,
    "locked": false,
    "children": [
      {
        "id": "settings.aa_module_id",
        "name": "aa_module_id",
        "display_width": null,
        "label": "Module ID",
        "help_text": "Optional ID that can be used as a target for anchor links. The ID must be unique (not used elsewhere on the page). Must start with a letter. Cannot contain any special characters except dash ( - ) and underscore ( _ )",
        "required": false,
        "locked": false,
        "validation_regex": "^[a-zA-Z][a-zA-Z0-9-_]*$",
        "placeholder": "my-module-id",
        "allow_new_line": false,
        "show_emoji_picker": false,
        "type": "text"
      },
      {
        "id": "settings.module_spacing_top",
        "name": "module_spacing_top",
        "display_width": null,
        "label": "Module Spacing - Top",
        "help_text": "Control the spacing on the top of the module",
        "required": true,
        "locked": false,
        "display": "select",
        "choices": [
          ["none", "None"],
          ["small", "Small"],
          ["medium", "Medium"],
          ["large", "Large"]
        ],
        "type": "choice",
        "default": "medium"
      },
      {
        "id": "settings.module_spacing_bottom",
        "name": "module_spacing_bottom",
        "display_width": null,
        "label": "Module Spacing - Bottom",
        "help_text": "Control the spacing on the bottom of the module",
        "required": true,
        "locked": false,
        "display": "select",
        "choices": [
          ["none", "None"],
          ["small", "Small"],
          ["medium", "Medium"],
          ["large", "Large"]
        ],
        "type": "choice",
        "default": "medium"
      },
      {
        "id": "settings.background_color",
        "name": "background_color",
        "display_width": null,
        "label": "Background Color",
        "required": true,
        "locked": false,
        "display": "select",
        "choices": [
          ["primary", "Primary"],
          ["secondary", "Secondary"],
          ["complementary", "Complementary"],
          ["complementary-light", "Complementary - Light"],
          ["blue", "Blue"],
          ["blue-light", "Blue - Light"],
          ["blue-dark", "Blue - Dark"],
          ["light", "Light"],
          ["dark", "Dark"],
          ["white", "White"],
          ["none", "None (transparent)"]
        ],
        "type": "choice",
        "default": "none"
      }
    ],
    "tab": "CONTENT",
    "expanded": false,
    "type": "group",
    "default": {
      "module_spacing_top": "medium",
      "module_spacing_bottom": "medium",
      "background_color": "none",
      "skew_background_color": "none"
    }
  },
  {
    "id": "heading",
    "name": "heading",
    "display_width": null,
    "label": "Heading",
    "inline_help_text": "To insert a line break, write &lt;br&gt; where you want the line to break.",
    "required": false,
    "locked": false,
    "validation_regex": "",
    "allow_new_line": false,
    "show_emoji_picker": false,
    "type": "text"
  },
  {
    "id": "blogs",
    "name": "blogs",
    "display_width": null,
    "label": "Blogs",
    "help_text": "",
    "inline_help_text": "",
    "required": false,
    "locked": false,
    "occurrence": {
      "min": null,
      "max": null,
      "sorting_label_field": "blog_label"
    },
    "children": [
      {
        "id": "blog_label",
        "name": "blog_label",
        "display_width": null,
        "label": "Label",
        "help_text": "",
        "inline_help_text": "The label is used in the Content Hub filter.",
        "required": false,
        "locked": false,
        "validation_regex": "",
        "placeholder": "",
        "allow_new_line": false,
        "show_emoji_picker": false,
        "type": "text"
      },
      {
        "id": "blog",
        "name": "blog",
        "display_width": null,
        "label": "Select a blog",
        "help_text": "",
        "inline_help_text": "",
        "required": false,
        "locked": false,
        "placeholder": "",
        "type": "blog"
      },
      {
        "id": "blogs.post_count",
        "name": "post_count",
        "display_width": null,
        "label": "Max number of posts to show",
        "help_text": "",
        "inline_help_text": "For best results, set post count to a number that is divisible by 3 (e.g. 3, 6 , 9, 12 etc.). If you intend to enable the 'Subscribe CTA' below, make sure to set the post count to 1 less post so the 'Subscribe CTA' fits nicely into the cards grid.",
        "required": false,
        "locked": false,
        "display": "text",
        "max": 21,
        "step": 1,
        "type": "number"
      },
      {
        "id": "blogs.filter_by_tag",
        "name": "filter_by_tag",
        "display_width": null,
        "label": "Filter blog posts by a blog tag",
        "help_text": "",
        "inline_help_text": "",
        "required": false,
        "locked": false,
        "display": "checkbox",
        "type": "boolean",
        "default": false
      },
      {
        "id": "blogs.tag",
        "name": "tag",
        "display_width": null,
        "label": "Select blog tag",
        "help_text": "",
        "inline_help_text": "",
        "required": false,
        "locked": false,
        "visibility": {
          "controlling_field": "blogs.filter_by_tag",
          "controlling_value_regex": "true",
          "operator": "EQUAL",
          "access": null,
          "hidden_subfields": null
        },
        "placeholder": "",
        "tag_value": "SLUG",
        "type": "tag"
      },
      {
        "id": "blogs.button_text",
        "name": "button_text",
        "display_width": null,
        "label": "'All posts' button text",
        "help_text": "",
        "inline_help_text": "",
        "required": false,
        "locked": false,
        "validation_regex": "",
        "placeholder": "",
        "allow_new_line": false,
        "show_emoji_picker": false,
        "type": "text",
        "default": "See all articles"
      },
      {
        "id": "blogs.enable_cta",
        "name": "enable_cta",
        "display_width": null,
        "label": "Enable 'Subscribe CTA'",
        "help_text": "",
        "inline_help_text": "Toggle this on and select a form to show the 'Subscribe CTA' card with a subscription form. The CTA card will place itself as the 3rd card in the grid, but it will not replace a blog post. If you enable this, you may need to adjust the blog post count setting above to achieve the desired layout.",
        "required": false,
        "locked": false,
        "display": "checkbox",
        "type": "boolean",
        "default": true
      },
      {
        "id": "blogs.cta",
        "name": "cta",
        "display_width": null,
        "label": "Subscribe CTA",
        "required": false,
        "locked": false,
        "visibility": {
          "controlling_field": "blogs.enable_cta",
          "controlling_value_regex": "true",
          "operator": "EQUAL",
          "access": null,
          "hidden_subfields": null
        },
        "display": "accordion",
        "children": [
          {
            "id": "blogs.cta_heading",
            "name": "cta_heading",
            "display_width": null,
            "label": "CTA heading",
            "help_text": "",
            "inline_help_text": "",
            "required": false,
            "locked": false,
            "validation_regex": "",
            "placeholder": "Sign up for our newsletter",
            "allow_new_line": false,
            "show_emoji_picker": false,
            "type": "text",
            "default": "Sign up for our newsletter"
          },
          {
            "id": "blogs.cta_subheading",
            "name": "cta_subheading",
            "display_width": null,
            "label": "CTA subheading",
            "help_text": "",
            "inline_help_text": "",
            "required": false,
            "locked": false,
            "validation_regex": "",
            "placeholder": "Want to be in the loop?",
            "allow_new_line": false,
            "show_emoji_picker": false,
            "type": "text",
            "default": "Want to be in the loop?"
          },
          {
            "id": "blogs.cta_button_text",
            "name": "cta_button_text",
            "display_width": null,
            "label": "CTA button text",
            "help_text": "",
            "inline_help_text": "",
            "required": false,
            "locked": false,
            "validation_regex": "",
            "placeholder": "Sign up now",
            "allow_new_line": false,
            "show_emoji_picker": false,
            "type": "text",
            "default": "Sign up now"
          },
          {
            "id": "blogs.cta_form",
            "name": "cta_form",
            "display_width": null,
            "label": "Form",
            "help_text": "",
            "inline_help_text": "",
            "required": false,
            "locked": false,
            "type": "form",
            "default": {
              "response_type": "inline",
              "message": "Thanks for submitting the form."
            }
          }
        ],
        "tab": "CONTENT",
        "expanded": false,
        "type": "group",
        "default": {
          "cta_heading": "Sign up for our newsletter",
          "cta_subheading": "Want to be in the loop?",
          "cta_button_text": "Sign up now",
          "cta_form": {
            "response_type": "inline",
            "message": "Thanks for submitting the form."
          }
        }
      }
    ],
    "tab": "CONTENT",
    "expanded": true,
    "type": "group"
  },
  {
    "id": "custom_content",
    "name": "custom_content",
    "display_width": null,
    "label": "Other content",
    "required": false,
    "locked": false,
    "occurrence": {
      "min": null,
      "max": null,
      "sorting_label_field": "custom_content_label",
      "default": 3
    },
    "children": [
      {
        "id": "custom_content_label",
        "name": "custom_content_label",
        "display_width": null,
        "label": "Label",
        "help_text": "",
        "inline_help_text": "The label is used in the Content Hub filter.",
        "required": false,
        "locked": false,
        "validation_regex": "",
        "placeholder": "",
        "allow_new_line": false,
        "show_emoji_picker": false,
        "type": "text"
      },
      {
        "id": "hubdbtable",
        "name": "hubdbtable",
        "display_width": null,
        "label": "Select HubDB tables",
        "required": false,
        "locked": false,
        "type": "hubdbtable",
    		"occurrence": {}
      },
      {
        "id": "custom_content.filter_by_tag",
        "name": "filter_by_tag",
        "display_width": null,
        "label": "Filter content by Content Tags",
        "required": false,
        "locked": false,
        "display": "checkbox",
        "type": "boolean",
        "default": false
      },
      {
        "id": "custom_content.post_count",
        "name": "post_count",
        "display_width": null,
        "label": "Max number of content to show",
        "help_text": "",
        "inline_help_text": "For best results, set content count to a number that is divisible by 3 (e.g. 3, 6 , 9, 12 etc.).",
        "required": false,
        "locked": false,
        "display": "text",
        "max": 21,
        "step": 1,
        "type": "number",
        "default": 9
      },
      {
        "name": "tags",
        "label": "Select Content Tags",
        "visibility": {
          "controlling_field": "custom_content.filter_by_tag",
          "controlling_value_regex": "true",
          "operator": "EQUAL"
        },
        "table_name_or_id": "content_tags",
        "columns_to_fetch": [],
        "display_columns": ["en", "da", "fi", "no", "sv"],
        "display_format": "%0",
        "type": "hubdbrow",
    		"occurrence": {}
      },
      {
        "id": "custom_content.button_text",
        "name": "button_text",
        "display_width": null,
        "label": "'Load more' button text",
        "help_text": "",
        "inline_help_text": "",
        "required": false,
        "locked": false,
        "validation_regex": "",
        "placeholder": "",
        "allow_new_line": false,
        "show_emoji_picker": false,
        "type": "text",
        "default": "Load more posts"
      }
    ],
    "tab": "CONTENT",
    "expanded": false,
    "type": "group"
  },
  {
    "id": "no_scaling",
    "name": "no_scaling",
    "display_width": null,
    "label": "Don't scale images to fit image container",
    "required": false,
    "locked": false,
    "display": "checkbox",
    "type": "boolean",
    "default": false
  }
]