{
  "schema": "easycatalog-composition-plan/1",
  "threads": [
    {
      "name": "catalog-content",
      "gutter": 12,
      "crossAxis": "stretch",
      "content": [
        {
          "type": "flow",
          "name": "two-adorned-product-regions",
          "data": {
            "source": "selectionRoot",
            "result": "self"
          },
          "onEmpty": "error",
          "body": {
            "layoutPattern": {
              "name": "two-separated-product-regions",
              "areas": [
                {
                  "name": "upper-products",
                  "bounds": [
                    0,
                    0,
                    0.47,
                    1
                  ]
                },
                {
                  "name": "lower-products",
                  "bounds": [
                    0.53,
                    0,
                    1,
                    1
                  ]
                }
              ]
            },
            "sections": [
              {
                "type": "formattingRule",
                "name": "adorned-product-cards",
                "asset": "__EC_RECIPE_523x770_CARD_SMALL",
                "assetForEach": true,
                "fillDirection": "horizontal",
                "horizontalGutter": 12,
                "verticalGutter": 12,
                "onEmpty": "error",
                "data": {
                  "source": "selectionRoot",
                  "result": "children",
                  "shape": {
                    "scope": "records",
                    "sort": [
                      {
                        "field": "Category1",
                        "missing": "first"
                      },
                      {
                        "field": "AlphaSV"
                      }
                    ],
                    "limit": 12
                  }
                },
                "propertyResolver": {
                  "asset": {
                    "switch": {
                      "value": {
                        "field": "Category1"
                      },
                      "cases": [
                        {
                          "when": "Bath",
                          "return": "__EC_RECIPE_523x770_CARD_SMALL_BATH"
                        },
                        {
                          "when": "Kitchen",
                          "return": "__EC_RECIPE_523x770_CARD_SMALL_KITCHEN"
                        },
                        {
                          "when": "Office",
                          "return": "__EC_RECIPE_523x770_CARD_SMALL_OFFICE"
                        },
                        {
                          "when": "Outdoor",
                          "return": "__EC_RECIPE_523x770_CARD_SMALL_OUTDOOR"
                        }
                      ],
                      "default": "__EC_RECIPE_523x770_CARD_SMALL"
                    }
                  }
                }
              }
            ],
            "adornments": [
              {
                "type": "formattingRule",
                "name": "committed-product-region-panel",
                "asset": "__EC_RECIPE_523x770_ADORNMENT_DYNAMIC_CONTENT_BORDER",
                "target": "content",
                "outsets": [
                  6,
                  6,
                  6,
                  6
                ],
                "zOrder": "behind",
                "onEmpty": "omit"
              }
            ]
          }
        }
      ]
    }
  ],
  "furniture": [
    {
      "type": "formattingRule",
      "name": "adornment-example-title",
      "asset": "__EC_RECIPE_523x770_TITLE_DYNAMIC_CONTENT_ADORNMENT",
      "horizontalAlignment": "center",
      "onEmpty": "error"
    }
  ]
}
