"use strict";

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

var _uuid = require("uuid");

var _ = _interopRequireDefault(require("./imgs/1.png"));

var _2 = _interopRequireDefault(require("./imgs/2.png"));

var _3 = _interopRequireDefault(require("./imgs/3.png"));

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

var imagesGroupSourceJSON = function imagesGroupSourceJSON(img) {
  var groupId = (0, _uuid.v4)();
  return {
    id: groupId,
    image: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: false,
      type: 'IMAGE',
      content: {
        name: 'name',
        imgSrc: img,
        clickUrl: ''
      },
      hover: {
        open: false,
        backgroundType: 'enlarge',
        magnification: 1.5,
        pcImgHoverUrl: '',
        h5ImgHoverUrl: ''
      }
    },
    title: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: false,
      type: 'TEXT',
      specialContent: [],
      text: 'Title of this group',
      content: {
        sizeType: 'Headline 1',
        fontFamily: 'Open Sans',
        fontWeight: 600,
        fontSize: 12,
        color: '#232F46',
        width: 200,
        textAlign: 'center'
      },
      underline: {
        open: false,
        textDecorationColor: '',
        textDecorationStyle: 'solid'
      },
      vertical: {}
    },
    text: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: false,
      type: 'TEXT',
      specialContent: [],
      text: 'Please enter a description',
      content: {
        sizeType: 'Headline 1',
        fontFamily: 'Open Sans',
        fontWeight: 400,
        fontSize: 10,
        color: '#8493AF',
        width: 230,
        textAlign: 'center'
      },
      underline: {},
      vertical: {}
    },
    imageTag: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: false,
      type: 'BUTTON',
      text: 'Button',
      content: {
        url: '',
        backgroundColor: '#2F54EB'
      },
      buttonText: {
        sizeType: 'Headline 1',
        fontFamily: 'Open Sans',
        fontWeight: 400,
        fontSize: 10,
        fontStyle: 'normal',
        color: '#fff',
        padding: '4px 6px'
      },
      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'
        },
        buttonBorder: {
          open: true,
          borderColor: '',
          borderRadius: 6
        },
        buttonIcon: {
          iconUrl: '',
          layout: 'right'
        }
      }
    },
    textTag: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: false,
      type: 'BUTTON',
      text: 'Button',
      content: {
        url: '',
        backgroundColor: '#2F54EB'
      },
      buttonText: {
        sizeType: 'Headline 1',
        fontFamily: 'Open Sans',
        fontWeight: 400,
        fontSize: 10,
        fontStyle: 'normal',
        color: '#fff',
        padding: '4px 6px'
      },
      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'
        },
        buttonBorder: {
          open: true,
          borderColor: '',
          borderRadius: 6
        },
        buttonIcon: {
          iconUrl: '',
          layout: 'right'
        }
      }
    },
    secondButtonTag: {
      parentId: groupId,
      id: (0, _uuid.v4)(),
      open: false,
      type: 'BUTTON',
      text: 'More',
      content: {
        url: '',
        backgroundColor: '#fff'
      },
      buttonText: {
        sizeType: 'Headline 1',
        fontFamily: 'Open Sans',
        fontWeight: 400,
        fontSize: 10,
        fontStyle: 'normal',
        color: '#2F54EB',
        padding: '4px 6px'
      },
      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'
        },
        buttonBorder: {
          open: true,
          borderColor: '#2F54EB',
          borderRadius: 6
        },
        buttonIcon: {
          iconUrl: '',
          layout: 'right'
        }
      }
    }
  };
};

exports.imagesGroupSourceJSON = imagesGroupSourceJSON;

var getDefaultJSON = function getDefaultJSON() {
  return {
    id: (0, _uuid.v4)(),
    type: 'CAROUSEL',
    groupSource: [imagesGroupSourceJSON(_["default"]), imagesGroupSourceJSON(_2["default"]), imagesGroupSourceJSON(_3["default"]), imagesGroupSourceJSON(_["default"]), imagesGroupSourceJSON(_2["default"]), imagesGroupSourceJSON(_3["default"])],
    customize: {
      layout: 'layout1',
      align: 'left'
    },
    background: {
      opacity: 100,
      color: '#F2F2F2',
      image: '',
      bgType: 'color'
    }
  };
};

exports.getDefaultJSON = getDefaultJSON;