import config from '../../../../core/config';

export const dataGenericTooltip = {
  isWebExtension: true,
  showTooltip: true,
  isGeneric: true,
};

export const dataNewOffer = {
  isWebExtension: true,
  vouchers:
  [
    {
      created: 1514984136299,
      state: 'new',
      template_name: 'Doesn\'t matter',
      template_data: {
        benefit: '11%',
        call_to_action: {
          target: '',
          text: 'Zum Angebot',
          url: 'https://www.silkes-weinkeller.de/?utm_source=Referrer&utm_medium=Cliqz&utm_campaign=11Prozent&utm_term=OffrzTab&utm_content=11Prozent&gutscheinid=cLsWk17&bannerid=Overlay'
        },
        code: 'cLsWk17',
        conditions: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.',
        desc: 'Genießen Sie die besten Weine aus Spanien, Italien und aus aller Welt. Jetzt Angebot sichern!',
        headline: 'Extra-Rabatt',
        logo_dataurl: `/${config.testsBasePath.slice(1)}/offers-cc/debug/images/rewe.png`,
        picture_dataurl: `/${config.testsBasePath.slice(1)}/offers-cc/debug/images/picture.png`,
        voucher_classes: '',
        labels: [
          'exclusive',
          'best_offer',
        ],
      },
      offer_id: 'SilkesWK_TG1_O1_V1',
      logoClass: 'short',
      backgroundColor: '#d7011d',
      validity: {
        diff: 23,
        diffUnit: 'hour',
        expired: { soon: true },
      },
      preferred: true,
    },
    {
      created: 1514984136299,
      state: 'new',
      template_name: "Doesn't matter",
      template_data: {
        benefit: '2x',
        call_to_action: {
          target: '',
          text: 'Zum Angebot',
          url: 'https://www.silkes-weinkeller.de/?utm_source=Referrer&utm_medium=Cliqz&utm_campaign=11Prozent&utm_term=OffrzTab&utm_content=11Prozent&gutscheinid=cLsWk17&bannerid=Overlay'
        },
        code: 'cLsWk17',
        conditions: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.',
        desc: 'Genießen Sie die besten Weine aus Spanien, Italien und aus aller Welt. Jetzt Angebot sichern!',
        headline: 'Kostenlose Horbucher',
        logo_dataurl: `/${config.testsBasePath.slice(1)}/offers-cc/debug/images/audible.png`,
        voucher_classes: '',
        labels: [
          'exclusive',
          'best_offer',
        ],
      },
      offer_id: 'SilkesWK_TG1_O1_V2',
      logoClass: 'normal',
      backgroundColor: '#d7011d',
      validity: {
        diff: 3,
        diffUnit: 'day',
        expired: {},
      },
    },
    {
      created: 1514984136299,
      state: 'new',
      template_name: "Doesn't matter",
      template_data: {
        benefit: 'Free test drive',
        call_to_action: {
          target: '',
          text: 'Zum Angebot',
          url: 'https://www.silkes-weinkeller.de/?utm_source=Referrer&utm_medium=Cliqz&utm_campaign=11Prozent&utm_term=OffrzTab&utm_content=11Prozent&gutscheinid=cLsWk17&bannerid=Overlay'
        },
        code: 'cLsWk17',
        conditions: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.',
        desc: 'Genießen Sie die besten Weine aus Spanien, Italien und aus aller Welt. Jetzt Angebot sichern!',
        headline: 'BMW i8',
        logo_dataurl: `/${config.testsBasePath.slice(1)}/offers-cc/debug/images/bmw.png`,
        voucher_classes: '',
        labels: [
          'exclusive',
          'best_offer',
        ],
      },
      offer_id: 'SilkesWK_TG1_O1_V3',
      logoClass: 'square',
      backgroundColor: '#d7011d',
      validity: {
        diff: 5,
        diffUnit: 'minute',
        expired: { soon: true },
      },
    },
    {
      created: 1514984136299,
      state: 'new',
      template_name: "Doesn't matter",
      template_data: {
        benefit: '249',
        benefit_new: '199$',
        call_to_action: {
          target: '',
          text: 'Zum Angebot',
          url: 'https://www.silkes-weinkeller.de/?utm_source=Referrer&utm_medium=Cliqz&utm_campaign=11Prozent&utm_term=OffrzTab&utm_content=11Prozent&gutscheinid=cLsWk17&bannerid=Overlay'
        },
        code: 'cLsWk17',
        conditions: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.',
        desc: 'Genießen Sie die besten Weine aus Spanien, Italien und aus aller Welt. Jetzt Angebot sichern!',
        headline: 'Superior Room',
        logo_dataurl: `/${config.testsBasePath.slice(1)}/offers-cc/debug/images/sofitel.png`,
        voucher_classes: '',
        labels: [
          'exclusive',
          'best_offer',
        ],
      },
      offer_id: 'SilkesWK_TG1_O1_V4',
      logoClass: 'long',
      backgroundColor: '#d7011d',
      validity: {
        diff: 45,
        diffUnit: 'day',
        expired: {},
      },
    },
  ],
  showExpandButton: true,
};

export const dataNewOffer1 = {
  isWebExtension: true,
  vouchers:
  [
    {
      created: 1514984136299,
      state: 'new',
      template_name: 'Doesn\'t matter',
      template_data: {
        benefit: '11%',
        call_to_action: {
          target: '',
          text: 'Zum Angebot',
          url: 'https://www.silkes-weinkeller.de/?utm_source=Referrer&utm_medium=Cliqz&utm_campaign=11Prozent&utm_term=OffrzTab&utm_content=11Prozent&gutscheinid=cLsWk17&bannerid=Overlay'
        },
        code: 'cLsWk17',
        desc: 'Genießen Sie die besten Weine aus Spanien, Italien und aus aller Welt. Jetzt Angebot sichern!',
        logo_dataurl: `/${config.testsBasePath.slice(1)}/offers-cc/debug/images/rewe.png`,
        voucher_classes: '',
        title: 'Extra-Rabatt title',
      },
      offer_id: 'SilkesWK_TG1_O1_V1',
      logoClass: 'short',
      backgroundColor: '#d7011d',
      validity: {
        diff: 3,
        diffUnit: 'day',
        expired: {},
      },
      preferred: true,
    },
  ],
  showExpandButton: false,
};

export const dataNewOffer2 = {
  vouchers: dataNewOffer.vouchers.map((x, i) => ({ ...x, group: String(i) }))
};
