{
	"oversized_in_gui": true,
	"model": {
        "type": "select",
        "property": "component",
        "component": "custom_name",
        "cases": [
			{"when": "Подарок",
			"model": {
				"type": "select",
				"property": "display_context",
				"cases": [
					{
					"when": "gui",
					"model": {
					"type": "condition",
					"property": "bundle/has_selected_item",
						"on_false": {
							"type": "model",
							"model": "item/decor/meshki/podarok/purpur/close"
						},
						"on_true": {
							"type": "composite",
							"models": [
							{
							"type": "model",
							"model": "item/decor/meshki/podarok/purpur/open"
								},
							{"type": "bundle/selected_item"}
									]
								}
							}
						}
						],
					"fallback": {
					"type": "model",
					"model": "item/decor/meshki/podarok/purpur/close"
					}
				}
			},
			{
			"when": ["Корзинка","Пасхальная Корзинка"],
			"model": {
				"type": "composite",
				"models": [
				{
					"type": "model",
					"model": "item/decor/meshki/korzinka/0"
				},
				{
					"type": "range_dispatch",
					"property": "bundle/fullness",
					"scale": 6,
					"entries": [
					{
						"threshold": 0,
						"model": {
						"type": "model",
						"model": "z"
						}
					},
					{
						"threshold": 0.01,
						"model": {
						"type": "model",
						"model": "item/decor/meshki/korzinka/0/1"
						}
					},
					{
						"threshold": 1.5,
						"model": {
						"type": "model",
						"model": "item/decor/meshki/korzinka/0/2"
						}
					},
					{
						"threshold": 2.6,
						"model": {
						"type": "model",
						"model": "item/decor/meshki/korzinka/0/3"
						}
					},
					{
						"threshold": 3.8,
						"model": {
						"type": "model",
						"model": "item/decor/meshki/korzinka/0/4"
						}
					},
					{
						"threshold": 4.9,
						"model": {
						"type": "model",
						"model": "item/decor/meshki/korzinka/0/5"
						}
					},
					{
						"threshold": 6,
						"model": {
						"type": "model",
						"model": "item/decor/meshki/korzinka/0/6"
						}
					}
							]
						}
					]
				}
			}
        ],
    "fallback": {
              "type": "condition",
              "property": "bundle/has_selected_item",
              "on_false": {
                "type": "model",
                "model": "item/magenta_bundle"
              },
              "on_true": {
                "type": "composite",
                "models": [
                  {
                    "type": "model",
                    "model": "item/magenta_bundle_open_back"
                  },
                  {
                    "type": "bundle/selected_item"
                  },
                  {
                    "type": "model",
                    "model": "item/magenta_bundle_open_front"
                  }
                ]
              }
            }
  }
}
