export const configShopee = {
  logisticsChannels: [],
  maxModelCount: 100,
  regexPattern: {
    shopName: /shopee\.vn\/(.*?)$/,
    productShopeeSlug: /-i\.(\d*)\.(\d*)/,
    productShopeeId: /product\/(\d*)\/(\d*)/,
    removeSpace: /^\s*\n/gm,
  },
  product: {
    sizeChartDefault: 'https://cf.shopee.vn/file/vn-11134207-820l4-mib5ake1c5j633',
    modelVariationNameMax: 20,
    minTitle: 10,
    maxTitle: 118,
    minDescription: 100,
    maxDescription: 2990,
    daysToShip: {
      normal: 2,
      preOrder: {
        current: 10,
        min: 7,
        max: 15,
      },
    },
  },
};

export const getShopeePayloadClone = () => {
  return {
    title: {
      prepend: '',
      append: '',
      gptWriter: false,
    },
    description: {
      prepend: '',
      append: '',
      json: false,
      gptWriter: false,
    },
    price: {
      beforeDiscount: false,
      change: '',
    },
    image: {
      spin: false,
      changeMd5: false,
      watermark: false,
    },
    replace: {
      phone: '',
      address: '',
    },
    video: {
      clone: true,
    },
    sizeChart: '',
    weight: 10,
    stock: 100,
    expiredDay: 365,
    skipDuplicateSku: true,
    unlisted: false,
    fetchStock: false,
    logisticsChannels: [],
  };
};

export default configShopee;
