{
    "manifestVersion": "2.0",
    "routes": [
        {
            "type": "page",
            "path": "waves/list/awaiting-pick",
            "component": "fc.page",
            "props": {
                "title": "i18n:fc.sf.ui.waves.detail.dashboard.ordersAwaitingPick.title",
                "actions": {
                    "primary": [
                        {
                            "type": "userAction",
                            "label": "i18n:fc.sf.ui.wave.createWave.createWaveByExpiry",
                            "name": "CreateWaveByExpiry",
                            "extensions": {
                                "postSubmit": {
                                    "type": "navigate",
                                    "link": "/waves/{{wavesInProgress.edges.0.node.id}}"
                                }
                            }
                        },
                        {
                            "type": "userAction",
                            "label": "i18n:fc.sf.ui.wave.createWave.createWave",
                            "name": "WaveCreate",
                            "extensions": {
                                "postSubmit": {
                                    "type": "navigate",
                                    "link": "/waves/{{wavesInProgress.edges.0.node.id}}"
                                }
                            }
                        },
                        {
                            "type": "userAction",
                            "label": "i18n:fc.sf.ui.wave.createWave.createCustomWave",
                            "name": "CreateWaveByUserSelection",
                            "extensions": {
                                "action": {
                                    "type": "navigate",
                                    "link": "/waves/create"
                                }
                            }
                        }
                    ]
                },
                "backButtons": [
                    {
                        "path": "waves",
                        "menuLabel": "i18n:fc.sf.wave.detail.breadcrumb.pickPackDashboard"
                    }
                ]
            },
            "data": {
                "query": "query ($ordersAwaitingPickFromLocationRef: String!, $ordersAwaitingPickStatus: [String]!, $wavesInProgressLocationRef: String!, $wavesInProgressStatus: [String]!, $locationId: ID!) {  locationById(id: $locationId) {    ref  }  fulfilments(    fromLocation: {ref: $ordersAwaitingPickFromLocationRef}    status: $ordersAwaitingPickStatus  ) {    edges {      node {        id        ref        order {          type          ref          totalPrice          customer {            firstName            lastName          }        }        expiryTime        deliveryType      }    }  }  wavesInProgress: waves(    processingLocation: {ref: $wavesInProgressLocationRef}    status: $wavesInProgressStatus  ) {    edges {      node {        id        ref        status        location {          id          ref        }      }    }  }  waveCreateSetting: settings(name: \"fc.mystique.store.feature.wave.create\") {    edges {      node {        lobValue      }    }  }}",
                "variables": {
                    "locationId": "{{activeLocation.id}}",
                    "ordersAwaitingPickFromLocationRef": "{{activeLocation.ref}}",
                    "ordersAwaitingPickStatus": [
                        "AWAITING_WAVE"
                    ],
                    "wavesInProgressLocationRef": "{{activeLocation.ref}}",
                    "wavesInProgressStatus": [
                        "PICK",
                        "PACK",
                        "DISPATCH"
                    ]
                }
            },
            "descendants": [
                {
                    "component": "fc.list",
                    "dataSource": "fulfilments",
                    "props": {
                        "filter": {
                            "enabled": true,
                            "exclude": [
                                "deliveryType",
                                "eta"
                            ]
                        },
                        "attributes": [
                            {
                                "label": "i18n:fc.sf.ui.waves.detail.list.fulfilments.column.customer.name.heading",
                                "value": "{{node.order.customer.firstName}} {{node.order.customer.lastName}}"
                            },
                            {
                                "label": "i18n:fc.sf.ui.waves.detail.list.fulfilments.column.order.ref.heading",
                                "value": "{{node.order.ref}}"
                            },
                            {
                                "label": "i18n:fc.sf.ui.waves.detail.list.fulfilments.column.fulfilmentRef.heading",
                                "value": "{{node.ref}}"
                            },
                            {
                                "label": "i18n:fc.sf.ui.waves.detail.list.fulfilments.column.delivery.type.heading",
                                "template": "{{i18n 'fc.om.order.type.'node.order.type _fallback = node.order.type}}"
                            },
                            {
                                "label": "i18n:fc.gql.order.items.totalPrice.label",
                                "value": "{{node.order.totalPrice}}"
                            },
                            {
                                "label": "i18n:fc.sf.ui.wave.index.card.create.list.column.timeRemaining.heading",
                                "value": "{{relativeDateFromNow node.expiryTime}}"
                            }
                        ]
                    }
                }
            ]
        }
    ]
}