
export type ExternalContentMock = ExternalContentData

/**
 * Default mock configuration
 * Users can modify this in the compiled mock.js file
 */
export const externalContentMock: ExternalContentMock = {
  site: {
    isPreviewMode: true,
    account: {
      title: 'My Account',
      url: '/account',
      target: '_self'
    },
    cart: {
      url: '/cart',
      count: 3
    },
    languages: [
      {
        code: 'en',
        description: 'English',
        main: true,
        selected: true,
        url: '/en'
      },
      {
        code: 'es',
        description: 'Español',
        main: false,
        selected: false,
        url: '/es'
      }
    ],
    legalPages: [
      {
        title: 'Privacy Policy',
        url: '/privacy'
      },
      {
        title: 'Terms of Service',
        url: '/terms'
      },
      {
        title: 'Refund Policy',
        url: '/refunds'
      }
    ],
    reportAbuse: {
      title: 'Report Abuse',
      url: '/report-abuse',
      target: '_blank'
    },
    madeWith: {
      url: 'https://www.lightspeedhq.com',
      target: '_blank',
      icon: '/assets/lightspeed-icon.png',
      poweredBy: 'Powered by',
      company: 'Lightspeed'
    }
  },

  category: {
    categories: [
      {
        id: 1,
        name: 'Electronics',
        url: '/categories/electronics',
        imageUrl: '/assets/electronics-category.jpg',
        thumbnailImageUrl: '/assets/electronics-thumb.jpg',
        alt: 'Electronics category',
        imageBorderInfo: {
          homogeneity: true,
          color: {
            r: 255,
            g: 255,
            b: 255,
            a: 1
          }
        }
      },
      {
        id: 2,
        name: 'Clothing',
        url: '/categories/clothing',
        imageUrl: '/assets/clothing-category.jpg',
        thumbnailImageUrl: '/assets/clothing-thumb.jpg',
        alt: 'Clothing category'
      },
      {
        id: 3,
        name: 'Home & Garden',
        url: '/categories/home-garden',
        imageUrl: '/assets/home-garden-category.jpg',
        thumbnailImageUrl: '/assets/home-garden-thumb.jpg',
        alt: 'Home & Garden category'
      }
    ],
    categoryTree: [
      {
        id: 1,
        name: 'Electronics',
        nameTranslated: {
          en: 'Electronics',
          es: 'Electrónicos'
        },
        urlPath: '/electronics',
        enabled: true,
        children: [
          {
            id: 11,
            name: 'Smartphones',
            nameTranslated: {
              en: 'Smartphones',
              es: 'Teléfonos inteligentes'
            },
            urlPath: '/electronics/smartphones',
            enabled: true,
            children: []
          },
          {
            id: 12,
            name: 'Laptops',
            nameTranslated: {
              en: 'Laptops',
              es: 'Portátiles'
            },
            urlPath: '/electronics/laptops',
            enabled: true,
            children: []
          }
        ]
      },
      {
        id: 2,
        name: 'Clothing',
        nameTranslated: {
          en: 'Clothing',
          es: 'Ropa'
        },
        urlPath: '/clothing',
        enabled: true,
        children: [
          {
            id: 21,
            name: 'Men\'s Clothing',
            nameTranslated: {
              en: 'Men\'s Clothing',
              es: 'Ropa para hombres'
            },
            urlPath: '/clothing/mens',
            enabled: true,
            children: []
          },
          {
            id: 22,
            name: 'Women\'s Clothing',
            nameTranslated: {
              en: 'Women\'s Clothing',
              es: 'Ropa para mujeres'
            },
            urlPath: '/clothing/womens',
            enabled: true,
            children: []
          }
        ]
      }
    ]
  }
};

export function getExternalContentMock(): ExternalContentMock {
  return externalContentMock;
}
