{
  "namespace": "storage_migration_common",

  "progress_panel": {
    "type": "panel",
    "size": "$storage_migration_progress_size",
    "$button_state_default_base": "common.button_state_default",
    "$button_state_hover_base": "common.button_state_hover",
    "$button_state_pressed_base": "common.button_state_pressed",
    "controls": [
      {
        "common_panel@common.common_panel": {
          "$dialog_background": "dialog_background_hollow_3",
          "$show_close_button": false
        }
      },
      {
        "base_content": {
          "type": "panel",
          "anchor_from": "top_left",
          "anchor_to": "top_left",
          "size": [ "100%-12px", "100%-12px" ],
          "offset": [ 6, 6 ],
          "controls": [
            {
              "progress_title_text@progress.progress_title_text": {
                "color": "$title_text_color",
                "anchor_from": "top_middle",
                "anchor_to": "top_middle",
                "offset": [ 0, 3 ]
              }
            },
            {
              "progress_bar_text@progress.progress_bar_text": {
                "localize": false,
                "size": [ "default", 40 ],
                "max_size": [ "100% - 8px", 40 ],
                "offset": [ 0, -3 ]
              }
            }
          ]
        }
      },
      {
        "inside_content": {
          "type": "stack_panel",
          "anchor_from": "bottom_middle",
          "anchor_to": "bottom_middle",
          "size": [ "100%-12px", "100%c" ],
          "controls": [
            {
              "size_label": {
                "type": "label",
                "text_alignment": "center",
                "size": [ "100%", "default" ],
                "text": "#file_size_progress",
                "color": "$body_text_color",
                "bindings": [
                  {
                    "binding_name": "#file_size_progress"
                  }
                ]
              }
            },
            {
              "padding_1": {
                "type": "panel",
                "size": [ "100%", 8 ]
              }
            },
            {
              "loading_bar_panel": {
                "type": "panel",
                "size": [ "100%", "100%c" ],
                "controls": [
                  {
                    "fancy_progress_loading_bars@progress.fancy_progress_loading_bars": {}
                  },
                  {
                    "progress_loading_bars@progress.progress_loading_bars": {
                      "offset": [ 0, 0 ]
                    }
                  }
                ]
              }
            },
            {
              "padding_3": {
                "type": "panel",
                "size": [ 0, 14 ]
              }
            }
          ]
        }
      }
    ]
  },

  "label": {
    "type": "label",
    "size": [ "100%", "default" ],
    "font_type": "smooth",
    "line_padding": 1.5,
    "color": "$body_text_color"
  },

  "base_button@common_buttons.light_text_button": {
    "size": [ "100% - 14px", 30 ],
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle"
  },

  "retry_button@storage_migration_common.base_button": {
    "$pressed_button_name": "button.retry",
    "$button_text": "storage_migration.button.retry"
  },

  "go_to_faq_button@storage_migration_common.base_button": {
    "$pressed_button_name": "button.faq",
    "$button_text": "storage_migration.button.go_to_faq"
  },

  "next_button@storage_migration_common.base_button": {
    "$pressed_button_name": "button.next",
    "$button_text": "storage_migration.button.next"
  },

  "get_started_button@storage_migration_common.base_button": {
    "$pressed_button_name": "button.next",
    "$button_text": "storage_migration.button.get_started"
  },

  "start_transfer_button@storage_migration_common.base_button": {
    "$pressed_button_name": "button.start_transfer",
    "$button_text": "storage_migration.button.start"
  },

  "finished_main_menu_button@storage_migration_common.base_button": {
    "$pressed_button_name": "button.main_menu",
    "$button_text": "storage_migration.button.main_menu"
  },

  "start_transfer_out_of_space_button@storage_migration_common.base_button": {
    "$pressed_button_name": "button.start_transfer",
    "$button_text": "storage_migration.button.start",
    "bindings": [
      {
        "binding_name": "#has_file_space_available",
        "binding_name_override": "#enabled"
      }
    ]
  },

  "continue_out_of_space_button@storage_migration_common.base_button": {
    "$pressed_button_name": "button.retry",
    "$button_text": "storage_migration.button.continue",
    "bindings": [
      {
        "binding_name": "#has_file_space_available",
        "binding_name_override": "#enabled"
      }
    ]
  },

  "resume_transfer_button@storage_migration_common.base_button": {
    "$pressed_button_name": "button.start_transfer",
    "$button_text": "storage_migration.button.resume"
  },

  "exit_button@storage_migration_common.base_button": {
    "$pressed_button_name": "button.exit",
    "$button_text": "gui.exit"
  },

  "retry_help_button_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "controls": [
      {
        "retry@storage_migration_common.retry_button": {
          "size": [ "50% - 1.5px", "100%" ]
        }
      },
      {
        "padding": {
          "type": "panel",
          "size": [ 3, 0 ]
        }
      },
      {
        "help@storage_migration_common.go_to_faq_button": {
          "size": [ "50% - 1.5px", "100%" ]
        }
      }
    ]
  },

  // No Buttons Modal - Required Vars
  // $text_name - Modal title
  // $tts_label_panel - Content of the modal. Scrollable and TTS enabled.
  "modal_no_buttons@common_dialogs.main_panel_no_buttons": {
    "$title_size": [ "100% - 14px", 10 ],
    "size": [ 300, 180 ],
    "$show_close_button": false,
    "$child_control": "storage_migration_common.base_child_control",
    "$scrolling_content": "common.tts_label_focus_wrapper"
  },

  // One Button Modal - Required Vars
  // $text_name - Modal title
  // $button_panel - Control containing button
  // $tts_label_panel - Content of the modal. Scrollable and TTS enabled.
  "modal_one_button@common_dialogs.main_panel_one_button": {
    "$title_size": [ "100% - 14px", 10 ],
    "size": [ 300, 180 ],
    "$show_close_button": false,
    "$child_control": "storage_migration_common.base_child_control",
    "$scrolling_content": "common.tts_label_focus_wrapper"
  },

  // Two Button Modal - Required Vars
  // $text_name - Modal title
  // $top_button_panel - Control containing button
  // $bottom_button_panel - Control containing button
  // $tts_label_panel - Content of the modal. Scrollable and TTS enabled.
  "modal_two_buttons@common_dialogs.main_panel_two_buttons": {
    "$title_size": [ "100% - 14px", 10 ],
    "size": [ 300, 180 ],
    "$show_close_button": false,
    "$child_control": "storage_migration_common.base_child_control",
    "$scrolling_content": "common.tts_label_focus_wrapper"
  },

  "base_child_control": {
    "type": "panel",
    "controls": [
      {
        "scrolling_panel@common.scrolling_panel": {
          "$scrolling_pane_size": [ "100% - 1px", "100% - 2px" ],
          "$scroll_view_port_size": [ "100% - 4px", "100% - 4px" ],
          "$scroll_view_port_offset": [ 3, 2 ],
          "$scroll_size": [ 5, "100% - 2px" ],
          "$show_background": false
        }
      }
    ]
  },

  "file_size_description": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ "100%", "100%c" ],
    "$description_text|default": "storage_migration.resume_transfer.description",
    "controls": [
      {
        "description@storage_migration_common.label": {
          "text": "$description_text",
          "size": [ "100%", "default" ]
        }
      },
      {
        "padding": {
          "type": "panel",
          "size": [ 0, 14 ]
        }
      },
      {
        "size_stack": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "size": [ "100%", "100%cm" ],
          "$file_text|default": "storage_migration.resume_transfer.need_to_move",
          "controls": [
            {
              "file_text@storage_migration_common.label": {
                "text": "$file_text",
                "size": [ "default", "default" ]
              }
            },
            {
              "padding_1": {
                "type": "panel",
                "size": [ 2, 0 ]
              }
            },
            {
              "file_size_total@storage_migration_common.label": {
                "text": "#file_size_total",
                "size": [ "default", "default" ],
                "bindings": [
                  {
                    "binding_name": "#file_size_total"
                  }
                ]
              }
            },
            {
              "padding_2": {
                "type": "panel",
                "size": [ 2, 0 ]
              }
            },
            {
              "file_size_available@storage_migration_common.label": {
                "text": "#file_size_available",
                "size": [ "default", "default" ],
                "visible": false,
                "bindings": [
                  {
                    "binding_name": "#file_size_available"
                  },
                  {
                    "binding_name": "#supports_available_space_query",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "file_location@storage_migration_common.label": {
          "text": "#file_location",
          "size": [ "100%", "default" ],
          "bindings": [
            {
              "binding_name": "#file_location"
            }
          ]
        }
      }
    ]
  },

  "error_icon_and_description": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100%", "100%cm" ],
    "$error_description|default": "",
    "controls": [
      {
        "error_image": {
          "type": "image",
          "size": [ 9, 12 ],
          "texture": "textures/ui/ErrorGlyph"
        }
      },
      {
        "description@storage_migration_common.label": {
          "text": "#file_size_needed",
          "size": [ "fill", "default" ],
          "bindings": [
            {
              "binding_name": "#file_size_needed"
            }
          ]
        }
      }
    ]
  },

  "file_size_description_with_error": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "file_size@storage_migration_common.file_size_description": {}
      },
      {
        "padding": {
          "type": "panel",
          "size": [ 0, 14 ]
        }
      },
      {
        "error_icon_and_description@storage_migration_common.error_icon_and_description": {}
      }
    ]
  },

  // Start Transfer
  "start_transfer@storage_migration_common.modal_one_button": {
    "size": [ 300, 160 ],
    "$text_name": "storage_migration.start_transfer.uwp.title",
    "$button_panel": "storage_migration_common.start_transfer_button",
    "$tts_label_panel": "storage_migration_common.start_transfer_content"
  },

  "start_transfer_content@storage_migration_common.file_size_description": {
    "$file_text": "storage_migration.start_transfer.total_file_size",
    "$description_text|default": "storage_migration.start_transfer.description"
  },

  // Resume Transfer
  "resume_transfer@storage_migration_common.modal_one_button": {
    "size": [ 300, 160 ],
    "$show_close_button": false,
    "$text_name": "storage_migration.resume_transfer.title",
    "$button_panel": "storage_migration_common.resume_transfer_button",
    "$tts_label_panel": "storage_migration_common.resume_transfer_content"
  },

  "resume_transfer_content": {
    "type": "stack_panel",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "file_size@storage_migration_common.file_size_description": {}
      }
    ]
  },

  // Transfer Error - Out of Space
  "transfer_error_out_of_space@storage_migration_common.modal_one_button": {
    "$text_name": "storage_migration.transfer_error_out_of_space.title",
    "$button_panel": "storage_migration_common.continue_out_of_space_button",
    "$tts_label_panel": "storage_migration_common.transfer_error_out_of_space_content"
  },

  "transfer_error_out_of_space_content@storage_migration_common.file_size_description_with_error": {
    "$file_text": "storage_migration.transfer_error_out_of_space.files_left",
    "$description_text": "storage_migration.description.out_of_space"
  }
}
