{
    "manifestVersion": "2.0",
    "routes": [
        {
            "type": "section",
            "nav": {
                "label": "Analytics",
                "icon": "MdOutlineInsights"
            },
            "pages": [
                {
                    "type": "page",
                    "path": "analytics/orders",
                    "component": "fc.page",
                    "nav": {
                        "label": "Orders Dashboard",
                        "icon": "MdOutlinePaid"
                    },
                    "props": {
                        "title": "Orders Dashboard"
                    },
                    "data": {
                        "query": "query AnalyticsResourceQuery($targets: [AnalyticsTarget!]!, $timezone: String) {\n  analytics(targets: $targets, timezone: $timezone) {\n    results\n  }\n}\n",
                        "variables": {
                            "targets": [
                                {
                                    "name": "orders_total_revenue",
                                    "parameters": [
                                        {
                                            "key": "order.created_date",
                                            "value": [
                                                "{{params.orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "order.type",
                                            "value": [
                                                "{{params.order_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "orders_total_orders",
                                    "parameters": [
                                        {
                                            "key": "order.created_date",
                                            "value": [
                                                "{{params.orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "order.type",
                                            "value": [
                                                "{{params.order_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "orders_cancellation_rate",
                                    "parameters": [
                                        {
                                            "key": "order.created_date",
                                            "value": [
                                                "{{params.orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "order.type",
                                            "value": [
                                                "{{params.order_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "orders_average_order_value",
                                    "parameters": [
                                        {
                                            "key": "order.created_date",
                                            "value": [
                                                "{{params.orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "order.type",
                                            "value": [
                                                "{{params.order_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "orders_average_order_items",
                                    "parameters": [
                                        {
                                            "key": "order.created_date",
                                            "value": [
                                                "{{params.orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "order.type",
                                            "value": [
                                                "{{params.order_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "orders_average_orders_by_hour_of_day",
                                    "parameters": [
                                        {
                                            "key": "orders_by_hour_of_day.created_date",
                                            "value": [
                                                "{{params.orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "orders_by_hour_of_day.type",
                                            "value": [
                                                "{{params.order_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "orders_by_order_type",
                                    "parameters": [
                                        {
                                            "key": "order.created_date",
                                            "value": [
                                                "{{params.orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "order.type",
                                            "value": [
                                                "{{params.order_type}}"
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    },
                    "descendants": [
                        {
                            "component": "fc.filterPanel",
                            "props": {
                                "allowReadWriteUrlParams": true,
                                "overrides": {
                                    "timezone": {
                                        "sortPrefix": 3,
                                        "component": "select",
                                        "extensions": {
                                            "source": "fc.analytics.timezones"
                                        },
                                        "defaultValue": "{{currentTimezone}}"
                                    }
                                },
                                "additionalFields": [
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "orders_created_on",
                                            "sortPrefix": "1",
                                            "label": "Range",
                                            "defaultValue": "Today",
                                            "options": [
                                                {
                                                    "label": "Today",
                                                    "value": "Today"
                                                },
                                                {
                                                    "label": "Last 3 days",
                                                    "value": "3 days"
                                                },
                                                {
                                                    "label": "Last 7 days",
                                                    "value": "7 days"
                                                },
                                                {
                                                    "label": "Last 14 days",
                                                    "value": "14 days"
                                                },
                                                {
                                                    "label": "Last 30 days",
                                                    "value": "30 days"
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "retailer_ref",
                                            "sortPrefix": "2",
                                            "label": "Retailer",
                                            "multiple": true,
                                            "defaultValue": "{{activeRetailer.ref}}",
                                            "extensions": {
                                                "hideDefaultValue": true,
                                                "queryValues": {
                                                    "query": "{retailers (first: 100) { edges { node { id tradingName ref } } } }",
                                                    "variables": {},
                                                    "label": "{{node.tradingName}}",
                                                    "value": "{{node.ref}}"
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "order_type",
                                            "sortPrefix": "2",
                                            "label": "Order Type",
                                            "extensions": {
                                                "hideDefaultValue": true,
                                                "source": "fc.analytics.ordertypes"
                                            }
                                        }
                                    }
                                ]
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.orders_total_revenue",
                            "props": {
                                "name": "orders_total_revenue",
                                "width": "third",
                                "label": "Total Revenue"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.orders_total_orders",
                            "props": {
                                "name": "orders_total_orders",
                                "width": "third",
                                "label": "Total Orders"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.orders_cancellation_rate",
                            "props": {
                                "name": "orders_cancellation_rate",
                                "width": "third",
                                "label": "Cancellation Rate"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.orders_average_order_value",
                            "props": {
                                "name": "orders_average_order_value",
                                "width": "half",
                                "label": "Average Order Value"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.orders_average_order_items",
                            "props": {
                                "name": "orders_average_order_items",
                                "width": "half",
                                "label": "Average Order Items"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.orders_average_orders_by_hour_of_day",
                            "props": {
                                "name": "orders_average_orders_by_hour_of_day",
                                "width": "half",
                                "label": "Average Orders by Hour of Day"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.orders_by_order_type",
                            "props": {
                                "name": "orders_by_order_type",
                                "width": "half",
                                "label": "Orders by Order Type"
                            }
                        }
                    ]
                },
                {
                    "type": "page",
                    "path": "analytics/fulfilments",
                    "component": "fc.page",
                    "nav": {
                        "label": "Fulfilments Dashboard",
                        "icon": "MdOutlineLocalShipping"
                    },
                    "props": {
                        "title": "Fulfilments Dashboard"
                    },
                    "data": {
                        "query": "query AnalyticsResourceQuery($targets: [AnalyticsTarget!]!, $timezone: String) {\n  analytics(targets: $targets, timezone: $timezone) {\n    results\n  }\n}\n",
                        "variables": {
                            "targets": [
                                {
                                    "name": "fulfilments_completed_average_fulfilment_time",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "fulfilments_fulfilment_by_location",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "fulfilments_total_completed_fulfillments",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "fulfilments_total_fulfilled_fulfillments",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "fulfilments_total_expired_fulfillments",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "fulfilments_total_escalated_fulfillments",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "fulfilments_total_failed_fulfillments",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "fulfilments_total_partially_fulfilled_fulfilments",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "fulfilments_item_rejection_rate",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "fulfilments_top_10_products_fulfilled",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "fulfilments_fill_rate_%",
                                    "parameters": [
                                        {
                                            "key": "fulfilment.created_date",
                                            "value": "{{params.fulfilment_created_on}}"
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "from_location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    },
                    "descendants": [
                        {
                            "component": "fc.filterPanel",
                            "props": {
                                "allowReadWriteUrlParams": true,
                                "overrides": {
                                    "timezone": {
                                        "label": "Timezone",
                                        "sortPrefix": 3,
                                        "component": "select",
                                        "extensions": {
                                            "source": "fc.analytics.timezones"
                                        },
                                        "defaultValue": "{{currentTimezone}}"
                                    }
                                },
                                "additionalFields": [
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "fulfilment_created_on",
                                            "sortPrefix": "1",
                                            "label": "Range",
                                            "defaultValue": "Today",
                                            "options": [
                                                {
                                                    "label": "Today",
                                                    "value": "Today"
                                                },
                                                {
                                                    "label": "Last 3 days",
                                                    "value": "3 days"
                                                },
                                                {
                                                    "label": "Last 7 days",
                                                    "value": "7 days"
                                                },
                                                {
                                                    "label": "Last 14 days",
                                                    "value": "14 days"
                                                },
                                                {
                                                    "label": "Last 30 days",
                                                    "value": "30 days"
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "retailer_ref",
                                            "sortPrefix": "2",
                                            "label": "Retailer",
                                            "multiple": true,
                                            "defaultValue": "{{activeRetailer.ref}}",
                                            "extensions": {
                                                "queryValues": {
                                                    "query": "{retailers (first: 100) { edges { node { id tradingName ref } } } }",
                                                    "variables": {},
                                                    "label": "{{node.tradingName}}",
                                                    "value": "{{node.ref}}"
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "component": "fc.field.filterComplex",
                                        "props": {
                                            "variableName": "locations_ref",
                                            "label": "Location",
                                            "sortPrefix": "2",
                                            "extensions": {
                                                "filtersSource": "locations",
                                                "query": "query ($locations_first: Int) {\n  locations(first: $locations_first) {\n    edges {\n      node {\n        id\n        ref\n        type\n        status\n        name\n        primaryAddress {\n          id\n          city\n          state\n          country\n          street\n          postcode\n        }\n      }\n    }\n  }\n}\n",
                                                "variables": {
                                                    "locations_first": 100
                                                },
                                                "overrides": {
                                                    "name": {
                                                        "sortPrefix": 1
                                                    }
                                                },
                                                "searchItemConfig": {
                                                    "component": "fc.card.product",
                                                    "props": {
                                                        "title": "{{node.name}}",
                                                        "attributes": [
                                                            {
                                                                "value": "{{node.ref}}"
                                                            },
                                                            {
                                                                "value": "{{node.primaryAddress.street}} {{node.primaryAddress.city}} {{node.primaryAddress.state}} {{node.primaryAddress.postcode}} {{node.primaryAddress.country}}"
                                                            }
                                                        ]
                                                    }
                                                },
                                                "chipItemConfig": {
                                                    "label": "{{node.name}}"
                                                },
                                                "onChangeValues": {
                                                    "value": "node.ref",
                                                    "variableName": "locations_ref"
                                                },
                                                "exclude": [
                                                    "createdon",
                                                    "updatedon",
                                                    "type",
                                                    "status",
                                                    "supportphonenumber",
                                                    "defaultcarriername",
                                                    "defaultcarrier"
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_total_completed_fulfillments",
                            "props": {
                                "name": "fulfilments_total_completed_fulfilments",
                                "width": 2,
                                "label": "Total Completed Fulfilments"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_total_expired_fulfillments",
                            "props": {
                                "name": "fulfilments_total_expired_fulfilments",
                                "width": 2,
                                "label": "Total Expired Fulfilments"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_total_fulfilled_fulfillments",
                            "props": {
                                "name": "fulfilments_total_fulfilled_fulfillments",
                                "width": 2,
                                "label": "Total Fulfilled Fulfilments"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_total_failed_fulfillments",
                            "props": {
                                "name": "fulfilments_total_failed_fulfilments",
                                "width": 2,
                                "label": "Total Failed Fulfilments"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_total_escalated_fulfillments",
                            "props": {
                                "name": "fulfilments_total_escalated_fulfilments",
                                "width": 2,
                                "label": "Total Escalated Fulfilments"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_total_partially_fulfilled_fulfilments",
                            "props": {
                                "name": "fulfilments_total_partially_fulfilled_fulfilments",
                                "width": 2,
                                "label": "Total Partially Fulfilled Fulfilments"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_completed_average_fulfilment_time",
                            "props": {
                                "name": "fulfilments_completed_average_fulfilment_time",
                                "width": 4,
                                "label": "Completed Average Fulfilment Time"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_item_rejection_rate",
                            "props": {
                                "name": "fulfilments_item_rejection_rate",
                                "width": 4,
                                "label": "Item Rejection Rate"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_fill_rate_%",
                            "props": {
                                "name": "fulfilments_fill_rate_%",
                                "width": 4,
                                "label": "Fill Rate %"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_fulfilment_by_location",
                            "props": {
                                "name": "fulfilments_fulfilment_by_location",
                                "width": "half",
                                "label": "Fulfilment by Location"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.fulfilments_top_10_products_fulfilled",
                            "props": {
                                "name": "fulfilments_top_10_products_fulfilled",
                                "width": "half",
                                "label": "Top 10 Products Fulfilled"
                            }
                        }
                    ]
                },
                {
                    "type": "page",
                    "path": "analytics/inventory",
                    "component": "fc.page",
                    "nav": {
                        "label": "Inventory Dashboard",
                        "icon": "MdOutlineInventory"
                    },
                    "props": {
                        "title": "Inventory Dashboard"
                    },
                    "data": {
                        "query": "query AnalyticsResourceQuery($targets: [AnalyticsTarget!]!, $timezone: String) {\n  analytics(targets: $targets, timezone: $timezone) {\n    results\n  }\n}\n",
                        "variables": {
                            "targets": [
                                {
                                    "name": "inventory_status_breakdown",
                                    "parameters": [
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_position.product_ref",
                                            "value": [
                                                "{{readArrayFromParams 'products_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_rank_most_frequently_purchased_products_most_to_least_(sortable)",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_rank_reserved_products_most_to_least_(sortable)",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_sku_velocity_(list_view_across_all_skus_@_location)",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_position.product_ref",
                                            "value": [
                                                "{{readArrayFromParams 'products_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_top_10_reserved_products",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_top_10_frequently_purchased_products",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_sell_through_rate",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_position.product_ref",
                                            "value": [
                                                "{{readArrayFromParams 'products_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_coverage_days",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_position.product_ref",
                                            "value": [
                                                "{{readArrayFromParams 'products_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_sku_velocity",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_position.product_ref",
                                            "value": [
                                                "{{readArrayFromParams 'products_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_sold_inventory",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_position.product_ref",
                                            "value": [
                                                "{{readArrayFromParams 'products_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_total_on_hand",
                                    "parameters": [
                                        {
                                            "key": "inventory_position.product_ref",
                                            "value": [
                                                "{{readArrayFromParams 'products_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_short_picked_products",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_top_short_picked_products",
                                    "parameters": [
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_total_available",
                                    "parameters": [
                                        {
                                            "key": "virtual_position.product_ref",
                                            "value": [
                                                "{{readArrayFromParams 'products_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "virtual_position.group_ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "virtual_catalogue.ref",
                                            "value": [
                                                "{{readArrayFromParams 'virtualCatalogueRef[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "inventory_total_correction",
                                    "parameters": [
                                        {
                                            "key": "inventory_catalogue.ref",
                                            "value": [
                                                "{{params.inventoryCatalogueRef}}"
                                            ]
                                        },
                                        {
                                            "key": "location.ref",
                                            "value": [
                                                "{{readArrayFromParams 'locations_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_position.product_ref",
                                            "value": [
                                                "{{readArrayFromParams 'products_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "inventory_quantity.created_date",
                                            "value": [
                                                "{{params.inventory_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    },
                    "descendants": [
                        {
                            "component": "fc.filterPanel",
                            "props": {
                                "allowReadWriteUrlParams": true,
                                "overrides": {
                                    "timezone": {
                                        "label": "Timezone",
                                        "sortPrefix": 3,
                                        "component": "select",
                                        "extensions": {
                                            "source": "fc.analytics.timezones"
                                        },
                                        "defaultValue": "{{currentTimezone}}"
                                    }
                                },
                                "additionalFields": [
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "inventory_created_on",
                                            "sortPrefix": "1",
                                            "label": "Range",
                                            "defaultValue": "Today",
                                            "options": [
                                                {
                                                    "label": "Today",
                                                    "value": "Today"
                                                },
                                                {
                                                    "label": "Last 3 days",
                                                    "value": "3 days"
                                                },
                                                {
                                                    "label": "Last 7 days",
                                                    "value": "7 days"
                                                },
                                                {
                                                    "label": "Last 14 days",
                                                    "value": "14 days"
                                                },
                                                {
                                                    "label": "Last 30 days",
                                                    "value": "30 days"
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "retailer_ref",
                                            "sortPrefix": "2",
                                            "label": "Retailer",
                                            "multiple": true,
                                            "defaultValue": "{{activeRetailer.ref}}",
                                            "extensions": {
                                                "queryValues": {
                                                    "query": "{retailers (first: 100) { edges { node { id tradingName ref } } } }",
                                                    "variables": {},
                                                    "label": "{{node.tradingName}}",
                                                    "value": "{{node.ref}}"
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "component": "fc.field.filterComplex",
                                        "props": {
                                            "variableName": "products_ref",
                                            "sortPrefix": "2",
                                            "label": "Product",
                                            "multiple": true,
                                            "extensions": {
                                                "query": "query products {\n  products {\n    edges {\n      node {\n        ref\n        name\n        attributes {\n          name\n          value\n          type\n        }\n      }\n    }\n  }\n}\n",
                                                "variables": {
                                                    "retailerRefs": "{{activeRetailer.ref}}"
                                                },
                                                "label": "{{node.name}}",
                                                "value": "{{node.ref}}",
                                                "searchItemConfig": {
                                                    "component": "fc.card.product",
                                                    "props": {
                                                        "title": "{{node.name}}",
                                                        "cardImage": {
                                                            "imageUrl": "{{node.attributes.byName.imageUrl}}"
                                                        },
                                                        "attributes": [
                                                            {
                                                                "value": "{{node.ref}}"
                                                            }
                                                        ]
                                                    }
                                                },
                                                "chipItemConfig": {
                                                    "label": "{{node.name}}",
                                                    "variables": {
                                                        "variant_first": 100
                                                    }
                                                },
                                                "onChangeValues": {
                                                    "value": "node.ref",
                                                    "variableName": "products_ref"
                                                },
                                                "exclude": [
                                                    "createdon",
                                                    "updatedon",
                                                    "type",
                                                    "status",
                                                    "gtin",
                                                    "summary",
                                                    "productcatalogue"
                                                ],
                                                "overrides": {
                                                    "name": {
                                                        "sortPrefix": 1
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "component": "fc.field.filterComplex",
                                        "props": {
                                            "variableName": "locations_ref",
                                            "label": "Location",
                                            "sortPrefix": "2",
                                            "extensions": {
                                                "filtersSource": "locations",
                                                "query": "query ($locations_first: Int) {\n  locations(first: $locations_first) {\n    edges {\n      node {\n        id\n        ref\n        type\n        status\n        name\n        primaryAddress {\n          id\n          city\n          state\n          country\n          street\n          postcode\n        }\n      }\n    }\n  }\n}\n",
                                                "variables": {
                                                    "locations_first": 100
                                                },
                                                "overrides": {
                                                    "name": {
                                                        "sortPrefix": 1
                                                    }
                                                },
                                                "searchItemConfig": {
                                                    "component": "fc.card.product",
                                                    "props": {
                                                        "title": "{{node.name}}",
                                                        "attributes": [
                                                            {
                                                                "value": "{{node.ref}}"
                                                            },
                                                            {
                                                                "value": "{{node.primaryAddress.street}} {{node.primaryAddress.city}} {{node.primaryAddress.state}} {{node.primaryAddress.postcode}} {{node.primaryAddress.country}}"
                                                            }
                                                        ]
                                                    }
                                                },
                                                "chipItemConfig": {
                                                    "label": "{{node.name}}"
                                                },
                                                "onChangeValues": {
                                                    "value": "node.ref",
                                                    "variableName": "locations_ref"
                                                },
                                                "exclude": [
                                                    "createdon",
                                                    "updatedon",
                                                    "type",
                                                    "status",
                                                    "supportphonenumber",
                                                    "defaultcarriername",
                                                    "defaultcarrier"
                                                ]
                                            }
                                        }
                                    },
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "inventoryCatalogueRef",
                                            "sortPrefix": "2",
                                            "label": "Inventory catalogue",
                                            "extensions": {
                                                "queryValues": {
                                                    "query": "query inventoryCatalogues($retailerRefs: [[String]]) {\n  inventoryCatalogues(retailerRefs: $retailerRefs) {\n    edges {\n      node {\n        ref\n      }\n    }\n  }\n}\n",
                                                    "variables": {
                                                        "retailerRefs": "{{activeRetailer.ref}}"
                                                    },
                                                    "label": "{{node.name}}",
                                                    "value": "{{node.ref}}"
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "virtualCatalogueRef",
                                            "label": "Virtual Catalogue",
                                            "sortPrefix": "2",
                                            "multiple": "true",
                                            "extensions": {
                                                "hideDefaultValue": true,
                                                "queryValues": {
                                                    "query": "query virtualCatalogues($retailerRefs: [[String]], $first: Int) {\n  virtualCatalogues(retailerRefs: $retailerRefs, first: $first) {\n    edges {\n      node {\n        ref\n        name\n      }\n    }\n  }\n}\n",
                                                    "variables": {
                                                        "retailerRefs": {
                                                            "value": "{{firstDefinedValue (readArrayFromParams 'retailer_ref[]') activeRetailer.ref}}",
                                                            "asArray": true
                                                        },
                                                        "first": 100
                                                    },
                                                    "label": "{{node.name}}",
                                                    "value": "{{node.ref}}"
                                                }
                                            }
                                        }
                                    }
                                ]
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_total_on_hand",
                            "props": {
                                "name": "inventory_total_on_hand",
                                "width": "quarter",
                                "label": "Total On-Hand (current)"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_total_available",
                            "props": {
                                "name": "inventory_total_available",
                                "width": "quarter",
                                "label": "Total Available (current)"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_total_correction",
                            "props": {
                                "name": "inventory_total_correction",
                                "width": "quarter",
                                "label": "Total Correction"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_sold_inventory",
                            "props": {
                                "name": "inventory_sold_inventory",
                                "width": "quarter",
                                "label": "Sold Inventory"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_sku_velocity",
                            "props": {
                                "name": "inventory_sku_velocity",
                                "width": "third",
                                "label": "SKU Velocity"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_coverage_days",
                            "props": {
                                "name": "inventory_coverage_days",
                                "width": "third",
                                "label": "Inventory Coverage Days"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_sell_through_rate",
                            "props": {
                                "name": "inventory_sell_through_rate",
                                "width": "third",
                                "label": "Sell Through Rate"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_sku_velocity_(list_view_across_all_skus_@_location)",
                            "props": {
                                "name": "inventory_sku_velocity_list",
                                "width": "full",
                                "label": "SKU Velocity (list view across all SKUs @ location)"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_status_breakdown",
                            "props": {
                                "name": "inventory_status_breakdown",
                                "width": "full",
                                "label": "Inventory Quantity Type Breakdown (current)"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_rank_reserved_products_most_to_least_(sortable)",
                            "props": {
                                "name": "inventory_rank_reserved_products_most_to_least",
                                "width": "third",
                                "label": "Rank Reserved Products Most to Least (sortable)"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_top_10_reserved_products",
                            "props": {
                                "name": "inventory_top_10_reserved_products",
                                "width": 8,
                                "label": "Top 10 Reserved Products"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_rank_most_frequently_purchased_products_most_to_least_(sortable)",
                            "props": {
                                "name": "inventory_rank_most_frequently_purchased_products_most_to_least",
                                "width": "third",
                                "label": "Rank Most Frequently Purchased Products Most to Least (sortable)"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_top_10_frequently_purchased_products",
                            "props": {
                                "name": "inventory_top_10_frequently_purchased_products",
                                "width": 8,
                                "label": "Top 10 Frequently Purchased Products"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_short_picked_products",
                            "props": {
                                "name": "inventory_short_picked_products",
                                "width": "third",
                                "label": "Short Picked Products"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.inventory_top_short_picked_products",
                            "props": {
                                "name": "inventory_top_short_picked_products",
                                "width": 8,
                                "label": "Top Short Picked Products"
                            }
                        }
                    ]
                },
                {
                    "type": "page",
                    "path": "analytics/returns",
                    "component": "fc.page",
                    "nav": {
                        "label": "Returns Dashboard",
                        "icon": "MdOutlineAssignmentReturn"
                    },
                    "props": {
                        "title": "Returns Dashboard"
                    },
                    "data": {
                        "query": "query AnalyticsResourceQuery($targets: [AnalyticsTarget!]!, $timezone: String) {\n  analytics(targets: $targets, timezone: $timezone) {\n    results\n  }\n}\n",
                        "variables": {
                            "targets": [
                                {
                                    "name": "returns_return_reason_ratio",
                                    "parameters": [
                                        {
                                            "key": "return_order.created_date",
                                            "value": [
                                                "{{params.return_orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.type",
                                            "value": [
                                                "{{params.return_type}}"
                                            ]
                                        },
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "returns_return_rate",
                                    "parameters": [
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "order_item_return_rate.created_date",
                                            "value": [
                                                "{{params.return_orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "order_item_return_rate.return_order_type",
                                            "value": [
                                                "{{params.return_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "returns_total_return_amount",
                                    "parameters": [
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.created_date",
                                            "value": [
                                                "{{params.return_orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.type",
                                            "value": [
                                                "{{params.return_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "returns_total_return_orders",
                                    "parameters": [
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.created_date",
                                            "value": [
                                                "{{params.return_orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.type",
                                            "value": [
                                                "{{params.return_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "returns_average_return_order_value",
                                    "parameters": [
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.created_date",
                                            "value": [
                                                "{{params.return_orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.type",
                                            "value": [
                                                "{{params.return_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "returns_average_return_order_items",
                                    "parameters": [
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.created_date",
                                            "value": [
                                                "{{params.return_orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.type",
                                            "value": [
                                                "{{params.return_type}}"
                                            ]
                                        }
                                    ]
                                },
                                {
                                    "name": "returns_top_returned_products",
                                    "parameters": [
                                        {
                                            "key": "retailer.ref",
                                            "value": [
                                                "{{readArrayFromParams 'retailer_ref[]'}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.created_date",
                                            "value": [
                                                "{{params.return_orders_created_on}}"
                                            ]
                                        },
                                        {
                                            "key": "return_order.type",
                                            "value": [
                                                "{{params.return_type}}"
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    },
                    "descendants": [
                        {
                            "component": "fc.filterPanel",
                            "props": {
                                "allowReadWriteUrlParams": true,
                                "overrides": {
                                    "timezone": {
                                        "label": "Timezone",
                                        "sortPrefix": 5,
                                        "component": "select",
                                        "extensions": {
                                            "source": "fc.analytics.timezones"
                                        },
                                        "defaultValue": "{{currentTimezone}}"
                                    }
                                },
                                "additionalFields": [
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "return_orders_created_on",
                                            "sortPrefix": "1",
                                            "label": "Range",
                                            "defaultValue": "Today",
                                            "options": [
                                                {
                                                    "label": "Today",
                                                    "value": "Today"
                                                },
                                                {
                                                    "label": "Last 3 days",
                                                    "value": "3 days"
                                                },
                                                {
                                                    "label": "Last 7 days",
                                                    "value": "7 days"
                                                },
                                                {
                                                    "label": "Last 14 days",
                                                    "value": "14 days"
                                                },
                                                {
                                                    "label": "Last 30 days",
                                                    "value": "30 days"
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "retailer_ref",
                                            "sortPrefix": "2",
                                            "label": "Retailer",
                                            "multiple": true,
                                            "defaultValue": "{{activeRetailer.ref}}",
                                            "extensions": {
                                                "hideDefaultValue": true,
                                                "queryValues": {
                                                    "query": "{retailers (first: 100) { edges { node { id tradingName ref } } } }",
                                                    "variables": {},
                                                    "label": "{{node.tradingName}}",
                                                    "value": "{{node.ref}}"
                                                }
                                            }
                                        }
                                    },
                                    {
                                        "component": "select",
                                        "props": {
                                            "variableName": "return_type",
                                            "sortPrefix": "4",
                                            "label": "Type",
                                            "defaultValue": "DEFAULT",
                                            "options": [
                                                {
                                                    "label": "Default",
                                                    "value": "DEFAULT"
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.returns_average_return_order_value",
                            "props": {
                                "name": "returns_average_return_order_value",
                                "width": "half",
                                "label": "Average Return Order Value"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.returns_average_return_order_items",
                            "props": {
                                "name": "returns_average_return_order_items",
                                "width": "half",
                                "label": "Average Return Order Items"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.returns_total_return_amount",
                            "props": {
                                "name": "returns_total_return_amount",
                                "width": "third",
                                "label": "Total Return Amount"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.returns_total_return_orders",
                            "props": {
                                "name": "returns_total_return_orders",
                                "width": "third",
                                "label": "Total Return Orders"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.returns_return_rate",
                            "props": {
                                "name": "returns_return_rate",
                                "width": "third",
                                "label": "Return Rate"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.returns_top_returned_products",
                            "props": {
                                "name": "returns_top_returned_products",
                                "width": "half",
                                "label": "Top Returned Products"
                            }
                        },
                        {
                            "component": "fc.analytics.viz",
                            "dataSource": "analytics.results.returns_return_reason_ratio",
                            "props": {
                                "name": "returns_return_reason_ratio",
                                "width": "half",
                                "label": "Return Reason Ratio"
                            }
                        }
                    ]
                }
            ]
        }
    ]
}