{
  "schema": "easycatalog-composition-plan/1",
  "threads": [
    {
      "name": "catalog-content",
      "gutter": 12,
      "crossAxis": "stretch",
      "content": [
        {
          "type": "formattingRule",
          "name": "page-side-pattern-title",
          "asset": "__EC_RECIPE_523x770_TITLE_PAGE_SIDE_PATTERN_GRID",
          "horizontalAlignment": "center",
          "onEmpty": "error",
          "repeat": "every area"
        },
        {
          "type": "gridFill",
          "name": "page-side-pattern-products",
          "data": {
            "source": "selectionRoot",
            "result": "self",
            "shape": {
              "scope": "records",
              "sort": [
                {
                  "field": "ID"
                }
              ],
              "limit": 24
            }
          },
          "grid": {
            "columns": 12,
            "rows": 12,
            "columnGutter": 6,
            "rowGutter": 6,
            "order": "across then down"
          },
          "placement": {
            "strategy": "pattern",
            "pattern": "right-page",
            "patternResolver": {
              "if": {
                "condition": {
                  "equals": [
                    {
                      "context": "pageSide"
                    },
                    "left"
                  ]
                },
                "then": "left-page",
                "else": "right-page"
              }
            },
            "patterns": [
              {
                "name": "left-page",
                "slots": [
                  {
                    "columns": 4,
                    "rows": 2,
                    "asset": "__EC_RECIPE_523x770_TEST_20_4x2"
                  },
                  {
                    "columns": 8,
                    "rows": 2,
                    "asset": "__EC_RECIPE_523x770_TEST_20_8x2"
                  }
                ]
              },
              {
                "name": "right-page",
                "slots": [
                  {
                    "columns": 8,
                    "rows": 2,
                    "asset": "__EC_RECIPE_523x770_TEST_20_8x2"
                  },
                  {
                    "columns": 4,
                    "rows": 2,
                    "asset": "__EC_RECIPE_523x770_TEST_20_4x2"
                  }
                ]
              }
            ]
          },
          "span": "auto",
          "overflow": "continue",
          "onEmpty": "error",
          "item": {
            "type": "formattingRule",
            "name": "page-side-pattern-card",
            "asset": "__EC_RECIPE_523x770_TEST_20_4x2",
            "required": true,
            "onEmpty": "error"
          }
        }
      ]
    }
  ]
}
