"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.urlType = exports.respCodeMap = exports.quickMenuCode = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.deviceTypeMap = exports.compInfoMap = void 0;

var _compInfoMap;

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var urlType = {
  PRODUCT_DETAIL: 'proDetail',
  CATG_PROD_LIST: 'catg',
  GIVEAWAY_MISSION: 'specialMission',
  CUSTOMIZED: 'customized',
  PROD_FILTER: 'filter',
  ANCHOR: 'anchor',
  GET_COUPON: 'coupons'
};
exports.urlType = urlType;
var respCodeMap = {
  NOT_LOGGED_IN: 'BUYER-WEB-06003'
};
exports.respCodeMap = respCodeMap;
var deviceTypeMap = {
  PC: 'pc',
  PHONE: 'mobile'
};
exports.deviceTypeMap = deviceTypeMap;
var magicMode = {
  DESIGNER: 'designer',
  RENDERER: 'renderer'
};
exports.magicMode = magicMode;
var quickMenuCode = {
  UNDO: 'UNDO',
  REDO: 'REDO',
  PREVIEW: 'PREVIEW',
  SAVE: 'SAVE',
  PUBLISH: 'PUBLISH',
  MODE_PC: 'MODE_PC',
  MODE_PHONE: 'MODE_PHONE'
};
exports.quickMenuCode = quickMenuCode;
var compInfoMap = (_compInfoMap = {
  BANNER: {
    name: 'Banner',
    icon: 'icon-img-carousel'
  },
  BUTTON: {
    name: 'Button',
    icon: 'icon-button'
  },
  TAG: {
    name: 'Tag',
    icon: 'icon-tags'
  },
  NEWSLETTER: {
    name: 'Newsletter',
    icon: 'icon-newsletter'
  },
  TEXT: {
    name: 'Text',
    icon: 'icon-text'
  },
  FLASH_DEAL: {
    name: 'Flash Deal',
    icon: 'icon-flash-deal'
  },
  SEARCH: {
    name: 'Search',
    icon: 'icon-search'
  },
  IMAGE_TEXT: {
    name: 'Image and Text',
    icon: 'icon-filled-image'
  },
  RECOMMEND: {
    name: 'Recommend',
    icon: 'icon-forms'
  },
  DIVIDER: {
    name: 'Divider',
    icon: 'icon-divider-1'
  },
  IMAGEGALLERY: {
    name: 'ImageGallery',
    icon: 'icon-image'
  }
}, _defineProperty(_compInfoMap, "NEWSLETTER", {
  name: 'Newsletter',
  icon: 'icon-image'
}), _defineProperty(_compInfoMap, "CAROUSEL", {
  name: 'Carousel',
  icon: 'icon-img-carousel'
}), _compInfoMap);
/**
 * 元组件类型
 */

exports.compInfoMap = compInfoMap;
var metaType = {
  IMAGE: 'IMAGE',
  TEXT: 'TEXT',
  BUTTON: 'BUTTON'
};
/**
 * 元组件实例类型
 */

exports.metaType = metaType;
var metaInsType = {
  IMAGE: 'image',
  TITLE: 'title',
  TEXT: 'text',
  BUTTON: 'button',
  SECOND_BUTTON: 'secondButton'
};
/**
 * 元组件实例名称
 */

exports.metaInsType = metaInsType;
var metaInst = {
  image: {
    name: 'Image',
    type: metaType.IMAGE
  },
  title: {
    name: 'Title',
    type: metaType.TEXT
  },
  subTitle: {
    name: 'Sub Title',
    type: metaType.TEXT
  },
  text: {
    name: 'Text',
    type: metaType.TEXT
  },
  button: {
    name: 'Button',
    type: metaType.BUTTON
  },
  secondButton: {
    name: 'Secondary Button',
    type: metaType.BUTTON
  }
};
exports.metaInst = metaInst;