export const callToActionsMock = {
    callToActions: {
        items: [
            {
                label: 'First Button',
                tooltip: 'Tooltip',
                isPrimary: true,
                enabled: true,
                url: 'google.ca',
                actionType: 'BUY'
            },
            {
                label: 'Second Button',
                tooltip: '',
                isPrimary: false,
                enabled: false,
                url: '',
                actionType: ''
            },
            {
                label: 'Upgrade',
                tooltip: '',
                isPrimary: false,
                enabled: false,
                url: '',
                actionType: 'CAN_MOSI_UPGRADE'
            }
        ]
    }
};

const updateCart = {
    actionType: 'UPDATE_CART_ITEM',
    enabled: true,
    popup: {},
    isPrimary: false,
    label: 'Save Changes',
    tooltip: '',
    url: 'undefined/api/internal/storefront/v1/cta?productId=241515&type=UPDATE_CART_ITEM&editionId=452529&cartItemId=905697de-44e1-43bd-a2ae-befcad6de7eb',
    cartItemId: '905697de-44e1-43bd-a2ae-befcad6de7eb',
    urlCreator: {
        base: 'undefined/api/internal/storefront/v1/cta?productId=241515&type=UPDATE_CART_ITEM&cartItemId=905697de-44e1-43bd-a2ae-befcad6de7eb',
        actionType: 'UPDATE_CART_ITEM',
        editionParam: 'eppid',
        addonParam: 'appid'
    }
};

const buyNow = {
    actionType: 'BUY_NOW',
    enabled: true,
    popup: {},
    isPrimary: true,
    label: 'Buy Now',
    tooltip: '',
    url: 'http: //marketplace.com/api/internal/storefront/v1/cta?productId=1&type=BUY_NOW',
    urlCreator: {
        base: 'http: //marketplace.com/api/internal/storefront/v1/cta',
        actionType: 'BUY_NOW',
        editionParam: 'editionId',
        addonParam: 'addonId'
    }
};
const addToCart = {
    label: 'Add to Cart',
    tooltip: '',
    isPrimary: false,
    enabled: true,
    url: 'http: //marketplace.com/api/internal/storefront/v1/cta?productId=273407&type=UPDATE_CART_ITEM&editionId=493724&cartItemId=4cf04569-3cc7-44ee-b823-b34f4a840b6c',
    actionType: 'ADD_TO_CART',
    popup: {},
    cartItemId: '4cf04569-3cc7-44ee-b823-b34f4a840b6c',
    urlCreator: {
        base: 'http: //marketplace.com/api/internal/storefront/v1/cta?productId=273407&type=UPDATE_CART_ITEM&cartItemId=4cf04569-3cc7-44ee-b823-b34f4a840b6c',
        actionType: 'ADD_TO_CART',
        editionParam: 'eppid',
        addonParam: 'appid'
    }
};

const lead = {
    label: 'Contact Us',
    tooltip: '',
    isPrimary: false,
    enabled: true,
    leadPageUrl: '/en_us/add-lead',
    url: 'http: //marketplace.com/api/internal/storefront/v1/cta?productId=273407&type=UPDATE_CART_ITEM&editionId=493724&cartItemId=4cf04569-3cc7-44ee-b823-b34f4a840b6c',
    actionType: 'LEAD_GEN',
    popup: {},
    cartItemId: '4cf04569-3cc7-44ee-b823-b34f4a840b6c',
    urlCreator: {
        base: 'http: //marketplace.com/api/internal/storefront/v1/cta?productId=273407&type=UPDATE_CART_ITEM&cartItemId=4cf04569-3cc7-44ee-b823-b34f4a840b6c',
        actionType: 'ADD_TO_CART',
        editionParam: 'eppid',
        addonParam: 'appid'
    }
};

export const configuratorUpdateCartCallToActionsMock = {
    items: [
        updateCart
    ]

};

export const configuratorDefaultCallToActionsMock = {
    items: [
        addToCart,
        buyNow
    ]
};

export const configuratorNoAddToCartCallToActionsMock = {
    items: [
        buyNow
    ]
};

export const callToActionsMultiButtonMock = {
    callToActions: {
        items: [
            {
                label: 'First Button',
                tooltip: 'Tooltip',
                isPrimary: true,
                enabled: true,
                url: 'google.ca',
                actionType: ''
            },
            {
                label: 'Second Button',
                tooltip: '',
                isPrimary: false,
                enabled: false,
                url: '',
                actionType: ''
            },
            lead
        ]
    }
};

export const callToActionsCaptionMock = {
    callToActions: {
        items: [
            {
                label: 'First Button',
                tooltip: 'Tooltip',
                isPrimary: true,
                enabled: true,
                url: 'google.ca',
                actionType: ''
            },
            {
                label: 'Second Button',
                tooltip: '',
                isPrimary: false,
                enabled: false,
                url: '',
                actionType: ''
            }
        ],
        caption: {
            text: 'or, <a href="google.com">Choose an edition to purchase</a>'
        }
    }
};
