/********************************************************
+*   (c) Mojang. All rights reserved                       *
+*   (c) Microsoft. All rights reserved.                   *
+*********************************************************/

{
  "namespace": "realms_whitelist",

  //---------------------------------------------------------------------------
  // Vertical Stack Panel
  //---------------------------------------------------------------------------
  "spacing_gap": {
    "type": "panel",
    "size": [ "100%", 5 ]
  },

  "friends_containing_panel": {
    "type": "panel",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "friends_panel@realms_whitelist.friends_panel": {}
      }
    ]
  },

  "friends_panel": {
    "type": "stack_panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "orientation": "vertical",
    "size": "$friend_panel_size",
    "$member_collection_name": "members_collection",
    "$invited_collection_name": "invited_friends_collection",
    "$uninvited_collection_name": "uninvited_friends_collection",
    "$blocked_players_collection_name": "blocked_players_collection",
    "offset": [ 0, 0 ],
    "controls": [
      {
        "add_friends_and_invite_link_panel@realms_whitelist.add_friends_and_invite_link_panel": {}
      },
      {
        "option_dropdown_permissions@settings_common.option_dropdown": {
          "$option_label": "permissions.title.settings",
          "$dropdown_content": "permissions.permission_level_dropdown_content",
          "$dropdown_area": "friends_panel",
          "$dropdown_name": "realm_default_permission_dropdown",
          "$button_type_panel": "permissions.permission_level_dropdown_state_content",
          "$options_dropdown_toggle_label_binding": "#realm_default_permission_dropdown_toggle_label",
          "$option_enabled_binding_name": "#realm_default_permission_dropdown_enabled",
          "$show_option_label": true,
          "$is_world_settings": true,
          "$dropdown_scroll_content_size": [ "100%", "385%" ],
          "size": [ "100%", "50px" ],
          "bindings": [
            {
              "binding_name": "#permission_dropdown_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      { "player_filter_label@realms_whitelist.player_filter_label": {} },
      { "player_filter_text_box@realms_whitelist.player_filter_text_box": {} },
      {
        "spacing_gap_members_top@realms_whitelist.spacing_gap": {}
      },
      { "members_label@realms_whitelist.members_label": {} },
      { "members_grid@realms_whitelist.members_grid": {} },
      {
        "spacing_gap_members_bottom@realms_whitelist.spacing_gap": {}
      },
      {
        "members_page_panel@realms_whitelist.page_panel": {
          "$next_button_name": "next_page_button_members",
          "$prev_button_name": "prev_page_button_members",
          "$this_page_index_text": "#members_page_index_text",
          "$is_visible_binding_name": "#members_buttons_visible",
          "$is_prev_visible": "#members_prevButton_visible",
          "$is_next_visible": "#members_nextButton_visible"
        }
      },
      { "invited_friends_label@realms_whitelist.invited_friends_label": {} },
      { "invited_friends_grid@realms_whitelist.invited_friends_grid": {} },
      {
        "spacing_gap_invited_friends@realms_whitelist.spacing_gap": {}
      },
      {
        "invited_friends_page_panel@realms_whitelist.page_panel": {
          "$next_button_name": "next_page_button_invited_friends",
          "$prev_button_name": "prev_page_button_invited_friends",
          "$this_page_index_text": "#invited_friends_page_index_text",
          "$is_visible_binding_name": "#invited_friends_buttons_visible",
          "$is_prev_visible": "#invited_friends_prevButton_visible",
          "$is_next_visible": "#invited_friends_nextButton_visible"
        }
      },
      { "uninvited_friends_label@realms_whitelist.uninvited_friends_label": {} },
      { "uninvited_friends_grid@realms_whitelist.uninvited_friends_grid": {} },
      {
        "spacing_gap_uninvited_friends@realms_whitelist.spacing_gap": {}
      },
      {
        "uninvited_friends_page_panel@realms_whitelist.page_panel": {
          "$next_button_name": "next_page_button_uninvited_friends",
          "$prev_button_name": "prev_page_button_uninvited_friends",
          "$this_page_index_text": "#uninvited_friends_page_index_text",
          "$is_visible_binding_name": "#uninvited_friends_buttons_visible",
          "$is_prev_visible": "#uninvited_friends_prevButton_visible",
          "$is_next_visible": "#uninvited_friends_nextButton_visible"
        }
      },
      { "blocked_players_label@blocked_players_label": {} },
      { "blocked_players_grid@blocked_players_grid": {} },
      {
        "spacing_gap_blocked_players@realms_whitelist.spacing_gap": {}
      },
      {
        "blocked_players_page_panel@realms_whitelist.page_panel": {
          "$next_button_name": "next_page_button_blocked_players",
          "$prev_button_name": "prev_page_button_blocked_players",
          "$this_page_index_text": "#blocked_players_page_index_text",
          "$is_visible_binding_name": "#blocked_players_buttons_visible",
          "$is_prev_visible": "#blocked_players_prevButton_visible",
          "$is_next_visible": "#blocked_players_nextButton_visible"
        }
      },
      { "no_invites_label@realms_whitelist.no_invites_label": {} },
      { "loading_friends@realms_whitelist.loading_friends": {} }
    ]
  },

  "add_friends_and_invite_link_panel": {
    "type": "panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ "100%", 40 ],
    "controls": [
      {
        "whitelist_stack_panel": {
          "type": "stack_panel",
          "size": [ "100%", "100%" ],
          "orientation": "horizontal",
          "controls": [

            {
              "find_friends_button_panel@realms_whitelist.find_friends_button_panel": {
                "ignored": "(not $supports_add_friend)"
              }
            },
            {
              "spacing": {
                "type": "panel",
                "size": [ 2, "100%" ]
              }
            },
            {
              "share_by_link_button_panel@realms_whitelist.share_by_link_button_panel": {}
            },
            {
              "spacing2": {
                "type": "panel",
                "size": [ 1, "100%" ]
              }
            },
            {
              "options_panel": {
                "type": "panel",
                "size": [ 32, 32 ],
                "controls": [
                  {
                    "options_button@common_buttons.light_content_button": {
                      "$button_content": "realms_whitelist.options_icon",
                      "$pressed_button_name": "button.member_list_options",
                      "anchor_to": "center",
                      "anchor_from": "center",
                      "size": [ 30, 30 ]
                    }
                  }
                ],
                "bindings": [
                  {
                    "binding_name": "#options_visible",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },

  "options_icon": {
    "type": "image",
    "layer": 0,
    "texture": "textures/ui/more-dots",
    "color": "black",
    "size": [ 11, 11 ]
  },

  "find_friends_button_panel": {
    "type": "panel",
    "size": [ "fill", 32 ],
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "controls": [
      { "find_friends_button@find_friends_button": {} }
    ]
  },

  "share_by_link_button_panel": {
    "type": "panel",
    "size": [ "fill", 32 ],
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "controls": [
      {
        "share_by_link_button@realms_whitelist.share_by_link_button": {}
      }
    ]
  },

  "invited_friends_label": {
    "type": "panel",
    "size": [ "100%", 13 ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "friend_title": {
          "type": "label",
          "color": "$main_header_text_color",
          "offset": [ 1, -1 ],
          "text": "realmsInvitationScreen.invitedFriends",
          "font_size": "normal",
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left",
          "layer": 1
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "#invited_friends_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "player_filter_label": {
    "type": "panel",
    "size": [ "100%", 13 ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "player_filter_title": {
          "type": "label",
          "color": "$main_header_text_color",
          "offset": [ 1, -1 ],
          "text": "realmsInvitationScreen.playerFilterTitle",
          "font_size": "normal",
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left",
          "layer": 1
        }
      }
    ]
  },

  "members_label": {
    "type": "stack_panel",
    "size": [ "100%", 13 ],
    "orientation": "horizontal",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "friend_title": {
          "type": "label",
          "color": "$main_header_text_color",
          "offset": [ 1, -1 ],
          "text": "realmsInvitationScreen.members",
          "font_size": "normal",
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left",
          "layer": 1
        }
      },
      {
        "padding_panel": {
          "type": "panel",
          "size": [ "fill", "100%" ]
        }
      },
      {
        "loading_text": {
          "type": "label",
          "color": "$main_header_text_color",
          "offset": [ 1, -1 ],
          "text": "#member_loading_text",
          "font_size": "normal",
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right",
          "layer": 1,
          "bindings": [
            {
              "binding_name": "#member_loading_text",
              "binding_type": "global"
            }
          ]
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "#members_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "blocked_players_label": {
    "type": "panel",
    "size": [ "100%", 11 ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "friend_title": {
          "type": "label",
          "offset": [ 1, -1 ],
          "color": "$main_header_text_color",
          "text": "realmsInvitationScreen.blocked",
          "font_size": "normal",
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left",
          "layer": 1
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "#blocked_players_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "members_grid": {
    "type": "grid",
    "size": [ "100%", "default" ],
    "grid_item_template": "realms_whitelist.gamer_grid_item",
    "grid_dimension_binding": "#members_grid_dimension",
    "$collection_binding_name": "members_collection",
    "collection_name": "members_collection",
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "bindings": [
      {
        "binding_name": "#members_grid_dimension"
      }
    ]
  },

  "invited_friends_grid": {
    "type": "grid",
    "size": [ "100%", "default" ],
    "grid_item_template": "realms_whitelist.gamer_grid_item",
    "grid_dimension_binding": "#invited_friends_grid_dimension",
    "$collection_binding_name": "invited_friends_collection",
    "collection_name": "invited_friends_collection",
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "bindings": [
      {
        "binding_name": "#invited_friends_grid_dimension"
      }
    ]
  },

  "uninvited_friends_label": {
    "type": "panel",
    "size": [ "100%", 11 ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "friend_title": {
          "type": "label",
          "color": "$main_header_text_color",
          "offset": [ 1, -1 ],
          "text": "realmsInvitationScreen.friends",
          "font_size": "normal",
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left",
          "layer": 1
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "#uninvited_friends_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "uninvited_friends_grid": {
    "type": "grid",
    "size": [ "100%", "default" ],
    "grid_item_template": "realms_whitelist.gamer_grid_item",
    "grid_dimension_binding": "#uninvited_friends_grid_dimension",
    "$collection_binding_name": "uninvited_friends_collection",
    "collection_name": "uninvited_friends_collection",
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "bindings": [
      {
        "binding_name": "#uninvited_friends_grid_dimension"
      }
    ]
  },

  "blocked_players_grid": {
    "type": "grid",
    "size": [ "100%", "default" ],
    "grid_item_template": "realms_whitelist.blocked_grid_item",
    "grid_dimension_binding": "#blocked_players_grid_dimension",
    "$collection_binding_name": "blocked_players_collection",
    "collection_name": "blocked_players_collection",
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "bindings": [
      {
        "binding_name": "#blocked_players_grid_dimension"
      }
    ]
  },

  "no_invites_label@realms_whitelist.panel_text": {
    "text": "realmsInvitationScreen.noInvites",
    "size": [ "100%", 20 ],
    "font_size": "normal",
    "anchor_from": "center",
    "anchor_to": "center",
    "bindings": [
      {
        "binding_name": "#no_invites_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "loading_friends@realms_whitelist.panel_text": {
    "text": "realmsInvitationScreen.loadingFriends",
    "size": [ "100%", 20 ],
    "font_size": "normal",
    "anchor_from": "center",
    "anchor_to": "center",
    "bindings": [
      {
        "binding_name": "#loading_friends",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  //---------------------------------------------------------------------------
  // Gamertag Panel
  //---------------------------------------------------------------------------
  "gamer_grid_item": {
    "type": "panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ "100%", 29 ],
    "controls": [
      {
        "gamer_panel@realms_whitelist.gamer_panel": {}
      }
    ]
  },

  "blocked_grid_item": {
    "type": "panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ "100%", 29 ],
    "controls": [
      {
        "blocked_panel@realms_whitelist.blocked_panel": {}
      }
    ]
  },

  "gamer_panel@realms_common.main_banner": {
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ "100%", 27 ],
    "controls": [
      { "gamer_stack_panel@realms_whitelist.gamer_stack_panel": {} },
      {
        "right_controls_panel@realms_whitelist.right_controls_panel": {
          "offset": [ -3, 0 ], // Right aligned
          "layer": 6
        }
      },
      {
        "progress@progress.progress_loading_bars": {
          "size": [ 27, 27 ],
          "bindings": [
            {
              "binding_type": "view",
              "source_control_name": "gamertag_image",
              "resolve_sibling_scope": true,
              "source_property_name": "(#texture = '')",
              "target_property_name": "#visible"
            }
          ]
        }
      }
    ]
  },

  "blocked_panel@realms_common.main_banner": {
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ "100%", 27 ],
    "controls": [
      { "gamer_stack_panel@realms_whitelist.gamer_stack_panel": {} },
      {
        "unblock_button@unblock_button": {
          "offset": [ -3, 0 ]
        }
      }
    ]
  },

  "gamer_stack_panel": {
    "type": "stack_panel",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "orientation": "horizontal",
    "size": [ "100%c", "100% - 6px" ], // Y sizing = -2 for top and bottom black border, -4 for indent of 2 px top and bottom, should total 20
    "layer": 6,
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "gamertag_image",
        "resolve_sibling_scope": true,
        "source_property_name": "(not (#texture = ''))",
        "target_property_name": "#visible"
      }
    ],
    "controls": [
      {
        "spacing1@realms_whitelist.horizontal_indent": {
          "size": [ 3, 0 ]
        }
      },
      {
        "player_status_panel@realms_whitelist.player_status_panel": {
        }
      },
      {
        "spacing2@realms_whitelist.horizontal_indent": {}
      },
      {
        "gamerpic_panel@realms_whitelist.gamerpic_panel": {
        }
      },
      {
        "spacing3@realms_whitelist.horizontal_indent": {
          "size": [ 1, 0 ]
        }
      },
      {
        "gamertag_label_panel@realms_whitelist.gamertag_label_panel": {
        }
      }
    ]
  },

  "horizontal_indent": {
    "type": "panel",
    "size": [ 2, "100%" ]
  },

  "vertical_indent": {
    "type": "panel",
    "size": [ "100%", 2 ]
  },

  "gamerpic_panel": {
    "type": "panel",
    "size": [ 21, 21 ],
    "anchor_to": "left_middle",
    "anchor_from": "left_middle",
    "controls": [
      { "black_border@realms_whitelist.black_border": {} },
      {
        "gamertag_image@realms_whitelist.gamertag_image": {
          "layer": 1,
          "size": [ "100% - 2px", "100% - 2px" ]
        }
      }
    ]
  },

  "gamertag_label_panel": {
    "type": "panel",
    "anchor_to": "left_middle",
    "anchor_from": "left_middle",
    "size": [ 100, "100%" ],
    "controls": [
      { "gamertag_label@realms_whitelist.gamertag_label": {} },
      { "real_name_label@realms_whitelist.real_name_label": {} }
    ]
  },

  "panel_text": {
    "type": "label",
    "color": "$dark_grid_item_text_color",
    "shadow": false,
    "layer": 5,
    "anchor_from": "top_left",
    "anchor_to": "top_left"
  },

  "gamertag_label@realms_whitelist.panel_text": {
    "offset": [ 1, 1 ],
    "text": "#gamertag",
    "font_size": "normal",
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "bindings": [
      {
        "binding_name": "#gamertag",
        "binding_type": "collection",
        "binding_collection_name": "$collection_binding_name"
      }
    ]
  },

  "real_name_label@realms_whitelist.panel_text": {
    "offset": [ 1, 0 ],
    "text": "#real_name",
    "font_size": "normal",
    "anchor_to": "bottom_left",
    "anchor_from": "bottom_left",
    "bindings": [
      {
        "binding_name": "#real_name",
        "binding_type": "collection",
        "binding_collection_name": "$collection_binding_name"
      }
    ]
  },

  "right_settings_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100%c", 21 ],
    "controls": [
      { "member_settings@realms_whitelist.member_settings": {} },
      {
        "undo_button@realms_whitelist.undo_button": {
          "layer": 4
        }
      }
    ]
  },

  "member_settings": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "ignored": "($collection_binding_name = $uninvited_collection_name)",
    "size": [ "100%c", 21 ],
    "controls": [
      { "minus_button@realms_whitelist.minus_button": {} },
      {
        "horizontal_space": {
          "type": "panel",
          "size": [ 2, 0 ]
        }
      },
      {
        "member_permissions@realms_whitelist.permissions_dropdown": {}
      },
      {
        "op_deop_button@realms_whitelist.op_deop_button": {
          "bindings": [
            {
              "binding_name": "(not #permission_collection_dropdown_visible)",
              "binding_name_override": "#visible",
              "binding_type": "collection",
              "binding_collection_name": "$collection_binding_name"
            }
          ]
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "#show_member_settings",
        "binding_name_override": "#visible",
        "binding_type": "collection",
        "binding_collection_name": "$collection_binding_name"
      }
    ]
  },

  "right_controls_panel": {
    "type": "panel",
    "size": [ "100%c", "100%" ],
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "controls": [
      { "right_settings_panel@realms_whitelist.right_settings_panel": {} },
      {
        "uninvited_friends_invite_button@realms_whitelist.invite_button": {
          "size": [ 62, 21 ]
        }
      }
    ]
  },

  "player_status_panel": {
    "size": [ 20, "100% - 2px" ],
    "type": "panel",
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "controls": [
      {
        "player_online_icon@realms_whitelist.player_online_icon": {
          "bindings": [
            {
              "binding_name": "#player_online",
              "binding_name_override": "#visible",
              "binding_type": "collection",
              "binding_collection_name": "$collection_binding_name"
            }
          ]
        }
      },
      {
        "player_offline_icon@realms_whitelist.player_offline_icon": {
          "bindings": [
            {
              "binding_name": "(not #player_online)",
              "binding_name_override": "#visible",
              "binding_type": "collection",
              "binding_collection_name": "$collection_binding_name"
            }
          ]
        }
      }
    ]
  },

  "permissions_dropdown": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ "100%c", "100%" ],
    "controls": [
      {
        "vertical_space": {
          "type": "panel",
          "size": [ 0, 2 ]
        }
      },
      {
        "option_dropdown_permissions@settings_common.option_dropdown": {
          "$dropdown_content": "permissions.permission_level_dropdown_content",
          "$dropdown_area": "friends_panel",
          "$dropdown_name": "player_permissions_dropdown",
          "$dropdown_icon_image_texture_binding": "#collection_permission_level_dropdown_icon_texture",
          "$anchor_dropdown_content_from": "top_right",
          "$anchor_dropdown_content_to": "top_right",
          "$icon_binding_type_override": "collection",
          "$icon_binding_collection_name_override": "$collection_binding_name",
          "$button_type_panel": "permissions.permission_level_dropdown_state_content",
          "$options_dropdown_toggle_label_binding": "#player_permissions_dropdown_toggle_label",
          "$options_dropdown_toggle_label_binding_type": "collection",
          "$options_dropdown_toggle_label_binding_collection_name": "$collection_binding_name",
          "$toggle_binding_type": "collection",
          "$toggle_grid_collection_name": "$collection_binding_name",
          "$option_enabled_binding_name": "#player_permissions_dropdown_enabled",
          "$content_label_visible": false,
          "$is_world_settings": true,
          "$show_option_label": false,
          "$dropdown_icon_image_size": [ 10, 10 ],
          "$dropdown_scroll_content_size": [ "400%", "600%" ],
          "$content_size": [ "100% - 9px", "100% - 8px" ],
          "size": [ "40px", "100%" ],
          "$option_dropdown_size": [ "100%", "21px" ],
          "bindings": [
            {
              "binding_name": "#permission_collection_dropdown_visible",
              "binding_name_override": "#visible",
              "binding_type": "collection",
              "binding_collection_name": "$collection_binding_name"
            }
          ]
        }
      }
    ]
  },

  //---------------------------------------------------------------------------
  // Buttons
  //---------------------------------------------------------------------------

  "invite_button@common_buttons.light_text_button": {
    "size": [ 21, 21 ],
    "layer": 1,
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "$button_text": "realmsSettingsScreen.whitelist_invite",
    "ignored": "($collection_binding_name = $member_collection_name or $collection_binding_name = $invited_collection_name)",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_plus",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_plus",
        "mapping_type": "focused"
      }
    ],
    "bindings": [
      {
        "binding_type": "collection_details",
        "binding_collection_name": "$collection_binding_name"
      },
      {
        "binding_type": "collection",
        "binding_collection_name": "$collection_binding_name",
        "binding_name": "#invite_button_visible",
        "binding_name_override": "#visible"
      },
      {
        "binding_name": "#members_list_enabled", // a hack: you cannot set "enabled":false directly on a ui control
        "binding_name_override": "#enabled"
      }
    ]
  },

  "minus_button@common_buttons.light_glyph_button": {
    "size": [ 21, 21 ],
    "layer": 2,
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "$button_content": "realms_whitelist.minus_icon",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_minus",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_minus",
        "mapping_type": "focused"
      }
    ],
    "bindings": [
      {
        "binding_type": "collection_details",
        "binding_collection_name": "$collection_binding_name"
      },
      {
        "binding_name": "#members_list_enabled", // a hack: you cannot set "enabled":false directly on a ui control
        "binding_name_override": "#enabled"
      }
    ]
  },

  "unblock_label": {
    "type": "label",
    "color": "$text_color",
    "anchor_from": "center",
    "anchor_to": "center",
    "text": "realmsInvitationScreen.unblock",
    "text_alignment": "center",
    "size": [ "100%", 15 ],
    "offset": [ 0, 2 ]
  },

  "unblock_button@common_buttons.light_content_button": {
    "size": [ 62, 21 ],
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "$button_content": "realms_whitelist.unblock_label",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_unblock",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_unblock",
        "mapping_type": "focused"
      }
    ],
    "bindings": [
      {
        "binding_type": "collection_details",
        "binding_collection_name": "$collection_binding_name"
      },
      {
        "binding_name": "#members_list_enabled", // a hack: you cannot set "enabled":false directly on a ui control
        "binding_name_override": "#enabled"
      }
    ]
  },

  "op_deop_button@common_toggles.light_image_toggle_collection": {
    "size": [ 21, 21 ],
    "layer": 2,
    "ignored": "($collection_binding_name = $uninvited_collection_name)",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "$checked_image": "realms_whitelist.op_icon",
    "$unchecked_image": "realms_whitelist.deop_icon",
    "$toggle_state_binding_name": "#operator",
    "$toggle_name": "#operator",
    "$toggle_binding_type": "collection",
    "$toggle_grid_collection_name": "$collection_binding_name",
    "$toggle_enabled_binding_name": "#members_list_enabled",
    "$toggle_enabled_binding_type": "global"
  },

  "undo_button@common_buttons.light_text_button": {
    "size": [ 60, 21 ],
    "ignored": "($collection_binding_name = $uninvited_collection_name)",
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "$button_text": "realmsInvitationScreen.undo",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_undo",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_undo",
        "mapping_type": "focused"
      }
    ],
    "bindings": [
      {
        "binding_type": "collection_details",
        "binding_collection_name": "$collection_binding_name"
      },
      {
        "binding_name": "#undo_action_visible",
        "binding_name_override": "#visible",
        "binding_type": "collection",
        "binding_collection_name": "$collection_binding_name"
      },
      {
        "binding_name": "#members_list_enabled", // a hack: you cannot set "enabled":false directly on a ui control
        "binding_name_override": "#enabled"
      }
    ]
  },

  "find_friends_button@common_buttons.light_text_button": {
    "ignored": "($apple_tv)",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "size": [ "100%", 30 ],
    "layer": 2,
    "$button_content": "realms_whitelist.plus_icon",
    "$button_text": "realmsInvitationScreen.findFriends",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_find_friends",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_find_friends",
        "mapping_type": "focused"
      }
    ],
    "bindings": [
      {
        "binding_name": "#members_list_enabled", // a hack: you cannot set "enabled":false directly on a ui control
        "binding_name_override": "#enabled"
      }
    ]
  },

  "share_by_link_button@common_buttons.light_text_button": {
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "size": [ "100%", 30 ],
    "layer": 2,
    "$button_text": "realmsInvitationScreen.shareByLink",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_share_by_link",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_share_by_link",
        "mapping_type": "focused"
      }
    ],
    "bindings": [
      {
        "binding_name": "#members_list_enabled", // a hack: you cannot set "enabled":false directly on a ui control
        "binding_name_override": "#enabled"
      }
    ]
  },


  //---------------------------------------------------------------------------
  // assets
  //---------------------------------------------------------------------------
  //Black border is used for the grid item and around the gamerpic
  "black_border": {
    "type": "image",
    "texture": "textures/ui/mainbanners"
  },

  "gamertag_image": {
    "type": "image",
    "texture": "#texture",
    "texture_file_system": "#texture_file_system",
    "bindings": [
      {
        "binding_name": "#texture",
        "binding_type": "collection",
        "binding_collection_name": "$collection_binding_name"
      },
      {
        "binding_name": "#texture_file_system",
        "binding_type": "collection",
        "binding_collection_name": "$collection_binding_name"
      }
    ]
  },

  "player_online_icon": {
    "type": "image",
    "texture": "textures/ui/player_online_icon",
    "size": [ 7, 7 ]
  },

  "player_offline_icon": {
    "type": "image",
    "texture": "textures/ui/player_offline_icon",
    "size": [ 7, 7 ]
  },

  "plus_icon": {
    "type": "image",
    "layer": 2,
    "texture": "textures/ui/plus",
    "size": [ 11, 11 ]
  },

  "refresh_icon": {
    "type": "image",
    "layer": 2,
    "texture": "textures/ui/refresh_light"
  },

  "more_icon": {
    "type": "image",
    "layer": 2,
    "size": [ 13, 3 ],
    "texture": "textures/ui/more_dots"
  },

  "share_icon": {
    "type": "image",
    "layer": 2,
    "size": "$share_icon_size",
    "texture": "$share_icon_texture",
    "offset": "$share_icon_offset"
  },

  "minus_icon": {
    "type": "image",
    "layer": 2,
    "texture": "textures/ui/minus",
    "size": [ 11, 3 ]
  },

  "op_icon": {
    "type": "image",
    "layer": 2,
    "texture": "textures/ui/op",
    "size": [ 14, 14 ]
  },

  "deop_icon": {
    "type": "image",
    "layer": 2,
    "texture": "textures/ui/deop",
    "size": [ 14, 14 ]
  },

  // -----------------------------------------------
  //
  //    screen
  //
  // -----------------------------------------------

  "player_filter_text_box@common.text_edit_box": {
    "size": [ "100%", 25 ],
    "$text_box_name": "#player_filter_text_box",
    "max_length": 30,
    "$place_holder_text": "realmsSettingsScreen.searchBox"
  },

  "page_panel": {
    "type": "panel",
    "size": [ "100%", 20 ],
    "controls": [
      {
        "prev_button@settings_common.action_button": {
          "$button_text": "realmsSettingsScreen.dev_prev_page_label",
          "$pressed_button_name": "$prev_button_name",
          "anchor_from": "top_left",
          "anchor_to": "top_left",
          "size": [ 70, "100%" ],
          "$is_prev_visible|default": "#visible",
          "bindings": [
            {
              "binding_name": "$is_prev_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "page_text": {
          "type": "label",
          "text": "$this_page_index_text",
          "color": "$sub_header_text_color",
          "anchor_from": "center",
          "anchor_to": "center",
          "size": [ "default", "50%" ],
          "bindings": [
            {
              "binding_name": "$this_page_index_text"
            }
          ]
        }
      },
      {
        "next_button@settings_common.action_button": {
          "$button_text": "realmsSettingsScreen.dev_next_page_label",
          "$pressed_button_name": "$next_button_name",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "size": [ 70, "100%" ],
          "$is_next_visible|default": "#visible",
          "bindings": [
            {
              "binding_name": "$is_next_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "$is_visible_binding_name",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "realms_whitelist_panel_content@common.scrolling_panel": {
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "$show_background": false,
    "$scroll_size": [ 5, "100% - 4px" ],
    "$scrolling_content": "realms_whitelist.friends_containing_panel",
    "$friend_panel_size": [ "100% - 1px", "100%c" ]
  },

  "realms_whitelist_content_panel@common_dialogs.main_panel_one_button": {
    "$child_control": "realms_whitelist.realms_whitelist_content_panel_children",
    "$text_name": "realmsInvitationScreen.title",
    "$show_close_button": false,
    "size": "$narrow_screen_size"
  },

  "realms_whitelist_content_panel_children": {
    "type": "panel",
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "controls": [
      {
        "realms_whitelist_panel_content@realms_whitelist.realms_whitelist_panel_content": {
          "offset": [ 2, 0 ],
          "$scrolling_pane_size": [ "100% - 4px", "100%" ]
        }
      },
      {
        "done_button@common_buttons.light_text_button": {
          "anchor_from": "bottom_middle",
          "anchor_to": "top_middle",
          "size": [ "100% + 2px", 30 ],
          "offset": [ 0, 5 ],
          "layer": 2,
          "$button_text": "realmsInvitationScreen.done",
          "button_mappings": [
            {
              "from_button_id": "button.menu_select",
              "to_button_id": "button.menu_realm_send_invites",
              "mapping_type": "pressed"
            },
            {
              "from_button_id": "button.menu_ok",
              "to_button_id": "button.menu_realm_send_invites",
              "mapping_type": "focused"
            }
          ]
        }
      }
    ]
  },

  "realms_whitelist_screen@common.base_screen": {
    "$screen_content": "realms_whitelist.realms_whitelist_content"
  },

  "realms_whitelist_content": {
    "type": "panel",
    "controls": [
      {
        "root_panel": {
          "type": "input_panel",
          "anchor_from": "top_left",
          "anchor_to": "top_left",
          "controls": [
            { "realms_whitelist_content_panel@realms_whitelist.realms_whitelist_content_panel": { "layer": 1 } }
          ]
        }
      },
      {
        "popup_dialog_factory": {
          "type": "factory",
          "control_ids": {
            "share_by_link": "@realms_whitelist.popup_dialog__share_by_link"
          }
        }
      },
      {
        "popup_dialog_factory_options": {
          "type": "factory",
          "control_ids": {
            "options_modal": "@realms_whitelist.popup_dialog__options"
          }
        }
      }
    ]
  },

  "popup_dialog__options@popup_dialog.popup_dialog": {
    "size": [ "100%", "100%" ],
    "controls": [
      { "transparent_close_button@realms_whitelist.transparent_close_button": {} },
      { "options_popup_dialog_button_panel@realms_whitelist.options_popup_dialog_button_panel": {} }
    ]
  },

  "transparent_close_button@common_buttons.transparent_content_button": {
    "size": [ "100%", "100%" ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "$default_content_alpha": 0,
    "$default_button_alpha": 0,
    "$default_hover_alpha": 0,
    "$default_pressed_alpha": 0,
    "$hover_button_texture": "textures/ui/imagetaggedcorner",
    "$pressed_button_texture": "textures/ui/imagetaggedcorner",
    "$close_button_to_button_id|default": "button.menu_exit",
    "bindings": [
      {
        "binding_name": "(not #gamepad_helper_visible)",
        "binding_name_override": "#visible"
      }
    ],
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_options_close",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_options_close",
        "mapping_type": "focused"
      }
    ]
  },

  "options_popup_dialog_button_panel": {
    "type": "stack_panel",
    "size": [ "20%", "15%" ],
    "offset": [ -20, 60 ],
    "orientation": "vertical",
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "controls": [
      {
        "clear_members_button@common_buttons.light_text_button": {
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ "default", 30 ],
          "layer": 2,
          "$button_text": "realmsClearMembers.clear",
          "button_mappings": [
            {
              "from_button_id": "button.menu_select",
              "to_button_id": "button.clear_members",
              "mapping_type": "pressed"
            },
            {
              "from_button_id": "button.menu_ok",
              "to_button_id": "button.clear_members",
              "mapping_type": "focused"
            }
          ],
          "bindings": [
            {
              "binding_name": "#members_list_enabled", // a hack: you cannot set "enabled":false directly on a ui control
              "binding_name_override": "#enabled"
            }
          ]
        }
      }
    ]
  },

  //--------------------------------------------------------------------------------
  // Share By Link Dialog Popup
  //--------------------------------------------------------------------------------
  "popup_dialog__share_by_link@popup_dialog.modal_input_panel": {
    "size": [ "100%", "100%" ],
    "controls": [
      {
        "share_popup_background@realms_whitelist.share_popup_background": {
          "layer": 0
        }
      },
      {
        "gamepad_helpers@common.gamepad_helpers_a_and_b": {
          "layer": 0,
          "anchor_from": "bottom_middle",
          "anchor_to": "bottom_middle",
          "offset": [ 0, "31px" ]
        }
      },
      {
        "share_popup_content@realms_whitelist.share_popup_content": {
          "layer": 1
        }
      }
    ]
  },

  "share_popup_background": {
    "type": "image",
    "texture": "textures/ui/control",
    "size": [ "100%", "100%" ],
    "alpha": 0.6,
    "anchor_from": "top_left",
    "anchor_to": "top_left"
  },

  "share_popup_content": {
    "type": "panel",
    "size": [ 300, 140 ],
    "controls": [
      { "popup_dialog_bg@realms_common.popup_dialog_bg": {} },
      { "share_popup_dialog_header@realms_whitelist.share_popup_dialog_header": {} },
      { "share_popup_dialog_upper_body@realms_whitelist.share_popup_dialog_upper_body": {} },
      { "share_popup_dialog_lower_body@realms_whitelist.share_popup_dialog_lower_body": {} }
    ]
  },

  "share_popup_dialog_header": {
    "type": "panel",
    "size": [ "100%", "15%" ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "layer": 1,
    "controls": [
      { "share_popup_dialog_header_text@realms_whitelist.share_popup_dialog_header_text": {} },
      {
        "close_button@common.close_button": {
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "offset": [ -1, 1 ],
          "button_mappings": [
            {
              "from_button_id": "button.menu_select",
              "to_button_id": "button.realms_invite_share_close",
              "mapping_type": "pressed"
            },
            {
              "from_button_id": "button.menu_ok",
              "to_button_id": "button.realms_invite_share_close",
              "mapping_type": "focused"
            }
          ]
        }
      }
    ]
  },

  "share_popup_dialog_header_text": {
    "type": "label",
    "text": "realmsInvitationScreen.shareLinkToRealm",
    "font_size": "normal",
    "color": "$title_text_color",
    "anchor_from": "center",
    "anchor_to": "center",
    "offset": [ 0, 2 ]
  },

  "share_popup_dialog_upper_body": {
    "type": "panel",
    "size": [ "100%", "30%" ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "offset": [ 0, "15%" ],
    "layer": 1,
    "controls": [
      { "link_panel@realms_whitelist.link_panel": {} }
    ]
  },

  "link_panel@realms_common.hollow_banner": {
    "anchor_from": "center",
    "anchor_to": "center",
    "size": [ "100%-12px", "100%" ],
    "controls": [
      { "refresh_button@realms_whitelist.refresh_button": {} },
      { "link_url_text@realms_whitelist.link_url_text": {} },
      {
        "copy_share_panel": {
          "type": "stack_panel",
          "anchor_from": "right_middle",
          "anchor_to": "right_middle",
          "size": [ "100%c", 28 ],
          "offset": [ -6, 0 ],
          "orientation": "horizontal",
          "variables": [
            {
              "requires": "($apple_os and $supports_share)",
              "$share_icon_texture": "textures/ui/share_apple",
              "$share_icon_offset": [ 3.5, -1.5 ],
              "$share_icon_size": [ 11, 15 ]
            },
            {
              "requires": "(($microsoft_os or (not $apple_os and not $google_os)) and $supports_share)",
              "$share_icon_texture": "textures/ui/share_microsoft",
              "$share_icon_offset": [ 2.5, -0.5 ],
              "$share_icon_size": [ 15, 13 ]
            },
            {
              "requires": "($google_os and $supports_share)",
              "$share_icon_texture": "textures/ui/share_google",
              "$share_icon_offset": [ 2.0, -0.5 ],
              "$share_icon_size": [ 14, 13 ]
            }
          ],
          "controls": [
            {
              "link_copy@realms_whitelist.copy_button": {
                "ignored": "(not $supports_clipboard)",
                "bindings": [
                  {
                    "binding_name": "#copy_share_enabled",
                    "binding_name_override": "#enabled"
                  }
                ]
              }
            },
            {
              "spacing": {
                "type": "panel",
                "size": [ 1, 0 ],
                "ignored": "(not $supports_share)"
              }
            },
            {
              "link_share@realms_whitelist.share_button": {
                "offset": [ 0, 6 ],
                "$button_content": "realms_whitelist.share_icon",
                "ignored": "(not $supports_share)"
              }
            }
          ]
        }
      }
    ]
  },

  "link_url_text": {
    "type": "label",
    "size": [ 168, "default" ],
    "text": "#linkurl",
    "text_alignment": "center",
    "font_size": "normal",
    "color": "$body_text_color",
    "anchor_to": "left_middle",
    "anchor_from": "left_middle",
    "offset": [ 27, 0 ],
    "hide_hyphen": true,
    "layer": 1,
    "bindings": [
      {
        "binding_name": "#linkurl",
        "binding_type": "global"
      }
    ]
  },

  "empty_image": {
    "type": "image"
  },

  "refresh_button@common_buttons.transparent_content_button": {
    "size": [ 21, 21 ],
    "layer": 0,
    "$default_button_alpha": 0.3,
    "$default_hover_alpha": 0.45,
    "$default_pressed_alpha": 0.6,

    "offset": [ 4, 0 ],
    "anchor_to": "left_middle",
    "anchor_from": "left_middle",
    "$button_content": "realms_whitelist.refresh_icon",
    "$light_glyph_default_color": [ 1, 1, 1 ],
    "$light_glyph_hover_color": [ 1.19, 1.14, 1.05 ],
    "$light_glyph_pressed_color": [ 0.8, 0.84, 0.93 ],
    "$button_pressed_offset": [ 0, 0 ],

    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_refresh",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_refresh",
        "mapping_type": "focused"
      }
    ],
    "bindings": [
      {
        "binding_name": "#members_list_enabled",
        "binding_name_override": "#enabled"
      }
    ]
  },

  "share_button@common_buttons.light_glyph_button": {
    "size": [ 28, 28 ],
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "offset": [ -26, 0 ], // Right aligned
    "$light_glyph_default_color": [ 1, 1, 1 ],
    "$light_glyph_hover_color": [ 1, 1, 1 ],
    "$light_glyph_pressed_color": [ 0.9, 0.9, 0.9 ],
    "bindings": [
      {
        "binding_name": "#copy_share_enabled",
        "binding_name_override": "#enabled"
      }
    ],
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_share",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_share",
        "mapping_type": "focused"
      }
    ]
  },

  "copy_button@common_buttons.light_text_button": {
    "size": [ 56, 28 ],
    "anchor_from": "center",
    "anchor_to": "center",
    "$button_text": "realmsInvitationScreen.shareDialogCopyButton",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_copy",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_copy",
        "mapping_type": "focused"
      }
    ]
  },

  "new_link_button@common_buttons.light_text_button": {
    "size": [ "50% - 2px", "90%" ],
    "anchor_from": "bottom_right",
    "anchor_to": "bottom_right",
    "$button_text": "realmsInvitationScreen.shareDialogNewLinkButton",
    "$hover_button_texture": "textures/ui/button_red",
    "$pressed_button_texture": "textures/ui/button_red_pressed",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_new_link",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_new_link",
        "mapping_type": "focused"
      }
    ]
  },

  "cancel_button@common_buttons.light_text_button": {
    "size": [ "50% - 2px", "90%" ],
    "anchor_from": "bottom_right",
    "anchor_to": "bottom_right",
    "$button_text": "realmsInvitationScreen.shareDialogCancel",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.realms_invite_cancel",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.realms_invite_cancel",
        "mapping_type": "global"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.realms_invite_cancel",
        "mapping_type": "focused"
      }
    ]
  },

  "share_popup_text": {
    "type": "label",
    "size": [ "70%", "default" ],
    "shadow": false,
    "text": "$text",
    "color": "$light_glyph_default_color",
    "anchor_from": "center",
    "anchor_to": "center",
    "text_alignment": "center"
  },

  "lower_body_default_content": {
    "type": "panel",
    "size": [ "100%", "90%" ],
    "anchor_from": "top_middle",
    "anchor_to": "top_middle",
    "controls": [
      {
        "info_text@realms_whitelist.share_popup_text": {
          "$text": "realmsInvitationScreen.shareInfoMessage"
        }
      }
    ]
  },

  "lower_body_refresh_content": {
    "type": "panel",
    "size": [ "100%", "80%" ],
    "anchor_from": "center",
    "anchor_to": "center",
    "controls": [
      {
        "info_text@realms_whitelist.share_popup_text": {
          "anchor_from": "top_middle",
          "anchor_to": "top_middle",
          "size": [ "75%", "50% - 2px" ],
          "offset": [ 0, 7 ],
          "$text": "realmsInvitationScreen.refreshLinkInfoMessage"
        }
      },
      {
        "button_panel": {
          "type": "panel",
          "size": [ "75%", "40%" ],
          "anchor_from": "bottom_middle",
          "anchor_to": "bottom_middle",
          "offset": [ 0, -7 ],
          "controls": [
            {
              "cancel_button@realms_whitelist.cancel_button": {
                "layer": 5, // To catch focus of controller when open.
                "$button_text": "gui.cancel",
                "anchor_from": "bottom_left",
                "anchor_to": "bottom_left"

              }
            },
            {
              "new_link_button@realms_whitelist.new_link_button": {}
            }
          ]

        }
      }
    ]
  },

  "share_popup_dialog_lower_body": {
    "type": "panel",
    "size": [ "100%", "65%" ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "offset": [ 0, "40%" ],
    "layer": 1,
    "controls": [
      {
        "default@realms_whitelist.lower_body_default_content": {
          "bindings": [
            {
              "binding_name": "#default_message_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "refresh@realms_whitelist.lower_body_refresh_content": {
          "bindings": [
            {
              "binding_name": "#refresh_message_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      }
    ]
  }
}