"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getDefaultJSON = exports.bannerGroupSourceJSON = void 0;

var _uuid = require("uuid");

var _banner = _interopRequireDefault(require("./imgs/banner.png"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
  var groupId = (0, _uuid.v4)();
  return {
    id: groupId,
    image: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: true,
      type: 'IMAGE',
      content: {
        h5Name: 'name2',
        pcName: 'name2',
        h5ImgSrc: _banner["default"],
        pcImgSrc: _banner["default"],
        clickUrl: ''
      },
      hover: {
        open: false,
        backgroundType: 'enlarge',
        magnification: 1.5,
        pcImgHoverUrl: '',
        h5ImgHoverUrl: ''
      }
    },
    title: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: true,
      type: 'TEXT',
      text: 'Title use, click modify text.',
      specialContent: [],
      content: {
        // sizeType: 'Headline 1',
        fontFamily: 'Open Sans',
        fontWeight: 700,
        fontSize: 28,
        color: '#FFFFFF',
        width: 400
      },
      underline: {
        open: false,
        textDecorationColor: '',
        textDecorationStyle: 'solid'
      },
      vertical: {}
    },
    text: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: true,
      type: 'TEXT',
      specialContent: [],
      text: 'For the text area, you can enter a subtitle or description, the default width is the same as title.',
      content: {
        // sizeType: 'Headline 1',
        fontFamily: 'Open Sans',
        fontWeight: 400,
        fontSize: 18,
        color: '#FFFFFF',
        width: 500
      },
      underline: {},
      vertical: {}
    },
    button: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: true,
      type: 'BUTTON',
      text: 'Button',
      content: {
        url: '',
        backgroundColor: '#2F54EB'
      },
      buttonText: {
        // sizeType: 'Headline 1',
        fontFamily: 'Open Sans',
        fontWeight: 600,
        fontSize: 14,
        fontStyle: 'normal',
        color: '#fff',
        padding: '9px 20px'
      },
      buttonBorder: {
        open: true,
        borderColor: '',
        borderRadius: 6
      },
      buttonIcon: {
        iconUrl: '',
        layout: 'right'
      },
      hover: {
        open: false,
        content: {
          backgroundColor: '#0d39ed'
        },
        buttonText: {
          // sizeType: 'Headline 1',
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 14,
          fontStyle: 'normal',
          color: '#fff',
          padding: '9px 20px'
        },
        buttonBorder: {
          open: true,
          borderColor: '',
          borderRadius: 6
        },
        buttonIcon: {
          iconUrl: '',
          layout: 'right'
        }
      }
    },
    secondButton: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: true,
      type: 'BUTTON',
      text: 'More',
      content: {
        url: '',
        backgroundColor: '#fff'
      },
      buttonText: {
        // sizeType: 'Headline 1',
        fontFamily: 'Open Sans',
        fontWeight: 600,
        fontSize: 14,
        fontStyle: 'normal',
        color: '#2F54EB',
        padding: '9px 20px'
      },
      buttonBorder: {
        open: true,
        borderColor: '#2F54EB',
        borderRadius: 6
      },
      buttonIcon: {
        iconUrl: '',
        layout: 'right'
      },
      hover: {
        open: false,
        content: {
          backgroundColor: '#E9F0FF'
        },
        buttonText: {
          // sizeType: 'Headline 1',
          fontFamily: 'Open Sans',
          fontWeight: 600,
          fontSize: 14,
          fontStyle: 'normal',
          color: '#2F54EB',
          padding: '9px 20px'
        },
        buttonBorder: {
          open: true,
          borderColor: '#2F54EB',
          borderRadius: 6
        },
        buttonIcon: {
          iconUrl: '',
          layout: 'right'
        }
      }
    },
    customize: {
      layout: 'left',
      align: 'left'
    },
    background: {
      opacity: 100,
      color: '#232F46',
      image: '',
      bgType: 'color'
    }
  };
};

exports.bannerGroupSourceJSON = bannerGroupSourceJSON;

var getDefaultJSON = function getDefaultJSON() {
  return {
    id: (0, _uuid.v4)(),
    type: 'BANNER',
    setting: {
      pcHeight: 360,
      mobileHeight: 386,
      // 自动轮播
      autoplay: {
        open: false,
        interval: 4
      },
      // 切换按钮
      navigation: {
        open: true,
        size: 16,
        hoverSize: 16,
        color: '#aaa',
        hoverColor: '#fff'
      },
      // 面板指示点
      dots: {
        open: true,
        color: '#fff',
        hoverColor: '#fff',
        size: 16,
        hoverSize: 16
      }
    },
    groupSource: [bannerGroupSourceJSON()]
  };
};

exports.getDefaultJSON = getDefaultJSON;