{
  "namespace": "store_sale_item_list",

  "banner_header": {
    "type": "panel",
    "size": [ "100%", 16 ],
    "controls": [
      {
        "label_panel": {
          "type": "panel",
          "size": [ "100% - 2px", "100%cm" ],
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left",
          "controls": [
            {
              "on_sale_banner": {
                "type": "image",
                "texture": "textures/ui/yellow_banner",
                "size": [ "100%c", 13 ],
                "anchor_from": "bottom_left",
                "anchor_to": "bottom_left",
                "layer": 1,
                "controls": [
                  {
                    "padding_panel": {
                      "type": "panel",
                      "size": [ "100%c - 50%y + 24px", "100%" ],
                      "controls": [
                        {
                          "sales_row_header_label@common_store.store_section_header_label": {
                            "size": [ "default", 10 ],
                            "offset": [ 12, 0.5 ],
                            "anchor_from": "left_middle",
                            "anchor_to": "left_middle",
                            "$store_section_header_visible_binding": "#is_sales_grid_visible",
                            "$store_section_header_label_text": "#sales_header_text",
                            "$store_section_header_text_color": "$title_text_color",
                            "layer": 1
                          }
                        },
                        {
                          "triangle": {
                            "type": "image",
                            "texture": "textures/ui/saleflagtriangle",
                            "size": [ "50%y", 13 ],
                            "offset": [ -1, 0 ],
                            "anchor_from": "right_middle",
                            "anchor_to": "left_middle",
                            "bilinear": true
                          }
                        }
                      ]
                    }
                  }
                ],
                "bindings": [
                  {
                    "binding_type": "collection",
                    "binding_collection_name": "category_collection",
                    "binding_name": "#show_sales_banner",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            },
            {
              "time_remaining_label@common_store.label": {
                "ignored": true,
                "anchor_from": "bottom_right",
                "anchor_to": "bottom_right",
                "size": [ "default", 10 ],
                "offset": [ -3, -1 ],
                "text": "#time_remaining_label",
                "text_alignment": "right",
                "layer": 3,
                "bindings": [
                  {
                    "binding_name": "#time_remaining_label",
                    "binding_condition": "always"
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },

  "sales_offer_content": {
    "ignored": "$sales_disabled_on_screen",
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ "100%", "100%c" ],
    "visible": false,
    "bindings": [
      {
        "binding_name": "#is_sales_grid_visible",
        "binding_name_override": "#visible"
      }
    ],
    "controls": [
      {
        "top_padding": {
          "type": "panel",
          "size": [ "100%", 4 ]
        }
      },
      {
        "sales_panel": {
          "type": "stack_panel",
          "orientation": "vertical",
          "size": [ "100%", "100%c" ],
          "controls": [
            {
              "sales_banner_panel@store_sale_item_list.banner_header": {}
            },
            {
              "top_sales_grid_padding": {
                "type": "panel",
                "size": [ "100%", 2 ]
              }
            },
            {
              "sales_grid_panel": {
                "type": "panel",
                "size": [ "100%", "100%c" ],
                "controls": [
                  {
                    "sales_offer_grid@store_item_list.store_offer_grid": {
                      "$store_offer_grid_prefix": "sales_list",
                      "$store_offer_grid_collection_name": "sales_list_collection",
                      "bindings": [
                        {
                          "binding_name": "#sales_grid_item_count",
                          "binding_name_override": "#maximum_grid_items"
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },

  "all_offer_content": {
    "ignored": "$is_inventory_screen",
    "type": "panel",
    "size": [ "100%", "100%c" ],
    "visible": false,
    "controls": [
      {
        "store_offer_grid_panel@store_item_list.store_offer_grid": {}
      }
    ],
    "bindings": [
      {
        "binding_name": "#is_store_offer_grid_panel_visible",
        "binding_name_override": "#visible"
      }
    ]
  }
}
