import { addonProductsMock } from '../product/addon-products';
import { productOverviewMock } from '../product/overview';
import { startingPriceMock } from '../product/starting-price';
import { screenshotsMock } from '../product/screenshots';
import { youtubeMock } from '../product/overview/callToActions';

export const defaultMock = {
    addonProducts: addonProductsMock,
    overview: productOverviewMock,
    startingPrice: startingPriceMock
};

export const multipleScreenshotsMock = {
    ...defaultMock,
    screenshots: screenshotsMock
};

export const singleScreenshotsMock = {
    ...defaultMock,
    screenshots: {
        items: screenshotsMock.items.slice(0, 1)
    }
};

export const overview1xImageMock = {
    ...defaultMock,
    overview: {
        ...defaultMock.overview,
        imageSrcSet: {
            '1x': 'https://d3bql97l1ytoxn.cloudfront.net/app_resources/customizations/SFBMARKETPLACE/42937/overview/img1301783796595200436.png?5890c62dc6fd364c4b6a2d4c9370456f'
        }
    }
};

export const noOverviewImageSrcSetMock = {
    ...defaultMock,
    overview: {
        ...defaultMock.overview,
        imageSrcSet: {}
    }
};

export const singleScreenshotWithoutOverviewMock = {
    ...defaultMock,
    overview: {
        ...defaultMock.overview,
        image: '',
        imageSrcSet: {}
    },
    screenshots: {
        items: screenshotsMock.items.slice(0, 1)
    }
};

export const singleVideoMock = {
    ...defaultMock,
    screenshots: {},
    overview: {
        ...defaultMock.overview,
        callToActions: {
            ...defaultMock.overview.callToActions,
            demo: youtubeMock
        }
    }
};
