{
  "namespace": "trialUpsell",

  "normal_stroke_button": {
    "type": "image",
    "texture": "textures/ui/NormalButtonStroke",
    "layer": 2
  },

  "normal_description_label": {
    "type": "label",
    "text": "$trial_description_test",
    "size": [ "100%", 10 ],
    "color": "$body_text_color",
    "anchor_from": "center",
    "anchor_to": "center",
    "layer": 2,
    "bindings": [
      {
        "binding_name": "$trial_description_test"
      }
    ]
  },

  "trialTime": {
    "type": "custom",
    "renderer": "trial_time_renderer",
    "size": [ "default", 10 ],
    "offset": [ 0, "1%" ],
    "layer": 3,
    "anchor_from": "top_left",
    "anchor_to": "top_left"
  },

  "trial_label": {
    "type": "label",
    "offset": [ 0, "3%" ],
    "color": "$title_text_color",
    "layer": 2,
    "text": "trial.upsell.trialLabel",
    "anchor_from": "center",
    "anchor_to": "center"
  },

  "trial_description_panel": {
    "type": "panel",
    "size": [ "100% - 4px", "100% - 4px" ],
    "offset": [ 0, 2 ],
    "controls": [
      {
        "description_text@normal_description_label": {
          "size": [ "100%", "100%" ],
          "anchor_from": "top_left",
          "anchor_to": "top_left"

        }
      }
    ]
  },

  "trial_expired_description_panel": {
    "type": "stack_panel",
    "size": [ "100% - 4px", "100%c" ],
    "anchor_from": "top_middle",
    "anchor_to": "top_middle",
    "controls": [
      {
        "vertical_padding_0": {
          "type": "panel",
          "size": [ 0, 2 ]
        }
      },
      {
        "line1@normal_description_label": {
          "size": [ "100%", "default" ],
          "text": "trial.upsell.expiredDescription.line1"
        }
      },
      {
        "vertical_padding_1": {
          "type": "panel",
          "size": [ 0, 10 ]
        }
      },
      {
        "line2@normal_description_label": {
          "text": "trial.upsell.expiredDescription.line2"
        }
      },
      {
        "line3@normal_description_label": {
          "text": "trial.upsell.expiredDescription.line3"
        }
      },
      {
        "line4@normal_description_label": {
          "text": "trial.upsell.expiredDescription.line4"
        }
      },
      {
        "line5@normal_description_label": {
          "size": [ "100%", 20 ],
          "text": "trial.upsell.expiredDescription.line5"
        }
      }
    ]
  },

  "continue_button@common_buttons.light_text_button": {
    "$pressed_button_name": "button.menu_continue",
    "$button_text": "$continue_button_text",
    "$button_text_binding_type": "global"
  },

  "buy_button@common_buttons.light_text_button": {
    "$pressed_button_name": "button.menu_buy_game",
    "$button_text": "$buy_button_text",
    "$button_text_binding_type": "global"
  },

  "root_panel": {
    "type": "panel",
    "size": "$xbl_first_launch_screen_size",
    "anchor_to": "center",
    "anchor_from": "center"
  },

  "trial_upsell_screen_dialog@common_dialogs.main_panel_one_button": {
    "$child_control": "trialUpsell.content_description_panel",
    "$text_name": "trial.upsell.title",
    "$button_panel": "trialUpsell.button_content_panel",
    "$continue_button_text": "#trial_upsell_continue_button",
    "$buy_button_text": "#trial_upsell_buy_button",
    "$trial_description_test": "#trial_upsell_updatedDescription"
  },

  "trial_upsell_expired_screen_dialog@common_dialogs.main_panel_one_button": {
    "$child_control": "trialUpsell.content_description_panel",
    "$text_name": "trial.upsell.expiredTitle",
    "$button_panel": "trialUpsell.button_content_panel",
    "$continue_button_text": "#trial_upsell_continue_button",
    "$buy_button_text": "#trial_upsell_buy_button",
    "$trial_description_test": "#trial_upsell_expired_updatedDescription"
  },

  "button_content_panel": {
    "type": "panel",
    "controls": [
      {
        "buy@buy_button": {
          "size": [ "50% - 1px", "100%" ],
          "anchor_to": "bottom_left",
          "anchor_from": "bottom_left"
        }
      },
      {
        "continue@continue_button": {
          "size": [ "50% - 1px", "100%" ],
          "anchor_to": "bottom_right",
          "anchor_from": "bottom_right"
        }
      }
    ]
  },

  "trial_upsell_screen@common.base_screen": {
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.menu_exit",
        "mapping_type": "global"
      }
    ],
    "$screen_content": "trialUpsell.trial_upsell_screen_content"
  },

  "trial_upsell_screen_content": {
    "type": "panel",
    "controls": [
      { "trialTime@trialTime": {} },
      {
        "root_panel@root_panel": {
          "controls": [
            { "trial_upsell_screen_dialog@trial_upsell_screen_dialog": {} }
          ]
        }
      }
    ]
  },

  "trial_upsell_expired_screen@common.base_screen": {
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.menu_exit",
        "mapping_type": "global"
      }
    ],
    "$screen_content": "trialUpsell.trial_upsell_expired_screen_content"
  },

  "trial_upsell_expired_screen_content": {
    "type": "panel",
    "controls": [
      { "trialTime@trialTime": {} },
      {
        "root_panel@root_panel": {
          "controls": [
            { "trial_upsell_expired_screen_dialog@trial_upsell_expired_screen_dialog": {} }
          ]
        }
      }
    ]
  },

  "content_description_panel": {
    "type": "panel",
    "controls": [
      {
        "scrolling_panel@common.scrolling_panel": {
          "$scrolling_content": "trialUpsell.trial_description_panel",
          "$show_background": false,
          "$scroll_size": [ "5px", "100%" ],
          "$scroll_bar_left_padding_size": [ 1, 0 ]
        }
      }
    ]
  }
}