import { html } from 'lit-html'

export default {
    title: 'GES DISC/User Dashboard',
    component: 'gd-user-dashboard',
}

/**
 * This dashboard story does NOT use the actual preferences API. At the bottom of this file is a hardcoded list of dashboard items
 */

function getDashboard() {
    return new Promise(resolve => {
        let dashboard = document.querySelector('gd-user-dashboard')

        if (!dashboard) {
            setTimeout(async () => resolve(await getDashboard()), 500)
            return
        }

        resolve(dashboard)
    })
}

export const example = (props, { loaded: { historyItems, favoriteItems } }) => {
    console.log(historyItems)
    getDashboard().then(dashboard => {
        // when list changes, change the list of items passed to it
        dashboard.addEventListener('activeListChanged', e => {
            dashboard.items = e.detail == 'favorites' ? favoriteItems : historyItems
        })

        // use history items initially
        dashboard.items = historyItems
    })

    return html` <gd-user-dashboard></gd-user-dashboard> `
}

example.argTypes = {}

example.args = {}

example.loaders = [
    async () => ({
        historyItems: getExampleUserHistory(),
        favoriteItems: getExampleUserHistory().filter(item => item.favorite),
    }),
]

function getExampleUserHistory() {
    return [
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=GLDAS_CLM10_M_001&page=1',
            label: 'GES DISC Search: Showing 1 - 25 of 408 datasets associated with GLDAS_CLM10_M_001',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-10-16T20:44:26.924Z',
            id: '5f8a062a90bb2f00127b68e0',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=GLDAS_CLM10_M_001&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GLDAS_CLM10_M_001',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-10-16T20:12:19.614Z',
            id: '5f89fea390bb2f00127b68df',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets/TRMM_1A01_7/summary?keywords=TRMM_1A01_7',
            label: 'GES DISC Dataset: TRMM Attitude and VIRS Packets and Header Record L1A V7 (TRMM_1A01 7)',
            serviceType: 'doc',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-10-15T19:01:37.755Z',
            id: '5f889c9190bb2f00127b68de',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=SNDRSNIML3SMCCPN_2&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with SNDRSNIML3SMCCPN_2',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-10-08T19:07:30.206Z',
            id: '5f7f637290bb2f00127b68cc',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=gldas&page=1',
            label: 'GES DISC Search: Showing 1 - 23 of 23 datasets associated with gldas ',
            tags: ['heres another tag', 'Testing with Tags'],
            favorite: false,
            serviceType: 'data',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-16T14:21:53.580Z',
            id: '5f621f8190bb2f00127b6785',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=AIRX2RET_006&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with AIRX2RET_006',
            serviceType: 'data',
            tags: ['heres a tag', 'Testing with Tags'],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-16T14:21:53.580Z',
            id: '5f621f8190bb2f00127b6786',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=AIRX2RET_006&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with AIRX2RET_006',
            serviceType: 'data',
            tags: ['Methane', 'another one'],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-16T14:20:51.034Z',
            sharedBy: 'aritrivi',
            id: '5f621f4390bb2f00127b6783',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=AIRX2RET_006&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with AIRX2RET_006',
            serviceType: 'data',
            tags: ['another one'],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-16T14:20:51.034Z',
            id: '5f621f4390bb2f00127b6784',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=AIRX2RET_006&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with AIRX2RET_006',
            serviceType: 'data',
            tags: ['heres a tag'],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-14T15:52:54.555Z',
            id: '5f5f91d690bb2f00127b676d',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=AIRX2RET_006&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with AIRX2RET_006',
            serviceType: 'data',
            tags: ['Methane'],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-14T15:52:06.351Z',
            sharedBy: 'aritrivi',
            id: '5f5f91a690bb2f00127b676a',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/information?keywords=AIRX2RET_006&page=1',
            label: 'GES DISC Search: Showing 1 - 4 of 4 information associated with AIRX2RET_006',
            serviceType: 'doc',
            tags: ['Methane'],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-14T15:52:06.351Z',
            sharedBy: 'aritrivi',
            id: '5f5f91a690bb2f00127b676b',
        },
        {
            url:
                'https://uui-test.gesdisc.eosdis.nasa.gov/datasets/AIRX2RET_006/get-data?keywords=AIRX2RET_006&jobState=%7B%22state%22%3A%7B%22format%22%3A%22HDF-EOS%22%2C%22start%22%3A%222016-08-30T00%3A00%3A00.000Z%22%2C%22end%22%3A%222016-09-24T23%3A59%3A59.999Z%22%2C%22agent%22%3A%22SUBSET_AIRS_L1L2%22%2C%22role%22%3A%22subset%22%2C%22data%22%3A%5B%7B%22datasetId%22%3A%22AIRX2RET_006%22%7D%5D%2C%22jobId%22%3A%225f5f90c3e8560c4aa9cac52d%22%7D%2C%22stateId%22%3A%22download-dialog%22%2C%22formatId%22%3A%222%22%7D',
            label: 'Data subset for AIRX2RET_006 with selection of temporal, service.',
            serviceType: 'download',
            tags: ['Methane'],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-14T15:52:06.351Z',
            sharedBy: 'aritrivi',
            id: '5f5f91a690bb2f00127b676c',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=gldas&page=1',
            label: 'GES DISC Search: Showing 1 - 23 of 23 datasets associated with gldas ',
            tags: ['heres another tag'],
            favorite: false,
            serviceType: 'data',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-09T15:51:33.669Z',
            id: '5f58fa05709ec300128bd25e',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=GLDAS_CLSM10_M_2.0&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GLDAS_CLSM10_M_2.0',
            tags: [],
            favorite: false,
            serviceType: 'data',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-09T15:45:12.714Z',
            id: '5f58f888709ec300128bd25d',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=gldas&page=1',
            label: 'GES DISC Search: Showing 1 - 23 of 23 datasets associated with gldas ',
            tags: [],
            favorite: false,
            serviceType: 'data',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-02T20:29:50.849Z',
            id: '5f5000be709ec300128bd208',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets/GLDAS_NOAH10_3H_EP_2.1/summary',
            label: 'GES DISC Dataset: GLDAS Noah Land Surface Model L4 3 hourly 1.0 x 1.0 degree Early Product V2.1 (GLDAS_NOAH10_3H_EP 2.1)',
            tags: [],
            favorite: false,
            serviceType: 'doc',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-02T20:28:54.016Z',
            id: '5f500086709ec300128bd207',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=GLDAS&sort=-version&page=1',
            label: 'GES DISC Search: Showing 1 - 23 of 23 datasets associated with GLDAS ',
            tags: [],
            favorite: false,
            serviceType: 'data',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-02T14:49:02.839Z',
            id: '5f4fb0de709ec300128bd1fe',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=RAIN_ARKIN_1&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with RAIN_ARKIN_1',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-02T12:54:49.302Z',
            id: '5f4f9619709ec300128bd1fd',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=SUSIM&page=1',
            label: 'GES DISC Search: No datasets associated with SUSIM',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-01T20:38:22.161Z',
            id: '5f4eb13e709ec300128bd1fa',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=susim&page=1',
            label: 'GES DISC Search: No datasets associated with susim',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-01T20:38:22.161Z',
            id: '5f4eb13e709ec300128bd1fb',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=SUSIM&page=1',
            label: 'GES DISC Search: No datasets associated with SUSIM',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-01T20:11:55.149Z',
            id: '5f4eab0b709ec300128bd1f8',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=susim&page=1',
            label: 'GES DISC Search: No datasets associated with susim',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-01T20:11:55.149Z',
            id: '5f4eab0b709ec300128bd1f9',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=SUSIM&page=1',
            label: 'GES DISC Search: No datasets associated with SUSIM',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-01T20:10:35.687Z',
            id: '5f4eaabb709ec300128bd1f6',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=susim&page=1',
            label: 'GES DISC Search: No datasets associated with susim',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-01T20:10:35.687Z',
            id: '5f4eaabb709ec300128bd1f7',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=SUSIM&page=1',
            label: 'GES DISC Search: No datasets associated with SUSIM',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-01T18:49:50.707Z',
            id: '5f4e97ce709ec300128bd1f3',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=susim&page=1',
            label: 'GES DISC Search: No datasets associated with susim',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-09-01T18:49:50.707Z',
            id: '5f4e97ce709ec300128bd1f4',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=SUSIM&page=1',
            label: 'GES DISC Search: No datasets associated with SUSIM',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-25T19:21:48.567Z',
            id: '5f4564cc709ec300128bd1ef',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=susim&page=1',
            label: 'GES DISC Search: No datasets associated with susim',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-25T19:21:07.100Z',
            id: '5f4564a3709ec300128bd1ee',
        },
        {
            url:
                'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets/UARSU3BS_022/get-data?keywords=SUSIM&jobState=%7B%22state%22%3A%7B%22format%22%3A%22binary%22%2C%22agent%22%3A%22OpenSearch%22%2C%22role%22%3A%22subset%22%2C%22data%22%3A%5B%7B%22datasetId%22%3A%22UARSU3BS_022%22%7D%5D%7D%2C%22stateId%22%3A%22download-dialog%22%2C%22formatId%22%3A%222%22%7D',
            label: 'Data subset for UARSU3BS_022',
            serviceType: 'download',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-24T15:51:33.120Z',
            id: '5f43e205709ec300128bd1ec',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=SUSIM&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with SUSIM',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-24T15:51:26.695Z',
            id: '5f43e1fe709ec300128bd1eb',
        },
        {
            url:
                'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets/GEOS_CASAGFED_3H_NEE_2/get-data?keywords=GEOS_CASAGFED_3H_NEE_2&jobState=%7B%22state%22%3A%7B%22format%22%3A%22netCDF%22%2C%22agent%22%3A%22OpenSearch%22%2C%22role%22%3A%22subset%22%2C%22data%22%3A%5B%7B%22datasetId%22%3A%22GEOS_CASAGFED_3H_NEE_2%22%7D%5D%2C%22jobId%22%3A%225f43bbb3741820b0d3224613%22%7D%2C%22stateId%22%3A%22download-dialog%22%2C%22formatId%22%3A%222%22%7D',
            label: 'Data subset for GEOS_CASAGFED_3H_NEE_2 with selection of spatial.',
            serviceType: 'download',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-24T13:08:01.765Z',
            id: '5f43bbb1f483d30019a20c60',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GEOS_CASAGFED_3H_NEE_2&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GEOS_CASAGFED_3H_NEE_2',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-24T13:07:57.161Z',
            id: '5f43bbadf483d30019a20c5f',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GPM_1AVIRS_05&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GPM_1AVIRS_05',
            serviceType: 'data',
            tags: [],
            favorite: true,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T17:56:01.320Z',
            id: '5f42adb1f483d30019a20c5c',
        },
        {
            url:
                'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets/GPM_1AVIRS_05/get-data?keywords=GPM_1AVIRS_05&jobState=%7B%22state%22%3A%7B%22format%22%3A%22HDF5%22%2C%22agent%22%3A%22OpenSearch%22%2C%22role%22%3A%22subset%22%2C%22data%22%3A%5B%7B%22datasetId%22%3A%22GPM_1AVIRS_05%22%7D%5D%2C%22jobId%22%3A%225f42ac00606df44cf923d72c%22%7D%2C%22stateId%22%3A%22download-dialog%22%2C%22formatId%22%3A%222%22%7D',
            label: 'Data subset for GPM_1AVIRS_05',
            serviceType: 'download',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T17:48:47.009Z',
            id: '5f42abfff483d30019a20c5b',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GPM_1AVIRS_05&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GPM_1AVIRS_05',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T17:48:41.936Z',
            id: '5f42abf9f483d30019a20c5a',
        },
        {
            url:
                'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets/GPM_1AGMI_05/get-data?keywords=GPM_1AGMI_05&jobState=%7B%22state%22%3A%7B%22format%22%3A%22HDF5%22%2C%22agent%22%3A%22OpenSearch%22%2C%22role%22%3A%22subset%22%2C%22data%22%3A%5B%7B%22datasetId%22%3A%22GPM_1AGMI_05%22%7D%5D%2C%22jobId%22%3A%225f42abb47519f74cc65e3a7c%22%7D%2C%22stateId%22%3A%22download-dialog%22%2C%22formatId%22%3A%222%22%7D',
            label: 'Data subset for GPM_1AGMI_05',
            serviceType: 'download',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T17:47:30.348Z',
            id: '5f42abb2f483d30019a20c59',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GPM_1AGMI_05&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GPM_1AGMI_05',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T17:47:25.852Z',
            id: '5f42abadf483d30019a20c58',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GPM_1AGMI_05&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GPM_1AGMI_05',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T17:31:55.120Z',
            id: '5f42a80bf483d30019a20c57',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets/GPM_1AVIRS_05/summary?keywords=GPM_1AVIRS_05',
            label: 'GES DISC Dataset: GPM VIRS on TRMM unpacked data L1A 1.5 hours 2 km V05 (GPM_1AVIRS 05)',
            serviceType: 'doc',
            tags: [],
            favorite: true,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T17:13:22.796Z',
            id: '5f42a3b2f483d30019a20c56',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GPM_1AVIRS_05&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GPM_1AVIRS_05',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T17:13:09.453Z',
            id: '5f42a3a5f483d30019a20c55',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GPM_1AVIRS_05&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GPM_1AVIRS_05',
            serviceType: 'data',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T17:05:21.464Z',
            id: '5f42a1d1f483d30019a20c54',
        },
        {
            url:
                'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GPM_1AVIRS_05&page=1&jobState=%7B%22state%22%3A%7B%22format%22%3A%22HDF5%22%2C%22agent%22%3A%22OpenSearch%22%2C%22role%22%3A%22subset%22%2C%22data%22%3A%5B%7B%22datasetId%22%3A%22GPM_1AVIRS_05%22%7D%5D%2C%22jobId%22%3A%225f429b1a173d14c9408802fa%22%7D%2C%22stateId%22%3A%22download-dialog%22%2C%22formatId%22%3A%222%22%7D',
            label: 'Data subset for GPM_1AVIRS_05',
            serviceType: 'download',
            tags: [],
            favorite: false,
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T16:36:40.516Z',
            id: '5f429b18f483d30019a20c53',
        },
        {
            url:
                '{"state":{"format":"HDF5","agent":"OpenSearch","role":"subset","data":[{"datasetId":"GPM_1AVIRS_05"}],"jobId":"5f4299791384e2c62c38014a"},"stateId":"download-dialog","formatId":"2"}',
            label: 'Data subset for GPM_1AVIRS_05',
            tags: [],
            favorite: false,
            serviceType: 'download',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T16:29:44.081Z',
            id: '5f429978f483d30019a20c52',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GPM_1AVIRS_05&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GPM_1AVIRS_05',
            tags: [],
            favorite: false,
            serviceType: 'data',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-23T16:28:44.018Z',
            id: '5f42993cf483d30019a20c51',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets/GPM_1AGMI_05/summary?keywords=GPM_1AGMI_05',
            label: 'GES DISC Dataset: GPM GMI unpacked data L1A 1.5 hours 13 km V05 (GPM_1AGMI 05)',
            tags: [],
            favorite: false,
            serviceType: 'doc',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-21T18:59:36.705Z',
            id: '5f401998f483d30019a20c44',
        },
        {
            url:
                '{"state":{"box":[-83.364,35.771,-75.894,39.946],"crop":false,"format":"HDF5","start":"2017-07-06T00:00:00.000Z","end":"2020-08-12T23:59:59.999Z","agent":"OpenSearch","role":"subset","data":[{"datasetId":"GPM_1AGMI_05"}],"jobId":"5f3fc9e47a325a85d00e6232"},"stateId":"download-dialog","formatId":"2"}',
            label: 'Data subset for GPM_1AGMI_05 with selection of spatial, temporal.',
            tags: [],
            favorite: false,
            serviceType: 'download',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-21T13:19:30.760Z',
            id: '5f3fc9e2f483d30019a20c43',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GPM_1AGMI_05&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GPM_1AGMI_05',
            tags: [],
            favorite: false,
            serviceType: 'data',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-21T13:17:24.909Z',
            id: '5f3fc964f483d30019a20c42',
        },
        {
            url:
                '{"state":{"box":[-83.848,36.123,-75.542,39.814],"crop":false,"format":"HDF5","start":"2014-03-04T00:00:00.000Z","end":"2020-08-13T23:59:59.999Z","agent":"OpenSearch","role":"subset","data":[{"datasetId":"GPM_1AGMI_05"}],"jobId":"5f3fc897a45f0b70224f7af1"},"stateId":"download-dialog","formatId":"2"}',
            label: 'Data subset for GPM_1AGMI_05 with selection of spatial, temporal.',
            tags: [],
            favorite: false,
            serviceType: 'download',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-21T13:13:58.478Z',
            id: '5f3fc896f483d30019a20c41',
        },
        {
            url: 'https://dev.gesdisc.eosdis.nasa.gov/uui/datasets?keywords=GPM_1AGMI_05&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with GPM_1AGMI_05',
            tags: [],
            favorite: true,
            serviceType: 'data',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-08-21T13:13:22.251Z',
            id: '5f3fc872f483d30019a20c40',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets/AIRH3STM_7.0/summary?keywords=AIRH3STM_7.0',
            label: 'GES DISC Dataset: Aqua/AIRS L3 Monthly Standard Physical Retrieval (AIRS+AMSU+HSB) 1 degree x 1 degree V7.0 (AIRH3STM 7.0)',
            tags: [],
            favorite: false,
            serviceType: 'doc',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-07-17T11:59:24.020Z',
            id: '5f11929ce03cc8001af8f1bb',
        },
        {
            url: 'https://uui-test.gesdisc.eosdis.nasa.gov/datasets?keywords=AIRH3STM_7.0&page=1',
            label: 'GES DISC Search: Showing 1 - 1 of 1 datasets associated with AIRH3STM_7.0',
            tags: [],
            favorite: false,
            serviceType: 'data',
            application: 'GES DISC Website',
            uid: 'jdcarlso',
            created: '2020-07-17T11:59:18.458Z',
            id: '5f119296e03cc8001af8f1ba',
        },
    ]
}
