'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.exclusivePath = exports.bizConfig = undefined;
exports.default = initComponent;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactDom = require('react-dom');

var _reactDom2 = _interopRequireDefault(_reactDom);

var _fastclick = require('fastclick');

var _fastclick2 = _interopRequireDefault(_fastclick);

var _setup = require('./entrance/setup');

var _setup2 = _interopRequireDefault(_setup);

require('./utils/smoothscroll');

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

var bizConfig = exports.bizConfig = {};
var exclusivePath = exports.exclusivePath = {};

// eslint-disable-line import/imports-first
function initComponent(homePage, biz_config, exclusive_path) {

  exports.bizConfig = bizConfig = biz_config;
  exports.exclusivePath = exclusivePath = exclusive_path;

  _reactDom2.default.render(_react2.default.createElement(_setup2.default, { homePage: homePage }), // eslint-disable-line
  document.getElementById('root'));
  // Eliminates the 300ms delay between a physical tap
  // and the firing of a click event on mobile browsers
  // https://github.com/ftlabs/fastclick
  _fastclick2.default.attach(document.body);

  if (module.hot) {
    module.hot.accept();
  }
}