{
  "schema": "easycatalog-composition-plan/1",
  "threads": [
    {
      "name": "catalog-content",
      "gutter": 12,
      "crossAxis": "stretch",
      "content": [
        {
          "type": "formattingRule",
          "name": "price-list-title",
          "asset": "__EC_RECIPE_523x770_TITLE_PRICE_LIST",
          "horizontalAlignment": "center",
          "onEmpty": "error"
        },
        {
          "type": "forEach",
          "itemName": "department",
          "data": {
            "source": "selectionRoot",
            "result": "children",
            "shape": {
              "scope": "records",
              "sort": [
                {
                  "field": "Category1",
                  "missing": "first"
                },
                {
                  "field": "Category2",
                  "missing": "first"
                },
                {
                  "field": "Price"
                }
              ],
              "group": [
                {
                  "field": "Category1"
                }
              ]
            }
          },
          "template": {
            "type": "flow",
            "name": "department-{index1}",
            "data": {
              "source": "variable",
              "name": "department",
              "result": "self"
            },
            "onEmpty": "error",
            "header": {
              "sections": [
                {
                  "type": "formattingRule",
                  "name": "department-heading-{index1}",
                  "asset": "__EC_RECIPE_523x770_HEADER_DEPARTMENT",
                  "data": {
                    "source": "variable",
                    "name": "department",
                    "result": "self"
                  },
                  "repeat": "every area",
                  "mergeAdjacentHeaders": true,
                  "onEmpty": "error"
                }
              ]
            },
            "body": {
              "sections": [
                {
                  "type": "textFrame",
                  "name": "department-products-{index1}",
                  "asset": "__EC_RECIPE_523x770_TABLE_DEPARTMENT_PRODUCTS_GROW_PRICE64",
                  "data": {
                    "source": "variable",
                    "name": "department",
                    "result": "self"
                  },
                  "autoFitVertically": true,
                  "minimumHeight": 24,
                  "maximumHeight": 701.889763778,
                  "onEmpty": "error"
                }
              ]
            }
          }
        }
      ]
    }
  ]
}
