{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.FusionTablesLayer = undefined;\n\nvar _defineProperty2 = require(\"babel-runtime/helpers/defineProperty\");\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _getPrototypeOf = require(\"babel-runtime/core-js/object/get-prototype-of\");\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _classCallCheck2 = require(\"babel-runtime/helpers/classCallCheck\");\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require(\"babel-runtime/helpers/createClass\");\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require(\"babel-runtime/helpers/possibleConstructorReturn\");\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require(\"babel-runtime/helpers/inherits\");\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require(\"prop-types\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _MapChildHelper = require(\"../utils/MapChildHelper\");\n\nvar _constants = require(\"../constants\");\n\nfunction _interopRequireDefault(obj) {\n  return obj && obj.__esModule ? obj : {\n    default: obj\n  };\n}\n/**\r\n * A wrapper around `google.maps.FusionTablesLayer`\r\n *\r\n * @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#FusionTablesLayer\r\n */\n\n/*\r\n * -----------------------------------------------------------------------------\r\n * This file is auto-generated from the corresponding file at `src/macros/`.\r\n * Please **DO NOT** edit this file directly when creating PRs.\r\n * -----------------------------------------------------------------------------\r\n */\n\n/* global google */\n\n\nvar FusionTablesLayer = exports.FusionTablesLayer = function (_React$PureComponent) {\n  ;\n  (0, _inherits3.default)(FusionTablesLayer, _React$PureComponent);\n  /*\r\n   * @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#FusionTablesLayer\r\n   */\n\n  function FusionTablesLayer(props, context) {\n    ;\n    (0, _classCallCheck3.default)(this, FusionTablesLayer);\n\n    var _this = (0, _possibleConstructorReturn3.default)(this, (FusionTablesLayer.__proto__ || (0, _getPrototypeOf2.default)(FusionTablesLayer)).call(this, props, context));\n\n    var fusionTablesLayer = new google.maps.FusionTablesLayer();\n    (0, _MapChildHelper.construct)(FusionTablesLayer.propTypes, updaterMap, _this.props, fusionTablesLayer);\n    fusionTablesLayer.setMap(_this.context[_constants.MAP]);\n    _this.state = (0, _defineProperty3.default)({}, _constants.FUSION_TABLES_LAYER, fusionTablesLayer);\n    return _this;\n  }\n\n  ;\n  (0, _createClass3.default)(FusionTablesLayer, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      ;\n      (0, _MapChildHelper.componentDidMount)(this, this.state[_constants.FUSION_TABLES_LAYER], eventMap);\n    }\n  }, {\n    key: \"componentDidUpdate\",\n    value: function componentDidUpdate(prevProps) {\n      ;\n      (0, _MapChildHelper.componentDidUpdate)(this, this.state[_constants.FUSION_TABLES_LAYER], eventMap, updaterMap, prevProps);\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      ;\n      (0, _MapChildHelper.componentWillUnmount)(this);\n      var fusionTablesLayer = this.state[_constants.FUSION_TABLES_LAYER];\n\n      if (fusionTablesLayer) {\n        fusionTablesLayer.setMap(null);\n      }\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      return false;\n    }\n  }]);\n  return FusionTablesLayer;\n}(_react2.default.PureComponent);\n\nFusionTablesLayer.propTypes = {\n  /**\r\n   * @type FusionTablesLayerOptions\r\n   */\n  defaultOptions: _propTypes2.default.any,\n\n  /**\r\n   * @type FusionTablesLayerOptions\r\n   */\n  options: _propTypes2.default.any,\n\n  /**\r\n   * function\r\n   */\n  onClick: _propTypes2.default.func\n};\nFusionTablesLayer.contextTypes = (0, _defineProperty3.default)({}, _constants.MAP, _propTypes2.default.object);\nexports.default = FusionTablesLayer;\nvar eventMap = {\n  onClick: \"click\"\n};\nvar updaterMap = {\n  options: function options(instance, _options) {\n    instance.setOptions(_options);\n  }\n};","map":null,"metadata":{},"sourceType":"script"}